我正在尝试在java liberty项目中实现一个continuos交付管道,现在我正在使用git工具等。然而,当我对我的代码进行了一次更新时,continuos交付并没有在我的文件夹目标中创建新的war文件。
POM.xml
` ">http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0
<parent>
<groupId>net.wasdev.maven.parent</groupId>
<artifactId>java7-parent</artifactId>
<version>1.4</version>
<relativePath></relativePath>
</parent>
<groupId>net.wasdev.wlp.sample</groupId>
<artifactId>buyatibm-dev</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>Liberty Profile Sample - Servlet</name>
<url>https://wasdev.github.io</url>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>https://raw.github.com/WASdev/sample.servlet/master/LICENSE</url>
<distribution>repo</distribution>
</license>
</licenses>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-servlet_3.0_spec</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-servlet_3.0_spec</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<warName>buyatibm-dev</warName>
</configuration>
</plugin>
<plugin>
<groupId>net.wasdev.wlp.maven.plugins</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>1.2.1</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>net.wasdev.wlp.maven.plugins</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<configuration>
<configFile>src/main/wlp/server.xml</configFile>
<bootstrapProperties>
<appLocation>../../../../../${project.build.finalName}</appLocation>
</bootstrapProperties>
</configuration>
</plugin>
</plugins>
</build>`
Manifest.yml
---applications: - name: buyatibm-dev-jltn random-route: true memory: 256M path: ./target/buyatibm-dev.war
发布于 2018-05-23 06:26:14
继续传送将不会更新目标文件夹中存在的war。您需要右键单击项目- Run As - Maven install来更新内容。一旦您将更改提交到git,则应执行持续交付。
发布于 2018-05-30 05:28:53
请参考以下初学者工具包作为示例:
https://console.bluemix.net/developer/appservice/starter-kits/java-microprofile-java-ee-microservice
单击Deploy to Cloud按钮(选择CF/Kube作为部署选项),它将向您展示如何设置项目的示例。
https://stackoverflow.com/questions/50476695
复制相似问题