This documentation is for WSO2 Carbon version 4.1.0. View documentation for the latest release.

Unknown macro: {next_previous_link3}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

After a kernel public patch is released, the respective product team should follow the following steps to add the patches to the product distribution, if a product that is based on Carbon 4.1.0 kernel needs to ship the patch by default.


To ship a kernel patch with a product distribution:
  1. Add the patch to the respective product distribution build. Follow the identical process that you use to add a Carbon kernel distribution (wso2carbon-core-<version>.zip) to a product distribution using the maven dependency plug-in. 
     
    Example:

    <!-- Unzipping WSO2-CARBON-PATCH-4.1.0-0001-->
           <execution>
                    <id>unpack-kernel-patch</id>
                     <phase>test</phase>
                      <goals>
                            <goal>unpack</goal>
                      </goals>
                      <configuration>
                                <artifactItems>
                                    <artifactItem>
                                        <groupId>org.wso2.carbon</groupId>
                                        <artifactId>WSO2-CARBON-PATCH-4.1.0</artifactId>
                                        <version>0001</version>
                                        <type>zip</type>
                                        <overWrite>true</overWrite>
                                        <outputDirectory>target</outputDirectory>
                                    </artifactItem>
                                </artifactItems>
                     </configuration>
            </execution>

      

  2. Make sure that when the distribution gets built for a product, the libraries/jars in the patch directory (e.g., patch0xxx) gets copied to the

    {CARBON_HOME}/repository/components/patches/patch0xxx directory. 
     
    Example:

      <!-- Copying WSO2-CARBON-PATCH-4.1.0-0001 files to the patches directory-->
           <fileSet>
                 <directory>../p2-profile-gen/target/WSO2-CARBON-PATCH-4.1.0-0001</directory>
                 <outputDirectory>wso2as-${pom.version}/repository/components/patches/</outputDirectory>
                 <includes>
                      <include>**/patch0001/*.*</include>
                 </includes>
            </fileSet>


  • No labels