|Re: Problem using maven and wtp (resources and libraries are not handle correctly) [message #225933 is a reply to message #225925]
||Mon, 05 January 2009 18:30
| Eugene Kuleshov
Registered: July 2009
It is unclear from the original message if you are using m2eclipse.|
Anyways, if you want to give it a try, you can install m2eclipse (I
recommend using dev update site, as it have additional fixes for WTP).
You need to make sure to install WTP integration for Maven feature, then
you can import your Maven project into Eclipse using Import Maven
projects wizard. This way you'll get your web projects configured to
work with WTP. See some more details on the wiki:
David Carver wrote:
> This seems specific to the M2E plugin, so I've copied their newsgroup
> on this message as well.
> Jerome Blanchard wrote:
>> I've got a problem using WTP with a maven project. In fact I have
>> create a maven project and add a Dynamic Web Project facet.
>> Everything is working fine but I need to use maven resource directory
>> (src/main/resources). Configuration files present in this directory
>> (log4j.properties for example) are well copied in the target
>> directory and all my JUnit test are working. But when I publish this
>> application to a server, only the directory (src/main/webapp) content
>> and the classes compilation result of the directory (src/main/java)
>> are published. In fact, all resources present are not publish making
>> my application not working because of missing some configuration
>> files... I forgot that dependencies are working fine too...
>> In the other hand, the dependency managment doesn't work well too
>> because, in my case, the scope of a dependency is not take into
>> account when copying libraries to the deployement directory
>> (.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpweba pps/ <WebAppName>/WEB-INF/lib).
>> Even if a dependency is marked as scope compile it is copied.
>> Is anybody have an idea or an example of an application working fine
>> with maven and wtp ? I surely made a mistake in the initial project
>> creation or facet add...
>> Thanks a lot.
Powered by FUDForum
. Page generated in 0.02108 seconds