Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
GitHub操作Java CI与Maven不兼容';不要创建新的jar文件_Maven_Continuous Integration_Github Actions_Continuous Delivery - Fatal编程技术网

GitHub操作Java CI与Maven不兼容';不要创建新的jar文件

GitHub操作Java CI与Maven不兼容';不要创建新的jar文件,maven,continuous-integration,github-actions,continuous-delivery,Maven,Continuous Integration,Github Actions,Continuous Delivery,我是Github操作的新手,我使用JavaCI和Maven模板来设置操作。一切正常,没有错误。我原以为该操作会更新./target目录中的xyz-0.0.1-SNAPSHOT.jar。我有另一个操作,在每个版本中都将该文件部署到AWS。目前,我必须在本地运行mvn包,并将jar文件推送到存储库,然后发布操作才能工作 这就是行动: # This workflow will build a Java project with Maven # For more information see: htt

我是Github操作的新手,我使用JavaCI和Maven模板来设置操作。一切正常,没有错误。我原以为该操作会更新./target目录中的xyz-0.0.1-SNAPSHOT.jar。我有另一个操作,在每个版本中都将该文件部署到AWS。目前,我必须在本地运行
mvn包
,并将jar文件推送到存储库,然后发布操作才能工作

这就是行动:

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Set up JDK 8
      uses: actions/setup-java@v2
      with:
        java-version: '8'
        distribution: 'adopt'
    - name: Build with Maven
      run: mvn -B package --file pom.xml

向我们展示行动。更新问题。