Skip to content

Commit ebb8b12

Browse files
authored
Merge pull request #1373 from afs/ui-package
GH-1372: Deliver Fuseki UI as a jar file
2 parents 9a18b9d + 722682a commit ebb8b12

File tree

4 files changed

+44
-12
lines changed

4 files changed

+44
-12
lines changed

jena-fuseki2/jena-fuseki-ui/pom.xml

+17
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,23 @@
9393
-->
9494
</executions>
9595
</plugin>
96+
<plugin>
97+
<groupId>org.apache.maven.plugins</groupId>
98+
<artifactId>maven-jar-plugin</artifactId>
99+
<configuration>
100+
<classesDirectory>${project.build.directory}</classesDirectory>
101+
<includes>
102+
<include>webapp/**</include>
103+
</includes>
104+
</configuration>
105+
<executions>
106+
<execution>
107+
<goals>
108+
<goal>test-jar</goal>
109+
</goals>
110+
</execution>
111+
</executions>
112+
</plugin>
96113
</plugins>
97114
</build>
98115
</project>

jena-fuseki2/jena-fuseki-ui/vue.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ module.exports = {
6868
},
6969
// Change build paths to make them Maven compatible
7070
// see https://cli.vuejs.org/config/
71-
outputDir: 'target/dist',
71+
outputDir: 'target/webapp',
7272
assetsDir: 'static',
7373
css: {
7474
loaderOptions: {

jena-fuseki2/jena-fuseki-war/pom.xml

+2
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@
4141
</dependency>
4242

4343
<!-- frontend assets (HTML, JS, CSS, images, etc.) -->
44+
<!-- Currently done by unpacking in jena-fuseki-webapp
4445
<dependency>
4546
<groupId>org.apache.jena</groupId>
4647
<artifactId>jena-fuseki-ui</artifactId>
4748
<version>${project.version}</version>
4849
</dependency>
50+
-->
4951

5052
<!-- Require a logging implementation -->
5153
<dependency>

jena-fuseki2/jena-fuseki-webapp/pom.xml

+24-11
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,13 @@
7373
</dependency>
7474

7575
<!-- frontend assets (HTML, JS, CSS, images, etc.) -->
76+
<!-- Currently done by unpacking.
7677
<dependency>
7778
<groupId>org.apache.jena</groupId>
7879
<artifactId>jena-fuseki-ui</artifactId>
7980
<version>${project.version}</version>
8081
</dependency>
82+
-->
8183

8284
<!-- Logging -->
8385
<dependency>
@@ -142,17 +144,6 @@
142144
<filtering>false</filtering>
143145
<directory>src/main/webapp/</directory>
144146
<targetPath>${project.build.directory}/webapp/</targetPath>
145-
<excludes>
146-
<exclude>index.html</exclude>
147-
</excludes>
148-
</resource>
149-
<resource>
150-
<filtering>false</filtering>
151-
<directory>../jena-fuseki-ui/target/dist/</directory>
152-
<targetPath>${project.build.directory}/webapp/</targetPath>
153-
<includes>
154-
<include>**/*.*</include>
155-
</includes>
156147
</resource>
157148
</resources>
158149

@@ -189,6 +180,28 @@
189180
<plugin>
190181
<groupId>org.apache.maven.plugins</groupId>
191182
<artifactId>maven-dependency-plugin</artifactId>
183+
<executions>
184+
<execution>
185+
<id>unpack</id>
186+
<phase>process-resources</phase>
187+
<goals>
188+
<goal>unpack</goal>
189+
</goals>
190+
<configuration>
191+
<artifactItems>
192+
<artifactItem>
193+
<groupId>org.apache.jena</groupId>
194+
<artifactId>jena-fuseki-ui</artifactId>
195+
<version>${project.version}</version>
196+
<type>jar</type>
197+
<outputDirectory>${project.build.directory}</outputDirectory>
198+
<includes>webapp/**/*.*</includes>
199+
</artifactItem>
200+
</artifactItems>
201+
</configuration>
202+
</execution>
203+
</executions>
204+
192205
<configuration>
193206
<overWriteReleases>false</overWriteReleases>
194207
<overWriteIfNewer>true</overWriteIfNewer>

0 commit comments

Comments
 (0)