|
17 | 17 | </organization> |
18 | 18 |
|
19 | 19 | <properties> |
20 | | - <osgi.version>6.0.0</osgi.version> |
21 | | - <vaadin.version>14.5.5</vaadin.version> |
22 | | - <flow.version>2.5.4</flow.version> |
23 | 20 | <maven.compiler.source>1.8</maven.compiler.source> |
24 | 21 | <maven.compiler.target>1.8</maven.compiler.target> |
| 22 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
25 | 23 | <failOnMissingWebXml>false</failOnMissingWebXml> |
| 24 | + <vaadin.version>14.7.5</vaadin.version> |
| 25 | + <flow.version>2.7.4</flow.version> |
26 | 26 | </properties> |
27 | 27 |
|
28 | 28 | <dependencyManagement> |
|
75 | 75 | </dependencies> |
76 | 76 |
|
77 | 77 | <build> |
| 78 | + <defaultGoal>jetty:run</defaultGoal> |
78 | 79 | <resources> |
79 | 80 | <resource> |
80 | 81 | <directory>src/main/java</directory> |
|
85 | 86 | <filtering>false</filtering> |
86 | 87 | </resource> |
87 | 88 | </resources> |
| 89 | + <pluginManagement> |
| 90 | + <plugins> |
| 91 | + <plugin> |
| 92 | + <groupId>org.apache.maven.plugins</groupId> |
| 93 | + <artifactId>maven-war-plugin</artifactId> |
| 94 | + <version>3.3.1</version> |
| 95 | + </plugin> |
| 96 | + </plugins> |
| 97 | + </pluginManagement> |
88 | 98 | <plugins> |
| 99 | + <plugin> |
| 100 | + <groupId>org.apache.maven.plugins</groupId> |
| 101 | + <artifactId>maven-war-plugin</artifactId> |
| 102 | + <version>3.3.1</version> |
| 103 | + </plugin> |
| 104 | + <!-- We use jetty plugin, replace it with your favourite developing servlet container --> |
89 | 105 | <plugin> |
90 | 106 | <groupId>org.eclipse.jetty</groupId> |
91 | 107 | <artifactId>jetty-maven-plugin</artifactId> |
92 | | - <version>9.4.11.v20180605</version> |
| 108 | + <version>9.4.43.v20210629</version> |
93 | 109 | <configuration> |
94 | 110 | <scanIntervalSeconds>1</scanIntervalSeconds> |
95 | 111 | </configuration> |
96 | 112 | </plugin> |
| 113 | + <!-- |
| 114 | + Take care of synchronizing java dependencies and imports in |
| 115 | + package.json and main.js files. |
| 116 | + It also creates webpack.config.js if not exists yet. |
| 117 | + --> |
97 | 118 | <plugin> |
98 | | - <groupId>org.sonatype.plugins</groupId> |
99 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
100 | | - <version>1.6.8</version> |
101 | | - <configuration> |
102 | | - <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo> |
103 | | - </configuration> |
| 119 | + <groupId>com.vaadin</groupId> |
| 120 | + <artifactId>vaadin-maven-plugin</artifactId> |
| 121 | + <version>${vaadin.version}</version> |
| 122 | + <executions> |
| 123 | + <execution> |
| 124 | + <goals> |
| 125 | + <goal>prepare-frontend</goal> |
| 126 | + </goals> |
| 127 | + </execution> |
| 128 | + </executions> |
104 | 129 | </plugin> |
105 | | - |
106 | 130 | </plugins> |
107 | 131 | </build> |
108 | 132 |
|
109 | 133 | <profiles> |
110 | 134 | <profile> |
111 | | - <id>production-mode</id> |
| 135 | + <!-- Production mode is activated using -Pproduction --> |
| 136 | + <id>production</id> |
| 137 | + <properties> |
| 138 | + <vaadin.productionMode>true</vaadin.productionMode> |
| 139 | + </properties> |
| 140 | + |
112 | 141 | <dependencies> |
113 | 142 | <dependency> |
114 | 143 | <groupId>com.vaadin</groupId> |
115 | 144 | <artifactId>flow-server-production-mode</artifactId> |
116 | | - <version>${flow.version}</version> |
117 | 145 | </dependency> |
118 | 146 | </dependencies> |
119 | 147 |
|
|
122 | 150 | <plugin> |
123 | 151 | <groupId>com.vaadin</groupId> |
124 | 152 | <artifactId>vaadin-maven-plugin</artifactId> |
125 | | - <version>13.0.9</version> |
| 153 | + <version>${vaadin.version}</version> |
126 | 154 | <executions> |
127 | 155 | <execution> |
128 | 156 | <goals> |
129 | | - <goal>copy-production-files</goal> |
130 | | - <goal>package-for-production</goal> |
| 157 | + <goal>build-frontend</goal> |
131 | 158 | </goals> |
| 159 | + <phase>compile</phase> |
132 | 160 | </execution> |
133 | 161 | </executions> |
134 | 162 | </plugin> |
|
0 commit comments