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:52:40 UTC

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

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


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

Posted by "Immo Huneke (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MIDEA-54?page=comments#action_84827 ] 
            
Immo Huneke commented on MIDEA-54:
----------------------------------

By the way, I don't understand why this issue is marked "closed" - it still seems broken to me just as the description above says.

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

        

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

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MIDEA-54?page=all ]

Dennis Lundberg closed MIDEA-54.
--------------------------------

    Resolution: Duplicate

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

        

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

Posted by "Andrew Perepelytsya (JIRA)" <ji...@codehaus.org>.
    [ 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


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

Posted by "Immo Huneke (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MIDEA-54?page=comments#action_84826 ] 
            
Immo Huneke commented on MIDEA-54:
----------------------------------

This is proving very inconvenient for us too. We have some components that can work with a range of versions of other components. Each time we wish to regenerate the IDEA module files, we have to replace every range expression with just a single version number in order to ensure that the .iml file doesn't omit all external libraries.

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

        

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

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MIDEA-54?page=comments#action_84862 ] 
            
Dennis Lundberg commented on MIDEA-54:
--------------------------------------

It's closed with the "Resolution" set to "Duplicate". That means that there is another issue in JIRA for the same problem. The other issue - MIDEA-57 - is used to track the issue instead of this one.

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