diff --git a/core-api/src/main/java/com/airepublic/bmstoinverter/core/Inverter.java b/core-api/src/main/java/com/airepublic/bmstoinverter/core/Inverter.java
index 90e4c6b8..d796ce8b 100644
--- a/core-api/src/main/java/com/airepublic/bmstoinverter/core/Inverter.java
+++ b/core-api/src/main/java/com/airepublic/bmstoinverter/core/Inverter.java
@@ -27,8 +27,8 @@ public void init() {
final PortType portType = getClass().getAnnotation(PortType.class);
if (portType == null) {
- LOG.error(PortType.class.getName() + " Annotation is missing on PortProcessor " + getClass().getCanonicalName());
- throw new IllegalArgumentException(PortType.class.getName() + " Annotation is missing on PortProcessor " + getClass().getCanonicalName());
+ LOG.error(PortType.class.getName() + " Annotation is missing on Inverter " + getClass().getCanonicalName());
+ throw new IllegalArgumentException(PortType.class.getName() + " Annotation is missing on Inverter " + getClass().getCanonicalName());
}
// from the protocol get the service class to use
diff --git a/core-api/src/main/java/com/airepublic/bmstoinverter/core/protocol/can/CAN.java b/core-api/src/main/java/com/airepublic/bmstoinverter/core/protocol/can/CAN.java
index d4b0f3ec..6c1e1b48 100644
--- a/core-api/src/main/java/com/airepublic/bmstoinverter/core/protocol/can/CAN.java
+++ b/core-api/src/main/java/com/airepublic/bmstoinverter/core/protocol/can/CAN.java
@@ -3,7 +3,9 @@
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
import jakarta.inject.Qualifier;
@@ -13,5 +15,6 @@
@Qualifier
@Retention(RUNTIME)
@Documented
+@Target({ ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, ElementType.TYPE })
public @interface CAN {
}
diff --git a/core-api/src/main/java/com/airepublic/bmstoinverter/core/protocol/modbus/ModBus.java b/core-api/src/main/java/com/airepublic/bmstoinverter/core/protocol/modbus/ModBus.java
index 88cb025c..9f49a33e 100644
--- a/core-api/src/main/java/com/airepublic/bmstoinverter/core/protocol/modbus/ModBus.java
+++ b/core-api/src/main/java/com/airepublic/bmstoinverter/core/protocol/modbus/ModBus.java
@@ -3,7 +3,9 @@
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
import jakarta.inject.Qualifier;
@@ -13,6 +15,7 @@
@Qualifier
@Retention(RUNTIME)
@Documented
+@Target({ ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, ElementType.TYPE })
public @interface ModBus {
}
diff --git a/core-api/src/main/java/com/airepublic/bmstoinverter/core/protocol/rs485/RS485.java b/core-api/src/main/java/com/airepublic/bmstoinverter/core/protocol/rs485/RS485.java
index c14f6dd4..1cf00b0e 100644
--- a/core-api/src/main/java/com/airepublic/bmstoinverter/core/protocol/rs485/RS485.java
+++ b/core-api/src/main/java/com/airepublic/bmstoinverter/core/protocol/rs485/RS485.java
@@ -3,7 +3,9 @@
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
import jakarta.inject.Qualifier;
@@ -13,6 +15,7 @@
@Qualifier
@Retention(RUNTIME)
@Documented
+@Target({ ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, ElementType.TYPE })
public @interface RS485 {
}
diff --git a/inverter-growatt-can/pom.xml b/inverter-growatt-can/pom.xml
index e5d18be6..ca845e71 100644
--- a/inverter-growatt-can/pom.xml
+++ b/inverter-growatt-can/pom.xml
@@ -20,10 +20,17 @@
+
+ com.ai-republic.bms-to-inverter
+ core-api
+ ${project.version}
+
+
com.ai-republic.bms-to-inverter
protocol-can
${project.version}
+
\ No newline at end of file
diff --git a/inverter-growatt-can/src/main/resources/META-INF/beans.xml b/inverter-growatt-can/src/main/resources/META-INF/beans.xml
new file mode 100644
index 00000000..5fc4e5ce
--- /dev/null
+++ b/inverter-growatt-can/src/main/resources/META-INF/beans.xml
@@ -0,0 +1,4 @@
+
+
\ No newline at end of file
diff --git a/inverter-growatt-rs485/pom.xml b/inverter-growatt-rs485/pom.xml
index 6768125f..7b0b3c82 100644
--- a/inverter-growatt-rs485/pom.xml
+++ b/inverter-growatt-rs485/pom.xml
@@ -16,6 +16,12 @@
+
+ com.ai-republic.bms-to-inverter
+ core-api
+ ${project.version}
+
+
com.ai-republic.bms-to-inverter
protocol-modbus
diff --git a/inverter-growatt-rs485/src/main/resources/META-INF/beans.xml b/inverter-growatt-rs485/src/main/resources/META-INF/beans.xml
new file mode 100644
index 00000000..5fc4e5ce
--- /dev/null
+++ b/inverter-growatt-rs485/src/main/resources/META-INF/beans.xml
@@ -0,0 +1,4 @@
+
+
\ No newline at end of file
diff --git a/inverter-solark-can/pom.xml b/inverter-solark-can/pom.xml
index 9794b63b..4ab0bef0 100644
--- a/inverter-solark-can/pom.xml
+++ b/inverter-solark-can/pom.xml
@@ -20,6 +20,12 @@
+
+ com.ai-republic.bms-to-inverter
+ core-api
+ ${project.version}
+
+
com.ai-republic.bms-to-inverter
protocol-can
diff --git a/inverter-solark-can/src/main/resources/META-INF/beans.xml b/inverter-solark-can/src/main/resources/META-INF/beans.xml
new file mode 100644
index 00000000..5fc4e5ce
--- /dev/null
+++ b/inverter-solark-can/src/main/resources/META-INF/beans.xml
@@ -0,0 +1,4 @@
+
+
\ No newline at end of file