You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Martin Gainty (JIRA)" <ji...@codehaus.org> on 2013/09/26 18:37:52 UTC
[jira] (MPLUGIN-252) maven-plugin-plugin HelpMojo ignores skip
directive
Martin Gainty created MPLUGIN-252:
-------------------------------------
Summary: maven-plugin-plugin HelpMojo ignores skip directive
Key: MPLUGIN-252
URL: https://jira.codehaus.org/browse/MPLUGIN-252
Project: Maven Plugin Tools
Issue Type: Bug
Components: Plugin Plugin
Affects Versions: 2.4.1
Environment: Maven 3.0.2
JDK 1.7
Reporter: Martin Gainty
Attachments: HelpGeneratorMojo.java
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<!-- version>2.4.1</version -->
<version>2.9</version>
<executions>
<execution>
<id>generated-helpmojo</id>
<configuration>
<extractors>
<!-- Use no mojo extractors -->
<extractor/>
</extractors>
<skip>true</skip>
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
<outputDirectory>C:/tmp</outputDirectory>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>bsh</groupId>
<artifactId>bsh</artifactId>
<version>2.0b1</version>
</dependency>
<dependency>
<groupId>org.objectweb</groupId>
<artifactId>asm</artifactId>
<version>4.1</version>
</dependency>
</dependencies>
</plugin>
//Notice skip = true
//Notice <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-plugin-plugin:2.4.1:helpmojo (generated-helpmojo) on project maven-idea-plugin:
Error writing plugin descriptor: C:\Maven-plugin\maven-idea-plugin\target\generated-sources\plugin\org\apache\maven\plugin\idea\HelpMojo.java (Access is denied) -> [Help 1]
//a)its already generated
//b)chmod +r HelpMojo.java
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-plugin-plugin:2.4.1:helpmojo (generated-helpmojo) on project maven-idea-plugin: Error writing plugin descriptor
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error writing plugin descriptor
at org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:146)
at org.apache.maven.plugin.plugin.HelpGeneratorMojo.execute(HelpGeneratorMojo.java:63)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Fix is attached
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira