Bug? Convert to Maven Project [message #1770477] |
Sat, 12 August 2017 07:46 |
Anton Hughes Messages: 66 Registered: January 2013 |
Member |
|
|
Hello
I like the fact that Eclipse has a 'convert to maven project' feature.
Unfortunately, when I used this on an Eclipse plugin project, it did not convert the project to maven, but merely added a pom file.
The project has the following dependencies, which I would have expected these to be converted to maven dependencies.
.
After running the conversion project, this is the resulting maven pom file - notice no dependencies have been added:
<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>my.company</groupId>
<artifactId>project</artifactId>
<version>0.0.1-SNAPSHOT</version>
<build>
<sourceDirectory>src-gen</sourceDirectory>
<resources>
<resource>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<source/>
<target/>
</configuration>
</plugin>
</plugins>
</build>
</project>
[Updated on: Sat, 12 August 2017 07:48] Report message to a moderator
|
|
|
Re: Bug? Convert to Maven Project [message #1770499 is a reply to message #1770477] |
Sat, 12 August 2017 17:42 |
|
If this is a plug-in project, you don't just want to convert it into a Maven project anyway. For Maven, the pom.xml is the single truth for dependencies. You want to involve Eclipse Tycho so that the plug-in manifest remains the single truth for your project, or at least as much as it can be.
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
Powered by
FUDForum. Page generated in 0.05315 seconds