Add Maven Repository

In order to get the QR Invoice Library artifacts, add the corresponding repository to your maven configuration.

<repositories>
    ...
    <repository>
      <id>qr-invoice</id>
      <name>QR Invoice Library Repository</name>
      <url>https://mvnrepo.qr-invoice.ch/maven2</url>
    </repository>
    ...
</repositories>

Maven Dependencies

The QR Invoice Library uses OpenPDF for creating PDFs. If you have a valid iText5 License and don’t want extra dependencies on OpenPDF, you can choose QR Invoice Library to use iText5.

QR Invoice Library with OpenPDF (default)

<dependencies>
    <dependency>
        <groupId>ch.codeblock.qrinvoice.core</groupId>
        <artifactId>qrinvoice-core</artifactId>
        <version>0.3</version>
    </dependency>
    <dependency>
        <groupId>ch.codeblock.qrinvoice.openpdf</groupId>
        <artifactId>qrinvoice-openpdf</artifactId>
        <version>0.3</version>
    </dependency>
</dependencies>

QR Invoice Library with iText5 (requires additional licensing)

<dependencies>
    <dependency>
        <groupId>ch.codeblock.qrinvoice.core</groupId>
        <artifactId>qrinvoice-core</artifactId>
        <version>0.3</version>
    </dependency>
    <dependency>
        <groupId>ch.codeblock.qrinvoice.itext5</groupId>
        <artifactId>qrinvoice-itext5</artifactId>
        <version>0.3</version>
    </dependency>
</dependencies>

Sources and Jar JavaDoc Jars

Make sure that you at least download the JavaDoc jars or better the sources jar along with the dependencies.