I would have expected that too, however:

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <version>2.17</version>
        <executions>
          <execution>
            <id>validate</id>
            <phase>validate</phase>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <configLocation>config/checkstyle.xml</configLocation>
          <excludes>**/.,*.java</excludes>
        </configuration>
      </plugin>

And it reports that:

[ERROR]
/mnt/shared/seth/courses/619/f17/src/my-app/src/main/java/com/mycompany/app/.,foo.java:[7,7]
error: class App is public, should be declared in a file named App.java

So, still getting .,* files.  Wish this would work properly.


--------------
Seth Copen Goldstein
Carnegie Mellon University
Computer Science Dept
7111 GHC
412-268-3828

On Sat, Aug 26, 2017 at 6:47 AM, Robert Scholte <rfscho...@apache.org>
wrote:

> I would expect it to be **/.*
> **/ means zero or more directories
> .* any file with a dot followed by anything
>
> Robert
>
> ps. repeating the same element within configuration like you did with
> <excludes/> means the last one will win.
>
>
> On Fri, 25 Aug 2017 23:26:58 +0200, Seth Goldstein <s...@cmu.edu> wrote:
>
> I am trying to exclude all files that begin with '.,' from being checked or
>> compiled.  Is there a quick and easy way to do this?  The following does
>> NOT work:
>>
>>       <plugin>
>>         <groupId>org.apache.maven.plugins</groupId>
>>         <artifactId>maven-checkstyle-plugin</artifactId>
>>         <version>2.17</version>
>>         <executions>
>>           <execution>
>>             <id>validate</id>
>>             <phase>validate</phase>
>>             <goals>
>>               <goal>check</goal>
>>             </goals>
>>           </execution>
>>         </executions>
>>         <configuration>
>>           <excludes>.,*.java</excludes>
>>           <excludes>**/.,*.java</excludes>
>>           <excludes>**/**/.,*.java</excludes>
>>           <excludes>**/**/**/.,*.java</excludes>
>>           <excludes>**/**/**/**/.,*.java</excludes>
>>           <excludes>**/**/**/**/**/.,*.java</excludes>
>>  <excludes>src/main/java/com/mycompany/app/.,*.java</excludes>
>>         </configuration>
>>       </plugin>
>>
>> Any suggestions?
>>
>> -seth
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to