mirror of
https://github.com/go-gitea/gitea
synced 2024-11-05 01:34:25 +00:00
72 lines
2.9 KiB
Handlebars
72 lines
2.9 KiB
Handlebars
|
{{if eq .PackageDescriptor.Package.Type "maven"}}
|
||
|
<h4 class="ui top attached header">{{.i18n.Tr "packages.installation"}}</h4>
|
||
|
<div class="ui attached segment">
|
||
|
<div class="ui form">
|
||
|
<div class="field">
|
||
|
<label>{{svg "octicon-code"}} {{.i18n.Tr "packages.maven.registry" | Safe}}</label>
|
||
|
<div class="markup"><pre class="code-block"><code><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></code></pre></div>
|
||
|
</div>
|
||
|
<div class="field">
|
||
|
<label>{{svg "octicon-code"}} {{.i18n.Tr "packages.maven.install" | Safe}}</label>
|
||
|
<div class="markup"><pre class="code-block"><code><dependency>
|
||
|
<groupId>{{.PackageDescriptor.Metadata.GroupID}}</groupId>
|
||
|
<artifactId>{{.PackageDescriptor.Metadata.ArtifactID}}</artifactId>
|
||
|
<version>{{.PackageDescriptor.Version.Version}}</version>
|
||
|
</dependency></code></pre></div>
|
||
|
</div>
|
||
|
<div class="field">
|
||
|
<label>{{svg "octicon-terminal"}} {{.i18n.Tr "packages.maven.install2"}}</label>
|
||
|
<div class="markup"><pre class="code-block"><code>mvn install</code></pre></div>
|
||
|
</div>
|
||
|
<div class="field">
|
||
|
<label>{{svg "octicon-terminal"}} {{.i18n.Tr "packages.maven.download"}}</label>
|
||
|
<div class="markup"><pre class="code-block"><code>mvn dependency:get -DremoteRepositories={{AppUrl}}api/packages/{{.PackageDescriptor.Owner.Name}}/maven -Dartifact={{.PackageDescriptor.Metadata.GroupID}}:{{.PackageDescriptor.Metadata.ArtifactID}}:{{.PackageDescriptor.Version.Version}}</code></pre></div>
|
||
|
</div>
|
||
|
<div class="field">
|
||
|
<label>{{.i18n.Tr "packages.maven.documentation" | Safe}}</label>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
{{if .PackageDescriptor.Metadata.Description}}
|
||
|
<h4 class="ui top attached header">{{.i18n.Tr "packages.about"}}</h4>
|
||
|
<div class="ui attached segment">
|
||
|
{{.PackageDescriptor.Metadata.Description}}
|
||
|
</div>
|
||
|
{{end}}
|
||
|
|
||
|
{{if .PackageDescriptor.Metadata.Dependencies}}
|
||
|
<h4 class="ui top attached header">{{.i18n.Tr "packages.dependencies"}}</h4>
|
||
|
<div class="ui attached segment">
|
||
|
<div class="ui list">
|
||
|
{{range .PackageDescriptor.Metadata.Dependencies}}
|
||
|
<div class="item">
|
||
|
<i class="icon">{{svg "octicon-package-dependencies" 16 ""}}</i>
|
||
|
<div class="content">
|
||
|
<div class="header">{{.GroupID}}:{{.ArtifactID}}</div>
|
||
|
<div class="description text small">{{.Version}}</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
{{end}}
|
||
|
</div>
|
||
|
</div>
|
||
|
{{end}}
|
||
|
{{end}}
|