[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [m2e-users] What is the Deployed Resources "directory" in m2e-wtp
|
The "Deployed Resource" pseudo directory lists the folders that will be deployed at the root of your application.
You generally have 2 directories visible under this node :
- src/main/webapp (or the folder defined as warsourcedirectory under your maven-war-plugin-configuration), which contains regular, SCM managed web resources
- target/m2e-wtp/web-resources which contains automatically generated resources, and is usually kept out of source control. By default it should contain META-INF/MANIFEST.MF as well as the META-INF/maven folder. target/m2e-wtp/web-resources is also used when web resource filtering is enabled. For instance, if you filter your web.xml sitting under src/main/webapp, the filtered version, that will be deployed on the server will stand under target/m2e-wtp/web-resources/WEB-INF/web.xml. The content of target/m2e-wtp/web-resources takes precendence over src/main/webapp when it comes to deployment.
The only reason I see why you'd have a cxf.xml file under web-resources/META-INF/cxf/ is it's automatically generated by a cxf plugin somewhere under target/ and this location is then declared, somehow, as a <resource> under <webResources> inside your maven-war-plugin configuration. If you could show me your pom.xml or point me at the archetype you used to create your app, I might be able to have a better understanding of your situation.
Regards,
Fred Bricon
PS : Here's a few links wrt to the latest developments of m2e-wtp :
2011/9/14 Steve Cohen
<scohen@xxxxxxxxxxxxxxx>
I create a webapp from an archtype using m2e and it gives me one of these pseudo-directories called "Deployed Resources". This is similar to the way Eclipse "source folders" are "mirrored" in the "real" directory structure under src/main/java etc.
But I began to wonder where this Deployed Resources directory is and I find that it is "really" under target!
That is
Deployed Resources/web-resources/META-INF/cxf/cxf.xml is REALLY
target/m2e-wtp/web-resources/META-INF/cxf/cxf.xml, etc.
So my question is where is the SOURCE directory for this file? Surely not under target? If I want to version control files such as this, where should I put them?
Can someone explain to me the thinking behind this confusing setup and how to work with it?
Thanks.
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users
--
"Have you tried turning it off and on again" - The IT Crowd