Skip to content

Commit d905cb4

Browse files
committed
Bound creation of the assembly to the package phase
1 parent 7597a15 commit d905cb4

File tree

1 file changed

+24
-15
lines changed

1 file changed

+24
-15
lines changed

pom.xml

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -145,21 +145,30 @@
145145
<plugin>
146146
<artifactId>maven-assembly-plugin</artifactId>
147147
<version>2.2.1</version>
148-
<configuration>
149-
<descriptors>
150-
<descriptor>/src/main/assembly/assembly.xml</descriptor>
151-
</descriptors>
152-
<archive>
153-
<manifest>
154-
<mainClass>org.culturegraph.mf.Flux</mainClass>
155-
<addClasspath>true</addClasspath>
156-
<classpathPrefix>lib/</classpathPrefix>
157-
</manifest>
158-
<manifestEntries>
159-
<git-commit>${buildNumber}</git-commit>
160-
</manifestEntries>
161-
</archive>
162-
</configuration>
148+
<executions>
149+
<execution>
150+
<id>create-distribution-package</id>
151+
<phase>package</phase>
152+
<goals>
153+
<goal>single</goal>
154+
</goals>
155+
<configuration>
156+
<descriptors>
157+
<descriptor>/src/main/assembly/assembly.xml</descriptor>
158+
</descriptors>
159+
<archive>
160+
<manifest>
161+
<mainClass>org.culturegraph.mf.Flux</mainClass>
162+
<addClasspath>true</addClasspath>
163+
<classpathPrefix>lib/</classpathPrefix>
164+
</manifest>
165+
<manifestEntries>
166+
<git-commit>${buildNumber}</git-commit>
167+
</manifestEntries>
168+
</archive>
169+
</configuration>
170+
</execution>
171+
</executions>
163172
</plugin>
164173

165174
<plugin>

0 commit comments

Comments
 (0)