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
------------------------------