我正在尝试使用Spring Data和Neo4j.我开始尝试按照主站点链接的本指南.特别是我将我的pom.xml基于"Hello,World!".示例文件.这是我的pom.xml中针对导致问题的插件的剪辑...
<plugin>
<!-- Required to resolve aspectj-enhanced class features -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.0</version>
<configuration>
<outxml>true</outxml>
<aspectLibraries>
<aspectLibrary>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
</aspectLibrary>
<aspectLibrary>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
</aspectLibrary>
</aspectLibraries>
<source>1.6</source>
<target>1.6</target>
</configuration>
<executions>
<!-- ERROR HERE IN ECLIPSE SEE BELOW FOR FULL MESSAGE -->
<execution>
<goals>
<goal>compile</goal>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>${aspectj.version}</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjtools</artifactId>
<version>${aspectj.version}</version>
</dependency>
</dependencies>
</plugin>
Run Code Online (Sandbox Code Playgroud)
我看到的错误是:
Multiple annotations found at this line:
- Plugin execution not covered by …Run Code Online (Sandbox Code Playgroud) 如何使用Eclipse maven项目解决此问题:
插件执行未包括生命周期配置:org.datanucleus:行家-DataNucleus将-插件:3.1.0-M3:增强(执行:默认值,相:编译)的pom.xml/DatanucleusJPA线218 Maven项目构建生命周期映射问题
这可以用Eclipse M2 Eclipse插件修复吗?
我正在尝试创建一个OSGi包并将其集成到eclipse中.我正在使用maven-pax-plugin来创建捆绑包.这些是我遵循的步骤
我使用pax创建了一个osgi项目
mvn org.ops4j:maven-pax-plugin:create-project -DgroupId=org.sonatype.mcookbook -DartifactId=osgi-project -Dversion=1.0-SNAPSHOT
Run Code Online (Sandbox Code Playgroud)
然后创建一个包
mvn pax:create-bundle -Dpackage=org.sonatype.mcookbook -Dname=osgi-bundle -Dversion=1.0-SNAPSHOT
Run Code Online (Sandbox Code Playgroud)
然后尝试将maven项目导入eclipse(文件/导入/现有maven项目),在第二步中创建的bundle项目总是给我这个错误
maven-pax-plugin:1.5:compile (1 error)
Execution default-compile, in org.sonatype.mcookbook/pom.xml
maven-pax-plugin:1.5:testCompile (1 error)
Execution default-testCompile, in org.sonatype.mcookbook/pom.xml
Run Code Online (Sandbox Code Playgroud)
当我选择描述中的一个错误时
No marketplace entries found to handle Execution default-compile, in org.sonatype.mcookbook/pom.xml in Eclipse. Please see Help for more information.
Run Code Online (Sandbox Code Playgroud)
如果我忽略错误并导入项目无论如何这都是eclipse抱怨的
Plugin execution not covered by lifecycle configuration: org.ops4j:maven-pax-plugin:1.5:compile (execution: default-compile, phase: compile)
Run Code Online (Sandbox Code Playgroud)
有没有人见过这个?任何想法如何解决它?我正在学习本教程但是添加了与eclipse的集成.但请注意,如果我使用maven构建它并且根本不使用eclipse,那么一切正常,问题出在eclipse/m2e
我正在使用Eclipse Indigo SR2和m2e 1.0.200
我在Windows 7上将Eclipse Juno与Maven 3.0.5一起使用。该项目以前在Windows XP上使用,并且我已移至Windows 7 64位计算机。
我已经复制了Eclipse Spring 3,Hibernate 4和JSF 2.0项目,并且在尝试编译时出现以下错误
Plugin execution not covered by lifecycle configuration:
org.bsc.maven:maven-processor-plugin:2.0.6:process (execution: process, phase:
generate-sources)
Run Code Online (Sandbox Code Playgroud)
我尝试通过在Eclipse.ini文件中添加以下内容来对此线程中提到的内容进行尝试,但是它没有解决问题。
-vm
c:\Program Files\Java\jdk1.7.0_21\jre\bin\server\jvm.dll
Run Code Online (Sandbox Code Playgroud)
尝试构建Maven安装并清理,但问题仍然存在。
我该如何解决这个问题?任何帮助都是非常明显的。
谢谢
Maven片段
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<compilerArgument>-proc:none</compilerArgument>
</configuration>
</plugin>
<plugin>
<groupId>org.bsc.maven</groupId>
<artifactId>maven-processor-plugin</artifactId>
<version>2.0.6</version>
<executions>
<execution>
<id>process</id>
<goals>
<goal>process</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<!-- source output directory -->
<outputDirectory>target/metamodel</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Run Code Online (Sandbox Code Playgroud)