-
Notifications
You must be signed in to change notification settings - Fork 582
/
settingsXML.go
136 lines (131 loc) · 5 KB
/
settingsXML.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
package maven
import (
"encoding/xml"
)
type Server struct {
ID string `xml:"id,omitempty"`
Username string `xml:"username,omitempty"`
Password string `xml:"password,omitempty"`
PrivateKey string `xml:"privateKey,omitempty"`
Passphrase string `xml:"passphrase,omitempty"`
FilePermissions string `xml:"filePermissions,omitempty"`
DirectoryPermissions string `xml:"directoryPermissions,omitempty"`
Configuration string `xml:"configuration,omitempty"`
}
type ServersType struct {
ServerType []Server `xml:"server,omitempty"`
}
type ActiveProfilesType struct {
XMLName xml.Name `xml:"activeProfiles"`
Text string `xml:",chardata"`
ActiveProfile []string `xml:"activeProfile"`
}
type Settings struct {
XMLName xml.Name `xml:"http://maven.apache.org/SETTINGS/1.0.0 settings"`
Text string `xml:",chardata"`
// Xmlns xml.Attr `xml:"xmlns,attr"`
//Xmlns string `xml:"xmlns,attr"`
Xsi string `xml:"xmlns:xsi,attr"`
SchemaLocation string `xml:"xsi:schemaLocation,attr"`
LocalRepository string `xml:"localRepository,omitempty"`
InteractiveMode string `xml:"interactiveMode,omitempty"`
Offline string `xml:"offline,omitempty"`
PluginGroups struct {
Text string `xml:",chardata"`
PluginGroup string `xml:"pluginGroup,omitempty"`
} `xml:"pluginGroups,omitempty"`
Servers ServersType `xml:"servers,omitempty"`
Mirrors struct {
Text string `xml:",chardata"`
Mirror []struct {
Text string `xml:",chardata"`
ID string `xml:"id,omitempty"`
Name string `xml:"name,omitempty"`
URL string `xml:"url,omitempty"`
MirrorOf string `xml:"mirrorOf,omitempty"`
} `xml:"mirror,omitempty"`
} `xml:"mirrors,omitempty"`
Proxies struct {
Text string `xml:",chardata"`
Proxy []struct {
Text string `xml:",chardata"`
ID string `xml:"id,omitempty"`
Active string `xml:"active,omitempty"`
Protocol string `xml:"protocol,omitempty"`
Host string `xml:"host,omitempty"`
Port string `xml:"port,omitempty"`
Username string `xml:"username,omitempty"`
Password string `xml:"password,omitempty"`
NonProxyHosts string `xml:"nonProxyHosts,omitempty"`
} `xml:"proxy,omitempty"`
} `xml:"proxies,omitempty"`
Profiles struct {
Text string `xml:",chardata"`
Profile []struct {
Text string `xml:",chardata"`
ID string `xml:"id,omitempty"`
// Activation struct {
// Text string `xml:",chardata"`
// ActiveByDefault string `xml:"activeByDefault,omitempty"`
// Jdk string `xml:"jdk,omitempty"`
// Os struct {
// Text string `xml:",chardata"`
// Name string `xml:"name,omitempty"`
// Family string `xml:"family,omitempty"`
// Arch string `xml:"arch,omitempty"`
// Version string `xml:"version,omitempty"`
// } `xml:"os,omitempty"`
// Property struct {
// Text string `xml:",chardata"`
// Name string `xml:"name,omitempty"`
// Value string `xml:"value,omitempty"`
// } `xml:"property,omitempty"`
// File struct {
// Text string `xml:",chardata"`
// Exists string `xml:"exists,omitempty"`
// Missing string `xml:"missing,omitempty"`
// } `xml:"file,omitempty"`
// } `xml:"activation,omitempty"`
Repositories struct {
Text string `xml:",chardata"`
Repository []struct {
Text string `xml:",chardata"`
ID string `xml:"id,omitempty"`
Name string `xml:"name,omitempty"`
Releases struct {
Text string `xml:",chardata"`
Enabled string `xml:"enabled,omitempty"`
UpdatePolicy string `xml:"updatePolicy,omitempty"`
ChecksumPolicy string `xml:"checksumPolicy,omitempty"`
} `xml:"releases,omitempty"`
Snapshots struct {
Text string `xml:",chardata"`
Enabled string `xml:"enabled,omitempty"`
UpdatePolicy string `xml:"updatePolicy,omitempty"`
ChecksumPolicy string `xml:"checksumPolicy,omitempty"`
} `xml:"snapshots,omitempty"`
URL string `xml:"url,omitempty"`
Layout string `xml:"layout,omitempty"`
} `xml:"repository,omitempty"`
} `xml:"repositories,omitempty"`
PluginRepositories struct {
Text string `xml:",chardata"`
PluginRepository []struct {
Text string `xml:",chardata"`
ID string `xml:"id,omitempty"`
Name string `xml:"name,omitempty"`
Releases struct {
Text string `xml:",chardata"`
Enabled string `xml:"enabled,omitempty"`
} `xml:"releases,omitempty"`
Snapshots struct {
Text string `xml:",chardata"`
Enabled string `xml:"enabled,omitempty"`
} `xml:"snapshots,omitempty"`
URL string `xml:"url,omitempty"`
} `xml:"pluginRepository,omitempty"`
} `xml:"pluginRepositories,omitempty"`
} `xml:"profile,omitempty"`
} `xml:"profiles,omitempty"`
ActiveProfiles ActiveProfilesType `xml:"activeProfiles,omitempty"`
}