With the AgenPro 3.x maven plugin you can integrate the code generation into your Maven build process.
Prerequisites
- Maven 2.2.1 or later.
- AgenPro 3.0 or later.
Installation
Maven Repository Settings
Before you can start to install the AgenPro Maven Plugin you need to setup a local repository for your Maven installation and to specify a shortcut for the AgenPro Maven plugin prefix.
You can specify your Maven settings in the settings.xml file in the .m2 directory within your home directory.
The settings.xml file should contain at least the following settings:
<settings> <pluginGroups> <pluginGroup>com.oosnmp.agenpro.maven.plugins</pluginGroup> </pluginGroups> <localRepository>D:/maven/repository</localRepository> </settings>
AgenPro JAR
Download the AgenPro.jar file and install it into your Maven repository:
mvn install:install-file -Dfile=agenpro3.jar -DgroupId=com.oosnmp.agenpro -DartifactId=agenpro -Dversion=3.0.0 -Dpackaging=jar
AgenPro Maven Plugin
Download the AgenPro 3 Maven plugin and install it into your Maven repository:
mvn install:install-file -Dfile=agenpro3-plugin.jar -DgroupId=com.oosnmp.agenpro -DartifactId=agenpro-plugin -Dversion=3.0.0 -Dpackaging=jar