Skip to content

Commit 7fe6b93

Browse files
stephanhugoSamuel-OliveiratryflaviosantosrodrigocananeaEverton Antonio Ramos
authored
[FIX] BASE-3068-Erro enviar NFE para SEFAZ MG (#12)
* [maven-release-plugin] prepare release java-nfe-4.00.18 * [maven-release-plugin] prepare for next development iteration * adding ignore file * fix: adding try-resources for stream * Atualizado link de consulta NFCe em homologação para MG * Finalizado Versão 4.00.19 * [maven-release-plugin] prepare release java-nfe-4.00.19 * [maven-release-plugin] prepare for next development iteration * Atualizado url de ConsultaNFCe MG - Produção * Finalizado Versão 4.00.20 * [maven-release-plugin] prepare release java-nfe-4.00.20 * [maven-release-plugin] prepare for next development iteration * Finalizado Versão 4.00.20 * [maven-release-plugin] prepare release java-nfe-4.00.20 * [maven-release-plugin] prepare for next development iteration * Update XSD * - Adicionado log para utilização de Webservice INI Customizado - Atualizado Schemas para PL.009k - Implementado NT 2022.003 - Implementado NT 2023.001 - Melhorias Git-Actions * [maven-release-plugin] prepare release java-nfe-4.00.21 * [maven-release-plugin] prepare for next development iteration * Correcao de action * Update release.yml correcao de action * Rename CHANGELOG.MD to CHANGELOG.md Renomeado * Update README.md * Correção de Builds Maven * Correção de Builds Maven * [maven-release-plugin] prepare release java-nfe-4.00.22 * [maven-release-plugin] prepare for next development iteration * Correção de Build Maven * Adicionado Gitaction apenas na master * Validar foi alterado para public; adicionado método isValidXml que valida um XML qualquer... podendo ser passado o XSD diretamente * pom original * - Atualizado Objeto e XSD NT 2023.001 1.20 - Adicionado Validacao XML Manual * [maven-release-plugin] prepare release java-nfe-4.00.23 * [maven-release-plugin] prepare for next development iteration * Melhorias exception * - Atualizado Java Certificado (Ver https://github.com/Samuel-Oliveira/Java_Certificado) - Atualizado Cacert (Sefaz Minas) - Adicionado ZoneId direto a configuracao e removido da Chamada dos metodos. O padrao de ZoneId é America/Sao_Paulo * Merge entre pom.xml e pom-base.xml * Alterado no pom a versão do java_certificado * Inserido arquivo sinc_community.md * Delete checkstyle.yml * Alterado no pom a versão do java_certificado * Alterado no pom a versão do java_certificado * Teste com versão nova do certificado e inserido novos jars. * Ajustes finais --------- Co-authored-by: SamuelOliveira <[email protected]> Co-authored-by: Flávio Santos <[email protected]> Co-authored-by: Rodrigo Aguiar Vidal Cananea <[email protected]> Co-authored-by: Rodrigo Aguiar Vidal Cananea <[email protected]> Co-authored-by: Everton Antonio Ramos <[email protected]>
1 parent 643f9cd commit 7fe6b93

File tree

492 files changed

+97694
-86293
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

492 files changed

+97694
-86293
lines changed

.github/workflows/checkstyle.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
2+
name: Liberar nova versão
3+
4+
on:
5+
workflow_dispatch:
6+
push:
7+
branches:
8+
- 'master'
9+
tags:
10+
- '4.*'
11+
12+
jobs:
13+
14+
package:
15+
runs-on: ubuntu-20.04
16+
name: Empacotar executavel
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: actions/setup-java@v2
20+
with:
21+
java-version: '8'
22+
distribution: 'adopt'
23+
cache: maven
24+
- name: Cache local Maven repository
25+
uses: actions/cache@v3
26+
with:
27+
path: ~/.m2/repository
28+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
29+
restore-keys: |
30+
${{ runner.os }}-maven-
31+
- name: Ajustando Timezone
32+
uses: szenius/[email protected]
33+
with:
34+
timezoneLinux: "America/Sao_Paulo"
35+
timezoneMacos: "America/Sao_Paulo"
36+
timezoneWindows: "America/Sao_Paulo"
37+
- name: Criando executavel
38+
run: mvn -B package -Passembly --file pom.xml
39+
- name: Criando pasta para Zip
40+
run: mkdir java-nfe && cp target/*.jar java-nfe && cp schemas.zip java-nfe
41+
- uses: montudor/action-zip@v1
42+
with:
43+
args: zip -qq -r java-nfe.zip java-nfe
44+
- name: Criando release
45+
uses: actions/create-release@v1
46+
id: create_release
47+
with:
48+
draft: false
49+
prerelease: false
50+
release_name: ${{ steps.version.outputs.version }}
51+
tag_name: ${{ github.ref }}
52+
body_path: CHANGELOG.md
53+
env:
54+
GITHUB_TOKEN: ${{ github.token }}
55+
- name: Subir executavel (zip) para release
56+
uses: actions/upload-release-asset@v1
57+
env:
58+
GITHUB_TOKEN: ${{ github.token }}
59+
with:
60+
upload_url: ${{ steps.create_release.outputs.upload_url }}
61+
asset_path: ./java-nfe.zip
62+
asset_name: java-nfe.zip
63+
asset_content_type: application/zip

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
2+
target/
3+
.idea/
4+
*.iml
15
/target/

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Notas de versão
2+
3+
- Atualizado Java Certificado (Ver https://github.com/Samuel-Oliveira/Java_Certificado)
4+
- Atualizado Cacert (Sefaz Minas)
5+
- Adicionado ZoneId direto a configuracao e removido da Chamada dos metodos. O padrao de ZoneId é America/Sao_Paulo

README.md

Lines changed: 27 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Java-NFe [![Build Status](https://travis-ci.org/Samuel-Oliveira/Java_NFe.svg?branch=master)](https://travis-ci.org/Samuel-Oliveira/Java_NFe) [![MIT License](https://img.shields.io/github/license/Samuel-Oliveira/Java_NFe.svg) ](https://github.com/Samuel-Oliveira/Java_NFe/blob/master/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/br.com.swconsultoria/java-nfe.svg?label=Maven%20Central)](https://search.maven.org/artifact/br.com.swconsultoria/java-nfe/4.00.18/jar) [![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/Samuel-Oliveira/Java_NFe.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Samuel-Oliveira/Java_NFe/context:java) [![Total alerts](https://img.shields.io/lgtm/alerts/g/Samuel-Oliveira/Java_NFe.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Samuel-Oliveira/Java_NFe/alerts/)
1+
# Java-NFe [![MIT License](https://img.shields.io/github/license/Samuel-Oliveira/Java_NFe.svg) ](https://github.com/Samuel-Oliveira/Java_NFe/blob/master/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/br.com.swconsultoria/java-nfe.svg?label=Maven%20Central)](https://search.maven.org/artifact/br.com.swconsultoria/java-nfe/4.00.24/jar)
22
Biblioteca Java para consumo do WebService de NFe/NFCe
33

44
## Dúvidas, Sugestões ou Consultoria
@@ -7,16 +7,17 @@ Biblioteca Java para consumo do WebService de NFe/NFCe
77
## Gostou do Projeto? Dê sua colaboração pelo Pix: 01713390108 <img src="https://swconsultoria.com.br/pix.png" width="200">
88

99
Para Iniciar :
10-
- Caso use Libs baixe o java-nfe-4.00.18.jar (https://github.com/Samuel-Oliveira/Java_NFe/raw/master/java-nfe-4.00.18.jar) e o adicione às bibliotecas de Seu Projeto.
11-
1210
- Baixe o Schemas.rar (https://github.com/Samuel-Oliveira/Java_NFe/raw/master/schemas.zip) e extraia na sua Máquina.
1311

12+
- External Jar: Baixe e adicione às bibliotecas de seu Projeto.
13+
- https://github.com/Samuel-Oliveira/Java_NFe/releases
14+
1415
- Maven :
1516
```xml
1617
<dependency>
1718
<groupId>br.com.swconsultoria</groupId>
1819
<artifactId>java-nfe</artifactId>
19-
<version>4.00.18</version>
20+
<version>4.00.24</version>
2021
</dependency>
2122
```
2223

@@ -28,7 +29,7 @@ repositories {
2829
}
2930
}
3031
dependencies {
31-
implementation "br.com.swconsultoria:java-nfe:4.00.18"
32+
implementation "br.com.swconsultoria:java-nfe:4.00.24"
3233
}
3334
```
3435

@@ -38,62 +39,33 @@ ________________________________________________________________________________
3839

3940
# Historico de Versões
4041

41-
[//]: # (## v4.00.19A - SNAPSHOT - 21/04/2022 - Schemas PL.009i)
42-
43-
[//]: # (- Atualizado Cacert)
44-
45-
[//]: # (- Alteração WebService CE)
46-
47-
[//]: # (- Adicionado System.getProperty&#40;"file.separator"&#41; como separado de arquivos)
48-
49-
[//]: # (- Implementado NT 2021.004 1.20)
50-
51-
[//]: # (- Corrigido Consulta Cadastro MS)
52-
53-
[//]: # (- Alterado URL QrCode NFCe MG)
54-
55-
[//]: # (- Atualizado Servidor DFe Homologação)
56-
57-
[//]: # (- Adicionado Compatibilidade com Java 14+)
58-
59-
[//]: # (- Adicionado Evento Ator Interessado)
60-
61-
[//]: # (- Corrigido erro de Logs)
62-
63-
[//]: # (- Adicionado Melhorias JaxB)
42+
## v4.00.24 - 05/05/2023 - Schemas PL.009k
43+
- Atualizado Java Certificado (Ver https://github.com/Samuel-Oliveira/Java_Certificado)
44+
- Atualizado Cacert (Sefaz Minas)
45+
- Adicionado ZoneId direto a configuracao e removido da Chamada dos metodos. O padrao de ZoneId é America/Sao_Paulo
6446

65-
[//]: # ()
66-
[//]: # (Snapshot é a versão que se encontra em teste, só use em caso de extrema necessidade.)
47+
## v4.00.23 - 25/04/2023 - Schemas PL.009k
48+
- Atualizado Objeto e XSD NT 2023.001 1.20
49+
- Adicionado Validacao XML Manual
6750

68-
[//]: # (Para usar, adicione o repositorio de Snapshot ao Maven:)
51+
## v4.00.22 - 22/03/2023 - Schemas PL.009k
52+
- Correções Build Maven
6953

70-
[//]: # (```)
54+
## v4.00.21 - 19/03/2023 - Schemas PL.009k
55+
- Adicionado log para utilização de Webservice INI Customizado
56+
- Atualizado Schemas para PL.009k
57+
- Implementado NT 2022.003
58+
- Implementado NT 2023.001
59+
- Melhorias Git-Actions
7160

72-
[//]: # (<repositories>)
61+
## v4.00.20 - 07/03/2023 - Schemas PL.009i
62+
- Correção URL MG
7363

74-
[//]: # ( <repository>)
75-
76-
[//]: # ( <id>sonatype-nexus-snapshots</id>)
77-
78-
[//]: # ( <url>https://oss.sonatype.org/content/repositories/snapshots</url>)
79-
80-
[//]: # ( </repository>)
81-
82-
[//]: # (</repositories>)
83-
84-
[//]: # (<dependency>)
85-
86-
[//]: # ( <groupId>br.com.swconsultoria</groupId>)
87-
88-
[//]: # ( <artifactId>java-nfe</artifactId>)
89-
90-
[//]: # ( <version>4.00.19-SNAPSHOT</version>)
91-
92-
[//]: # (</dependency>)
93-
94-
[//]: # (```)
64+
## v4.00.19 - 22/01/2023 - Schemas PL.009i
65+
- Atualizado Cacert
66+
- Atualizado Lib Certificado
67+
- Correção de URL QrCode NFCe MG Homologação
9568

96-
[//]: # (Ou baixe o Jar aqui: https://github.com/Samuel-Oliveira/Java_NFe/raw/master/java-nfe-4.00.19-SNAPSHOT.jar)
9769

9870
## v4.00.18 - 13/05/2022 - Schemas PL.009i
9971
- Atualizado Cacert

docs/docs/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/Samuel-Oliveira/Java_NFe.svg?branch=master)](https://travis-ci.org/Samuel-Oliveira/Java_NFe) [![MIT License](https://img.shields.io/github/license/Samuel-Oliveira/Java_NFe.svg) ](https://github.com/Samuel-Oliveira/Java_NFe/blob/master/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/br.com.swconsultoria/java-nfe.svg?label=Maven%20Central)](https://search.maven.org/artifact/br.com.swconsultoria/java-nfe/4.00.18/jar) [![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/Samuel-Oliveira/Java_NFe.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Samuel-Oliveira/Java_NFe/context:java) [![Total alerts](https://img.shields.io/lgtm/alerts/g/Samuel-Oliveira/Java_NFe.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Samuel-Oliveira/Java_NFe/alerts/)
1+
[![Build Status](https://travis-ci.org/Samuel-Oliveira/Java_NFe.svg?branch=master)](https://travis-ci.org/Samuel-Oliveira/Java_NFe) [![MIT License](https://img.shields.io/github/license/Samuel-Oliveira/Java_NFe.svg) ](https://github.com/Samuel-Oliveira/Java_NFe/blob/master/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/br.com.swconsultoria/java-nfe.svg?label=Maven%20Central)](https://search.maven.org/artifact/br.com.swconsultoria/java-nfe/4.00.24/jar) [![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/Samuel-Oliveira/Java_NFe.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Samuel-Oliveira/Java_NFe/context:java) [![Total alerts](https://img.shields.io/lgtm/alerts/g/Samuel-Oliveira/Java_NFe.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Samuel-Oliveira/Java_NFe/alerts/)
22

33
***Biblioteca Java para consumo do WebService de NFe/NFCe***
44

@@ -11,7 +11,7 @@
1111
</p>
1212

1313
Para Iniciar :
14-
- Caso use Libs baixe o [java-nfe-4.00.18.jar](https://github.com/Samuel-Oliveira/Java_NFe/raw/master/java-nfe-4.00.18.jar) e o adicione às bibliotecas de Seu Projeto.
14+
- Caso use Libs baixe o [java-nfe-4.00.24.jar](https://github.com/Samuel-Oliveira/Java_NFe/raw/master/java-nfe-4.00.24.jar) e o adicione às bibliotecas de Seu Projeto.
1515

1616
- Baixe o [Schemas.rar](https://github.com/Samuel-Oliveira/Java_NFe/raw/master/schemas.zip) e extraia na sua Máquina.
1717

@@ -20,7 +20,7 @@ Para Iniciar :
2020
<dependency>
2121
<groupId>br.com.swconsultoria</groupId>
2222
<artifactId>java-nfe</artifactId>
23-
<version>4.00.18</version>
23+
<version>4.00.24</version>
2424
</dependency>
2525
```
2626

@@ -32,7 +32,7 @@ repositories {
3232
}
3333
}
3434
dependencies {
35-
implementation "br.com.swconsultoria:java-nfe:4.00.18"
35+
implementation "br.com.swconsultoria:java-nfe:4.00.24"
3636
}
3737
```
3838

pom-base.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>br.com.swconsultoria</groupId>
55
<artifactId>java-nfe</artifactId>
6-
<version>4.00.18-${versao}-SNAPSHOT</version>
6+
<version>4.00.24-${versao}-SNAPSHOT</version>
77
<name>Java_NFe</name>
88
<description>Api java para consumo do webService de nota fiscal eletronica</description>
99
<url>https://github.com/Samuel-Oliveira/Java_NFe</url>
@@ -53,7 +53,7 @@
5353
<dependency>
5454
<groupId>br.com.swconsultoria</groupId>
5555
<artifactId>java_certificado</artifactId>
56-
<version>2.8-${versao}-SNAPSHOT</version>
56+
<version>2.11-${versao}-SNAPSHOT</version>
5757
</dependency>
5858
<!-- Ini4J -->
5959
<dependency>

pom.xml

Lines changed: 57 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<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/xsd/maven-4.0.0.xsd">
32
<modelVersion>4.0.0</modelVersion>
43
<groupId>br.com.swconsultoria</groupId>
54
<artifactId>java-nfe</artifactId>
6-
<version>4.00.18-SNAPSHOT</version>
5+
<version>4.00.24-SNAPSHOT</version>
76
<name>Java_NFe</name>
87
<description>Api java para consumo do webService de nota fiscal eletronica</description>
98
<url>https://github.com/Samuel-Oliveira/Java_NFe</url>
@@ -50,12 +49,42 @@
5049
</developer>
5150
</developers>
5251

52+
<profiles>
53+
<profile>
54+
<id>assembly</id>
55+
<build>
56+
<plugins>
57+
<plugin>
58+
<groupId>org.apache.maven.plugins</groupId>
59+
<artifactId>maven-assembly-plugin</artifactId>
60+
<version>3.1.1</version>
61+
<configuration>
62+
<descriptorRefs>
63+
<descriptorRef>jar-with-dependencies</descriptorRef>
64+
</descriptorRefs>
65+
<appendAssemblyId>false</appendAssemblyId>
66+
</configuration>
67+
<executions>
68+
<execution>
69+
<id>make-assembly</id>
70+
<phase>package</phase>
71+
<goals>
72+
<goal>single</goal>
73+
</goals>
74+
</execution>
75+
</executions>
76+
</plugin>
77+
</plugins>
78+
</build>
79+
</profile>
80+
</profiles>
81+
5382
<dependencies>
5483
<!-- Certificado Utils -->
5584
<dependency>
5685
<groupId>br.com.swconsultoria</groupId>
5786
<artifactId>java_certificado</artifactId>
58-
<version>2.8</version>
87+
<version>2.10</version>
5988
</dependency>
6089
<!-- Ini4J -->
6190
<dependency>
@@ -167,7 +196,7 @@
167196
<plugin>
168197
<groupId>org.sonatype.plugins</groupId>
169198
<artifactId>nexus-staging-maven-plugin</artifactId>
170-
<version>1.6.8</version>
199+
<version>1.6.13</version>
171200
<extensions>true</extensions>
172201
<configuration>
173202
<serverId>sonatype-nexus</serverId>
@@ -192,33 +221,45 @@
192221
<plugin>
193222
<groupId>org.apache.maven.plugins</groupId>
194223
<artifactId>maven-release-plugin</artifactId>
195-
<version>2.5.3</version>
224+
<version>3.0.0</version>
196225
<configuration>
197226
<pushChanges>false</pushChanges>
198227
<localCheckout>true</localCheckout>
199228
</configuration>
200229
</plugin>
201230
<plugin>
202231
<groupId>org.apache.maven.plugins</groupId>
203-
<artifactId>maven-assembly-plugin</artifactId>
204-
<version>2.4</version>
205-
<configuration>
206-
<descriptorRefs>
207-
<descriptorRef>jar-with-dependencies</descriptorRef>
208-
</descriptorRefs>
209-
</configuration>
232+
<artifactId>maven-source-plugin</artifactId>
233+
<version>3.2.1</version>
210234
<executions>
211235
<execution>
212-
<phase>none</phase>
236+
<id>attach-sources</id>
213237
<goals>
214-
<goal>single</goal>
238+
<goal>jar</goal>
215239
</goals>
216240
</execution>
217241
</executions>
218242
</plugin>
219243
<plugin>
244+
<groupId>org.apache.maven.plugins</groupId>
245+
<artifactId>maven-javadoc-plugin</artifactId>
246+
<version>3.5.0</version>
247+
<executions>
248+
<execution>
249+
<id>attach-javadocs</id>
250+
<goals>
251+
<goal>jar</goal>
252+
</goals>
253+
</execution>
254+
</executions>
255+
<configuration>
256+
<failOnError>false</failOnError>
257+
</configuration>
258+
</plugin>
259+
<plugin>
260+
<groupId>org.apache.maven.plugins</groupId>
220261
<artifactId>maven-surefire-plugin</artifactId>
221-
<version>2.22.2</version>
262+
<version>3.0.0</version>
222263
<configuration>
223264
<argLine>
224265
-javaagent:src/test/resources/agent.jar

schemas.zip

6.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)