1. 程式人生 > >maven專案中自動下載jar包的pom.xml配置

maven專案中自動下載jar包的pom.xml配置

<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">
   <parent>
     <artifactId>edar-parent</artifactId>
     <groupId>com.edar</groupId>
     <version>0.0.2</version>
     <relativePath>../parent/pom.xml</relativePath>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <groupId>com.edar</groupId>
   <artifactId>edar-core</artifactId>
   <name>edar core</name>
   <version>${edar.version}</version>
   <description>edar專案核心原始碼</description>
   <build>
   </build>
   <repositories>
   </repositories>
   <dependencies>
         <dependency>
                 <groupId>log4j</groupId>
                 <artifactId>log4j</artifactId>
                 <version>${log4j.version}</version>
                 <scope>compile</scope>
         </dependency>
         <dependency>
                 <groupId>org.springframework</groupId>
                 <artifactId>spring</artifactId>
                 <version>${spring.version}</version>
                 <type>jar</type>
                 <scope>compile</scope>
         </dependency>
         <dependency>
                 <groupId>org.apache.struts</groupId>
                 <artifactId>struts2-core</artifactId>
                 <version>${struts2.version}</version>
                 <type>jar</type>
                 <scope>compile</scope>
         </dependency>
         <dependency>
                 <groupId>tomcat</groupId>
                 <artifactId>servlet-api</artifactId>
                 <version>5.5.23</version>
                 <type>jar</type>
                 <scope>compile</scope>
         </dependency>
         <dependency>
                 <groupId>org.slf4j</groupId>
                 <artifactId>log4j-over-slf4j</artifactId>
                 <version>${org.slf4j.version}</version>
                 <type>jar</type>
                 <scope>compile</scope>
         </dependency>
         <dependency>
                 <groupId>org.slf4j</groupId>
                 <artifactId>slf4j-api</artifactId>
                 <version>${org.slf4j.version}</version>
                 <type>jar</type>
                 <scope>compile</scope>
         </dependency>
         <dependency>
                 <groupId>org.slf4j</groupId>
                 <artifactId>slf4j-log4j12</artifactId>
                 <version>${org.slf4j.version}</version>
                 <type>jar</type>
                 <scope>compile</scope>
         </dependency>
         <dependency>
                 <groupId>net.sf.json-lib</groupId>
                 <artifactId>json-lib</artifactId>
                 <version>2.2.3</version>
                 <type>jar</type>
                 <classifier>jdk15</classifier>
                 <scope>compile</scope>
         </dependency>
         <dependency>
                 <groupId>org.slf4j</groupId>
                 <artifactId>jul-to-slf4j</artifactId>
                 <version>1.5.8</version>
                 <scope>compile</scope>
         </dependency>
         <dependency>
                 <groupId>commons-beanutils</groupId>
                 <artifactId>commons-beanutils</artifactId>
                 <version>1.8.0</version>
                 <scope>compile</scope>
         </dependency>
         <dependency>
                 <groupId>commons-lang</groupId>
                 <artifactId>commons-lang</artifactId>
                 <version>2.4</version>
                 <scope>compile</scope>
         </dependency>
         <dependency>
                 <groupId>org.springframework</groupId>
                 <artifactId>spring-test</artifactId>
                 <version>${spring.version}</version>
                 <scope>compile</scope>
         </dependency>
         <dependency>
                 <groupId>org.unitils</groupId>
                 <artifactId>unitils</artifactId>
                 <version>2.4</version>
                 <type>jar</type>
                 <scope>compile</scope>
         </dependency>
         <dependency>
                 <groupId>net.sf.dozer</groupId>
                 <artifactId>dozer</artifactId>
                 <version>${net.sf.dozer.version}</version>
                 <type>jar</type>
                 <scope>compile</scope>
         </dependency>
         <dependency>
                 <groupId>junit</groupId>
                 <artifactId>junit</artifactId>
                 <version>${junit.version}</version>
                 <scope>compile</scope>
         </dependency>
         <dependency>
                 <groupId>org.hibernate</groupId>
                 <artifactId>hibernate-core</artifactId>
                 <version>${hibernate.version}</version>
                 <type>jar</type>
                 <scope>compile</scope>
         </dependency>
   </dependencies>
 </project>