I am trying to deploy Usergrid with the following POM file: https://github.com/apache/usergrid/blob/master/deployment/aws/pom.xml
Initially, I got a bunch of dependency issues so I ran:
mvn dependency:resolve-plugins
In the output I got some errors and warnings:
[WARNING] Could not transfer metadata org.codehaus.groovy:groovy-eclipse-batch/maven-metadata.xml from/to codehaus.org (http://repository.codehaus.org): repository.codehaus.org: unknown error
[WARNING] Could not transfer metadata org.codehaus.groovy:groovy-eclipse-batch/maven-metadata.xml from/to codehaus-snapshots (http://nexus.codehaus.org/snapshots/): nexus.codehaus.org: unknown error
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.usergrid:awscluster:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.codehaus.mojo:exec-maven-plugin # line 178, column 21
[WARNING]
[INFO]
[INFO] -------------------< org.apache.usergrid:awscluster >-------------------
[INFO] Building awscluster 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.9:resolve-plugins (default-cli) # awscluster ---
[INFO] Plugin Resolved: maven-jar-plugin-3.1.0.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-3.0.jar
[INFO] Plugin Dependency Resolved: maven-core-3.0.jar
[INFO] Plugin Dependency Resolved: maven-artifact-3.0.jar
[INFO] Plugin Dependency Resolved: maven-archiver-3.2.0.jar
[INFO] Plugin Dependency Resolved: plexus-archiver-3.5.jar
[INFO] Plugin Dependency Resolved: plexus-utils-3.1.0.jar
[INFO] Plugin Resolved: groovy-eclipse-compiler-2.6.0-01.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.350 s
[INFO] Finished at: 2018-08-17T13:49:11-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.9:resolve-plugins (default-cli) on project awscluster: Nested:: Failure to find org.codehaus.groovy:groovy-eclipse-batch:jar:[1.7.10-02,1.7.10-99],[1.8.2-01,1.9.0) in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
I tried downloading and installing the plugin from here:
https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-eclipse-batch/1.8.2-01
Using:
$ mvn install:install-file -DgroupId=org.codehaus.groovy -DartifactId=groovy-eclipse-batch -Dversion=null -Dpackaging=jar -Dfile=groovy-eclipse-batch-1.8.2-01.jar
I ran mvn deploy and still got the dependency error.
How can fix this?
Related
I'm trying to use my CN1 account to compile online my project whit Ubuntu 16.04 LTS terminal command:
$ mvn cn1:build -Dcodename1.platform=android -Dcodename1.buildTarget=android-device
but I got this long error:
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for bo.conectica.carry:carry-common:jar:1.0-SNAPSHOT
[WARNING] 'dependencyManagement.dependencies.dependency.systemPath' for com.codenameone:codenameone-buildclient:jar refers to a non-existing file /home/synapsido/.codenameone/CodeNameOneBuildClient.jar # bo.conectica.carry:carry:1.0-SNAPSHOT, /home/synapsido/Documentos/carry/pom.xml, line 293, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for bo.conectica.carry:carry-android:jar:1.0-SNAPSHOT
[WARNING] 'dependencyManagement.dependencies.dependency.systemPath' for com.codenameone:codenameone-buildclient:jar refers to a non-existing file /home/synapsido/.codenameone/CodeNameOneBuildClient.jar # bo.conectica.carry:carry:1.0-SNAPSHOT, /home/synapsido/Documentos/carry/pom.xml, line 293, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for bo.conectica.carry:carry:pom:1.0-SNAPSHOT
[WARNING] 'dependencyManagement.dependencies.dependency.systemPath' for com.codenameone:codenameone-buildclient:jar refers to a non-existing file /home/synapsido/.codenameone/CodeNameOneBuildClient.jar # line 293, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] carry [pom]
[INFO] carry-common [jar]
[INFO] carry-android [jar]
[INFO]
[INFO] ----------------------< bo.conectica.carry:carry >----------------------
[INFO] Building carry 1.0-SNAPSHOT [1/3]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] >>> codenameone-maven-plugin:7.0.36:build (default-cli) > package # carry >>>
[INFO]
[INFO] <<< codenameone-maven-plugin:7.0.36:build (default-cli) < package # carry <<<
[INFO]
[INFO]
[INFO] --- codenameone-maven-plugin:7.0.36:build (default-cli) # carry ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for carry 1.0-SNAPSHOT:
[INFO]
[INFO] carry .............................................. FAILURE [ 10.155 s]
[INFO] carry-common ....................................... SKIPPED
[INFO] carry-android ...................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.516 s
[INFO] Finished at: 2022-01-09T21:32:07-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.codenameone:codenameone-maven-plugin:7.0.36:build (default-cli) on project carry: Execution default-cli of goal com.codenameone:codenameone-maven-plugin:7.0.36:build failed: Plugin com.codenameone:codenameone-maven-plugin:7.0.36 or one of its dependencies could not be resolved: Could not find artifact com.codenameone:codenameone-buildclient:jar:7.0.36 at specified path /home/synapsido/.codenameone/CodeNameOneBuildClient.jar -> [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/PluginResolutionException
maybe my mvn plugin version is deprecated? How to Update?
That particular target doesn't seem to trigger the download of that dependency. If you run mvn verify first, or the "Run In Simulator" option in your IDE, it will cause these dependencies to be downloaded.
e.g.
mvn verify
then
mvn cn1:build -Dcodename1.platform=android -Dcodename1.buildTarget=android-device
will work.
It seems that this is an older version of the maven plugin (7.0.36) where the current is 7.0.55. Make sure to update the version and dependencies. You can use https://start.codenameone.com/ to generate a new reference.
The new version no longer depends on the file in that location.
I am running Maven within Docker as part of a Jenkins build and encountering a problem where maven seems to be unable to download any of the dependencies.
Whether I run this from Jenkins, or directly from the command line I get this error. I have tried running the command as the root user, and as the jenkins user, but get the same result.
run -v "$(pwd)":/usr/share/tomcat7/.jenkins/workspace/MyProject/main -w /usr/share/tomcat7/.jenkins/workspace/MyProject/main maven mvn clean install -DskipTests
...produces the following output:
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------------< com.mycompany:myproject >--------------------------
[INFO] Building MyProject rolling
[INFO] --------------------------------[ pom ]---------------------------------
Downloading from central: http://mvn/repo/org/apache/maven/plugins/maven-jar-plugin/2.2/maven-jar-plugin-2.2.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.571 s
[INFO] Finished at: 2018-03-12T15:24:53Z
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-jar-plugin:2.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-jar-plugin:jar:2.2: Could not transfer artifact org.apache.maven.plugins:maven-jar-plugin:pom:2.2 from/to central (http://mvn/repo): mvn: Name or service not known: Unknown host mvn: Name or service not known -> [Help 1]
I am using the maven dependency plugin get goal to download an artefact from nexus. I can use it to download jar as per below
mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get -DrepoUrl=http://nexus.url/nexus/content/groups/public-all/ -Dartifact=groupId:artifactId:version:jar -Dtransitive=false -Ddestination=/my/path
To download a war I can use
mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get -DrepoUrl=http://nexus.url/nexus/content/groups/public-all/ -Dartifact=groupId:artifactId:version:war -Dtransitive=false -Ddestination=/my/path
I am however failing to download an ear using the following
mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get -DrepoUrl=http://nexus.url/nexus/content/groups/public-all/ -Dartifact=groupId:artifactId:version:ear -Dtransitive=false -Ddestination=/my/path
The output of the above command is as per below
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:get (default-cli) # standalone-pom ---
[INFO] Resolving groupId:artifactId:ear:version
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.797 s
[INFO] Finished at: 2017-10-20T13:31:02+02:00
[INFO] Final Memory: 7M/19M
[INFO] ------------------------------------------------------------------------
I have confirmed that the ear is indeed present in Nexus. The above command runs successfully but the ear is not actually downloaded.
What is wrong with the above command to download the ear? How can I download an ear file from Nexus using the mvn command?
Do note that I have replaced the actual groupId, artifactId and versions in the code above with their respective words.
I am new to camel and I've been trying to run one of the examples found in camel called camel-example-twitter-websocket, which may be found here.
When I run mvn compile it works successfully
$ mvn compile
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Camel :: Example :: Twitter WebSocket 2.17-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven) # camel-example-twitter-websocket ---
[INFO]
[INFO] --- maven-bundle-plugin:2.3.7:cleanVersions (versions) # camel-example-twitter-websocket ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.5:process (default) # camel-example-twitter-websocket ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) # camel-example-twitter-websocket ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default) # camel-example-twitter-websocket ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) # camel-example-twitter-websocket ---
[INFO] Nothing to compile - all classes are up to date
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.504 s
[INFO] Finished at: 2016-03-18T15:27:30-04:00
[INFO] Final Memory: 22M/437M
[INFO] ------------------------------------------------------------------------
But when I run the second step mvn camel:run it does not work and I get the following output
$ mvn camel:run
[INFO] Scanning for projects...
[WARNING] The POM for org.apache.camel:camel-maven-plugin:jar:2.17-20151107.033312-28 is invalid, transitive dependencies (if any) will not be av ailable, enable debug logging for more details
[WARNING] Failed to retrieve plugin descriptor for org.apache.camel:camel-maven-plugin:2.17-SNAPSHOT: Plugin org.apache.camel:camel-maven-plugin: 2.17-SNAPSHOT or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.camel:camel-maven-plugin:jar:2. 17-SNAPSHOT
[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in https://repo.maven.apache.org/maven2 w as cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
[WARNING] The POM for org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version} is missing, no dependency information av ailable
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}: Plugin org.apa che.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version} or one of its dependencies could not be resolved: Failure to find org.apa che.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version} in https://repo.maven.apache.org/maven2 was cached in the local repos itory, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Downloading: https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-metadata.xml
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
Downloading: https://repository.apache.org/content/repositories/snapshots/org/codehaus/mojo/maven-metadata.xml
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (13 KB at 36.9 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 KB at 57.4 KB/sec)
Downloaded: https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-metadata.xml (9 KB at 9.7 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.140 s
[INFO] Finished at: 2016-03-18T15:28:29-04:00
[INFO] Final Memory: 27M/327M
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'camel' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] availabl e from the repositories [local (C:\Users\myNameHere\.m2\repository), apache.snapshots (https://repository.apache.org/content/repositories/snapshots/), central (https://repo.maven.apache.org/maven2)] -> [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/NoPluginFoundForPrefixException
It looks like this is more of a Maven issue than it is a Camel issue. I put in the default .m2/settings.xml file (before I had a mirror configured for my companies Nexus repository. I thought that might be messing things up so I took it all out). Out of desperation I even tried adding in the plugin repository from here http://camel.apache.org/maven-2-snapshot-repository-in-pom.html but that did not work.
Read the readme file how to run the examples.
Some examples run using mvn camel:run and others using mvn exec:java and what else.
And you run from the master branch in the source code. Instead you should download a version of Camel such as the latest 2.16.2 and use that. It ships the examples in the examples directory: http://camel.apache.org/download
If you run from master branch in the source code. You need to rebuild Camel first, see building: http://camel.apache.org/building.html
I've tested myself, and putting the plugin 2.16 don't solve it neither.
But in readme, I found this :
We have described this in more details at the Camel twitter documentation:
http://camel.apache.org/twitter
You will need to compile this example first:
mvn compile
To run the example type
mvn exec:java
Then open a browser to see live twitter updates in the web page
http://localhost:9090
Worked for me, I hope it will work for you too. I'll investigate the problem with the plugin that doesn't seems to export the prefix latter.
I'm new to AEM CQ5, trying to setup maven on one linux machine which can not be connected to internet (company infosec reasons).
So, i've tried uploading all the dependencies manually on our internal nexus, so that project builds fine when we run "mvn clean install".
Our main idea is to make CQ projects build properly on our machine(s) which can not be connected to internet (and fetch all dependencies from local nexus).
All i could find is "content-package-maven-plugin" and "content-package-maven-plugin-parent" missing in our local nexus, so i uploaded them.
Now, when I run "mvn install" i get below error during maven phase "content-package-maven-plugin:0.0.20:check-signature (default-check-signature)"
[INFO] --- content-package-maven-plugin:0.0.20:check-signature (default-check-signature) # MyProject-content ---
[WARNING] Error injecting: com.day.jcr.vault.maven.pack.CheckSignatureMojo
java.lang.NoClassDefFoundError: org/codehaus/mojo/animal_sniffer/logging/Logger
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:245)
at com.google.inject.internal.ConstructorBindingImpl.create(ConstructorBindingImpl.java:99)
at com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:653)
at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:863)
at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:790)
at com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:278)
at com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:210)
at com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:986)
at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1019)
at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:982)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1032)
at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55)
at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
at org.eclipse.sisu.plexus.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:133)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:109)
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:47)
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1047)
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993)
at com.google.inject.Scopes$1$1.get(Scopes.java:59)
at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:82)
at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:260)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:252)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:459)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:97)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
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:317)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
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: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: java.lang.ClassNotFoundException: org.codehaus.mojo.animal_sniffer.logging.Logger
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
... 54 more
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] MyAEMProject Project - Reactor Project .................... SUCCESS [11.751s]
[INFO] MyAEMProject Project Bundle ............................... SUCCESS [1:22.516s]
[INFO] MyAEMProject Project Package .............................. FAILURE [0.375s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:00.671s
[INFO] Finished at: Thu Jul 23 17:45:26 GMT 2015
[INFO] Final Memory: 18M/113M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:0.0.20:check-signature (default-check-signature) on project MyProject-content: Execution default-check-signature of goal com.day.jcr.vault:content-package-maven-plugin:0.0.20:check-signature failed: A required class was missing while executing com.day.jcr.vault:content-package-maven-plugin:0.0.20:check-signature: org/codehaus/mojo/animal_sniffer/logging/Logger
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>com.day.jcr.vault:content-package-maven-plugin:0.0.20
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:<USER_HOME>/.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:<USER_HOME>/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[project>MyAEMProject:MyAEMProject-content:1.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------: org.codehaus.mojo.animal_sniffer.logging.Logger
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :MyAEMProject-content
I'm Using Maven 3.1.1 & Java version is java version "1.7.0_04".
I also tried with couple of other maven versions maven 3.0.5, maven 3.2.5, maven 3.3.3, but all of them gives same issue.
I've noticed, maven repository at <USER_HOME>/.m2/repository/ doesn't have animal_sniffer jars (org/codehaus/mojo). which is weird, because these dependencies already exists in our local nexus and downloading properly (from local nexus) when i run the same mvn install on my mac (which is connected to internet).
Below is the output when i run mvn dependency:resolve-plugins
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] MyAEMProject Project - Reactor Project
[INFO] MyAEMProject Project Bundle
[INFO] MyAEMProject Project Package
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building MyAEMProject Project - Reactor Project 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:resolve-plugins (default-cli) # MyAEMProject ---
[INFO] Plugin Resolved: maven-install-plugin-2.4.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-project-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-model-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-artifact-manager-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-artifact-2.0.6.jar
[INFO] Plugin Dependency Resolved: plexus-utils-3.0.5.jar
[INFO] Plugin Dependency Resolved: plexus-digest-1.0.jar
[INFO] Plugin Resolved: maven-clean-plugin-2.5.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-2.0.6.jar
[INFO] Plugin Dependency Resolved: plexus-utils-3.0.jar
[INFO] Plugin Resolved: maven-site-plugin-3.3.jar
[INFO] Plugin Dependency Resolved: maven-reporting-exec-1.1.jar
[INFO] Plugin Dependency Resolved: maven-core-3.0.jar
[INFO] Plugin Dependency Resolved: maven-model-3.0.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-3.0.jar
[INFO] Plugin Dependency Resolved: maven-settings-3.0.jar
[INFO] Plugin Dependency Resolved: maven-settings-builder-3.0.jar
[INFO] Plugin Dependency Resolved: maven-archiver-2.4.2.jar
[INFO] Plugin Dependency Resolved: doxia-sink-api-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-logging-api-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-core-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-module-xhtml-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-module-apt-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-module-xdoc-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-module-fml-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-module-markdown-1.4.jar
[INFO] Plugin Dependency Resolved: servlet-api-2.5.jar
[INFO] Plugin Dependency Resolved: doxia-decoration-model-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-site-renderer-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-integration-tools-1.5.jar
[INFO] Plugin Dependency Resolved: wagon-provider-api-1.0.jar
[INFO] Plugin Dependency Resolved: plexus-archiver-1.0.jar
[INFO] Plugin Dependency Resolved: plexus-i18n-1.0-beta-7.jar
[INFO] Plugin Dependency Resolved: velocity-1.5.jar
[INFO] Plugin Dependency Resolved: plexus-velocity-1.1.8.jar
[INFO] Plugin Dependency Resolved: plexus-utils-1.5.10.jar
[INFO] Plugin Dependency Resolved: jetty-6.1.25.jar
[INFO] Plugin Dependency Resolved: jetty-util-6.1.25.jar
[INFO] Plugin Dependency Resolved: commons-lang-2.5.jar
[INFO] Plugin Dependency Resolved: commons-io-1.4.jar
[INFO] Plugin Resolved: maven-deploy-plugin-2.7.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-project-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-model-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-artifact-2.0.6.jar
[INFO] Plugin Dependency Resolved: plexus-utils-1.5.6.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building MyAEMProject Project Bundle 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:resolve-plugins (default-cli) # MyAEMProject-bundle ---
[INFO] Plugin Resolved: maven-install-plugin-2.4.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-project-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-model-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-artifact-manager-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-artifact-2.0.6.jar
[INFO] Plugin Dependency Resolved: plexus-utils-3.0.5.jar
[INFO] Plugin Dependency Resolved: plexus-digest-1.0.jar
[INFO] Plugin Resolved: maven-clean-plugin-2.5.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-2.0.6.jar
[INFO] Plugin Dependency Resolved: plexus-utils-3.0.jar
[INFO] Plugin Resolved: maven-surefire-plugin-2.14.1.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-2.0.9.jar
[INFO] Plugin Dependency Resolved: maven-surefire-common-2.14.1.jar
[INFO] Plugin Dependency Resolved: surefire-api-2.14.1.jar
[INFO] Plugin Dependency Resolved: maven-toolchain-2.0.9.jar
[INFO] Plugin Dependency Resolved: maven-plugin-annotations-3.2.jar
[INFO] Plugin Resolved: maven-compiler-plugin-3.1.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-2.0.9.jar
[INFO] Plugin Dependency Resolved: maven-artifact-2.0.9.jar
[INFO] Plugin Dependency Resolved: maven-core-2.0.9.jar
[INFO] Plugin Dependency Resolved: maven-toolchain-1.0.jar
[INFO] Plugin Dependency Resolved: maven-shared-utils-0.1.jar
[INFO] Plugin Dependency Resolved: maven-shared-incremental-1.1.jar
[INFO] Plugin Dependency Resolved: plexus-compiler-api-2.2.jar
[INFO] Plugin Dependency Resolved: plexus-compiler-manager-2.2.jar
[INFO] Plugin Dependency Resolved: plexus-compiler-javac-2.2.jar
[INFO] Plugin Dependency Resolved: plexus-container-default-1.5.5.jar
[INFO] Plugin Resolved: maven-scr-plugin-1.7.4.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-2.0.7.jar
[INFO] Plugin Dependency Resolved: maven-archiver-2.2.jar
[INFO] Plugin Dependency Resolved: org.apache.felix.scr.generator-1.1.4.jar
[INFO] Plugin Resolved: maven-javadoc-plugin-2.9.jar
[INFO] Plugin Dependency Resolved: maven-core-2.2.1.jar
[INFO] Plugin Dependency Resolved: maven-project-2.2.1.jar
[INFO] Plugin Dependency Resolved: maven-model-2.2.1.jar
[INFO] Plugin Dependency Resolved: maven-settings-2.2.1.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-2.2.1.jar
[INFO] Plugin Dependency Resolved: maven-artifact-2.2.1.jar
[INFO] Plugin Dependency Resolved: maven-artifact-manager-2.2.1.jar
[INFO] Plugin Dependency Resolved: maven-toolchain-2.2.1.jar
[INFO] Plugin Dependency Resolved: maven-reporting-api-3.0.jar
[INFO] Plugin Dependency Resolved: maven-archiver-2.5.jar
[INFO] Plugin Dependency Resolved: maven-invoker-2.0.9.jar
[INFO] Plugin Dependency Resolved: maven-common-artifact-filters-1.3.jar
[INFO] Plugin Dependency Resolved: doxia-sink-api-1.0.jar
[INFO] Plugin Dependency Resolved: doxia-site-renderer-1.0.jar
[INFO] Plugin Dependency Resolved: wagon-provider-api-1.0-beta-6.jar
[INFO] Plugin Dependency Resolved: commons-lang-2.4.jar
[INFO] Plugin Dependency Resolved: commons-io-2.2.jar
[INFO] Plugin Dependency Resolved: commons-httpclient-3.1.jar
[INFO] Plugin Dependency Resolved: commons-logging-1.1.1.jar
[INFO] Plugin Dependency Resolved: log4j-1.2.14.jar
[INFO] Plugin Dependency Resolved: qdox-1.12.jar
[INFO] Plugin Dependency Resolved: plexus-container-default-1.0-alpha-9.jar
[INFO] Plugin Dependency Resolved: plexus-archiver-2.1.2.jar
[INFO] Plugin Dependency Resolved: plexus-utils-3.0.5.jar
[INFO] Plugin Resolved: maven-site-plugin-3.3.jar
[INFO] Plugin Dependency Resolved: maven-reporting-exec-1.1.jar
[INFO] Plugin Dependency Resolved: maven-core-3.0.jar
[INFO] Plugin Dependency Resolved: maven-model-3.0.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-3.0.jar
[INFO] Plugin Dependency Resolved: maven-settings-3.0.jar
[INFO] Plugin Dependency Resolved: maven-settings-builder-3.0.jar
[INFO] Plugin Dependency Resolved: maven-archiver-2.4.2.jar
[INFO] Plugin Dependency Resolved: doxia-sink-api-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-logging-api-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-core-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-module-xhtml-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-module-apt-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-module-xdoc-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-module-fml-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-module-markdown-1.4.jar
[INFO] Plugin Dependency Resolved: servlet-api-2.5.jar
[INFO] Plugin Dependency Resolved: doxia-decoration-model-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-site-renderer-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-integration-tools-1.5.jar
[INFO] Plugin Dependency Resolved: wagon-provider-api-1.0.jar
[INFO] Plugin Dependency Resolved: plexus-archiver-1.0.jar
[INFO] Plugin Dependency Resolved: plexus-i18n-1.0-beta-7.jar
[INFO] Plugin Dependency Resolved: velocity-1.5.jar
[INFO] Plugin Dependency Resolved: plexus-velocity-1.1.8.jar
[INFO] Plugin Dependency Resolved: plexus-utils-1.5.10.jar
[INFO] Plugin Dependency Resolved: jetty-6.1.25.jar
[INFO] Plugin Dependency Resolved: jetty-util-6.1.25.jar
[INFO] Plugin Dependency Resolved: commons-lang-2.5.jar
[INFO] Plugin Dependency Resolved: commons-io-1.4.jar
[INFO] Plugin Resolved: maven-bundle-plugin-2.3.7.jar
[INFO] Plugin Dependency Resolved: bndlib-1.50.0.jar
[INFO] Plugin Dependency Resolved: org.apache.felix.bundlerepository-1.6.6.jar
[INFO] Plugin Dependency Resolved: maven-core-2.0.7.jar
[INFO] Plugin Dependency Resolved: maven-archiver-2.4.1.jar
[INFO] Plugin Dependency Resolved: maven-dependency-tree-1.2.jar
[INFO] Plugin Dependency Resolved: plexus-utils-2.1.jar
[INFO] Plugin Resolved: maven-sling-plugin-2.1.0.jar
[INFO] Plugin Dependency Resolved: org.osgi.core-4.1.0.jar
[INFO] Plugin Dependency Resolved: commons-httpclient-3.1.jar
[INFO] Plugin Dependency Resolved: commons-logging-1.0.4.jar
[INFO] Plugin Dependency Resolved: commons-io-1.4.jar
[INFO] Plugin Dependency Resolved: org.apache.sling.commons.json-2.0.4-incubator.jar
[INFO] Plugin Dependency Resolved: org.apache.sling.commons.osgi-2.0.2-incubator.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-2.0.jar
[INFO] Plugin Dependency Resolved: maven-archiver-2.0.jar
[INFO] Plugin Dependency Resolved: scannotation-1.0.2.jar
[INFO] Plugin Dependency Resolved: adapter-annotations-1.0.0.jar
[INFO] Plugin Dependency Resolved: asm-all-3.3.1.jar
[INFO] Plugin Resolved: maven-resources-plugin-2.6.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-project-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-core-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-artifact-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-settings-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-model-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-monitor-2.0.6.jar
[INFO] Plugin Dependency Resolved: plexus-container-default-1.0-alpha-9-stable-1.jar
[INFO] Plugin Dependency Resolved: plexus-utils-2.0.5.jar
[INFO] Plugin Dependency Resolved: maven-filtering-1.1.jar
[INFO] Plugin Dependency Resolved: plexus-interpolation-1.13.jar
[INFO] Plugin Resolved: maven-deploy-plugin-2.7.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-project-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-model-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-artifact-2.0.6.jar
[INFO] Plugin Dependency Resolved: plexus-utils-1.5.6.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building MyAEMProject Project Package 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:resolve-plugins (default-cli) # MyAEMProject-content ---
[INFO] Plugin Resolved: maven-install-plugin-2.4.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-project-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-model-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-artifact-manager-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-artifact-2.0.6.jar
[INFO] Plugin Dependency Resolved: plexus-utils-3.0.5.jar
[INFO] Plugin Dependency Resolved: plexus-digest-1.0.jar
[INFO] Plugin Resolved: maven-clean-plugin-2.5.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-2.0.6.jar
[INFO] Plugin Dependency Resolved: plexus-utils-3.0.jar
[INFO] Plugin Resolved: maven-surefire-plugin-2.14.1.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-2.0.9.jar
[INFO] Plugin Dependency Resolved: maven-surefire-common-2.14.1.jar
[INFO] Plugin Dependency Resolved: surefire-api-2.14.1.jar
[INFO] Plugin Dependency Resolved: maven-toolchain-2.0.9.jar
[INFO] Plugin Dependency Resolved: maven-plugin-annotations-3.2.jar
[INFO] Plugin Resolved: maven-compiler-plugin-3.1.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-2.0.9.jar
[INFO] Plugin Dependency Resolved: maven-artifact-2.0.9.jar
[INFO] Plugin Dependency Resolved: maven-core-2.0.9.jar
[INFO] Plugin Dependency Resolved: maven-toolchain-1.0.jar
[INFO] Plugin Dependency Resolved: maven-shared-utils-0.1.jar
[INFO] Plugin Dependency Resolved: maven-shared-incremental-1.1.jar
[INFO] Plugin Dependency Resolved: plexus-compiler-api-2.2.jar
[INFO] Plugin Dependency Resolved: plexus-compiler-manager-2.2.jar
[INFO] Plugin Dependency Resolved: plexus-compiler-javac-2.2.jar
[INFO] Plugin Dependency Resolved: plexus-container-default-1.5.5.jar
[INFO] Plugin Resolved: content-package-maven-plugin-0.0.20.jar
[INFO] Plugin Resolved: maven-site-plugin-3.3.jar
[INFO] Plugin Dependency Resolved: maven-reporting-exec-1.1.jar
[INFO] Plugin Dependency Resolved: maven-core-3.0.jar
[INFO] Plugin Dependency Resolved: maven-model-3.0.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-3.0.jar
[INFO] Plugin Dependency Resolved: maven-settings-3.0.jar
[INFO] Plugin Dependency Resolved: maven-settings-builder-3.0.jar
[INFO] Plugin Dependency Resolved: maven-archiver-2.4.2.jar
[INFO] Plugin Dependency Resolved: doxia-sink-api-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-logging-api-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-core-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-module-xhtml-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-module-apt-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-module-xdoc-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-module-fml-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-module-markdown-1.4.jar
[INFO] Plugin Dependency Resolved: servlet-api-2.5.jar
[INFO] Plugin Dependency Resolved: doxia-decoration-model-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-site-renderer-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-integration-tools-1.5.jar
[INFO] Plugin Dependency Resolved: wagon-provider-api-1.0.jar
[INFO] Plugin Dependency Resolved: plexus-archiver-1.0.jar
[INFO] Plugin Dependency Resolved: plexus-i18n-1.0-beta-7.jar
[INFO] Plugin Dependency Resolved: velocity-1.5.jar
[INFO] Plugin Dependency Resolved: plexus-velocity-1.1.8.jar
[INFO] Plugin Dependency Resolved: plexus-utils-1.5.10.jar
[INFO] Plugin Dependency Resolved: jetty-6.1.25.jar
[INFO] Plugin Dependency Resolved: jetty-util-6.1.25.jar
[INFO] Plugin Dependency Resolved: commons-lang-2.5.jar
[INFO] Plugin Dependency Resolved: commons-io-1.4.jar
[INFO] Plugin Resolved: maven-resources-plugin-2.6.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-project-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-core-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-artifact-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-settings-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-model-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-monitor-2.0.6.jar
[INFO] Plugin Dependency Resolved: plexus-container-default-1.0-alpha-9-stable-1.jar
[INFO] Plugin Dependency Resolved: plexus-utils-2.0.5.jar
[INFO] Plugin Dependency Resolved: maven-filtering-1.1.jar
[INFO] Plugin Dependency Resolved: plexus-interpolation-1.13.jar
[INFO] Plugin Resolved: maven-deploy-plugin-2.7.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-project-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-model-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-artifact-2.0.6.jar
[INFO] Plugin Dependency Resolved: plexus-utils-1.5.6.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] MyAEMProject Project - Reactor Project .................... SUCCESS [0.996s]
[INFO] MyAEMProject Project Bundle ............................... SUCCESS [0.605s]
[INFO] MyAEMProject Project Package .............................. SUCCESS [0.423s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.903s
[INFO] Finished at: Fri Jul 24 18:43:34 GMT 2015
[INFO] Final Memory: 20M/215M
[INFO] ------------------------------------------------------------------------
If you notice for content-package-maven-plugin-0.0.20.jar it doesn't resolve any dependencies, while the required animal-sniffer dependency does exists in our internal nexus.
Has any one faced this issue? Can anyone give me any direction on how to head from here, as this is blocker for us.
After a detailed investigation, this is now resolved.
Just want to share the findings so that it may help others.
The content-package-maven-plugin which was uploaded to our local nexus got corrupted.
Interestingly maven was not throwing any errors when i was trying mvn install command on my AEM project. Rather it was giving NoClassDefFound error for a further dependency of content-package-maven-plugin.
From the output of, mvn dependency:resolve-plugins, it was confirmed that the dependencies are not fully resolved for particular this plugin JAR, I tried to manually download the artifact from nexus & try to open/unjar it.
The artifact pom was corrupted and hence I uploaded the fresh artifact in nexus, and this time all went smooth.
AEM project is now building fine with local nexus dependencies.
I wanted to leave a comment that option 4. solved it for me as well, but I just registered for stackoverflow and don't have the required points yet.
The pom for content-pacakage-maven-plugin is complex, so if you do need to add this to an internal repo I would suggest getting the *.jar and *.pom files from Adobe's public repo use them together.