configure maven plugin for intellij

Answered

Is there a way to build a project through IntelliJ, with Maven?
I started referencing an external .jar dependency in my Scala/Spark project. Because that file was signed, I had to add the maven-shade-plugin along with the following:
<filters>
                                <filter>
                                    <artifact>*:*</artifact>
                                    <excludes>
                                        <exclude>META-INF/*.SF</exclude>
                                        <exclude>META-INF/*.DSA</exclude>
                                        <exclude>META-INF/*.RSA</exclude>
                                    </excludes>
                                </filter>
                            </filters>
This can also be seen in more detail here: http://zhentao-li.blogspot.com/2012/06/maven-shade-plugin-invalid-signature.html
The build in IntelliJ does not appear to create a build based on the plugins listed in the maven pom file.
My question is: Is there a way to generate the build, that utilizes the maven plugins?

I would like to do this, because I am using the "Azure toolkit for IntelliJ" plugin, which can take the IntelliJ build output, and submit a job to a Spark cluster.

1 comment
Comment actions Permalink

It appears that this specific Maven configuration is not supported by IDEA. Please submit a request at https://youtrack.jetbrains.com/issues/IDEA with more details (a sample project with pom.xml).

You can try adding post-build steps to IntelliJ IDEA artifact https://www.jetbrains.com/help/idea/2016.2/post-processing-tab.html.

Artifact jar can be post-processed by an Ant task that will remove certificates from META-INF folder.

0

Please sign in to leave a comment.