You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Arnaud Heritier (JIRA)" <ji...@codehaus.org> on 2007/03/16 00:57:34 UTC

[jira] Updated: (MECLIPSE-241) Compiler settings in pluginManagement aren't used in wtp facet

     [ http://jira.codehaus.org/browse/MECLIPSE-241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arnaud Heritier updated MECLIPSE-241:
-------------------------------------

    Description: 
In a parent POM I have in the pluginManagement part :
{code:xml}
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-compiler-plugin</artifactId>
  <configuration>
    <source>1.5</source>
    <target>1.5</target>
  </configuration>
</plugin>
{code}
And I have a submodule (a war) configure to generate wtp 1.5 settings :
{code:xml}
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-eclipse-plugin</artifactId>
  <configuration>
    <wtpversion>1.5</wtpversion>
  </configuration>
</plugin>
{code}
After running eclipse:eclipse I have the following in my org.eclipse.wst.common.project.facet.core.xml :
{code:xml}
<faceted-project>
  <fixed facet="jst.java"/>
  <fixed facet="jst.web"/>
  <installed facet="jst.web" version="2.4"/>
  <installed facet="jst.java" version="1.4"/>
</faceted-project>
{code}
And not
{code:xml}
<faceted-project>
  <fixed facet="jst.java"/>
  <fixed facet="jst.web"/>
  <installed facet="jst.web" version="2.4"/>
  <installed facet="jst.java" version="5.0"/>
</faceted-project>
{code}

  was:
In a parent POM I have :
{code:xml}
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-compiler-plugin</artifactId>
  <configuration>
    <source>1.5</source>
    <target>1.5</target>
  </configuration>
</plugin>
{code}
And I have a submodule (a war) configure to generate wtp 1.5 settings :
{code:xml}
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-eclipse-plugin</artifactId>
  <configuration>
    <wtpversion>1.5</wtpversion>
  </configuration>
</plugin>
{code}
After running eclipse:eclipse I have the following in my org.eclipse.wst.common.project.facet.core.xml :
{code:xml}
<faceted-project>
  <fixed facet="jst.java"/>
  <fixed facet="jst.web"/>
  <installed facet="jst.web" version="2.4"/>
  <installed facet="jst.java" version="1.4"/>
</faceted-project>
{code}
And not
{code:xml}
<faceted-project>
  <fixed facet="jst.java"/>
  <fixed facet="jst.web"/>
  <installed facet="jst.web" version="2.4"/>
  <installed facet="jst.java" version="5.0"/>
</faceted-project>
{code}

        Summary: Compiler settings in pluginManagement aren't used in wtp facet  (was: Compiler settings from parent project aren't used in wtp facet)

> Compiler settings in pluginManagement aren't used in wtp facet
> --------------------------------------------------------------
>
>                 Key: MECLIPSE-241
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-241
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: WTP support
>    Affects Versions: 2.3
>         Environment: maven 2.0.4 / maven 2.0.5
>            Reporter: Arnaud Heritier
>         Assigned To: Arnaud Heritier
>            Priority: Minor
>             Fix For: 2.4
>
>         Attachments: project-28.zip
>
>
> In a parent POM I have in the pluginManagement part :
> {code:xml}
> <plugin>
>   <groupId>org.apache.maven.plugins</groupId>
>   <artifactId>maven-compiler-plugin</artifactId>
>   <configuration>
>     <source>1.5</source>
>     <target>1.5</target>
>   </configuration>
> </plugin>
> {code}
> And I have a submodule (a war) configure to generate wtp 1.5 settings :
> {code:xml}
> <plugin>
>   <groupId>org.apache.maven.plugins</groupId>
>   <artifactId>maven-eclipse-plugin</artifactId>
>   <configuration>
>     <wtpversion>1.5</wtpversion>
>   </configuration>
> </plugin>
> {code}
> After running eclipse:eclipse I have the following in my org.eclipse.wst.common.project.facet.core.xml :
> {code:xml}
> <faceted-project>
>   <fixed facet="jst.java"/>
>   <fixed facet="jst.web"/>
>   <installed facet="jst.web" version="2.4"/>
>   <installed facet="jst.java" version="1.4"/>
> </faceted-project>
> {code}
> And not
> {code:xml}
> <faceted-project>
>   <fixed facet="jst.java"/>
>   <fixed facet="jst.web"/>
>   <installed facet="jst.web" version="2.4"/>
>   <installed facet="jst.java" version="5.0"/>
> </faceted-project>
> {code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira