-
Notifications
You must be signed in to change notification settings - Fork 0
Getting started
daniel-sc edited this page Nov 4, 2014
·
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.
- Download latest code-gen-core[VERSION]-jar-with-dependencies.jar.
- Start a console and type
java -jar code-gen-core[VERSION]-jar-with-dependencies.jar PODIOUSERNAME PODIOPASSWORD APPID_1 .. APPID_Norjava -jar code-gen-core[VERSION]-jar-with-dependencies.jar PODIOUSERNAME PODIOPASSWORD -space SPACEID - Browse resulting code in the
podio/generated/subfolder. - For compiling the generated classes (and fully understanding them) you need the latest code-gen-static[VERSION].jar.
- Create a new maven module/project.
- Adapt your
pom.xmlaccording to this template: code-gen/podio-codegen-maven-plugin/template_pom.xml. - Do a
mvn clean installin your newly created project. - Check the
targetdirectory for generated jar and source files. - You might want to subclass
GenericPodioImplfor maximal ease of access.