Skip to content

Commit

Permalink
add core_plugin goal
Browse files Browse the repository at this point in the history
  • Loading branch information
junchensz committed Jun 16, 2020
1 parent ac3dc77 commit a643828
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,22 @@ clean:
rm -rf $(current_dir)/cmdb-ui/node
rm -rf $(current_dir)/cmdb-ui/node_modules

clean_core_plugin:
rm -rf $(current_dir)/cmdb-core/target
rm -rf $(current_dir)/cmdb-ui/node
rm -rf $(current_dir)/cmdb-ui/node_modules

.PHONY:build

build_name=wecmdb-build
build:
mkdir -p repository
docker run --rm --name $(build_name) -v /data/repository:/usr/src/mymaven/repository -v $(current_dir)/build/maven_settings.xml:/usr/share/maven/ref/settings-docker.xml -v $(current_dir):/usr/src/mymaven -w /usr/src/mymaven maven:3.3-jdk-8 mvn -U clean install -Dmaven.test.skip=true -s /usr/share/maven/ref/settings-docker.xml dependency:resolve

build_core_plugin:
mkdir -p repository
docker run --rm --name $(build_name) -v /data/repository:/usr/src/mymaven/repository -v $(current_dir)/build/maven_settings.xml:/usr/share/maven/ref/settings-docker.xml -v $(current_dir):/usr/src/mymaven -w /usr/src/mymaven maven:3.3-jdk-8 mvn -U clean install -Pcore_plugin -Dmaven.test.skip=true -s /usr/share/maven/ref/settings-docker.xml dependency:resolve

image:
docker build -t $(project_name):$(version) .

Expand Down

0 comments on commit a643828

Please sign in to comment.