I am creating an executable shaded JAR using Maven 2 using the following
plugin config:

            <plugin> 
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>1.5</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <transformers>                             
                                <transformer
                                       
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                                   
<mainClass>org.myAddress.test.MainTestClass</mainClass>
                                </transformer>
                            </transformers>
                            <filters>
                                <filter>
                                    <artifact>*:*</artifact>
                                    <excludes>
                                        <exclude>META-INF/*.SF</exclude>
                                        <exclude>META-INF/*.DSA</exclude>
                                        <exclude>META-INF/*.RSA</exclude>
                                    </excludes>
                                </filter>
                            </filters>
                           
<finalName>uber-${artifactId}-${version}</finalName>
                            <minimizeJar>true</minimizeJar>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

The problem is that after executing "mvn clean package", the uber-JAR does
not include anything under my test folder (./src/test/java/org/myAddress/*).

How can I configure the shade plugin to include those test files?

--
View this message in context: 
http://maven.40175.n5.nabble.com/Unable-to-package-tests-in-Maven-2-shaded-JAR-tp5078331p5078331.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to