I solved this using ${plugin.version} and :
        Artifact plugin =
artifactFactory.createArtifact( "org.codehaus.mojo", "gwt-maven-plugin",
version, Artifact.SCOPE_COMPILE, "maven-plugin" );

        String localPath = localRepository.pathOf( plugin );

        File myJar = new File( localRepository.getBasedir(), localPath );

2009/1/16 nicolas de loof <[email protected]>

> Hi,
> from a maven plugin (gwt-mojo) I'd like to get the Artifact for the plugin
> jar itslef.
>
> ${plugin.artifacts} and ${plugin.artifactMap} only contains the plugin
> dependencies.
>
> Any suggestion ?
>

Reply via email to