Skip to content

Commit fbe5cda

Browse files
committed
WIP #505 use appassembler-maven-plugin to create the apps
1 parent 5b2f6a3 commit fbe5cda

File tree

2 files changed

+97
-7
lines changed

2 files changed

+97
-7
lines changed

symja_android_library/matheclipse-api/pom.xml

Lines changed: 54 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,64 @@
6262
<artifactId>matheclipse-logging</artifactId>
6363
<version>${project.version}</version>
6464
</dependency>
65-
65+
6666
<!-- test dependencies -->
67-
<dependency>
67+
<dependency>
6868
<groupId>${project.groupId}</groupId>
6969
<artifactId>matheclipse-script</artifactId>
7070
<version>${project.version}</version>
7171
<scope>test</scope>
7272
</dependency>
7373
</dependencies>
74-
</project>
74+
75+
<build>
76+
<pluginManagement>
77+
<plugins>
78+
79+
<plugin>
80+
<groupId>org.codehaus.mojo</groupId>
81+
<artifactId>exec-maven-plugin</artifactId>
82+
<executions>
83+
<execution>
84+
<id>server</id>
85+
<goals>
86+
<goal>java</goal>
87+
</goals>
88+
<configuration>
89+
<mainClass>org.matheclipse.api.SymjaServer</mainClass>
90+
</configuration>
91+
</execution>
92+
</executions>
93+
</plugin>
94+
95+
<plugin>
96+
<groupId>org.codehaus.mojo</groupId>
97+
<artifactId>appassembler-maven-plugin</artifactId>
98+
<version>2.1.0</version>
99+
<configuration>
100+
<assembleDirectory>${project.build.directory}/binary</assembleDirectory>
101+
<repositoryLayout>flat</repositoryLayout>
102+
<repositoryName>lib</repositoryName>
103+
<useWildcardClassPath>true</useWildcardClassPath>
104+
<programs>
105+
<program>
106+
<mainClass>org.matheclipse.api.SymjaServer</mainClass>
107+
<id>symjaapi</id>
108+
</program>
109+
</programs>
110+
</configuration>
111+
<executions>
112+
<execution>
113+
<id>make-distribution</id>
114+
<phase>package</phase>
115+
<goals>
116+
<goal>assemble</goal>
117+
</goals>
118+
</execution>
119+
</executions>
120+
</plugin>
121+
122+
</plugins>
123+
</pluginManagement>
124+
</build>
125+
</project>

symja_android_library/matheclipse-io/pom.xml

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</license>
2323
</licenses>
2424

25-
<dependencies>
25+
<dependencies>
2626

2727
<dependency>
2828
<groupId>${project.groupId}</groupId>
@@ -99,13 +99,13 @@
9999
</dependency>
100100

101101
<!-- test dependencies -->
102-
<dependency>
102+
<dependency>
103103
<groupId>${project.groupId}</groupId>
104104
<artifactId>matheclipse-script</artifactId>
105105
<version>${project.version}</version>
106106
<scope>test</scope>
107107
</dependency>
108-
108+
109109
<dependency>
110110
<groupId>com.tngtech.archunit</groupId>
111111
<artifactId>archunit-junit4</artifactId>
@@ -161,7 +161,46 @@
161161
</executions>
162162
</plugin>
163163

164+
<plugin>
165+
<groupId>org.codehaus.mojo</groupId>
166+
<artifactId>appassembler-maven-plugin</artifactId>
167+
<version>2.1.0</version>
168+
<configuration>
169+
<assembleDirectory>${project.build.directory}/binary</assembleDirectory>
170+
<repositoryLayout>flat</repositoryLayout>
171+
<repositoryName>lib</repositoryName>
172+
<useWildcardClassPath>true</useWildcardClassPath>
173+
<programs>
174+
<program>
175+
<mainClass>org.matheclipse.io.servlet.ServletServer</mainClass>
176+
<id>server</id>
177+
</program>
178+
<program>
179+
<mainClass>org.matheclipse.io.servlet.MMAServletServer</mainClass>
180+
<id>mmaserver</id>
181+
</program>
182+
<program>
183+
<mainClass>org.matheclipse.io.eval.Console</mainClass>
184+
<id>symja</id>
185+
</program>
186+
<program>
187+
<mainClass>org.matheclipse.io.eval.MMAConsole</mainClass>
188+
<id>mma</id>
189+
</program>
190+
</programs>
191+
</configuration>
192+
<executions>
193+
<execution>
194+
<id>make-distribution</id>
195+
<phase>package</phase>
196+
<goals>
197+
<goal>assemble</goal>
198+
</goals>
199+
</execution>
200+
</executions>
201+
</plugin>
202+
164203
</plugins>
165204
</pluginManagement>
166205
</build>
167-
</project>
206+
</project>

0 commit comments

Comments
 (0)