Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
codegen-maven-plugin references non-shipped parent pom
November 7, 2024
17:49, EET
Avatar
in-fke
Member
Members
Forum Posts: 35
Member Since:
June 8, 2016
sp_UserOfflineSmall Offline

The codegen-maven-plugin references a parent pom that is not shipped.
File:
prosys-opc-ua-sdk-for-java-5.2.6-151-client-server-binary/codegen/maven-integration/maven-install-helper/data/prosys-opc-ua-java-sdk-codegen-maven-plugin-5.2.4-127.pom
References artifact: com.prosysopc.ua.codegen2:codegen2-parent:5.2.4-127
Installing this Maven Plugin with the original pom makes it unusable since Maven cannot resolve the parent pom.

November 7, 2024
18:01, EET
Avatar
in-fke
Member
Members
Forum Posts: 35
Member Since:
June 8, 2016
sp_UserOfflineSmall Offline

Follow-Up on my own post – this may have resulted in some magic in conjunction with deploy:deploy-file that I cannot repeat.

November 8, 2024
10:29, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1026
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

It should work correctly as long as you used the ‘maven-install-helper’ project with ‘mvn install’. Or alternatively use the pom file next to the jar within the ‘data’ folder i.e. the ‘mvn install’ on the ‘maven-install-helper’ folder project is configured as

...
${project.basedir}/data/prosys-opc-ua-java-sdk-codegen-maven-plugin-5.2.4-127.jar
${project.basedir}/data/prosys-opc-ua-java-sdk-codegen-maven-plugin-5.2.4-127.pom
...

(or take the pom from .m2 after the install)

Maven typically includes the pom used in the build inside the jar. In the SDK jar we have excluded that (wouldn’t work), but seems here either we forgot or that it couldn’t be easily done in a way that wouldn’t also break the plugin. We do create a “standalone” pom file as part of the build (the one next to the jar in the data folder), which is intended to be used. Lets see if we can improve this in some future version so that a “install only the jar” action would fail (or ensure the correct pom would be inside the jar).

November 8, 2024
10:32, EET
Avatar
in-fke
Member
Members
Forum Posts: 35
Member Since:
June 8, 2016
sp_UserOfflineSmall Offline

Thanks for the follow-up. We have our own “deploy:deploy-file” mechanism to feed our central repo and due to some magic – this screwed up.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
40 Guest(s)

Currently Browsing this Page:
2 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 734

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1523

Posts: 6449

Newest Members:

christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, Thomassnism, biancacraft16, edgardo3518

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1