Plugin.xml file is not found /generated for eclipse plugin project

醉酒当歌 提交于 2019-12-07 10:40:49

问题


I am developing one maven plugin which will be used to override default maven lifecycle.To resolve dependencies (eclipse and other) , I want to use tycho. So I cofigured maven project to convert it into eclipse-plugin-project.

Heres my 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.test.maven.plugin</groupId>
 <artifactId>test-maven-plugin</artifactId>
 <version>0.0.1</version>
 <packaging>eclipse-plugin</packaging>

 <name>test-maven-plugin</name>
 <url>http://maven.apache.org</url>

 <properties>
  <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 </properties>

 <repositories>
   <!-- add Mars repository to resolve dependencies -->
   <repository>
     <id>Mars</id>
     <layout>p2</layout>
     <url>http://download.eclipse.org/releases/mars/</url>
   </repository>
 </repositories>


<build>
 <plugins>
   <plugin>
     <artifactId>maven-compiler-plugin</artifactId>
     <version>3.1</version>
     <configuration>
       <source>1.8</source>
       <target>1.8</target>
     </configuration>
   </plugin>
   <plugin>
    <!-- enable tycho build extension -->
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-maven-plugin</artifactId>
        <version>0.23.0</version>
        <extensions>true</extensions>
 </plugin>
 </plugins>
</build>
</project>

Now , as my packaging type is 'eclipse-plugin' , it is not generating plugin.xml file while installing project (mvn install). If I do the packaging type as 'maven-plugin' , it generates plugin.xml , but it does resolve dependencies using tycho.

Any thoughts for combining both?

来源:https://stackoverflow.com/questions/38481343/plugin-xml-file-is-not-found-generated-for-eclipse-plugin-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!