GeezerVison is showing github.com — Update example to use new servers configuration support · DemoOrg2/github-maven-example@d1c738b
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
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 number | Diff line number | Diff line change |
|---|
@@ -8,22 +8,18 @@ for how the downloads plugin and site plugin are configured. |
8 | 8 | * Fork this project |
9 | 9 | * Update the `pom.xml` file `<url>` element to be the address of your fork |
10 | 10 | * 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: |
12 | 12 |
|
13 | 13 | ```xml |
14 | | -<profiles> |
15 | | - <profile> |
| 14 | +<servers> |
| 15 | + <server> |
16 | 16 | <id>github</id> |
17 | 17 | <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> |
20 | 20 | </properties> |
21 | | - </profile> |
22 | | -</profiles> |
23 | | - |
24 | | -<activeProfiles> |
25 | | - <activeProfile>github</activeProfile> |
26 | | -</activeProfiles> |
| 21 | + </server> |
| 22 | +</servers> |
27 | 23 | ``` |
28 | 24 |
|
29 | 25 | # Using the downloads plugin |
|
Collapse file
Copy file name to clipboardExpand all lines: example/pom.xml +4-2Lines changed: 4 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
46 | 46 | <plugin> |
47 | 47 | <groupId>com.github.github</groupId> |
48 | 48 | <artifactId>downloads-maven-plugin</artifactId> |
49 | | - <version>0.4</version> |
| 49 | + <version>0.5</version> |
50 | 50 | <configuration> |
51 | 51 | <description>Official ${project.name} build of the ${project.version} release</description> |
52 | 52 | <override>true</override> |
53 | 53 | <includeAttached>true</includeAttached> |
| 54 | + <server>github</server> |
54 | 55 | </configuration> |
55 | 56 | <executions> |
56 | 57 | <execution> |
|
64 | 65 | <plugin> |
65 | 66 | <groupId>com.github.github</groupId> |
66 | 67 | <artifactId>site-maven-plugin</artifactId> |
67 | | - <version>0.5</version> |
| 68 | + <version>0.6</version> |
68 | 69 | <configuration> |
69 | 70 | <message>Building site for ${project.version}</message> |
| 71 | + <server>github</server> |
70 | 72 | </configuration> |
71 | 73 | <executions> |
72 | 74 | <execution> |
|