Author Topic: [Solved] Problem installing Platform SDK for Java  (Read 3778 times)

Offline Gabi

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 0
[Solved] Problem installing Platform SDK for Java
« on: November 15, 2019, 02: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:
[list]
[li]appblocks-bom.jar[/li]
[li]protocols-bom.jar[/li]
[/list]

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[/quote]

Does anyone know how I can obtain those two JARs?

Thank you in advance.
« Last Edit: August 31, 2020, 04:49:53 PM by Gabi »

Offline PeteHoyle

  • Full Member
  • ***
  • Posts: 126
  • Karma: 13
Re: Problem installing Platform SDK for Java
« Reply #1 on: November 15, 2019, 02: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: 64
  • Karma: 0
Re: Problem installing Platform SDK for Java
« Reply #2 on: November 15, 2019, 02: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 [b]comappblock[/b] 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[/quote]
« Last Edit: November 15, 2019, 02:56:48 PM by Gabi »

Offline PeteHoyle

  • Full Member
  • ***
  • Posts: 126
  • Karma: 13
Re: Problem installing Platform SDK for Java
« Reply #3 on: November 15, 2019, 03:56:48 PM »
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\[b]appblocks-bom.pom[/b] -DpomFile=<Platform SDK Folder>\lib\pom\[b]appblocks-bom.pom[/b]
  mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=<Platform SDK Folder>\lib\pom\[b]protocols-bom.pom[/b] -DpomFile=<Platform SDK Folder>\lib\pom\[b]protocols-bom.pom[/b]