maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stijnkoopal <>
Subject Maven plugin plugin with Jenkins job containing / (slash)
Date Wed, 20 Jul 2016 08:43:59 GMT

Currently we are using jgitflow maven plugin that generates git branches for
us. These git branches are named /feature/some-name-here/. Furthermore, we
are using jenkins to build our repos. Specifically, we are using the sync
plugin which generates jobs based on git branches. 

The jenkins jobs that are generated by the sync plugin are named after the
branch name. So for a feature branch, the name /feature/some-name-here/ is
created. The problem now is that when a feature branch contains a
maven-plugin (backed by maven-plugin-plugin in the build section of the
pom), an exception is thrown during the jenkins build:
java.lang.RuntimeException: Cannot read file : Locally all is
working perfectly.

If we replace slash in the name of the jenkins job to dash (-), then all is



import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;

@Mojo(name = "test")
public class TestMojo extends AbstractMojo {
    public void execute() throws MojoExecutionException,
MojoFailureException {

Should I file a jira ticket for this issue?

View this message in context:
Sent from the Maven - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message