Simply declare you POM with jar packaging. It tested it and it works.

Jeff MAURY


On 7/25/08, Julien CARSIQUE <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I need to build an artifact containing only resources, no Java source.
> These resources are in scr/main/... in a project with "pom" packaging type.
>
> I tried with maven-jar-plugin with no success, the built jar is empty of
> the wanted resources :
> [INFO] [jar:jar {execution: resources_common}]
> [WARNING] JAR will be empty - no content was marked for inclusion!
>
> How can I do this ?
>
> Here is the plugin definition :
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-jar-plugin</artifactId>
>       <executions>
>         <execution>
>           <id>resources_common</id>
>           <phase>package</phase>
>           <goals>
>             <goal>jar</goal>
>           </goals>
>           <configuration>
>             <classifier>resources_common</classifier>
>             <includes>
>               <include>**/resources_common</include>
>             </includes>
>           </configuration>
>         </execution>
>       </executions>
>     </plugin>
>
>
> --
> Julien CARSIQUE, Nuxeo (Paris, France)
> www.nuxeo.com - The Open Source ECM Platform - www.nuxeo.org
> Nuxeo ECM Stack - The Java EE, scalable, standard-based ECM Platform
> [EMAIL PROTECTED] | Tel: +33 1 40 33 79 87 / +33 6 09 06 38 03
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.lastfm.fr/listen/user/jeffmaury/personal

Reply via email to