Browse files

Fixed to build & run w/ jetty (after starting hsqldb)

  • Loading branch information...
1 parent 38cb8cc commit f37bb69478b50863078dc945d1ec4c5a378ab438 Jakub Holy committed Nov 23, 2011
Showing with 42 additions and 3 deletions.
  1. +42 −3 snippets/spring-jpetstore-pom.xml
View
45 snippets/spring-jpetstore-pom.xml
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ JH: Fixed version of spring JPetStore XML to build and run via mvn jetty:run -> localhost:9999/<artifactId>
+ Origin: https://src.springframework.org/svn/spring-samples/jpetstore/trunk/ rev. 614, 11/2011
+-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
@@ -8,7 +12,7 @@
<packaging>war</packaging>
<version>1.0.0-SNAPSHOT</version>
<properties>
- <spring.version>3.0.0.BUILD-SNAPSHOT</spring.version>
+ <spring.version>3.0.0.RELEASE</spring.version>
<tiles.version>2.2.0</tiles.version>
<hsqldb.version>1.8.0.7</hsqldb.version>
<commons-fileupload.version>1.2.1</commons-fileupload.version>
@@ -29,6 +33,13 @@
<jsp.version>2.1</jsp.version>
</properties>
<dependencies>
+<!-- JH:Fix runtime failure -->
+<dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-simple</artifactId>
+ <version>1.5.8</version>
+</dependency>
+
<!-- Compile dependencies -->
<dependency>
<groupId>commons-fileupload</groupId>
@@ -177,11 +188,18 @@
<snapshots>
<updatePolicy>daily</updatePolicy>
</snapshots>
- </repository>
+ </repository>
+
+ <!--JH:-->
<repository>
+ <id>org.springsource.maven.release</id>
+ <name>SpringSource Maven Central-compatible Release Repository</name>
+ <url>http://maven.springframework.org/release</url>
+ </repository>
+ <!--repository>
<id>JBoss repository</id>
<url>http://repository.jboss.com/maven2</url>
- </repository>
+ </repository-->
<repository>
<id>com.springsource.repository.bundles.release</id>
@@ -216,6 +234,27 @@
<target>1.5</target>
</configuration>
</plugin>
+
+ <plugin>
+ <!--This plugin allows to run the example using
+ mvn jetty:run
+ Then go to
+ http://localhost:9999/<project name>
+ -->
+ <groupId>org.mortbay.jetty</groupId>
+ <!-- BEWARE: The plugin has been renamed to jetty-maven-plugin from v7 on -->
+ <artifactId>maven-jetty-plugin</artifactId>
+ <version>6.1.22</version>
+ <configuration>
+ <scanIntervalSeconds>10</scanIntervalSeconds>
+ <connectors>
+ <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
+ <port>9999</port>
+ </connector>
+ </connectors>
+ </configuration>
+ </plugin>
+
</plugins>
</build>
</project>

0 comments on commit f37bb69

Please sign in to comment.