Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to retrieve plugin descriptor #8

Open
maoo opened this issue Apr 5, 2013 · 2 comments
Open

Failed to retrieve plugin descriptor #8

maoo opened this issue Apr 5, 2013 · 2 comments
Milestone

Comments

@maoo
Copy link
Owner

maoo commented Apr 5, 2013

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

@mragab
Copy link

mragab commented May 5, 2013

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>

@maoo
Copy link
Owner Author

maoo commented May 23, 2013

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 maoo/maven-tiles-examples@ac3977d 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants