Hi Gerhard,

from the error you are getting from the maven wrapper it seems, that you don’t 
have “powershell” available, which is a bit odd, as I thought this was always 
available.

And regarding your other email ... where did you have to add that dependency?

If you wanted to give python a try, you would need to add the “with-python” 
profile to the build.

Chris

Von: Scheucher, Gerhard <[email protected]>
Datum: Samstag, 1. April 2023 um 13:10
An: Christofer Dutz <[email protected]>, Dummer, Wolfgang 
<[email protected]>
Cc: Gaal, Alexander <[email protected]>, [email protected] 
<[email protected]>
Betreff: RE: Deine Frage via LinkedIn
Hi Chris,

Installed are:


  *   apache-maven-3.9.1
  *   groovy-4.0.11
  *   jdk-20

just cleaned everything and cloned the repo a new. First, that happened:

[cid:[email protected]]

At least due to any reason the mvnw.cmd install gave an output.

Cleaned the whole .m2:

[cid:[email protected]]


AND NOW with “mvn -N io.takari:maven:wrapper”

[cid:[email protected]]


[cid:[email protected]]


Worked for sandbox and normal directory 😃

I’m really not quite sure what happened but VSCode can already import the 
module and now the games can begin 😃

[cid:[email protected]]

KR,
Gerhard


___
Gerhard Scheucher
BSc

Hilfswissenschaftlicher Mitarbeiter
Geschäftsbereich Fabrikplanung und Produktionsmanagement

Fraunhofer Austria Research GmbH
Theresianumgasse 7 | 1040 Wien

[email protected] | www.fraunhofer.at<http://www.fraunhofer.at>

FN: 320215f, HG Wien

[cid:[email protected]]

[FABRIK2022_1540x480.png]<https://www.fraunhofer.at/de/presse/news/start-fuer-fabrik-des-jahres-2023.html>


From: Christofer Dutz <[email protected]>
Sent: Saturday, April 1, 2023 12:47 PM
To: Scheucher, Gerhard <[email protected]>; Dummer, Wolfgang 
<[email protected]>
Cc: Gaal, Alexander <[email protected]>; [email protected]
Subject: AW: Deine Frage via LinkedIn

Hi Gerhard,

So, I’ve tried building the current latest on develop on my Mac with a 
completely empty maven repo and it had no problems at all to build.
Also did I try on a Windows 10 VM with an empty maven repo and the latest state 
of plc4x and that built fine too.

Could it be possible, that you are using a .m2/settings.xml that configures the 
maven repos somehow differently?

I remember that in the past, in companies quite often maven proxies are used (I 
used them for quite a long time too). So perhaps you are using a corporate 
Nexus or Artifactory server and that’s preventing you from downloading?

Just a guess ... other than that, you could post the error message maven gives 
you. Perhaps that can shed some light on the issue.

Chris

Von: Scheucher, Gerhard 
<[email protected]<mailto:[email protected]>>
Datum: Samstag, 1. April 2023 um 11:32
An: Christofer Dutz 
<[email protected]<mailto:[email protected]>>, Dummer, Wolfgang 
<[email protected]<mailto:[email protected]>>
Cc: Gaal, Alexander 
<[email protected]<mailto:[email protected]>>, 
[email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>>
Betreff: RE: Deine Frage via LinkedIn
Hi Chris,

Hahaha, that makes me very happy!

I immediately copied my colleagues. So that they are informed straight away. 
Wolfgang and I tried a lot of work possibilities on Thursday. I also copied 
[email protected]<mailto:[email protected]> because I wrote my question 
there. If everyone speaks German, that suits me fine. Just sayin’.

@Dummer, Wolfgang<mailto:[email protected]>: Have you read this? 
"You might be interested in the fact that a group here is already working on 
PLC4Py". Then we are already on the right track :-D

I’m using Windwows. I also had to change some things because it didn't find 
some versions<netty.version>4.1.70.Final</netty.version> because it didn't 
recognise 4.1.90.Final,...e.g.

Or here the pom.xml at build-tools. Without these changes it did not work for 
me:

  <groupId>org.apache.plc4x.plugins</groupId>
  <artifactId>plc4x-build-tools</artifactId>
  <version>1.0.0-SNAPSHOT</version>
  <packaging>pom</packaging>

  <name>PLC4X Build-Tools</name>
  <description>This is just a pom to ease importing the repo into a Maven 
supporting IDE</description>

  <repositories>
    <repository>
      <id>apache-snapshots</id>
      
<url>https://repository.apache.org/content/repositories/snapshots</url<https://repository.apache.org/content/repositories/snapshots%3c/url>>
    </repository>
    <repository>
      <id>github-releases</id>
      
<url>https://repo1.maven.org/maven2</url<https://repo1.maven.org/maven2%3c/url>>
    </repository>
  </repositories>

  <pluginRepositories>
    <pluginRepository>
      <id>apache-snapshots</id>
      
<url>https://repository.apache.org/content/repositories/snapshots</url<https://repository.apache.org/content/repositories/snapshots%3c/url>>
    </pluginRepository>
    <pluginRepository>
      <id>github-releases</id>
      
<url>https://repo1.maven.org/maven2</url<https://repo1.maven.org/maven2%3c/url>>
    </pluginRepository>
  </pluginRepositories>

And the most interesting question is why it doesn't work with mwnw.cmd for me 
or anything you wrote on github.

I'm really looking forward to your wisdom :-D

KR,
Gerhard



___
Gerhard Scheucher
BSc

Hilfswissenschaftlicher Mitarbeiter
Geschäftsbereich Fabrikplanung und Produktionsmanagement

Fraunhofer Austria Research GmbH
Theresianumgasse 7 | 1040 Wien

[email protected]<mailto:[email protected]> | 
www.fraunhofer.at<http://www.fraunhofer.at/>

FN: 320215f, HG Wien

[cid:[email protected]]

[cid:[email protected]]<https://www.fraunhofer.at/de/presse/news/start-fuer-fabrik-des-jahres-2023.html>


From: Christofer Dutz 
<[email protected]<mailto:[email protected]>>
Sent: Saturday, April 1, 2023 11:17 AM
To: Scheucher, Gerhard 
<[email protected]<mailto:[email protected]>>
Subject: AW: Deine Frage via LinkedIn

Hi Gerhard,

First off all: Welcome to the most awesome community Apache has ;-)

