On Wed, Apr 7, 2010 at 1:20 PM, Jarek Gawor <[email protected]> wrote: > > I considered that too. If you're dealing with released artifacts that > should work ok. But if you are dealing with snapshot dependencies, you > might have multiple jars in the same directory with a different > snapshot version. The -Djava.endorsed.dirs would pick up all these > jars and so we wouldn't know exactly which jar is actually used. > That's why a temporary directory would be needed to copy the specific > artifact. > > Once the annotation, jaxws, etc. specs are released it should be > trivial to update the geronimo-property-plugin to return > -Djava.endorsed.dirs property instead of -Xbootclasspath property. >
Btw, I just updated the geronimo-property-plugin to return files or directories in the property it sets. So if we wanted the pass the -Djava.endorsed.dirs property to the compiler or surefire plugin we just need to configure the geronimo-property-plugin with: <propertyValuePrefix>-Djava.endorsed.dirs=</propertyValuePrefix> <listFiles>false</listFiles> instead of: <propertyValuePrefix>-Xbootclasspath/p:</propertyValuePrefix> <listFiles>true</listFiles> Jarek
