Hi,
hi, i'm very new to maven, i'm trying to create a servlet using maven & eclipse to deploy on the tomcat container. However when i tried to import mymaven project into eclipse, i got the following errors:unbound classpath variable unbound classpath container the project cannot be built until classpath errors are resolved. does anyone know what i may have done wrong?
The first message should come from your project's .classpath file that is using the variable M2_REPO for specifying the location of some jar files in your local Maven repository. Check if M2_REPO is defined in your Eclipse configuration (Preferences -> Java -> Build Path -> Classpath variables). If it is not listed there, you should add it by executing "mvn -Declipse.workspace=<path-to-workspace> eclipse:add-maven-repo" ([1]).
Perhaps this already solves your other problem. If not, you can try "mvn eclipse:clean eclise:eclipse" (see also [2]) to recreate the project configuration files for Eclipse.
[1] http://maven.apache.org/plugins/maven-eclipse-plugin/usage.html [2] http://maven.apache.org/plugins/maven-eclipse-plugin/ HTH Thorsten
PGP.sig
Description: Signierter Teil der Nachricht