Hey Kai,

Indeed our documentation could be a bit better :)
So you do not have a real plc to check against?
The hello plc4x example is made for connecting to a Siemens S7 device, I think.
So you can give it a IP and a field address of a Siemens S7 plc and it will 
fetch the results.
Regarding the demo driver...i have to check (when by daughter finally decides 
to sleep... :) and respond then back to you.

Julian

Von meinem Mobiltelefon gesendet


-------- Ursprüngliche Nachricht --------
Betreff: Re: Generate JARs to try out the examples
Von: Kai Wähner
An: Julian Feinauer
Cc: [email protected]

Thanks. I wasn't aware you can use more than one profile. I can confirm that 
the built now works and generates the JARs.

Can you also point me to some documentation or example how to send some hello 
world messages using a hello world driver? I assume I have to use DummyDriver 
somehow?

⇒   java -cp 
/Users/kai.waehner/git-projects/plc4x/plc4j/examples/hello-world-plc4x/target/plc4j-hello-world-plc4x-0.5.0-SNAPSHOT-jar-with-dependencies.jar
 org.apache.plc4x.java.examples.helloplc4x.HelloPlc4x
Missing required options: connection-string, field-addresses
usage: HelloPlc4x
    --connection-string <arg>   Connection String
    --field-addresses <arg>     Field Addresses (Space separated).


Looks like there is no complete getting started example available somewhere? 
After I have it running, I am happy to write a more detailed summary and create 
a PR for the readme file.



On Fri, Jul 19, 2019 at 5:47 PM Julian Feinauer 
<[email protected]<mailto:[email protected]>> wrote:
Hi Kai,

I think you need the profile "with-java" (cannot check it right now).
So you would need to add "-Pwith-java" to the mvn cl string.

Julian

Von meinem Mobiltelefon gesendet


-------- Ursprüngliche Nachricht --------
Betreff: Generate JARs to try out the examples
Von: Kai Wähner
An: [email protected]<mailto:[email protected]>
Cc:

Hello,

I would like to generate the JARs to try out the examples.

*./mvnw install -P build-executable-jars -DskipTests*

shows

*WARNING: The requested profile "build-executable-jars" could not be
activated because it does not exist.*

The reason is probably that this profile is not defined in the main
pom.xml, but in the folder *plc4x/plc4j/examples*

Can someone please let me know the correct Maven command to generate the
JAR files so that I can create the examples? Thank you.

Best regards,
Kai Waehner

Reply via email to