CMJ reports Project key conflicts. java.lang.IllegalStateException: Unable to create project: Errors: {projectKey=Project '<Some Project>' uses this project key.}

Symptoms:

For Configuration Manager version 6.5.1 or later the following error appears:

For Configuration Manager versions older than 6.5.1, during snapshot deployment, the following error appears:


Caused by: java.lang.IllegalStateException: Unable to create project: Errors: {projectKey=Project <Some Project>' uses this project key.}
Error Messages: []
	at com.botronsoft.jiracompatibility.impl.JiraCompatibility7.createProject(JiraCompatibility7.java:162)
	at com.botronsoft.jiracompatibility.impl.JiraCompatibilityFacade.createProject(JiraCompatibilityFacade.java:110)
	at com.botronsoft.jira.rollout.impl.merge.ConfigurationRootMergeAdapter.addProject(ConfigurationRootMergeAdapter.java:411)
	at com.botronsoft.jira.rollout.impl.merge.di.CacheRefreshInterceptor.invoke(CacheRefreshInterceptor.java:30)
	at com.botronsoft.jira.rollout.impl.merge.ConfigurationRootMergeAdapter.addFeature(ConfigurationRootMergeAdapter.java:128)
	at com.botronsoft.jira.rollout.impl.merge.AbstractMergeAdapter.notifyChanged(AbstractMergeAdapter.java:65)
	... 20 more


Cause:

Jira keeps track of all project keys that have been used on a system and does not allow to create projects with already used keys in the past.

Resolution:

To resolve this, change the key of the project on the source instance to another one that hasn't been used on the target.