[ 
http://jira.codehaus.org/browse/MPH-74?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=215928#action_215928
 ] 

Markku Saarela commented on MPH-74:
-----------------------------------

This produces different output in profiles element depending is plugin defined 
in sub module build plugins. If plugin is not defined as in sub2 then all 
configuration appears in profile plugin definition. If plugin is defined in 
build plugins as is sub1 module then inherited plugin configuration dissapper 
in profile plugin definition.

How ever i test this with Maven 3.0-alpha-7 when both submodule produces same 
output like Maven 2.2.1 version sub1 module produces (I can live with it :-) ). 

Sub 1 output:
            <plugin>
              <groupId>org.codehaus.mojo</groupId>
              <artifactId>sql-maven-plugin</artifactId>
              <executions>
                <execution>
                  <id>create-schema</id>
                  <phase>generate-test-sources</phase>
                  <goals>
                    <goal>execute</goal>
                  </goals>
                  <configuration>
                    
<url>jdbc:derby:C:\files\projects\apache-jira\MNG-2174\sub1\target/db/CFGDBTEST;user=CFGDE
V;create=true</url>
                    <srcFiles>
                      <srcFile>create.sql</srcFile>
                    </srcFiles>
                  </configuration>
                </execution>
              </executions>
            </plugin>

Sub 2 output:

           <plugin>
             <groupId>org.codehaus.mojo</groupId>
             <artifactId>sql-maven-plugin</artifactId>
             <version>1.4</version>
             <executions>
               <execution>
                 <id>create-schema</id>
                 <phase>generate-test-sources</phase>
                 <goals>
                   <goal>execute</goal>
                 </goals>
                 <configuration>
                   
<url>jdbc:derby:C:\files\projects\apache-jira\MNG-2174\sub2\target/db/CFGDBTEST;user=CFGDE
;create=true</url>
                   <srcFiles>
                     <srcFile>create.sql</srcFile>
                   </srcFiles>
                 </configuration>
               </execution>
             </executions>
             <dependencies>
               <dependency>
                 <groupId>org.apache.derby</groupId>
                 <artifactId>derby</artifactId>
                 <version>10.5.3.0_1</version>
               </dependency>
             </dependencies>
             <configuration>
               <driver>org.apache.derby.jdbc.EmbeddedDriver</driver>
               <autocommit>true</autocommit>
             </configuration>
           </plugin>


> effective-pom goal pluginManagement plugin configuration inheritance to child 
> pom profile plugin failed.
> --------------------------------------------------------------------------------------------------------
>
>                 Key: MPH-74
>                 URL: http://jira.codehaus.org/browse/MPH-74
>             Project: Maven 2.x Help Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Markku Saarela
>            Assignee: Brett Porter
>            Priority: Minor
>         Attachments: MNG-2174-2.zip, MNG-2174.zip
>
>
> Plugin configuration, version and dependencies defined in parent pom 
> pluginManagement element failed to inherit to child pom's plugin defined in a 
> profile. They are inherited correctly to child pom build element.

-- 
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

        

Reply via email to