maven的一些依赖:
<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> <artifactId>courseware</artifactId> <groupId>org.sakaiproject</groupId> <version>10.2</version> </parent> <groupId>org.sakaiproject</groupId> <artifactId>courseware-tool</artifactId> <version>10.2</version> <packaging>war</packaging> <dependencies><dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> </dependency> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> </dependency> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> </dependency> <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId> <version>1.9.12</version> </dependency> <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-mapper-asl</artifactId> <version>1.9.12</version> </dependency> <dependency> <groupId>taglibs</groupId> <artifactId>standard</artifactId> <version>1.1.2</version> <type>jar</type> <scope>compile</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <type>jar</type> <scope>compile</scope> </dependency> <!-- project dependencies --> <dependency> <groupId>org.sakaiproject</groupId> <artifactId>courseware-api</artifactId> </dependency> <dependency> <groupId>org.sakaiproject</groupId> <artifactId>courseware-impl</artifactId> </dependency> <!-- we are running a webapp in a servlet container so we need the servlet API --> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> </dependency> <!-- We need this special package to run the jsps in Sakai --> <dependency> <groupId>org.sakaiproject</groupId> <artifactId>sakai-jsp-adapter</artifactId> <version>0.10-K1</version> <scope>runtime</scope> <exclusions> <exclusion> <groupId>org.sakaiproject</groupId> <artifactId>sakai-kernel-api</artifactId> </exclusion> </exclusions> </dependency> <!-- third party dependencies --> <dependency> <groupId>org.sakaiproject.kernel</groupId> <artifactId>sakai-kernel-api</artifactId> </dependency> <dependency> <groupId>org.sakaiproject.kernel</groupId> <artifactId>sakai-component-manager</artifactId> </dependency> <dependency> <groupId>org.sakaiproject.kernel</groupId> <artifactId>sakai-kernel-util</artifactId> </dependency> <dependency> <groupId>org.sakaiproject.jsf</groupId> <artifactId>jsf-tool</artifactId> </dependency> <dependency> <groupId>org.sakaiproject.jsf</groupId> <artifactId>jsf-app</artifactId> </dependency> <dependency> <groupId>org.sakaiproject.jsf</groupId> <artifactId>jsf-widgets-sun-depend</artifactId> <type>pom</type> </dependency> <dependency> <groupId>org.sakaiproject.edu-services.course-management</groupId> <artifactId>coursemanagement-api</artifactId> </dependency> </dependencies> <build> <!-- configure the build to use the standard maven structure --> <sourceDirectory>src/main/java</sourceDirectory> <!--<resources> <resource> <directory>${basedir}/src/main/java</directory> <includes> <include>**/*.xml</include> </includes> </resource> <resource> <directory>${basedir}/src/main/resources</directory> <includes> <include>**/*</include> </includes> </resource> </resources> --> <resources /> <plugins> <!-- configure the war plugin to correctly use the standard maven structure --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <warSourceDirectory>${basedir}/src/main/webapp</warSourceDirectory> <ouputDirectory>${project.build.directory}</ouputDirectory> </configuration> </plugin> </plugins> </build></project>