Commits

Micha Kops committed deed5d3

Project cleanup, jaxb artifacts removed.

Comments (0)

Files changed (3)

 	</prerequisites>
 
 	<properties>
-		<endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
 		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-		<derby.version>10.9.1.0</derby.version>
-		<flyway.version>2.0.3</flyway.version>
 	</properties>
 
 	<dependencyManagement>
 			<artifactId>eclipselink</artifactId>
 			<version>2.5.0</version>
 		</dependency>
-		<dependency>
-			<groupId>org.glassfish</groupId>
-			<artifactId>maven-embedded-glassfish-plugin</artifactId>
-			<version>3.1.1</version>
-			<type>maven-plugin</type>
-		</dependency>
 	</dependencies>
 
 	<repositories>
 	</repositories>
 
 	<build>
-		<defaultGoal>clean package org.glassfish:maven-embedded-glassfish-plugin:3.1.1:run</defaultGoal>
 		<plugins>
 			<plugin>
 				<groupId>org.apache.maven.plugins</groupId>
 				<configuration>
 					<source>1.7</source>
 					<target>1.7</target>
-					<compilerArguments>
-						<endorseddirs>${endorsed.dir}</endorseddirs>
-					</compilerArguments>
-				</configuration>
-			</plugin>
-			<plugin>
-				<groupId>org.apache.maven.plugins</groupId>
-				<artifactId>maven-war-plugin</artifactId>
-				<version>2.1.1</version>
-				<configuration>
-					<failOnMissingWebXml>false</failOnMissingWebXml>
-				</configuration>
-			</plugin>
-			<plugin>
-				<groupId>org.glassfish</groupId>
-				<artifactId>maven-embedded-glassfish-plugin</artifactId>
-				<version>3.1.1</version>
-				<configuration>
-					<goalPrefix>glassfish</goalPrefix>
-					<app>${project.build.directory}/${project.build.finalName}</app>
-					<port>8080</port>
-					<contextRoot>sample</contextRoot>
-					<name>${project.name}</name>
-					<autoDelete>true</autoDelete>
 				</configuration>
-				<dependencies>
-					<dependency>
-						<groupId>org.apache.derby</groupId>
-						<artifactId>derby</artifactId>
-						<version>${derby.version}</version>
-					</dependency>
-					<dependency>
-						<groupId>org.apache.derby</groupId>
-						<artifactId>derbyclient</artifactId>
-						<version>${derby.version}</version>
-					</dependency>
-				</dependencies>
 			</plugin>
 		</plugins>
 	</build>

src/main/java/com/hascode/tutorial/entity/Book.java

 import javax.persistence.Entity;
 import javax.persistence.GeneratedValue;
 import javax.persistence.Id;
-import javax.xml.bind.annotation.XmlRootElement;
 
 @Entity
-@XmlRootElement
 public class Book {
 	@Id
 	@GeneratedValue
 	public final void setTitle(final String title) {
 		this.title = title;
 	}
-
-	@Override
-	public String toString() {
-		return "Book [id=" + id + ", title=" + title + "]";
-	}
 }

src/main/webapp/WEB-INF/web.xml

-<?xml version="1.0" encoding="UTF-8"?>
-<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
-	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
-	<servlet>
-		<servlet-name>rest-servlet-spi</servlet-name>
-		<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
-		<load-on-startup>1</load-on-startup>
-	</servlet>
-	<servlet-mapping>
-		<servlet-name>rest-servlet-spi</servlet-name>
-		<url-pattern>/ws/*</url-pattern>
-	</servlet-mapping>
-</web-app>