This repository was archived by the owner on Nov 11, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Original file line number Diff line number Diff line change 9292 <stax2 .version>3.1.4</stax2 .version>
9393 <storage .version>v1-rev71-1.22.0</storage .version>
9494 <woodstox .version>4.4.1</woodstox .version>
95+
96+ <compiler .default.pkginfo.flag>-Xpkginfo:always</compiler .default.pkginfo.flag>
97+ <compiler .default.exclude>nothing</compiler .default.exclude>
9598 </properties >
9699
97100 <packaging >pom</packaging >
112115 <dataflow .javadoc_opts>-Xdoclint:-missing</dataflow .javadoc_opts>
113116 </properties >
114117 </profile >
118+
119+ <profile >
120+ <id >java7-packageinfo</id >
121+ <activation >
122+ <jdk >1.7</jdk >
123+ </activation >
124+ <properties >
125+ <!--
126+ Exclude package-info.java from main compilation to work around
127+ https://jira.codehaus.org/browse/MCOMPILER-205
128+ -->
129+ <compiler .default.pkginfo.flag>-Xpkginfo:legacy</compiler .default.pkginfo.flag>
130+ <compiler .default.exclude>**/package-info.java</compiler .default.exclude>
131+ </properties >
132+ <build >
133+ <plugins >
134+ <plugin >
135+ <artifactId >maven-compiler-plugin</artifactId >
136+ <executions >
137+ <!--
138+ Compile just package-info.java to avoid
139+ https://bugs.openjdk.java.net/browse/JDK-8022161
140+ -->
141+ <execution >
142+ <id >compile-package-info</id >
143+ <goals >
144+ <goal >compile</goal >
145+ </goals >
146+ <phase >compile</phase >
147+ <configuration >
148+ <compilerArgs >
149+ <arg >-Xpkginfo:always</arg >
150+ </compilerArgs >
151+ <includes >
152+ <include >**/package-info.java</include >
153+ </includes >
154+ </configuration >
155+ </execution >
156+ </executions >
157+ </plugin >
158+ </plugins >
159+ </build >
160+ </profile >
115161 </profiles >
116162
117163 <build >
145191 <!-- Another temp override, to be set to true in due course. -->
146192 <showDeprecation >false</showDeprecation >
147193 </configuration >
194+ <executions >
195+ <execution >
196+ <id >default-compile</id >
197+ <goals >
198+ <goal >compile</goal >
199+ </goals >
200+ <phase >compile</phase >
201+ <configuration >
202+ <compilerArgs >
203+ <arg >${compiler.default.pkginfo.flag} </arg >
204+ </compilerArgs >
205+ <excludes >
206+ <exclude >${compiler.default.exclude} </exclude >
207+ </excludes >
208+ </configuration >
209+ </execution >
210+ </executions >
148211 </plugin >
149212
150213 <plugin >
You can’t perform that action at this time.
0 commit comments