Skip to content

Commit 0ba2c1c

Browse files
committed
ci: add demo-war profile
1 parent 79a334c commit 0ba2c1c

File tree

1 file changed

+97
-1
lines changed

1 file changed

+97
-1
lines changed

pom.xml

Lines changed: 97 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
<dependency>
153153
<groupId>io.github.bonigarcia</groupId>
154154
<artifactId>webdrivermanager</artifactId>
155-
<version>5.1.1</version>
155+
<version>5.9.0</version>
156156
<scope>test</scope>
157157
</dependency>
158158
<dependency>
@@ -499,6 +499,102 @@
499499
</plugins>
500500
</build>
501501
</profile>
502+
503+
<profile>
504+
<id>demo-war</id>
505+
<properties>
506+
<vaadin.productionMode>true</vaadin.productionMode>
507+
</properties>
508+
<dependencies>
509+
<dependency>
510+
<groupId>com.vaadin</groupId>
511+
<artifactId>vaadin-core</artifactId>
512+
<exclusions>
513+
<exclusion>
514+
<groupId>com.vaadin</groupId>
515+
<artifactId>vaadin-dev</artifactId>
516+
</exclusion>
517+
</exclusions>
518+
</dependency>
519+
<dependency>
520+
<groupId>com.flowingcode.vaadin.addons.demo</groupId>
521+
<artifactId>commons-demo</artifactId>
522+
<version>${flowingcode.commons.demo.version}</version>
523+
</dependency>
524+
<dependency>
525+
<groupId>org.slf4j</groupId>
526+
<artifactId>slf4j-simple</artifactId>
527+
</dependency>
528+
</dependencies>
529+
<build>
530+
<plugins>
531+
<plugin>
532+
<groupId>org.apache.maven.plugins</groupId>
533+
<artifactId>maven-antrun-plugin</artifactId>
534+
<version>1.7</version>
535+
<executions>
536+
<execution>
537+
<id>copy-demo</id>
538+
<phase>process-sources</phase>
539+
<goals>
540+
<goal>run</goal>
541+
</goals>
542+
<configuration>
543+
<target name="copy-demo">
544+
<copy todir="${project.basedir}/src/main" failonerror="false">
545+
<fileset dir="${project.basedir}/src/test">
546+
<include name="**"/>
547+
<exclude name="**/it/*"/>
548+
<exclude name="**/test/*"/>
549+
</fileset>
550+
</copy>
551+
<copy todir="${project.basedir}/src/main/resources" failonerror="false">
552+
<fileset dir="${project.basedir}/src/test/resources"/>
553+
</copy>
554+
<copy todir="${project.basedir}/src/main/resources/META-INF/resources/frontend" failonerror="false">
555+
<fileset dir="${project.basedir}/src/main/resources/META-INF/frontend"/>
556+
</copy>
557+
<delete failonerror="false">
558+
<fileset dir="${project.basedir}/src/main/resources/META-INF/frontend"/>
559+
</delete>
560+
</target>
561+
</configuration>
562+
</execution>
563+
</executions>
564+
</plugin>
565+
566+
<plugin>
567+
<groupId>com.vaadin</groupId>
568+
<artifactId>vaadin-maven-plugin</artifactId>
569+
<version>${vaadin.version}</version>
570+
<executions>
571+
<execution>
572+
<goals>
573+
<goal>prepare-frontend</goal>
574+
<goal>build-frontend</goal>
575+
</goals>
576+
<phase>compile</phase>
577+
</execution>
578+
</executions>
579+
</plugin>
580+
581+
<plugin>
582+
<groupId>org.apache.maven.plugins</groupId>
583+
<artifactId>maven-war-plugin</artifactId>
584+
<executions>
585+
<execution>
586+
<goals>
587+
<goal>war</goal>
588+
</goals>
589+
<configuration>
590+
<failOnMissingWebXml>false</failOnMissingWebXml>
591+
</configuration>
592+
</execution>
593+
</executions>
594+
</plugin>
595+
</plugins>
596+
</build>
597+
</profile>
502598

503599
</profiles>
504600

0 commit comments

Comments
 (0)