Re: jsp files in classes directory with maven?
Shash Chatterjee <[email protected]>
| Newsgroups | gmane.comp.java.keel.devel |
|---|---|
| Message-ID | <[email protected]> |
Adam,
Looking at project.xml, doesn't appear like it is the culprit. Have you
tried a "maven clean" to delete the target directory? If you have
src/webapp anywhere with JSPs in src/webapp/WEB-INF/classes, that might
be doing it. The other thought was to see if you could temporarily
remove src/jsp/struts/timewarp and after a maven clean those JSPs still
showed up, it'd prove that they are coming from somewhere else.
Shash
Adam Rossi wrote:
>Hello Keelers. I have learned how to use the new maven build system, but
>one thing in my new project is causing me some difficulties. For some
>reason, maven is packaging all of my jsp files under the WEB-INF/classes
>directory when I do a "maven war". I have attached my project.xml file,
>which I modeled after the project files for app-poll, app-hoj, etc., in
>CVS, which all have the same project.xml file structure, and all seem to
>work ok.
>
>The other projects that I am including as dependencies have their jsp
>files show up in the right place. My project's jsp files are located in
>the src/jsp/struts/timewarp/ subdirectory. Upon doing a "maven war", I
>get these files showing up in WEB-INF/classes/jsp/struts/timewarp,
>instead of in the root directory of the war.
>
>
>I have tried many different edits to the project.xml file. As you can
>see from the file, I have specified the relavant sections based on other
>projects file structure, adding these sections in the correct place:
>
> <properties>
> <keel.client>true</keel.client>
> </properties>
>
> <resource>
> <directory>${basedir}/src</directory>
> <targetpath>src</targetpath>
> <includes>
> <include>jsp/**</include>
> <include>xsl/**</include>
> <include>xml/**</include>
> </includes>
> </resource>
>
>I have tried changing that target path from "src" to "/", with no
>effect.
>
>Any ideas?
>
>Regards,
>
>Adam
>
>