Open ogarcia opened 1 year ago
La verdad es que poner aquí cualquier cosa es como hablar con una pared, es una pena que un proyecto de estas características en donde la comunidad podría aportar muchísimo junto con los desarrolladores tenga tanta desidia por parte de los últimos.
En cualquier caso he solucionado el problema de la siguiente manera:
jmulticard
y clienteafirma-external
:
wget https://github.com/ctt-gob-es/jmulticard/archive/f35e2e100f1d54a675fe0df3fb67b1b97f78d6ab.tar.gz
wget https://github.com/ctt-gob-es/clienteafirma-external/archive/v1.0.4.tar.gz
tar xvf f35e2e100f1d54a675fe0df3fb67b1b97f78d6ab.tar.gz
tar xvf v1.0.4.tar.gz
export PATH="/usr/lib/jvm/java-11-openjdk/bin/:$PATH" # Forzar el compilado con Java 11
cd jmulticard-f35e2e100f1d54a675fe0df3fb67b1b97f78d6ab
mvn clean install -Dmaven.test.skip=true
cd ..
cd clienteafirma-external-1.0.4
mvn clean install -Dmaven.test.skip=true
cd ..
wget https://github.com/ctt-gob-es/clienteafirma/archive/v1.8.tar.gz
tar xvf v1.8.tar.gz
cd clienteafirma-1.8
mvn clean install -Denv=devel -Dmaven.test.skip=true
mvn clean install -Denv=install -Dmaven.test.skip=true
Y con esto ya tendríamos el .jar
en afirma-simple/target/AutoFirma.jar
. Podéis ver un ejemplo de todo esto en el PKGBUILD de Arch Linux.
Espero que estas instrucciones os valgan al resto de empaquetadores.
Al intentar compilar la v1.8 arroja este error:
[ERROR] Failed to execute goal on project afirma-ui-simpleafirma: Could not resolve dependencies for project es.gob.afirma:afirma-ui-simpleafirma:jar:1.8: The following artifacts could not be resolved: es.gob.afirma:afirma-ui-simpleafirma-plugins:jar:1.8, es.gob.afirma:afirma-ui-simpleafirma-plugins-manager:jar:1.8, es.gob.afirma:afirma-core:jar:1.8, es.gob.afirma:afirma-ui-core-jse:jar:1.8, es.gob.afirma:afirma-ui-core-jse-keystores:jar:1.8, es.gob.afirma:afirma-core-keystores:jar:1.8, es.gob.afirma:afirma-keystores-filters:jar:1.8, es.gob.afirma:afirma-keystores-mozilla:jar:1.8, es.gob.afirma:afirma-crypto-core-pkcs7:jar:1.8, es.gob.afirma:afirma-crypto-cms:jar:1.8, es.gob.afirma:afirma-crypto-cades:jar:1.8, es.gob.afirma:afirma-crypto-cades-multi:jar:1.8, es.gob.afirma:afirma-crypto-pdf:jar:1.8, es.gob.afirma:afirma-crypto-core-xml:jar:1.8, es.gob.afirma:afirma-crypto-xades:jar:1.8, es.gob.afirma:afirma-crypto-odf:jar:1.8, es.gob.afirma:afirma-crypto-ooxml:jar:1.8, es.gob.afirma:afirma-crypto-cadestri-client:jar:1.8, es.gob.afirma:afirma-crypto-xadestri-client:jar:1.8, es.gob.afirma:afirma-crypto-padestri-client:jar:1.8, es.gob.afirma:afirma-crypto-xmlsignature:jar:1.8, es.gob.afirma:afirma-crypto-validation:jar:1.8, es.gob.afirma:afirma-core-massive:jar:1.8, es.gob.afirma:afirma-crypto-batch-client:jar:1.8: Could not find artifact es.gob.afirma:afirma-ui-simpleafirma-plugins:jar:1.8 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
En el repositorio de maven no esta subida la version 1.8: https://repo.maven.apache.org/maven2/es/gob/afirma/afirma-ui-simpleafirma-plugins/
Esto imposibilita el poder compilar autofirma y el poder actualizar el paquete de Arch Linux