質問編集履歴

4

JDKのバージョン違いのMavenビルドについて追記

2016/06/02 07:31

投稿

masaya_ohashi
masaya_ohashi

スコア9206

test CHANGED
File without changes
test CHANGED
@@ -396,6 +396,12 @@
396
396
 
397
397
 
398
398
 
399
+ - 同じプロジェクトをJDK1.8.0_45でMavenビルドすると、警告はでますが実行できました。
400
+
401
+ JDK1.8.0_91でMavenビルドすると、警告ではなくブロックされて実行できませんでした。
402
+
403
+
404
+
399
405
  おそらく問題はMavenによるビルドと、NetBeansデフォルトのビルドの違いだと思われますが、
400
406
 
401
407
  どこが原因なのか調べる方法すらわかっておりません。

3

警告についての注釈を追記

2016/06/02 07:31

投稿

masaya_ohashi
masaya_ohashi

スコア9206

test CHANGED
File without changes
test CHANGED
@@ -34,6 +34,10 @@
34
34
 
35
35
  警告は表示されますが動いておりました。
36
36
 
37
+ 一字一句覚えているわけではありませんが、
38
+
39
+ 信頼出来ない署名ですがいいですか?といったニュアンスの警告でした。
40
+
37
41
 
38
42
 
39
43
  ###該当のソースコード
@@ -388,7 +392,7 @@
388
392
 
389
393
  同じ署名を使用して、プロジェクトをビルド、署名、jnlpから実行したところ、
390
394
 
391
- 警告は出ますが実行は可能でした。そのため、署名データに問題はないように思います。
395
+ 署名の信頼性の警告は出ますが実行は可能でした。そのため、署名データに問題はないように思います。
392
396
 
393
397
 
394
398
 

2

pomに固有名が残っていたため伏せる

2016/06/02 00:12

投稿

masaya_ohashi
masaya_ohashi

スコア9206

test CHANGED
File without changes
test CHANGED
@@ -270,7 +270,7 @@
270
270
 
271
271
  <packageName></packageName>
272
272
 
273
- <wsdlLocation>http://localhost:8080/BakuServer/XXXXXXXXXXXXXXX?wsdl</wsdlLocation>
273
+ <wsdlLocation>http://localhost:8080/XXXXXXXXXXXXXXX/XXXXXXXXXXXXXXX?wsdl</wsdlLocation>
274
274
 
275
275
  <staleFile>${project.build.directory}/jaxws/stale/XXXXXXXXXXXXXXX.stale</staleFile>
276
276
 

1

pom\.xml追記

2016/06/01 08:53

投稿

masaya_ohashi
masaya_ohashi

スコア9206

test CHANGED
File without changes
test CHANGED
@@ -38,7 +38,345 @@
38
38
 
39
39
  ###該当のソースコード
40
40
 
