2014-09-01 2 views
0

최대 절전 모드 및 c3p0 JavaSE 응용 프로그램에 대한 올바른 종속성입니까? 내 pom.xml 현재 :netbeans : c3p0 및 최대 절전 모드에 대한 종속성

<?xml version="1.0" encoding="UTF-8"?> 
<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>com.mycompany</groupId> 
    <artifactId>crud</artifactId> 
    <version>1.0-SNAPSHOT</version> 
    <packaging>jar</packaging> 
    <repositories> 
     <repository> 
      <id>unknown-jars-temp-repo</id> 
      <name>A temporary repository created by NetBeans for libraries and jars it could not identify. Please replace the dependencies in this repository with correct ones and delete this repository.</name> 
      <url>file:${project.basedir}/lib</url> 
     </repository> 
    </repositories> 
    <dependencies> 
     <dependency> 
      <groupId>org.hibernate</groupId> 
      <artifactId>hibernate-entitymanager</artifactId> 
      <version>4.1.8.Final</version> 
     </dependency> 
     <dependency> 
      <groupId>unknown.binary</groupId> 
      <artifactId>hibernate-jpa-2.0-api-1.0.1.Final</artifactId> 
      <version>SNAPSHOT</version> 
     </dependency> 
     <dependency> 
      <groupId>unknown.binary</groupId> 
      <artifactId>mysql-connector-java-5.1.23-bin</artifactId> 
      <version>SNAPSHOT</version> 
     </dependency> 
     <dependency> 
      <groupId>c3p0</groupId> 
      <artifactId>c3p0</artifactId> 
      <version>0.9.1.2</version> 
     </dependency> 
    </dependencies> 
    <properties> 
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 
     <maven.compiler.source>1.7</maven.compiler.source> 
     <maven.compiler.target>1.7</maven.compiler.target> 
    </properties> 
</project> 

이 넷빈즈에서, 그리고 심지어 받는다는에 넷빈즈 가이드를 참조 후, 클릭하는 것에 매우 명확하지 않다.

최대 절전 모드 및 c3p0 요구 사항을 충족합니까?

답변

1

이러한 종속성은 라이브러리 메커니즘 (Tools/Library Manager)을 통해 IDE에 의해 추가되었으며 적절한 Maven GAV (GroupID-ArtifactID- 버전)를 인식 할 수 없었습니다 (몇 가지 전략이 있지만 분명히 모두 실패했습니다). 생성 된 pom 스 니펫은 모든 것이 로컬로 작동하도록하는 대체 기능입니다. 이상적으로는 공용 저장소에서 적절한 GAV로 수동으로 대체하는 것이 좋습니다.

관련 문제