-
Notifications
You must be signed in to change notification settings - Fork 0
Build
Martin Řehánek edited this page Sep 10, 2020
·
5 revisions
- Java 8
- Maven 3.5 a vyšší
Tento způsob buildu je preferován, pokud nejde o build za účelem nahrání
mvn clean install package -Dmaven.test.skip=true
Build zahrnující testy trvá výrazně déle. Je určen jen pro výrobu instalačních souborů pro nahrání na https://github.com/NLCR/CZIDLO/releases.
K úspěchu je potřeba, aby existovala lokální testovací databáze a také deploynutý modul API.
Více v https://github.com/NLCR/CZIDLO/issues/150
mvn clean install package
- -e full stack trace
- -Dgwt.compiler.strict=true (should not be used, this breaks even working demo from https://github.com/steinsag/gwt-maven-example)
Některé vyžadované knihovny již nejsou dostupné ve veřejných Maven repozitářích. Tyto knihovny jsou k dispozici pro lokální instalaci v adresáři missing_maven_artifacts. Jejich instalace do lokálního repozitáře vypadá následovně:
mvn install:install-file \
-Dfile=./missing_maven_artifacts/jdbc-stdext-2.0.jar \
-DgroupId=javax.sql \
-DartifactId=jdbc-stdext \
-Dversion=2.0 \
-Dpackaging=jar
mvn install:install-file \
-Dfile=./missing_maven_artifacts/jta-1.0.1B.jar \
-DgroupId=javax.transaction \
-DartifactId=jta \
-Dversion=1.0.1B \
-Dpackaging=jar
mvn install:install-file \
-Dfile=./missing_maven_artifacts/smartgwt-5.1p.jar \
-DgroupId=com.smartgwt \
-DartifactId=smartgwt \
-Dversion=5.1p \
-Dpackaging=jar
mvn install:install-file \
-Dfile=./missing_maven_artifacts/gquery-dnd-bundle-1.0.6.jar \
-DgroupId=com.googlecode.gwtquery.bundles \
-DartifactId=gquery-dnd-bundle \
-Dversion=1.0.6 \
-Dpackaging=jar
See https://github.com/steinsag/gwt-maven-example.
V adresáři ./web spusťte:
mvn clean install
mvn tomcat7:run-war-only &
mvn gwt:run -pl web_client