GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update example to use new servers configuration support · trm18/github-maven-example@d1c738b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • README.md
  • example
    • pom.xml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+7-11Lines changed: 7 additions & 11 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,18 @@ for how the downloads plugin and site plugin are configured.
88
* Fork this project
99
* Update the `pom.xml` file `<url>` element to be the address of your fork
1010
* Optionally update `<scm>` and `<developers>` section as well to have the information for your fork
11-
* Add the following to your Maven `settings.xml` file (update with your GitHub login name and password):
11+
* Add the following to your Maven `settings.xml` file updated with your GitHub login name and password:
1212

1313
```xml
14-
<profiles>
15-
<profile>
14+
<servers>
15+
<server>
1616
<id>github</id>
1717
<properties>
18-
<github.global.userName>user</github.global.userName>
19-
<github.global.password>password</github.global.password>
18+
<username>user</username>
19+
<password>password</password>
2020
</properties>
21-
</profile>
22-
</profiles>
23-
24-
<activeProfiles>
25-
<activeProfile>github</activeProfile>
26-
</activeProfiles>
21+
</server>
22+
</servers>
2723
```
2824

2925
# Using the downloads plugin
Collapse file

‎example/pom.xml‎

Copy file name to clipboardExpand all lines: example/pom.xml
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@
4646
<plugin>
4747
<groupId>com.github.github</groupId>
4848
<artifactId>downloads-maven-plugin</artifactId>
49-
<version>0.4</version>
49+
<version>0.5</version>
5050
<configuration>
5151
<description>Official ${project.name} build of the ${project.version} release</description>
5252
<override>true</override>
5353
<includeAttached>true</includeAttached>
54+
<server>github</server>
5455
</configuration>
5556
<executions>
5657
<execution>
@@ -64,9 +65,10 @@
6465
<plugin>
6566
<groupId>com.github.github</groupId>
6667
<artifactId>site-maven-plugin</artifactId>
67-
<version>0.5</version>
68+
<version>0.6</version>
6869
<configuration>
6970
<message>Building site for ${project.version}</message>
71+
<server>github</server>
7072
</configuration>
7173
<executions>
7274
<execution>

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.