Skip to content

Commit

Permalink
Update pom.xml
Browse files Browse the repository at this point in the history
Change the pom.xml for the JDBC demo project so that users can directly compile and package an executable jar with all the dependencies.
  • Loading branch information
johnnyhou327 authored Jul 15, 2019
1 parent 6d12c68 commit 00d8b9c
Showing 1 changed file with 39 additions and 3 deletions.
42 changes: 39 additions & 3 deletions tests/examples/JDBC/JDBCDemo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,45 @@
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugins</artifactId>
<version>30</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.0.0</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<archive>
<manifest>
<mainClass>TSDBSyncSample</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand All @@ -28,6 +66,4 @@
<version>1.0.0</version>
</dependency>
</dependencies>


</project>
</project>

0 comments on commit 00d8b9c

Please sign in to comment.