Generating IntelliJ artifact from Maven

Hello,

I have a Maven-based EAR application that I am deploying to Glassfish. IntelliJ generates its artifacts from my Maven POMs just fine, except for one tiny detail. I have a META-INF directory containing some extra XML files in my EAR module. I can't seem to have IntellJ include this directory in its artifacts. I can do it manually, but everytime I change a POM file, this change gets lost because artifacts get generated automatically.

How can I have IntellJ recognize the resources folder of the EAR module and include its files?

4 comments
Comment actions Permalink

How do you configure pom.xml to include that META-INF directory into EAR? Do you use 'earSourceDirectory' tag in maven-ear-plugin configuration?

--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Thanks for the reply. Yes, I tried to use it like that:

<configuration>
    ...     
    <earSourceDirectory>${project.basedir}/src/main/resources</earSourceDirectory>
    ...
<configuration>


And also like this:


<configuration>
    ...     
    <resourcesDir>${project.basedir}/src/main/resources</resourcesDir>
    ...
<configuration>


But no luck. Both ways work if I use just Maven, though. Do you have any suggestions?

0
Comment actions Permalink

'earSourceDirectory' isn't supported yet. We already have an issue about that: http://youtrack.jetbrains.com/issue/IDEA-54946.

--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

OK, thanks for the response.

0

Please sign in to leave a comment.