Skip to content

Commit 5186244

Browse files
committed
Copy jar to compose libs when build project
1 parent 20c0d53 commit 5186244

File tree

1 file changed

+43
-22
lines changed

1 file changed

+43
-22
lines changed

pom.xml

Lines changed: 43 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<dependency>
3333
<groupId>commons-io</groupId>
3434
<artifactId>commons-io</artifactId>
35-
<version>2.11.0</version>
35+
<version>2.14.0</version>
3636
</dependency>
3737
<dependency>
3838
<groupId>org.apache.commons</groupId>
@@ -139,26 +139,7 @@
139139
</argLine>
140140
</configuration>
141141
</plugin>
142-
<plugin>
143-
<groupId>org.codehaus.mojo</groupId>
144-
<artifactId>exec-maven-plugin</artifactId>
145-
<version>3.3.0</version>
146-
<executions>
147-
<execution>
148-
<phase>compile</phase>
149-
<goals>
150-
<goal>exec</goal>
151-
</goals>
152-
</execution>
153-
</executions>
154-
<configuration>
155-
<executable>make</executable>
156-
<workingDirectory>${project.basedir}/go/src/sourcebox</workingDirectory>
157-
<arguments>
158-
<argument>VERSION=${project.version}</argument>
159-
</arguments>
160-
</configuration>
161-
</plugin>
142+
162143

163144
</plugins>
164145
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
@@ -171,7 +152,7 @@
171152
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
172153
<plugin>
173154
<artifactId>maven-resources-plugin</artifactId>
174-
<version>3.0.2</version>
155+
<version>3.3.1</version>
175156
</plugin>
176157
<plugin>
177158
<artifactId>maven-compiler-plugin</artifactId>
@@ -228,6 +209,42 @@
228209
</execution>
229210
</executions>
230211
</plugin>
212+
<plugin>
213+
<groupId>org.codehaus.mojo</groupId>
214+
<artifactId>exec-maven-plugin</artifactId>
215+
<version>3.5.0</version>
216+
<executions>
217+
<execution>
218+
<id>build-go</id>
219+
<phase>compile</phase>
220+
<goals>
221+
<goal>exec</goal>
222+
</goals>
223+
<configuration>
224+
<executable>make</executable>
225+
<workingDirectory>${project.basedir}/go/sourcebox</workingDirectory>
226+
<arguments>
227+
<argument>VERSION=${project.version}</argument>
228+
</arguments>
229+
</configuration>
230+
</execution>
231+
<execution>
232+
<id>cp-fat</id>
233+
<phase>package</phase>
234+
<goals>
235+
<goal>exec</goal>
236+
</goals>
237+
<configuration>
238+
<executable>cp</executable>
239+
<workingDirectory>${project.basedir}</workingDirectory>
240+
<arguments>
241+
<argument>${project.build.directory}/sourcebox-fat.jar</argument>
242+
<argument>${project.basedir}/desktop-gui/compose/libs</argument>
243+
</arguments>
244+
</configuration>
245+
</execution>
246+
</executions>
247+
</plugin>
231248
</plugins>
232249
</pluginManagement>
233250
</build>
@@ -243,6 +260,10 @@
243260
<groupId>org.apache.maven.plugins</groupId>
244261
<artifactId>maven-assembly-plugin</artifactId>
245262
</plugin>
263+
<plugin>
264+
<groupId>org.codehaus.mojo</groupId>
265+
<artifactId>exec-maven-plugin</artifactId>
266+
</plugin>
246267
</plugins>
247268
</build>
248269
</profile>

0 commit comments

Comments
 (0)