The following pom.xml contains the basic Struts version 1.2.7 dependencies in Maven. Including Struts.jar to your dependency will automatically download the following jars to your project.
- commons-beanutils-1.7.0
- commons-chain-1.0
- commons-digester-1.6
- commons-collections-2.1
- xml-apis-1.0.b2
- commons-fileupload-1.0
- commons-logging-1.0.4
- commons-validator-1.1.4
- oro-2.0.8
- antlr-2.7.2
<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>org.mybusiness</groupId> <artifactId>StrutsTutorial</artifactId> <packaging>war</packaging> <version>1.0</version> <name>StrutsTutorial Maven Webapp</name> <url>http://maven.apache.org</url> <repositories> </repositories> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>struts</groupId> <artifactId>struts</artifactId> <version>${struts.version}</version> <type>jar</type> <scope>compile</scope> </dependency> </dependencies> <build> <finalName>StrutsTutorial</finalName> </build> <properties> <struts.version>1.2.7</struts.version> </properties> </project>
No comments:
Post a Comment