Create and publish an application
After you create a project, you can create and publish an application in the SOFAStack console.
Procedure
Create an application.
Log on to the SOFAStack console.
In the left navigation pane, choose Application Management > Application List.
Click Create Application, and then configure the following parameters:
Parameter
Description
Application Name
Enter a name for the application.
The name can contain letters, digits, hyphens (-), and underscores (_). It must start with a letter and end with a letter or digit.
Technology Stack
Select the SOFABoot technology stack that matches the Java version in the project.
Application Group
Select the group for the application.
Application Tag
Configure tags for the application:
Tag Type: Select System Tag or Custom Tag.
Application Rating: The rating of the application.
Variable Value: The value of the corresponding variable.
Application Description (Optional)
Enter a description for the application.
Click Submit.
Upload the deployment package.
Generate the deployment package.
Run the
mvn clean packageormvn clean installcommand locally to package a fat JAR file in thetargetdirectory of the project's root directory.In the left navigation pane of the SOFAStack console, choose Classic Application Service > Application Publishing > Deployment Package Management.
Find the application that you created in Step 1, and then click Manage on the right.
Click Upload Deployment Package, upload the deployment package for the application, and then click Confirm.
Create an application service instance and associate it with the deployment package.
In the left navigation pane, choose Classic Application Service > Application Publishing > Application Service.
Click Create Service Instance, and then configure the following parameters:
Parameter
Description
Application
From the drop-down list, select the application created in Step 1.
Service Instance Name
Enter a name for the service instance.
The name can contain letters, digits, hyphens (-), and underscores (_). It must start with a letter and end with a letter or digit.
Deployment Package
Select the deployment package uploaded in Step 2.
Description (Optional)
Enter a description for the application instance.
Technology Stack Version
From the drop-down list, select a technology stack version.
Deployment Unit
Select the deployment unit for the application.
Click OK.
Publish the application.
In the left navigation pane, choose Classic Application Service > Application Publishing > Deployment Package Management.
Select the service instance that you created in Step 3, and then choose O&M Operations > Publish and Deploy.
Click Publish Now, and then click Publish All.