Skip to content

Commit

Permalink
feat(scaffold): specify output file name of compile
Browse files Browse the repository at this point in the history
  • Loading branch information
taccisum committed Oct 21, 2019
1 parent 58a1d13 commit cf345f8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
</dependencies>

<build>
<finalName>app</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ sh build.sh

```bash
$ mvn clean package
$ java -jar ./${artifactId}-provider/target/${artifactId}-provider-{version}.jar
$ java -jar ./${artifactId}-provider/target/app.jar
```

### Start via container
Expand Down
2 changes: 0 additions & 2 deletions generators/app/templates/build.tmpl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ fi

h2 '准备构建Docker镜像'

mv $PROJECT_HOME/$APP_NAME-provider/target/$APP_NAME-*.jar $PROJECT_HOME/$APP_NAME-provider/target/app.jar

if [ ! -z $IMAGE_NAME ];then
docker build --rm -t $IMAGE_NAME .
else
Expand Down

0 comments on commit cf345f8

Please sign in to comment.