Skip to content
daniel-sc edited this page Jul 4, 2013 · 5 revisions

This is a maven plugin that easily creates java wrapper classes for podio apps. It can also be used manually from command line.

Getting started (command line)

  1. Download latest code-gen-core[VERSION]-jar-with-dependencies.jar.
  2. Start a console and type java -jar code-gen-core[VERSION]-jar-with-dependencies.jar PODIOUSERNAME PODIOPASSWORD APPID_1 .. APPID_N or java -jar code-gen-core[VERSION]-jar-with-dependencies.jar PODIOUSERNAME PODIOPASSWORD -space SPACEID
  3. Browse resulting code in the podio/generated/ subfolder.

Getting started (maven plugin)

  1. Create a new maven module/project.
  2. Adapt your pom.xml according to this template: code-gen/podio-codegen-maven-plugin/template_pom.xml.
  3. Make sure you have podio.api:0.7.5-SNAPSHOT in your local maven repository (git clone https://github.com/podio/podio-java.git and build with maven. You might want to use -Dmaven.test.skip=true - at least in my setup there were failing tests..) [TODO: remove this step, when a new podio.api version is released.]
  4. Do a mvn clean install in your newly created project.
  5. Check the target directory for generated jar and source files.

Finding your Podio spaceId

See: https://help.podio.com/entries/21920857-Get-Space-ID-

Clone this wiki locally