DataflowTemplates icon indicating copy to clipboard operation
DataflowTemplates copied to clipboard

[Bug]: Cannot use Maven 4 to build the project

Open fbiville opened this issue 1 year ago • 3 comments

Related Template(s)

na

Template Version

na

What happened?

When trying to build the project with the latest Maven Daemon (2.0.0-beta-1), which runs Maven 4.0.0-beta-3, the build fails straight away because of a property that's made dynamic but shouldn't be.

Relevant log output

$ mvnd validate
[INFO] Processing build on daemon c264cb3d
[INFO] Scanning for projects...
[ERROR] Some problems were encountered while processing the POMs
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project com.google.cloud.teleport:templates:1.0-SNAPSHOT (~/workspace/DataflowTemplates/pom.xml) has 1 error
[ERROR]     'profiles.profile[validateCandidate].repositories.repository.[apache.candidate].url' contains an expression but should be a constant. @ line 639, column 11

fbiville avatar Oct 23 '24 10:10 fbiville

This issue has been marked as stale due to 180 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the issue at any time. Thank you for your contributions.

github-actions[bot] avatar Apr 22 '25 02:04 github-actions[bot]

Still relevant:

➜  DataflowTemplates git:(main) mvnd -am -pl v2/googlecloud-to-neo4j
[INFO] Processing build on daemon c53f934c
[INFO] Scanning for projects...
[ERROR] Some problems were encountered while processing the POMs
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project com.google.cloud.teleport:templates:pom:1.0-SNAPSHOT (/Users/fbiville/workspace/DataflowTemplates/pom.xml) has 1 error
[ERROR]     'profiles.profile[validateCandidate].repositories.repository.[apache.candidate].url' contains an unsupported expression (only expressions starting with 'project.basedir' or 'project.rootDirectory' are supported). @ com.google.cloud.teleport:templates:1.0-SNAPSHOT, file:///Users/fbiville/workspace/DataflowTemplates/pom.xml, line 749, column 11
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the '-e' switch
[ERROR] Re-run Maven using the '-X' switch to enable verbose output
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
➜  DataflowTemplates git:(main) git log --oneline -1 | cat
cdd37c440 Fixing TextImportPipelineIT integration test (#2327)
➜  DataflowTemplates git:(main) mvnd --version
Apache Maven Daemon (mvnd) 2.0.0-rc-3 darwin-aarch64 native client (f912362c18c9a75faf3e31a4e0e0b921206013b9)
Terminal: org.jline.terminal.impl.PosixSysTerminal with pty org.jline.terminal.impl.jni.osx.OsXNativePty
Apache Maven 4.0.0-rc-3 (3952d00ce65df6753b63a51e86b1f626c55a8df2)
Maven home: /opt/homebrew/Cellar/mvnd/2.0.0-rc-3/libexec/mvn
Java version: 21.0.1, vendor: Eclipse Adoptium, runtime: /Users/fbiville/.sdkman/candidates/java/21.0.1-tem
Default locale: en_FR, platform encoding: UTF-8
OS name: "mac os x", version: "15.4.1", arch: "aarch64", family: "mac"

fbiville avatar Apr 22 '25 14:04 fbiville

We can investigate this after 2.0.0 is officially released: https://github.com/apache/maven-mvnd/releases

liferoad avatar Jun 22 '25 14:06 liferoad