From a61a82d05cb4e66eb91e955ad65a1f950bf6e3b4 Mon Sep 17 00:00:00 2001 From: lollipop Date: Fri, 23 Dec 2016 10:42:22 +0800 Subject: [PATCH 1/3] Improvement: Standardize build script using maven wrapper. --- deploy.bat | 16 ---------------- eclipse.bat | 16 ---------------- install.bat | 17 ----------------- install.sh | 28 ---------------------------- 4 files changed, 77 deletions(-) delete mode 100644 deploy.bat delete mode 100644 eclipse.bat delete mode 100644 install.bat delete mode 100755 install.sh diff --git a/deploy.bat b/deploy.bat deleted file mode 100644 index 9cc3daebff4..00000000000 --- 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 24e7313a016..00000000000 --- 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 550f4b081b4..00000000000 --- 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 6a536ed74d6..00000000000 --- 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 From e9b4ce632240c7bf1f55b65cd6a9c6fc83c5b54c Mon Sep 17 00:00:00 2001 From: lollipop Date: Fri, 23 Dec 2016 13:54:39 +0800 Subject: [PATCH 2/3] Step 2: Add BUILDING document. --- BUILDING | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 BUILDING diff --git a/BUILDING b/BUILDING new file mode 100644 index 00000000000..8914fe9d6d9 --- /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 them to the local repository: + +$ mvn clean package install assembly:assembly -U \ No newline at end of file From 0014a4c8abd1ead27d64c50c65887a033ef79128 Mon Sep 17 00:00:00 2001 From: lollipop Date: Fri, 23 Dec 2016 13:56:30 +0800 Subject: [PATCH 3/3] Step 2: Add BUILDING document. --- BUILDING | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BUILDING b/BUILDING index 8914fe9d6d9..a5ed798c5a0 100644 --- a/BUILDING +++ b/BUILDING @@ -32,6 +32,6 @@ Then, import to eclipse by specifying the root directory of the project via: (4) Building packages -Execute the following command in order to build the tar.gz packages and install them to the local repository: +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