Skip to content

Conversation

@weizhouapache
Copy link
Member

Description

This PR fixes the build error on MacOS

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.0.0:shade (rebuild-war) on project cloud-utils: Error creating shaded jar: Could not replace original artifact with shaded artifact!: /Users/nicolas/cloudstack/utils/target/cloud-utils-4.19.0.0-SNAPSHOT-shaded.jar (No such file or directory) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :cloud-utils

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

```
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.0.0:shade (rebuild-war) on project cloud-utils: Error creating shaded jar: Could not replace original artifact with shaded artifact!: /Users/nicolas/cloudstack/utils/target/cloud-utils-4.19.0.0-SNAPSHOT-shaded.jar (No such file or directory) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :cloud-utils
```
@weizhouapache
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

@weizhouapache a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@weizhouapache weizhouapache changed the title utils: rename SHADED.jar to SHADED-2.jar to fix the build error on Mac utils: rename cloud-utils-*-SHADED.jar to cloud-utils-*-bundled.jar to fix the build error on Mac Sep 6, 2023
@weizhouapache
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

@weizhouapache a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@codecov
Copy link

codecov bot commented Sep 6, 2023

Codecov Report

Merging #7944 (b78fbc3) into main (2e6100d) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #7944      +/-   ##
============================================
- Coverage     14.40%   14.40%   -0.01%     
+ Complexity    10111    10109       -2     
============================================
  Files          2748     2748              
  Lines        259390   259390              
  Branches      40381    40381              
============================================
- Hits          37365    37353      -12     
- Misses       217190   217207      +17     
+ Partials       4835     4830       -5     

see 3 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6985

@weizhouapache
Copy link
Member Author

@blueorangutan LLpackage

@blueorangutan
Copy link

@weizhouapache a [LL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result [LL]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6174

@weizhouapache
Copy link
Member Author

@blueorangutan LLtest matrix

@blueorangutan
Copy link

@weizhouapache a [LL] Trillian-Jenkins matrix job (centos7 mgmt + xenserver71, rocky8 mgmt + vmware67u3, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests

@yadvr
Copy link
Member

yadvr commented Sep 6, 2023

cc @nvazquez can you review/build locally on your mac, see if that works?

Copy link
Contributor

@nvazquez nvazquez left a comment

Choose a reason for hiding this comment

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

LGTM - tested OK on macos, can build properly - thanks for the fix @weizhouapache

Copy link
Contributor

@harikrishna-patnala harikrishna-patnala left a comment

Choose a reason for hiding this comment

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

LGTM.

verified the fix locally on my mac, build passed.

@blueorangutan
Copy link

[LL]Trillian test result (tid-6740)
Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7
Total time taken: 36564 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7944-t6740-xenserver-71.zip
Smoke tests completed. 113 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@blueorangutan
Copy link

[LL]Trillian test result (tid-6742)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 43976 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7944-t6742-kvm-centos7.zip
Smoke tests completed. 113 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@blueorangutan
Copy link

[LL]Trillian test result (tid-6741)
Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server r8
Total time taken: 55505 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7944-t6741-vmware-67u3.zip
Smoke tests completed. 112 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_01_deploy_vm_on_specific_host Error 3602.40 test_vm_deployment_planner.py
test_02_deploy_vm_on_specific_cluster Error 4.27 test_vm_deployment_planner.py
test_03_deploy_vm_on_specific_pod Error 15.50 test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_cluster Error 3602.46 test_vm_deployment_planner.py
test_05_deploy_vm_on_cluster_override_pod Error 18.55 test_vm_deployment_planner.py

@weizhouapache weizhouapache merged commit 54a7a5d into apache:main Sep 7, 2023
@DaanHoogland DaanHoogland added this to the 4.19.0.0 milestone Sep 29, 2023
@weizhouapache weizhouapache deleted the 4.19-fix-utils-build-error-on-mac branch November 22, 2023 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants