Maven错误 - java.lang.NoClassDefFoundError:org / slf4j / helpers / MarkerIgnoringBase

时间:2015-04-24 13:06:26

标签: java maven

使用Maven启动并运行。

尝试建立一个我继承的项目。我已经解决了大部分问题,但现在看到了一个奇怪的错误:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.842 s
[INFO] Finished at: 2015-04-24T13:59:32+01:00
[INFO] Final Memory: 13M/308M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:0.0.20:package (default-package) on project website-view: Execution default-package of goal com.day.jcr.vault:content-package-maven-plugin:0.0.20:package failed: A required class was missing while executing com.day.jcr.vault:content-package-maven-plugin:0.0.20:package: org/slf4j/helpers/MarkerIgnoringBase
[ERROR] -----------------------------------------------------
[ERROR] realm =    extension>com.day.jcr.vault:content-package-maven-plugin:0.0.20
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/tim.clifford/.m2/repository/com/day/jcr/vault/content-package-maven-plugin/0.0.20/content-package-maven-plugin-0.0.20.jar
[ERROR] urls[1] = file:/C:/Users/tim.clifford/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
[ERROR] urls[2] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar
[ERROR] urls[3] = file:/C:/Users/tim.clifford/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] urls[4] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/maven/maven-archiver/2.3/maven-archiver-2.3.jar
[ERROR] urls[5] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-9/plexus-archiver-1.0-alpha-9.jar
[ERROR] urls[6] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/plexus/plexus-io/1.0-alpha-1/plexus-io-1.0-alpha-1.jar
[ERROR] urls[7] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.9/plexus-utils-1.4.9.jar
[ERROR] urls[8] = file:/C:/Users/tim.clifford/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[9] = file:/C:/Users/tim.clifford/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[10] = file:/C:/Users/tim.clifford/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar
[ERROR] urls[11] = file:/C:/Users/tim.clifford/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
[ERROR] urls[12] = file:/C:/Users/tim.clifford/.m2/repository/commons-codec/commons-codec/1.2/commons-codec-1.2.jar
[ERROR] urls[13] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/mojo/animal-sniffer-maven-plugin/1.8/animal-sniffer-maven-plugin-1.8.jar
[ERROR] urls[14] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/mojo/animal-sniffer/1.8/animal-sniffer-1.8.jar
[ERROR] urls[15] = file:/C:/Users/tim.clifford/.m2/repository/org/ow2/asm/asm-all/4.0/asm-all-4.0.jar
[ERROR] urls[16] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/mojo/java-boot-classpath-detector/1.8/java-boot-classpath-detector-1.8.jar
[ERROR] urls[17] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.1/maven-reporting-api-2.0.1.jar
[ERROR] urls[18] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-6/doxia-sink-api-1.0-alpha-6.jar
[ERROR] urls[19] = file:/C:/Users/tim.clifford/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
[ERROR] urls[20] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
[ERROR] urls[21] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/1.2/maven-common-artifact-filters-1.2.jar
[ERROR] urls[22] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/maven/shared/maven-plugin-testing-harness/1.1/maven-plugin-testing-harness-1.1.jar
[ERROR] urls[23] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/sling/org.apache.sling.commons.json/2.0.6/org.apache.sling.commons.json-2.0.6.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR] 
[ERROR] -----------------------------------------------------: org.slf4j.helpers.MarkerIgnoringBase
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:0.0.20:package (default-package) on project website-view: Execution default-package of goal com.day.jcr.vault:content-package-maven-plugin:0.0.20:package failed: A required class was missing while executing com.day.jcr.vault:content-package-maven-plugin:0.0.20:package: org/slf4j/helpers/MarkerIgnoringBase
-----------------------------------------------------
realm =    extension>com.day.jcr.vault:content-package-maven-plugin:0.0.20
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = file:/C:/Users/tim.clifford/.m2/repository/com/day/jcr/vault/content-package-maven-plugin/0.0.20/content-package-maven-plugin-0.0.20.jar
urls[1] = file:/C:/Users/tim.clifford/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
urls[2] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar
urls[3] = file:/C:/Users/tim.clifford/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
urls[4] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/maven/maven-archiver/2.3/maven-archiver-2.3.jar
urls[5] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-9/plexus-archiver-1.0-alpha-9.jar
urls[6] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/plexus/plexus-io/1.0-alpha-1/plexus-io-1.0-alpha-1.jar
urls[7] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.9/plexus-utils-1.4.9.jar
urls[8] = file:/C:/Users/tim.clifford/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
urls[9] = file:/C:/Users/tim.clifford/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
urls[10] = file:/C:/Users/tim.clifford/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar
urls[11] = file:/C:/Users/tim.clifford/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
urls[12] = file:/C:/Users/tim.clifford/.m2/repository/commons-codec/commons-codec/1.2/commons-codec-1.2.jar
urls[13] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/mojo/animal-sniffer-maven-plugin/1.8/animal-sniffer-maven-plugin-1.8.jar
urls[14] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/mojo/animal-sniffer/1.8/animal-sniffer-1.8.jar
urls[15] = file:/C:/Users/tim.clifford/.m2/repository/org/ow2/asm/asm-all/4.0/asm-all-4.0.jar
urls[16] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/mojo/java-boot-classpath-detector/1.8/java-boot-classpath-detector-1.8.jar
urls[17] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.1/maven-reporting-api-2.0.1.jar
urls[18] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-6/doxia-sink-api-1.0-alpha-6.jar
urls[19] = file:/C:/Users/tim.clifford/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
urls[20] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
urls[21] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/1.2/maven-common-artifact-filters-1.2.jar
urls[22] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/maven/shared/maven-plugin-testing-harness/1.1/maven-plugin-testing-harness-1.1.jar
urls[23] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/sling/org.apache.sling.commons.json/2.0.6/org.apache.sling.commons.json-2.0.6.jar
Number of foreign imports: 1
import: Entry[import  from realm ClassRealm[maven.api, parent: null]]

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

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
    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:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
    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)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-package of goal com.day.jcr.vault:content-package-maven-plugin:0.0.20:package failed: A required class was missing while executing com.day.jcr.vault:content-package-maven-plugin:0.0.20:package: org/slf4j/helpers/MarkerIgnoringBase
-----------------------------------------------------
realm =    extension>com.day.jcr.vault:content-package-maven-plugin:0.0.20
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = file:/C:/Users/tim.clifford/.m2/repository/com/day/jcr/vault/content-package-maven-plugin/0.0.20/content-package-maven-plugin-0.0.20.jar
urls[1] = file:/C:/Users/tim.clifford/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
urls[2] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar
urls[3] = file:/C:/Users/tim.clifford/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
urls[4] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/maven/maven-archiver/2.3/maven-archiver-2.3.jar
urls[5] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-9/plexus-archiver-1.0-alpha-9.jar
urls[6] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/plexus/plexus-io/1.0-alpha-1/plexus-io-1.0-alpha-1.jar
urls[7] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.9/plexus-utils-1.4.9.jar
urls[8] = file:/C:/Users/tim.clifford/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
urls[9] = file:/C:/Users/tim.clifford/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
urls[10] = file:/C:/Users/tim.clifford/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar
urls[11] = file:/C:/Users/tim.clifford/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
urls[12] = file:/C:/Users/tim.clifford/.m2/repository/commons-codec/commons-codec/1.2/commons-codec-1.2.jar
urls[13] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/mojo/animal-sniffer-maven-plugin/1.8/animal-sniffer-maven-plugin-1.8.jar
urls[14] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/mojo/animal-sniffer/1.8/animal-sniffer-1.8.jar
urls[15] = file:/C:/Users/tim.clifford/.m2/repository/org/ow2/asm/asm-all/4.0/asm-all-4.0.jar
urls[16] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/mojo/java-boot-classpath-detector/1.8/java-boot-classpath-detector-1.8.jar
urls[17] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.1/maven-reporting-api-2.0.1.jar
urls[18] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-6/doxia-sink-api-1.0-alpha-6.jar
urls[19] = file:/C:/Users/tim.clifford/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
urls[20] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
urls[21] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/1.2/maven-common-artifact-filters-1.2.jar
urls[22] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/maven/shared/maven-plugin-testing-harness/1.1/maven-plugin-testing-harness-1.1.jar
urls[23] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/sling/org.apache.sling.commons.json/2.0.6/org.apache.sling.commons.json-2.0.6.jar
Number of foreign imports: 1
import: Entry[import  from realm ClassRealm[maven.api, parent: null]]

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

    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:168)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    ... 20 more
