Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
  • Gurux Club
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Build failed

Build failed

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

Profile picture for user kevin jose minj
By kevin jose minj, 4 January, 2023
Forums
General discussion

I have to create one simulator of smart meter using java but it shows error

D:\simulator\gurux.dlms.simulator.java>mvn clean backage
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------< org.gurux:gurux.dlms.simulator.java >-----------------
[INFO] Building gurux.dlms.simulator.java 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.110 s
[INFO] Finished at: 2023-01-04T12:41:14+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "backage". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFound…

Profile picture for user Kurumi

Kurumi

8 months 3 weeks ago

Hi,

Hi,

There is a typo in your command line parameters.

mvn clean package

BR,
Mikko

Profile picture for user kevin jose minj

kevin jose minj

8 months 3 weeks ago

In reply to Hi, by Kurumi

After build package I tried

After build package I tried this it is not executing
D:\simulator\gurux.dlms.simulator.java>Gurux.Dlms.Simulator.Net -S COM5

I am using windows .NET is required for this simulator and how to connect dlms python library to access this meter simulator

Profile picture for user Kurumi

Kurumi

8 months 3 weeks ago

Hi,

Hi,

You need to use .Net version, not the java version. You can download it from here:
https://github.com/Gurux/Gurux.DLMS.Net/tree/master/Gurux.DLMS.Simulato…

You can connect with python something like this:
python main.py -S YOUR_SERIAL_PORT

Note that you need two serial ports that are connected. You might want to use TCP/IP to get started.

BR,
Mikko

BR,
Mikko

Profile picture for user kevin jose minj

kevin jose minj

8 months 3 weeks ago

How to run java version as

How to run java version as the simulator and create the xml file for first time?

Profile picture for user Kurumi

Kurumi

8 months 3 weeks ago

Hi,

Hi,

Read this to get started.
https://www.gurux.fi/Gurux.DLMS.Simulator

You can use crystal template or import existing device.

BR,
Mikko

BR,
Mikko

Profile picture for user kevin jose minj

kevin jose minj

8 months 3 weeks ago

In reply to Hi, by Kurumi

D:\simulator\gurux.dlms

D:\simulator\gurux.dlms.simulator.java>java -jar target/gurux.dlms.simulator.java-0.0.1-SNAPSHOT.jar -S COM5 -o simulator_template.xml -t verbose
Ended. Press any key to continue.
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\DELL\AppData\Local\Temp\gurux.serial.java15936243905483016552.dll: Can't find dependent libraries
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:331)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:197)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:139)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2404)
at java.base/java.lang.Runtime.load0(Runtime.java:785)
at java.base/java.lang.System.load(System.java:2011)
at gurux.serial.GXSerial.initialize(GXSerial.java:329)
at gurux.serial.GXSerial.<init>(GXSerial.java:179)
at gurux.dlms.simulator.Settings.getParameters(Settings.java:293)
at gurux.dlms.simulator.Simulator.main(Simulator.java:273)

when I tried this command I am getting this error

Profile picture for user Kurumi

Kurumi

8 months 3 weeks ago

Hi,

Hi,

What Java version are you using?
java --version

BR,
Mikko

Profile picture for user kevin jose minj

kevin jose minj

8 months 3 weeks ago

In reply to Hi, by Kurumi

java 19.0.1 2022-10-18

java 19.0.1 2022-10-18
Java(TM) SE Runtime Environment (build 19.0.1+10-21)
Java HotSpot(TM) 64-Bit Server VM (build 19.0.1+10-21, mixed mode, sharing)

Any solution?

Profile picture for user Kurumi

Kurumi

8 months 3 weeks ago

Hi,

Hi,

This is the first time when someone has had this problem. I'll send more info as soon as this can be repeated. Is your Windows 64-bit or 32-bit?

BR,
Mikko

Profile picture for user kevin jose minj

kevin jose minj

8 months 3 weeks ago

In reply to Hi, by Kurumi

64 bit

64 bit

Any updates on this error?

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

Fri, 09/22/2023 - 19:50
gurux.dlms.c 20230922.1
Mon, 09/18/2023 - 13:51
Gurux.DLMS.AMI4 4.0.2309.1801
Fri, 09/15/2023 - 12:00
gurux.dlms.c 20230915.1
Tue, 09/12/2023 - 11:10
Gurux.DLMS.AMI4 4.0.2309.1201
Fri, 09/08/2023 - 10:59
gurux.dlms.c 20230908.1

Open bugs

gurux.dlms.c
3
gurux.dlms.cpp
3
gurux.dlms.delphi
1

New forum topics

  • problem with date and time in ION
  • Permament rejected
  • DLMS- GMAC: SNRM, AARQ, AARE is responding but not able to decrypt the Authentication key received from the meter
  • List complete policy security configuration basic (configuration security))
  • Save Association view in database
More

Who's new

  • azcah
  • Robertciz
  • Ilushikqtg
  • Margaretyhs
  • Mariohag
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin