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:32:08 UTC
[jira] (MCOMPILER-90) Classifier doesn't load the good jar when use
with reactor
[ https://jira.codehaus.org/browse/MCOMPILER-90?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MCOMPILER-90.
-----------------------------------
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.
> Classifier doesn't load the good jar when use with reactor
> ----------------------------------------------------------
>
> Key: MCOMPILER-90
> URL: https://jira.codehaus.org/browse/MCOMPILER-90
> Project: Maven Compiler Plugin
> Issue Type: Bug
> Affects Versions: 2.0.2
> Reporter: Philippe Kernevez
>
> I have a project named _common_ that is build with the goal _test-jar_ for making a jar with the test classe.
> It produce :
> * one jar with only the _main_ classes (common-2.0.jar)
> * one jat with only the tests classes (common-2.0-tests.jar)
> I have another project (named _tests_ that need the _test_ for building its main classes.
> So I had this dependencies to its pom as I need both _main_ and _test_ classes:
> {code}
> <dependency>
> <groupId>com.octo.opensource.jmonitoring</groupId>
> <artifactId>common</artifactId>
> <version>2.0-SNAPSHOT</version>
> <classifier>tests</classifier>
> </dependency>
> <dependency>
> <groupId>com.octo.opensource.jmonitoring</groupId>
> <artifactId>common</artifactId>
> <version>2.0-SNAPSHOT</version>
> </dependency>
> {code}
> When I run only my _tests_ project, there is no problem, according to that the plugin use this classe path:
> {code}
> [DEBUG] Output directory: C:\dev\JMonitoring\framework\tests\target\test-classes
> [DEBUG] Classpath:
> [DEBUG] C:\dev\JMonitoring\framework\tests\target\test-classes
> [DEBUG] C:\dev\JMonitoring\framework\tests\target\classes
> [DEBUG] C:\local-repo\junit\junit\4.4\junit-4.4.jar
> [DEBUG] C:\local-repo\com\octo\opensource\jmonitoring\common\2.0-SNAPSHOT\common-2.0-SNAPSHOT-tests.jar
> [DEBUG] C:\local-repo\com\octo\opensource\jmonitoring\common\2.0-SNAPSHOT\common-2.0-SNAPSHOT.jar
> {code}
> But when I run it in the reactor with the _common_ project I have 2 times the same jar
> {code}
> [DEBUG] Output directory: C:\dev\JMonitoring\framework\tests\target\classes
> [DEBUG] Classpath:
> [DEBUG] C:\dev\JMonitoring\framework\tests\target\classes
> [DEBUG] C:\local-repo\junit\junit\4.4\junit-4.4.jar
> [DEBUG] C:\local-repo\com\octo\opensource\jmonitoring\common\2.0-SNAPSHOT\common-2.0-SNAPSHOT-tests.jar
> [DEBUG] C:\local-repo\com\octo\opensource\jmonitoring\common\2.0-SNAPSHOT\common-2.0-SNAPSHOT.jar
> {code}
> And my build fail during the compilation.
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)