Skip to content

Bug with latest version 9.10.2 #360

@ahoehma

Description

@ahoehma

Hello,

I can't say why but there is something shipped with 9.10.2 which break my builds 😄

I have this in my .mvn/extensions.xml

<?xml version="1.0" encoding="UTF-8"?>
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
 <extension>
   <groupId>co.leantechniques</groupId>
   <artifactId>maven-buildtime-extension</artifactId>
   <version>3.0.5</version>
 </extension>
 <extension>
   <groupId>me.qoomon</groupId>
   <artifactId>maven-git-versioning-extension</artifactId>
   <version>9.10.1</version>
 </extension>
 <extension>
   <groupId>org.apache.maven.extensions</groupId>
   <artifactId>maven-build-cache-extension</artifactId>
   <version>1.2.0</version>
 </extension>
 <extension>
   <groupId>io.takari.maven</groupId>
   <artifactId>takari-smart-builder</artifactId>
   <version>1.0.2</version>
 </extension>
</extensions>

I have this in my .mvn/maven-git-versioning-extension.xml

<configuration xmlns="https://github.com/qoomon/maven-git-versioning-extension"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="https://github.com/qoomon/maven-git-versioning-extension https://qoomon.github.io/maven-git-versioning-extension/configuration-9.4.0.xsd">
  <disable>true</disable>
  <updatePom>false</updatePom>
  <!-- https://maven.apache.org/guides/mini/guide-reproducible-builds.html -->
  <!-- !!! project.build.outputTimestamp needs to be  ISO 8601 (yyyy-MM-dd'T'HH:mm:ssXXX) !!! -->
  <refs>
    <ref type="branch">
      <pattern>develop</pattern>
      <version>${version}</version>
      <properties>
        <project.build.outputTimestamp>${commit.timestamp.iso}</project.build.outputTimestamp>
      </properties>
    </ref>
    <ref type="branch">
      <pattern>master</pattern>
      <version>${version.core}</version>
      <properties>
        <project.build.outputTimestamp>${commit.timestamp.iso}</project.build.outputTimestamp>
      </properties>
    </ref>
    <ref type="branch">
      <pattern>feature/(.+)</pattern>
      <version>${version.core}-${ref.slug}-SNAPSHOT</version>
      <properties>
        <project.build.outputTimestamp>${commit.timestamp.iso}</project.build.outputTimestamp>
      </properties>
    </ref>
    <ref type="branch">
      <pattern>renovate/(.+)</pattern>
      <version>${version.core}-${ref.slug}-SNAPSHOT</version>
      <properties>
        <project.build.outputTimestamp>${commit.timestamp.iso}</project.build.outputTimestamp>
      </properties>
    </ref>
    <ref type="tag">
      <pattern><![CDATA[v(?<version>.*)]]></pattern>
      <version>${ref.version}</version>
      <properties>
        <project.build.outputTimestamp>${commit.timestamp.iso}</project.build.outputTimestamp>
      </properties>
    </ref>
  </refs>
  <!-- optional fallback configuration in case of no matching ref configuration-->
  <rev>
    <version>${commit}</version>
  </rev>
</configuration>

I have a multi-module project ... some libraries and some apps.

I run something like this:

VERSIONING_DISABLE=false mvn verify -pl :brain-service -Dmaven.test.skip -Dmaven.enforcer.skip -Pgenerate-api -Dapi.version.new=1.26 -nsu

This should run my "brain-service" (springboot) .. the service need some modules from the reactor ... brain, api, ....

If I run with 9.10.1 everything works as expected ... but with 9.10.2 I see something like this

