|
<build>apache <plugins>maven <plugin>ui <groupId>org.apache.maven.plugins</groupId>spa <artifactId>maven-shade-plugin</artifactId>orm <version>1.7.1</version>xml <executions>element <execution>it <phase>package</phase>io <goals> <goal>shade</goal> </goals> </execution> </executions> <configuration> <shadedArtifactAttached>true</shadedArtifactAttached> <shadedClassifierName>shaded</shadedClassifierName> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> <resource>META-INF/spring.handlers</resource> </transformer> <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> <resource>META-INF/spring.schemas</resource> </transformer> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> <mainClass>com.xxx.main.Main</mainClass> </transformer> </transformers> </configuration> </plugin> </plugins> </build> |