0

I'm having trouble trying to ignore some modules when I add headers to my files using maven license plugin. The way I am trying to do is to put the modules path in the excludes tag. Here is the plugin in pom.xml:

    <plugin>
            <groupId>com.mycila.maven-license-plugin</groupId>
            <artifactId>maven-license-plugin</artifactId>
            <version>1.10.b1</version>
            <executions>
                <execution>
                    <goals>
                        <goal>format</goal>
                    </goals>
                    <phase>validate</phase>
                    <configuration>
                        <header>header.txt</header>
                        <aggregate>true</aggregate>
                        <excludes>          
                            <exclude>**/a/**</exclude>
                            <exclude>**/b/**</exclude>
                            <exclude>**/c/**</exclude>
                        </excludes>
                    </configuration>
                </execution>
            </executions>
        </plugin>

This is the way I'm trying to ignore the projects inside this parent pom.xml. I have already tried also with ${project.basedir}/a/ and ${basedir}/a/

Thank you in advance.

Evandro
  • 137
  • 1
  • 1
  • 13

1 Answers1

0

Please try:

<excludes>          
   <exclude>a/**</exclude>
   <exclude>b/**</exclude>
   <exclude>c/**</exclude>
</excludes>
Slawomir Jaranowski
  • 7,381
  • 3
  • 25
  • 33