Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Not A Bug
-
Affects Version/s: 2.2
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
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.
Activity
Paul Benedict
made changes -
| Field | Original Value | New Value |
|---|---|---|
| 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. |
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. |
Benjamin Bentmann
made changes -
| Attachment | MJAR-126.zip [ 43679 ] |
Paul Benedict
made changes -
| Resolution | Not A Bug [ 6 ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |