[ 
https://issues.apache.org/jira/browse/MNG-6451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Prochazka updated MNG-6451:
----------------------------------
    Description: 
In the documentation of the plugin management element it says that the plugin 
management relates *only* to children, however maven behaves differently. The 
following pom creates also a jar with dependencies, even by documentation it 
should not be configured to do so.

The solution is to change a few words in the documentation.
{code:java}
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0";
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
    <modelVersion>4.0.0</modelVersion>

    <groupId>someproject</groupId>
    <artifactId>someartifact</artifactId>
    <version>1.0-SNAPSHOT</version>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <version>3.1.0</version>
                    <configuration>
                        <descriptorRefs>
                            <descriptorRef>jar-with-dependencies</descriptorRef>
                        </descriptorRefs>
                    </configuration>
                    <executions>
                        <execution>
                            <id>make-assembly</id> 
                            <phase>package</phase>
                            <goals>
                                <goal>single</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

</project>
{code}

  was:
In the documentation of the plugin management element it says that the plugin 
management relates *only* to children, however maven behaves differently. The 
following pom creates also a jar with dependencies, even by documentation it 
should not be configured to do so.

The solution is to change a few words in the documentation.
{code:java}
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0";
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
    <modelVersion>4.0.0</modelVersion>

    <groupId>someproject</groupId>
    <artifactId>someartifact</artifactId>
    <version>1.0-SNAPSHOT</version>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <version>3.1.0</version>
                    <configuration>
                        <descriptorRefs>
                            <descriptorRef>jar-with-dependencies</descriptorRef>
                        </descriptorRefs>
                    </configuration>
                    <executions>
                        <execution>
                            <id>make-assembly</id> <!-- this is used for 
inheritance merges -->
                            <phase>package</phase> <!-- bind to the packaging 
phase -->
                            <goals>
                                <goal>single</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

</project>
{code}


> Correct the documentation for the plugin management
> ---------------------------------------------------
>
>                 Key: MNG-6451
>                 URL: https://issues.apache.org/jira/browse/MNG-6451
>             Project: Maven
>          Issue Type: Bug
>          Components: Documentation:  General
>    Affects Versions: 3.5.3
>            Reporter: Martin Prochazka
>            Priority: Minor
>
> In the documentation of the plugin management element it says that the plugin 
> management relates *only* to children, however maven behaves differently. The 
> following pom creates also a jar with dependencies, even by documentation it 
> should not be configured to do so.
> The solution is to change a few words in the documentation.
> {code:java}
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0";
>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
> http://maven.apache.org/xsd/maven-4.0.0.xsd";>
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>someproject</groupId>
>     <artifactId>someartifact</artifactId>
>     <version>1.0-SNAPSHOT</version>
>     <build>
>         <pluginManagement>
>             <plugins>
>                 <plugin>
>                     <artifactId>maven-assembly-plugin</artifactId>
>                     <version>3.1.0</version>
>                     <configuration>
>                         <descriptorRefs>
>                             
> <descriptorRef>jar-with-dependencies</descriptorRef>
>                         </descriptorRefs>
>                     </configuration>
>                     <executions>
>                         <execution>
>                             <id>make-assembly</id> 
>                             <phase>package</phase>
>                             <goals>
>                                 <goal>single</goal>
>                             </goals>
>                         </execution>
>                     </executions>
>                 </plugin>
>             </plugins>
>         </pluginManagement>
>         <plugins>
>             <plugin>
>                 <artifactId>maven-assembly-plugin</artifactId>
>             </plugin>
>         </plugins>
>     </build>
> </project>
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to