Modified devcloud build process to include maven3 install and steps.

This commit is contained in:
Chip Childers 2012-10-01 16:40:00 -04:00
parent ac31b7d914
commit 90fd0793fe
3 changed files with 45 additions and 0 deletions

View File

@ -18,5 +18,11 @@
# under the License.
export CATALINA_HOME=/opt/cloudstack/apache-tomcat-6.0.32
export M2_HOME=/opt/cloudstack/apache-maven-3.0.4
export M2=$M2_HOME/bin
MAVEN_OPTS="-Xms256m -Xmx512m"
PATH=$M2:$PATH
cd /opt/cloudstack/incubator-cloudstack/
/usr/bin/mvn -P deps
/usr/bin/mvn clean
/usr/bin/ant clean-all build-all deploy-server deploydb

View File

@ -0,0 +1,22 @@
#!/bin/sh
# 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.
cd /opt/cloudstack
/usr/bin/wget http://apache.mirrors.pair.com/maven/maven-3/3.0.4/binaries/apache-maven-3.0.4-bin.tar.gz
/bin/tar xvfz apache-maven-3.0.4-bin.tar.gz

View File

@ -297,9 +297,26 @@ class puppet-devcloud {
group => '0',
}
file { '/opt/cloudstack/installmaven.sh':
ensure => 'file',
source => 'puppet:///modules/puppet-devcloud/installmaven.sh',
mode => '777',
owner => '0',
group => '0',
}
exec { "install_maven":
require => File['/opt/cloudstack/installmaven.sh'],
command => '/opt/cloudstack/installmaven.sh',
cwd => '/opt/cloudstack',
creates => '/opt/cloudstack/apache-maven-3.0.4/',
timeout => '0',
}
exec { "build_cloudstack":
require => [
Package['ant'],
Exec['install_maven'],
Exec["catalina_home"],
File['/opt/cloudstack/incubator-cloudstack/dist'],
File['/opt/cloudstack/incubator-cloudstack/target'],