tag:blogger.com,1999:blog-6136151974836877051.post1204839710556529747..comments2024-03-23T06:21:32.833-04:00Comments on Raja Kannappan's Blog: Automating Eclipse Source Bundle Generation using MavenRajahttp://www.blogger.com/profile/07749555177730926480noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-6136151974836877051.post-56962504840474411562014-02-08T07:16:52.476-05:002014-02-08T07:16:52.476-05:00Is it possible to use the OSGi bundles in place of...Is it possible to use the OSGi bundles in place of utility jars - public as well as home grown - in a JavaEE application or a simple standalone application?<br /><br />If it is possible, how can I achieve it? I cannot use Maven or ony other utilities of that kind. I can use RAD / EclipseAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6136151974836877051.post-81307251077157017972013-07-12T09:57:32.064-04:002013-07-12T09:57:32.064-04:00I always get:
[INFO] --- maven-source-plugin:2.2...I always get:<br /><br /><br />[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ org.scala-ide.scala.library ---<br />[INFO] No sources in project. Archive not created.<br />[INFO] <br /><br /><br />Like you, I am generating bundles from jars, using bnd. I unpack sources in ${project.basedir}/src in the generate-sources phase, but still it complains there are no sources (the sources are there).Iulianhttps://www.blogger.com/profile/13797284636264105711noreply@blogger.comtag:blogger.com,1999:blog-6136151974836877051.post-2530845312562851382011-02-11T22:33:04.238-05:002011-02-11T22:33:04.238-05:00@java_realtime - You could get BundleContext from ...@java_realtime - You could get BundleContext from your Activator's start and stop methods. From BundleContext you can get the Bundle and from Bundle you can call getVersion to get the version of a bundle. This is one way to get the bundle version.Rajahttps://www.blogger.com/profile/07749555177730926480noreply@blogger.comtag:blogger.com,1999:blog-6136151974836877051.post-2041639369976429712011-01-13T19:26:12.810-05:002011-01-13T19:26:12.810-05:00How to read Bundle-Version from code?How to read Bundle-Version from code?Royal Bakeshttps://www.blogger.com/profile/01281568293462164731noreply@blogger.comtag:blogger.com,1999:blog-6136151974836877051.post-10037195983038294872010-03-07T19:55:13.047-05:002010-03-07T19:55:13.047-05:00Thanks Alex. That would be very useful. I'll k...Thanks Alex. That would be very useful. I'll keep an eye on this when 3.6 comes out.Rajahttps://www.blogger.com/profile/07749555177730926480noreply@blogger.comtag:blogger.com,1999:blog-6136151974836877051.post-33934105005358255252010-03-07T18:54:25.315-05:002010-03-07T18:54:25.315-05:00Just so that you're aware; it's also possi...Just so that you're aware; it's also possible to get Eclipse to embed a Maven-like SCM URL using Eclipse-SourceReferences. It will be coming up in the 3.6M6 build as far as I know - more details from my blog.AlBluehttps://www.blogger.com/profile/06362201865553416948noreply@blogger.com