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 ).
- Clone liquibase repository from GitHub - liquibase/liquibase: Main Liquibase Source
- Checkout tag
v4.3.5
using commandgit checkout v4.3.5
- Updated spring version in file
base.pom.xml
<spring.version>5.3.0</spring.version>`
- Ran command
mvn clean install -DskipTests
. This command ran successfully - 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.
- Due to the above error, I passed the descriptor explicitly using
mvn assembly:single -Ddescriptor=liquibase-dist/src/main/assembly/assembly-bin.xml -e
- 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 ?