Rename the runner jar to a standard jar
</execution>
</executions>
</plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <executions>
- <execution>
- <id>default</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <appendAssemblyId>false</appendAssemblyId>
- <attach>true</attach> <!-- we want attach & deploy these to Maven -->
- <descriptors>
- <descriptor>src/main/assembly/exportConfluent.xml</descriptor>
- </descriptors>
- <tarLongFileMode>${tar.long.file.mode}</tarLongFileMode>
- </configuration>
- </execution>
- </executions>
- </plugin>
<plugin>
<groupId>org.jboss.jandex</groupId>
</execution>
</executions>
</plugin>
- </plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>3.0.0</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <configuration>
+ <target>
+ <copy file="${project.build.directory}/${project.artifactId}-${project.version}-runner.jar"
+ tofile="${project.build.directory}/${project.artifactId}-${project.version}.jar" />
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>default</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <appendAssemblyId>false</appendAssemblyId>
+ <attach>true</attach> <!-- we want attach & deploy these to Maven -->
+ <descriptors>
+ <descriptor>src/main/assembly/exportConfluent.xml</descriptor>
+ </descriptors>
+ <tarLongFileMode>${tar.long.file.mode}</tarLongFileMode>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
</build>
</project>
