summaryrefslogtreecommitdiffstats
path: root/packages/apex-pdp-package-full/pom.xml
diff options
context:
space:
mode:
authorramverma <ram.krishna.verma@est.tech>2019-06-06 14:44:52 +0000
committerramverma <ram.krishna.verma@est.tech>2019-06-06 14:44:52 +0000
commit42e492682bfed635e24db7b2924ee05b7c3b5ca8 (patch)
treef92331955fd61be1257544e964a869f80a3c12b0 /packages/apex-pdp-package-full/pom.xml
parented9914a179bff14a4bab4abd9f8cbae506edf2d2 (diff)
Removing rpm build option from apex-pdp
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>
Diffstat (limited to 'packages/apex-pdp-package-full/pom.xml')
-rw-r--r--packages/apex-pdp-package-full/pom.xml155
1 files changed, 2 insertions, 153 deletions
diff --git a/packages/apex-pdp-package-full/pom.xml b/packages/apex-pdp-package-full/pom.xml
index 9fb9444b6..d0a2c15bc 100644
--- a/packages/apex-pdp-package-full/pom.xml
+++ b/packages/apex-pdp-package-full/pom.xml
@@ -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.
@@ -405,7 +406,7 @@
</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>
@@ -618,158 +619,6 @@
</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>
<property>