You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Andrew Perepelytsya (JIRA)" <ji...@codehaus.org> on 2006/05/11 23:54:40 UTC

[jira] Commented: (MIDEA-54) Fixed range versions in dependencies corrupt the module file

    [ http://jira.codehaus.org/browse/MIDEA-54?page=comments#action_65235 ] 

Andrew Perepelytsya commented on MIDEA-54:
------------------------------------------

If I temporarily modify pom to reference the version without [] it is ok again, but I can't leave it like this in the project.

> Fixed range versions in dependencies corrupt the module file
> ------------------------------------------------------------
>
>          Key: MIDEA-54
>          URL: http://jira.codehaus.org/browse/MIDEA-54
>      Project: Maven 2.x Idea Plugin
>         Type: Bug

>  Environment: maven 2.0.4, plugin snapshot built from svn
>     Reporter: Andrew Perepelytsya

>
>
> I have the following config snippet declared in pom.xml:
> {code}
> <dependency>
>                     <groupId>xerces</groupId>
>                     <artifactId>xercesImpl</artifactId>
>                     <!--
>                         Explicitly fixing on a dependency version (those square brackets)
>                         does not seem to work completely as expected at the moment.
>                         As a workaround, dependency excludes are sprinkled throughout the project.
>                         Keep an eye on:
>                             http://jira.codehaus.org/browse/MNG-1577
>                     -->
>                     <version>[2.8.0]</version>
>                 </dependency>
> {code}
> Note those *square brackets*, this works ok with Maven letting it sort of fix the 2.8.0 version. Now it seemed to be fine when I initially generated idea:idea project (dependency was at 2.6.2 version then). Recently it has been upgraded, and I went back to re-generate the core module via idea:module. The error I got:
> {panel}
> [WARNING] An error occurred during dependency resolution of the following artifact:
>     org.codehaus.mule:mule-core2.0-SNAPSHOT
> Caused by: Missing:
> ----------
> 1) xerces:xercesImpl:jar:[2.8.0]
>   Try downloading the file manually from the project website.
>   Then, install it using the command:
>       mvn install:install-file -DgroupId=xerces -DartifactId=xercesImpl \
>           -Dversion=[2.8.0] -Dpackaging=jar -Dfile=/path/to/file
>   Path to dependency:
>         1) org.codehaus.mule:mule-core:jar:2.0-SNAPSHOT
>         2) xerces:xercesImpl:jar:[2.8.0]
> ----------
> 1 required artifact is missing.
> {panel}
> The generated iml file had *all libraries removed*.

-- 
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