[ http://jira.codehaus.org/browse/MEV-113?page=comments#action_48648 ]
Matt Raible commented on MEV-113:
---------------------------------
Since I already have spring as a dependency, it seems to me that I shouldn't
need to exclude spring-web from spring-mock. spring-web as a dependency tries
to download struts, jsf and other classes that are required for compiling - but
not at runtime.
<dependency artifactId="spring" groupId="springframework"
version="1.2.5"/>
<dependency artifactId="spring-mock" groupId="springframework"
version="1.2.5" scope="test">
<exclusion artifactId="spring-jdbc" groupId="springframework"/>
<exclusion artifactId="spring-web" groupId="springframework"/>
</dependency>
> spring-mock depends on struts, which fails to download
> ------------------------------------------------------
>
> Key: MEV-113
> URL: http://jira.codehaus.org/browse/MEV-113
> Project: Maven Evangelism
> Type: Bug
> Components: Invalid POM
> Reporter: Matt Raible
> Assignee: Carlos Sanchez
>
>
> I'm using Maven 2's Ant Tasks in my build.xml:
> <dependency artifactId="spring-mock" groupId="springframework"
> version="1.2.5"/>
> When I add the line above, I get:
> [artifact:dependencies] Resolving dependencies...
> [artifact:dependencies] Downloading:
> springframework/spring-mock/1.2.5/spring-mo
> ck-1.2.5.pom
> [artifact:dependencies] Transferring 0K
> [artifact:dependencies] [WARNING]
> [artifact:dependencies] This artifact has been relocated to
> javax.sql:jdbc-std
> ext:2.0.
> [artifact:dependencies]
> [artifact:dependencies] Downloading: struts/struts/1.2.7/struts-1.2.7.pom
> [artifact:dependencies] [WARNING] Unable to get resource from repository
> remote
> (http://repo1.maven.org/maven2)
> [artifact:dependencies] [WARNING]
> [artifact:dependencies] ***** Using defaults for missing POM
> struts:struts:pom
> :1.2.7 *****
> BUILD FAILED
> spring-mock.jar does not have any dependencies on struts.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]