Skip to content

Commit 03779bd

Browse files
committed
Add vpjo
1 parent a83282e commit 03779bd

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

template-placeholder-demo/pom.xml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,40 @@
137137
</pluginManagement>
138138

139139
<plugins>
140+
<plugin>
141+
<groupId>org.codehaus.mojo</groupId>
142+
<artifactId>exec-maven-plugin</artifactId>
143+
<version>3.5.1</version>
144+
<executions>
145+
<execution>
146+
<id>patch-package-json-overrides</id>
147+
<phase>compile</phase>
148+
<goals>
149+
<goal>java</goal>
150+
</goals>
151+
<configuration>
152+
<mainClass>software.xdev.vaadin.vpjo.Launcher</mainClass>
153+
<arguments>
154+
<argument>${project.basedir}</argument>
155+
<argument>${project.build.directory}</argument>
156+
</arguments>
157+
<includeProjectDependencies>false</includeProjectDependencies>
158+
<includePluginDependencies>true</includePluginDependencies>
159+
<executableDependency>
160+
<groupId>software.xdev</groupId>
161+
<artifactId>vaadin-package-json-optimizer</artifactId>
162+
</executableDependency>
163+
</configuration>
164+
</execution>
165+
</executions>
166+
<dependencies>
167+
<dependency>
168+
<groupId>software.xdev</groupId>
169+
<artifactId>vaadin-package-json-optimizer</artifactId>
170+
<version>1.0.0</version>
171+
</dependency>
172+
</dependencies>
173+
</plugin>
140174
<plugin>
141175
<groupId>com.vaadin</groupId>
142176
<artifactId>vaadin-maven-plugin</artifactId>
@@ -188,6 +222,19 @@
188222
</build>
189223

190224
<profiles>
225+
<profile>
226+
<id>dev</id>
227+
<activation>
228+
<activeByDefault>true</activeByDefault>
229+
</activation>
230+
<dependencies>
231+
<dependency>
232+
<groupId>software.xdev</groupId>
233+
<artifactId>vaadin-package-json-optimizer</artifactId>
234+
<version>1.0.0</version>
235+
</dependency>
236+
</dependencies>
237+
</profile>
191238
<profile>
192239
<id>production</id>
193240
<dependencies>

0 commit comments

Comments
 (0)