I've tried the server clean, the Project -> Clean ..., and restarting Eclipse (remove the project from the server, exit Eclipse, delete any leftover in the Eclipse work directory, restart Eclipse and run-on-server again) but none worked. It seems like the deployment process simply ignored /target (but then I wonder where it got the class files).
Thanks a lot, - Chengyu On 8/13/2011 10:39 AM, Fred Bricon wrote:
If you see the resources correctly filtered under target/classes and target/m2e-wtp/web-resources/ then m2e-wtp has done the job right. So there's probably an issue with the server adapter. Have you tried running the "clean" command on tomcat in the server view (assuming it's tomcat)? Have you tried restarting Eclipse? 2011/8/13 Chengyu Sun <[email protected] <mailto:[email protected]>> Hello, I'm using Eclipse 3.7, m2e 1.0.0.20110607-2117, and m2e-wtp 0.13.1.20110728-1800. I have a project with some Spring bean definition file at src/main/resources/META-INF/__spring-data.xml which looks like this: <bean id="dataSource" class="org.apache.commons.__dbcp.BasicDataSource" destroy-method="close"> <property name="url" value="${db.url}" /> <property name="username" value="${db.username}" /> <property name="password" value="${db.password}" /> <property name="initialSize" value="1" /> <property name="maxActive" value="20" /> </bean> In pom.xml I've set up resource filtering to put in the actual database connection info. When I tried "Run As -> Run on Server" in Eclipse, it didn't work. I noticed that the resource filtering did not happen when the project was deployed to Eclipse's work directory - .metadata\.plugins\org.__eclipse.wst.server.core\tmp0\__wtpwebapps\myproject; however, under ProjectDirectory/target/__classes the resource was filtered correctly. The same thing happened when filtering some web resources under WEB-INF with maven-war-plugin's webResources filtering - the filtering was done properly under target/m2e-wtp/web-resources/__WEB-INF but didn't happen under Eclipse's work directory. So my question is did I do something wrong or is this a bug? Thanks a lot, - Chengyu _________________________________________________ m2e-users mailing list [email protected] <mailto:[email protected]> https://dev.eclipse.org/__mailman/listinfo/m2e-users <https://dev.eclipse.org/mailman/listinfo/m2e-users> -- "Have you tried turning it off and on again" - The IT Crowd _______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users
