Skip to content

Commit

Permalink
chore: Updated the dependency plugin to the latest version and did al…
Browse files Browse the repository at this point in the history
…l adjustments now needed or problems now detected by it.
  • Loading branch information
chrisdutz committed Sep 13, 2024
1 parent fcc89a4 commit ca0f8c6
Show file tree
Hide file tree
Showing 9 changed files with 75 additions and 24 deletions.
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
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
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
12 changes: 6 additions & 6 deletions plc4j/transports/serial/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@
</properties>

<dependencies>
<dependency>
<groupId>org.apache.plc4x</groupId>
<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 @@ -71,6 +65,12 @@
<artifactId>jSerialComm</artifactId>
</dependency>

<dependency>
<groupId>org.apache.plc4x</groupId>
<artifactId>plc4j-api</artifactId>
<version>0.13.0-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-codec</artifactId>
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
17 changes: 8 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1362,15 +1362,14 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<!--
TODO: somehow the newer version (checked till 3.8.0) is broken as it reports dependencies which are compile in fact
e.g. plc4j-connection-pool:
[INFO] - maven-dependency-plugin:3.2.0:analyze-only (check-dependencies) @ plc4j-connection-pool -
[WARNING] Non-test scoped test only dependencies found:
[WARNING] org.apache.commons:commons-pool2:jar:2.11.1:compile
[WARNING] org.apache.plc4x:plc4j-api:jar:0.11.0-SNAPSHOT:compile
-->
<version>3.1.2</version>
<version>3.8.0</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-dependency-analyzer</artifactId>
<version>1.14.1</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
Expand Down

0 comments on commit ca0f8c6

Please sign in to comment.