java - Maven - maven-remote-resources-plugin - resources end up in final build -


i using maven-remote-resources-plugin import resources jar:

<build>     <plugins>         <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-remote-resources-plugin</artifactid>             <version>1.5</version>             <configuration>                 <resourcebundles>                     <resourcebundle>x:y:1.0.0-snapshot</resourcebundle>                 </resourcebundles>             </configuration>             <executions>                 <execution>                     <phase>generate-sources</phase>                     <goals>                         <goal>process</goal>                     </goals>                 </execution>             </executions>         </plugin> 

as can see, done in generate-sources phase. need these resources generator, generates compilable sources in target/generated-sources. works great.

however, imported resources in final war/jar. not needed. need these resources during compilation, not @ runtime.

is there clever way exclude these imported resources in final build?

the process goal of maven remote resources plugin has properties attachtomain , attachtotest.

i guess setting them false exclude them packaging.


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -