archetype-resources.pom.xml Maven / Gradle / Ivy
<?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"> <modelVersion>4.0.0</modelVersion> <groupId>${groupId}</groupId> <artifactId>${artifactId}</artifactId> <packaging>pom</packaging> <version>${version}</version> <name>AppFuse Modular Application</name> <url>http://www.mycompany.com</url> <prerequisites> <maven>2.0.4</maven> </prerequisites> <licenses> <license> <name></name> <url></url> </license> </licenses> <scm> <connection></connection> <developerConnection></developerConnection> <url></url> </scm> <issueManagement> <system></system> <url></url> </issueManagement> <developers> <developer> <id></id> <name></name> <email></email> <timezone></timezone> </developer> </developers> <build> <defaultGoal>install</defaultGoal> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> <plugin> <artifactId>maven-eclipse-plugin</artifactId> <version>2.3</version> <configuration> <additionalProjectnatures> <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature> </additionalProjectnatures> <additionalBuildcommands> <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand> </additionalBuildcommands> <downloadSources>true</downloadSources> <downloadJavadocs>true</downloadJavadocs> <wtpversion>1.5</wtpversion> </configuration> </plugin> <plugin> <artifactId>maven-idea-plugin</artifactId> <version>2.0</version> <configuration> <downloadSources>true</downloadSources> <downloadJavadocs>true</downloadJavadocs> <dependenciesAsLibraries>true</dependenciesAsLibraries> <useFullNames>false</useFullNames> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>appfuse-maven-plugin</artifactId> <version>${appfuse.version}</version> <configuration> <genericCore>${amp.genericCore}</genericCore> <fullSource>${amp.fullSource}</fullSource> </configuration> </plugin> </plugins> </build> <repositories> <repository> <id>central</id> <url>http://repo1.maven.org/maven2</url> </repository> <repository> <id>appfuse</id> <url>http://static.appfuse.org/repository</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>appfuse</id> <url>http://static.appfuse.org/repository</url> </pluginRepository> </pluginRepositories> <dependencies> <dependency> <groupId>${jdbc.groupId}</groupId> <artifactId>${jdbc.artifactId}</artifactId> <version>${jdbc.version}</version> </dependency> <dependency> <groupId>jmock</groupId> <artifactId>jmock</artifactId> <version>${jmock.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-mock</artifactId> <version>${spring.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.subethamail</groupId> <artifactId>subethasmtp-wiser</artifactId> <version>${wiser.version}</version> <scope>test</scope> </dependency> </dependencies> <modules> <module>core</module> <module>web</module> </modules> <reporting> <plugins> <plugin> <artifactId>maven-changes-plugin</artifactId> </plugin> <plugin> <artifactId>maven-checkstyle-plugin</artifactId> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.0</version> </plugin> <plugin> <artifactId>maven-javadoc-plugin</artifactId> </plugin> <plugin> <artifactId>maven-jxr-plugin</artifactId> </plugin> <plugin> <artifactId>maven-pmd-plugin</artifactId> <configuration> <linkXref>true</linkXref> <targetJdk>1.5</targetJdk> </configuration> </plugin> <plugin> <artifactId>maven-surefire-report-plugin</artifactId> </plugin> </plugins> </reporting> <profiles> <!-- ================= Database Profiles ================= --> <profile> <id>derby</id> <properties> <hibernate.dialect>org.hibernate.dialect.DerbyDialect</hibernate.dialect> <jdbc.groupId>org.apache.derby</jdbc.groupId> <jdbc.artifactId>derbyclient</jdbc.artifactId> <jdbc.version>10.2.2.0</jdbc.version> <jdbc.driverClassName>org.apache.derby.jdbc.ClientDriver</jdbc.driverClassName> <jdbc.url><![CDATA[jdbc:derby://localhost/appfuse;create=true]]></jdbc.url> <jdbc.username>any</jdbc.username> <jdbc.password>value</jdbc.password> </properties> </profile> <profile> <id>h2</id> <properties> <dbunit.dataTypeFactoryName>org.dbunit.ext.hsqldb.HsqldbDataTypeFactory</dbunit.dataTypeFactoryName> <hibernate.dialect>org.hibernate.dialect.H2Dialect</hibernate.dialect> <jdbc.groupId>com.h2database</jdbc.groupId> <jdbc.artifactId>h2</jdbc.artifactId> <jdbc.version>1.0.20061217</jdbc.version> <jdbc.driverClassName>org.h2.Driver</jdbc.driverClassName> <jdbc.url><![CDATA[jdbc:h2:${artifactId}]]></jdbc.url> <jdbc.username>sa</jdbc.username> <jdbc.password></jdbc.password> </properties> </profile> <profile> <id>hsqldb</id> <properties> <dbunit.dataTypeFactoryName>org.dbunit.ext.hsqldb.HsqldbDataTypeFactory</dbunit.dataTypeFactoryName> <hibernate.dialect>org.hibernate.dialect.HSQLDialect</hibernate.dialect> <jdbc.groupId>hsqldb</jdbc.groupId> <jdbc.artifactId>hsqldb</jdbc.artifactId> <jdbc.version>1.8.0.7</jdbc.version> <jdbc.driverClassName>org.hsqldb.jdbcDriver</jdbc.driverClassName> <jdbc.url><![CDATA[jdbc:hsqldb:${artifactId};shutdown=true]]></jdbc.url> <jdbc.username>sa</jdbc.username> <jdbc.password></jdbc.password> </properties> </profile> <profile> <id>oracle</id> <properties> <dbunit.dataTypeFactoryName>org.dbunit.ext.oracle.OracleDataTypeFactory</dbunit.dataTypeFactoryName> <dbunit.schema>SYSTEM</dbunit.schema> <!-- Make sure to capitalize the schema name --> <hibernate.dialect>org.hibernate.dialect.Oracle9Dialect</hibernate.dialect> <jdbc.groupId>com.oracle</jdbc.groupId> <jdbc.artifactId>ojdbc14</jdbc.artifactId> <jdbc.version>10.2.0.2.0</jdbc.version> <jdbc.driverClassName>oracle.jdbc.OracleDriver</jdbc.driverClassName> <jdbc.url><![CDATA[jdbc:oracle:thin:@localhost:1521:XE]]></jdbc.url> <jdbc.username>system</jdbc.username> <jdbc.password>system</jdbc.password> </properties> </profile> <profile> <id>postgresql</id> <properties> <hibernate.dialect>org.hibernate.dialect.PostgreSQLDialect</hibernate.dialect> <jdbc.groupId>postgresql</jdbc.groupId> <jdbc.artifactId>postgresql</jdbc.artifactId> <jdbc.version>8.1-407.jdbc3</jdbc.version> <jdbc.driverClassName>org.postgresql.Driver</jdbc.driverClassName> <jdbc.url><![CDATA[jdbc:postgresql://localhost/${artifactId}]]></jdbc.url> <jdbc.username>postgres</jdbc.username> <jdbc.password>postgres</jdbc.password> </properties> </profile> <profile> <!-- You need to enable TCP/IP Connections for SQL Server 2005 after installing. --> <!-- http://www.mattwoodward.com/blog/index.cfm?commentID=211 --> <id>sqlserver</id> <properties> <dbunit.dataTypeFactoryName>org.dbunit.ext.mssql.MsSqlDataTypeFactory</dbunit.dataTypeFactoryName> <dbunit.operation.type>MSSQL_CLEAN_INSERT</dbunit.operation.type> <hibernate.dialect>org.hibernate.dialect.SQLServerDialect</hibernate.dialect> <jdbc.groupId>net.sourceforge.jtds</jdbc.groupId> <jdbc.artifactId>jtds</jdbc.artifactId> <jdbc.version>1.2</jdbc.version> <jdbc.driverClassName>net.sourceforge.jtds.jdbc.Driver</jdbc.driverClassName> <jdbc.url><![CDATA[jdbc:jtds:sqlserver://localhost:3683/${artifactId}]]></jdbc.url> <jdbc.username>sa</jdbc.username> <jdbc.password>appfuse</jdbc.password> </properties> </profile> <!-- ================= Container Profiles ================= --> <profile> <id>jboss</id> <properties> <cargo.container>jboss4x</cargo.container> <cargo.container.home>${env.JBOSS_HOME}</cargo.container.home> <cargo.container.url>http://easynews.dl.sourceforge.net/sourceforge/jboss/jboss-4.0.5.GA.zip</cargo.container.url> </properties> </profile> </profiles> <properties> <!-- Application settings --> <copyright.year>2007</copyright.year> <dao.framework>hibernate</dao.framework> <web.framework>spring</web.framework> <amp.genericCore>true</amp.genericCore> <amp.fullSource>false</amp.fullSource> <!-- Framework dependency versions --> <appfuse.version>2.0-m5</appfuse.version> <spring.version>2.0.5</spring.version> <!-- Testing dependency versions --> <jmock.version>1.1.0</jmock.version> <jsp.version>2.0</jsp.version> <junit.version>3.8.2</junit.version> <servlet.version>2.4</servlet.version> <wiser.version>1.0.3</wiser.version> <!-- WebTest dependency versions --> <javamail.version>1.4</javamail.version> <log4j.version>1.2.13</log4j.version> <oro.version>2.0.8</oro.version> <webtest.version>1454</webtest.version> <!-- Cargo settings --> <cargo.container>tomcat5x</cargo.container> <cargo.container.home>${env.CATALINA_HOME}</cargo.container.home> <cargo.container.url>http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23.zip</cargo.container.url> <cargo.host>localhost</cargo.host> <cargo.port>8081</cargo.port> <cargo.wait>false</cargo.wait> <!-- Database settings --> <dbunit.dataTypeFactoryName>org.dbunit.dataset.datatype.DefaultDataTypeFactory</dbunit.dataTypeFactoryName> <dbunit.operation.type>CLEAN_INSERT</dbunit.operation.type> <hibernate.dialect>org.hibernate.dialect.MySQLInnoDBDialect</hibernate.dialect> <jdbc.groupId>mysql</jdbc.groupId> <jdbc.artifactId>mysql-connector-java</jdbc.artifactId> <jdbc.version>5.0.5</jdbc.version> <jdbc.driverClassName>com.mysql.jdbc.Driver</jdbc.driverClassName> <jdbc.url><![CDATA[jdbc:mysql://localhost/${artifactId.replaceAll('-','_')}?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf-8]]></jdbc.url> <jdbc.username>root</jdbc.username> <jdbc.password></jdbc.password> </properties> </project>