Permalink
Browse files

changed discription

  • Loading branch information...
1 parent 8b2e373 commit 71660b72de912ef0a40bc962f8b6a96218addd43 @exceedhl committed Feb 28, 2011
Showing with 4 additions and 190 deletions.
  1. +4 −13 README
  2. +0 −177 pom.xml
View
17 README
@@ -1,15 +1,6 @@
-Building and verifying
+Introduction
+============
-Building the application is very easy. Just extract the application downloaded and go to the application folder (where you can see pom.xml) from command prompt, and run below maven command. First run may take a while as maven tries to download all dependencies from central repository.
+This project is a demo java project intended for showcasing automatic build. It uses ant to integrate compile, unit test, emma code ceverage, and various code static checking tools such as cpd, jdepend, java ncss, treemap(panopticode).
-mvn clean install
-
-"Build is successful". Now let us run the application with the following command
-
-mvn jetty:run
-
-Hurrey. Lets see the application we built, Go to your favourite browser and access the application @
-
-http://localhost:9999/
-
-Try out Add, Edit & Delete options.
+Though maven is getting more popular in java world but some projects especially legacy system are still on the way to be migrated to maven. Ant due to its flexibility is valuable for them. Configuring ant against a project is time consuming, so this project serves a sample for any team to reuse.
View
177 pom.xml
@@ -1,177 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<project>
- <modelVersion>4.0.0</modelVersion>
- <groupId>com.reeves.crud</groupId>
- <artifactId>struts-hibernate</artifactId>
- <packaging>war</packaging>
- <!-- TODO - Check the version number & Give a meaningful name and description -->
- <version>1.0</version>
- <name>Struts 2 Hibernate CRUD App</name>
- <url>http://curdapp.blogspot.com</url>
- <description>Struts 2 Hibernate CRUD App</description>
-
- <!-- TODO - Update developer details -->
- <developers>
- <developer>
- <name>Reeves Day</name>
- <email>reevesday@gmail.com</email>
- <url>http://reevesday.blogspot.com</url>
- </developer>
- </developers>
-
- <properties>
- <struts.version>2.1.8.1</struts.version>
- <spring.version>3.0.1.RELEASE</spring.version>
- <hibernate.version>3.5.0-Final</hibernate.version>
- </properties>
-
- <repositories>
- <repository>
- <id>JBoss</id>
- <name>JBoss Maven Repository</name>
- <url>http://repository.jboss.org/maven2</url>
- </repository>
- </repositories>
-
- <dependencies>
- <!-- Junit -->
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
-
- <!-- Struts 2 -->
- <dependency>
- <groupId>org.apache.struts</groupId>
- <artifactId>struts2-core</artifactId>
- <version>${struts.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.struts</groupId>
- <artifactId>struts2-sitemesh-plugin</artifactId>
- <version>${struts.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.struts</groupId>
- <artifactId>struts2-spring-plugin</artifactId>
- <version>${struts.version}</version>
- </dependency>
-
- <!-- Servlet & Jsp -->
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <version>2.4</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>jsp-api</artifactId>
- <version>2.0</version>
- <scope>provided</scope>
- </dependency>
-
- <!-- Jakarta Commons -->
- <dependency>
- <groupId>commons-fileupload</groupId>
- <artifactId>commons-fileupload</artifactId>
- <version>1.1.1</version>
- </dependency>
-
- <!-- JPA -->
- <dependency>
- <groupId>javax.persistence</groupId>
- <artifactId>persistence-api</artifactId>
- <version>1.0</version>
- </dependency>
-
- <!-- Spring framework -->
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-core</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-orm</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <!-- Spring framework - used for factory beans & stuff -->
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-beans</artifactId>
- <version>${spring.version}</version>
- </dependency>
-
- <!-- Hibernate -->
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-core</artifactId>
- <version>${hibernate.version}</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-annotations</artifactId>
- <version>${hibernate.version}</version>
- </dependency>
-
- <!-- H2 Database -->
- <dependency>
- <groupId>com.h2database</groupId>
- <artifactId>h2</artifactId>
- <version>1.2.132</version>
- </dependency>
-
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>5.1.10</version>
- </dependency>
-
- <!-- Misc -->
- <!-- TODO - Added to make build smooth without any CNF exception. Do research why exactly you need this dependency -->
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-simple</artifactId>
- <version>1.5.6</version>
- </dependency>
- </dependencies>
-
- <build>
- <finalName>struts-hibernate</finalName>
- <plugins>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- <!-- Jetty server plugin -->
- <plugin>
- <groupId>org.mortbay.jetty</groupId>
- <artifactId>maven-jetty-plugin</artifactId>
- <version>6.1.5</version>
- <configuration>
- <scanIntervalSeconds>5</scanIntervalSeconds>
- <contextPath>/</contextPath>
- <!-- fix - After running jetty if you try to modify CSS file and try to save it,
- Your IDE throws a weired warning and CSS changes do not reflect in the browser.
- This is because of the property useFileMappedBuffer - TRUE setting in jetty configuration file.
- We will just set the flag to FALSE and point jetty to use our configuration file -->
- <webDefaultXml>src/main/etc/webdefault.xml</webDefaultXml>
- <connectors>
- <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
- <port>9999</port>
- <maxIdleTime>60000</maxIdleTime>
- </connector>
- </connectors>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>

0 comments on commit 71660b7

Please sign in to comment.