Hello !
When trying to build my multi-module project, I get a "missing
dependency" from one module to the other. To be clearer :
I have multiple modules, declared in the main pom.xml as :
<modules>
<module>M2_Artifacts/shared</module>
<module>M2_Artifacts/server</module>
<module>M2_Artifacts/client</module>
<module>M2_Artifacts/util</module>
<module>M2_Artifacts/batch</module>
<module>M2_Artifacts/test</module>
</modules>
"shared" doesnt depend on any other module, but "server" depends on
"shared". I thought that maven would be able to build the modules in
the order specified. If i build manually each module in that order, it
works, but when trying to do a "mvn install" from the main directory,
the build fails with a dependency error (see bleow).
Any idea ?
Thanks !
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) libAfc.EvenementMetierPoc:EvenementMetierPoc_shared:jar:0.1.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=libAfc.EvenementMetierPoc -DartifactId=
EvenementMetierPoc_shared \
-Dversion=0.1.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=libAfc.EvenementMetierPoc -DartifactId=Even
ementMetierPoc_shared \
-Dversion=0.1.0 -Dpackaging=jar -Dfile=/path/to/file \
-Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) libAfc.EvenementMetierPoc:EvenementMetierPoc_server:jar:0.1.0
2) libAfc.EvenementMetierPoc:EvenementMetierPoc_shared:jar:0.1.0
--
Jabber : [EMAIL PROTECTED]
Skype : Guillaume.Lederrey
Projects :
* http://rwanda.wordpress.com/
* http://rwandatech.wordpress.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]