Skip to content

Commit

Permalink
Clean up project dependencies
Browse files Browse the repository at this point in the history
Removed unused or unneeded files associated with the build to simplify delpoyment and configuration.
Updated a few dependencies.
Added clarifications to remove build warnings.
Removed generation of unused glassfish .zip being built in packaging phase.
Deleted unneeded and unused properties and associated files

Change-Id: Iec2bde475845eb509007b517253527c33cdee0b8
Issue-Id: HEALTHEME-9
  • Loading branch information
cmccall committed Jan 8, 2013
1 parent 0c8c5e2 commit e07e1ca
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 12,792 deletions.
140 changes: 28 additions & 112 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -153,51 +153,26 @@
</exclusion>
</exclusions>
</dependency>
<!--<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>3.3.1.GA</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>3.4.0.GA</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>3.4.0.GA</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>3.0.0.ga</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-commons-annotations</artifactId>
<version>3.3.0.ga</version>
</dependency>-->
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>1.6</version>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time-jsptags</artifactId>
<version>1.0.2</version>
<version>1.6.2</version>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time-jsptags</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>opensymphony</groupId>
<artifactId>sitemesh</artifactId>
<version>2.4.2</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>2.0.4</version>
</dependency>
<!-- <dependency> -->
<!-- <groupId>org.springframework.security</groupId> -->
<!-- <artifactId>spring-security-core</artifactId> -->
<!-- <version>2.0.4</version> -->
<!-- </dependency> -->
<dependency>
<groupId>toplink.essentials</groupId>
<artifactId>toplink-essentials</artifactId>
Expand Down Expand Up @@ -225,16 +200,16 @@
<artifactId>slf4j-log4j12</artifactId>
<version>1.5.2</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>0.9.9</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>0.9.9</version>
</dependency>
<!-- <dependency> -->
<!-- <groupId>ch.qos.logback</groupId> -->
<!-- <artifactId>logback-core</artifactId> -->
<!-- <version>0.9.9</version> -->
<!-- </dependency> -->
<!-- <dependency> -->
<!-- <groupId>ch.qos.logback</groupId> -->
<!-- <artifactId>logback-classic</artifactId> -->
<!-- <version>0.9.9</version> -->
<!-- </dependency> -->

<!-- compile time -->
<dependency>
Expand Down Expand Up @@ -288,43 +263,7 @@
<projectname>HealtheMe PHR</projectname>

<jersey.version>1.1.3-ea</jersey.version>

<phr-host />
<phr-port />

<smtp-host>mail.krminc.com</smtp-host>
<from-email>healtheme@krminc.com</from-email>

<db-user>healtheme</db-user>
<db-passwd>*yourpassword*</db-passwd>
<db-host>localhost</db-host>
<db-port>3306</db-port>
<db-name>phr</db-name>
<db-dialect>mysql</db-dialect>
<jdbc-driver>com.mysql.jdbc.Driver</jdbc-driver>
<jdbc-url>jdbc:${db-dialect}://${db-host}:${db-port}:${db-name}</jdbc-url>

<!-- Derby Config
<db-user>admin</db-user>
<db-passwd>adminadmin</db-passwd>
<db-host>localhost</db-host>
<db-port>1527</db-port>
<db-name>phr</db-name>
<jdbc-driver>org.apache.derby.jdbc.ClientDriver</jdbc-driver>
<jdbc-url>jdbc:derby://${db-host}:${db-port}:${db-name}</jdbc-url>
-->

<!--
<hibernate.dialect>org.hibernate.dialect.Oracle10gDialect</hibernate.dialect>
<hibernate.hbm2ddl.auto>hibernate.hbm2ddl.auto</hibernate.hbm2ddl.auto>
-->
<!-- debug options -->
<!--
<hibernate.show_sql>true</hibernate.show_sql>
<hibernate.format_sql>true</hibernate.format_sql>
<hibernate.use_sql_comments>true</hibernate.use_sql_comments>
<hibernate.generate_statistics>false</hibernate.generate_statistics>
-->
<project.encoding>UTF-8</project.encoding>

