axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sumedha rubasinghe <sume...@wso2.com>
Subject Re: [Axis2]Using axis2-mar-maven-plugin
Date Fri, 26 Jan 2007 05:38:52 GMT
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 <sumedha@wso2.com> 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: axis-dev-unsubscribe@ws.apache.org
>> > For additional commands, e-mail: axis-dev-help@ws.apache.org
>> >
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-dev-help@ws.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message