Jonathan Sinovassin-Naïk created UNOMI-915:
----------------------------------------------
Summary: 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
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)