Skip to content

Default URI doesn't support spaces in path #51

@cazzoo

Description

@cazzoo

Hello,

I'm currently using the plugin to package and upload to remote repository my helm chart but I encountered an annoying issue:
Package goal doesn't allow us to have chartTargetUri with spaces included.

Here is my plugin configuration :

<plugin>
    <groupId>org.microbean</groupId>
    <artifactId>helm-maven-plugin</artifactId>
    <executions>
        <execution>
            <id>helm-package</id>
            <phase>generate-sources</phase>
            <goals>
                <goal>package</goal>
            </goals>
            <configuration>
                <chartContentsUri>file:${project.basedir}/src/helm/charts</chartContentsUri>
                <chartTargetUri>file:${project.build.directory}/${project.artifactId}.tgz</chartTargetUri>
            </configuration>
        </execution>
    </executions>
</plugin>

With project.build.directory which is "/opt/jenkins/jenkins_home/workspace/FMCP - API Gateway/helm/src/helm/charts".

My error log is :

[ERROR] Failed to execute goal org.microbean:helm-maven-plugin:2.8.2.1.1.2:package (helm-package) on project api-gateway-helm: Unable to parse configuration of mojo org.microbean:helm-maven-plugin:2.8.2.1.1.2:package for parameter chartTargetUri: Cannot convert 'file:/opt/jenkins/jenkins_home/workspace/FMCP - API Gateway/helm/target/api-gateway-helm.tgz' to URI: Illegal character in path at index 45: file:/opt/jenkins/jenkins_home/workspace/FMCP - API Gateway/helm/target/api-gateway-helm.tgz -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginConfigurationException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :api-gateway-helm

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions