You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Johannes Schneider <ma...@cedarsoft.com> on 2010/05/26 14:27:53 UTC
Lifecycle: Compile on projects with type "pom"
Hi,
at the moment I am working on a plugin that compiles JavaFX sources.
If I add those executions:
<executions>
<execution>
<id>compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>test-compile</id>
<phase>test-compile</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
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
--
Johannes Schneider - blog.cedarsoft.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Lifecycle: Compile on projects with type "pom"
Posted by Johannes Schneider <ma...@cedarsoft.com>.
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-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
--
Johannes Schneider - blog.cedarsoft.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Lifecycle: Compile on projects with type "pom"
Posted by Johannes Schneider <ma...@cedarsoft.com>.
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-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
--
Johannes Schneider - blog.cedarsoft.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Lifecycle: Compile on projects with type "pom"
Posted by Samuli Saarinen <sa...@remion.com>.
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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org