Caused by: org.apache.maven.plugin.PluginContainerException: A required class was missing while executing com.day.jcr.vault:content-package-maven-plugin:0.0.20:package: org/slf4j/helpers/MarkerIgnoringBase
-----------------------------------------------------
realm =    extension>com.day.jcr.vault:content-package-maven-plugin:0.0.20
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = file:/C:/Users/tim.clifford/.m2/repository/com/day/jcr/vault/content-package-maven-plugin/0.0.20/content-package-maven-plugin-0.0.20.jar
urls[1] = file:/C:/Users/tim.clifford/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
urls[2] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar
urls[3] = file:/C:/Users/tim.clifford/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
urls[4] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/maven/maven-archiver/2.3/maven-archiver-2.3.jar
urls[5] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-9/plexus-archiver-1.0-alpha-9.jar
urls[6] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/plexus/plexus-io/1.0-alpha-1/plexus-io-1.0-alpha-1.jar
urls[7] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.9/plexus-utils-1.4.9.jar
urls[8] = file:/C:/Users/tim.clifford/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
urls[9] = file:/C:/Users/tim.clifford/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
urls[10] = file:/C:/Users/tim.clifford/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar
urls[11] = file:/C:/Users/tim.clifford/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
urls[12] = file:/C:/Users/tim.clifford/.m2/repository/commons-codec/commons-codec/1.2/commons-codec-1.2.jar
urls[13] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/mojo/animal-sniffer-maven-plugin/1.8/animal-sniffer-maven-plugin-1.8.jar
urls[14] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/mojo/animal-sniffer/1.8/animal-sniffer-1.8.jar
urls[15] = file:/C:/Users/tim.clifford/.m2/repository/org/ow2/asm/asm-all/4.0/asm-all-4.0.jar
urls[16] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/mojo/java-boot-classpath-detector/1.8/java-boot-classpath-detector-1.8.jar
urls[17] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.1/maven-reporting-api-2.0.1.jar
urls[18] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-6/doxia-sink-api-1.0-alpha-6.jar
urls[19] = file:/C:/Users/tim.clifford/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
urls[20] = file:/C:/Users/tim.clifford/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
urls[21] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/1.2/maven-common-artifact-filters-1.2.jar
urls[22] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/maven/shared/maven-plugin-testing-harness/1.1/maven-plugin-testing-harness-1.1.jar
urls[23] = file:/C:/Users/tim.clifford/.m2/repository/org/apache/sling/org.apache.sling.commons.json/2.0.6/org.apache.sling.commons.json-2.0.6.jar
Number of foreign imports: 1
import: Entry[import  from realm ClassRealm[maven.api, parent: null]]

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

    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:166)
    ... 21 more
Caused by: java.lang.NoClassDefFoundError: org/slf4j/helpers/MarkerIgnoringBase
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:401)
    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
    at org.slf4j.impl.MavenLoggerFactory.<clinit>(MavenLoggerFactory.java:26)
    at org.slf4j.impl.StaticLoggerBinder.<init>(StaticLoggerBinder.java:41)
    at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:34)
    at com.day.jcr.vault.maven.pack.VaultMojo.execute(VaultMojo.java:237)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    ... 21 more
