maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From timonik <ryush...@gmail.com>
Subject mvn dependency:tree goal
Date Wed, 02 Jun 2010 11:59:18 GMT

Hello,

We have following structure of project

project
  ModuleA
    pom.xml
  ModuleB
    pom.xml
  pom.xml   <-- parent pom for all sub-modules

Parent pom contains declaration of all modules:

<modules>
  <module>A</module>
  <module>B</module>
</modules>

Our A module use B artifact and we added B module in dependencyManagement
section in parent pom:

<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>B</artifactId>
      <version>${version}</version>
  </dependency>
</dependencyManagement>

After that we use following dependency declaration in A's pom:

<dependency>
  <groupId>${project.groupId}</groupId>
  <artifactId>B</artifactId>
</dependency>

Build successfully builds, but when I try to use dependency:tree goal I get
error:


1 required artifact is missing.

for artifact: 
  mygroup:A:jar:0.0.1-SNAPSHOT


Please help to detect a problem of error. Don't see even possible reasons
here.

Thanks,
Timonik

-- 
View this message in context: http://old.nabble.com/mvn-dependency%3Atree-goal-tp28753410p28753410.html
Sent from the Maven Developers mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message