|
Re: Run on Server isn't copying entire web application [message #1129503 is a reply to message #1128265] |
Tue, 08 October 2013 13:54   |
Eclipse User |
|
|
|
On 10/7/2013 2:31 PM, Tim Astle wrote:
> Hi all,
>
> I am having a problem with the "run on server" feature in Eclipse WTP.
>
> Previously, I'd handle "deployment" by placing a context.xml file under
> the org.eclipse.wst.server.core/tmp0/conf/catalina/localhost/ and have
> the docBase point to the directory that contained the results of the
> "prepare-package" Maven build phase.
>
> I am aiming to have a more simple (common) work flow and I decided to
> try using the "run on server" feature. What I am seeing confuses me.
> The web application is copied into the
> org.eclipse.wst.server.core/tmp0/wtpwebapps directory. However it is
> missing two directories.
>
> I'm confused how two directories would be omitted? So while trying to
> narrow down the issue, I started to wonder how this all works. Does the
> "run on server" feature:
>
>
> Copy the web application from the build output directory?
> Copy the web application from the WAR?
>
>
> Both the build output directory and the WAR deploy to Tomcat correctly
> so I know the build is fine. I did notice that "run on server" copies
> over a META-INF/maven directory that would appear to only be available
> from the assembled WAR.
>
> Can someone provide any insight to help me out?
>
> Thanks in advance,
>
> Tim
>
> Environment:
>
>
> Java 7 u40
> Maven 3.1.0
> Tomcat 7.0.42
> Eclipse Kepler (eclipse-jee-kepler-R-win32-x86_64)
>
> M2E 1.4
> WTP 3.5
>
>
Under the project properties dialog, examine the Deployment Assembly
page. This is where WTP defines what to include in the web application
for the project. I'm not that familiar with the Maven support in
Eclipse, so I don't know how well these are supposed to stay in sync
automatically, if at all. It sounds like a couple of folders need to be
added in the Deployment Assembly page so they will be included.
Cheers,
Larry
|
|
|
Re: Run on Server isn't copying entire web application [message #1129546 is a reply to message #1129503] |
Tue, 08 October 2013 14:56  |
Eclipse User |
|
|
|
Thanks Larry! That is definitely a part that I was missing. If I add those directories, everything deploys.
Now I just need to figure out how those propagate from Maven to Eclipse. Probably m2e related. If anyone has any suggestions in regards to that, I'd be very thankful, else I might have to hit the m2e mailing lists.
|
|
|
Powered by
FUDForum. Page generated in 0.04526 seconds