Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Bug? Convert to Maven Project(Nothing converted)
Bug? Convert to Maven Project [message #1770477] Sat, 12 August 2017 07:46 Go to next message
Anton Hughes is currently offline Anton HughesFriend
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.
http://imgur.com/gqB5wPh.

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 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4434
Registered: July 2009
Senior Member

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
Previous Topic:impact of excessive warnings on project build time
Next Topic:Four Java files don't execute
Goto Forum:
  


Current Time: Fri Apr 19 18:25:21 GMT 2024

Powered by FUDForum. Page generated in 0.05315 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top