maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Lamy <ol...@apache.org>
Subject Re: [ANN] Maven Compiler Plugin 3.1 Released
Date Mon, 15 Apr 2013 12:10:19 GMT
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 <s7an10@netscape.net>:
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>



-- 
Olivier Lamy
Ecetera: http://ecetera.com.au
http://twitter.com/olamy | http://linkedin.com/in/olamy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message