PromucFlow_constructor/app/server/build.sh
Arpit Mohan 01737b9599 Experimenting with maven-shade-plugin to create a fat-jar of the postgres dependency.
Will have to do this for all plugins. Currently, it's not registering the plugin with the SpringPluginManager
2020-06-10 11:11:23 +00:00

21 lines
443 B
Bash
Executable File

#!/bin/bash
# Remove previous dist directory
rm -rf dist/
# Build the code. $@ accepts all the parameters from the input command line and uses it in the maven build command
mvn clean package "$@"
# Create the dist directory
mkdir -p dist/plugins
# Copy the server jar
cp ./appsmith-server/target/server-1.0-SNAPSHOT.jar dist/
# Copy all the plugins
rsync -av --exclude "original-*.jar" ./appsmith-plugins/*/target/*.jar dist/plugins/