forked from apache/rocketmq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Aggregate packaging specific files to a new sub-module: distribution
- Loading branch information
1 parent
aa694f2
commit e0d4a50
Showing
59 changed files
with
202 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ devenv | |
*.iml | ||
.idea/ | ||
*.versionsBackup | ||
*bin | ||
!NOTICE-BIN | ||
!LICENSE-BIN | ||
.DS_Store | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
Build instructions for RocketMQ | ||
Build Instructions for Apache RocketMQ | ||
|
||
==================================================== | ||
|
||
(1) Requisites | ||
(1) Prerequisites | ||
|
||
JDK 1.7+ is required in order to compile and run RocketMQ. | ||
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: | ||
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 | ||
http://maven.apache.org/run-maven/index.html | ||
|
||
|
||
(2) Executing test cases | ||
(2) Run test cases | ||
|
||
Execute the following command in order to compile and test the components: | ||
Execute the following command in order to compile and run test cases of each components: | ||
|
||
$ mvn test | ||
$ mvn test | ||
|
||
|
||
(3) Importing projects to eclipse | ||
(3) Import projects to Eclipse IDE | ||
|
||
First, generate eclipse project files: | ||
First, generate eclipse project files: | ||
|
||
$ mvn -U eclipse:eclipse | ||
$ mvn -U eclipse:eclipse | ||
|
||
Then, import to eclipse by specifying the root directory of the project via: | ||
Then, import to eclipse by specifying the root directory of the project via: | ||
|
||
[File] > [Import] > [Existing Projects into Workspace]. | ||
[File] > [Import] > [Existing Projects into Workspace]. | ||
|
||
|
||
(4) Building packages | ||
(4) Build distribution packages | ||
|
||
Execute the following command in order to build the tar.gz packages and install JAR to the local repository: | ||
Execute the following command in order to build the tar.gz packages and install JAR into local repository: | ||
|
||
$ mvn clean install -Prelease-all assembly:assembly -U | ||
$ mvn -Prelease-all -DskipTests clean package install -U |
File renamed without changes.
File renamed without changes.
File renamed without changes.
0
bin/cachedog.sh → distribution/bin/cachedog.sh
100755 → 100644
File renamed without changes.
0
bin/cleancache.sh → distribution/bin/cleancache.sh
100755 → 100644
File renamed without changes.
0
bin/cleancache.v1.sh → distribution/bin/cleancache.v1.sh
100755 → 100644
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
0
bin/os.sh → distribution/bin/os.sh
100755 → 100644
File renamed without changes.
File renamed without changes.
0
bin/play.sh → distribution/bin/play.sh
100755 → 100644
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@echo off | ||
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. |
File renamed without changes.
0
bin/runbroker.sh → distribution/bin/runbroker.sh
100755 → 100644
File renamed without changes.
File renamed without changes.
0
bin/runserver.sh → distribution/bin/runserver.sh
100755 → 100644
File renamed without changes.
0
bin/setcache.sh → distribution/bin/setcache.sh
100755 → 100644
File renamed without changes.
0
bin/startfsrv.sh → distribution/bin/startfsrv.sh
100755 → 100644
File renamed without changes.
File renamed without changes.
0
bin/tools.sh → distribution/bin/tools.sh
100755 → 100644
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
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. | ||
--> | ||
<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/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>org.apache.rocketmq</groupId> | ||
<artifactId>rocketmq-all</artifactId> | ||
<version>4.1.0-incubating-SNAPSHOT</version> | ||
</parent> | ||
<artifactId>rocketmq-distribution</artifactId> | ||
<name>rocketmq-distribution ${project.version}</name> | ||
<packaging>pom</packaging> | ||
|
||
<profiles> | ||
|
||
<profile> | ||
<id>release-all</id> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.apache.rocketmq</groupId> | ||
<artifactId>rocketmq-broker</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.apache.rocketmq</groupId> | ||
<artifactId>rocketmq-client</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.apache.rocketmq</groupId> | ||
<artifactId>rocketmq-filtersrv</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.apache.rocketmq</groupId> | ||
<artifactId>rocketmq-tools</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.apache.rocketmq</groupId> | ||
<artifactId>rocketmq-example</artifactId> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-assembly-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>release-all</id> | ||
<goals> | ||
<goal>single</goal> | ||
</goals> | ||
<phase>package</phase> | ||
<configuration> | ||
<descriptors> | ||
<descriptor>release.xml</descriptor> | ||
</descriptors> | ||
<appendAssemblyId>false</appendAssemblyId> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
<finalName>apache-rocketmq</finalName> | ||
</build> | ||
</profile> | ||
|
||
<profile> | ||
<id>release-client</id> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.apache.rocketmq</groupId> | ||
<artifactId>rocketmq-client</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-assembly-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>release-client</id> | ||
<goals> | ||
<goal>single</goal> | ||
</goals> | ||
<phase>package</phase> | ||
<configuration> | ||
<descriptors> | ||
<descriptor>release-client.xml</descriptor> | ||
</descriptors> | ||
<appendAssemblyId>false</appendAssemblyId> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
<finalName>apache-rocketmq</finalName> | ||
</build> | ||
</profile> | ||
</profiles> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.