Updated pom.xml to include log4j-over-slf4j for http client to work

properly and make sure the minimize jar function does not remove it.
Also removed call to VeraInfo in the main program as it is not needed.
This commit is contained in:
Admin
2015-08-18 11:16:00 -05:00
parent 8d9357cf9e
commit 77ec373381
2 changed files with 17 additions and 3 deletions

17
pom.xml
View File

@@ -33,6 +33,11 @@
<artifactId>slf4j-simple</artifactId>
<version>1.7.5</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<version>1.7.5</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
@@ -79,6 +84,18 @@
<exclude>*.properties</exclude>
</excludes>
</filter>
<filter>
<artifact>org.slf4j:*</artifact>
<includes>
<include>**</include>
</includes>
</filter>
<filter>
<artifact>commons-logging:commons-logging</artifact>
<includes>
<include>**</include>
</includes>
</filter>
</filters>
<transformers>
<transformer

View File

@@ -37,7 +37,6 @@ public class HABridge {
HueMulator theHueMulator;
UpnpSettingsResource theSettingResponder;
UpnpListener theUpnpListener;
VeraInfo theVera;
InetAddress address;
String addressString;
BridgeSettings bridgeSettings;
@@ -65,8 +64,6 @@ public class HABridge {
// sparkjava config directive to set html static file location for Jetty
staticFileLocation("/public");
log.info("Starting setup....");
theVera = new VeraInfo(bridgeSettings.getVeraAddress());
theVera.getSdata();
// setup the class to handle the resource setup rest api
theResources = new DeviceResource(bridgeSettings);
// setup the class to handle the hue emulator rest api