Hello !

I'm working with a multi-modules project. This project has 2 modules :
"shared" and "server". Module "server" depends on module "shared".
When I try to run "mvn install" on the main project, it fails because
it seems to try to compile module "server" before module "shared"
(error below).

If I run maven first on shared (mvn -f shared/pom.xml) and then on
server (mvn -f server/pom) everything works as expected.

I triple checked, shared doesnt have any dependency declared on
server. I did use "mvn dependency:resolve" to get the clear picture. I
tried to change the order in the <modules> section of my parent pom. I
cant seem to go anywhere.

How is the order of compilation decided by maven ? Any documentation ?
Any tricks I could use ?

Thanks for any help !


[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) myGroup:myArtifact_shared:jar:0.1.2-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=myGroup -DartifactId=
myArtifact_shared \
          -Dversion=0.1.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
    mvn deploy:deploy-file -DgroupId=myGroup -DartifactId=myArtifact_shared \
          -Dversion=0.1.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file \
           -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) myGroup:myArtifact_server:jar:0.1.2-SNAPSHOT
        2) myGroup:myArtifact_shared:jar:0.1.2-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
  myGroup:myArtifact_server:jar:0.1.2-SNAPSHOT

-- 
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]

Reply via email to