41
-
41
+ ```
42
+
43
+ pom.xml(build部分抜粋、プロジェクト固有名は伏せております)
44
+
45
+ ...
46
+
47
+ <build>
48
+
49
+ <resources>
50
+
51
+ <resource>
52
+
53
+ <targetPath>META-INF</targetPath>
54
+
55
+ <directory>src</directory>
56
+
57
+ <includes>
58
+
59
+ <include>jax-ws-catalog.xml</include>
60
+
61
+ <include>wsdl/**</include>
62
+
63
+ </includes>
64
+
65
+ </resource>
66
+
67
+ <resource>
68
+
69
+ <directory>src/main/resources</directory>
70
+
71
+ </resource>
72
+
73
+ </resources>
74
+
75
+ <plugins>
76
+
77
+ <plugin>
78
+
79
+ <groupId>org.apache.maven.plugins</groupId>
80
+
81
+ <artifactId>maven-dependency-plugin</artifactId>
82
+
83
+ <version>2.6</version>
84
+
85
+ <executions>
86
+
87
+ <execution>
88
+
89
+ <id>unpack-dependencies</id>
90
+
91
+ <phase>package</phase>
92
+
93
+ <goals>
94
+
95
+ <goal>unpack-dependencies</goal>
96
+
97
+ </goals>
98
+
99
+ <configuration>
100
+
101
+ <excludeScope>system</excludeScope>
102
+
103
+ <excludeGroupIds>junit,org.mockito,org.hamcrest</excludeGroupIds>
104
+
105
+ <outputDirectory>${project.build.directory}/classes</outputDirectory>
106
+
107
+ </configuration>
108
+
109
+ </execution>
110
+
111
+ </executions>
112
+
113
+ </plugin>
114
+
115
+ <plugin>
116
+
117
+ <groupId>org.codehaus.mojo</groupId>
118
+
119
+ <artifactId>exec-maven-plugin</artifactId>
120
+
121
+ <version>1.2.1</version>
122
+
123
+ <executions>
124
+
125
+ <execution>
126
+
127
+ <id>unpack-dependencies</id>
128
+
129
+
130
+
131
+ <phase>package</phase>
132
+
133
+ <goals>
134
+
135
+ <goal>exec</goal>
136
+
137
+ </goals>
138
+
139
+ <configuration>
140
+
141
+ <executable>${java.home}/../bin/javafxpackager</executable>
142
+
143
+ <arguments>
144
+
145
+ <argument>-createjar</argument>
146
+
147
+ <argument>-nocss2bin</argument>
148
+
149
+ <argument>-appclass</argument>
150
+
151
+ <argument>${mainClass}</argument>
152
+
153
+ <argument>-srcdir</argument>
154
+
155
+ <argument>${project.build.directory}/classes</argument>
156
+
157
+ <argument>-outdir</argument>
158
+
159
+ <argument>${project.build.directory}</argument>
160
+
161
+ <argument>-outfile</argument>
162
+
163
+ <argument>${project.build.finalName}.jar</argument>
164
+
165
+ </arguments>
166
+
167
+ </configuration>
168
+
169
+ </execution>
170
+
171
+ <execution>
172
+
173
+ <id>default-cli</id>
174
+
175
+ <goals>
176
+
177
+ <goal>exec</goal>
178
+
179
+ </goals>
180
+
181
+ <configuration>
182
+
183
+ <executable>${java.home}/bin/java</executable>
184
+
185
+ <commandlineArgs>${runfx.args}</commandlineArgs>
186
+
187
+ </configuration>
188
+
189
+ </execution>
190
+
191
+ </executions>
192
+
193
+ </plugin>
194
+
195
+ <plugin>
196
+
197
+ <groupId>org.apache.maven.plugins</groupId>
198
+
199
+ <artifactId>maven-compiler-plugin</artifactId>
200
+
201
+ <version>3.1</version>
202
+
203
+ <configuration>
204
+
205
+ <source>1.8</source>
206
+
207
+ <target>1.8</target>
208
+
209
+ <compilerArguments>
210
+
211
+ <bootclasspath>${sun.boot.class.path}${path.separator}${java.home}/lib/jfxrt.jar</bootclasspath>
212
+
213
+ </compilerArguments>
214
+
215
+ </configuration>
216
+
217
+ </plugin>
218
+
219
+ <plugin>
220
+
221
+ <groupId>org.apache.maven.plugins</groupId>
222
+
223
+ <artifactId>maven-surefire-plugin</artifactId>
224
+
225
+ <version>2.16</version>
226
+
227
+ <configuration>
228
+
229
+ <additionalClasspathElements>
230
+
231
+ <additionalClasspathElement>${java.home}/lib/jfxrt.jar</additionalClasspathElement>
232
+
233
+ </additionalClasspathElements>
234
+
235
+ </configuration>
236
+
237
+ </plugin>
238
+
239
+ <plugin>
240
+
241
+ <groupId>org.jvnet.jax-ws-commons</groupId>
242
+
243
+ <artifactId>jaxws-maven-plugin</artifactId>
244
+
245
+ <version>2.3</version>
246
+
247
+ <executions>
248
+
249
+ <execution>
250
+
251
+ <goals>
252
+
253
+ <goal>wsimport</goal>
254
+
255
+ </goals>
256
+
257
+ <configuration>
258
+
259
+ <vmArgs>
260
+
261
+ <vmArg>-Djavax.xml.accessExternalSchema=all</vmArg>
262
+
263
+ </vmArgs>
264
+
265
+ <wsdlFiles>
266
+
267
+ <wsdlFile>localhost_8080/XXXXXXXXXXXXXXX/XXXXXXXXXXXXXXX.wsdl</wsdlFile>
268
+
269
+ </wsdlFiles>
270
+
271
+ <packageName></packageName>
272
+
273
+ <wsdlLocation>http://localhost:8080/BakuServer/XXXXXXXXXXXXXXX?wsdl</wsdlLocation>
274
+
275
+ <staleFile>${project.build.directory}/jaxws/stale/XXXXXXXXXXXXXXX.stale</staleFile>
276
+
277
+ </configuration>
278
+
279
+ <id>wsimport-generate-XXXXXXXXXXXXXXX</id>
280
+
281
+ <phase>generate-sources</phase>
282
+
283
+ </execution>
284
+
285
+ </executions>
286
+
287
+ <dependencies>
288
+
289
+ <dependency>
290
+
291
+ <groupId>javax.xml</groupId>
292
+
293
+ <artifactId>webservices-api</artifactId>
294
+
295
+ <version>2.0</version>
296
+
297
+ </dependency>
298
+
299
+ </dependencies>
300
+
301
+ <configuration>
302
+
303
+ <sourceDestDir>${project.build.directory}/generated-sources/jaxws-wsimport</sourceDestDir>
304
+
305
+ <xnocompile>true</xnocompile>
306
+
307
+ <verbose>true</verbose>
308
+
309
+ <extension>true</extension>
310
+
311
+ <catalog>${basedir}/src/jax-ws-catalog.xml</catalog>
312
+
313
+ </configuration>
314
+
315
+ </plugin>
316
+
317
+ <plugin>
318
+
319
+ <groupId>org.apache.maven.plugins</groupId>
320
+
321
+ <artifactId>maven-jarsigner-plugin</artifactId>
322
+
323
+ <version>1.4</version>
324
+
325
+ <executions>
326
+
327
+ <execution>
328
+
329
+ <id>signing</id>
330
+
331
+ <goals>
332
+
333
+ <goal>sign</goal>
334
+
335
+ <goal>verify</goal>
336
+
337
+ </goals>
338
+
339
+ <phase>package</phase>
340
+
341
+ <inherited>true</inherited>
342
+
343
+ <configuration>
344
+
345
+ <removeExistingSignatures>true</removeExistingSignatures>
346
+
347
+ <archiveDirectory></archiveDirectory>
348
+
349
+ <includes>
350
+
351
+ <include>${project.build.directory}/${project.artifactId}.jar</include>
352
+
353
+ </includes>
354
+
355
+ <keystore>./XXXXXXXXXXXXXXX.keystore</keystore>
356
+
357
+ <storepass>XXXXXXXXXXXXXXX</storepass>
358
+
359
+ <keypass>XXXXXXXXXXXXXXX</keypass>
360
+
361
+ <alias>XXXXXXXXXXXXXXX</alias>
362
+
363
+ <verbose>true</verbose>
364
+
365
+ </configuration>
366
+
367
+ </execution>
368
+
369
+ </executions>
370
+
371
+ </plugin>
372
+
373
+ </plugins>
374
+
375
+ </build>
376
+
377
+ ...
378
+
379
+ ```
42
380
 
43
381
  ###試したこと
44
382