thanks a lot for ur replies ... i moved my resources to webapp from
resources and it works ..  i'll try the webapp archetype also ...

On 1/13/06, Greg Case <[EMAIL PROTECTED]> wrote:
>
> What the others said is correct.  So you would want to place your WEB-INF
> folder in src/main/webapp/WEB-INF not src/main/resources/WEB-INF.
>
> As Napolean said earlier, try the web app archetype, which you can get by
> running (single line):
>
> mvn archetype:create
>     -DgroupId=com.mycompany.app -DartifactId=my-webapp
>     -DarchetypeArtifactId=maven-archetype-webapp
>
> More info at http://maven.apache.org/guides/getting-started/index.html
>
> Regards,
>
> Greg Case
>
>
> On 1/12/06, Edwin Punzalan <[EMAIL PROTECTED]> wrote:
> >
> > In cases of web projects, src/main/resources are copied into
> > web-inf/classes
> >
> > Edwin Punzalan wrote:
> >
> > >
> > > If your packaging is war, files from src/main/webapp are copied into
> > > your war archive root. Please use this.
> > >
> > > src/main/resources are always copied into target/classes.
> > >
> > >
> > >
> > > Karthik V wrote:
> > >
> > >> I have a war project in m2 and want to copy some resource files to
> > >> target.
> > >> In my src/main/resources folder, I have some files, along with a
> > web-inf
> > >> folder containing some more files. But maven always seems to copy it
> to
> > >> target/web-inf/classes and not target. How do I change this behavior?
> > >>
> > >> I tried adding something like
> > >>    <resources>
> > >>        <directory>${basedir}/src/main/resources</directory>
> > >>        <targetPath>target</targetPath>
> > >>      </resource>
> > >>    </resources>
> > >>
> > >>
> > >> but it didnt help... the above copied the files to
> > >> target/web-inf/classes/target.
> > >>
> > >>
> > >>
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>

Reply via email to