Skip to content

Commit

Permalink
Build a .xar
Browse files Browse the repository at this point in the history
Still need to figure out a way to make this easily deployable
  • Loading branch information
thvitt committed Sep 28, 2016
1 parent 9e43c76 commit e090358
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions pom.xml
Expand Up @@ -10,6 +10,7 @@
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
<upload.url>beta.faustedition.net:/var/www/dev</upload.url>
<faust.diplo.allowedFailures>10</faust.diplo.allowedFailures>
<exist.app-name>faust-dev</exist.app-name>
</properties>

<repositories>
Expand Down Expand Up @@ -174,6 +175,43 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>xar</id>
<phase>package</phase>
<goals><goal>single</goal></goals>
<configuration>
<descriptor>${basedir}/src/main/assembly/exist-app.xml</descriptor>
<finalName>${exist.app-name}</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>xar-rename</id>
<phase>package</phase>
<goals><goal>run</goal></goals>
<configuration>
<target>
<move file="${project.build.directory}/${exist.app-name}.zip"
tofile="${project.build.directory}/${exist.app-name}.xar"/>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
2 changes: 1 addition & 1 deletion src/main/xproc

0 comments on commit e090358

Please sign in to comment.