相关疑难解决方法(0)

生命周期配置maven错误未涵盖插件执行

我导入了一个现有的maven项目但是我在pom.xml中遇到了一些错误:

Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-

 compiler-plugin:2.3.2:compile (execution: default-compile, phase: compile) pom.xml 

 /org.squashtest.csp.tools.unittest line 50 Maven Project Build Lifecycle Mapping Problem
Run Code Online (Sandbox Code Playgroud)

但我不明白为什么,

这是pom.xml:

 <?xml version="1.0"?>
 <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>
<parent>
    <artifactId>squashtest-csp-tools</artifactId>
    <groupId>org.squashtest.tm</groupId>
    <version>1.2.0.RELEASE</version>
</parent>
<artifactId>org.squashtest.csp.tools.unittest</artifactId>
<name>Squashtest CSP - Tools module - Unit tests library</name>
<description>Library  of classes used for unit-testing other Squashtest        
     components</description>

<dependencies>
    <!-- ====== GROOVY ====== -->
    <dependency>
        <groupId>org.codehaus.groovy</groupId>
        <artifactId>groovy-all</artifactId>
        <scope>compile</scope>
    </dependency>
    <!-- ====== /GROOVY ====== -->
    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>org.squashtest.org.hibernate.core</artifactId>
        <version>${hibernate.version}</version>
        <scope>compile</scope> …
Run Code Online (Sandbox Code Playgroud)

maven

17
推荐指数
1
解决办法
4万
查看次数

Eclipse | Maven:在这一行找到了多个注释

我正在尝试将maven项目导入Eclipse.

我正在使用Helios.我已经下载了m2eclipse.我已经导入了这个项目.

但是我在编译项目时遇到了很多麻烦.

完整项目包含5个Eclipse项目,即:prj1,prj2,prj3,prj4和prj5

如果我在prj1/pom.xml上看(Eclipse)标记我有这个麻烦:

Multiple annotations found at this line:
    - Missing artifact log4j:log4j:jar:1.2.15:compile
    - Missing artifact org.apache.xmlbeans:xmlbeans-xpath:jar:2.4.0:compile
    - Missing artifact org.apache.ws.commons.axiom:axiom-dom:jar:1.2.5:compile
    - Missing artifact org.apache.httpcomponents:httpcore:jar:4.0-alpha5:compile
Run Code Online (Sandbox Code Playgroud)

......等等......

如果我理解了maven是如何工作的那些家属必须下载我的maven,我错了吗?

为什么没有下载这些依赖项?我应该一个一个地手动下载吗?

java eclipse m2eclipse pom.xml maven

13
推荐指数
2
解决办法
7万
查看次数

Eclipse中转换的maven项目出错

我正在使用带有m2e插件的Eclipse Juno.我通过Eclipse将我的java项目转换为maven项目

右键单击项目>转到菜单配置>转换为maven项目.

多数民众赞成我的pom.xml文件

这些是错误:

Multiple annotations found at this line:
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-
 plugin:2.3.2:compile (execution: default-compile, phase: compile)
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-
 plugin:2.3.2:testCompile (execution: default-testCompile, phase: test-compile)
- CoreException: Could not get the value for parameter compilerId for plugin execution default-
 compile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of 
 its dependencies could not be resolved: The following artifacts could not be resolved: 
 org.codehaus.plexus:plexus-compiler-manager:jar:1.8.1, org.codehaus.plexus:plexus-compiler-javac:jar:1.8.1: 
 Failure to transfer org.codehaus.plexus:plexus-compiler-manager:jar:1.8.1 from http://repo.maven.apache.org/ …
Run Code Online (Sandbox Code Playgroud)

java gwt selenium maven

5
推荐指数
1
解决办法
9714
查看次数

标签 统计

maven ×3

java ×2

eclipse ×1

gwt ×1

m2eclipse ×1

pom.xml ×1

selenium ×1