On Monday 06 April 2009, [email protected] wrote:
> Hello David,
>
> Please review the maven-jar-plugin, specifically the includes
> parameter to the jar goal.
>
> http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html#includes
>
> -jesse
>
> On Mon, Apr 6, 2009 at 9:47 AM, David Goodenough
>
> <[email protected]> wrote:
> > But will that not exclude it from the jar as well?  I tried it and it
> > seems to have that effect.  I want it excluded from the compilation but
> > included in the jar.

(newbie alert - sorry, should have flagged this before).

OK, I added:-

                        <plugin>
                                <artifactId>maven-jar-plugin</artifactId>
                                <configuration>
                                        <includes>
                                                
<include>target/classes/*</include>
                                                <include>resources/*</include>
                                                </includes>
                                        </configuration>
                                </plugin>

and it only puts the META-INF/maven bits into the jar.   The classes
are under target/classes, and there is a META-INF under resources.

What should I have done?

David

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to