Apigee Java JARs - Where, What, How?

Not applicable

Where are the Apigee java jars documented? What JARs are available, what versions of these jars exist, what functions do they perform, can I pull them in with a build script from somewhere like maven central?

The documentation for this seems to be lacking, and I dislike the cook book suggestion which just bundles the necessary dependencies in a lib folder within the project directory.

0 4 1,912
4 REPLIES 4

@robin wilkins , Welcome to Apigee Community.

See some what similar question here that lists available jars.

If anyone comes to answer this question, please help by including information about downloading the jars as well. Jars like message-flow and expression are not available in public repositories.

Yes, that's true. Unfortunate and true.

This is what I use to download and install those JARs into my local maven repo:

#!/bin/bash
# -*- mode:shell-script; coding:utf-8; -*-
#
# Created: <Tue Oct  6 11:46:13 2015>
# Last Updated: <2015-October-06 11:53:42>
#


echo
echo "This script downloads JAR files and installs them into the local Maven repo."
echo


curl -O https://raw.githubusercontent.com/apigee/api-platform-samples/master/doc-samples/java-cookbook/lib/e...


 mvn install:install-file \
  -Dfile=expressions-1.0.0.jar \
  -DgroupId=com.apigee.edge \
  -DartifactId=expressions \
  -Dversion=1.0.0 \
  -Dpackaging=jar \
  -DgeneratePom=true


rm expressions-1.0.0.jar 


curl -O https://raw.githubusercontent.com/apigee/api-platform-samples/master/doc-samples/java-cookbook/lib/m...


 mvn install:install-file \
  -Dfile=message-flow-1.0.0.jar \
  -DgroupId=com.apigee.edge \
  -DartifactId=message-flow \
  -Dversion=1.0.0 \
  -Dpackaging=jar \
  -DgeneratePom=true


rm message-flow-1.0.0.jar 


echo
echo done.
echo



I'd say:

Don't depend on stuff that isn't documented. If Apigee docs don't list a set of JARs you can depend on, then there is no set of jars you can depend on.

Also, I'd say, that's not quite strictly true. In my experience, Apigee uses BouncyCastle (a current version), so right now anyway, you don't need to bundle that one. I am unsure about other JARs. Of course, Apigee may change that behavior since it's undocumented....

You may want to check out some of the example Java callouts I have published on my github repo.

Go here and search for "Java", and you'll see a bunch of Apigee callouts with maven pom.xml configuration that will show you how to be successful.