esig / dss-demonstrations

Examples of DSS integration
GNU Lesser General Public License v2.1
92 stars 70 forks source link

Please teach how to create the jar file of dss-spi-x509-aia, which is not included in central repository #54

Closed gittelletta closed 3 months ago

gittelletta commented 7 months ago

I wanted to create war in the maven project AAA, in order to include AAA in Tomcat.

AAA includes DefaultAIASource and OnlineAIASource.

And, in DSS api, they are included in the Package eu.europa.esig.dss.spi.x509.aia (https://ec.europa.eu/digital-building-blocks/DSS/webapp-demo/apidocs/eu/europa/esig/dss/spi/x509/aia/package-summary.html)

Therefore, I made the following pom.xml in AAA.

<dependency>
    <groupId>eu.europa.ec.joinup.sd-dss</groupId>
    <artifactId>dss-spi-x509-aia</artifactId>
    <version>5.8</version>
</dependency>

However Error occured. It's because dss-spi-x509-aia is not included in Sonatype Nexus Repository (central repository).

By the way, Maven first searches dss-spi-x509-aia in the central repository, and if dss-spi-x509-aia is not included in the central repository, then maven searches dss-spi-x509-aia in the local .m2 repository.

Therefore I want to create the jar file of dss-spi-x509-aia in order to store it in the local .m2 repository.

However I don't know how to create the jar file of dss-spi-x509-aia.

Can anyone teach me how to create the jar file of dss-spi-x509-aia?

Thanks in advance.

satoruotsubo

bsanchezb commented 7 months ago

Hi,

I'm not sure I understand what you want to achieve.

For integration instructions of DSS to your Maven project, please see documentation.

Please note that DSS does not incorporate "dss-spi-x509-aia" module within its structure, but "dss-spi". For the complete list of available modules, please see this webpage.

Best regards, Aleksandr

gittelletta commented 3 months ago

Dear Aleksandr Beliakov,

In the dss-spi of version 5.7, there is no dss-spi-x509-aia.

But in the dss-spi of version 5.11, there is the dss-spi-x509-aia.

So, I changed as follow:

<dependency>
    <groupId>eu.europa.ec.joinup.sd-dss</groupId>
    <artifactId>dss-spi</artifactId>
    <version>5.11</version>
</dependency>

By this, I was able to include

import eu.europa.esig.dss.spi.x509.aia.*;

Thanks your advice.

On Fri, 17 May 2024 05:10:30 -0700 Aleksandr Beliakov @.***> wrote:

Closed #54 as completed.

-- Reply to this email directly or view it on GitHub: https://github.com/esig/dss-demonstrations/issues/54#event-12847386283 You are receiving this because you authored the thread.

Message ID: @.***>

-- Satoru Otsubo @.***>