Skip to content

Commit 78f70d8

Browse files
committed
Use Maven for builds.
1 parent 6a495a1 commit 78f70d8

File tree

4 files changed

+77
-7
lines changed

4 files changed

+77
-7
lines changed

.classpath

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry kind="src" path="src"/>
4-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.launching.macosx.MacOSXType/Java SE 6 (MacOS X Default)">
3+
<classpathentry kind="src" output="target/classes" path="src">
54
<attributes>
6-
<attribute name="owner.project.facets" value="java"/>
5+
<attribute name="optional" value="true"/>
6+
<attribute name="maven.pomderived" value="true"/>
77
</attributes>
88
</classpathentry>
99
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v6.0">
1010
<attributes>
1111
<attribute name="owner.project.facets" value="jst.web"/>
1212
</attributes>
1313
</classpathentry>
14-
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
15-
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
16-
<classpathentry kind="output" path="build/classes"/>
14+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
15+
<attributes>
16+
<attribute name="maven.pomderived" value="true"/>
17+
</attributes>
18+
</classpathentry>
19+
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
20+
<attributes>
21+
<attribute name="maven.pomderived" value="true"/>
22+
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
23+
</attributes>
24+
</classpathentry>
25+
<classpathentry kind="output" path="target/classes"/>
1726
</classpath>

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.settings
2-
build
2+
target
33
ldf-server.json

.project

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,14 @@
2525
<arguments>
2626
</arguments>
2727
</buildCommand>
28+
<buildCommand>
29+
<name>org.eclipse.m2e.core.maven2Builder</name>
30+
<arguments>
31+
</arguments>
32+
</buildCommand>
2833
</buildSpec>
2934
<natures>
35+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
3036
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
3137
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
3238
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>

pom.xml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>LDF-Server</groupId>
5+
<artifactId>LDF-Server</artifactId>
6+
<version>0.0.1-SNAPSHOT</version>
7+
<packaging>war</packaging>
8+
<repositories>
9+
<repository>
10+
<id>sonatype.oss.snapshots</id>
11+
<name>Sonatype OSS Snapshot Repository</name>
12+
<url>http://oss.sonatype.org/content/repositories/snapshots</url>
13+
<releases><enabled>false</enabled></releases>
14+
<snapshots><enabled>true</enabled></snapshots>
15+
</repository>
16+
</repositories>
17+
<dependencies>
18+
<dependency>
19+
<groupId>org.rdfhdt</groupId>
20+
<artifactId>hdt-jena</artifactId>
21+
<version>1.1-SNAPSHOT</version>
22+
</dependency>
23+
<dependency>
24+
<groupId>com.google.code.gson</groupId>
25+
<artifactId>gson</artifactId>
26+
<version>2.2.4</version>
27+
</dependency>
28+
<dependency>
29+
<groupId>javax.servlet</groupId>
30+
<artifactId>javax.servlet-api</artifactId>
31+
<version>3.0.1</version>
32+
</dependency>
33+
</dependencies>
34+
<build>
35+
<sourceDirectory>src</sourceDirectory>
36+
<plugins>
37+
<plugin>
38+
<artifactId>maven-compiler-plugin</artifactId>
39+
<version>3.1</version>
40+
<configuration>
41+
<source>1.7</source>
42+
<target>1.7</target>
43+
</configuration>
44+
</plugin>
45+
<plugin>
46+
<artifactId>maven-war-plugin</artifactId>
47+
<version>2.3</version>
48+
<configuration>
49+
<warSourceDirectory>WebContent</warSourceDirectory>
50+
<failOnMissingWebXml>false</failOnMissingWebXml>
51+
</configuration>
52+
</plugin>
53+
</plugins>
54+
</build>
55+
</project>

0 commit comments

Comments
 (0)