Skip to content

A maven plugin that defines the ${project.baseUri} property, as it is not

Notifications You must be signed in to change notification settings

cmarchand/setbaseuri-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

setbaseuri-maven-plugin

This plugin adds the project.baseUri to project properties. This property should be defined by lmaven, but isn't. So let's add a plugin to do it.

Sample :

    <build>
      <plugins>
        <plugin>
          <groupId>top.marchand.maven</groupId>
          <artifactId>setbaseuri-maven-plugin</artifactId>
          <version>1.0.0</version>
          <executions>
            <execution>
              <phase>initialize</phase>
              <goals><goal>seturi</goal></goals>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </build>

Then, in a filtered resource, you can use ${project.baseUri}, it will be substitued with a URI form of project directory : file:/Users/cmarchand/devel/project for me.

About

A maven plugin that defines the ${project.baseUri} property, as it is not

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages