All Downloads are FREE. Search and download functionalities are using the official Maven repository.

archetype-resources.tests.common.pom.xml Maven / Gradle / Ivy

There is a newer version: 7.0.156
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>${groupId}</groupId>
        <artifactId>${rootArtifactId}-tests</artifactId>
        <version>${version}</version>
    </parent>
    <groupId>${groupId}</groupId>
    <artifactId>${artifactId}</artifactId>
    <version>${version}</version>
    <packaging>jar</packaging>



    <profiles>
        <profile>
            <id>kotlin</id>
            <activation>
                <property>
                    <name>cn1.kotlin</name>
                </property>
            </activation>
            <properties>
                <kotlin.version>1.3.72</kotlin.version>
                <kotlin.compiler.incremental>true</kotlin.compiler.incremental>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.jetbrains.kotlin</groupId>
                    <artifactId>kotlin-stdlib</artifactId>
                    <version>${kotlin.version}</version>
                </dependency>
        
                <!-- https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-annotations-jvm -->
                <!-- https://mvnrepository.com/artifact/org.jetbrains/annotations -->
                <dependency>
                    <groupId>org.jetbrains</groupId>
                    <artifactId>annotations</artifactId>
                    <version>13.0</version>
                </dependency>
            </dependencies>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>properties-maven-plugin</artifactId>
                        <version>1.0.0</version>
                        <executions>
                            <execution>
                                <phase>initialize</phase>
                                <goals>
                                    <goal>read-project-properties</goal>
                                </goals>
                                <configuration>
                                    <files>
                                        <file>${basedir}/codenameone_settings.properties</file>
                                    </files>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.jetbrains.kotlin</groupId>
                        <artifactId>kotlin-maven-plugin</artifactId>
                        <version>${kotlin.version}</version>
                        <executions>
                            <execution>
                                <id>compile</id>
                                <goals>
                                    <goal>compile</goal>
                                </goals>
                                <configuration>
                                    <sourceDirs>
                                        <sourceDir>${project.basedir}/src/main/kotlin</sourceDir>
                                        <sourceDir>${project.basedir}/src/main/java</sourceDir>
                                    </sourceDirs>
                                </configuration>
                            </execution>
                            <execution>
                                <id>test-compile</id>
                                <goals> 
                                    <goal>test-compile</goal> 
                                </goals>
                                <configuration>
                                    <sourceDirs>
                                        <sourceDir>${project.basedir}/src/test/kotlin</sourceDir>
                                        <sourceDir>${project.basedir}/src/test/java</sourceDir>
                                    </sourceDirs>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        
        
        <profile>
            
            <id>javase</id>
            <activation>
                <property>
                    <name>codename1.platform</name>
                    <value>javase</value>
                </property>
            </activation>
            <properties>
                <codename1.targetPlatform>javase</codename1.targetPlatform>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>exec-maven-plugin</artifactId>
                        <configuration>
                            <executable>java</executable>
                            <longClasspath>true</longClasspath>
                            <arguments>
                                <argument>-XX:MaxPermSize=128M</argument>
                                <argument>-Xmx1024M</argument>
                                <!--<argument>-Xdebug</argument>
                                <argument>-Xrunjdwp:transport=dt_socket,address=8888,server=y,suspend=n</argument>-->
                                <argument>-classpath</argument>
                                <classpath />
                                <argument>${exec.mainClass}</argument>
                                <argument>${cn1.mainClass}</argument>
                            </arguments>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <!-- 
                For running in simulator in process use:
                mvn cn1:java -P simulator
                            
                Fro running in simulator in forked process use:
                mvn cn1:simulator -P simulator
            -->
                
            <id>simulator</id>
            <properties>
                <codename1.targetPlatform>javase</codename1.targetPlatform>
            </properties>
            
        </profile>
        <profile>
            <!--
                For sending iOS debug builds use:
                mvn cn:build -P ios-debug
            -->
            <id>ios-debug</id>
            <properties>
                <!-- Build server target type -->
                <codename1.targetType>iphone</codename1.targetType>
                
                <!-- Used for identifying native interfaces.  Should match correct subdirectory of native -->
                <codename1.targetPlatform>ios</codename1.targetPlatform>
            </properties>
        </profile>
        <profile>
            <!--
                For sending iOS debug builds use:
                mvn cn:build -P ios-release
            -->
            <id>ios-release</id>
            <properties>
                <!-- Build server target type -->
                <codename1.targetType>iphone</codename1.targetType>
                <codename1.production>true</codename1.production>
                
                <!-- Used for identifying native interfaces.  Should match correct subdirectory of native -->
                <codename1.targetPlatform>ios</codename1.targetPlatform>
                <codename1.appStoreBuild>true</codename1.appStoreBuild>
            </properties>
        </profile>
        <profile>
            <!--
                For sending Javascript builds use:
                mvn cn:build -P javascript
            -->
            <id>javascript</id>
            <properties>
                <codename1.targetType>javascript</codename1.targetType>
                <codename1.targetPlatform>javascript</codename1.targetPlatform>
            </properties>
        </profile>
        <profile>
            <!--
                For sending Android builds use:
                mvn cn:build -P android
            -->
            <id>android</id>
            <properties>
                <codename1.targetType>android</codename1.targetType>
                <codename1.targetPlatform>android</codename1.targetPlatform>
            </properties>
        </profile>
        <profile>
            <!--
                For sending Windows UWP builds use:
                mvn cn:build -P uwp
            -->
            <id>uwp</id>
            <properties>
                <codename1.targetType>windows</codename1.targetType>
                <codename1.targetPlatform>win</codename1.targetPlatform>
            </properties>
        </profile>
        <profile>
            <!--
                For sending Windows desktop builds use:
                mvn cn:build -P windows
            -->
            <id>windows</id>
            <properties>
                <codename1.targetType>desktop_windows</codename1.targetType>
                <codename1.targetPlatform>javase</codename1.targetPlatform>
            </properties>
        </profile>
        <profile>
            <!--
                For sending Mac Desktop builds use:
                mvn cn:build -P mac
            -->
            <id>mac</id>
            <properties>
                <codename1.targetType>desktop_macosx</codename1.targetType>
                <codename1.targetPlatform>javase</codename1.targetPlatform>
            </properties>
        </profile>
    </profiles>
    <dependencies>
        <dependency>
            <groupId>com.codenameone</groupId>
            <artifactId>codenameone-core</artifactId>
        </dependency>
        <dependency>
            <groupId>com.codenameone</groupId>
            <artifactId>codenameone-javase</artifactId>
            <scope>runtime</scope>
        </dependency>

        <dependency>
            <artifactId>${cn1lib.name}-lib</artifactId>
            <groupId>${groupId}</groupId>
            <version>${version}</version>
            <type>pom</type>
        </dependency>

        <!-- INJECT DEPENDENCIES -->
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>properties-maven-plugin</artifactId>
                <version>1.0.0</version>
                <executions>
                    <execution>
                        <phase>initialize</phase>
                        <goals>
                            <goal>read-project-properties</goal>
                        </goals>
                        <configuration>
                            <files>
                                <file>${basedir}/codenameone_settings.properties</file>
                            </files>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
			
            <plugin>
                <groupId>com.codenameone</groupId>
                <artifactId>codenameone-maven-plugin</artifactId>

                <executions>
                    
                    <execution>
                        <id>cn1-process-classes</id>
                        <phase>process-classes</phase>
                        <goals>
                            <goal>compliance-check</goal>
                            <goal>css</goal>
                            <!--<goal>compile-javase-sources</goal>-->
                        </goals>
                    </execution>
                    <execution>
                        <id>attach-test-artifact</id>
                        <phase>test</phase>
                        <goals>
                            <goal>attach-test-artifact</goal>
                        </goals>
                    </execution>
                </executions>

            </plugin>
            
            
        </plugins>

        
    </build>
    <repositories>
        <repository>
            <snapshots>
            </snapshots>
            <id>cn1libs</id>
            <name>cn1libs</name>
            <url>file:${project.basedir}/../cn1libs</url>
        </repository>

    </repositories>
    <pluginRepositories>

    </pluginRepositories>
    
</project>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy