Always using the Eclipse plugin for maven and SVN I started using the company project a little blurry.
Start by using SVN to download the project. Just see the code file JDK code Dou no more. The code can't compile what's going on. Looking for a long time Open navigator found. Project does not have a. classpath file.
Some adjustments are made below.
after svn was built. Increase the . Classpath file. Modify the . Project file. - if the jar below maven is full. . Classpath
<?xml version= "1.0" encoding= "UTF-8"? ><classpath><classpathentry kind= "src" output= "target/classes" path= "Src/main/java" ><attributes><attribute name= "optional " value=" true "/><attribute name=" maven.pomderived " value=" true "/></attributes> </classpathentry><classpathentry excluding= "* *" kind= "src" output= "target/classes" path= "Src/main/resources" ><attributes><attribute name= "maven.pomderived" value= " True "/></attributes></classpathentry><classpathentry kind=" src " output=" target/ Test-classes " path=" Src/test/java "><attributes><attribute name=" optional " value=" True "/><attribute name=" maven.pomderived " value=" true "/></attributes></ Classpathentry><classpathentry kind= "Con" path= "org.eclipse.jdt.launching.jre_container/ Org.eclipse.jdt.internal.debug.ui.launcher.Standardvmtype/j2se-1.5 "><attributes><attribute name=" maven.pomderived " value=" true "/> </attributes></classpathentry><classpathentry kind= "Con" path= "org.eclipse.m2e.MAVEN2 _classpath_container "><attributes><attribute name=" maven.pomderived " value=" true "/> <attribute name= "Org.eclipse.jst.component.dependency" value= "/web-inf/lib"/></attributes ></classpathentry><classpathentry kind= "Output" path= "Target/classes"/></classpath >
. Project
Under the label below add
<buildSpec><buildCommand><name>org.eclipse.wst.jsdt.core.javascriptValidator</name> <arguments></arguments></buildCommand><buildCommand><name> org.eclipse.jdt.core.javabuilder</name><arguments></arguments></buildcommand>< Buildcommand><name>org.eclipse.wst.common.project.facet.core.builder</name><arguments> </arguments></buildcommand><buildcommand><name>org.eclipse.m2e.core.maven2builder</ Name><arguments></arguments></buildcommand><buildcommand><name> Org.eclipse.wst.validation.validationbuilder</name><arguments></arguments></buildcommand ></buildSpec><natures><nature>org.eclipse.jem.workbench.JavaEMFNature</nature>< Nature>org.eclipse.wst.common.modulecore.modulecorenature</nature><nature> Org.eclipse.jdt.core.javanature</nature><nature>org.eclipse.m2e.core.maven2nature</nature><nature>org.eclipse.wst.common.project.facet.core.nature</nature>< Nature>org.eclipse.wst.jsdt.core.jsnature</nature></natures>
Switch to package Ex. Change the JDK and the compiled JDK. Then click on the project order one maven install it.
Maven cannot find JDK and libraries using SVN download