Thanks for the quick response. It helped a lot.
I found the required version in the new repository.
But even though I have changed the versions of both compiler and flex-
framework in my pom.xml to 4.0.0.13875, I'm still getting a version
mismatch error. I have checked all my pom.xml files. Any ideas?

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Flex compiler and flex framework versions doesn't match.
Compiler: '3.2.0.3958' - Framework: '4.0.0.13875'.
 You can use 'ignoreVersionIssues' to disable this check.  Please
refer to Flexmojos maven doc.
If you prefer fixing it instead of ignoring, take a look at:
https://docs.sonatype.org/display/FLEXMOJOS/How+to+set+Flex+SDK+version

---------------------------------------------------

 <dependency>
            <groupId>com.adobe.flex.framework</groupId>
            <artifactId>flex-framework</artifactId>
            <version>4.0.0.13875</version>
            <type>pom</type>
        </dependency>
        <dependency>
            <groupId>com.adobe.flex</groupId>
            <artifactId>compiler</artifactId>
            <version>4.0.0.13875</version>
            <type>pom</type>
        </dependency>

---------------------------------------------------

On Jun 24, 9:56 pm, Bryan Turner <[email protected]> wrote:
> You might try modifying your Maven settings to 
> usehttp://repository.sonatype.org/content/groups/flexgroup/, which is actually
> the FlexMojos repository, as a repository instead of or in addition 
> tohttp://repository.sonatype.org/content/groups/public/, which is the main
> Sonatype repository and is not the FlexMojos repository. The former
> has com.adobe.flex:compiler:pom:4.0.0.13555 available; the latter does not.
>
> <repository>
>     <id>flexmojos-repository</id>
>     
> <url>http://repository.sonatype.org/content/groups/flexgroup/<http://repository.sonatype.org/content/groups/public/>
> </url>
> </repository>
>
> Additionally, in your pom.xml, you are depending on two different versions
> of Granite (1.2.0 and 2.0.0.GA). This is likely to cause you pain down the
> road. The org.graniteds:granite-core:2.0.0.GA dependency you have is
> actually a Java dependency, not a Flex dependency 
> (see:http://download.java.net/maven/2/org/graniteds/granite-core/2.0.0.GA/).
> org.graniteds:granite-swc:2.0.0.GA is probably what you want. You probably
> do not need the granite-gas depenency (which is another Java 
> dependency:http://download.java.net/maven/2/org/graniteds/granite-gas/1.2.0/).
>
> Hope this helps,
> Bryan Turner
>
>
>
> On Thu, Jun 24, 2010 at 5:07 AM, Nabeel Ahmed <[email protected]> wrote:
> > I am trying to migrate my maven project from flex 3 to flex 4. I have
> > tried a lot of configurations and SDK versions such as..
>
> > <dependency>
> >            <groupId>com.adobe.flex.framework</groupId>
> >            <artifactId>flex-framework</artifactId>
> >            <version>4.0.0.13555</version>
> >            <type>pom</type>
> >        </dependency>
>
> > My IDE recognizes this version but somehow I cannot download the
> > required version. After compiling my pom.xml I get this message
>
> > [INFO] Scanning for projects...
> > Downloading:
> >http://repository.sonatype.org/content/groups/public/com/adobe/flex/c...
> > [INFO] Unable to find resource 'com.adobe.flex:compiler:pom:
> > 4.0.0.13555' in repository flex-mojos-repository (http://
> > repository.sonatype.org/content/groups/public)
>
> > Missing:
> > ----------
> > 1) com.adobe.flex:compiler:pom:4.0.0.13555
> >  Path to dependency:
> >        1) org.sonatype.flexmojos:flexmojos-maven-plugin:maven-plugin:3.6.1
> >        2) com.adobe.flex:compiler:pom:4.0.0.13555
>
> > Here is my pom.xml code for reference
>
> > <?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>
>
> >    <artifactId>flex-client</artifactId>
> >    <version>0.1</version>
> >    <packaging>swf</packaging>
>
> >    <parent>
> >        <groupId>com.loxvo</groupId>
> >        <artifactId>remix</artifactId>
> >        <version>0.1</version>
> >    </parent>
>
> >    <name>flex-clients Flex</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.6.1</version>
> >                                <extensions>true</extensions>
> >                                <configuration>
> >                                        <targetPlayer>10.0.0</targetPlayer>
> >                                        <locales>
> >                                                <locale>en_US</locale>
> >                                        </locales>
> >                                        <namespaces>
> >                                                <namespace>
>
> >  <uri>library:adobe/flex/gumbo</uri>
>
> >  <manifest>gumbo-manifest.xml</manifest>
> >                                                </namespace>
> >                                                <namespace>
>
> >  <uri>library:adobe/flex/halo</uri>
>
> >  <manifest>mxml-manifest.xml</manifest>
> >                                                </namespace>
> >                                                <namespace>
> >                                                        <uri>
> >http://ns.adobe.com/mxml/2009</uri>
>
> >  <manifest>mxml-2009-manifest.xml</manifest>
> >                                                </namespace>
> >                                                <namespace>
> >                                                        <uri>
> >http://www.adobe.com/2006/mxml</uri>
>
> >  <manifest>mxml-manifest.xml</manifest>
> >                                                </namespace>
> >                                                <namespace>
> >                                                        <uri>
> >http://ns.adobe.com/fxg/2008</uri>
>
> >  <manifest>fxg-manifest.xml</manifest>
> >                                                </namespace>
> >                                        </namespaces>
> >                                </configuration>
> >                                <dependencies>
> >                                        <dependency>
>
> >  <groupId>com.adobe.flex</groupId>
>
> >  <artifactId>compiler</artifactId>
>
> >  <version>4.0.0.13555</version>
> >                                                <type>pom</type>
> >                                        </dependency>
> >                                </dependencies>
> >                        </plugin>
> >        </plugins>
> >    </build>
>
> >    <repositories>
> >        <repository>
> >            <id>flexmojos-repository</id>
> >            <url>http://repository.sonatype.org/content/groups/public/
> > </url>
> >        </repository>
> >        <repository>
> >            <id>Java.net</id>
> >            <url>http://download.java.net/maven/2/</url>
> >        </repository>
> >        <repository>
> >            <id>Cairngorm</id>
> >            <url>http://projects.yoolab.org/maven/content/repositories/
> > releases/</url>
> >        </repository>
> >    </repositories>
> >    <pluginRepositories>
>
> >        <!-- ... -->
>
> >        <pluginRepository>
> >            <id>flex-mojos-repository</id>
> >            <url>http://repository.sonatype.org/content/groups/public</
> > url>
> >            <releases>
> >                <enabled>true</enabled>
> >            </releases>
> >            <snapshots>
> >                <enabled>true</enabled>
> >            </snapshots>
> >        </pluginRepository>
>
> >        <!-- ... -->
>
> >    </pluginRepositories>
>
> >    <dependencies>
> >        <dependency>
> >            <groupId>com.adobe.flex.framework</groupId>
> >            <artifactId>flex-framework</artifactId>
> >            <version>4.0.0.13555</version>
> >            <type>pom</type>
> >        </dependency>
> >        <dependency>
> >            <groupId>com.adobe.cairngorm</groupId>
> >            <artifactId>cairngorm</artifactId>
> >            <version>2.2.1</version>
> >            <type>swc</type>
> >        </dependency>
> >        <dependency>
> >            <groupId>com.adobe.flexunit</groupId>
> >            <artifactId>flexunit</artifactId>
> >            <version>0.85</version>
> >            <type>swc</type>
> >            <scope>test</scope>
> >        </dependency>
> >        <dependency>
> >            <groupId>org.graniteds</groupId>
> >            <artifactId>granite-core-swc</artifactId>
> >            <version>1.2.0</version>
> >            <type>swc</type>
> >        </dependency>
> >        <dependency>
> >            <groupId>org.graniteds</groupId>
> >            <artifactId>granite-essentials-swc</artifactId>
> >            <version>2.0.0.GA</version>
> >            <type>swc</type>
> >        </dependency>
> >        <dependency>
> >            <groupId>org.graniteds</groupId>
> >            <artifactId>granite-core</artifactId>
> >            <version>2.0.0.GA</version>
> >        </dependency>
> >        <dependency>
> >            <groupId>org.graniteds</groupId>
> >            <artifactId>granite-gas</artifactId>
> >            <version>1.2.0</version>
> >        </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>
>
> ...
>
> read more »

-- 
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/

Reply via email to