Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
mpfz0r committed Dec 6, 2023
1 parent fe6f5b6 commit 94be896
Showing 1 changed file with 35 additions and 23 deletions.
58 changes: 35 additions & 23 deletions data-node/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -665,29 +665,6 @@
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>generate-data-node-artifact</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<attach>true</attach>
<appendAssemblyId>true</appendAssemblyId>
<descriptors>
<descriptor>src/main/assembly/datanode.xml</descriptor>
</descriptors>
<!-- to make it easier to collect assemblies, we put them into the _parent's_ build directory -->
<outputDirectory>${project.basedir}/../target/assembly</outputDirectory>
<finalName>datanode-${project.version}-${maven.build.timestamp}</finalName>
</configuration>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
Expand Down Expand Up @@ -725,6 +702,41 @@
</build>

<profiles>
<profile>
<id>generate-data-node-artifact</id>
<activation>
<property>
<name>!skip.package.assembly</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>generate-data-node-artifact</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<attach>true</attach>
<appendAssemblyId>true</appendAssemblyId>
<descriptors>
<descriptor>src/main/assembly/datanode.xml</descriptor>
</descriptors>
<!-- to make it easier to collect assemblies, we put them into the _parent's_ build directory -->
<outputDirectory>${project.basedir}/../target/assembly</outputDirectory>
<finalName>datanode-${project.version}-${maven.build.timestamp}</finalName>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>release</id>
<build>
Expand Down

0 comments on commit 94be896

Please sign in to comment.