Removing rpm build option from apex-pdp 26/89526/1
authorramverma <ram.krishna.verma@est.tech>
Thu, 6 Jun 2019 14:44:52 +0000 (14:44 +0000)
committerramverma <ram.krishna.verma@est.tech>
Thu, 6 Jun 2019 14:44:52 +0000 (14:44 +0000)
Removing the commented rpm profile from pom of apex-pdp-package-full as
the rpm build is no longer needed. Also, in ONAP build servers the rpm
package is missing which leads to build failure.
However, I have created a wiki under Policy R5 collboration area to
document the steps needed to generate a rpm build if needed in fture.

Change-Id: Ie3703f7bcf7b07d23c2d9de813583c29ea2af720
Issue-ID: POLICY-1121
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
packages/apex-pdp-package-full/pom.xml

index 9fb9444..d0a2c15 100644 (file)
@@ -1,6 +1,7 @@
 <!--
   ============LICENSE_START=======================================================
    Copyright (C) 2018 Ericsson. All rights reserved.
+   Modifications Copyright (C) 2019 Nordix Foundation
   ================================================================================
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
                                 </artifactItem>
                                 <artifactItem>
                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
-                                 <artifactId>examples-onap-bbs</artifactId>
+                                    <artifactId>examples-onap-bbs</artifactId>
                                     <version>${project.version}</version>
                                     <type>jar</type>
                                     <overWrite>false</overWrite>
         </plugins>
     </build>
     <profiles>
-        <profile>
-            <id>Linux</id>
-            <activation>
-                <os>
-                    <family>Linux</family>
-                </os>
-            </activation>
-            <build>
-                <plugins>
-                    <!-- Build the rpm distribution -->
-                    <!-- Skiping RPM Build for now, due to rpmbuild package not available on Jenkins servers -->
- <!--                    <plugin>
-                        <groupId>org.codehaus.mojo</groupId>
-                        <artifactId>rpm-maven-plugin</artifactId>
-                        <version>2.2.0</version>
-                        <extensions>true</extensions>
-                        <executions>
-                            <execution>
-                                <phase>package</phase>
-                                <goals>
-                                    <goal>rpm</goal>
-                                </goals>
-                            </execution>
-                        </executions>
-                        <configuration>
-                            <name>${project.artifactId}</name>
-                            <copyright>2015 Ericsson AB All rights reserved</copyright>
-                            <distribution>${project.parent.artifactId}</distribution>
-                            <group>ERI-APEX</group>
-                            <packager>Ericsson</packager>
-                            <prefix>/opt/app/policy/apex-pdp</prefix>
-                            <changelogFile>src/rpm/changelog</changelogFile>
-                            <needarch>noarch</needarch>
-                            <targetVendor>redhat</targetVendor>
-                            <targetOS>linux</targetOS>
-                            <version>${project.version}</version>
-                            <defineStatements>
-                                <defineStatement>install_dir /opt/app/policy/apex-pdp</defineStatement>
-                            </defineStatements>
-                            <mappings>
-                                <mapping>
-                                    <directory>/opt/app/policy/${project.artifactId}-${project.version}/lib</directory>
-                                    <username>root</username>
-                                    <groupname>root</groupname>
-                                    <sources>
-                                        <source>
-                                            <location>${project.build.directory}/install_hierarchy/lib</location>
-                                        </source>
-                                    </sources>
-                                </mapping>
-                                <mapping>
-                                    <directory>/opt/app/policy/${project.artifactId}-${project.version}/bin</directory>
-                                    <username>root</username>
-                                    <groupname>root</groupname>
-                                    <sources>
-                                        <source>
-                                            <location>${project.build.directory}/install_hierarchy/bin</location>
-                                        </source>
-                                    </sources>
-                                </mapping>
-                                <mapping>
-                                    <directory>/opt/app/policy/${project.artifactId}-${project.version}/etc</directory>
-                                    <username>root</username>
-                                    <groupname>root</groupname>
-                                    <sources>
-                                        <source>
-                                            <location>${project.build.directory}/install_hierarchy/etc</location>
-                                        </source>
-                                    </sources>
-                                </mapping>
-                                <mapping>
-                                    <directory>/opt/app/policy/${install.package.name}-${project.version}/war</directory>
-                                    <username>root</username>
-                                    <groupname>root</groupname>
-                                    <sources>
-                                        <source>
-                                            <location>${project.build.directory}/install_hierarchy/war</location>
-                                        </source>
-                                    </sources>
-                                </mapping>
-                                <mapping>
-                                    <directory>/opt/app/policy/${project.artifactId}-${project.version}/examples</directory>
-                                    <username>root</username>
-                                    <groupname>root</groupname>
-                                    <sources>
-                                        <source>
-                                            <location>${project.build.directory}/install_hierarchy/examples</location>
-                                        </source>
-                                    </sources>
-                                </mapping>
-                            </mappings>
-                            <preinstallScriptlet>
-                                <scriptFile>src/main/package/control/preinst</scriptFile>
-                            </preinstallScriptlet>
-                            <postinstallScriptlet>
-                                <scriptFile>src/main/package/control/postinst</scriptFile>
-                            </postinstallScriptlet>
-                            <preremoveScriptlet>
-                                <scriptFile>src/main/package/control/prerm</scriptFile>
-                            </preremoveScriptlet>
-                            <postremoveScriptlet>
-                                <scriptFile>src/main/package/control/postrm</scriptFile>
-                            </postremoveScriptlet>
-                        </configuration>
-                    </plugin>
-                    <plugin>
-                        <groupId>org.codehaus.mojo</groupId>
-                        <artifactId>exec-maven-plugin</artifactId>
-                        <executions>
-                            <execution>
-                                <phase>package</phase>
-                                <goals>
-                                    <goal>exec</goal>
-                                </goals>
-                            </execution>
-                        </executions>
-                        <configuration>
-                            <executable>sh</executable>
-                            <arguments>
-                                <argument>-c</argument>
-                                <argument>cp \
-                                    ${project.build.directory}/rpm/${project.artifactId}/RPMS/noarch/${project.artifactId}-${project.version}*.noarch.rpm \
-                                    \
-                                    ${project.build.directory}/${project.artifactId}-${project.version}.rpm</argument>
-                            </arguments>
-                        </configuration>
-                    </plugin>
-                    <plugin>
-                        <groupId>org.codehaus.mojo</groupId>
-                        <artifactId>build-helper-maven-plugin</artifactId>
-                        <version>3.0.0</version>
-                        <executions>
-                            <execution>
-                                <id>attach-artifacts</id>
-                                <phase>package</phase>
-                                <goals>
-                                    <goal>attach-artifact</goal>
-                                </goals>
-                                <configuration>
-                                    <artifacts>
-                                        <artifact>
-                                            <file>${project.build.directory}/${project.artifactId}-${project.version}.rpm</file>
-                                            <type>rpm</type>
-                                        </artifact>
-                                    </artifacts>
-                                </configuration>
-                            </execution>
-                        </executions>
-                    </plugin> -->
-                </plugins>
-            </build>
-        </profile>
         <profile>
             <id>only-eclipse</id>
             <activation>