I do not know where the problem of the missing pom comes from.
I think maybe, the nightly snapshot build has somewhat failed.

I do not say m2 is unstable. I have said that the ServiceMix m2 build is unstable.
Here are some of the reasons:
* m2 does not work well with m1 repositories. When poms are missing, some maven plugins fail.
 * m2 does not update m1 snapshots
* the m2 poms on ibiblio are changing quite frequently, so that transitive dependencies often changes
    and this is unnaceptable
* some poms on the m2 repository are bad : either they are missing some informations, or are m1 poms * ibiblio or codehaus repositories are sometime slow and this may lead to build errors
 * the problem of the missing pom shows that m2 is not very fault tolerant

I think m2 can be used safely when you have a small number of dependencies, or when you control most of them. But ServiceMix is an integration product and its main goal is to leverage lots of different technologies: we can not control the dependencies that other libraries we depend on put in their pom. A few days ago, you had to download hundreds of jars, because of transitivie dependencies.

I have just said that we were experiencing problems with the m2 build. FYI, the build works correctly on my machine, but the main problem is that the same build may fail on other machines. We do understand that having an unstable build is unnacceptable, and for all these reasons we are
considering to switch back to m1, which was very stable.

I'm really sorry about all the problems users have gone through with the m2 build, but this will be over
in the next few days when we will have switched back to m1.

Cheers,
Guillaume Nodet

Roland Oertig wrote:

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




Reply via email to