On Fri, 21 Oct 2005 11:28:50 +0100, Edwin Punzalan <[EMAIL PROTECTED]>
wrote:
Hmmmm
icu4j is not in central repo... the name could be incorrect or the
developers have not given their artifacts yet.
That's what I guessed. So the question is - is everyone who installs M2 on
a fresh machine seeing the same thing?
Can anyone suggest a workaround, short of manually finding and installing
the missing jars? Should I wait for the repo to be updated? Can I not use
the M1 repo with M2? I could do with getting it going because we want to
look into a M2 version of the Java.net plugin, and I have next week free.
Ross Bamford wrote:
On Fri, 21 Oct 2005 10:19:00 +0100, Edwin Punzalan
<[EMAIL PROTECTED]> wrote:
Sun jars like servletapi and jta are not in central repo...
you should download them from sun website and install in your repo
using install:install-file.
My project doesn't use Servlet API of any description, so it must be a
plugin dep. In that case it looks like someone's f****d up somewhere,
because Servlet 2.3 _is_ distributed (I assume so - it's in my M2 repo
already). Maybe someone's updated their plugin to Servlets 2.4 and not
told anyone?
In any event, I've done as you suggested (actually just got it from M1
on ibiblio), but the other Jars I mentioned are now stopping the
build. The session is exactly as below, except that the fatal error
now mentions "icu4j:icu4j:2.6.1:jar"
The download of artifacts is not sorted in any way so each run, you
download of artifacts is different. The build will download
artifacts until it reaches the sun jar and then fails.
Ross Bamford wrote:
Hi,
Hope this is the correct list for M2?
I downloaded the 2.0 release yesterday, but am having some problems
getting it to work - when I try to run a build it bombs out with
missing dependencies on stuff that (I assume) must be plug-in
dependencies, notably some xerces jars, the Servlet 2.4 jar (??!?),
and 'tagsoup'. I can't find these in the M2 repository either. Am I
going mad?
A typical session goes:
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building Jepi
[INFO] task-segment: [compile]
[INFO]
----------------------------------------------------------------------------
[WARNING] POM for: 'commons-io:commons-io:pom:1.0' does not appear
to be valid. Its will be ignored for artifact resolution.
Reason: Failed to validate POM
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://repo1.maven.org/maven2/xerces/xmlParserAPIs/2.6.1/xmlParserAPIs-2.6.1.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/servletapi/servlet/2.4/servlet-2.4.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/xerces/xercesImpl/2.2.1/xercesImpl-2.2.1.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/icu4j/icu4j/2.6.1/icu4j-2.6.1.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/tagsoup/tagsoup/0.9.7/tagsoup-0.9.7.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[WARNING]
Artifact junit:junit:jar:3.8.1 retains local scope 'test'
overriding broader scope 'compile'
given by a dependency. If this is not intended, modify or
remove the local scope.
[WARNING] POM for: 'picocontainer:picocontainer:pom:1.2-beta-1' does
not appear to be valid. Its will be ignored for artifact resolution.
Reason: The POM expression: ${picocontainer.version} could not be
evaluated. Reason:
picocontainer:picocontainer:jar:${picocontainer.version} references
itself.
[WARNING] POM for: 'nanocontainer:nanocontainer:pom:1.0-RC-1' does
not appear to be valid. Its will be ignored for artifact resolution.
Reason: The POM expression: ${nanocontainer.version} could not be
evaluated. Reason:
nanocontainer:nanocontainer:jar:${nanocontainer.version} references
itself.
Downloading:
http://repo1.maven.org/maven2/log4j/log4j/1.2.6/log4j-1.2.6.jar
342K downloaded
Downloading:
http://repo1.maven.org/maven2/commons-collections/commons-collections/2.1/commons-collections-2.1.jar
161K downloaded
Downloading:
http://repo1.maven.org/maven2/xerces/xerces/2.2.1/xerces-2.2.1.jar
815K downloaded
Downloading:
http://repo1.maven.org/maven2/servletapi/servlet/2.4/servlet-2.4.jar
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: servletapi
ArtifactId: servlet
Version: 2.4
Reason: Unable to download the artifact from any repository
servletapi:servlet:2.4:jar
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
[INFO]
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to
download the artifact from any repository
servletapi:servlet:2.4:jar
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:528)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
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(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.artifact.resolver.ArtifactNotFoundException:
Unable to download the artifact from any repository
servletapi:servlet:2.4:jar
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:136)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:230)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:211)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:182)
at
org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1152)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:353)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
... 16 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:260)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:124)
... 23 more
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 3 minutes 52 seconds
[INFO] Finished at: Fri Oct 21 08:36:19 BST 2005
[INFO] Final Memory: 3M/5M
[INFO]
----------------------------------------------------------------------------
Interestingly it seems to download a few extra jars each time I run
it. The above was a fourth run at this, and previously it just
bombed out. This time, however, it grabbed a few more jars before
bombing out (with the same error).
If anyone can tell me what I've done wrong I'd appreciate it - I'm
hoping to eval m2 on a project over this weekend.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-- This email has been verified as Virus free
Virus Protection and more available at http://www.plus.net
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
This email has been verified as Virus free
Virus Protection and more available at http://www.plus.net
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]