hello

i have a simple multimodule project

pom.xml
|
proj1---- pom.xml
|
proj2----pom.xml

in the main pom.xml:
<modules>
                <module>proj1<module>
                <module>proj2<module>
<modules>


proj2 depends on proj1.

   <dependency>
                        <groupId>myComp</groupId>
                        <artifactId>proj1</artifactId>
                        <version>0.1-SNAPSHOT</version>
   </dependency>


this dependency is resolved correctly when i call

mvn test

or when i open the projects via m2eclipse

but when i call

mvn checkstyle:checkstyle

the checkstyle plugin creates correct reports for proj1

but when it tries to work on proj2 i get the following error:

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

Missing:
----------
1) myComp:proj1:jar:0.1-SNAPSHOT


it tries to load the missing dependency from a repository instead of using the
files in the other submodule like the test and the compile plugins do.

i can not imagine that i have to deploy all jars before i use checkstyle?

how do i use checkstyle for multimodule projects?



thanks, tim

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to