Advertisement
logicmoo

revertion.patch

Oct 27th, 2013
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ZXBasic 85.42 KB | None | 0 0
  1. Index: ext.bundle.apache_httpclient/pom.xml
  2. ===================================================================
  3. --- ext.bundle.apache_httpclient/pom.xml    (revision 566)
  4. +++ ext.bundle.apache_httpclient/pom.xml    (working copy)
  5. @@ -26,6 +26,13 @@
  6.             <artifactId>httpclient-osgi</artifactId>
  7.              <version>4.3</version>
  8.         </dependency>      
  9. +<!-- javax.servlet may be included in pax web, NOT sure IF this is still needed -->
  10. +       <dependency>
  11. +           <groupId>javax.servlet</groupId>
  12. +           <artifactId>servlet-api</artifactId>
  13. +           <version>2.5</version>
  14. +           <scope>provided</scope>
  15. +       </dependency>
  16.  
  17.          </dependencies>
  18.  
  19. @@ -38,8 +45,9 @@
  20.                  <extensions>true</extensions>
  21.                  <configuration>
  22.                          <instructions>
  23. -                        <Embed-Dependency>*;scope=compile|runtime;inline=true</Embed-Dependency>
  24. -                        <Import-Package>javax.crypto, javax.crypto.spec, javax.net, javax.net.ssl, javax.security.auth.x500, org.ietf.jgss, org.osgi.framework, org.osgi.service.cm, org.apache.commons.logging;version="[1.1.1,1.2.0)", org.apache.http;version=${httpcore.version}, org.apache.http.config;version=${httpcore.version}, org.apache.http.concurrent;version=${httpcore.version}, org.apache.http.entity;version=${httpcore.version}, org.apache.http.io;version=${httpcore.version}, org.apache.http.message;version=${httpcore.version}, org.apache.http.params;version=${httpcore.version}, org.apache.http.pool;version=${httpcore.version}, org.apache.http.protocol;version=${httpcore.version}, org.apache.http.util;version=${httpcore.version}, org.apache.http.impl;version=${httpcore.version}, org.apache.http.impl.entity;version=${httpcore.version}, org.apache.http.impl.io;version=${httpcore.version}, org.apache.http.impl.pool;version=${httpcore.version}, net.sf.ehcache.*;resolution:=optional, net.spy.memcached.*;resolution:=optional</Import-Package>
  25. +                            <Embed-Dependency>*;scope=compile|runtime;inline=true</Embed-Dependency>
  26. +                            <Embed-Transitive>true</Embed-Transitive>
  27. +                        <Import-Package>javax.servlet, org.apache.avalon.framework.logger, org.apache.log, org.apache.log4j, javax.crypto, javax.crypto.spec, javax.net, javax.net.ssl, javax.security.auth.x500, org.ietf.jgss, org.osgi.framework, org.osgi.service.cm, org.apache.commons.logging;version="[1.1.1,1.2.0)", org.apache.http;version=${httpcore.version}, org.apache.http.config;version=${httpcore.version}, org.apache.http.concurrent;version=${httpcore.version}, org.apache.http.entity;version=${httpcore.version}, org.apache.http.io;version=${httpcore.version}, org.apache.http.message;version=${httpcore.version}, org.apache.http.params;version=${httpcore.version}, org.apache.http.pool;version=${httpcore.version}, org.apache.http.protocol;version=${httpcore.version}, org.apache.http.util;version=${httpcore.version}, org.apache.http.impl;version=${httpcore.version}, org.apache.http.impl.entity;version=${httpcore.version}, org.apache.http.impl.io;version=${httpcore.version}, org.apache.http.impl.pool;version=${httpcore.version}, net.sf.ehcache.*;resolution:=optional, net.spy.memcached.*;resolution:=optional</Import-Package>
  28.                          <!--Bundle-Activator>org.apache.http.osgi.impl.HttpProxyConfigurationActivator</Bundle-Activator-->
  29.                          </instructions>
  30.                  </configuration>
  31. Index: ext.bundle.jena.full/pom.xml
  32. ===================================================================
  33. --- ext.bundle.jena.full/pom.xml    (revision 566)
  34. +++ ext.bundle.jena.full/pom.xml    (working copy)
  35. @@ -265,7 +265,7 @@
  36.             <version>${jena-iri.version}</version>
  37.             <classifier>sources</classifier>
  38.         </dependency>
  39. -              
  40. +
  41.      <!--
  42.      <dependency>
  43.         <groupId>org.apache.jena</groupId>
  44. @@ -324,7 +324,7 @@
  45.             <ver.arq>2.8.8</ver.arq>  <== We are using 2.8.7 below, which is used in Joseki 3.4.3.
  46.         <ver.sdb>1.3.4</ver.sdb>  <== We are using this, but Joseki 3.4.3 uses 1.3.3.
  47.     -->
  48. -          
  49. +  
  50.     <build>
  51.         <plugins>
  52.             <plugin>
  53. @@ -342,7 +342,7 @@
  54.                         <Bundle-Activator>org.appdapter.ext.bundle.jena.full.Activator</Bundle-Activator>
  55.                         <!-- The sdb.* packages require Junit -->
  56.                         <Export-Package>org.appdapter.*,arq.*,tdb.*,com.hp.hpl.jena.*,etc.*,org.openjena.*,vocabularies.*, jena.*, org.apache.jena.*</Export-Package>
  57. -                       <Private-Package>riotcmd</Private-Package>
  58. +                       <Private-Package>riotcmd, org.apache.http.*</Private-Package>
  59.                     </instructions>
  60.                 </configuration>
  61.             </plugin>
  62. Index: ext.bundle.math.symja_jas/pom.xml
  63. ===================================================================
  64. --- ext.bundle.math.symja_jas/pom.xml   (revision 566)
  65. +++ ext.bundle.math.symja_jas/pom.xml   (working copy)
  66. @@ -69,21 +69,131 @@
  67.          </plugins>
  68.      </build>
  69.  
  70. +    <profiles>
  71. +        <profile>
  72. +            <id>build-for-felix</id>
  73. +            <dependencies>
  74. +                <dependency>
  75. +                    <groupId>org.apache.felix</groupId>
  76. +                    <artifactId>org.apache.felix.main</artifactId>
  77. +                    <version>4.2.1</version>
  78. +                    <scope>provided</scope>
  79. +                </dependency>
  80. +                <!-- TO include a shell:
  81. +                <dependency>
  82. +                    <groupId>org.apache.felix</groupId>
  83. +                    <artifactId>org.apache.felix.gogo.shell</artifactId>
  84. +                    <version>0.6.1</version>
  85. +                </dependency>
  86. +                -->
  87. +            </dependencies>
  88. +            <build>
  89. +                <plugins>
  90. +                    <plugin>
  91. +                        <groupId>org.apache.maven.plugins</groupId>
  92. +                        <artifactId>maven-antrun-plugin</artifactId>
  93. +                        <version>1.6</version>
  94. +                        <executions>
  95. +                            <execution>
  96. +                                <id>compile</id>
  97. +                                <phase>package</phase>
  98. +                                <goals>
  99. +                                    <goal>run</goal>
  100. +                                </goals>
  101. +                                <configuration>
  102. +                                    <target>
  103. +                                        <pathconvert property="plugins.jars" pathsep="${path.separator}">
  104. +                                            <path refid="maven.runtime.classpath" />
  105. +                                            <map from="${project.build.directory}${file.separator}classes" TO="" />
  106. +                                        </pathconvert>
  107. +                                        <pathconvert pathsep=" " property="bundles">
  108. +                                            <path path="${plugins.jars}" />
  109. +                                            <mapper>
  110. +                                                <chainedmapper>
  111. +                                                    <flattenmapper />
  112. +                                                    <globmapper from="*" TO="file:modules/*" casesensitive="no" />
  113. +                                                </chainedmapper>
  114. +                                            </mapper>
  115. +                                        </pathconvert>
  116. +                                        <propertyfile file="${project.build.directory}/config.properties">
  117. +                                            <entry key="felix.auto.start" value="${bundles} file:modules/${project.build.finalName}.jar" />
  118. +                                            <entry key="org.osgi.framework.bootdelegation" value="*" />
  119. +                                        </propertyfile>
  120. +                                        <copy file="${maven.dependency.org.apache.felix.org.apache.felix.main.jar.path}" tofile="${project.build.directory}/felix.jar" />
  121. +                                    </target>
  122. +                                </configuration>
  123. +                            </execution>
  124. +                        </executions>
  125. +                    </plugin>
  126. +                    <plugin>
  127. +                        <groupId>org.apache.maven.plugins</groupId>
  128. +                        <artifactId>maven-assembly-plugin</artifactId>
  129. +                        <version>2.2</version>
  130. +                        <executions>
  131. +                            <execution>
  132. +                                <id>create-executable-jar</id>
  133. +                                <phase>package</phase>
  134. +                                <goals>
  135. +                                    <goal>single</goal>
  136. +                                </goals>
  137. +                                <configuration>
  138. +                                    <descriptors>
  139. +                                        <descriptor>${basedir}/src/main/assembly/felix.xml</descriptor>
  140. +                                    </descriptors>
  141. +                                    <finalName>${project.build.finalName}</finalName>
  142. +                                </configuration>
  143. +                            </execution>
  144. +                        </executions>
  145. +                    </plugin>
  146. +                </plugins>
  147. +            </build>
  148. +        </profile>
  149. +        <profile>
  150. +            <id>run-on-felix</id>
  151. +            <dependencies>
  152. +                <dependency>
  153. +                    <groupId>org.apache.felix</groupId>
  154. +                    <artifactId>org.apache.felix.main</artifactId>
  155. +                    <version>4.2.1</version>
  156. +                    <scope>provided</scope>
  157. +                </dependency>
  158. +                <!-- org.apache.felix:org.apache.felix.gogo.shell:0.6.1 useless from Maven since stdin is swallowed -->
  159. +            </dependencies>
  160. +            <build>
  161. +                <plugins>
  162. +                    <plugin>
  163. +                        <groupId>org.apache.maven.plugins</groupId>
  164. +                        <artifactId>maven-antrun-plugin</artifactId>
  165. +                        <version>1.6</version>
  166. +                        <configuration>
  167. +                            <target>
  168. +                                <property name="vm.args" value="" />
  169. +                                <pathconvert property="plugins.jars" pathsep="${path.separator}">
  170. +                                    <path refid="maven.runtime.classpath" />
  171. +                                    <map from="${project.build.directory}${file.separator}classes" TO="" />
  172. +                                </pathconvert>
  173. +                                <makeurl property="urls" separator=" ">
  174. +                                    <path path="${plugins.jars}" />
  175. +                                    <path location="${project.build.directory}/${project.build.finalName}.jar" />
  176. +                                </makeurl>
  177. +                                <propertyfile file="${project.build.directory}/run.properties">
  178. +                                    <entry key="felix.auto.start" value="${urls}" />
  179. +                                    <entry key="felix.auto.deploy.action" value="uninstall,install,update,start" />
  180. +                                    <entry key="org.osgi.framework.storage" value="${project.build.directory}${file.separator}felix-cache" />
  181. +                                    <entry key="org.osgi.framework.bootdelegation" value="*" />
  182. +                                    <!-- org.w3c.dom.* are missing from default.properties in felix 4.2.1, they are present in 3.0.7 -->
  183. +                                    <entry key="org.osgi.framework.system.packages.extra" value="org.w3c.dom.css, org.w3c.dom.html, org.w3c.dom.stylesheets, org.w3c.dom.traversal,                                                     org.w3c.dom.ranges,                                                     org.w3c.dom.views,                                                     org.w3c.dom.xpath" />
  184. +                                </propertyfile>
  185. +                                <makeurl property="run.properties.url" file="${project.build.directory}/run.properties" />
  186. +                                <java fork="true" jar="${maven.dependency.org.apache.felix.org.apache.felix.main.jar.path}">
  187. +                                    <sysproperty key="felix.config.properties" value="${run.properties.url}" />
  188. +                                    <jvmarg line="${vm.args}" />
  189. +                                </java>
  190. +                            </target>
  191. +                        </configuration>
  192. +                    </plugin>
  193. +                </plugins>
  194. +            </build>
  195. +        </profile>
  196. +    </profiles>
  197.  </project>
  198. -<!--
  199. -/*
  200. - *  Copyright 2013 by The Appdapter Project (www.appdapter.org).
  201. - *
  202. - *  Licensed under the Apache License, Version 2.0 (the "License");
  203. - *  you may NOT use this file except in compliance with the License.
  204. - *  You may obtain a copy of the License AT
  205. - *
  206. - *       http://www.apache.org/licenses/LICENSE-2.0
  207. - *
  208. - *  Unless required by applicable law OR agreed TO in writing, software
  209. - *  distributed under the License is distributed on an "AS IS" BASIS,
  210. - *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express OR implied.
  211. - *  See the License FOR the specific language governing permissions AND
  212. - *  limitations under the License.
  213. - */
  214. --->
  215. \ No newline AT END of file
  216. Index: ext.bundle.openconverters/pom.xml
  217. ===================================================================
  218. --- ext.bundle.openconverters/pom.xml   (revision 566)
  219. +++ ext.bundle.openconverters/pom.xml   (working copy)
  220. @@ -7,7 +7,7 @@
  221.         <artifactId>org.appdapter.modules.core</artifactId>
  222.         <version>1.1.3-SNAPSHOT</version>
  223.         <relativePath>../org.appdapter.modules.core/pom.xml</relativePath>
  224. -   </parent>
  225. +   </parent>  
  226.  
  227.     <artifactId>ext.bundle.openconverters</artifactId>
  228.     <packaging>bundle</packaging>
  229. @@ -35,8 +35,9 @@
  230.             <groupId>${project.groupId}</groupId>
  231.             <artifactId>ext.bundle.xml.dom4j_161</artifactId>
  232.             <version>${project.version}</version>
  233. -           <scope>runtime</scope>
  234. +           <scope>runtime</scope>         
  235.         </dependency>
  236. +
  237.         <dependency>
  238.             <groupId>org.apache.poi</groupId>
  239.             <artifactId>poi</artifactId>
  240. @@ -45,7 +46,7 @@
  241.         <dependency>
  242.             <groupId>org.apache.poi</groupId>
  243.             <artifactId>ooxml-schemas</artifactId>
  244. -           <version>1.0</version>
  245. +           <version>1.1</version>
  246.         </dependency>
  247.         <dependency>
  248.             <groupId>org.apache.poi</groupId>
  249. @@ -63,12 +64,9 @@
  250.                     <artifactId>dom4j</artifactId>
  251.                 </exclusion>
  252.             </exclusions>
  253. -       </dependency>              
  254. +       </dependency>
  255. +  
  256.  
  257. -       <!-- FOR the GUI -->
  258. -       <!--dependency> <groupId>com.jidesoft</groupId> <artifactId>jide-oss</artifactId>
  259. -           <version>3.5.5</version> </dependency -->
  260. -
  261.         <!-- Included servicemix bundle TO export apache.commons.codec. Needed
  262.             by org.apache.poi ... but this sorta conflicts with direct commons-codec
  263.             dep required by Jena ARQ, which uses a different version numbering stream,
  264. @@ -96,48 +94,36 @@
  265.  
  266.         <!-- TODO: LET's move the POI-dependent features into their own bundle
  267.             oriented towards data import/export. Included ow2 bundle TO export apache.commons.logging.
  268. -           Needed by org.apache.poi -->
  269. -       <dependency>
  270. -           <groupId>org.ow2.bundles</groupId>
  271. -           <artifactId>ow2-bundles-externals-commons-logging</artifactId>
  272. -           <version>1.0.33</version>
  273. -           <scope>runtime</scope>
  274. -           <exclusions>
  275. -               <exclusion>
  276. -                   <artifactId>commons-logging-api</artifactId>
  277. -                   <groupId>commons-logging</groupId>
  278. -               </exclusion>
  279. -           </exclusions>
  280. -       </dependency>
  281. -      
  282. +            Needed by org.apache.poi -->
  283. +        <dependency>
  284. +            <groupId>org.ow2.bundles</groupId>
  285. +            <artifactId>ow2-bundles-externals-commons-logging</artifactId>
  286. +            <version>1.0.33</version>
  287. +            <scope>runtime</scope>
  288. +            <exclusions>
  289. +                <exclusion>
  290. +                    <artifactId>commons-logging-api</artifactId>
  291. +                    <groupId>commons-logging</groupId>
  292. +                </exclusion>
  293. +            </exclusions>
  294. +        </dependency>
  295. +
  296.         <!-- CSV library used FOR parsing - indepdendent of the POI stuff-->
  297. -       <dependency>
  298. +       <!--dependency>
  299.             <groupId>net.sf.opencsv</groupId>
  300.             <artifactId>opencsv</artifactId>
  301.             <version>2.3</version>
  302. -       </dependency>
  303. +       </dependency-->
  304.        
  305. -      
  306. -       <dependency>
  307. -           <!-- Needed AT compile time so we can provide a utility TO force the properties
  308. -               resource URL in, due TO TCCL issues with Log4J's default startup in OSGi
  309. -               environment. -->
  310.  
  311. -           <groupId>org.apache.log4j</groupId>
  312. -           <artifactId>com.springsource.org.apache.log4j</artifactId>
  313. -           <version>1.2.16</version>
  314. -           <!--   Wrong, we want this one TO propagate.   Default "compile" scope is good.
  315. -           <scope>provided</scope>
  316. -           -->
  317. -       </dependency>
  318. +        <dependency>
  319. +           <groupId>${project.groupId}</groupId>
  320. +           <artifactId>ext.bundle.xml.dom4j_161</artifactId>
  321. +           <version>${project.version}</version>
  322. +            <scope>runtime</scope>
  323. +        </dependency>
  324.  
  325.  
  326. -       <dependency>
  327. -           <groupId>org.slf4j</groupId>
  328. -           <artifactId>slf4j-api</artifactId>
  329. -           <version>1.7.5</version>
  330. -       </dependency>
  331. -
  332.         <!-- Problems in Felix, because A) System Bundle #0 supplies the JAXP APIs
  333.             AT version 0.0., B) Dom4J specifies broad "uses" constraints on its exports.
  334.             C) Dom4J specifies version number >1.0 on SOME of its imports. [java] javax.xml.parsers;
  335. @@ -158,12 +144,12 @@
  336.  
  337.         <!-- ************************** Test Deps *********************** -->
  338.  
  339. -       <dependency>
  340. +        <dependency>
  341.             <groupId>org.apache.servicemix.bundles</groupId>
  342.             <artifactId>org.apache.servicemix.bundles.junit</artifactId>
  343.             <version>4.7_3</version>
  344.             <scope>test</scope>
  345. -       </dependency>
  346. +      </dependency>
  347.  
  348.  
  349.         <!-- SLF4J Test Bindings. We can change the scope during unit testing,
  350. @@ -171,6 +157,60 @@
  351.         <!-- <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId>
  352.             <version>1.6.2</version> <scope>test</scope> </dependency> -->
  353.  
  354. +        <dependency>
  355. +            <groupId>${project.groupId}</groupId>
  356. +            <artifactId>${project.artifactId}</artifactId>
  357. +            <version>${project.version}</version>
  358. +        </dependency>
  359. +
  360. +
  361. +<!-- BEGIN log4j boilerplate -->
  362. +        <dependency>
  363. +            <groupId>org.slf4j</groupId>
  364. +            <artifactId>slf4j-api</artifactId>
  365. +            <version>1.7.5</version>
  366. +            <scope>runtime</scope>
  367. +            <exclusions>
  368. +                <!-- We exclude the normally embedded Log4J version, because it is NOT OSGi friendly.
  369. +                        We instead use the bundled version supplied by SpringSource below.
  370. +                -->               
  371. +                <exclusion>
  372. +                    <artifactId>log4j</artifactId>
  373. +                    <groupId>log4j</groupId>
  374. +                </exclusion>
  375. +            </exclusions>
  376. +        </dependency>
  377. +
  378. +        <dependency>
  379. +            <!-- Here is an OSGi-friendly Log4J bundle, which we presume can be initialized through
  380. +                    the methods provided by Appdapter, which assumes a log4j.properties file AT
  381. +                    root of this bundle.  TO initialize Log4J differently, we could make this a
  382. +                    compile-scoped dependency, AND THEN DO any Log4J config using CODE, e.g.
  383. +                    using "BasicConfigurator".
  384. +            -->
  385. +            <groupId>org.apache.log4j</groupId>
  386. +            <artifactId>com.springsource.org.apache.log4j</artifactId>
  387. +            <version>1.2.16</version>     
  388. +        </dependency>
  389. +
  390. +       <dependency>
  391. +            <groupId>org.slf4j</groupId>
  392. +            <artifactId>slf4j-log4j12</artifactId>
  393. +            <version>1.7.5</version>
  394. +            <scope>runtime</scope>
  395. +            <exclusions>
  396. +                <!-- We exclude the normally embedded Log4J version, because it is NOT OSGi friendly.
  397. +                        We instead use the bundled version supplied by SpringSource below.
  398. +                -->               
  399. +                <exclusion>
  400. +                    <artifactId>log4j</artifactId>
  401. +                    <groupId>log4j</groupId>
  402. +                </exclusion>
  403. +            </exclusions>
  404. +        </dependency>
  405. +
  406. +<!-- END log4j boilerplate -->
  407. +
  408.     </dependencies>
  409.  
  410.     <build>
  411. @@ -181,38 +221,23 @@
  412.                 <version>2.3.7</version>
  413.                 <extensions>true</extensions>
  414.                 <configuration>
  415. -                    <instructions>
  416. -                        <!-- org.gjt.*;resolution:='optional',
  417. -                        sun.*;resolution:='optional',
  418. -                        schemasMicrosoftComVml,org.joda,com.jidesoft, schemasMicrosoftComOfficeExcel,schemaorg_apache_xmlbeans.*,org.openxmlformats.schemas.drawingml.x2006.chart.impl,org.openxmlformats.*,org.apache.poi.*,
  419. -                        org.apache.*;resolution:='optional',com.sun.*;resolution:='optional',com.apple.laf.*;resolution:='optional',apple.laf.*;resolution:='optional',
  420. -                      
  421. -
  422. -                       *;resolution:='optional'
  423. -
  424. -                        -->
  425. -                        <Import-Package>schemasMicrosoftComOfficeOffice,
  426. -                        schemasMicrosoftComOfficeExcel,org.apache.poi,
  427. -                        org.openxmlformats.schemas.spreadsheetml.x2006,
  428. -                        com.ibm.uvm.tools,                    
  429. -                        org.apache.avalon.framework.logger, org.apache.crimson.jaxp, org.apache.log, org.apache.tools.ant,
  430. -                        org.apache.tools.ant.taskdefs, org.apache.tools.ant.types, org.apache.xml.resolver, org.apache.xml.resolver.tools, org.gjt.xpp, org.jaxen,
  431. -                        org.jaxen.dom4j, org.jaxen.pattern, org.jaxen.saxpath, org.relaxng.datatype, org.slf4j.impl, org.xmlpull.v1,
  432. -                        schemasMicrosoftComOfficeVml,schemaorg_apache_xmlbeans,org.openxmlformats.schemas.drawingml.x2006.chart.impl,org.openxmlformats,com.sun.*;resolution:=optional,javax.*;resolution:=optional</Import-Package>
  433. -                        <!-- we refer also TO these classes:
  434. -
  435. -                        javax.crypto, javax.crypto.spec,javax.imageio, javax.imageio.metadata, javax.imageio.stream, javax.jmdns, javax.jms, javax.mail, javax.mail.internet, javax.management, javax.microedition.io, javax.naming,
  436. -                        javax.security.auth.x500, javax.servlet, javax.servlet.http, javax.swing, javax.swing.BORDER, javax.swing.event, javax.swing.table, javax.swing.text, javax.swing.tree, javax.xml.bind, javax.xml.validation, javax.xml.xpath,
  437. -
  438. -                        com.sun.javadoc, com.sun.jdmk.comm, com.sun.msv.datatype, com.sun.msv.datatype.xsd, com.sun.tools.javadoc,
  439. -            -->
  440. +                   <instructions>
  441. +                       <!-- org.gjt.*;resolution:='optional', -->
  442. +                        <Import-Package>org.gjt.xpp, org.ietf.jgss, org.jaxen, org.jaxen.dom4j, org.jaxen.pattern, org.jaxen.saxpath, org.relaxng.datatype, org.w3c.dom.ls, org.xmlpull.v1, scala.tools.jline, scala.tools.jline.console, scala.tools.jline.console.completer, scala.tools.jline.console.history, com.ibm.uvm.tools, javax.*;resolution:='optional', org.h2, apple.laf.*;resolution:='optional', com.apple.laf.*;resolution:='optional'</Import-Package>
  443.                          <Bundle-Activator>${project.groupId}.${project.artifactId}.osgi.Activator</Bundle-Activator>
  444. -                       <!-- We are getting rid of the "Embed" approach
  445. -                        <Embed-Transitive>true</Embed-Transitive>
  446. +                       <Export-Package>org.appdapter.*, au.com.bytecode.opencsv.*, org.apache.poi.*, com.jidesoft.*, org.apache.xmlbeans.*, org.openxmlformats.*, schemaorg_apache_xmlbeans.*, schemasMicrosoftComOfficeExcel.*, schemasMicrosoftComOfficeOffice.*, schemasMicrosoftComVml.*</Export-Package>
  447. +                       <!-- Horrid workaround FOR Class.forName() used in DynamicCachingComponentAssembler, could widen it TO "*",
  448. +                           but better TO get Jena CODE FIXED TO allow classloader setup.
  449.                         -->
  450. -                       <!-- Stu is dubious of the *, but it may work OK because the imports above are so specific -->
  451. -                        <Export-Package>*</Export-Package>
  452. -                    </instructions>
  453. +                        <DynamicImport-Package>*</DynamicImport-Package>
  454. +                                              
  455. +                       <!--
  456. +                       arq.*,com.hp.hpl.jena.*,org.openjena.*,etc.*,vocabularies.*
  457. +                      
  458. +                       <Private-Package>org.xmldb.*,riotcmd.*</Private-Package>
  459. +                       -->                    
  460. +                        <!--Private-Package>org.apache.poi.*, com.jidesoft.*, org.apache.xmlbeans.*, org.openxmlformats.*, schemaorg_apache_xmlbeans.*, schemasMicrosoftComOfficeExcel.*, schemasMicrosoftComOfficeOffice.*, schemasMicrosoftComVml.*</Private-Package-->
  461. +                   </instructions>
  462.                 </configuration>
  463.             </plugin>
  464.         </plugins>
  465. @@ -236,4 +261,3 @@
  466.   *  limitations under the License.
  467.   */
  468.  -->
  469. -
  470. Index: org.appdapter.bundle.core/pom.xml
  471. ===================================================================
  472. --- org.appdapter.bundle.core/pom.xml   (revision 566)
  473. +++ org.appdapter.bundle.core/pom.xml   (working copy)
  474. @@ -21,9 +21,6 @@
  475.             <groupId>${project.groupId}</groupId>
  476.             <artifactId>org.appdapter.lib.core</artifactId>
  477.             <version>${project.version}</version>
  478. -          <!-- We use "provided" scope FOR the CODE we are exporting, because we don't want our dependency on the
  479. -               lib TO propagate out TO users of this bundle.
  480. -           -->
  481.             <scope>provided</scope>
  482.             <exclusions>
  483.                 <exclusion>
  484. @@ -38,19 +35,25 @@
  485.              <version>${project.version}</version>
  486.              <scope>provided</scope>
  487.          </dependency>
  488. -        <!-- removed UNTIL it is complete -->
  489. -        <!--dependency>
  490. +        <dependency>
  491.              <groupId>${project.groupId}</groupId>
  492. -            <artifactId>org.appdapter.lib.remote</artifactId>
  493. +            <artifactId>org.appdapter.lib.gui</artifactId>
  494.              <version>${project.version}</version>
  495.              <scope>provided</scope>
  496. -        </dependency-->
  497. +        </dependency>
  498.          <dependency>
  499.              <groupId>${project.groupId}</groupId>
  500. -            <artifactId>ext.bundle.osgi.common</artifactId>
  501. +            <artifactId>org.appdapter.lib.remote</artifactId>
  502.              <version>${project.version}</version>
  503. +            <scope>provided</scope>
  504.          </dependency>
  505.         <dependency>
  506. +           <groupId>${project.groupId}</groupId>
  507. +           <artifactId>ext.bundle.osgi.common</artifactId>
  508. +           <version>${project.version}</version>
  509. +       </dependency>
  510. +
  511. +       <dependency>
  512.             <groupId>org.osgi</groupId>
  513.             <artifactId>org.osgi.core</artifactId>
  514.             <version>4.2.0</version>
  515. @@ -60,12 +63,15 @@
  516.             <artifactId>org.osgi.compendium</artifactId>
  517.             <version>4.2.0</version>
  518.         </dependency>
  519. -
  520. +          
  521.         <dependency>
  522. -           <artifactId>slf4j-api</artifactId>
  523. -           <groupId>org.slf4j</groupId>
  524. -           <version>1.7.5</version>
  525. +           <artifactId>h2</artifactId>
  526. +           <groupId>com.h2database</groupId>
  527. +           <type>jar</type>
  528. +           <version>1.3.157</version>
  529. +           <scope>runtime</scope>         
  530.         </dependency>
  531. +
  532.         <dependency>
  533.             <groupId>org.scala-lang</groupId>
  534.             <artifactId>scala-library</artifactId>
  535. @@ -84,94 +90,124 @@
  536.         <dependency>
  537.             <artifactId>ext.bundle.jena_all_2_10_1</artifactId>
  538.             <groupId>${project.groupId}</groupId>
  539. +           <!-- TODO:  Review AND make explicit - What are all the impacts of "type = jar"? -->
  540. +           <type>jar</type>
  541.             <version>${project.version}</version>
  542. -           <!-- This is currently a "runtime" depdendency so that the CODE we export from o.c.lib.core
  543. -                   can be wired properly AT runtime, but AT compile time users can *choose* whether
  544. -                   TO bring the ext.Jena bundle into their compile scope.  In principle, users could
  545. -                   choose TO use a different compatible OSGi-bundling of Jena AT runtime OR compile time.
  546. -                   Is this flexibility worth the fact that our consumers need TO make a separate
  547. -                   dependency IF they want TO CODE against Jena directly?   Debatable.
  548. -
  549. -                    Since bundle.core should contain mostly only an activator.. like any wrapper all should be  is <scope>runtime</scope>.. instead of compile time?
  550. -           -->
  551.             <scope>runtime</scope>
  552.         </dependency>
  553. -         <!-- jena provides this.. is it still needed? -->
  554. -       <!--dependency>
  555. -           <artifactId>h2</artifactId>
  556. -           <groupId>com.h2database</groupId>
  557. -           <type>jar</type>
  558. -           <version>1.3.157</version>
  559. -           <scope>runtime</scope>         
  560. -       </dependency-->    
  561. -        <dependency>
  562. -           <!-- Appdapter bundle.core shouldn't need this.  Instead, our code that depends on it should go into its
  563. -                   own new bundle :  org.appdapter.bundle.fileconv
  564. -           -->
  565. -            <groupId>${project.groupId}</groupId>
  566. -            <artifactId>ext.bundle.openconverters</artifactId>
  567. -            <version>${project.version}</version>
  568. -        </dependency>
  569. -
  570. -              
  571.         <dependency>
  572. -           <!-- However, this one is OK, because it's not as messy as POI -->
  573. -           <groupId>net.sf.opencsv</groupId>
  574. -           <artifactId>opencsv</artifactId>
  575. -           <version>2.3</version>
  576. -           <scope>runtime</scope>
  577. -       </dependency>
  578. -
  579. -
  580. -        <dependency>
  581. -           <!-- Stu asks:  What features in o.a.b.core require this dep?
  582. -            
  583. -             Douglas:
  584. -             o.a.lib.remote needs FOR the sparql client I belived
  585. -             It is proabably true that any ext.*.* of ours that we bundle here
  586. -             we will need TO re-include its reqirements AT least AT the runtime level
  587. -             But NOT have TO re-export it's packages in these exports (that is take classloader responsiibity).
  588. -             Since we'd want downstreams to be able to take classloader reponsibility (First before a differnt activator (of ours) takes ownership (Of course this bundle still may take it when no override happens )).              
  589. -             THEN IF they dont take on the responsibility, still be able TO supply the ones we picked out that we know work even with class isolation.
  590. -            
  591. -             Another real goal (only slightly related) is TO ensure we get them using AND owning <artifactId>ext.bundle.apache_httpclient</artifactId>
  592. -            
  593. -             IF
  594. -                they (they=startable bundle) want this use bundle
  595. -                AND want/need (jena OR dom4j OR httpclient)
  596. -             THEN
  597. -                they will themselves will depend directly on our ext.b.*s
  598. -             ELSE  
  599. -                  give them a wiring error that "there are more than one way to resolve org.apache.client"
  600. -                  [ IF they have a valid reason FOR NOT using ours.. LET them isolate theirs, NOT ours]
  601. -            
  602. -             We DO this visibly with Jena (NOT on purpose FOR the IF/THEN/ELSE)
  603. -
  604. -             When we didn't want this, then we need to make sure we give them jena only at compile time and we'd need to hide it from exports, but not runtime correct?  
  605. -            
  606. -                        
  607. -            -->
  608. -            <groupId>${project.groupId}</groupId>
  609. -            <artifactId>ext.bundle.apache_httpclient</artifactId>
  610. -            <version>${project.version}</version>
  611. -        </dependency> 
  612. -          
  613. -       <dependency>
  614.             <groupId>${project.groupId}</groupId>
  615.             <artifactId>ext.bundle.math.jscience_50SNAP</artifactId>
  616. +           <type>jar</type>
  617.             <!-- This external component bundle-snapshot version is now FIXED -->
  618.             <version>1.0.9</version>
  619. -           <!-- See explanation above under Jena dep about why this is "runtime" -->
  620.             <scope>runtime</scope>
  621.         </dependency>
  622.         <dependency>
  623.             <groupId>${project.groupId}</groupId>
  624.             <artifactId>ext.bundle.xml.dom4j_161</artifactId>
  625.             <version>${project.version}</version>
  626. -           <!-- See explanation above under Jena dep about why this is "runtime" -->
  627.             <scope>runtime</scope>
  628.         </dependency>
  629. -      
  630. +        <!--
  631. +       TODO:  LET's move the POI-dependent features into their own bundle oriented towards data import/export.
  632. +       Included ow2 bundle TO export apache.commons.logging.  
  633. +            Needed by org.apache.poi -->
  634. +        <dependency>
  635. +            <groupId>org.ow2.bundles</groupId>
  636. +            <artifactId>ow2-bundles-externals-commons-logging</artifactId>
  637. +            <version>1.0.33</version>
  638. +            <scope>runtime</scope>
  639. +            <exclusions>
  640. +                <exclusion>
  641. +                    <artifactId>commons-logging-api</artifactId>
  642. +                    <groupId>commons-logging</groupId>
  643. +                </exclusion>
  644. +            </exclusions>
  645. +        </dependency>
  646. +
  647. +
  648. +        <!-- Included servicemix bundle TO export apache.commons.codec.  
  649. +            Needed by org.apache.poi
  650. +           ...
  651. +           but this sorta conflicts with direct commons-codec dep required by Jena ARQ,
  652. +           which uses a different version numbering stream, numerically *higher* than
  653. +           this one, so LET's try taking this one out.
  654. +       -->
  655. +       <!--
  656. +        <dependency>
  657. +            <groupId>org.apache.servicemix.bundles</groupId>
  658. +            <artifactId>org.apache.servicemix.bundles.commons-codec</artifactId>
  659. +            <version>1.3_3</version>
  660. +            <scope>runtime</scope>
  661. +        </dependency>
  662. +       -->
  663. +        <dependency>
  664. +          <groupId>org.openl.rules</groupId>
  665. +          <artifactId>org.openl.lib.poi.dev</artifactId>
  666. +          <version>5.9.4.1</version>
  667. +          <scope>runtime</scope>
  668. +         <exclusions>
  669. +            <exclusion>
  670. +               <artifactId>xmlbeans</artifactId>
  671. +               <groupId>org.apache.xmlbeans</groupId>
  672. +            </exclusion>
  673. +         </exclusions>
  674. +      </dependency>
  675. +    <!-- excluded.. now we add our own -->
  676. +         <dependency>
  677. +            <groupId>org.apache.xmlbeans</groupId>
  678. +            <artifactId>xmlbeans</artifactId>
  679. +            <version>2.5.0</version>
  680. +        </dependency>
  681. +
  682. +
  683. +         <!-- BEGIN log4j boilerplate -->
  684. +        <dependency>
  685. +            <groupId>org.slf4j</groupId>
  686. +            <artifactId>slf4j-api</artifactId>
  687. +            <version>1.7.5</version>
  688. +            <scope>runtime</scope>
  689. +            <exclusions>
  690. +                <!-- We exclude the normally embedded Log4J version, because it is NOT OSGi friendly.
  691. +                        We instead use the bundled version supplied by SpringSource below.
  692. +                -->               
  693. +                <exclusion>
  694. +                    <artifactId>log4j</artifactId>
  695. +                    <groupId>log4j</groupId>
  696. +                </exclusion>
  697. +            </exclusions>
  698. +        </dependency>
  699. +
  700. +        <dependency>
  701. +            <!-- Here is an OSGi-friendly Log4J bundle, which we presume can be initialized through
  702. +                    the methods provided by Appdapter, which assumes a log4j.properties file AT
  703. +                    root of this bundle.  TO initialize Log4J differently, we could make this a
  704. +                    compile-scoped dependency, AND THEN DO any Log4J config using CODE, e.g.
  705. +                    using "BasicConfigurator".
  706. +            -->
  707. +            <groupId>org.apache.log4j</groupId>
  708. +            <artifactId>com.springsource.org.apache.log4j</artifactId>
  709. +            <version>1.2.16</version>     
  710. +        </dependency>
  711. +
  712. +       <dependency>
  713. +            <groupId>org.slf4j</groupId>
  714. +            <artifactId>slf4j-log4j12</artifactId>
  715. +            <version>1.7.5</version>
  716. +            <scope>runtime</scope>
  717. +            <exclusions>
  718. +                <!-- We exclude the normally embedded Log4J version, because it is NOT OSGi friendly.
  719. +                        We instead use the bundled version supplied by SpringSource below.
  720. +                -->               
  721. +                <exclusion>
  722. +                    <artifactId>log4j</artifactId>
  723. +                    <groupId>log4j</groupId>
  724. +                </exclusion>
  725. +            </exclusions>
  726. +        </dependency>
  727. +
  728. +<!-- END log4j boilerplate -->
  729.     </dependencies>
  730.  
  731.     <build>
  732. @@ -184,30 +220,25 @@
  733.                 <configuration>
  734.                     <instructions>
  735.                         <!-- org.gjt.*;resolution:='optional', -->
  736. -                        <!--Import-Package>sun.*;resolution:='optional', com.sun.*;resolution:='optional', org.apache.*;resolution:='optional', org.h2, apple.laf.*;resolution:='optional', com.apple.laf.*;resolution:='optional', *;resolution:='optional'</Import-Package-->
  737. -                        <Import-Package>*;resolution:='optional'</Import-Package>
  738. +                       <Import-Package>sun.*;resolution:='optional', com.sun.*;resolution:='optional', org.apache.*;resolution:='optional', org.h2, apple.laf.*;resolution:='optional', com.apple.laf.*;resolution:='optional', *;resolution:='optional'</Import-Package>
  739.                         <Bundle-Activator>org.appdapter.osgi.core.AppdapterCoreBundleActivator</Bundle-Activator>
  740. -                       <Export-Package>org.appdapter.*</Export-Package>
  741. -<!--                   We prefer the above specific form.
  742. -                       <Export-Package>*;-split-package:=merge-first</Export-Package>
  743. --->
  744. -                       <!--Export-Package>org.appdapter.*, org.apache.xmlbeans.*,com.hp.hpl.jena.graph.query</Export-Package-->
  745. +                       <Export-Package>org.appdapter.*, au.com.bytecode.opencsv.*, org.apache.xmlbeans.*,com.hp.hpl.jena.graph.query</Export-Package>
  746.                         <!-- Horrid workaround FOR Class.forName() used in DynamicCachingComponentAssembler, could widen it TO "*",
  747.                             but better TO get Jena CODE FIXED TO allow classloader setup.
  748.                         -->
  749. -                       <DynamicImport-Package>org.cogchar.*</DynamicImport-Package>                                               
  750. +                       <DynamicImport-Package>org.cogchar.*</DynamicImport-Package>
  751. +                                              
  752.                         <!--
  753. -                       arq.*,com.hp.hpl.jena.*,org.openjena.*,etc.*,vocabularies.*                    
  754. +                       arq.*,com.hp.hpl.jena.*,org.openjena.*,etc.*,vocabularies.*
  755. +                      
  756.                         <Private-Package>org.xmldb.*,riotcmd.*</Private-Package>
  757. +                       -->                    
  758.                          <Private-Package>org.apache.poi.*, com.jidesoft.*, org.openxmlformats.*, schemaorg_apache_xmlbeans.*, schemasMicrosoftComOfficeExcel.*, schemasMicrosoftComOfficeOffice.*, schemasMicrosoftComVml.*,org.joda.*</Private-Package>
  759. -                        -->                       
  760. -
  761.                     </instructions>
  762.                 </configuration>
  763.             </plugin>
  764.         </plugins>
  765.     </build>
  766. -
  767.  </project>
  768.  <!--
  769.  /*
  770. Index: org.appdapter.bundle.gui/pom.xml
  771. ===================================================================
  772. --- org.appdapter.bundle.gui/pom.xml    (revision 566)
  773. +++ org.appdapter.bundle.gui/pom.xml    (working copy)
  774. @@ -1,3 +1,4 @@
  775. +
  776.  <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  777.     <modelVersion>4.0.0</modelVersion>
  778.     <parent>
  779. @@ -15,16 +16,195 @@
  780.     <dependencies>
  781.         <dependency>
  782.             <groupId>${project.groupId}</groupId>
  783. -           <artifactId>org.appdapter.bundle.core</artifactId>
  784. +           <artifactId>org.appdapter.lib.core</artifactId>
  785.             <version>${project.version}</version>
  786. +           <scope>provided</scope>
  787. +           <exclusions>
  788. +               <exclusion>
  789. +                   <artifactId>xmlbeans</artifactId>
  790. +                   <groupId>org.apache.xmlbeans</groupId>
  791. +               </exclusion>
  792. +           </exclusions>
  793.         </dependency>
  794.          <dependency>
  795.              <groupId>${project.groupId}</groupId>
  796. +            <artifactId>org.appdapter.lib.registry</artifactId>
  797. +            <version>${project.version}</version>
  798. +            <scope>provided</scope>
  799. +        </dependency>
  800. +        <dependency>
  801. +            <groupId>${project.groupId}</groupId>
  802. +            <artifactId>org.appdapter.lib.remote</artifactId>
  803. +            <version>${project.version}</version>
  804. +            <scope>provided</scope>
  805. +        </dependency>
  806. +        <dependency>
  807. +            <groupId>${project.groupId}</groupId>
  808.              <artifactId>org.appdapter.lib.gui</artifactId>
  809.              <version>${project.version}</version>
  810.             <!-- We are exporting these contents, hence we don't need to propagate our dependency on them. -->
  811. -           <scope>provided</scope>
  812. +            <scope>provided</scope>
  813.          </dependency>
  814. +       <dependency>
  815. +           <groupId>${project.groupId}</groupId>
  816. +           <artifactId>ext.bundle.osgi.common</artifactId>
  817. +           <version>${project.version}</version>
  818. +       </dependency>
  819. +
  820. +       <dependency>
  821. +           <groupId>org.osgi</groupId>
  822. +           <artifactId>org.osgi.core</artifactId>
  823. +           <version>4.2.0</version>
  824. +       </dependency>
  825. +       <dependency>
  826. +           <groupId>org.osgi</groupId>
  827. +           <artifactId>org.osgi.compendium</artifactId>
  828. +           <version>4.2.0</version>
  829. +       </dependency>
  830. +          
  831. +       <dependency>
  832. +           <artifactId>h2</artifactId>
  833. +           <groupId>com.h2database</groupId>
  834. +           <type>jar</type>
  835. +           <version>1.3.157</version>
  836. +            <scope>provided</scope>
  837. +       </dependency>
  838. +
  839. +
  840. +<!-- BEGIN log4j boilerplate -->
  841. +        <dependency>
  842. +            <groupId>org.slf4j</groupId>
  843. +            <artifactId>slf4j-api</artifactId>
  844. +            <version>1.7.5</version>
  845. +            <scope>runtime</scope>
  846. +            <exclusions>
  847. +                <!-- We exclude the normally embedded Log4J version, because it is NOT OSGi friendly.
  848. +                        We instead use the bundled version supplied by SpringSource below.
  849. +                -->               
  850. +                <exclusion>
  851. +                    <artifactId>log4j</artifactId>
  852. +                    <groupId>log4j</groupId>
  853. +                </exclusion>
  854. +            </exclusions>
  855. +        </dependency>
  856. +
  857. +        <dependency>
  858. +            <!-- Here is an OSGi-friendly Log4J bundle, which we presume can be initialized through
  859. +                    the methods provided by Appdapter, which assumes a log4j.properties file AT
  860. +                    root of this bundle.  TO initialize Log4J differently, we could make this a
  861. +                    compile-scoped dependency, AND THEN DO any Log4J config using CODE, e.g.
  862. +                    using "BasicConfigurator".
  863. +            -->
  864. +            <groupId>org.apache.log4j</groupId>
  865. +            <artifactId>com.springsource.org.apache.log4j</artifactId>
  866. +            <version>1.2.16</version>     
  867. +        </dependency>
  868. +
  869. +       <dependency>
  870. +            <groupId>org.slf4j</groupId>
  871. +            <artifactId>slf4j-log4j12</artifactId>
  872. +            <version>1.7.5</version>
  873. +            <scope>runtime</scope>
  874. +            <exclusions>
  875. +                <!-- We exclude the normally embedded Log4J version, because it is NOT OSGi friendly.
  876. +                        We instead use the bundled version supplied by SpringSource below.
  877. +                -->               
  878. +                <exclusion>
  879. +                    <artifactId>log4j</artifactId>
  880. +                    <groupId>log4j</groupId>
  881. +                </exclusion>
  882. +            </exclusions>
  883. +        </dependency>
  884. +
  885. +<!-- END log4j boilerplate -->
  886. +
  887. +       <dependency>
  888. +           <groupId>org.scala-lang</groupId>
  889. +           <artifactId>scala-library</artifactId>
  890. +           <version>2.10.2</version>
  891. +       </dependency>
  892. +       <dependency>
  893. +           <groupId>org.scala-lang</groupId>
  894. +           <artifactId>scala-reflect</artifactId>
  895. +           <version>2.10.2</version>
  896. +       </dependency>
  897. +       <dependency>
  898. +           <groupId>org.scala-lang</groupId>
  899. +           <artifactId>scala-compiler</artifactId>
  900. +           <version>2.10.2</version>
  901. +       </dependency>
  902. +       <dependency>
  903. +           <artifactId>ext.bundle.jena_all_2_10_1</artifactId>
  904. +           <groupId>${project.groupId}</groupId>
  905. +           <!-- TODO:  Review AND make explicit - What are all the impacts of "type = jar"? -->
  906. +           <type>jar</type>
  907. +           <version>${project.version}</version>
  908. +           <scope>runtime</scope>
  909. +       </dependency>
  910. +       <dependency>
  911. +           <groupId>${project.groupId}</groupId>
  912. +           <artifactId>ext.bundle.math.jscience_50SNAP</artifactId>
  913. +           <type>jar</type>
  914. +           <!-- This external component bundle-snapshot version is now FIXED -->
  915. +           <version>1.0.9</version>
  916. +           <scope>runtime</scope>
  917. +       </dependency>
  918. +       <dependency>
  919. +           <groupId>${project.groupId}</groupId>
  920. +           <artifactId>ext.bundle.xml.dom4j_161</artifactId>
  921. +           <version>${project.version}</version>
  922. +           <scope>runtime</scope>
  923. +       </dependency>
  924. +        <!--
  925. +       TODO:  LET's move the POI-dependent features into their own bundle oriented towards data import/export.
  926. +       Included ow2 bundle TO export apache.commons.logging.  
  927. +            Needed by org.apache.poi -->
  928. +        <dependency>
  929. +            <groupId>org.ow2.bundles</groupId>
  930. +            <artifactId>ow2-bundles-externals-commons-logging</artifactId>
  931. +            <version>1.0.33</version>
  932. +            <scope>runtime</scope>
  933. +            <exclusions>
  934. +                <exclusion>
  935. +                    <artifactId>commons-logging-api</artifactId>
  936. +                    <groupId>commons-logging</groupId>
  937. +                </exclusion>
  938. +            </exclusions>
  939. +        </dependency>
  940. +       <!--  FOR the GUI -->
  941. +        <!--dependency>
  942. +            <groupId>com.jidesoft</groupId>
  943. +            <artifactId>jide-oss</artifactId>
  944. +            <version>3.5.5</version>
  945. +        </dependency-->
  946. +
  947. +        <!-- Included servicemix bundle TO export apache.commons.codec.  
  948. +            Needed by org.apache.poi
  949. +           ...
  950. +           but this sorta conflicts with direct commons-codec dep required by Jena ARQ,
  951. +           which uses a different version numbering stream, numerically *higher* than
  952. +           this one, so LET's try taking this one out.
  953. +       -->
  954. +       <!--
  955. +        <dependency>
  956. +            <groupId>org.apache.servicemix.bundles</groupId>
  957. +            <artifactId>org.apache.servicemix.bundles.commons-codec</artifactId>
  958. +            <version>1.3_3</version>
  959. +            <scope>runtime</scope>
  960. +        </dependency>
  961. +       -->
  962. +        <dependency>
  963. +          <groupId>org.openl.rules</groupId>
  964. +          <artifactId>org.openl.lib.poi.dev</artifactId>
  965. +          <version>5.9.4.1</version>
  966. +          <scope>runtime</scope>
  967. +         <exclusions>
  968. +            <exclusion>
  969. +               <artifactId>xmlbeans</artifactId>
  970. +               <groupId>org.apache.xmlbeans</groupId>
  971. +            </exclusion>
  972. +         </exclusions>
  973. +      </dependency>
  974.     </dependencies>
  975.  
  976.     <build>
  977. @@ -35,16 +215,23 @@
  978.                 <version>2.3.7</version>
  979.                 <extensions>true</extensions>
  980.                 <configuration>
  981. -                    <instructions>
  982. -                        <Bundle-Activator>org.appdapter.bundle.gui.osgi.Activator</Bundle-Activator>
  983. -                       <Export-Package>org.appdapter.gui.*,org.appdapter.scafun.*</Export-Package>
  984. +                   <instructions>
  985. +                       <!-- org.gjt.*;resolution:='optional', -->
  986. +                        <Import-Package>sun.*;resolution:='optional', com.sun.*;resolution:='optional', org.apache.*;resolution:='optional', apple.laf.*;resolution:='optional', com.apple.laf.*;resolution:='optional', *;resolution:='optional'</Import-Package>
  987. +                       <Bundle-Activator>org.appdapter.osgi.core.AppdapterCoreBundleActivator</Bundle-Activator>
  988. +                       <Export-Package>org.appdapter.*, au.com.bytecode.opencsv.*</Export-Package>
  989. +                       <!-- Horrid workaround FOR Class.forName() used in DynamicCachingComponentAssembler, could widen it TO "*",
  990. +                           but better TO get Jena CODE FIXED TO allow classloader setup.
  991. +                       -->
  992. +                        <DynamicImport-Package>*</DynamicImport-Package>
  993. +                                              
  994.                         <!--
  995. -                        <Export-Package>*;-split-package:=merge-first</Export-Package>
  996. -                       -->
  997. -                       <!-- Boo!!!
  998. -                        <Private-Package>org.apache.http.*,slf4j-api.*</Private-Package>
  999. -                       -->
  1000. -                    </instructions>
  1001. +                       arq.*,com.hp.hpl.jena.*,org.openjena.*,etc.*,vocabularies.*
  1002. +                      
  1003. +                       <Private-Package>org.xmldb.*,riotcmd.*</Private-Package>
  1004. +                       -->                    
  1005. +                        <Private-Package>org.apache.poi.*, com.jidesoft.*, org.apache.xmlbeans.*, org.openxmlformats.*, schemaorg_apache_xmlbeans.*, schemasMicrosoftComOfficeExcel.*, schemasMicrosoftComOfficeOffice.*, schemasMicrosoftComVml.*</Private-Package>
  1006. +                   </instructions>
  1007.                 </configuration>
  1008.             </plugin>
  1009.         </plugins>
  1010. Index: org.appdapter.demo.gui/pom.xml
  1011. ===================================================================
  1012. --- org.appdapter.demo.gui/pom.xml  (revision 566)
  1013. +++ org.appdapter.demo.gui/pom.xml  (working copy)
  1014. @@ -9,161 +9,251 @@
  1015.  
  1016.     <artifactId>org.appdapter.demo.gui</artifactId>
  1017.     <packaging>bundle</packaging>
  1018. -   <name>${project.artifactId} - OSGi</name>
  1019. -    <description>Appdapter GUI  Demo OSGi Bundle</description>
  1020. +   <name>${project.artifactId} - OSGi DEMO GUI</name>
  1021. +   <description>Appdapter OSGi Demo Bundle FOR GUI</description>  
  1022.  
  1023. -   <dependencies>
  1024. +    <properties>
  1025. +        <vm.localargs>-XX:MaxPermSize=2g</vm.localargs>
  1026. +        <vm.args></vm.args>
  1027. +        <puma.boot.config.local>goog://0ArBjkBoH40tndDdsVEVHZXhVRHFETTB5MGhGcWFmeGc/9/8</puma.boot.config.local>
  1028. +        <maven.compiler.source>1.6</maven.compiler.source>
  1029. +        <maven.compiler.target>1.6</maven.compiler.target>
  1030. +        <encoding>UTF-8</encoding>
  1031. +        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  1032. +        <netbeans.version>RELEASE721</netbeans.version>
  1033. +        <!--smoketesting = appdapter-1.1.2-SNAPSHOT  cogchar-1.0.7.0-SNAPSHOT-->
  1034. +        <!--release = appdapter-1.1.0  cogchar-1.0.6.2-->
  1035. +        <appdapter.version>1.1.3-SNAPSHOT</appdapter.version>
  1036. +        <cogchar.version>1.0.7.0-SNAPSHOT</cogchar.version>
  1037. +        <content.version>1.0.3-SNAPSHOT</content.version>
  1038. +        <tools.version>1.0.3-SNAPSHOT</tools.version>
  1039. +        <jflux.version>0.1.6</jflux.version>
  1040. +        <robokind.version>0.9.2</robokind.version>
  1041. +        <rwshop.version>0.9.2</rwshop.version>      
  1042. +        <com.hrkind.robot.connections>
  1043. +            <!-- We can add additional speech services FOR a robot by adding
  1044. +                the voices separated by colons after the ip address:
  1045. +                robot01; 127.0.0.1; klauss:saul, ...
  1046. +                The extra speech services will have ids such AS:
  1047. +                robot01/klaussSpeechService
  1048. +            -->
  1049. +            <!--
  1050. +        robot01; 192.168.2.127,
  1051. +        robot02; 192.168.2.127,
  1052. +        avatar01; 192.168.2.127
  1053. +            -->
  1054. +            <!-- Localhost avatar only -->
  1055. +            robot01; 127.0.0.1,
  1056. +            robot02; 127.0.0.1,
  1057. +            avatar01; 127.0.0.1
  1058. +            <!-- ,
  1059. +            robot01; 192.168.0.103
  1060. +            -->
  1061. +        </com.hrkind.robot.connections>
  1062. +        
  1063. +        <com.hrkind.demo.behavior.master.source>
  1064. +            sheetKey;0AlpQRNQ-L8QUdFh5YWswSzdYZFJMb1N6aEhJVWwtR3c,
  1065. +            namespaceSheetNumber;4,
  1066. +            directorySheetNumber;3,
  1067. +            workBookPath;GluePuma_BehavMasterDemo.xlsx,
  1068. +            workBookNamespaceSheet;Nspc.csv,
  1069. +            workBookDirectorySheet;Dir.csv
  1070. +        </com.hrkind.demo.behavior.master.source>
  1071. +<!--        <com.hrkind.demo.behavior.master.source>
  1072. +            sheetKey;0Avxj_SuvDlJWdG1CanhXVnRrcFVYU0M5UzR3aW0wdWc,
  1073. +            namespaceSheetNumber;5,
  1074. +            directorySheetNumber;4,
  1075. +            workBookPath;MonoZenoAlienStory.xlsx,
  1076. +            workBookNamespaceSheet;Nspc.csv,
  1077. +            workBookDirectorySheet;Dir.csv
  1078. +        </com.hrkind.demo.behavior.master.source>-->
  1079. +        <!--       <com.hrkind.demo.behavior.master.source>
  1080. +            sheetKey; 0AsAJ7pzOB_F2dGNIWlB4RHFxTm9LTnY4TXotekM4MGc,
  1081. +            workBookPath; Bud-E_Lesson_1.xlsx,
  1082. +            namespaceSheetNumber;1,
  1083. +            directorySheetNumber;2
  1084. +        </com.hrkind.demo.behavior.master.source> -->
  1085. +        <!--       <com.hrkind.demo.behavior.master.source>
  1086. +            sheetKey; 0AsAJ7pzOB_F2dEJRSWRVZnpDVUF2czhUVzlBOWJBNEE,
  1087. +            workBookPath; ZenoSpeechScene.xlsx,
  1088. +            namespaceSheetNumber;1,
  1089. +            directorySheetNumber;2
  1090. +        </com.hrkind.demo.behavior.master.source>  -->
  1091. +
  1092. +    </properties>
  1093. +    
  1094. +    <repositories>
  1095. +        <!--       <repository>
  1096. +                <id>sonatype-public</id>
  1097. +                <name>sonatype public</name>
  1098. +                <url>https://oss.sonatype.org/content/groups/public/</url>
  1099. +        </repository>-->
  1100. +        <!-- Needed FOR "good" log4J bundle -->
  1101. +        <repository>
  1102. +            <id>com.springsource.repository.bundles.external</id>
  1103. +            <name>Spring EBR External Release Repository</name>
  1104. +            <url>http://repository.springsource.com/maven/bundles/external</url>
  1105. +        </repository>
  1106. +    </repositories>
  1107. +  
  1108. +    <dependencies>
  1109. +           <dependency>
  1110. +           <artifactId>ext.bundle.jena_all_2_10_1</artifactId>
  1111. +           <groupId>${project.groupId}</groupId>
  1112. +           <!-- TODO:  Review AND make explicit - What are all the impacts of "type = jar"? -->
  1113. +           <type>jar</type>
  1114. +           <version>${project.version}</version>
  1115. +           <scope>runtime</scope>
  1116. +       </dependency>
  1117. +
  1118.          <dependency>
  1119. +            <groupId>org.apache.felix</groupId>
  1120. +            <artifactId>org.osgi.core</artifactId>
  1121. +            <version>1.4.0</version>
  1122. +            <scope>provided</scope>
  1123. +        </dependency>
  1124. +
  1125. +        <dependency>
  1126. +            <groupId>org.appdapter</groupId>
  1127. +            <artifactId>org.appdapter.lib.core</artifactId>
  1128. +            <version>${appdapter.version}</version>
  1129. +            <scope>runtime</scope>
  1130. +        </dependency>
  1131. +
  1132. +        <dependency>
  1133. +            <groupId>org.appdapter</groupId>
  1134. +            <artifactId>org.appdapter.lib.gui</artifactId>
  1135. +            <version>${appdapter.version}</version>
  1136. +            <scope>runtime</scope>
  1137. +        </dependency>
  1138. +
  1139. +        <dependency>
  1140. +            <groupId>org.appdapter</groupId>
  1141. +            <artifactId>org.appdapter.lib.registry</artifactId>
  1142. +            <version>${appdapter.version}</version>
  1143. +        </dependency>
  1144. +
  1145. +        <dependency>
  1146. +            <groupId>org.appdapter</groupId>
  1147. +            <artifactId>org.appdapter.lib.remote</artifactId>
  1148. +            <version>${appdapter.version}</version>
  1149. +        </dependency>
  1150. +
  1151. +        <dependency>
  1152. +            <groupId>org.ow2.bundles</groupId>
  1153. +            <artifactId>ow2-bundles-externals-commons-logging</artifactId>
  1154. +            <version>1.0.24</version>
  1155. +            <scope>runtime</scope>
  1156. +            <exclusions>
  1157. +                <exclusion>
  1158. +                    <artifactId>commons-logging-api</artifactId>
  1159. +                    <groupId>commons-logging</groupId>
  1160. +                </exclusion>
  1161. +            </exclusions>
  1162. +        </dependency>
  1163. +
  1164. +<!-- BEGIN log4j boilerplate -->
  1165. +        <dependency>
  1166. +            <groupId>org.slf4j</groupId>
  1167. +            <artifactId>slf4j-api</artifactId>
  1168. +            <version>1.7.5</version>
  1169. +            <scope>runtime</scope>
  1170. +            <exclusions>
  1171. +                <!-- We exclude the normally embedded Log4J version, because it is NOT OSGi friendly.
  1172. +                        We instead use the bundled version supplied by SpringSource below.
  1173. +                -->               
  1174. +                <exclusion>
  1175. +                    <artifactId>log4j</artifactId>
  1176. +                    <groupId>log4j</groupId>
  1177. +                </exclusion>
  1178. +            </exclusions>
  1179. +        </dependency>
  1180. +
  1181. +        <dependency>
  1182. +            <!-- Here is an OSGi-friendly Log4J bundle, which we presume can be initialized through
  1183. +                    the methods provided by Appdapter, which assumes a log4j.properties file AT
  1184. +                    root of this bundle.  TO initialize Log4J differently, we could make this a
  1185. +                    compile-scoped dependency, AND THEN DO any Log4J config using CODE, e.g.
  1186. +                    using "BasicConfigurator".
  1187. +            -->
  1188. +            <groupId>org.apache.log4j</groupId>
  1189. +            <artifactId>com.springsource.org.apache.log4j</artifactId>
  1190. +            <version>1.2.16</version>     
  1191. +        </dependency>
  1192. +
  1193. +       <dependency>
  1194. +            <groupId>org.slf4j</groupId>
  1195. +            <artifactId>slf4j-log4j12</artifactId>
  1196. +            <version>1.7.5</version>
  1197. +            <scope>runtime</scope>
  1198. +            <exclusions>
  1199. +                <!-- We exclude the normally embedded Log4J version, because it is NOT OSGi friendly.
  1200. +                        We instead use the bundled version supplied by SpringSource below.
  1201. +                -->               
  1202. +                <exclusion>
  1203. +                    <artifactId>log4j</artifactId>
  1204. +                    <groupId>log4j</groupId>
  1205. +                </exclusion>
  1206. +            </exclusions>
  1207. +        </dependency>
  1208. +
  1209. +<!-- END log4j boilerplate -->
  1210. +
  1211. +
  1212. +<!-- javax.servlet may be included in pax web, NOT sure IF this is still needed -->
  1213. +       <dependency>
  1214. +           <groupId>javax.servlet</groupId>
  1215. +           <artifactId>servlet-api</artifactId>
  1216. +           <version>2.5</version>
  1217. +           <scope>provided</scope>
  1218. +       </dependency>
  1219. +
  1220. +       <dependency>
  1221.              <groupId>${project.groupId}</groupId>
  1222. -            <artifactId>org.appdapter.bundle.gui</artifactId>
  1223. +            <artifactId>${project.artifactId}</artifactId>
  1224.              <version>${project.version}</version>
  1225.          </dependency>
  1226. -   </dependencies>
  1227.  
  1228. -   <build>
  1229. -       <plugins>
  1230. -           <plugin>
  1231. -               <groupId>org.apache.felix</groupId>
  1232. -               <artifactId>maven-bundle-plugin</artifactId>
  1233. -               <version>2.3.7</version>
  1234. -               <extensions>true</extensions>
  1235. -               <configuration>
  1236. +    </dependencies>
  1237. +
  1238. +    <build>
  1239. +        <plugins>
  1240. +            <plugin>
  1241. +                <groupId>org.apache.felix</groupId>
  1242. +                <artifactId>maven-bundle-plugin</artifactId>
  1243. +                <version>2.3.7</version>
  1244. +                <extensions>true</extensions>
  1245. +                <configuration>
  1246.                      <instructions>
  1247. -                        <Bundle-Activator>${project.groupId}.${artifactId}.osgi.Activator</Bundle-Activator>
  1248. -                        <Export-Package>*;-split-package:=merge-first</Export-Package>
  1249. -                        <Private-Package>org.apache.http.*,slf4j-api.*</Private-Package>
  1250. +                        <!--org.gjt.xpp, org.ietf.jgss, org.jaxen, org.jaxen.dom4j, org.jaxen.pattern, org.jaxen.saxpath, org.relaxng.datatype, org.w3c.dom.ls, org.xmlpull.v1, scala.tools.jline, scala.tools.jline.console, scala.tools.jline.console.completer, scala.tools.jline.console.history, sun.*;resolution:='optional', com.sun.*;resolution:='optional', org.apache.*;resolution:='optional', apple.laf.*;resolution:='optional', com.apple.laf.*;resolution:='optional', com.ibm.uvm.tools, javax.*;resolution:='optional'-->
  1251. +                        <Import-Package>org.appdapter.core.boot, !com.hp.hpl.jena.*.test,
  1252. +                       !org.apache.xml.resolver.*,!sun.*,!com.sun.msv.*,!com.sun.jdmk.*,!javax.jms.*,!org.relaxng.*,
  1253. +                       !com.ibm.uvm.tools,!javax.jmdns,*</Import-Package>
  1254. +                        <Bundle-Activator>${project.artifactId}.osgi.Activator</Bundle-Activator>
  1255. +                        <DynamicImport-Package>*</DynamicImport-Package>
  1256. +                        <Embed-Dependency>*;artifactId=!commons-logging</Embed-Dependency>
  1257. +                        <Embed-Transitive>true</Embed-Transitive>
  1258. +                        <!--Export-Package>${project.artifactId}.osgi.*, *</Export-Package-->
  1259.                      </instructions>
  1260. -               </configuration>
  1261. -           </plugin>
  1262. -       </plugins>
  1263. -   </build>
  1264. +                </configuration>
  1265. +            </plugin>
  1266. +            <plugin>
  1267. +                <groupId>org.apache.maven.plugins</groupId>
  1268. +                <artifactId>maven-compiler-plugin</artifactId>
  1269. +                <version>2.3.2</version>
  1270. +                <configuration>
  1271. +                    <source>1.6</source>
  1272. +                    <target>1.6</target>
  1273. +                </configuration>
  1274. +            </plugin>
  1275. +        </plugins>
  1276. +    </build>
  1277.  
  1278. -   <profiles>
  1279. -       <profile>
  1280. -           <id>build-for-felix</id>
  1281. -           <dependencies>
  1282. -               <dependency>
  1283. -                   <groupId>org.apache.felix</groupId>
  1284. -                   <artifactId>org.apache.felix.main</artifactId>
  1285. -                   <version>4.2.1</version>
  1286. -                   <scope>provided</scope>
  1287. -               </dependency>
  1288. -           </dependencies>
  1289. -           <build>
  1290. -               <plugins>
  1291. -                   <plugin>
  1292. -                       <groupId>org.apache.maven.plugins</groupId>
  1293. -                       <artifactId>maven-antrun-plugin</artifactId>
  1294. -                       <version>1.6</version>
  1295. -                       <executions>
  1296. -                           <execution>
  1297. -                               <id>compile</id>
  1298. -                               <phase>package</phase>
  1299. -                               <goals>
  1300. -                                   <goal>run</goal>
  1301. -                               </goals>
  1302. -                               <configuration>
  1303. -                                   <target>
  1304. -                                       <pathconvert property="plugins.jars" pathsep="${path.separator}">
  1305. -                                           <path refid="maven.runtime.classpath" />
  1306. -                                           <map from="${project.build.directory}${file.separator}classes" TO="" />
  1307. -                                       </pathconvert>
  1308. -                                       <pathconvert pathsep=" " property="bundles">
  1309. -                                           <path path="${plugins.jars}" />
  1310. -                                           <mapper>
  1311. -                                               <chainedmapper>
  1312. -                                                   <flattenmapper />
  1313. -                                                   <globmapper from="*" TO="file:modules/*" casesensitive="no" />
  1314. -                                               </chainedmapper>
  1315. -                                           </mapper>
  1316. -                                       </pathconvert>
  1317. -                                       <propertyfile file="${project.build.directory}/config.properties">
  1318. -                                           <entry key="felix.auto.start" value="${bundles} file:modules/${project.build.finalName}.jar" />
  1319. -                                           <entry key="org.osgi.framework.bootdelegation" value="*" />
  1320. -                                       </propertyfile>
  1321. -                                       <copy file="${maven.dependency.org.apache.felix.org.apache.felix.main.jar.path}" tofile="${project.build.directory}/felix.jar" />
  1322. -                                   </target>
  1323. -                               </configuration>
  1324. -                           </execution>
  1325. -                       </executions>
  1326. -                   </plugin>
  1327. -                   <plugin>
  1328. -                       <groupId>org.apache.maven.plugins</groupId>
  1329. -                       <artifactId>maven-assembly-plugin</artifactId>
  1330. -                       <version>2.2</version>
  1331. -                       <executions>
  1332. -                           <execution>
  1333. -                               <id>create-executable-jar</id>
  1334. -                               <phase>package</phase>
  1335. -                               <goals>
  1336. -                                   <goal>single</goal>
  1337. -                               </goals>
  1338. -                               <configuration>
  1339. -                                   <descriptors>
  1340. -                                       <descriptor>${basedir}/src/main/assembly/felix.xml</descriptor>
  1341. -                                   </descriptors>
  1342. -                                   <finalName>${project.build.finalName}</finalName>
  1343. -                               </configuration>
  1344. -                           </execution>
  1345. -                       </executions>
  1346. -                   </plugin>
  1347. -               </plugins>
  1348. -           </build>
  1349. -       </profile>
  1350. -       <profile>
  1351. -           <id>run-on-felix</id>
  1352. -           <dependencies>
  1353. -               <dependency>
  1354. -                   <groupId>org.apache.felix</groupId>
  1355. -                   <artifactId>org.apache.felix.main</artifactId>
  1356. -                   <version>4.2.1</version>
  1357. -                   <scope>provided</scope>
  1358. -               </dependency>
  1359. -           </dependencies>
  1360. -           <build>
  1361. -               <plugins>
  1362. -                   <plugin>
  1363. -                       <groupId>org.apache.maven.plugins</groupId>
  1364. -                       <artifactId>maven-antrun-plugin</artifactId>
  1365. -                       <version>1.6</version>
  1366. -                       <configuration>
  1367. -                           <target>
  1368. -                               <property name="vm.args" value="" />
  1369. -                               <pathconvert property="plugins.jars" pathsep="${path.separator}">
  1370. -                                   <path refid="maven.runtime.classpath" />
  1371. -                                   <map from="${project.build.directory}${file.separator}classes" TO="" />
  1372. -                               </pathconvert>
  1373. -                               <makeurl property="urls" separator=" ">
  1374. -                                   <path path="${plugins.jars}" />
  1375. -                                   <path location="${project.build.directory}/${project.build.finalName}.jar" />
  1376. -                               </makeurl>
  1377. -                               <propertyfile file="${project.build.directory}/run.properties">
  1378. -                                   <entry key="felix.auto.start" value="${urls}" />
  1379. -                                   <entry key="felix.auto.deploy.action" value="uninstall,install,update,start" />
  1380. -                                   <entry key="org.osgi.framework.storage" value="${project.build.directory}${file.separator}felix-cache" />
  1381. -                                   <entry key="org.osgi.framework.bootdelegation" value="*" />
  1382. -                                    <!-- org.w3c.dom.* are missing from default.properties in felix 4.2.1, they are present in 3.0.7 -->
  1383. -                                    <entry key="org.osgi.framework.system.packages.extra" value="org.w3c.dom.css, org.w3c.dom.html, org.w3c.dom.stylesheets, org.w3c.dom.traversal, org.w3c.dom.ranges, org.w3c.dom.views, org.w3c.dom.xpath" />
  1384. -                               </propertyfile>
  1385. -                              
  1386. -                               <makeurl property="run.properties.url" file="${project.build.directory}/run.properties" />
  1387. -                                      
  1388. -                               <java fork="true" jar="${maven.dependency.org.apache.felix.org.apache.felix.main.jar.path}">
  1389. -                                   <sysproperty key="felix.config.properties" value="${run.properties.url}" />
  1390. -                                   <jvmarg line="${vm.args}" />
  1391. -                               </java>
  1392. -                              
  1393. -                           </target>
  1394. -                       </configuration>
  1395. -                   </plugin>
  1396. -               </plugins>
  1397. -           </build>
  1398. -       </profile>
  1399. -   </profiles>
  1400.  </project>
  1401. +
  1402.  <!--
  1403.  /*
  1404. - *  Copyright 2011 by The Appdapter Project (www.appdapter.org).
  1405. + *  Copyright 2013 by The Appdapter Project (www.appdapter.org).
  1406.   *
  1407.   *  Licensed under the Apache License, Version 2.0 (the "License");
  1408.   *  you may NOT use this file except in compliance with the License.
  1409. Index: org.appdapter.demo.gui/src/main/java/org/appdapter/demo/gui/osgi/Activator.java
  1410. ===================================================================
  1411. --- org.appdapter.demo.gui/src/main/java/org/appdapter/demo/gui/osgi/Activator.java (revision 566)
  1412. +++ org.appdapter.demo.gui/src/main/java/org/appdapter/demo/gui/osgi/Activator.java (working copy)
  1413. @@ -15,7 +15,7 @@
  1414.         debugLoaders(org.appdapter.core.boot.ClassLoaderUtils.class);
  1415.         debugLoaders(org.appdapter.gui.demo.DemoBrowser.class);
  1416.         debugLoaders(org.appdapter.gui.browse.Utility.class);
  1417. -       org.appdapter.ext.bundle.openconverters.osgi.Activator.ensureConvertersClassesAreFindable();
  1418. +       // org.appdapter.ext.bundle.openconverters.osgi.Activator.ensureConvertersClassesAreFindable();
  1419.         org.appdapter.gui.demo.DemoBrowser.main(args);
  1420.         System.out.println("[System.out] ...all done!");
  1421.     }
  1422. Index: org.appdapter.lib.core/pom.xml
  1423. ===================================================================
  1424. --- org.appdapter.lib.core/pom.xml  (revision 566)
  1425. +++ org.appdapter.lib.core/pom.xml  (working copy)
  1426. @@ -1,44 +1,5 @@
  1427.  <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  1428. -<!-- Made using Maven archetype  scala-archetype-simple 1.3    
  1429. -(using Netbeans 7.0 "New Proj->Maven->From Archetype")
  1430. -
  1431. -http://implicit.ly/scala-archetype-simple-13-tag-maven-scala
  1432. -
  1433. -recommends interactive:
  1434. -
  1435. -mvn archetype:generate
  1436. -   -DarchetypeCatalog=http://nexus.scala-tools.org/content/groups/public
  1437. -  
  1438. -OR CLI:
  1439. -
  1440. -mvn archetype:generate -B \
  1441. -  -DarchetypeRepository=http://scala-tools.org/repo-releases/ \
  1442. -  -DarchetypeGroupId=org.scala-tools.archetypes -DarchetypeArtifactId=scala-archetype-simple -DarchetypeVersion=1.3 \
  1443. -  -DgroupId=com.company -DartifactId=project -Dversion=0.1-SNAPSHOT -Dpackage=com.company
  1444. -  
  1445. -Note that from Netbeans we can get Cygwin(/Linux/BSD) terminal with menu:  Window->Output->Terminal
  1446. -
  1447. -THEN make sure TO set JAVA_HOME, ANT_HOME, SCALA_HOME, M2_HOME,
  1448. -AND THEN PATH (using bin directory from each) although these
  1449. -are often NOT all completely necessary FOR simple deployments.
  1450. -FOR example, Maven is able TO auto-download Scala, OR you can
  1451. -build Scala + Java (IF you install their compilers explicitly)
  1452. -without Maven, AND finally LET's reiterate:  This build+run
  1453. -functionality is all WITH OR WITHOUT Netbeans 7.0 with Maven
  1454. -support + Scala support enabled.  Appdapter itself is a Java+Scala
  1455. -library.
  1456. -
  1457. -We pretend TO include some ScalaTest-s AND some JUnit-s, watch FOR
  1458. -news on that, OR come help out!
  1459. -
  1460. -Also see optional AppdapterOSGi project TO build an OSGi wrapper
  1461. -bundle, with OR without embedded dependencies.
  1462. -
  1463. -Both plain jar AND OSGi forms should be available from Maven
  1464. -central repo.  
  1465. -
  1466. --->
  1467. -   <modelVersion>4.0.0</modelVersion>
  1468. +    <modelVersion>4.0.0</modelVersion>
  1469.     <parent>
  1470.         <groupId>org.appdapter</groupId>
  1471.         <artifactId>org.appdapter.modules.core</artifactId>
  1472. @@ -52,9 +13,6 @@
  1473.     <description>Appdapter Maven project including Java AND Scala, produces jar, NOT bundle.  Excludes concrete SLF4J binding.</description>
  1474.  
  1475.  
  1476. -
  1477. -
  1478. -
  1479.     <dependencies>
  1480.         <!--  Was using this FOR compile-edit workarounds, but now it's gone!
  1481.         <dependency>
  1482. @@ -74,8 +32,7 @@
  1483.  
  1484.         <dependency>
  1485.             <groupId>${project.groupId}</groupId>
  1486. -           <!-- Updated 2013-07-17 from            <artifactId>ext.bundle.jena_all_264</artifactId>
  1487. -           -->
  1488. +           <!-- Updated 2013-07-17 from            <artifactId>ext.bundle.jena_all_264</artifactId>  -->
  1489.             <artifactId>ext.bundle.jena_all_2_10_1</artifactId>
  1490.              <version>${project.version}</version>
  1491.          <type>jar</type>
  1492. @@ -86,6 +43,7 @@
  1493.             <artifactId>ext.bundle.openconverters</artifactId>
  1494.              <version>${project.version}</version>
  1495.              <type>jar</type>
  1496. +            <scope>compile</scope>
  1497.         </dependency>      
  1498.  
  1499.  
  1500. @@ -115,17 +73,12 @@
  1501.             <groupId>org.apache.log4j</groupId>
  1502.             <artifactId>com.springsource.org.apache.log4j</artifactId>
  1503.             <version>1.2.16</version>
  1504. -           <scope>provided</scope>        
  1505. -
  1506. +           <scope>provided</scope>
  1507.         </dependency>              
  1508.  
  1509.  
  1510. +
  1511.          <dependency>
  1512. -            <groupId>org.slf4j</groupId>
  1513. -            <artifactId>slf4j-api</artifactId>
  1514. -            <version>1.7.5</version>
  1515. -        </dependency>
  1516. -        <dependency>
  1517.              <groupId>com.h2database</groupId>
  1518.              <artifactId>h2</artifactId>
  1519.              <version>1.3.157</version>
  1520. @@ -204,8 +157,55 @@
  1521.             <!-- Now frozen TO use version 1.0.9, so we don't have to build JScience wrapper anymore -->
  1522.             <version>1.0.9</version>
  1523.         </dependency>
  1524. -      
  1525.  
  1526. +
  1527. +<!-- BEGIN log4j boilerplate -->
  1528. +        <dependency>
  1529. +            <groupId>org.slf4j</groupId>
  1530. +            <artifactId>slf4j-api</artifactId>
  1531. +            <version>1.7.5</version>
  1532. +            <scope>runtime</scope>
  1533. +            <exclusions>
  1534. +                <!-- We exclude the normally embedded Log4J version, because it is NOT OSGi friendly.
  1535. +                        We instead use the bundled version supplied by SpringSource below.
  1536. +                -->               
  1537. +                <exclusion>
  1538. +                    <artifactId>log4j</artifactId>
  1539. +                    <groupId>log4j</groupId>
  1540. +                </exclusion>
  1541. +            </exclusions>
  1542. +        </dependency>
  1543. +
  1544. +        <dependency>
  1545. +            <!-- Here is an OSGi-friendly Log4J bundle, which we presume can be initialized through
  1546. +                    the methods provided by Appdapter, which assumes a log4j.properties file AT
  1547. +                    root of this bundle.  TO initialize Log4J differently, we could make this a
  1548. +                    compile-scoped dependency, AND THEN DO any Log4J config using CODE, e.g.
  1549. +                    using "BasicConfigurator".
  1550. +            -->
  1551. +            <groupId>org.apache.log4j</groupId>
  1552. +            <artifactId>com.springsource.org.apache.log4j</artifactId>
  1553. +            <version>1.2.16</version>     
  1554. +        </dependency>
  1555. +
  1556. +       <dependency>
  1557. +            <groupId>org.slf4j</groupId>
  1558. +            <artifactId>slf4j-log4j12</artifactId>
  1559. +            <version>1.7.5</version>
  1560. +            <scope>runtime</scope>
  1561. +            <exclusions>
  1562. +                <!-- We exclude the normally embedded Log4J version, because it is NOT OSGi friendly.
  1563. +                        We instead use the bundled version supplied by SpringSource below.
  1564. +                -->               
  1565. +                <exclusion>
  1566. +                    <artifactId>log4j</artifactId>
  1567. +                    <groupId>log4j</groupId>
  1568. +                </exclusion>
  1569. +            </exclusions>
  1570. +        </dependency>
  1571. +
  1572. +<!-- END log4j boilerplate -->
  1573. +
  1574.          <!-- SLF4J Test Bindings.
  1575.          We can change the scope during unit testing, but don't commit to SVN with scope other than "test"
  1576.          -->
  1577. @@ -219,12 +219,6 @@
  1578.         </dependency>
  1579.         -->
  1580.      
  1581. -       <dependency>
  1582. -           <groupId>org.slf4j</groupId>
  1583. -           <artifactId>slf4j-log4j12</artifactId>
  1584. -           <version>1.7.5</version>
  1585. -           <scope>test</scope>
  1586. -       </dependency>
  1587.      
  1588.     </dependencies>
  1589.    
  1590. @@ -284,44 +278,7 @@
  1591.                     </includes>
  1592.                 </configuration>
  1593.             </plugin>
  1594. -
  1595. -
  1596.         </plugins>
  1597. -       <pluginManagement>
  1598. -           <plugins>
  1599. -               <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
  1600. -               <plugin>
  1601. -                   <groupId>org.eclipse.m2e</groupId>
  1602. -                   <artifactId>lifecycle-mapping</artifactId>
  1603. -                   <version>1.0.0</version>
  1604. -                   <configuration>
  1605. -                       <lifecycleMappingMetadata>
  1606. -                           <pluginExecutions>
  1607. -                               <pluginExecution>
  1608. -                                   <pluginExecutionFilter>
  1609. -                                       <groupId>
  1610. -                                           org.scala-tools
  1611. -                                       </groupId>
  1612. -                                       <artifactId>
  1613. -                                           maven-scala-plugin
  1614. -                                       </artifactId>
  1615. -                                       <versionRange>
  1616. -                                           [2.15.2,)
  1617. -                                       </versionRange>
  1618. -                                       <goals>
  1619. -                                           <goal>compile</goal>
  1620. -                                       </goals>
  1621. -                                   </pluginExecutionFilter>
  1622. -                                   <action>
  1623. -                                       <ignore />
  1624. -                                   </action>
  1625. -                               </pluginExecution>
  1626. -                           </pluginExecutions>
  1627. -                       </lifecycleMappingMetadata>
  1628. -                   </configuration>
  1629. -               </plugin>
  1630. -           </plugins>
  1631. -       </pluginManagement>
  1632.     </build>
  1633.  </project>
  1634.  <!--
  1635. Index: org.appdapter.lib.gui/pom.xml
  1636. ===================================================================
  1637. --- org.appdapter.lib.gui/pom.xml   (revision 566)
  1638. +++ org.appdapter.lib.gui/pom.xml   (working copy)
  1639. @@ -52,85 +52,226 @@
  1640.  
  1641.     <description>Appdapter Maven project including Java AND Scala, produces jar, NOT bundle.  Excludes concrete SLF4J binding.</description>
  1642.  
  1643. -       <dependencies>
  1644. +
  1645. +
  1646. +   <dependencies>
  1647. +       <!--  Was using this FOR compile-edit workarounds, but now it's gone!
  1648.         <dependency>
  1649. -           <groupId>org.apache.felix</groupId>
  1650. -           <artifactId>org.osgi.core</artifactId>
  1651. -           <version>1.4.0</version>
  1652. +           <groupId>org.jscience</groupId>
  1653. +           <artifactId>jscience-mathematics</artifactId>
  1654. +           <version>5.0-SNAPSHOT</version>
  1655.             <scope>provided</scope>
  1656. -       </dependency>
  1657. +       </dependency>      
  1658. +       -->
  1659. +       <!-- *************** Compile Deps - mostly OSGi-friendly versions *********************** -->
  1660.         <dependency>
  1661. -           <groupId>junit</groupId>
  1662. -           <artifactId>junit</artifactId>
  1663. -           <version>3.8.1</version>
  1664. -           <scope>test</scope>
  1665. +           <groupId>org.scala-lang</groupId>
  1666. +           <artifactId>scala-library</artifactId>
  1667. +           <version>2.10.2</version>
  1668.         </dependency>
  1669. -       <dependency>
  1670. -           <groupId>${project.groupId}</groupId>
  1671. -           <artifactId>org.appdapter.lib.core</artifactId>
  1672. -           <version>${project.version}</version>
  1673. -           <scope>provided</scope>
  1674. -           <exclusions>
  1675. -               <exclusion>
  1676. -                   <artifactId>xmlbeans</artifactId>
  1677. -                   <groupId>org.apache.xmlbeans</groupId>
  1678. -               </exclusion>
  1679. -           </exclusions>
  1680. -       </dependency>
  1681. +
  1682.          <dependency>
  1683.              <groupId>${project.groupId}</groupId>
  1684.              <artifactId>org.appdapter.lib.registry</artifactId>
  1685.              <version>${project.version}</version>
  1686. -            <scope>provided</scope>
  1687.          </dependency>
  1688. +
  1689.          <dependency>
  1690.              <groupId>${project.groupId}</groupId>
  1691. +            <artifactId>org.appdapter.lib.core</artifactId>
  1692. +            <version>${project.version}</version>
  1693. +        </dependency>
  1694. +
  1695. +        <dependency>
  1696. +            <groupId>${project.groupId}</groupId>
  1697.              <artifactId>org.appdapter.lib.remote</artifactId>
  1698.              <version>${project.version}</version>
  1699.              <scope>provided</scope>
  1700.          </dependency>
  1701. +
  1702. +       <dependency>
  1703. +           <groupId>${project.groupId}</groupId>
  1704. +           <artifactId>ext.bundle.jena_all_2_10_1</artifactId>
  1705. +            <version>${project.version}</version>
  1706. +        <type>jar</type>
  1707. +       </dependency>      
  1708.          <dependency>
  1709.              <groupId>${project.groupId}</groupId>
  1710. -            <artifactId>ext.bundle.osgi.common</artifactId>
  1711. +            <artifactId>ext.bundle.xml.dom4j_161</artifactId>
  1712.              <version>${project.version}</version>
  1713. -            <scope>provided</scope>
  1714.          </dependency>
  1715. +
  1716.          <dependency>
  1717.              <groupId>${project.groupId}</groupId>
  1718. -            <artifactId>ext.bundle.openconverters</artifactId>
  1719. +            <artifactId>ext.bundle.osgi.common</artifactId>
  1720.              <version>${project.version}</version>
  1721. -            <scope>provided</scope>
  1722.          </dependency>
  1723. -       <dependency>
  1724. -            <groupId>com.jidesoft</groupId>
  1725. -            <artifactId>jide-oss</artifactId>
  1726. -            <version>3.5.5</version>
  1727. -        </dependency>
  1728. +
  1729.         <dependency>
  1730. -           <groupId>org.slf4j</groupId>
  1731. -           <artifactId>slf4j-api</artifactId>
  1732. -           <version>1.7.5</version>
  1733. +           <groupId>net.sf.opencsv</groupId>
  1734. +           <artifactId>opencsv</artifactId>
  1735. +           <version>2.3</version>
  1736.         </dependency>      
  1737.         <dependency>
  1738. -           <groupId>org.slf4j</groupId>
  1739. -           <artifactId>slf4j-log4j12</artifactId>
  1740. -           <version>1.7.5</version>
  1741. -           <scope>runtime</scope>
  1742. +           <!--
  1743. +               Needed AT compile time so we can provide a utility TO force the properties resource URL in,
  1744. +               due TO TCCL issues with Log4J's default startup in OSGi environment.   
  1745. +           -->
  1746. +
  1747. +           <groupId>org.apache.log4j</groupId>
  1748. +           <artifactId>com.springsource.org.apache.log4j</artifactId>
  1749. +           <version>1.2.16</version>
  1750. +           <scope>provided</scope>
  1751. +
  1752. +       </dependency>              
  1753. +
  1754. +
  1755. +        <dependency>
  1756. +            <groupId>com.h2database</groupId>
  1757. +            <artifactId>h2</artifactId>
  1758. +            <version>1.3.157</version>
  1759. +        </dependency>
  1760. +
  1761. +<!--       Problems in Felix, because
  1762. +               A) System Bundle #0 supplies the JAXP APIs at version 0.0.,
  1763. +               B) Dom4J specifies broad "uses" constraints on its exports.
  1764. +               C) Dom4J specifies version number >1.0 on SOME of its imports.
  1765. +          
  1766. +    [java] javax.xml.parsers; version=0.0.0.1_006_JavaSE imported by:
  1767. +     [java]    org.apache.servicemix.bundles.dom4j [255]
  1768. +     [java]    org.apache.servicemix.bundles.xpp3 [283]
  1769. +     [java]    org.apache.servicemix.bundles.xmlresolver [342]
  1770. +     [java]    org.apache.servicemix.bundles.xerces [256]
  1771. +     [java]    com.springsource.org.apache.log4j [273]
  1772. +     [java]    scala-library [249]
  1773. +    
  1774. +    
  1775. +
  1776. +       <dependency>
  1777. +           <groupId>org.apache.servicemix.bundles</groupId>
  1778. +           <artifactId>org.apache.servicemix.bundles.dom4j</artifactId>
  1779. +           <version>1.6.1_4</version>
  1780.             <exclusions>
  1781. -               <!-- This embedded Log4J version is NOT OSGi friendly, so we exclude it.  -->              
  1782.                 <exclusion>
  1783. -                   <artifactId>log4j</artifactId>
  1784. -                   <groupId>log4j</groupId>
  1785. +                   <artifactId>xml-apis</artifactId>
  1786. +                   <groupId>xml-apis</groupId>
  1787.                 </exclusion>
  1788.             </exclusions>
  1789.         </dependency>
  1790. +-->       
  1791. +       <!-- *************** Runtime Deps *********************** -->
  1792. +
  1793. +
  1794. +       <!--
  1795.         <dependency>
  1796. -           <!-- Here is the happy Log4J bundle that we like instead of one excluded above.  -->
  1797. -           <groupId>org.apache.log4j</groupId>
  1798. -           <artifactId>com.springsource.org.apache.log4j</artifactId>
  1799. -           <version>1.2.16</version>
  1800. -           <scope>compile</scope>         
  1801. -       </dependency>      
  1802. +           <groupId>org.apache.servicemix.specs</groupId>
  1803. +           <artifactId>org.apache.servicemix.specs.jaxp-api-1.4</artifactId>
  1804. +           <version>1.6.0</version>
  1805. +           <scope>runtime</scope>
  1806. +       </dependency>
  1807. +       -->
  1808. +      
  1809. +      
  1810. +      
  1811. +       <!-- ************************** Test Deps *********************** -->      
  1812. +       <dependency>
  1813. +           <groupId>org.scala-tools.testing</groupId>
  1814. +           <artifactId>specs_2.10</artifactId>
  1815. +           <version>1.6.9</version>
  1816. +           <scope>test</scope>
  1817. +       </dependency>
  1818. +      
  1819. +       <dependency>
  1820. +           <groupId>org.apache.servicemix.bundles</groupId>
  1821. +           <artifactId>org.apache.servicemix.bundles.junit</artifactId>
  1822. +           <version>4.7_3</version>
  1823. +           <scope>test</scope>
  1824. +        </dependency>
  1825. +       <dependency>
  1826. +           <groupId>org.scalatest</groupId>
  1827. +           <artifactId>scalatest_2.10</artifactId>
  1828. +           <version>1.9.1</version>
  1829. +           <scope>test</scope>
  1830. +       </dependency>
  1831. +       <dependency>
  1832. +           <groupId>${project.groupId}</groupId>
  1833. +           <artifactId>ext.bundle.math.jscience_50SNAP</artifactId>
  1834. +           <!-- Now frozen TO use version 1.0.9, so we don't have to build JScience wrapper anymore -->
  1835. +           <version>1.0.9</version>
  1836. +       </dependency>
  1837. +      
  1838. +       <!-- This is commented out UNTIL i can get JIDE TO exported properly TO BMD -->
  1839. +       <dependency>
  1840. +            <groupId>com.jidesoft</groupId>
  1841. +            <artifactId>jide-oss</artifactId>
  1842. +            <version>3.5.5</version>
  1843. +        </dependency>
  1844. +        
  1845. +       <dependency>
  1846. +           <groupId>org.apache.poi</groupId>
  1847. +           <artifactId>poi-ooxml</artifactId>
  1848. +           <version>3.9</version>
  1849. +       </dependency>
  1850. +        <!-- SLF4J Test Bindings.
  1851. +        We can change the scope during unit testing, but don't commit to SVN with scope other than "test"
  1852. +        -->
  1853. +        <!--
  1854. +       <dependency>
  1855. +           <groupId>org.slf4j</groupId>
  1856. +           <artifactId>slf4j-simple</artifactId>
  1857. +           <version>1.6.2</version>
  1858. +    
  1859. +           <scope>test</scope>
  1860. +       </dependency>
  1861. +       -->
  1862. +    
  1863. +<!-- BEGIN log4j boilerplate -->
  1864. +        <dependency>
  1865. +            <groupId>org.slf4j</groupId>
  1866. +            <artifactId>slf4j-api</artifactId>
  1867. +            <version>1.7.5</version>
  1868. +            <scope>runtime</scope>
  1869. +            <exclusions>
  1870. +                <!-- We exclude the normally embedded Log4J version, because it is NOT OSGi friendly.
  1871. +                        We instead use the bundled version supplied by SpringSource below.
  1872. +                -->               
  1873. +                <exclusion>
  1874. +                    <artifactId>log4j</artifactId>
  1875. +                    <groupId>log4j</groupId>
  1876. +                </exclusion>
  1877. +            </exclusions>
  1878. +        </dependency>
  1879. +
  1880. +        <dependency>
  1881. +            <!-- Here is an OSGi-friendly Log4J bundle, which we presume can be initialized through
  1882. +                    the methods provided by Appdapter, which assumes a log4j.properties file AT
  1883. +                    root of this bundle.  TO initialize Log4J differently, we could make this a
  1884. +                    compile-scoped dependency, AND THEN DO any Log4J config using CODE, e.g.
  1885. +                    using "BasicConfigurator".
  1886. +            -->
  1887. +            <groupId>org.apache.log4j</groupId>
  1888. +            <artifactId>com.springsource.org.apache.log4j</artifactId>
  1889. +            <version>1.2.16</version>     
  1890. +        </dependency>
  1891. +
  1892. +       <dependency>
  1893. +            <groupId>org.slf4j</groupId>
  1894. +            <artifactId>slf4j-log4j12</artifactId>
  1895. +            <version>1.7.5</version>
  1896. +            <scope>runtime</scope>
  1897. +            <exclusions>
  1898. +                <!-- We exclude the normally embedded Log4J version, because it is NOT OSGi friendly.
  1899. +                        We instead use the bundled version supplied by SpringSource below.
  1900. +                -->               
  1901. +                <exclusion>
  1902. +                    <artifactId>log4j</artifactId>
  1903. +                    <groupId>log4j</groupId>
  1904. +                </exclusion>
  1905. +            </exclusions>
  1906. +        </dependency>
  1907. +
  1908. +<!-- END log4j boilerplate -->
  1909. +
  1910.     </dependencies>
  1911.    
  1912.     <build>
  1913. Index: org.appdapter.lib.remote/pom.xml
  1914. ===================================================================
  1915. --- org.appdapter.lib.remote/pom.xml    (revision 566)
  1916. +++ org.appdapter.lib.remote/pom.xml    (working copy)
  1917. @@ -13,14 +13,7 @@
  1918.     <description>Appdapter Maven project including Java/SPARQL Client, produces jar, NOT bundle.  Excludes concrete SLF4J binding.</description>
  1919.  
  1920.     <dependencies>
  1921. -       <!--  Was using this FOR compile-edit workarounds, but now it's gone!
  1922. -       <dependency>
  1923. -           <groupId>org.jscience</groupId>
  1924. -           <artifactId>jscience-mathematics</artifactId>
  1925. -           <version>5.0-SNAPSHOT</version>
  1926. -           <scope>provided</scope>
  1927. -       </dependency>      
  1928. -       -->
  1929. +
  1930.         <!-- *************** Compile Deps - mostly OSGi-friendly versions *********************** -->
  1931.          <dependency>
  1932.              <groupId>javax.servlet</groupId>
  1933. @@ -50,23 +43,56 @@
  1934.  
  1935.          <dependency>
  1936.              <groupId>${project.groupId}</groupId>
  1937. -            <artifactId>ext.bundle.apache_httpclient</artifactId>
  1938. +            <artifactId>org.appdapter.lib.core</artifactId>
  1939.              <version>${project.version}</version>
  1940.          </dependency>
  1941.  
  1942. +<!-- BEGIN log4j boilerplate -->
  1943. +        <dependency>
  1944. +            <groupId>org.slf4j</groupId>
  1945. +            <artifactId>slf4j-api</artifactId>
  1946. +            <version>1.7.5</version>
  1947. +            <scope>runtime</scope>
  1948. +            <exclusions>
  1949. +                <!-- We exclude the normally embedded Log4J version, because it is NOT OSGi friendly.
  1950. +                        We instead use the bundled version supplied by SpringSource below.
  1951. +                -->               
  1952. +                <exclusion>
  1953. +                    <artifactId>log4j</artifactId>
  1954. +                    <groupId>log4j</groupId>
  1955. +                </exclusion>
  1956. +            </exclusions>
  1957. +        </dependency>
  1958.  
  1959.          <dependency>
  1960. -            <groupId>${project.groupId}</groupId>
  1961. -            <artifactId>org.appdapter.lib.core</artifactId>
  1962. -            <version>${project.version}</version>
  1963. +            <!-- Here is an OSGi-friendly Log4J bundle, which we presume can be initialized through
  1964. +                    the methods provided by Appdapter, which assumes a log4j.properties file AT
  1965. +                    root of this bundle.  TO initialize Log4J differently, we could make this a
  1966. +                    compile-scoped dependency, AND THEN DO any Log4J config using CODE, e.g.
  1967. +                    using "BasicConfigurator".
  1968. +            -->
  1969. +            <groupId>org.apache.log4j</groupId>
  1970. +            <artifactId>com.springsource.org.apache.log4j</artifactId>
  1971. +            <version>1.2.16</version>     
  1972.          </dependency>
  1973.  
  1974. -        <dependency>
  1975. +       <dependency>
  1976.              <groupId>org.slf4j</groupId>
  1977. -            <artifactId>slf4j-api</artifactId>
  1978. +            <artifactId>slf4j-log4j12</artifactId>
  1979.              <version>1.7.5</version>
  1980. +            <scope>runtime</scope>
  1981. +            <exclusions>
  1982. +                <!-- We exclude the normally embedded Log4J version, because it is NOT OSGi friendly.
  1983. +                        We instead use the bundled version supplied by SpringSource below.
  1984. +                -->               
  1985. +                <exclusion>
  1986. +                    <artifactId>log4j</artifactId>
  1987. +                    <groupId>log4j</groupId>
  1988. +                </exclusion>
  1989. +            </exclusions>
  1990.          </dependency>
  1991. -    
  1992. +
  1993. +<!-- END log4j boilerplate -->  
  1994.     </dependencies>
  1995.    
  1996.     <build>
  1997. @@ -100,7 +126,7 @@
  1998.  </project>
  1999.  <!--
  2000.  /*
  2001. - *  Copyright 2011 by The Appdapter Project (www.appdapter.org).
  2002. + *  Copyright 2013 by The Appdapter Project (www.appdapter.org).
  2003.   *
  2004.   *  Licensed under the Apache License, Version 2.0 (the "License");
  2005.   *  you may NOT use this file except in compliance with the License.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement