Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch the build to using Maven 4 and the 4.1.0 model #1175

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gnodet
Copy link
Contributor

@gnodet gnodet commented Oct 18, 2024

This PR obviously needs a CI change to build with 4.0.0-beta-5, but it serves as a testing for apache/maven#1818

@cstamas
Copy link
Member

cstamas commented Oct 18, 2024

BOM GA's changed, this PR will now fail with beta-5 unless updated

agent/pom.xml Outdated
@@ -16,14 +16,10 @@
limitations under the License.

-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.1.0 http://maven.apache.org/maven-v4_1_0.xsd">

Choose a reason for hiding this comment

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

I think the correct location for the XSD is https://maven.apache.org/xsd/maven-4.1.0-beta-4.xsd. The current URL gives a HTML page with "Not found".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's right, it needs to be fixed.
However, I think we did set up a redirection and https://maven.apache.org/xsd/maven-4.1.0.xsd will redirect to latest beta. I can't find out where this redirect source is...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So http://maven.apache.org/maven-v4_0_0.xsd also redirects to https://maven.apache.org/xsd/maven-4.0.0.xsd ...

Copy link
Member

Choose a reason for hiding this comment

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

agent/pom.xml Outdated
<artifactId>mvnd</artifactId>
<version>2.0.0-beta-2-SNAPSHOT</version>
</parent>
<modelVersion>4.1.0</modelVersion>

Choose a reason for hiding this comment

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

This can be inferred from the XSD, so we could drop it.

Choose a reason for hiding this comment

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

Same as agent/pom.xml.

client/pom.xml Outdated

Choose a reason for hiding this comment

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

Same as agent/pom.xml.

common/pom.xml Outdated
@@ -55,11 +51,6 @@
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency>

Choose a reason for hiding this comment

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

Is this dependency not necessary anymore? The change seems unrelated to me...

Choose a reason for hiding this comment

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

Same as agent/pom.xml.

<version>${project.version}</version>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>${assertj.version}</version>

Choose a reason for hiding this comment

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

Can we add <scope>test</scope> here?

@gnodet gnodet force-pushed the switch-pom-to-mvn4 branch 2 times, most recently from b878f40 to f9c52f1 Compare November 7, 2024 18:38
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.

3 participants