The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

megachucky (17) [Avatar] Offline
#1
Hey,

Maven cannot find the Artifact in the Repository. My Internet Connection is fine.
I do not have any experience with Maven yet smilie
Do you have a hint?

Best regards,
Kai Wähner


MacBook469Mac:file-copy User$ mvn -X -e compile exec:java -Dexec.mainClass=camelinaction.FileCopierWithCamel
+ Error stacktraces are turned on.
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.5.0_26
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.5.8" arch: "i386" Family: "unix"
[DEBUG] Building Maven user-level plugin registry from: '/Users/User/.m2/plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: '/Users/User/Desktop/Herbstcampus/apache-maven-2.2.1/conf/plugin-registry.xml'
[INFO] Scanning for projects...
[DEBUG] Searching for parent-POM: com.camelinaction:chapter1:pom:1.0 of project: null:chapter1-file-copy:jar:null in relative path: ../pom.xml
[DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project: null:chapter1-file-copy:jar:null
[DEBUG] Searching for parent-POM: com.camelinaction:parent:pom:1.0 of project: null:chapter1:pom:null in relative path: ../pom.xml
[DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project: null:chapter1:pom:null
[DEBUG] Adding managed dependencies for unknown:chapter1-file-copy
[DEBUG] org.apache.camel:camel-core:jar:2.5.0
[DEBUG] org.apache.camel:camel-spring:jar:2.5.0
[DEBUG] org.apache.camel:camel-scala:jar:2.5.0
[DEBUG] org.apache.camel:camel-cxf:jar:2.5.0
[DEBUG] org.apache.camel:camel-ftp:jar:2.5.0
[DEBUG] org.apache.camel:camel-http:jar:2.5.0
[DEBUG] org.apache.camel:camel-hawtdb:jar:2.5.0
[DEBUG] org.apache.camel:camel-mina:jar:2.5.0
[DEBUG] org.apache.camel:camel-jaxb:jar:2.5.0
[DEBUG] org.apache.camel:camel-jdbc:jar:2.5.0
[DEBUG] org.apache.camel:camel-quartz:jar:2.5.0
[DEBUG] org.apache.camel:camel-csv:jar:2.5.0
[DEBUG] org.apache.camel:camel-bindy:jar:2.5.0
[DEBUG] org.apache.camel:camel-jackson:jar:2.5.0
[DEBUG] org.apache.camel:camel-jetty:jar:2.5.0
[DEBUG] org.apache.camel:camel-jpa:jar:2.5.0
[DEBUG] org.apache.camel:camel-velocity:jar:2.5.0
[DEBUG] org.apache.camel:camel-jms:jar:2.5.0
[DEBUG] org.apache.camel:camel-stream:jar:2.5.0
[DEBUG] org.apache.camel:camel-test:jar:2.5.0
[DEBUG] org.apache.activemq:activemq-core:jar:5.3.2
[DEBUG] org.apache.activemq:activemq-camel:jar:5.3.2
[DEBUG] org.apache.xbeansmiliebean-spring:jar:3.4
[DEBUG] hsqldb:hsqldb:jar:1.8.0.7
[DEBUG] org.slf4j:slf4j-api:jar:1.6.1
[DEBUG] org.slf4j:slf4j-log4j12:jar:1.6.1
[DEBUG] log4j:log4j:jar:1.2.16
[DEBUG] junit:junit:jar:4.8.1
[DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire:pom:2.5 for project: org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:null from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:15 for project: org.apache.maven.surefire:surefire:pom:2.5 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache:pom:6 for project: org.apache.maven:maven-parent:pom:15 from the repository.
[DEBUG] Adding managed dependencies for org.apache.maven.plugins:maven-surefire-plugin
[DEBUG] org.apache.maven.surefire:surefire-api:jar:2.5
[DEBUG] org.apache.maven.surefire:surefire-booter:jar:2.5
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.9
[INFO] Searching repository for plugin with prefix: 'exec'.
[DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
[DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
[DEBUG] Trying repository central
[DEBUG] Using mirror: http://192.168.1.220/nexus/content/groups/public (id: hc.central)
[DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
[DEBUG] Checking for pre-existing User-Agent configuration.
[DEBUG] Adding User-Agent configuration.
[DEBUG] Connecting to repository: 'hc.central' with url: 'http://192.168.1.220/nexus/content/groups/public'.
Downloading: http://192.168.1.220/nexus/content/groups/public/org/codehaus/mojo/exec-maven-plugin/1.1.1/exec-maven-plugin-1.1.1.pom
[DEBUG] Error transferring file: Operation timed out
org.apache.maven.wagon.TransferFailedException: Error transferring file: Operation timed out
at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:143)
at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:8smilie
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:546)
at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:427)
at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:382)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:55smilie
at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:251)
at org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:277)
at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:205)
at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:184)
at org.apache.maven.plugin.DefaultPluginManager.loadPluginDescriptor(DefaultPluginManager.java:1642)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1540)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1851)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:462)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:175)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:32smilie
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:13smilie
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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:592)
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: java.net.ConnectException: Operation timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:433)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:477)
at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:38smilie
at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
at sun.net.www.http.HttpClient.New(HttpClient.java:304)
at sun.net.www.http.HttpClient.New(HttpClient.java:321)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:965)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:917)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:842)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1086)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:371)
at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:115)
... 30 more
[DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
[WARNING] Unable to get resource 'org.codehaus.mojo:exec-maven-plugin:pom:1.1.1' from repository central (http://repo1.maven.org/maven2): Error transferring file: Operation timed out
[DEBUG] Trying repository central
[DEBUG] Using mirror: http://192.168.1.220/nexus/content/groups/public (id: hc.central)
[DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
[DEBUG] Checking for pre-existing User-Agent configuration.
[DEBUG] Adding User-Agent configuration.
[DEBUG] Connecting to repository: 'hc.central' with url: 'http://192.168.1.220/nexus/content/groups/public'.
Downloading: http://192.168.1.220/nexus/content/groups/public/org/codehaus/mojo/exec-maven-plugin/1.1.1/exec-maven-plugin-1.1.1.pom
[DEBUG] Error transferring file: Operation timed out
org.apache.maven.wagon.TransferFailedException: Error transferring file: Operation timed out
at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:143)
at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:8smilie
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:546)
at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:427)
at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:382)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:55smilie
at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:251)
at org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:277)
at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:205)
at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:184)
at org.apache.maven.plugin.DefaultPluginManager.loadPluginDescriptor(DefaultPluginManager.java:1642)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1540)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1851)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:462)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:175)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:32smilie
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:13smilie
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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:592)
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: java.net.ConnectException: Operation timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:433)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:477)
at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:38smilie
at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
at sun.net.www.http.HttpClient.New(HttpClient.java:304)
at sun.net.www.http.HttpClient.New(HttpClient.java:321)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:965)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:917)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:842)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1086)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:371)
at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:115)
... 30 more
[DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
[WARNING] Unable to get resource 'org.codehaus.mojo:exec-maven-plugin:pom:1.1.1' from repository central (http://repo1.maven.org/maven2): Error transferring file: Operation timed out
[DEBUG] Using mirror: http://192.168.1.220/nexus/content/groups/public (id: hc.central)
[DEBUG] Using mirror: http://192.168.1.220/nexus/content/groups/public (id: hc.central)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.codehaus.mojo
ArtifactId: exec-maven-plugin
Version: 1.1.1

Reason: Unable to download the artifact from any repository

org.codehaus.mojo:exec-maven-plugin:pom:1.1.1

from the specified remote repositories:
hc.central (http://192.168.1.220/nexus/content/groups/public)



[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build project for plugin 'org.codehaus.mojo:exec-maven-plugin': POM 'org.codehaus.mojo:exec-maven-plugin' not found in repository: Unable to download the artifact from any repository

org.codehaus.mojo:exec-maven-plugin:pom:1.1.1

from the specified remote repositories:
hc.central (http://192.168.1.220/nexus/content/groups/public)

for project org.codehaus.mojo:exec-maven-plugin
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1557)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1851)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:462)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:175)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:32smilie
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:13smilie
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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:592)
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.InvalidPluginException: Unable to build project for plugin 'org.codehaus.mojo:exec-maven-plugin': POM 'org.codehaus.mojo:exec-maven-plugin' not found in repository: Unable to download the artifact from any repository

