You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@apache.org> on 2019/04/09 16:43:00 UTC

[jira] [Updated] (MASSEMBLY-908) Assembly Plugin Not Running For Package Goal

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

Robert Scholte updated MASSEMBLY-908:
-------------------------------------
    Description: 
When running deploy goal or package goal assembly plugin doesn't gets executed.

But when I run assembly:single goal then assembly plugin gets executed.

I am using below plugin in pom.xml which is pointing to assembly file (package.xml)
{code:xml}
<plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-assembly-plugin</artifactId>
 <version>3.1.0</version><!--$NO-MVN-MAN-VER$ -->
 <configuration>
 <descriptors>
 <descriptor>src/assembly/package.xml</descriptor>
 </descriptors>
 <appendAssemblyId>true</appendAssemblyId>
 </configuration>
 <executions>
 <execution>
 <phase>package</phase> <!-- bind to the packaging phase -->
 <goals>
 <goal>single</goal>
 </goals>
 </execution>
 </executions>
 </plugin>
{code}
 
{code:xml|title=Assembly file : package.xml}
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
 <id>distribution</id>
 <formats>
 <format>tar.gz</format>
 </formats>
 <includeBaseDirectory>false</includeBaseDirectory>
 <fileSets>
 <fileSet>
 <directory>src/UnixScripts</directory>
 <outputDirectory>scripts</outputDirectory>
 <includes>
 <include>*.sh</include>
 <include>sql/*.sql</include>
 </includes>
 <fileMode>0755</fileMode>
 </fileSet>
 <fileSet>
 <directory>src/main/resources/config</directory>
 <outputDirectory>config</outputDirectory>
 <includes>
 <include>*.properties</include>
 <include>*.xml</include>
 </includes>
 </fileSet>
 <fileSet>
 <directory>target</directory>
 <outputDirectory>lib</outputDirectory>
 <includes>
 <include>*.jar</include>
 </includes>
 </fileSet>
 <fileSet>
 <directory>target</directory>
 <outputDirectory>current</outputDirectory>
 <includes>
 <include>*-${version}.jar</include>
 </includes>
 </fileSet>
 </fileSets>
</assembly>
{code}

  was:
When running deploy goal or package goal assembly plugin doesn't gets executed.

But when I run assembly:single goal then assembly plugin gets executed.

I am using below plugin in pom.xml which is pointing to assembly file (package.xml)

<plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-assembly-plugin</artifactId>
 <version>3.1.0</version><!--$NO-MVN-MAN-VER$ -->
 <configuration>
 <descriptors>
 <descriptor>src/assembly/package.xml</descriptor>
 </descriptors>
 <appendAssemblyId>true</appendAssemblyId>
 </configuration>
 <executions>
 <execution>
 <phase>package</phase> <!-- bind to the packaging phase -->
 <goals>
 <goal>single</goal>
 </goals>
 </execution>
 </executions>
 </plugin>

 

Assembly file : package.xml

<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
 <id>distribution</id>
 <formats>
 <format>tar.gz</format>
 </formats>
 <includeBaseDirectory>false</includeBaseDirectory>
 <fileSets>
 <fileSet>
 <directory>src/UnixScripts</directory>
 <outputDirectory>scripts</outputDirectory>
 <includes>
 <include>*.sh</include>
 <include>sql/*.sql</include>
 </includes>
 <fileMode>0755</fileMode>
 </fileSet>
 <fileSet>
 <directory>src/main/resources/config</directory>
 <outputDirectory>config</outputDirectory>
 <includes>
 <include>*.properties</include>
 <include>*.xml</include>
 </includes>
 </fileSet>
 <fileSet>
 <directory>target</directory>
 <outputDirectory>lib</outputDirectory>
 <includes>
 <include>*.jar</include>
 </includes>
 </fileSet>
 <fileSet>
 <directory>target</directory>
 <outputDirectory>current</outputDirectory>
 <includes>
 <include>*-${version}.jar</include>
 </includes>
 </fileSet>
 </fileSets>
</assembly>


> Assembly Plugin Not Running For Package Goal
> --------------------------------------------
>
>                 Key: MASSEMBLY-908
>                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-908
>             Project: Maven Assembly Plugin
>          Issue Type: Bug
>         Environment: Local Machine, CI Tool as well.
>            Reporter: Rajnish Solanki
>            Priority: Major
>
> When running deploy goal or package goal assembly plugin doesn't gets executed.
> But when I run assembly:single goal then assembly plugin gets executed.
> I am using below plugin in pom.xml which is pointing to assembly file (package.xml)
> {code:xml}
> <plugin>
>  <groupId>org.apache.maven.plugins</groupId>
>  <artifactId>maven-assembly-plugin</artifactId>
>  <version>3.1.0</version><!--$NO-MVN-MAN-VER$ -->
>  <configuration>
>  <descriptors>
>  <descriptor>src/assembly/package.xml</descriptor>
>  </descriptors>
>  <appendAssemblyId>true</appendAssemblyId>
>  </configuration>
>  <executions>
>  <execution>
>  <phase>package</phase> <!-- bind to the packaging phase -->
>  <goals>
>  <goal>single</goal>
>  </goals>
>  </execution>
>  </executions>
>  </plugin>
> {code}
>  
> {code:xml|title=Assembly file : package.xml}
> <assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>  xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
>  <id>distribution</id>
>  <formats>
>  <format>tar.gz</format>
>  </formats>
>  <includeBaseDirectory>false</includeBaseDirectory>
>  <fileSets>
>  <fileSet>
>  <directory>src/UnixScripts</directory>
>  <outputDirectory>scripts</outputDirectory>
>  <includes>
>  <include>*.sh</include>
>  <include>sql/*.sql</include>
>  </includes>
>  <fileMode>0755</fileMode>
>  </fileSet>
>  <fileSet>
>  <directory>src/main/resources/config</directory>
>  <outputDirectory>config</outputDirectory>
>  <includes>
>  <include>*.properties</include>
>  <include>*.xml</include>
>  </includes>
>  </fileSet>
>  <fileSet>
>  <directory>target</directory>
>  <outputDirectory>lib</outputDirectory>
>  <includes>
>  <include>*.jar</include>
>  </includes>
>  </fileSet>
>  <fileSet>
>  <directory>target</directory>
>  <outputDirectory>current</outputDirectory>
>  <includes>
>  <include>*-${version}.jar</include>
>  </includes>
>  </fileSet>
>  </fileSets>
> </assembly>
> {code}



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