2013-09-07 2 views
1

나는 primefaces 3.5, mysql을 사용하여 간단한 webapp를 가지고 있으며, orm provider로 hibernate를 추가하려고합니다. NetBeans 7.3을 사용합니다. 여기 최대 절전 모드에 대한 의존성을 해결할 수 없습니다

Failed to execute goal on project ogloszenia: Could not resolve dependencies for project com.mycompany:ogloszenia:war:1.0-SNAPSHOT: The following artifacts could not be resolved: org.hibernate:hibernate:jar:3.5.4-Final, javax.sql:jdbc-stdext:jar:2.0, javax.transaction:jta:jar:1.0.1B: Failure to find org.hibernate:hibernate:jar:3.5.4-Final in http://repository.primefaces.org was cached in the local repository, resolution will not be reattempted until the update interval of prime-repo has elapsed or updates are forced -> [Help 1] 

내 치어 조각입니다 : : 내 프로젝트를 빌드 할 때 나는 다음과 같은 오류를 가지고있다

<properties> 
    <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir> 
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 
    <glassfish.embedded-static-shell.jar>/home/arek/glassfish- 3.1.2.2/glassfish/lib/embedded/glassfish-embedded-static-shell.jar</glassfish.embedded- static-shell.jar> 
</properties> 
<dependencies> 
<dependency> 
     <groupId>org.primefaces</groupId> 
     <artifactId>primefaces</artifactId> 
     <version>3.5</version> 
    </dependency> 
    <dependency> 
    <groupId>org.primefaces.themes</groupId> 
    <artifactId>excite-bike</artifactId> 
    <version>1.0.9</version> 
    </dependency> 
    <dependency> 
     <groupId>taglibs</groupId> 
     <artifactId>standard</artifactId> 
     <version>1.1.2</version> 
    </dependency> 
    <dependency> 
     <groupId>org.hibernate</groupId> 
     <artifactId>hibernate</artifactId> 
     <version>3.5.4-Final</version> 
     <scope>compile</scope> 
    </dependency> 
    <dependency> 
     <groupId>org.hibernate</groupId> 
     <artifactId>hibernate-entitymanager</artifactId> 
     <version>3.5.4-Final</version> 
     <scope>compile</scope> 
    </dependency> 
    <dependency> 
     <groupId>javax.sql</groupId> 
     <artifactId>jdbc-stdext</artifactId> 
     <version>2.0</version> 
    </dependency> 
    <dependency> 
     <groupId>javax.transaction</groupId> 
     <artifactId>jta</artifactId> 
     <version>1.0.1B</version> 
    </dependency> 
    <dependency> 
     <groupId>javax</groupId> 
     <artifactId>javaee-web-api</artifactId> 
     <version>6.0</version> 
     <scope>provided</scope> 
    </dependency> 
    <!-- JSF 2 --> 
    <dependency> 
     <groupId>com.sun.faces</groupId> 
     <artifactId>jsf-api</artifactId> 
     <version>2.1.24</version> 
        <scope>provided</scope> 
    </dependency> 
    <dependency> 
     <groupId>com.sun.faces</groupId> 
     <artifactId>jsf-impl</artifactId> 
     <version>2.1.24</version> 
        <scope>provided</scope> 
    </dependency> 
    <dependency> 
     <groupId>javax.servlet</groupId> 
     <artifactId>jstl</artifactId> 
     <version>1.1.2</version> 
        <scope>provided</scope> 
    </dependency> 
    <dependency> 
     <groupId>javax.servlet</groupId> 
     <artifactId>servlet-api</artifactId> 
     <version>2.5</version> 
        <scope>provided</scope> 
    </dependency> 
    <dependency> 
     <groupId>javax.servlet.jsp</groupId> 
     <artifactId>jsp-api</artifactId> 
     <version>2.1</version> 
        <scope>provided</scope> 
    </dependency> 
      <dependency> 
<groupId>javax.faces</groupId> 
<artifactId>jsf-api</artifactId> 
<version>2.1</version> 
    <scope>provided</scope> 
</dependency> 
    <dependency> 
<groupId>mysql</groupId> 
<artifactId>mysql-connector-java</artifactId> 
<version>5.1.26</version> 
</dependency> 
    <dependency> 
<groupId>junit</groupId> 
<artifactId>junit</artifactId> 
<version>4.10</version> 
</dependency> 
</dependencies> 
<build> 
    <plugins> 
     <plugin> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-compiler-plugin</artifactId> 
      <version>2.3.2</version> 
      <configuration> 
       <source>1.7</source> 
       <target>1.7</target> 
       <compilerArguments> 
        <endorseddirs>${endorsed.dir}</endorseddirs> 
       </compilerArguments> 
      </configuration> 
     </plugin> 
     <plugin> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-war-plugin</artifactId> 
      <version>2.1.1</version> 
      <configuration> 
       <failOnMissingWebXml>false</failOnMissingWebXml> 
      </configuration> 
     </plugin> 
     <plugin> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-dependency-plugin</artifactId> 
      <version>2.1</version> 
      <executions> 
       <execution> 
        <phase>validate</phase> 
        <goals> 
         <goal>copy</goal> 
        </goals> 
        <configuration> 
         <outputDirectory>${endorsed.dir}</outputDirectory> 
         <silent>true</silent> 
         <artifactItems> 
          <artifactItem> 
           <groupId>javax</groupId> 
           <artifactId>javaee-endorsed-api</artifactId> 
           <version>6.0</version> 
           <type>jar</type> 
          </artifactItem> 
         </artifactItems> 
        </configuration> 
       </execution> 
      </executions> 
     </plugin> 
    </plugins> 

내가 검색 한 몇 가지 솔루션을 시도했지만 도움이되지 않았다 (나는 저장소를 제거하고 다운로드 다시 등) 누군가가 아이디어를 가지고 있습니까? 도움을 주셔서 감사합니다

답변

0

최대 절전 모드 아티팩트는 사용자가 찾고자하는 최대 절전 모드 코어를 포함하여 더 작은 부분으로 분할되었습니다.

http://mvnrepository.com/artifact/org.hibernate/hibernate-core

+1

감사하지만 작동하지 않았습니다. 왜 응용 프로그램이 http://repository.primefaces.org?hl=ko에서 최대 절전 모드로 전환하려고하는지 궁금하다. org.hibernate : hibernate : jar : 4.0.0.Final in prime-repo (http : //repository.primfaces .ORG) – user978758

+0

당신이 org.hibernate을 찾아 가지고 있기 때문에 :. 최대 절전 모드 코어 : -Dverbose 트리 및 org.hibernate 다운로드하려고하는 유물 참조 : 항아리 은 아마 당신은 MVN 의존하여 종속성을 확인해야 최대 절전 모드 : 항아리 – zenbeni

+1

를 당신은 "org.hibernate을 찾습니다 코어 최대 절전 모드 : 항아리"무엇을 의미합니까? – user978758