Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel

Anchor
Customizing the project JAR
Customizing the project JAR

Section 2: Customizing the project JAR

  1. Run Eclipse.  From the Project Explorer View, open the Maven JAR project that you want to customize.
    Your Project Explorer View should look similar to the following:
  2. Expand your project, then expand src/main/resources.
    Your Project Explorer View should look similar to the following:
  3. Open the applicationContext-csf-projectName-config.xml for editing and change the following lines substituting your short project acronym for projectName.
    The are 3 occurances of projectName that have to be changed.
    Code Block
        <bean id="csfProjectNameMappingResources" class="org.springframework.beans.factory.config.ListFactoryBean" parent="commonHibernateMappingResources">
        <bean id="hibernateCsfProjectNameMappingResources" class="org.springframework.beans.factory.config.ListFactoryBean" parent="csfProjectNameMappingResources">
    
    When you have made all the changes, the lines you have changed should look similar to the following:
    Code Block
        <bean id="csfAttMappingResources" class="org.springframework.beans.factory.config.ListFactoryBean" parent="commonHibernateMappingResources">
        <bean id="hibernateCsfAttMappingResources" class="org.springframework.beans.factory.config.ListFactoryBean" parent="csfAttMappingResources">
    
    In the above example, ProjectName was replaced with the short project acronym Att.
    When you are satisifed with the changes, save and close the file.
  4. Open the applicationContext-csf-projectName.xml for editing and change the following lines substituting your short project acronym for projectName.
    There are 3 occurances of projectName that have to be changed.
    Code Block
        <import resource="classpath*:applicationContext-csf-projectName-component-scan.xml" />
        <import resource="classpath*:applicationContext-csf-projectName-config.xml" />
        <import resource="classpath*:applicationContext-csf-projectName-security-spring.xml" />
    
    When you have made all the changes, the lines you have changed should look similar to the following:
    Code Block
        <import resource="classpath*:applicationContext-csf-att-component-scan.xml" />
        <import resource="classpath*:applicationContext-csf-att-config.xml" />
        <import resource="classpath*:applicationContext-csf-att-security-spring.xml" />
    
    In the above example, projectName was replaced with the short project acronym att.
    When you are satisifed with the changes, save and close the file.
  5. From the Project Explorer View, rename each of the following files, substituting your short project acronym for projectName.
    There are 4 files that have to be renamed.
    Code Block
        applicationContext-csf-projectName.xml
        applicationContext-csf-projectName-component-scan.xml
        applicationContext-csf-projectName-config.xml
        applicationContext-csf-projectName-security.xml
    
    When you have made all the changes, the file names that you have changed should look similar to the following:
    Code Block
        applicationContext-csf-att.xml
        applicationContext-csf-att-component-scan.xml
        applicationContext-csf-att-config.xml
        applicationContext-csf-att-security.xml
    
    In the above example, projectName was replaced with the short project acronym att.
    Your Project Explorer View should look similar to the following:

    When you are satisifed with the changes, save and close the file.
  6. Commit all changes to the SVN repository.

Customizing the project JAR is now complete.

Panel

Anchor
Customizing the project JAR pom.xml
Customizing the project JAR pom.xml

Section 3: Customizing the project JAR pom.xml

  1. Run Eclipse.  From the Project Explorer View, open the Maven JAR project that you want to customize.
    Expand your project and open the project's pom.xml for editing.
    Select the pom.xml tab.
    You should have a display similar to the following panel.  From time to time the jar-template is updated and, as a result, the Configuration Instructions are changed.  The instructions found in the pom.xml will ALWAYS be up-to-date and may differ from what is display in the panel below.

    Follow the Configuration Instructions that are provided in the pom.xml.
    When you are satisfied with the changes that you have made, save the changes and close the file.
  2. Commit the changes to the SVN repository.

Customizing the project JAR pom.xml is now complete.