maven-tiles icon indicating copy to clipboard operation
maven-tiles copied to clipboard

Failed to retrieve plugin descriptor

Open maoo opened this issue 12 years ago • 2 comments

When running the plugin a Warning shows up:

[WARNING] Failed to retrieve plugin descriptor for it.session.maven.plugins:tiles-maven-plugin:0.8-beta-6-SNAPSHOT: Failed to parse plugin descriptor for it.session.maven.plugins:tiles-maven-plugin:0.8-beta-6-SNAPSHOT (/Users/mau/.m2/repository/it/session/maven/plugins/tiles-maven-plugin/0.8-beta-6-SNAPSHOT/tiles-maven-plugin-0.8-beta-6-SNAPSHOT.jar): No plugin descriptor found at META-INF/maven/plugin.xml

maoo avatar Apr 05 '13 11:04 maoo

in case of using the maven-enforcer-plugin to make sure all plugins have versions specified in the pom

<build>
    <plugins>
        ...
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-enforcer-plugin</artifactId>
            <version>1.2</version>
            <executions>
                <execution>
                    <id>enforce</id>
                    <goals>
                        <goal>enforce</goal>
                    </goals>
                    <configuration>
                        <rules>
                           <requirePluginVersions>
                                <message>Always define plugin versions!</message>
                                <banLatest>true</banLatest>
                                <banRelease>true</banRelease>
                                <banSnapshots>true</banSnapshots>
                                <phases>clean,deploy,site</phases>
                            </requirePluginVersions>
                        </rules>
                        <fail>true</fail>
                    </configuration>
                </execution>
            </executions>
        </plugin>
        ...
    </plugins>
</build>

The build fails as follows

[INFO] Scanning for projects...
[INFO] Building with 4 threads
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building projectname 1.0.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.2:enforce (enforce) @ projectname ---
[WARNING] Rule 4: org.apache.maven.plugins.enforcer.RequirePluginVersions failed with message:
Internal error in the plugin manager getting plugin 'it.session.maven.plugins:tiles-maven-plugin': Failed to parse plugin descriptor for it.session.maven.plugins:tiles-maven-plugin:0.8-beta-6 (/home/username/.m2/repository/it/session/maven/plugins/tiles-maven-plugin/0.8-beta-6/tiles-maven-plugin-0.8-beta-6.jar): No plugin descriptor found at META-INF/maven/plugin.xml
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.480s (Wall Clock)
[INFO] Finished at: Sun May 05 18:05:12 EET 2013
[INFO] Final Memory: 7M/147M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.2:enforce (enforce) on project projectname: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

The tiles plugin is defined as follows

<properties>
    ...
    <tiles-maven-plugin.version>0.8-beta-6</tiles-maven-plugin.version>
</properties>
...
<build>
    <plugins>
        ...
        <plugin>
            <groupId>it.session.maven.plugins</groupId>
            <artifactId>tiles-maven-plugin</artifactId>
            <version>${tiles-maven-plugin.version}</version>
            <extensions>true</extensions>
        </plugin>
    </plugins>
</build>

mragab avatar May 05 '13 16:05 mragab

Hi Mohamed! Thanks so much for your issue and please accept my apologies for such a long-awaited reaction (lot of travelling).

I'm currently working on a "experimental" version of the plugin, which uses a different approach to pom merging; I've added your tile and it worked very well, so I decided to push your tile into maven-tiles-examples project (experimental branch being used also here).

Please have a look at this https://github.com/maoo/maven-tiles-examples/commit/ac3977d323de8b1f2f0bf8befccf63a86186c039 and let me know if you can get it working; you will need to checkout and install (locally) the tiles-maven-plugin (version 0.8-beta-6-SNAPSHOT)

Thanks again! maurizio

maoo avatar May 23 '13 16:05 maoo