hdt-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Berry <ad...@apache.org>
Subject Re: [jira] [Created] (HDT-45) Maven build fails on CentOS 6.4
Date Thu, 24 Oct 2013 16:17:45 GMT
Were you trying to build from the release tag?

I tried this on a RHEL 6.4 box that I have, and had no issue.

Maybe run with -X and see if there is anything more helpful in the full
output.

Adam



On Wed, Oct 23, 2013 at 6:25 AM, Mirko Kaempf (JIRA) <jira@apache.org>wrote:

> Mirko Kaempf created HDT-45:
> -------------------------------
>
>              Summary: Maven build fails on CentOS 6.4
>                  Key: HDT-45
>                  URL: https://issues.apache.org/jira/browse/HDT-45
>              Project: Hadoop Development Tools
>           Issue Type: Bug
>           Components: Build and infrastructure
>     Affects Versions: 0.0.1
>          Environment: CentOS 6.4 , running in virtual machine
>
> Eclipse 4.2.2 M20130204-1200
> m2eclipse 1.4.0.20130601-0317
>
> Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
> Maven home: /usr/local/apache-maven/apache-maven-3.0.4
> Java version: 1.6.0_31, vendor: Sun Microsystems Inc.
> Java home: /usr/java/jdk1.6.0_31/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "2.6.32-279.el6.x86_64", arch: "amd64", family:
> "unix"
>
>
>             Reporter: Mirko Kaempf
>             Priority: Blocker
>
>
> maven is not working in the fresh setup I try to use for a test.
>
> TODO: Find out, if there is a problem in mvn setup, or in pom.xml
>
> It looks like a plugin can not be installed on my platform. Can we fix
> this?
>
> ERROR-LOG:
>
> [INFO] Scanning for projects...
> [WARNING] No explicit target runtime environment configuration. Build is
> platform dependent.
> [WARNING] Error initializing:
> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver@59a02097
> java.lang.RuntimeException: org.apache.maven.MavenExecutionException:
> Failed to unpack Tycho's OSGi runtime: Error while expanding
> /home/training/.m2/repository/org/eclipse/tycho/tycho-bundles-external/0.16.0/tycho-bundles-external-0.16.0.zip
>         at
> org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.checkStarted(DefaultEquinoxEmbedder.java:300)
>         at
> org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.getService(DefaultEquinoxEmbedder.java:274)
>         at
> org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.getService(DefaultEquinoxEmbedder.java:269)
>         at
> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.initialize(P2TargetPlatformResolver.java:456)
>         at
> org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.initialize(PlexusLifecycleManager.java:338)
>         at
> org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.manageLifecycle(PlexusLifecycleManager.java:296)
>         at
> org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:148)
>         at
> com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:108)
>         at
> com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
>         at
> com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
>         at
> com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
>         at
> com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
>         at
> com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1011)
>         at
> com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
>         at com.google.inject.Scopes$1$1.get(Scopes.java:59)
>         at
> org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:83)
>         at
> org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:49)
>         at
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:253)
>         at
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:245)
>         at
> org.eclipse.tycho.core.resolver.DefaultTargetPlatformResolverFactory.lookupPlatformResolver(DefaultTargetPlatformResolverFactory.java:74)
>         at
> org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.setupProject(DefaultTychoDependencyResolver.java:80)
>         at
> org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:77)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274)
>         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:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         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: org.apache.maven.MavenExecutionException: Failed to unpack
> Tycho's OSGi runtime: Error while expanding
> /home/training/.m2/repository/org/eclipse/tycho/tycho-bundles-external/0.16.0/tycho-bundles-external-0.16.0.zip
>         at
> org.eclipse.tycho.osgi.runtime.TychoOsgiRuntimeLocator.addRuntimeArtifact(TychoOsgiRuntimeLocator.java:184)
>         at
> org.eclipse.tycho.osgi.runtime.TychoOsgiRuntimeLocator.addRuntimeArtifacts(TychoOsgiRuntimeLocator.java:153)
>         at
> org.eclipse.tycho.osgi.runtime.TychoOsgiRuntimeLocator.addRuntimeArtifacts(TychoOsgiRuntimeLocator.java:118)
>         at
> org.eclipse.tycho.osgi.runtime.TychoOsgiRuntimeLocator.locateRuntime(TychoOsgiRuntimeLocator.java:103)
>         at
> org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.doStart(DefaultEquinoxEmbedder.java:78)
>         at
> org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.start(DefaultEquinoxEmbedder.java:66)
>         at
> org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.checkStarted(DefaultEquinoxEmbedder.java:298)
>         ... 34 more
> Caused by: org.codehaus.plexus.archiver.ArchiverException: Error while
> expanding
> /home/training/.m2/repository/org/eclipse/tycho/tycho-bundles-external/0.16.0/tycho-bundles-external-0.16.0.zip
>         at
> org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver.execute(AbstractZipUnArchiver.java:158)
>         at
> org.codehaus.plexus.archiver.AbstractUnArchiver.extract(AbstractUnArchiver.java:119)
>         at
> org.eclipse.tycho.osgi.runtime.TychoOsgiRuntimeLocator.addRuntimeArtifact(TychoOsgiRuntimeLocator.java:182)
>         ... 40 more
> Caused by: java.io.IOException: Negative seek offset
>         at java.io.RandomAccessFile.seek(Native Method)
>         at
> org.codehaus.plexus.archiver.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:398)
>         at
> org.codehaus.plexus.archiver.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:269)
>         at
> org.codehaus.plexus.archiver.zip.ZipFile.<init>(ZipFile.java:152)
>         at
> org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver.execute(AbstractZipUnArchiver.java:138)
>         ... 42 more
> [ERROR] Internal error: java.lang.RuntimeException: Could not instantiate
> required component: com.google.inject.ProvisionException: Guice provision
> errors:
> [ERROR]
> [ERROR] 1) Error notifying ProvisionListener
> org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager of
> org.eclipse.tycho.core.TargetPlatformResolver annotated with
> @com.google.inject.name.Named(value=p2).
> [ERROR] Reason: java.lang.RuntimeException:
> org.apache.maven.MavenExecutionException: Failed to unpack Tycho's OSGi
> runtime: Error while expanding
> /home/training/.m2/repository/org/eclipse/tycho/tycho-bundles-external/0.16.0/tycho-bundles-external-0.16.0.zip
> [ERROR] while locating org.eclipse.tycho.core.TargetPlatformResolver
> annotated with @com.google.inject.name.Named(value=p2)
> [ERROR]
> [ERROR] 1 error
> [ERROR] role: org.eclipse.tycho.core.TargetPlatformResolver
> [ERROR] roleHint: p2: Negative seek offset
> [ERROR] -> [Help 1]
> org.apache.maven.InternalErrorException: Internal error:
> java.lang.RuntimeException: Could not instantiate required component
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
>         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:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         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.RuntimeException: Could not instantiate required
> component
>         at
> org.eclipse.tycho.core.resolver.DefaultTargetPlatformResolverFactory.lookupPlatformResolver(DefaultTargetPlatformResolverFactory.java:76)
>         at
> org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.setupProject(DefaultTychoDependencyResolver.java:80)
>         at
> org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:77)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>         ... 11 more
> Caused by:
> org.codehaus.plexus.component.repository.exception.ComponentLookupException:
> com.google.inject.ProvisionException: Guice provision errors:
>
> 1) Error notifying ProvisionListener
> org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager of
> org.eclipse.tycho.core.TargetPlatformResolver annotated with
> @com.google.inject.name.Named(value=p2).
>  Reason: java.lang.RuntimeException:
> org.apache.maven.MavenExecutionException: Failed to unpack Tycho's OSGi
> runtime: Error while expanding
> /home/training/.m2/repository/org/eclipse/tycho/tycho-bundles-external/0.16.0/tycho-bundles-external-0.16.0.zip
>   while locating org.eclipse.tycho.core.TargetPlatformResolver annotated
> with @com.google.inject.name.Named(value=p2)
>
> 1 error
>       role: org.eclipse.tycho.core.TargetPlatformResolver
>   roleHint: p2
>         at
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:257)
>         at
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:245)
>         at
> org.eclipse.tycho.core.resolver.DefaultTargetPlatformResolverFactory.lookupPlatformResolver(DefaultTargetPlatformResolverFactory.java:74)
>         ... 15 more
> Caused by: com.google.inject.ProvisionException: Guice provision errors:
>
> 1) Error notifying ProvisionListener
> org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager of
> org.eclipse.tycho.core.TargetPlatformResolver annotated with
> @com.google.inject.name.Named(value=p2).
>  Reason: java.lang.RuntimeException:
> org.apache.maven.MavenExecutionException: Failed to unpack Tycho's OSGi
> runtime: Error while expanding
> /home/training/.m2/repository/org/eclipse/tycho/tycho-bundles-external/0.16.0/tycho-bundles-external-0.16.0.zip
>   while locating org.eclipse.tycho.core.TargetPlatformResolver annotated
> with @com.google.inject.name.Named(value=p2)
>
> 1 error
>         at
> com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:974)
>         at com.google.inject.Scopes$1$1.get(Scopes.java:59)
>         at
> org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:83)
>         at
> org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:49)
>         at
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:253)
>         ... 17 more
> Caused by: java.lang.RuntimeException:
> org.apache.maven.MavenExecutionException: Failed to unpack Tycho's OSGi
> runtime: Error while expanding
> /home/training/.m2/repository/org/eclipse/tycho/tycho-bundles-external/0.16.0/tycho-bundles-external-0.16.0.zip
>         at
> org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.checkStarted(DefaultEquinoxEmbedder.java:300)
>         at
> org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.getService(DefaultEquinoxEmbedder.java:274)
>         at
> org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.getService(DefaultEquinoxEmbedder.java:269)
>         at
> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.initialize(P2TargetPlatformResolver.java:456)
>         at
> org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.initialize(PlexusLifecycleManager.java:338)
>         at
> org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.manageLifecycle(PlexusLifecycleManager.java:296)
>         at
> org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:148)
>         at
> com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:108)
>         at
> com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
>         at
> com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
>         at
> com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
>         at
> com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
>         at
> com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1011)
>         at
> com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
>         ... 21 more
> Caused by: org.apache.maven.MavenExecutionException: Failed to unpack
> Tycho's OSGi runtime: Error while expanding
> /home/training/.m2/repository/org/eclipse/tycho/tycho-bundles-external/0.16.0/tycho-bundles-external-0.16.0.zip
>         at
> org.eclipse.tycho.osgi.runtime.TychoOsgiRuntimeLocator.addRuntimeArtifact(TychoOsgiRuntimeLocator.java:184)
>         at
> org.eclipse.tycho.osgi.runtime.TychoOsgiRuntimeLocator.addRuntimeArtifacts(TychoOsgiRuntimeLocator.java:153)
>         at
> org.eclipse.tycho.osgi.runtime.TychoOsgiRuntimeLocator.addRuntimeArtifacts(TychoOsgiRuntimeLocator.java:118)
>         at
> org.eclipse.tycho.osgi.runtime.TychoOsgiRuntimeLocator.locateRuntime(TychoOsgiRuntimeLocator.java:103)
>         at
> org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.doStart(DefaultEquinoxEmbedder.java:78)
>         at
> org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.start(DefaultEquinoxEmbedder.java:66)
>         at
> org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.checkStarted(DefaultEquinoxEmbedder.java:298)
>         ... 34 more
> Caused by: org.codehaus.plexus.archiver.ArchiverException: Error while
> expanding
> /home/training/.m2/repository/org/eclipse/tycho/tycho-bundles-external/0.16.0/tycho-bundles-external-0.16.0.zip
>         at
> org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver.execute(AbstractZipUnArchiver.java:158)
>         at
> org.codehaus.plexus.archiver.AbstractUnArchiver.extract(AbstractUnArchiver.java:119)
>         at
> org.eclipse.tycho.osgi.runtime.TychoOsgiRuntimeLocator.addRuntimeArtifact(TychoOsgiRuntimeLocator.java:182)
>         ... 40 more
> Caused by: java.io.IOException: Negative seek offset
>         at java.io.RandomAccessFile.seek(Native Method)
>         at
> org.codehaus.plexus.archiver.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:398)
>         at
> org.codehaus.plexus.archiver.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:269)
>         at
> org.codehaus.plexus.archiver.zip.ZipFile.<init>(ZipFile.java:152)
>         at
> org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver.execute(AbstractZipUnArchiver.java:138)
>         ... 42 more
> [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/InternalErrorException
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.1#6144)
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message