Hi!
I was just wondering if have misunderstood the basics of Maven and dependencies.
I have a project according to this structure:
ear
ejbs
core
integration
webapps
webapp
integration is dependent on core.
from pom in integration.xml:
<dependency>
<groupId>com.jf.application.ejbs</groupId>
<artifactId>core</artifactId>
<version>${pom.version}</version>
<scope>compile</scope>
</dependency>
pom in ejbs:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.jf.application</groupId>
<artifactId>ejbs</artifactId>
<packaging>pom</packaging>
<name>ejbs</name>
<parent>
<groupId>com.jf</groupId>
<artifactId>application</artifactId>
<version>2010v-SNAPSHOT</version>
</parent>
<modules>
<module>core</module>
<module>integration</module>
</modules>
</project>
When a run mvn clean:compile in the project root a I get a compilation
error saying that a method is missing. I recently added the method in
one of the classes in the core project. When I debug a see that the
classpath for core is the installed artifact in the local maven repo
and not the classpath to core in the project. Should it be this way?
I think it seems silly that I have to install the core artifact first.
I'm running Maven 2.2.1 on windows.
Any ideas?
Best regards,
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]