How to build the Liquibase Project?

We are currently using liquibase version 4.3.5. We needed to update the spring version of the liquibase project for security reasons (Liquibase uses Spring version 5.0.12.RELEASE, which has some vulnerabilities ).

  1. Clone liquibase repository from GitHub - liquibase/liquibase: Main Liquibase Source
  2. Checkout tag v4.3.5 using command git checkout v4.3.5
  3. Updated spring version in file base.pom.xml
<spring.version>5.3.0</spring.version>`
  1. Ran command mvn clean install -DskipTests. This command ran successfully
  2. Ran command mvn clean assembly:single -DskipTests -e. This command failed with the below error:
Caused by: org.apache.maven.plugin.assembly.io.AssemblyReadException: No assembly descriptors found.
  1. Due to the above error, I passed the descriptor explicitly using
mvn assembly:single -Ddescriptor=liquibase-dist/src/main/assembly/assembly-bin.xml -e
  1. This failed with error
Caused by: org.codehaus.plexus.archiver.ArchiverException: /Users/anasen/Documents/code/oci/liquibase/liquibase-core/target/liquibase-4.5.1-local-SNAPSHOT.jar isn't a file

When I checked the path where it is looking for .jar file i.e. “/Users/anasen/Documents/code/oci/liquibase/liquibase-core/target/liquibase-4.5.1-local-SNAPSHOT.jar” this file does not exist in that path hence the error.

Also, tried running these commands:

mvn clean install  -DskipTests
mvn clean assembly:assembly -DskipTests

They failed with below error:

[ERROR] Failed to execute goal on project liquibase-extension-examples: Could not resolve dependencies for project org.liquibase:liquibase-extension-examples:jar:4.3.5-local-SNAPSHOT: Could not find artifact org.liquibase:liquibase-core:jar:tests:4.3.5-local-SNAPSHOT -> [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/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :liquibase-extension-examples

Question: How to build the liquibase project ?

You might try this article to see what it is doing behind the scenes.
https://www.liquibase.org/community/contribute/code