Repository: incubator-rocketmq Updated Branches: refs/heads/master 4b446d770 -> dd985d095
MASTER Standardize build script closes apache/incubator-rocketmq#5 Project: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/commit/dd985d09 Tree: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/tree/dd985d09 Diff: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/diff/dd985d09 Branch: refs/heads/master Commit: dd985d0959db35b7e594b93750d60fbc8967b3f1 Parents: 4b446d7 Author: lollipop <[email protected]> Authored: Fri Dec 23 16:49:55 2016 +0800 Committer: vongosling <[email protected]> Committed: Fri Dec 23 16:49:55 2016 +0800 ---------------------------------------------------------------------- BUILDING | 37 +++++++++++++++++++++++++++++++++++++ deploy.bat | 16 ---------------- eclipse.bat | 16 ---------------- install.bat | 17 ----------------- install.sh | 28 ---------------------------- 5 files changed, 37 insertions(+), 77 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/blob/dd985d09/BUILDING ---------------------------------------------------------------------- diff --git a/BUILDING b/BUILDING new file mode 100644 index 0000000..a5ed798 --- /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 http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/blob/dd985d09/deploy.bat ---------------------------------------------------------------------- diff --git a/deploy.bat b/deploy.bat deleted file mode 100644 index 9cc3dae..0000000 --- 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 http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/blob/dd985d09/eclipse.bat ---------------------------------------------------------------------- diff --git a/eclipse.bat b/eclipse.bat deleted file mode 100644 index 24e7313..0000000 --- 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 http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/blob/dd985d09/install.bat ---------------------------------------------------------------------- diff --git a/install.bat b/install.bat deleted file mode 100644 index 550f4b0..0000000 --- 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 - http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/blob/dd985d09/install.sh ---------------------------------------------------------------------- diff --git a/install.sh b/install.sh deleted file mode 100755 index 6a536ed..0000000 --- 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
