Skip to content

Commit

Permalink
Add optional dependency on com.sun.xml.bind:jaxb-impl
Browse files Browse the repository at this point in the history
It seems that phive-xml need an implementation of jaxb to
parse schema-files.
  • Loading branch information
eivinhb committed Aug 14, 2024
1 parent de13126 commit 2447367
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
7 changes: 7 additions & 0 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
<groupId>org.eaxy</groupId>
<artifactId>eaxy</artifactId>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>4.0.5</version>
<scope>runtime</scope>
<optional>true</optional>
</dependency>

<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down
11 changes: 1 addition & 10 deletions api/src/test/java/peppol/bis/invoice3/domain/ExampleUsage1.java
Original file line number Diff line number Diff line change
Expand Up @@ -333,14 +333,6 @@ public static Invoice example1(){
.withFinancialInstitutionBranch(new FinancialInstitutionBranch("NDEANOKK"))
);

final PaymentMeans paymentMeans2 = new PaymentMeans(
new PaymentMeansCode("30")
).withPaymentID("123456789101")
.withPayeeFinancialAccount(
new PayeeFinancialAccount("60650514745")
.withFinancialInstitutionBranch(new FinancialInstitutionBranch("NDEANOKK"))
);

final Invoice invoice = new Invoice(
"12345678910"
, "2020-11-19"
Expand All @@ -354,8 +346,7 @@ public static Invoice example1(){
.withDueDate("2020-11-30")
.withPaymentTerms(new PaymentTerms("10 dager"))
.withDelivery(delivery)
.withPaymentMeans(paymentMeans1)
.withPaymentMeans(paymentMeans2);
.withPaymentMeans(paymentMeans1);

final PeppolBillingApi<Invoice> api = PeppolBillingApi.create(invoice);

Expand Down

0 comments on commit 2447367

Please sign in to comment.