The following comment has been added to this issue:
Author: fabrizio giustina
Created: Wed, 25 Feb 2004 8:40 AM
Body:
In my tests setting classloader to root doesn't completely solve the problem.
At least if used in jelly (using the invoke or invokeStatic tag) the reference
returned is to maven commons-lang 1.0 classes. You are able to use commons-lang
classes new in 2.0 but not methods added in classes already available in 1.0 (so all
the new StringUtils methods).
Please remove or update old maven dependency!
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1153&page=comments#action_17119
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1153
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-1153
Summary: update commons-lang dependency
Type: Improvement
Status: Open
Priority: Trivial
Original Estimate: 5 minutes
Time Spent: Unknown
Remaining: 5 minutes
Project: maven
Fix Fors:
1.0-rc2
Versions:
1.0-rc2
Assignee: Brett Porter
Reporter: fabrizio giustina
Created: Sat, 7 Feb 2004 10:54 AM
Updated: Wed, 25 Feb 2004 8:40 AM
Description:
actually maven dependencies include commons-lang 1.0-b1.1.
It would be better to update it to commons-lang 2.0: the new release is totally
compatible with the old (no methods have been removed) and this will allows to use new
useful string utils method in plugin (replace, trim, ...).
Actually also if you include a commons-lang 2.0 dependency in a plugin it seems you
are not able to call commons-lang 2.0 methods from jelly, since it always find the old
commons-lang 1.0 classes in maven classloader first (unless specifing a root
classloader in dependency).
Change: modify in project.xml
<dependency>
<id>commons-lang</id>
<version>1.0-b1.1</version>
<url>http://jakarta.apache.org/commons/</url>
</dependency>
with:
<dependency>
<artifactId>commons-lang</artifactId>
<groupId>commons-lang</groupId>
<version>2.0</version>
<url>http://jakarta.apache.org/commons/</url>
</dependency>
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]