Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-532

Quickstart Build error with maven 3

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: viewer-wicket-1.3.0
    • Fix Version/s: tidy-up
    • Component/s: None
    • Labels:
      None

      Description

      I checkout the latest version of isis in github and I did mvn clean install, I receive an error during the build of quickstart
      Quickstart Wicket/Restful/JDO DOM ................. FAILURE

      [INFO] — maven-surefire-plugin:2.10:test (default-test) @ quickstart_wicket_restful_jdo-dom —
      [WARNING] The POM for org.apache.maven.plugins:maven-surefire-plugin:jar:2.10 is invalid, transitive dependencies (if any) will not be available, enab
      sept. 14, 2013 11:02:06 AM org.sonatype.guice.bean.reflect.NamedClass
      WARNING: Error injecting: org.apache.maven.plugin.surefire.SurefirePlugin
      java.lang.TypeNotPresentException: Type org.apache.maven.plugin.surefire.SurefirePlugin not present
      at org.sonatype.guice.bean.reflect.URLClassSpace.loadClass(URLClassSpace.java:100)
      at org.sonatype.guice.bean.reflect.NamedClass.load(NamedClass.java:45)
      at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:47)
      at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:968)
      at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1014)
      at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:964)
      at com.google.inject.Scopes$1$1.get(Scopes.java:59)
      at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:79)
      at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:53)
      at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:243)
      at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:235)
      at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:455)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:92)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
      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:319)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
      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:290)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
      Caused by: java.lang.NoClassDefFoundError: org/apache/maven/plugin/surefire/SurefireReportParameters
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
      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:386)
      at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
      at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
      at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
      at org.sonatype.guice.bean.reflect.URLClassSpace.loadClass(URLClassSpace.java:96)
      ... 33 more
      Caused by: java.lang.ClassNotFoundException: org.apache.maven.plugin.surefire.SurefireReportParameters
      at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
      at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
      at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
      ... 47 more

      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] Quickstart Wicket/Restful/JDO DOM ................. FAILURE [4.000s]
      [INFO] Quickstart Wicket/Restful/JDO Fixtures ............ SKIPPED
      [INFO] Quickstart Wicket/Restful/JDO Integration Tests ... SKIPPED
      [INFO] Quickstart Wicket/Restful/JDO Webapp .............. SKIPPED
      [INFO] quickstart_wicket_restful_jdo-archetype ........... SKIPPED
      [INFO] Email service ..................................... SKIPPED
      [INFO] Isis Maven Mojo (isis-maven-plugin) ............... SKIPPED
      [INFO] Apache Isis (Aggregator) .......................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 5.969s
      [INFO] Finished at: Sat Sep 14 11:02:06 GMT+01:00 2013
      [INFO] Final Memory: 41M/495M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project quickstart_wicket_restful_jdo-dom: Execution default-test of goal org.apache.maven.plu
      gins:maven-surefire-plugin:2.10:test failed: Unable to load the mojo 'test' in the plugin 'org.apache.maven.plugins:maven-surefire-plugin:2.10'. A required class is missing: org/apache/maven/plugin/su
      refire/SurefireReportParameters
      [ERROR] -----------------------------------------------------
      [ERROR] realm = plugin>org.apache.maven.plugins:maven-surefire-plugin:2.10
      [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      [ERROR] urls[0] = file:/C:/Documents%20and%20Settings/Administrateur.TOSHIBA-7BA50F3/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin/2.10/maven-surefire-plugin-2.10.jar
      [ERROR] urls[1] = file:/C:/Documents%20and%20Settings/Administrateur.TOSHIBA-7BA50F3/.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[maven.api, parent: null]]
      [ERROR]
      [ERROR] -----------------------------------------------------: org.apache.maven.plugin.surefire.SurefireReportParameters
      [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
      D:\isis\source\isis>

        Attachments

          Activity

            People

            • Assignee:
              danhaywood Daniel Keir Haywood
              Reporter:
              influence160 Othmen Tiliouine
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: