You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/09/09 21:05:34 UTC

[jira] Created: (MAVEN-1439) -Dmaven.repo.online=false not equivalent to -o

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MAVEN-1439

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1439
    Summary: -Dmaven.repo.online=false not equivalent to -o
       Type: Bug

     Status: Unassigned
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
   Versions:
             1.1
             1.0

   Assignee: 
   Reporter: Cameron Horn

    Created: Wed, 8 Sep 2004 5:46 PM
    Updated: Wed, 8 Sep 2004 5:46 PM
Environment: Solaris

Description:
Contrived builds follow:
maven -Dmaven.mode.online=false -Dmaven.repo.remote= multiproject:install-snapshot
<snip>
Attempting to download commons-logging-1.0.3.jar.
WARNING: Failed to download commons-logging-1.0.3.jar.
The build cannot continue because of the following unsatisfied dependency:

commons-logging-1.0.3.jar (try downloading from http://jakarta.apache.org/common
s/logging/)
</snip>

maven -o multiproject:install-snapshot
<snip>
The build cannot continue because of the following unsatisfied dependency:

commons-logging-1.0.3.jar (try downloading from http://jakarta.apache.org/common
s/logging/)
</snip>

Note that maven still attempts to download while maven.mode.online=false.  This is contrary to the User Guide, which specifies that they are equivalent.


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MAVEN-1439) -Dmaven.repo.online=false not equivalent to -o

Posted by ji...@codehaus.org.
Message:

   The following issue has been closed.

   Resolver: Brett Porter
       Date: Sat, 30 Oct 2004 5:34 AM

implemented Shinobu Kawai's suggestion.
---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MAVEN-1439

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1439
    Summary: -Dmaven.repo.online=false not equivalent to -o
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
   Fix Fors:
             1.0.1
   Versions:
             1.1
             1.0

   Assignee: Brett Porter
   Reporter: Cameron Horn

    Created: Wed, 8 Sep 2004 5:46 PM
    Updated: Sat, 30 Oct 2004 5:34 AM
Environment: Solaris

Description:
Contrived builds follow:
maven -Dmaven.mode.online=false -Dmaven.repo.remote= multiproject:install-snapshot
<snip>
Attempting to download commons-logging-1.0.3.jar.
WARNING: Failed to download commons-logging-1.0.3.jar.
The build cannot continue because of the following unsatisfied dependency:

commons-logging-1.0.3.jar (try downloading from http://jakarta.apache.org/common
s/logging/)
</snip>

maven -o multiproject:install-snapshot
<snip>
The build cannot continue because of the following unsatisfied dependency:

commons-logging-1.0.3.jar (try downloading from http://jakarta.apache.org/common
s/logging/)
</snip>

Note that maven still attempts to download while maven.mode.online=false.  This is contrary to the User Guide, which specifies that they are equivalent.


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MAVEN-1439) -Dmaven.repo.online=false not equivalent to -o

Posted by ji...@codehaus.org.
The following comment has been added to this issue:

     Author: Shinobu Kawai
    Created: Tue, 28 Sep 2004 11:40 PM
       Body:
It looks like the problem is in o.a.m.cli.App#initializeRootContext():
    if ( getCli().hasOption( WORK_OFFLINE ) )
    {
        System.setProperty( MavenConstants.ONLINE, "false" );
    }
    else
    {
        System.setProperty( MavenConstants.ONLINE, "true" );
    }
The "else" sets "maven.mode.online" to true if "-o" is not set,
overriding any previously set system properties.  Looking at
o.a.m.MavenUtils#createContext(), the system properties dominates any
other source.  This causes online mode to be true whatever you put in
any property file, or system property.

I think the "else" block should be taken away from App and the
"maven.mode.online=true" be put in the DEFAULTS_PROPERTIES.

---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MAVEN-1439?page=comments#action_24724

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MAVEN-1439

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1439
    Summary: -Dmaven.repo.online=false not equivalent to -o
       Type: Bug

     Status: Unassigned
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
   Versions:
             1.1
             1.0

   Assignee: 
   Reporter: Cameron Horn

    Created: Wed, 8 Sep 2004 5:46 PM
    Updated: Tue, 28 Sep 2004 11:40 PM
Environment: Solaris

Description:
Contrived builds follow:
maven -Dmaven.mode.online=false -Dmaven.repo.remote= multiproject:install-snapshot
<snip>
Attempting to download commons-logging-1.0.3.jar.
WARNING: Failed to download commons-logging-1.0.3.jar.
The build cannot continue because of the following unsatisfied dependency:

commons-logging-1.0.3.jar (try downloading from http://jakarta.apache.org/common
s/logging/)
</snip>

maven -o multiproject:install-snapshot
<snip>
The build cannot continue because of the following unsatisfied dependency:

commons-logging-1.0.3.jar (try downloading from http://jakarta.apache.org/common
s/logging/)
</snip>

Note that maven still attempts to download while maven.mode.online=false.  This is contrary to the User Guide, which specifies that they are equivalent.


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MAVEN-1439) -Dmaven.repo.online=false not equivalent to -o

