Exactly.
It is doable when I'm using maven embedded gf plugin, but its not (?)
possible when I want to start embedded gf from java code.
On 6/4/10 5:04 PM, Siraj Ghaffar wrote:
>
> Are you trying to override the jersey stuff bundled in glassfish
> embedded jar with a different version of jersey?
>
> Pavel Bucek wrote:
>> Hello,
>>
>> I'm Jersey (JAX-RS RI) developer and I'm trying to integrate embedded
>> glassfish into our test framework.
>>
>> I did first tryouts with maven plugin and it works fine and does
>> exactly as I want, because maven has standard way how to override
>> plugin dependency, so I can have something like:
>>
>> <plugin>
>> <groupId>org.glassfish</groupId>
>> <artifactId>maven-embedded-glassfish-plugin</artifactId>
>> <version>3.0</version>
>> ...
>>
>> <dependencies>
>> <dependency>
>> <groupId>com.sun.jersey</groupId>
>> <artifactId>jersey-server</artifactId>
>> <version>${project.version}</version>
>> </dependency>
>> ...
>> </dependencies>
>> </plugin>
>>
>> Unfortunately, there is no way how to do this when I want to depend
>> on embedded gf directly and control it from java code, not from maven.
>>
>> Is there any support for overriding dependencies? I don't see
>> anything usable in API or documentation.
>>
>> Thanks,
>> Pavel
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: embedded-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: embedded-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embedded-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: embedded-help_at_glassfish.dev.java.net
>