Skip to content

Commit bf6bec7

Browse files
Merge pull request Samuel-Oliveira#265 from Samuel-Oliveira/develop
Merge Develop
2 parents cbc2fba + 6eb59b1 commit bf6bec7

27 files changed

+168
-206
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Notas de versão
22

3-
- Atualizado Objeto e XSD NT 2023.001 1.20
4-
- Adicionado Validacao XML Manual
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: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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.23/jar)
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
@@ -17,7 +17,7 @@ Para Iniciar :
1717
<dependency>
1818
<groupId>br.com.swconsultoria</groupId>
1919
<artifactId>java-nfe</artifactId>
20-
<version>4.00.23</version>
20+
<version>4.00.24</version>
2121
</dependency>
2222
```
2323

@@ -29,7 +29,7 @@ repositories {
2929
}
3030
}
3131
dependencies {
32-
implementation "br.com.swconsultoria:java-nfe:4.00.23"
32+
implementation "br.com.swconsultoria:java-nfe:4.00.24"
3333
}
3434
```
3535

@@ -39,6 +39,11 @@ ________________________________________________________________________________
3939

4040
# Historico de Versões
4141

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
46+
4247
## v4.00.23 - 25/04/2023 - Schemas PL.009k
4348
- Atualizado Objeto e XSD NT 2023.001 1.20
4449
- Adicionado Validacao XML Manual

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.23/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.23.jar](https://github.com/Samuel-Oliveira/Java_NFe/raw/master/java-nfe-4.00.23.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.23</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.23"
35+
implementation "br.com.swconsultoria:java-nfe:4.00.24"
3636
}
3737
```
3838

pom.xml

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
<dependency>
8585
<groupId>br.com.swconsultoria</groupId>
8686
<artifactId>java_certificado</artifactId>
87-
<version>2.9</version>
87+
<version>2.10</version>
8888
</dependency>
8989
<!-- Ini4J -->
9090
<dependency>
@@ -196,7 +196,7 @@
196196
<plugin>
197197
<groupId>org.sonatype.plugins</groupId>
198198
<artifactId>nexus-staging-maven-plugin</artifactId>
199-
<version>1.6.8</version>
199+
<version>1.6.13</version>
200200
<extensions>true</extensions>
201201
<configuration>
202202
<serverId>sonatype-nexus</serverId>
@@ -221,15 +221,45 @@
221221
<plugin>
222222
<groupId>org.apache.maven.plugins</groupId>
223223
<artifactId>maven-release-plugin</artifactId>
224-
<version>2.5.3</version>
224+
<version>3.0.0</version>
225225
<configuration>
226226
<pushChanges>false</pushChanges>
227227
<localCheckout>true</localCheckout>
228228
</configuration>
229229
</plugin>
230230
<plugin>
231+
<groupId>org.apache.maven.plugins</groupId>
232+
<artifactId>maven-source-plugin</artifactId>
233+
<version>3.2.1</version>
234+
<executions>
235+
<execution>
236+
<id>attach-sources</id>
237+
<goals>
238+
<goal>jar</goal>
239+
</goals>
240+
</execution>
241+
</executions>
242+
</plugin>
243+
<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>
231261
<artifactId>maven-surefire-plugin</artifactId>
232-
<version>2.22.2</version>
262+
<version>3.0.0</version>
233263
<configuration>
234264
<argLine>
235265
-javaagent:src/test/resources/agent.jar

src/main/java/br/com/swconsultoria/nfe/Assinar.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private static String assinaDocNFe(ConfiguracoesNfe config, String xml, Assinatu
8181
| InvalidAlgorithmParameterException | KeyStoreException | UnrecoverableEntryException
8282
| CertificadoException | MarshalException
8383
| XMLSignatureException e) {
84-
throw new NfeException("Erro ao Assinar Nfe" + e.getMessage());
84+
throw new NfeException("Erro ao Assinar Nfe" + e.getMessage(),e);
8585
}
8686
}
8787

src/main/java/br/com/swconsultoria/nfe/AtorInteressado.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static TRetEnvEvento eventoAtorInteressado(ConfiguracoesNfe config, TEnvEvento e
2929
return XmlNfeUtil.xmlToObject(xml, TRetEnvEvento.class);
3030

3131
} catch (JAXBException e) {
32-
throw new NfeException(e.getMessage());
32+
throw new NfeException(e.getMessage(),e);
3333
}
3434

3535
}

src/main/java/br/com/swconsultoria/nfe/Cancelar.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static TRetEnvEvento eventoCancelamento(ConfiguracoesNfe config, TEnvEvento envi
2929
return XmlNfeUtil.xmlToObject(xml, TRetEnvEvento.class);
3030

3131
} catch (JAXBException e) {
32-
throw new NfeException(e.getMessage());
32+
throw new NfeException(e.getMessage(),e);
3333
}
3434

3535
}
@@ -48,7 +48,7 @@ static br.com.swconsultoria.nfe.schema.envEventoCancSubst.TRetEnvEvento eventoCa
4848
return XmlNfeUtil.xmlToObject(xml, br.com.swconsultoria.nfe.schema.envEventoCancSubst.TRetEnvEvento.class);
4949

5050
} catch (JAXBException e) {
51-
throw new NfeException(e.getMessage());
51+
throw new NfeException(e.getMessage(),e);
5252
}
5353

5454
}

src/main/java/br/com/swconsultoria/nfe/CartaCorrecao.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static TRetEnvEvento eventoCCe(ConfiguracoesNfe config, TEnvEvento enviEvento, b
2929
return XmlNfeUtil.xmlToObject(xml, TRetEnvEvento.class);
3030

3131
} catch (JAXBException e) {
32-
throw new NfeException(e.getMessage());
32+
throw new NfeException(e.getMessage(),e);
3333
}
3434

3535
}

src/main/java/br/com/swconsultoria/nfe/ConsultaCadastro.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static TRetConsCad consultaCadastro(ConfiguracoesNfe config, PessoaEnum tipoPess
128128
}
129129

130130
} catch (RemoteException | XMLStreamException | JAXBException e) {
131-
throw new NfeException(e.getMessage());
131+
throw new NfeException(e.getMessage(),e);
132132
}
133133

134134
}

src/main/java/br/com/swconsultoria/nfe/ConsultaRecibo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static TRetConsReciNFe reciboNfe(ConfiguracoesNfe config, String recibo, Documen
7272
return XmlNfeUtil.xmlToObject(result.getExtraElement().toString(), TRetConsReciNFe.class);
7373

7474
} catch (RemoteException | XMLStreamException | JAXBException e) {
75-
throw new NfeException(e.getMessage());
75+
throw new NfeException(e.getMessage(),e);
7676
}
7777

7878
}

0 commit comments

Comments
 (0)