If you have files that are getting overwritten by AppFuse, it's likely
because the files are newer in AppFuse. The overlay is
timestamp-based, so as long as your files are newer, you shouldn't
have any issues.  When you do, there's two ways to solve the problem:

1. Run a touch script like the one below (note: this probably won't
work on Windows):

touch src/main/webapp/*
touch src/main/webapp/WEB-INF/*
touch src/main/webapp/WEB-INF/pages/*

2. In pom.xml, modify the maven-war-plugins configuration so your
files aren't overwritten:

           <plugin>
               <artifactId>maven-war-plugin</artifactId>
               <version>2.0.2</version>
               <configuration>
                   <dependentWarExcludes>

**/hibernate.cfg.xml,**/sql-map-config.xml,**/web.xml,WEB-INF/classes/META-INF/**
                   </dependentWarExcludes>
               </configuration>
           </plugin>

HTH,

Matt

On 4/25/07, nmall <[EMAIL PROTECTED]> wrote:



This is true forsrc/main/webapp/WEB-INF/menu-config.xml as well. I changed
it - did a mvn clean -e jetty:run-war. I still didn't have the ones in
target/work/webapp/WEB-INF and
target/wat/work/appfuse-struts-2.0-m4/WEB-INF/  reflecting the changes.

Thanks for any pointers.


nmall wrote:
>
> Hi,
>
>  Couple of questions:
>
>  In the struts-basic project, the jsps are packaged and not present in the
> src directory. I pulled them in and put them in
> src/main/webapp/WEB-INF/pages directory. Is this right. Now when I do mvn
> -e compile or mvn -e jetty:run-war, it doesn't put them automatically in
> the target directories. What is the right place to do it. And would we
> have to do a complete mvn jetty:run-war to pick up the latest jsps.
>
>  Next question is a jsp question - pardon my ignorance. Where is the
> horizontal menu buttons ( containing Upload, Adminstration etc being
> defined in this jsp). Is it the glasslist line. What does glasslist do.
> Thanks so much for your help!
> I searched all of the struts documentation but could not find this in the
> tags.
>
>
> <%@ include file="/common/taglibs.jsp"%>
>
> <head>
>     <title><fmt:message key="mainMenu.title"/></title>
>     <content tag="heading"><fmt:message key="mainMenu.heading"/></content>
>     <meta name="menu" content="MainMenu"/>
> </head>
>
> <p><fmt:message key="mainMenu.message"/></p>
>
> <div class="separator"></div>
>
> <ul class="glassList">
>     <li>
>          <c:url value= "><fmt:message key="menu.user"/>
>     </li>
>     <li>
>          <c:url value= "><fmt:message key="menu.selectFile"/>
>     </li>
> </ul>
>
>

--
View this message in context: 
http://www.nabble.com/maven-and-jsps-tf3641389s2369.html#a10182405
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to