You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by soulspirit <no...@at.uboot.com> on 2007/09/03 16:51:43 UTC
idea - plugin crossmodule project
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?
--
View this message in context: http://www.nabble.com/idea---plugin-crossmodule-project-tf4372570s177.html#a12462912
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: idea - plugin crossmodule project
Posted by Tim Kettler <ti...@udo.edu>.
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org