You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by dm...@apache.org on 2014/03/19 22:52:03 UTC
[1/2] git commit: Revert "Revert due to unit test failures.
"AMBARI-4934. Provide deb packages for Ambari server and Agents (Vitaliy
Semenyk via dlysnichenko)""
Repository: ambari
Updated Branches:
refs/heads/trunk 58064a862 -> 93e32e31d
Revert "Revert due to unit test failures. "AMBARI-4934. Provide deb packages for Ambari server and Agents (Vitaliy Semenyk via dlysnichenko)""
This reverts commit 58064a862e08e327c119100c3964aba02e7fe6ac.
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/fc1ba0b4
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/fc1ba0b4
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/fc1ba0b4
Branch: refs/heads/trunk
Commit: fc1ba0b4af5f29a62b7e5e1c563663757a54a0b7
Parents: 58064a8
Author: Lisnichenko Dmitro <dl...@hortonworks.com>
Authored: Wed Mar 19 23:42:13 2014 +0200
Committer: Lisnichenko Dmitro <dl...@hortonworks.com>
Committed: Wed Mar 19 23:42:13 2014 +0200
----------------------------------------------------------------------
ambari-agent/pom.xml | 190 ++++++++-
.../src/main/package/deb/control/control | 22 +
.../src/main/package/deb/control/postinst | 34 ++
.../src/main/package/deb/control/postrm | 24 ++
.../src/main/package/deb/control/posttrm | 15 +
.../src/main/package/deb/control/preinst | 27 ++
ambari-agent/src/main/package/deb/control/prerm | 33 ++
ambari-client/pom.xml | 25 ++
.../src/main/package/deb/control/control | 21 +
.../src/main/package/deb/control/postinst | 15 +
.../src/main/package/deb/control/postrm | 15 +
.../src/main/package/deb/control/posttrm | 15 +
.../src/main/package/deb/control/preinst | 15 +
.../src/main/package/deb/control/prerm | 15 +
ambari-project/pom.xml | 16 +
.../src/main/package/deb/control/control | 21 +
.../src/main/package/deb/control/postinst | 15 +
.../src/main/package/deb/control/postrm | 15 +
.../src/main/package/deb/control/posttrm | 15 +
.../src/main/package/deb/control/preinst | 15 +
.../src/main/package/deb/control/prerm | 15 +
ambari-server/pom.xml | 399 ++++++++++++++++++-
.../src/main/package/deb/control/control | 22 +
.../src/main/package/deb/control/postinst | 30 ++
.../src/main/package/deb/control/postrm | 15 +
.../src/main/package/deb/control/posttrm | 15 +
.../src/main/package/deb/control/preinst | 22 +
.../src/main/package/deb/control/prerm | 40 ++
ambari-views/pom.xml | 16 +
.../src/main/package/deb/control/control | 21 +
.../src/main/package/deb/control/postinst | 15 +
.../src/main/package/deb/control/postrm | 15 +
.../src/main/package/deb/control/posttrm | 15 +
.../src/main/package/deb/control/preinst | 15 +
ambari-views/src/main/package/deb/control/prerm | 15 +
ambari-web/pom.xml | 18 +-
pom.xml | 30 +-
37 files changed, 1267 insertions(+), 14 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-agent/pom.xml
----------------------------------------------------------------------
diff --git a/ambari-agent/pom.xml b/ambari-agent/pom.xml
index 600d17d..352789a 100644
--- a/ambari-agent/pom.xml
+++ b/ambari-agent/pom.xml
@@ -45,6 +45,10 @@
<ruby.tar>http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.15/repos/centos6/ruby-1.8.7-p370.tar.gz</ruby.tar>
<lib.dir>/usr/lib/ambari-agent/lib</lib.dir>
<python.ver>python >= 2.6</python.ver>
+ <deb.python.ver>python (>= 2.6)</deb.python.ver>
+ <deb.architecture>amd64</deb.architecture>
+ <deb.dependency.list>openssl, zlibc, ${deb.python.ver}</deb.dependency.list>
+
<ambari.server.module>../ambari-server</ambari.server.module>
<target.cache.dir>${project.build.directory}/cache/</target.cache.dir>
<resource.keeper.script>${ambari.server.module}/src/main/python/ambari_server/resourceFilesKeeper.py</resource.keeper.script>
@@ -372,6 +376,162 @@
</configuration>
</plugin>
<plugin>
+ <groupId>org.vafer</groupId>
+ <artifactId>jdeb</artifactId>
+ <version>1.0.1</version>
+ <executions>
+ <execution>
+ <phase>none</phase>
+ <goals>
+ <goal>jdeb</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <dataSet>
+ <data>
+ <src>${project.build.directory}/${project.artifactId}-${project.version}/ambari_agent</src>
+ <type>directory</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>${agent.install.dir}</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>${project.build.directory}/${project.artifactId}-${project.version}/resource_management</src>
+ <type>directory</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>${resmgmt.install.dir}</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>${project.build.directory}/lib</src>
+ <type>directory</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>${lib.dir}</prefix>
+ <user>root</user>
+ <group>root</group>
+ <filemode>755</filemode>
+ </mapper>
+ </data>
+ <data>
+ <src>${project.basedir}/../ambari-common/src/main/python/jinja2/jinja2</src>
+ <excludes>${project.basedir}/../ambari-common/src/main/python/jinja2/jinja2/testsuite</excludes>
+ <type>directory</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>${jinja.install.dir}</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>src/examples</src>
+ <type>directory</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>${lib.dir}/examples</prefix>
+ <user>root</user>
+ <group>root</group>
+ <filemode>755</filemode>
+ </mapper>
+ </data>
+ <data>
+ <src>src/main/puppet</src>
+ <type>directory</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/${project.artifactId}/puppet</prefix>
+ <user>root</user>
+ <group>root</group>
+ <filemode>755</filemode>
+ </mapper>
+ </data>
+ <data>
+ <src>conf/unix/ambari-agent.ini</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/etc/ambari-agent/conf</prefix>
+ <user>root</user>
+ <group>root</group>
+ <filemode>755</filemode>
+ </mapper>
+ </data>
+ <data>
+ <src>${basedir}/target/src/ambari-agent</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/usr/sbin</prefix>
+ <user>root</user>
+ <group>root</group>
+ <filemode>755</filemode>
+ </mapper>
+ </data>
+ <data>
+ <src>conf/unix/ambari-env.sh</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-agent</prefix>
+ <user>root</user>
+ <group>root</group>
+ <filemode>700</filemode>
+ </mapper>
+ </data>
+ <data>
+ <type>template</type>
+ <paths>
+ <path>${package.pid.dir}</path>
+ <path>/var/lib/${project.artifactId}/data</path>
+ <path>/var/lib/${project.artifactId}/keys</path>
+ <path>${package.log.dir}</path>
+ </paths>
+ <mapper>
+ <type>perm</type>
+ <user>root</user>
+ <group>root</group>
+ <filemode>755</filemode>
+ </mapper>
+ </data>
+ <data>
+ <src>etc/init.d/ambari-agent</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/etc/init.d</prefix>
+ <user>root</user>
+ <group>root</group>
+ <filemode>755</filemode>
+ </mapper>
+ </data>
+ <data>
+ <src>${basedir}/target/src/version</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/${project.artifactId}/data</prefix>
+ <user>root</user>
+ <group>root</group>
+ <filemode>755</filemode>
+ </mapper>
+ </data>
+ <data>
+ <src>${target.cache.dir}</src>
+ <type>directory</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-agent/cache</prefix>
+ <user>root</user>
+ <group>root</group>
+ <filemode>755</filemode>
+ </mapper>
+ </data>
+ </dataSet>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>com.github.goldin</groupId>
<artifactId>copy-maven-plugin</artifactId>
<version>0.2.5</version>
@@ -428,6 +588,32 @@
</resources>
</configuration>
</execution>
+ <execution>
+ <id>copy-resources-filter</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${basedir}/target/src</outputDirectory>
+ <resources>
+ <resource>
+ <directory>conf/unix</directory>
+ <includes>
+ <include>ambari-agent</include>
+ </includes>
+ <filtering>true</filtering>
+ </resource>
+ <resource>
+ <directory>..</directory>
+ <includes>
+ <include>version</include>
+ </includes>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
</executions>
</plugin>
<plugin>
@@ -451,7 +637,7 @@
<version>${buildnumber-maven-plugin-version}</version>
<configuration>
<urlScm>scm:git:https://git-wip-us.apache.org/repos/asf/incubator-ambari.git</urlScm>
- </configuration>
+ </configuration>
<executions>
<execution>
<phase>validate</phase>
@@ -460,7 +646,7 @@
</goals>
</execution>
</executions>
- </plugin>
+ </plugin>
</plugins>
<extensions>
<extension>
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-agent/src/main/package/deb/control/control
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/package/deb/control/control b/ambari-agent/src/main/package/deb/control/control
new file mode 100644
index 0000000..4ea7f6c
--- /dev/null
+++ b/ambari-agent/src/main/package/deb/control/control
@@ -0,0 +1,22 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
+Package: [[artifactId]]
+Version: [[version]]
+Section: [[deb.section]]
+Priority: [[deb.priority]]
+Depends: [[deb.dependency.list]]
+Architecture: [[deb.architecture]]
+Description: [[description]]
+Maintainer: [[deb.publisher]]
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-agent/src/main/package/deb/control/postinst
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/package/deb/control/postinst b/ambari-agent/src/main/package/deb/control/postinst
new file mode 100644
index 0000000..c40cb62
--- /dev/null
+++ b/ambari-agent/src/main/package/deb/control/postinst
@@ -0,0 +1,34 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
+
+if [ "$1" == "configure" ]; # Action is install
+then
+ update-rc.d ambari-agent defaults
+fi
+
+
+chmod 755 /usr/lib/ambari-agent/lib/facter-1.6.10/bin/facter /usr/lib/ambari-agent/lib/puppet-2.7.9/bin/filebucket /usr/lib/ambari-agent/lib/puppet-2.7.9/bin/pi /usr/lib/ambari-agent/lib/puppet-2.7.9/bin/puppet /usr/lib/ambari-agent/lib/puppet-2.7.9/bin/puppetdoc /usr/lib/ambari-agent/lib/puppet-2.7.9/bin/ralsh /usr/lib/ambari-agent/lib/ruby-1.8.7-p370/bin/*
+
+BAK=/etc/ambari-agent/conf/ambari-agent.ini.old
+ORIG=/etc/ambari-agent/conf/ambari-agent.ini
+
+if [ -f $BAK ];
+then
+ SERV_HOST=`grep -e hostname\s*= $BAK | sed -r -e 's/hostname\s*=//' -e 's/\./\\\./g'`
+ sed -i -r -e "s/(hostname\s*=).*/\1$SERV_HOST/" $ORIG
+ rm $BAK -f
+fi
+exit 0
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-agent/src/main/package/deb/control/postrm
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/package/deb/control/postrm b/ambari-agent/src/main/package/deb/control/postrm
new file mode 100644
index 0000000..16d5b7c
--- /dev/null
+++ b/ambari-agent/src/main/package/deb/control/postrm
@@ -0,0 +1,24 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
+
+if [ "$1" == "upgrade" ]; # Action is upgrade
+then
+ if [ -d "/etc/ambari-agent/conf.save" ]
+ then
+ cp -f /etc/ambari-agent/conf.save/* /etc/ambari-agent/conf
+ mv /etc/ambari-agent/conf.save /etc/ambari-agent/conf_$(date '+%d_%m_%y_%H_%M').save
+ fi
+fi
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-agent/src/main/package/deb/control/posttrm
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/package/deb/control/posttrm b/ambari-agent/src/main/package/deb/control/posttrm
new file mode 100644
index 0000000..21a01fa
--- /dev/null
+++ b/ambari-agent/src/main/package/deb/control/posttrm
@@ -0,0 +1,15 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-agent/src/main/package/deb/control/preinst
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/package/deb/control/preinst b/ambari-agent/src/main/package/deb/control/preinst
new file mode 100644
index 0000000..017cf0a
--- /dev/null
+++ b/ambari-agent/src/main/package/deb/control/preinst
@@ -0,0 +1,27 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
+
+if [ -d "/etc/ambari-agent/conf.save" ]
+then
+ mv /etc/ambari-agent/conf.save /etc/ambari-agent/conf_$(date '+%d_%m_%y_%H_%M').save
+fi
+
+BAK=/etc/ambari-agent/conf/ambari-agent.ini.old
+ORIG=/etc/ambari-agent/conf/ambari-agent.ini
+
+[ -f $ORIG ] && mv -f $ORIG $BAK
+
+exit 0
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-agent/src/main/package/deb/control/prerm
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/package/deb/control/prerm b/ambari-agent/src/main/package/deb/control/prerm
new file mode 100644
index 0000000..dec2690
--- /dev/null
+++ b/ambari-agent/src/main/package/deb/control/prerm
@@ -0,0 +1,33 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
+
+# WARNING: This script is performed not only on uninstall, but also
+# during package update. See http://www.ibm.com/developerworks/library/l-rpm2/
+# for details
+
+if [ "$1" == "remove" ]; # Action is uninstall
+then
+ /usr/sbin/ambari-agent stop > /dev/null 2>&1
+ if [ -d "/etc/ambari-agent/conf.save" ]
+ then
+ mv /etc/ambari-agent/conf.save /etc/ambari-agent/conf_$(date '+%d_%m_%y_%H_%M').save
+ fi
+ mv /etc/ambari-agent/conf /etc/ambari-agent/conf.save
+
+ update-rc.d -f ambari-agent remove
+fi
+
+exit 0
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-client/pom.xml
----------------------------------------------------------------------
diff --git a/ambari-client/pom.xml b/ambari-client/pom.xml
index 1bd4c84..d80850e 100755
--- a/ambari-client/pom.xml
+++ b/ambari-client/pom.xml
@@ -146,6 +146,31 @@
</configuration>
</plugin>
<plugin>
+ <groupId>org.vafer</groupId>
+ <artifactId>jdeb</artifactId>
+ <version>1.0.1</version>
+ <executions>
+ <execution>
+ <phase>none</phase>
+ <goals>
+ <goal>jdeb</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <dataSet>
+ <data>
+ <src>${project.build.directory}/${project.artifactId}-${project.version}/ambari_client</src>
+ <type>directory</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>${install.dir}</prefix>
+ </mapper>
+ </data>
+ </dataSet>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<configuration>
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-client/src/main/package/deb/control/control
----------------------------------------------------------------------
diff --git a/ambari-client/src/main/package/deb/control/control b/ambari-client/src/main/package/deb/control/control
new file mode 100644
index 0000000..e37581a
--- /dev/null
+++ b/ambari-client/src/main/package/deb/control/control
@@ -0,0 +1,21 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
+Package: [[artifactId]]
+Version: [[version]]
+Section: [[deb.section]]
+Priority: [[deb.priority]]
+Architecture: [[deb.architecture]]
+Description: [[description]]
+Maintainer: [[deb.publisher]]
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-client/src/main/package/deb/control/postinst
----------------------------------------------------------------------
diff --git a/ambari-client/src/main/package/deb/control/postinst b/ambari-client/src/main/package/deb/control/postinst
new file mode 100644
index 0000000..21a01fa
--- /dev/null
+++ b/ambari-client/src/main/package/deb/control/postinst
@@ -0,0 +1,15 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-client/src/main/package/deb/control/postrm
----------------------------------------------------------------------
diff --git a/ambari-client/src/main/package/deb/control/postrm b/ambari-client/src/main/package/deb/control/postrm
new file mode 100644
index 0000000..21a01fa
--- /dev/null
+++ b/ambari-client/src/main/package/deb/control/postrm
@@ -0,0 +1,15 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-client/src/main/package/deb/control/posttrm
----------------------------------------------------------------------
diff --git a/ambari-client/src/main/package/deb/control/posttrm b/ambari-client/src/main/package/deb/control/posttrm
new file mode 100644
index 0000000..21a01fa
--- /dev/null
+++ b/ambari-client/src/main/package/deb/control/posttrm
@@ -0,0 +1,15 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-client/src/main/package/deb/control/preinst
----------------------------------------------------------------------
diff --git a/ambari-client/src/main/package/deb/control/preinst b/ambari-client/src/main/package/deb/control/preinst
new file mode 100644
index 0000000..21a01fa
--- /dev/null
+++ b/ambari-client/src/main/package/deb/control/preinst
@@ -0,0 +1,15 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-client/src/main/package/deb/control/prerm
----------------------------------------------------------------------
diff --git a/ambari-client/src/main/package/deb/control/prerm b/ambari-client/src/main/package/deb/control/prerm
new file mode 100644
index 0000000..21a01fa
--- /dev/null
+++ b/ambari-client/src/main/package/deb/control/prerm
@@ -0,0 +1,15 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-project/pom.xml
----------------------------------------------------------------------
diff --git a/ambari-project/pom.xml b/ambari-project/pom.xml
index 426a074..6d8c88a 100644
--- a/ambari-project/pom.xml
+++ b/ambari-project/pom.xml
@@ -81,6 +81,22 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.vafer</groupId>
+ <artifactId>jdeb</artifactId>
+ <version>1.0.1</version>
+ <executions>
+ <execution>
+ <phase>none</phase>
+ <goals>
+ <goal>jdeb</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <mappings/>
+ </configuration>
+ </plugin>
</plugins>
</build>
</profile>
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-project/src/main/package/deb/control/control
----------------------------------------------------------------------
diff --git a/ambari-project/src/main/package/deb/control/control b/ambari-project/src/main/package/deb/control/control
new file mode 100644
index 0000000..e37581a
--- /dev/null
+++ b/ambari-project/src/main/package/deb/control/control
@@ -0,0 +1,21 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
+Package: [[artifactId]]
+Version: [[version]]
+Section: [[deb.section]]
+Priority: [[deb.priority]]
+Architecture: [[deb.architecture]]
+Description: [[description]]
+Maintainer: [[deb.publisher]]
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-project/src/main/package/deb/control/postinst
----------------------------------------------------------------------
diff --git a/ambari-project/src/main/package/deb/control/postinst b/ambari-project/src/main/package/deb/control/postinst
new file mode 100644
index 0000000..21a01fa
--- /dev/null
+++ b/ambari-project/src/main/package/deb/control/postinst
@@ -0,0 +1,15 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-project/src/main/package/deb/control/postrm
----------------------------------------------------------------------
diff --git a/ambari-project/src/main/package/deb/control/postrm b/ambari-project/src/main/package/deb/control/postrm
new file mode 100644
index 0000000..21a01fa
--- /dev/null
+++ b/ambari-project/src/main/package/deb/control/postrm
@@ -0,0 +1,15 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-project/src/main/package/deb/control/posttrm
----------------------------------------------------------------------
diff --git a/ambari-project/src/main/package/deb/control/posttrm b/ambari-project/src/main/package/deb/control/posttrm
new file mode 100644
index 0000000..21a01fa
--- /dev/null
+++ b/ambari-project/src/main/package/deb/control/posttrm
@@ -0,0 +1,15 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-project/src/main/package/deb/control/preinst
----------------------------------------------------------------------
diff --git a/ambari-project/src/main/package/deb/control/preinst b/ambari-project/src/main/package/deb/control/preinst
new file mode 100644
index 0000000..21a01fa
--- /dev/null
+++ b/ambari-project/src/main/package/deb/control/preinst
@@ -0,0 +1,15 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-project/src/main/package/deb/control/prerm
----------------------------------------------------------------------
diff --git a/ambari-project/src/main/package/deb/control/prerm b/ambari-project/src/main/package/deb/control/prerm
new file mode 100644
index 0000000..21a01fa
--- /dev/null
+++ b/ambari-project/src/main/package/deb/control/prerm
@@ -0,0 +1,15 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-server/pom.xml
----------------------------------------------------------------------
diff --git a/ambari-server/pom.xml b/ambari-server/pom.xml
index 2a2407e..dbd5eb6 100644
--- a/ambari-server/pom.xml
+++ b/ambari-server/pom.xml
@@ -1,11 +1,11 @@
<?xml version="1.0"?>
-<!-- Licensed under the Apache License, Version 2.0 (the "License"); you
- may not use this file except in compliance with the License. You may obtain
- a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless
- required by applicable law or agreed to in writing, software distributed
- under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
- OR CONDITIONS OF ANY KIND, either express or implied. See the License for
- the specific language governing permissions and limitations under the License.
+<!-- Licensed under the Apache License, Version 2.0 (the "License"); you
+ may not use this file except in compliance with the License. You may obtain
+ a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless
+ required by applicable law or agreed to in writing, software distributed
+ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
+ OR CONDITIONS OF ANY KIND, either express or implied. See the License for
+ the specific language governing permissions and limitations under the License.
See accompanying LICENSE file. -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
@@ -25,6 +25,10 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<python.ver>python >= 2.6</python.ver>
+ <deb.python.ver>python (>= 2.6)</deb.python.ver>
+ <deb.architecture>amd64</deb.architecture>
+ <deb.dependency.list>openssl, postgresql (>= 8.1), ${deb.python.ver}</deb.dependency.list>
+
<custom.tests>false</custom.tests>
<hdpUrlForCentos6>http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.1.1.0</hdpUrlForCentos6>
<ambari-web-dir>${basedir}/../ambari-web/public</ambari-web-dir>
@@ -426,6 +430,348 @@
</configuration>
</plugin>
<plugin>
+ <groupId>org.vafer</groupId>
+ <artifactId>jdeb</artifactId>
+ <version>1.0.1</version>
+ <executions>
+ <execution>
+ <!-- unbinds rpm creation from maven lifecycle -->
+ <phase>none</phase>
+ <goals>
+ <goal>jdeb</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <dataSet>
+ <data>
+ <type>template</type>
+ <paths>
+ <path>/usr/lib/ambari-server</path>
+ <path>/var/run/ambari-server</path>
+ <path>/var/run/ambari-server/bootstrap</path>
+ <path>/var/log/ambari-server</path>
+ <path>/var/lib/ambari-server/resources/upgrade</path>
+ </paths>
+ </data>
+ <!-- TODO: should be included all subdirs, if exists-->
+ <data>
+ <src>${basedir}/../ambari-web/public</src>
+ <type>directory</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/usr/lib/ambari-server/web</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>${project.build.directory}/${project.artifactId}-${project.version}-dist/${project.artifactId}-${project.version}/lib</src>
+ <type>directory</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/usr/lib</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>src/main/python/ambari-server.py</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/usr/sbin</prefix>
+ <user>root</user>
+ <group>root</group>
+ <filemode>755</filemode>
+ </mapper>
+ </data>
+ <data>
+ <src>src/main/python/ambari-server.py</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/usr/sbin</prefix>
+ <user>root</user>
+ <group>root</group>
+ <filemode>755</filemode>
+ </mapper>
+ </data>
+ <data>
+ <src>${basedir}/target/src/ambari-server</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/usr/sbin</prefix>
+ <user>root</user>
+ <group>root</group>
+ <filemode>755</filemode>
+ </mapper>
+ </data>
+ <data>
+ <src>conf/unix/ambari.properties</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/etc/ambari-server/conf</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>conf/unix/log4j.properties</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/etc/ambari-server/conf</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>conf/unix/krb5JAASLogin.conf</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/etc/ambari-server/conf</prefix>
+ </mapper>
+ </data>
+ <!-- /q001 -->
+ <data>
+ <src>conf/unix/ambari-env.sh</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-server/</prefix>
+ <user>root</user>
+ <group>root</group>
+ <filemode>700</filemode>
+ </mapper>
+ </data>
+ <data>
+ <src>conf/unix/ca.config</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-server/keys</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>src/main/resources/db</src>
+ <type>directory</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-server/keys/db</prefix>
+ <user>root</user>
+ <group>root</group>
+ <filemode>700</filemode>
+ </mapper>
+ </data>
+ <data>
+ <src>target/classes/Ambari-DDL-Postgres-CREATE.sql</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-server/resources</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>src/main/resources/Ambari-DDL-Postgres-DROP.sql</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-server/resources</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>target/classes/Ambari-DDL-Postgres-REMOTE-CREATE.sql</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-server/resources</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>src/main/resources/Ambari-DDL-Postgres-REMOTE-DROP.sql</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-server/resources</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>target/classes/Ambari-DDL-Oracle-CREATE.sql</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-server/resources</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>target/classes/Ambari-DDL-MySQL-CREATE.sql</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-server/resources</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>src/main/resources/Ambari-DDL-Oracle-DROP.sql</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-server/resources</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>src/main/resources/Ambari-DDL-MySQL-DROP.sql</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-server/resources</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>src/main/resources/hive-schema-0.10.0.oracle.sql</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-server/resources</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>src/main/resources/hive-schema-0.12.0.oracle.sql</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-server/resources</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>${project.build.directory}/DBConnectionVerification.jar</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-server/resources</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>src/main/resources/role_command_order.json</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-server/resources</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>src/main/resources/scripts</src>
+ <type>directory</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-server/resources/scripts</prefix>
+ <filemode>755</filemode>
+ </mapper>
+ </data>
+ <data>
+ <src>src/main/python/UpgradeHelper_HDP2.py</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-server/resources/scripts</prefix>
+ <filemode>755</filemode>
+ </mapper>
+ </data>
+ <data>
+ <src>src/main/resources/upgrade/ddl</src>
+ <type>directory</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-server/resources/upgrade/ddl</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>src/main/resources/upgrade/dml</src>
+ <type>directory</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-server/resources/upgrade/dml</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>target/classes/stacks/HDP</src>
+ <type>directory</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-server/resources/stacks/HDP</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>src/main/python/ambari_server</src>
+ <type>directory</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/usr/lib/python2.6/site-packages/ambari_server</prefix>
+ <user>root</user>
+ <group>root</group>
+ <filemode>755</filemode>
+ </mapper>
+ </data>
+ <data>
+ <src>src/main/python/bootstrap.py</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/usr/lib/python2.6/site-packages/ambari_server</prefix>
+ <user>root</user>
+ <group>root</group>
+ <filemode>755</filemode>
+ </mapper>
+ </data>
+ <data>
+ <src>src/main/python/setupAgent.py</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/usr/lib/python2.6/site-packages/ambari_server</prefix>
+ <user>root</user>
+ <group>root</group>
+ <filemode>755</filemode>
+ </mapper>
+ </data>
+ <data>
+ <src>src/main/python/os_type_check.sh</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/usr/lib/python2.6/site-packages/ambari_server</prefix>
+ <user>root</user>
+ <group>root</group>
+ <filemode>755</filemode>
+ </mapper>
+ </data>
+ <data>
+ <src>${basedir}/target/src/version</src>
+ <type>file</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-server/resources</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>src/main/resources/custom_action_definitions</src>
+ <type>directory</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-server/resources/custom_action_definitions</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>src/main/resources/custom_actions</src>
+ <type>directory</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/var/lib/ambari-server/resources/custom_actions</prefix>
+ <user>root</user>
+ <group>root</group>
+ <filemode>755</filemode>
+ </mapper>
+ </data>
+ </dataSet>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.5.2</version>
@@ -471,7 +817,7 @@
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-clover2-plugin</artifactId>
<version>3.1.11</version>
- <!-- <configuration> <licenseLocation>/path/to/clover.license</licenseLocation>
+ <!-- <configuration> <licenseLocation>/path/to/clover.license</licenseLocation>
</configuration> -->
</plugin>
<plugin>
@@ -515,6 +861,39 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.6</version>
+ <executions>
+ <execution>
+ <id>copy-resources</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${basedir}/target/src</outputDirectory>
+ <resources>
+ <resource>
+ <directory>sbin</directory>
+ <includes>
+ <include>ambari-server</include>
+ </includes>
+ <filtering>true</filtering>
+ </resource>
+ <resource>
+ <directory>..</directory>
+ <includes>
+ <include>version</include>
+ </includes>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
<resources>
<resource>
@@ -870,7 +1249,7 @@
<version>2.2.1</version>
</dependency>
</dependencies>
- <!--<reporting> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId>
- <artifactId>findbugs-maven-plugin</artifactId> <version>2.5.2</version> </plugin>
+ <!--<reporting> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId>
+ <artifactId>findbugs-maven-plugin</artifactId> <version>2.5.2</version> </plugin>
</plugins> </reporting> -->
</project>
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-server/src/main/package/deb/control/control
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/package/deb/control/control b/ambari-server/src/main/package/deb/control/control
new file mode 100644
index 0000000..4ea7f6c
--- /dev/null
+++ b/ambari-server/src/main/package/deb/control/control
@@ -0,0 +1,22 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
+Package: [[artifactId]]
+Version: [[version]]
+Section: [[deb.section]]
+Priority: [[deb.priority]]
+Depends: [[deb.dependency.list]]
+Architecture: [[deb.architecture]]
+Description: [[description]]
+Maintainer: [[deb.publisher]]
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-server/src/main/package/deb/control/postinst
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/package/deb/control/postinst b/ambari-server/src/main/package/deb/control/postinst
new file mode 100644
index 0000000..a274ca3
--- /dev/null
+++ b/ambari-server/src/main/package/deb/control/postinst
@@ -0,0 +1,30 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
+
+if [ -e "/etc/init.d/ambari-server" ];
+then # Check is needed for upgrade
+ # Remove link created by previous package version
+ rm /etc/init.d/ambari-server
+fi
+
+ln -s /usr/sbin/ambari-server /etc/init.d/ambari-server
+
+if [ "$1" == "configure" ]; # Action is install
+then
+ update-rc.d ambari-server defaults
+fi
+
+exit 0
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-server/src/main/package/deb/control/postrm
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/package/deb/control/postrm b/ambari-server/src/main/package/deb/control/postrm
new file mode 100644
index 0000000..21a01fa
--- /dev/null
+++ b/ambari-server/src/main/package/deb/control/postrm
@@ -0,0 +1,15 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-server/src/main/package/deb/control/posttrm
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/package/deb/control/posttrm b/ambari-server/src/main/package/deb/control/posttrm
new file mode 100644
index 0000000..21a01fa
--- /dev/null
+++ b/ambari-server/src/main/package/deb/control/posttrm
@@ -0,0 +1,15 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-server/src/main/package/deb/control/preinst
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/package/deb/control/preinst b/ambari-server/src/main/package/deb/control/preinst
new file mode 100644
index 0000000..cf2041f
--- /dev/null
+++ b/ambari-server/src/main/package/deb/control/preinst
@@ -0,0 +1,22 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
+
+if [ -d "/etc/ambari-server/conf.save" ]
+then
+ mv /etc/ambari-server/conf.save /etc/ambari-server/conf_$(date '+%d_%m_%y_%H_%M').save
+fi
+
+exit 0
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-server/src/main/package/deb/control/prerm
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/package/deb/control/prerm b/ambari-server/src/main/package/deb/control/prerm
new file mode 100644
index 0000000..2c4e97a
--- /dev/null
+++ b/ambari-server/src/main/package/deb/control/prerm
@@ -0,0 +1,40 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
+
+# WARNING: This script is performed not only on uninstall, but also
+# during package update. See http://www.ibm.com/developerworks/library/l-rpm2/
+# for details
+
+if [ "$1" == "remove" ]; # Action is uninstall
+then
+ /usr/sbin/ambari-server stop > /dev/null 2>&1
+ if [ -d "/etc/ambari-server/conf.save" ]
+ then
+ mv /etc/ambari-server/conf.save /etc/ambari-server/conf_$(date '+%d_%m_%y_%H_%M').save
+ fi
+
+ if [ -e "/etc/init.d/ambari-server" ];
+ then
+ # Remove link created during install
+ rm /etc/init.d/ambari-server
+ fi
+
+ mv /etc/ambari-server/conf /etc/ambari-server/conf.save
+
+ update-rc.d -f ambari-server remove
+fi
+
+exit 0
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-views/pom.xml
----------------------------------------------------------------------
diff --git a/ambari-views/pom.xml b/ambari-views/pom.xml
index 5adc775..497982c 100644
--- a/ambari-views/pom.xml
+++ b/ambari-views/pom.xml
@@ -123,6 +123,22 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.vafer</groupId>
+ <artifactId>jdeb</artifactId>
+ <version>1.0.1</version>
+ <executions>
+ <execution>
+ <phase>none</phase>
+ <goals>
+ <goal>jdeb</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
</plugins>
</build>
</project>
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-views/src/main/package/deb/control/control
----------------------------------------------------------------------
diff --git a/ambari-views/src/main/package/deb/control/control b/ambari-views/src/main/package/deb/control/control
new file mode 100644
index 0000000..e37581a
--- /dev/null
+++ b/ambari-views/src/main/package/deb/control/control
@@ -0,0 +1,21 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
+Package: [[artifactId]]
+Version: [[version]]
+Section: [[deb.section]]
+Priority: [[deb.priority]]
+Architecture: [[deb.architecture]]
+Description: [[description]]
+Maintainer: [[deb.publisher]]
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-views/src/main/package/deb/control/postinst
----------------------------------------------------------------------
diff --git a/ambari-views/src/main/package/deb/control/postinst b/ambari-views/src/main/package/deb/control/postinst
new file mode 100644
index 0000000..21a01fa
--- /dev/null
+++ b/ambari-views/src/main/package/deb/control/postinst
@@ -0,0 +1,15 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-views/src/main/package/deb/control/postrm
----------------------------------------------------------------------
diff --git a/ambari-views/src/main/package/deb/control/postrm b/ambari-views/src/main/package/deb/control/postrm
new file mode 100644
index 0000000..21a01fa
--- /dev/null
+++ b/ambari-views/src/main/package/deb/control/postrm
@@ -0,0 +1,15 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-views/src/main/package/deb/control/posttrm
----------------------------------------------------------------------
diff --git a/ambari-views/src/main/package/deb/control/posttrm b/ambari-views/src/main/package/deb/control/posttrm
new file mode 100644
index 0000000..21a01fa
--- /dev/null
+++ b/ambari-views/src/main/package/deb/control/posttrm
@@ -0,0 +1,15 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-views/src/main/package/deb/control/preinst
----------------------------------------------------------------------
diff --git a/ambari-views/src/main/package/deb/control/preinst b/ambari-views/src/main/package/deb/control/preinst
new file mode 100644
index 0000000..21a01fa
--- /dev/null
+++ b/ambari-views/src/main/package/deb/control/preinst
@@ -0,0 +1,15 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-views/src/main/package/deb/control/prerm
----------------------------------------------------------------------
diff --git a/ambari-views/src/main/package/deb/control/prerm b/ambari-views/src/main/package/deb/control/prerm
new file mode 100644
index 0000000..21a01fa
--- /dev/null
+++ b/ambari-views/src/main/package/deb/control/prerm
@@ -0,0 +1,15 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/ambari-web/pom.xml
----------------------------------------------------------------------
diff --git a/ambari-web/pom.xml b/ambari-web/pom.xml
index d6d2499..0b96d92 100644
--- a/ambari-web/pom.xml
+++ b/ambari-web/pom.xml
@@ -59,6 +59,22 @@
</configuration>
</plugin>
<plugin>
+ <groupId>org.vafer</groupId>
+ <artifactId>jdeb</artifactId>
+ <version>1.0.1</version>
+ <executions>
+ <execution>
+ <!-- unbinds deb creation from maven lifecycle -->
+ <phase>none</phase>
+ <goals>
+ <goal>jdeb</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
@@ -127,7 +143,7 @@
</goals>
<configuration>
<target name="ambari-web-test">
- <!--
+ <!--
<exec dir="${basedir}" executable="brunch" failonerror="false">
<arg value="test"/>
</exec>
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc1ba0b4/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 6b155bc..eeac17c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,6 +27,11 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<clover.license>${user.home}/clover.license</clover.license>
<buildnumber-maven-plugin-version>1.2</buildnumber-maven-plugin-version>
+ <deb.publisher>Hortonworks</deb.publisher>
+ <deb.section>universe/admin</deb.section>
+ <deb.architecture>i386 amd64</deb.architecture>
+ <deb.priority>extra</deb.priority>
+
</properties>
<pluginRepositories>
<pluginRepository>
@@ -65,6 +70,10 @@
<artifactId>rpm-maven-plugin</artifactId>
<version>2.0.1</version>
</plugin>
+ <plugin>
+ <groupId>org.vafer</groupId>
+ <artifactId>jdeb</artifactId>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
@@ -115,6 +124,26 @@
</configuration>
</plugin>
<plugin>
+ <groupId>org.vafer</groupId>
+ <artifactId>jdeb</artifactId>
+ <version>1.0.1</version>
+ <executions>
+ <execution>
+ <phase>none</phase>
+ <goals>
+ <goal>jdeb</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <verbose>false</verbose>
+ <submodules>true</submodules>
+ <deb>${basedir}/target/${artifactId}_${version}.deb</deb>
+ <skip>false</skip>
+ <controlDir>${basedir}/src/main/package/deb/control</controlDir>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<configuration>
@@ -125,7 +154,6 @@
<exclude>pass.txt</exclude>
<exclude>contrib/addons/test/dataServices/jmx/data/cluster_configuration.json.nohbase</exclude>
<exclude>version</exclude>
-
<!--IDE and GIT files-->
<exclude>.idea/</exclude>
<exclude>.git/</exclude>
[2/2] git commit: AMBARI-5151. Failing ambari-server tests due to
missing version file (dlysnichenko)
Posted by dm...@apache.org.
AMBARI-5151. Failing ambari-server tests due to missing version file (dlysnichenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/93e32e31
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/93e32e31
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/93e32e31
Branch: refs/heads/trunk
Commit: 93e32e31d785eafdb834d72e4f04365e126f005c
Parents: fc1ba0b
Author: Lisnichenko Dmitro <dl...@hortonworks.com>
Authored: Wed Mar 19 23:49:39 2014 +0200
Committer: Lisnichenko Dmitro <dl...@hortonworks.com>
Committed: Wed Mar 19 23:49:39 2014 +0200
----------------------------------------------------------------------
ambari-server/pom.xml | 66 +++++++++++++++++++++++-----------------------
1 file changed, 33 insertions(+), 33 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/93e32e31/ambari-server/pom.xml
----------------------------------------------------------------------
diff --git a/ambari-server/pom.xml b/ambari-server/pom.xml
index dbd5eb6..c536b96 100644
--- a/ambari-server/pom.xml
+++ b/ambari-server/pom.xml
@@ -861,39 +861,39 @@
</execution>
</executions>
</plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.6</version>
- <executions>
- <execution>
- <id>copy-resources</id>
- <phase>prepare-package</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <outputDirectory>${basedir}/target/src</outputDirectory>
- <resources>
- <resource>
- <directory>sbin</directory>
- <includes>
- <include>ambari-server</include>
- </includes>
- <filtering>true</filtering>
- </resource>
- <resource>
- <directory>..</directory>
- <includes>
- <include>version</include>
- </includes>
- <filtering>true</filtering>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
+ <!--<plugin>-->
+ <!--<groupId>org.apache.maven.plugins</groupId>-->
+ <!--<artifactId>maven-resources-plugin</artifactId>-->
+ <!--<version>2.6</version>-->
+ <!--<executions>-->
+ <!--<execution>-->
+ <!--<id>copy-resources</id>-->
+ <!--<phase>prepare-package</phase>-->
+ <!--<goals>-->
+ <!--<goal>copy-resources</goal>-->
+ <!--</goals>-->
+ <!--<configuration>-->
+ <!--<outputDirectory>${basedir}/target/src</outputDirectory>-->
+ <!--<resources>-->
+ <!--<resource>-->
+ <!--<directory>sbin</directory>-->
+ <!--<includes>-->
+ <!--<include>ambari-server</include>-->
+ <!--</includes>-->
+ <!--<filtering>true</filtering>-->
+ <!--</resource>-->
+ <!--<resource>-->
+ <!--<directory>..</directory>-->
+ <!--<includes>-->
+ <!--<include>version</include>-->
+ <!--</includes>-->
+ <!--<filtering>true</filtering>-->
+ <!--</resource>-->
+ <!--</resources>-->
+ <!--</configuration>-->
+ <!--</execution>-->
+ <!--</executions>-->
+ <!--</plugin>-->
</plugins>
<resources>
<resource>