I found the issue. No need to switch over to amxmlc. In order to build it
successfully, you need to include the mobilecomponents swc:

    <dependency>
      <groupId>com.adobe.flex.framework</groupId>
      <artifactId>mobilecomponents</artifactId>
      <version>${flex.sdk.version}</version>
      <type>swc</type>
    </dependency>

and also the mobile theme swc ( which I had to install it in my local repo
manually ).

<dependency>
            <groupId>com.adobe.flex.framework</groupId>
            <artifactId>mobile</artifactId>
            <version>${flex.sdk.version}</version>
            <type>swc</type>
            <scope>theme</scope>
        </dependency>

What I actually did, was to compile a Mobile App from Flash Builder, then
taking out libraries swc until I got compile time errors, so that I can keep
the minimum required swcs that I should include and build app successfully.

I've attached the pom.xml file.

Cheers,
Dragos Dascalita Haut




On Tue, Jul 12, 2011 at 2:34 PM, Marvin Froeder <[email protected]> wrote:

>
> I think that may be an issue with the dependency linkage. Specifically I
>> don't see the "mobile" theme on the mavenized SDK.
>>
>
> Last time I checked it was not part of flex SDK, that is why was not
> included.
>
>
> VELO
>
>  --
> 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/
>

-- 
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/
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2008 Marvin Herman Froeder Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless 
  required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions 
  and limitations under the License. -->
<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.marvinformatics.flexmojos</groupId>
  <artifactId>mobile</artifactId>
  <version>1.0-SNAPSHOT</version>

  <packaging>air</packaging>

  <properties>
    <flex.sdk.version>4.5.0.20967</flex.sdk.version>
	<!--4.5.0.20834, 4.5.0.20967 -->
  </properties>

  <build>
    <sourceDirectory>src/main/flex</sourceDirectory>
    <testSourceDirectory>src/test/flex</testSourceDirectory>
    <plugins>
      <plugin>
        <groupId>com.marvinformatics.flexmojos</groupId>
        <artifactId>fm-enterprise</artifactId>
        <version>0.2</version>
        <extensions>true</extensions>
        <configuration>
          <storepass>flexmojos</storepass>

		    <targetPlayer>10.2</targetPlayer>
			<swfVersion>11</swfVersion>
                    <configurationReport>true</configurationReport>
                    <debug>true</debug>

	 	    <localesCompiled>
                        <locale>en_US</locale>
                    </localesCompiled>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>com.adobe.flex</groupId>
            <artifactId>compiler</artifactId>
            <version>${flex.sdk.version}</version>
            <type>pom</type>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
  </build>

  <profiles>
    <profile>
      <id>win</id>
      <activation>
        <os>
          <family>windows</family>
        </os>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>com.marvinformatics.flexmojos</groupId>
            <artifactId>fm-enterprise</artifactId>
            <configuration>
              <packages>
                <pack>air</pack>
                <pack>apk</pack>
                <!-- <pack>bar</pack> -->
                <pack>exe</pack>
                <pack>ipa</pack>
              </packages>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>linux</id>
      <activation>
        <os>
          <family>unix</family>
        </os>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>com.marvinformatics.flexmojos</groupId>
            <artifactId>fm-enterprise</artifactId>
            <configuration>
              <packages>
                <pack>air</pack>
                <pack>apk</pack>
                <!-- <pack>bar</pack> -->
                <pack>deb</pack>
                <pack>rpm</pack>
              </packages>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>mac</id>
      <activation>
        <os>
          <name>mac os x</name>
        </os>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>com.marvinformatics.flexmojos</groupId>
            <artifactId>fm-enterprise</artifactId>
            <configuration>
              <packages>
                <pack>air</pack>
                <pack>apk</pack>
                <!-- <pack>bar</pack> -->
                <!-- <pack>dmg</pack> -->
                <!-- <pack>ipa</pack> -->
              </packages>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

  <dependencies>
    <dependency>
      <groupId>com.adobe.flex.framework</groupId>
      <artifactId>airglobal</artifactId>
      <version>${flex.sdk.version}</version>
      <type>swc</type>
    </dependency>

	<dependency>
            <groupId>com.adobe.flex.framework</groupId>
            <artifactId>framework</artifactId>
            <version>${flex.sdk.version}</version>
            <type>swc</type>
        </dependency>

    <dependency>
      <groupId>com.adobe.flex.framework</groupId>
      <artifactId>spark</artifactId>
      <version>${flex.sdk.version}</version>
      <type>swc</type>
    </dependency>

    <dependency>
      <groupId>com.adobe.flex.framework</groupId>
      <artifactId>textLayout</artifactId>
      <version>${flex.sdk.version}</version>
      <type>swc</type>
    </dependency>

    <dependency>
      <groupId>com.adobe.flex.framework</groupId>
      <artifactId>mobilecomponents</artifactId>
      <version>${flex.sdk.version}</version>
      <type>swc</type>
	<scope>internal</scope>
    </dependency>



    <dependency>
      <groupId>com.adobe.flex.framework</groupId>
      <artifactId>air-framework</artifactId>
      <version>${flex.sdk.version}</version>
      <type>pom</type>
    </dependency>


    <dependency>
      <groupId>com.adobe.flex.framework</groupId>
      <artifactId>spark</artifactId>
      <version>${flex.sdk.version}</version>
      <type>swc</type>
	<scope>theme</scope>
    </dependency>

    <dependency>
      <groupId>com.adobe.flexunit</groupId>
      <artifactId>flexunit</artifactId>
      <version>4.0-rc-1</version>
      <type>swc</type>
      <scope>test</scope>
    </dependency>

	<dependency>
            <groupId>com.adobe.flex.framework</groupId>
            <artifactId>mobile</artifactId>
            <version>${flex.sdk.version}</version>
            <type>swc</type>
            <scope>theme</scope>
        </dependency>

    <dependency>
      <groupId>com.adobe.flex.framework</groupId>
      <artifactId>spark</artifactId>
      <version>${flex.sdk.version}</version>
      <type>swc</type>
      <scope>theme</scope>
    </dependency>
	
  </dependencies>

  <repositories>
    <repository>
      <id>fme</id>
      <url>https://s3.amazonaws.com/flexmojos-extras/release/</url>
    </repository>
    <repository>
      <id>fme-snapshot</id>
      <url>https://s3.amazonaws.com/flexmojos-extras/snapshot/</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
    <repository>
      <id>flexmojos</id>
      <url>http://repository.sonatype.org/content/groups/flexgroup/</url>
    </repository>
  </repositories>

  <pluginRepositories>
    <pluginRepository>
      <id>fme</id>
      <url>https://s3.amazonaws.com/flexmojos-extras/release/</url>
    </pluginRepository>
    <pluginRepository>
      <id>fme-snapshot</id>
      <url>https://s3.amazonaws.com/flexmojos-extras/snapshot/</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </pluginRepository>
    <pluginRepository>
      <id>flexmojos</id>
      <url>http://repository.sonatype.org/content/groups/flexgroup/</url>
    </pluginRepository>
  </pluginRepositories>

</project>

Reply via email to