Hi there !
I just start playing around with maven2-beta-3. As suggested by the docu
i created a sample project with
>m2 archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
acording to
http://maven.apache.org/maven2/plugins/maven-antrun-plugin/usage.html
i edited the pom.xml, so it now looks like:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany.app</groupId>
<artifactId>my-app</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>Maven Quick Start Archetype</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<configuration>
<tasks>
<echo message="ANT TASK"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
when i call "m2 install", i get the following stack-trace:
C:\src\mavenTestProject\my-app>m2 install
[INFO]
----------------------------------------------------------------------------
[INFO] Building Maven Quick Start Archetype
[INFO] task-segment: [install]
[INFO]
----------------------------------------------------------------------------
---------------------------------------------------
constituent[0]:
file:/c:/src/maven/MAVEN-~1.0-B/bin/../lib/commons-cli-1.0.jar
constituent[1]:
file:/c:/src/maven/MAVEN-~1.0-B/bin/../lib/doxia-sink-api-1.0-alpha-4.jar
constituent[2]: file:/c:/src/maven/MAVEN-~1.0-B/bin/../lib/jline-0.9.1.jar
constituent[3]: file:/c:/src/maven/MAVEN-~1.0-B/bin/../lib/jsch-0.1.21.jar
constituent[4]:
file:/c:/src/maven/MAVEN-~1.0-B/bin/../lib/maven-artifact-2.0-beta-3.jar
constituent[5]:
file:/c:/src/maven/MAVEN-~1.0-B/bin/../lib/maven-artifact-manager-2.0-beta-3.jar
constituent[6]:
file:/c:/src/maven/MAVEN-~1.0-B/bin/../lib/maven-core-2.0-beta-3.jar
constituent[7]:
file:/c:/src/maven/MAVEN-~1.0-B/bin/../lib/maven-model-2.0-beta-3.jar
constituent[8]:
file:/c:/src/maven/MAVEN-~1.0-B/bin/../lib/maven-monitor-2.0-beta-3.jar
constituent[9]:
file:/c:/src/maven/MAVEN-~1.0-B/bin/../lib/maven-plugin-api-2.0-beta-3.jar
constituent[10]:
file:/c:/src/maven/MAVEN-~1.0-B/bin/../lib/maven-plugin-descriptor-2.0-beta-3.jar
constituent[11]:
file:/c:/src/maven/MAVEN-~1.0-B/bin/../lib/maven-plugin-parameter-documenter-2.0-beta-3.jar
constituent[12]:
file:/c:/src/maven/MAVEN-~1.0-B/bin/../lib/maven-plugin-registry-2.0-beta-3.jar
constituent[13]:
file:/c:/src/maven/MAVEN-~1.0-B/bin/../lib/maven-profile-2.0-beta-3.jar
constituent[14]:
file:/c:/src/maven/MAVEN-~1.0-B/bin/../lib/maven-project-2.0-beta-3.jar
constituent[15]:
file:/c:/src/maven/MAVEN-~1.0-B/bin/../lib/maven-reporting-api-2.0-beta-3.jar
constituent[16]:
file:/c:/src/maven/MAVEN-~1.0-B/bin/../lib/maven-repository-metadata-2.0-beta-3.jar
constituent[17]:
file:/c:/src/maven/MAVEN-~1.0-B/bin/../lib/maven-settings-2.0-beta-3.jar
constituent[18]:
file:/c:/src/maven/MAVEN-~1.0-B/bin/../lib/plexus-input-handler-1.0-alpha-2.jar
constituent[19]:
file:/c:/src/maven/MAVEN-~1.0-B/bin/../lib/wagon-file-1.0-alpha-4.jar
constituent[20]:
file:/c:/src/maven/MAVEN-~1.0-B/bin/../lib/wagon-http-lightweight-1.0-alpha-4.jar
constituent[21]:
file:/c:/src/maven/MAVEN-~1.0-B/bin/../lib/wagon-provider-api-1.0-alpha-4.jar
constituent[22]:
file:/c:/src/maven/MAVEN-~1.0-B/bin/../lib/wagon-ssh-1.0-alpha-4.jar
---------------------------------------------------
Exception in thread "main" java.lang.AbstractMethodError
at
org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:252)
at
org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:128)
at
org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:55)
at
org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1048)
at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:580)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:385)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:554)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:50
8)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:494)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:307)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:217)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:247)
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:585)
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)
What am i doing wrong ? Any hints are welcome.
btw, commenting out the line <goal>run</goal> fixes the issue, but the
ant-task is not called.
Greeting and thanks,
Jens B.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]