| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <project> |
| <modelVersion>4.0.0</modelVersion> |
| <groupId>${groupId}</groupId> |
| <artifactId>${artifactId}</artifactId> |
| <packaging>war</packaging> |
| <version>${version}</version> |
| <name>Struts 2 Database Portlet</name> |
| <url>http://www.myComp.com</url> |
| <description>Struts 2 Database Portlet</description> |
| |
| <properties> |
| <struts2.version>2.1.8.1</struts2.version> |
| </properties> |
| |
| <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>${struts2.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.struts</groupId> |
| <artifactId>struts2-portlet-plugin</artifactId> |
| <version>${struts2.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.struts</groupId> |
| <artifactId>struts2-convention-plugin</artifactId> |
| <version>${struts2.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.struts</groupId> |
| <artifactId>struts2-spring-plugin</artifactId> |
| <version>${struts2.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.struts</groupId> |
| <artifactId>struts2-config-browser-plugin</artifactId> |
| <version>${struts2.version}</version> |
| </dependency> |
| |
| <!-- Spring --> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-jdbc</artifactId> |
| <version>2.5.6</version> |
| </dependency> |
| |
| <!-- Database driver (change for your specific database) --> |
| <dependency> |
| <groupId>hsqldb</groupId> |
| <artifactId>hsqldb</artifactId> |
| <version>1.8.0.7</version> |
| </dependency> |
| |
| <!-- Servlet, Jsp, and Portlet API's --> |
| <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> |
| |
| <dependency> |
| <groupId>portlet-api</groupId> |
| <artifactId>portlet-api</artifactId> |
| <version>1.0</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| </dependencies> |
| |
| <build> |
| <finalName>${artifactId}</finalName> |
| <plugins> |
| <plugin> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <configuration> |
| <source>1.5</source> |
| <target>1.5</target> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.mortbay.jetty</groupId> |
| <artifactId>maven-jetty-plugin</artifactId> |
| <version>6.1.21</version> |
| <configuration> |
| <scanIntervalSeconds>10</scanIntervalSeconds> |
| </configuration> |
| <dependencies> |
| <dependency> |
| <groupId>portlet-api</groupId> |
| <artifactId>portlet-api</artifactId> |
| <version>1.0</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |