From 2447367aa10b3a8aad7fdf3aa8e4217cad53b5bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eivind=20Bergst=C3=B8l?= Date: Wed, 14 Aug 2024 18:35:55 +0200 Subject: [PATCH] Add optional dependency on com.sun.xml.bind:jaxb-impl It seems that phive-xml need an implementation of jaxb to parse schema-files. --- api/pom.xml | 7 +++++++ .../peppol/bis/invoice3/domain/ExampleUsage1.java | 11 +---------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/api/pom.xml b/api/pom.xml index 9bbf1f6..2d6ec3e 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -29,6 +29,13 @@ org.eaxy eaxy + + com.sun.xml.bind + jaxb-impl + 4.0.5 + runtime + true + org.junit.jupiter diff --git a/api/src/test/java/peppol/bis/invoice3/domain/ExampleUsage1.java b/api/src/test/java/peppol/bis/invoice3/domain/ExampleUsage1.java index 7bccc27..3f9267d 100644 --- a/api/src/test/java/peppol/bis/invoice3/domain/ExampleUsage1.java +++ b/api/src/test/java/peppol/bis/invoice3/domain/ExampleUsage1.java @@ -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" @@ -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 api = PeppolBillingApi.create(invoice);