Skip to content

Commit

Permalink
#326 move malewicz to resource files
Browse files Browse the repository at this point in the history
  • Loading branch information
mgramin committed May 30, 2019
1 parent c3c1050 commit 98fe66f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ target/
src/main/assembly/static/lib/*.jar

src/main/generated-sources
src/resources/public
src/main/resources/public/*
conf/sql-boot*
28 changes: 1 addition & 27 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down Expand Up @@ -441,7 +442,6 @@
<installDirectory>target</installDirectory>
</configuration>
<executions>
<!-- Install our node and npm version to run npm/node scripts-->
<execution>
<id>install node and npm</id>
<goals>
Expand All @@ -451,20 +451,16 @@
<nodeVersion>v11.14.0</nodeVersion>
</configuration>
</execution>
<!-- Install all project dependencies -->
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
<!-- optional: default phase is "generate-resources" -->
<phase>generate-resources</phase>
<!-- Optional configuration which provides for running any npm command -->
<configuration>
<arguments>install</arguments>
</configuration>
</execution>
<!-- Build and minify static files -->
<execution>
<id>npm run build</id>
<goals>
Expand All @@ -477,28 +473,6 @@
</executions>
</plugin>


<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>copy</id>
<phase>package</phase>
<configuration>
<target>
<copy todir="src/main/resources/public">
<fileset dir="src/main/malewicz/dist"/>
</copy>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>

Expand Down
19 changes: 10 additions & 9 deletions src/main/assembly/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,10 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<id>bin</id>
<!--<baseDirectory>/</baseDirectory>-->
<formats>
<!--<format>tar.gz</format>-->
<!--<format>tar.bz2</format>-->
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>conf</directory>
<outputDirectory>conf</outputDirectory>
</fileSet>
</fileSets>
<files>
<file>
<source>target/sql-boot-0.3.0-SNAPSHOT.jar</source>
Expand All @@ -53,4 +44,14 @@
<source>src/main/resources/application.yml</source>
</file>
</files>
<fileSets>
<fileSet>
<directory>conf</directory>
<outputDirectory>conf</outputDirectory>
</fileSet>
<fileSet>
<directory>src/main/malewicz/dist</directory>
<outputDirectory>public</outputDirectory>
</fileSet>
</fileSets>
</assembly>
2 changes: 1 addition & 1 deletion src/main/malewicz/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Vue.config.productionTip = false

const store = new Vuex.Store({
state: {
host: 'http://localhost:8007/',
host: 'http://81.23.10.106:8007/',
connections: '',
type: 'table',
path: [''],
Expand Down

0 comments on commit 98fe66f

Please sign in to comment.