fix bug: can not run flow when package code into piflow.jar

This commit is contained in:
judy0131 2018-09-06 17:09:35 +08:00
parent 2ab05fccdd
commit 88471237ad
2 changed files with 9 additions and 21 deletions

View File

@ -55,6 +55,12 @@
<version>2.6.1</version>
</dependency>
<dependency>
<groupId>com.databricks</groupId>
<artifactId>spark-xml_2.11</artifactId>
<version>0.4.2</version>
</dependency>
</dependencies>
<build>
@ -83,27 +89,7 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<executions>
<execution>
<id>install-external-1</id>
<phase>package</phase>
<configuration>
<file>${basedir}/lib/spark-xml_2.11-0.4.2.jar</file>
<groupId>com.databricks</groupId>
<artifactId>spark-xml_2.11</artifactId>
<version>0.4.2</version>
<packaging>jar</packaging>
<generatePom>true</generatePom>
</configuration>
<goals>
<goal>install-file</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

2
readMe.txt Normal file
View File

@ -0,0 +1,2 @@
apt-get install maven
mvn install:install-file -Dfile=/opt/project/piflow/piflow-bundle/lib/spark-xml_2.11-0.4.2.jar -DgroupId=com.databricks -DartifactId=spark-xml_2.11 -Dversion=0.4.2 -Dpackaging=jar