petclinic-uncached
Changes
.settings/org.eclipse.wst.common.component 20(+10 -10)
pom.xml 53(+30 -23)
src/main/resources/META-INF/aop.xml 0(+0 -0)
src/main/resources/META-INF/orm.xml 0(+0 -0)
src/main/webapp/WEB-INF/web.xml 6(+4 -2)
Details
.settings/org.eclipse.wst.common.component 20(+10 -10)
diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component
index 89d4f2a..429be37 100644
--- a/.settings/org.eclipse.wst.common.component
+++ b/.settings/org.eclipse.wst.common.component
@@ -1,10 +1,10 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project-modules id="moduleCoreId" project-version="1.5.0">
- <wb-module deploy-name="org.springframework.samples.petclinic">
- <wb-resource deploy-path="/" source-path="/src/main/webapp"/>
- <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
- <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
- <property name="java-output-path" value="target/classes"/>
- <property name="context-root" value="petclinic"/>
- </wb-module>
-</project-modules>
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+ <wb-module deploy-name="org.springframework.samples.petclinic">
+ <wb-resource deploy-path="/" source-path="/src/main/webapp"/>
+ <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
+ <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
+ <property name="java-output-path" value="target/classes"/>
+ <property name="context-root" value="petclinic"/>
+ </wb-module>
+</project-modules>
pom.xml 53(+30 -23)
diff --git a/pom.xml b/pom.xml
index e7da6cc..6bce6af 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,32 +28,30 @@
</dependency>
<dependency>
<groupId>org.springframework</groupId>
- <artifactId>org.springframework.orm</artifactId>
+ <artifactId>org.springframework.aspects</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
+ <groupId>org.aspectj</groupId>
+ <artifactId>com.springsource.org.aspectj.weaver</artifactId>
+ <version>1.6.5.RELEASE</version>
+ </dependency>
+ <dependency>
<groupId>org.springframework</groupId>
- <artifactId>org.springframework.oxm</artifactId>
+ <artifactId>org.springframework.orm</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
- <artifactId>org.springframework.web.servlet</artifactId>
+ <artifactId>org.springframework.oxm</artifactId>
<version>${spring.version}</version>
</dependency>
-
- <!-- AspectJ -->
<dependency>
<groupId>org.springframework</groupId>
- <artifactId>org.springframework.aspects</artifactId>
+ <artifactId>org.springframework.web.servlet</artifactId>
<version>${spring.version}</version>
</dependency>
- <dependency>
- <groupId>org.aspectj</groupId>
- <artifactId>com.springsource.org.aspectj.weaver</artifactId>
- <version>1.6.5.RELEASE</version>
- </dependency>
-
+
<!-- Logging -->
<dependency>
<groupId>org.slf4j</groupId>
@@ -131,13 +129,6 @@
<artifactId>com.springsource.org.apache.openjpa</artifactId>
<version>1.1.0</version>
<scope>runtime</scope>
- <exclusions>
- <!-- Exclude Commons Logging in favor of SLF4j (see 'Logging' Dependency Config below) -->
- <exclusion>
- <groupId>org.apache.commons.logging</groupId>
- <artifactId>com.springsource.org.apache.commons.logging</artifactId>
- </exclusion>
- </exclusions>
</dependency>
<!-- Servlet -->
@@ -208,22 +199,22 @@
<repositories>
<repository>
<id>com.springsource.repository.bundles.release</id>
- <name>EBR Spring Releases</name>
+ <name>SpringSource Enterprise Bundle Repository - SpringSource Releases</name>
<url>http://repository.springsource.com/maven/bundles/release</url>
</repository>
<repository>
<id>com.springsource.repository.bundles.external</id>
- <name>EBR External Releases</name>
+ <name>SpringSource Enterprise Bundle Repository - External Releases</name>
<url>http://repository.springsource.com/maven/bundles/external</url>
</repository>
<repository>
<id>com.springsource.repository.bundles.milestone</id>
- <name>EBR Spring Milestones</name>
+ <name>SpringSource Enterprise Bundle Repository - SpringSource Milestones</name>
<url>http://repository.springsource.com/maven/bundles/milestone</url>
</repository>
<repository>
<id>com.springsource.repository.bundles.snapshot</id>
- <name>EBR Spring Snapshots</name>
+ <name>SpringSource Enterprise Bundle Repository - Snapshot Releases</name>
<url>http://repository.springsource.com/maven/bundles/snapshot</url>
</repository>
</repositories>
@@ -239,6 +230,22 @@
<showWarnings>true</showWarnings>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <includes>
+ <include>**/*Tests.java</include>
+ </includes>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <configuration>
+ <warName>petclinic</warName>
+ </configuration>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
src/main/webapp/WEB-INF/web.xml 6(+4 -2)
diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml
index b4af822..4d7a09a 100644
--- a/src/main/webapp/WEB-INF/web.xml
+++ b/src/main/webapp/WEB-INF/web.xml
@@ -45,8 +45,10 @@
<!--
To use the JPA variant above, you will need to enable Spring load-time
- weaving in your server environment. See PetClinic's readme and/or
- Spring's JPA documentation for information on how to do this.
+ weaving in your server environment. Out of the box, Spring will try to
+ detect the running environment and use the appropriate weaver but if that
+ fails, one must enable one by hand or use the VM-wide weaver.
+ See PetClinic's readme and/or Spring's JPA documentation for more information.
-->
</context-param>
diff --git a/src/test/java/org/springframework/samples/petclinic/jpa/AbstractJpaClinicTests.java b/src/test/java/org/springframework/samples/petclinic/jpa/AbstractJpaClinicTests.java
index 251af81..d8adc91 100644
--- a/src/test/java/org/springframework/samples/petclinic/jpa/AbstractJpaClinicTests.java
+++ b/src/test/java/org/springframework/samples/petclinic/jpa/AbstractJpaClinicTests.java
@@ -195,5 +195,4 @@ public abstract class AbstractJpaClinicTests extends AbstractJpaTests {
p7 = this.clinic.loadPet(7);
assertEquals(found + 1, p7.getVisits().size());
}
-
-}
+}
\ No newline at end of file