• SiteAnalyzer, технический и SEO-анализ сайтов

maven и ошибки связаные с ним..

  • Автор темы Автор темы WeRn
  • Дата начала Дата начала

WeRn

Ефрейтор
Доброго вечера, есть кто разбирается в компиляции с использованием Eclipse & Maven ?

Суть ошибки:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.11:test (default-test) on project al-game: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.11:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.11 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-surefire-plugin:jar:2.11 -> org.apache.maven.surefire:surefire-booter:jar:2.11: Failed to read artifact descriptor for org.apache.maven.surefire:surefire-booter:jar:2.11: Could not transfer artifact org.apache.maven.surefire:surefire-booter:pom:2.11 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
 
это не ошибка а мавену не те координаты были даны для загрузки плагинов (libs)
 
Я не могу понять, на что конкретно он ругается в pom, т.к. там все указано нормально.
 
смотри на 2.7 у мну pom.xml с которым в отладке сборку запускаю
<?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.aiongame</groupId>
<artifactId>al-game</artifactId>
<version>2.7</version>
<name>Aion | Game Server</name>
<packaging>jar</packaging>

<scm>
<developerConnection>scm:svn:https://subversion.assembla.com/svn/atreia-27/trunk/AL-Game</developerConnection>
<url>http://atreiaworld.com/</url>
</scm>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<build>
<sourceDirectory>src</sourceDirectory>
<testSourceDirectory>test</testSourceDirectory>
<resources>
<resource>
<directory>data/scripts/system/database</directory>
<excludes>
<exclude> **/*.java </exclude>
<exclude> **/*.properties </exclude>
<exclude> **/*.xml </exclude>
</excludes>
</resource>
<resource>
<directory>data/scripts/system/handlers</directory>
<excludes>
<exclude> **/*.java </exclude>
<exclude> **/*.properties </exclude>
<exclude> **/*.xml </exclude>
</excludes>
</resource>
</resources>
<finalName>AL-Game</finalName>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.0</version>
<configuration>
<providerImplementations>
<svn>javasvn</svn>
</providerImplementations>
<revisionOnScmFailure>undefined</revisionOnScmFailure>
</configuration>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<compilerVersion>1.6</compilerVersion>
<showWarnings>true</showWarnings>
<debug>true</debug>
<encoding>UTF-8</encoding>
<excludes>
<exclude>data/**</exclude>
</excludes>
<compilerArgument>-XDignore.symbol.file</compilerArgument>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2.1</version>
<configuration>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<archive>
<manifestEntries>
<POMVersion>${project.version}</POMVersion>
<Revision>${buildNumber}</Revision>
<Date>${maven.build.timestamp}</Date>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.11</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>

<repositories>
<repository>
<id>java.net-Public</id>
<name>Maven Java Net Snapshots and Releases</name>
<url>https://maven.java.net/content/repositories/public/</url>
</repository>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>jboss-public-repository</id>
<name>JBoss Public Maven Repository Group</name>
<url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>org.aionlightning</groupId>
<artifactId>al-commons</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>11.0.1</version>
</dependency>
<dependency>
<groupId>com.googlecode.lambdaj</groupId>
<artifactId>lambdaj</artifactId>
<version>2.3.3</version>
</dependency>
<dependency>
<groupId>net.sf.trove4j</groupId>
<artifactId>trove4j</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.6.4</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>com.jolbox</groupId>
<artifactId>bonecp</artifactId>
<version>0.7.1.RELEASE</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>1.3.9</version>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.0</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.18</version>
</dependency>
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz</artifactId>
<version>2.1.3</version>
</dependency>
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.15.0-GA</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.1</version>
<type>jar</type>
</dependency>
<!-- https://mvnrepository.com/artifact/org.jdom/jdom2 -->
<dependency>
<groupId>org.jdom</groupId>
<artifactId>jdom2</artifactId>
<version>2.0.6</version>
</dependency>
</dependencies>
</project>
 
Последнее редактирование модератором:
главное чтоб каждая либа совпадала с той что в сборке папка libs, там ведь Ant компилит, а ты все теже либы в dependence закинь чтоб скачивалось и потом в любой среде разработки нетбинс или инДжейИдея или тот же эклипс можешь пиздячить со сборкой в онлайне что хочешь и там же при изменении видеть что происходит
 
ну вот это кому как я сначала тоже не врубился) немного попользовался и стало интересно.
 
Назад
Сверху