logo Maven P2 Profile Generation Plugin

homepage:
fresh index:
last release: 4 months ago, first release: 1 decade ago
packaging: maven-plugin
get this artifact from: central wso2
see this artifact on: search.maven.org


Display vulnerabilities (snyk): Vulnerability check

This chart shows how much is this artifact used as a dependency in other Maven artifacts in Central repository and GitHub:


select version:

Add this snippet into pom.xml inside tag <project><build><plugins>:




Switch to artifact.
goals:
carbon-p2:materialize-product
carbon-p2:p2-feature-gen (phase: package)

Write environment information for the current build to file.

carbon-p2:p2-profile-gen (phase: package)

Write environment information for the current build to file.

carbon-p2:p2-repo-gen (phase: package)

Write environment information for the current build to file.

carbon-p2:publish-product

Often used code snippets:

<plugin>
  <groupId>org.wso2.maven</groupId>
  <artifactId>carbon-p2-plugin</artifactId>
  <executions>
    <execution>
      <id>4-p2-feature-generation</id>
      <phase>package</phase>
      <goals>
        <goal>p2-feature-gen</goal>
      </goals>
      <configuration>
        <id>org.wso2.carbon.apimgt.scxml</id>
        <propertiesFile>../../etc/feature.properties</propertiesFile>
        <adviceFile>
          <properties>
            <propertyDef>org.wso2.carbon.p2.category.type:server
                                    </propertyDef>
            <propertyDef>org.eclipse.equinox.p2.type.group:false
                                    </propertyDef>
          </properties>
        </adviceFile>
        <bundles>
          <bundleDef>commons-scxml.wso2:commons-scxml:${commons.scxml.version}</bundleDef>
        </bundles>
      </configuration>
    </execution>
  </executions>
</plugin>
<plugin>
  <groupId>org.wso2.maven</groupId>
  <artifactId>carbon-p2-plugin</artifactId>
  <version>${carbon.p2.plugin.version}</version>
  <executions>
    <execution>
      <id>4-p2-feature-generation</id>
      <phase>package</phase>
      <goals>
        <goal>p2-feature-gen</goal>
      </goals>
      <configuration>
        <id>org.wso2.carbon.claim.mgt</id>
        <propertiesFile>../../etc/feature.properties</propertiesFile>
        <includedFeatures>
          <includedFeatureDef>org.wso2.carbon.identity.framework:org.wso2.carbon.claim.mgt.server.feature
                                </includedFeatureDef>
          <includedFeatureDef>org.wso2.carbon.identity.framework:org.wso2.carbon.claim.mgt.ui.feature
                                </includedFeatureDef>
        </includedFeatures>
      </configuration>
    </execution>
  </executions>
</plugin>
<plugin>
  <groupId>org.wso2.maven</groupId>
  <artifactId>carbon-p2-plugin</artifactId>
  <version>${carbon.p2.plugin.version}</version>
  <executions>
    <execution>
      <id>p2-feature-generation</id>
      <phase>package</phase>
      <goals>
        <goal>p2-feature-gen</goal>
      </goals>
      <configuration>
        <id>org.wso2.carbon.directory.service.mgr</id>
        <propertiesFile>../../etc/feature.properties</propertiesFile>
        <includedFeatures>
          <includedFeatureDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.directory.service.mgr.server.feature
                                </includedFeatureDef>
          <includedFeatureDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.directory.service.mgr.ui.feature
                                </includedFeatureDef>
        </includedFeatures>
      </configuration>
    </execution>
  </executions>
</plugin>
<plugin>
  <groupId>org.wso2.maven</groupId>
  <artifactId>carbon-p2-plugin</artifactId>
  <version>${carbon.p2.plugin.version}</version>
  <executions>
    <execution>
      <id>4-p2-feature-generation</id>
      <phase>package</phase>
      <goals>
        <goal>p2-feature-gen</goal>
      </goals>
      <configuration>
        <id>org.wso2.carbon.identity.core</id>
        <propertiesFile>../../etc/feature.properties</propertiesFile>
        <includedFeatures>
          <includedFeatureDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.core.server.feature
                                </includedFeatureDef>
          <includedFeatureDef>org.wso2.carbon.identity.framework:org.wso2.carbon.identity.core.ui.feature
                                </includedFeatureDef>
        </includedFeatures>
      </configuration>
    </execution>
  </executions>
</plugin>
<plugin>
  <groupId>org.wso2.maven</groupId>
  <artifactId>carbon-p2-plugin</artifactId>
  <version>${carbon.p2.plugin.version}</version>
  <executions>
    <execution>
      <id>4-p2-feature-generation</id>
      <phase>package</phase>
      <goals>
        <goal>p2-feature-gen</goal>
      </goals>
      <configuration>
        <id>org.wso2.carbon.identity.user.profile</id>
        <propertiesFile>../../etc/feature.properties</propertiesFile>
        <includedFeatures>
          <includedFeatureDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.user.profile.server.feature
                                </includedFeatureDef>
          <includedFeatureDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.user.profile.ui.feature
                                </includedFeatureDef>
        </includedFeatures>
      </configuration>
    </execution>
  </executions>
</plugin>

© Jiri Pinkas 2015 - 2022. All rights reserved! Admin login To submit bugs / feature requests please use this github page
related: JavaVids | Top Java Blogs | Java školení
Apache and Apache Maven are trademarks of the Apache Software Foundation. The Central Repository is a service mark of Sonatype, Inc.