[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Using org.eclipse.tycho\tycho-demo

You are getting messages about Maven core artifacts, so looks like
something is seriously wrong with your environment. Make sure that you
use Maven 3.0 or better and that your system has access to Maven central
repositories. I would also clean maven local repository to make sure it
does not contain any corrupted artifacts and metadata.

--
Regards,
Igor

On 11-12-07 4:36 AM, Lars Vogel wrote:
Hello,

I wanted to give Tycho a try and wanted to use the the tycho-demo. I
cloned tycho from git.eclipse.org <http://git.eclipse.org/> and switch
to org.eclipse.tycho\tycho-demo\itp01

My assumption was that a mvn install should build this example. I
received several error messages, please see below.

Please advice what I'm doing wrong.

Best regards, Lars

[WARNING] No explicit target runtime environment configuration. Build is
platform dependent.
[WARNING] No explicit target runtime environment configuration. Build is
platform dependent.
[INFO] Resolving target platform for project MavenProject:
tycho.demo.itp01:tycho.demo.itp01:1.0.0-SNAPSHOT @
C:\Users\vogella\workspace\org.eclipse.tycho\tycho
-demo\itp01\tycho.demo.itp01\pom.xml
[INFO] Adding repository http://download.eclipse.org/releases/helios
[INFO] Adding repository http://download.eclipse.org/releases/helios
[INFO] Resolving target platform for project MavenProject:
tycho.demo.itp01:tycho.demo.itp01.tests:1.0.0-SNAPSHOT @
C:\Users\vogella\workspace\org.eclipse.tycho
\tycho-demo\itp01\tycho.demo.itp01.tests\pom.xml
[INFO] Adding repository (cached)
http://download.eclipse.org/releases/helios
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] parent
[INFO] tycho.demo.itp01
[INFO] tycho.demo.itp01.tests
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building parent 1.0.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ parent ---
[WARNING] The POM for org.apache.maven:maven-project:jar:2.0.6 is
invalid, transitive dependencies (if any) will not be available, enable
debug logging for more
  details
[WARNING] The POM for org.apache.maven:maven-model:jar:2.0.6 is invalid,
transitive dependencies (if any) will not be available, enable debug
logging for more d
etails
[WARNING] The POM for org.apache.maven:maven-artifact-manager:jar:2.0.6
is invalid, transitive dependencies (if any) will not be available,
enable debug logging
  for more details
[WARNING] The POM for org.apache.maven:maven-artifact:jar:2.0.6 is
invalid, transitive dependencies (if any) will not be available, enable
debug logging for mor
e details
[WARNING] The POM for org.codehaus.plexus:plexus-digest:jar:1.0 is
invalid, transitive dependencies (if any) will not be available, enable
debug logging for mor
e details
Dez 07, 2011 10:27:53 AM org.sonatype.guice.bean.reflect.LoadedClass
java.lang.NoClassDefFoundError: org/codehaus/plexus/digest/DigesterException
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Class.java:2404)
         at java.lang.Class.getDeclaredConstructors(Class.java:1853)
         at
com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:243)
         at
com.google.inject.internal.ConstructorBindingImpl.create(ConstructorBindingImpl.java:96)
         at
com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:628)
         at
com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:835)
         at
com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:769)
         at
com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:254)
         at
com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:205)
         at
com.google.inject.internal.InjectorImpl.getInternalFactory(InjectorImpl.java:843)
         at
com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:957)
         at
com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:990)
         at
com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:951)
         at
com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1003)
         at
org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:47)
         at
com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
         at
com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:968)
         at
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1014)
         at
com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:964)
         at com.google.inject.Scopes$1$1.get(Scopes.java:59)
         at
org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:79)
         at
org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:53)
         at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:243)
         at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:235)
         at
org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:455)
         at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:92)
         at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
         at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
         at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
         at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
         at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
         at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
         at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:601)
         at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
         at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
         at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
         at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.ClassNotFoundException:
org.codehaus.plexus.digest.DigesterException
         at
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
         at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
         at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
         ... 47 more

[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] parent ............................................ FAILURE [0.110s]
[INFO] tycho.demo.itp01 .................................. SKIPPED
[INFO] tycho.demo.itp01.tests ............................ SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 52.433s
[INFO] Finished at: Wed Dec 07 10:27:53 CET 2011
[INFO] Final Memory: 84M/514M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-install-plugin:2.3.1:install
(default-install) on project parent: Execution default-install of goa
l org.apache.maven.plugins:maven-install-plugin:2.3.1:install failed:
Unable to load the mojo 'install' in the plugin
'org.apache.maven.plugins:maven-install-pl
ugin:2.3.1'. A required class is missing:
org/codehaus/plexus/digest/DigesterException
[ERROR] -----------------------------------------------------
[ERROR] realm =
  plugin>org.apache.maven.plugins:maven-install-plugin:2.3.1
[ERROR] strategy =
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] =
file:/C:/Users/vogella/.m2/repository/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.jar
[ERROR] urls[1] =
file:/C:/Users/vogella/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar
[ERROR] urls[2] =
file:/C:/Users/vogella/.m2/repository/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm
ClassRealm[project>tycho.demo.itp01:parent:1.0.0-SNAPSHOT, parent:
ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------:
org.codehaus.plexus.digest.DigesterException
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException

--
Lars
http://www.vogella.de - Eclipse, Android and Java Tutorials
http://www.twitter.com/vogella - Lars on Twitter


_______________________________________________ tycho-user mailing list tycho-user@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/tycho-user