org.codehaus.mojo:exec-maven-plugin:pom:1.1.1

from the specified remote repositories:
hc.central (http://192.168.1.220/nexus/content/groups/public)

for project org.codehaus.mojo:exec-maven-plugin
at org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:293)
at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:205)
at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:184)
at org.apache.maven.plugin.DefaultPluginManager.loadPluginDescriptor(DefaultPluginManager.java:1642)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1540)
... 15 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.codehaus.mojo:exec-maven-plugin' not found in repository: Unable to download the artifact from any repository

org.codehaus.mojo:exec-maven-plugin:pom:1.1.1

from the specified remote repositories:
hc.central (http://192.168.1.220/nexus/content/groups/public)

for project org.codehaus.mojo:exec-maven-plugin
at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:605)
at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:251)
at org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:277)
... 19 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository

org.codehaus.mojo:exec-maven-plugin:pom:1.1.1

from the specified remote repositories:
hc.central (http://192.168.1.220/nexus/content/groups/public)


at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:22smilie
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:55smilie
... 21 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository
at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:404)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
... 23 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 minutes 30 seconds
[INFO] Finished at: Sun Dec 26 17:44:19 CET 2010
[INFO] Final Memory: 2M/4M
[INFO] ------------------------------------------------------------------------
MacBook469Mac:file-copy User$
davsclaus (413) [Avatar] Offline
#2
Re: Chapter 1 - Example: Artifact not found in Repository
Looks like you use nexus with maven, and that the download timed out.

