Ошибка: выполнение плагина не распространяется на ошибку maven конфигурации жизненного цикла

У меня есть гибкий проект, который мне нужно преобразовать в проект maven. Я использую m2e для Eclipse, и внизу этого поста находится созданный мной файл POM.xml.

Моя проблема в том, что я не могу запустить mvn clean install на этом POM. В Eclipse есть ошибка, выделяющая первую строку «plugin», в которой говорится:

-Plugin execution not covered by lifecycle configuration:
 org.sonatype.flexmojos:flexmojos-maven-plugin:3.7.1:test-compile 
 (execution: default-test-compile, phase: test-compile)  

и

-Plugin execution not covered by lifecycle configuration:
org.sonatype.flexmojos:flexmojos-maven-plugin:3.7.1:compile-swf 
(execution: default-compile-swf, phase: compile)

Кроме того, если я запускаю mvn clean install, я получаю другую ошибку:

Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:
3.7.1:compile-swf (default-compile-swf) on project flex: Failure to find
com.adobe.flex.framework:framework:rb.swc:en_US:3.2.0.3958 in
nexusserver/nexus/content/groups/public was cached in the local repository, 
resolution  will not be reattempted until the update interval of nexus has 
elapsed or updates are forced

Я смотрю на сервер nexus и вижу:

-com\adobe\flex\framework\framework\3.2.0.3958

Внутри куча зипов и прочего, и файл: framework-3.2.0.3958.rb.swc

Так что я не уверен, в чем на самом деле проблема. Я все еще немного начинающий новичок, и я никогда раньше не использовал flex, поэтому я думаю, что на данный момент я просто немного ошеломлен. У кого-нибудь есть идеи, как исправить хотя бы одну из проблем? Спасибо за уделенное время.

edit: Хуже того, файл находится в моем локальном репозитории, поэтому я понятия не имею, почему он его не видит.

--

POM.xml

<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated from the following command: mvn archetype:generate -DarchetypeRepository=http://repository.sonatype.org/content/groups/public 
-DarchetypeGroupId=org.sonatype.flexmojos -DarchetypeArtifactId=flexmojos-archetypes-application 
-DarchetypeVersion=3.7.1 -->
<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.company.ref</groupId>
<artifactId>flex</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>swf</packaging>

<name>flex</name>

<build>
    <plugins>
        <plugin>
            <groupId>org.sonatype.flexmojos</groupId>
            <artifactId>flexmojos-maven-plugin</artifactId>
            <version>3.7.1</version>
            <extensions>true</extensions>
            <configuration>
                <locales>
                    <locale>en_US</locale>
                </locales>
            </configuration>
        </plugin>
    </plugins>
    <sourceDirectory>src/main/flex</sourceDirectory>
    <testSourceDirectory>src/test/flex</testSourceDirectory>
    <pluginManagement>
        <plugins>
            <!--This plugin's configuration is used to store Eclipse m2e settings 
                only. It has no influence on the Maven build itself. -->
            <plugin>
                <groupId>org.eclipse.m2e</groupId>
                <artifactId>lifecycle-mapping</artifactId>
                <version>1.0.0</version>
                <configuration>
                    <lifecycleMappingMetadata>
                        <pluginExecutions>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>org.codehaus.mojo</groupId>
                                    <artifactId>aspectj-maven-plugin</artifactId>
                                    <versionRange>[1.0,)</versionRange>
                                    <goals>
                                        <goal>test-compile</goal>
                                        <goal>compile</goal>
                                    </goals>
                                </pluginExecutionFilter>
                                <action>
                                    <execute />
                                </action>
                            </pluginExecution>
                        </pluginExecutions>
                    </lifecycleMappingMetadata>
                </configuration>
            </plugin>
        </plugins>
    </pluginManagement>
</build>

<dependencies>
    <dependency>
        <groupId>com.adobe.flex.framework</groupId>
        <artifactId>flex-framework</artifactId>
        <version>3.2.0.3958</version>
        <type>pom</type>
    </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>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-resources-plugin</artifactId>
                        <version>2.4</version>
                    </plugin>
                </plugins>
            </pluginManagement>
        </build>
    </profile>
