Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/update parent pom #1757

Merged
merged 7 commits into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion code-generation/language-c/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<version>3.7.0</version>
<executions>
<execution>
<id>integration-test</id>
Expand Down
1 change: 0 additions & 1 deletion code-generation/language-go/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<version>3.7.0</version>
<executions>
<execution>
<id>integration-test</id>
Expand Down
1 change: 1 addition & 0 deletions code-generation/language-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
<pomIncludes>
<pomInclude>*/pom.xml</pomInclude>
</pomIncludes>
<mavenOpts>--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</mavenOpts>
<!-- The goals we will be executing in the test-projects -->
<goals>
<goal>test</goal>
Expand Down
2 changes: 1 addition & 1 deletion jenkins.pom
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.apache</groupId>
<artifactId>apache</artifactId>
<version>31</version>
<version>33</version>
</parent>

<groupId>org.apache.plc4x</groupId>
Expand Down
9 changes: 5 additions & 4 deletions plc4j/drivers/bacnet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@
<groupId>org.apache.commons</groupId>
<artifactId>commons-csv</artifactId>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
Expand Down Expand Up @@ -173,6 +169,11 @@
<artifactId>commons-codec</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.apache.plc4x</groupId>
Expand Down
13 changes: 13 additions & 0 deletions plc4j/drivers/c-bus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,19 @@
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<ignoredDependencies combine.children="append">
<!--
For some reason we need to do this. The compiler needs it in order to compile,
but the plugin doesn't detect this.
-->
<ignoredDependency>org.apache.commons:commons-text</ignoredDependency>
</ignoredDependencies>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
13 changes: 13 additions & 0 deletions plc4j/drivers/can/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,19 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<ignoredDependencies combine.children="append">
<!--
For some reason we need to do this. The compiler needs it in order to compile,
but the plugin doesn't detect this.
-->
<ignoredDependency>io.netty:netty-buffer</ignoredDependency>
</ignoredDependencies>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
13 changes: 13 additions & 0 deletions plc4j/drivers/canopen/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,19 @@
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<ignoredDependencies combine.children="append">
<!--
For some reason we need to do this. The compiler needs it in order to compile,
but the plugin doesn't detect this.
-->
<ignoredDependency>io.netty:netty-buffer</ignoredDependency>
</ignoredDependencies>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
9 changes: 5 additions & 4 deletions plc4j/drivers/iec-60870/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@
<groupId>io.netty</groupId>
<artifactId>netty-transport</artifactId>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
Expand All @@ -128,6 +124,11 @@
<version>0.13.0-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.apache.plc4x</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ protected static class Response {
public Response(int startingAddress, byte[] responseData) {
this.startingAddress = startingAddress;
this.responseData = responseData;
// In general a "Celil(responseData.length / 2)" would habe been more correct,
// but the data returned from the device should already be an even number.
this.endingAddress = startingAddress + (responseData.length / 2);
}

Expand Down
4 changes: 4 additions & 0 deletions plc4j/drivers/profinet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@
<groupId>io.netty</groupId>
<artifactId>netty-buffer</artifactId>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-transport</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
Expand Down
26 changes: 1 addition & 25 deletions plc4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,28 +53,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<!--
As dynamic agent loading has been deprecated and was starting
to cause issues in more recent JDK versions, we now fetch the
agent manually and pass it in to surefire.
-->
<execution>
<id>copy</id>
<phase>process-resources</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy-agent</artifactId>
<version>${byte-buddy.version}</version>
<outputDirectory>${project.build.directory}</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
<!--
Even if Maven transitively pulls in dependencies, relying on these can
quite often cause hard to find problems. So it's a good practice to make
Expand Down Expand Up @@ -107,9 +85,7 @@
<ignoredDependency>org.slf4j:slf4j-api</ignoredDependency>
<ignoredDependency>ch.qos.logback:logback-classic</ignoredDependency>
<ignoredDependency>org.apache.groovy:groovy-test-junit5</ignoredDependency>
<ignoredDependency>org.apache.groovy:groovy</ignoredDependency>
<ignoredDependency>com.athaydes:spock-reports</ignoredDependency>
<ignoredDependency>org.apache.nifi:nifi-standard-nar</ignoredDependency>
</ignoredDependencies>
</configuration>
</execution>
Expand Down Expand Up @@ -268,7 +244,7 @@
Also do we have to pass in the byte-buddy agent to work around issues
with dynamic loading of jvm agents.
-->
<argLine>-javaagent:${project.basedir}/target/byte-buddy-agent-${byte-buddy.version}.jar -Xmx512m @{surefireArgLine}</argLine>
<argLine>-Xmx512m @{surefireArgLine}</argLine>
<includes>
<include>**/*Test.java</include>
<include>**/*Tests.java</include>
Expand Down
11 changes: 6 additions & 5 deletions plc4j/tools/opm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@
<artifactId>plc4j-api</artifactId>
<version>0.13.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.plc4x</groupId>
<artifactId>plc4j-spi</artifactId>
<version>0.13.0-SNAPSHOT</version>
</dependency>

<!-- Utils -->
<dependency>
Expand All @@ -64,6 +59,12 @@
</dependency>

<!--Testing-->
<dependency>
<groupId>org.apache.plc4x</groupId>
<artifactId>plc4j-spi</artifactId>
<version>0.13.0-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.plc4x</groupId>
<artifactId>plc4j-driver-mock</artifactId>
Expand Down
14 changes: 13 additions & 1 deletion plc4j/transports/serial/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
<artifactId>plc4j-api</artifactId>
<version>0.13.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.apache.plc4x</groupId>
<artifactId>plc4j-spi</artifactId>
Expand Down Expand Up @@ -100,6 +99,19 @@
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<ignoredDependencies combine.children="append">
<!--
For some reason we need to do this. plc4j-api is indirectly needed by the spi
if we add it as a test-dependency, the build fails.
-->
<ignoredDependency>org.apache.plc4x:plc4j-api</ignoredDependency>
</ignoredDependencies>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
7 changes: 7 additions & 0 deletions plc4j/utils/raw-sockets/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@
<usedDependencies>
<usedDependency>org.pcap4j:pcap4j-packetfactory-static</usedDependency>
</usedDependencies>
<ignoredDependencies combine.children="append">
<!--
For some reason we need to do this. The compiler needs it in order to compile,
but the plugin doesn't detect this.
-->
<ignoredDependency>io.netty:netty-common</ignoredDependency>
</ignoredDependencies>
</configuration>
</plugin>

Expand Down
14 changes: 10 additions & 4 deletions plc4j/utils/test-generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,6 @@
<groupId>org.pcap4j</groupId>
<artifactId>pcap4j-core</artifactId>
</dependency>
<dependency>
<groupId>org.xmlunit</groupId>
<artifactId>xmlunit-matchers</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
Expand All @@ -137,6 +133,11 @@
<!-- Explicitly managing this back to "compile" -->
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.groovy</groupId>
<artifactId>groovy</artifactId>
<version>${groovy.version}</version>
</dependency>

<dependency>
<groupId>org.apache.plc4x</groupId>
Expand Down Expand Up @@ -169,6 +170,11 @@
<artifactId>commons-io</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.xmlunit</groupId>
<artifactId>xmlunit-matchers</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

</project>
Loading
Loading