You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by puneetjain <pu...@wipro.com> on 2008/09/05 04:56:49 UTC
Error Run in Maven in Japanese Locale
Hi,
I am trying to create scripts in Maven.
Steps Performed:
============
1. Extracted the maven2.9 distribution in a folder.
2. Set the Maven bin directory in my classpath.
3. Changed directory to my maven project.
4. Run following command: mvn install
Issue 1:
=====
It was not able to download maven plugins.
I am using direct internet connection, no proxy setup is there.
Issue 2:
=====
I copied the link from the console and tried to open it in brower:
http://repo1.maven.org/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom
Link is not opening in the browser too.
I tried the link with ping, tracert, nslookup. Following is the output of
the commands:
C:\>tracert
http://repo1.maven.org/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom
Unable to resolve target system name
http://repo1.maven.org/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom.
C:\>ping
http://repo1.maven.org/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom
Ping request could not find host
http://repo1.maven.org/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom.
Please check the name and try again.
C:\>nslookup
http://repo1.maven.org/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom
Server: exnsa.plala.or.jp
Address: 220.220.248.1
*** exnsa.plala.or.jp can't find
http://repo1.maven.org/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom:
Non-existent domain
C:\>ping
http://63.246.20.112/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom
Ping request could not find host
http://63.246.20.112/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom.
Please check the name and try again.
C:\>tracert
http://63.246.20.112/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom
Unable to resolve target system name
http://63.246.20.112/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom.
C:\>nslookup
http://63.246.20.112/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom
Server: exnsa.plala.or.jp
Address: 220.220.248.1
*** exnsa.plala.or.jp can't find
http://63.246.20.112/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom:
Non-existent domain
Exception:
=======
Script Console output is:
[INFO] Scanning for projects...
Downloading:
http://people.apache.org/repo/m2-incubating-repository/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom
Downloading:
http://repo1.maven.org/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: org.apache.servicemix
ArtifactId: samples
Version: 3.2.1
Reason: Unable to download the artifact from any repository
org.apache.servicemix:samples:pom:3.2.1
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
apache.incubating (http://people.apache.org/repo/m2-incubating-repository)
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
org.apache.servicemix:samples for project:
org.apache.servicemix.samples:bridge:pom:null for project
org.apache.servicemix.samples
:bridge:pom:null
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
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:585)
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.project.ProjectBuildingException: Cannot find
parent: org.apache.servicemix:samples for project:
org.apache.servicemix.samples:bridge:pom:null for project org.apache.servic
emix.samples:bridge:pom:null
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1370)
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1387)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:821)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506)
at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198)
at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
... 11 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM
'org.apache.servicemix:samples' not found in repository: Unable to download
the artifact from any repository
org.apache.servicemix:samples:pom:3.2.1
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
apache.incubating (http://people.apache.org/repo/m2-incubating-repository)
for project org.apache.servicemix:samples
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:603)
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1366)
... 18 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable to download the artifact from any repository
org.apache.servicemix:samples:pom:3.2.1
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
apache.incubating (http://people.apache.org/repo/m2-incubating-repository)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:212)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:74)
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:556)
... 19 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:331)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:200)
... 21 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 22 seconds
[INFO] Finished at: Fri Sep 05 11:02:05 GMT+09:00 2008
[INFO] Final Memory: 1M/2M
I have tried to run this sample in India locale. It was working fine.
Is there any issue with Maven running in Japanese locale.
Please help me to resolve the problem. Any reply will be appreciated as this
problem is bottleneck for me and I am not able to move ahead.
Thanks in advanced.
Puneet
--
View this message in context: http://www.nabble.com/Error-Run-in-Maven-in-Japanese-Locale-tp19323982p19323982.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Error Run in Maven in Japanese Locale
Posted by Wayne Fay <wa...@gmail.com>.
> C:\>tracert
> repo1.maven.org/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom
> Unable to resolve target system name
> repo1.maven.org/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom.
As I said before, you are using these commands incorrectly.
tracert repo1.maven.org
ping repo1.maven.org
nslookup repo1.maven.org
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Error Run in Maven in Japanese Locale
Posted by puneetjain <pu...@wipro.com>.
Hi Wayne,
Thanks for a quick reply.
Please find the updated output for the commands. I would like to highlight
one thing that I have also mentioned in my last mail that I am also not able
to access the link using Web Browser. Current I am located in Japan and my
team is in india. The link is able to open from India. I tried this with IP
address too. Please help to resolve the issue.
C:\>tracert
repo1.maven.org/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom
Unable to resolve target system name
repo1.maven.org/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom.
C:\>ping
repo1.maven.org/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom
Ping request could not find host
repo1.maven.org/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom.
Please check the name and try again.
C:\>nslookup
repo1.maven.org/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom
Server: exnsa.plala.or.jp
Address: 220.220.248.1
*** exnsa.plala.or.jp can't find
repo1.maven.org/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom:
Non-existent domain
C:\>ping
63.246.20.112/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom
Ping request could not find host
63.246.20.112/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom.
Please check the name and try again.
C:\>tracert
63.246.20.112/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom
Unable to resolve target system name
63.246.20.112/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom.
C:\>nslookup
63.246.20.112/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom
Server: exnsa.plala.or.jp
Address: 220.220.248.1
*** exnsa.plala.or.jp can't find
63.246.20.112/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom:
Non-existent domain
Thanks,
Puneet
Wayne Fay wrote:
>
>> C:\>tracert
>> http://repo1.maven.org/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom
>> Unable to resolve target system name
>> http://repo1.maven.org/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom.
>
> This is simply an invalid execution of the command. Windows tracert,
> ping, and nslookup do not understand http://a.b.c. You must simply
> type:
> tracert a.b.c
> ping a.b.c
> nslookup a.b.c
>
>> C:\>ping
>> http://63.246.20.112/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom
>> Ping request could not find host
>> http://63.246.20.112/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom.
>> Please check the name and try again.
>
> Again, this is an invalid use of ping (and the other commands). Simply
> type: ping 63.246.20.112
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Error-Run-in-Maven-in-Japanese-Locale-tp19323982p19324811.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Error Run in Maven in Japanese Locale
Posted by Wayne Fay <wa...@gmail.com>.
> C:\>tracert
> http://repo1.maven.org/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom
> Unable to resolve target system name
> http://repo1.maven.org/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom.
This is simply an invalid execution of the command. Windows tracert,
ping, and nslookup do not understand http://a.b.c. You must simply
type:
tracert a.b.c
ping a.b.c
nslookup a.b.c
> C:\>ping
> http://63.246.20.112/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom
> Ping request could not find host
> http://63.246.20.112/maven2/org/apache/servicemix/samples/3.2.1/samples-3.2.1.pom.
> Please check the name and try again.
Again, this is an invalid use of ping (and the other commands). Simply
type: ping 63.246.20.112
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org