fixed risev2g dependency

This commit is contained in:
blackwiz4rd 2021-03-03 19:05:47 +01:00
parent e86ad45a63
commit 0e5f2e0160
6 changed files with 28 additions and 14 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
target/

View File

@ -9,19 +9,14 @@ A release is available with a compiled Java Runtime binary there: https://github
## How to compile
Install maven
Build risev2g (or use utilities/rise-v2g-shared-1.2.6.jar):
`git clone https://github.com/V2GClarity/RISE-V2G/`
`cd RISE-V2G/RISE-V2G-PARENT`
`mvn install`
Now install the RISE-V2G-Shared in our project:
`mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=utilities/rise-v2g-shared-1.2.6.jar`
```git clone https://github.com/V2GClarity/RISE-V2G/```
```cd RISE-V2G/RISE-V2G-PARENT```
```mvn install```
Now copy RISE-V2G-Shared in our project:
```cp RISE-V2G/RISE-V2G-Shared/target/rise-v2g-shared-1.2.6.jar src/lib/com.v2gclarity.risev2g/```
To compile
`mvn package`
Fix risev2g inclusion:
-com.v2gclarity.risev2g.shared.enumerations
-com.v2gclarity.risev2g.shared.messageHandling
-com.v2gclarity.risev2g.shared.utils
```mvn package```
## How to use

16
pom.xml
View File

@ -20,7 +20,19 @@
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<repositories>
<repository>
<id>project-local-repo</id>
<url>file://${project.basedir}/src/lib/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.v2gclarity.risev2g</groupId>
<artifactId>rise-v2g-shared</artifactId>
<version>1.2.6</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.siemens.ct.exi/exificient -->
<dependency>
<groupId>com.siemens.ct.exi</groupId>
@ -61,10 +73,10 @@
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
</plugin>
<plugin>
<!-- <plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
</plugin>
</plugin> -->
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>

View File

@ -46,7 +46,7 @@ public class dataprocess {
}
public static void initConfig() {
MiscUtils.setV2gEntityConfig("./test.properties");
MiscUtils.loadProperties("./test.properties");
}
public static String Xml2Exi(String xmlstr, decodeMode mode) throws IOException, SAXException, EXIException {

View File

@ -0,0 +1,6 @@
com/fluxlus/V2Gdecoder/server/WorkerRunnable.class
com/fluxlus/V2Gdecoder/dataprocess/dataprocess.class
com/fluxlus/V2Gdecoder/server/MultiThreadedServer.class
com/fluxlus/V2Gdecoder/dataprocess/decodeMode.class
com/fluxlus/V2Gdecoder/V2Gdecoder.class
com/fluxlus/V2Gdecoder/binascii/BinAscii.class