maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kohsuke Kawaguchi (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MNG-3312) Maven creates empty plugin metadata during offline mode, causing successive online builds to fail
Date Thu, 06 Dec 2007 07:57:57 GMT
Maven creates empty plugin metadata during offline mode, causing successive online builds to
fail
-------------------------------------------------------------------------------------------------

                 Key: MNG-3312
                 URL: http://jira.codehaus.org/browse/MNG-3312
             Project: Maven 2
          Issue Type: Bug
          Components: Artifacts and Repositories
    Affects Versions: 2.0.7
            Reporter: Kohsuke Kawaguchi


Cd to any Maven project that's lying around, then do this:
{noformat}
rm -rf ~/.m2/repository/org/apache/maven/plugins/maven-clean-plugin
mvn -o clean
{noformat}
This fails, as expected, because the maven-clean-plugin doesn't exist locally. Now try this:
{noformat}
mvn clean
{noformat}
Even though now Maven is online, it still fails with the same error. No download is attempted
(unless I add -U.)

This is because even in the offline mode, Maven creates ~/.m2/repository/org/apache/maven/plugins/maven-clean-plugin
and put empty repository metadata. This causes the later online Maven build to believe that
the repository was checked and no plugin was found there.

Maven shouldn't create an empty repository metadata in the local repository if In the offline
mode.

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

        

Mime
View raw message