Caused by: java.lang.ClassNotFoundException: org.slf4j.helpers.MarkerIgnoringBase
    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
    ... 40 more

看起来像某些与 content-package-maven-plugin 插件有关的帖子。

会喜欢人们可以提供的任何线索:)

11 个答案:

答案 0 :(得分:13)

这件事发生在我身上:

brew upgrade

它自动将我的maven版本更新为3.3.3,似乎有一些问题,因为我收到与原始帖子完全相同的消息。

我的解决方案是:

brew uninstall maven                               // to get rid of 3.3.3
brew install homebrew/versions/maven32             // to install maven 
brew pin homebrew/versions/maven32                 // to prevent unintended upgrade

然后确保在〜/ .bash_profile上有一行指向正确的maven路径:

export M2_HOME=~/usr/local/Cellar/maven32/3.2.5    ~/.bash_profile 

答案 1 :(得分:13)

对于所有AEM用户,在使用原型生成maven项目后遇到同样的问题:我通过将content-package-maven-plugin的版本更新为版本0.0.24解决了问题:

            <plugin>
                <groupId>com.day.jcr.vault</groupId>
                <artifactId>content-package-maven-plugin</artifactId>
                <version>0.0.24</version>
                <extensions>true</extensions>
                <configuration>
                    <failOnError>true</failOnError>
                    <username>${crx.username}</username>
                    <password>${crx.password}</password>
                </configuration>
            </plugin>

答案 2 :(得分:2)

最后,我选择了最简单的解决方案,并不需要解决自定义POM配置问题。

恢复使用Maven 3.2.5

答案 3 :(得分:1)

我正面临着类似的问题,并且回归到maven 3.0.5为我工作。

答案 4 :(得分:1)

我能够通过升级maven在我的OS X Mac上解决,例如“brew升级maven”从3.3.3升级到3.3.9,如可行的那样。

答案 5 :(得分:1)

这是Maven https://issues.apache.org/jira/browse/MNG-5787中的一个未解决的问题。我遇到了完全相同的问题,并通过将Maven从3.3.1升级到3.3.9来解决问题。

答案 6 :(得分:1)

升级POM.xml中的版本

<plugin>
                    <groupId>com.day.jcr.vault</groupId>
                    <artifactId>content-package-maven-plugin</artifactId>
                    <version>0.0.24</version>
                    <extensions>true</extensions>
                    <configuration>
                        <failOnError>true</failOnError>
                        <username>${crx.username}</username>
                        <password>${crx.password}</password>
                    </configuration>
                </plugin>

希望,您的问题将得到解决。

答案 7 :(得分:0)

我也遇到了与内容包插件相同的问题.17。我为2个客户工作,我设置了一个新项目,并使用最新的内容包插件,我认为版本.24。恢复到早期版本的3.0.5并重新启动命令提示符对我有用。

现在,我必须在版本之间切换。真是太酷了:(

答案 8 :(得分:0)

我遇到了同样的问题,我使用的是MAC-OS

这个命令不起作用:

mvn -PautoInstallPackage install

然后我不得不去这个文件夹

/usr/local/apache-maven/apache-maven-3.3.3/

然后我下载3.0版本并将这些文件放入......

正在工作!!!!!!!!!!!!!

所以我把文件夹apache-maven-3.0.5但是我将名称更改为apache-maven-3.3.3,然后我关闭了终端,重新打开并放入

export PATH=$PATH:/usr/local/apache-maven/apache-maven-3.3.3/bin
瞧瞧!!!!!!!!!!!正在工作!!

现在我可以使用

mvn -PautoInstallPackage install

将我的项目上传到AEM CRX / DE

答案 9 :(得分:0)

我的项目遇到了同样的问题..

避免此问题的最佳方法,即更改maven版本。此问题仅适用于3.3.3版本。因此,当我使用3.5.0版本时,我摆脱了这个问题。

答案 10 :(得分:-1)

升级content-package-maven-plugin p的版本