首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在IBM CLOUD (Bluemix)中实现java liberty的持续交付管道?

如何在IBM CLOUD (Bluemix)中实现java liberty的持续交付管道?
EN

Stack Overflow用户
提问于 2018-05-23 05:27:24
回答 2查看 51关注 0票数 0

我正在尝试在java liberty项目中实现一个continuos交付管道,现在我正在使用git工具等。然而,当我对我的代码进行了一次更新时,continuos交付并没有在我的文件夹目标中创建新的war文件。

POM.xml

` ">http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0

代码语言:javascript
复制
<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

EN

回答 2

Stack Overflow用户

发布于 2018-05-23 06:26:14

继续传送将不会更新目标文件夹中存在的war。您需要右键单击项目- Run As - Maven install来更新内容。一旦您将更改提交到git,则应执行持续交付。

票数 0
EN

Stack Overflow用户

发布于 2018-05-30 05:28:53

请参考以下初学者工具包作为示例:

https://console.bluemix.net/developer/appservice/starter-kits/java-microprofile-java-ee-microservice

单击Deploy to Cloud按钮(选择CF/Kube作为部署选项),它将向您展示如何设置项目的示例。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50476695

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档