You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "Jonathan Sinovassin-Naïk (Jira)" <ji...@apache.org> on 2025/11/03 09:59:00 UTC
[jira] [Assigned] (UNOMI-915) Error on build with apache-release profile
[ https://issues.apache.org/jira/browse/UNOMI-915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Sinovassin-Naïk reassigned UNOMI-915:
----------------------------------------------
Assignee: Jonathan Sinovassin-Naïk
> Error on build with apache-release profile
> ------------------------------------------
>
> Key: UNOMI-915
> URL: https://issues.apache.org/jira/browse/UNOMI-915
> Project: Apache Unomi
> Issue Type: Bug
> Reporter: Jonathan Sinovassin-Naïk
> Assignee: Jonathan Sinovassin-Naïk
> Priority: Major
>
> With the upgrade of the version of the plugin
> {code:java}
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-source-plugin</artifactId>
> {code}
> to the version 3.3.1, the execution added to the pom
> {code:java}
> <execution>
> <id>attach-sources</id>
> <goals>
> <goal>jar</goal>
> </goals>
> </execution>
> {code}
> is not supported anymore because there is already a configuration added to the org.apache parent.
> Here is its definition:
>
> {code:java}
> <execution>
> <id>attach-sources</id>
> <goals>
> <goal>jar-no-fork</goal>
> </goals>
> </execution>
> {code}
> Its means that the jar will be already added to the sources. If we keep the configuration in the unomi POM it will generate a duplication and will throw the following error on the build:
> {code:java}
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 5.878 s
> [INFO] Finished at: 2025-11-03T09:16:49+01:00
> [INFO] ------------------------------------------------------------------------
> [INFO] 58 goals, 58 executed
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-source-plugin:3.3.1:jar (attach-sources) on project unomi-api: Presumably you have configured maven-source-plugin to execute twice in your build. You have to configure a classifier for at least one of them. -> [Help 1]
> [ERROR]
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)