Never mind, I should have put the <transformer> elements inside the
<transformers> element..
Cheers, Eric
On 12/3/2014 10:28 AM, Eric Kolotyluk wrote:
Here is part of my POM
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>allinone</shadedClassifierName>
<artifactSet>
<includes>
<include>*:*</include>
</includes>
</artifactSet>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>application.conf</resource>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>reference.conf</resource>
</transformer>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<!--
<Main-Class>platform3.AccountService.ServiceKernel</Main-Class> -->
<Main-Class>akka.Main</Main-Class>
</manifestEntries>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
But when I look at application.conf and reference.conf in the JAR
file, there is nothing appended to them. Clearly the
AppendingTransformer is not working because I can see other
application.conf and reference.conf files in the included jars.
The ManifestResourceTransformer is working correctly, so I am not sure
what is wrong with AppendingTransformer?
Does anyone have any idea on what the problem may be?
Cheers, Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]