|
66 | 66 | <artifactId>jersey-test-framework-provider-external</artifactId> |
67 | 67 | <scope>test</scope> |
68 | 68 | </dependency> |
69 | | -<!-- |
70 | | - <dependency> |
71 | | - <groupId>org.glassfish.jersey.test-framework.providers</groupId> |
72 | | - <artifactId>jersey-test-framework-provider-grizzly2</artifactId> |
73 | | - <scope>test</scope> |
74 | | - </dependency> |
75 | | - <dependency> |
76 | | - <groupId>org.glassfish.jersey.connectors</groupId> |
77 | | - <artifactId>jersey-grizzly-connector</artifactId> |
78 | | - <scope>test</scope> |
79 | | - </dependency> |
80 | | ---> |
81 | 69 | </dependencies> |
82 | 70 |
|
83 | 71 | <build> |
|
86 | 74 | <groupId>org.apache.maven.plugins</groupId> |
87 | 75 | <artifactId>maven-compiler-plugin</artifactId> |
88 | 76 | </plugin> |
89 | | -<!-- |
90 | | - <plugin> |
91 | | - <groupId>org.apache.maven.plugins</groupId> |
92 | | - <artifactId>maven-surefire-plugin</artifactId> |
93 | | - <configuration> |
94 | | - <forkMode>always</forkMode> |
95 | | - <enableAssertions>false</enableAssertions> |
96 | | - <systemPropertyVariables><!– ??? still logging not working –> |
97 | | - <java.util.logging.config.file>${project.build.testOutputDirectory}/logging.properties</java.util.logging.config.file> |
98 | | - </systemPropertyVariables> |
99 | | - </configuration> |
100 | | - </plugin> |
101 | | ---> |
102 | 77 | <plugin> |
103 | 78 | <groupId>org.apache.maven.plugins</groupId> |
104 | 79 | <artifactId>maven-failsafe-plugin</artifactId> |
105 | 80 | <configuration> |
106 | | - <systemPropertyVariables><!-- ??? still logging not working --> |
| 81 | + <systemPropertyVariables> |
| 82 | + <!-- client side config works - failsafe plugin forks jvm --> |
107 | 83 | <java.util.logging.config.file>${project.build.testOutputDirectory}/logging.properties</java.util.logging.config.file> |
108 | 84 | </systemPropertyVariables> |
109 | 85 | </configuration> |
110 | 86 | </plugin> |
111 | 87 | <plugin> |
112 | 88 | <groupId>org.mortbay.jetty</groupId> |
113 | 89 | <artifactId>jetty-maven-plugin</artifactId> |
114 | | - <!--<version>8.1.12.v20130726</version>--> |
115 | 90 | <configuration> |
116 | 91 | <connectors> |
117 | 92 | <connector> |
118 | 93 | <responseHeaderSize>16192</responseHeaderSize> |
119 | 94 | </connector> |
120 | 95 | </connectors> |
| 96 | + <!-- server side config does not fork with jetty:run goal - it uses same jvm |
| 97 | + use maven '-D' option instead: |
| 98 | + mvn _goal_ -Djava.util.logging.config.file=target/test-classes/logging.properties |
121 | 99 | <systemProperties> |
122 | | - <systemProperty><!-- ??? still logging not working --> |
| 100 | + <systemProperty> |
123 | 101 | <name>java.util.logging.config.file</name> |
124 | 102 | <value>${project.build.testOutputDirectory}/logging.properties</value> |
125 | 103 | </systemProperty> |
126 | 104 | </systemProperties> |
| 105 | + --> |
127 | 106 | </configuration> |
128 | 107 | </plugin> |
129 | 108 | </plugins> |
|
0 commit comments