You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@codehaus.org> on 2013/05/12 18:00:53 UTC

[jira] (MSHADE-120) createSourceJar does not include sources from current module

     [ https://jira.codehaus.org/browse/MSHADE-120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte updated MSHADE-120:
----------------------------------

    Description: 
{quote}

In such case the best approach is to create an issue with a sample project
to reproduce the trouble .
And the best of the best attaching a patch which fix the issue :-)

--
Olivier
Le 25 mai 2012 17:40, "Saurabh Ajmera" <sa...@usc.edu> a écrit :

Hi,

Is there anyone using the shade plugin? are you facing this issue?

On May 22, 2012, at 11:06 AM, Saurabh Ajmera wrote:

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

{code: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>
{code}

Thank you,
Saurabh Ajmera.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org

{quote}

  was:
In such case the best approach is to create an issue with a sample project
to reproduce the trouble .
And the best of the best attaching a patch which fix the issue :-)

--
Olivier
Le 25 mai 2012 17:40, "Saurabh Ajmera" <sa...@usc.edu> a écrit :

Hi,

Is there anyone using the shade plugin? are you facing this issue?

On May 22, 2012, at 11:06 AM, Saurabh Ajmera wrote:

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org



    
> createSourceJar does not include sources from current module
> ------------------------------------------------------------
>
>                 Key: MSHADE-120
>                 URL: https://jira.codehaus.org/browse/MSHADE-120
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.6
>            Reporter: Saurabh Ajmera
>         Attachments: maven-shade-problem-solution.zip, maven-shade-problem.zip
>
>
> {quote}
> In such case the best approach is to create an issue with a sample project
> to reproduce the trouble .
> And the best of the best attaching a patch which fix the issue :-)
> --
> Olivier
> Le 25 mai 2012 17:40, "Saurabh Ajmera" <sa...@usc.edu> a écrit :
> Hi,
> Is there anyone using the shade plugin? are you facing this issue?
> On May 22, 2012, at 11:06 AM, Saurabh Ajmera wrote:
> 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
> {code: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>
> {code}
> Thank you,
> Saurabh Ajmera.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira