Could not resolve dependencies for project Maven
Bonjour,
Ayant importé par VPN un projet sur mon ordinateur, j'ai besoin de le compiler avec maven.
Dans la documentation du projet, il est indiqué qu'il faut lancer la commande mvn clean package
Voici le résultat de la commande :
Code:
1 2
| [ERROR] Failed to execute goal on project integration-archetype-batch: Could not resolve dependencies for project com.xxxxxxx.batch.packaging:integration-archetype-batch:jar:1.0-SNAPSHOT: Failed to collect dependencies at com.xxxxxxx.product.batch:mediation-fileimport-job:jar:7.0 -> com.xxxxxxx.product.batch:mediation-template:jar:7.0 -> com.xxxxxxx.product.batch:mediation-impl:jar:7.0 -> com.xxxxxxx.product.batch:batch-impl:jar: 7.0 -> com.xxxxxxx.product.framework:jdbc-support:jar:7.0 -> oracle.jdbc:ojdbc7:jar:12.1.0.2: Failed to read artifact descriptor for oracle.jdbc:ojdbc7:jar:12.1.0.2: Could not transfer artifact oracle.jdbc:ojdbc7:pom:12.1
.0.2 from/to xxxxxxx-releases (http://grzmvn02.xxxxxxx.at:8081/nexus/content/groups/extern): Ceci est habituellement une erreur temporaire qui se produit durant la résolution du nom d?hôte et qui signifie que le serveur local n?a pas reçu de réponse d?un serveur faisant autorité: Unknown host Ceci est habituellement une erreur temporaire qui se produit durant la résolution du nom d'hôte et qui signifie que le serveur local n?a pas reçu de réponse d?un serveur faisant autorité -> [Help 1] |
J'ai vu sur internet diverses solutions possibles :
Code:
1 2 3 4 5 6
| <repository>
<id>com.springsource.repository.bundles.external</id>
<name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name>
<url>http://grzmvn02.xxxxxxxxxx.at:8081/nexus/content/groups/extern</url>
</repository>
</repositories> |
Code:
mvn clean install -U
Code:
mvn --update-snapshots clean install
Code:
mvn clean install -U Dmaven.repo.local=localrepo
Forcer la mise à jour du repo Maven à travers Eclipse
mais aucunes n'a fonctionné...
Voici le pom.xml :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
| <?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.xxxxxxx.batch.packaging</groupId>
<artifactId>packaging</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>integration-archetype-batch</artifactId>
<packaging>jar</packaging>
<properties>
<archive.extensionClass>com.xxxxxxx.archiving.ext.boot.BootExtension</archive.extensionClass>
<archive.templateDirectory>${project.build.directory}/archive</archive.templateDirectory>
<archive.configXmlFile>${archive.templateDirectory}/config.xml,${basedir}/integration-archetype-batch-config.xml</archive.configXmlFile>
<archive.target />
<archive.defaultTarget />
<archive.skip>false</archive.skip>
<archive.format>zip</archive.format>
<archive.verbose>false</archive.verbose>
<archive.skipJre>true</archive.skipJre>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-archive-template</id>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.xxxxxxx</groupId>
<artifactId>boot-archive-template</artifactId>
<outputDirectory>${archive.templateDirectory}</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
<execution>
<id>unpack-jre</id>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.oracle.java</groupId>
<artifactId>server-jre</artifactId>
<version>1.7.0_65</version>
<type>tar.gz</type>
<classifier>linux-x64</classifier>
<outputDirectory>${archive.templateDirectory}/jre</outputDirectory>
</artifactItem>
</artifactItems>
<skip>${archive.skipJre}</skip>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.xxxxxxx</groupId>
<artifactId>archiving-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.xxxxxxx.product.batch</groupId>
<artifactId>mediation-fileimport-job</artifactId>
</dependency>
<dependency>
<groupId>com.xxxxxxx.product.batch</groupId>
<artifactId>mediation-reprocess-job</artifactId>
</dependency>
<dependency>
<groupId>com.xxxxxxx.product.batch</groupId>
<artifactId>rating-job</artifactId>
</dependency>
</dependencies>
<repositories>
<repository>
<id>com.springsource.repository.bundles.external</id>
<name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name>
<url>http://grzmvn02.xxxxxxx.at:8081/nexus/content/groups/extern</url>
</repository>
</repositories>
</project> |
Pourriez-vous m'aider?
Merci par avance