You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Paul Benedict (JIRA)" <ji...@codehaus.org> on 2009/08/07 08:46:59 UTC

[jira] Updated: (MJAR-126) Test Jar should not include src/main/* contents

     [ http://jira.codehaus.org/browse/MJAR-126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Benedict updated MJAR-126:
-------------------------------

    Description: 
My project creates a jar and a test-jar. The first one is obviously the main program, but the second one contains test harnesses for consumption with other projects. What is annoying is how the test-jar gets all the src/main/resources contents. I don't understand (or see why or how) it should receive anything from src/main/. I actually think current behavior is incorrect; it should only get the contents from src/test/. 

This is especially true since src/main/resources contains my Hibernate mappings. To prevent duplicate mappings at load time (when both jars are used), I have to exclude every resource in the test-jar. 

  was:
My project creates a jar and a test-jar. The first one is obviously the main program, but the second one contains test harnesses for consumption with other projects. What is annoying is how the test-jar gets all the src/main/resources contents. I don't understand (or see why or how) it should receive anything from src/main/*. I actually think current behavior is incorrect; it should only get the contents from src/test/*. 

This is especially true since src/main/resources contains my Hibernate mappings. To prevent duplicate mappings at load time (when both jars are used), I have to exclude every resource in the test-jar. 


> Test Jar should not include src/main/* contents
> -----------------------------------------------
>
>                 Key: MJAR-126
>                 URL: http://jira.codehaus.org/browse/MJAR-126
>             Project: Maven 2.x Jar Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Paul Benedict
>
> My project creates a jar and a test-jar. The first one is obviously the main program, but the second one contains test harnesses for consumption with other projects. What is annoying is how the test-jar gets all the src/main/resources contents. I don't understand (or see why or how) it should receive anything from src/main/. I actually think current behavior is incorrect; it should only get the contents from src/test/. 
> This is especially true since src/main/resources contains my Hibernate mappings. To prevent duplicate mappings at load time (when both jars are used), I have to exclude every resource in the test-jar. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira