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

        

Reply via email to