Я следую этой ссылке Link для запуска моего спящего режима. Хотя я добавил все необходимые зависимости, но в них возникает следующая ошибка.Я добавил необходимые зависимости, но все еще столкнулся с ошибкой
The following artifacts could not be resolved: javax.security:jacc:jar:1.0,
javax.transaction:jta:jar:1.0.1B: Failure to find javax.security:jacc:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository,
resolution will not be reattempted until the update interval of central
has elapsed or updates are forced -> [Help 1]
Netbeans также отображает следующее сообщение в своем окне свойств.
Проблемы: * Некоторые артефакты зависимостей не находятся в локальном репозитории.
Мои 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>
<groupId>com.myProject</groupId>
<artifactId>hibernateTesting</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>hibernateTesting</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>hibernate</groupId>
<artifactId>hibernate</artifactId>
<version>3.0</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.0-api</artifactId>
<version>1.0.1.Final</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.grlea.log.adapters</groupId>
<artifactId>simple-log-sl4j</artifactId>
<version>1.7</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>javax.transaction</groupId>
<artifactId>jta</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>javax.security</groupId>
<artifactId>jacc</artifactId>
<version>1.0</version>
<type>jar</type>
</dependency>
</dependencies>
</project>
Возможный дубликат [Когда maven говорит: «Разрешение не будет повторно загружено до истечения интервала обновления MyRepo», где указан этот интервал?] (Http://stackoverflow.com/questions/4856307/when-maven- say-resolution-will-not-be-reattempted-until-the-update-interval-of) или http://stackoverflow.com/questions/4701532/force-maven-update или http://stackoverflow.com/questions/12645707/update-interval-of-maven-central-repo или ... –
Это для автономного или JEE-приложения? Если JEE, какая версия? – Perception
@Perception, это SE JDK 7 –