You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Lukas Fryc (JIRA)" <ji...@codehaus.org> on 2011/07/11 16:40:42 UTC

[jira] Created: (MSHADE-103) maven-shade-plugin does not resolve from user-defined repositories

maven-shade-plugin does not resolve from user-defined repositories
------------------------------------------------------------------

                 Key: MSHADE-103
                 URL: https://jira.codehaus.org/browse/MSHADE-103
             Project: Maven 2.x Shade Plugin
          Issue Type: Bug
    Affects Versions: 1.4, 1.3.3
         Environment: Maven 3.0.3 (works with 2.2.1)
            Reporter: Lukas Fryc


maven-shade-plugin doesn't consult repositories defined in 
settings.xml when trying to resolve parents of given pom. It contacts 
only central repo: 

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-shade-plugin:1.4:shade (default) on 
project richfaces-components-api: Error creating shaded jar: 1 problem 
was encountered while building the effective model for 
org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT 
[ERROR] [FATAL] Non-resolvable parent POM for 
org.richfaces:richfaces-bom:4.1.0-SNAPSHOT: Could not find artifact 
org.richfaces:richfaces-parent:pom:10 in central 
(http://repo1.maven.org/maven2) and 'parent.relativePath' points at 
wrong local POM @ org.richfaces:richfaces-bom:4.1.0-SNAPSHOT, 
/home/lfryc/workspaces/richfaces/build/bom/pom.xml, line 24, column 10 
[ERROR] for project 
org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
/home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
for project org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
/home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
[ERROR] -> [Help 1] 


There is affected project (it references version 1.3.3, but the behavior is same with 1.4) if you would like to try at own: 

https://github.com/richfaces/components/blob/develop/dist/richfaces-components-api/pom.xml

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSHADE-103) maven-shade-plugin does not resolve from user-defined repositories

Posted by "Joseph Walton (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSHADE-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=300009#comment-300009 ] 

Joseph Walton edited comment on MSHADE-103 at 5/30/12 4:25 AM:
---------------------------------------------------------------

This doesn't seem to occur with Maven 3.0.4. Could it be due to MNG-5149 or MNG-5224?
                
      was (Author: joewalton):
    This doesn't seem to occur with Maven 3.0.4. Could it be due to MNG-5149?
                  
