Hi, I'm new to Flex mojos with AIR, though been working with Flex for a year and a half now.
I'm trying to create my first maven built AIR app but I struggle... I'm using Flex 3.5, Flex Mojos 3.8. Here's pom: <?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> <artifactId>hbmt</artifactId> <groupId>li.buda</groupId> <version>0.1.0-SNAPSHOT</version> </parent> <groupId>li.buda.hbmt</groupId> <artifactId>client</artifactId> <packaging>swf</packaging> <build> <sourceDirectory>src/main/flex</sourceDirectory> <testSourceDirectory>src/test/flex</testSourceDirectory> <plugins> <plugin> <groupId>org.sonatype.flexmojos</groupId> <artifactId>flexmojos-maven-plugin</artifactId> <version>${flexmojos.version}</version> <extensions>true</extensions> <configuration> <configurationReport>true</configurationReport> <sourceFile>${project.name}.mxml</sourceFile> <descriptorTemplate>${basedir}/src/main/flex/$ {project.name}-app.xml</descriptorTemplate> <keystore>${basedir}/src/main/resources/cert.p12</ keystore> <storepass>MY_PASSWORD</storepass> </configuration> <dependencies> <dependency> <groupId>com.adobe.flex</groupId> <artifactId>compiler</artifactId> <version>${flex.version}</version> <type>pom</type> </dependency> <!-- Not available in any public repo. Manually download flex sdk and install adt in local repository. --> <dependency> <groupId>com.adobe.flex.compiler</groupId> <artifactId>adt</artifactId> <version>${flex.version}</version> </dependency> </dependencies> <executions> <execution> <goals> <goal>sign-air</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>air-framework</artifactId> <version>${flex.version}</version> <type>pom</type> </dependency> <dependency> <groupId>com.adobe.flexunit</groupId> <artifactId>flexunit</artifactId> <version>4.1.0-RC1</version> <type>swc</type> <scope>test</scope> </dependency> </dependencies> </project> After mvn clean install, I get the following error [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven- plugin:3.8:sign-air (default) on project client: Execution default of goal org.sonatype.flexmojos:flexmojos-maven-plugin:3.8:sign-air failed: A required class was missing while executing org.sonatype.flexmojos:flexmojos-maven-plugin:3.8:sign-air: org/apache/ maven/artifact/transform/SnapshotTransformation I"m using Maven 3. Switching to Flex Mojos 4.0-beta-2 produced similar result, although it was ADTPackager class that was missing. Am I doing something wrong, I really can't see any problems with regard to samples I've seen on the net... -- 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 http://flexmojos.sonatype.org/
