Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support of includePluginDependencies for the exec goal #17

Closed
astefanutti opened this issue Dec 3, 2015 · 2 comments · Fixed by #432
Closed

Add support of includePluginDependencies for the exec goal #17

astefanutti opened this issue Dec 3, 2015 · 2 comments · Fixed by #432

Comments

@astefanutti
Copy link

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.

@bondolo
Copy link

bondolo commented Oct 14, 2016

A feature is necessary for adding additional dependencies but using pluginDependencies is a hack.

@sebthom
Copy link
Contributor

sebthom commented Jun 1, 2024

@slawekjaranowski I think this issue can be closed now that #432 is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants