From 2c8f0351b182092c2fdb6b8d26c796a088448196 Mon Sep 17 00:00:00 2001 From: Gordon Dickens Date: Tue, 19 Feb 2013 10:00:14 -0500 Subject: [PATCH] Updated Project configuration for best practices --- pom.xml | 1225 +++++++++++++++++++------ src/main/resources/logback-access.xml | 26 + src/main/resources/logback.xml | 26 + 3 files changed, 972 insertions(+), 305 deletions(-) create mode 100644 src/main/resources/logback-access.xml create mode 100644 src/main/resources/logback.xml diff --git a/pom.xml b/pom.xml index 803ccc6e2..e3dafdc3f 100644 --- a/pom.xml +++ b/pom.xml @@ -1,318 +1,933 @@ - 4.0.0 - org.springframework.samples - spring-petclinic - petclinic - war - 1.0.0-SNAPSHOT - - 3.2.1.RELEASE - 1.7.0 - 1.2.17 - 4.1.4.Final - 1.7.1 - 4.2.0.Final - 2.0 - 1.1.0.RELEASE - 4.10 - - + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + 4.0.0 + org.springframework.samples + spring-petclinic + 1.0.0-SNAPSHOT - - - org.springframework - spring-context - ${spring.version} - - - - org.apache.commons - commons-logging - - - - - org.springframework - spring-context-support - ${spring.version} - - - org.springframework - spring-orm - ${spring.version} - - - org.springframework - spring-oxm - ${spring.version} - - - org.springframework - spring-webmvc - ${spring.version} - - - - - org.springframework - spring-web - ${spring.version} - + petclinic + war - - - org.springframework - spring-jdbc - ${spring.version} - + + 2.7.7 + 3.3.1 + 1.7.1 + 1.8.3 + 1.2 + 1.7 + 3.2.1 + 1.4 + 2.1 + 3.2 + 1.1 + 1.2.2 + 2.4 + 2.6 + 3.1 + 3.1 + 1.6 + 2.6.3 + 1.3 + 1.0.1.Final + 4.3.0.Final + 4.1.9.Final + 2.2.9 + 3.1.0.CR1 + 3.17.1-GA + 1.6 + 2.2.7 + 2.2 + 2.2.7-b53 + 3.1.2.GA + 2.0.2 + 1.3 + 1.1.1 + 2.1 + 2.2 + 1.2 + 1.1 + 4.11 + 1.0.9 + 1.2.17 + 2.4 + 2.5 + 3.0 + 2.6 + 2.7 + 2.9 + 1.2 + 2.1.1 + 2.4 + 2.4 + 8.1.9.v20130131 + 1.0.0 + 3.2 + 2.6 + 2.4 + 2.6 + 3.2 + 2.2.1 + 2.13 + 2.4 + [2.2.1,3.1.0) + 2.3 + 5.1.22 + 1.0 + 2.5 + 1.7.2 + 1.3.0.RELEASE + 3.2.1.RELEASE + 1.0.0.GA + 2.3.0 + 1.9.2 + 1.9.0 + - - - org.slf4j - jcl-over-slf4j - ${slf4j.version} - runtime - - - - org.slf4j - slf4j-api - ${slf4j.version} - runtime - - - - org.slf4j - slf4j-log4j12 - ${slf4j.version} - runtime - - - - log4j - log4j - ${log4j.version} - runtime - - - - commons-dbcp - commons-dbcp - 1.4 - runtime - + + + + org.springframework + spring-context + + + org.springframework + spring-context-support + + + org.springframework + spring-orm + + + org.springframework + spring-oxm + + + org.springframework + spring-webmvc + + + + org.springframework + spring-web + + + + org.springframework + spring-jdbc + + + + org.slf4j + jcl-over-slf4j + + + org.slf4j + jul-to-slf4j + + + ch.qos.logback + logback-classic + - - org.hsqldb - hsqldb - 2.2.8 - runtime - - - - - - - org.aspectj - aspectjrt - ${aspectj.version} - - - - org.aspectj - aspectjweaver - ${aspectj.version} - + + + commons-dbcp + commons-dbcp + + + org.hsqldb + hsqldb + + + + + + + + org.hibernate + hibernate-entitymanager + + + org.hibernate + hibernate-validator + + + + org.springframework.data + spring-data-jpa + + + + javax.servlet + servlet-api + + + javax.servlet + jstl + + + + org.webjars + bootstrap + + + org.webjars + jquery-ui + + + + rome + rome + + + org.jdom + jdom + + + + com.sun.xml.bind + jaxb-impl + + + + junit + junit + + + org.springframework + spring-test + + + javax.transaction + jta + + + joda-time + joda-time + + + org.jadira.usertype + usertype.core + + + joda-time + joda-time-jsptags + + + joda-time + joda-time-hibernate + + + + + org.hamcrest + hamcrest-library + + - + + + + + org.apache.maven.plugins + maven-compiler-plugin + ${maven-compiler-plugin.version} + + true + ${java.version} + ${java.version} + true + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + + **/*Tests.java + + + + + org.apache.maven.plugins + maven-war-plugin + ${maven-war-plugin.version} + + petclinic + + + + org.apache.maven.plugins + maven-eclipse-plugin + ${maven-eclipse-plugin.version} + + true + true + 2.0 + + **/*.* + + + + + org.apache.maven.plugins + maven-dependency-plugin + ${maven-dependency-plugin.version} + + + install + install + + sources + + + + + + org.apache.maven.plugins + maven-deploy-plugin + ${maven-deploy-plugin.version} + + + org.apache.maven.plugins + maven-install-plugin + ${maven-install-plugin.version} + + + org.apache.maven.plugins + maven-release-plugin + ${maven-release-plugin.version} + + + org.apache.maven.plugins + maven-assembly-plugin + ${maven-assembly-plugin.version} + + + jar-with-dependencies + + + + + org.apache.maven.plugins + maven-clean-plugin + ${maven-clean-plugin.version} + + + + ${project.basedir} + + target + surefire* + + false + + + + + + org.mortbay.jetty + jetty-maven-plugin + ${maven-jetty-plugin.version} + + + /${project.name} + + + 9966 + shutterdown + + ./src/main/resources/logback-access.xml + + + + logback.configurationFile + ./src/main/resources/logback.xml + + + com.sun.management.jmxremote + true + + + com.sun.management.jmxremote.port + 8050 + + + com.sun.management.jmxremote.ssl + false + + + com.sun.management.jmxremote.authenticate + false + + + + + + org.slf4j + jcl-over-slf4j + ${slf4j.version} + runtime + + + org.slf4j + slf4j-api + ${slf4j.version} + runtime + + + org.slf4j + jul-to-slf4j + ${slf4j.version} + runtime + + + ch.qos.logback + logback-classic + ${logback.version} + runtime + + + ch.qos.logback + logback-access + ${logback.version} + runtime + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + ${maven-enforcer-plugin.version} + + + enforce-banned-dependencies + + enforce + + + + + + + + + true + + javassist + commons-logging + aspectj + asm + hsqldb + log4j + org.slf4j:1.5* + org.slf4j:1.6* + org.springframework:spring:2.* + org.springframework:spring*:3.0.* + org.springframework:spring*:3.1.* + + + + ${maven.version.range} + + + ${java.version} + + + true + + + + + + - - - - org.hibernate - hibernate-entitymanager - ${hibernate.version} - - - - org.hibernate - hibernate-validator - ${hibernate.validator.version} - - - - - - org.springframework.data - spring-data-jpa - ${spring.data.jpa} - - - - javax.servlet - servlet-api - 2.5 - provided - - - javax.servlet - jstl - 1.2 - - - - - org.webjars - bootstrap - 2.2.1 - - - - org.webjars - jquery-ui - 1.9.1 - - - - - rome - rome - 1.0 - - - - org.jdom - jdom - 2.0.2 - runtime - - - - - com.sun.xml.bind - jaxb-impl - 2.2.6 - provided - + + + + + org.aspectj + aspectjrt + ${aspectj.version} + + + org.aspectj + aspectjweaver + ${aspectj.version} + + + org.aspectj + aspectjtools + ${aspectj.version} + + + + org.hibernate + hibernate-core + ${hibernate.version} + + + asm + asm-attrs + + + + + org.hibernate + hibernate-entitymanager + ${hibernate.version} + + + org.hibernate.javax.persistence + hibernate-jpa-2.0-api + ${hibernate-jpa.version} + + + org.hibernate + hibernate-validator + ${hibernate-validator.version} + + + org.hibernate + hibernate-ehcache + ${hibernate.version} + + + org.jadira.usertype + usertype.core + ${jadira-usertype-core.version} + - - - junit - junit - ${junit.version} - test - - - org.springframework - spring-test - ${spring.version} - test - - - javax.transaction - jta - 1.1 - test - - - - net.sf.ehcache - ehcache - 2.5.2 - pom - - - - joda-time - joda-time - ${joda.version} - - - - org.jadira.usertype - usertype.core - 3.0.0.CR1 - + + net.sf.ehcache + ehcache-core + ${ehcache.version} + + + commons-logging + commons-logging + + + + + javax.validation + validation-api + ${validation.version} + + + javax.servlet + jstl + ${jstl.version} + + + javax.servlet + servlet-api + ${servlet.version} + provided + + + javax.xml.bind + jaxb-api + ${jaxb-api.version} + + + com.sun.xml.bind + jaxb-impl + ${jaxb-impl.version} + + + + org.springframework.data + spring-data-jpa + ${spring-data-jpa.version} + + + org.springframework + spring-test + ${spring-framework.version} + test + + + org.springframework + spring-beans + ${spring-framework.version} + + + org.springframework + spring-context + ${spring-framework.version} + + + org.springframework + spring-jdbc + ${spring-framework.version} + + + org.springframework + spring-aop + ${spring-framework.version} + + + org.springframework + spring-web + ${spring-framework.version} + + + org.springframework + spring-webmvc + ${spring-framework.version} + + + org.springframework + spring-expression + ${spring-framework.version} + + + + + + + + org.springframework + spring-tx + ${spring-framework.version} + + + org.springframework + spring-core + ${spring-framework.version} + + + commons-logging + commons-logging + + + + + org.springframework + spring-aspects + ${spring-framework.version} + + + org.springframework + spring-context-support + ${spring-framework.version} + + + quartz + quartz + + + + + org.springframework + spring-orm + ${spring-framework.version} + + + org.springframework + spring-oxm + ${spring-framework.version} + + + commons-lang + commons-lang + + + + + org.springframework + spring-jms + ${spring-framework.version} + + + javax.transaction + jta + ${jta.version} + + + org.javassist + javassist + ${javassist.version} + + + + + commons-dbcp + commons-dbcp + ${commons-dbcp.version} + + + commons-io + commons-io + ${commons-io.version} + + + commons-lang + commons-lang + ${commons-lang2.version} + + + org.apache.commons + commons-lang3 + ${commons-lang3.version} + + + org.apache.commons + commons-exec + ${commons-exec.version} + + + commons-collections + commons-collections + ${commons-collections.version} + + + commons-codec + commons-codec + ${commons-codec.version} + + + commons-net + commons-net + ${commons-net.version} + + + commons-fileupload + commons-fileupload + ${commons-fileupload.version} + + + org.apache.commons + commons-digester3 + ${commons-digester3.version} + + + commons-logging + commons-logging + + + + + commons-digester + commons-digester + ${commons-digester2.version} + + + commons-logging + commons-logging + + + + + commons-beanutils + commons-beanutils + ${commons-beanutils.version} + + + commons-logging + commons-logging + + + + + commons-pool + commons-pool + ${commons-pool.version} + + + commons-cli + commons-cli + ${commons-cli.version} + + + junit + junit + + + + + + org.slf4j + jcl-over-slf4j + ${slf4j.version} + + + org.slf4j + slf4j-api + ${slf4j.version} + + + org.slf4j + jul-to-slf4j + ${slf4j.version} + + + ch.qos.logback + logback-classic + ${logback.version} + + + ch.qos.logback + logback-core + ${logback.version} + + + ch.qos.logback + logback-access + ${logback.version} + + + rome + rome + ${rome.version} + + + + + + + + + + + + + joda-time + joda-time + ${jodatime.version} + + + joda-time + joda-time-hibernate + ${jodatime-hibernate.version} + + + joda-time + joda-time-jsptags + ${jodatime-jsptags.version} + + + antlr + antlr + ${antlr.version} + + + asm + asm + ${asm.version} + + + + + + mysql + mysql-connector-java + ${mysql.version} + + + org.hsqldb + hsqldb + ${hsqldb.version} + + + javax.servlet.jsp.jstl + jstl-api + ${jstl.version} + + + org.glassfish.web + jstl-impl + ${jstl.version} + + + javax.el + el-api + ${javax-el.version} + provided + + + javax.servlet.jsp + jsp-api + ${jsp.version} + provided + + + + org.webjars + bootstrap + ${webjars-bootstrap.version} + + + org.webjars + jquery-ui + ${webjars-jquery-ui.version} + + + org.webjars + jquery + ${webjars-jquery.version} + + + org.jboss.logging + jboss-logging + ${jboss-logging.version} + + + org.jdom + jdom + ${jdom.version} + + + + junit + junit + ${junit.version} + test + + + org.hamcrest + hamcrest-library + ${hamcrest.version} + test + + + org.hamcrest + hamcrest-core + ${hamcrest.version} + test + + + - - joda-time - joda-time-jsptags - 1.1 - - - - - org.hamcrest - hamcrest-all - 1.3 - - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - - true - 1.6 - 1.6 - true - - - - org.apache.maven.plugins - maven-surefire-plugin - - - **/*Tests.java - - - - - org.apache.maven.plugins - maven-war-plugin - - petclinic - - - - org.apache.maven.plugins - maven-eclipse-plugin - 2.8 - - true - true - 2.0 - - **/*.* - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - install - install - - sources - - - - - - \ No newline at end of file diff --git a/src/main/resources/logback-access.xml b/src/main/resources/logback-access.xml new file mode 100644 index 000000000..c3f77ffae --- /dev/null +++ b/src/main/resources/logback-access.xml @@ -0,0 +1,26 @@ + + + + + + ${user.dir}/logs/petclinic-access.log + + ${user.dir}/logs/petclinic-access.%d{yyyy-MM-dd}.log.zip + + + + combined + + + + + + %n%fullRequest%n%fullResponse%n + + + + + + + + diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml new file mode 100644 index 000000000..1db083f84 --- /dev/null +++ b/src/main/resources/logback.xml @@ -0,0 +1,26 @@ + + + + + true + + + + + + + + %-5level %logger{0} - %msg%n + + + + + + + + + + + + +