Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

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

Breadcrumb

  1. Home
  2. Node
  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.

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

3 years 10 months ago

Hi,

Hi,

There is a typo in your command line parameters.

mvn clean package

BR,
Mikko

kevin jose minj

3 years 10 months 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

3 years 10 months 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

kevin jose minj

3 years 10 months 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

3 years 10 months 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

kevin jose minj

3 years 10 months 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

3 years 10 months ago

Hi,

Hi,

What Java version are you using?
java --version

BR,
Mikko

kevin jose minj

3 years 10 months 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

3 years 10 months 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

kevin jose minj

3 years 10 months ago

In reply to Hi, by Kurumi

64 bit

64 bit

Any updates on this error?

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 10/13/2026 - 12:00
    gurux.dlms.java 4.0.97
  • Tue, 09/22/2026 - 14:02
    Gurux.DLMS.Net 9.0.2609.2201
  • Mon, 09/21/2026 - 10:18
    Gurux.DLMS.Net 9.0.2609.2101
  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202

New forum topics

  • Need RJ45 pin configuration for Saral 300 and Saral 305 Secure meters
  • Query Regarding Class 63 Status Mapping Support in Gurux DLMS Python
  • Inhemeter
  • DLMS Server - Profile Generic - can't add too many items to profile generic capture object - how to set maximum profile entries
  • HDLC Frames sequencing
More

Who's new

  • Asier Sierra
  • BlessyAnn
  • sravya.thota@m…
  • Diwakar
  • williamorussell
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin