Skip to content

[MSHADE-478] Extra JARs feature#228

Merged
cstamas merged 5 commits into
masterfrom
MSHADE-478-p2
May 28, 2024
Merged

[MSHADE-478] Extra JARs feature#228
cstamas merged 5 commits into
masterfrom
MSHADE-478-p2

Conversation

@cstamas

@cstamas cstamas commented May 28, 2024

Copy link
Copy Markdown
Member

Ability to add "extra JARs and Artifacts" and still enjoy the full benefits of relocation, resource transformation, etc.


https://issues.apache.org/jira/browse/MSHADE-478

cstamas added 2 commits May 28, 2024 08:46
Ability to add "extra JARs" and still enjoy the full
benefits of relocation, resource transformation, etc.

---

https://issues.apache.org/jira/browse/MSHADE-478
Comment thread src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
Comment thread src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
if (extraJars != null && !extraJars.isEmpty()) {
for (File extraJar : extraJars) {
if (!Files.isRegularFile(extraJar.toPath())) {
createErrorOutput();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please check if this error message are correct here 😄

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

private void createErrorOutput() {
        getLog().error("The project main artifact does not exist. This could have the following");
        getLog().error("reasons:");
....
@cstamas cstamas merged commit b573b8c into master May 28, 2024
@cstamas cstamas deleted the MSHADE-478-p2 branch May 28, 2024 11:09
@jira-importer

Copy link
Copy Markdown

Resolve #675

1 similar comment
@jira-importer

Copy link
Copy Markdown

Resolve #675

@olamy olamy added the enhancement New feature or request label Sep 9, 2025
@olamy olamy added this to the 3.6.1 milestone Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

4 participants