I have solved the problem my self, by looking into the great book
maven-definitive-guide
It is possible to give other version numbers
maven-plugin-plugin version 2.4.3
maven-plugin-tools-ant version 2.4.3
maven-script-ant version 2.0.9
Hereby there is no need to use old versions, so the problems behind my
mail does not exist / is solved.
/Anders
So a working pom can be:
<build>
<plugins>
<plugin>
<!-- NOTE: We don't need groupId if the plugin's groupId is
org.apache.maven.plugins OR org.codehaus.mojo.
-->
<artifactId>maven-plugin-plugin</artifactId>
<version>2.4.3</version>
<!-- Add the Ant plugin tools -->
<dependencies>
<dependency>
<groupId>org.apache.maven.plugin-tools</
groupId>
<artifactId>maven-plugin-tools-ant</artifactId>
<version>2.4.3</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-script-ant</artifactId>
<version>2.0.9</version>
</dependency>
</dependencies>
On 11/11/2008, at 09.29, Anders Kristian Andersen wrote:
Hi Friends
I have seen the guide http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html
and it requires plugins to use the maven-plugin-plugin version 2.3
In the list of plugins http://maven.apache.org/plugins/index.html
maven-plugin-plugin is version 2.4.3
When I run mvn install I get several problems
It scares me a little bit.
/Anders
Error trace below:::
Goal prefix is specified as: 'generate'. Maven currently expects it
to be 'channel-aggregate'.
[FATAL ERROR]
org.apache.maven.plugin.plugin.DescriptorGeneratorMojo#execute()
caused a linkage error (java.lang.NoSuchMethodError) and may be out-
of-date. Check the realms:
[FATAL ERROR] Plugin realm = app0.child-
container[org.apache.maven.plugins:maven-plugin-plugin]
urls[0] = file:/Users/aka/.m2/repository/org/apache/maven/plugins/
maven-plugin-plugin/2.4.3/maven-plugin-plugin-2.4.3.jar
urls[1] = file:/Users/aka/.m2/repository/org/apache/maven/maven-
plugin-tools-ant/2.0.1/maven-plugin-tools-ant-2.0.1.jar
urls[2] = file:/Users/aka/.m2/repository/org/apache/maven/maven-
plugin-tools-api/2.0.1/maven-plugin-tools-api-2.0.1.jar
urls[3] = file:/Users/aka/.m2/repository/org/codehaus/plexus/plexus-
utils/1.5.6/plexus-utils-1.5.6.jar
urls[4] = file:/Users/aka/.m2/repository/org/apache/maven/maven-
plugin-tools-model/2.0.1/maven-plugin-tools-model-2.0.1.jar
urls[5] = file:/Users/aka/.m2/repository/com/bea/weblogic/server/lib/
weblogic/9.2/weblogic-9.2.jar
urls[6] = file:/Users/aka/.m2/repository/com/bea/weblogic/common/lib/
apache_xbean/9.2/apache_xbean-9.2.jar
urls[7] = file:/Users/aka/.m2/repository/com/bea/weblogic/server/lib/
knex81/9.2/knex81-9.2.jar
urls[8] = file:/Users/aka/.m2/repository/com/bea/weblogic/server/lib/
jpd/9.2/jpd-9.2.jar
urls[9] = file:/Users/aka/.m2/repository/com/bea/weblogic/
integration/lib/jpdpublic/9.2/jpdpublic-9.2.jar
urls[10] = file:/Users/aka/.m2/repository/org/apache/maven/doxia/
doxia-site-renderer/1.0-alpha-10/doxia-site-renderer-1.0-alpha-10.jar
urls[11] = file:/Users/aka/.m2/repository/org/apache/maven/doxia/
doxia-core/1.0-alpha-10/doxia-core-1.0-alpha-10.jar
urls[12] = file:/Users/aka/.m2/repository/org/codehaus/plexus/plexus-
i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar
urls[13] = file:/Users/aka/.m2/repository/org/codehaus/plexus/plexus-
velocity/1.1.7/plexus-velocity-1.1.7.jar
urls[14] = file:/Users/aka/.m2/repository/org/apache/velocity/
velocity/1.5/velocity-1.5.jar
urls[15] = file:/Users/aka/.m2/repository/commons-collections/
commons-collections/3.2/commons-collections-3.2.jar
urls[16] = file:/Users/aka/.m2/repository/commons-lang/commons-lang/
2.1/commons-lang-2.1.jar
urls[17] = file:/Users/aka/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
urls[18] = file:/Users/aka/.m2/repository/org/apache/maven/doxia/
doxia-decoration-model/1.0-alpha-10/doxia-decoration-model-1.0-
alpha-10.jar
urls[19] = file:/Users/aka/.m2/repository/org/apache/maven/doxia/
doxia-module-apt/1.0-alpha-10/doxia-module-apt-1.0-alpha-10.jar
urls[20] = file:/Users/aka/.m2/repository/org/apache/maven/doxia/
doxia-module-fml/1.0-alpha-10/doxia-module-fml-1.0-alpha-10.jar
urls[21] = file:/Users/aka/.m2/repository/org/apache/maven/doxia/
doxia-module-xdoc/1.0-alpha-10/doxia-module-xdoc-1.0-alpha-10.jar
urls[22] = file:/Users/aka/.m2/repository/org/apache/maven/doxia/
doxia-module-xhtml/1.0-alpha-10/doxia-module-xhtml-1.0-alpha-10.jar
urls[23] = file:/Users/aka/.m2/repository/org/apache/maven/plugin-
tools/maven-plugin-tools-api/2.4.3/maven-plugin-tools-api-2.4.3.jar
urls[24] = file:/Users/aka/.m2/repository/jtidy/jtidy/4aug2000r7-dev/
jtidy-4aug2000r7-dev.jar
urls[25] = file:/Users/aka/.m2/repository/org/apache/maven/reporting/
maven-reporting-impl/2.0.4.1/maven-reporting-impl-2.0.4.1.jar
urls[26] = file:/Users/aka/.m2/repository/commons-validator/commons-
validator/1.2.0/commons-validator-1.2.0.jar
urls[27] = file:/Users/aka/.m2/repository/commons-beanutils/commons-
beanutils/1.7.0/commons-beanutils-1.7.0.jar
urls[28] = file:/Users/aka/.m2/repository/commons-logging/commons-
logging/1.0.4/commons-logging-1.0.4.jar
urls[29] = file:/Users/aka/.m2/repository/commons-digester/commons-
digester/1.6/commons-digester-1.6.jar
urls[30] = file:/Users/aka/.m2/repository/xml-apis/xml-apis/1.0.b2/
xml-apis-1.0.b2.jar
urls[31] = file:/Users/aka/.m2/repository/org/apache/maven/plugin-
tools/maven-plugin-tools-java/2.4.3/maven-plugin-tools-java-2.4.3.jar
urls[32] = file:/Users/aka/.m2/repository/com/thoughtworks/qdox/qdox/
1.6.3/qdox-1.6.3.jar
urls[33] = file:/Users/aka/.m2/repository/ant/ant/1.5.1/ant-1.5.1.jar
urls[34] = file:/Users/aka/.m2/repository/jmock/jmock/1.0.0/
jmock-1.0.0.jar
urls[35] = file:/Users/aka/.m2/repository/org/apache/maven/plugin-
tools/maven-plugin-tools-beanshell/2.4.3/maven-plugin-tools-
beanshell-2.4.3.jar
urls[36] = file:/Users/aka/.m2/repository/bsh/bsh/1.3.0/bsh-1.3.0.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/System/Library/Frameworks/Maven.framework/Versions/
2.0.9/Home/lib/maven-2.0.9-uber.jar
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO]
org
.apache
.maven.tools.plugin.scanner.MojoScanner.setActiveExtractors(Ljava/
util/Set;)V
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NoSuchMethodError:
org
.apache
.maven.tools.plugin.scanner.MojoScanner.setActiveExtractors(Ljava/
util/Set;)V
at
org
.apache
.maven
.plugin
.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:125)
at
org
.apache
.maven
.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:
451)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
558)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor
.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:
478)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor
.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor
.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
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)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Tue Nov 11 09:26:55 CET 2008
[INFO] Final Memory: 10M/20M
[INFO]
------------------------------------------------------------------------
i
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]