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 navigation pane on the left, choose Application Management > Applications.
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 a digit.
Technology Stack
Select the SOFABoot technology stack that corresponds to the Java version used in your project.
Application Group
Select the group where the application resides.
Application Tags
Configure tags for the application:
Tag Type: Select System Tag or Custom Tag.
Application Classification: The category of the application.
Variable Value: The corresponding variable value.
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. A fat JAR package is generated in thetargetdirectory of the project's root directory.In the navigation pane on the left of the SOFAStack console, choose Classic Application Service > Application Publishing > Deployment Package Management.
Find the application you created in Step 1 and click Manage on the right.
Click Upload Deployment Package, upload the application's deployment package, and then click Confirm.
Create a service instance and associate the deployment package.
In the navigation pane on the left, 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 a 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 a deployment unit for the application.
Click OK.
Publish the application.
In the navigation pane on the left, select Classic Application Service > Application Publishing > Deployment Package Management.
Select the service instance you created in Step 3, and then choose O&M > Publish and Deploy.
Click Publish Now, and then click Full Release.