Hi all, Our build system is hudson, running on RedHat. Since we can't install a flashpalyer, nor the other headless solution, I'm trying to use profiles to deactivate the running of the 'test-run' goal of the flexmojo plugin. To do this, I've edited the swc project pom.
This is the pom file: <?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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.company.incidents</groupId> <artifactId>incidents-swc</artifactId> <version>1.0-SNAPSHOT</version> <packaging>swc</packaging> <name>swc Library</name> <build> <sourceDirectory>src/main/flex</sourceDirectory> <testSourceDirectory>src/test/flex</testSourceDirectory> <plugins> <plugin> <groupId>org.sonatype.flexmojos</groupId> <artifactId>flexmojos-maven-plugin</artifactId> <version>3.5.0</version> <extensions>true</extensions> <configuration> <debug>true</debug> <locales> <locale>en_US</locale> </locales> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>flex-framework</artifactId> <version>3.2.0.3958</version> <type>pom</type> </dependency> <dependency> <groupId>com.adobe.flexunit</groupId> <artifactId>flexunit</artifactId> <version>0.85</version> <type>swc</type> <scope>test</scope> </dependency> </dependencies> <profiles> <profile> <!-- https://docs.sonatype.org/pages/viewpage.action?pageId=2949459 --> <id>m2e</id> <activation> <property> <name>m2e.version</name> </property> </activation> <build> <plugins> <plugin> <groupId>org.maven.ide.eclipse</groupId> <artifactId>lifecycle-mapping</artifactId> <version>0.9.9-SNAPSHOT</version> <configuration> <mappingId>customizable</mappingId> <configurators> <configurator id="org.maven.ide.eclipse.configuration.flex.configurator" /> </configurators> <mojoExecutions> <mojoExecution>org.apache.maven.plugins:maven-resources- plugin::</mojoExecution> </mojoExecutions> </configuration> </plugin> </plugins> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.4</version> </plugin> </plugins> </pluginManagement> </build> </profile> <profile> <id>hudson</id> <activation> <property> <name>hudson.build</name> <value>true</value> </property> </activation> <build> <plugins> <plugin> <groupId>org.sonatype.flexmojos</groupId> <artifactId>flexmojos-maven-plugin</artifactId> <version>3.5.0</version> <executions> <execution> <id>test-run</id> <configuration> <skip>true</skip> <skipTest>true</skipTest> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project> to test if this works, I use: mvn -Phudson -Dhudson.build=true flexmojos:test-run on a command line (windows). However, this still makes the flashplayer pop up. Can someone help me? Thanks in advance!! BB Peter -- You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos?hl=en?hl=en http://flexmojos.sonatype.org/
