You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Thiago Leão Moreira (JIRA)" <ji...@codehaus.org> on 2009/10/13 05:27:27 UTC
[jira] Created: (MCOMPILER-108) Overwriting configurations does not
take affect in a POM child project
Overwriting configurations does not take affect in a POM child project
-----------------------------------------------------------------------
Key: MCOMPILER-108
URL: http://jira.codehaus.org/browse/MCOMPILER-108
Project: Maven 2.x Compiler Plugin
Issue Type: Bug
Affects Versions: 2.0.2
Reporter: Thiago Leão Moreira
If you define a parent project with this compiler configuration
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<inherited>true</inherited>
<configuration>
<source>1.3</source>
<target>1.3</target>
</configuration>
</plugin>
And a child project with this
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.3</source>
<target>1.1</target>
<fork>true</fork>
<compilerArgument>-g:none</compilerArgument>
<compilerArguments>
<bootclasspath>
${settings.localRepository}/org/microemu/midpapi20/2.0.3/midpapi20-2.0.3.jar
</bootclasspath>
</compilerArguments>
</configuration>
</plugin>
the configurations in the child project will not take affect!
--
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
[jira] Updated: (MCOMPILER-108) Overwriting configurations does not
take affect in a POM child project
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCOMPILER-108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann updated MCOMPILER-108:
----------------------------------------
Attachment: MCOMPILER-108.zip
Your test project fails at {{[compiler:compile {execution: default-compile}]}} (using Maven 2.2.1) as expected/designed because the execution in question, "default-compile", has not been overriden by the child with custom configuration and hence uses the plugin-level configuration inherited from the parent. The attached project shows the proper configuration.
For further reading, have a look at:
- [Guide to Configuring Default Mojo Executions|http://maven.apache.org/guides/mini/guide-default-execution-ids.html]
- MNG-3203
> Overwriting configurations does not take affect in a POM child project
> -----------------------------------------------------------------------
>
> Key: MCOMPILER-108
> URL: http://jira.codehaus.org/browse/MCOMPILER-108
> Project: Maven 2.x Compiler Plugin
> Issue Type: Bug
> Affects Versions: 2.0.2
> Reporter: Thiago Leão Moreira
> Assignee: Benjamin Bentmann
> Attachments: MCOMPILER-108-reproducible.zip, MCOMPILER-108.zip, MCOMPILER-108.zip
>
>
> If you define a parent project with this compiler configuration
> <plugin>
> <artifactId>maven-compiler-plugin</artifactId>
> <inherited>true</inherited>
> <configuration>
> <source>1.3</source>
> <target>1.3</target>
> </configuration>
> </plugin>
> And a child project with this
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.3</source>
> <target>1.1</target>
> <fork>true</fork>
> <compilerArgument>-g:none</compilerArgument>
> <compilerArguments>
> <bootclasspath>
> ${settings.localRepository}/org/microemu/midpapi20/2.0.3/midpapi20-2.0.3.jar
> </bootclasspath>
> </compilerArguments>
> </configuration>
> </plugin>
> the configurations in the child project will not take affect!
--
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
[jira] Updated: (MCOMPILER-108) Overwriting configurations does not
take affect in a POM child project
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCOMPILER-108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann updated MCOMPILER-108:
----------------------------------------
Attachment: MCOMPILER-108.zip
The attached demo project uses different source/target options in the parent and child modules and works just fine.
> Overwriting configurations does not take affect in a POM child project
> -----------------------------------------------------------------------
>
> Key: MCOMPILER-108
> URL: http://jira.codehaus.org/browse/MCOMPILER-108
> Project: Maven 2.x Compiler Plugin
> Issue Type: Bug
> Affects Versions: 2.0.2
> Reporter: Thiago Leão Moreira
> Attachments: MCOMPILER-108.zip
>
>
> If you define a parent project with this compiler configuration
> <plugin>
> <artifactId>maven-compiler-plugin</artifactId>
> <inherited>true</inherited>
> <configuration>
> <source>1.3</source>
> <target>1.3</target>
> </configuration>
> </plugin>
> And a child project with this
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.3</source>
> <target>1.1</target>
> <fork>true</fork>
> <compilerArgument>-g:none</compilerArgument>
> <compilerArguments>
> <bootclasspath>
> ${settings.localRepository}/org/microemu/midpapi20/2.0.3/midpapi20-2.0.3.jar
> </bootclasspath>
> </compilerArguments>
> </configuration>
> </plugin>
> the configurations in the child project will not take affect!
--
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
[jira] Commented: (MCOMPILER-108) Overwriting configurations does
not take affect in a POM child project
Posted by "Thiago Leão Moreira (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCOMPILER-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=194792#action_194792 ]
Thiago Leão Moreira commented on MCOMPILER-108:
-----------------------------------------------
Thank you Benjamin. I got it working correctly.
> Overwriting configurations does not take affect in a POM child project
> -----------------------------------------------------------------------
>
> Key: MCOMPILER-108
> URL: http://jira.codehaus.org/browse/MCOMPILER-108
> Project: Maven 2.x Compiler Plugin
> Issue Type: Bug
> Affects Versions: 2.0.2
> Reporter: Thiago Leão Moreira
> Assignee: Benjamin Bentmann
> Attachments: MCOMPILER-108-reproducible.zip, MCOMPILER-108.zip, MCOMPILER-108.zip
>
>
> If you define a parent project with this compiler configuration
> <plugin>
> <artifactId>maven-compiler-plugin</artifactId>
> <inherited>true</inherited>
> <configuration>
> <source>1.3</source>
> <target>1.3</target>
> </configuration>
> </plugin>
> And a child project with this
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.3</source>
> <target>1.1</target>
> <fork>true</fork>
> <compilerArgument>-g:none</compilerArgument>
> <compilerArguments>
> <bootclasspath>
> ${settings.localRepository}/org/microemu/midpapi20/2.0.3/midpapi20-2.0.3.jar
> </bootclasspath>
> </compilerArguments>
> </configuration>
> </plugin>
> the configurations in the child project will not take affect!
--
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
[jira] Updated: (MCOMPILER-108) Overwriting configurations does not
take affect in a POM child project
Posted by "Thiago Leão Moreira (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCOMPILER-108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thiago Leão Moreira updated MCOMPILER-108:
------------------------------------------
Attachment: MCOMPILER-108-reproducible.zip
> Overwriting configurations does not take affect in a POM child project
> -----------------------------------------------------------------------
>
> Key: MCOMPILER-108
> URL: http://jira.codehaus.org/browse/MCOMPILER-108
> Project: Maven 2.x Compiler Plugin
> Issue Type: Bug
> Affects Versions: 2.0.2
> Reporter: Thiago Leão Moreira
> Assignee: Benjamin Bentmann
> Attachments: MCOMPILER-108-reproducible.zip, MCOMPILER-108.zip
>
>
> If you define a parent project with this compiler configuration
> <plugin>
> <artifactId>maven-compiler-plugin</artifactId>
> <inherited>true</inherited>
> <configuration>
> <source>1.3</source>
> <target>1.3</target>
> </configuration>
> </plugin>
> And a child project with this
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.3</source>
> <target>1.1</target>
> <fork>true</fork>
> <compilerArgument>-g:none</compilerArgument>
> <compilerArguments>
> <bootclasspath>
> ${settings.localRepository}/org/microemu/midpapi20/2.0.3/midpapi20-2.0.3.jar
> </bootclasspath>
> </compilerArguments>
> </configuration>
> </plugin>
> the configurations in the child project will not take affect!
--
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
[jira] Closed: (MCOMPILER-108) Overwriting configurations does not
take affect in a POM child project
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCOMPILER-108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed MCOMPILER-108.
---------------------------------------
Resolution: Not A Bug
> Overwriting configurations does not take affect in a POM child project
> -----------------------------------------------------------------------
>
> Key: MCOMPILER-108
> URL: http://jira.codehaus.org/browse/MCOMPILER-108
> Project: Maven 2.x Compiler Plugin
> Issue Type: Bug
> Affects Versions: 2.0.2
> Reporter: Thiago Leão Moreira
> Assignee: Benjamin Bentmann
> Attachments: MCOMPILER-108-reproducible.zip, MCOMPILER-108.zip, MCOMPILER-108.zip
>
>
> If you define a parent project with this compiler configuration
> <plugin>
> <artifactId>maven-compiler-plugin</artifactId>
> <inherited>true</inherited>
> <configuration>
> <source>1.3</source>
> <target>1.3</target>
> </configuration>
> </plugin>
> And a child project with this
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.3</source>
> <target>1.1</target>
> <fork>true</fork>
> <compilerArgument>-g:none</compilerArgument>
> <compilerArguments>
> <bootclasspath>
> ${settings.localRepository}/org/microemu/midpapi20/2.0.3/midpapi20-2.0.3.jar
> </bootclasspath>
> </compilerArguments>
> </configuration>
> </plugin>
> the configurations in the child project will not take affect!
--
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
[jira] Reopened: (MCOMPILER-108) Overwriting configurations does
not take affect in a POM child project
Posted by "Thiago Leão Moreira (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCOMPILER-108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thiago Leão Moreira reopened MCOMPILER-108:
-------------------------------------------
Hi Benjamin,
I'm reopening the issue because I built a reproducible project.
> Overwriting configurations does not take affect in a POM child project
> -----------------------------------------------------------------------
>
> Key: MCOMPILER-108
> URL: http://jira.codehaus.org/browse/MCOMPILER-108
> Project: Maven 2.x Compiler Plugin
> Issue Type: Bug
> Affects Versions: 2.0.2
> Reporter: Thiago Leão Moreira
> Assignee: Benjamin Bentmann
> Attachments: MCOMPILER-108.zip
>
>
> If you define a parent project with this compiler configuration
> <plugin>
> <artifactId>maven-compiler-plugin</artifactId>
> <inherited>true</inherited>
> <configuration>
> <source>1.3</source>
> <target>1.3</target>
> </configuration>
> </plugin>
> And a child project with this
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.3</source>
> <target>1.1</target>
> <fork>true</fork>
> <compilerArgument>-g:none</compilerArgument>
> <compilerArguments>
> <bootclasspath>
> ${settings.localRepository}/org/microemu/midpapi20/2.0.3/midpapi20-2.0.3.jar
> </bootclasspath>
> </compilerArguments>
> </configuration>
> </plugin>
> the configurations in the child project will not take affect!
--
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
[jira] Closed: (MCOMPILER-108) Overwriting configurations does not
take affect in a POM child project
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCOMPILER-108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed MCOMPILER-108.
---------------------------------------
Resolution: Cannot Reproduce
Assignee: Benjamin Bentmann
Feel free to reopen when you can provide a reproducible test project that exhibits the issue.
> Overwriting configurations does not take affect in a POM child project
> -----------------------------------------------------------------------
>
> Key: MCOMPILER-108
> URL: http://jira.codehaus.org/browse/MCOMPILER-108
> Project: Maven 2.x Compiler Plugin
> Issue Type: Bug
> Affects Versions: 2.0.2
> Reporter: Thiago Leão Moreira
> Assignee: Benjamin Bentmann
> Attachments: MCOMPILER-108.zip
>
>
> If you define a parent project with this compiler configuration
> <plugin>
> <artifactId>maven-compiler-plugin</artifactId>
> <inherited>true</inherited>
> <configuration>
> <source>1.3</source>
> <target>1.3</target>
> </configuration>
> </plugin>
> And a child project with this
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.3</source>
> <target>1.1</target>
> <fork>true</fork>
> <compilerArgument>-g:none</compilerArgument>
> <compilerArguments>
> <bootclasspath>
> ${settings.localRepository}/org/microemu/midpapi20/2.0.3/midpapi20-2.0.3.jar
> </bootclasspath>
> </compilerArguments>
> </configuration>
> </plugin>
> the configurations in the child project will not take affect!
--
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