标签:style blog http io ar color os 使用 sp
Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-12T04:58:1
0+08:00)
Maven home: D:\Program Files (x86)\maven3.2.3\bin\..
Java version: 1.7.0_05, vendor: Oracle Corporation
Java home: D:\Program Files (x86)\Java\jdk1.7.0_05\jre
Default locale: zh_CN, platform encoding: GBK
OS name: "windows nt (unknown)", version: "6.2", arch: "x86", family: "windows"
|
<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> <groupId>MavenProject</groupId> <artifactId>first</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>first</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId> <version>2.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>4.1.3.RELEASE</version> </dependency> </dependencies> </project> |
提供一个Maven常用的中心仓库的网址http://www.mvnrepository.com/,不论你想要什么jar包,只要在搜索框中搜索即可,例如搜索hibernate,点击超链接,找到Maven,直接将maven文件信息复制到pom.xml中即可下载了。例如
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>4.3.7.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>4.3.7.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>3.5.6-Final</version>
</dependency>
|
标签:style blog http io ar color os 使用 sp
原文地址:http://blog.csdn.net/shijiebei2009/article/details/41872081