1

Я пытаюсь запустить сайт maven. Но на данный момент четыре часа у меня возникает проблема с зависимостью .Maven Site scannotation.jar

Когда я бегу Maven я получаю этот провал

[ВНИМАНИЕ] Не удается создать проект Maven для org.scannotation: scannotation: POM: 1.0.3 из хранилища. org.apache.maven.project.ProjectBuildingException: Ошибка разрешение проекта артефакта: Неспособность найти org.scannotation: scannotation: П: 1.0.3 в http://repo.maven.apache.org/maven2 было кэшируется в локальном хранилище , разрешение не будет повторной попытки до тех пор, обновить интервал центрального истекло или обновления принуждают для проекта org.scannotation: scannotation: П: 1.0.3

Вот мой пОМ - файл:

<?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>de.klinikumlmu.server</groupId> 
    <artifactId>KlinikumServer</artifactId> 
    <version>0.0.1-SNAPSHOT</version> 
    <name>KlinikumServer</name> 

    <properties> 
     <sesame.version>2.7.0</sesame.version> 
     <resteasy.version>2.3.6.Final</resteasy.version> 
     <slf4j.version>1.7.5</slf4j.version> 
     <arquillian.version>1.0.3.Final</arquillian.version> 
     <shrinkwrap-bom.version>1.1.2</shrinkwrap-bom.version> 
     <shrinkwrap-resolver-bom.version>2.0.0-beta-3</shrinkwrap-resolver-bom.version> 
     <junit.version>4.8.1</junit.version> 
     <apache-http.version>4.2.4</apache-http.version> 
     <apache-commons.version>1.3.2</apache-commons.version> 
     <maven-compiler.version>3.1</maven-compiler.version> 
     <maven-war.version>2.3</maven-war.version> 
     <maven-surefire.version>2.12</maven-surefire.version> 
     <maven-checkstyle.version>2.10</maven-checkstyle.version> 
    </properties> 
    <packaging>war</packaging> 

    <dependencyManagement> 

     <dependencies> 
      <dependency> 
       <groupId>org.jboss.spec</groupId> 
       <artifactId>jboss-javaee-6.0</artifactId> 
       <version>1.0.0.Final</version> 
       <type>pom</type> 
       <scope>provided</scope> 
      </dependency> 
      <dependency> 
       <groupId>org.jboss.shrinkwrap</groupId> 
       <artifactId>shrinkwrap-bom</artifactId> 
       <version>${shrinkwrap-bom.version}</version> 
       <type>pom</type> 
       <scope>import</scope> 
      </dependency> 
      <dependency> 
       <groupId>org.jboss.shrinkwrap.resolver</groupId> 
       <artifactId>shrinkwrap-resolver-bom</artifactId> 
       <version>${shrinkwrap-resolver-bom.version}</version> 
       <type>pom</type> 
       <scope>import</scope> 
      </dependency> 
      <dependency> 
       <groupId>org.jboss.arquillian</groupId> 
       <artifactId>arquillian-bom</artifactId> 
       <version>${arquillian.version}</version> 
       <scope>import</scope> 
       <type>pom</type> 
      </dependency> 
      <dependency> 
       <groupId>org.scannotation</groupId> 
       <artifactId>scannotation</artifactId> 
       <version>1.0.3</version> 
       </dependency>  
     </dependencies> 
    </dependencyManagement> 

    <dependencies> 
     <dependency> 
      <groupId>javassist</groupId> 
      <artifactId>javassist</artifactId> 
      <version>3.12.1.GA</version> 
     </dependency> 

     <dependency> 
      <groupId>org.apache.openejb</groupId> 
      <artifactId>tomee-embedded</artifactId> 
      <version>1.5.2</version> 
     </dependency> 
     <dependency> 
      <groupId>org.apache.openejb</groupId> 
      <artifactId>javaee-api</artifactId> 
      <version>6.0-5</version> 
      <scope>provided</scope> 
     </dependency> 
     <dependency> 
      <groupId>org.openrdf.sesame</groupId> 
      <artifactId>sesame-runtime</artifactId> 
      <version>${sesame.version}</version> 
     </dependency> 
     <dependency> 
      <groupId>org.jboss.resteasy</groupId> 
      <artifactId>resteasy-jaxrs</artifactId> 
      <version>${resteasy.version}</version> 
     </dependency> 
     <dependency> 
      <groupId>org.jboss.resteasy</groupId> 
      <artifactId>resteasy-cdi</artifactId> 
      <version>${resteasy.version}</version> 
      <exclusions> 
       <exclusion> 
        <groupId>org.jboss.resteasy</groupId> 
        <artifactId>resteasy-jaxrs</artifactId> 
       </exclusion> 
      </exclusions> 
     </dependency> 
     <dependency> 
      <groupId>org.jboss.resteasy</groupId> 
      <artifactId>resteasy-jaxb-provider</artifactId> 
      <version>${resteasy.version}</version> 
     </dependency> 
     <dependency> 
      <groupId>org.slf4j</groupId> 
      <artifactId>slf4j-api</artifactId> 
      <version>${slf4j.version}</version> 
     </dependency> 
     <dependency> 
      <groupId>org.slf4j</groupId> 
      <artifactId>slf4j-log4j12</artifactId> 
      <version>${slf4j.version}</version> 
      <scope>test</scope> 
     </dependency> 
     <dependency> 
      <groupId>junit</groupId> 
      <artifactId>junit</artifactId> 
      <version>${junit.version}</version> 
      <scope>test</scope> 
     </dependency> 
     <dependency> 
      <groupId>org.apache.httpcomponents</groupId> 
      <artifactId>httpcore</artifactId> 
      <version>${apache-http.version}</version> 
     </dependency> 
     <dependency> 
      <groupId>org.apache.httpcomponents</groupId> 
      <artifactId>httpclient</artifactId> 
      <version>${apache-http.version}</version> 
     </dependency> 
     <dependency> 
      <groupId>org.apache.commons</groupId> 
      <artifactId>commons-io</artifactId> 
      <version>${apache-commons.version}</version> 
     </dependency> 

     <dependency> 
      <groupId>org.jboss.arquillian.junit</groupId> 
      <artifactId>arquillian-junit-container</artifactId> 
      <scope>test</scope> 
     </dependency> 

     <dependency> 
      <groupId>org.apache.openejb</groupId> 
      <artifactId>arquillian-tomee-embedded</artifactId> 
      <version>1.0.0</version> 
     </dependency> 

     <dependency> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-project-info-reports-plugin</artifactId> 
      <version>2.6</version> 
      <type>maven-plugin</type> 
     </dependency> 

    </dependencies> 

    <build> 
     <plugins> 
      <plugin> 
       <artifactId>maven-compiler-plugin</artifactId> 
       <version>3.1</version> 
       <configuration> 
        <source>1.6</source> 
        <target>1.6</target> 
       </configuration> 
      </plugin> 
      <plugin> 
       <groupId>org.apache.maven.plugins</groupId> 
       <artifactId>maven-war-plugin</artifactId> 
       <version>2.3</version> 
       <configuration> 
        <warSourceDirectory>WebContent</warSourceDirectory> 
        <failOnMissingWebXml>false</failOnMissingWebXml> 
       </configuration> 
      </plugin> 
      <plugin> 
       <groupId>org.apache.openejb.maven</groupId> 
       <artifactId>tomee-maven-plugin</artifactId> 
       <version>1.5.2</version> 
       <configuration> 
        <tomeeVersion>1.5.2</tomeeVersion> 
       </configuration> 
      </plugin> 
     </plugins> 
    </build> 

    <reporting> 
     <plugins> 
      <plugin> 
       <groupId>org.apache.maven.plugins</groupId> 
       <artifactId>maven-checkstyle-plugin</artifactId> 
       <version>2.10</version> 
      </plugin> 
      <plugin> 
       <artifactId>maven-site-plugin</artifactId> 
       <version>3.3</version> 
       <configuration> 
       <locales>en</locales> 
       </configuration> 
       </plugin> 
      <plugin> 
       <groupId>org.apache.maven.plugins</groupId> 
       <artifactId>maven-surefire-plugin</artifactId> 
       <version>2.12</version> 
      </plugin> 
     </plugins> 
    </reporting> 
</project> 

Я пробовал много разных вещей из другой версии, чтобы связать банку прямо с контуром сборки.

ответ

0

Убедитесь, что у вас есть правильная настройка хранилища для библиотеки scannotation.

Согласно mavenhub.com это должно быть объявлено либо в вашем pom.xml или в settings.xml:

<repository> 
    <id>thirdparty-releases</id> 
    <name>JBoss Thirdparty Releases</name> 
    <url>https://repository.jboss.org/nexus/content/repositories/thirdparty-releases</url> 
</repository> 

 Смежные вопросы

  • Нет связанных вопросов^_^