<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.snmp4j</groupId> <artifactId>snmp4j-agentx</artifactId> <packaging>jar</packaging> <version>3.5.1</version> <name>SNMP4J-AgentX</name> <description>AgentX API for Java with SNMP4J-Agent</description> <url>https://www.snmp4j.org</url> <developers> <developer> <name>Frank Fock</name> <email>fock@agentpp.com</email> <organization>AGENTPP</organization> <organizationUrl>https://agentpp.com</organizationUrl> </developer> </developers> <properties> <sourceEncoding>UTF-8</sourceEncoding> <resourceEncoding>UTF-8</resourceEncoding> </properties> <scm> <url>scm:git:git@nmp.app:snmp4j-agentx.git</url> <developerConnection>scm:git:git@snmp.app:snmp4j-agentx.git</developerConnection> <tag>HEAD</tag> </scm> <licenses> <license> <name>GNU General Public License v2</name> <url>https://www.snmp4j.org/GPL.txt</url> <distribution>repo</distribution> </license> </licenses> <organization> <name>SNMP4J.org</name> <url>https://www.snmp4j.org</url> </organization> <profiles> <profile> <id>default</id> <distributionManagement> <downloadUrl>https://snmp.app/dist</downloadUrl> <repository> <uniqueVersion>false</uniqueVersion> <id>oosnmpRepo</id> <name>snmp.app Repository</name> <url>dav:https://snmp.app/dist/release</url> <layout>default</layout> </repository> <snapshotRepository> <uniqueVersion>false</uniqueVersion> <id>oosnmpRepo</id> <name>snmp.app Snapshots</name> <url>dav:https://snmp.app/dist/snapshot</url> <layout>default</layout> </snapshotRepository> </distributionManagement> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>3.3.0</version> <configuration> <descriptors> <descriptor>assembly.xml</descriptor> </descriptors> </configuration> <executions> <execution> <id>make-assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>ossrh</id> <distributionManagement> <snapshotRepository> <id>ossrh</id> <url>https://oss.sonatype.org/content/repositories/snapshots</url> </snapshotRepository> <repository> <id>ossrh</id> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> </repository> </distributionManagement> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>1.6</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> <configuration> <keyname>${gpg.keyname}</keyname> <passphraseServerId>${gpg.keyname}</passphraseServerId> <gpgArguments> <arg>--pinentry-mode</arg> <arg>loopback</arg> </gpgArguments> </configuration> </plugin> <plugin> <groupId>org.sonatype.plugins</groupId> <artifactId>nexus-staging-maven-plugin</artifactId> <version>1.6.8</version> <extensions>true</extensions> <configuration> <serverId>ossrh</serverId> <nexusUrl>https://oss.sonatype.org/</nexusUrl> <autoReleaseAfterClose>true</autoReleaseAfterClose> </configuration> </plugin> </plugins> </build> </profile> </profiles> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.2</version> <scope>test</scope> </dependency> <dependency> <groupId>org.snmp4j</groupId> <artifactId>snmp4j</artifactId> <version>3.6.2</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.snmp4j</groupId> <artifactId>snmp4j-agent</artifactId> <version>3.5.2</version> <scope>compile</scope> <exclusions> <exclusion> <!-- Exclude transitive dependency to SNMP4J --> <groupId>org.snmp4j</groupId> <artifactId>snmp4j</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.snmp4j</groupId> <artifactId>snmp4j-agent-db</artifactId> <version>3.5.2</version> <scope>compile</scope> <exclusions> <exclusion> <!-- Exclude transitive dependency to SNMP4J --> <groupId>org.snmp4j</groupId> <artifactId>snmp4j</artifactId> </exclusion> <exclusion> <!-- Exclude transitive dependency to SNMP4J-Agent --> <groupId>org.snmp4j</groupId> <artifactId>snmp4j-agent</artifactId> </exclusion> </exclusions> </dependency> </dependencies> <build> <extensions> <extension> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-webdav-jackrabbit</artifactId> <version>3.4.3</version> </extension> </extensions> <resources> <resource> <directory>src</directory> <includes> <include>**/*.properties</include> </includes> </resource> </resources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>3.3.0</version> <executions> <execution> <id>make-assembly-jar</id> <!-- this is used for inheritance merges --> <phase>prepare-package</phase> <!-- append to the packaging phase. --> <goals> <goal>single</goal> <!-- goals == mojos --> </goals> <configuration> <outputDirectory>${project.build.directory}/with-dep</outputDirectory> <descriptors> <descriptor>assembly-jar.xml</descriptor> </descriptors> </configuration> </execution> <execution> <id>make-assembly</id> <!-- this is used for inheritance merges --> <phase>package</phase> <!-- append to the packaging phase. --> <goals> <goal>single</goal> <!-- goals == mojos --> </goals> <configuration> <descriptors> <descriptor>assembly.xml</descriptor> </descriptors> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>3.2.0</version> <configuration> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.2.1</version> <executions> <execution> <id>attach-sources</id> <phase>verify</phase> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <source>1.9</source> <target>1.9</target> <encoding>UTF-8</encoding> <compilerArgument>-Xlint:all</compilerArgument> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>3.3.0</version> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> <configuration> <stylesheet>java</stylesheet> <doctitle>${project.name} ${project.version}</doctitle> <bottom>Copyright 2005-2021 Frank Fock (SNMP4J.org)</bottom> <windowtitle>${project.name} ${project.version}</windowtitle> <show>protected</show> <version /> <author /> <encoding>UTF-8</encoding> <additionalOptions>-html5</additionalOptions> </configuration> </plugin> </plugins> </build> </project>
<dependency> <groupId>org.snmp4j</groupId> <artifactId>snmp4j-agentx</artifactId> <version>3.5.1</version> <classifier>jar-with-dep</classifier> </dependency>
org.snmp4j:snmp4j-agentx:3.5.1:jar-with-dep