{{.GroupID}}:{{.ArtifactID}}
{{.Version}}
{{if eq .PackageDescriptor.Package.Type "maven"}}
<repositories>
<repository>
<id>gitea</id>
<url>{{AppUrl}}api/packages/{{.PackageDescriptor.Owner.Name}}/maven</url>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>gitea</id>
<url>{{AppUrl}}api/packages/{{.PackageDescriptor.Owner.Name}}/maven</url>
</repository>
<snapshotRepository>
<id>gitea</id>
<url>{{AppUrl}}api/packages/{{.PackageDescriptor.Owner.Name}}/maven</url>
</snapshotRepository>
</distributionManagement>
<dependency>
<groupId>{{.PackageDescriptor.Metadata.GroupID}}</groupId>
<artifactId>{{.PackageDescriptor.Metadata.ArtifactID}}</artifactId>
<version>{{.PackageDescriptor.Version.Version}}</version>
</dependency>
mvn install
mvn dependency:get -DremoteRepositories={{AppUrl}}api/packages/{{.PackageDescriptor.Owner.Name}}/maven -Dartifact={{.PackageDescriptor.Metadata.GroupID}}:{{.PackageDescriptor.Metadata.ArtifactID}}:{{.PackageDescriptor.Version.Version}}