Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6206105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:23:28+00:00 2026-05-24T05:23:28+00:00

I am new to Maven. I am trying to compile Flex using maven plug-in

  • 0

I am new to Maven. I am trying to compile Flex using maven plug-in flexmojos. I am having hard time to get maven download files from public repository. Currently we do not have any company intranet repository. Maven always fails to download required files (eg: flex-framework) from repository. Initially I did not configure the proxy, but now I did. After that maven was able to communicate to the repositories but unable to download all the files. I did try deleting the ‘repository’ directory couple of times, and also tried re-installing maven software.

Because, it could not download the files I thought may be I should try copying the files manually into the default repository location (/.m2/repository) and did that. But still I get an error as below.

[ERROR] Failed to execute goal on project nuxi-nms-flex-stats: Could not resolve
dependencies for project nuxi:nuxi-nms-flex-stats :swf:1.0.0: The following artifacts 
could not be resolved: com.adobe.flex.framework:flex-framework:pom:4.1.0.16248,
com.adobe.flex .framework:playerglobal:0.swc:2:4.1.0.16248: Could not find artifact
com.adobe.flex.framework:flex-framework:pom:4.1.0.16248 in central 
http://search.maven.org/) -> [Help 1]

This error message is really frustrating me. I have also tried building a sample app from sonatype examples on how to build a Flex app. Even that fails with a similar message (this time it complained unable to download flex compiler)

<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
    <groupId>nuxi</groupId>
    <artifactId>nuxi-nms-flex</artifactId>
    <version>1.0.0</version>
</parent>
<groupId>nuxi</groupId>
<artifactId>nuxi-nms-flex-stats</artifactId>
<version>1.0.0</version>
<packaging>swf</packaging>
<name>nuxi nms flex stats</name>


<repositories>
    <repository>
        <id>central</id>
        <name>Central Maven Repository</name>
        <url>http://search.maven.org/</url>
        <layout>default</layout>
    </repository>
</repositories>

<pluginRepositories>
    <pluginRepository>
        <id>org.sonatype.flexmojos</id>
        <name>Flex mojos plugin for maven</name>
        <url>https://repository.sonatype.org/content/groups/flexgroup</url>
        <releases>
            <enabled>true</enabled>
            <updatePolicy>never</updatePolicy>
            <checksumPolicy>warn</checksumPolicy>
        </releases>
        <snapshots>
            <enabled>true</enabled>
            <updatePolicy>never</updatePolicy>
            <checksumPolicy>fail</checksumPolicy>
        </snapshots>
    </pluginRepository>
    <pluginRepository>
        <id>com.adobe.flex</id>
        <name>Flex compiler</name>
        <url>https://repository.sonatype.org/content/groups/flexgroup</url>
        <releases>
            <enabled>true</enabled>
            <updatePolicy>never</updatePolicy>
            <checksumPolicy>warn</checksumPolicy>
        </releases>
        <snapshots>
            <enabled>false</enabled>
            <updatePolicy>never</updatePolicy>
            <checksumPolicy>fail</checksumPolicy>
        </snapshots>
    </pluginRepository>
    <pluginRepository>
        <id>com.adobe.flex.framework</id>
        <name>Flex Framework</name>
        <url>https://repository.sonatype.org/content/groups/flexgroup</url>
        <releases>
            <enabled>true</enabled>
            <updatePolicy>never</updatePolicy>
            <checksumPolicy>warn</checksumPolicy>
        </releases>
        <snapshots>
            <enabled>false</enabled>
            <updatePolicy>never</updatePolicy>
            <checksumPolicy>fail</checksumPolicy>
        </snapshots>
    </pluginRepository>
</pluginRepositories>

<build>
    <sourceDirectory>src/main/flex</sourceDirectory>
    <testSourceDirectory>src/test/flex</testSourceDirectory>
    <plugins>
        <plugin>
            <groupId>org.sonatype.flexmojos</groupId>
            <artifactId>flexmojos-maven-plugin</artifactId>
            <version>4.0-SNAPSHOT</version>
            <extensions>true</extensions>
            <configuration>
                <sourceFile>statsapp.mxml</sourceFile>
                <htmlName>SampleSWF</htmlName>
            </configuration>
            <dependencies>
                <dependency>
                    <groupId>com.adobe.flex</groupId>
                    <artifactId>compiler</artifactId>
                    <!--
                    <version>4.0.0.10485</version>
                    -->
                    <version>4.1.0.16248</version>
                    <type>pom</type>
                </dependency>
            </dependencies>
        </plugin>
    </plugins>
    <finalName>statsapp</finalName>
</build>
<dependencies>
    <dependency>
        <groupId>com.adobe.flex.framework</groupId>
        <artifactId>flex-framework</artifactId>
        <!--
        <version>4.0.0.10485</version>
        -->
        <version>4.1.0.16248</version>
        <type>pom</type>
        <exclusions>
           <exclusion>
               <groupId>com.adobe.flex.framework</groupId>
               <artifactId>playerglobal</artifactId>
           </exclusion>
       </exclusions>
    </dependency>
    <dependency>
       <groupId>com.adobe.flex.framework</groupId>
       <artifactId>playerglobal</artifactId>
       <version>4.1.0.16248</version>
       <classifier>2</classifier>
       <type>0.swc</type>
   </dependency>
</dependencies>

My question is, am I doing anything wrong? What could be the issue here? Any help in this regard is appreciated…. Thanks…

Sorry for such a lengthy explanation…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T05:23:29+00:00Added an answer on May 24, 2026 at 5:23 am

    This could be easily fixed by using maven archetypes instead of building it manually. As a good starting point, do this in the command line to create you folder structure & initial pom:

    mvn archetype:generate -DarchetypeRepository=http://repository.sonatype.org/content/groups/public -DarchetypeGroupId=org.sonatype.flexmojos -DarchetypeArtifactId=flexmojos-archetypes-application -DarchetypeVersion=3.5.0
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to create application from scratch. In new maven project i add a
I'm trying to start a new struts 2 project using maven (struts2 blank archetype)
I am using Maven 2.2.1. and am new to Maven. I am trying to
I'm trying to refactor an old web service project using new structure (with Maven)
I've installed Maven from the Marketplace , and I'm trying to create a new
I'm new to maven and I am trying to get eclipse to recognise the
im trying to get familiar with the new JBoss 6 and having a really
I'm trying to run a series of selenium tests using maven and I get
Quite new to maven here so let me explain first what I am trying
I am new to maven and I am trying to follow this example but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.