You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Pierre-yves motreff <py...@gmail.com> on 2012/01/02 17:05:26 UTC

WebService versioning with maven aar plugin

Hello,

As i need to deploy several version of my WS, I think the best way is to
deploy different WS, like that :

foo-1.0.aar
foo-2.0.aar

This requires to modify the service.xml to have different service name....

In my pom aar name is define with finalName :

<finalName>foo-${version}</finalName>

<aarName>${project.build.finalName}</aarName>

But I want to use also the property ${version} in the service.xml, but
${version} isn't replaced. And i don't find the option to allow/activate
the filtering like we can do with :

<resources>
<resource>
<directory>foo/resources</directory>
<filtering>true</filtering>
</resource>
</resources>

Is there a way to have a service name versioned dynamically ? and not hard
coded :

<service name="foo-1.0"> ...
<service name="foo-2.0"> ...


Thanks in advance!
Regard,

pym

RE: WebService versioning with maven aar plugin

Posted by Martin Gainty <mg...@hotmail.com>.
si 
vous demandez l'inclusion de la version à axis-aar-maven-plugin :java-dev-subscribe@axis.apache.org je peux 
le refactor. .test localement (et soumettre à vous)avec 
de sincères amitiés
Martin 
______________________________________________ 
Note de déni et de confidentialitéCe message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.

 Date: Wed, 4 Jan 2012 09:53:28 +0100
Subject: Re: WebService versioning with maven aar plugin
From: pymotreff@gmail.com
To: java-dev@axis.apache.org

No, I prefer to keep axis2-aar-maven-plugin.
Regards

2012/1/2 Martin Gainty <mg...@hotmail.com>





did you take a look at implementing maven-assembly-plugin 

<build>

<plugin> 

   <groupId>org.apache.maven.plugins</groupId> 

    <artifactId>maven-assembly-plugin</artifactId> 

    <configuration>

         <finalName>finalname-${project.version}</finalName>

    </configuration>

....

 

http://maven.apache.org/plugins/maven-assembly-plugin/assembly-mojo.html

http://stackoverflow.com/questions/1326527/maven-assembly-plugin-custom-jar-filenames


Bon Chance,
Martin 
______________________________________________ 
Note de déni et de confidentialité
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.


 





Date: Mon, 2 Jan 2012 17:05:26 +0100
Subject: WebService versioning with maven aar plugin
From: pymotreff@gmail.com
To: java-dev@axis.apache.org



Hello,


As i need to deploy several version of my WS, I think the best way is to deploy different WS, like that :


foo-1.0.aar
foo-2.0.aar


This requires to modify the service.xml to have different service name....


In my pom aar name is define with finalName : 


<finalName>foo-${version}</finalName>


<aarName>${project.build.finalName}</aarName>


But I want to use also the property ${version} in the service.xml, but ${version} isn't replaced. And i don't find the option to allow/activate the filtering like we can do with :


<resources>
<resource>
<directory>foo/resources</directory>
<filtering>true</filtering>
</resource>
</resources>


Is there a way to have a service name versioned dynamically ? and not hard coded :


<service name="foo-1.0"> ...
<service name="foo-2.0"> ...




Thanks in advance!
Regard,


pym 		 	   		  



 		 	   		  

Re: WebService versioning with maven aar plugin

Posted by Pierre-yves motreff <py...@gmail.com>.
No, I prefer to keep axis2-aar-maven-plugin.

Regards

2012/1/2 Martin Gainty <mg...@hotmail.com>

>  did you take a look at implementing maven-assembly-plugin
> <build>
> <plugin>
>    <groupId>org.apache.maven.plugins</groupId>
>     <artifactId>maven-assembly-plugin</artifactId>
>     <configuration>
>          <finalName>finalname-${project.version}</finalName>
>     </configuration>
> ....
>
> http://maven.apache.org/plugins/maven-assembly-plugin/assembly-mojo.html
>
> http://stackoverflow.com/questions/1326527/maven-assembly-plugin-custom-jar-filenames
>
> Bon Chance,
> Martin
> ______________________________________________
> Note de déni et de confidentialité
>
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
>
>
>
>
>  ------------------------------
> Date: Mon, 2 Jan 2012 17:05:26 +0100
> Subject: WebService versioning with maven aar plugin
> From: pymotreff@gmail.com
> To: java-dev@axis.apache.org
>
>
> Hello,
>
> As i need to deploy several version of my WS, I think the best way is to
> deploy different WS, like that :
>
> foo-1.0.aar
> foo-2.0.aar
>
> This requires to modify the service.xml to have different service name....
>
> In my pom aar name is define with finalName :
>
> <finalName>foo-${version}</finalName>
>
> <aarName>${project.build.finalName}</aarName>
>
> But I want to use also the property ${version} in the service.xml, but
> ${version} isn't replaced. And i don't find the option to allow/activate
> the filtering like we can do with :
>
> <resources>
> <resource>
> <directory>foo/resources</directory>
> <filtering>true</filtering>
> </resource>
> </resources>
>
> Is there a way to have a service name versioned dynamically ? and not hard
> coded :
>
> <service name="foo-1.0"> ...
> <service name="foo-2.0"> ...
>
>
> Thanks in advance!
> Regard,
>
> pym
>

RE: WebService versioning with maven aar plugin

Posted by Martin Gainty <mg...@hotmail.com>.
did you take a look at implementing maven-assembly-plugin 
<build>
<plugin> 
   <groupId>org.apache.maven.plugins</groupId> 
    <artifactId>maven-assembly-plugin</artifactId> 
    <configuration>
         <finalName>finalname-${project.version}</finalName>
    </configuration>
....
 
http://maven.apache.org/plugins/maven-assembly-plugin/assembly-mojo.html
http://stackoverflow.com/questions/1326527/maven-assembly-plugin-custom-jar-filenames

Bon Chance,
Martin 
______________________________________________ 
Note de déni et de confidentialitéCe message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.

 




Date: Mon, 2 Jan 2012 17:05:26 +0100
Subject: WebService versioning with maven aar plugin
From: pymotreff@gmail.com
To: java-dev@axis.apache.org


Hello,


As i need to deploy several version of my WS, I think the best way is to deploy different WS, like that :


foo-1.0.aar
foo-2.0.aar


This requires to modify the service.xml to have different service name....


In my pom aar name is define with finalName : 


<finalName>foo-${version}</finalName>


<aarName>${project.build.finalName}</aarName>


But I want to use also the property ${version} in the service.xml, but ${version} isn't replaced. And i don't find the option to allow/activate the filtering like we can do with :


<resources>
<resource>
<directory>foo/resources</directory>
<filtering>true</filtering>
</resource>
</resources>


Is there a way to have a service name versioned dynamically ? and not hard coded :


<service name="foo-1.0"> ...
<service name="foo-2.0"> ...




Thanks in advance!
Regard,


pym