You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kohsuke Kawaguchi (JIRA)" <ji...@codehaus.org> on 2007/12/06 08:57:57 UTC

[jira] Created: (MNG-3312) Maven creates empty plugin metadata during offline mode, causing successive online builds to fail

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

        

[jira] Closed: (MNG-3312) Maven creates empty plugin metadata during offline mode, causing successive online builds to fail

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed MNG-3312.
-----------------------------

         Assignee: Brett Porter
       Resolution: Cannot Reproduce
    Fix Version/s: 2.0.9

I believe this was fixed in 2.0.9

> 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
>            Assignee: Brett Porter
>             Fix For: 2.0.9
>
>
> 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