RE: [m2] How do you use maven2 inside a corporate firewall?
I deleted the entire contents of the local cache repository folder `${user.home}/.m2/repository'. I checked the proxy firewall definitions in `${user.home}/.m2/settings.xml' . Spell checked the filename is actually "settings.xml" not "setting.xml" Run with "mvn -X compile" or just "mvn -X", the output should say reading "settings.xml" Caveat Emptor: I believe the NTLM is not implemented. So if you are using NTLM you may be out of options for now. HTH PS: I wish someone would answer my question javadoc:javadoc and if it is possible download the Maven source code as a zip like you can for Struts or MyFaces. -- Peter Pilgrim :: J2EE Software Development Operations/IT - Credit Suisse First Boston, Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom Tel: +44-(0)207-883-4497 -Original Message- From: Himanshu Airon [mailto:[EMAIL PROTECTED] Sent: 09 November 2005 05:03 To: [EMAIL PROTECTED] Subject: [m2] How do you use maven2 inside a corporate firewall? Hi Peter, I'm trying maven2 and getting the same error. Were you able to solve the problem? I'm still struggling with it. Thanks in advance. Himanshu == Please access the attached hyperlink for an important electronic communications disclaimer: http://www.csfb.com/legal_terms/disclaimer_external_email.shtml ==
RE: [m2] How do you use maven2 inside a corporate firewall? [SOLV ED]
Yep! Thank you Fabrice, I blew away the repository folder "C:\Documents and Settings\ppilgrim\.m2\repository" It now works! -- Peter Pilgrim :: J2EE Software Development Operations/IT - Credit Suisse First Boston, Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom Tel: +44-(0)207-883-4497 > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 21 October 2005 15:33 > To: Maven Users List > Subject: RE: [m2] How do you use maven2 inside a corporate firewall? > > > > > > > Well, if you hadn't set your firewall settings, I guess you haven't > downloaded anything yet from ibiblio. So I would delete > everything in your > "C:\Documents and Settings\ppilgrim\.m2" folder (except the > "settings.xml" > file), and start again. That should work. > > Best Regards / Cordialement, > Fabrice BELLINGARD > DINQ/DSIN/INSI/EATE/IDVS/AIDV > (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] > > > > > "Pilgrim, Peter" > > <[EMAIL PROTECTED] > > sfb.com> > Pour >'Maven Users List' > > 21/10/2005 16:16 > > > cc > > > Veuillez >Objet > répondre à RE: [m2] How do you > use maven2 > Maven Users List inside a corporate > firewall? > <[EMAIL PROTECTED] > > che.org> > > > > > > > > > > > > > > Ok I set up the ``C:\Documents and > Settings\ppilgrim\.m2\settings.xml'' > with > > > > > > true > http > ocs-ca-http.csfb.net > 8080 > ppilgrim > > > > > > > > When I run the getting started command line, I get a failure > > > C:\Projects>mvn -X archetype:create -DgroupId=com.mycompany.app > -DartifactId=my- > app > + Error stacktraces are turned on. > [DEBUG] Building Maven user-level plugin registry from: > 'C:\Documents and > Settin > gs\ppilgrim\.m2\plugin-registry.xml' > [DEBUG] Building Maven global-level plugin registry from: > 'C:\opt\maven-2.0 > \bin\ > ..\conf\plugin-registry.xml' > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'archetype'. > [DEBUG] maven-archetype-plugin: using locally installed snapshot > [DEBUG] Artifact not found - using stub model: Unable to determine the > latest ve > rsion > org.apache.maven.plugins:maven-archetype-plugin:LATEST:pom > > > [DEBUG] Using defaults for missing POM > org.apache.maven.plugins:maven-archetype- > plugin:pom:LATEST > [DEBUG] maven-archetype-plugin: using locally installed snapshot > [DEBUG] Artifact not found - using stub model: Unable to determine the > release v > ersion > org.apache.maven.plugins:maven-archetype-plugin:RELEASE:pom > > > [DEBUG] Using defaults for missing POM > org.apache.maven.plugins:maven-archetype- > plugin:pom:RELEASE > [INFO] > -- > --- > --- > [ERROR] BUILD ERROR > [INFO] > -- > --- > --- > [INFO] The plugin > 'org.apache.maven.plugins:maven-archetype-plugin' does > not exi > st or no valid version could be found > [INFO] > -- > --- > --- > [DEBUG] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: The plugin > 'org.apache.m > aven.plugins:maven-archetype-plugin' does not exist or no > valid version > could be > found > at > o
RE: [m2] How do you use maven2 inside a corporate firewall?
ionNotFoundException: The p lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no val id version could be found at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl uginVersion(DefaultPluginVersionManager.java:225) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl uginVersion(DefaultPluginVersionManager.java:87) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug inManager.java:158) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa ultLifecycleExecutor.java:1095) ... 14 more [INFO] - --- [INFO] Total time: < 1 second [INFO] Finished at: Fri Oct 21 15:11:03 BST 2005 [INFO] Final Memory: 1M/2M [INFO] - --- -- Peter Pilgrim :: J2EE Software Development Operations/IT - Credit Suisse First Boston, Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom Tel: +44-(0)207-883-4497 > -Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 21 October 2005 15:09 > To: Maven Users List > Subject: RE: [m2] How do you use maven2 inside a corporate firewall? > > > > > > > The "settings.xml" file can be placed in: > - /conf/ : the settings will be available for > all users > - /.m2/ : the settings will be available only for you > > > Best Regards / Cordialement, > Fabrice BELLINGARD > DINQ/DSIN/INSI/EATE/IDVS/AIDV > (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] > > > > > "Pilgrim, Peter" > > <[EMAIL PROTECTED] > > sfb.com> > Pour >'Maven Users List' > > 21/10/2005 15:44 > > > cc > > > Veuillez >Objet > répondre à RE: [m2] How do you > use maven2 > Maven Users List inside a corporate > firewall? > <[EMAIL PROTECTED] > > che.org> > > > > > > > > > > > > > > > Ok I think we have a circular dependency here. > > Follow the getting started guide > ``http://maven.apache.org/maven2/guides/getting-started/index.html'' > I am trying to execute the command line: > >% mvn archetype:create -DgroupId=com.mycompany.app > -DartifactId=my-app > > But it seems that the help page above requires me to > create a setting.xml that exists as part of a project. > > How can I define ``setting.xml'' if I still have to create a project? > Is there way of setting the proxy setting before creating the project > with archetype? > > -- > Peter Pilgrim :: J2EE Software Development > Operations/IT - Credit Suisse First Boston, > Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom > Tel: +44-(0)207-883-4497 > > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: 21 October 2005 14:34 > > To: Maven Users List > > Subject: RE: [m2] How do you use maven2 inside a corporate firewall? > > > > > > > > > > > > > > Peter, > > > > please have a look at the documentation on Maven 2 website: > > http://maven.apache.org/maven2/guides/mini/guide-proxies.html > > > > This page should answer your question. :o) > > > > Best Regards / Cordialement, > > Fabrice BELLINGARD > > DINQ/DSIN/INSI/EATE/IDVS/AIDV > > (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] > > > > > > > > > > "Pilgrim, Peter" > > > > <[EMAIL PROTECTED] > > > > sfb.com> > > Pour > >"Maven Users List > > (E-mail)" > > 21/10/2005 15:11 > > > > > > cc > > > > > > Veuillez > >Objet > > répondre à [m2] How do you use > > maven2 inside a > > Maven Users List corporate firewall? > > > > <[EMAIL PROTECTED] > > > > che.org> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Does ``mvn'' still respect the proxy settings in > > ``${user.home}/build.properties'' ? > > > > How do get maven2 to work with a HTTP proxy? > > > > TIA > &
Re: [m2] How do you use maven2 inside a corporate firewall?
From: "Pilgrim, Peter" <[EMAIL PROTECTED]> But it seems that the help page above requires me to create a setting.xml that exists as part of a project. My settings.xml file is in ~/.m2 (in my home directory). (Check the filename, you wrote 'setting' above.) -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] How do you use maven2 inside a corporate firewall?
Ok I set up the ``C:\Documents and Settings\ppilgrim\.m2\settings.xml'' with true http ocs-ca-http.csfb.net 8080 ppilgrim When I run the getting started command line, I get a failure C:\Projects>mvn -X archetype:create -DgroupId=com.mycompany.app -DartifactId=my- app + Error stacktraces are turned on. [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin gs\ppilgrim\.m2\plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: 'C:\opt\maven-2.0\bin\ ..\conf\plugin-registry.xml' [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [DEBUG] maven-archetype-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the latest ve rsion org.apache.maven.plugins:maven-archetype-plugin:LATEST:pom [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-archetype- plugin:pom:LATEST [DEBUG] maven-archetype-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the release v ersion org.apache.maven.plugins:maven-archetype-plugin:RELEASE:pom [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-archetype- plugin:pom:RELEASE [INFO] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exi st or no valid version could be found [INFO] - --- [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.m aven.plugins:maven-archetype-plugin' does not exist or no valid version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa ultLifecycleExecutor.java:1124) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor (DefaultLifecycleExecutor.java:1356) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy AggregationNeeds(DefaultLifecycleExecutor.java:376) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:132) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The p lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no val id version could be found at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl uginVersion(DefaultPluginVersionManager.java:225) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl uginVersion(DefaultPluginVersionManager.java:87) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug inManager.java:158) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa ultLifecycleExecutor.java:1095) ... 14 more [INFO] - --- [INFO] Total time: < 1 second [INFO] Finished at: Fri Oct 21 15:11:03 BST 2005 [INFO] Final Memory: 1M/2M [INFO] - --- -- Peter Pilgrim :: J2EE Software Development Operations/IT - Credit Suisse First Boston, Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom Tel: +44-(0)207-883-4497 > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 21 October 2005 15:09 > To: Maven Users List > Subject: RE: [m2] How do you use maven2 inside a corporate firewall? > > > > > > > The "settings.xml" file can be placed in: > - /conf/ : the settings will be available for > all users > - /.m2/ : the settings will be available only for you > > > Best Regards / Cordialement, > Fabrice BELLINGARD > DINQ/DSIN/INSI/EATE/IDVS/AIDV > (+33) (01 61)
RE: [m2] How do you use maven2 inside a corporate firewall?
The "settings.xml" file can be placed in: - /conf/ : the settings will be available for all users - /.m2/ : the settings will be available only for you Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] "Pilgrim, Peter" <[EMAIL PROTECTED] sfb.com> Pour 'Maven Users List' 21/10/2005 15:44 cc VeuillezObjet répondre à RE: [m2] How do you use maven2 Maven Users List inside a corporate firewall? <[EMAIL PROTECTED] che.org> Ok I think we have a circular dependency here. Follow the getting started guide ``http://maven.apache.org/maven2/guides/getting-started/index.html'' I am trying to execute the command line: % mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app But it seems that the help page above requires me to create a setting.xml that exists as part of a project. How can I define ``setting.xml'' if I still have to create a project? Is there way of setting the proxy setting before creating the project with archetype? -- Peter Pilgrim :: J2EE Software Development Operations/IT - Credit Suisse First Boston, Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom Tel: +44-(0)207-883-4497 > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 21 October 2005 14:34 > To: Maven Users List > Subject: RE: [m2] How do you use maven2 inside a corporate firewall? > > > > > > > Peter, > > please have a look at the documentation on Maven 2 website: > http://maven.apache.org/maven2/guides/mini/guide-proxies.html > > This page should answer your question. :o) > > Best Regards / Cordialement, > Fabrice BELLINGARD > DINQ/DSIN/INSI/EATE/IDVS/AIDV > (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] > > > > > "Pilgrim, Peter" > > <[EMAIL PROTECTED] > > sfb.com> > Pour >"Maven Users List > (E-mail)" > 21/10/2005 15:11 > > > cc > > > Veuillez >Objet > répondre à [m2] How do you use > maven2 inside a > Maven Users List corporate firewall? > > <[EMAIL PROTECTED] > > che.org> > > > > > > > > > > > > > > > Does ``mvn'' still respect the proxy settings in > ``${user.home}/build.properties'' ? > > How do get maven2 to work with a HTTP proxy? > > TIA > > > -- > Peter Pilgrim :: J2EE Software Development > Operations/IT - Credit Suisse First Boston, > Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom > Tel: +44-(0)207-883-4497 > > > == > > > Please access the attached hyperlink for an important electronic > communications disclaimer: > > http://www.csfb.com/legal_terms/disclaimer_external_email.shtml > > == > > > > > - > 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] > > == Please access the attached hyperlink for an important electronic communications disclaimer: http://www.csfb.com/legal_terms/disclaimer_external_email.shtml == - 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: [m2] How do you use maven2 inside a corporate firewall?
Ok I think we have a circular dependency here. Follow the getting started guide ``http://maven.apache.org/maven2/guides/getting-started/index.html'' I am trying to execute the command line: % mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app But it seems that the help page above requires me to create a setting.xml that exists as part of a project. How can I define ``setting.xml'' if I still have to create a project? Is there way of setting the proxy setting before creating the project with archetype? -- Peter Pilgrim :: J2EE Software Development Operations/IT - Credit Suisse First Boston, Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom Tel: +44-(0)207-883-4497 > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 21 October 2005 14:34 > To: Maven Users List > Subject: RE: [m2] How do you use maven2 inside a corporate firewall? > > > > > > > Peter, > > please have a look at the documentation on Maven 2 website: > http://maven.apache.org/maven2/guides/mini/guide-proxies.html > > This page should answer your question. :o) > > Best Regards / Cordialement, > Fabrice BELLINGARD > DINQ/DSIN/INSI/EATE/IDVS/AIDV > (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] > > > > > "Pilgrim, Peter" > > <[EMAIL PROTECTED] > > sfb.com> > Pour >"Maven Users List > (E-mail)" > 21/10/2005 15:11 > > > cc > > > Veuillez >Objet > répondre à [m2] How do you use > maven2 inside a > Maven Users List corporate firewall? > > <[EMAIL PROTECTED] > > che.org> > > > > > > > > > > > > > > > Does ``mvn'' still respect the proxy settings in > ``${user.home}/build.properties'' ? > > How do get maven2 to work with a HTTP proxy? > > TIA > > > -- > Peter Pilgrim :: J2EE Software Development > Operations/IT - Credit Suisse First Boston, > Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom > Tel: +44-(0)207-883-4497 > > > == > > > Please access the attached hyperlink for an important electronic > communications disclaimer: > > http://www.csfb.com/legal_terms/disclaimer_external_email.shtml > > == > > > > > - > 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] > > == Please access the attached hyperlink for an important electronic communications disclaimer: http://www.csfb.com/legal_terms/disclaimer_external_email.shtml == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] How do you use maven2 inside a corporate firewall?
Peter, please have a look at the documentation on Maven 2 website: http://maven.apache.org/maven2/guides/mini/guide-proxies.html This page should answer your question. :o) Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] "Pilgrim, Peter" <[EMAIL PROTECTED] sfb.com> Pour "Maven Users List (E-mail)" 21/10/2005 15:11 cc VeuillezObjet répondre à [m2] How do you use maven2 inside a Maven Users List corporate firewall? <[EMAIL PROTECTED] che.org> Does ``mvn'' still respect the proxy settings in ``${user.home}/build.properties'' ? How do get maven2 to work with a HTTP proxy? TIA -- Peter Pilgrim :: J2EE Software Development Operations/IT - Credit Suisse First Boston, Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom Tel: +44-(0)207-883-4497 == Please access the attached hyperlink for an important electronic communications disclaimer: http://www.csfb.com/legal_terms/disclaimer_external_email.shtml == - 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]
[m2] How do you use maven2 inside a corporate firewall?
Does ``mvn'' still respect the proxy settings in ``${user.home}/build.properties'' ? How do get maven2 to work with a HTTP proxy? TIA -- Peter Pilgrim :: J2EE Software Development Operations/IT - Credit Suisse First Boston, Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom Tel: +44-(0)207-883-4497 == Please access the attached hyperlink for an important electronic communications disclaimer: http://www.csfb.com/legal_terms/disclaimer_external_email.shtml == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]