Zemian Deng avatar Zemian Deng committed 6f1bfb1

Refactored pom.xml to use version properties, and clean up format.

Comments (0)

Files changed (6)

 <?xml version="1.0" encoding="utf-8"?>
-<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">
-
+<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>
+	<name>TimeMachine</name>
+	<groupId>org.bitbucket.timemachine</groupId>
+	<artifactId>timemachine-parent</artifactId>
+	<version>1.3.0-SNAPSHOT</version>
+	<packaging>pom</packaging>
+	
 	<description>
 	A Java job scheduler that supports high volume jobs and flexible schedules.
 	</description>
 		</developer>
 	</developers>
 
-	<modelVersion>4.0.0</modelVersion>
-	<name>TimeMachine</name>
-
-	<groupId>org.bitbucket.timemachine</groupId>
-	<artifactId>timemachine-parent</artifactId>
-	<version>1.3.0-SNAPSHOT</version>
-	<packaging>pom</packaging>
-
 	<modules>
 		<module>timemachine-scheduler</module>
 		<module>timemachine-hibernate</module>
 
 	<properties>
 		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+		<version.slf4j>1.6.6</version.slf4j>
+		<version.groovy>2.0.1</version.groovy>
+		<version.hibernate>4.1.3.Final</version.hibernate>
+		<version.c3p0>0.9.1.2</version.c3p0>
+		<version.mysql>5.1.16</version.mysql>
+		<version.h2database>1.3.163</version.h2database>
+		<version.spring>3.1.1.RELEASE</version.spring>
+		<version.camel>2.10.0</version.camel>
 	</properties>
 
 	<dependencies>
 		<dependency>
 			<groupId>org.slf4j</groupId>
 			<artifactId>slf4j-api</artifactId>
-			<version>1.6.1</version>
+			<version>${version.slf4j}</version>
+		</dependency>
+		
+		<!-- Optional libraries -->
+		<dependency>
+			<groupId>org.codehaus.groovy</groupId>
+			<artifactId>groovy-all</artifactId>
+			<version>${version.groovy}</version>
+			<scope>runtime</scope>
+			<optional>true</optional>
 		</dependency>
 		<dependency>
 			<groupId>org.slf4j</groupId>
 			<artifactId>slf4j-log4j12</artifactId>
-			<version>1.6.1</version>
+			<version>${version.slf4j}</version>
 			<scope>runtime</scope>
 			<optional>true</optional>
 		</dependency>

timemachine-dist/pom.xml

 <?xml version="1.0" encoding="utf-8"?>
-<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">
+<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>
 	<name>TimeMachine Distribution</name>
+	<artifactId>timemachine-dist</artifactId>
+	<packaging>pom</packaging>
 
 	<parent>
 		<groupId>org.bitbucket.timemachine</groupId>
 		<version>1.3.0-SNAPSHOT</version>
 	</parent>
 
-	<artifactId>timemachine-dist</artifactId>
-	<packaging>pom</packaging>
-
-	<dependencies>
-	</dependencies>
-
 	<build>
 		<plugins>
 			<plugin>

timemachine-hibernate/pom.xml

 <?xml version="1.0" encoding="utf-8"?>
-<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">
+<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>
 	<name>TimeMachine Hibernate</name>
-	
+	<artifactId>timemachine-hibernate</artifactId>
+	<packaging>jar</packaging>
+
 	<parent>
 		<groupId>org.bitbucket.timemachine</groupId>
 		<artifactId>timemachine-parent</artifactId>
 		<version>1.3.0-SNAPSHOT</version>
 	</parent>
 	
-	<artifactId>timemachine-hibernate</artifactId>
-	<packaging>jar</packaging>
-
 	<dependencies>		
 		<!-- Use timemachine-scheduler integration base classes for testing. -->
 		<dependency>
 			<groupId>org.bitbucket.timemachine</groupId>
 			<artifactId>timemachine-scheduler</artifactId>
-			<version>1.3.0-SNAPSHOT</version>
+			<version>${project.version}</version>
 			<type>test-jar</type>
 			<scope>test</scope>
 		</dependency>
 		<dependency>
 			<groupId>org.bitbucket.timemachine</groupId>
 			<artifactId>timemachine-scheduler</artifactId>
-			<version>1.3.0-SNAPSHOT</version>
+			<version>${project.version}</version>
 		</dependency>
 
 		<!-- Hibernate -->
 		<dependency>
 			<groupId>org.hibernate</groupId>
 			<artifactId>hibernate-core</artifactId>
-			<version>4.1.3.Final</version>
+			<version>${version.hibernate}</version>
 		</dependency>
 		<dependency>
 			<groupId>c3p0</groupId>
 			<artifactId>c3p0</artifactId>
-			<version>0.9.1.2</version>
+			<version>${version.c3p0}</version>
 			<scope>runtime</scope>
 			<optional>true</optional>
 		</dependency>
 		<dependency>
 			<groupId>com.h2database</groupId>
 			<artifactId>h2</artifactId>
-			<version>1.3.163</version>
+			<version>${version.h2database}</version>
 			<scope>runtime</scope>
 			<optional>true</optional>
 		</dependency>
 				<dependency>
 					<groupId>mysql</groupId>
 					<artifactId>mysql-connector-java</artifactId>
