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-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/503ff376.4000...@laposte.net