Project name different from artifact-Id
When you import maven project, click on 'Advanced' panel on the bottom of the import dialog and there you can choose an alternative name template.
The default is [artifactId]
, but you can choose, for example, [name]
which is the content of the description
tag from pom.
It is possible setting the projectNameTemplate
property in the configuration
of the maven-eclipse-plugin
, as in Documentation.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>x.y</version>
<configuration>
<projectNameTemplate>custom-project-name</projectNameTemplate>
</configuration>
</plugin>
One way to rename the project is directly editing the .project
file. This is a XML file located in the project folder with basic eclipse information about the project.
Just change the node (it will only affect the project name in Eclipse)