Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
39fb6a84
Commit
39fb6a84
authored
Apr 28, 2016
by
Jason Song
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #152 from yiming187/update
update assembly
parents
f5898737
471c659a
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
177 additions
and
166 deletions
+177
-166
assembly-descriptor.xml
apollo-adminservice/src/assembly/assembly-descriptor.xml
+37
-23
common.sh
apollo-buildtools/src/main/scripts/common.sh
+0
-0
ApolloInfoController.java
.../ctrip/apollo/common/controller/ApolloInfoController.java
+37
-0
assembly-descriptor.xml
apollo-configservice/src/assembly/assembly-descriptor.xml
+37
-23
common.sh
apollo-configservice/src/main/scripts/common.sh
+0
-47
Apollo.java
apollo-core/src/main/java/com/ctrip/apollo/Apollo.java
+2
-1
assembly-descriptor.xml
apollo-portal/src/assembly/assembly-descriptor.xml
+37
-23
common.sh
apollo-portal/src/main/scripts/common.sh
+0
-47
pom.xml
pom.xml
+27
-2
No files found.
apollo-adminservice/src/assembly/assembly-descriptor.xml
View file @
39fb6a84
...
...
@@ -2,33 +2,46 @@
xmlns=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd"
>
<id>
apollo-adminservice
</id>
<formats>
<format>
zip
</format>
</formats>
<includeBaseDirectory>
false
</includeBaseDirectory>
<fileSets>
<!--scripts -->
<fileSet>
<directory>
src/main/scripts
</directory>
<outputDirectory>
bin
</outputDirectory>
<moduleSets>
<moduleSet>
<useAllReactorProjects>
true
</useAllReactorProjects>
<includes>
<include>
*.sh
</include>
<include>
*:apollo-buildtools:*
</include>
<include>
*:apollo-adminervice:*
</include>
</includes>
<fileMode>
0755
</fileMode>
<lineEnding>
unix
</lineEnding>
</fileSet>
<fileSet>
<directory>
src/main/config
</directory>
<outputDirectory>
config
</outputDirectory>
</fileSet>
<!--artifact -->
<fileSet>
<directory>
target
</directory>
<outputDirectory>
/
</outputDirectory>
<includes>
<include>
${project.artifactId}-*.jar
</include>
</includes>
<fileMode>
0444
</fileMode>
</fileSet>
</fileSets>
<sources>
<includeModuleDirectory>
false
</includeModuleDirectory>
<fileSets>
<!--scripts -->
<fileSet>
<directory>
src/main/scripts
</directory>
<outputDirectory>
bin
</outputDirectory>
<includes>
<include>
*.sh
</include>
</includes>
<fileMode>
0755
</fileMode>
<lineEnding>
unix
</lineEnding>
</fileSet>
<fileSet>
<directory>
src/main/config
</directory>
<outputDirectory>
config
</outputDirectory>
</fileSet>
<!--artifact -->
<fileSet>
<directory>
target
</directory>
<outputDirectory>
/
</outputDirectory>
<includes>
<include>
${project.artifactId}-*.jar
</include>
</includes>
<fileMode>
0444
</fileMode>
</fileSet>
</fileSets>
</sources>
</moduleSet>
</moduleSets>
</assembly>
\ No newline at end of file
apollo-
adminservice
/src/main/scripts/common.sh
→
apollo-
buildtools
/src/main/scripts/common.sh
View file @
39fb6a84
File moved
apollo-common/src/main/java/com/ctrip/apollo/common/controller/ApolloInfoController.java
0 → 100644
View file @
39fb6a84
package
com
.
ctrip
.
apollo
.
common
.
controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.ctrip.apollo.Apollo
;
import
com.ctrip.framework.foundation.Foundation
;
@RestController
@RequestMapping
(
path
=
"/apollo"
)
public
class
ApolloInfoController
{
@RequestMapping
(
"app"
)
public
String
getApp
()
{
return
Foundation
.
app
().
toString
();
}
@RequestMapping
(
"web"
)
public
String
getEnv
()
{
return
Foundation
.
web
().
toString
();
}
@RequestMapping
(
"net"
)
public
String
getNet
()
{
return
Foundation
.
net
().
toString
();
}
@RequestMapping
(
"server"
)
public
String
getServer
()
{
return
Foundation
.
server
().
toString
();
}
@RequestMapping
(
"version"
)
public
String
getVersion
()
{
return
Apollo
.
VERSION
;
}
}
apollo-configservice/src/assembly/assembly-descriptor.xml
View file @
39fb6a84
...
...
@@ -2,33 +2,46 @@
xmlns=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd"
>
<id>
apollo-configservice
</id>
<formats>
<format>
zip
</format>
</formats>
<includeBaseDirectory>
false
</includeBaseDirectory>
<fileSets>
<!--scripts -->
<fileSet>
<directory>
src/main/scripts
</directory>
<outputDirectory>
bin
</outputDirectory>
<moduleSets>
<moduleSet>
<useAllReactorProjects>
true
</useAllReactorProjects>
<includes>
<include>
*.sh
</include>
<include>
*:apollo-buildtools:*
</include>
<include>
*:apollo-configservice:*
</include>
</includes>
<fileMode>
0755
</fileMode>
<lineEnding>
unix
</lineEnding>
</fileSet>
<fileSet>
<directory>
src/main/config
</directory>
<outputDirectory>
config
</outputDirectory>
</fileSet>
<!--artifact -->
<fileSet>
<directory>
target
</directory>
<outputDirectory>
/
</outputDirectory>
<includes>
<include>
${project.artifactId}-*.jar
</include>
</includes>
<fileMode>
0444
</fileMode>
</fileSet>
</fileSets>
<sources>
<includeModuleDirectory>
false
</includeModuleDirectory>
<fileSets>
<!--scripts -->
<fileSet>
<directory>
src/main/scripts
</directory>
<outputDirectory>
bin
</outputDirectory>
<includes>
<include>
*.sh
</include>
</includes>
<fileMode>
0755
</fileMode>
<lineEnding>
unix
</lineEnding>
</fileSet>
<fileSet>
<directory>
src/main/config
</directory>
<outputDirectory>
config
</outputDirectory>
</fileSet>
<!--artifact -->
<fileSet>
<directory>
target
</directory>
<outputDirectory>
/
</outputDirectory>
<includes>
<include>
${project.artifactId}-*.jar
</include>
</includes>
<fileMode>
0444
</fileMode>
</fileSet>
</fileSets>
</sources>
</moduleSet>
</moduleSets>
</assembly>
\ No newline at end of file
apollo-configservice/src/main/scripts/common.sh
deleted
100644 → 0
View file @
f5898737
#!/bin/bash
# directories
SYSOUT_LOG
=
$LOG_PATH
/sysout.log
mkdir
-p
$LOG_PATH
PID_PATH_NAME
=
$SERVICE_NAME
".pid"
case
$1
in
start
)
echo
"Starting
$SERVICE_NAME
..."
if
[
!
-f
$PID_PATH_NAME
]
;
then
nohup
java
-jar
$PATH_TO_JAR
/tmp 2>>
$SYSOUT_LOG
>>
$SYSOUT_LOG
&
echo
$!
>
$PID_PATH_NAME
echo
"
$SERVICE_NAME
started ..."
else
echo
"
$SERVICE_NAME
is already running ..."
fi
;;
stop
)
if
[
-f
$PID_PATH_NAME
]
;
then
PID
=
$(
cat
$PID_PATH_NAME
)
;
echo
"
$SERVICE_NAME
stopping ..."
kill
$PID
;
echo
"
$SERVICE_NAME
stopped ..."
rm
$PID_PATH_NAME
else
echo
"
$SERVICE_NAME
is not running ..."
fi
;;
restart
)
if
[
-f
$PID_PATH_NAME
]
;
then
PID
=
$(
cat
$PID_PATH_NAME
)
;
echo
"
$SERVICE_NAME
stopping ..."
;
kill
$PID
;
echo
"
$SERVICE_NAME
stopped ..."
;
rm
$PID_PATH_NAME
echo
"
$SERVICE_NAME
starting ..."
nohup
java
-jar
$PATH_TO_JAR
/tmp 2>>
$SYSOUT_LOG
>>
$SYSOUT_LOG
&
echo
$!
>
$PID_PATH_NAME
echo
"
$SERVICE_NAME
started ..."
else
echo
"
$SERVICE_NAME
is not running ..."
fi
;;
esac
exit
0
\ No newline at end of file
apollo-core/src/main/java/com/ctrip/apollo/Apollo.java
View file @
39fb6a84
...
...
@@ -4,5 +4,6 @@ package com.ctrip.apollo;
* @author Jason Song(song_s@ctrip.com)
*/
public
class
Apollo
{
public
final
static
String
VERSION
=
"java-0.0.1-SNAPSHOT"
;
public
final
static
String
VERSION
=
"java-"
+
Apollo
.
class
.
getPackage
().
getImplementationVersion
();
}
apollo-portal/src/assembly/assembly-descriptor.xml
View file @
39fb6a84
...
...
@@ -2,33 +2,46 @@
xmlns=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd"
>
<id>
apollo-portal
</id>
<formats>
<format>
zip
</format>
</formats>
<includeBaseDirectory>
false
</includeBaseDirectory>
<fileSets>
<!--scripts -->
<fileSet>
<directory>
src/main/scripts
</directory>
<outputDirectory>
bin
</outputDirectory>
<moduleSets>
<moduleSet>
<useAllReactorProjects>
true
</useAllReactorProjects>
<includes>
<include>
*.sh
</include>
<include>
*:apollo-buildtools:*
</include>
<include>
*:apollo-portal:*
</include>
</includes>
<fileMode>
0755
</fileMode>
<lineEnding>
unix
</lineEnding>
</fileSet>
<fileSet>
<directory>
src/main/config
</directory>
<outputDirectory>
config
</outputDirectory>
</fileSet>
<!--artifact -->
<fileSet>
<directory>
target
</directory>
<outputDirectory>
/
</outputDirectory>
<includes>
<include>
${project.artifactId}-*.jar
</include>
</includes>
<fileMode>
0444
</fileMode>
</fileSet>
</fileSets>
<sources>
<includeModuleDirectory>
false
</includeModuleDirectory>
<fileSets>
<!--scripts -->
<fileSet>
<directory>
src/main/scripts
</directory>
<outputDirectory>
bin
</outputDirectory>
<includes>
<include>
*.sh
</include>
</includes>
<fileMode>
0755
</fileMode>
<lineEnding>
unix
</lineEnding>
</fileSet>
<fileSet>
<directory>
src/main/config
</directory>
<outputDirectory>
config
</outputDirectory>
</fileSet>
<!--artifact -->
<fileSet>
<directory>
target
</directory>
<outputDirectory>
/
</outputDirectory>
<includes>
<include>
${project.artifactId}-*.jar
</include>
</includes>
<fileMode>
0444
</fileMode>
</fileSet>
</fileSets>
</sources>
</moduleSet>
</moduleSets>
</assembly>
\ No newline at end of file
apollo-portal/src/main/scripts/common.sh
deleted
100644 → 0
View file @
f5898737
#!/bin/bash
# directories
SYSOUT_LOG
=
$LOG_PATH
/sysout.log
mkdir
-p
$LOG_PATH
PID_PATH_NAME
=
$SERVICE_NAME
".pid"
case
$1
in
start
)
echo
"Starting
$SERVICE_NAME
..."
if
[
!
-f
$PID_PATH_NAME
]
;
then
nohup
java
-jar
$PATH_TO_JAR
/tmp 2>>
$SYSOUT_LOG
>>
$SYSOUT_LOG
&
echo
$!
>
$PID_PATH_NAME
echo
"
$SERVICE_NAME
started ..."
else
echo
"
$SERVICE_NAME
is already running ..."
fi
;;
stop
)
if
[
-f
$PID_PATH_NAME
]
;
then
PID
=
$(
cat
$PID_PATH_NAME
)
;
echo
"
$SERVICE_NAME
stopping ..."
kill
$PID
;
echo
"
$SERVICE_NAME
stopped ..."
rm
$PID_PATH_NAME
else
echo
"
$SERVICE_NAME
is not running ..."
fi
;;
restart
)
if
[
-f
$PID_PATH_NAME
]
;
then
PID
=
$(
cat
$PID_PATH_NAME
)
;
echo
"
$SERVICE_NAME
stopping ..."
;
kill
$PID
;
echo
"
$SERVICE_NAME
stopped ..."
;
rm
$PID_PATH_NAME
echo
"
$SERVICE_NAME
starting ..."
nohup
java
-jar
$PATH_TO_JAR
/tmp 2>>
$SYSOUT_LOG
>>
$SYSOUT_LOG
&
echo
$!
>
$PID_PATH_NAME
echo
"
$SERVICE_NAME
started ..."
else
echo
"
$SERVICE_NAME
is not running ..."
fi
;;
esac
exit
0
\ No newline at end of file
pom.xml
View file @
39fb6a84
...
...
@@ -84,7 +84,6 @@
<jetty.version>
9.2.15.v20160210
</jetty.version>
<github.global.server>
github
</github.global.server>
<github.global.oauth2Token>
${env.GITHUB_OAUTH_TOKEN}
</github.global.oauth2Token>
<github.path></github.path>
</properties>
<modules>
...
...
@@ -250,7 +249,7 @@
<dependency>
<groupId>
com.ctrip.apollo
</groupId>
<artifactId>
apollo-buildtools
</artifactId>
<version>
0.0.1-SNAPSHOT
</version>
<version>
${project.version}
</version>
</dependency>
</dependencies>
<configuration>
...
...
@@ -283,6 +282,16 @@
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-assembly-plugin
</artifactId>
<version>
2.6
</version>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-release-plugin
</artifactId>
<version>
2.5.3
</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
...
...
@@ -294,6 +303,22 @@
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
findbugs-maven-plugin
</artifactId>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-release-plugin
</artifactId>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-jar-plugin
</artifactId>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>
true
</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>
true
</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment