Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does **/* mean in maven syntax?

Tags:

maven-2

I'm new to maven, I keep running in to the following syntax:

<include>**/*</include> 

Im not sure how to interpret **/*, is this some Java or maven convention?

like image 701
vpalle Avatar asked May 25 '09 08:05

vpalle


People also ask

What does POM stand for Maven?

A Project Object Model or POM is the fundamental unit of work in Maven. It is an XML file that contains information about the project and configuration details used by Maven to build the project. It contains default values for most projects.

What is artifactId in POM xml?

The POM contains information about the project and various configuration detail used by Maven to build the project(s). Before creating a POM, we should first decide the project group (groupId), its name (artifactId) and its version as these attributes help in uniquely identifying the project in repository.

What is groupId and artifactId in Maven project example?

Maven uses a set of identifiers, also called coordinates, to uniquely identify a project and specify how the project artifact should be packaged: groupId – a unique base name of the company or group that created the project. artifactId – a unique name of the project. version – a version of the project.


1 Answers

It is more related to <fileset> Ant convention upon which Maven is built.

**/* : all files in all subdirectories: see Ant Patterns.

When ** is used as the name of a directory in the pattern, it matches zero or more directories.
For example: /test/** matches all files/directories under /test/, such as /test/x.java, or /test/foo/bar/xyz.html, but not /xyz.xml.

like image 153
VonC Avatar answered Sep 28 '22 00:09

VonC