maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Koch <tho...@koch.ro>
Subject No mojo definitions were found for plugin
Date Fri, 08 Mar 2013 12:48:35 GMT
Hi,

I'm working on the Debian package for the maven-plugin-tools. In this package 
we first use a prepared plugin.xml and just copy it into the maven-plugin-
plugin.jar. Then we call the plugin:descriptor goal to actually generate the 
plugin.xml and repackage again afterwards.

But maven doesn't like debian... :-) Do you have any hint where I could start 
to debug? The class files are there in target/classes. Maven is executed in 
the maven-plugin-plugin directory.

[DEBUG]   (f) local = Repository[local|file:///tmp/buildd/maven-plugin-
tools-3.2/debian/tmp/maven-repo/]
[DEBUG]   (f) outputDirectory = /tmp/buildd/maven-plugin-tools-3.2/maven-
plugin-plugin/target/classes/META-INF/maven
[DEBUG]   (f) remoteRepos = [Repository[central|
http://repo1.maven.org/maven2]]
[DEBUG]   (f) skip = false
[DEBUG]   (f) skipDescriptor = false
[DEBUG]   (f) skipErrorNoDescriptorsFound = false
[DEBUG]   (f) project = MavenProject: org.apache.maven.plugins:maven-plugin-
plugin:3.2 @ /tmp/buildd/maven-plugin-tools-3.2/maven-plugin-plugin/pom.xml
[DEBUG] -- end configuration --
[INFO] [plugin:descriptor {execution: default-cli}]
[WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to read mojo 
metadata, i.e. build is platform dependent!
[DEBUG] Using 0 mojo extractors.
[INFO] 
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
------------------------------------------------------------------------
[INFO] Error extracting plugin descriptor: 'No mojo definitions were found for 
plugin: org.apache.maven.plugins:maven-plugin-plugin.'

[INFO] 
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error extracting 
plugin descriptor: 'No mojo definitions were found for plugin: 
org.apache.maven.plugins:maven-plugin-plugin.'
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:100)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error extracting 
plugin descriptor: 'No mojo definitions were found for plugin: 
org.apache.maven.plugins:maven-plugin-plugin.'
	at 
org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:245)
	at 
org.apache.maven.plugin.plugin.DescriptorGeneratorMojo.execute(DescriptorGeneratorMojo.java:92)
	at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
	... 9 more
Caused by: 
org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException: No mojo 
definitions were found for plugin: org.apache.maven.plugins:maven-plugin-
plugin.
	at 
org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePluginDescriptor(DefaultMojoScanner.java:126)
	at 
org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:233)
	... 12 more


Regards,

Thomas Koch, http://www.koch.ro

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message