Great. That worked. Thanks. On 05/27/2010 11:47 AM, Johannes Schneider wrote: > Thanks, will try it. > > On 05/27/2010 07:24 AM, Samuli Saarinen wrote: >> 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: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >
-- Johannes Schneider - blog.cedarsoft.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org