Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


ODL conntroller build error: Execution default-jar of goal org.apache.maven.plugins:maven-archetype-plugin:2.2:jar failed:

asked 2015-05-21 05:11:16 -0800

eya.get gravatar image

Dear all,

I am still encountering odl controller build errors. But at least I have figured out that the problem is specific to the maven-archetype-plugin. This plugin (with version 2.2) is defined on the POM file, but it is not being accessible or downloaded to local repository while building the project on CLI (with mvn clean install command). My Environment set up is as follows:

  • OS: Ubuntu 14.04
  • Java version: 1.7.0_76 (it is from oracle not openJDK)
  • Maven version: 3.3.3
  • The repo that i cloned: stable/helium

The error trace is as follows:

======================================================= [WARNING] Error initializing: org.codehaus.plexus.velocity.DefaultVelocityComponent@473147be java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils at org.apache.velocity.runtime.resource.ResourceManagerImpl.initialize( at org.apache.velocity.runtime.RuntimeInstance.initializeResourceManager( at org.apache.velocity.runtime.RuntimeInstance.init( at at org.codehaus.plexus.velocity.DefaultVelocityComponent.initialize( at org.eclipse.sisu.plexus.PlexusLifecycleManager.initialize( at org.eclipse.sisu.plexus.PlexusLifecycleManager.activate( at org.eclipse.sisu.bean.BeanScheduler$Pending.activate( at org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision( at$Provision.provision( at at at at$2$ at at$2.get( at$1.get( at org.eclipse.sisu.inject.LazyBeanEntry.getValue( at org.eclipse.sisu.plexus.LazyPlexusBean.getValue( at org.codehaus.plexus.DefaultPlexusContainer.lookup( at org.codehaus.plexus.DefaultPlexusContainer.lookup( at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo( at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo( at org.apache.maven.lifecycle.internal.MojoExecutor.execute( at org.apache.maven.lifecycle.internal.MojoExecutor.execute( at org.apache.maven.lifecycle.internal.MojoExecutor.execute( at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject( at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject( at at org.apache.maven.lifecycle.internal.LifecycleStarter.execute( at org.apache.maven.DefaultMaven.doExecute( at org.apache.maven.DefaultMaven.doExecute( at org.apache.maven.DefaultMaven.execute( at org.apache.maven.cli.MavenCli.execute( at org.apache.maven.cli.MavenCli.doMain( at org.apache.maven.cli.MavenCli.main( at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl ... (more)

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2015-05-21 12:33:22 -0800

Bruno Lopes gravatar image

Hi folks

Today I had this problem too ! I tried the above solution and not worked. I tried the newest version of commons-lang and I compiled the controller with success.

Folow the maven dependency of the newest version of commons-lang:


I added this dependecy in the ~/.m2/repository/org/apache/maven/plugins/maven-archetype-plugin/2.2/maven-archetype-plugin-2.2.pom (like the above solution).


edit flag offensive delete publish link more


Both versions can work :).

eya.get ( 2015-05-24 17:07:52 -0800 )edit

answered 2015-05-21 10:05:20 -0800

eya.get gravatar image

Adding the following dependency in file ~/.m2/repository/org/apache/maven/plugins/maven-archetype-plugin/2.2/maven-archetype-plugin-2.2.pom solves the problem for me.

<dependency> <groupid>commons-lang</groupid> <artifactid>commons-lang</artifactid> <version>2.3</version> </dependency>

It might not be a permanent solution though.

edit flag offensive delete publish link more

answered 2015-08-03 03:47:26 -0800

happysmile gravatar image

i had the same problem. i removed ~/.m2 folder then created project using archetype. it just worked.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools



Asked: 2015-05-21 05:11:16 -0800

Seen: 1,544 times

Last updated: Aug 03 '15