Permalink
Browse files

work around the missing jar in maven central (until they are), remove…

…d deps to testing classes,
  • Loading branch information...
1 parent 8dd2fb1 commit 567f7e15ed685cd3747fee3e904cf2e859f3ad3e @tcurdt committed Oct 20, 2009
View
@@ -6,4 +6,3 @@ target
eclipse
old
bin
-lib
Binary file not shown.
@@ -0,0 +1 @@
+fc3b1d8112585ec2f7174447b5694f51
@@ -0,0 +1 @@
+fc5438e70947582ed184b566ef30c84822755a68
@@ -0,0 +1,58 @@
+<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>mt.jmx</groupId>
+ <artifactId>jmxutils</artifactId>
+ <packaging>jar</packaging>
+ <version>1.2.2</version>
+ <name>jmxutils</name>
+ <url>http://github.com/martint/jmxutils</url>
+
+ <licenses>
+ <license>
+ <name>Apache License 2</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+
+ <scm>
+ <connection>scm:git:git://github.com:martint/jmxutils.git</connection>
+ <developerConnection>scm:git:git://github.com:martint/jmxutils.git</developerConnection>
+ <url>http://github.com/martint/jmxutils/tree/master</url>
+ </scm>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.testng</groupId>
+ <artifactId>testng</artifactId>
+ <version>5.6</version>
+ <scope>test</scope>
+ <classifier>jdk15</classifier>
+ </dependency>
+
+ <dependency>
+ <groupId>com.thoughtworks.paranamer</groupId>
+ <artifactId>paranamer</artifactId>
+ <version>2.1</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.google.inject</groupId>
+ <artifactId>guice</artifactId>
+ <version>2.0</version>
+ <scope>compile</scope>
+ <optional>true</optional>
+ </dependency>
+
+ <dependency>
+ <groupId>com.google.inject.extensions</groupId>
+ <artifactId>guice-multibindings</artifactId>
+ <version>2.0</version>
+ <scope>compile</scope>
+ <optional>true</optional>
+ </dependency>
+ </dependencies>
+
+</project>
@@ -0,0 +1 @@
+cccf9592dbf47b8d8f78090881052d58
@@ -0,0 +1 @@
+62120e915f2b8db9f900dd9e0bafdc8a1f8a96e1
@@ -0,0 +1,25 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.snmp4j</groupId>
+ <artifactId>snmp4j-agent</artifactId>
+ <version>1.3.1</version>
+ <packaging>jar</packaging>
+ <name>SNMP4J Agent</name>
+ <url>http://www.snmp4j.org</url>
+ <description>SNMP4J - The Object Oriented SNMP API for Java Managers and Agents</description>
+ <licenses>
+ <license>
+ <name>The Apache Software License, Version 2.0</name>
+ <url>http://www.snmp4j.org/LICENSE-2_0.txt</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ <scm/>
+ <dependencies>
+ <dependency>
+ <groupId>org.snmp4j</groupId>
+ <artifactId>snmp4j</artifactId>
+ <version>1.10.1</version>
+ </dependency>
+ </dependencies>
+</project>
@@ -0,0 +1 @@
+a76983eda125b9619340826e76353778
@@ -0,0 +1 @@
+eed22b60b432424897e410b59240e4c173566ac4
Binary file not shown.
@@ -0,0 +1 @@
+f460a54b93cb0f370b1c9d7ec469a93e
@@ -0,0 +1 @@
+4174ab9f4a3244726702a86eb283caa7b1ecd72b
@@ -0,0 +1,25 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.snmp4j</groupId>
+ <artifactId>snmp4j</artifactId>
+ <version>1.10.1</version>
+ <packaging>jar</packaging>
+ <name>SNMP4J</name>
+ <url>http://www.snmp4j.org</url>
+ <description>SNMP4J - The Object Oriented SNMP API for Java Managers and Agents</description>
+ <licenses>
+ <license>
+ <name>The Apache Software License, Version 2.0</name>
+ <url>http://www.snmp4j.org/LICENSE-2_0.txt</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ <scm/>
+ <dependencies>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.9</version>
+ </dependency>
+ </dependencies>
+</project>
@@ -0,0 +1 @@
+1f62524b5dafcf278c1dd972fde97262
@@ -0,0 +1 @@
+c03011e7a8ce28f3aa92a16020776251a07c6de3
Binary file not shown.
@@ -0,0 +1 @@
+855ee7eaca715f5d7c63c1b80db647d0
@@ -0,0 +1 @@
+7e6b6dc9dbc5e87a164e0f47c5ca7174fcdf2d12
View
@@ -44,15 +44,15 @@
<artifactId>snmp4j-agent</artifactId>
<version>1.3.1</version>
</dependency>
- <!-- <dependency>
+ <dependency>
<groupId>org.snmp4j</groupId>
<artifactId>snmp4j</artifactId>
<version>1.10.1</version>
- </dependency> -->
+ </dependency>
<dependency>
- <groupId>jmxutils</groupId>
+ <groupId>mt.jmx</groupId>
<artifactId>jmxutils</artifactId>
- <version>1.2.4</version>
+ <version>1.2.2</version>
</dependency>
<dependency>
@@ -64,7 +64,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <version>4.5.0</version>
+ <version>4.5</version>
<scope>test</scope>
</dependency>
</dependencies>
@@ -124,19 +124,19 @@
<configuration>
<artifactSet>
<includes>
- <include>jmxutils:jmxutils</include>
+ <include>mt.jmx:jmxutils</include>
<include>org.snmp4j:snmp4j-agent</include>
- <!-- <include>org.snmp4j:snmp4j</include> -->
+ <include>org.snmp4j:snmp4j</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>org.snmp4j</pattern>
- <shadedPattern>org.vafer.jmx2snmp.snmp4j</shadedPattern>
+ <shadedPattern>org.vafer.jmx2snmp.shaded.snmp4j</shadedPattern>
</relocation>
<relocation>
- <pattern>mt.jmxutils</pattern>
- <shadedPattern>org.vafer.jmx2snmp.jmxutils</shadedPattern>
+ <pattern>mt.jmx</pattern>
+ <shadedPattern>org.vafer.jmx2snmp.shaded.jmxutils</shadedPattern>
</relocation>
</relocations>
</configuration>
@@ -146,4 +146,10 @@
</plugins>
</build>
+ <repositories>
+ <repository>
+ <id>local</id>
+ <url>file:${basedir}/lib</url>
+ </repository>
+ </repositories>
</project>
@@ -27,8 +27,8 @@
import org.vafer.jmx2snmp.jmx.JmxAttribute;
import org.vafer.jmx2snmp.jmx.JmxMib;
import org.vafer.jmx2snmp.jmx.JmxServer;
-import org.vafer.jmx2snmp.jmxutils.JmxutilsTestCase;
-import org.vafer.jmx2snmp.jmxutils.beans.TestBeanImpl;
+// import org.vafer.jmx2snmp.jmxutils.JmxutilsTestCase;
+// import org.vafer.jmx2snmp.jmxutils.beans.TestBeanImpl;
public final class SnmpBridge implements CommandResponder {
@@ -182,29 +182,29 @@ private Variable getVariableFromJmxAttribute(JmxAttribute pAttribute) throws JME
}
- public static void main(String[] args) throws Exception {
-
- System.out.println("starting...");
-
- final MBeanExporter exporter = new MBeanExporter(ManagementFactory.getPlatformMBeanServer());
- exporter.export("bean:name=test1", new TestBeanImpl());
-
- final JmxServer jmxServer = new JmxServer(InetAddress.getByName("localhost"));
- jmxServer.start();
-
- final URL url = JmxutilsTestCase.class.getResource("/org/vafer/jmx2snmp/mapping.properties");
-
- final JmxMib jmxMib = new JmxMib();
- jmxMib.load(new FileReader(url.getFile()));
-
- final SnmpBridge snmpBridge = new SnmpBridge(InetAddress.getByName("192.168.214.1"), 1161, jmxServer, jmxMib);
- snmpBridge.start();
-
- System.out.println("enter 'quit' to stop...");
- final Scanner sc = new Scanner(System.in);
- while(!sc.nextLine().equals("quit"));
-
- snmpBridge.stop();
- jmxServer.stop();
- }
+ // public static void main(String[] args) throws Exception {
+ //
+ // System.out.println("starting...");
+ //
+ // final MBeanExporter exporter = new MBeanExporter(ManagementFactory.getPlatformMBeanServer());
+ // exporter.export("bean:name=test1", new TestBeanImpl());
+ //
+ // final JmxServer jmxServer = new JmxServer(InetAddress.getByName("localhost"));
+ // jmxServer.start();
+ //
+ // final URL url = JmxutilsTestCase.class.getResource("/org/vafer/jmx2snmp/mapping.properties");
+ //
+ // final JmxMib jmxMib = new JmxMib();
+ // jmxMib.load(new FileReader(url.getFile()));
+ //
+ // final SnmpBridge snmpBridge = new SnmpBridge(InetAddress.getByName("192.168.214.1"), 1161, jmxServer, jmxMib);
+ // snmpBridge.start();
+ //
+ // System.out.println("enter 'quit' to stop...");
+ // final Scanner sc = new Scanner(System.in);
+ // while(!sc.nextLine().equals("quit"));
+ //
+ // snmpBridge.stop();
+ // jmxServer.stop();
+ // }
}

0 comments on commit 567f7e1

Please sign in to comment.