Issue Details (XML | Word | Printable)

Key: MAVEN-1526
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Felipe Leme
Reporter: Ludovic Claude
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 1

Regression: build fails because of case problem in dependency

Created: 08/Dec/04 06:02 AM   Updated: 08/Mar/06 10:44 PM   Resolved: 10/Dec/04 05:35 AM
Return to search
Component/s: core
Affects Version/s: 1.0.2
Fix Version/s: 1.1-beta-1

Time Tracking:
Not Specified

Environment: Windows XP
Issue Links:
Supercedes
 
dependent
 


 Description  « Hide

I have updated from maven 1.0.1 to maven 1.0.2, and now my build fails with the following error message:

Case-sensitive issue: The dependency commons-httpclient:commons-httpclient has a case problem. The dependency was eithe
r retrieved in the past with the wrong case or has been specified with the wrong case in your project.xml file. Fix you
r project.xml or update your local repository with the properly-cased file and try again.

I checked again and again, and in my project.xml commons-httpclient is spelled in lowercase, and in the maven repository it is also lowercase. Please update the error message and provide more information about the origin of this error, and don't fail on this issue but only provide a warning.



Felipe Leme added a comment - 08/Dec/04 06:19 AM

Ludovic,

That message is caused by a change on the maven-ear-plugin (MPEAR-9).

Looks like the fix for that issue breaks some cases where the MAVEN_HOME is set with different cases - please take a look on the comments on the MPEAR-9 and give us your feedback.

Thanks (and sorry for the problem),

– Felipe


Felipe Leme added a comment - 08/Dec/04 07:12 AM

Ludovic,

I changed the code to only issue a warning. Could you please install the latest maven-ear-plugin from CVS (or download it from my page at apache, running the command maven plugin:download -Dmaven.repo.remote=http://apache.org/~felipeal/maven_repo -DgroupId=maven -DartifactId=maven-ear-plugin -Dversion=1.7-SNAPSHOT) and see it works now?

Thanks again,

Felipe

PS: if it works, could you please post the warning messages here?


Felipe Leme added a comment - 09/Dec/04 07:39 AM

I will be releasing maven-ear-plugin 1.6.1 over the weekend. Meanwhile, I provided a 'pre-release' to be tested by those having these issues.

You can install it using the following command:

maven plugin:download -Dmaven.repo.remote=http://apache.org/~felipeal/maven_repo -DgroupId=maven -DartifactId=maven-ear-plugin -Dversion=1.6.1-SNAPSHOT

So, for those having issues with the ear plugin bundled with Maven 1.0.2, please try this new version and let us know the result.

Thanks (and sorry for the hassle

– Felipe


Troy Poppe added a comment - 09/Dec/04 10:29 AM

I've tested 1.6.1-SNAPSHOT with my project, and the case sensitivity issues seems to be resolved.


Ludovic Claude added a comment - 09/Dec/04 12:41 PM

It works also for me with this new plugin. Thanks.


Ludovic Claude added a comment - 09/Dec/04 12:47 PM

And i didn't notice any particular warning, the following is an extract of the output of the ear plugin:

ear:init:

ear:ear:
fa:ear:applicationXml:
[echo] Build file 'application.xml'

[copy] Copying 1 file to D:\developpement\projets\J2EE\ear\target
[echo] Building EAR finactive-ear-1.0 with appxml "D:\developpement\projets\J2EE\ear/target/application.xml"
[echo] Dependency commons-httpclient-2.0.jar will be bundled as commons-httpclient-2.0.jar
[copy] Copying 1 file to D:\developpement\projets\J2EE\ear\target\tmpEarDeps
[echo] Dependency commons-fileupload-1.0.jar will be bundled as commons-fileupload-1.0.jar
[copy] Copying 1 file to D:\developpement\projets\J2EE\ear\target\tmpEarDeps
[echo] Dependency struts-1.2.4.jar will be bundled as struts-1.2.4.jar
[copy] Copying 1 file to D:\developpement\projets\J2EE\ear\target\tmpEarDeps
[echo] Dependency commons-beanutils-1.6.1.jar will be bundled as commons-beanutils-1.6.1.jar


Felipe Leme added a comment - 10/Dec/04 05:35 AM

Fixed on maven-ear-plugin 1.6.1 (which will be released this weekend).