Skip to main content

[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

I finally figured out what the guy who wrote http://www.insaneprogramming.be/?p=140
was talking about.

You simply import these files from the classpath, they are already in the dependent jars, so no worries.

Unfortunately, I still can't get this thing to work using m2e or doing it as the author says, using the tomcat maven plugin, for different reasons.

Oh well.

"Creating a Web Service with Spring and CXF in Ten Minutes".

Sure, if you have your whole system already set up like I do.

:-(

On 09/14/2011 07:39 AM, Steve Cohen wrote:

Fred:

Thanks for this explanation!

I was only putting the cxf files there because I was following the lead
of the example I talked about in an earlier thread. They could just as
easily go somewhere else. Probably the author of that example was not
using maven.

Still, I needed to understand what m2e-wtp was doing, and this helps.


On 09/14/2011 03:30 AM, Fred Bricon wrote:
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 :

-
http://community.jboss.org/en/tools/blog/2011/05/03/m2eclipse-wtp-0120-new-noteworthy

-
http://community.jboss.org/en/tools/blog/2011/06/23/m2eclipse-wtp-0130-new-noteworthy

-
http://community.jboss.org/en/tools/blog/2011/08/01/m2eclipse-wtp-0131-back-to-the-m2e-marketplace




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<https://dev.eclipse.org/mailman/listinfo/m2e-users>







_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users

_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users





Back to the top