Monday, 8 September 2014

Spring Web Service Client Using Maven with Liferay Portlet

Create one simple maven base project in Eclipse. Save your wsdl file in the resource directory with WSDL extension. Make sure about the extension Copy following build and dependencies tag.  <build>     <plugins>         <plugin>             <groupId>org.apache.cxf</groupId>             <artifactId>cxf-codegen-plugin</artifactId>             <version>${cxf.version}</version>             <executions>                 <execution>                     <id>generate-sources</id>                     <phase>generate-sources</phase>                     <configuration>                     <sourceRoot>src/main/java</sourceRoot>                     <wsdlOptions>                         <wsdlOption>                             <wsdl>${basedir}/src/main/resources/TestService.wsdl</wsdl>                         </wsdlOption>                     </wsdlOptions>                     </configuration>                     <goals>                         <goal>wsdl2java</goal>                     </goals>                 </execution>             </executions>             <dependencies>                 <dependency>                     <groupId>xerces</groupId>                     <artifactId>xercesImpl</artifactId>                     <version>2.9.1</version>                 </dependency>             </dependencies>         </plugin>     </plugins> </build>     <dependencies>         <dependency>             <groupId>org.apache.cxf</groupId>             <artifactId>cxf-tools-common</artifactId>             <version>${cxf.version}</version>         </dependency>         <dependency>             <groupId>org.apache.cxf</groupId>             <artifactId>cxf-rt-frontend-simple</artifactId>             <version>${cxf.version}</version>         </dependency>         <dependency>             <groupId>org.apache.cxf</groupId>             <artifactId>cxf-rt-transports-http</artifactId>             <version>${cxf.version}</version>         </dependency>     </dependencies>     <properties>         <cxf.version>2.7.7</cxf.version>     </properties> build...

Tuesday, 2 September 2014

Spring MVC portlet using maven

Create Maven base Liferay portlet Please following the below link to create a Liferay portlet using maven command prompt. http://wellofjava.blogspot.com/2014/08/maven-portlet-development-for-command.html Define Maven dependencies for Sping MVC portlet Now you will need to add following dependencies in Maven file to make spring portlet. <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc-portlet</artifactId> <version>${spring.version}</version> </dependency> <dependency> ...