Hi Charles
Just to console you, I get the same problem today.
Yesterday it was a different .jar making problem.
Actually you must be lucky if can run an "m2 install" which ends with a
successful build.
First I thought that it might be my eclipse which causes errors, but each
time I launched the same goal on the command line, straight in the .pom
directory, I got the same error. So finally that gave me the certainty that
eclipse works well with m2 (I mean it must, I use it as external function).
Secondly I though it might be my communication, then the repository server,
but none of this where the problem.
Finally I realised that the errors are always due to file(s) missing, means
libraries are not where they should be.
I don't know how the SM developer runs their tests after having done some
modification. IMHO I think that it is absolutely a must that a project
compiles always the trunk correctly, I hope they also think so.
Sorry, but to me that has nothing to do with m2. (I mean it has in the sense
that m2 automatically collects the needed libs at the indicated
repositories, but as said, if it would be tested ...)
I apologize for this frustrating mail, but you are otherwise doing such a
great job.
Cheers
Roland
Hi all,
I am up to date with svn and I am having troubles installing SM.
In addition, I don't know how to use SM from my personal build if I
succeed doing that...
Perhaps someone could explain me...
It will allow me to use the latest commits and upgrade...
Here is my build error :
mvn install -Dmaven.test.skip=true -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] ServiceMix
[INFO] ServiceMix :: JBI
[INFO] ServiceMix :: Core
[INFO] ServiceMix :: Components
[INFO] ServiceMix :: Common
[INFO] ServiceMix :: Console
[INFO] ServiceMix :: GBeans
[INFO] ServiceMix :: JMS
[INFO] ServiceMix :: JSR-181 Service Engine
[INFO] ServiceMix :: HTTP
[INFO] ServiceMix :: Lightweight container Service Engine
[INFO] Servicemix :: Assembly
[INFO] ServiceMix :: SCA Service Engine
[INFO] ServiceMix :: WS-Notification Service Engine
[INFO] snapshot
org.apache.maven.wagon:wagon-ssh-external:1.0-alpha-6-SNAPSHOT: checking
for updates from central
[INFO] snapshot
org.apache.maven.wagon:wagon-ssh-external:1.0-alpha-6-SNAPSHOT: checking
for updates from maven2-snapshots
[INFO] snapshot
org.apache.maven.wagon:wagon-ssh-external:1.0-alpha-6-SNAPSHOT: checking
for updates from servicemix-m2-repo
[INFO] snapshot
org.apache.maven.wagon:wagon-ssh-external:1.0-alpha-6-SNAPSHOT: checking
for updates from apache-m2
[INFO] snapshot
org.apache.maven.wagon:wagon-ssh-external:1.0-alpha-6-SNAPSHOT: checking
for updates from apache
[INFO] snapshot
org.apache.maven.wagon:wagon-ssh-external:1.0-alpha-6-SNAPSHOT: checking
for updates from codehaus
[INFO] snapshot
org.apache.maven.wagon:wagon-providers:1.0-alpha-6-SNAPSHOT: checking
for updates from central
[INFO] snapshot
org.apache.maven.wagon:wagon-providers:1.0-alpha-6-SNAPSHOT: checking
for updates from maven2-snapshots
[INFO] snapshot
org.apache.maven.wagon:wagon-providers:1.0-alpha-6-SNAPSHOT: checking
for updates from servicemix-m2-repo
[INFO] snapshot
org.apache.maven.wagon:wagon-providers:1.0-alpha-6-SNAPSHOT: checking
for updates from apache-m2
[INFO] snapshot
org.apache.maven.wagon:wagon-providers:1.0-alpha-6-SNAPSHOT: checking
for updates from apache
[INFO] snapshot
org.apache.maven.wagon:wagon-providers:1.0-alpha-6-SNAPSHOT: checking
for updates from codehaus
[INFO] snapshot org.apache.maven.wagon:wagon:1.0-alpha-6-SNAPSHOT:
checking for updates from central
[INFO] snapshot org.apache.maven.wagon:wagon:1.0-alpha-6-SNAPSHOT:
checking for updates from maven2-snapshots
[INFO] snapshot org.apache.maven.wagon:wagon:1.0-alpha-6-SNAPSHOT:
checking for updates from servicemix-m2-repo
[INFO] snapshot org.apache.maven.wagon:wagon:1.0-alpha-6-SNAPSHOT:
checking for updates from apache-m2
[INFO] snapshot org.apache.maven.wagon:wagon:1.0-alpha-6-SNAPSHOT:
checking for updates from apache
[INFO] snapshot org.apache.maven.wagon:wagon:1.0-alpha-6-SNAPSHOT:
checking for updates from codehaus
[INFO] snapshot
org.apache.maven.wagon:wagon-provider-api:1.0-alpha-6-SNAPSHOT: checking
for updates from central
[INFO] snapshot
org.apache.maven.wagon:wagon-provider-api:1.0-alpha-6-SNAPSHOT: checking
for updates from maven2-snapshots
[INFO] snapshot
org.apache.maven.wagon:wagon-provider-api:1.0-alpha-6-SNAPSHOT: checking
for updates from servicemix-m2-repo
[INFO] snapshot
org.apache.maven.wagon:wagon-provider-api:1.0-alpha-6-SNAPSHOT: checking
for updates from apache-m2
[INFO] snapshot
org.apache.maven.wagon:wagon-provider-api:1.0-alpha-6-SNAPSHOT: checking
for updates from apache
[INFO] snapshot
org.apache.maven.wagon:wagon-provider-api:1.0-alpha-6-SNAPSHOT: checking
for updates from codehaus
[INFO] snapshot
org.apache.servicemix.plugins:maven2-jbi-plugin:1.0-SNAPSHOT: checking
for updates from servicemix-snapshots
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'e29172f7a97a5008dc2154f561e198bca36306aa'; remote =
'4eaa70b8323003e0fbc7949cc1bdd03b5ff94cbf' - RETRYING
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'e29172f7a97a5008dc2154f561e198bca36306aa'; remote =
'4eaa70b8323003e0fbc7949cc1bdd03b5ff94cbf' - IGNORING
[INFO] snapshot
org.apache.servicemix.plugins:maven2-jbi-plugin:1.0-SNAPSHOT: checking
for updates from central
[INFO] snapshot
org.apache.servicemix.plugins:maven2-jbi-plugin:1.0-SNAPSHOT: checking
for updates from maven2-snapshots
[INFO] snapshot
org.apache.servicemix.plugins:maven2-jbi-plugin:1.0-SNAPSHOT: checking
for updates from servicemix-m2-repo
[INFO] snapshot
org.apache.servicemix.plugins:maven2-jbi-plugin:1.0-SNAPSHOT: checking
for updates from apache-m2
[INFO] snapshot
org.apache.servicemix.plugins:maven2-jbi-plugin:1.0-SNAPSHOT: checking
for updates from apache
[INFO] snapshot
org.apache.servicemix.plugins:maven2-jbi-plugin:1.0-SNAPSHOT: checking
for updates from codehaus
Downloading:
http://servicemix.org/m2-snapshots/org/apache/servicemix/plugins/maven2-jbi-
plugin/1.0-SNAPSHOT/maven2-jbi-plugin-1.0-20060111.090135-7.pom
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: org.apache.servicemix.plugins
ArtifactId: maven2-jbi-plugin
Version: 1.0-20060111.090135-7
Reason: Unable to locate resource in repository
org.apache.servicemix.plugins:maven2-jbi-plugin:pom:1.0-20060111.090135-7
from the specified remote repositories:
apache-m2 (http://cvs.apache.org/maven-snapshot-repository),
central (http://repo1.maven.org/maven2),
servicemix-m2-repo (http://servicemix.org/m2-repo),
codehaus (http://dist.codehaus.org),
apache (http://cvs.apache.org/repository),
maven2-snapshots (http://snapshots.maven.codehaus.org/maven2),
servicemix-snapshots (http://servicemix.org/m2-snapshots)
[INFO]
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build
project for plugin 'org.apache.servicemix.plugins:maven2-jbi-plugin':
POM 'org.apache.servicemix.plugins:maven2-jbi-plugin' not found in
repository: Unable to locate resource in repository
org.apache.servicemix.plugins:maven2-jbi-plugin:pom:1.0-20060111.090135-7
from the specified remote repositories:
apache-m2 (http://cvs.apache.org/maven-snapshot-repository),
central (http://repo1.maven.org/maven2),
servicemix-m2-repo (http://servicemix.org/m2-repo),
codehaus (http://dist.codehaus.org),
apache (http://cvs.apache.org/repository),
maven2-snapshots (http://snapshots.maven.codehaus.org/maven2),
servicemix-snapshots (http://servicemix.org/m2-snapshots)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLife
cycleExecutor.java:1191)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.findArtifactTypeHandlers
(DefaultLifecycleExecutor.java:1093)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.findExtensions(DefaultLi
fecycleExecutor.java:172)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.java:137)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
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.plugin.InvalidPluginException: Unable to
build project for plugin
'org.apache.servicemix.plugins:maven2-jbi-plugin': POM
'org.apache.servicemix.plugins:maven2-jbi-plugin' not found in
repository: Unable to locate resource in repository
org.apache.servicemix.plugins:maven2-jbi-plugin:pom:1.0-20060111.090135-7
from the specified remote repositories:
apache-m2 (http://cvs.apache.org/maven-snapshot-repository),
central (http://repo1.maven.org/maven2),
servicemix-m2-repo (http://servicemix.org/m2-repo),
codehaus (http://dist.codehaus.org),
apache (http://cvs.apache.org/repository),
maven2-snapshots (http://snapshots.maven.codehaus.org/maven2),
servicemix-snapshots (http://servicemix.org/m2-snapshots)
at
org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(Defau
ltPluginManager.java:285)
at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPl
uginManager.java:202)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManag
er.java:182)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLife
cycleExecutor.java:1174)
... 14 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM
'org.apache.servicemix.plugins:maven2-jbi-plugin' not found in
repository: Unable to locate resource in repository
org.apache.servicemix.plugins:maven2-jbi-plugin:pom:1.0-20060111.090135-7
from the specified remote repositories:
apache-m2 (http://cvs.apache.org/maven-snapshot-repository),
central (http://repo1.maven.org/maven2),
servicemix-m2-repo (http://servicemix.org/m2-repo),
codehaus (http://dist.codehaus.org),
apache (http://cvs.apache.org/repository),
maven2-snapshots (http://snapshots.maven.codehaus.org/maven2),
servicemix-snapshots (http://servicemix.org/m2-snapshots)
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(
DefaultMavenProjectBuilder.java:430)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(Defa
ultMavenProjectBuilder.java:352)
at
org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(Defau
ltPluginManager.java:269)
... 17 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable to locate resource in repository
org.apache.servicemix.plugins:maven2-jbi-plugin:pom:1.0-20060111.090135-7
from the specified remote repositories:
apache-m2 (http://cvs.apache.org/maven-snapshot-repository),
central (http://repo1.maven.org/maven2),
servicemix-m2-repo (http://servicemix.org/m2-repo),
codehaus (http://dist.codehaus.org),
apache (http://cvs.apache.org/repository),
maven2-snapshots (http://snapshots.maven.codehaus.org/maven2),
servicemix-snapshots (http://servicemix.org/m2-snapshots)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultAr
tifactResolver.java:136)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultAr
tifactResolver.java:63)
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(
DefaultMavenProjectBuilder.java:387)
... 19 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable
to locate resource in repository
at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(Lig
htweightHttpWagon.java:81)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
at
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultW
agonManager.java:367)
at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWag
onManager.java:282)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultAr
tifactResolver.java:120)
... 21 more
Caused by: java.io.FileNotFoundException:
http://servicemix.org/m2-snapshots/org/apache/servicemix/plugins/maven2-jbi-
plugin/1.0-SNAPSHOT/maven2-jbi-plugin-1.0-20060111.090135-7.pom
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection
.java:1147)
at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(Lig
htweightHttpWagon.java:71)
... 25 more
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 26 seconds
[INFO] Finished at: Wed Jan 11 11:10:51 CET 2006
[INFO] Final Memory: 3M/6M
[INFO]
----------------------------------------------------------------------------
Are you able to locate the requested ressource ?
Thanks,
Charles