> [ERROR] Caused by: java.lang.ClassNotFoundException:
> org.apache.sling.commons.testing.junit.categories.OakOnly

Adding org.apache.sling.commons.testing as a dependency in the
integrationTesting profile seems to resolve the issue
Chetan Mehrotra


On Wed, Nov 13, 2013 at 7:24 PM, Chetan Mehrotra
<chetan.mehro...@gmail.com> wrote:
> Hi,
>
> I am try to run integration test by executing following command at
> <trunk>launchpad/testing
>
> mvn clean install
>
> However it results in following exception. Is this the right way to
> test or I need to follow some other steps
>
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-failsafe-plugin:2.16:integration-test
> (default) on project org.apache.sling.launchpad.testing: Execution
> default of goal
> org.apache.maven.plugins:maven-failsafe-plugin:2.16:integration-test
> failed: There was an error in the forked process
> [ERROR] java.lang.RuntimeException: Unable to load category:
> org.apache.sling.commons.testing.junit.categories.OakOnly
> [ERROR] at 
> org.apache.maven.surefire.group.match.SingleGroupMatcher.loadGroupClasses(SingleGroupMatcher.java:134)
> [ERROR] at 
> org.apache.maven.surefire.common.junit48.FilterFactory.createGroupFilter(FilterFactory.java:94)
> [ERROR] at 
> org.apache.maven.surefire.junitcore.JUnitCoreProvider.createJUnit48Filter(JUnitCoreProvider.java:177)
> [ERROR] at 
> org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:113)
> [ERROR] at 
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
> [ERROR] at 
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
> [ERROR] at 
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> [ERROR] Caused by: java.lang.ClassNotFoundException:
> org.apache.sling.commons.testing.junit.categories.OakOnly
> [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> [ERROR] at java.security.AccessController.doPrivileged(Native Method)
> [ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> [ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> [ERROR] at 
> org.apache.maven.surefire.group.match.SingleGroupMatcher.loadGroupClasses(SingleGroupMatcher.java:130)
> [ERROR] ... 6 more
> [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/PluginExecutionException
>
> Chetan Mehrotra

Reply via email to