Re: jsp files in classes directory with maven?
Adam Rossi <[email protected]>
| Newsgroups | gmane.comp.java.keel.devel |
|---|---|
| Organization | PlatinumSolutions, Inc. |
| Message-ID | <4424898.1110669632962.SLOX.WebMail.wwwrun@oe.platinumsolutions.com> |
Shash,
I deleted the src/struts directory and contents, ran "maven clean", and
built the war again. The war came out with no jsp's in the
WEB-INF/classes, as expected. I ran a "maven clean" again, put the jsp's
back into the src/jsp/ directory, and the jsp's once again are getting
put in to WEB-INF/classes/struts/....
I have attached all of the prop files from my timewarp/ project
directory. I also removed the project.bak to make sure that was not
mucking anything up. Also, the projects that are included by reference,
like app-poll, have jsp's going in to the proper place in the war file.
This has my stymied. Any other ideas?
Regards,
Adam
On Sat, 2005-03-12 at 17:35, Shash Chatterjee wrote:
> 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
build.properties
(application/octet-stream, 95 B) - not displayed
keel.properties
(application/octet-stream, 206 B) - not displayed
project.xml
(text/xml, 17.8 KB)
<?xml version="1.0" encoding="UTF-8"?>
<project>
<!-- the version of maven's project object model -->
<pomVersion>3</pomVersion>
<!-- a unique name for this project -->
<id>timewarp</id>
<groupId>keel</groupId>
<!-- a short but descriptive name for the project -->
<name>Timewarp Application</name>
<!-- The version of the project under development, e.g.
1.1, 1.2, 2.0-SNAPSHOT -->
<currentVersion>1.0</currentVersion>
<!-- details about the organization that 'owns' the project -->
<organization>
<name>PlatinumSolutions, Inc.</name>
<url>http://www.platinumsolutions.com/</url>
<logo>http://maven.apache.org/images/jakarta-logo-blue.gif</logo>
</organization>
<!-- the year the project started -->
<inceptionYear>2004</inceptionYear>
<package>com.platinumsolutions.timewarp</package>
<logo>http://maven.apache.org/images/maven.jpg</logo>
<description>The timewarp application description goes here.</description>
<!-- a short description of what the project does -->
<shortDescription>How to use maven in different situations</shortDescription>
<!-- the project home page -->
<url>http://maven.apache.org/reference/plugins/examples/</url>
<issueTrackingUrl>http://nagoya.apache.org/scarab/servlet/scarab/</issueTrackingUrl>
<siteAddress>jakarta.apache.org</siteAddress>
<siteDirectory>/www/maven.apache.org/reference/plugins/examples/</siteDirectory>
<distributionDirectory>/www/maven.apache.org/builds/</distributionDirectory>
<!-- the version control repository and http url for online access
the connection element has the form:
scm:<system>:<system specific connection string> -->
<repository>
<connection>scm:cvs:pserver:[email protected]:/home/cvspublic:maven-plugins/examples</connection>
<url>http://cvs.apache.org/viewcvs/maven-plugins/examples/</url>
</repository>
<!-- any mailing lists for the project -->
<mailingLists/>
<!-- who the developers are for the project -->
<developers/>
<!-- jar files the project is dependent on -->
<dependencies>
<dependency>
<groupId>keel</groupId>
<artifactId>svc-domain-config</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>keel-core</artifactId>
<version>3.1</version>
<properties>
<conflict>Conflict keel/keel-core req v3.1 from svc-domain-config-1.1.pom and 3.0 from keel-container-3.0.pom</conflict>
</properties>
</dependency>
<dependency>
<groupId>avalon-framework</groupId>
<artifactId>avalon-framework</artifactId>
<version>4.1.5</version>
</dependency>
<dependency>
<groupId>excalibur-datasource</groupId>
<artifactId>excalibur-datasource</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>jdo</groupId>
<artifactId>jdo</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>oro</groupId>
<artifactId>oro</artifactId>
<version>2.0.8</version>
<properties>
<war.bundle>true</war.bundle>
</properties>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>keel-common</artifactId>
<version>2.0</version>
<properties>
<war.bundle>true</war.bundle>
<keel.server>true</keel.server>
</properties>
</dependency>
<dependency>
<groupId>servletapi</groupId>
<artifactId>servletapi</artifactId>
<version>2.3</version>
<type>jar</type>
<properties>
<uber.skip>true</uber.skip>
</properties>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.6.1</version>
<type>jar</type>
<properties>
<war.bundle>true</war.bundle>
</properties>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.0.4</version>
<type>jar</type>
<properties>
<war.bundle>true</war.bundle>
</properties>
</dependency>
<dependency>
<groupId>logkit</groupId>
<artifactId>logkit</artifactId>
<version>1.2.2</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>excalibur-logger</groupId>
<artifactId>excalibur-logger</artifactId>
<version>1.1</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xmlParserAPIs</artifactId>
<version>2.6.2</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.6.2</version>
<type>jar</type>
<properties>
<war.bundle>true</war.bundle>
<keel.server>true</keel.server>
</properties>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>keel-container</artifactId>
<version>3.1</version>
<properties>
<conflict>Conflict keel/keel-container req v3.1 from svc-domain-config-1.1.pom and 3.0 from app-poll-2.0.pom</conflict>
</properties>
</dependency>
<dependency>
<groupId>excalibur-configuration</groupId>
<artifactId>excalibur-configuration</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>excalibur-instrument</groupId>
<artifactId>excalibur-instrument</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>excalibur-sourceresolve</groupId>
<artifactId>excalibur-sourceresolve</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>excalibur-i18n</groupId>
<artifactId>excalibur-i18n</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
<version>2.6.0</version>
<properties>
<keel.server>true</keel.server>
</properties>
</dependency>
<dependency>
<groupId>excalibur-fortress</groupId>
<artifactId>excalibur-fortress-container-api</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>excalibur-fortress</groupId>
<artifactId>excalibur-fortress-container-impl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>excalibur-lifecycle</groupId>
<artifactId>excalibur-lifecycle-api</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>excalibur-lifecycle</groupId>
<artifactId>excalibur-lifecycle-impl</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>excalibur-instrument</groupId>
<artifactId>excalibur-instrument-http</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>excalibur-instrument</groupId>
<artifactId>excalibur-instrument-impl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>excalibur-instrument</groupId>
<artifactId>excalibur-instrument-spi</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>excalibur-thread</groupId>
<artifactId>excalibur-thread-api</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>excalibur-thread</groupId>
<artifactId>excalibur-thread-impl</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>excalibur-event</groupId>
<artifactId>excalibur-event-api</artifactId>
<version>1.0.4-dev</version>
</dependency>
<dependency>
<groupId>excalibur-event</groupId>
<artifactId>excalibur-event-impl</artifactId>
<version>1.0.4-dev</version>
</dependency>
<dependency>
<groupId>d-haven-mpool</groupId>
<artifactId>managed-pool</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>app-hoj</artifactId>
<version>1.0</version>
<properties>
<keel.client>true</keel.client>
</properties>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>svc-cache-excalibur</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>excalibur</groupId>
<artifactId>excalibur-cache</artifactId>
<version>1.0a</version>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>svc-crypto-base64</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>svc-crypto-des</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>svc-usergroup-persist</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>app-crud</artifactId>
<version>2.1</version>
<properties>
<keel.client>true</keel.client>
</properties>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>clnt-cli</artifactId>
<version>1.2</version>
<properties>
<war.bundle>true</war.bundle>
<keel.client>true</keel.client>
</properties>
</dependency>
<dependency>
<groupId>realityforge</groupId>
<artifactId>cli</artifactId>
<version>1.0</version>
<properties>
<war.bundle>true</war.bundle>
</properties>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>keel-server</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.0</version>
<properties>
<war.bundle>true</war.bundle>
<keel.server>true</keel.server>
</properties>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>keel-client</artifactId>
<version>2.2</version>
<properties>
<war.bundle>true</war.bundle>
</properties>
</dependency>
<dependency>
<groupId>concurrent</groupId>
<artifactId>concurrent</artifactId>
<version>1.3.1</version>
<type>jar</type>
<properties>
<war.bundle>true</war.bundle>
<keel.server>true</keel.server>
</properties>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>svc-event-defaultevent</artifactId>
<version>2.2</version>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>svc-filter-filters</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>svc-mail-javamail</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>mail</groupId>
<artifactId>mail</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>activation</groupId>
<artifactId>activation</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>clnt-struts</artifactId>
<version>3.01</version>
<properties>
<war.bundle>true</war.bundle>
<keel.client>true</keel.client>
</properties>
</dependency>
<dependency>
<groupId>struts</groupId>
<artifactId>struts</artifactId>
<version>1.2.4</version>
<type>jar</type>
<properties>
<war.bundle>true</war.bundle>
</properties>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.0</version>
<type>jar</type>
<properties>
<war.bundle>true</war.bundle>
</properties>
</dependency>
<dependency>
<groupId>commons-validator</groupId>
<artifactId>commons-validator</artifactId>
<version>1.1.3</version>
<type>jar</type>
<properties>
<war.bundle>true</war.bundle>
</properties>
</dependency>
<dependency>
<groupId>commons-digester</groupId>
<artifactId>commons-digester</artifactId>
<version>1.5</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>comm-direct</artifactId>
<version>1.1</version>
<properties>
<war.bundle>true</war.bundle>
<keel.client>true</keel.client>
<keel.server>true</keel.server>
</properties>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>app-register</artifactId>
<version>2.1</version>
<properties>
<keel.client>true</keel.client>
</properties>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>svc-httpunit</artifactId>
<version>2.01</version>
</dependency>
<dependency>
<groupId>tidy</groupId>
<artifactId>tidy</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>js</groupId>
<artifactId>js</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>app-util</artifactId>
<version>1.0</version>
<properties>
<keel.client>true</keel.client>
</properties>
</dependency>
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
<version>2.0.2</version>
<type>jar</type>
<properties>
<war.bundle>true</war.bundle>
</properties>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>svc-model-defaultmodel</artifactId>
<version>2.01</version>
</dependency>
<dependency>
<groupId>excalibur</groupId>
<artifactId>excalibur-pool-api</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>excalibur</groupId>
<artifactId>excalibur-pool-impl</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>excalibur</groupId>
<artifactId>excalibur-pool-instrumented</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>svc-password-jpassgen</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>jpassgen</groupId>
<artifactId>jpassgen</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>svc-authorization-config</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>svc-password-simple</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>svc-authentication-persist</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>svc-authorization-persist</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>excalibur-mpool</groupId>
<artifactId>excalibur-mpool</artifactId>
<version>1.0</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>app-navigate</artifactId>
<version>2.1</version>
<properties>
<keel.client>true</keel.client>
</properties>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>app-poll</artifactId>
<version>2.0</version>
<properties>
<keel.client>true</keel.client>
</properties>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>svc-persist-default</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>svc-persist-base</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>3.1.4-beta-bin</version>
</dependency>
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>7.4.1-jdbc3</version>
</dependency>
<dependency>
<groupId>hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>1.7.3.0</version>
</dependency>
<dependency>
<groupId>keel</groupId>
<artifactId>svc-authentication-config</artifactId>
<version>1.0.2</version>
</dependency>
</dependencies>
<!-- build information for the project -->
<build>
<sourceDirectory>${basedir}/src/java</sourceDirectory>
<unitTestSourceDirectory>${basedir}/src/test</unitTestSourceDirectory>
<resources>
<resource>
<directory>${basedir}</directory>
<targetpath>/</targetpath>
<includes>
<include>conf/**</include>
<include>README*</include>
<include>LICENSE*</include>
</includes>
</resource>
<resource>
<directory>${basedir}/src</directory>
<targetpath>src</targetpath>
<includes>
<include>jsp/**</include>
<include>xsl/**</include>
<include>xml/**</include>
</includes>
</resource>
<resource>
<directory>${basedir}/resources/server</directory>
<targetpath>/</targetpath>
<includes>
<include>**</include>
</includes>
</resource>
<resource>
<directory>${maven.build.dir}/test-classes</directory>
<targetpath>/</targetpath>
<includes>
<include>**</include>
</includes>
</resource>
</resources>
</build>
<properties>
<keel.client>true</keel.client>
</properties>
</project>