Build iOS and normal jar simultaneously.
<properties>
<powermock.version>2.0.2</powermock.version>
+ <iOS.build.classesDirectory>${project.build.outputDirectory}-iOS</iOS.build.classesDirectory>
</properties>
- <profiles>
- <profile>
- <id>iOS</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>default-compile</id>
+ </execution>
+ <execution>
+ <id>ios-compile</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>compile</goal>
+ </goals>
<configuration>
+ <outputDirectory>${iOS.build.classesDirectory}</outputDirectory>
<annotationProcessorPaths>
<annotationProcessorPath>
<groupId>org.openecard.tools</groupId>
<showWarnings>true</showWarnings>
<!--failOnWarning>true</failOnWarning-->
</configuration>
+ </execution>
+ </executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>default-jar</id>
+ </execution>
+ <execution>
+ <id>iOS-jar</id>
+ <phase>package</phase>
+ <goals>
+ <goal>jar</goal>
+ </goals>
<configuration>
+ <classesDirectory>${iOS.build.classesDirectory}</classesDirectory>
<classifier>iOS</classifier>
</configuration>
+ </execution>
+ </executions>
</plugin>
</plugins>
</build>
+
<dependencies>
<dependency>
<groupId>com.mobidevelop.robovm</groupId>
<artifactId>robovm-rt</artifactId>
<version>${robovm.version}</version>
- <scope>compile</scope>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>com.mobidevelop.robovm</groupId>
<artifactId>robovm-cocoatouch</artifactId>
<version>${robovm.version}</version>
- <scope>compile</scope>
+ <scope>provided</scope>
</dependency>
- </dependencies>
- </profile>
- </profiles>
- <dependencies>
<dependency>
<groupId>org.openecard.tools</groupId>
<artifactId>roboface-annotation</artifactId>
