Hi David, I was using it attached as a goal to a phase. Now it works perfectly.
Just a suggestion, is there a way to provide users to generate both the .jar and the .mar from the same pom.xml? I achieved creating both the .jar and .mar by creating a seperate pom.xml to the mar? Thank you very much. Dimuthu. ------------------- www.wso2.com On 1/26/07, David Illsley <[EMAIL PROTECTED]> wrote:
Hi, The mar plugin does define a new packaging type, and if you use that as the packaging type for a module, the installation works correctly for me... see the addressing module in the maven2 branch [1]. How are you using the mar plugin - as a packaging type or attached as a goal to a phase? David [1] https://svn.apache.org/repos/asf/webservices/axis2/branches/java/maven2/modules/addressing/pom.xml On 26/01/07, sumedha rubasinghe <[EMAIL PROTECTED]> wrote: > Hi, > Maven supports following packaging types by default. (pom, jar, > maven-plugin, ejb, war, ear, rar, par) > > From my understanding, If you want to add a new packaging type you need > to write a plugin & inform maven-core of this new packaging type. Only > after that you will be able to use > <packaging>new-packaging-type</packaging> . > > Another thing to note is that you can change the final artifact name > using <finalName/> tag. This should come inside <build/> tag. But this > is not useful in you case, i guess. > /sumedha > > > Dimuthu Leelaratne wrote: > > Hi, > > > > Yes that I changed the name, but I still get the extention change. > > > > [INFO] Installing > > /home/muthulee/Downloads/rampartComp/rampart/trunk/java/modules/rampart-core/target/rampart-core-SNAPSHOT.mar > > > > to > > /home/muthulee/.m2/repository/org/apache/rampart/rampart-core/SNAPSHOT/rampart-core-SNAPSHOT.jar > > > > > > I cannot specify > > > > <packaging>mar</packaging> > > > > Maven doesn't recognize that. > > > > Thanks, > > Dimuthu. > > -------------------- > > www.wso2.com > > > > On 1/26/07, sumedha rubasinghe <[EMAIL PROTECTED]> wrote: > >> Hi Dimuthu, > >> It looks like not only your extension gets changed, but also the > >> artifact name. > >> > >> [INFO] Installing > >> ..../target/rampart-SNAPSHOT.mar > >> to../SNAPSHOT/rampart-core-SNAPSHOT.jar > >> > >> Add -X option (for debug information) to your maven command & check if > >> it leads you any where. > >> > >> > >> Also check values for following elements in your pom.xml. > >> <artifactId>XXXXX</artifactId> > >> <packaging>XXX</packaging> > >> <version>XXXX</version> > >> > >> /sumedha > >> > >> > >> > >> > >> > >> > >> Dimuthu Leelaratne wrote: > >> > Hi devs, > >> > > >> > I am working on Rampart build. I am using axis2-mar-maven-plugin to > >> > create the required ".mar files". The rampart-SNAPSHOT.mar gets > >> > created properly, but in the install phase it changes the name from > >> > "rampart-SNAPSHOT.mar" to "rampart-SNAPSHOT.jar" while copying to the > >> > maven local repository. Here is the log output. > >> > > >> > [INFO] [axis2-mar:mar {execution: default}] > >> > [INFO] Generating mar > >> > > >> /home/muthulee/Downloads/rampartComp/rampart/trunk/java/modules/rampart-core/target/rampart-SNAPSHOT.mar > >> > >> > > >> > [INFO] Building jar: > >> > > >> /home/muthulee/Downloads/rampartComp/rampart/trunk/java/modules/rampart-core/target/rampart-SNAPSHOT.mar > >> > >> > > >> > [INFO] [install:install] > >> > [INFO] Installing > >> > > >> /home/muthulee/Downloads/rampartComp/rampart/trunk/java/modules/rampart-core/target/rampart-SNAPSHOT.mar > >> > >> > > >> > to > >> > > >> /home/muthulee/.m2/repository/org/apache/rampart/rampart-core/SNAPSHOT/rampart-core-SNAPSHOT.jar > >> > >> > > >> > [INFO] > >> > > >> ------------------------------------------------------------------------ > >> > [INFO] BUILD SUCCESSFUL > >> > [INFO] > >> > > >> ------------------------------------------------------------------------ > >> > > >> > I think I am missing something here. Do I have to write a custom > >> > artifact handler in this situation? > >> > > >> > Thanks, > >> > Dimuthu. > >> > ----------------------- > >> > www.wso2.com > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: [EMAIL PROTECTED] > >> > For additional commands, e-mail: [EMAIL PROTECTED] > >> > > >> > > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- David Illsley - IBM Web Services Development --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
