Skip to content

luanwenfei-venus/SermantArchetype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is it?

Archetype when creating the sermant project.

How to use it?

Refer to official website guidance, https://sermant.io/zh/document/developer-guide

How to deploy?

1. Modify archetype version

archetype.groupId=com.huaweicloud.sermant
archetype.artifactId=sermant-template-archetype
archetype.version=1.2.0 # modify this version before deploy
excludePatterns=*/.idea/**,**/*.iml

2. Create archetype

Execute maven command:

mvn archetype:create-from-project -Darchetype.properties=./archetype.properties

3. Add maven configuration

Add maven plugins configuration into target/generated-sources/archetype/pom.xml

<plugins>
  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-gpg-plugin</artifactId>
    <version>3.0.1</version>
    <executions>
      <execution>
        <id>sign-artifacts</id>
        <phase>verify</phase>
        <goals>
          <goal>sign</goal>
        </goals>
      </execution>
    </executions>
  </plugin>
</plugins>

Add maven distributionManagement into target/generated-sources/archetype/pom.xml

<distributionManagement>
  <snapshotRepository>
    <id>ossrh</id>
    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  </snapshotRepository>
  <repository>
    <id>ossrh</id>
    <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  </repository>
</distributionManagement>

4. Deploy archetype

Execute maven command:

mvn deploy

About

Archetype when creating the sermant project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages