diff options
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 56 |
1 files changed, 33 insertions, 23 deletions
@@ -247,29 +247,6 @@ </configuration> </plugin> <plugin> - <artifactId>maven-assembly-plugin</artifactId> - <version>3.1.0</version> - <configuration> - <descriptorRefs> - <descriptorRef>jar-with-dependencies</descriptorRef> - </descriptorRefs> - <archive> - <manifest> - <mainClass>org.traccar.Main</mainClass> - </manifest> - </archive> - </configuration> - <executions> - <execution> - <id>assemble-all</id> - <phase>package</phase> - <goals> - <goal>single</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> <artifactId>maven-enforcer-plugin</artifactId> <version>1.4.1</version> <executions> @@ -301,6 +278,39 @@ </plugin> </plugins> </build> + + <profiles> + <profile> + <id>jar-with-dependencies</id> + <build> + <plugins> + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <version>3.1.0</version> + <configuration> + <descriptorRefs> + <descriptorRef>jar-with-dependencies</descriptorRef> + </descriptorRefs> + <archive> + <manifest> + <mainClass>org.traccar.Main</mainClass> + </manifest> + </archive> + </configuration> + <executions> + <execution> + <id>assemble-all</id> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> <reporting> <plugins> |