Skip to content

Fix Issue #562 Migrate to maven 4#612

Draft
FanJups wants to merge 14 commits intoPi4J:developfrom
osscameroon:562-migrate-to-maven-4
Draft

Fix Issue #562 Migrate to maven 4#612
FanJups wants to merge 14 commits intoPi4J:developfrom
osscameroon:562-migrate-to-maven-4

Conversation

@FanJups
Copy link

@FanJups FanJups commented Feb 17, 2026

Fix #562

  • Update Maven version from 3.9.4 to 4.0.0-rc-4 and wrapper version 3.3.2 to 3.3.4

    • Update to use Maven 4 rc5 (used by pi4j docker image) instead of rc4
  • Update POMs to use Maven 4.1.0 shcema and namespace

  • Final review to check if the 2 first tasks are enough before moving to pi4j docker

FanJups and others added 5 commits February 14, 2026 23:51
Update all 15 POMs to Maven 4.1.0 model with new namespace and schema.
Convert <modules> to <subprojects> in parent POMs and add root="true"
attribute to the root POM.

Migration done using mvnup tool with --model and --plugins flags.
Avoided --infer strategy due to incorrect groupId removal from
dependencies.
Rebase with Pi4J develop branch to stay uptated
…4J#562 Update Maven version from 3.9.4 to 4.0.0-rc-4 and wrapper version 3.3.2 to 3.3.4

build: Pi4J#562 Update Maven version from 3.9.4 to 4.0.0-rc-4 and wrapper version 3.3.2 to 3.3.4
@FanJups FanJups marked this pull request as draft February 17, 2026 19:28
Kurocifer and others added 2 commits February 17, 2026 21:28
…i4J#562 Update POMs to use Maven 4.1.0 shcema and namespace

build: Pi4J#562 Update POMs to use Maven 4.1.0 shcema and namespace
@FDelporte
Copy link
Member

A draft merge request for the Docker change is ready: Pi4J/pi4j-docker#5
Won't merge until after the V4 release of Pi4J to avoid breaking anything unexpected.

<mkdir dir="target/build"/>
<mkdir dir="target/build/native"/>
<mkdir dir="target" />
<mkdir dir="target/classes" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is is possible to avoid this kind of changes like extra spaces and removing newlines? That would simplify the review of the changes as it's not really clear now what is an actual change versus "cosmetic" change. Thanks!

Copy link
Member

@eitch eitch Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, please use the same formatting. We can always decide on reformatting if necessary after such a PR is merged.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes Sure, they are changes from mvnup apply command. @Kurocifer , please roll back then add only changes related to Maven Upgrade.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes sure. As Fanjups says those were changes from teh mvnup apply command. I will roll that back and do back without the formatting.

…to the formatting performed by mvnup apply command
- Update all 15 POMs to Maven 4.1.0 model with new namespace and schema.
- Convert <modules> to <subprojects> in parent POMs and add root="true"
attribute to the root POM.
- Avoid unecessary formatting introduced by the mvnup tool

Migration done using mvnup tool with --model and --plugins flags.
Avoided --infer strategy due to incorrect groupId removal from
dependencies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate to Maven 4

4 participants

Comments