You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Luca Stancapiano (Updated) (JIRA)" <ji...@apache.org> on 2011/12/03 16:10:39 UTC
[jira] [Updated] (MPOM-34) I cannot compile mixing modules and
dependencies
[ https://issues.apache.org/jira/browse/MPOM-34?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Luca Stancapiano updated MPOM-34:
---------------------------------
Attachment: exampletest.zip
This zip file contains the three projects descrived before
> I cannot compile mixing modules and dependencies
> ------------------------------------------------
>
> Key: MPOM-34
> URL: https://issues.apache.org/jira/browse/MPOM-34
> Project: Maven POMs
> Issue Type: Bug
> Components: maven
> Environment: maven 3.0.3
> Reporter: Luca Stancapiano
> Attachments: exampletest.zip
>
>
> I have three two simple projects:
> <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/xsd/maven-4.0.0.xsd">
> <parent>
> <groupId>prova</groupId>
> <artifactId>Mioframework</artifactId>
> <version>0.4.0-SNAPSHOT</version>
> <relativePath>../pom.xml</relativePath>
> </parent>
> <modelVersion>4.0.0</modelVersion>
> <artifactId>my-mioprogetto</artifactId>
> <name>Mio progetto</name>
> <dependencies>
> <!-- Internal dependencies -->
> <dependency>
> <groupId>${project.groupId}</groupId>
> <artifactId>my-mioprogetto2</artifactId>
> <version>${project.version}</version>
> </dependency>
> </dependencies>
> </project>
> <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/xsd/maven-4.0.0.xsd">
> <parent>
> <groupId>prova</groupId>
> <artifactId>Mioframework</artifactId>
> <version>0.4.0-SNAPSHOT</version>
> <relativePath>../pom.xml</relativePath>
> </parent>
> <modelVersion>4.0.0</modelVersion>
> <artifactId>my-mioprogetto2</artifactId>
> <name>Mio progetto 2</name>
> </project>
> and one parent project:
> <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/xsd/maven-4.0.0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <groupId>prova</groupId>
> <artifactId>Mioframework</artifactId>
> <version>0.4.0-SNAPSHOT</version>
> <name>Mioframework</name>
> <packaging>pom</packaging>
> <modules>
> <module>mioprogetto</module>
> <module>mioprogetto2</module>
> </modules>
> </project>
> mioprogetto as mioprogetto2 as dependency. Mioframework has the two projects as modules.
> If I compile mioframework I have no problems.
> If I compile only mioprogetto2 I have no problems.
> If I compile only mioprogetto I have problems because the dependency is not matched. Here the error:
> [ERROR] Failed to execute goal on project my-mioprogetto: Could not resolve dependencies for project prova:my-mioprogetto:jar:0.4.0-SNAPSHOT: Could not find artifact prova:my-mioprogetto2:jar:0.4.0-SNAPSHOT in myrepo-xxxxxxx (http://repository.xxxxxxxxx) -> [Help 1]
> I attach the complete example test
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira