JIRA Plugin : com.atlassian.plugin.web.conditions.ConditionLoadingException: Could not load 'com.atlassian.jira.plugin.webfragment.conditions.IsIssueEditableCondition'

Hello,

I tried to progress in this problem.

I upgraded some of my dependencies to match the versions included with JIRA 8.2.0. I qualified all the standard dependencies in “provided”. I refactored a little bit my code to get rid of a dependency that troubled me.

Below is the configuration of jira-maven-plugin :

<plugin>
				<groupId>com.atlassian.maven.plugins</groupId>
				<artifactId>jira-maven-plugin</artifactId>
				<version>${amps.version}</version>
				<extensions>true</extensions>
				<configuration>
					<productVersion>${jira.version}</productVersion>
					<productDataVersion>${jira.version}</productDataVersion>
					<instructions>
						<Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key>

						<!-- Add package to export here -->
						<Export-Package>
							fr.icdc.dei.dn1,
						</Export-Package>

						<!-- Add package import here -->
						<Import-Package>
							com.atlassian.jira.plugin.webfragment.conditions,
							org.springframework.osgi.*;resolution:="optional",
							org.eclipse.gemini.blueprint.*;resolution:="optional",
							*;resolution:="optional"
						</Import-Package>
						<!-- Ensure plugin is spring powered -->
						<Spring-Context>*</Spring-Context>
					</instructions>
				</configuration>
			</plugin>

And now, the error I got is this :

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.atlassian.jira.plugin.webfragment.conditions.IsIssueEditableCondition': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.atlassian.jira.issue.IssueManager' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}

Thanks in advance for your interest.