Giter VIP home page Giter VIP logo

ph-ubl's Introduction

ph-ubl

Build Status 

This is the readme file for the current version 5.x - for the old version 3.3.x please see README-v3.3.md.

Set of Java libraries for reading and writing OASIS UBL 2.0 and 2.1 documents. This is the successor of the phloc-ubl library. The following projects are contained:

  • ph-ubl-jaxb-plugin a special JAXB 2.2 plugin that creates additional methods for easier usage (used only in Maven generate-sources phase)
  • ph-ubl-testfiles contains all UBL 2.0 and 2.1 test files (used only in Maven test scope)
  • ph-ubl-api base library containing common stuff for UBL 2.0 and 2.1.
  • ph-ubl20 contains the generated JAXB files for UBL 2.0 as well as the helper classes.
  • ph-ubl20-codelists contains the generated enums for the UBL 2.0 codelists (optional artefact)
  • ph-ubl21 contains the generated JAXB files for UBL 2.1 as well as the helper classes.
  • ph-ubl21-codelists contains the generated enums for the UBL 2.1 codelists (optional artefact)
  • ph-ubltr contains the generated JAXB files UBL-tr - the Turkish e-Invoice (optional artefact)

News and noteworthy

  • v6.0.0 - work in progress
    • Binds to ph-commons 8.6.6
    • Added initial UBL 2.2 CSPRD 01 support
    • Fixes issues #11
  • v5.1.0 - 2016-09-09
    • Binds to ph-commons 8.5.x
  • v5.0.3 - 2016-07-26
  • v5.0.1 - 2016-07-22
  • v5.0.0 - 2016-06-11
    • Binds to ph-commons 8.x
  • v4.5.0 - 2015-11-30
    • New API that this more flexible and contains less overloads - see the examples
    • Added the possibility to easily customize the namespace prefix mapping and other things
  • v4.0.0 - 2015-07-28
    • Restructured artefacts to use an "include on demand" instead of an "exclude on demand" pattern
    • Improved OSGI support

Examples

An example for reading and writing UBL 2.0 files can be found in the test file UBL20FuncTest.java. An example to create an invoice from scratch can be found in the test code CreateInvoiceFromScratchFuncTest.java.

An example for reading and writing UBL 2.1 files can be found in the test file UBL21FuncTest.java. An example to create an invoice from scratch can be found in the test code CreateInvoiceFromScratchFuncTest.java.

Maven usage generic

You can use ph-ubl as a BOM (bill of material) when you include the following in the dependencyManagement section of your POM:

<dependency>
  <groupId>com.helger</groupId>
  <artifactId>ph-ubl-parent-pom</artifactId>
  <version>5.1.0</version>
  <type>pom</type>
  <scope>import</scope>
</dependency>

Maven usage UBL 2.0

To read and write UBL 2.0 documents add the following to your pom.xml to use this artifact:

<dependency>
  <groupId>com.helger</groupId>
  <artifactId>ph-ubl20</artifactId>
  <version>5.1.0</version>
</dependency>

To also use the generated enums for the UBL 2.0 codelists add the following artifact:

<dependency>
  <groupId>com.helger</groupId>
  <artifactId>ph-ubl20-codelists</artifactId>
  <version>5.1.0</version>
</dependency>

Maven usage UBL 2.1

To read and write UBL 2.1 documents add the following to your pom.xml to use this artifact:

<dependency>
  <groupId>com.helger</groupId>
  <artifactId>ph-ubl21</artifactId>
  <version>5.1.0</version>
</dependency>

To also use the generated enums for the UBL 2.1 codelists add the following artifact:

<dependency>
  <groupId>com.helger</groupId>
  <artifactId>ph-ubl21-codelists</artifactId>
  <version>5.1.0</version>
</dependency>

Maven usage UBL-tr

To read and write UBL-tr (http://www.ubltr.com/) documents add the following to your pom.xml to use this artifact:

<dependency>
  <groupId>com.helger</groupId>
  <artifactId>ph-ubltr</artifactId>
  <version>5.1.0</version>
</dependency>

Download

Binary versions of the artefacts can be downloaded from Maven Central:

The following projects are required at runtime. The exact version depends on the ph-ubl version you are using:

Other UBL sites

For further information on the Universal Business Language can be found on the following pages:


My personal Coding Styleguide | On Twitter: @philiphelger

ph-ubl's People

Contributors

phax avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.