0 0

Maven文件配置为什么jar包没有下载下来0

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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
      <groupId>com.dreamhome.cms</groupId>
      <artifactId>cms-parent</artifactId>
      <version>0.0.1-SNAPSHOT</version>
      <relativePath>../cms-parent/pom.xml</relativePath>
  </parent>
  
  <groupId>com.cms.common</groupId>
  <artifactId>database</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>jar</packaging>

  <name>database</name>
  <url>http://maven.apache.org</url>

  <dependencies>
        <dependencies>
            <!-- hibernate core -->
            <dependency>
				<groupId>org.hibernate</groupId>
				<artifactId>hibernate-core</artifactId>
			</dependency>
			<!-- spring context -->
			<dependency>
				<groupId>org.springframework</groupId>
				<artifactId>spring-context</artifactId>
			</dependency>
			<!-- spring core -->
            <dependency>
				<groupId>org.springframework</groupId>
				<artifactId>spring-core</artifactId>
			</dependency>
			<!-- spring beans -->
            <dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-beans</artifactId>
		</dependency>
		<!-- spring test -->
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-test</artifactId>
			<scope>test</scope>
		</dependency>
		<!-- spring aop -->
         <dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-aop</artifactId>
		</dependency>
		<!-- junit -->
        <dependency>
		      <groupId>junit</groupId>
		      <artifactId>junit</artifactId>
		      <scope>test</scope>
		   </dependency>
		   <!-- mysql --> 
		   <dependency>
				<groupId>mysql</groupId>
				<artifactId>mysql-connector-java</artifactId>
			</dependency>
        </dependencies>
  </dependencies>
</project>



为什么hibernate和spring的jar没有自动下载下来。
2013年6月01日 21:15
  • 大小: 43.5 KB

2个答案 按时间排序 按投票排序

0 0

版本号应该在parent里面有配置,你要确认下你是连的那个仓库。如果是maven中央仓库的话是要访问外网的。如果是私服的话,看看私服上有没有对应版本的jar包

2013年6月16日 17:52
0 0

没有版本号

2013年6月01日 21:58

相关推荐

Global site tag (gtag.js) - Google Analytics