Fix for MAVEN-1526: issues a warning (instead of failing the build) when a case-sensitiveness dependency issue is found
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@116278 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
ba6aa8a555
commit
9bfb1b8d5d
3 files changed
+29
-3
No files matched your search
+25
-2
@@ -94,9 +94,32 @@
|
||||
We know that this dep "wants" to be bundled.
|
||||
-->
|
||||
|
||||
|
||||
<!--
|
||||
Check if there is no case-sensitive issues
|
||||
-->
|
||||
<util:file name="${lib.file.parent}/${lib.file.name}" var="checkFile" />
|
||||
<j:if test="${!(checkFile.getAbsolutePath().equals(checkFile.getCanonicalPath()))}">
|
||||
<ant:fail>Case-sensitive issue: The dependency ${dep.id} has a case problem. The dependency was either retrieved in the past with the wrong case or has been specified with the wrong case in your project.xml file. Fix your project.xml or update your local repository with the properly-cased file and try again.</ant:fail>
|
||||
<j:if test="${(!checkFile.getAbsolutePath().equals(checkFile.getCanonicalPath()))}">
|
||||
<ant:echo>
|
||||
############################################################################
|
||||
# WARNING: possible case-sensitiveness issue within a dependency #
|
||||
############################################################################
|
||||
# One possibility is that the dependency was either retrieved in the past #
|
||||
# with the wrong case or has been specified with the wrong case in your #
|
||||
# project.xml file. If that is the case, fix your project.xml or update #
|
||||
# your local repository with the properly-cased file and try again. #
|
||||
# #
|
||||
# Another possibility is that your MAVEN_HOME is set with different cases #
|
||||
# than its canonical representation in your operating systems. If that's #
|
||||
# the case, you can ignore this message or correct the value of MAVEN_HOME #
|
||||
# #
|
||||
# Reason for the warning: #
|
||||
# the dependency ${dep.id} is located at:
|
||||
'${checkFile.getAbsolutePath()}'
|
||||
# but was expected to be located at:
|
||||
'${checkFile.getCanonicalPath()}'
|
||||
############################################################################
|
||||
</ant:echo>
|
||||
</j:if>
|
||||
|
||||
<ant:echo>Bundling: ${dep.type} - ${dep.id} - ${dep.version}</ant:echo>
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@
|
||||
<pomVersion>3</pomVersion>
|
||||
<id>maven-ear-plugin</id>
|
||||
<name>Maven EAR Plugin</name>
|
||||
<currentVersion>1.6</currentVersion>
|
||||
<currentVersion>1.7-SNAPSHOT</currentVersion>
|
||||
<description>Ear Plugin for Maven</description>
|
||||
<shortDescription>Ear Plugin for Maven</shortDescription>
|
||||
<url>http://maven.apache.org/reference/plugins/ear/</url>
|
||||
|
||||
@@ -24,6 +24,9 @@
|
||||
<author email="nathan.coast@blueyonder.co.uk">Nathan Coast</author>
|
||||
</properties>
|
||||
<body>
|
||||
<release version="1.7-SNAPSHOT" date="on CVS">
|
||||
<action dev="felipeal" type="update" issue="MAVEN-1526">Issues a warning (instead of failing the build) when a case-sensitiveness dependency issue is found</action>
|
||||
</release>
|
||||
<release version="1.6" date="2004-12-05">
|
||||
<action dev="felipeal" type="fix" issue="MPEAR-27">Fixed the name of the bundled dependency when
|
||||
<code>maven.jar.overrides</code>is used.
|
||||
|
||||
Reference in new issue
Block a user