From 8307f1d50d0884efc59c37d08b6c60b6e270c779 Mon Sep 17 00:00:00 2001 From: Glauber Funez Date: Wed, 15 Jul 2026 17:48:27 -0300 Subject: [PATCH 01/10] SKYW-2339 - Substitui nexus-staging-maven-plugin por maven-deploy-plugin no pom-base.xml --- pom-base.xml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/pom-base.xml b/pom-base.xml index da395e37..9508c3f3 100644 --- a/pom-base.xml +++ b/pom-base.xml @@ -233,15 +233,9 @@ - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 - true - - sonatype-nexus - https://oss.sonatype.org/ - true - + org.apache.maven.plugins + maven-deploy-plugin + 3.1.2 org.apache.maven.plugins From 6b63350c5580a9f31ccea2662dc3d3ab7ccf4a51 Mon Sep 17 00:00:00 2001 From: Glauber Funez Date: Thu, 16 Jul 2026 08:52:36 -0300 Subject: [PATCH 02/10] SKYW-2339 - Limpa cache negativo do Maven antes do build no Dockerfile-build Co-Authored-By: Claude Sonnet 4.6 --- Dockerfile-build | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile-build b/Dockerfile-build index 56ffc90b..0489c360 100644 --- a/Dockerfile-build +++ b/Dockerfile-build @@ -8,5 +8,6 @@ ARG nexusPass WORKDIR /app COPY . /app +RUN find /root/.m2/repository -name "*.lastUpdated" -delete 2>/dev/null || true RUN mvn deploy -f pom-base.xml -s mavensettings.xml -Duser=$nexusUser -Dpassword=$nexusPass -Dversao=$nameSpace $DskipTests From 28c3784b47d505ff01dcff8b1f40e4935353b707 Mon Sep 17 00:00:00 2001 From: Glauber Funez Date: Thu, 16 Jul 2026 09:27:53 -0300 Subject: [PATCH 03/10] SKYW-2339 - Remove credenciais de download do mavensettings.xml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Maven 3.8+ não faz fallback para acesso anônimo quando recebe 401. O Nexus permite leitura anônima, portanto credenciais no mirror de download causavam falha na resolução de plugins. Mantidas apenas as credenciais de upload. Co-Authored-By: Claude Sonnet 4.6 --- mavensettings.xml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mavensettings.xml b/mavensettings.xml index 761a7f23..2c551225 100644 --- a/mavensettings.xml +++ b/mavensettings.xml @@ -35,12 +35,6 @@ - - - down.nexus.prod.baseerp.com.br - ${user} - ${password} - up.nexus.prod.baseerp.com.br From 786435489f65baad5fa4cce717dfa4c5be4704b7 Mon Sep 17 00:00:00 2001 From: Glauber Funez Date: Thu, 16 Jul 2026 09:58:37 -0300 Subject: [PATCH 04/10] SKYW-2339 - Remove maven-source-plugin e maven-javadoc-plugin do pom-base.xml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Esses plugins não estão pré-cacheados na imagem Docker maven-services:1.9 e o buildah no K8s não consegue baixar novos artefatos do Nexus. A remoção não afeta o JAR principal consumido pelo service-nfe-api. Co-Authored-By: Claude Opus 4.6 (1M context) --- pom-base.xml | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/pom-base.xml b/pom-base.xml index 9508c3f3..aaff89b3 100644 --- a/pom-base.xml +++ b/pom-base.xml @@ -246,35 +246,6 @@ true - - org.apache.maven.plugins - maven-source-plugin - ${maven-source-plugin.version} - - - attach-sources - - jar - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - ${maven-javadoc-plugin.version} - - - attach-javadocs - - jar - - - - - false - - maven-surefire-plugin ${maven-surefire-plugin.version} From 0611514c8716b20f463612768e240a894bb12bac Mon Sep 17 00:00:00 2001 From: Daniel Ramos Ribeiro Date: Mon, 27 Jul 2026 09:26:20 -0300 Subject: [PATCH 05/10] NfeA3 implementation --- src/main/java/br/com/swconsultoria/nfe/NfeA3.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/br/com/swconsultoria/nfe/NfeA3.java b/src/main/java/br/com/swconsultoria/nfe/NfeA3.java index 6e2b4948..7619d978 100644 --- a/src/main/java/br/com/swconsultoria/nfe/NfeA3.java +++ b/src/main/java/br/com/swconsultoria/nfe/NfeA3.java @@ -8,6 +8,8 @@ import br.com.swconsultoria.nfe.exception.NfeException; import br.com.swconsultoria.nfe.schemas_eventos.TEnvEventoCancelamento; import br.com.swconsultoria.nfe.schemas_eventos.TRetEnvEventoCancelamento; +import br.com.swconsultoria.nfe.schemas_eventos.TRetEnvEventoGenerico; +import br.com.swconsultoria.nfe.schemas_eventos.TRetEventoGenerico; import br.com.swconsultoria.nfe.schemas.RetDistDFeInt; import br.com.swconsultoria.nfe.schemas.TEnviNFe; import br.com.swconsultoria.nfe.schemas.TRetEnviNFe; @@ -81,4 +83,12 @@ public static String manifestacaoMontaXmlA3(ConfiguracoesNfe config, return ManifestacaoDestinatarioA3.montarXML(ConfiguracoesUtil.iniciaConfiguracoes(config), evento); } + public static TRetEnvEventoGenerico eventoGenericoA3(ConfiguracoesNfe config, boolean valida, String xmlAssinado) throws NfeException { + return EventoGenericoA3.eventoGenericoA3(ConfiguracoesUtil.iniciaConfiguracoes(config), valida, xmlAssinado); + } + + public static String criaProcEventoGenericoA3(ConfiguracoesNfe config, String xmlAssinado, TRetEventoGenerico retorno) throws NfeException { + return EventoGenericoA3.criaProcEventoGenericoA3(ConfiguracoesUtil.iniciaConfiguracoes(config), xmlAssinado, retorno); + } + } From 3951d7bcabd588e2f91d9702160b1346cfa6fab0 Mon Sep 17 00:00:00 2001 From: Daniel Ramos Ribeiro Date: Mon, 27 Jul 2026 09:29:12 -0300 Subject: [PATCH 06/10] NfeA3 implementation --- src/main/java/br/com/swconsultoria/nfe/NfeA3.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/br/com/swconsultoria/nfe/NfeA3.java b/src/main/java/br/com/swconsultoria/nfe/NfeA3.java index 7619d978..a6172844 100644 --- a/src/main/java/br/com/swconsultoria/nfe/NfeA3.java +++ b/src/main/java/br/com/swconsultoria/nfe/NfeA3.java @@ -27,11 +27,11 @@ public static String montaXmlA3(ConfiguracoesNfe config, TEnviNFe enviNFe) throw public static TEnviNFe montaNfeA3(ConfiguracoesNfe config, String xmlAssinado, boolean valida) throws NfeException { return EnviarA3.montaNfeA3(ConfiguracoesUtil.iniciaConfiguracoes(config), xmlAssinado, valida); } - + public static TRetEnviNFe enviarNfeA3(ConfiguracoesNfe config, TEnviNFe enviNFe, DocumentoEnum tipoDocumento) throws NfeException { return Enviar.enviaNfe(ConfiguracoesUtil.iniciaConfiguracoes(config), enviNFe, tipoDocumento); } - + public static String montaXmleventoCancelamento(ConfiguracoesNfe config, TEnvEventoCancelamento enviEvento) throws NfeException { return CancelarA3.montaXmleventoCancelamento(ConfiguracoesUtil.iniciaConfiguracoes(config), enviEvento); } @@ -90,5 +90,4 @@ public static TRetEnvEventoGenerico eventoGenericoA3(ConfiguracoesNfe config, bo public static String criaProcEventoGenericoA3(ConfiguracoesNfe config, String xmlAssinado, TRetEventoGenerico retorno) throws NfeException { return EventoGenericoA3.criaProcEventoGenericoA3(ConfiguracoesUtil.iniciaConfiguracoes(config), xmlAssinado, retorno); } - } From b74efcf1b8e02ce527517f71c55c4ee437fc5dfd Mon Sep 17 00:00:00 2001 From: Daniel Ramos Ribeiro Date: Mon, 27 Jul 2026 09:33:24 -0300 Subject: [PATCH 07/10] EventoGenericoA3 implementation --- .../swconsultoria/nfe/EventoGenericoA3.java | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/main/java/br/com/swconsultoria/nfe/EventoGenericoA3.java diff --git a/src/main/java/br/com/swconsultoria/nfe/EventoGenericoA3.java b/src/main/java/br/com/swconsultoria/nfe/EventoGenericoA3.java new file mode 100644 index 00000000..9874aa90 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/EventoGenericoA3.java @@ -0,0 +1,37 @@ +package br.com.swconsultoria.nfe; + +import javax.xml.bind.JAXBException; +import br.com.swconsultoria.nfe.dom.ConfiguracoesNfe; +import br.com.swconsultoria.nfe.dom.enuns.DocumentoEnum; +import br.com.swconsultoria.nfe.dom.enuns.ServicosEnum; +import br.com.swconsultoria.nfe.exception.NfeException; +import br.com.swconsultoria.nfe.schemas_eventos.TEnvEventoGenerico; +import br.com.swconsultoria.nfe.schemas_eventos.TProcEventoGenerico; +import br.com.swconsultoria.nfe.schemas_eventos.TRetEnvEventoGenerico; +import br.com.swconsultoria.nfe.schemas_eventos.TRetEventoGenerico; +import br.com.swconsultoria.nfe.util.ConstantesUtil; +import br.com.swconsultoria.nfe.util.XmlNfeUtil; + +class EventoGenericoA3 { + + private EventoGenericoA3() {} + + static TRetEnvEventoGenerico eventoGenericoA3(ConfiguracoesNfe config, boolean valida, String xmlAssinado) + throws NfeException { + String xmlRetorno = EventosA3.enviarEvento(config, xmlAssinado, ServicosEnum.EVENTO_GENERICO, valida, DocumentoEnum.NFE); + return XmlNfeUtil.xmlToObject(xmlRetorno, TRetEnvEventoGenerico.class); + } + + static String criaProcEventoGenericoA3(ConfiguracoesNfe config, String xmlAssinado, TRetEventoGenerico retorno) + throws NfeException { + try { + TProcEventoGenerico procEvento = new TProcEventoGenerico(); + procEvento.setVersao(ConstantesUtil.VERSAO.EVENTO_GENERICO); + procEvento.setEvento(XmlNfeUtil.xmlToObject(xmlAssinado, TEnvEventoGenerico.class).getEvento().get(0)); + procEvento.setRetEvento(retorno); + return XmlNfeUtil.objectToXml(procEvento, config.getEncode()); + } catch (JAXBException e) { + throw new NfeException(e.getMessage(), e); + } + } +} From e49fac1270604628570ba9e04a3349b2d14ace33 Mon Sep 17 00:00:00 2001 From: Daniel Ramos Ribeiro Date: Mon, 27 Jul 2026 15:15:20 -0300 Subject: [PATCH 08/10] pom implementation --- pom.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 995f905d..c8965efe 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ br.com.swconsultoria java-nfe - 4.1.1 + 4.1.1-EVENTOGENERICOA3 Java_NFe Api java para consumo do webService de nota fiscal eletronica https://github.com/Samuel-Oliveira/Java_NFe @@ -182,6 +182,12 @@ jasperreports ${jasper.version} provided + + + com.github.librepdf + openpdf + + net.sf.jasperreports From b11077114455fc8c4026e81b56ca1b4c7d8d39d8 Mon Sep 17 00:00:00 2001 From: Daniel Ramos Ribeiro Date: Mon, 27 Jul 2026 15:15:32 -0300 Subject: [PATCH 09/10] pom-base implementation --- pom-base.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom-base.xml b/pom-base.xml index da395e37..11025a19 100644 --- a/pom-base.xml +++ b/pom-base.xml @@ -3,7 +3,7 @@ br.com.swconsultoria java-nfe - 4.1.1-${versao}-SNAPSHOT + 4.1.1-EVENTOGENERICOA3-${versao}-SNAPSHOT Java_NFe Api java para consumo do webService de nota fiscal eletronica https://github.com/Samuel-Oliveira/Java_NFe From c7ae99a9971ebdc95659d6b3e08f21278b95c428 Mon Sep 17 00:00:00 2001 From: Daniel Ramos Ribeiro Date: Mon, 27 Jul 2026 17:03:18 -0300 Subject: [PATCH 10/10] Exclusion rollback --- pom.xml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pom.xml b/pom.xml index c8965efe..eda241f3 100644 --- a/pom.xml +++ b/pom.xml @@ -182,12 +182,6 @@ jasperreports ${jasper.version} provided - - - com.github.librepdf - openpdf - - net.sf.jasperreports