<environment-specific-resources>resources-dev</environment-specific-resources><!-- resources-dev, resources-prod -->

Expand Down Expand Up @@ -356,44 +295,20 @@
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<inherited>true</inherited>
<configuration>
<source>1.5</source>
<target>1.5</target>
<encoding>MacRoman</encoding>
<encoding>${project.encoding}</encoding>
</configuration>
</plugin>
<!-- Run the application using "mvn glassfish:run"
<plugin>
<groupId>org.glassfish</groupId>
<artifactId>maven-glassfish-plugin</artifactId>
</plugin>
-->
<!--<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xslt-maven-plugin</artifactId>
<executions>
<execution>
<id>update-gf-deps</id>
<phase>package</phase> append to the packaging phase.
<goals>
<goal>transform</goal> goals == mojos
</goals>
<configuration>
<xslFile>src/main/xslt/gf.xsl</xslFile>
<srcDir>.</srcDir>
<srcIncludes>pom.xml</srcIncludes>
<destDir>target/gf-pom-file</destDir>
</configuration>
</execution>
</executions>
</plugin>-->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<!-- bundle the source into zip for snapshot of code used in .war -->
<descriptor>src/main/assembly/src.xml</descriptor>
<descriptor>src/main/assembly/glassfish.xml</descriptor>
</descriptors>
</configuration>
<executions>
Expand All @@ -410,12 +325,13 @@
<artifactId>maven-resources-plugin</artifactId>
<version>2.2</version>
<configuration>
<encoding>MacRoman</encoding>
<encoding>${project.encoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.10</version>
<configuration>
<forkMode>pertest</forkMode>
<!-- need more memory than the default for our unit tests -->
Expand Down Expand Up @@ -487,7 +403,7 @@
<year>${project.inceptionYear}</year>
<email>healtheme@krminc.com</email>
</properties>
<encoding>UTF-8</encoding>
<encoding>${project.encoding}</encoding>
<mapping>
<!-- add support for jspf -->
<jspf>DYNASCRIPT_STYLE</jspf>
Expand Down
38 changes: 0 additions & 38 deletions src/main/assembly/glassfish.xml

This file was deleted.

2 changes: 1 addition & 1 deletion src/main/assembly/src.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
-->
<assembly>
<id>project</id>
<id>source</id>
<formats>
<format>zip</format>
</formats>
Expand Down
31 changes: 0 additions & 31 deletions src/main/filtered-resources/hibernate3hbm2ddl.properties

This file was deleted.

38 changes: 0 additions & 38 deletions src/main/filtered-resources/jdbc.properties

This file was deleted.

18 changes: 0 additions & 18 deletions src/main/filtered-resources/phr.properties

This file was deleted.

17 changes: 3 additions & 14 deletions src/main/resources-dev/log4j.properties
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,9 @@ log4j.appender.R.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
# Root logger option
log4j.rootLogger=INFO, stdout

# Hibernate logging options (INFO only shows startup messages)
log4j.logger.org.hibernate=INFO

# Log JDBC bind parameter runtime arguments
log4j.logger.org.hibernate.type=DEBUG

# Project logging
log4j.logger.com.krminc.phr=DEBUG

# Spring logging
#log4j.logger.org.springframework.beans=WARN
#log4j.logger.org.springframework.binding=DEBUG
#log4j.logger.org.springframework.jdbc=WARN
#log4j.logger.org.springframework.transaction=WARN
#log4j.logger.org.springframework.orm=WARN
#log4j.logger.org.springframework.web=DEBUG
#log4j.logger.org.springframework.webflow=DEBUG
#Hide Glassfish issue
log4j.logger.com.sun.web.security.RealmAdapter=WARN

Loading

0 comments on commit e07e1ca

Please sign in to comment.