I hope this is relevant, but I put the xml below in my maven.xml file. Since I use bc4j and jdeveloper which generates a lot of non .class files that need to be in the deployed jar, I did not want to put an entry for every folder for every resource in the project.xml

<preGoal name="java:jar-resources">
<copy todir="${maven.build.dest}/">
<fileset dir="${maven.src.dir}/">
<exclude name="**/*.java"/>
</fileset>
</copy>
</preGoal>

Same applies to JUnit...same copy to ${maven.build.dir}/test-classes/ folder...

This is a sledge hammer to solve this problem..Hope this helps...Also, i use the beta7 of maven....

Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
List-Unsubscribe: <mailto:turbine-maven-user-unsubscribe@;jakarta.apache.org>
List-Subscribe: <mailto:turbine-maven-user-subscribe@;jakarta.apache.org>
List-Help: <mailto:turbine-maven-user-help@;jakarta.apache.org>
List-Post: <mailto:turbine-maven-user@;jakarta.apache.org>
List-Id: "Turbine Maven Users List" <turbine-maven-user.jakarta.apache.org>
Reply-To: "Turbine Maven Users List" <[EMAIL PROTECTED]>
Delivered-To: mailing list [EMAIL PROTECTED]
X-Antivirus: nagoya (v4218 created Aug 14 2002)
To: "Turbine Maven Users List" <[EMAIL PROTECTED]>
Subject: Re: war task - copy files
X-Mailer: Lotus Notes Release 6.0 September 26, 2002
From: [EMAIL PROTECTED]
Date: Fri, 1 Nov 2002 15:55:08 +1100
X-MIMETrack: Serialize by Router on gateway/Multitask Consulting/AU(Release 5.0.8 |June
18, 2001) at 11/01/2002 03:55:12 PM,
Serialize complete at 11/01/2002 03:55:12 PM
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N

"Warner Onstine" <[EMAIL PROTECTED]> wrote on 30/10/2002 01:01:02
PM:

> Any ideas on why this isn't working?

Can you post up the <resources> section of your project.xml? For example,
Maven uses this:
<resources>
<includes>
<include>*.xsd</include>
<include>*.dtd</include>
<include>*.mod</include>
<include>log4j.properties</include>
</includes>
</resources>

> -warner
>
> ----- Original Message -----
> From: "Warner Onstine" <[EMAIL PROTECTED]>
> To: "Turbine Maven Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, October 23, 2002 10:19 PM
> Subject: Re: war task - copy files
>
>
> > Ok,
> > Having some problems with the initial java task.
> >
> > I have specified both a <jarResources> and a <resources> element in my
POM
> > as the docs

<resources> is correct.

> >
>
(http://jakarta.apache.org/turbine/maven/reference/plugins/java/properties.h
> > tml - jar section and
This one would be right.
>
http://jakarta.apache.org/turbine/maven/reference/project-descriptor.html#bu
> > ild - jarResources section) are unclear and contradictory (one has to
be
> > right, which one? ).

This doc is out of date.

> > However, my files are not included in the resultant output classes
> directory
> > (as is my assumption by looking at the java plugin). I also duplicated
the
> > check and patternset build from the java plug-in and added it to the
war
> > plugin. Then I added a <j:if> check within the war goal's embedded
> <classes>
> > declaration and added the fileset that I copied from the java plugin.
> >
> > But, I think my issue lies with the java plugin not copying over the
> > resources at all.
> >
> > My directory structure looks like this:
> > src/
> > java
> > org
> > zoe
> > szapp....
> > templates
> > org
> > zoe
> > szapp....
> >
> > where templates houses my Tapestry html, page, application and jwc
files
> > relative to my classes structure. I have specified src/templates as
the
> > jarResources.basedir.
> >
--
dIon Gillard, Multitask Consulting
Work: http://www.multitask.com.au
Developers: http://adslgateway.multitask.com.au/developers



--
To unsubscribe, e-mail: <mailto:turbine-maven-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-maven-user-help@;jakarta.apache.org>

*******************************************
Steve Davis
Lawrence Livermore National Laboratory
[EMAIL PROTECTED]
925-423-7671
*******************************************
 


Reply via email to