views:

406

answers:

2

In my maven2 project I have a directory ${basedir}/autogen that contains some autogenerated source code files produced by wsdl2java.

When running mvn compile I get an compilation error, because of duplicate classes, that lives in ${basedir}/autogen. This is true. But what is the compilation phase doing in ${basedir}/autogen? I have not told maven to add this directory as a source directory. And there seems to be no way of telling maven to ignore the directory.

A: 

Its hard to change default maven behaviour, i think its better to go with it - you could generate those files with maven wsdl2java-maven-plugin

01
I am generating them with a maven plugin.
vpalle
A: 

I've seen this a few times. In almost all cases, it is due to the generated classes being added to the main src tree then checked into version control.

sal
So removing them from version control again, could solve it?
vpalle
They weren't added to version control in the first place, just checked, so I guess thats not the issue..
vpalle