The plugin-registry is not created by default anymore. But nevertheless you gave me the right idea. It turned the plugin-registry in my settings.xml on. The antrun plugin did not appear there. Nevertheless I defined the antrun version and it's dependencies in the root pom.xml of my project. This solved my problem. I assume that how you said, that some plugin I am using in modules which are created before is using the old version. I still do not understand why the version definition in my module is not used. Even if another plugin uses the antrun plugin I would assume that the latest definition overwrites anything before, but this workaround is at least working for me. Thanks for your help. Andreas
-----Ursprüngliche Nachricht----- Von: Kenney Westerhof [mailto:[EMAIL PROTECTED] Gesendet: Montag, 12. Juni 2006 00:04 An: Maven Users List Betreff: Re: Maven 2 ant run plugin - error in multi project build On Sun, 11 Jun 2006, Andreas Zschorn wrote: Hi, did you delete ~/.m2/plugin-registry.xml? this error usually occurs if you have 2 references to the antrun plugin, usually there's another one in some other module that gets executed first. that one probably has <version>1.0</version> defined. Can you check that? -- Kenney > Since this weekend I have a strange error in my build project and I > did not change any configuration.I have a multi project setup, until > Friday everthing was fine. > I use the antrun plugin only in my web application with the following > configuration. The error occurs only when I do a mvn install in the > root project. If I change directly in the web-app module the mvn > install works fine. > I tried to set the antrun plugin version to <version>1.1</version> but > the stacktrace remains the same - it stills refers to the 1.0 version. > Completly redownloading all plugins did not help either. > Has someone a idea what went wrong and what I can do to find the cause. > Thanks > Andreas > <plugin> > <artifactId>maven-antrun-plugin</artifactId> > > <executions> > <execution> > > <phase>process-resources</phase> > <goals> > <goal>run</goal> > </goals> > <configuration> > <tasks> > <style > extension=".tld" > > destdir="${pom.basedir}/target/${pom.build.finalName}" > > style="${pom.basedir}/tags/tags2tld.xsl" > > basedir="${pom.basedir}/src/main/webapp"> > > <include name="**/*-tags.xml"> > > </include> > </style> > </tasks> > </configuration> > </execution> > </executions> > <dependencies> > <dependency> > <groupId>ant</groupId> > > <artifactId>ant-trax</artifactId> > <version>1.6.5</version> > </dependency> > <dependency> > <groupId>ant</groupId> > > <artifactId>ant-xslp</artifactId> > <version>1.6.5</version> > </dependency> > <dependency> > <groupId>ant</groupId> > > <artifactId>ant-xalan2</artifactId> > <version>1.6.1</version> > </dependency> > <dependency> > <groupId>ant</groupId> > > <artifactId>ant-xalan1</artifactId> > <version>1.6.5</version> > </dependency> > </dependencies> > </plugin> > > > [ERROR] BUILD ERROR > [INFO] > ---------------------------------------------------------------------- > -- [INFO] Internal error in the plugin manager executing goal > 'org.apache.maven.plugins:maven-antrun-plugin:1.0:run': Unable to find > the mojo 'org.apache.maven.plugins:maven-antrun-pl > ugin:1.0:run' in the plugin 'org.apache.maven.plugins:maven-antrun-plugin' > Component descriptor cannot be found in the component repository: > org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-antrun-plug > in:1.0 > :run. > [INFO] > ---------------------------------------------------------------------- > -- > [INFO] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: Internal error > in the plugin manager executing goal > 'org.apache.maven.plugins:maven-antrun-plugin:1.0:run': Unable to find > t he mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.0:run' in > the plugin 'org.apache.maven.plugins:maven-antrun-plugin' > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defau > ltLife > cycleExecutor.java:538) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLif > ecycle > (DefaultLifecycleExecutor.java:475) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defaul > tLifec > ycleExecutor.java:454) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand > leFail > ures(DefaultLifecycleExecutor.java:306) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment > s(Defa > ultLifecycleExecutor.java:273) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLif > ecycle > Executor.java:140) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j > ava:39 > ) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess > orImpl > .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) > Caused by: org.apache.maven.plugin.PluginManagerException: Unable to > find the mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.0:run' > in the plugin 'org.apache.maven.plugins:ma ven-antrun-plugin' > at > org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Default > Plugin > Manager.java:533) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugin > Manage > r.java:390) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defau > ltLife > cycleExecutor.java:534) > ... 16 more > Caused by: > org.codehaus.plexus.component.repository.exception.ComponentLookupException: > Component descriptor cannot be found in the component repository: > org.apache.maven.plugin.Mo > joorg.apache.maven.plugins:maven-antrun-plugin:1.0:run. > at > org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContain > er.jav > a:323) > at > org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContain > er.jav > a:312) > at > org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContain > er.jav > a:440) > at > org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Default > Plugin > Manager.java:524) > ... 18 more > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]