Decision Management (ODM,ADS)

 View Only
Expand all | Collapse all

I cannot create an external library using the maven archetype in ADS 23

  • 1.  I cannot create an external library using the maven archetype in ADS 23

    Posted Fri September 29, 2023 06:18 AM

    I've configured Maven to connect to Decision Designer as Maven repository.

    The doc says to configure https://<zen-host>/ads/static/maven-releases.

    I don't know what is "zen-host". I found in OCP console several services named after "zen" but none exposed extrenally as a route. So I guessed that I have to use the ADS host that is exposed as the route named "cpd".

    I added the ADS host server certificate to my JVM but when I run the command:

    mvn archetype:generate -DarchetypeGroupId=com.ibm.decision -DarchetypeArtifactId=maven-archetype-external-library -DarchetypeVersion=11.0.8

    I got this exception

    org.apache.maven.archetype.downloader.DownloadException: Error downloading com.ibm.decision:maven-archetype-external-library:jar:11.0.8.
    Caused by: org.apache.maven.shared.transfer.artifact.resolve.ArtifactResolverException: Failed to read artifact descriptor for com.ibm.decision:maven-archetype-external-library:jar:11.0.8
    Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact com.ibm.decision:maven-archetype-external-library:pom:11.0.8 from/to ads-maven (https://cpd-ibm-ads.apps.xxxx.v59b.p1.openshiftapps.com/ads/static/maven-releases): transfer failed for https://cpd-ibm-ads.apps.xxxx.v59b.p1.openshiftapps.com/ads/static/maven-releases/com/ibm/decision/maven-archetype-external-library/11.0.8/maven-archetype-external-library-11.0.8.pom
    Caused by: org.apache.maven.wagon.TransferFailedException: transfer failed for https://cpd-ibm-ads.apps.xxxx.v59b.p1.openshiftapps.com/ads/static/maven-releases/com/ibm/decision/maven-archetype-external-library/11.0.8/maven-archetype-external-library-11.0.8.pom
    Caused by: javax.net.ssl.SSLPeerUnverifiedException: Certificate for <cpd-ibm-ads.apps.xxxx.v59b.p1.openshiftapps.com> doesn't match any of the subject alternative names: [internal-nginx-svc, *.svc.cluster.local, api-svc, *.api, ibm-nginx-svc, zen-core-api]  
    

    ¿What is zen-host?

    ¿is it maybe that the archetype version is wrong? ¿how may I know what versions are available and which one corresponds to the the product  version?

    By the way, ¿why ADS is not showing the version in the "About"? it only says "Copyright IBM Corporation 2018, 2023" but nothing a bout the version ¿where can you get this information? 

     



    ------------------------------
    Eduardo Izquierdo Lázaro
    Automation Architect
    DECIDE
    Madrid
    609893677
    ------------------------------


  • 2.  RE: I cannot create an external library using the maven archetype in ADS 23

    Posted Mon October 02, 2023 03:38 PM

    Hi,

    Your deduction to get Zen Hostname was correct (hostname you use/see to access ADS) but for unknown reason, it looks like SSL Certificate exposed by Zen route is incorrect (missing Subject Alternative Names).

    Until this certificate is fixed, you might be able to workaround the issue by adding some options on Maven command line like:

    -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true

    Hope this help !

    Regards

    Gael



    ------------------------------
    Gael Crova
    ------------------------------