Diana 9794, idea automatically changes source folders after re-import maven projects
2 人关注
Hello,
I'm trying idea now and use the newest Diana EAP version 9794, but I have a mess around:
I have a schema project, which uses xsd files to define some objects and jaxb to generate them, the source folders include src/main/java & target/generated-sources, but every time I click the re-import maven projects button or change pom.xml(idea re-import automatically), the source folders add target/generated-sources/xjc, target/generated-sources/org, target/generated-sources/com by themselves, so other modules dependent on it go wrong and throw lots of error 'cause of not finding the objects. I don't know why & wanna get how to fix it. Thanks in advance.
请先登录再写评论。
You might be hitting the same issue with the new 'mavenized' compiler in IDEA. Read recent threads in this forum. For me the only solution I found was to disable maven plugin altogether, generate idea project via 'mvn idea:idea'.
Andrew
I don't think it's a proper solution. By now I remove the schema module from project, and if something changes, I use mvn install command in the bash shell and wait other modules to recognize it, sigh.