You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ch...@aami.com.au on 2008/05/15 01:31:07 UTC

classpath container issues

Given this fragment:

<classpathContainers>
    <classpathContainer>
org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/WebSphere 
v6.1 JRE</classpathContainer>
    <classpathContainer>
org.eclipse.jst.server.core.container/com.ibm.ws.ast.st.runtime.runtimeTarget.v61/was.base.v61
</classpathContainer>
    <classpathContainer>org.eclipse.jst.j2ee.internal.module.container</
classpathContainer>
</classpathContainers>

running mvn eclipse:eclipse will generate the appriate .classpath file:

<classpath>
  <classpathentry kind="src" path="src/main/java"/>
  <classpathentry kind="src" path="src/test/java" output=
"target/test-classes"/>
  <classpathentry kind="output" path="target/classes"/>
  <classpathentry kind="con" path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/WebSphere 
v6.1 JRE"/>
  <classpathentry kind="con" path=
"org.eclipse.jst.server.core.container/com.ibm.ws.ast.st.runtime.runtimeTarget.v61/was.base.v61"
/>
  <classpathentry kind="con" path=
"org.eclipse.jst.j2ee.internal.module.container"/>
  <classpathentry kind="var" path=
"M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar" sourcepath=
"M2_REPO/junit/junit/3.8.1/junit-3.8.1-sources.jar"/>
</classpath>

Any dependencies listed in the POM will all be added as a variable 
extension using the M2_REPO variable.

This leads me to a question.

We can specify the classpath container entries, fine, and that works.

However, doesn't this conflict with the dependencies section (which in 
turn generates the .classpath entries which will result in duplicate 
entried).

Adding in the classpath container entries fine fine from within eclipse.

However, what happens when you are attempting to build the app outside of 
eclipse (ie, from Hudson or other similar CI tool).

I do not have a good handle on how all of this is meant to work.

-Chris



**********************************************************************
CAUTION - This message is intended for the addressee named above. It may contain privileged or confidential information. 

If you are not the intended recipient of this message you must: 
- Not use, copy, distribute or disclose it to anyone other than the addressee;
- Notify the sender via return email; and
- Delete the message (and any related attachments) from your computer immediately.

Internet emails are not necessarily secure. Australian Associated Motors Insurers Limited ABN 92 004 791 744 (AAMI), and its related entities, do not accept responsibility for changes made to this message after it was sent.

Unless otherwise stated, views expressed within this email are the author's own and do not represent those of AAMI.
**********************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org