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

jib-maven-plugin is hardcoding the webappDirectory path for war plugins #1487

Open
susp248 opened this issue Feb 18, 2019 · 2 comments
Open

Comments

@susp248
Copy link

susp248 commented Feb 18, 2019

Description of the issue:
The current implementation is assuming that the web app is always residing in ${project.build.directory}/${project.build.finalName} which is only the default value.

This path is actually configurable per configuration parameter so jib should not rely on this.

Steps to reproduce:
Specify a configuration parameter in the maven-war-plugin.

Expected behavior:

The should be made configurable in the jib-configuration.

Environment: Maven

Additional Information:

@chanseokoh
Copy link
Member

chanseokoh commented Feb 19, 2019

Hi @susp248,

Thanks for opening the issue. We're aware that the WAR (and the exploded WAR) path is configurable with maven-war-plugin and have left the comment in the code.

    // TODO explode the WAR file rather than using this directory. The contents of the final WAR may
    // be different from this directory (it's possible to include or exclude files when packaging a
    // WAR). Also the exploded WAR directory is configurable with <webappDirectory> and may not be
    // at build.getFinalName().

The should be made configurable in the jib-configuration.

However, I don't think this should be made configurable in Jib. Jib can get the value from maven-war-plugin, so no need to make it configurable on the Jib side.

@chanseokoh
Copy link
Member

chanseokoh commented Feb 19, 2019

When we unpack the WAR (#1091), for the final WAR file location, maybe we should read <outputDirectory> (which defaults to target/) instead of <webappDirectory>.

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

No branches or pull requests

4 participants