Eureka, found a better solution to deploy the non shaded jar as default artifact!
This commit is contained in:
parent
a0080686ac
commit
74c06346d8
51
pom.xml
51
pom.xml
@ -106,7 +106,7 @@
|
|||||||
|
|
||||||
<build>
|
<build>
|
||||||
<defaultGoal>clean install</defaultGoal>
|
<defaultGoal>clean install</defaultGoal>
|
||||||
<finalName>${project.outputName}-${project.version}</finalName>
|
<finalName>${project.outputName}-${project.version}-noshade</finalName>
|
||||||
|
|
||||||
<resources>
|
<resources>
|
||||||
<resource>
|
<resource>
|
||||||
@ -197,6 +197,7 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<finalName>${project.outputName}-${project.version}</finalName>
|
||||||
<show>public</show>
|
<show>public</show>
|
||||||
<failOnError>false</failOnError>
|
<failOnError>false</failOnError>
|
||||||
</configuration>
|
</configuration>
|
||||||
@ -213,6 +214,9 @@
|
|||||||
</goals>
|
</goals>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<finalName>${project.outputName}-${project.version}</finalName>
|
||||||
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
@ -228,6 +232,8 @@
|
|||||||
</executions>
|
</executions>
|
||||||
<configuration>
|
<configuration>
|
||||||
<createDependencyReducedPom>false</createDependencyReducedPom>
|
<createDependencyReducedPom>false</createDependencyReducedPom>
|
||||||
|
<shadedArtifactAttached>true</shadedArtifactAttached>
|
||||||
|
<finalName>${project.outputName}-${project.version}</finalName>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Relocate all lib we use in order to fix class loading errors if we use different versions
|
Relocate all lib we use in order to fix class loading errors if we use different versions
|
||||||
@ -287,54 +293,11 @@
|
|||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-install-plugin</artifactId>
|
<artifactId>maven-install-plugin</artifactId>
|
||||||
<version>2.5.2</version>
|
<version>2.5.2</version>
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>default-install</id>
|
|
||||||
<phase>none</phase>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>install-custom</id>
|
|
||||||
<phase>install</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>install-file</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
<configuration>
|
|
||||||
<pomFile>pom.xml</pomFile>
|
|
||||||
<file>target/original-${project.build.finalName}.jar</file>
|
|
||||||
<javadoc>target/${project.build.finalName}-javadoc.jar</javadoc>
|
|
||||||
<sources>target/${project.build.finalName}-sources.jar</sources>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-deploy-plugin</artifactId>
|
<artifactId>maven-deploy-plugin</artifactId>
|
||||||
<version>2.8.2</version>
|
<version>2.8.2</version>
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>default-deploy</id>
|
|
||||||
<phase>none</phase>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>deploy-custom</id>
|
|
||||||
<phase>deploy</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>deploy-file</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
<configuration>
|
|
||||||
<!-- TODO: find a solution to detect release/snapshot -->
|
|
||||||
<repositoryId>${project.distributionManagement.snapshotRepository.id}</repositoryId>
|
|
||||||
<url>${project.distributionManagement.snapshotRepository.url}</url>
|
|
||||||
<pomFile>pom.xml</pomFile>
|
|
||||||
<file>target/original-${project.build.finalName}.jar</file>
|
|
||||||
<!-- Already included by the plugin
|
|
||||||
<javadoc>target/${project.build.finalName}-javadoc.jar</javadoc>
|
|
||||||
<sources>target/${project.build.finalName}-sources.jar</sources>
|
|
||||||
-->
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.eluder.coveralls</groupId>
|
<groupId>org.eluder.coveralls</groupId>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user