Hi,

I used the following code in a plugin. Got it from hibernate3-maven-plugin if I remember correctly.
*/
* @parameter expression="${project}"
* @required
* @readonly
*/
protected MavenProject project;

protected boolean isJavaProject() {
ArtifactHandler artifactHandler = project.getArtifact().getArtifactHandler();
                return "java".equals( artifactHandler.getLanguage());
}

I hope this helps

Cheers,

Samuli

Johannes Schneider wrote:
The plugin is then executed correctly. But of course I don't want to
runt that plugin for pom projects (with <packaging>pom</packaging>).
The maven-compile-plugin does *not* run for pom projects. At least I
cannot see any output.

I searched for the reason within the plugin sources but could not find
them. Any ideas/hints what I could do??


Thanks,

Johannes






---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to