0

I just installed wicket plugin for eclipse and have set all the environment variables also. But when I run mvn -version in command prompt it showing correct version.

But in Eclipse when I import the package it is showing the error the import org.apache.wicket cannot be resolved.

Can anybody come up with solution or suggestion?

exexzian
  • 7,782
  • 6
  • 41
  • 52
ajay
  • 257
  • 1
  • 4
  • 9
  • How is maven and wicket related? Are you using maven as a build tool? If so how does your pom.xml look like - and have you installed some Maven plugin (like m2eclipse) for Eclipse? – Peter Svensson Jan 19 '13 at 19:04
  • Yes i installed m2e.If i want import wicket library then what i want to do....? – ajay Jan 19 '13 at 19:10
  • Are you opening your project as a MAVEN project in Eclipse? – Peter Svensson Jan 19 '13 at 19:12
  • No I'm opening as a JavaEE project. – ajay Jan 19 '13 at 19:17
  • Ok, does it get Maven dependencies and stuff? If not then you probably need to add some `wicket.jar`s to your project. If you're using maven you should add them to your `pom.xml`, for Eclipse JavaEE projects without Maven I think you need to add them manually. Also, how is the `maven -version` relevant to this question if you're not building and managing dependencies with Maven? – Peter Svensson Jan 19 '13 at 19:20

0 Answers0