我正在使用Eclipse 3.7 Indigo和Maven M2E Plugin 1.0.100.
使用JBoss 7.x JavaEE 6 EAR原型,EAR的pom给了我这个错误:
插件执行未包括生命周期配置:org.apache.maven.plugins:行家入耳式插件:2.6:生成应用程序的XML(执行:默认生成的应用程序的XML,相:生成资源)
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<version>2.6</version>
<configuration>
<!-- Tell Maven we are using Java EE 6 -->
<version>6</version>
<!-- Use Java EE ear libraries as needed. Java EE ear libraries
are in easy way to package any libraries needed in the ear, and automatically
have any modules (EJB-JARs and WARs) use them -->
<defaultLibBundleDir>lib</defaultLibBundleDir>
<modules></modules>
</configuration>
<plugin>
Run Code Online (Sandbox Code Playgroud) 我在Win XP,Maven 3.0.3和GWT 2.4上使用Eclipse Indigo.我用.创建了一个Maven-GWT项目Mavne gwt archetype.然后我打开Eclipse,去了File -> Import,选择Existing Maven Projects了,为我的GWT-Maven项目选择了pom,然后得到了这个对话框:

错误是
No marketplace entries found to handle gwt-maven-plugin:2.4.0:generateAsync in Eclipse. Please see Help for more information.
No marketplace entries found to handle gwt-maven-plugin:2.4.0:i18n in Eclipse. Please see Help for more information.
No marketplace entries found to handle maven-war-plugin:2.1.1:exploded in Eclipse. Please see Help for more information.
Run Code Online (Sandbox Code Playgroud)
有谁知道如何解决这些错误?当我实际导入我的项目并尝试使用它时,它正在肆虐. - 戴夫
我在pluginManagement标签中的父pom.xml中有jaxws-maven-plugin,我指的是这个插件在pom中.
mvn clean install运行正常.但是,eclipse抱怨"生命周期配置未涵盖插件执行:org.codehaus.mojo:jaxws-maven-plugin:1.12:wsimport(执行:FirstWsdl,阶段:生成源)".
你能建议如何在eclipse中避免这个错误吗?
父母pom
<pluginManagement>
<plugins>
...
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>1.12</version>
<executions>
<execution>
<id>FirstWsdl</id>
<goals>
<goal>wsimport</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<wsdlLocation>location/file.wsdl</wsdlLocation>
<wsdlFiles>
<wsdlFile>file.wsdl</wsdlFile>
</wsdlFiles>
<packageName>com.xxx.package</packageName>
</configuration>
</execution>
</executions>
<configuration>
<sourceDestDir>${basedir}/generated</sourceDestDir>
<verbose>true</verbose>
<extension>true</extension>
<keep>true</keep>
<vmArgs>
<vmArg .../>
</vmArgs>
</configuration>
</plugin>
...
</plugins>
</pluginManagement>
Run Code Online (Sandbox Code Playgroud)
孩子pom
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
</plugin>
</plugins>
Run Code Online (Sandbox Code Playgroud)
我查看了这个问题,并回答如何解决Spring Data Maven Builds的"生命周期配置未涵盖的插件执行",但是,我应该在父和子pom中使用pluginManagement来避免此错误吗?
我试图从wsdl文件生成源代码,但我在我的pom.xml上遇到错误,我认为这可能是我的问题?下面是我从我的pom和我的pom文件中得到的错误.我也无法用"mvn clean install"构建项目.我似乎只是因为没有真正原因而得到错误.
生成标记的错误:
Execution default of goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.12.3:generate failed: A required class was missing while executing org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.12.3:generate: com/sun/codemodel/CodeWriter
-----------------------------------------------------
realm = plugin>org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.12.3-715230752
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = file:/C:/Users/Windows/.m2/repository/org/jvnet/jaxb2/maven2/maven-jaxb2-plugin/0.12.3/maven-jaxb2-plugin-0.12.3.jar
urls[1] = file:/C:/Users/Windows/.m2/repository/org/jvnet/jaxb2/maven2/maven-jaxb2-plugin-core/0.12.3/maven-jaxb2-plugin-core-0.12.3.jar
urls[2] = file:/C:/Users/Windows/.m2/repository/org/slf4j/slf4j-api/1.7.7/slf4j-api-1.7.7.jar
urls[3] = file:/C:/Users/Windows/.m2/repository/org/apache/commons/commons-lang3/3.2.1/commons-lang3-3.2.1.jar
urls[4] = file:/C:/Users/Windows/.m2/repository/com/sun/org/apache/xml/internal/resolver/20050927/resolver-20050927.jar
urls[5] = file:/C:/Users/Windows/.m2/repository/junit/junit/4.8.1/junit-4.8.1.jar
urls[6] = file:/C:/Users/Windows/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.jar
urls[7] = file:/C:/Users/Windows/.m2/repository/org/jvnet/jaxb2/maven2/maven-jaxb22-plugin/0.12.3/maven-jaxb22-plugin-0.12.3.jar
urls[8] = file:/C:/Users/Windows/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.2.11/jaxb-runtime-2.2.11.jar
urls[9] = file:/C:/Users/Windows/.m2/repository/org/glassfish/jaxb/jaxb-xjc/2.2.11/jaxb-xjc-2.2.11.jar
urls[10] = file:/C:/Users/Windows/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.2/maven-plugin-annotations-3.2.jar
Number of foreign imports: 5
import: Entry[import org.sonatype.plexus.build.incremental from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.util.Scanner from realm ClassRealm[plexus.core, parent: null]] …Run Code Online (Sandbox Code Playgroud) 我一直在努力让这个插件与maven-war-plugin很好地玩了几个小时,现在我觉得是时候寻求帮助了.我的插件定义如下:
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<version>1.3.0</version>
<executions>
<execution>
<id>compressyui</id>
<phase>process-resources</phase>
<goals>
<goal>compress</goal>
</goals>
<configuration>
<nosuffix>true</nosuffix>
<warSourceDirectory>${basedir}/WebContent</warSourceDirectory>
<jswarn>false</jswarn>
</configuration>
</execution>
</executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)
如果我删除nosuffix = true然后我可以看到压缩/缩小的-min.js文件按预期进入战争,但是这个标志被maven-war-plugin(我假设)覆盖了构建war文件.我真的需要文件名保持不变但是...有没有人知道我需要改变什么才能使用相同的文件名并仍然将缩小版本带入最后的战争?
我正在尝试使用这里提供的maven-warpath-plugin .但是我的pom.xml文件中出现了一个错误:
生命周期配置未涵盖插件执行:org.appfuse.plugins:maven-warpath-plugin:2.1.0:add-classes(执行:默认,阶段:生成源)
我该如何解决这个问题?这是我的插件的pom.xml片段:
<plugin>
<groupId>org.appfuse.plugins</groupId>
<artifactId>maven-warpath-plugin</artifactId>
<version>2.1.0</version>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>add-classes</goal>
</goals>
</execution>
</executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)
Eclipse为我提供了一个"发现新的m2e连接器"的快速提示,以解决此错误.我已经安装了大多数似乎适用的连接器,但错误仍然存在.我有什么想法可以使这项工作?
我在我的Maven Java项目中有标题提到的错误.下面是一个好项目和我的问题项目的比较.

