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 2.x Eclipse Plugin
  • MECLIPSE-566

The plugin fails to exclude certain dependencies.

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Blocker Blocker
  • Resolution: Unresolved
  • Affects Version/s: 2.6
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Hide
    ARCH: x86
    ECLIPSE_HOME: E:\Programme\eclipse-SDK-3.5M7-win32\eclipse
    NL: de_DE
    OS: win32
    WS: win32
    eclipse.product: org.eclipse.sdk.ide
    eclipse.vm: h:/jdk1.6.0/bin/javaw.exe
    java.runtime.name: Java(TM) SE Runtime Environment
    java.runtime.version: 1.6.0_13-b03
    settings.localRepository: H:\.homedir\.m2\repository
    Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100)
    Java version: 1.6.0_13
    Java home: h:\jdk1.6.0\jre
    Default locale: de_DE, platform encoding: Cp1252
    OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
    Show
    ARCH: x86 ECLIPSE_HOME: E:\Programme\eclipse-SDK-3.5M7-win32\eclipse NL: de_DE OS: win32 WS: win32 eclipse.product: org.eclipse.sdk.ide eclipse.vm: h:/jdk1.6.0/bin/javaw.exe java.runtime.name: Java(TM) SE Runtime Environment java.runtime.version: 1.6.0_13-b03 settings.localRepository: H:\.homedir\.m2\repository Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100) Java version: 1.6.0_13 Java home: h:\jdk1.6.0\jre Default locale: de_DE, platform encoding: Cp1252 OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

Description

I have a project, which uses dependencies provided by some CLASSPATH container on one hand and on the other hand dependencies as coded in a pom.xml file. The latter are shown as usual as their own CLASSPATH container ("Maven Dependencies")

When running the built application finally I need to filter away duplicate entries from the runtime classpath (which are though needed at the compile classpath, so have them in the pom.xml as dependencies as well as in the first mentioned classpath container).

The relevant parts of my pom.xml look like:

<project>
...
<dependencies>
<dependency>
<groupId>anl.gov</groupId>
<artifactId>repast.simphony.bin_and_src </artifactId>
<version>1.2.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>anl.gov</groupId>
<artifactId>saf.core.runtime</artifactId>
<version>UNKNOWN</version>
<scope>compile</scope>
</dependency>
</dependencies>
...
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.6</version>
<configuration>
<excludes>
<exclude>anl.gov:repast.simphony.bin_and_src</exclude>
<exclude>anl.gov:saf.core.runtime</exclude>
</excludes>
</configuration>
</plugin>
...
</plugins>
</pluginManagement>
</build>
</project>

The above configuration is well interpreted, if I run `mvn eclipse:clean eclipse:eclipse`. In that case exactly the dependency tree I want is prepared in the workspace node of my project. BUT if I run `mvn eclipse:clean eclipse:eclipse eclipse:m2eclipse` to get the `Maven Dependencies` node there (need it for the "Run Configuration") and the other m2eclipse features, this dependency tree again contains the yet excluded artifacts. I tried every combination of exclusion, excludes and so on, but didn't get the hint to manage it.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Karl Pietrzak added a comment - 25/Aug/10 8:26 AM

Could you please attach an example project, and the generated .classpath files for eclipse and myeclipse? It'll make it much easier for us.

Show
Karl Pietrzak added a comment - 25/Aug/10 8:26 AM Could you please attach an example project, and the generated .classpath files for eclipse and myeclipse? It'll make it much easier for us.

People

  • Assignee:
    Unassigned
    Reporter:
    Daniel Kahlenberg
Vote (1)
Watch (2)

Dates

  • Created:
    15/May/09 7:51 AM
    Updated:
    25/Aug/10 8:26 AM
  • 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.