Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian Java (http://www.linux-archive.org/debian-java/)
-   -   need help with maven helper (http://www.linux-archive.org/debian-java/698768-need-help-maven-helper.html)

Olivier Sallou 08-29-2012 09:07 AM

need help with maven helper
 
Hi,
I need some help with maven helper.
I need to rename the artifact id of the package library.
In pom.xml, artifactId is snappy-java, and I need to rename it to
snappy1.0.3-java (with version 1.0.3-rc3)

What I expect is to get maven data in
/usr/share/maven-repo/org/xerial/snappy/snappy1.0.3-java/

However I fail to do so. I updated maven.rules (see below) but file name
is correct only in /usj.

I tried to patch the pom.xml to set correct artifactid but in this case,
I have a build error when trying to unset patches as maven helper
modifies the pom.xml

Any hint on how I could do that?

Thanks

Olivier

In my maven.rules:
org.xerial.snappy snappy1.0.3-java bundle s/.*/debian/ * *

Package content:
drwxr-xr-x root/root 0 2012-08-29 09:43
./usr/share/maven-repo/org/xerial/snappy/snappy-java/
drwxr-xr-x root/root 0 2012-08-29 09:43
./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/
-rw-r--r-- root/root 1287 2012-08-29 09:43
./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.pom
-rw-r--r-- root/root 23781 2012-08-29 09:43
./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.jar
drwxr-xr-x root/root 0 2012-08-29 09:43
./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/
-rw-r--r-- root/root 1284 2012-08-29 09:43
./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/snappy-java-debian.pom
drwxr-xr-x root/root 0 2012-08-29 09:43 ./usr/share/java/
lrwxrwxrwx root/root 0 2012-08-29 09:43
./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/snappy-java-debian.jar
-> ../1.0.3-rc3/snappy-java-1.0.3-rc3.jar
lrwxrwxrwx root/root 0 2012-08-29 09:43
./usr/share/java/snappy1.0.3-java.jar ->
../maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.jar
....

--
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95

gpg key id: 4096R/326D8438 (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 503DDBCB.5000602@irisa.fr">http://lists.debian.org/503DDBCB.5000602@irisa.fr

Ludovic Claude 08-30-2012 11:12 PM

need help with maven helper
 
Hello,

You should use this rule instead. It's a substitution you want to do,
and the format use is similar to standard Unix sed command.

org.xerial.snappy s/snappy-java/snappy1.0.3-java/ bundle s/.*/debian/ * *

Ludovic

On 08/29/2012 11:07 AM, Olivier Sallou wrote:
> Hi,
> I need some help with maven helper.
> I need to rename the artifact id of the package library.
> In pom.xml, artifactId is snappy-java, and I need to rename it to
> snappy1.0.3-java (with version 1.0.3-rc3)
>
> What I expect is to get maven data in
> /usr/share/maven-repo/org/xerial/snappy/snappy1.0.3-java/
>
> However I fail to do so. I updated maven.rules (see below) but file name
> is correct only in /usj.
>
> I tried to patch the pom.xml to set correct artifactid but in this case,
> I have a build error when trying to unset patches as maven helper
> modifies the pom.xml
>
> Any hint on how I could do that?
>
> Thanks
>
> Olivier
>
> In my maven.rules:
> org.xerial.snappy snappy1.0.3-java bundle s/.*/debian/ * *
>
> Package content:
> drwxr-xr-x root/root 0 2012-08-29 09:43
> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/
> drwxr-xr-x root/root 0 2012-08-29 09:43
> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/
> -rw-r--r-- root/root 1287 2012-08-29 09:43
> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.pom
> -rw-r--r-- root/root 23781 2012-08-29 09:43
> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.jar
> drwxr-xr-x root/root 0 2012-08-29 09:43
> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/
> -rw-r--r-- root/root 1284 2012-08-29 09:43
> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/snappy-java-debian.pom
> drwxr-xr-x root/root 0 2012-08-29 09:43 ./usr/share/java/
> lrwxrwxrwx root/root 0 2012-08-29 09:43
> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/snappy-java-debian.jar
> -> ../1.0.3-rc3/snappy-java-1.0.3-rc3.jar
> lrwxrwxrwx root/root 0 2012-08-29 09:43
> ./usr/share/java/snappy1.0.3-java.jar ->
> ../maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.jar
> ....
>


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 503FF376.4000709@laposte.net">http://lists.debian.org/503FF376.4000709@laposte.net

"olivier.sallou@codeless.fr" 08-31-2012 07:15 AM

need help with maven helper
 
Le 8/31/12 1:12 AM, Ludovic Claude a écrit :
> Hello,
>
> You should use this rule instead. It's a substitution you want to do,
> and the format use is similar to standard Unix sed command.
>
> org.xerial.snappy s/snappy-java/snappy1.0.3-java/ bundle s/.*/debian/ * *
Unfortunatly, this does not work.
My generated pom by maven helper is still like:

^I<modelVersion>4.0.0</modelVersion>
^I<groupId>org.xerial.snappy</groupId>
^I<artifactId>snappy-java</artifactId>
^I<version>1.0.3-rc3</version>
^I<packaging>jar</packaging>
^I
^I<name>Snappy for Java</name>
^I<description>Compression/decompression library</description>
^I<properties>
^I^I<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
^I^I<debian.mavenRules>org.xerial.snappy snappy-java jar 1.0.3-rc3 *
*</debian.mavenRules>
^I^I<debian.originalVersion>1.0.3-rc3</debian.originalVersion>
^I^I<debian.package>libsnappy1.0.3-java</debian.package>
^I</properties>
....

The artifact id is not modified. And files are installed in
/usr/share/maven-repo/org/xerial/snappy/snappy-java/...

Olivier

>
> Ludovic
>
> On 08/29/2012 11:07 AM, Olivier Sallou wrote:
>> Hi,
>> I need some help with maven helper.
>> I need to rename the artifact id of the package library.
>> In pom.xml, artifactId is snappy-java, and I need to rename it to
>> snappy1.0.3-java (with version 1.0.3-rc3)
>>
>> What I expect is to get maven data in
>> /usr/share/maven-repo/org/xerial/snappy/snappy1.0.3-java/
>>
>> However I fail to do so. I updated maven.rules (see below) but file name
>> is correct only in /usj.
>>
>> I tried to patch the pom.xml to set correct artifactid but in this case,
>> I have a build error when trying to unset patches as maven helper
>> modifies the pom.xml
>>
>> Any hint on how I could do that?
>>
>> Thanks
>>
>> Olivier
>>
>> In my maven.rules:
>> org.xerial.snappy snappy1.0.3-java bundle s/.*/debian/ * *
>>
>> Package content:
>> drwxr-xr-x root/root 0 2012-08-29 09:43
>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/
>> drwxr-xr-x root/root 0 2012-08-29 09:43
>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/
>> -rw-r--r-- root/root 1287 2012-08-29 09:43
>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.pom
>> -rw-r--r-- root/root 23781 2012-08-29 09:43
>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.jar
>> drwxr-xr-x root/root 0 2012-08-29 09:43
>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/
>> -rw-r--r-- root/root 1284 2012-08-29 09:43
>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/snappy-java-debian.pom
>> drwxr-xr-x root/root 0 2012-08-29 09:43 ./usr/share/java/
>> lrwxrwxrwx root/root 0 2012-08-29 09:43
>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/snappy-java-debian.jar
>> -> ../1.0.3-rc3/snappy-java-1.0.3-rc3.jar
>> lrwxrwxrwx root/root 0 2012-08-29 09:43
>> ./usr/share/java/snappy1.0.3-java.jar ->
>> ../maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.jar
>> ....
>>
>
>
> --
> gpg key id: 4096R/326D8438 (keyring.debian.org)
> Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 5040648A.60300@codeless.fr">http://lists.debian.org/5040648A.60300@codeless.fr

Ludovic Claude 09-01-2012 10:42 AM

need help with maven helper
 
Hello,

The packaging in Maven is jar, not bundle, so you need to use this value
to get a match:

org.xerial.snappy s/snappy-java/snappy1.0.3-java/ jar s/.*/debian/ * *

Ludovic

On 08/31/2012 09:15 AM, olivier.sallou@codeless.fr wrote:
>
> Le 8/31/12 1:12 AM, Ludovic Claude a écrit :
>> Hello,
>>
>> You should use this rule instead. It's a substitution you want to do,
>> and the format use is similar to standard Unix sed command.
>>
>> org.xerial.snappy s/snappy-java/snappy1.0.3-java/ bundle s/.*/debian/ * *
> Unfortunatly, this does not work.
> My generated pom by maven helper is still like:
>
> ^I<modelVersion>4.0.0</modelVersion>
> ^I<groupId>org.xerial.snappy</groupId>
> ^I<artifactId>snappy-java</artifactId>
> ^I<version>1.0.3-rc3</version>
> ^I<packaging>jar</packaging>
> ^I
> ^I<name>Snappy for Java</name>
> ^I<description>Compression/decompression library</description>
> ^I<properties>
> ^I^I<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> ^I^I<debian.mavenRules>org.xerial.snappy snappy-java jar 1.0.3-rc3 *
> *</debian.mavenRules>
> ^I^I<debian.originalVersion>1.0.3-rc3</debian.originalVersion>
> ^I^I<debian.package>libsnappy1.0.3-java</debian.package>
> ^I</properties>
> ....
>
> The artifact id is not modified. And files are installed in
> /usr/share/maven-repo/org/xerial/snappy/snappy-java/...
>
> Olivier
>
>>
>> Ludovic
>>
>> On 08/29/2012 11:07 AM, Olivier Sallou wrote:
>>> Hi,
>>> I need some help with maven helper.
>>> I need to rename the artifact id of the package library.
>>> In pom.xml, artifactId is snappy-java, and I need to rename it to
>>> snappy1.0.3-java (with version 1.0.3-rc3)
>>>
>>> What I expect is to get maven data in
>>> /usr/share/maven-repo/org/xerial/snappy/snappy1.0.3-java/
>>>
>>> However I fail to do so. I updated maven.rules (see below) but file name
>>> is correct only in /usj.
>>>
>>> I tried to patch the pom.xml to set correct artifactid but in this case,
>>> I have a build error when trying to unset patches as maven helper
>>> modifies the pom.xml
>>>
>>> Any hint on how I could do that?
>>>
>>> Thanks
>>>
>>> Olivier
>>>
>>> In my maven.rules:
>>> org.xerial.snappy snappy1.0.3-java bundle s/.*/debian/ * *
>>>
>>> Package content:
>>> drwxr-xr-x root/root 0 2012-08-29 09:43
>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/
>>> drwxr-xr-x root/root 0 2012-08-29 09:43
>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/
>>> -rw-r--r-- root/root 1287 2012-08-29 09:43
>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.pom
>>> -rw-r--r-- root/root 23781 2012-08-29 09:43
>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.jar
>>> drwxr-xr-x root/root 0 2012-08-29 09:43
>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/
>>> -rw-r--r-- root/root 1284 2012-08-29 09:43
>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/snappy-java-debian.pom
>>> drwxr-xr-x root/root 0 2012-08-29 09:43 ./usr/share/java/
>>> lrwxrwxrwx root/root 0 2012-08-29 09:43
>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/snappy-java-debian.jar
>>> -> ../1.0.3-rc3/snappy-java-1.0.3-rc3.jar
>>> lrwxrwxrwx root/root 0 2012-08-29 09:43
>>> ./usr/share/java/snappy1.0.3-java.jar ->
>>> ../maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.jar
>>> ....
>>>
>>
>>
>> --
>> gpg key id: 4096R/326D8438 (keyring.debian.org)
>> Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438
>
>


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 5041E69E.1040401@laposte.net">http://lists.debian.org/5041E69E.1040401@laposte.net

Ludovic Claude 09-03-2012 06:43 PM

need help with maven helper
 
Hello,

After reading again the original question, I think that it would be
better to keep snappy-java as the artifact id, but pin the version
number to 1.0.3. You would achieve it with this rule:

org.xerial.snappy snappy-java jar s/1.0.3.*/1.0.3/ * *

Ludovic

On 09/01/2012 12:42 PM, Ludovic Claude wrote:
> Hello,
>
> The packaging in Maven is jar, not bundle, so you need to use this value
> to get a match:
>
> org.xerial.snappy s/snappy-java/snappy1.0.3-java/ jar s/.*/debian/ * *
>
> Ludovic
>
> On 08/31/2012 09:15 AM, olivier.sallou@codeless.fr wrote:
>>
>> Le 8/31/12 1:12 AM, Ludovic Claude a écrit :
>>> Hello,
>>>
>>> You should use this rule instead. It's a substitution you want to do,
>>> and the format use is similar to standard Unix sed command.
>>>
>>> org.xerial.snappy s/snappy-java/snappy1.0.3-java/ bundle s/.*/debian/ * *
>> Unfortunatly, this does not work.
>> My generated pom by maven helper is still like:
>>
>> ^I<modelVersion>4.0.0</modelVersion>
>> ^I<groupId>org.xerial.snappy</groupId>
>> ^I<artifactId>snappy-java</artifactId>
>> ^I<version>1.0.3-rc3</version>
>> ^I<packaging>jar</packaging>
>> ^I
>> ^I<name>Snappy for Java</name>
>> ^I<description>Compression/decompression library</description>
>> ^I<properties>
>> ^I^I<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>> ^I^I<debian.mavenRules>org.xerial.snappy snappy-java jar 1.0.3-rc3 *
>> *</debian.mavenRules>
>> ^I^I<debian.originalVersion>1.0.3-rc3</debian.originalVersion>
>> ^I^I<debian.package>libsnappy1.0.3-java</debian.package>
>> ^I</properties>
>> ....
>>
>> The artifact id is not modified. And files are installed in
>> /usr/share/maven-repo/org/xerial/snappy/snappy-java/...
>>
>> Olivier
>>
>>>
>>> Ludovic
>>>
>>> On 08/29/2012 11:07 AM, Olivier Sallou wrote:
>>>> Hi,
>>>> I need some help with maven helper.
>>>> I need to rename the artifact id of the package library.
>>>> In pom.xml, artifactId is snappy-java, and I need to rename it to
>>>> snappy1.0.3-java (with version 1.0.3-rc3)
>>>>
>>>> What I expect is to get maven data in
>>>> /usr/share/maven-repo/org/xerial/snappy/snappy1.0.3-java/
>>>>
>>>> However I fail to do so. I updated maven.rules (see below) but file name
>>>> is correct only in /usj.
>>>>
>>>> I tried to patch the pom.xml to set correct artifactid but in this case,
>>>> I have a build error when trying to unset patches as maven helper
>>>> modifies the pom.xml
>>>>
>>>> Any hint on how I could do that?
>>>>
>>>> Thanks
>>>>
>>>> Olivier
>>>>
>>>> In my maven.rules:
>>>> org.xerial.snappy snappy1.0.3-java bundle s/.*/debian/ * *
>>>>
>>>> Package content:
>>>> drwxr-xr-x root/root 0 2012-08-29 09:43
>>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/
>>>> drwxr-xr-x root/root 0 2012-08-29 09:43
>>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/
>>>> -rw-r--r-- root/root 1287 2012-08-29 09:43
>>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.pom
>>>> -rw-r--r-- root/root 23781 2012-08-29 09:43
>>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.jar
>>>> drwxr-xr-x root/root 0 2012-08-29 09:43
>>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/
>>>> -rw-r--r-- root/root 1284 2012-08-29 09:43
>>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/snappy-java-debian.pom
>>>> drwxr-xr-x root/root 0 2012-08-29 09:43 ./usr/share/java/
>>>> lrwxrwxrwx root/root 0 2012-08-29 09:43
>>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/snappy-java-debian.jar
>>>> -> ../1.0.3-rc3/snappy-java-1.0.3-rc3.jar
>>>> lrwxrwxrwx root/root 0 2012-08-29 09:43
>>>> ./usr/share/java/snappy1.0.3-java.jar ->
>>>> ../maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.jar
>>>> ....
>>>>
>>>
>>>
>>> --
>>> gpg key id: 4096R/326D8438 (keyring.debian.org)
>>> Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438
>>
>>
>
>


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 5044FA4D.30906@laposte.net">http://lists.debian.org/5044FA4D.30906@laposte.net

Olivier Sallou 09-04-2012 07:26 AM

need help with maven helper
 
Le 9/3/12 8:43 PM, Ludovic Claude a écrit :
> Hello,
>
> After reading again the original question, I think that it would be
> better to keep snappy-java as the artifact id, but pin the version
> number to 1.0.3. You would achieve it with this rule:
>
> org.xerial.snappy snappy-java jar s/1.0.3.*/1.0.3/ * *

We (debianmed) gonna keep artifact id different to avoid the "generic"
debian link to be linked to snappy-java.
snappy1.0.3-java must not conflict with snappy-java, we need to use this
specific version (old) for a package.

Your tip worked fine, thanks for your help.
>
> Ludovic
>
> On 09/01/2012 12:42 PM, Ludovic Claude wrote:
>> Hello,
>>
>> The packaging in Maven is jar, not bundle, so you need to use this value
>> to get a match:
>>
>> org.xerial.snappy s/snappy-java/snappy1.0.3-java/ jar s/.*/debian/ * *
>>
>> Ludovic
>>
>> On 08/31/2012 09:15 AM, olivier.sallou@codeless.fr wrote:
>>> Le 8/31/12 1:12 AM, Ludovic Claude a écrit :
>>>> Hello,
>>>>
>>>> You should use this rule instead. It's a substitution you want to do,
>>>> and the format use is similar to standard Unix sed command.
>>>>
>>>> org.xerial.snappy s/snappy-java/snappy1.0.3-java/ bundle s/.*/debian/ * *
>>> Unfortunatly, this does not work.
>>> My generated pom by maven helper is still like:
>>>
>>> ^I<modelVersion>4.0.0</modelVersion>
>>> ^I<groupId>org.xerial.snappy</groupId>
>>> ^I<artifactId>snappy-java</artifactId>
>>> ^I<version>1.0.3-rc3</version>
>>> ^I<packaging>jar</packaging>
>>> ^I
>>> ^I<name>Snappy for Java</name>
>>> ^I<description>Compression/decompression library</description>
>>> ^I<properties>
>>> ^I^I<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>>> ^I^I<debian.mavenRules>org.xerial.snappy snappy-java jar 1.0.3-rc3 *
>>> *</debian.mavenRules>
>>> ^I^I<debian.originalVersion>1.0.3-rc3</debian.originalVersion>
>>> ^I^I<debian.package>libsnappy1.0.3-java</debian.package>
>>> ^I</properties>
>>> ....
>>>
>>> The artifact id is not modified. And files are installed in
>>> /usr/share/maven-repo/org/xerial/snappy/snappy-java/...
>>>
>>> Olivier
>>>
>>>> Ludovic
>>>>
>>>> On 08/29/2012 11:07 AM, Olivier Sallou wrote:
>>>>> Hi,
>>>>> I need some help with maven helper.
>>>>> I need to rename the artifact id of the package library.
>>>>> In pom.xml, artifactId is snappy-java, and I need to rename it to
>>>>> snappy1.0.3-java (with version 1.0.3-rc3)
>>>>>
>>>>> What I expect is to get maven data in
>>>>> /usr/share/maven-repo/org/xerial/snappy/snappy1.0.3-java/
>>>>>
>>>>> However I fail to do so. I updated maven.rules (see below) but file name
>>>>> is correct only in /usj.
>>>>>
>>>>> I tried to patch the pom.xml to set correct artifactid but in this case,
>>>>> I have a build error when trying to unset patches as maven helper
>>>>> modifies the pom.xml
>>>>>
>>>>> Any hint on how I could do that?
>>>>>
>>>>> Thanks
>>>>>
>>>>> Olivier
>>>>>
>>>>> In my maven.rules:
>>>>> org.xerial.snappy snappy1.0.3-java bundle s/.*/debian/ * *
>>>>>
>>>>> Package content:
>>>>> drwxr-xr-x root/root 0 2012-08-29 09:43
>>>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/
>>>>> drwxr-xr-x root/root 0 2012-08-29 09:43
>>>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/
>>>>> -rw-r--r-- root/root 1287 2012-08-29 09:43
>>>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.pom
>>>>> -rw-r--r-- root/root 23781 2012-08-29 09:43
>>>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.jar
>>>>> drwxr-xr-x root/root 0 2012-08-29 09:43
>>>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/
>>>>> -rw-r--r-- root/root 1284 2012-08-29 09:43
>>>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/snappy-java-debian.pom
>>>>> drwxr-xr-x root/root 0 2012-08-29 09:43 ./usr/share/java/
>>>>> lrwxrwxrwx root/root 0 2012-08-29 09:43
>>>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/snappy-java-debian.jar
>>>>> -> ../1.0.3-rc3/snappy-java-1.0.3-rc3.jar
>>>>> lrwxrwxrwx root/root 0 2012-08-29 09:43
>>>>> ./usr/share/java/snappy1.0.3-java.jar ->
>>>>> ../maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.jar
>>>>> ....
>>>>>
>>>>
>>>> --
>>>> gpg key id: 4096R/326D8438 (keyring.debian.org)
>>>> Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438
>>>
>>
>

--
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95

gpg key id: 4096R/326D8438 (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 5045AD28.2060901@irisa.fr">http://lists.debian.org/5045AD28.2060901@irisa.fr

Ludovic Claude 09-06-2012 10:27 PM

need help with maven helper
 
Hello,

If by 'generic' debian link, you mean the link created in
/usr/share/java, you can get around this issue by providing a custom
name for the jar in /usr/share/java (also known as usj in the
maven-*-helper tools).

Update debian/libsnappy-java.poms with this line:

pom.xml --has-package-version --java-lib --usj-name=snappy
--usj-version=1.0.3 --no-usj-versionless

It will create in /usr/share/java the file snappy-1.0.3.jar and nothing
more.

Ludovic

On 09/04/2012 09:26 AM, Olivier Sallou wrote:
>
> Le 9/3/12 8:43 PM, Ludovic Claude a écrit :
>> Hello,
>>
>> After reading again the original question, I think that it would be
>> better to keep snappy-java as the artifact id, but pin the version
>> number to 1.0.3. You would achieve it with this rule:
>>
>> org.xerial.snappy snappy-java jar s/1.0.3.*/1.0.3/ * *
>
> We (debianmed) gonna keep artifact id different to avoid the "generic"
> debian link to be linked to snappy-java.
> snappy1.0.3-java must not conflict with snappy-java, we need to use this
> specific version (old) for a package.
>
> Your tip worked fine, thanks for your help.
>>
>> Ludovic
>>
>> On 09/01/2012 12:42 PM, Ludovic Claude wrote:
>>> Hello,
>>>
>>> The packaging in Maven is jar, not bundle, so you need to use this value
>>> to get a match:
>>>
>>> org.xerial.snappy s/snappy-java/snappy1.0.3-java/ jar s/.*/debian/ * *
>>>
>>> Ludovic
>>>
>>> On 08/31/2012 09:15 AM, olivier.sallou@codeless.fr wrote:
>>>> Le 8/31/12 1:12 AM, Ludovic Claude a écrit :
>>>>> Hello,
>>>>>
>>>>> You should use this rule instead. It's a substitution you want to do,
>>>>> and the format use is similar to standard Unix sed command.
>>>>>
>>>>> org.xerial.snappy s/snappy-java/snappy1.0.3-java/ bundle s/.*/debian/ * *
>>>> Unfortunatly, this does not work.
>>>> My generated pom by maven helper is still like:
>>>>
>>>> ^I<modelVersion>4.0.0</modelVersion>
>>>> ^I<groupId>org.xerial.snappy</groupId>
>>>> ^I<artifactId>snappy-java</artifactId>
>>>> ^I<version>1.0.3-rc3</version>
>>>> ^I<packaging>jar</packaging>
>>>> ^I
>>>> ^I<name>Snappy for Java</name>
>>>> ^I<description>Compression/decompression library</description>
>>>> ^I<properties>
>>>> ^I^I<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>>>> ^I^I<debian.mavenRules>org.xerial.snappy snappy-java jar 1.0.3-rc3 *
>>>> *</debian.mavenRules>
>>>> ^I^I<debian.originalVersion>1.0.3-rc3</debian.originalVersion>
>>>> ^I^I<debian.package>libsnappy1.0.3-java</debian.package>
>>>> ^I</properties>
>>>> ....
>>>>
>>>> The artifact id is not modified. And files are installed in
>>>> /usr/share/maven-repo/org/xerial/snappy/snappy-java/...
>>>>
>>>> Olivier
>>>>
>>>>> Ludovic
>>>>>
>>>>> On 08/29/2012 11:07 AM, Olivier Sallou wrote:
>>>>>> Hi,
>>>>>> I need some help with maven helper.
>>>>>> I need to rename the artifact id of the package library.
>>>>>> In pom.xml, artifactId is snappy-java, and I need to rename it to
>>>>>> snappy1.0.3-java (with version 1.0.3-rc3)
>>>>>>
>>>>>> What I expect is to get maven data in
>>>>>> /usr/share/maven-repo/org/xerial/snappy/snappy1.0.3-java/
>>>>>>
>>>>>> However I fail to do so. I updated maven.rules (see below) but file name
>>>>>> is correct only in /usj.
>>>>>>
>>>>>> I tried to patch the pom.xml to set correct artifactid but in this case,
>>>>>> I have a build error when trying to unset patches as maven helper
>>>>>> modifies the pom.xml
>>>>>>
>>>>>> Any hint on how I could do that?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> Olivier
>>>>>>
>>>>>> In my maven.rules:
>>>>>> org.xerial.snappy snappy1.0.3-java bundle s/.*/debian/ * *
>>>>>>
>>>>>> Package content:
>>>>>> drwxr-xr-x root/root 0 2012-08-29 09:43
>>>>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/
>>>>>> drwxr-xr-x root/root 0 2012-08-29 09:43
>>>>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/
>>>>>> -rw-r--r-- root/root 1287 2012-08-29 09:43
>>>>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.pom
>>>>>> -rw-r--r-- root/root 23781 2012-08-29 09:43
>>>>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.jar
>>>>>> drwxr-xr-x root/root 0 2012-08-29 09:43
>>>>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/
>>>>>> -rw-r--r-- root/root 1284 2012-08-29 09:43
>>>>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/snappy-java-debian.pom
>>>>>> drwxr-xr-x root/root 0 2012-08-29 09:43 ./usr/share/java/
>>>>>> lrwxrwxrwx root/root 0 2012-08-29 09:43
>>>>>> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/snappy-java-debian.jar
>>>>>> -> ../1.0.3-rc3/snappy-java-1.0.3-rc3.jar
>>>>>> lrwxrwxrwx root/root 0 2012-08-29 09:43
>>>>>> ./usr/share/java/snappy1.0.3-java.jar ->
>>>>>> ../maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.jar
>>>>>> ....
>>>>>>
>>>>>
>>>>> --
>>>>> gpg key id: 4096R/326D8438 (keyring.debian.org)
>>>>> Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438
>>>>
>>>
>>
>


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 5049233A.1020902@laposte.net">http://lists.debian.org/5049233A.1020902@laposte.net


All times are GMT. The time now is 03:53 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.