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

new kie-server-maven-plugin project : deploy, dispose and replace #1063

Merged
merged 1 commit into from
Aug 2, 2017
Merged

new kie-server-maven-plugin project : deploy, dispose and replace #1063

merged 1 commit into from
Aug 2, 2017

Conversation

fax4ever
Copy link
Contributor

for unmanaged (direct process server) deploy.

fixing license header
kie-server context path is now configurable
deploy runtime strategy is now configurable
rename replace goal in update

@kie-ci
Copy link

kie-ci commented Jul 25, 2017

Can one of the admins verify this PR? Comment with 'ok to test' to start the build.

3 similar comments
@kie-ci
Copy link

kie-ci commented Jul 25, 2017

Can one of the admins verify this PR? Comment with 'ok to test' to start the build.

@kie-ci
Copy link

kie-ci commented Jul 25, 2017

Can one of the admins verify this PR? Comment with 'ok to test' to start the build.

@kie-ci
Copy link

kie-ci commented Jul 25, 2017

Can one of the admins verify this PR? Comment with 'ok to test' to start the build.

Copy link
Contributor

@mswiderski mswiderski left a comment

Choose a reason for hiding this comment

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

looks really good. Do you mind adding a Readme file describing it usage?

releaseId.setVersion(project.getVersion());
kieContainer.setReleaseId(releaseId);

KieServerConfigItem configItem = new KieServerConfigItem();
Copy link
Contributor

Choose a reason for hiding this comment

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

I am thinking that we should make this optional and add this config property when it is given otherwise it can easily replace one set in jar's deployment descriptor. wdyt?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Totally agree. The runtime strategy is on kie-deployment-descriptor.xml too, and it's the natural default value.

import org.apache.maven.plugins.annotations.Mojo;

/**
* Replace the k-jar artifact in existing container
Copy link
Contributor

Choose a reason for hiding this comment

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

Update instead of Replace :)

@mswiderski
Copy link
Contributor

ok to test

try {
client = KieServicesFactory.newKieServicesClient(config);
} catch (RuntimeException kieEx) {
throw new MojoFailureException("error on establish connection with remote server: " + kieEx.getMessage());
Copy link
Collaborator

Choose a reason for hiding this comment

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

Putting only a message from the original exception may lead to losing stacktrace - and the root cause. Could you rather incorporate the cause into the MojoFailureException, please?

<parent>
<groupId>org.kie.server</groupId>
<artifactId>kie-server-parent</artifactId>
<version>7.2.0-SNAPSHOT</version>
Copy link
Contributor

Choose a reason for hiding this comment

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

@fax4ever could you please update that to 8.0.0-SNAPSHOT as master was just moved to 8. Once it is merged we back port that to 7.2.x so it gets included in upcoming 7.2 community release

@mswiderski
Copy link
Contributor

@fax4ever really nice Readme, thanks!

@mswiderski
Copy link
Contributor

Jenkins retest this

@kie-ci
Copy link

kie-ci commented Jul 26, 2017

Can one of the admins verify this PR? Comment with 'ok to test' to start the build.

1 similar comment
@kie-ci
Copy link

kie-ci commented Jul 26, 2017

Can one of the admins verify this PR? Comment with 'ok to test' to start the build.

@mswiderski
Copy link
Contributor

Jenkins retest this

@kiegroup kiegroup deleted a comment from kie-ci Jul 28, 2017
Copy link
Contributor

@mswiderski mswiderski left a comment

Choose a reason for hiding this comment

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

great work @fax4ever

@mswiderski mswiderski merged commit 65c74bc into kiegroup:master Aug 2, 2017
mswiderski pushed a commit to mswiderski/droolsjbpm-integration that referenced this pull request Aug 2, 2017
mswiderski pushed a commit to mswiderski/droolsjbpm-integration that referenced this pull request Aug 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants