I fail to get ${revision} for version work in platform projects.
It compiles fine but will not run.
${revision} works for non-platform projects for me.

Am I doing something wrong or is it unsupported?

    <parent>
        <groupId>se.trixon.mapollage</groupId>
        <artifactId>parent</artifactId>
        <version>${revision}</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

And in the parent pom
    <properties>
        <revision>24.11</revision>
        <brandingToken>mapollage</brandingToken>
    </properties>

nbm:cluster-app nbm:run-platform

[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time:  1.755 s
[INFO] Finished at: 2024-10-11T16:07:08+02:00
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal on project application: Could not collect
dependencies for project
se.trixon.mapollage:application:nbm-application:24.11
[ERROR] Failed to read artifact descriptor for
se.trixon.mapollage:branding:jar:24.11
[ERROR] Caused by: The following artifacts could not be resolved:
se.trixon.mapollage:parent:pom:${revision} (absent): Could not find
artifact se.trixon.mapollage:parent:pom:${revision} in mapton (
https://mapton.org/repo/maven/)
[ERROR] Failed to read artifact descriptor for
se.trixon.mapollage:main:jar:24.11
[ERROR] Caused by: The following artifacts could not be resolved:
se.trixon.mapollage:parent:pom:${revision} (absent):
se.trixon.mapollage:parent:pom:${revision} was not found in
https://mapton.org/repo/maven/ during a previous attempt. This failure was
cached in the local repository and resolution is not reattempted until the
update interval of mapton has elapsed or updates are forced
[ERROR] : Failed to collect dependencies at
se.trixon.mapollage:branding:jar:24.11
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal on project application: Could not collect dependencies for project
se.trixon.mapollage:application:nbm-application:24.11
Failed to read artifact descriptor for
se.trixon.mapollage:branding:jar:24.11
Caused by: The following artifacts could not be resolved:
se.trixon.mapollage:parent:pom:${revision} (absent): Could not find
artifact se.trixon.mapollage:parent:pom:${revision} in mapton (
https://mapton.org/repo/maven/)
Failed to read artifact descriptor for se.trixon.mapollage:main:jar:24.11
Caused by: The following artifacts could not be resolved:
se.trixon.mapollage:parent:pom:${revision} (absent):
se.trixon.mapollage:parent:pom:${revision} was not found in
https://mapton.org/repo/maven/ during a previous attempt. This failure was
cached in the local repository and resolution is not reattempted until the
update interval of mapton has elapsed or updates are forced

    at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies
(LifecycleDependencyResolver.java:243)
    at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies
(LifecycleDependencyResolver.java:136)
    at
org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved
(MojoExecutor.java:355)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute
(MojoExecutor.java:313)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:212)


And the manifest contains the version information.

Manifest-Version: 1.0
Created-By: Maven JAR Plugin 3.4.2
Build-Jdk-Spec: 23
OpenIDE-Module-Localizing-Bundle: se/trixon/mapollage/branding/Bundle.pr
 operties
AutoUpdate-Essential-Module: true
OpenIDE-Module-Specification-Version: 24.11
OpenIDE-Module-Implementation-Version: 24.11
OpenIDE-Module-Build-Version: 202410111406
OpenIDE-Module: se.trixon.mapollage.branding
OpenIDE-Module-Public-Packages: -
OpenIDE-Module-Requires: org.openide.modules.ModuleFormat1
OpenIDE-Module-Display-Category: se.trixon.mapollage
OpenIDE-Module-Name: branding
OpenIDE-Module-Short-Description: <undefined>
OpenIDE-Module-Long-Description: <undefined>
OpenIDE-Module-Module-Dependencies: org.netbeans.api.annotations.common/
 1 > 1.53

/Patrik

Reply via email to