Browse Source

added build start script; added maven project

remotes/origin/JaFi
fdai7487 2 years ago
parent
commit
fa12bd5627
  1. 33
      build-project.sh
  2. 17
      pom.xml

33
build-project.sh

@ -0,0 +1,33 @@
#! /bin/bash
function usage
{
cat <<EOF
Usage: Gruppenprojekt Programmiermethoden und Werkzeuge
build
build the project
test
runs the unit tests
help
print help and exit
EOF
}
CMD=$1
shift
case $CMD in
"build" )
mvn clean install -DskipTests=true
;;
"test" )
mvn test
;;
"help" )
usage
;;
* )
usage
;;
esac

17
pom.xml

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>digital.technik</groupId>
<artifactId>gruppenprojekt-programmiermethoden-und-werkzeuge</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>
Loading…
Cancel
Save