Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-2518

ProfileBuilder does not allow to set a build to set a default build etc

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 2.20.0.Final
    • Build Tools - Maven

      I need to add a maven profile to the maven pom using jboss forge

              Profile profile = MavenHelpers.findProfile(pom, "f8-build");
              if (profile == null) {
                  //profile = ProfileBuilder.create().setId("f8-build").
                  profile = new Profile();
                  profile.setId("f8-build");
                  Build build = new Build();
                  build.setDefaultGoal("clean install docker:build fabric8:json");
                  profile.setBuild(build);
                  maven.getModel().addProfile(profile);
              }
      

      I tried using the org.jboss.forge.addon.maven.profiles.ProfileBuilder but it does not allow to configure the build where I need to set the default goal.

      The profile should look like

       <profile>
            <id>f8-build</id>
            <build>
              <defaultGoal>clean install docker:build fabric8:json</defaultGoal>
            </build>
          </profile>
      

              Unassigned Unassigned
              cibsen@redhat.com Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: