Skip to content

Commit ac98b31

Browse files
committed
Add Maven Assembly plugin to pom.xml
1 parent 46b23f3 commit ac98b31

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

‎simple-factory/pom.xml‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<modelVersion>4.0.0</modelVersion>
3+
<parent>
4+
<groupId>com.iluwatar</groupId>
5+
<artifactId>java-design-patterns</artifactId>
6+
<version>1.24.0-SNAPSHOT</version>
7+
</parent>
8+
<artifactId>simple-factory</artifactId>
9+
<build>
10+
<plugins>
11+
<!-- Maven assembly plugin is invoked with default setting which we have
12+
in parent pom and specifying the class having main method -->
13+
<plugin>
14+
<groupId>org.apache.maven.plugins</groupId>
15+
<artifactId>maven-assembly-plugin</artifactId>
16+
<executions>
17+
<execution>
18+
<configuration>
19+
<archive>
20+
<manifest>
21+
<mainClass>com.iluwatar.abstractfactory.App</mainClass>
22+
</manifest>
23+
</archive>
24+
</configuration>
25+
</execution>
26+
</executions>
27+
</plugin>
28+
</plugins>
29+
</build>
30+
</project>

0 commit comments

Comments
 (0)