When you import, there is a little "Advanced" expansion button. Click on that and you can see "some" options to change the name of your imported project so it doesn't just default to the artifact ID. You can include other things like the group and version.
There is no option to use the "name" tag though. Perhaps this element can contain special characters that eclipse doesn't allow? --- Todd Thiessen > -----Original Message----- > From: Mikael Edlund [mailto:[email protected]] > Sent: Friday, February 20, 2009 3:33 AM > To: [email protected] > Subject: [m2eclipse-user] Project name > > Hi > If I import the following pom: > > <?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/maven-v4_0_0.xsd"> > <modelVersion>4.0.0</modelVersion> > <parent> > <artifactId>my-parent</artifactId> > <groupId>com.mycompany</groupId> > <version>1.0.0</version> > </parent> > <groupId>com.mycompany</groupId> > <artifactId>web</artifactId> > <packaging>war</packaging> > <version>1.0.0</version> > <name>MyCompanyWeb</name> > ... > </project> > > I want my eclipse project to use the name "MyCompanyWeb". > Instead I get the folder name "web" for my eclipse project. > > The path looks like this: > > parent (parent pom.xml) > | > | > \-------web (MyCompanyWeb pom.xml) > > > In the parent pom.xml I reference to my subpom like this: > > <modules> > <module>web</module> > </modules> > > Have I misinterpreted the meaning of the <name>-tag? > > /Mikael E > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
