Discussion:
Wicket 8 : OSGI wiring problem with junit framework.
SUBRA
2018-08-21 09:13:43 UTC
Permalink
HI,

I'm migrating to wicket-8, getting osgi wiring problem with junit framework
osgi.wiring.package=junit.framework

Jira issue, created with similar issue, is in resolved state but apparently
it is not.

https://issues.apache.org/jira/browse/WICKET-6509
<https://issues.apache.org/jira/browse/WICKET-6509>

Fixed version : *8.0.0-M9*
Using wicket-core : *8.0.0*

Please help me to resolve the issue

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
Martin Grigorov
2018-08-21 09:41:19 UTC
Permalink
Hi,
Post by SUBRA
HI,
I'm migrating to wicket-8, getting osgi wiring problem with junit framework
osgi.wiring.package=junit.framework
Jira issue, created with similar issue, is in resolved state but apparently
it is not.
This issue has been tested successfully by its reporter.

As it is explained in the comments none of the Wicket developers uses/knows
OSGi, so you will have to explain better what is the issue you face and to
suggest an improvement.
Thank you!
Post by SUBRA
https://issues.apache.org/jira/browse/WICKET-6509
<https://issues.apache.org/jira/browse/WICKET-6509>
Fixed version : *8.0.0-M9*
Using wicket-core : *8.0.0*
Please help me to resolve the issue
--
http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
---------------------------------------------------------------------
SUBRA
2018-08-21 12:22:38 UTC
Permalink
Is this issue has been tested successfully by its reporter. Did i miss
anything?

We are using junit : 4.12, on bundle start getting the BundleException

Unresolved constraint in bundle org.apache.wicket.core [34]: Unable to
resolve 34.0: missing requirement [34.0] osgi.wiring.package;
(osgi.wiring.package=junit.framework)




--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
SUBRA
2018-08-29 10:30:42 UTC
Permalink
Investigated the issue, the fix provided in

https://issues.apache.org/jira/browse/WICKET-6509 is not resolving the
problem.

Still In the generated manifest file the packages are present as it is
previously with out resolution : optional

Instead of setting the resolution:optional in the pom.xml of wicket
project

https://github.com/apache/wicket/blob/wicket-8.x/pom.xml

set the dependency for

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>

*<optional>true<optional>*
<scope>provided</scope>
</dependency>

as optional true as specified above

It resolves the problem, that means setting the resolution optional in the
manifest file





--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org

Loading...