Skip to content

Commit

Permalink
WIP #505 use appassembler-maven-plugin to create the apps
Browse files Browse the repository at this point in the history
  • Loading branch information
axkr committed Apr 21, 2022
1 parent 5b2f6a3 commit fbe5cda
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 7 deletions.
57 changes: 54 additions & 3 deletions symja_android_library/matheclipse-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,64 @@
<artifactId>matheclipse-logging</artifactId>
<version>${project.version}</version>
</dependency>

<!-- test dependencies -->
<dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>matheclipse-script</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>

<build>
<pluginManagement>
<plugins>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>server</id>
<goals>
<goal>java</goal>
</goals>
<configuration>
<mainClass>org.matheclipse.api.SymjaServer</mainClass>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>appassembler-maven-plugin</artifactId>
<version>2.1.0</version>
<configuration>
<assembleDirectory>${project.build.directory}/binary</assembleDirectory>
<repositoryLayout>flat</repositoryLayout>
<repositoryName>lib</repositoryName>
<useWildcardClassPath>true</useWildcardClassPath>
<programs>
<program>
<mainClass>org.matheclipse.api.SymjaServer</mainClass>
<id>symjaapi</id>
</program>
</programs>
</configuration>
<executions>
<execution>
<id>make-distribution</id>
<phase>package</phase>
<goals>
<goal>assemble</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</pluginManagement>
</build>
</project>
47 changes: 43 additions & 4 deletions symja_android_library/matheclipse-io/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</license>
</licenses>

<dependencies>
<dependencies>

<dependency>
<groupId>${project.groupId}</groupId>
Expand Down Expand Up @@ -99,13 +99,13 @@
</dependency>

<!-- test dependencies -->
<dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>matheclipse-script</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.tngtech.archunit</groupId>
<artifactId>archunit-junit4</artifactId>
Expand Down Expand Up @@ -161,7 +161,46 @@
</executions>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>appassembler-maven-plugin</artifactId>
<version>2.1.0</version>
<configuration>
<assembleDirectory>${project.build.directory}/binary</assembleDirectory>
<repositoryLayout>flat</repositoryLayout>
<repositoryName>lib</repositoryName>
<useWildcardClassPath>true</useWildcardClassPath>
<programs>
<program>
<mainClass>org.matheclipse.io.servlet.ServletServer</mainClass>
<id>server</id>
</program>
<program>
<mainClass>org.matheclipse.io.servlet.MMAServletServer</mainClass>
<id>mmaserver</id>
</program>
<program>
<mainClass>org.matheclipse.io.eval.Console</mainClass>
<id>symja</id>
</program>
<program>
<mainClass>org.matheclipse.io.eval.MMAConsole</mainClass>
<id>mma</id>
</program>
</programs>
</configuration>
<executions>
<execution>
<id>make-distribution</id>
<phase>package</phase>
<goals>
<goal>assemble</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</pluginManagement>
</build>
</project>
</project>

0 comments on commit fbe5cda

Please sign in to comment.