Duplicate bundled template Maven Profiles.xml

Hello

I'm developing an IntelliJ plugin that can interact with IntelliJ's maven plugin. The IDE I'm using to develop the plugin (IntelliJ UE 14) includes in its classpath the maven plugin jars (specifically maven.jar and resources_en.jar.) I'm also using the IntelliJ CE 14 SDK as the project's SDK

My plugin's plugin.xml contains the following:

<depends>org.jetbrains.idea.maven</depends>

When I run the plugin, I get an error in the console about a duplicate bundled maven profiles template (see attached file.)

I'm not 100% sure how to go about resolving this. I understand the error, but I'm not sure how I can have the plugin execution ignore one of the templates, or whether this is the correct approach to resolving this. I also do not know what the implications of this error are. Some of my plugin's behaviour is incorrect, but I don't know if I can chalk it up to this issue.

Can someone please provide some suggestions on how to proceed?

Thanks,
-- Cam



Attachment(s):
duplicateTemplate.txt.zip
2 comments
Comment actions Permalink

You need to add the jars of the Maven plugin to the classpath of your IntelliJ IDEA SDK, not as a separate library.


0
Comment actions Permalink

That worked!

Thanks Dmitry

-- Cam

0

Please sign in to leave a comment.