You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Kammer, John" <KA...@bit-sys.com> on 2012/12/19 16:23:53 UTC
Newbie problem getting basic functionality to work.
Hello, and thanks in advance for any help.
I am completely new to Maven and trying (without success) to get the most basic of Maven functionality to work.
Have tried multiple versions of Maven and Java all with the same results (see below).
It seems the Apache Commons Collections jar is missing, and for some reason not being downloaded. Any ideas why or what I can do about it?
The basic operation I am attempting is to run
== mvn archetype:generate
Which results in….
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
[WARNING] Error initializing: org.codehaus.plexus.velocity.DefaultVelocityComponent@6fdb4b
java.lang.NoClassDefFoundError: org/apache/commons/collections/ExtendedProperties
at org.apache.velocity.runtime.RuntimeInstance.<init>(RuntimeInstance.java:164)
at org.apache.velocity.app.VelocityEngine.<init>(VelocityEngine.java:71)
at org.codehaus.plexus.velocity.DefaultVelocityComponent.initialize(DefaultVelocityComponent
.java:72)
at org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.initialize(PlexusLifecycleMan
ager.java:338)
at org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.manageLifecycle(PlexusLifecyc
leManager.java:296)
at org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.onProvision(PlexusLifecycleMa
nager.java:148)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionLi
stenerStackCallback.java:108)
at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStac
kCallback.java:55)
…
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 46.653s
[INFO] Finished at: Wed Dec 19 09:57:31 EST 2012
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default
-cli) on project standalone-pom: Execution default-cli of goal org.apache.maven.plugins:maven-archet
ype-plugin:2.2:generate failed: A required class was missing while executing org.apache.maven.plugin
s:maven-archetype-plugin:2.2:generate: org/apache/commons/collections/ExtendedProperties
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-archetype-plugin:2.2
Re: Newbie problem getting basic functionality to work.
Posted by Wayne Fay <wa...@gmail.com>.
> I am completely new to Maven and trying (without success) to get the most basic of Maven functionality to work.
> Have tried multiple versions of Maven and Java all with the same results (see below).
> It seems the Apache Commons Collections jar is missing, and for some reason not being downloaded. Any ideas why or what I can do about it?
>From your description of the issue, it sounds to me like you are
behind a web proxy and have not configured it in settings.xml as
required. This is well documented on the Maven site and various free
Maven ebooks, and easily found with Google etc so I won't repeat the
instructions here.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org