This discussion is archived
2 Replies Latest reply: Jun 29, 2012 2:50 PM by 513108 RSS

deploy with weblogic-maven-plugin for development purposes

513108 Newbie
Currently Being Moderated
Hi everyone,

We are using Maven 3 along with Nexus Pro to build applications and manage artifacts.
Developers in the team don't have permission to deploy anything (SNAPSHOT or RELEASE) to Nexus, but only download. A CI server has been setup for that purpose.

CI server builds SNAPSHOTs when developers commit something to SCM repo.
CI server builds RELEASEs on-demand. We've created deployment projects that aggregate RELEASED jar files into ear files to be deployed on application and web servers.

Each developer has a local Weblogic server and I'd like to use weblogic-maven-plugin (from Oracle, not from Codehaus) so they don't have to do the packaging and deployment to their local Weblogic server manually. I want them to be able to invoke the plugin's goals to install/update jar files on their weblogic and debug locally.

My question is how to set it up. Once at the parent project level (would it take care of dependency jar files)? Or separately for each module within the project? There is also a problem of shared libraries. When packaged in an ear file (in "lib" directory by default), shared libraries' classes are visible to all modules within the ear file. When deployed separately, they have to be deployed as Optional Packages. Could I do that with this plugin?

Thanks,
Amir
  • 1. Re: deploy with weblogic-maven-plugin for development purposes
    user696 Explorer
    Currently Being Moderated
    Please check below docs which talks about how to deploy application to Weblogic Server.

    wls 10.3.5
    ======
    http://docs.oracle.com/cd/E21764_01/web.1111/e13702/maven_deployer.htm

    wls 12.1.1
    ======
    http://docs.oracle.com/cd/E24329_01/web.1211/e24368/maven.htm

    HTH
    Regards,
    Sunil P
  • 2. Re: deploy with weblogic-maven-plugin for development purposes
    513108 Newbie
    Currently Being Moderated
    Thanks. I had seen the link before I post this. The page doesn't really answer my question though and is far from being complete. For instance, it won't tell you anything about plugin's behavior (e.g.: if you configure it in Parent project, would it deploy all modules defined in its POM or not?).

    Anyway, I finally found a post somewhere else that helped me to make some real progress.

    http://maven.40175.n5.nabble.com/WebLogic-Deployment-ok-from-child-fails-from-parent-td91659.html

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points