Hi Viet,

first of all: a very warm WELCOME here ;-)

First off all … please subscribe to this list by sending an empty email to 
dev-subscr...@plc4x.apache.org<mailto:dev-subscr...@plc4x.apache.org> because I 
had to manually moderate your email to pass and if I didn’t explicitly add you 
to the reply, you wouldn’t have received a message at all.


Could you please tell us which version you are using? Are you using a released 
source-bundle or did you check out the latest version on github?

If it’s a release I would be slightly puzzled, because with something like that 
reported, the release wouldn’t have passed.

And as a little explanation:
The plugin isn’t reporting a missing dependency … it’s reporting that we’re 
declaring a dependency which we aren’t using and therefore can be removed.

In some cases, we have dependencies that only are needed at runtime and the 
plugin can’t detect them during compilation. In these cases, we manually manage 
them in the plugin setting, but in this case, this shouldn’t be the case.

Chris


From: Viet Nguyen <vietnguyen1...@gmail.com>
Date: Wednesday, 12. October 2022 at 17:30
To: dev@plc4x.apache.org <dev@plc4x.apache.org>
Subject: Issue when compiling the source
Hi,

I am quite stuck with this now, any suggestion is really appreciated.

I am trying to compile the PLC4X with this simple command: ./mvnw install.
Then, i got this error:

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-dependency-plugin:3.1.2:analyze-only
(check-dependencies) on project plc4j-utils-raw-sockets: Dependency
problems found -> [Help 1]


And the reason is:

[INFO] --- maven-dependency-plugin:3.3.0:analyze-only (check-dependencies)
@ plc4j-utils-raw-sockets -
                                                       --
[WARNING] Unused declared dependencies found:
[WARNING]    io.netty:netty-common:jar:4.1.82.Final:compile


I tried to add  io.netty:netty-common to ignoredDependency then it passes
for this case but keep coming for other components with other libraries.
And there are quite many components there.

I tried with Docker build but the issue is the same.

Can you please help me out?

Thank you so much.

Regards,
Viet

Reply via email to