Issue Details (XML | Word | Printable)

Key: MPECLIPSE-62
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: fabrizio giustina
Reporter: Dan Tran
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Maven 1.x Eclipse Plugin

maven.eclipse.conclasspath is ignored when junit test src is not present

Created: 29/Dec/04 02:46 AM   Updated: 27/Nov/05 04:32 PM
Component/s: None
Affects Version/s: 1.9
Fix Version/s: 1.10

Time Tracking:
Not Specified

Environment: XP, jdk 1.4.2


 Description  « Hide
Tracing thru the jelly code and tested it myself, maven-eclipse-plugin
completely ignore the processing of maven.eclipse.conclasspath when the ${unitTestSourcesPresent} is not true.

the code is in src/plugin-resources/templates/classpath.jelly

is it a bug?



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dan Tran added a comment - 03/Jan/05 07:18 PM
the work around to create a empty test source directory

David Eric Pugh added a comment - 27/Jan/05 02:31 PM
The workaournd describe of creating the empty directory is the right thing. There are quite a few places in Maven where this logic occurs, it's not an Eclipse plugin specific thing.

Jason Taft added a comment - 24/Feb/05 09:10 AM
Though the workaround does work, I am not understanding the reasoning behind it.

Maybe my situation will help explain my lack of understanding?

I am working on improving the eclipse plugin to allow me to create the appropriate .project and .classpath artifacts for use with Websphere Studio Application Developer (WSAD) 5. Although I can use the currently (I'm using v1.9 of this plugin) generated artifacts to successfully import a project into WSAD's java perspective, these artifacts need some additional information in order to be recognized by the J2EE perspective (the application assembly toolkit is now the j2ee perspective) shipped with WSAD.

One of the additions I need to make is to add a conclasspath entry for the websphere j2ee.ejb "container."

My ejb project doesn't contain any unit tests (and it isn't necessary to get into the merits of this decision).

I look forward to the enlightenment, be gentle , but I currently fail to see why creating an empty unit test src directory should be necessary as my long-term solution.

Thanks,
Jason Taft


Dan Tran added a comment - 27/Apr/05 07:13 PM
Can I reopen this? I have to document this work around in my comp, and everyone just seems to forget about this and confusions keep coming back.

Would be hard to fix the jelly code right?


Dan Tran added a comment - 27/Apr/05 07:13 PM
see my last comment

fabrizio giustina added a comment - 27/Nov/05 04:32 PM
fixed in svn