Upload (only) microservice

You can upload deployable zip to platform. Using upload goal it won't be started/restarted after upload so you can do some additional steps after uploading and run your microservice at the end of procedure. There are few different options to use upload goal.

Define inside pom.xml and bind to phase

You can configure upload goal inside your pom.xml file and bind it to phase you want (for example pre-integration-test). By default this goal is not bind to any phase. Example configuration is shown below:

[...]
    <build>
        <plugins>
            <plugin>
                <groupId>com.jlupin</groupId>
                <artifactId>jlupin-platform-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>jlupin-upload</id>
                        <phase>pre-integration-test</phase>
                        <goals>
                            <goal>upload</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
[...]

Then you can run your phase with command mvn pre-integration-test and upload goal will be executed during last phase.

Of course you can configure upload gaol. Go here to see all configuration options.

Define inside pom.xml and run by id

You can configure upload goal inside your pom.xml file. By default this goal is no bind to any phase. Example configuration is shown below:

[...]
    <build>
        <plugins>
            <plugin>
                <groupId>com.jlupin</groupId>
                <artifactId>jlupin-platform-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>jlupin-upload</id>
                        <goals>
                            <goal>upload</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
[...]

Then you can run your it with command mvn jlupin-platform:upload@jlupin-upload and upload goal will be executed. Remember that if you are using multimodule project this execution will run upload goal for all your modules - not only the one where it is configured.

Of course you can configure upload gaol. Go here to see all configuration options.

Use with command without configuration

You can configure upload goal within your command by providing properties you want. To run use command mvn jlupin-platform:upload or if you want to use specific version mvn com.jlupin:jlupin-platform-maven-plugin:1.6.0.2:upload. Remember that if you are using multi module project this execution will run upload goal for all your modules.

Of course you can configure upload gaol. Go here to see all configuration options.