How
to import existing project again in Eclipse?
Assume
there is a maven project ABCD in Eclipse workspace.
Now
you have a requirement to import the same project of different version.
Since
the project name is same for the existing and one you are trying to import now,
Eclipse doesn’t allow you to do that and says – ‘Project ABCD is already imported
into workspace.’
To
solve this, one can use advanced options of maven project import like below:
- Expand Advanced option
- Check Resolve Workspace projects
- In Name Template, there are already predefined options which you can use
- Example: [artifactId] or [artifactId]-[version] etc. I prefer to override this a bit and do like this - [artifactId]-9.5.4 if the version of the project is 9.5.4. The reason is, if the version is snapshot version, then it’ll create the project something like ABCD-9.5.4-SNAPSHOT which I don’t like!
No comments:
Post a Comment