Skip to content

downgrade maven-source-plugin to make release build pass#345

Merged
tiana528 merged 1 commit intomasterfrom
fix-build
Jul 10, 2024
Merged

downgrade maven-source-plugin to make release build pass#345
tiana528 merged 1 commit intomasterfrom
fix-build

Conversation

@tiana528
Copy link
Contributor

No description provided.

pom.xml Outdated
<id>attach-sources</id>
<goals>
<goal>jar</goal>
<goal>jar-no-fork</goal>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this change, the mvn command for release fail.

mvn deploy  -DperformRelease=true

[INFO] --- maven-source-plugin:3.3.0:jar (attach-sources) @ td-client ---
[INFO] Building jar: /Users/wang.yan/work/td-client-java/target/td-client-1.1.1-sources.jar
[INFO]
[INFO] --- maven-source-plugin:3.3.0:jar-no-fork (attach-sources) @ td-client ---
[ERROR] We have duplicated artifacts attached.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  10.185 s
[INFO] Finished at: 2024-07-10T09:13:58+09:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-source-plugin:3.3.0:jar-no-fork (attach-sources) on project td-client: Presumably you have configured maven-source-plugn to execute twice times in your build. You have to configure a classifier for at least on of them. -> [Help 1]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yuokada yuokada self-requested a review July 10, 2024 01:16
@tiana528 tiana528 changed the title make command pass 'mvn deploy -DperformRelease=true' downgrade maven-source-plugin to make release build pass Jul 10, 2024
@tiana528
Copy link
Contributor Author

Thank you!

@tiana528 tiana528 merged commit aae5ebd into master Jul 10, 2024
@tiana528 tiana528 deleted the fix-build branch July 10, 2024 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants