mb-olamy:maven-compiler-sample olamy$ hg diff
diff -r 282cd9fe95c4 pom.xml
--- a/pom.xml Sun Apr 14 14:48:37 2013 +0300
+++ b/pom.xml Mon Apr 15 22:06:35 2013 +1000
@@ -41,6 +41,9 @@
<encoding>${project.build.sourceEncoding}</encoding>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
+ <excludes>
+ <exclude>**/package-info.java</exclude>
+ </excludes>
</configuration>
</plugin>
</plugins>
the compiler plugin compare timestamp (and or new file **/*.java from
${project.build.sourceDirectory} to ${project.build.outputDirectory}
as long as there is any timestamp change or new file a compilation is
triggered.
As all package-info.java files never go to
${project.build.outputDirectory} a compilation is triggered.
HTH
2013/4/14 Stanimir Stamenkov <[email protected]>:
> Sat, 13 Apr 2013 20:55:17 +0300, /Stanimir Stamenkov/:
>
>> Thu, 11 Apr 2013 23:38:17 -0500, /Wayne Fay/:
>>
>>>> I'm not sure it could be a clue but it happens for some (I haven't
>>>> verified all) WAR modules.
>>>
>>> [...]
>>> Is this a project you can share via Github? Or can you make a
>>> sample that
>>> (consistently) exhibits the behavior, and share just that part?
>>
>>
>> All right. Doesn't appear WAR-related, but consistently happens if
>> there are "package-info.java" files with no annotations (at least
>> @Retention(RUNTIME) ones) to cause a "package-info.class" generated
>> in the target/classes directory.
>
>
> I don't use Git but here's a Hg source:
>
> https://bitbucket.org/stanio/maven-compiler-sample
>
> One could download a zipped bundle from:
>
> https://bitbucket.org/stanio/maven-compiler-sample/downloads
>
> (select "Tags" or "Branches")
>
>
> --
> Stanimir
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
--
Olivier Lamy
Ecetera: http://ecetera.com.au
http://twitter.com/olamy | http://linkedin.com/in/olamy
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]