-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUILD] Extract dependency export from core into seperate bundle
by creating a new bundle called "saros.libratory" which serves as a dependency-container and replaces the previously used Core-bundle ("saros.core") in this role. This was done to reduce unnecessary coupling between the Core- and the Eclipse-bundle caused by the Core-bundle's dependency exports. Now the Core-bundle serves exclusively as a central library for a Saros- implementation without also serving as a dependency container. Since other packages (Intellij, Server,..) also used the Core's dependencies those now get it's dependencies from the new Libratory-bundle too. The following bundle-dependency-relations have been identified and get exported by the Libratory-bundle: (scheme: [bundle(s)]: * dependency of that bundles) [core, eclipse, stf, sever, intellij]: * log4j-1.2-api-2.13.3.jar * log4j-api-2.13.3.jar * log4j-core-2.13.3.jar * picocontainer-2.11.2-patched_relocated.jar [core, eclipse]: * weupnp.jar * smackx-3.4.1.jar [core, eclipse, stf, sever]: * smack-3.4.1.jar (Patches for the "smack"-bundle have also been moved from core to (libratory) Also the "xpp3"-bundle has been moved to libratory which prevents the following error: "java.lang.LinkageError: loader constraint violation: loader [...] previously initiated loading for a different type with name "org/xmlpull/v1/XmlPullParser" The error is triggered by the fact that both the "smack"- and the "xpp3"-bundles contain the library "org.xmlpull" while "xpp3" was previously still contained in the core-bundle. That seemed to cause the error since both bundles tried to load the same library. If both packages (smack, xpp3) are contained in the same bundle (which is now the libratory- and was previously the core-bundle) then it does not seem to cause a problem which is the reason for moving xpp3. The error is explained further in the following two sources: * http://frankkieviet.blogspot.com/2009/03/javalanglinkageerror-loader-constraint.html * https://stackoverflow.com/questions/18127431/spring-java-lang-linkageerror-loader-constraint-violation-loader-previously-in/18315346#18315346
- Loading branch information
Showing
28 changed files
with
191 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
source.. = src/,\ | ||
patches/ | ||
source.. = src/ | ||
output.. = bin/ | ||
bin.includes = META-INF/,\ | ||
.,\ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: Saros Libratory | ||
Bundle-SymbolicName: saros.libratory | ||
Bundle-Version: 1.0.0 | ||
Automatic-Module-Name: libratory | ||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8 | ||
Export-Package: org.apache.log4j, | ||
org.apache.log4j.config, | ||
org.apache.log4j.helpers, | ||
org.apache.log4j.spi, | ||
org.apache.logging.log4j, | ||
org.apache.logging.log4j.core, | ||
org.apache.logging.log4j.core.appender, | ||
org.apache.logging.log4j.core.config, | ||
org.apache.logging.log4j.status, | ||
org.apache.logging.log4j.core.lookup, | ||
org.bitlet.weupnp, | ||
org.jivesoftware.smack, | ||
org.jivesoftware.smack.debugger, | ||
org.jivesoftware.smack.filter, | ||
org.jivesoftware.smack.packet, | ||
org.jivesoftware.smack.provider, | ||
org.jivesoftware.smack.proxy, | ||
org.jivesoftware.smack.util, | ||
org.jivesoftware.smackx, | ||
org.jivesoftware.smackx.bytestreams, | ||
org.jivesoftware.smackx.bytestreams.ibb, | ||
org.jivesoftware.smackx.bytestreams.socks5, | ||
org.jivesoftware.smackx.entitycaps, | ||
org.jivesoftware.smackx.entitycaps.packet, | ||
org.jivesoftware.smackx.filetransfer, | ||
org.jivesoftware.smackx.muc, | ||
org.jivesoftware.smackx.packet, | ||
org.jivesoftware.smackx.search, | ||
saros.repackaged.picocontainer, | ||
saros.repackaged.picocontainer.adapters, | ||
saros.repackaged.picocontainer.annotations, | ||
saros.repackaged.picocontainer.behaviors, | ||
saros.repackaged.picocontainer.classname, | ||
saros.repackaged.picocontainer.composers, | ||
saros.repackaged.picocontainer.containers, | ||
saros.repackaged.picocontainer.converters, | ||
saros.repackaged.picocontainer.injectors, | ||
saros.repackaged.picocontainer.lifecycle, | ||
saros.repackaged.picocontainer.monitors, | ||
saros.repackaged.picocontainer.parameters, | ||
saros.repackaged.picocontainer.paranamer, | ||
saros.repackaged.picocontainer.references, | ||
saros.repackaged.picocontainer.security, | ||
saros.repackaged.picocontainer.visitors, | ||
org.xmlpull.mxp1, | ||
org.xmlpull.v1 | ||
Bundle-ClassPath: ., | ||
lib/smack-3.4.1.jar, | ||
lib/log4j-core-2.13.3.jar, | ||
lib/log4j-api-2.13.3.jar, | ||
lib/log4j-1.2-api-2.13.3.jar, | ||
lib/smackx-3.4.1.jar, | ||
lib/xpp3-1.1.4c.jar, | ||
lib/picocontainer-2.11.2-patched_relocated.jar, | ||
lib/weupnp.jar | ||
Bundle-Vendor: Saros Project | ||
|
Oops, something went wrong.