You might be interested in the fact that a group here is already working on 
PLC4Py ... so if you want to join in, I bet they would be more than happy for 
some more hands and mind to help :-)

Now to your problem: it’s really strange that you are having such problems. But 
sometimes artifacts could get removed from Maven Central.
But I’m not expecting this to be the case, as this usually happens when you 
have severe security problems and we tend to keep everything updated (Well 
actually Sebastian is doing that).

What OS are you working on? Mac, Linux, Windows?

Chris


Von: Scheucher, Gerhard 
<[email protected]<mailto:[email protected]>>
Datum: Samstag, 1. April 2023 um 10:49
An: [email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>>
Cc: Christofer Dutz 
<[email protected]<mailto:[email protected]>>, Dummer, Wolfgang 
<[email protected]<mailto:[email protected]>>, Gaal, 
Alexander <[email protected]<mailto:[email protected]>>
Betreff: RE: Deine Frage via LinkedIn
Hello everyone,

I'm not sure if German is appropriate or if English is better. So feel free to 
reply in either German or English.

First, thanks for the advice from Chris to write directly to 
[email protected]<mailto:[email protected]>.

Second, the idea of your product is absolutely great! While writing drivers for 
PN, Profibus, EtherCAT, etc., in Python I came across PLC4X by chance and just 
thought 'wow! Just what I need.

However, I have extreme problems with the installation and I can hardly imagine 
that it can be so difficult normally.

- First of all, it couldn't find the snapshot file... I was then able to build 
it using Chris's tip at https://github.com/apache/plc4x-build-tools.git... but 
only then when I changed the pom.xml a little bit because otherwise the build 
always skipped because of missing dependencies...
- the mvnw.cmd install and the like does not work for me under windows... it 
does not give an error... it simply does nothing... with mvn clean install with 
all possible modifications it compiles but it does not output a SUCCESS... Btw 
with build-tools the mvnw.cmd-command at least works, even if it gives an 
error. In the PLC4X directory it can be executed, does not give an error, but 
does nothing.
- it doesn't build in the actual folder "C:\Users\xxx\Desktop\APACHE\plc4x" or 
even in "C:\Users\xxx\Desktop\APACHE\plc4x\sandbox" -> because actually the 
most important thing for us is to use it as python application...

I have now really spent hours on a settings.xml-file, changing the pom.xml in 
all conceivable versions and tried everything I found in your git-repo,…. But I 
really only had success with build-tools. Which brings me to the question of 
what I'm doing wrong.

I have installed everything mvn, java, groovy. I can echo everything and still 
the compilation doesn't work as it should.

Pls give some advices!

Thanks in advance for your help!


KR,
Gerhard







___
Gerhard Scheucher
BSc

Hilfswissenschaftlicher Mitarbeiter
Geschäftsbereich Fabrikplanung und Produktionsmanagement

Fraunhofer Austria Research GmbH
Theresianumgasse 7 | 1040 Wien

[email protected]<mailto:[email protected]> | 
www.fraunhofer.at<http://www.fraunhofer.at/>

FN: 320215f, HG Wien

[cid:[email protected]]

[FABRIK2022_1540x480.png]<https://www.fraunhofer.at/de/presse/news/start-fuer-fabrik-des-jahres-2023.html>


From: Christofer Dutz 
<[email protected]<mailto:[email protected]>>
Sent: Friday, March 31, 2023 10:24 PM
To: Scheucher, Gerhard 
<[email protected]<mailto:[email protected]>>
Subject: Deine Frage via LinkedIn

Hallo Gerhard,

jetzt auch von zuhause etwas länger.
So wie es aussieht kann dein Build die SNAPSHOT Versionen der build-tools nicht 
laden.
Keine Ahnung warum nicht. Schaue mal, dass du die Repository tags aus dem root 
pom mit in deinem Projekt hast, das legt diese eigentlich explizit an.

Aber eigentlich sollte der build auf Mac, Linux und Windows klappen ... da 
testet nämlich unser build auf mehreren Java versionen, ob alles klappt.

Sonst kann ich nur raten, dich auf 
[email protected]<mailto:[email protected]> anzumelden ... da können dir 
noch viele mehr helfen.

Viele Grüße,
     Chris


Reply via email to