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

View File

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