On Mon, Sep 18, 2017 at 9:42 AM, Thorsten Schöning
<[email protected]> wrote:
> Guten Tag Andreas Veithen,
> am Sonntag, 17. September 2017 um 17:43 schrieben Sie:
>
>> See my earlier messages in this thread explaining the root cause and
>> how one would reproduce this.
>
> Thanks for the hint and sorry, somehow I missed all of your answers to
> my question.
>
>> That means that the output directory is not added to the list of test
>> sources, resulting in compilation failures.
>
> But what I'm seeing is that someone actively deletes individual class
> files from the following child folders:
>
>> C:\Users\tschoening\Documents\Eclipse\Java 
>> Axis2\axis2\modules\metadata\target\test-classes\org
>
> All subdirs in that dir seem to be iterated and all containing Java
> class files deleted and only those class files, the following one is
> kept for example:
>
>> C:\Users\tschoening\Documents\Eclipse\Java 
>> Axis2\axis2\modules\metadata\target\test-classes\org\apache\axis2\jaxws\description\HandlerConfigFile.xml
>
> If it was only about classpath issues, shouldn't those files still be
> there?

This is exactly what I would expect from maven-compiler-plugin, namely
that for incremental builds, it removes the classes for which the
source files have been removed. Note that from the perspective of
maven-compiler-plugin, skipping the registration of the source folder
is effectively the same as removing the source files.

> Additionally, after successfully running "mvn clean test ...",
> I commented out the usage of jaxb2 in the pom.xml of metadata and that
> didn't change anything, the Java class files were still deleted.
>
> Doesn't that mean that that plugin is not the problem and that someone
> else is wrongly deleting those files for some reason?
>
> Setting "clearOutputDir" to "false" of the jaxb2 plugin didn't change
> anything as well.
>
> Mit freundlichen Grüßen,
>
> Thorsten Schöning
>
> --
> Thorsten Schöning       E-Mail: [email protected]
> AM-SoFT IT-Systeme      http://www.AM-SoFT.de/
>
> Telefon...........05151-  9468- 55
> Fax...............05151-  9468- 88
> Mobil..............0178-8 9468- 04
>
> AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
> AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to