IntelliJ Maven integration troubles
Hi,
I work on a project which was originally (and still is) developed with Eclipse. I am new to the project and I use IDEA ultimate.
It is a multi-module Maven3 project. They (my colleagues) use Eclipse with the m2e Maven plugin.
I have serious troubles with code-generation/building the EAR. On the opposite, everything works fine for them.
Here is one of my current issues:
Code-Generation
In the pom there is the axistools-maven-plugin. In one module we need to generate multiple Axis 1.4 clients (phase: generate-sources) with special configuration as described in the plugin. As well as an ant task that runs afterwards (phase: prepare-package).
I have already noticed the WebService Client Facet. But I don't want to generate/configure the sources by hand, and I also don't want the sources in /src/main/java but in /target/generated-sources. Eclipse generates the sources for them correctly, so they don't have any issues.
I really dislike the "Before Launch" Maven goal approach, because it feels so slow and also needs to be configured by hand. And I want to have the sources to be generated and resolved during development (prolly after changes to the axistools-maven-plugin) and not after I manually run a Maven plugin.
We have some generated sources in a source folder we do not check in. So a colleague introduced the maven-clean-plugin that cleans the sources with mvn:clean to prevent stale state of the directory. So I have to manually re-generate the sources after every mvn:clean. And when I try to build/run after a mvn:install the deployment does not works because things get messy everytime. I just can build I ended up removing the plugin and to not check in my changes (one of many workarounds)
It makes me so mad, that I waste so much time with build issues (and there are a couple which I have workarounds for). And they always tell me to switch back to Eclipse.
I think I just don't know enough about IntelliJ to solve my issues. Could you please provide information on how to integrate IntelliJ with different Maven plugins, like m2e?
They are unwilling to change something for IntelliJ, because "It works with Maven on command line" "It works with Eclipse, IntelliJ should work too".
Some colleagues wanted to change to IntelliJ too, but they saw my troubles that they do not want to solve.
Best Regards
Please sign in to leave a comment.
There is a setting to generate sources on import/folders update:
Use this button in the Maven Projects tool window to (re-) generate the sources: