refactoring

This commit is contained in:
2026-04-17 10:04:51 +02:00
parent 2c5feb25f6
commit 32f7cd07d9
20 changed files with 113 additions and 90 deletions

View File

@@ -129,7 +129,7 @@
devShells.default = with pkgs;
mkShell {
buildInputs = [wildfly-fhs pkgs.openjdk21];
buildInputs = [wildfly-fhs pkgs.openjdk21 maven];
nativeBuildInputs = [];
packages =
[
@@ -143,21 +143,8 @@
shellHook =
# bash
''
export PATH="bin/:$PATH"
export WILDFLY_BASE_DIR="$HOME/.wildfly-fhs-base"
build() {
# builds target/demo.war
mvn clean package
}
# e.g. 'deploy target/demo.war'
deploy() {
cp -v "$1" "$WILDFLY_BASE_DIR/deployments/"
}
start() {
wildfly-fhs
}
'';
};
};