Maven cannot find JDK and libraries using SVN download

Source: Internet
Author: User


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.