Upload (only) microservice

You can deploy create microservice to platform. This command also starts/restarts microservice so it is ready to operate. By default microservice is start if not running and if it is running it is terminated and then started. You can configure this behaviour and for production environment it is recommended to use RESTART strategy which is using zero downtime restarts feature of platform. There are few different options to use deploy goal.

Define inside pom.xml and bind to phase

You can configure deploy 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-deploy</id>
                        <phase>pre-integration-test</phase>
                        <goals>
                            <goal>deploy</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
[...]

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

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

Define inside pom.xml and run by id

You can configure deploy 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-deploy</id>
                        <goals>
                            <goal>deploy</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
[...]

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

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

Use with command without configuration

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

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