Child pages
  • AgenPro Maven Plugin
Skip to end of metadata
Go to start of metadata

With the AgenPro Maven plugin you can integrate the code generation into your Maven build process.


  • Maven 3.3.1 or later.
  • AgenPro 4.2 or later.


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:


SNMP4J and SNMP4J-Agent JARs 

(A) Maven Central

Instead manually installing SNMP4J and SNMP4J-Agent, you can also use the JARs from Maven Central:

            <!-- Exclude transitive dependency to SNMP4J -->

(B) Manual Local Repository Installation

Download SNMP4J and SNMP4J-Agent ZIP files and unpack them in a local folder. Then run the following Maven commands from the dist/lib directories:

mvn install:install-file -Dfile=SNMP4J.jar -DgroupId=org.snmp4j -DartifactId=snmp4j -Dversion=2.6.2 -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -Dfile=SNMP4J-Agent.jar -DgroupId=org.snmp4j -DartifactId=snmp4j-agent -Dversion=2.6.3 -Dpackaging=jar -DgeneratePom=true

AgenPro JAR

Download the AgenPro.jar file and install it into your Maven repository:

mvn install:install-file -Dfile=agenpro4.jar -DgroupId=com.oosnmp.agenpro -DartifactId=agenpro -Dversion=4.2.1 -Dpackaging=jar -DgeneratePom=true

AgenPro Maven Plugin

Download the AgenPro Maven plugin and install it into your Maven repository:

mvn install:install-file -Dfile=agenpro4-plugin.jar -DgroupId=com.oosnmp.agenpro -DartifactId=agenpro-plugin -Dversion=4.2.1 -Dpackaging=jar -DgeneratePom=true
  • No labels