Hi,

I am using the maven shade plugin to produce a jar which includes contents of 
one dependency artifact plus the contents of my current maven module, such that 
the contents of my maven module override the files with the same name in the 
dependency jar.

The shade plugin generates the jar file correctly as needed. However, the 
source files from the current maven modules does not get included in the 
generated source jar. Am I doing something wrong?

Following is the extract from my pom.xml


   <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>${maven.shade.plugin.version}</version>
                <configuration>
                    <createSourcesJar>true</createSourcesJar>
                    <artifactSet>
                        <includes>
                            <include>
                                org.kuali.rice:rice-impl
                            </include>
                        </includes>
                    </artifactSet>
                </configuration>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>

Thank you,
Saurabh Ajmera.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to