Skip to content

Commit 2550539

Browse files
committed
added shade plugin to properly include service descriptions
1 parent 06164cd commit 2550539

File tree

1 file changed

+15
-8
lines changed
  • modules/swagger-codegen-distribution

1 file changed

+15
-8
lines changed

modules/swagger-codegen-distribution/pom.xml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,21 @@
4141
</plugin>
4242
<plugin>
4343
<groupId>org.apache.maven.plugins</groupId>
44-
<artifactId>maven-jar-plugin</artifactId>
45-
<configuration>
46-
<archive>
47-
<manifest>
48-
<mainClass>com.wordnik.swagger.codegen.Codegen</mainClass>
49-
</manifest>
50-
</archive>
51-
</configuration>
44+
<artifactId>maven-shade-plugin</artifactId>
45+
<version>2.3</version>
46+
<executions>
47+
<execution>
48+
<phase>package</phase>
49+
<goals>
50+
<goal>shade</goal>
51+
</goals>
52+
<configuration>
53+
<transformers>
54+
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
55+
</transformers>
56+
</configuration>
57+
</execution>
58+
</executions>
5259
</plugin>
5360
</plugins>
5461
</build>

0 commit comments

Comments
 (0)