0
Managed Coherence Servers – WebLogic Sever
Part 3 – Maven Integration
Tim Middleton - Solutions Architect – Oracle Coheren...
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.2
See “Part 1 – Introduction and use-cases”
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.3
• Maven Recap
• WebLogic Server & Coherence Maven Su...
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.4
• Maven is a build and dependency system allowing th...
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.5
• Maven Recap
• WebLogic Server & Coherence Support
...
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.6
• Seamless integration between Oracle Home
and Maven...
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.7
• Our Example EAR Application contains
– GAR with al...
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.8
• Maven pom.xml files
pom.xml
gar/pom.xml
servlet/po...
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.9
• Maven pom.xml files
pom.xml
gar/pom.xml
servlet/po...
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.10
• Maven pom.xml files
pom.xml
gar/pom.xml
servlet/p...
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.11
• Maven pom.xml files
pom.xml
gar/pom.xml
servlet/p...
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.12
• This plugin from Oracle allows you to perform
Web...
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.13
• Maven Recap
• WebLogic Server & Coherence Support...
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.14
• Install oracle-maven-sync plugin
• Execute the or...
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.15
Upcoming SlideShare
Loading in...5
×

Coherence Managed Coherence Servers - Part 3 - Maven Integration

1,441

Published on

Watch on YouTube:
http://www.youtube.com/watch?v=RyW8wao86qM

Published in: Technology, News & Politics
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,441
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
26
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide
  • Today we are not going to go through the details of what Managed Coherence Servers are as this is outlined in the first screen cast.Please see that screencast for more details. There is also a second screen screen cast that covers integrate with eclipse.
  • There are a number of parts to the maven integration when using Managed Coherence Servers.Firstly there is a seamless integration between Oracle homes and your maven repository. This is through the Maven Sync Plugin which allows you to synchronise your Oracle HOME with your maven repository. WebLogic and coherence artefacts can then easily be incorporated into maven projects using standard mechanisms.There is standardization of naming conventions for ease of use.In addition to this there are three maven plugins that have been developed to allow easier use of a GAR. The first is an archetype which generates a structure and some default files to provide a kick start in developing a GAR. The second is a GAR packaging plugin which intercepts the maven build process to automatically generate a GAR based on the set up of the maven project. It will build a GAR file placing all class files and configuration in the right places for it to be deployable.The third is the ability to automatically generate the required POF configuration on generation of a GAR.There is also extensions to the current WebLoogic Maven deploy plugin to support the above functionality
  • Transcript of "Coherence Managed Coherence Servers - Part 3 - Maven Integration"

    1. 1. Managed Coherence Servers – WebLogic Sever Part 3 – Maven Integration Tim Middleton - Solutions Architect – Oracle Coherence Development <Insert Picture Here>
    2. 2. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.2 See “Part 1 – Introduction and use-cases”
    3. 3. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.3 • Maven Recap • WebLogic Server & Coherence Maven Support • Demonstration Agenda
    4. 4. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.4 • Maven is a build and dependency system allowing the configuration of project dependencies, 3rd party dependencies and the definition of a build lifecycle • In terms of development there are a number of areas Maven attempts to help with: – Making the build process easy – Providing a uniform build system – Providing quality project information – Providing guidelines for best practices development – Allowing transparent migration to new features Maven Recap
    5. 5. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.5 • Maven Recap • WebLogic Server & Coherence Support • Demonstration Agenda
    6. 6. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.6 • Seamless integration between Oracle Home and Maven repositories • Standardize Maven usage and naming conventions • GAR Archetype support • GAR packaging type support for use with WLS deploy plugin • Support for generation of POF configuration file on creation of a GAR • WebLogic Maven Deploy Plugin WebLogic & Coherence Maven Support Maven Sync Plugin Oracle Home Enterprise Maven Repository Development Environment Production Environment
    7. 7. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.7 • Our Example EAR Application contains – GAR with all artifacts for running Coherence Application, POJO’s, Cache Configuration, etc. – WAR with JSP’s and Java Beans • Maven project pom.xml files pom.xml gar/pom.xml servlet/pom.xml ear/pom.xml Example Configuration
    8. 8. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.8 • Maven pom.xml files pom.xml gar/pom.xml servlet/pom.xml ear/pom.xml Example Configuration – Base pom.xml Include WebLogic Maven Plugin Configuration <plugin> <groupId>com.oracle.weblogic</groupId> <artifactId>wls-maven-plugin</artifactId> <version>12.1.2.0</version> <configuration> <adminurl>t3://localhost:7001</adminurl> <user>weblogic</user> <password>welcome1</password> <action>deploy</action> <remote>false</remote> <verbose>true</verbose> <source>ear/target/ear-1.0.ear</source> <middlewareHome>/u01/Middleware </middlewareHome> <name>ExampleEAR</name> </configuration> </plugin>
    9. 9. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.9 • Maven pom.xml files pom.xml gar/pom.xml servlet/pom.xml ear/pom.xml Example Configuration – GAR pom.xml Include Coherence and Configure POF Generation <project > ... <packaging>gar</packaging> ... <dependencies> <dependency> <groupId>com.oracle.coherence</groupId> <artifactId>coherence</artifactId> <version>12.1.2-0-0</version> <scope>provided</scope> </dependency> </dependencies> ... <plugin> <groupId>com.oracle.coherence</groupId> <artifactId>maven-gar-plugin</artifactId> <extensions>true</extensions> <configuration> <generatePof>false</generatePof> </configuration> </plugin>
    10. 10. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.10 • Maven pom.xml files pom.xml gar/pom.xml servlet/pom.xml ear/pom.xml Example Configuration – Servlet pom.xml Include Coherence and GAR Dependencies ... <dependency> <groupId>com.oracle.coherence</groupId> <artifactId>gar</artifactId> <version>1.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.oracle.coherence</groupId> <artifactId>coherence</artifactId> <version>12.1.2-0-0</version> <scope>provided</scope> </dependency> ...
    11. 11. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.11 • Maven pom.xml files pom.xml gar/pom.xml servlet/pom.xml ear/pom.xml Example Configuration – EAR pom.xml Include Coherence and GAR Dependencies ... <plugin> <artifactId>maven-ear-plugin</artifactId> <configuration> <archive> <manifest> <addClasspath>true</addClasspath> </manifest> </archive> <artifactTypeMappings> <artifactTypeMapping type="gar" mapping="jar"/> </artifactTypeMappings> </configuration> </plugin> ...
    12. 12. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.12 • This plugin from Oracle allows you to perform WebLogic deployment and maintenance tasks automatically within maven projects. Some of these tasks include: – Deployment / un-deployment of applciations – Creation of domains – Listing applications – Starting/ stopping servers – Starting/ stopping applications 12 WebLogic Maven Deploy Plugin
    13. 13. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.13 • Maven Recap • WebLogic Server & Coherence Support • Demonstration Agenda
    14. 14. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.14 • Install oracle-maven-sync plugin • Execute the oracle-maven-sync plugin • Create a new GAR archetype project • Build the Managed Coherence Servers example from the first screencast using maven • Deploy this using the WebLogic Maven plugin Demonstration
    15. 15. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.15
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×