Skip to content

Commit

Permalink
add exec:java and fat jar configs.
Browse files Browse the repository at this point in the history
  • Loading branch information
elcallio committed Jul 26, 2021
1 parent 909f7f6 commit b5b9776
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>com.scylladb.alternator</groupId>
<artifactId>kraken-dynamo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<packaging>pom</packaging>

<modules>
<module>alternator-load-balancing/java</module>
Expand Down
45 changes: 44 additions & 1 deletion syncer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
<exec.mainClass>com.scylladb.alternator.StreamsAdapterDemo2</exec.mainClass>
</properties>
<build>
<plugins>
Expand All @@ -32,6 +33,48 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.1.1</version>

<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<packageName>com.some.pkg</packageName>
<mainClass>${exec.mainClass}</mainClass>
</manifest>
</archive>
</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-jar-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>${exec.mainClass}</mainClass>
</manifest>
</archive>
</configuration>
</plugin>

</plugins>
</build>
<dependencyManagement>
Expand Down Expand Up @@ -72,7 +115,7 @@
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>dynamodb</artifactId>
<version>2.11.3</version><!--$NO-MVN-MAN-VER$-->
<version>2.11.3</version><!--$NO-MVN-MAN-VER$ -->
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
Expand Down

0 comments on commit b5b9776

Please sign in to comment.