Hi,
you have to 'mvn install' your project one time, so that maven is able
to resolve the artifacts from the repository. After that idea:idea works.
I find this a little bit annoying to, given the fact that the default
for the current version of the plugin is to link the created IDEA
modules as dependencies directly. But after all, it's not that bad.
-Tim
soulspirit schrieb:
Hello,
im working on a project with the following structure:
parent ---> sub1
parent ---> sub2
sub2 depends on sub1
poms:
parent:
<modelVersion>4.0.0</modelVersion>
<groupId>project</groupId>
<artifactId>parent</artifactId>
<packaging>pom</packaging>
<version>1.0-DEV</version>
<name>the parent</name>
<modules>
<module>sub1</module>
<module>sub2</module>
</modules>
sub1:
<parent>
<artifactId>project</artifactId>
<groupId>parent</groupId>
<version>1.0-DEV</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>project</groupId>
<artifactId>sub1</artifactId>
<name>the sub1</name>
<version>1.0-DEV</version>
<packaging>jar</packaging>
sub2:
<parent>
<artifactId>project</artifactId>
<groupId>parent</groupId>
<version>1.0-DEV</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>project</groupId>
<artifactId>sub2</artifactId>
<name>the sub1</name>
<version>1.0-DEV</version>
<packaging>jar</packaging>
<dependency>
<groupId>project</groupId>
<artifactId>sub1</artifactId>
<version>1.0-DEV</version>
</dependency>
compile and package work fine, but when I try to generate my intellij files,
maven tries to download the sub1 artifact from repo1.maven.org:
Downloading:
http://repo1.maven.org/maven2/project/sub1/1.0-DEV/sub1-1.0-DEV.jar
[WARNING] An error occurred during dependency resolution of the following
artifact:...
Cant find any error in the parent-pom.. Anyone has an idea?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]