Fabric and Project Dependencies

As each project has its class dependencies, we need to make sure that Fabric doesn’t use those dependencies.

Therefore, starting V7.2.1 Fabric’s dependencies can be isolated from the project’s dependencies. By default, the current functionality is preserved, which means there is no isolation between Fabric and project dependencies.

In order to enable this feature:

  • Uncomment PACKAGE_NAMES_CLASS_LOADING_FILTER in config.ini and set it to:
  PACKAGE_NAMES_CLASS_LOADING_FILTER=com.k2view.,java.
  • Remove 'FABRIC_EXT_JARS' from scripts/fabric-server-start.sh from the CLASSPATH_STR and set it to:
  CLASSPATH_STR="$FABRIC_CONF:${ROOTDIR}/lib/fabric/*:${ROOTDIR}/lib/provided/*:${ROOTDIR}/resources"
  • Restart Fabric.

Note that once PACKAGE_NAMES_CLASS_LOADING_FILTER is uncommented, the project's JARs must be placed to the ExternalJars folder.

Previous

Fabric and Project Dependencies

As each project has its class dependencies, we need to make sure that Fabric doesn’t use those dependencies.

Therefore, starting V7.2.1 Fabric’s dependencies can be isolated from the project’s dependencies. By default, the current functionality is preserved, which means there is no isolation between Fabric and project dependencies.

In order to enable this feature:

  • Uncomment PACKAGE_NAMES_CLASS_LOADING_FILTER in config.ini and set it to:
  PACKAGE_NAMES_CLASS_LOADING_FILTER=com.k2view.,java.
  • Remove 'FABRIC_EXT_JARS' from scripts/fabric-server-start.sh from the CLASSPATH_STR and set it to:
  CLASSPATH_STR="$FABRIC_CONF:${ROOTDIR}/lib/fabric/*:${ROOTDIR}/lib/provided/*:${ROOTDIR}/resources"
  • Restart Fabric.

Note that once PACKAGE_NAMES_CLASS_LOADING_FILTER is uncommented, the project's JARs must be placed to the ExternalJars folder.

Previous