[
https://issues.jboss.org/browse/JBDS-4154?page=com.atlassian.jira.plugin....
]
Nick Boldt edited comment on JBDS-4154 at 11/4/16 2:33 PM:
-----------------------------------------------------------
0. install rpm version 10.2.0.20161104.1527.el7 (or newer)
1. Help > install new >
http://download.eclipse.org/technology/m2e/milestones/1.7/1.7.1.20161104-... >
m2e.feature > install > restart
!maven171-fix-installed.png|thumbnail!
2. Ignore the singleton errors in the log - they'll go away when we move this version
of m2e into the devstudio TP and therefore the RPM, too.
{code} Another singleton bundle selected: osgi.identity;
osgi.identity="org.eclipse.m2e.refactoring"; type="osgi.bundle";
version:Version="1.7.1.20161104-1805"; singleton:="true"
{code}
3. Central > Java EE Web project > ignore JAX-RS error (JBDS-4133)
4. select project folder > right-click > run as > maven build... > set goals =
clean install
!maven171-fix.png|thumbnail!
5. FIXED!
was (Author: nickboldt):
0. install rpm from
1. Help > install new >
http://download.eclipse.org/technology/m2e/milestones/1.7/1.7.1.20161104-... >
m2e.feature > install > restart
!maven171-fix-installed.png|thumbnail!
2. Ignore the singleton errors in the log - they'll go away when we move this version
of m2e into the devstudio TP and therefore the RPM, too.
{code} Another singleton bundle selected: osgi.identity;
osgi.identity="org.eclipse.m2e.refactoring"; type="osgi.bundle";
version:Version="1.7.1.20161104-1805"; singleton:="true"
{code}
3. Central > Java EE Web project > ignore JAX-RS error (JBDS-4133)
4. select project folder > right-click > run as > maven build... > set goals =
clean install
!maven171-fix.png|thumbnail!
5. FIXED!
JavaEE Web Project > Run As > Maven not working
-----------------------------------------------
Key: JBDS-4154
URL:
https://issues.jboss.org/browse/JBDS-4154
Project: Red Hat JBoss Developer Studio (devstudio)
Issue Type: Bug
Components: build, maven, rpm, target-platform
Affects Versions: 10.2.0.AM3
Environment: RHEL7 64bit
Reporter: Lukáš Valach
Assignee: Fred Bricon
Priority: Critical
Fix For: 10.2.0.GA
Attachments: maven171-fix-installed.png, maven171-fix.png
I am not able to use embedded Maven. When I try to run Maven clean (or whatever else) I
get following error message in Console (nothing in Error log):
{code}
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/Logger
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at
org.codehaus.plexus.classworlds.launcher.Launcher.getEnhancedMainMethod(Launcher.java:172)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:268)
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.slf4j.Logger
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)
... 10 more
{code}
Standalone maven installation works fine.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)