Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.0.4
-
Fix Version/s: 3.0-alpha-1
-
Component/s: Dependencies
-
Labels:None
-
Complexity:Intermediate
-
Testcase included:yes
-
Number of attachments :
Description
Added these jars to M2_HOME/custom to allow using scm based remote repos
http://www.ibiblio.org/maven2/org/apache/maven/scm/maven-scm-api/1.0-beta-2/maven-scm-api-1.0-beta-2.jar
http://www.ibiblio.org/maven2/org/apache/maven/scm/maven-scm-manager-plexus/1.0-beta-2/maven-scm-manager-plexus-1.0-beta-2.jar
http://www.ibiblio.org/maven2/org/apache/maven/scm/maven-scm-provider-svn/1.0-beta-2/maven-scm-provider-svn-1.0-beta-2.jar
http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/wagon/wagon-scm/1.0-alpha-7-SNAPSHOT/wagon-scm-1.0-alpha-7-20060308.183410-3.jar
bin/m2.conf
main is org.apache.maven.cli.MavenCli from plexus.core.maven
set maven.home default $
{user.home}/m2
[plexus.core]
load $
[plexus.core.maven]
load ${maven.home}
/custom/*.jar
load $
/lib/*.jar
When running "mvn install" and "mvn testwagonscm:test" in the attached test case you get a ClassCastException although the Class to assign to and the assigned one are the same. The problem seems to be that they come from different classloaders. This problem makes the project-info-report:scm goal fail.
Issue Links
Activity
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 2.0.5 [ 12294 ] | |
| Testcase included | yes |
| Fix Version/s | 2.1 [ 11704 ] | |
| Fix Version/s | 2.0.5 [ 12294 ] |
| Fix Version/s | 2.1 [ 11704 ] | |
| Fix Version/s | 2.1.x [ 13142 ] |
| Assignee | John Casey [ jdcasey ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |
| Fix Version/s | 2.1-alpha-1 [ 13143 ] | |
| Resolution | Fixed [ 1 ] | |
| Fix Version/s | 2.1 [ 13142 ] |
you need to filter anything in lib (or custom) from turning up in plugins (in the plugin manager).
So replacing anything in lib by putting it in custom is fine, but adding stuff is not.