Skip to content

Commit

Permalink
Set distinct names for deployed matcher and tracker jar-with-dependen…
Browse files Browse the repository at this point in the history
…cies files
  • Loading branch information
jongiddy committed Aug 2, 2017
1 parent c7b55da commit d24493b
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 12 deletions.
18 changes: 6 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>com.bmwcarit.barefoot.matcher.ServerControl</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>barefoot-matcher</id>
Expand All @@ -34,7 +24,9 @@
<goal>single</goal>
</goals>
<configuration>
<finalName>${project.build.finalName}-matcher</finalName>
<descriptors>
<descriptor>src/assembly/matcher.xml</descriptor>
</descriptors>
<archive>
<manifest>
<mainClass>com.bmwcarit.barefoot.matcher.ServerControl</mainClass>
Expand All @@ -49,7 +41,9 @@
<goal>single</goal>
</goals>
<configuration>
<finalName>${project.build.finalName}-tracker</finalName>
<descriptors>
<descriptor>src/assembly/tracker.xml</descriptor>
</descriptors>
<archive>
<manifest>
<mainClass>com.bmwcarit.barefoot.tracker.TrackerControl</mainClass>
Expand Down
18 changes: 18 additions & 0 deletions src/assembly/matcher.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
<id>matcher-jar-with-dependencies</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
<outputDirectory>/</outputDirectory>
<outputFileNameMapping>${artifact.artifactId}-${artifact.version}-matcher.xml${dashClassifier?}.${artifact.extension}</outputFileNameMapping>
<useProjectArtifact>true</useProjectArtifact>
<unpack>true</unpack>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
</assembly>
18 changes: 18 additions & 0 deletions src/assembly/tracker.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
<id>tracker-jar-with-dependencies</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
<outputDirectory>/</outputDirectory>
<outputFileNameMapping>${artifact.artifactId}-${artifact.version}-tracker.xml${dashClassifier?}.${artifact.extension}</outputFileNameMapping>
<useProjectArtifact>true</useProjectArtifact>
<unpack>true</unpack>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
</assembly>

0 comments on commit d24493b

Please sign in to comment.