</profiles>

This is the full error I get:

[INFO]   Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file
[WARNING] Source file was not defined, flexmojos will guess one.
[WARNING] Not defined if locales should be merged or not
[WARNING] Unable to find license.jar on classpath. Check wiki for instructions about how to add it:
URL
Downloading: nexusURL/nexus/content/groups/public/com/adobe/flex/framework/framework/3.2.0.3958/framework-3.2.0.3958-en_US.rb.swc
[INFO] Unable to find resource 'com.adobe.flex.framework:framework:rb.swc:en_US:3.2.0.3958' in repository central (central)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=com.adobe.flex.framework -DartifactId=framework -Dversion=3.2.0.3958 -Dclassifier=en_US -Dpackaging=rb.swc -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.adobe.flex.framework -DartifactId=framework -Dversion=3.2.0.3958 -Dclassifier=en_US -Dpackaging=rb.swc -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]


com.adobe.flex.framework:framework:rb.swc:3.2.0.3958

from the specified remote repositories: central

Обновление 3: это мой новый 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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.company.table</groupId>
<artifactId>flex</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>swf</packaging>

<name>flex</name>

<repositories>
    <repository>
        <id>flex-mojos-repository</id>
        <url>https://repository.sonatype.org/content/groups/flexgroup</url>
    </repository>
</repositories>

<pluginRepositories>
    <pluginRepository>
        <id>flex-mojos-repository</id>
        <url>https://repository.sonatype.org/content/groups/flexgroup</url>
    </pluginRepository>
</pluginRepositories>

<build>
    <plugins>
        <plugin>
            <groupId>org.sonatype.flexmojos</groupId>
            <artifactId>flexmojos-maven-plugin</artifactId>
            <version>3.7.1</version>
            <extensions>true</extensions>               
        </plugin>
    </plugins>
    <sourceDirectory>src/main/flex</sourceDirectory>
    <testSourceDirectory>src/test/flex</testSourceDirectory>
</build>

<dependencies>
    <dependency>
        <groupId>com.adobe.flex.framework</groupId>
        <artifactId>flex-framework</artifactId>
        <version>3.2.0.3958</version>
        <type>pom</type>
    </dependency>
</dependencies> 


person Ken Harris    schedule 05.04.2013    source источник
comment
Это иногда случается. Попробуйте удалить всю папку из локального репозитория (что заставит maven повторно загрузить ее) и посмотрите, поможет ли это.   -  person Andrew Logvinov    schedule 06.04.2013
comment
Извините, Эндрю, что не ответил вам раньше, но я только что попробовал и все же столкнулся с проблемой. Я надеялся.   -  person Ken Harris    schedule 08.04.2013
comment
Я просто очень смущен тем, почему он ищет 'com.adobe.flex.framework:framework:rb.swc:en_US:3.2.0.3958', а затем ниже в нем даже нет части en_US.   -  person Ken Harris    schedule 08.04.2013
comment
Извините за бомбардировку дополнительными комментариями, но когда я запускаю mvn dependency:tree, он работает успешно, а mvn clean install - нет.   -  person Ken Harris    schedule 08.04.2013
comment
Может быть, он ищет en_US, потому что вы указали эту локаль? Взгляните на этот вопрос, возможно, это поможет.   -  person Andrew Logvinov    schedule 08.04.2013
comment
@AndrewLogvinov Я обновил исходный вопрос своим новым POM. У меня нет ничего с en_US в локали, и он все еще отображается, когда я делаю mvn clean install. Я также пробовал https и http, все еще без костей. Я использую прокси-сервер, но мне удалось успешно загрузить другие пакеты.   -  person Ken Harris    schedule 08.04.2013
comment
Возможный дубликат Почему Eclipse Luna Maven проекты выдают ошибки для maven-compiler-plugin?   -  person Paul Sweatte    schedule 21.06.2017
comment
На самом деле это не дубликат @PaulSweatte, поскольку мой вопрос был задан 4 года назад, а эта ссылка была задана 2 года назад.   -  person Ken Harris    schedule 27.06.2017