4 Replies Latest reply on Nov 26, 2007 2:53 PM by richajon

    build error using the CDK

    richajon Newbie

      Hi

      I get the following error using the CDK. Everything was working fine before I clean my ~/.m2/repository. Anyone know what can cause that error?

      E:\Projects\MOXXI\src\moxxi-ng\trunk\moxxi-ui>set MAVEN_OPTS=-Xmx512m -XX:MaxPermSize=512m
      + Error stacktraces are turned on.
      [INFO] Scanning for projects...
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building moxxi-ui
      [INFO] task-segment: [install]
      [INFO] ----------------------------------------------------------------------------
      Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.1-jboss-1/maven-jar-plugin-2.1-jboss-1.pom
      [INFO] artifact org.richfaces.cdk:maven-cdk-plugin: checking for updates from repository.jboss.com
      [INFO] artifact org.richfaces.cdk:maven-cdk-plugin: checking for updates from central
      [INFO] Preparing cdk:generate
      [WARNING] Removing: generate from forked lifecycle, to prevent recursive invocation.
      [INFO] [resources:resources]
      [INFO] Using default encoding to copy filtered resources.
      [INFO] [compiler:compile]
      [INFO] Nothing to compile - all classes are up to date
      [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
      [INFO] Setting property: velocimacro.messages.on => 'false'.
      [INFO] Setting property: resource.loader => 'classpath'.
      [INFO] Setting property: resource.manager.logwhenfound => 'false'.
      [INFO] **************************************************************
      [INFO] Starting Jakarta Velocity v1.4
      [INFO] RuntimeInstance initializing.
      [INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties
      [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl)
      [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
      [INFO] ClasspathResourceLoader : initialization starting.
      [INFO] ClasspathResourceLoader : initialization complete.
      [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl)
      [INFO] Default ResourceManager initialization complete.
      [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
      [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
      [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
      [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include
      [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
      [INFO] Created: 20 parsers.
      [INFO] Velocimacro : initialization starting.
      [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm
      [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader.
      [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm'
      [INFO] Velocimacro : VM library template macro registration complete.
      [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates
      [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
      [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
      [INFO] Velocimacro : initialization complete.
      [INFO] Velocity successfully started.
      [INFO] [cdk:generate {execution: default}]
      [INFO] Parse config file E:\Projects\MOXXI\src\moxxi-ng\trunk\moxxi-ui\src\main\config\component\defaultaction.xml
      [INFO] Parse config file E:\Projects\MOXXI\src\moxxi-ng\trunk\moxxi-ui\src\main\config\component\dropdownbox.xml
      [INFO] Create class file org.mcgill.moxxi.ui.component.html.HtmlDefaultAction
      [INFO] Create class file org.mcgill.moxxi.ui.component.html.HtmlDropDownBox
      [INFO] Create tag class file org.mcgill.moxxi.ui.component.html.HtmlDefaultAction
      [INFO] Create tag class file org.mcgill.moxxi.ui.component.html.HtmlDropDownBox
      [INFO] Component org.mcgill.moxxi.ui.DefaultAction included in taglib moxxi-ui
      [INFO] Component org.mcgill.moxxi.ui.DropDownBox included in taglib moxxi-ui
      [INFO] Component org.mcgill.moxxi.ui.DefaultAction included to taglib moxxi-ui
      [INFO] Component org.mcgill.moxxi.ui.DropDownBox included to taglib moxxi-ui
      [INFO] [resources:resources]
      [INFO] Using default encoding to copy filtered resources.
      [INFO] [compiler:compile]
      [INFO] Compiling 5 source files to E:\Projects\MOXXI\src\moxxi-ng\trunk\moxxi-ui\target\classes
      [INFO] [resources:testResources]
      [INFO] Using default encoding to copy filtered resources.
      [INFO] [compiler:testCompile]
      [INFO] No sources to compile
      [INFO] [surefire:test]
      [INFO] No tests to run.
      -----------------------------------------------------
      this realm = app0.child-container[org.apache.maven.plugins:maven-jar-plugin]
      urls[0] = file:/C:/Documents and Settings/richardj/.m2/repository/org/apache/maven/plugins/maven-jar-plugin/2.1-jboss-1/maven-jar-plugin-2.1-jboss-1.jar
      urls[1] = file:/C:/Documents and Settings/richardj/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
      Number of imports: 4
      import: org.codehaus.classworlds.Entry@4891bb28
      import: org.codehaus.classworlds.Entry@f8e44ca4
      import: org.codehaus.classworlds.Entry@c51bc9e7
      import: org.codehaus.classworlds.Entry@bece5185
      
      
      this realm = plexus.core
      urls[0] = file:/E:/java/maven/maven-2.0.7/lib/maven-core-2.0.7-uber.jar
      Number of imports: 4
      import: org.codehaus.classworlds.Entry@4891bb28
      import: org.codehaus.classworlds.Entry@f8e44ca4
      import: org.codehaus.classworlds.Entry@c51bc9e7
      import: org.codehaus.classworlds.Entry@bece5185
      -----------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-jar-plugin:2.1-jboss-1:jar': Unable to find the mojo 'org.apache.maven.plugins:maven-jar-plugin:2.1-jboss-1:jar' in the plugin 'org.apache.maven.plugins:maven-jar-plugin'
      org/apache/maven/archiver/MavenArchiveConfiguration
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-jar-plugin:2.1-jboss-1:jar': Unable to find the mojo 'org.apache.maven.plugins:maven-jar-plugin:2.1-jboss-1:jar' in the plugin 'org.apache.maven.plugins:maven-jar-plugin'
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:543)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
       at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      Caused by: org.apache.maven.plugin.PluginManagerException: Unable to find the mojo 'org.apache.maven.plugins:maven-jar-plugin:2.1-jboss-1:jar' in the plugin 'org.apache.maven.plugins:maven-jar-plugin'
       at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:571)
       at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:421)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
       ... 16 more
      Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-jar-plugin:2.1-jboss-1:jar', it could not be created
       at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335)
       at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
       at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:562)
       ... 18 more
      Caused by: org.codehaus.plexus.component.factory.ComponentInstantiationException: Could not instanciate component: role: 'null', implementation: 'org.apache.maven.plugin.jar.JarMojo'
       at org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException(JavaComponentFactory.java:77)
       at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62)
       at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
       at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93)
       at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
       at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
       ... 20 more
      Caused by: java.lang.NoClassDefFoundError: org/apache/maven/archiver/MavenArchiveConfiguration
       at org.apache.maven.plugin.jar.AbstractJarMojo.<init>(AbstractJarMojo.java:99)
       at org.apache.maven.plugin.jar.JarMojo.<init>(JarMojo.java:31)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
       at java.lang.Class.newInstance0(Class.java:355)
       at java.lang.Class.newInstance(Class.java:308)
       at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44)
       ... 24 more
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 12 seconds
      [INFO] Finished at: Mon Nov 26 12:26:57 EST 2007
      [INFO] Final Memory: 9M/20M
      [INFO] ------------------------------------------------------------------------