From 2d661a6fae7dae3733086877d6fc384eb5708d55 Mon Sep 17 00:00:00 2001 From: Someone Date: Mon, 3 Jun 2013 13:24:58 +0200 Subject: [PATCH] readded maven for QA purpose AND easier integration with Jenkins. --- README.txt | 21 ++++ checkstyle.xml | 180 ++++++++++++++++++++++++++++++ maven/zipDeps.xml | 17 +++ maven/zipDepsSite.xml | 20 ++++ pom.xml | 249 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 487 insertions(+) create mode 100644 checkstyle.xml create mode 100644 maven/zipDeps.xml create mode 100644 maven/zipDepsSite.xml create mode 100644 pom.xml diff --git a/README.txt b/README.txt index 3bd7e97..70e7e89 100644 --- a/README.txt +++ b/README.txt @@ -42,3 +42,24 @@ Compile + run scheduler C with scenario C (not yet implemented) Compile + run all schedulers and scenarios ant run-all-schedulers + + +MAVEN PART (needed for QA) +"make clean" + rm -rf target + +"make all" + mvn verify post-site + +How to start SchedSimulator + mvn exec:java -Dexec.mainClass="at.ac.tuwien.lsdc.SchedSimulator" -Dexec.args="A A ${numPMs} ${numCloudPartners} scenarios/scenarioA.csv logs/all.csv logs/scenarioA_schedulerA.csv" + + ant run-scheduler-A-A + mvn exec:java -Dexec.mainClass="at.ac.tuwien.lsdc.SchedSimulator" -Dexec.args="A A 7 2 scenarios/scenarioA.csv logs/all.csv logs/scenarioA_schedulerA.csv" + + ant run-scheduler-A-B + mvn exec:java -Dexec.mainClass="at.ac.tuwien.lsdc.SchedSimulator" -Dexec.args="A B 7 2 scenarios/scenarioA.csv logs/all.csv logs/scenarioA_schedulerA.csv" + +How to start JobGenerator + mvn exec:java -Dexec.mainClass="at.ac.tuwien.lsdc.JobGenerator" -Dexec.args="A 500 scenarios/scenarioA.csv" + diff --git a/checkstyle.xml b/checkstyle.xml new file mode 100644 index 0000000..0805c17 --- /dev/null +++ b/checkstyle.xml @@ -0,0 +1,180 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/maven/zipDeps.xml b/maven/zipDeps.xml new file mode 100644 index 0000000..2fdff9d --- /dev/null +++ b/maven/zipDeps.xml @@ -0,0 +1,17 @@ + + with-deps + + zip + + + + ${project.build.directory}/lib + + + + ${project.build.directory}/*.jar + + + + diff --git a/maven/zipDepsSite.xml b/maven/zipDepsSite.xml new file mode 100644 index 0000000..e023c4a --- /dev/null +++ b/maven/zipDepsSite.xml @@ -0,0 +1,20 @@ + + with-deps-and-site + + zip + + + + ${project.build.directory}/lib + + + + ${project.build.directory}/*.jar + + + + ${project.build.directory}/site + + + diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..974e5b8 --- /dev/null +++ b/pom.xml @@ -0,0 +1,249 @@ + + 4.0.0 + at.ac.tuwien.lsdc + lsdc + 0.0.1-SNAPSHOT + + + 3.0.3 + + + + UTF-8 + + + + + org.slf4j + slf4j-api + 1.7.5 + + + ch.qos.logback + logback-classic + 1.0.7 + + + net.sf.opencsv + opencsv + 2.3 + + + + + src/ + + + org.codehaus.mojo + exec-maven-plugin + 1.2.1 + + + maven-compiler-plugin + 3.0 + + 1.7 + 1.7 + + + + org.apache.maven.plugins + maven-jar-plugin + 2.4 + + + + at.ac.tuwien.lsdc.SchedSimulator + true + lib/ + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.6 + + + copy-dependencies + package + + copy-dependencies + + + ${project.build.directory}/lib + false + true + + + + + + maven-assembly-plugin + 2.4 + + + zip-Dependencies + package + + + maven/zipDeps.xml + + + + single + + + + zip-Dependencies-and-Site + post-site + + + maven/zipDepsSite.xml + + + + single + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.13 + + true + + + + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.9 + + private + + + + verify + + javadoc + + + + + + org.apache.maven.plugins + maven-jxr-plugin + 2.3 + + + verify + + jxr + + + + + + org.codehaus.mojo + cobertura-maven-plugin + 2.5.2 + + xml + + + + verify + + cobertura + + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + 2.9.1 + + + verify + + checkstyle + + + checkstyle.xml + + + + + + org.codehaus.mojo + javancss-maven-plugin + 2.0 + + + verify + + report + + + + + + org.apache.maven.plugins + maven-pmd-plugin + 2.7.1 + + 1.6 + + + + verify + + pmd + cpd + + + + + + org.codehaus.mojo + findbugs-maven-plugin + 2.5.2 + + + verify + + findbugs + + + true + true + true + + + + + + org.apache.maven.plugins + maven-project-info-reports-plugin + 2.7 + + + site + + + + + + + -- 2.43.0