> maven-shade-plugin does not resolve from user-defined repositories
> ------------------------------------------------------------------
>
>                 Key: MSHADE-103
>                 URL: https://jira.codehaus.org/browse/MSHADE-103
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.3.3, 1.4
>         Environment: Maven 3.0.3 (works with 2.2.1)
>            Reporter: Lukas Fryc
>
> maven-shade-plugin doesn't consult repositories defined in 
> settings.xml when trying to resolve parents of given pom. It contacts 
> only central repo: 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-shade-plugin:1.4:shade (default) on 
> project richfaces-components-api: Error creating shaded jar: 1 problem 
> was encountered while building the effective model for 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT 
> [ERROR] [FATAL] Non-resolvable parent POM for 
> org.richfaces:richfaces-bom:4.1.0-SNAPSHOT: Could not find artifact 
> org.richfaces:richfaces-parent:pom:10 in central 
> (http://repo1.maven.org/maven2) and 'parent.relativePath' points at 
> wrong local POM @ org.richfaces:richfaces-bom:4.1.0-SNAPSHOT, 
> /home/lfryc/workspaces/richfaces/build/bom/pom.xml, line 24, column 10 
> [ERROR] for project 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> for project org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> [ERROR] -> [Help 1] 
> There is affected project (it references version 1.3.3, but the behavior is same with 1.4) if you would like to try at own: 
> https://github.com/richfaces/components/blob/develop/dist/richfaces-components-api/pom.xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSHADE-103) maven-shade-plugin does not resolve from user-defined repositories

Posted by "Joseph Walton (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSHADE-103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joseph Walton updated MSHADE-103:
---------------------------------

    Attachment: MSHADE-103.tar.gz

I have a case where the "remote" repository is a local directory and the local repository is configured to keep the build isolated.

In MSHADE-103.tar.gz, with {{settings.xml}} configured with local paths:

{code}
mvn3 --settings settings.xml clean package
{code}

fails to find the parent pom even though it's already in the configured local repository.

The dependency is an arbitrary choice of jar. If it's removed then the shading succeeds.
                
> maven-shade-plugin does not resolve from user-defined repositories
> ------------------------------------------------------------------
>
>                 Key: MSHADE-103
>                 URL: https://jira.codehaus.org/browse/MSHADE-103
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.3.3, 1.4
>         Environment: Maven 3.0.3 (works with 2.2.1)
>            Reporter: Lukas Fryc
>         Attachments: MSHADE-103.tar.gz
>
>
> maven-shade-plugin doesn't consult repositories defined in 
> settings.xml when trying to resolve parents of given pom. It contacts 
> only central repo: 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-shade-plugin:1.4:shade (default) on 
> project richfaces-components-api: Error creating shaded jar: 1 problem 
> was encountered while building the effective model for 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT 
> [ERROR] [FATAL] Non-resolvable parent POM for 
> org.richfaces:richfaces-bom:4.1.0-SNAPSHOT: Could not find artifact 
> org.richfaces:richfaces-parent:pom:10 in central 
> (http://repo1.maven.org/maven2) and 'parent.relativePath' points at 
> wrong local POM @ org.richfaces:richfaces-bom:4.1.0-SNAPSHOT, 
> /home/lfryc/workspaces/richfaces/build/bom/pom.xml, line 24, column 10 
> [ERROR] for project 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> for project org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> [ERROR] -> [Help 1] 
> There is affected project (it references version 1.3.3, but the behavior is same with 1.4) if you would like to try at own: 
> https://github.com/richfaces/components/blob/develop/dist/richfaces-components-api/pom.xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSHADE-103) maven-shade-plugin does not resolve from user-defined repositories

Posted by "Joseph Walton (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSHADE-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=300009#comment-300009 ] 

Joseph Walton edited comment on MSHADE-103 at 6/1/12 12:23 AM:
---------------------------------------------------------------

-This doesn't seem to occur with Maven 3.0.4. Could it be due to- MNG-5149 -or- MNG-5224?

Sorry, I'm still seeing this with 3.0.4.
                
      was (Author: joewalton):
    This doesn't seem to occur with Maven 3.0.4. Could it be due to MNG-5149 or MNG-5224?
                  
> maven-shade-plugin does not resolve from user-defined repositories
> ------------------------------------------------------------------
>
>                 Key: MSHADE-103
>                 URL: https://jira.codehaus.org/browse/MSHADE-103
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.3.3, 1.4
>         Environment: Maven 3.0.3 (works with 2.2.1)
>            Reporter: Lukas Fryc
>
> maven-shade-plugin doesn't consult repositories defined in 
> settings.xml when trying to resolve parents of given pom. It contacts 
> only central repo: 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-shade-plugin:1.4:shade (default) on 
> project richfaces-components-api: Error creating shaded jar: 1 problem 
> was encountered while building the effective model for 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT 
> [ERROR] [FATAL] Non-resolvable parent POM for 
> org.richfaces:richfaces-bom:4.1.0-SNAPSHOT: Could not find artifact 
> org.richfaces:richfaces-parent:pom:10 in central 
> (http://repo1.maven.org/maven2) and 'parent.relativePath' points at 
> wrong local POM @ org.richfaces:richfaces-bom:4.1.0-SNAPSHOT, 
> /home/lfryc/workspaces/richfaces/build/bom/pom.xml, line 24, column 10 
> [ERROR] for project 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> for project org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> [ERROR] -> [Help 1] 
> There is affected project (it references version 1.3.3, but the behavior is same with 1.4) if you would like to try at own: 
> https://github.com/richfaces/components/blob/develop/dist/richfaces-components-api/pom.xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSHADE-103) maven-shade-plugin does not resolve from user-defined repositories

Posted by "Benson Margulies (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSHADE-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=301899#comment-301899 ] 

Benson Margulies commented on MSHADE-103:
-----------------------------------------

I guess we'll need a branch.

                
> maven-shade-plugin does not resolve from user-defined repositories
> ------------------------------------------------------------------
>
>                 Key: MSHADE-103
>                 URL: https://jira.codehaus.org/browse/MSHADE-103
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.3.3, 1.4
>         Environment: Maven 3.0.3 (works with 2.2.1)
>            Reporter: Lukas Fryc
>         Attachments: 0001-MSHADE-103-Use-the-ProjectBuilder-API-to-include-rem.patch, MSHADE-103.tar.gz
>
>
> maven-shade-plugin doesn't consult repositories defined in 
> settings.xml when trying to resolve parents of given pom. It contacts 
> only central repo: 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-shade-plugin:1.4:shade (default) on 
> project richfaces-components-api: Error creating shaded jar: 1 problem 
> was encountered while building the effective model for 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT 
> [ERROR] [FATAL] Non-resolvable parent POM for 
> org.richfaces:richfaces-bom:4.1.0-SNAPSHOT: Could not find artifact 
> org.richfaces:richfaces-parent:pom:10 in central 
> (http://repo1.maven.org/maven2) and 'parent.relativePath' points at 
> wrong local POM @ org.richfaces:richfaces-bom:4.1.0-SNAPSHOT, 
> /home/lfryc/workspaces/richfaces/build/bom/pom.xml, line 24, column 10 
> [ERROR] for project 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> for project org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> [ERROR] -> [Help 1] 
> There is affected project (it references version 1.3.3, but the behavior is same with 1.4) if you would like to try at own: 
> https://github.com/richfaces/components/blob/develop/dist/richfaces-components-api/pom.xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSHADE-103) maven-shade-plugin does not resolve from user-defined repositories

Posted by "Henri Gomez (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSHADE-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292301#comment-292301 ] 

Henri Gomez edited comment on MSHADE-103 at 2/21/12 7:06 AM:
-------------------------------------------------------------

I've got the same behaviour but in another context.

A project with parent pom (in SNAPSHOT) deployed in artifactory.
Project build works fine from Maven (3.0.3) command line or via Jenkins (1.451) in a FreeStyle job but it fail with same error when building project in Jenkins as a Maven job.

If I put back artifactory repos location in pom.xml (which is weird), everything goes fine.

Tried with shade 1.3.2 and 1.5.0

Anyone encountered the problem ?

PS: JIRA opened in Jenkins : https://issues.jenkins-ci.org/browse/JENKINS-12843
                
      was (Author: hgomez):
    I've got the same behaviour but in another context.

A project with parent pom (in SNAPSHOT) deployed in artifactory.
Project build works fine from Maven (3.0.3) command line or via Jenkins (1.451) in a FreeStyle job but it fail with same error when building project in Jenkins as a Maven job.

If I put back artifactory repos location in pom.xml (which is weird), everything goes fine.

Tried with shade 1.3.2 and 1.5.0

Anyone encountered the problem ?
                  
> maven-shade-plugin does not resolve from user-defined repositories
> ------------------------------------------------------------------
>
>                 Key: MSHADE-103
>                 URL: https://jira.codehaus.org/browse/MSHADE-103
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.3.3, 1.4
>         Environment: Maven 3.0.3 (works with 2.2.1)
>            Reporter: Lukas Fryc
>
> maven-shade-plugin doesn't consult repositories defined in 
> settings.xml when trying to resolve parents of given pom. It contacts 
> only central repo: 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-shade-plugin:1.4:shade (default) on 
> project richfaces-components-api: Error creating shaded jar: 1 problem 
> was encountered while building the effective model for 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT 
> [ERROR] [FATAL] Non-resolvable parent POM for 
> org.richfaces:richfaces-bom:4.1.0-SNAPSHOT: Could not find artifact 
> org.richfaces:richfaces-parent:pom:10 in central 
> (http://repo1.maven.org/maven2) and 'parent.relativePath' points at 
> wrong local POM @ org.richfaces:richfaces-bom:4.1.0-SNAPSHOT, 
> /home/lfryc/workspaces/richfaces/build/bom/pom.xml, line 24, column 10 
> [ERROR] for project 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> for project org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> [ERROR] -> [Help 1] 
> There is affected project (it references version 1.3.3, but the behavior is same with 1.4) if you would like to try at own: 
> https://github.com/richfaces/components/blob/develop/dist/richfaces-components-api/pom.xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSHADE-103) maven-shade-plugin does not resolve from user-defined repositories

Posted by "Benson Margulies (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSHADE-103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benson Margulies reassigned MSHADE-103:
---------------------------------------

    Assignee: Benson Margulies
    
> maven-shade-plugin does not resolve from user-defined repositories
> ------------------------------------------------------------------
>
>                 Key: MSHADE-103
>                 URL: https://jira.codehaus.org/browse/MSHADE-103
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.3.3, 1.4
>         Environment: Maven 3.0.3 (works with 2.2.1)
>            Reporter: Lukas Fryc
>            Assignee: Benson Margulies
>         Attachments: 0001-MSHADE-103-Use-the-ProjectBuilder-API-to-include-rem.patch, MSHADE-103.tar.gz
>
>
> maven-shade-plugin doesn't consult repositories defined in 
> settings.xml when trying to resolve parents of given pom. It contacts 
> only central repo: 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-shade-plugin:1.4:shade (default) on 
> project richfaces-components-api: Error creating shaded jar: 1 problem 
> was encountered while building the effective model for 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT 
> [ERROR] [FATAL] Non-resolvable parent POM for 
> org.richfaces:richfaces-bom:4.1.0-SNAPSHOT: Could not find artifact 
> org.richfaces:richfaces-parent:pom:10 in central 
> (http://repo1.maven.org/maven2) and 'parent.relativePath' points at 
> wrong local POM @ org.richfaces:richfaces-bom:4.1.0-SNAPSHOT, 
> /home/lfryc/workspaces/richfaces/build/bom/pom.xml, line 24, column 10 
> [ERROR] for project 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> for project org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> [ERROR] -> [Help 1] 
> There is affected project (it references version 1.3.3, but the behavior is same with 1.4) if you would like to try at own: 
> https://github.com/richfaces/components/blob/develop/dist/richfaces-components-api/pom.xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSHADE-103) maven-shade-plugin does not resolve from user-defined repositories

Posted by "Joseph Walton (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSHADE-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=300161#comment-300161 ] 

Joseph Walton edited comment on MSHADE-103 at 6/1/12 12:34 AM:
---------------------------------------------------------------

I have a case where the "remote" repository is a local directory and the local repository is configured to keep the build isolated.

In MSHADE-103.tar.gz, with {{settings.xml}} configured with local paths:

{code}
mvn3 --settings settings.xml clean package
{code}

fails to find the parent pom even though it's already in the configured local repository.

The dependency is an arbitrary choice of jar. If it's removed then the shading succeeds. Shading also succeeds when createDependencyReducedPom is set to false.
                
      was (Author: joewalton):
    I have a case where the "remote" repository is a local directory and the local repository is configured to keep the build isolated.

In MSHADE-103.tar.gz, with {{settings.xml}} configured with local paths:

{code}
mvn3 --settings settings.xml clean package
{code}

fails to find the parent pom even though it's already in the configured local repository.

The dependency is an arbitrary choice of jar. If it's removed then the shading succeeds.
                  
> maven-shade-plugin does not resolve from user-defined repositories
> ------------------------------------------------------------------
>
>                 Key: MSHADE-103
>                 URL: https://jira.codehaus.org/browse/MSHADE-103
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.3.3, 1.4
>         Environment: Maven 3.0.3 (works with 2.2.1)
>            Reporter: Lukas Fryc
>         Attachments: MSHADE-103.tar.gz
>
>
> maven-shade-plugin doesn't consult repositories defined in 
> settings.xml when trying to resolve parents of given pom. It contacts 
> only central repo: 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-shade-plugin:1.4:shade (default) on 
> project richfaces-components-api: Error creating shaded jar: 1 problem 
> was encountered while building the effective model for 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT 
> [ERROR] [FATAL] Non-resolvable parent POM for 
> org.richfaces:richfaces-bom:4.1.0-SNAPSHOT: Could not find artifact 
> org.richfaces:richfaces-parent:pom:10 in central 
> (http://repo1.maven.org/maven2) and 'parent.relativePath' points at 
> wrong local POM @ org.richfaces:richfaces-bom:4.1.0-SNAPSHOT, 
> /home/lfryc/workspaces/richfaces/build/bom/pom.xml, line 24, column 10 
> [ERROR] for project 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> for project org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> [ERROR] -> [Help 1] 
> There is affected project (it references version 1.3.3, but the behavior is same with 1.4) if you would like to try at own: 
> https://github.com/richfaces/components/blob/develop/dist/richfaces-components-api/pom.xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSHADE-103) maven-shade-plugin does not resolve from user-defined repositories

Posted by "Joseph Walton (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSHADE-103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joseph Walton updated MSHADE-103:
---------------------------------

    Attachment: 0001-MSHADE-103-Use-the-ProjectBuilder-API-to-include-rem.patch

Maven 3's ProjectBuilder API makes it possible to pass in the remote repositories: the attached patch works with Maven 3. Of course, this breaks compatibility with Maven 2. The difficulty, and value, of maintaining a dual Maven 2/Maven 3 plugin is a topic for discussion.
                
> maven-shade-plugin does not resolve from user-defined repositories
> ------------------------------------------------------------------
>
>                 Key: MSHADE-103
>                 URL: https://jira.codehaus.org/browse/MSHADE-103
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.3.3, 1.4
>         Environment: Maven 3.0.3 (works with 2.2.1)
>            Reporter: Lukas Fryc
>         Attachments: 0001-MSHADE-103-Use-the-ProjectBuilder-API-to-include-rem.patch, MSHADE-103.tar.gz
>
>
> maven-shade-plugin doesn't consult repositories defined in 
> settings.xml when trying to resolve parents of given pom. It contacts 
> only central repo: 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-shade-plugin:1.4:shade (default) on 
> project richfaces-components-api: Error creating shaded jar: 1 problem 
> was encountered while building the effective model for 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT 
> [ERROR] [FATAL] Non-resolvable parent POM for 
> org.richfaces:richfaces-bom:4.1.0-SNAPSHOT: Could not find artifact 
> org.richfaces:richfaces-parent:pom:10 in central 
> (http://repo1.maven.org/maven2) and 'parent.relativePath' points at 
> wrong local POM @ org.richfaces:richfaces-bom:4.1.0-SNAPSHOT, 
> /home/lfryc/workspaces/richfaces/build/bom/pom.xml, line 24, column 10 
> [ERROR] for project 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> for project org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> [ERROR] -> [Help 1] 
> There is affected project (it references version 1.3.3, but the behavior is same with 1.4) if you would like to try at own: 
> https://github.com/richfaces/components/blob/develop/dist/richfaces-components-api/pom.xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSHADE-103) maven-shade-plugin does not resolve from user-defined repositories

Posted by "Benson Margulies (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSHADE-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=299849#comment-299849 ] 

Benson Margulies commented on MSHADE-103:
-----------------------------------------

It is very unlikely that this is specific to shade. It does not have repository-sensitive code, it just calls the core of Maven to do its work.
                
> maven-shade-plugin does not resolve from user-defined repositories
> ------------------------------------------------------------------
>
>                 Key: MSHADE-103
>                 URL: https://jira.codehaus.org/browse/MSHADE-103
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.3.3, 1.4
>         Environment: Maven 3.0.3 (works with 2.2.1)
>            Reporter: Lukas Fryc
>
> maven-shade-plugin doesn't consult repositories defined in 
> settings.xml when trying to resolve parents of given pom. It contacts 
> only central repo: 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-shade-plugin:1.4:shade (default) on 
> project richfaces-components-api: Error creating shaded jar: 1 problem 
> was encountered while building the effective model for 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT 
> [ERROR] [FATAL] Non-resolvable parent POM for 
> org.richfaces:richfaces-bom:4.1.0-SNAPSHOT: Could not find artifact 
> org.richfaces:richfaces-parent:pom:10 in central 
> (http://repo1.maven.org/maven2) and 'parent.relativePath' points at 
> wrong local POM @ org.richfaces:richfaces-bom:4.1.0-SNAPSHOT, 
> /home/lfryc/workspaces/richfaces/build/bom/pom.xml, line 24, column 10 
> [ERROR] for project 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> for project org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> [ERROR] -> [Help 1] 
> There is affected project (it references version 1.3.3, but the behavior is same with 1.4) if you would like to try at own: 
> https://github.com/richfaces/components/blob/develop/dist/richfaces-components-api/pom.xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MSHADE-103) maven-shade-plugin does not resolve from user-defined repositories

Posted by "Dustin Parker (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSHADE-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=279344#comment-279344 ] 

Dustin Parker commented on MSHADE-103:
--------------------------------------

In one of our company's projects, shade tries to resolve using the repositories defined in the module's parent:

{code:xml}
<repositories>
    <repository>
        <id>download.osgeo.org</id>
        <url>http://download.osgeo.org/webdav/geotools</url>
    </repository>
    <repository>
        <id>JBOSS</id>
        <name>JBoss Repository</name>
        <url>http://repository.jboss.org/nexus/content/groups/public/</url>
    </repository>
</repositories>
{code}

(Yep, the JBoss one is out of date.) It doesn't consult settings.xml, though. Also, the parent POM it's trying to find is already in ~/.m2/repository. Our workaround is to put our company repository in that section, which makes sense anyway. Running it once with the workaround caused the parent POM to be downloaded AGAIN. Subsequent times, the POM was NOT redownloaded. Also, if you have a repository manager like Nexus configured on your machine as a mirror for *, this avoids the problem. Oddly enough, the problem didn't happen on Jenkins even though neither of these workarounds was present.

Actually, now that I think about it, is this by design? This is producing an artifact, the dependency-reduced POM, and its contents should be predictable, not dependent on what a particular developer has in her settings.xml...

> maven-shade-plugin does not resolve from user-defined repositories
> ------------------------------------------------------------------
>
>                 Key: MSHADE-103
>                 URL: https://jira.codehaus.org/browse/MSHADE-103
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.3.3, 1.4
>         Environment: Maven 3.0.3 (works with 2.2.1)
>            Reporter: Lukas Fryc
>
> maven-shade-plugin doesn't consult repositories defined in 
> settings.xml when trying to resolve parents of given pom. It contacts 
> only central repo: 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-shade-plugin:1.4:shade (default) on 
> project richfaces-components-api: Error creating shaded jar: 1 problem 
> was encountered while building the effective model for 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT 
> [ERROR] [FATAL] Non-resolvable parent POM for 
> org.richfaces:richfaces-bom:4.1.0-SNAPSHOT: Could not find artifact 
> org.richfaces:richfaces-parent:pom:10 in central 
> (http://repo1.maven.org/maven2) and 'parent.relativePath' points at 
> wrong local POM @ org.richfaces:richfaces-bom:4.1.0-SNAPSHOT, 
> /home/lfryc/workspaces/richfaces/build/bom/pom.xml, line 24, column 10 
> [ERROR] for project 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> for project org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> [ERROR] -> [Help 1] 
> There is affected project (it references version 1.3.3, but the behavior is same with 1.4) if you would like to try at own: 
> https://github.com/richfaces/components/blob/develop/dist/richfaces-components-api/pom.xml

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSHADE-103) maven-shade-plugin does not resolve from user-defined repositories

Posted by "Joseph Walton (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSHADE-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=300169#comment-300169 ] 

Joseph Walton edited comment on MSHADE-103 at 6/1/12 2:33 AM:
--------------------------------------------------------------

If, after a failed build, I remove the {{_maven.repositories}} file from the local repository then the build succeeds. The call to {{mavenProjectBuilder.build}} only knows about the local repository but the artifact is specifically tagged as coming from the alternate remote repo.

Looks like MNG-5185 would make this clearer.
                
      was (Author: joewalton):
    If, after a failed build, I remove the {{_maven.repositories}} file from the local repository then the build succeeds. Looks like MNG-5185 would make this clearer.
                  
> maven-shade-plugin does not resolve from user-defined repositories
> ------------------------------------------------------------------
>
>                 Key: MSHADE-103
>                 URL: https://jira.codehaus.org/browse/MSHADE-103
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.3.3, 1.4
>         Environment: Maven 3.0.3 (works with 2.2.1)
>            Reporter: Lukas Fryc
>         Attachments: MSHADE-103.tar.gz
>
>
> maven-shade-plugin doesn't consult repositories defined in 
> settings.xml when trying to resolve parents of given pom. It contacts 
> only central repo: 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-shade-plugin:1.4:shade (default) on 
> project richfaces-components-api: Error creating shaded jar: 1 problem 
> was encountered while building the effective model for 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT 
> [ERROR] [FATAL] Non-resolvable parent POM for 
> org.richfaces:richfaces-bom:4.1.0-SNAPSHOT: Could not find artifact 
> org.richfaces:richfaces-parent:pom:10 in central 
> (http://repo1.maven.org/maven2) and 'parent.relativePath' points at 
> wrong local POM @ org.richfaces:richfaces-bom:4.1.0-SNAPSHOT, 
> /home/lfryc/workspaces/richfaces/build/bom/pom.xml, line 24, column 10 
> [ERROR] for project 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> for project org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> [ERROR] -> [Help 1] 
> There is affected project (it references version 1.3.3, but the behavior is same with 1.4) if you would like to try at own: 
> https://github.com/richfaces/components/blob/develop/dist/richfaces-components-api/pom.xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSHADE-103) maven-shade-plugin does not resolve from user-defined repositories

Posted by "Joseph Walton (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSHADE-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=300169#comment-300169 ] 

Joseph Walton commented on MSHADE-103:
--------------------------------------

If, after a failed build, I remove the {{_maven.repositories}} file from the local repository then the build succeeds. Looks like MNG-5185 would make this clearer.
                
> maven-shade-plugin does not resolve from user-defined repositories
> ------------------------------------------------------------------
>
>                 Key: MSHADE-103
>                 URL: https://jira.codehaus.org/browse/MSHADE-103
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.3.3, 1.4
>         Environment: Maven 3.0.3 (works with 2.2.1)
>            Reporter: Lukas Fryc
>         Attachments: MSHADE-103.tar.gz
>
>
> maven-shade-plugin doesn't consult repositories defined in 
> settings.xml when trying to resolve parents of given pom. It contacts 
> only central repo: 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-shade-plugin:1.4:shade (default) on 
> project richfaces-components-api: Error creating shaded jar: 1 problem 
> was encountered while building the effective model for 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT 
> [ERROR] [FATAL] Non-resolvable parent POM for 
> org.richfaces:richfaces-bom:4.1.0-SNAPSHOT: Could not find artifact 
> org.richfaces:richfaces-parent:pom:10 in central 
> (http://repo1.maven.org/maven2) and 'parent.relativePath' points at 
> wrong local POM @ org.richfaces:richfaces-bom:4.1.0-SNAPSHOT, 
> /home/lfryc/workspaces/richfaces/build/bom/pom.xml, line 24, column 10 
> [ERROR] for project 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> for project org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> [ERROR] -> [Help 1] 
> There is affected project (it references version 1.3.3, but the behavior is same with 1.4) if you would like to try at own: 
> https://github.com/richfaces/components/blob/develop/dist/richfaces-components-api/pom.xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MSHADE-103) maven-shade-plugin does not resolve from user-defined repositories

Posted by "Lukas Fryc (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSHADE-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=273136#comment-273136 ] 

Lukas Fryc commented on MSHADE-103:
-----------------------------------

Original issue: https://issues.jboss.org/browse/RF-11052

> maven-shade-plugin does not resolve from user-defined repositories
> ------------------------------------------------------------------
>
>                 Key: MSHADE-103
>                 URL: https://jira.codehaus.org/browse/MSHADE-103
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.3.3, 1.4
>         Environment: Maven 3.0.3 (works with 2.2.1)
>            Reporter: Lukas Fryc
>
> maven-shade-plugin doesn't consult repositories defined in 
> settings.xml when trying to resolve parents of given pom. It contacts 
> only central repo: 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-shade-plugin:1.4:shade (default) on 
> project richfaces-components-api: Error creating shaded jar: 1 problem 
> was encountered while building the effective model for 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT 
> [ERROR] [FATAL] Non-resolvable parent POM for 
> org.richfaces:richfaces-bom:4.1.0-SNAPSHOT: Could not find artifact 
> org.richfaces:richfaces-parent:pom:10 in central 
> (http://repo1.maven.org/maven2) and 'parent.relativePath' points at 
> wrong local POM @ org.richfaces:richfaces-bom:4.1.0-SNAPSHOT, 
> /home/lfryc/workspaces/richfaces/build/bom/pom.xml, line 24, column 10 
> [ERROR] for project 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> for project org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> [ERROR] -> [Help 1] 
> There is affected project (it references version 1.3.3, but the behavior is same with 1.4) if you would like to try at own: 
> https://github.com/richfaces/components/blob/develop/dist/richfaces-components-api/pom.xml

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSHADE-103) maven-shade-plugin does not resolve from user-defined repositories

Posted by "Henri Gomez (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSHADE-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292301#comment-292301 ] 

Henri Gomez commented on MSHADE-103:
------------------------------------

I've got the same behaviour but in another context.

A project with parent pom (in SNAPSHOT) deployed in artifactory.
Project build works fine from Maven (3.0.3) command line or via Jenkins (1.451) in a FreeStyle job but it fail with same error when building project in Jenkins as a Maven job.

If I put back artifactory repos location in pom.xml (which is weird), everything goes fine.

Tried with shade 1.3.2 and 1.5.0

Anyone encountered the problem ?
                
> maven-shade-plugin does not resolve from user-defined repositories
> ------------------------------------------------------------------
>
>                 Key: MSHADE-103
>                 URL: https://jira.codehaus.org/browse/MSHADE-103
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.3.3, 1.4
>         Environment: Maven 3.0.3 (works with 2.2.1)
>            Reporter: Lukas Fryc
>
> maven-shade-plugin doesn't consult repositories defined in 
> settings.xml when trying to resolve parents of given pom. It contacts 
> only central repo: 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-shade-plugin:1.4:shade (default) on 
> project richfaces-components-api: Error creating shaded jar: 1 problem 
> was encountered while building the effective model for 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT 
> [ERROR] [FATAL] Non-resolvable parent POM for 
> org.richfaces:richfaces-bom:4.1.0-SNAPSHOT: Could not find artifact 
> org.richfaces:richfaces-parent:pom:10 in central 
> (http://repo1.maven.org/maven2) and 'parent.relativePath' points at 
> wrong local POM @ org.richfaces:richfaces-bom:4.1.0-SNAPSHOT, 
> /home/lfryc/workspaces/richfaces/build/bom/pom.xml, line 24, column 10 
> [ERROR] for project 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> for project org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> [ERROR] -> [Help 1] 
> There is affected project (it references version 1.3.3, but the behavior is same with 1.4) if you would like to try at own: 
> https://github.com/richfaces/components/blob/develop/dist/richfaces-components-api/pom.xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSHADE-103) maven-shade-plugin does not resolve from user-defined repositories

Posted by "Vincent Massol (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSHADE-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=296215#comment-296215 ] 

Vincent Massol edited comment on MSHADE-103 at 4/11/12 6:33 AM:
----------------------------------------------------------------

I also got bitten again by this issue this morning and it took us a long time to find the reason...

To reproduce: https://github.com/xwiki/xwiki-rendering/tree/master/xwiki-rendering-standalone
                
      was (Author: vmassol):
    I also got bitten again by this issue this morning and it took us a long time to find the reason...
                  
> maven-shade-plugin does not resolve from user-defined repositories
> ------------------------------------------------------------------
>
>                 Key: MSHADE-103
>                 URL: https://jira.codehaus.org/browse/MSHADE-103
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.3.3, 1.4
>         Environment: Maven 3.0.3 (works with 2.2.1)
>            Reporter: Lukas Fryc
>
> maven-shade-plugin doesn't consult repositories defined in 
> settings.xml when trying to resolve parents of given pom. It contacts 
> only central repo: 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-shade-plugin:1.4:shade (default) on 
> project richfaces-components-api: Error creating shaded jar: 1 problem 
> was encountered while building the effective model for 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT 
> [ERROR] [FATAL] Non-resolvable parent POM for 
> org.richfaces:richfaces-bom:4.1.0-SNAPSHOT: Could not find artifact 
> org.richfaces:richfaces-parent:pom:10 in central 
> (http://repo1.maven.org/maven2) and 'parent.relativePath' points at 
> wrong local POM @ org.richfaces:richfaces-bom:4.1.0-SNAPSHOT, 
> /home/lfryc/workspaces/richfaces/build/bom/pom.xml, line 24, column 10 
> [ERROR] for project 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> for project org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> [ERROR] -> [Help 1] 
> There is affected project (it references version 1.3.3, but the behavior is same with 1.4) if you would like to try at own: 
> https://github.com/richfaces/components/blob/develop/dist/richfaces-components-api/pom.xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSHADE-103) maven-shade-plugin does not resolve from user-defined repositories

Posted by "Joseph Walton (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSHADE-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=300009#comment-300009 ] 

Joseph Walton commented on MSHADE-103:
--------------------------------------

This doesn't seem to occur with Maven 3.0.4. Could it be due to MNG-5149?
                
> maven-shade-plugin does not resolve from user-defined repositories
> ------------------------------------------------------------------
>
>                 Key: MSHADE-103
>                 URL: https://jira.codehaus.org/browse/MSHADE-103
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.3.3, 1.4
>         Environment: Maven 3.0.3 (works with 2.2.1)
>            Reporter: Lukas Fryc
>
> maven-shade-plugin doesn't consult repositories defined in 
> settings.xml when trying to resolve parents of given pom. It contacts 
> only central repo: 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-shade-plugin:1.4:shade (default) on 
> project richfaces-components-api: Error creating shaded jar: 1 problem 
> was encountered while building the effective model for 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT 
> [ERROR] [FATAL] Non-resolvable parent POM for 
> org.richfaces:richfaces-bom:4.1.0-SNAPSHOT: Could not find artifact 
> org.richfaces:richfaces-parent:pom:10 in central 
> (http://repo1.maven.org/maven2) and 'parent.relativePath' points at 
> wrong local POM @ org.richfaces:richfaces-bom:4.1.0-SNAPSHOT, 
> /home/lfryc/workspaces/richfaces/build/bom/pom.xml, line 24, column 10 
> [ERROR] for project 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> for project org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> [ERROR] -> [Help 1] 
> There is affected project (it references version 1.3.3, but the behavior is same with 1.4) if you would like to try at own: 
> https://github.com/richfaces/components/blob/develop/dist/richfaces-components-api/pom.xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSHADE-103) maven-shade-plugin does not resolve from user-defined repositories

Posted by "Vincent Massol (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSHADE-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=296215#comment-296215 ] 

Vincent Massol commented on MSHADE-103:
---------------------------------------

I also got bitten again by this issue this morning and it took us a long time to find the reason...
                
> maven-shade-plugin does not resolve from user-defined repositories
> ------------------------------------------------------------------
>
>                 Key: MSHADE-103
>                 URL: https://jira.codehaus.org/browse/MSHADE-103
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.3.3, 1.4
>         Environment: Maven 3.0.3 (works with 2.2.1)
>            Reporter: Lukas Fryc
>
> maven-shade-plugin doesn't consult repositories defined in 
> settings.xml when trying to resolve parents of given pom. It contacts 
> only central repo: 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-shade-plugin:1.4:shade (default) on 
> project richfaces-components-api: Error creating shaded jar: 1 problem 
> was encountered while building the effective model for 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT 
> [ERROR] [FATAL] Non-resolvable parent POM for 
> org.richfaces:richfaces-bom:4.1.0-SNAPSHOT: Could not find artifact 
> org.richfaces:richfaces-parent:pom:10 in central 
> (http://repo1.maven.org/maven2) and 'parent.relativePath' points at 
> wrong local POM @ org.richfaces:richfaces-bom:4.1.0-SNAPSHOT, 
> /home/lfryc/workspaces/richfaces/build/bom/pom.xml, line 24, column 10 
> [ERROR] for project 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> for project org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> [ERROR] -> [Help 1] 
> There is affected project (it references version 1.3.3, but the behavior is same with 1.4) if you would like to try at own: 
> https://github.com/richfaces/components/blob/develop/dist/richfaces-components-api/pom.xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSHADE-103) maven-shade-plugin does not resolve from user-defined repositories

Posted by "Benson Margulies (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSHADE-103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benson Margulies closed MSHADE-103.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0

Thank you for the patch.

------------------------------------------------------------------------
r1354665 | bimargulies | 2012-06-27 14:51:17 -0400 (Wed, 27 Jun 2012) | 3 lines

MSHADE-103: maven-shade-plugin does not resolve from user-defined repositories
 o note: trunk now requires Maven 3.0.

------------------------------------------------------------------------
                
> maven-shade-plugin does not resolve from user-defined repositories
> ------------------------------------------------------------------
>
>                 Key: MSHADE-103
>                 URL: https://jira.codehaus.org/browse/MSHADE-103
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.3.3, 1.4
>         Environment: Maven 3.0.3 (works with 2.2.1)
>            Reporter: Lukas Fryc
>            Assignee: Benson Margulies
>             Fix For: 2.0
>
>         Attachments: 0001-MSHADE-103-Use-the-ProjectBuilder-API-to-include-rem.patch, MSHADE-103.tar.gz
>
>
> maven-shade-plugin doesn't consult repositories defined in 
> settings.xml when trying to resolve parents of given pom. It contacts 
> only central repo: 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-shade-plugin:1.4:shade (default) on 
> project richfaces-components-api: Error creating shaded jar: 1 problem 
> was encountered while building the effective model for 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT 
> [ERROR] [FATAL] Non-resolvable parent POM for 
> org.richfaces:richfaces-bom:4.1.0-SNAPSHOT: Could not find artifact 
> org.richfaces:richfaces-parent:pom:10 in central 
> (http://repo1.maven.org/maven2) and 'parent.relativePath' points at 
> wrong local POM @ org.richfaces:richfaces-bom:4.1.0-SNAPSHOT, 
> /home/lfryc/workspaces/richfaces/build/bom/pom.xml, line 24, column 10 
> [ERROR] for project 
> org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> for project org.richfaces.ui:richfaces-components-api:4.1.0-SNAPSHOT at 
> /home/lfryc/workspaces/richfaces/components/dist/richfaces-components-api/dependency-reduced-pom.xml 
> [ERROR] -> [Help 1] 
> There is affected project (it references version 1.3.3, but the behavior is same with 1.4) if you would like to try at own: 
> https://github.com/richfaces/components/blob/develop/dist/richfaces-components-api/pom.xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira