Java Pom.xml OpenHAB中的生命周期配置未涵盖插件执行
我正在尝试使用eclipse构建OpenHAB开源项目。但是pom.xml中的以下错误 我不知道Maven构建系统,现在只是尝试编译和构建OpenHAB 生命周期配置未涵盖插件执行:org.apache.karaf.tooling:karaf maven Plugin: 4.0.3:特征生成描述符(执行:默认特征生成描述符,阶段:编译) 以下是pom.xml文件:Java Pom.xml OpenHAB中的生命周期配置未涵盖插件执行,java,xml,eclipse,maven,openhab,Java,Xml,Eclipse,Maven,Openhab,我正在尝试使用eclipse构建OpenHAB开源项目。但是pom.xml中的以下错误 我不知道Maven构建系统,现在只是尝试编译和构建OpenHAB 生命周期配置未涵盖插件执行:org.apache.karaf.tooling:karaf maven Plugin: 4.0.3:特征生成描述符(执行:默认特征生成描述符,阶段:编译) 以下是pom.xml文件: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="ht
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.openhab</groupId>
<artifactId>features</artifactId>
<version>1.9.0-SNAPSHOT</version>
</parent>
<groupId>org.openhab.addons</groupId>
<artifactId>openhab-addons</artifactId>
<packaging>feature</packaging>
<name>openHAB Feature Addons</name>
<description>openHAB Addons</description>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>openhab-addons-external</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins> <!-- SHOWING ERROR HERE -->
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<startLevel>80</startLevel>
<aggregateFeatures>true</aggregateFeatures>
<!-- <resolver>(obr)</resolver> -->
<checkDependencyChange>true</checkDependencyChange>
<failOnDependencyChange>false</failOnDependencyChange>
<logDependencyChanges>true</logDependencyChanges>
<overwriteChangedDependencies>true</overwriteChangedDependencies>
</configuration>
</plugin>
</plugins>
</build>
</project>
<?xml version="1.0" encoding="MACROMAN"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<groupId>org.openhab</groupId>
<artifactId>openhab</artifactId>
<version>1.9.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.openhab</groupId>
<artifactId>features</artifactId>
<name>openHAB Features</name>
<packaging>pom</packaging>
<properties>
<ohc.version>2.0.0.a4</ohc.version>
<esh.version>0.8.0.b2</esh.version>
<shk.version>1.2</shk.version>
<karaf.version>4.0.3</karaf.version>
<build.helper.maven.plugin.version>1.9.1</build.helper.maven.plugin.version>
</properties>
<modules>
<module>openhab-addons</module>
<module>openhab-addons-external</module>
<module>openhab-addons-verify</module>
</modules>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<version>${karaf.version}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${build.helper.maven.plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<repositories>
<repository>
<id>jcenter</id>
<name>JCenter Repository</name>
<url>https://jcenter.bintray.com/</url>
</repository>
<repository>
<id>shk-bintray</id>
<name>Bintray Repository for shk</name>
<url>https://dl.bintray.com/maggu2810/maven</url>
</repository>
<repository>
<id>eclipse-snapshots</id>
<name>Eclipse Snapshot Repository</name>
<layout>default</layout>
<url>https://repo.eclipse.org/content/repositories/snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>eclipse-releases</id>
<name>Eclipse Release Repository</name>
<layout>default</layout>
<url>https://repo.eclipse.org/content/repositories/releases/</url>
</repository>
<repository>
<id>jfrog</id>
<name>JFrog OSS Repository</name>
<url>http://oss.jfrog.org/libs-snapshot/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</project>
4.0.0
org.openhab
特征
1.9.0-快照
org.openhab.addons
openhab插件
特征
openHAB功能插件
openHAB插件
${project.groupId}
openhab插件外部
${project.version}
聚甲醛
假如
org.apache.karaf.tooling
KarafMaven插件
真的
80
真的
真的
假的
真的
真的
父pom.xml文件:
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.openhab</groupId>
<artifactId>features</artifactId>
<version>1.9.0-SNAPSHOT</version>
</parent>
<groupId>org.openhab.addons</groupId>
<artifactId>openhab-addons</artifactId>
<packaging>feature</packaging>
<name>openHAB Feature Addons</name>
<description>openHAB Addons</description>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>openhab-addons-external</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins> <!-- SHOWING ERROR HERE -->
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<startLevel>80</startLevel>
<aggregateFeatures>true</aggregateFeatures>
<!-- <resolver>(obr)</resolver> -->
<checkDependencyChange>true</checkDependencyChange>
<failOnDependencyChange>false</failOnDependencyChange>
<logDependencyChanges>true</logDependencyChanges>
<overwriteChangedDependencies>true</overwriteChangedDependencies>
</configuration>
</plugin>
</plugins>
</build>
</project>
<?xml version="1.0" encoding="MACROMAN"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<groupId>org.openhab</groupId>
<artifactId>openhab</artifactId>
<version>1.9.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.openhab</groupId>
<artifactId>features</artifactId>
<name>openHAB Features</name>
<packaging>pom</packaging>
<properties>
<ohc.version>2.0.0.a4</ohc.version>
<esh.version>0.8.0.b2</esh.version>
<shk.version>1.2</shk.version>
<karaf.version>4.0.3</karaf.version>
<build.helper.maven.plugin.version>1.9.1</build.helper.maven.plugin.version>
</properties>
<modules>
<module>openhab-addons</module>
<module>openhab-addons-external</module>
<module>openhab-addons-verify</module>
</modules>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<version>${karaf.version}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${build.helper.maven.plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<repositories>
<repository>
<id>jcenter</id>
<name>JCenter Repository</name>
<url>https://jcenter.bintray.com/</url>
</repository>
<repository>
<id>shk-bintray</id>
<name>Bintray Repository for shk</name>
<url>https://dl.bintray.com/maggu2810/maven</url>
</repository>
<repository>
<id>eclipse-snapshots</id>
<name>Eclipse Snapshot Repository</name>
<layout>default</layout>
<url>https://repo.eclipse.org/content/repositories/snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>eclipse-releases</id>
<name>Eclipse Release Repository</name>
<layout>default</layout>
<url>https://repo.eclipse.org/content/repositories/releases/</url>
</repository>
<repository>
<id>jfrog</id>
<name>JFrog OSS Repository</name>
<url>http://oss.jfrog.org/libs-snapshot/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</project>
org.openhab
openhab
1.9.0-快照
4.0.0
org.openhab
特征
openHAB特性
聚甲醛
2.0.0.a4
0.8.0.b2
1.2
4.0.3
1.9.1
openhab插件
openhab插件外部
openhab插件验证
org.apache.karaf.tooling
KarafMaven插件
${karaf.version}
真的
org.codehaus.mojo
构建助手maven插件
${build.helper.maven.plugin.version}
jcenter
JCenter存储库
https://jcenter.bintray.com/
shk垃圾箱
shk的托盘存储库
https://dl.bintray.com/maggu2810/maven
eclipse快照
Eclipse快照存储库
违约
https://repo.eclipse.org/content/repositories/snapshots/
真的
eclipse发布
Eclipse发布存储库
违约
https://repo.eclipse.org/content/repositories/releases/
jfrog
JFrog OSS存储库
http://oss.jfrog.org/libs-snapshot/
真的
这只是eclipse内部的一个问题。“生命周期配置未涵盖插件执行”的消息只是意味着eclipse不知道pom中使用的“org.apache.karaf.tooling:karaf maven Plugin”插件
解决方案:右键单击eclipse中的父项目,选择“RunAs”=>“RunAs maven build…”,在“goal”字段中输入“clean package”,点击“Run”来构建项目(构建工件将出现在“target”目录中) 类似这样:
org.eclipse.m2e
生命周期映射
1.0.0
某个组id
某个工件id
[1.0.0,)
一些目标