Guide - IOM 2.12 Migration of Project Dependencies

1 Introduction

All IOM-Common modules listed below are provided as jar instead of ejb module now.
Two things have to be migrated, if some of these dependencies are used:

  1. Change the type of the dependency to jar.
  2. Remove explicit module dependency from deployment.
Group IDArtifact ID
bakery.logicbakery.logic-common
bakery.persistencebakery.persistence-common
bakery.persistence-common-report
bakery.persistence-common-customer
bakery.persistence-common-article
bakery.persistence-common-aggregation-article
bakery.persistence-common-order
bakery.persistence-common-order-view
bakery.securitybakery.security-common
com.intershop.omsprocess-common

2 Change Type of the Dependency

Change the type of the dependency from ejb to jar.

<dependency>
    <groupId>bakery.logic</groupId>
    <artifactId>bakery.logic-common</artifactId>
    <type>jar</type>
    <!-- <type>ejb</type> REMOVE OR CHANGE TO JAR -->
</dependency>

3 Remove Explicit Module Dependency from the Deployment

Explicit dependencies need to be removed for the above mentioned dependencies.

These can be configured using two methods:

  1. Adding entries to the MANIFEST.MF file of the deployment:
    1. Check for static content in manifest file and remove it if necessary.
    2. Check for existing Maven plugins adding dependencies to your manifest and remove it if necessary.
  2. Adding entries to the jboss-deployment-structure.xml deployment descriptor.

3.1 MANIFEST.MF

Check for existing maven plugins adding above mentioned dependencies to your manifest and remove them if necessary:

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-ear-plugin</artifactId>
            <configuration>
                <archive>
                    <manifestEntries>
                        <Revision>${revision}</Revision>
                        <!-- <Dependencies>deployment.bakery.base-app-${project.version}.ear.bakery.logic-common-${project.version}.jar</Dependencies> REMOVE THIS DEPENDENCY -->
                    </manifestEntries>
...

3.2 jboss-deployment-structure.xml

Check for module dependencies in jboss-deployment-structure.xml and remove above mentioned dependencies if exist:

<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
    <deployment>
        <dependencies>
            <module name="deployment.bakery.base-app-${project.version}.ear" export="true" meta-inf="import" />
            <!-- <module name="deployment.bakery.base-app-${project.version}.ear.bakery.logic-common-${project.version}.jar" export="true" /> REMOVE THIS DEPENDENCY -->
        </dependencies>
    </deployment>
</jboss-deployment-structure>

Disclaimer

The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.

Customer Support
Knowledge Base
Product Resources
Support Tickets