Hi SImon/ Yaov I am trying to get around Maven 2.2.0 and NTLM proxy issues. I believe Maven 2 still cannot after all this time handle NTLM proxy firewalls/. So my bright idea was to attempt to use Artifactoty 2.0.6 running as Windows Tomcat service. So I set up the NTLM is Artifactory with the usual proxy configuration. I get no joy at all. How can I see what Artifactory is doing in detail? I can see that ``artifactory.config.xml'' <config> ... <proxies> <proxy> <key>LTSB-FW</key> <host>corp-firewall.acme.lloydstsb.co.uk</host> <port>8080</port> <username>PILGRIMP</username> <password>MyPassword</password> <ntHost>MyHostname</ntHost> <domain>MARKETS</domain> </proxy> </proxies> </config> I tested by looking for the archetype plug-in, which I actually do need now to create J2EE project for Maven! C:\Documents and Settings\PILGRIMP\My Documents\Projects>del /f /s /q "\Documents and Settings\81 85838\.m2\repository" Deleted file - C:\Documents and Settings\PILGRIMP\.m2\repository\org\apache\maven\plugins\maven-m etadata-central.xml Deleted file - C:\Documents and Settings\PILGRIMP\.m2\repository\org\apache\maven\plugins\maven-a rchetype-plugin\maven-metadata-central.xml Deleted file - C:\Documents and Settings\PILGRIMP\.m2\repository\org\codehaus\mojo\maven-metadata -central.xml C:\Documents and Settings\PILGRIMP\My Documents\Projects>echo MAVEN_OPTS=-Xmx512m MAVEN_OPTS=-Xmx512m + Error stacktraces are turned on. Apache Maven 2.2.0 (r788681; 2009-06-26 14:04:01+0100) Java version: 1.6.0_14 Java home: C:\Program Files\Java\jdk1.6.0_14\jre Default locale: en_GB, platform encoding: Cp1252 OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\PILGRIMP\.m2\p lugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: 'C:\opt\apache-maven-2.2.0\conf\plugin -registry.xml' [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins [INFO] org.apache.maven.plugins: checking for updates from central [DEBUG] Checking for pre-existing User-Agent configuration. [DEBUG] Adding User-Agent configuration. [DEBUG] Connecting to repository: 'central' with url: 'http://localhost:9595/artifactory/plugins -releases'. [DEBUG] repository metadata for: 'org.apache.maven.plugins' could not be found on repository: ce ntral [DEBUG] Skipping disabled repository snapshots [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo [INFO] org.codehaus.mojo: checking for updates from central [DEBUG] Checking for pre-existing User-Agent configuration. [DEBUG] Adding User-Agent configuration. [DEBUG] Connecting to repository: 'central' with url: 'http://localhost:9595/artifactory/plugins -releases'. [DEBUG] repository metadata for: 'org.codehaus.mojo' could not be found on repository: central [DEBUG] Skipping disabled repository snapshots [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for updates from centr al [DEBUG] Checking for pre-existing User-Agent configuration. [DEBUG] Adding User-Agent configuration. [DEBUG] Connecting to repository: 'central' with url: 'http://localhost:9595/artifactory/plugins -releases'. [DEBUG] repository metadata for: 'artifact org.apache.maven.plugins:maven-archetype-plugin' coul d not be found on repository: central [DEBUG] Skipping disabled repository snapshots [DEBUG] maven-archetype-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the latest version org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-archetype-plugin:pom:LATES T [DEBUG] maven-archetype-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the release version org.apache.maven.plugins:maven-archetype-plugin:pom:RELEASE [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-archetype-plugin:pom:RELEA SE [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid v ersion could be found [INFO] ------------------------------------------------------------------------ [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:mav en-archetype-plugin' does not exist or no valid version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExec utor.java:1568) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycl eExecutor.java:1808) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds (DefaultLifecycleExecutor.java:446) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor. java:176) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:41) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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 plugin 'org.apach e.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(Defa ultPluginVersionManager.java:229) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(Defa ultPluginVersionManager.java:91) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:1 72) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExec utor.java:1539) ... 15 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3 minutes 22 seconds [INFO] Finished at: Wed Aug 12 10:54:33 BST 2009 [INFO] Final Memory: 1M/4M [INFO] ------------------------------------------------------------------------ C:\Documents and Settings\PILGRIMP\My Documents\Projects> In the Artifactory log file, I can see that it fails. 2009-08-12 10:47:23,269 [INFO ] (o.a.c.CentralConfigServiceImpl:264) - Reloaded configuration from 'C:\WINDOWS\system32\config\systemprofile\.artifactory\etc\artifactory.config.xml'. 2009-08-12 10:51:16,583 [WARN ] (o.a.r.RemoteRepoBase:199) - repo1: Error in getting information for 'org/apache/maven/plugins/maven-metadata.xml' (Failed retrieving resource from http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata.xml: The host did not accept the connection within timeout of 5000 ms). 2009-08-12 10:53:59,897 [WARN ] (o.a.r.RemoteRepoBase:199) - java.net.m2: Error in getting information for 'org/codehaus/mojo/maven-metadata.xml' (Failed retrieving resource from http://download.java.net/maven/2/org/codehaus/mojo/maven-metadata.xml: The host did not accept the connection within timeout of 3000 ms). 2009-08-12 10:54:04,897 [WARN ] (o.a.r.RemoteRepoBase:199) - repo1: Error in getting information for 'org/codehaus/mojo/maven-metadata.xml' (Failed retrieving resource from http://repo1.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml: The host did not accept the connection within timeout of 5000 ms). 2009-08-12 10:54:33,100 [WARN ] (o.a.r.RemoteRepoBase:199) - repo1: Error in getting information for 'org/apache/maven/plugins/maven-archetype-plugin/maven-metadata.xml' (Failed retrieving resource from http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/maven-metadata.xml: The host did not accept the connection within timeout of 5000 ms). -- View this message in context: http://www.nabble.com/How-to-Configure-Artifactory-as-a-NTLM-Proxy---Single-Developer-Machine--tp24931990p24931990.html Sent from the Artifactory-Users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Artifactory-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/artifactory-users |
Administrator
|
Hi Peter,
Fisrt, did you assign the proxy to the remote repository (repo1 and java.net in this case) in the remote repository's configuration dialog? Without doing this the remote repository will not use the proxy (that's the most common mistake with proxy usage, and we are changing it to have the proxy definition used automatically by all remote repositories). Second, there is a chance that your corporate proxy is using NTLM v2, and in this case, the Apache HttpClient library will not be able to authenticate. But, since I see that the connection fails on timeout, there is a chance that the real problem is the proxy not being used at all. If you wish to see what is going on on the wire, you can turn on debugging for the HttpClient package. Yoav On Wed, Aug 12, 2009 at 12:59 PM, Peter Pilgrim (JC) <[hidden email]> wrote:
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Artifactory-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/artifactory-users |
Hi Yoav I missed the PROXY settings too! I add proxy reference to the remote repositories ``repo1'' and ``java.net''. I just tried it. The firewall locked me out. I had worked out that I had Apache 6.0.20 installed as a windows service. Bad idea. The system service has no idea of the NT credentials, so I uninstall the EXE and just used the WinZip to unpack the package under C:\opt\apache-tomcat-6.0.20. I think we have NTLM v2.0 here, but the amazing thing is that I can Apache Ant and Apache Ivy without the username/password credentials. THis is because I am logged in to the workstation with my NT credentials. I can run Java and Groovy programs using groovy -Dhttp.proxyHost=PROXYHOST -Dhttp.proxyPort=8080 WGet.groovy I am going to try and gets these settings in Catalina and see what happens. This means I do not need the Proxy in Artifactory. Thanks for getting back. My next question for you would be. Is it possible to pull the content of the remote repositories in my workstation Artifactory and export them? Is it possible to then upload them to the project team Artifactory, which running on a UNIX box? Yoav Landman wrote: > > Hi Peter, > > Fisrt, did you assign the proxy to the remote repository (repo1 and > java.netin this case) in the remote repository's configuration dialog? > Without doing > this the remote repository will not use the proxy (that's the most common > mistake with proxy usage, and we are changing it to have the proxy > definition used automatically by all remote repositories). > > Second, there is a chance that your corporate proxy is using NTLM v2, and > in > this case, the Apache HttpClient library will not be able to authenticate. > But, since I see that the connection fails on timeout, there is a chance > that the real problem is the proxy not being used at all. > > If you wish to see what is going on on the wire, you can turn on debugging > for the HttpClient package. > > Yoav > > > > On Wed, Aug 12, 2009 at 12:59 PM, Peter Pilgrim (JC) < > [hidden email]> wrote: > >> >> Hi SImon/ Yaov >> >> I am trying to get around Maven 2.2.0 and NTLM proxy issues. >> >> I believe Maven 2 still cannot after all this time handle NTLM proxy >> firewalls/. >> So my bright idea was to attempt to use Artifactoty 2.0.6 running as >> Windows >> Tomcat service. >> >> So I set up the NTLM is Artifactory with the usual proxy configuration. I >> get no joy at all. How can I see what Artifactory is doing in detail? >> >> I can see that ``artifactory.config.xml'' >> >> <config> >> ... >> <proxies> >> <proxy> >> <key>LTSB-FW</key> >> <host>corp-firewall.acme.lloydstsb.co.uk</host> >> <port>8080</port> >> <username>PILGRIMP</username> >> <password>MyPassword</password> >> <ntHost>MyHostname</ntHost> >> <domain>MARKETS</domain> >> </proxy> >> </proxies> >> </config> >> >> I tested by looking for the archetype plug-in, which I actually do need >> now >> to create J2EE project for Maven! >> >> >> C:\Documents and Settings\PILGRIMP\My Documents\Projects>del /f /s /q >> "\Documents and Settings\81 >> 85838\.m2\repository" >> Deleted file - C:\Documents and >> Settings\PILGRIMP\.m2\repository\org\apache\maven\plugins\maven-m >> etadata-central.xml >> Deleted file - C:\Documents and >> Settings\PILGRIMP\.m2\repository\org\apache\maven\plugins\maven-a >> rchetype-plugin\maven-metadata-central.xml >> Deleted file - C:\Documents and >> Settings\PILGRIMP\.m2\repository\org\codehaus\mojo\maven-metadata >> -central.xml >> >> C:\Documents and Settings\PILGRIMP\My Documents\Projects>echo >> MAVEN_OPTS=-Xmx512m >> MAVEN_OPTS=-Xmx512m >> + Error stacktraces are turned on. >> Apache Maven 2.2.0 (r788681; 2009-06-26 14:04:01+0100) >> Java version: 1.6.0_14 >> Java home: C:\Program Files\Java\jdk1.6.0_14\jre >> Default locale: en_GB, platform encoding: Cp1252 >> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" >> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and >> Settings\PILGRIMP\.m2\p >> lugin-registry.xml' >> [DEBUG] Building Maven global-level plugin registry from: >> 'C:\opt\apache-maven-2.2.0\conf\plugin >> -registry.xml' >> [INFO] Scanning for projects... >> [INFO] Searching repository for plugin with prefix: 'archetype'. >> [DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins >> [INFO] org.apache.maven.plugins: checking for updates from central >> [DEBUG] Checking for pre-existing User-Agent configuration. >> [DEBUG] Adding User-Agent configuration. >> [DEBUG] Connecting to repository: 'central' with url: >> 'http://localhost:9595/artifactory/plugins >> -releases <http://localhost:9595/artifactory/plugins%0A-releases>'. >> [DEBUG] repository metadata for: 'org.apache.maven.plugins' could not be >> found on repository: ce >> ntral >> [DEBUG] Skipping disabled repository snapshots >> [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo >> [INFO] org.codehaus.mojo: checking for updates from central >> [DEBUG] Checking for pre-existing User-Agent configuration. >> [DEBUG] Adding User-Agent configuration. >> [DEBUG] Connecting to repository: 'central' with url: >> 'http://localhost:9595/artifactory/plugins >> -releases <http://localhost:9595/artifactory/plugins%0A-releases>'. >> [DEBUG] repository metadata for: 'org.codehaus.mojo' could not be found >> on >> repository: central >> [DEBUG] Skipping disabled repository snapshots >> [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking >> for updates from centr >> al >> [DEBUG] Checking for pre-existing User-Agent configuration. >> [DEBUG] Adding User-Agent configuration. >> [DEBUG] Connecting to repository: 'central' with url: >> 'http://localhost:9595/artifactory/plugins >> -releases <http://localhost:9595/artifactory/plugins%0A-releases>'. >> [DEBUG] repository metadata for: 'artifact >> org.apache.maven.plugins:maven-archetype-plugin' coul >> d not be found on repository: central >> [DEBUG] Skipping disabled repository snapshots >> [DEBUG] maven-archetype-plugin: using locally installed snapshot >> [DEBUG] Artifact not found - using stub model: Unable to determine the >> latest version >> >> org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST >> >> >> >> [DEBUG] Using defaults for missing POM >> org.apache.maven.plugins:maven-archetype-plugin:pom:LATES >> T >> [DEBUG] maven-archetype-plugin: using locally installed snapshot >> [DEBUG] Artifact not found - using stub model: Unable to determine the >> release version >> >> org.apache.maven.plugins:maven-archetype-plugin:pom:RELEASE >> >> >> >> [DEBUG] Using defaults for missing POM >> org.apache.maven.plugins:maven-archetype-plugin:pom:RELEA >> SE >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] BUILD ERROR >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does >> not >> exist or no valid v >> ersion could be found >> [INFO] >> ------------------------------------------------------------------------ >> [DEBUG] Trace >> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin >> 'org.apache.maven.plugins:mav >> en-archetype-plugin' does not exist or no valid version could be found >> at >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExec >> utor.java:1568) >> at >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycl >> eExecutor.java:1808) >> at >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds >> (DefaultLifecycleExecutor.java:446) >> at >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor. >> java:176) >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) >> at >> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:41) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> >> at java.lang.reflect.Method.invoke(Method.java:597) >> 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 plugin 'org.apach >> e.maven.plugins:maven-archetype-plugin' does not exist or no valid >> version >> could be found >> at >> >> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(Defa >> ultPluginVersionManager.java:229) >> at >> >> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(Defa >> ultPluginVersionManager.java:91) >> at >> >> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:1 >> 72) >> at >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExec >> utor.java:1539) >> ... 15 more >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 3 minutes 22 seconds >> [INFO] Finished at: Wed Aug 12 10:54:33 BST 2009 >> [INFO] Final Memory: 1M/4M >> [INFO] >> ------------------------------------------------------------------------ >> C:\Documents and Settings\PILGRIMP\My Documents\Projects> >> >> >> In the Artifactory log file, I can see that it fails. >> >> >> 2009-08-12 10:47:23,269 [INFO ] (o.a.c.CentralConfigServiceImpl:264) - >> Reloaded configuration from >> >> 'C:\WINDOWS\system32\config\systemprofile\.artifactory\etc\artifactory.config.xml'. >> 2009-08-12 10:51:16,583 [WARN ] (o.a.r.RemoteRepoBase:199) - repo1: Error >> in >> getting information for 'org/apache/maven/plugins/maven-metadata.xml' >> (Failed retrieving resource from >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata.xml: >> The host did not accept the connection within timeout of 5000 ms). >> 2009-08-12 10:53:59,897 [WARN ] (o.a.r.RemoteRepoBase:199) - java.net.m2: >> Error in getting information for 'org/codehaus/mojo/maven-metadata.xml' >> (Failed retrieving resource from >> http://download.java.net/maven/2/org/codehaus/mojo/maven-metadata.xml: >> The >> host did not accept the connection within timeout of 3000 ms). >> 2009-08-12 10:54:04,897 [WARN ] (o.a.r.RemoteRepoBase:199) - repo1: Error >> in >> getting information for 'org/codehaus/mojo/maven-metadata.xml' (Failed >> retrieving resource from >> http://repo1.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml: The >> host >> did not accept the connection within timeout of 5000 ms). >> 2009-08-12 10:54:33,100 [WARN ] (o.a.r.RemoteRepoBase:199) - repo1: Error >> in >> getting information for >> 'org/apache/maven/plugins/maven-archetype-plugin/maven-metadata.xml' >> (Failed >> retrieving resource from >> >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/maven-metadata.xml >> : >> The host did not accept the connection within timeout of 5000 ms). >> >> >> >> >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-Configure-Artifactory-as-a-NTLM-Proxy---Single-Developer-Machine--tp24931990p24931990.html >> Sent from the Artifactory-Users mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> trial. Simplify your report design, integration and deployment - and >> focus >> on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Artifactory-users mailing list >> [hidden email] >> https://lists.sourceforge.net/lists/listinfo/artifactory-users >> > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Artifactory-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/artifactory-users > > -- View this message in context: http://www.nabble.com/How-to-Configure-Artifactory-as-a-NTLM-Proxy---Single-Developer-Machine--tp24931990p24940582.html Sent from the Artifactory-Users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Artifactory-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/artifactory-users |
Ok! I just tried directly setting the "catalina.properties" ## Embed the settings http.proxyHost=PROXYADDR http.proxyPort=8080 http.nonProxyHosts=webdev1.lloydstsb.co.uk|interchange.lloydstsb.co.uk|fxtrades-ssl.currenex.net|fxtrades.currenex.net|fxtrades-ts.currenex.net|fxtrades-dl.currenex.net|*.treasury.lloydstsb.co.uk|*.lloydstsb.co.uk|*.session.rservices.com|*.Markets.Global.Lloydstsb.Com|localhost|127.0.0.1|devretappsvr1|devretappsvr2|FMDX1057 Then tried a quick URL in another browser tab: http://localhost:9595/artifactory/remote-repos/commons-io/commons-io/1.3.2/commons-io-1.3.2.jar 12-Aug-2009 17:53:54 org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-9595 12-Aug-2009 17:53:55 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 12-Aug-2009 17:53:55 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/125 config=null 12-Aug-2009 17:53:55 org.apache.catalina.startup.Catalina start INFO: Server startup in 44215 ms 2009-08-12 17:54:33,636 [WARN ] (o.a.r.RemoteRepoBase:199) - java.net.m2: Error in getting information for 'commons-io/commons-io/1.3.2/commons-io-1.3.2.jar' (F ailed retrieving resource from http://download.java.net/maven/2/commons-io/commo ns-io/1.3.2/commons-io-1.3.2.jar: The host did not accept the connection within timeout of 4000 ms). 2009-08-12 17:54:37,636 [WARN ] (o.a.r.RemoteRepoBase:199) - java.net.m1: Error in getting information for 'commons-io/commons-io/1.3.2/commons-io-1.3.2.jar' (F ailed retrieving resource from http://download.java.net/maven/1/commons-io/jars/ commons-io-1.3.2.jar: The host did not accept the connection within timeout of 4 000 ms). 2009-08-12 17:54:41,808 [WARN ] (o.a.r.RemoteRepoBase:199) - repo1: Error in get ting information for 'commons-io/commons-io/1.3.2/commons-io-1.3.2.jar' (Failed retrieving resource from http://repo1.maven.org/maven2/commons-io/commons-io/1.3 .2/commons-io-1.3.2.jar: The host did not accept the connection within timeout o f 4000 ms). Where are the log4j.properties settings? Peter Pilgrim (JC) wrote: > > Hi Yoav > > I missed the PROXY settings too! > I add proxy reference to the remote repositories ``repo1'' and > ``java.net''. I just tried it. The firewall locked me out. > > I had worked out that I had Apache 6.0.20 installed as a windows service. > Bad idea. The system service has no idea of the NT credentials, so I > uninstall the EXE and just used the WinZip to unpack the package under > C:\opt\apache-tomcat-6.0.20. > > I think we have NTLM v2.0 here, but the amazing thing is that I can Apache > Ant and Apache Ivy without the username/password credentials. THis is > because I am logged in to the workstation with my NT credentials. I can > run Java and Groovy programs using > > groovy -Dhttp.proxyHost=PROXYHOST -Dhttp.proxyPort=8080 WGet.groovy > > I am going to try and gets these settings in Catalina and see what > happens. > This means I do not need the Proxy in Artifactory. > > Thanks for getting back. > > My next question for you would be. Is it possible to pull the content of > the remote repositories in my workstation Artifactory and export them? Is > it possible to then upload them to the project team Artifactory, which > running on a UNIX box? > > > > > Yoav Landman wrote: >> >> Hi Peter, >> >> Fisrt, did you assign the proxy to the remote repository (repo1 and >> java.netin this case) in the remote repository's configuration dialog? >> Without doing >> this the remote repository will not use the proxy (that's the most common >> mistake with proxy usage, and we are changing it to have the proxy >> definition used automatically by all remote repositories). >> >> Second, there is a chance that your corporate proxy is using NTLM v2, and >> in >> this case, the Apache HttpClient library will not be able to >> authenticate. >> But, since I see that the connection fails on timeout, there is a chance >> that the real problem is the proxy not being used at all. >> >> If you wish to see what is going on on the wire, you can turn on >> debugging >> for the HttpClient package. >> >> Yoav >> >> >> >> On Wed, Aug 12, 2009 at 12:59 PM, Peter Pilgrim (JC) < >> [hidden email]> wrote: >> >>> >>> Hi SImon/ Yaov >>> >>> I am trying to get around Maven 2.2.0 and NTLM proxy issues. >>> >>> I believe Maven 2 still cannot after all this time handle NTLM proxy >>> firewalls/. >>> So my bright idea was to attempt to use Artifactoty 2.0.6 running as >>> Windows >>> Tomcat service. >>> >>> So I set up the NTLM is Artifactory with the usual proxy configuration. >>> I >>> get no joy at all. How can I see what Artifactory is doing in detail? >>> >>> I can see that ``artifactory.config.xml'' >>> >>> <config> >>> ... >>> <proxies> >>> <proxy> >>> <key>LTSB-FW</key> >>> <host>corp-firewall.acme.lloydstsb.co.uk</host> >>> <port>8080</port> >>> <username>PILGRIMP</username> >>> <password>MyPassword</password> >>> <ntHost>MyHostname</ntHost> >>> <domain>MARKETS</domain> >>> </proxy> >>> </proxies> >>> </config> >>> >>> I tested by looking for the archetype plug-in, which I actually do need >>> now >>> to create J2EE project for Maven! >>> >>> >>> C:\Documents and Settings\PILGRIMP\My Documents\Projects>del /f /s /q >>> "\Documents and Settings\81 >>> 85838\.m2\repository" >>> Deleted file - C:\Documents and >>> Settings\PILGRIMP\.m2\repository\org\apache\maven\plugins\maven-m >>> etadata-central.xml >>> Deleted file - C:\Documents and >>> Settings\PILGRIMP\.m2\repository\org\apache\maven\plugins\maven-a >>> rchetype-plugin\maven-metadata-central.xml >>> Deleted file - C:\Documents and >>> Settings\PILGRIMP\.m2\repository\org\codehaus\mojo\maven-metadata >>> -central.xml >>> >>> C:\Documents and Settings\PILGRIMP\My Documents\Projects>echo >>> MAVEN_OPTS=-Xmx512m >>> MAVEN_OPTS=-Xmx512m >>> + Error stacktraces are turned on. >>> Apache Maven 2.2.0 (r788681; 2009-06-26 14:04:01+0100) >>> Java version: 1.6.0_14 >>> Java home: C:\Program Files\Java\jdk1.6.0_14\jre >>> Default locale: en_GB, platform encoding: Cp1252 >>> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" >>> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents >>> and >>> Settings\PILGRIMP\.m2\p >>> lugin-registry.xml' >>> [DEBUG] Building Maven global-level plugin registry from: >>> 'C:\opt\apache-maven-2.2.0\conf\plugin >>> -registry.xml' >>> [INFO] Scanning for projects... >>> [INFO] Searching repository for plugin with prefix: 'archetype'. >>> [DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins >>> [INFO] org.apache.maven.plugins: checking for updates from central >>> [DEBUG] Checking for pre-existing User-Agent configuration. >>> [DEBUG] Adding User-Agent configuration. >>> [DEBUG] Connecting to repository: 'central' with url: >>> 'http://localhost:9595/artifactory/plugins >>> -releases <http://localhost:9595/artifactory/plugins%0A-releases>'. >>> [DEBUG] repository metadata for: 'org.apache.maven.plugins' could not be >>> found on repository: ce >>> ntral >>> [DEBUG] Skipping disabled repository snapshots >>> [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo >>> [INFO] org.codehaus.mojo: checking for updates from central >>> [DEBUG] Checking for pre-existing User-Agent configuration. >>> [DEBUG] Adding User-Agent configuration. >>> [DEBUG] Connecting to repository: 'central' with url: >>> 'http://localhost:9595/artifactory/plugins >>> -releases <http://localhost:9595/artifactory/plugins%0A-releases>'. >>> [DEBUG] repository metadata for: 'org.codehaus.mojo' could not be found >>> on >>> repository: central >>> [DEBUG] Skipping disabled repository snapshots >>> [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: >>> checking >>> for updates from centr >>> al >>> [DEBUG] Checking for pre-existing User-Agent configuration. >>> [DEBUG] Adding User-Agent configuration. >>> [DEBUG] Connecting to repository: 'central' with url: >>> 'http://localhost:9595/artifactory/plugins >>> -releases <http://localhost:9595/artifactory/plugins%0A-releases>'. >>> [DEBUG] repository metadata for: 'artifact >>> org.apache.maven.plugins:maven-archetype-plugin' coul >>> d not be found on repository: central >>> [DEBUG] Skipping disabled repository snapshots >>> [DEBUG] maven-archetype-plugin: using locally installed snapshot >>> [DEBUG] Artifact not found - using stub model: Unable to determine the >>> latest version >>> >>> org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST >>> >>> >>> >>> [DEBUG] Using defaults for missing POM >>> org.apache.maven.plugins:maven-archetype-plugin:pom:LATES >>> T >>> [DEBUG] maven-archetype-plugin: using locally installed snapshot >>> [DEBUG] Artifact not found - using stub model: Unable to determine the >>> release version >>> >>> org.apache.maven.plugins:maven-archetype-plugin:pom:RELEASE >>> >>> >>> >>> [DEBUG] Using defaults for missing POM >>> org.apache.maven.plugins:maven-archetype-plugin:pom:RELEA >>> SE >>> [INFO] >>> ------------------------------------------------------------------------ >>> [ERROR] BUILD ERROR >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does >>> not >>> exist or no valid v >>> ersion could be found >>> [INFO] >>> ------------------------------------------------------------------------ >>> [DEBUG] Trace >>> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin >>> 'org.apache.maven.plugins:mav >>> en-archetype-plugin' does not exist or no valid version could be found >>> at >>> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExec >>> utor.java:1568) >>> at >>> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycl >>> eExecutor.java:1808) >>> at >>> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds >>> (DefaultLifecycleExecutor.java:446) >>> at >>> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor. >>> java:176) >>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) >>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) >>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) >>> at >>> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:41) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at >>> >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>> at >>> >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>> >>> at java.lang.reflect.Method.invoke(Method.java:597) >>> 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 plugin 'org.apach >>> e.maven.plugins:maven-archetype-plugin' does not exist or no valid >>> version >>> could be found >>> at >>> >>> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(Defa >>> ultPluginVersionManager.java:229) >>> at >>> >>> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(Defa >>> ultPluginVersionManager.java:91) >>> at >>> >>> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:1 >>> 72) >>> at >>> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExec >>> utor.java:1539) >>> ... 15 more >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Total time: 3 minutes 22 seconds >>> [INFO] Finished at: Wed Aug 12 10:54:33 BST 2009 >>> [INFO] Final Memory: 1M/4M >>> [INFO] >>> ------------------------------------------------------------------------ >>> C:\Documents and Settings\PILGRIMP\My Documents\Projects> >>> >>> >>> In the Artifactory log file, I can see that it fails. >>> >>> >>> 2009-08-12 10:47:23,269 [INFO ] (o.a.c.CentralConfigServiceImpl:264) - >>> Reloaded configuration from >>> >>> 'C:\WINDOWS\system32\config\systemprofile\.artifactory\etc\artifactory.config.xml'. >>> 2009-08-12 10:51:16,583 [WARN ] (o.a.r.RemoteRepoBase:199) - repo1: >>> Error >>> in >>> getting information for 'org/apache/maven/plugins/maven-metadata.xml' >>> (Failed retrieving resource from >>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata.xml: >>> The host did not accept the connection within timeout of 5000 ms). >>> 2009-08-12 10:53:59,897 [WARN ] (o.a.r.RemoteRepoBase:199) - >>> java.net.m2: >>> Error in getting information for 'org/codehaus/mojo/maven-metadata.xml' >>> (Failed retrieving resource from >>> http://download.java.net/maven/2/org/codehaus/mojo/maven-metadata.xml: >>> The >>> host did not accept the connection within timeout of 3000 ms). >>> 2009-08-12 10:54:04,897 [WARN ] (o.a.r.RemoteRepoBase:199) - repo1: >>> Error >>> in >>> getting information for 'org/codehaus/mojo/maven-metadata.xml' (Failed >>> retrieving resource from >>> http://repo1.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml: The >>> host >>> did not accept the connection within timeout of 5000 ms). >>> 2009-08-12 10:54:33,100 [WARN ] (o.a.r.RemoteRepoBase:199) - repo1: >>> Error >>> in >>> getting information for >>> 'org/apache/maven/plugins/maven-archetype-plugin/maven-metadata.xml' >>> (Failed >>> retrieving resource from >>> >>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/maven-metadata.xml >>> : >>> The host did not accept the connection within timeout of 5000 ms). >>> >>> >>> >>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/How-to-Configure-Artifactory-as-a-NTLM-Proxy---Single-Developer-Machine--tp24931990p24931990.html >>> Sent from the Artifactory-Users mailing list archive at Nabble.com. >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >>> 30-Day >>> trial. Simplify your report design, integration and deployment - and >>> focus >>> on >>> what you do best, core application coding. Discover what's new with >>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>> _______________________________________________ >>> Artifactory-users mailing list >>> [hidden email] >>> https://lists.sourceforge.net/lists/listinfo/artifactory-users >>> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> trial. Simplify your report design, integration and deployment - and >> focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Artifactory-users mailing list >> [hidden email] >> https://lists.sourceforge.net/lists/listinfo/artifactory-users >> >> > > -- View this message in context: http://www.nabble.com/How-to-Configure-Artifactory-as-a-NTLM-Proxy---Single-Developer-Machine--tp24931990p24940697.html Sent from the Artifactory-Users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Artifactory-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/artifactory-users |
Administrator
|
You can export the content of any repository (including caches) and re-import it to another artifactory, by using the export/import features under Admin->Import & Export->Export Repository to Path/Import Repository from Path. It's all OS agnostic.
The logback configuration is under $ARTIFACTORY_HOME/etc/logback.xml if you need it (it will be auto-reloaded - no need to restart Artifactory). Using the JDK's built-in proxy configuration with some Java apps works even with NTLM v2 - but only on Windows, since it is using the integrated support inside the Windows JVM. Artifactory uses the cross-platform Apache HttpClient, that doesn't use this low level integration. Yoav On Wed, Aug 12, 2009 at 7:57 PM, Peter Pilgrim (JC) <[hidden email]> wrote:
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Artifactory-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/artifactory-users |
Yoav Landman wrote: > > You can export the content of any repository (including caches) and > re-import it to another artifactory, by using the export/import features > under Admin->Import & Export->Export Repository to Path/Import Repository > from Path. It's all OS agnostic. > > The logback configuration is under $ARTIFACTORY_HOME/etc/logback.xml if > you > need it (it will be auto-reloaded - no need to restart Artifactory). > > Using the JDK's built-in proxy configuration with some Java apps works > even > with NTLM v2 - but only on Windows, since it is using the integrated > support > inside the Windows JVM. Artifactory uses the cross-platform Apache > HttpClient, that doesn't use this low level integration. > > Yoav > > On Wed, Aug 12, 2009 at 7:57 PM, Peter Pilgrim (JC) < > [hidden email]> wrote: > > Thanks Yoav I figured as much. Sun Windows JVM is really saving the day so to speak. I think it must be the built-in proxy configuration that must be doing rather than Artifactory. Whatever, man! I am archiving that the ``artifactory.config.xml'' to a shared drive for goodness. My second question, is then, since I will probably doing this a lot, can I append an existing repository on the UNIX server. Say I have a bunch of artefacts on my local Windows station, like XStream / Jettison, and I want to get these into the Project Team shared repository. Can I append the XStream artefacts to the latter with the import operation without blowing away the Project Team's shared repo? -- View this message in context: http://www.nabble.com/How-to-Configure-Artifactory-as-a-NTLM-Proxy---Single-Developer-Machine--tp24931990p24951099.html Sent from the Artifactory-Users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Artifactory-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/artifactory-users |
Administrator
|
Yes, repository import (as opposed to system import) is an additive operation - when new items are added conflicting items are overridden but all other existing items will remain in the repo.
BTW, for small imports, you may want to use the deploy bundle feature (Deploy->Artifacts Bundle). P.S. Thanks for the tweets :) On Thu, Aug 13, 2009 at 11:40 AM, Peter Pilgrim (JC) <[hidden email]> wrote:
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Artifactory-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/artifactory-users |
Free forum by Nabble | Edit this page |