• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

m2eclipse + strust2 == not work

 
Stev Chen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hallo,

I m using m2eclipse. after i add Struts2 dependencies it not work. it strange because in jsp it recognise struts2 taglib but it not compile.

http://le-esp.fr/Video/J2EE/mavenTomcatStruts2.wmv

Thanks in advance,
Stev
 
Ankit Garg
Sheriff
Posts: 9528
32
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stev Chen wrote:after i add Struts2 dependencies it not work.

Stev please go through this page once then please explain your problem in detail (my office firewall blocked the video but I'm guessing its just a tutorial video)...
 
Fred Register
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all, make sure you have m2eclipse-wtp installed (http://m2eclipse.sonatype.org/sites/m2e-extras)

You need to select war packaging, when setting the maven configuration (or If your project is already created, change the packaging to war).
Eclipse WTP doesn't use the same defaults as Maven (or m2eclipse for that matter). You should configure warSourceDirectory in the maven-war-plugin, so it points to WebContent (http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html)

In any case you will need to right-click on your project, Maven > Update Project configuration.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic