[ http://jira.codehaus.org/browse/MIDEA-42?page=all ]
Edwin Punzalan updated MIDEA-42: -------------------------------- Assign To: Edwin Punzalan Remaining Estimate: 2 hours Original Estimate: 2 hours > Maven IDEA Plugin does not respect dependency exclusions > -------------------------------------------------------- > > Key: MIDEA-42 > URL: http://jira.codehaus.org/browse/MIDEA-42 > Project: Maven 2.x Idea Plugin > Type: Bug > Environment: WinXP, JDK 1.5, IDEA 5.1, Maven 2.0.3, maven-idea-plugin > 2.0-beta-2-SNAPSHOT (built from source) > Reporter: Wendy Smoak > Assignee: Edwin Punzalan > Fix For: 2.0 > > Original Estimate: 2 hours > Remaining: 2 hours > > To reproduce, use the archetype plugin to create a sample app, then add the > following dependency to pom.xml: > <dependency> > <groupId>htmlunit</groupId> > <artifactId>htmlunit</artifactId> > <version>1.8</version> > <exclusions> > <exclusion> > <groupId>javax.xml</groupId> > <artifactId>jsr173</artifactId> > </exclusion> > </exclusions> > </dependency> > Assuming you do *not* have javax.xml:jsr173:jar:1.0 in your local repo, > 'mvn install' will work fine, but 'mvn idea:idea' will show this: > $ mvn idea:idea > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'idea'. > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] Building Maven Quick Start Archetype > [INFO] task-segment: [idea:idea] > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] Preparing idea:idea > [INFO] No goals needed for project - skipping > [INFO] [idea:idea] > [WARNING] > Artifact junit:junit:jar:3.8.1:test retains local scope 'test' > overriding broader scope 'compile' > given by a dependency. If this is not intended, modify or remove the > local scope. > Downloading: http://repo1.maven.org/maven2/javax/xml/jsr173/1.0/jsr173-1.0.jar > [WARNING] Unable to get resource from repository central > (http://repo1.maven.org/maven2) > [WARNING] An error occurred during dependency resolution of the following > artifact: > com.example:myapp1.0-SNAPSHOT > Caused by: Missing: > ---------- > 1) javax.xml:jsr173:jar:1.0 > Try downloading the file manually from: > http://java.sun.com/webservices/downloads/webservicespack.html > Then, install it using the command: > mvn install:install-file -DgroupId=javax.xml -DartifactId=jsr173 \ > -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file > Path to dependency: > 1) com.example:myapp:jar:1.0-SNAPSHOT > 2) htmlunit:htmlunit:jar:1.8 > 3) dom4j:dom4j:jar:1.5 > 4) javax.xml:jsr173:jar:1.0 > ---------- > 1 required artifact is missing. > for artifact: > com.example:myapp:jar:1.0-SNAPSHOT > from the specified remote repositories: > central (http://repo1.maven.org/maven2), > Apache Snapshots (http://cvs.apache.org/maven-snapshot-repository/) > [INFO] Adding resource directory: c:\temp\myapp\src\main\resources > [INFO] jdkName is not set, using [java version1.5.0_06] as default. > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESSFUL > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 3 seconds > [INFO] Finished at: Tue Mar 28 18:15:59 MST 2006 > [INFO] Final Memory: 3M/6M > [INFO] > ------------------------------------------------------------------------ > The IDEA config files that are created have no libraries: Settings -> > Modules -> Classpath (Libraries) lists only src/main/resources. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira