You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@codehaus.org> on 2014/11/25 21:31:49 UTC
[jira] (MECLIPSE-211) Module of a POM are not included in Classpath
[ https://jira.codehaus.org/browse/MECLIPSE-211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MECLIPSE-211.
-----------------------------------
Resolution: Won't Fix
Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.
> Module of a POM are not included in Classpath
> ---------------------------------------------
>
> Key: MECLIPSE-211
> URL: https://jira.codehaus.org/browse/MECLIPSE-211
> Project: Maven Eclipse Plugin
> Issue Type: Bug
> Components: WTP support
> Affects Versions: 2.2
> Environment: WinXP SP1 / Eclipse 3.2.1
> Reporter: Vincent Thoulé
>
> Hi,
> I am currently refactoring a set of project for JIRA Plugin and I encounter the following problem.
> I have :
> * a first Project *jira-plugin-A-project-parent* :
> {code:xml}<?xml version="1.0" encoding="UTF-8"?>
> <project>
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.mypropject</groupId>
> <artifactId>jira-plugin-A-project-parent</artifactId>
> <packaging>pom</packaging>
> <name>jira-plugin-A-project-parent</name>
> <version>1.0-SNAPSHOT</version>
> <modules>
> <module>jira-plugin-A-module-1</module>
> <module>jira-plugin-A-module-2</module>
> <module>jira-plugin-A-module-3</module>
> <module>jira-plugin-A-module-4</module>
> </modules>
> <dependencies>
> <dependency>
> <groupId>com.atlassian</groupId>
> <artifactId>atlassian-jira-parent</artifactId>
> <version>3.6.5</version>
> </dependency>
> <dependency>
> ...
> </dependency>
> </dependencies>
> </project>{code}
> Note that all module may not have Java Nature.
> * a second Project *jira-plugin-B-project-parent* :
> {code:xml}<?xml version="1.0" encoding="UTF-8"?>
> <project>
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.mypropject</groupId>
> <artifactId>jira-plugin-B-project-parent</artifactId>
> <packaging>pom</packaging>
> <name>jira-plugin-B-project-parent</name>
> <version>1.0-SNAPSHOT</version>
> <modules>
> <module>jira-plugin-B-module-1</module>
> <module>jira-plugin-B-module-2</module>
> </modules>
> <dependencies>
> <dependency>
> <groupId>com.mypropject</groupId>
> <artifactId>atlassian-jira-parent</artifactId>
> <version>3.6.5</version>
> </dependency>
> <dependency>
> ...
> </dependency>
> </dependencies>
> </project>{code}
> Each module inherits parent dependencies plus others specific dependencies.
> Among these dependencies, we may have a module i.e. *jira-plugin-B-module-1* which have in dependency, the module of *jira-plugin-A-project-parent* .
> To do that, I create POM for *jira-plugin-B-module-1* as follow :
> {code:xml}<?xml version="1.0" encoding="ISO-8859-1"?>
> <project>
> <modelVersion>4.0.0</modelVersion>
> <parent>
> <groupId>com.mypropject</groupId>
> <artifactId>jira-plugin-B-project-parent</artifactId>
> <version>1.0-SNAPSHOT</version>
> </parent>
> <groupId>com.mypropject</groupId>
> <artifactId>jira-plugin-B-module-1</artifactId>
> <name>jira-plugin-B-module-1</name>
> <version>1.0-SNAPSHOT</version>
> <dependencies>
> <dependency>
> <groupId>com.mypropject</groupId>
> <artifactId>jira-plugin-A-project-parent</artifactId>
> <version>1.0-SNAPSHOT</version>
> <type>pom</type>
> </dependency>
> </dependencies>
> </project>{code}
> For the goal *mvn compile*, it seems to be to assumed correctly.
> But the goal *mvn eclipse:eclipse -Dwtpversion=1.0 -Dnocompile=true*, the *.classpath* is generates with modules of *jira-plugin-A-project-parent* .
> Cheers
> Vincent
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)