Changes required in maven directory

Required changes in the root pom.xml in the maven directory.

  • Change all engine dependencies to 5.4

  • Remove widget-framework-core-tags,widget-framework-community-tags,widget-framework-common, widget-framework-build-tools from the module list

  • If you have any maven repository, plugin repository settings in your pom file we highly recommends to clear those from pom file and move them in settings.xml file of apache maven

  • In WF 2.0 all dependencies are managed in the parent pom. Benefit is that we don't have to manage version, scope in child poms'. So, it is a recommendation that you manage dependency in this pom for all of its child. Just wrap inside <dependencyManagement>

To check what dependencies should be used in maven/pom.xml please use misc/widgets/pom.xml of WF 2.0 distribution as a reference. If some widget has widget-framework-common as a dependency then replace it by following dependency

          <dependency>
            <groupId>com.escenic.widget-framework</groupId>
            <artifactId>wf-engine</artifactId>
            <version>2.0</version>
            <scope>provided</scope>
          </dependency>
      

In the previous version all framework related code was inside the following three modules

  • widget-framework-core

  • widget-framework-community (required for community widgets)

  • widget-framework-mobile (required for mobile widgets)

Now these has been separated to widget framework plugins. If you have widget framework common as a plugin or module you must remove this. In version 2.0 this plugin is required no more. Java codes from widget-framework-core and widget-framework-community has been moved to widget framework core plugin and widget framework community plugin. Also some jsp, javascript files has been removed. So, you should replace widget-framework-core,widget-framework-community (if you have community widgets) and widget-framework-mobile (if you have mobile widgets) module from the version 2.0.

If you have any changes in the wireframe jsp, template group jsp, core content type, layout-group ensure that they are added in the corresponding places of widget-framework-core, widget-framework-community module or widget-framework-mobile module. Add your javascript and css files in the head.jsp.

In widget framework 2.0 you don't need to compile any framework code except jsp and your custom defined classes or components. So, you may remove any compile time dependencies of previous version of Widget Framework. Of course you should keep compile time dependencies for your custom jsps, classes. All required third party jars will be distributed from the WF plugins. Be sure that you are using same version of those jars in your pom.

Widget framework tag library dependencies has been changed. You can change these dependencies in all widgets. The new dependencies are

          <dependency>
            <groupId>com.escenic.widget-framework</groupId>
            <artifactId>wf-taglib</artifactId>
            <version>2.0.0</version>
            <scope>provided</scope>
          </dependency>

          <dependency>
            <groupId>com.escenic.widget-framework</groupId>
            <artifactId>wf-community-taglib</artifactId>
            <version>2.0.0</version>
            <scope>provided</scope>
          </dependency>

          <dependency>
            <groupId>com.escenic.widget-framework</groupId>
            <artifactId>wf-mobile-taglib</artifactId>
            <version>2.0.0</version>
            <scope>provided</scope>
          </dependency>