Skip to content

how to: clone the source code

Diego Valerio Camarda edited this page Nov 8, 2015 · 4 revisions

and use it in eclipse STS

download eclipse STS

get your platform version at

https://spring.io/tools/sts/all

clone LodView

git clone https://github.com/dvcama/LodView

preparing the eclipse project

cd /path/To/The/Cloned/ProjectRoot/
mvn eclipse:eclipse

importing it into eclipse STS

select file -> import from the menu
into the form:

  • select root directory set: /path/To/The/Cloned/ProjectRoot/
  • Projects select "lodview"
  • check Copy project into workspace
  • and Finish

enabling project facets

  • right click on the project root: Spring tools / Add Spring Project Nature
  • right click on the project root: Properties / Project Facets / Convert to faceted form..., then set "Dynamic Web Module" and "Javascript"

fighting with eclipse natures

change file .classpath in the project directory (in your workspace)
<?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.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="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"><attributes><attribute name="maven.pomderived" value="true"/> </attributes> </classpathentry> <classpathentry kind="output" path="target/classes"/> </classpath>

and add to .project
<buildCommand> <name>org.eclipse.m2e.core.maven2Builder</name> <arguments> </arguments> </buildCommand>
and
<nature>org.eclipse.m2e.core.maven2Nature</nature>

well done!

it is done, now you can add the webapp to the Pivotal tc Server and try it on you machine