Versions Compared

Key

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

...

Panel

Anchor
The mit-release-plugin-parent Maven Project Reconfiguration
The mit-release-plugin-parent Maven Project Reconfiguration

Section 1: The mit-release-plugin-parent Maven Project Reconfiguration

  1. Check-out the maven project for the mit-release-plugin.  The SVN repository is:
    Code Block
    svn+ssh://svn.mit.edu/sais-sis-common/maven/plugins/mit-release-plugin/trunk
    
  2. Open the mit-release-plugin maven project in your IDE.
    1. Open the pom.xml's for each of the following projects:
      • mit-release-plugin-parent
      • mit-release-plugin
      • mit-release-plugin-common
      • mit-release-plugin-integration-tests
    2. In each of the pom.xml's for the above, remove all occurances of -SNAPSHOT from the <version> tags.
      There are a total of 7 occurances that have to be changed.
      • EXAMPLE: <version>2.0.21-SNAPSHOT</version> becomes <version>2.0.21</version>

When you are satisfied that everything is correct, save the changes that you made to the pom.xml's.

The mit-release-plugin-parent Maven Project Reconfiguration is now complete

{anchor:The

Panel

Anchor
The sais-moves-web Maven Project Reconfiguration
The

Wiki Markup
sais-moves-web

Maven

Project

Reconfiguration

} h3.

Section

2:

The

sais-moves-web

Maven

Project

Reconfiguration

#

  1. Check-out
  1. the
  1. maven
  1. project
  1. for
  1. the
  1. sais-moves-web.
&nbsp;&nbsp;The SVN repository is: {code}
  1.   The SVN repository is:
    Code Block
    
    svn+ssh://svn.mit.edu/sais-sis-common/sais-moves-web/trunk
    
{code} # Open the
  1. Open the sais-moves-web
  1. maven
  1. project
  1. in
  1. your
  1. IDE.
##
    1. Open
    1. the
    1. sais-moves-web
    1. project
    1. pom.xml
    1. for
    1. editting.
##
    1. In
    1. the
    1. <dependencies>
    1. section,
    1. add
    1. the
    1. following
    1. dependency:
{
    1. Code Block
}
    1. 
      <dependency>
          <groupId>edu.mit.maven.plugins</groupId>
          <artifactId>mit-release-plugin</artifactId>
          <version>2.0.21</version>
      </dependency>
      
{code} {color:red}Change the
    1. Change the <version>,
    1. in
    1. the
    1. above,
    1. to
    1. the
    1. mit-release-plugin
    1. version
    1. that
    1. you
    1. selected
    1. in
    1. Section
    1. 1.
{color} ## In the <plugins> section of the
    1. In the <plugins> section of the pom.xml,
    1. find
    1. the
    1. following
    1. plugin
    1. with
    1. the
    1. following
    1. groupId
    1. and
    1. artifactId:
{
    1. Code Block
}
    1. 
      <plugin>
          <groupId>edu.mit.maven.plugins</groupId>
          <artifactId>mit-release-plugin</artifactId>
          .
          .
          .
      </plugin>
      
{code} {color:red}Change the <version> for the above plugin to the
    1. Change the <version> for the above plugin to the mit-release-plugin
    1. version
    1. that
    1. you
    1. selected
    1. in
    1. Section
    1. 1.
{color} ## Open the
    1. Open the log4j.xml
    1. (located
    1. in
    1. the
    1. resources
    1. folder)
    1. for
    1. editting
    1. and
    1. add
    1. the
    1. following
    1. <logger>:
{
    1. Code Block
}
    1. 
      <logger name="edu.mit.moves.shell.logging">
          <level value="INFO" />
      </logger>
      
{code} {tip OPTIONAL} If you are only interested in debugging the
    1. Tip
      titleOPTIONAL

      If you are only interested in debugging the mit-release-plugin,

    1. you

    1. might

    1. want

    1. to

    1. changed

    1. the

    1. <level>

    1. of

    1. all

    1. the

    1. other

    1. <logger>s

    1. to

    1. FATAL.

&nbsp;&nbsp;If you do
    1.   If you do this,

    1. all

    1. output

    1. to

    1. the

    1. system

    1. console

    1. will

    1. be

    1. surpress

    1. except

    1. for

    1. the

    1. output

    1. from

    1. the

    1. mit-release-plugin.

{tip} When you are satisfied that everything is correct, save the changes that you made. h4. {color:green}The

When you are satisfied that everything is correct, save the changes that you made.

The sais-moves-web

Maven

Project

Reconfiguration

is

now

complete

{color}

Panel

