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

feat: add maven-container plugin type #609

Merged
merged 1 commit into from
Mar 8, 2019
Merged

Conversation

edvald
Copy link
Collaborator

@edvald edvald commented Mar 8, 2019

Pushing this a little early, to support a customer. We'll want to add an example for this, and some further documentation.

This plugin is a specialised version of the container plugin, that adds a couple of parameters, and a pre-build step ahead of building the actual container. The motivation being that it's very difficult and/or prohibitively slow to build large Java projects inside containers, especially if they're organised in a way that doesn't jive with typical docker build context layouts.

Copy link
Collaborator

@thsig thsig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just one minor cleanup comment.

const mvnCmdStr = "mvn " + mvnArgs.join(" ")

log.setState(`Creating jar artifact...`)
await mvn(ctx.projectRoot, [
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use mvnArgs here instead.

@edvald edvald force-pushed the maven-container-plugin branch from 2304c66 to 7414898 Compare March 8, 2019 14:24
@edvald edvald merged commit a9f15d0 into master Mar 8, 2019
@edvald edvald deleted the maven-container-plugin branch March 8, 2019 14:32
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 this pull request may close these issues.

2 participants