maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wayne Fay <wayne...@gmail.com>
Subject Re: Include *.class and *.java files with shade plugin
Date Fri, 10 May 2013 01:37:53 GMT
Not certain, but this may work. If not, something along these lines
should do it.

PS- Why do you want the Java files?

>         <executions>
           <execution><id>dot-class</id>        <!--note the id field-->
>             <phase>package</phase>
>             <goals>
>               <goal>shade</goal>
>             </goals>
>             <configuration>
>               <includeSources>true</includeSources>
>               <filters>
>                 <filter>
>                   <artifact>com.mycorp.database:thedb</artifact>
>                   <includes>
<!-- *.java removed -->
>                     <include>**/*.class</include>
>                   </includes>
>                   <excludes>
>                     <exclude>META-INF/*</exclude>
>                   </excludes>
>                 </filter>
>               </filters>
>             </configuration>
>           </execution>

           <execution><id>dot-java</id>    <!-- a different id -->
>             <phase>package</phase>
>             <goals>
>               <goal>shade</goal>
>             </goals>
>             <configuration>
>               <includeSources>true</includeSources>
>               <filters>
>                 <filter>

<artifact>com.mycorp.database:thedb:sources</artifact> <!-- or
:source? -->
>                   <includes>
>                     <include>**/*.java</include>
<!-- removed *.class -->
>                   </includes>
>                   <excludes>
>                     <exclude>META-INF/*</exclude>
>                   </excludes>
>                 </filter>
>               </filters>
>             </configuration>
>           </execution>
>         </executions>

Wayne

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


Mime
View raw message