You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by Jiaxin Ye <ji...@usc.edu> on 2015/02/19 08:48:15 UTC

[Maven Failed]

Hi All,

I restarted my mac and found when I type mvn in the command line I got the
following error. Anyone know why?

local > mvn

log4j:WARN No appenders could be found for logger
(org.apache.maven.cli.logging.impl.UnsupportedSlf4jBindingConfiguration).

log4j:WARN Please initialize the log4j system properly.

log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.

---------------------------------------------------

constituent[0]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/aether-api-1.0.0.v20140518.jar

constituent[1]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/aether-connector-basic-1.0.0.v20140518.jar

constituent[2]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/aether-impl-1.0.0.v20140518.jar

constituent[3]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/aether-spi-1.0.0.v20140518.jar

constituent[4]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/aether-transport-wagon-1.0.0.v20140518.jar

constituent[5]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/aether-util-1.0.0.v20140518.jar

constituent[6]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/aopalliance-1.0.jar

constituent[7]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/cdi-api-1.0.jar

constituent[8]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/commons-cli-1.2.jar

constituent[9]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/commons-io-2.2.jar

constituent[10]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/commons-lang-2.6.jar

constituent[11]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/guava-18.0.jar

constituent[12]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/javax.inject-1.jar

constituent[13]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/jsoup-1.7.2.jar

constituent[14]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/jsr250-api-1.0.jar

constituent[15]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/maven-aether-provider-3.2.5.jar

constituent[16]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/maven-artifact-3.2.5.jar

constituent[17]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/maven-compat-3.2.5.jar

constituent[18]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/maven-core-3.2.5.jar

constituent[19]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/maven-embedder-3.2.5.jar

constituent[20]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/maven-model-3.2.5.jar

constituent[21]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/maven-model-builder-3.2.5.jar

constituent[22]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/maven-plugin-api-3.2.5.jar

constituent[23]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/maven-repository-metadata-3.2.5.jar

constituent[24]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/maven-settings-3.2.5.jar

constituent[25]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/maven-settings-builder-3.2.5.jar

constituent[26]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/org.eclipse.sisu.inject-0.3.0.M1.jar

constituent[27]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/org.eclipse.sisu.plexus-0.3.0.M1.jar

constituent[28]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/plexus-cipher-1.7.jar

constituent[29]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/plexus-component-annotations-1.5.5.jar

constituent[30]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/plexus-interpolation-1.21.jar

constituent[31]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/plexus-sec-dispatcher-1.3.jar

constituent[32]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/plexus-utils-3.0.20.jar

constituent[33]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/sisu-guice-3.2.3-no_aop.jar

constituent[34]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/slf4j-api-1.7.5.jar

constituent[35]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/slf4j-simple-1.7.5.jar

constituent[36]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/wagon-file-2.8.jar

constituent[37]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/wagon-http-2.8-shaded.jar

constituent[38]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/wagon-http-shared-2.8.jar

constituent[39]:
file:/usr/local/apache-maven/apache-maven-3.2.5/lib/wagon-provider-api-2.8.jar

constituent[40]:
file:/usr/local/apache-maven/apache-maven-3.2.5/conf/logging/

---------------------------------------------------

Exception in thread "main" java.lang.NoSuchMethodError:
com.google.common.cache.CacheBuilder.build()Lcom/google/common/cache/Cache;

at com.google.inject.internal.WeakKeySet.<init>(WeakKeySet.java:56)

at
com.google.inject.internal.InheritingState.<init>(InheritingState.java:65)

at
com.google.inject.internal.InjectorShell$Builder.getState(InjectorShell.java:203)

at
com.google.inject.internal.InjectorShell$Builder.lock(InjectorShell.java:114)

at
com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)

at com.google.inject.Guice.createInjector(Guice.java:96)

at com.google.inject.Guice.createInjector(Guice.java:73)

at com.google.inject.Guice.createInjector(Guice.java:62)

at
org.codehaus.plexus.DefaultPlexusContainer.addPlexusInjector(DefaultPlexusContainer.java:481)

at
org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:206)

at org.apache.maven.cli.MavenCli.container(MavenCli.java:400)

at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:210)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)

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:606)

at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)

at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)

at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)

at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

local > mvn --version

Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1;
2014-12-14T09:29:23-08:00)

Maven home: /usr/local/apache-maven/apache-maven-3.2.5

Java version: 1.7.0_65, vendor: Oracle Corporation

Java home:
/Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk/Contents/Home/jre

Default locale: en_US, platform encoding: UTF-8

OS name: "mac os x", version: "10.10.2", arch: "x86_64", family: "mac"

local >


Best,

Jiaxin

Re: [Maven Failed]

Posted by Jiaxin Ye <ji...@usc.edu>.
problem solved. I accidentally put a tika-parser.jar in the java extension
file.

On Wed, Feb 18, 2015 at 11:48 PM, Jiaxin Ye <ji...@usc.edu> wrote:

