oracle / weblogic-azure

This project offers support for running Oracle WebLogic Server in the Azure Virtual Machines and Azure Kubernetes Service (AKS)
Universal Permissive License v1.0
8 stars 19 forks source link

BugFix: command `mvn package` doesn't work successfully #282

Closed backwind1233 closed 8 months ago

backwind1233 commented 9 months ago

Checklist

[ERROR] Failed to execute goal org.codehaus.mojo:properties-maven-plugin:1.0.0:read-project-properties (default) on project weblogic-azure-vm: Properties could not be loaded from URL file:/${project.parent.basedir}/arm-oraclelinux-wls/src/main/resources/pid.properties -> [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

This PR is used to fix this bug.

Test Result

Workflow test

Type Workflow Result
AKS https://github.com/azure-javaee/weblogic-azure/actions/runs/6454449206
admin-oracle https://github.com/azure-javaee/weblogic-azure/actions/runs/6454503900
admin-microsoft https://github.com/azure-javaee/weblogic-azure/actions/runs/6454498190
cluster-oracle https://github.com/azure-javaee/weblogic-azure/actions/runs/6454521854
cluster-microsoft https://github.com/azure-javaee/weblogic-azure/actions/runs/6454514788
dynamic-cluster-oracle https://github.com/azure-javaee/weblogic-azure/actions/runs/6454532472
dynamic-cluster-microsoft https://github.com/azure-javaee/weblogic-azure/actions/runs/6454532472
single-microsoft https://github.com/azure-javaee/weblogic-azure/actions/runs/6454463547
single-oracle https://github.com/azure-javaee/weblogic-azure/actions/runs/6454470297
backwind1233 commented 8 months ago

Hello @edburns Thank you for your comments.

Steps to address the issue.

  1. Pull the code in the azure-javaee-iaas-PR.
  2. Run mvn clean install in the project azure-javaee-iaas.
  3. Pull the PR weblogic-azure-PR.
  4. cd to the folder weblogic-azure/weblogic-azure-vm
  5. Run the command mvn -Ptemplate-validation-tests package

If it works, please help approve and merge the azure-javaee-iaas-PR first.

Root cause

The root cause of the error is that the maven command tries to run plugins in the parent module weblogic-azure-vm, but the weblogic-azure-vm is only used to organize it's sub-modules, so it should skip to run the maven plugins for the project weblogic-azure-vm(not it's sub-modules).

Plan to Fix the issue.

Update the configurations to skip the maven plugins in weblogic-azure-vm.

Check the commit and a new PR.

Test Results

This is the result of mvn -Ptemplate-validation-tests package

image