Author Topic: Problem installing Platform SDK for Java  (Read 317 times)

Offline Gabi

  • Jr. Member
  • **
  • Posts: 57
  • Karma: 0
Problem installing Platform SDK for Java
« on: November 15, 2019, 11:05:20 PM »
Hello.

I am trying to install Platform SDK version 8.5.201.4. I downloaded and installed the corresponding file from the Genesys website. However, I am missing two JARs:
  • appblocks-bom.jar
  • protocols-bom.jar

These two files were not generated when I installed the API, instead I only got the POM files.

My projects do not compile without those files. I get the following error:
Quote
Failed to read artifact descriptor for com.genesyslab.platform:comappblock:jar:852.1.4: Could not find artifact com.genesyslab.platform:appblocks-bom:pom:852.1.4

Does anyone know how I can obtain those two JARs?

Thank you in advance.
« Last Edit: November 15, 2019, 11:19:39 PM by Gabi »

Offline PeteHoyle

  • Full Member
  • ***
  • Posts: 117
  • Karma: 10
Re: Problem installing Platform SDK for Java
« Reply #1 on: November 15, 2019, 11:23:09 PM »
Hi Gabi,

Can you explain more about how you installed PSDK Java?

Did you follow the instructions in the readme.txt file?

In the lib\pom folder you should have a number of .pom files such as 'appblocks-bom.pom' and 'protocol.bom'

To build the project, follow one of the next instructions.



 
  Build with Maven.
  --------------------

  Install parent pom files to the local repo (or upload to your company repository manager, for example Nexus):
   mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=<Platform SDK Folder>\lib\pom\appblocks-bom.pom -DpomFile=<Platform SDK Folder>\lib\pom\appblocks-bom.pom
   mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=<Platform SDK Folder>\lib\pom\protocols-bom.pom -DpomFile=<Platform SDK Folder>\lib\pom\protocols-bom.pom
 
  Install all Platform SDK libraries from <Platform SDK Folder>\lib to maven local repository.
  For example:
  mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=<Platform SDK Folder>\lib\kvlists.jar -DpomFile=<Platform SDK Folder>\lib\pom\kvlists.pom

  Import Maven project from <Platform SDK Folder>\applicationblocks\com to you IDE.
  Pay attention, that “generated” folder should be added to Source Path in you IDE to avoid errors highlighting.
  However, during Maven build, “generated” folder will be automatically attached to source path
  with build-helper-maven-plugin, defined in the pom file.

  To build the project from command line, run "mvn clean install" command under the
  <Platform SDK Folder>\applicationblocks\com directory. It will build and install
  Configuration Object Model Application Block artifact to the local Maven repository.

Offline Gabi

  • Jr. Member
  • **
  • Posts: 57
  • Karma: 0
Re: Problem installing Platform SDK for Java
« Reply #2 on: November 15, 2019, 11:51:29 PM »
I installed them to my local repository following the instructions on the readme file.

I ran:
mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=<Platform SDK Folder>\lib\kvlists.jar -DpomFile=<Platform SDK Folder>\lib\pom\kvlists.pom
...and likewise for all the others, but I got an error with the two files listed above because the .jar files were not present in the lib folder.

Edit: I just tried adding the comappblock IDE (I picked that one because it was the first one), and I got the following error:

Quote
Project build error: Non-resolvable import POM: Failure to find com.genesyslab.platform:appblocks-bom:pom:852.1.4 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
« Last Edit: November 15, 2019, 11:56:48 PM by Gabi »

Offline PeteHoyle

  • Full Member
  • ***
  • Posts: 117
  • Karma: 10
Re: Problem installing Platform SDK for Java
« Reply #3 on: November 16, 2019, 12:56:48 AM »
You won't have a .jar file for those two, they are Maven Bill Of Materials.

Try running:

  mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=<Platform SDK Folder>\lib\pom\appblocks-bom.pom -DpomFile=<Platform SDK Folder>\lib\pom\appblocks-bom.pom
  mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=<Platform SDK Folder>\lib\pom\protocols-bom.pom -DpomFile=<Platform SDK Folder>\lib\pom\protocols-bom.pom