Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Liberty dev mode integration #359

Closed
wants to merge 15 commits into from

Conversation

awisniew90
Copy link
Member

  1. Allow users to set boost properties in maven pom
  2. Collect boost properties once at the beginning of mojo execution
  3. Have Liberty generate config variables rather than bootstrap.properties
  4. Change Liberty server name from BoostServer to defaultServer
  5. Move password encryption to LibertyServerConfigGenerator (since Liberty specific)

Signed-off-by: Scott Kurz <skurz@us.ibm.com>
Signed-off-by: Scott Kurz <skurz@us.ibm.com>
Signed-off-by: Scott Kurz <skurz@us.ibm.com>
Signed-off-by: Scott Kurz <skurz@us.ibm.com>
Signed-off-by: Scott Kurz <skurz@us.ibm.com>
Signed-off-by: Scott Kurz <skurz@us.ibm.com>
Signed-off-by: Scott Kurz <skurz@us.ibm.com>
Copy link
Contributor

@scottkurz scottkurz left a comment

Choose a reason for hiding this comment

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

Started making comments, then tried to run it and started making fixes. I first needed these changes: https://github.com/scottkurz/boost-maven/tree/dev_proto_2 plus a ci.maven workaround: https://github.com/scottkurz/ci.maven/tree/488-workaround

The one other issue I still see: checkPropertiesTest in Db2PasswordAesIT/Db2PropertiesIT should be reading vars now not bootstrap.properties.

ServiceLoader<RuntimeI> runtimes = ServiceLoader.load(RuntimeI.class, projectClassLoader);
if (!runtimes.iterator().hasNext()) {

RuntimeI runtime = null;
Copy link
Contributor

Choose a reason for hiding this comment

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

indentation/formatting?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

private final ExecutionEnvironment env;
private final MavenProject project;
private final Plugin mavenDepPlugin;

private final String serverName = "BoostServer";
private final String serverName = "defaultServer";
Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah...good idea.

@@ -21,7 +22,7 @@
@BoosterCoordinates(AbstractBoosterConfig.BOOSTERS_GROUP_ID + ":cdi")
public class CDIBoosterConfig extends AbstractBoosterConfig {

public CDIBoosterConfig(Map<String, String> dependencies, BoostLoggerI logger) throws BoostException {
public CDIBoosterConfig(Map<String, String> dependencies, Properties boostProperties, BoostLoggerI logger) throws BoostException {
Copy link
Contributor

Choose a reason for hiding this comment

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

Cross-cutting comment: Since most BoosterConfig(s) don't use all of these.. maybe we should wrap all these in a new BoostConfiguration type object so we only have to change that once, and then change the places that actually use specific getters. So the next change doesn't hit so many files

Copy link
Member Author

Choose a reason for hiding this comment

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

Added this in

@awisniew90
Copy link
Member Author

@scottkurz - I created a BoosterConfigParams class to use when passing parameters to BoosterConfig classes (rather than the separate dependencies and properties). Fixed DB2 tests as well.

@scottkurz scottkurz mentioned this pull request Sep 4, 2019
@@ -1,4 +1,4 @@
#Using profiles to configure failsafe to run certain tests
invoker.goals.1 = clean install -PnoEncoding -Dboost.db.databaseName=myCustomDB -Dboost.db.user=user -Dboost.db.password=password -Dboost.aes.key=test
invoker.goals.1 = clean install
Copy link
Contributor

Choose a reason for hiding this comment

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

Did we lose some coverage here?

@scottkurz
Copy link
Contributor

Resolved by #361 so closing this as dup.

@scottkurz scottkurz closed this Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants