From e3c2a638d818c915283ee31eaf54c7546c7cb9a4 Mon Sep 17 00:00:00 2001 From: vmassol Date: Sun, 14 Aug 2005 21:41:15 +0000 Subject: [PATCH] MPEJB-2: EJB client jar can now be generated and deployed/installed automatically by the standard goals (ejb, ejb:ejb, ejb:install and ejb:deploy). Previous goals dedicated to ejb client have been deprecated. There is a new property maven.ejb.client.generate which decides whether or not to generate the ejb client jar. It defaults to true. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@232650 13f79535-47bb-0310-9956-ffa450edef68 --- ejb/plugin.jelly | 76 +++++++++++++++++++++++++++++----------- ejb/plugin.properties | 12 +++++-- ejb/project.xml | 2 +- ejb/xdocs/changes.xml | 8 +++++ ejb/xdocs/properties.xml | 26 ++++++++++++-- 5 files changed, 98 insertions(+), 26 deletions(-) diff --git a/ejb/plugin.jelly b/ejb/plugin.jelly index 5bfe3ceb..464024cd 100644 --- a/ejb/plugin.jelly +++ b/ejb/plugin.jelly @@ -2,7 +2,7 @@ - + - + + @@ -43,9 +45,19 @@ - + - + + + + + + + + + + Building ejb ${maven.final.name} @@ -134,27 +146,33 @@ - - - - - + + - + index="${maven.ejb.client.index}"/> + - + + + + DEPRECATED: You should use the ejb:ejb goal instead which automatically creates an ejb-client jar too. + + + + - + + DEPRECATED: You should use the ejb:install goal instead which automatically installs the ejb-client jar too. + @@ -162,17 +180,24 @@ - + + description="Install the ejb files in the local repository"> - + + + @@ -203,6 +228,13 @@ type="ejb" project="${pom}" typeHandler="${ejbTypeHandler}"/> + + + @@ -222,14 +254,16 @@ - + + DEPRECATED: You should use the ejb:deploy goal instead which automatically deploys the ejb-client jar too. + diff --git a/ejb/plugin.properties b/ejb/plugin.properties index c16569ac..e44d9d71 100644 --- a/ejb/plugin.properties +++ b/ejb/plugin.properties @@ -1,5 +1,5 @@ # ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. +# Copyright 2001-2005 The Apache Software Foundation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,9 +29,14 @@ maven.ejb.src=${maven.src.dir}/ejb # Location where the generated EJB will be placed. maven.ejb.build.dir = ${maven.build.dir} -# Name of the generated EJB file (without the path). +# Name of the generated EJB file (without the path which is specified by +# maven.ejb.build.dir). maven.ejb.final.name = ${maven.final.name}.jar +# Name fo the generated EJB client file (without the path which is specified by +# maven.ejb.build.dir). +maven.ejb.client.final.name = ${maven.final.name}-client.jar + # Location of ejb xml configs - not used atm due to using jar task not ejbjar maven.ejb.descriptordir=${maven.ejb.src}/META-INF @@ -46,3 +51,6 @@ maven.ejb.client.base.excludes=**/*Bean.class,**/*CMP.class,**/*Session.class # Note: Files are relative to build.dir maven.ejb.includes=** maven.ejb.excludes=**/package.html + +# Decide whether a client jar is generated or not. +maven.ejb.client.generate = true diff --git a/ejb/project.xml b/ejb/project.xml index 677930ab..dbc1a9e3 100644 --- a/ejb/project.xml +++ b/ejb/project.xml @@ -2,7 +2,7 @@