Replies: 4 comments 6 replies
-
Could you post the full stacktrace? At fist glance the version you picked does conform to CHRONVER https://jreleaser.org/guide/latest/reference/project.html#_chronver |
Beta Was this translation helpful? Give feedback.
-
Cannot reproduce with pom.xml <?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.jreleaser.examples</groupId>
<artifactId>helloworld</artifactId>
<version>2024.05.12</version>
<name>helloworld-java-bin</name>
<description>HelloWorld in Java</description>
<url>https://github.com/jreleaser/helloworld-java-bin</url>
<inceptionYear>2023</inceptionYear>
<properties>
<app.main.class>org.jreleaser.examples.HelloWorld</app.main.class>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>11</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<maven.compiler.release>${java.version}</maven.compiler.release>
</properties>
<licenses>
<license>
<name>Apache-2.0</name>
<url>https://spdx.org/licenses/Apache-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>aalmiray</id>
<name>Andres Almiray</name>
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/jreleaser/helloworld-java-bin.git</connection>
<developerConnection>scm:git:https://github.com/jreleaser/helloworld-java-bin.git</developerConnection>
<url>https://github.com/jreleaser/helloworld-java-bin.git</url>
<tag>HEAD</tag>
</scm>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.12.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.3</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.0</version>
</plugin>
<plugin>
<groupId>org.jreleaser</groupId>
<artifactId>jreleaser-maven-plugin</artifactId>
<version>1.11.0</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<archive>
<manifest>
<mainClass>${app.main.class}</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.jreleaser</groupId>
<artifactId>jreleaser-maven-plugin</artifactId>
<version>1.11.0</version>
<configuration>
<jreleaser>
<project>
<versionPattern>CHRONVER</versionPattern>
</project>
<signing>
<active>ALWAYS</active>
<armored>true</armored>
</signing>
<deploy>
<maven>
<nexus2>
<maven-central>
<active>ALWAYS</active>
<url>https://s01.oss.sonatype.org/service/local</url>;
<closeRepository>true</closeRepository>
<releaseRepository>true</releaseRepository>
<stagingRepositories>target/staging-deploy</stagingRepositories>
</maven-central>
</nexus2>
</maven>
</deploy>
</jreleaser>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>publication</id>
<properties>
<altDeploymentRepository>local::file:./target/staging-deploy</altDeploymentRepository>
</properties>
<build>
<defaultGoal>deploy</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<attach>true</attach>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<attach>true</attach>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project> Invoking deploy command yields
Project configuration resolves to:
|
Beta Was this translation helpful? Give feedback.
-
FWIW the error occurs with
But the XML configuration you pasted shows |
Beta Was this translation helpful? Give feedback.
-
https://github.com/bowbahdoe/wcwidth/actions/runs/8673844602/job/23785546763 With 1.11.0 the error I get is this
|
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
I want to publish a library using calendar based versioning, but its being flagged by a non-disable-able check as not fitting the semantic versioning spec. I am aware.
Describe the solution you'd like
A way to disable this check.
Describe alternatives you've considered
I've tried the flag on the maven plugin
But still get an interesting error
Beta Was this translation helpful? Give feedback.
All reactions