[INFO] BuildTimeEventSpy is registered.
[INFO] Loading cache configuration from D:\Dev\git\coc\spice-configuration-cluster\.mvn\maven-build-cache-config.xml
[INFO] Scanning for projects...
[INFO]
[INFO] --- me.qoomon:maven-git-versioning-extension:9.10.2 [core extension] ---
[INFO] matching ref: BRANCH - develop
[INFO] ref configuration: BRANCH - pattern: develop
[INFO]   describeTagFirstParent: true
[INFO]   version: ${version}
[INFO]   properties:
[INFO]     project.build.outputTimestamp - ${commit.timestamp.iso}
[INFO]
[INFO] com.foo.spice.cc:cc
[INFO] set version to 2025.2.0-SNAPSHOT
[INFO] set property project.build.outputTimestamp to 2025-03-18T06:19:38Z
[INFO]
[INFO] com.foo.spice.cc:api
[INFO]
[INFO] com.foo.spice.cc:customizing
[INFO]
[INFO] com.foo.spice.cc:trace
[INFO]
[INFO] com.foo.spice.cc:util
[INFO]
[INFO] com.foo.spice.cc:test-util
[INFO]
[INFO] com.foo.spice.cc:datamodel-adapter
[INFO]
[INFO] com.foo.spice.cc:ordernumber
[INFO]
[INFO] com.foo.spice.cc:additional-initialization
[INFO]
[INFO] com.foo.spice.cc:data-provision
[INFO]
[INFO] com.foo.spice.cc:sce
[INFO]
[INFO] com.foo.spice.cc:sce-service
[INFO]
[INFO] com.foo.spice.cc:ipc
[INFO]
[INFO] com.foo.spice.cc:ipc-server-service
[INFO]
[INFO] com.foo.spice.cc:ipc-service
[INFO]
[INFO] com.foo.spice.cc:dunkinmanager
[INFO]
[INFO] com.foo.spice.cc:dunkinmanager-service
[INFO]
[INFO] com.foo.spice.cc:pia
[INFO]
[INFO] com.foo.spice.cc:pia-service
[INFO]
[INFO] com.foo.spice.cc:remote
[INFO]
[INFO] com.foo.spice.cc:remote-service
[INFO]
[INFO] com.foo.spice.cc:teamcenter
[INFO]
[INFO] com.foo.spice.cc:teamcenter-service
[INFO]
[INFO] com.foo.spice.cc:ace
[INFO]
[INFO] com.foo.spice.cc:ace-service
[INFO]
[INFO] com.foo.spice.cc:history
[INFO]
[INFO] com.foo.spice.cc:brain
[INFO]
[INFO] com.foo.spice.cc:brain-loadbalancer
[INFO]
[INFO] com.foo.spice.cc:brain-service
[INFO]
[INFO] com.foo.spice.cc:rest-api
[INFO]
[INFO] com.foo.spice.cc:rest-service
[INFO]
[INFO] com.foo.spice.cc:rest-service-sce
[INFO]
[INFO] com.foo.spice.cc:rest-service-ipc
[INFO]
[INFO] com.foo.spice.cc:rest-service-dm
[INFO]
[INFO] com.foo.spice.cc:rest-service-dm-pia
[INFO]
[INFO] com.foo.spice.cc:rest-service-pia
[INFO]
[INFO] com.foo.spice.cc:rest-service-remote
[INFO]
[INFO] com.foo.spice.cc:rest-service-teamcenter
[INFO]
[INFO] com.foo.spice.cc:rest-service-ace
[INFO]
[INFO] com.foo.spice.cc:customizing-generator
[INFO]
[INFO] com.foo.spice.cc:dashboard
[INFO]
[INFO] com.foo.spice.cc:dashboard-service
[INFO]
[INFO] com.foo.spice.cc:dashboard-ui-extension
[INFO]
[INFO] com.foo.spice.cc:update-service
[INFO]
[INFO] com.foo.spice.cc:gateway-service
[INFO]
[INFO] com.foo.spice.cc:client-support
[INFO]
[INFO] com.foo.spice.cc:devops
[INFO]
[INFO] com.foo.spice.cc:cc-devops-utilities
[INFO]
[INFO] com.foo.spice.cc:cc-tester-cli
[INFO]
[INFO] com.foo.spice.cc:cc-devops-maven-plugin
[INFO]
[INFO] com.foo.spice.cc:test-coverage
[INFO]
[INFO] -----------------< com.foo.spice.cc:brain-service >-----------------
[INFO] Building brain-service 2025.2.0-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] com.foo.spice.cc:brain
[WARNING] The POM for com.foo.spice.cc:brain:jar:2025.2.0-SNAPSHOT is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] com.foo.spice.cc:util
[WARNING] The POM for com.foo.spice.cc:util:jar:2025.2.0-SNAPSHOT is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] com.foo.spice.cc:rest-api
[WARNING] The POM for com.foo.spice.cc:rest-api:jar:2025.2.0-SNAPSHOT is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] com.foo.spice.cc:test-util
[WARNING] The POM for com.foo.spice.cc:test-util:jar:2025.2.0-SNAPSHOT is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details

And the final springboot app starts but then I have strange errors about missing classes etc.

Please let me know if you need more output!

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions