Skip to content

Add support of includePluginDependencies for the exec goal #17

@astefanutti

Description

@astefanutti

In some use cases, that'd be useful to add some dependencies to the classpath for the exec goal. For example, one could write:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>exec-maven-plugin</artifactId>
    <configuration>
        <executable>java</executable>
        <commandlineArgs>-classpath %classpath org.apache.camel.cdi.Main</commandlineArgs>
        <includePluginDependencies>true</includePluginDependencies>
    </configuration>
    <dependencies>
        <dependency>
            <groupId>io.astefanutti.camel.cdi</groupId>
            <artifactId>camel-cdi</artifactId>
            <version>${project.version}</version>
        </dependency>
    </dependencies>
</plugin>

So that the additional dependency is contained in the %classpath variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions