Weird thing - I switched to Maven 2.2.1 and after running this, I got
different error (${project.name} had to be replaced with $
{project.artifactId}) but then I got a successful build.Can't explain, switching to 2.2.1 made some more dependencies be downloaded. Still doesn't work with Maven 3 though :/ jarfinder lists this org.apache.maven.artifact.transform.SnapshotTransformation in maven3- alpha-1, maybe there is some version mismatch? On 28 Paź, 20:19, Marvin Froeder <[email protected]> wrote: > I would guess your local repository is corrupted. > > VELO > > On Thu, Oct 28, 2010 at 4:13 PM, pbuda <[email protected]> wrote: > > 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]<flex-mojos%[email protected]> > > For more options, visit this group at > >http://groups.google.com/group/flex-mojos > > >http://flexmojos.sonatype.org/ > > -- 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/
