Eclipse.classpath exception pattern

I have seen that:

<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>

In my Eclipse.classpath file many times when creating a new Maven project, but I can't figure out what the exception = "**" means?

EDIT: I assume what I am trying to get here is that although it seems that the exception = "**" should exclude everything in src / main / resources, but it is not. When I create a test project and put it in folders (ex: META-INF), they really appear in the target / classes. What for? What is the meaning of the exception?

TIA

+3
source share
3 answers

Since you are using m2eclipse, the .project file in your project contains

<buildCommand>
    <name>org.maven.ide.eclipse.maven2Builder</name>
    <arguments>
    </arguments>
</buildCommand>

Java- /src/main/resources /target/classes.

, /src/main/resources . , .

, , = "**", , .

+1

" ". ** - , .

Subversion .svn, , . **/.svn, .svn. **/ .

+3

**- This is a special template that corresponds to each file in the base path and to all files in all its subdirectories. In your example, it just excludes all files inside src/main/resources.

+2
source

Source: https://habr.com/ru/post/1762931/


All Articles