Posted by ji...@codehaus.org.
The following issue has been updated:

    Updater: Mattias Neuling (mailto:neuling@dakosy.de)
       Date: Wed, 6 Oct 2004 4:01 AM
    Comment:
This attachment is a fix for this issue. It's a diff to the class 'org.apache.maven.verifier.DependencyVerifier' of CVS tag 'MAVEN_1_0'.
    Changes:
             Attachment changed to MAVEN-1439.diff
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://jira.codehaus.org/browse/MAVEN-1439?page=history

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MAVEN-1439

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1439
    Summary: -Dmaven.repo.online=false not equivalent to -o
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
   Fix Fors:
             1.0.1
   Versions:
             1.1
             1.0

   Assignee: Brett Porter
   Reporter: Cameron Horn

    Created: Wed, 8 Sep 2004 5:46 PM
    Updated: Wed, 6 Oct 2004 4:01 AM
Environment: Solaris

Description:
Contrived builds follow:
maven -Dmaven.mode.online=false -Dmaven.repo.remote= multiproject:install-snapshot
<snip>
Attempting to download commons-logging-1.0.3.jar.
WARNING: Failed to download commons-logging-1.0.3.jar.
The build cannot continue because of the following unsatisfied dependency:

commons-logging-1.0.3.jar (try downloading from http://jakarta.apache.org/common
s/logging/)
</snip>

maven -o multiproject:install-snapshot
<snip>
The build cannot continue because of the following unsatisfied dependency:

commons-logging-1.0.3.jar (try downloading from http://jakarta.apache.org/common
s/logging/)
</snip>

Note that maven still attempts to download while maven.mode.online=false.  This is contrary to the User Guide, which specifies that they are equivalent.


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MAVEN-1439) -Dmaven.repo.online=false not equivalent to -o

Posted by ji...@codehaus.org.
The following issue has been updated:

    Updater: Brett Porter (mailto:brett@codehaus.org)
       Date: Wed, 29 Sep 2004 12:05 AM
    Changes:
             assignee changed to Brett Porter
             Fix Version changed to 1.0.1
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://jira.codehaus.org/browse/MAVEN-1439?page=history

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MAVEN-1439

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1439
    Summary: -Dmaven.repo.online=false not equivalent to -o
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
   Fix Fors:
             1.0.1
   Versions:
             1.1
             1.0

   Assignee: Brett Porter
   Reporter: Cameron Horn

    Created: Wed, 8 Sep 2004 5:46 PM
    Updated: Wed, 29 Sep 2004 12:05 AM
Environment: Solaris

Description:
Contrived builds follow:
maven -Dmaven.mode.online=false -Dmaven.repo.remote= multiproject:install-snapshot
<snip>
Attempting to download commons-logging-1.0.3.jar.
WARNING: Failed to download commons-logging-1.0.3.jar.
The build cannot continue because of the following unsatisfied dependency:

commons-logging-1.0.3.jar (try downloading from http://jakarta.apache.org/common
s/logging/)
</snip>

maven -o multiproject:install-snapshot
<snip>
The build cannot continue because of the following unsatisfied dependency:

commons-logging-1.0.3.jar (try downloading from http://jakarta.apache.org/common
s/logging/)
</snip>

Note that maven still attempts to download while maven.mode.online=false.  This is contrary to the User Guide, which specifies that they are equivalent.


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MAVEN-1439) -Dmaven.repo.online=false not equivalent to -o

Posted by ji...@codehaus.org.
The following issue has been updated:

    Updater: Mattias Neuling (mailto:neuling@dakosy.de)
       Date: Thu, 7 Oct 2004 4:56 AM
    Changes:
             Attachment changed to DependencyVerifier.java
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://jira.codehaus.org/browse/MAVEN-1439?page=history

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MAVEN-1439

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1439
    Summary: -Dmaven.repo.online=false not equivalent to -o
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
   Fix Fors:
             1.0.1
   Versions:
             1.1
             1.0

   Assignee: Brett Porter
   Reporter: Cameron Horn

    Created: Wed, 8 Sep 2004 5:46 PM
    Updated: Thu, 7 Oct 2004 4:56 AM
Environment: Solaris

Description:
Contrived builds follow:
maven -Dmaven.mode.online=false -Dmaven.repo.remote= multiproject:install-snapshot
<snip>
Attempting to download commons-logging-1.0.3.jar.
WARNING: Failed to download commons-logging-1.0.3.jar.
The build cannot continue because of the following unsatisfied dependency:

commons-logging-1.0.3.jar (try downloading from http://jakarta.apache.org/common
s/logging/)
</snip>

maven -o multiproject:install-snapshot
<snip>
The build cannot continue because of the following unsatisfied dependency:

commons-logging-1.0.3.jar (try downloading from http://jakarta.apache.org/common
s/logging/)
</snip>

Note that maven still attempts to download while maven.mode.online=false.  This is contrary to the User Guide, which specifies that they are equivalent.


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org