jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 1.x Eclipse Plugin
  • MPECLIPSE-85

Support for "lib" classpathentry

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: 1.10
  • Labels:
    None

Description

To generate lib classpath entries for jar files not in maven repositories, I have added the following code to classpath.jelly locally (after processing of maven.eclipse.conclasspath property):

<u:tokenize var="libclasspaths" delim=",">${maven.eclipse.libclasspath}</u:tokenize>
<j:forEach var="libclasspath" items="${libclasspaths}" trim="true">
<classpathentry kind="lib" path="${libclasspath}"/>
</j:forEach>

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
fabrizio giustina added a comment - 09/Oct/05 12:22 PM

jar files not in the maven repository should be added to project.xml using the standard maven jar override system.
The project should mantain the same set of dependencies both when built using maven than Eclipse, why should ypu need a dependency only when the project is built using eclipse?

Show
fabrizio giustina added a comment - 09/Oct/05 12:22 PM jar files not in the maven repository should be added to project.xml using the standard maven jar override system. The project should mantain the same set of dependencies both when built using maven than Eclipse, why should ypu need a dependency only when the project is built using eclipse?
Hide
Permalink
James Shute added a comment - 14/Mar/06 4:00 AM

I have such a scenario. My project uses xmlbeans - for ease of deployment and avoiding incompatibility issues I want the xmlbeans generated classes to be in my jar.

This is easy to achieve with the main maven build, however it is not so easy to integrate with Eclipse.

The most reliable way I have found is to just add the jar that the xmlbeans build creates as a reference in the eclipse project. I don't want this jar to be public so putting it in the repository as suggested is not appropriate.

To achieve this with the eclipse plugin as it stands I've had to set the maven.eclipse.classpath.include property to include my jar file, and then use a <replace> in a post-goal to turn the reference type into a lib, which is a bit ugly.

  • I haven't been able to find any other approach that works for Eclipse that doesn't delete all the .class files when you do a Project -> Clean
Show
James Shute added a comment - 14/Mar/06 4:00 AM I have such a scenario. My project uses xmlbeans - for ease of deployment and avoiding incompatibility issues I want the xmlbeans generated classes to be in my jar. This is easy to achieve with the main maven build, however it is not so easy to integrate with Eclipse. The most reliable way I have found is to just add the jar that the xmlbeans build creates as a reference in the eclipse project. I don't want this jar to be public so putting it in the repository as suggested is not appropriate. To achieve this with the eclipse plugin as it stands I've had to set the maven.eclipse.classpath.include property to include my jar file, and then use a <replace> in a post-goal to turn the reference type into a lib, which is a bit ugly.
  • I haven't been able to find any other approach that works for Eclipse that doesn't delete all the .class files when you do a Project -> Clean

People

  • Assignee:
    fabrizio giustina
    Reporter:
    Flemming Seerup
Vote (0)
Watch (2)

Dates

  • Created:
    29/Mar/05 3:07 AM
    Updated:
    14/Mar/06 4:00 AM
    Resolved:
    09/Oct/05 12:22 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.