Как реализовать непрерывный конвейер доставки для Java-свободы в IBM CLOUD (Bluemix) - PullRequest
0 голосов
/ 23 мая 2018

Я пытаюсь реализовать конвейер непрерывной доставки в проекте java liberty, теперь я использую инструмент git и т. Д. Однако, когда я сделал одно обновление для своего кода, непрерывная доставка не создает новый файл войны внутрицель моей папки.

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

Ответы [ 2 ]

0 голосов
/ 30 мая 2018

См. В качестве примера следующий начальный комплект:

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

Нажмите кнопку Развернуть в облаке (выбрав CF / Kube в качестве варианта развертывания),и он покажет вам пример того, как настроить ваш проект.

0 голосов
/ 23 мая 2018

Continuos Delivery не обновит войну, присутствующую в целевой папке.Вам нужно щелкнуть правой кнопкой мыши по проекту - Run As - Maven install, чтобы обновить содержимое.Как только вы фиксируете изменения в git, должна действовать непрерывная доставка.

...