-					<version>5.1.16</version>
+					<version>${version.mysql}</version>
 				</dependency>
 			</dependencies>
 		</profile>
 				</dependency>
 			</dependencies>
 		</profile>
-		<!-- For testing purpose, we will add groovy profile -->
-		<profile>
-			<id>groovy</id>
-			<dependencies>
-				<dependency>
-					<groupId>org.codehaus.groovy</groupId>
-					<artifactId>groovy-all</artifactId>
-					<version>2.0.0</version>
-				</dependency>
-			</dependencies>
-		</profile>
 	</profiles>
 </project>

timemachine-scheduler/pom.xml

 <?xml version="1.0" encoding="utf-8"?>
-<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">
+<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>
 	<name>TimeMachine Scheduler</name>
+	<artifactId>timemachine-scheduler</artifactId>
+	<packaging>jar</packaging>
 	
 	<parent>
 		<groupId>org.bitbucket.timemachine</groupId>
 		<artifactId>timemachine-parent</artifactId>
 		<version>1.3.0-SNAPSHOT</version>
 	</parent>
-	
-	<artifactId>timemachine-scheduler</artifactId>
-	<packaging>jar</packaging>
 
 	<dependencies>
 		<!-- Apache Commons lib -->
 			<artifactId>commons-io</artifactId>
 			<version>1.4</version>
 		</dependency>
-		
-		<!-- We set groovy engine as optional run time. -->
-		<dependency>
-			<groupId>org.codehaus.groovy</groupId>
-			<artifactId>groovy-all</artifactId>
-			<version>2.0.0</version>
-			<scope>runtime</scope>
-			<optional>true</optional>
-		</dependency>
 	</dependencies>
 
 	<build>

timemachine-spring/pom.xml

 		<dependency>
 			<groupId>org.bitbucket.timemachine</groupId>
 			<artifactId>timemachine-hibernate</artifactId>
-			<version>1.2.1</version>
+			<version>${project.version}</version>
 		</dependency>
 		<dependency>
 			<groupId>org.springframework</groupId>
 			<artifactId>spring-context</artifactId>
-			<version>3.1.1.RELEASE</version>
+			<version>${version.spring}</version>
 		</dependency>
 		
-		<!-- Optional libraries -->
-		<dependency>
-			<groupId>org.codehaus.groovy</groupId>
-			<artifactId>groovy-all</artifactId>
-			<version>2.0.0</version>
-			<scope>runtime</scope>
-			<optional>true</optional>
-		</dependency>
-		<dependency>
-			<groupId>org.slf4j</groupId>
-			<artifactId>slf4j-log4j12</artifactId>
-			<version>1.6.1</version>
-			<scope>runtime</scope>
-			<optional>true</optional>
-		</dependency>
-	
 	</dependencies>
 	
 </project>

timemachine-web/pom.xml

 <?xml version="1.0" encoding="utf-8"?>
-<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">
+<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>
 	<name>TimeMachine Web</name>
+	<artifactId>timemachine-web</artifactId>
+	<packaging>war</packaging>
 	
 	<parent>
 		<groupId>org.bitbucket.timemachine</groupId>
 		<version>1.3.0-SNAPSHOT</version>
 	</parent>
 	
-	<artifactId>timemachine-web</artifactId>
-	<packaging>war</packaging>
-
 	<build>
 		<plugins>
 			<plugin>
 		<dependency>
 			<groupId>org.bitbucket.timemachine</groupId>
 			<artifactId>timemachine-hibernate</artifactId>
-			<version>1.3.0-SNAPSHOT</version>
+			<version>${project.version}</version>
 		</dependency>
 		
 		<!-- Java Servlet -->
 			<version>1.1.2</version>
 		</dependency>
 		
-		<!-- Logging -->
+		<!-- Optional libraries -->
 		<dependency>
 			<groupId>org.slf4j</groupId>
 			<artifactId>slf4j-log4j12</artifactId>
-			<version>1.6.1</version>
+			<version>${version.slf4j}</version>
 			<optional>true</optional>
 			<scope>runtime</scope>
 		</dependency>
-		
-		<!-- Script Engine -->
 		<dependency>
 			<groupId>org.codehaus.groovy</groupId>
 			<artifactId>groovy-all</artifactId>
-			<version>2.0.0</version>
+			<version>${version.groovy}</version>
+			<optional>true</optional>
+			<scope>runtime</scope>
 		</dependency>
-
-		<!-- Database Connection Pooling -->
 		<dependency>
 			<groupId>c3p0</groupId>
 			<artifactId>c3p0</artifactId>
-			<version>0.9.1.2</version>
+			<version>${version.c3p0}</version>
 			<optional>true</optional>
 			<scope>runtime</scope>
 		</dependency>
-				
-		<!-- MySQL driver -->
 		<dependency>
 			<groupId>mysql</groupId>
 			<artifactId>mysql-connector-java</artifactId>
-			<version>5.1.16</version>
+			<version>${version.mysql}</version>
 			<optional>true</optional>
 			<scope>runtime</scope>
 		</dependency>
-		
-		<!-- H2Database -->
 		<dependency>
 			<groupId>com.h2database</groupId>
 			<artifactId>h2</artifactId>
-			<version>1.3.163</version>
+			<version>${version.h2database}</version>
 			<optional>true</optional>
 			<scope>runtime</scope>
 		</dependency>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.