One Minute Sample

Configure the plugin in your project (as described in the next chapter), and simply use standard maven command. For instance trigger the install step.

mvn install

The derivative will be installed in your local repository.

Configuration

Simple Config

<plugin>
    <groupId>org.bud.maven.mojo</groupId>
    <artifactId>maven-attachor-plugin</artifactId>
    <version>0.1-SNAPSHOT</version>
    <configuration>
        <attachments>
            <attachment>
                <file>src/schema/one-artifact.xsd</file>
                <classifier>schema</classifier>
            </attachment>
        </attachments>
    </configuration>
</plugin>