From dd985d0959db35b7e594b93750d60fbc8967b3f1 Mon Sep 17 00:00:00 2001 From: lollipop Date: Fri, 23 Dec 2016 16:49:55 +0800 Subject: [PATCH] MASTER Standardize build script closes apache/incubator-rocketmq#5 --- BUILDING | 37 +++++++++++++++++++++++++++++++++++++ deploy.bat | 16 ---------------- eclipse.bat | 16 ---------------- install.bat | 17 ----------------- install.sh | 28 ---------------------------- 5 files changed, 37 insertions(+), 77 deletions(-) create mode 100644 BUILDING delete mode 100644 deploy.bat delete mode 100644 eclipse.bat delete mode 100644 install.bat delete mode 100755 install.sh diff --git a/BUILDING b/BUILDING new file mode 100644 index 00000000..a5ed798c --- /dev/null +++ b/BUILDING @@ -0,0 +1,37 @@ +Build instructions for RocketMQ + +==================================================== + +(1) Requisites + +JDK 1.7+ is required in order to compile and run RocketMQ. + +RocketMQ utilizes Maven as a distribution management and packaging tool. Version 3.0.3 or later is required. +Maven installation and configuration instructions can be found here: + +http://maven.apache.org/run-maven/index.html + + +(2) Executing test cases + +Execute the following command in order to compile and test the components: + +$ mvn test + + +(3) Importing projects to eclipse + +First, generate eclipse project files: + +$ mvn -U eclipse:eclipse + +Then, import to eclipse by specifying the root directory of the project via: + +[File] > [Import] > [Existing Projects into Workspace]. + + +(4) Building packages + +Execute the following command in order to build the tar.gz packages and install JAR to the local repository: + +$ mvn clean package install assembly:assembly -U \ No newline at end of file diff --git a/deploy.bat b/deploy.bat deleted file mode 100644 index 9cc3daeb..00000000 --- a/deploy.bat +++ /dev/null @@ -1,16 +0,0 @@ -# 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. - -mvn -Dmaven.test.skip=true deploy \ No newline at end of file diff --git a/eclipse.bat b/eclipse.bat deleted file mode 100644 index 24e7313a..00000000 --- a/eclipse.bat +++ /dev/null @@ -1,16 +0,0 @@ -# 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. - -mvn -U eclipse:eclipse diff --git a/install.bat b/install.bat deleted file mode 100644 index 550f4b08..00000000 --- a/install.bat +++ /dev/null @@ -1,17 +0,0 @@ -REM Licensed to the Apache Software Foundation (ASF) under one or more -REM contributor license agreements. See the NOTICE file distributed with -REM this work for additional information regarding copyright ownership. -REM The ASF licenses this file to You under the Apache License, Version 2.0 -REM (the "License"); you may not use this file except in compliance with -REM the License. You may obtain a copy of the License at -REM -REM http://www.apache.org/licenses/LICENSE-2.0 -REM -REM Unless required by applicable law or agreed to in writing, software -REM distributed under the License is distributed on an "AS IS" BASIS, -REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -REM See the License for the specific language governing permissions and -REM limitations under the License. - -mvn -Dmaven.test.skip=true clean package install assembly:assembly -U - diff --git a/install.sh b/install.sh deleted file mode 100755 index 6a536ed7..00000000 --- a/install.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env 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. - -git pull - -rm -rf target -rm -f devenv -if [ -z "$JAVA_HOME" ]; then - JAVA_HOME=/usr/java -fi -export PATH=$JAVA_HOME/bin:$PATH -mvn clean package install assembly:assembly -U - -ln -s target/alibaba-rocketmq-broker/alibaba-rocketmq devenv -- GitLab