RE: maven.jar.includes could not work?
No, the jar plugin is ok, the maven.jar.incluse is set latter. The problem was that I set when building the main jar the explude path, and when I tried to set the filters for the second jar, the exclude path cannot be set with only with . Now it works :) Thanks for help. -Original Message- From: Eric Giguere [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 23, 2004 9:27 AM To: Maven Users List Subject: Re: maven.jar.includes could not work? Hello I think that the support for the include property in the jar plugin was lost during a merge for version 1.6 of the plugin, its a feature I've submitted earlier and it got lost. Check in the plugin.jelly file around the use of the jar tag, you should see in the jar:jar goal: Replace this by: This will fix the problem. Hope it helps Eric. Adrian Tarau wrote: >Hmmm, it doesn't work. > >I use it like this: in a postGoal jar:jar I want to call again the jar:jar >goal with some properties changed to create another jar. For that I must >changed maven.jar.includes and maven.jar.excludes to put a different classes >in this second jar. > > > > > value="${pom.artifactId}-j2ee-${pom.currentVersion}"/> >Building J2EE Notification JAR: ${maven.final.name} > > > > > > > >and > > > value="${notification.j2ee.includes}"/> > > > > > >-Original Message- >From: Brett Porter [mailto:[EMAIL PROTECTED] >Sent: Monday, November 22, 2004 5:25 PM >To: Maven Users List >Subject: Re: maven.jar.includes could not work? > >Depending on when you are calling that, you may need to use > >value="com/xxx/yyy/**" /> > >- Brett > > >On Mon, 22 Nov 2004 17:21:46 -0500, Adrian Tarau ><[EMAIL PROTECTED]> wrote: > > >>Hi, >> >>I want to change maven.jar.includes from build.xml and I set the include >>pattern but the jar doesn't have any class inside(only the manifest). >> >>The pattern is >> >>Thanks. >> >> >> >> > >- >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]
Re: maven.jar.includes could not work?
Hello I think that the support for the include property in the jar plugin was lost during a merge for version 1.6 of the plugin, its a feature I've submitted earlier and it got lost. Check in the plugin.jelly file around the use of the jar tag, you should see in the jar:jar goal: jarfile="${maven.build.dir}/${maven.final.name}.jar" basedir="${maven.build.dest}" index="${maven.jar.index}" compress="${maven.jar.compress}" excludes="${maven.jar.excludes}"> Replace this by: This will fix the problem. Hope it helps Eric. Adrian Tarau wrote: Hmmm, it doesn't work. I use it like this: in a postGoal jar:jar I want to call again the jar:jar goal with some properties changed to create another jar. For that I must changed maven.jar.includes and maven.jar.excludes to put a different classes in this second jar. Building J2EE Notification JAR: ${maven.final.name} and -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Monday, November 22, 2004 5:25 PM To: Maven Users List Subject: Re: maven.jar.includes could not work? Depending on when you are calling that, you may need to use - Brett On Mon, 22 Nov 2004 17:21:46 -0500, Adrian Tarau <[EMAIL PROTECTED]> wrote: Hi, I want to change maven.jar.includes from build.xml and I set the include pattern but the jar doesn't have any class inside(only the manifest). The pattern is Thanks. - 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]
RE: maven.jar.includes could not work?
Hmmm, it doesn't work. I use it like this: in a postGoal jar:jar I want to call again the jar:jar goal with some properties changed to create another jar. For that I must changed maven.jar.includes and maven.jar.excludes to put a different classes in this second jar. Building J2EE Notification JAR: ${maven.final.name} and -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Monday, November 22, 2004 5:25 PM To: Maven Users List Subject: Re: maven.jar.includes could not work? Depending on when you are calling that, you may need to use - Brett On Mon, 22 Nov 2004 17:21:46 -0500, Adrian Tarau <[EMAIL PROTECTED]> wrote: > Hi, > > I want to change maven.jar.includes from build.xml and I set the include > pattern but the jar doesn't have any class inside(only the manifest). > > The pattern is > > Thanks. > > - 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]
Re: maven.jar.includes could not work?
Depending on when you are calling that, you may need to use - Brett On Mon, 22 Nov 2004 17:21:46 -0500, Adrian Tarau <[EMAIL PROTECTED]> wrote: > Hi, > > I want to change maven.jar.includes from build.xml and I set the include > pattern but the jar doesn't have any class inside(only the manifest). > > The pattern is > > Thanks. > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven.jar.includes could not work?
Hi, I want to change maven.jar.includes from build.xml and I set the include pattern but the jar doesn't have any class inside(only the manifest). The pattern is Thanks.