Skip to content

Commit 98fe66f

Browse files
committed
#326 move malewicz to resource files
1 parent c3c1050 commit 98fe66f

4 files changed

Lines changed: 13 additions & 38 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ target/
1616
src/main/assembly/static/lib/*.jar
1717

1818
src/main/generated-sources
19-
src/resources/public
19+
src/main/resources/public/*
2020
conf/sql-boot*

pom.xml

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@
399399
</execution>
400400
</executions>
401401
</plugin>
402+
402403
<plugin>
403404
<groupId>org.apache.maven.plugins</groupId>
404405
<artifactId>maven-compiler-plugin</artifactId>
@@ -441,7 +442,6 @@
441442
<installDirectory>target</installDirectory>
442443
</configuration>
443444
<executions>
444-
<!-- Install our node and npm version to run npm/node scripts-->
445445
<execution>
446446
<id>install node and npm</id>
447447
<goals>
@@ -451,20 +451,16 @@
451451
<nodeVersion>v11.14.0</nodeVersion>
452452
</configuration>
453453
</execution>
454-
<!-- Install all project dependencies -->
455454
<execution>
456455
<id>npm install</id>
457456
<goals>
458457
<goal>npm</goal>
459458
</goals>
460-
<!-- optional: default phase is "generate-resources" -->
461459
<phase>generate-resources</phase>
462-
<!-- Optional configuration which provides for running any npm command -->
463460
<configuration>
464461
<arguments>install</arguments>
465462
</configuration>
466463
</execution>
467-
<!-- Build and minify static files -->
468464
<execution>
469465
<id>npm run build</id>
470466
<goals>
@@ -477,28 +473,6 @@
477473
</executions>
478474
</plugin>
479475

480-
481-
<plugin>
482-
<artifactId>maven-antrun-plugin</artifactId>
483-
<version>1.8</version>
484-
<executions>
485-
<execution>
486-
<id>copy</id>
487-
<phase>package</phase>
488-
<configuration>
489-
<target>
490-
<copy todir="src/main/resources/public">
491-
<fileset dir="src/main/malewicz/dist"/>
492-
</copy>
493-
</target>
494-
</configuration>
495-
<goals>
496-
<goal>run</goal>
497-
</goals>
498-
</execution>
499-
</executions>
500-
</plugin>
501-
502476
</plugins>
503477
</build>
504478

src/main/assembly/assembly.xml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,10 @@
2626
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2727
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
2828
<id>bin</id>
29-
<!--<baseDirectory>/</baseDirectory>-->
3029
<formats>
31-
<!--<format>tar.gz</format>-->
32-
<!--<format>tar.bz2</format>-->
3330
<format>zip</format>
3431
</formats>
3532
<includeBaseDirectory>false</includeBaseDirectory>
36-
<fileSets>
37-
<fileSet>
38-
<directory>conf</directory>
39-
<outputDirectory>conf</outputDirectory>
40-
</fileSet>
41-
</fileSets>
4233
<files>
4334
<file>
4435
<source>target/sql-boot-0.3.0-SNAPSHOT.jar</source>
@@ -53,4 +44,14 @@
5344
<source>src/main/resources/application.yml</source>
5445
</file>
5546
</files>
47+
<fileSets>
48+
<fileSet>
49+
<directory>conf</directory>
50+
<outputDirectory>conf</outputDirectory>
51+
</fileSet>
52+
<fileSet>
53+
<directory>src/main/malewicz/dist</directory>
54+
<outputDirectory>public</outputDirectory>
55+
</fileSet>
56+
</fileSets>
5657
</assembly>

src/main/malewicz/src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Vue.config.productionTip = false
3131

3232
const store = new Vuex.Store({
3333
state: {
34-
host: 'http://localhost:8007/',
34+
host: 'http://81.23.10.106:8007/',
3535
connections: '',
3636
type: 'table',
3737
path: [''],

0 commit comments

Comments
 (0)