AnsweredAssumed Answered

Maven - Addon - Problème installation

Question asked by deeloo on Sep 26, 2016
Latest reply on Sep 27, 2016 by slanglois

Bonjour,

 

J'ai téléchargé un addon GitHub - AFaust/ootbee-support-tools: "Liberated" variant of the Alfresco Support Tools addon (started as personal hack-…  et après l'avoir décompressé dans mon dossier se présente sous la forme ci-dessous, copie d'écran de l'arborescence sous Windows mais je suis sous Linux  :

Jusqu'ici tout va bien. Le problème est que je ne sais comment "l'installer".

Dans la notice, il est indiqué que je dois utiliser "Maven" pour "fabriquer" mon fichier .amp (désolé pour le vocabulaire utilisé mais je suis complétement novice et je n'ai pas le bon terme technique )

J'ai tout de même réussi à installer Maven et Java (enfin je pense) :

Vérification avec la commande mvn -version

# mvn -version
Apache Maven 2.2.1 (rdebian-14)
Java version: 1.7.0_111
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: fr_FR, platform encoding: UTF-8
OS name: "linux" version: "3.13.0-24-generic" arch: "amd64" Family: "unix"

 

Et lorsque je veux l'installer, il cherche systématiquement à télécharger le SDK http://repo1.maven.org/maven2/org/alfresco/maven/alfresco-sdk-parent/2.2.0/alfresco-sdk-parent-2.2.0.pom , message d'erreur en rouge

 

# mvn install -X
+ Error stacktraces are turned on.
Apache Maven 2.2.1 (rdebian-14)
Java version: 1.7.0_111
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: fr_FR, platform encoding: UTF-8
OS name: "linux" version: "3.13.0-24-generic" arch: "amd64" Family: "unix"
[DEBUG] Building Maven user-level plugin registry from: '/root/.m2/plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: '/usr/share/maven2/conf/plugin-registry.xml'
[INFO] Scanning for projects...
[DEBUG] Searching for parent-POM: org.alfresco.maven:alfresco-sdk-parent:pom:2.2.0 of project: org.orderofthebee.addons:ootbee-support-tools-parent:pom:0.0.1.0-SNAPSHOT in relative path: ../pom.xml
[DEBUG] Parent-POM: org.alfresco.maven:alfresco-sdk-parent:pom:2.2.0 not found in relative path: ../pom.xml
[DEBUG] Retrieving parent-POM: org.alfresco.maven:alfresco-sdk-parent:pom:2.2.0 for project: org.orderofthebee.addons:ootbee-support-tools-parent:pom:0.0.1.0-SNAPSHOT from the repository.
[DEBUG] Trying repository central
[DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
[DEBUG] Checking for pre-existing User-Agent configuration.
[DEBUG] Adding User-Agent configuration.
[DEBUG] Connecting to repository: 'central' with url: 'http://repo1.maven.org/maven2'.
Downloading: http://repo1.maven.org/maven2/org/alfresco/maven/alfresco-sdk-parent/2.2.0/alfresco-sdk-parent-2.2.0.pom
[DEBUG] Error transferring file: repo1.maven.org
org.apache.maven.wagon.TransferFailedException: Error transferring file: repo1.maven.org
        at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:143)
        at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
        at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
        at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
        at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:546)
        at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:427)
        at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:382)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:558)
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1392)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
        at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
        at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.net.UnknownHostException: repo1.maven.org
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:579)
        at java.net.Socket.connect(Socket.java:528)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
        at sun.net.www.http.HttpClient.New(HttpClient.java:308)
        at sun.net.www.http.HttpClient.New(HttpClient.java:326)
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:998)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:934)
        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:852)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1302)
        at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
        at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:115)
        ... 28 more
[DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
[WARNING] Unable to get resource 'org.alfresco.maven:alfresco-sdk-parent:pom:2.2.0' from repository central (http://repo1.maven.org/maven2): Error transferring file: repo1.maven.org
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.orderofthebee.addons:ootbee-support-tools-parent:pom:0.0.1.0-SNAPSHOT

Reason: Cannot find parent: org.alfresco.maven:alfresco-sdk-parent for project: org.orderofthebee.addons:ootbee-support-tools-parent:pom:0.0.1.0-SNAPSHOT for project org.orderofthebee.addons:ootbee-support-tools-parent:pom:0.0.1.0-SNAPSHOT


[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.alfresco.maven:alfresco-sdk-parent for project: org.orderofthebee.addons:ootbee-support-tools-parent:pom:0.0.1.0-SNAPSHOT for project org.orderofthebee.addons:ootbee-support-tools-parent:pom:0.0.1.0-SNAPSHOT
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: org.alfresco.maven:alfresco-sdk-parent for project: org.orderofthebee.addons:ootbee-support-tools-parent:pom:0.0.1.0-SNAPSHOT for project org.orderofthebee.addons:ootbee-support-tools-parent:pom:0.0.1.0-SNAPSHOT
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1396)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
        at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
        at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
        ... 12 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.alfresco.maven:alfresco-sdk-parent' not found in repository: Unable to download the artifact from any repository

  org.alfresco.maven:alfresco-sdk-parent:pom:2.2.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

 for project org.alfresco.maven:alfresco-sdk-parent
        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:605)
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1392)
        ... 18 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository

  org.alfresco.maven:alfresco-sdk-parent:pom:2.2.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:228)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:558)
        ... 19 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository
        at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:404)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
        ... 21 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8 seconds
[INFO] Finished at: Mon Sep 26 15:21:55 CEST 2016
[INFO] Final Memory: 4M/180M
[INFO] ------------------------------------------------------------------------

 

 

Pourtant, j'arrive bien à télécharger le fichier en question donc il ne s'agit pas d'un problème lié au proxy de mon entreprise

# wget 'http://repo1.maven.org/maven2/org/alfresco/maven/alfresco-sdk-parent/2.2.0/alfresco-sdk-parent-2.2.0.pom'


Et même en spécifiant le chemin d'accès

# mvn  install:install-file -Dfile=chemin d'accès du alfresco-sdk -DpomFile=chemin d'accès du pom

J'ai toujours le même message d'erreur

 

Alors voilà, je ne sais comment faire pour installer l'addon et je souhaiterai une aide à ce sujet.

 

Je vous remercie d'avance

 

 

 

Attachments

Outcomes