- This topic has 4 replies, 2 voices, and was last updated 14 years, 1 month ago by support-joy.
-
AuthorPosts
-
warishMemberI am getting Maven errors after upgrading from 8.1 to 8.6. I originally posted this problem at https://www.genuitec.com/forums/topic/maven-problem-after-8-6-upgrade/#post-311789 but thought it would be better addresses here. Here is the error I am getting:
10/5/10 3:37:42 PM PDT: Build errors for scanman; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.4.1:resources (default-resources) on project scanman: Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.4.1:resources failed: Unable to load the mojo ‘resources’ in the plugin ‘org.apache.maven.plugins:maven-resources-plugin:2.4.1’. A required class is missing: Lorg/sonatype/plexus/build/incremental/BuildContext;
—————————————————–
realm = plugin>org.apache.maven.plugins:maven-resources-plugin:2.4.1–229946323
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = file:/Users/Warren/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/2.4.1/maven-resources-plugin-2.4.1.jar
urls[1] = file:/Users/Warren/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.jar
urls[2] = file:/Users/Warren/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
urls[3] = file:/Users/Warren/.m2/repository/org/apache/maven/shared/maven-filtering/1.0-beta-3/maven-filtering-1.0-beta-3.jar
urls[4] = file:/Users/Warren/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.13/plexus-interpolation-1.13.jar
Number of foreign imports: 4
import: Entry[import org.codehaus.plexus.util.xml.pull.XmlSerializer from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.util.xml.pull.XmlPullParserException from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.util.xml.pull.XmlPullParser from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.util.xml.Xpp3Dom from realm ClassRealm[plexus.core, parent: null]]
Number of parent imports: 20
import: Entry[import org.codehaus.plexus.personality from realm null]
import: Entry[import org.codehaus.plexus.logging from realm null]
import: Entry[import org.codehaus.plexus.lifecycle from realm null]
import: Entry[import org.codehaus.plexus.context from realm null]
import: Entry[import org.codehaus.plexus.container from realm null]
import: Entry[import org.codehaus.plexus.configuration from realm null]
import: Entry[import org.codehaus.plexus.component from realm null]
import: Entry[import org.codehaus.plexus.classworlds from realm null]
import: Entry[import org.codehaus.plexus.PlexusContainerException from realm null]
import: Entry[import org.codehaus.plexus.PlexusContainer from realm null]
import: Entry[import org.codehaus.plexus.PlexusConstants from realm null]
import: Entry[import org.codehaus.plexus.MutablePlexusContainer from realm null]
import: Entry[import org.codehaus.plexus.DuplicateChildContainerException from realm null]
import: Entry[import org.codehaus.plexus.DefaultPlexusContainer from realm null]
import: Entry[import org.codehaus.plexus.DefaultContainerConfiguration from realm null]
import: Entry[import org.codehaus.plexus.DefaultComponentRegistry from realm null]
import: Entry[import org.codehaus.plexus.ContainerConfiguration from realm null]
import: Entry[import org.codehaus.plexus.ComponentRegistry from realm null]
import: Entry[import org.codehaus.classworlds from realm null]
import: Entry[import org.apache.maven from realm null]realm = plexus.core
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
Number of foreign imports: 0
support-joyMemberwarish,
I have escalated your post to dev team member. Please refer https://www.genuitec.com/forums/topic/maven-problem-after-8-6-upgrade/#post-311843
support-joyMemberwarish,
Could you try this – remove the “maven-resources-plugin” from the local repository in your system and build your project again. We are not able to replicate this issue here, would it be possible for you to share your project with us? You can send a mail to support@genuitec.com with the attached project. Please add this weblink for reference and add ATTN: Joy in the subject. This will help in quick tracing.
warishMemberI deleted “maven-resources-plugin” from the local repository and rebuilt. I had a few miscelanious dependencies errors, but I managed to get them working. Everything seems to be working now.
FYI, in the beginning there were some issues with Maven not being able to create directories in the repository. I cleaned up the permissions and that problem was fixed, but I started to get the error messages above. This permission problem happened after the upgrade. There were no changes made to the .m2 directory between the time I upgrade from 8.1 to 8.6. Is MyEclipse or Maven creating files and directories differently now, and maybe that is what triggered my problems, just a thought. MyEclipse configuration below:
*** Date:
Thursday, October 7, 2010 11:47:34 AM PDT** System properties:
OS=MacOSX
OS version=10.5.8
Java version=1.5.0_24*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 8.6
Build id: 8.6-20100806*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 8.6
Build id: 8.6-20100806Eclipse startup command=-os
macosx
-ws
carbon
-arch
x86
-showsplash
-launcher
/Library/Genuitec/MyEclipse-8.6/myeclipse.app/Contents/MacOS/myeclipse
-name
Myeclipse
–launcher.library
/Library/Genuitec/MyEclipse-8.6/myeclipse.app/Contents/MacOS//../../../../Common/plugins/org.eclipse.equinox.launcher.carbon.macosx_1.0.200.v20090520-1835/eclipse_1206.so
-startup
/Library/Genuitec/MyEclipse-8.6/myeclipse.app/Contents/MacOS/../../../../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-install
/Library/Genuitec/MyEclipse-8.6
-configuration
/Library/Genuitec/MyEclipse-8.6/configuration
-keyring
/Users/Warren/.eclipse_keyring
-consoleLog
-showlocation
-vm
/System/Library/Frameworks/JavaVM.frameworkThanks,
Warren
support-joyMemberWarren,
Good to hear you are all set. Thank you for sharing your notes with us.
It seems that after upgrade from ME 8.1 to 8.6, your maven project was not able to force a check of remote sites for updates to releases. Hence you noticed build errors and the goal execution failed with dependency issues.
By removing the “maven-resources-plugin” from the local repository and rebuilt, maven was forced to check the remote sites and update the releases, in this process fixed the dependency issues.Best.
-
AuthorPosts