> Hi All,
>
> I restarted my mac and found when I type mvn in the command line I got the
> following error. Anyone know why?
>
> local > mvn
>
> log4j:WARN No appenders could be found for logger
> (org.apache.maven.cli.logging.impl.UnsupportedSlf4jBindingConfiguration).
>
> log4j:WARN Please initialize the log4j system properly.
>
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
> more info.
>
> ---------------------------------------------------
>
> constituent[0]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/aether-api-1.0.0.v20140518.jar
>
> constituent[1]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/aether-connector-basic-1.0.0.v20140518.jar
>
> constituent[2]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/aether-impl-1.0.0.v20140518.jar
>
> constituent[3]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/aether-spi-1.0.0.v20140518.jar
>
> constituent[4]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/aether-transport-wagon-1.0.0.v20140518.jar
>
> constituent[5]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/aether-util-1.0.0.v20140518.jar
>
> constituent[6]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/aopalliance-1.0.jar
>
> constituent[7]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/cdi-api-1.0.jar
>
> constituent[8]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/commons-cli-1.2.jar
>
> constituent[9]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/commons-io-2.2.jar
>
> constituent[10]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/commons-lang-2.6.jar
>
> constituent[11]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/guava-18.0.jar
>
> constituent[12]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/javax.inject-1.jar
>
> constituent[13]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/jsoup-1.7.2.jar
>
> constituent[14]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/jsr250-api-1.0.jar
>
> constituent[15]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/maven-aether-provider-3.2.5.jar
>
> constituent[16]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/maven-artifact-3.2.5.jar
>
> constituent[17]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/maven-compat-3.2.5.jar
>
> constituent[18]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/maven-core-3.2.5.jar
>
> constituent[19]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/maven-embedder-3.2.5.jar
>
> constituent[20]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/maven-model-3.2.5.jar
>
> constituent[21]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/maven-model-builder-3.2.5.jar
>
> constituent[22]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/maven-plugin-api-3.2.5.jar
>
> constituent[23]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/maven-repository-metadata-3.2.5.jar
>
> constituent[24]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/maven-settings-3.2.5.jar
>
> constituent[25]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/maven-settings-builder-3.2.5.jar
>
> constituent[26]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/org.eclipse.sisu.inject-0.3.0.M1.jar
>
> constituent[27]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/org.eclipse.sisu.plexus-0.3.0.M1.jar
>
> constituent[28]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/plexus-cipher-1.7.jar
>
> constituent[29]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/plexus-component-annotations-1.5.5.jar
>
> constituent[30]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/plexus-interpolation-1.21.jar
>
> constituent[31]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/plexus-sec-dispatcher-1.3.jar
>
> constituent[32]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/plexus-utils-3.0.20.jar
>
> constituent[33]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/sisu-guice-3.2.3-no_aop.jar
>
> constituent[34]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/slf4j-api-1.7.5.jar
>
> constituent[35]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/slf4j-simple-1.7.5.jar
>
> constituent[36]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/wagon-file-2.8.jar
>
> constituent[37]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/wagon-http-2.8-shaded.jar
>
> constituent[38]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/wagon-http-shared-2.8.jar
>
> constituent[39]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/lib/wagon-provider-api-2.8.jar
>
> constituent[40]:
> file:/usr/local/apache-maven/apache-maven-3.2.5/conf/logging/
>
> ---------------------------------------------------
>
> Exception in thread "main" java.lang.NoSuchMethodError:
> com.google.common.cache.CacheBuilder.build()Lcom/google/common/cache/Cache;
>
> at com.google.inject.internal.WeakKeySet.<init>(WeakKeySet.java:56)
>
> at
> com.google.inject.internal.InheritingState.<init>(InheritingState.java:65)
>
> at
> com.google.inject.internal.InjectorShell$Builder.getState(InjectorShell.java:203)
>
> at
> com.google.inject.internal.InjectorShell$Builder.lock(InjectorShell.java:114)
>
> at
> com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
>
> at com.google.inject.Guice.createInjector(Guice.java:96)
>
> at com.google.inject.Guice.createInjector(Guice.java:73)
>
> at com.google.inject.Guice.createInjector(Guice.java:62)
>
> at
> org.codehaus.plexus.DefaultPlexusContainer.addPlexusInjector(DefaultPlexusContainer.java:481)
>
> at
> org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:206)
>
> at org.apache.maven.cli.MavenCli.container(MavenCli.java:400)
>
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:210)
>
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
>
> 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:606)
>
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>
> local > mvn --version
>
> Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1;
> 2014-12-14T09:29:23-08:00)
>
> Maven home: /usr/local/apache-maven/apache-maven-3.2.5
>
> Java version: 1.7.0_65, vendor: Oracle Corporation
>
> Java home:
> /Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk/Contents/Home/jre
>
> Default locale: en_US, platform encoding: UTF-8
>
> OS name: "mac os x", version: "10.10.2", arch: "x86_64", family: "mac"
>
> local >
>
>
> Best,
>
> Jiaxin
>