Re: maven.mode.online not working?
Hi Martin, > > The "maven -o jar:jar" works, but as for the others, > >maven -Dmaven.mode.online=false jar:jar > >set maven.mode.online to false in a property file > > maven just goes on and downloads the SNAPSHOT jars. > > As a workaround I suggest to diable all remote repos, use > "-Dmaven.repo.remote=". > Without repos, maven is unable to download anything... Hey, it works! I put it in ~/build.properties. Thanks. Best regards, -- Shinobu Kawai -- Shinobu Kawai <[EMAIL PROTECTED]> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven.mode.online not working?
Har you know I'm going to pimp maven-proxy! You could create a maven-proxy on an intranet server, give it no upstream providers, then set all your developer's maven installs to point at the proxy. Then only put the artifacts that you approve of in the maven-proxy's global repository. Cheers, Ben Martin Skopp wrote: On Wed, 2004-09-29 at 02:31, Shinobu Kawai wrote: I'm trying to run maven in offline mode as in http://maven.apache.org/reference/user-guide.html#Building_Offline The "maven -o jar:jar" works, but as for the others, maven -Dmaven.mode.online=false jar:jar set maven.mode.online to false in a property file maven just goes on and downloads the SNAPSHOT jars. As a workaround I suggest to diable all remote repos, use "-Dmaven.repo.remote=". Without repos, maven is unable to download anything... cu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven.mode.online not working?
On Wed, 2004-09-29 at 02:31, Shinobu Kawai wrote: > I'm trying to run maven in offline mode as in >http://maven.apache.org/reference/user-guide.html#Building_Offline > > The "maven -o jar:jar" works, but as for the others, >maven -Dmaven.mode.online=false jar:jar >set maven.mode.online to false in a property file > maven just goes on and downloads the SNAPSHOT jars. As a workaround I suggest to diable all remote repos, use "-Dmaven.repo.remote=". Without repos, maven is unable to download anything... cu -- Martin Skopp Riege Software International GmbH Support: mailto:[EMAIL PROTECTED], Information: http://www.riege.com This email is intended to be viewed with a nonproportional font. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven.mode.online not working?
> # Should I comment on the JIRA issue? :) Yes, please. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven.mode.online not working?
Hi Brett, > do you have the property specified as true somewhere else? perhaps in > ~/build.properties? Nowhere. > > The "maven -o jar:jar" works, but as for the others, > >maven -Dmaven.mode.online=false jar:jar > >set maven.mode.online to false in a property file > > maven just goes on and downloads the SNAPSHOT jars. Is this intended > > behaviour, or am I missing something? 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. I think the "else" block should be taken away from App and the "maven.mode.online=true" be put in the DEFAULTS_PROPERTIES. # Should I comment on the JIRA issue? :) Best regards, -- Shinobu Kawai -- Shinobu Kawai <[EMAIL PROTECTED], [EMAIL PROTECTED]> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven.mode.online not working?
do you have the property specified as true somewhere else? perhaps in ~/build.properties? On Wed, 29 Sep 2004 11:31:00 +0900, Shinobu Kawai <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm trying to run maven in offline mode as in >http://maven.apache.org/reference/user-guide.html#Building_Offline > > The "maven -o jar:jar" works, but as for the others, >maven -Dmaven.mode.online=false jar:jar >set maven.mode.online to false in a property file > maven just goes on and downloads the SNAPSHOT jars. Is this intended > behaviour, or am I missing something? > > Using maven 1.0 on Win2K/cygwin. > > Best regards, > -- Shinobu Kawai > > -- > Shinobu Kawai([EMAIL PROTECTED]) > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven.mode.online not working?
> I'm trying to run maven in offline mode as in >http://maven.apache.org/reference/user-guide.html#Building_Offline > > The "maven -o jar:jar" works, but as for the others, >maven -Dmaven.mode.online=false jar:jar >set maven.mode.online to false in a property file > maven just goes on and downloads the SNAPSHOT jars. Is this intended > behaviour, or am I missing something? Looks like a known issue. http://jira.codehaus.org/browse/MAVEN-1439 Best regards, -- Shinobu Kawai -- Shinobu Kawai <[EMAIL PROTECTED]> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven.mode.online not working?
Hi all, I'm trying to run maven in offline mode as in http://maven.apache.org/reference/user-guide.html#Building_Offline The "maven -o jar:jar" works, but as for the others, maven -Dmaven.mode.online=false jar:jar set maven.mode.online to false in a property file maven just goes on and downloads the SNAPSHOT jars. Is this intended behaviour, or am I missing something? Using maven 1.0 on Win2K/cygwin. Best regards, -- Shinobu Kawai -- Shinobu Kawai([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]