configurator, configurator,...?即使没有错误标记,它看起来也很奇怪.我已阅读线程:如何解决Spring Data Maven Builds的"生命周期配置未涵盖的插件执行".
但它没有提供干净的镜头.它充满了解释,但没有规范的解决方案.
顺便说一句,我对Maven XML 混乱感到非常沮丧,我必须找到一些替代方案.
configurators.好的,我注意到在Installation Details日食中,没有m2e物品.奇怪的是如何在不安装的情况下导入maven项目.无论如何,我从http://www.eclipse.org/m2e/安装了最新的1.6.2 .而上述问题已经消失.但这只是一个解决方案.我还是不知道为什么会这么多configurator......
pom.xml,它不是有效的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.its</groupId>
<artifactId>cloud</artifactId>
<name>MyCloud</name>
<packaging>war</packaging>
<version>1.0.0-BUILD-SNAPSHOT</version>
<properties>
<java-version>1.7</java-version>
<org.springframework-version>4.2.2.RELEASE</org.springframework-version>
<org.aspectj-version>1.6.10</org.aspectj-version>
<org.slf4j-version>1.6.6</org.slf4j-version>
<org.apache.logging.log4j-version>2.4.1</org.apache.logging.log4j-version>
</properties>
<dependencies>
<!-- Spring -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${org.springframework-version}</version>
<exclusions>
<!-- Exclude Commons Logging in favor of SLF4j -->
<exclusion> …Run Code Online (Sandbox Code Playgroud) 最近在我的eclipse android maven项目中出现了这个错误,我不知道为什么.
你能看看我的POM和screenShot,请告诉我哪里出错了.谢谢
这是我的pom
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.blueMonkeyTech.joggerMotivator</groupId>
<artifactId>joggerMotivator</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>apk</packaging>
<name>joggerMotivator</name>
<dependencies>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<version>2.3.3</version>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
Run Code Online (Sandbox Code Playgroud)
我把一个项目导入了eclipse,每个类名都有很多错误,甚至像String这样的类......
我所做的课程中的错误是 Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
在方法内部<Class> cannot be resolved to a type
甚至IOException我得到了IOException cannot be resolved to a type
所以我该怎么做 ?我试着建造,再次清洁没有用
更新:我也得到了描述
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-resources-plugin:2.4.3:resources (execution: default-resources, phase: process-resources) pom.xml /test line 6 Maven Project Build Lifecycle Mapping Problem
Run Code Online (Sandbox Code Playgroud) 我从q4e Helios切换到Indigo m2e插件,我的Maven 2项目不再有效.我有一个ROO生成的Spring MVC项目.
这就是我得到的:
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.0:test-compile (execution: default, phase: process-test-sources)
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.0:compile (execution: default, phase: process-sources)
Run Code Online (Sandbox Code Playgroud)
非常感谢任何见解.谢谢.