| |
| <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/xsd/maven-4.0.0.xsd"> |
| |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.roller</groupId> |
| <artifactId>roller-project</artifactId> |
| <version>5.0.5-SNAPSHOT</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| |
| <name>Apache Roller Weblogger Web Module</name> |
| <groupId>org.apache.roller</groupId> |
| <artifactId>roller-weblogger-web</artifactId> |
| <packaging>jar</packaging> |
| |
| <dependencies> |
| |
| <dependency> |
| <groupId>org.apache.roller</groupId> |
| <artifactId>roller-core</artifactId> |
| <version>${roller.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.roller</groupId> |
| <artifactId>roller-planet-business</artifactId> |
| <version>${roller.version}</version> |
| <exclusions> |
| <exclusion> |
| <artifactId>geronimo-jms_1.1_spec</artifactId> |
| <groupId>org.apache.geronimo.specs</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>commons-pool</artifactId> |
| <groupId>commons-pool</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>commons-logging-api</artifactId> |
| <groupId>commons-logging</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.roller</groupId> |
| <artifactId>roller-weblogger-business</artifactId> |
| <version>${roller.version}</version> |
| </dependency> |
| |
| <!-- OpenJPA deps --> |
| <dependency> |
| <groupId>org.apache.openjpa</groupId> |
| <artifactId>openjpa</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>commons-pool</groupId> |
| <artifactId>commons-pool</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-jms_1.1_spec</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <!-- EclipseLink deps (for sometimes testing purposes) |
| <dependency> |
| <groupId>org.eclipse.persistence</groupId> |
| <artifactId>eclipselink</artifactId> |
| <version>2.0.0</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-jta_1.1_spec</artifactId> |
| <version>1.1.1</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-jpa_2.0_spec</artifactId> |
| <version>1.1</version> |
| <scope>provided</scope> |
| </dependency |
| --> |
| |
| <!-- Hibernate deps (for sometimes testing purposes) |
| <dependency> |
| <groupId>org.hibernate</groupId> |
| <artifactId>hibernate-entitymanager</artifactId> |
| <version>3.5.1-Final</version> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-jdk14</artifactId> |
| <version>1.5.6</version> |
| <scope>runtime</scope> |
| </dependency> --> |
| |
| <dependency> |
| <groupId>javax.activation</groupId> |
| <artifactId>activation</artifactId> |
| <version>1.1.1</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.struts</groupId> |
| <artifactId>struts2-core</artifactId> |
| </dependency> |
| |
| <!-- needed by Struts, except on JBoss --> |
| <dependency> |
| <groupId>javassist</groupId> |
| <artifactId>javassist</artifactId> |
| <version>3.0</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.struts</groupId> |
| <artifactId>struts2-spring-plugin</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-core</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-beans</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-context</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.struts</groupId> |
| <artifactId>struts2-tiles-plugin</artifactId> |
| <exclusions> |
| <exclusion> |
| <artifactId>commons-logging-api</artifactId> |
| <groupId>commons-logging</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.tiles</groupId> |
| <artifactId>tiles-jsp</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.tiles</groupId> |
| <artifactId>tiles-api</artifactId> |
| <exclusions> |
| <exclusion> |
| <artifactId>commons-logging-api</artifactId> |
| <groupId>commons-logging</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>net.java.dev.rome</groupId> |
| <artifactId>rome-propono</artifactId> |
| <scope>compile</scope> |
| <exclusions> |
| <exclusion> |
| <artifactId>xmlrpc-common</artifactId> |
| <groupId>xmlrpc</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>xmlrpc-client</artifactId> |
| <groupId>xmlrpc</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>ws-commons-util</artifactId> |
| <groupId>ws-commons-util</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>activation</artifactId> |
| <groupId>javax.activation</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <!-- Spring Security deps --> |
| |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-web</artifactId> |
| <version>2.5.6.SEC03</version> |
| <exclusions> |
| <exclusion> |
| <groupId>aopalliance</groupId> |
| <artifactId>aopalliance</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.springframework.ldap</groupId> |
| <artifactId>spring-ldap</artifactId> |
| <version>1.2.1</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.springframework.security</groupId> |
| <artifactId>spring-security-core</artifactId> |
| <version>2.0.5.RELEASE</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-support</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.springframework.security</groupId> |
| <artifactId>spring-security-openid</artifactId> |
| <version>2.0.5.RELEASE</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.springframework.security</groupId> |
| <artifactId>spring-security-taglibs</artifactId> |
| <version>2.0.5.RELEASE</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.springframework.security</groupId> |
| <artifactId>spring-security-acl</artifactId> |
| <version>2.0.5.RELEASE</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-jdbc</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-dao</artifactId> |
| <version>2.0.6</version> |
| <exclusions> |
| <exclusion> |
| <groupId>aopalliance</groupId> |
| <artifactId>aopalliance</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <!-- OpenID deps --> |
| |
| <dependency> |
| <groupId>org.openxri</groupId> |
| <artifactId>openxri-client</artifactId> |
| <version>1.2.0</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-jcl</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jug</groupId> |
| <artifactId>jug</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.openxri</groupId> |
| <artifactId>openxri-syntax</artifactId> |
| <version>1.2.0</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-jcl</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.ibm.icu</groupId> |
| <artifactId>icu4j</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.openid4java</groupId> |
| <artifactId>openid4java-consumer</artifactId> |
| <version>0.9.5</version> |
| <exclusions> |
| <exclusion> |
| <groupId>com.google.code.guice</groupId> |
| <artifactId>guice</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>net.sf.ehcache</groupId> |
| <artifactId>ehcache</artifactId> |
| <version>1.6.2</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>xml-security</groupId> |
| <artifactId>xmlsec</artifactId> |
| <version>1.3.0</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>xerces</groupId> |
| <artifactId>xercesImpl</artifactId> |
| <version>2.9.1</version> |
| </dependency> |
| |
| <!-- Java EE deps --> |
| |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>jstl</artifactId> |
| <!-- <scope>provided</scope> --> |
| </dependency> |
| |
| <dependency> |
| <groupId>javax.mail</groupId> |
| <artifactId>mail</artifactId> |
| <scope>provided</scope> |
| <exclusions> |
| <exclusion> |
| <artifactId>activation</artifactId> |
| <groupId>javax.activation</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>javax.servlet.jsp</groupId> |
| <artifactId>jsp-api</artifactId> |
| <version>2.1</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.mortbay.jetty</groupId> |
| <artifactId>jetty</artifactId> |
| <version>6.1.10</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- test deps --> |
| |
| <dependency> |
| <groupId>commons-dbcp</groupId> |
| <artifactId>commons-dbcp</artifactId> |
| <version>1.2.2</version> |
| <scope>test</scope> |
| <exclusions> |
| <exclusion> |
| <artifactId>commons-pool</artifactId> |
| <groupId>commons-pool</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| |
| <dependency> |
| <groupId>simple-jndi</groupId> |
| <artifactId>simple-jndi</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.roller</groupId> |
| <artifactId>test-utils</artifactId> |
| <version>${roller.version}</version> |
| <scope>test</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.derby</groupId> |
| <artifactId>derby</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.derby</groupId> |
| <artifactId>derby</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.derby</groupId> |
| <artifactId>derbyclient</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| </dependencies> |
| |
| <build> |
| |
| <plugins> |
| |
| <plugin> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>2.4.3</version> |
| |
| <executions> |
| |
| <execution> |
| <id>copy-test-properties</id> |
| <phase>validate</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${basedir}/target/testsetup</outputDirectory> |
| <resources> |
| <resource> |
| <directory>src/test/resources</directory> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| |
| <execution> |
| <id>copy-test-config</id> |
| <phase>validate</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${basedir}/target/</outputDirectory> |
| <resources> |
| <resource> |
| <directory>src/test/resources</directory> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| |
| <execution> |
| <id>copy-resources</id> |
| <phase>process-resources</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/roller/WEB-INF/classes/dbscripts</outputDirectory> |
| <resources> |
| <resource> |
| <directory>../weblogger-business/target/dbscripts</directory> |
| <filtering>false</filtering> |
| <includes> |
| <include>**/*.sql</include> |
| </includes> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| |
| </executions> |
| |
| <configuration> |
| <includeEmptyDirs>true</includeEmptyDirs> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| |
| <!-- Ensure tests will run even if 'openjpa' profile not active --> |
| <forkMode>once</forkMode> |
| <argLine>-javaagent:${user.home}/.m2/repository/org/apache/openjpa/openjpa/2.0.1/openjpa-2.0.1.jar</argLine> |
| |
| <systemProperties> |
| <property> |
| <name>catalina.base</name> |
| <value>${project.build.testOutputDirectory}</value> |
| </property> |
| <property> |
| <name>context.realpath</name> |
| <value>${project.basedir}/src/main/webapp</value> |
| </property> |
| <property> |
| <name>project.build.directory</name> |
| <value>${project.build.directory}</value> |
| </property> |
| </systemProperties> |
| <excludes> |
| <exclude>**/TestUtils.java</exclude> |
| <exclude>**/TestTask.java</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.roller</groupId> |
| <artifactId>test-utils</artifactId> |
| <version>${roller.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.derby</groupId> |
| <artifactId>derby</artifactId> |
| <version>${derby.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.derby</groupId> |
| <artifactId>derbynet</artifactId> |
| <version>${derby.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.derby</groupId> |
| <artifactId>derbyclient</artifactId> |
| <version>${derby.version}</version> |
| </dependency> |
| </dependencies> |
| |
| <executions> |
| |
| <execution> |
| <id>startdb</id> |
| <phase>process-test-resources</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <tasks> |
| <!-- Derby only for unit testing: skip when maven.text.skip is set --> |
| <delete dir="${project.build.directory}/derby-system" verbose="true" failonerror="false" /> |
| <taskdef name="startdb" classname="org.apache.roller.weblogger.ant.StartDerbyTask" |
| classpathref="maven.test.classpath"/> |
| <startdb databaseDir="${project.build.directory}/derby-system" |
| port="3223" |
| databaseScriptsDir="${project.build.directory}/roller/WEB-INF/classes/dbscripts" |
| skip="${maven.test.skip}" > |
| </startdb> |
| </tasks> |
| </configuration> |
| </execution> |
| |
| <execution> |
| <id>stopdb</id> |
| <phase>package</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <tasks> |
| <!-- Derby only for unit testing: skip when maven.text.skip is set --> |
| <taskdef name="stopdb" classname="org.apache.roller.weblogger.ant.StopDerbyTask" |
| classpathref="maven.test.classpath"/> |
| <stopdb databaseDir="${project.build.directory}/derby-system" |
| port="3223" |
| databaseScriptsDir="${project.build.directory}/roller/WEB-INF/classes/dbscripts" |
| skip="${maven.test.skip}" > |
| </stopdb> |
| <delete dir="${project.build.directory}/derby-system" verbose="true" failonerror="false" /> |
| </tasks> |
| </configuration> |
| </execution> |
| |
| </executions> |
| </plugin> |
| |
| </plugins> |
| |
| <testResources> |
| <testResource> |
| <directory>src/test/resources</directory> |
| <filtering>true</filtering> |
| </testResource> |
| </testResources> |
| |
| <resources> |
| <resource> |
| <directory>src/main/resources</directory> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| |
| </build> |
| |
| </project> |