Hello,

I know of "tests-jar" goal in maven-jar-plugin that would generate both
my-artifact.jar and my-artifact-tests.jar. But what if I want to exclude
some properties resources ONLY for the my-artifact-tests.jar? I tried the
following, but it exclude from both of the jars, which is not what I want.
Can anyone give me a tip on how to do this?

                        <plugin>
                                <artifactId>maven-jar-plugin</artifactId>
                                <version>2.4</version>
                                <executions>
                                        <execution>
                                                <goals>
                                                        <goal>test-jar</goal>
                                                </goals>
                                                <configuration>
                                                        <excludes>
                                                                
<exclude>**/*.properties</exclude>
                                                        </excludes>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>

Many thanks,
Zemian Deng

--
View this message in context: 
http://maven.40175.n5.nabble.com/How-do-I-exclude-resources-for-tests-jar-only-tp5644452p5644452.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