Anchor
The Development Environment Setup
The Development Environment Setup

Section 3: The Development Environment Setup

  1. Download the following files:
    Warning

    The following 3 properties files are the be used solely and exclusively in the software development environment on an Educational Systems VM.  They are NOT to be deployed to the development, test or production servers.

    1. Click here to Download the sais-moves-web.properties file .  Select Save as to your ${user.home} directory.
    2. Click here to Download the sais-moves-web-build.properties file .  Select Save as to your ${user.home} directory.
    3. Click here to Download the sais-moves-web-test.properties file .  Select Save as to your ${user.home} directory.
    4. Open the sais-moves-web-build.properties file for editing and change the following properties:
      • mit.maven.release.plugin.version=2.0.21  Change the version number (2.0.21) to the mit-release-plugin version number that you selected in section 1.
      • maven.system.property.cargo.hostname=esvm-1xx.mit.edu  Change the hostname (esvm-1xx.mit.edu) to your vm's hostname.

  2. Configure your moves build directories
    1. Create the following directories:
      • C:\tmp\movesbuild\build\sais-common-conf\.m2\repository
      • C:\tmp\movesbuild\build\sais-common-conf\servers\oc4j
        Note

        Please note that the .m2 directory cannot be created using Windows Explorer.  To create the .m2 directory, you must open a cmd window, cd to the sais-common-conf directory and use mkdir to create the .m2 directory.

    2. Open a cmd window and cd to the C:\tmp\movesbuild\build\sais-common-conf\.m2 directory.  Type the following command:
      Code Block
      linkd repository c:\Users\esuser\.m2\repository
      
      The above command will link your local maven repository to the directory C:\tmp\movesbuild\build\sais-common-conf\.m2\repository.
      Warning

      Do not delete or rename the repository directory.  Deleting or Renaming the repository directory will delete your local maven repository.  Unlink the repository directory before you delete or rename.

      Tip

      You can unlink the repostory directory with the following command:

      Code Block
      linkd repository /D
      

      You must be in the .m2 directory when you execute the above command.

    3. cd to the C:\tmp\movesbuild\build\sais-common-conf\servers directory.  Type the following command:
      Code Block
      linkd oc4j c:\oracle-oc4j-10.1.3.5.0-server
      
      The above command will link your local oracle server to the directory C:\tmp\movesbuild\build\sais-common-conf\servers\oc4j.
      Warning

      Do not delete or rename the oc4j directory.  Deleting or Renaming the oc4j directory will delete your local oracle server.  Unlink the oc4j directory before you delete or rename.

      Tip

      You can unlink the oc4j directory with the following command:

      Code Block
      linkd oc4j /D
      

      You must be in the servers directory when you execute the above command.

  3. Configure your moves ui directories
    1. Create the following directories:
      • C:\tmp\movesbuild\ui\sais-common-conf\.m2\repository
      • C:\tmp\movesbuild\ui\sais-common-conf\servers\oc4j
        Note

        Please note that the .m2 directory cannot be created using Windows Explorer.  To create the .m2 directory, you must open a cmd window, cd to the sais-common-conf directory and use mkdir to create the .m2 directory.

    2. Open a cmd window and cd to the C:\tmp\movesbuild\ui\sais-common-conf\.m2 directory.  Type the following command:
      Code Block
      linkd repository c:\Users\esuser\.m2\repository
      
      The above command will link your local maven repository to the directory C:\tmp\movesbuild\ui\sais-common-conf\.m2\repository.
      Warning

      Do not delete or rename the repository directory.  Deleting or Renaming the repository directory will delete your local maven repository.  Unlink the repository directory before you delete or rename.

      Tip

      You can unlink the repostory directory with the following command:

      Code Block
      linkd repository /D
      

      You must be in the .m2 directory when you execute the above command.

    3. cd to the C:\tmp\movesbuild\build\sais-common-conf\servers directory.  Type the following command:
    4. cd to the C:\tmp\movesbuild\ui\sais-common-conf\servers directory.  Type the following command:
      Code Block
      linkd oc4j c:\oracle-oc4j-10.1.3.5.0-server
      
      The above command will link your local oracle server to the directory C:\tmp\movesbuild\ui\sais-common-conf\servers\oc4j.
      Warning

      Do not delete or rename the oc4j directory.  Deleting or Renaming the oc4j directory will delete your local oracle server.  Unlink the oc4j directory before you delete or rename.

      Tip

      You can unlink the oc4j directory with the following command:

      Code Block
      linkd oc4j /D
      

      You must be in the servers directory when you execute the above command.

The Development Environment Setup is now complete

...