{{if eq .PackageDescriptor.Package.Type "maven"}}

{{.i18n.Tr "packages.installation"}}

<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}}
{{if .PackageDescriptor.Metadata.Description}}

{{.i18n.Tr "packages.about"}}

{{.PackageDescriptor.Metadata.Description}}
{{end}} {{if .PackageDescriptor.Metadata.Dependencies}}

{{.i18n.Tr "packages.dependencies"}}

{{range .PackageDescriptor.Metadata.Dependencies}}
{{svg "octicon-package-dependencies" 16 ""}}
{{.GroupID}}:{{.ArtifactID}}
{{.Version}}
{{end}}
{{end}} {{end}}