Reputation: 279
I'm working in eclipse on a java / javascript project, we're using maven to manage our project dependencies, I ran into a issue with maven build (clean install) does not install the dependencies that I specified in the POM.xml file, I tried everything I can find on the internet the whole day today, still no luck, I'll be really appreciate if anyone could kindly take a look at, thank you :)
I got a reuse lib project (lib) and a working project (project), the project should be installing the lib during the maven build, So, here's more detail information on what exactly I did:
In the console, I saw the reuse lib was downloading and then downloaded, but it's never got installed (there should be a line says installing reuse lib...), as the result of it, the reuse lib will not be loaded after I ran my working project, it drives me insane -_-!..
Upvotes: 2
Views: 2284
Reputation: 2844
Only your maven projects build output can be installed (in the local repository with mvn install
, resp. mvn clean install
). During the build it will resolve the dependencies (and the transitive dependencies) to be downloaded and packed to your delivery. Those dependencies of your project will implicitly also be "installed" in your local repository since you will see them in your local repository after the download happened - Maven will however not see that as a install
in the meaning of install
of the default lifecycle.
To install your "reuse lib"-Maven project you will have to run mvn install
or mvn clean install
on that project's pom rather than on a project which "just uses it as dependency".
Upvotes: 1