Skip to content

Commit c4061e5

Browse files
authored
Merge pull request #3 from /issues/2
Issues/2
2 parents 05e57ff + 09dcf29 commit c4061e5

File tree

1 file changed

+50
-17
lines changed

1 file changed

+50
-17
lines changed

pom.xml

Lines changed: 50 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,6 @@
6262
<id>Vaadin Directory</id>
6363
<url>https://maven.vaadin.com/vaadin-addons</url>
6464
</repository>
65-
<repository>
66-
<id>Vaadin prereleases</id>
67-
<url>https://maven.vaadin.com/vaadin-prereleases</url>
68-
</repository>
69-
<!-- The bintray repository contain webjars immediately after generation. If the webjar is available
70-
in Maven central, you do not need this repository -->
71-
<repository>
72-
<id>webjars</id>
73-
<url>https://dl.bintray.com/webjars/maven</url>
74-
</repository>
7565
</repositories>
7666

7767
<dependencies>
@@ -108,7 +98,7 @@
10898
</exclusion>
10999
</exclusions>
110100
</dependency>
111-
<dependency>
101+
<dependency>
112102
<groupId>javax.servlet</groupId>
113103
<artifactId>javax.servlet-api</artifactId>
114104
<version>3.0.1</version>
@@ -151,7 +141,7 @@
151141
<plugin>
152142
<groupId>org.apache.maven.plugins</groupId>
153143
<artifactId>maven-jar-plugin</artifactId>
154-
<version>3.0.2</version>
144+
<version>3.1.2</version>
155145
<configuration>
156146
<archive>
157147
<index>true</index>
@@ -250,8 +240,51 @@
250240
<additionalparam>-Xdoclint:none</additionalparam>
251241
</configuration>
252242
</plugin>
253-
</plugins>
254-
</build>
255-
</profile>
256-
</profiles>
257-
</project>
243+
<plugin>
244+
<groupId>org.apache.maven.plugins</groupId>
245+
<artifactId>maven-jar-plugin</artifactId>
246+
<version>3.1.2</version>
247+
<configuration>
248+
<!-- Generated file that shouldn't be included in add-ons -->
249+
<excludes>
250+
<exclude>META-INF/VAADIN/config/flow-build-info.json</exclude>
251+
</excludes>
252+
</configuration>
253+
</plugin>
254+
</plugins>
255+
</build>
256+
</profile>
257+
258+
<!-- Run (demo) in production mode -->
259+
<profile>
260+
<id>production</id>
261+
<properties>
262+
<vaadin.productionMode>true</vaadin.productionMode>
263+
</properties>
264+
<dependencies>
265+
<dependency>
266+
<groupId>com.vaadin</groupId>
267+
<artifactId>flow-server-production-mode</artifactId>
268+
</dependency>
269+
</dependencies>
270+
271+
<build>
272+
<plugins>
273+
<plugin>
274+
<groupId>com.vaadin</groupId>
275+
<artifactId>vaadin-maven-plugin</artifactId>
276+
<executions>
277+
<execution>
278+
<goals>
279+
<goal>build-frontend</goal>
280+
</goals>
281+
</execution>
282+
</executions>
283+
</plugin>
284+
</plugins>
285+
</build>
286+
</profile>
287+
288+
</profiles>
289+
290+
</project>

0 commit comments

Comments
 (0)