Skip to content

Conversation

FrozenPandaz
Copy link
Collaborator

This is still WIP

Current Behavior

There is no first-party Maven support for Nx

Expected Behavior

Maven Support is ready for usage.

Related Issue(s)

Fixes #

Copy link

vercel bot commented Oct 3, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Oct 7, 2025 8:22pm

Copy link

netlify bot commented Oct 3, 2025

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit b96461c
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/68e570b10d346700087455c5
😎 Deploy Preview https://deploy-preview-32947--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@FrozenPandaz FrozenPandaz marked this pull request as draft October 3, 2025 14:30
Copy link
Contributor

nx-cloud bot commented Oct 3, 2025

View your CI Pipeline Execution ↗ for commit b96461c

Command Status Duration Result
nx documentation ❌ Failed 4m 58s View ↗

☁️ Nx Cloud last updated this comment at 2025-10-07 20:35:00 UTC

nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

Copy link
Contributor

github-actions bot commented Oct 6, 2025

Failed to publish a PR release of this pull request, triggered by @FrozenPandaz.
See the failed workflow run at: https://github.com/nrwl/nx/actions/runs/18285305766

Copy link
Contributor

github-actions bot commented Oct 6, 2025

Failed to publish a PR release of this pull request, triggered by @FrozenPandaz.
See the failed workflow run at: https://github.com/nrwl/nx/actions/runs/18285666201

Copy link
Contributor

github-actions bot commented Oct 6, 2025

Failed to publish a PR release of this pull request, triggered by @FrozenPandaz.
See the failed workflow run at: https://github.com/nrwl/nx/actions/runs/18285926077

Copy link
Contributor

github-actions bot commented Oct 6, 2025

Failed to publish a PR release of this pull request, triggered by @FrozenPandaz.
See the failed workflow run at: https://github.com/nrwl/nx/actions/runs/18288244241

Copy link
Contributor

github-actions bot commented Oct 6, 2025

Failed to publish a PR release of this pull request, triggered by @FrozenPandaz.
See the failed workflow run at: https://github.com/nrwl/nx/actions/runs/18288244241

nx-cloud[bot]

This comment was marked as outdated.

Copy link
Contributor

@nx-cloud nx-cloud bot left a comment

Choose a reason for hiding this comment

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

Nx Cloud has identified a possible root cause for your failed CI:

Failure Classification: environment_state

The nx-maven-plugin:install task failed with "/bin/sh: 1: mvn: not found", indicating that the Maven executable is not available in the CI/CD build environment's PATH.

Analysis Details:

  1. The PR introduces a new Maven plugin with extensive Maven build infrastructure
  2. A Maven wrapper (mvnw) exists at the repository root and was added in this PR
  3. The project.json configuration for nx-maven-plugin uses "mvn install" directly
  4. The build environment does not have Maven installed in PATH

Why This Is environment_state (Not code_change):

  • The error is not caused by any code logic in the PR
  • This is a missing system dependency in the execution environment
  • The Maven wrapper (mvnw) exists and should be used, but the environment is not configured to use it
  • No similar failures in other branches suggest this is environment-specific
  • The code changes themselves are valid; the issue is purely environmental

Recommendation:
The build environment needs either:

  1. Maven installed in PATH, OR
  2. The project.json should be updated to use "./mvnw" instead of "mvn", OR
  3. The CI/CD pipeline should be configured to set up Maven before running the build

This is not a code fix that should be implemented as part of this PR review. The failure is due to environment configuration, not the PR's code changes.

A code change would likely not resolve this issue, so no action was taken.

Nx CloudView in Nx Cloud ↗


⚙️ An Nx Cloud workspace admin can disable these reviews in workspace settings.

Copy link
Contributor

github-actions bot commented Oct 6, 2025

Failed to publish a PR release of this pull request, triggered by @FrozenPandaz.
See the failed workflow run at: https://github.com/nrwl/nx/actions/runs/18291507296

Adds automatic detection of Maven projects during nx init by looking for Maven wrapper files (mvnw, mvnw.bat) and pom.xml files. When detected, suggests installing the @nx/maven plugin, similar to how Gradle projects are detected.
Restructures the Java documentation sidebar to have separate subsections for Gradle and Maven plugins, instead of only showing Gradle at the top level. This provides equal visibility to both build tools.
- Move Gradle-specific docs from java/introduction.mdoc to java/gradle/introduction.mdoc
- Create new general Java overview at java/introduction.mdoc covering both build tools
- Remove special case remapping of gradle to java in plugin-mappings.ts
- Both Gradle and Maven now have equal footing in the documentation structure

This addresses the TODO comment about not having Gradle as the default Java docs now that Maven is available.
Fix broken links to Gradle and Maven introduction pages by using the full path including /introduction suffix.
Copy link
Contributor

github-actions bot commented Oct 6, 2025

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx [email protected] my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-32947-aa25f06
Release details 📑
Published version 0.0.0-pr-32947-aa25f06
Triggered by @FrozenPandaz
Branch maven-plugin
Commit aa25f06
Workflow run 18291507296

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

Add index.mdoc landing pages for the Gradle and Maven subdirectories to resolve broken links to /docs/technologies/java/gradle and /docs/technologies/java/maven.
Copy link
Contributor

github-actions bot commented Oct 6, 2025

Failed to publish a PR release of this pull request, triggered by @FrozenPandaz.
See the failed workflow run at: https://github.com/nrwl/nx/actions/runs/18293215975

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.

2 participants