File tree Expand file tree Collapse file tree 1 file changed +1
-49
lines changed
Expand file tree Collapse file tree 1 file changed +1
-49
lines changed Original file line number Diff line number Diff line change 6262 <run >
6363 <env >
6464 <JAVA_OPTS >
65- -Dservicecomb.service.registry.address=http://sc.servicecomb.io:30100 -Dservicecomb.service.publishAddress= ${docker.hostname}
65+ -Dservicecomb.service.registry.address=http://sc.servicecomb.io:30100
6666 </JAVA_OPTS >
6767 <JAR_PATH >/maven/maven/${demo.service.name} -${project.version} .jar</JAR_PATH >
6868 </env >
121121 <id >docker</id >
122122 <build >
123123 <plugins >
124- <plugin >
125- <groupId >org.codehaus.gmavenplus</groupId >
126- <artifactId >gmavenplus-plugin</artifactId >
127- <executions >
128- <execution >
129- <id >add-default-properties</id >
130- <phase >initialize</phase >
131- <goals >
132- <goal >execute</goal >
133- </goals >
134- <configuration >
135- <scripts >
136- <script >
137- project.properties.setProperty('docker.hostname', 'localhost')
138- log.info("Docker hostname is " + project.properties['docker.hostname'])
139- </script >
140- </scripts >
141- </configuration >
142- </execution >
143- </executions >
144- </plugin >
145124 <plugin >
146125 <groupId >org.apache.maven.plugins</groupId >
147126 <artifactId >maven-failsafe-plugin</artifactId >
148127 <configuration >
149- <systemPropertyVariables >
150- <servicecomb .service.registry.address>http://${docker.hostname} :30100</servicecomb .service.registry.address>
151- </systemPropertyVariables >
152128 <argLine >${jacoco.failsafe.argLine} </argLine >
153129 </configuration >
154130 <executions >
167143 <id >docker-machine</id >
168144 <build >
169145 <plugins >
170- <plugin >
171- <groupId >org.codehaus.gmavenplus</groupId >
172- <artifactId >gmavenplus-plugin</artifactId >
173- <executions >
174- <execution >
175- <id >add-dynamic-properties</id >
176- <phase >prepare-package</phase >
177- <goals >
178- <goal >execute</goal >
179- </goals >
180- <configuration >
181- <scripts >
182- <script >
183- def process = "docker-machine ip default".execute()
184- process.waitFor()
185- project.properties.setProperty('docker.hostname', process.in.text.trim())
186-
187- log.info("Docker hostname is " + project.properties['docker.hostname'])
188- </script >
189- </scripts >
190- </configuration >
191- </execution >
192- </executions >
193- </plugin >
194146 </plugins >
195147 </build >
196148 </profile >
You can’t perform that action at this time.
0 commit comments