Have you tried to restart nexus and try again?

Also you can try to trash your local .m2/repository directory to force it to re-download all artifacts. This sometimes help with maven issues.

Otherwise try to google as its a maven issue and not Camel related.
megachucky (17) [Avatar] Offline
#3
Re: Chapter 1 - Example: Artifact not found in Repository
Well, at least I do not know that I use Nexus. Honestly, I did not know what Nexus is until Google helped me smilie

I cannot find any Nexus installation. I think there is no nexus server started at my Mac. I use my private WLAN at the moment, so there is no other server or network.

Very strange - but you are right: It is not a Camel issue!
davsclaus (413) [Avatar] Offline
#4
Re: Chapter 1 - Example: Artifact not found in Repository
Ah it could in fact be the remote repository using nexus. So that explains why you dont use it.

But the url is resolved as: http://192.168.1.220/nexus/content/groups/public
Which is a bit strange as it ought to be a named web address?

Can you check your local m2 settings.xml file? It may have some issues there. And are you behind some proxy? If so you may have to define some proxy settings for maven to have it working.
davsclaus (413) [Avatar] Offline
#5
Re: Chapter 1 - Example: Artifact not found in Repository
Ah reading the DEBUG output helps smilie

[DEBUG] Trying repository central
[DEBUG] Using mirror: http://192.168.1.220/nexus/content/groups/public (id: hc.central)
[DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
[DEBUG] Checking for pre-existing User-Agent configuration.
[DEBUG] Adding User-Agent configuration.
[DEBUG] Connecting to repository: 'hc.central' with url: 'http://192.168.1.220/nexus/content/groups/public'.
Downloading: http://192.168.1.220/nexus/content/groups/public/org/codehaus/mojo/exec-maven-plugin/1.1.1/exec-maven-plugin-1.1.1.pom
[DEBUG] Error transferring file: Operation timed out
org.apache.maven.wagon.TransferFailedException: Error transferring file: Operation timed out


It looks like Maven want to look in maven central and it uses a mirror with that given url. But downloading from the mirror fails / times out.

You can download and install the JAR manually from central
http://repo2.maven.org/maven2/
megachucky (17) [Avatar] Offline
#6
Re: Chapter 1 - Example: Artifact not found in Repository
Thank you for your help.

Now, I spotted the problem: I also played around with Spring Roo, and therefore I installed the SpringSource Tool Suite. This IDE uses its own Maven installation and also uses Nexus.

I just redirected the Maven HOME and PATH to its correct destination using the Maven Getting Started Guide. Now everything works fine.

Best regards,
Kai Wähner