I have a project which consists of several modules (m1,m2 and m3)

m2 depends of m1, m3 depends of m1 and m2

In m3/pom.xml I have definition for dependency plugin like this

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>

                <artifactId>dependency-maven-plugin</artifactId>

                <executions>
                    <execution>
                        <id>copy-dependencies</id>

                        <phase>package</phase>

                        <goals>
                            <goal>copy-dependencies</goal>
                        </goals>

                        <configuration>
                            <outputDirectory>WEB-INF/lib</outputDirectory>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

when I invoke `mvn package' in the project directory, only dependencies for
m3, m2 and m1 are copied into m3/WEB-INF/lib/, but not m1-1.0.jar and
m2-1.0.jar. If I invoke the same command in the m3 directory, all
dependencies, including JAR files are copied.

What I am doing in a wrong way?
-- 
Eugene N Dzhurinsky

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to