Skip to content

Commit

Permalink
Revert "#821 include archives in jar for distribution - fix"
Browse files Browse the repository at this point in the history
This reverts commit ad593e5.

Signed-off-by: Nigel Jones <nigel.l.jones+git@gmail.com>
  • Loading branch information
planetf1 committed Oct 29, 2019
1 parent e954274 commit ec0aec4
Showing 1 changed file with 12 additions and 33 deletions.
45 changes: 12 additions & 33 deletions open-metadata-distribution/open-metadata-assemblies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@

<build>
<plugins>
<!-- This runs the assembly code to build our distribution archives
Run in an earlier phase than normal (prepare package) so it
gets done before the build of the jar - which will contain the .gz -->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
Expand Down Expand Up @@ -57,28 +54,6 @@
<skip>false</skip>
</configuration>
</plugin>
<!-- override the default files included in source archive
we do not want the .gz files we build to appear -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
<configuration>
<excludes>
<exclude>*.gz</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
<!-- run the jar archiving to build our distribution module
for maven repo -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand All @@ -89,17 +64,21 @@
<goals>
<goal>jar</goal>
</goals>
<configuration>
<!-- this isn't a real jar - we want an archive from other output files -->
<classesDirectory>target</classesDirectory>
<forceCreation>true</forceCreation>
<includes>
<include>*.gz</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<filtering>false</filtering>
<directory>target</directory>
<includes>
<include>*.gz</include>
</includes>
</resource>
</resources>
</build>
</project>

0 comments on commit ec0aec4

Please sign in to comment.