Uploaded image for project: 'Apache Unomi'
  1. Apache Unomi
  2. UNOMI-915

Error on build with apache-release profile

    XMLWordPrintableJSON

Details

    • Image Bug
    • Status: Closed
    • Image Major
    • Resolution: Fixed
    • None
    • unomi-3.0.0
    • None
    • None

    Description

      With the upgrade of the version of the plugin

          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-source-plugin</artifactId>
      

      to the version 3.3.1, the execution added to the pom

      <execution>
                                  <id>attach-sources</id>
                                  <goals>
                                      <goal>jar</goal>
                                  </goals>
                              </execution>
      

      is not supported anymore because there is already a configuration added to the org.apache parent.
      Here is its definition:

      <execution>
                      <id>attach-sources</id>
                      <goals>
                        <goal>jar-no-fork</goal>
                      </goals>
                    </execution>
      

      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:

      [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] 
      

      Attachments

        Activity

          People

            jsinovassinnaik Jonathan Sinovassin-Naïk
            jsinovassinnaik Jonathan Sinovassin-Naïk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m