NIFI-3434 - Introduce the ability to skip the packaging of zip and tar.gz archive

via maven profile (i.e. -Pdir-only)
This commit is contained in:
Andre F de Miranda 2017-02-03 22:51:55 +11:00 committed by Pierre Villard
parent 9a638cc865
commit 68c2d7862f
2 changed files with 64 additions and 5 deletions

View File

@ -703,6 +703,70 @@ language governing permissions and limitations under the License. -->
</dependency> </dependency>
</dependencies> </dependencies>
</profile> </profile>
<profile>
<id>generateArchives</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<finalName>nifi-${project.version}</finalName>
<attach>false</attach>
</configuration>
<executions>
<execution>
<id>make shared resource</id>
<goals>
<goal>single</goal>
</goals>
<phase>package</phase>
<configuration>
<formats>
<format>dir</format>
<format>zip</format>
<format>tar.gz</format>
</formats>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>dir-only</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<finalName>nifi-${project.version}</finalName>
<attach>false</attach>
</configuration>
<executions>
<execution>
<id>make shared resource</id>
<goals>
<goal>single</goal>
</goals>
<phase>package</phase>
<configuration>
<formats>
<format>dir</format>
</formats>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile> <profile>
<id>build-info-no-git</id> <id>build-info-no-git</id>
<activation> <activation>

View File

@ -15,11 +15,6 @@
--> -->
<assembly> <assembly>
<id>bin</id> <id>bin</id>
<formats>
<format>dir</format>
<format>zip</format>
<format>tar.gz</format>
</formats>
<includeBaseDirectory>true</includeBaseDirectory> <includeBaseDirectory>true</includeBaseDirectory>
<baseDirectory>nifi-${project.version}</baseDirectory> <baseDirectory>nifi-${project.version}</baseDirectory>