eclipse - Error: Plugin execution not covered by lifecycle configuration maven error -
i have flex project need convert maven project. using m2e eclipse , @ bottom of post pom.xml file have created.
my issue cannot seem run mvn clean install
on pom. in eclipse there error highlighting first "plugin" line says:
-plugin execution not covered lifecycle configuration: org.sonatype.flexmojos:flexmojos-maven-plugin:3.7.1:test-compile (execution: default-test-compile, phase: test-compile)
and
-plugin execution not covered lifecycle configuration: org.sonatype.flexmojos:flexmojos-maven-plugin:3.7.1:compile-swf (execution: default-compile-swf, phase: compile)
beyond that, if run mvn clean install
different error:
failed execute goal org.sonatype.flexmojos:flexmojos-maven-plugin: 3.7.1:compile-swf (default-compile-swf) on project flex: failure find com.adobe.flex.framework:framework:rb.swc:en_us:3.2.0.3958 in nexusserver/nexus/content/groups/public cached in local repository, resolution not reattempted until update interval of nexus has elapsed or updates forced
i looking @ nexus server , see:
-com\adobe\flex\framework\framework\3.2.0.3958
inside there bunch of zips , stuff, , file: framework-3.2.0.3958.rb.swc
so i'm not sure problem is. i'm still bit of maven novice , i've never used flex before think little overwhelmed @ moment. have ideas how fix @ least 1 of issues? thank time.
edit: worse, file located in local repository have no idea why isn't seeing it.
--
pom.xml
<?xml version="1.0" encoding="utf-8"?> <!-- generated 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 used store eclipse m2e settings only. has no influence on 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 full error get:
[info] apache license - version 2.0 (no warranty) - see copyright file [warning] source file not defined, flexmojos guess one. [warning] not defined if locales should merged or not [warning] unable find license.jar on classpath. check wiki instructions how 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 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 download artifact repository try downloading file manually project website. then, install using 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 host own repository can deploy 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 specified remote repositories: central
update 3:this new 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>
Comments
Post a Comment