Problema crear amp con mvn package

cancel
Showing results for 
Search instead for 
Did you mean: 
sapodoble_3589
Member II

Problema crear amp con mvn package

Estoy intentando adaptar un AMP que tengo para la versión 4.0.b  a la versión 4.2.b

Mediante maven creo el proyecto seiguiendo el manual de Alfresco Maven Plugin 1.0  (https://artifacts.alfresco.com/nexus/content/repositories/alfresco-docs/alfresco-lifecycle-aggregato...)

Lo creo de la siguiente forma manualmente:
mvn archetype:generate -DarchetypeGroupId=org.alfresco.maven.archetype -DarchetypeArtifactId=alfresco-amp-archetype -DarchetypeVersion=1.0 -DgroupId=es.micasa -DartifactId=alfresco -Dversion=1.0-SNAPSHOT -DarchetypeRepository=https://artifacts.alfresco.com/nexus/content/repositories/releases -DinteractiveMode=false

La descarga la hace correctamente y crea el proyecto.

Cuando le digo a maven que empaquete me da el siguiente problema: mvn package

[INFO] ————————————————————————
[INFO] Building alfresco AMP project 1.0.1
[INFO] ————————————————————————
[WARNING] The POM for org.hibernate:hibernate:jar:3.2.6-alfresco-patched is missing, no dependency information available
[WARNING] The POM for org.quartz-scheduler:quartz:jar:1.8.3-alfresco-patched is missing, no dependency information available
[WARNING] The POM for org.springframework.extensions.surf:spring-surf-core-configservice:jar:1.2.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for javax.transaction:jta:jar:1.0.1b is missing, no dependency information available
[WARNING] The POM for org.apache.chemistry:chemistry-abdera:jar:0.1-incubating-unreleased is missing, no dependency information available
[WARNING] The POM for org.acegisecurity:acegi-security:jar:0.8.2_patched is missing, no dependency information available
[WARNING] The POM for xpp3:xpp3:jar:1.1.3_8 is missing, no dependency information available
[WARNING] The POM for org.apache.tika:tika-core:jar:1.3-20120801 is missing, no dependency information available
[WARNING] The POM for org.apache.tika:tika-parsers:jar:1.3-20120801 is missing, no dependency information available
[WARNING] The POM for org.gagravarr:vorbis-java-core:jar:0.2-20120518 is missing, no dependency information available
[WARNING] The POM for org.gagravarr:vorbis-java-tika:jar:0.2-20120518 is missing, no dependency information available
[WARNING] The POM for org.jbpm:jbpm-jpdl:jar:3.3.1 is missing, no dependency information available
[WARNING] The POM for rhino:js:jar:1.6R7-patched is missing, no dependency information available
[WARNING] The POM for com.sun.pdfview:pdfrenderer:jar:0.9.1-patched is missing, no dependency information available
[WARNING] The POM for net.sf.xmlrpc:xmlrpc:jar:1.3 is missing, no dependency information available
[WARNING] The POM for com.benfante:JSlideShare:jar:0.6 is missing, no dependency information available
[WARNING] The POM for org.jbpm:jbpm-identity:jar:3.3.1 is missing, no dependency information available
[WARNING] The POM for org.freemarker:freemarker:jar:2.3.18-alfresco-patched is missing, no dependency information available
[WARNING] The POM for org.apache.cxf:cxf:jar:2.2.2-patched is missing, no dependency information available
[WARNING] The POM for org.apache.pdfbox:pdfbox:jar:1.7.0-alfresco-patched is missing, no dependency information available
[WARNING] The POM for net.sf:bliki:jar:3.0.2 is missing, no dependency information available
[WARNING] The POM for com.artofsolving:jodconverter:jar:2.1.0-alfresco-patched is missing, no dependency information available
[WARNING] The POM for org.openoffice:jut:jar:1.0-alfresco is missing, no dependency information available
[WARNING] The POM for org.apache.poi:poi:jar:3.9-beta1-20120801 is missing, no dependency information available
[WARNING] The POM for org.apache.poi:poi-ooxml:jar:3.9-beta1-20120801 is missing, no dependency information available
[WARNING] The POM for org.apache.poi:poi-scratchpad:jar:3.9-beta1-20120801 is missing, no dependency information available
[WARNING] The POM for org.springframework.extensions.surf:spring-webscripts:jar:1.2.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.springframework.extensions.surf:spring-webscripts-api:jar:1.2.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.springframework.social:spring-social-linkedin:jar:1.0.0-20110711 is missing, no dependency information available
[WARNING] The POM for com.google.gdata:com.google.gdata.gdata-core:jar:1.0 is missing, no dependency information available
[WARNING] The POM for com.google.gdata:com.google.gdata.gdata-media:jar:1.0 is missing, no dependency information available
[WARNING] The POM for com.google.gdata:com.google.gdata.gdata-client:jar:1.0 is missing, no dependency information available
[WARNING] The POM for com.google.gdata:com.google.gdata.gdata-docs:jar:3.0 is missing, no dependency information available
[WARNING] The POM for com.google.gdata:gdata-youtube:jar:2.0 is missing, no dependency information available
[WARNING] The POM for org.activiti:activiti-engine:jar:5.10-alf-20120918 is missing, no dependency information available
[WARNING] The POM for org.activiti:activiti-spring:jar:5.10-alf-20120918 is missing, no dependency information available
[INFO] ————————————————————————
[INFO] BUILD FAILURE
[INFO] ————————————————————————
[INFO] Total time: 2.688s
[INFO] Finished at: Thu Nov 08 12:47:10 CET 2012
[INFO] Final Memory: 10M/216M
[INFO] ————————————————————————
[ERROR] Failed to execute goal on project alfresco: Could not resolve dependencies for project es.micasa:alfresco:amp:1.0.1: The following artifacts could not be resolved: commons-dbcp:commons-dbcp:jar:patched:1.4, org.jbpm:jbpm-jpdl:jar:3.3.1, rhino:js:jar:1.6R7-patched, com.sun.pdfview:pdfrenderer:jar:0.9.1-patched, net.sf.xmlrpc:xmlrpc:jar:1.3, com.benfante:JSlideShare:jar:0.6, org.jbpm:jbpm-identity:jar:3.3.1, org.freemarker:freemarker:jar:2.3.18-alfresco-patched, org.apache.cxf:cxf:jar:2.2.2-patched, org.apache.pdfbox:pdfbox:jar:1.7.0-alfresco-patched, net.sf:bliki:jar:3.0.2, com.artofsolving:jodconverter:jar:2.1.0-alfresco-patched, org.openoffice:jut:jar:1.0-alfresco, org.apache.poi:poi:jar:3.9-beta1-20120801, org.apache.poi:poi-ooxml:jar:3.9-beta1-20120801, org.apache.poi:poi-scratchpad:jar:3.9-beta1-20120801, org.springframework.extensions.surf:spring-surf-core-configservice:jar:1.2.0-SNAPSHOT, org.springframework.extensions.surf:spring-webscripts:jar:1.2.0-SNAPSHOT, org.springframework.extensions.surf:spring-webscripts-api:jar:1.2.0-SNAPSHOT, org.springframework.social:spring-social-linkedin:jar:1.0.0-20110711, com.google.gdata:com.google.gdata.gdata-core:jar:1.0, com.google.gdata:com.google.gdata.gdata-media:jar:1.0, com.google.gdata:com.google.gdata.gdata-client:jar:1.0, com.google.gdata:com.google.gdata.gdata-docs:jar:3.0, com.google.gdata:gdata-youtube:jar:2.0, org.activiti:activiti-engine:jar:5.10-alf-20120918, org.activiti:activiti-spring:jar:5.10-alf-20120918, org.hibernate:hibernate:jar:3.2.6-alfresco-patched, org.mybatis:mybatis:jar:patched:3.0.4, org.quartz-scheduler:quartz:jar:1.8.3-alfresco-patched, javax.transaction:jta:jar:1.0.1b, org.apache.chemistry:chemistry-abdera:jar:0.1-incubating-unreleased, org.acegisecurity:acegi-security:jar:0.8.2_patched, xpp3:xpp3:jar:1.1.3_8, org.apache.tika:tika-core:jar:1.3-20120801, org.apache.tika:tika-parsers:jar:1.3-20120801, org.gagravarr:vorbis-java-core:jar:0.2-20120518, org.gagravarr:vorbis-java-tika:jar:0.2-20120518: Failure to find commons-dbcp:commons-dbcp:jar:patched:1.4 in http://devel.uji.es/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [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/DependencyResolutionException


¿Alguna idea de lo que puede estar pasando?

Un saludo y gracias
2 Replies
sapodoble_3589
Member II

Re: Problema crear amp con mvn package

Por si le sirve  a alguien, el problema que me estaba dando es el proxy de repositorios maven que usamos. En el momento que lo hemos desactivarlo ha empezado a descargar los paquetes correctamente y funcionar con normalidad
sapodoble_3589
Member II

Re: Problema crear amp con mvn package

Hola de nuevo, me he encontrado con un nuevo problemilla, al intentar usar las clase:
import org.alfresco.web.app.Application;
Para usarla incluyo en el pom.xml
 
      <dependency>
           <groupId>org.alfresco</groupId>
           <artifactId>alfresco-web-client</artifactId>
           <version>4.2.b</version>
           <type>pom</type>
      </dependency>
En ese momento da el siguiente error:

Missing artifact org.alfresco:alfresco-web-framework-commons:war:webapp:4.2.b-SNAPSHOT

¿Alguna idea?

Un saludo