RE: Creating a dar archive
You need to create a new packaging type. See http://stackoverflow.com/questions/1427722/how-do-i-create-a-new-packagi ng-type-for-maven Justin -Original Message- From: nsowatsk [mailto:nsowa...@cisco.com] Sent: Tuesday, October 27, 2009 8:53 AM To: Maven Users List Subject: Creating a dar archive Hi all I would like to use Maven to create a new kind of archive. I want this new archive to be called a dar file. I want it to work the same in all other respects as jars/wars/ears, so it is really just the name that differs. As a first stab at this I have created a DARMojo that extends AbstractFromDependenciesMojo and made changes like: protected static File getJarFile(File basedir, String finalName) { return new File(basedir, finalName + .dar); } And that's pretty much it. BUT, I get this problem: Installing xxx/yyy-0.0.1-SNAPSHOT.dar to xxx/0.0.1-SNAPSHOT/yyy-0.0.1-SNAPSHOT.jar Where the dar file that I have created is being installed as a jar file :-/ So, any ideas about how I can work around this please? Many thanks Nathan -- Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG XMP - +34-638-083-675 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Creating a dar archive
Thank you very much :-) I got: [WARNING] *** [WARNING] Deprecation Alert: [WARNING] No mojo descriptors were found in this project which has a packaging type of maven-plugin. [WARNING] In future versions of the plugin tools, this will fail the build. [WARNING] If this project is an archetype, change the packaging type from maven-plugin to maven-archetype. [WARNING] [WARNING] [WARNING] The idea works as advertised, but I have a small twist (I guess) as I also wanted to include all of the dependencies in the dar file, so I think that I need to add some other code also. I'll do that and report back. Thanks Nathan On 27/10/2009 16:21, Edelson, Justin justin.edel...@mtvstaff.com wrote: You need to create a new packaging type. See http://stackoverflow.com/questions/1427722/how-do-i-create-a-new-packagi ng-type-for-maven Justin -Original Message- From: nsowatsk [mailto:nsowa...@cisco.com] Sent: Tuesday, October 27, 2009 8:53 AM To: Maven Users List Subject: Creating a dar archive Hi all I would like to use Maven to create a new kind of archive. I want this new archive to be called a dar file. I want it to work the same in all other respects as jars/wars/ears, so it is really just the name that differs. As a first stab at this I have created a DARMojo that extends AbstractFromDependenciesMojo and made changes like: protected static File getJarFile(File basedir, String finalName) { return new File(basedir, finalName + .dar); } And that's pretty much it. BUT, I get this problem: Installing xxx/yyy-0.0.1-SNAPSHOT.dar to xxx/0.0.1-SNAPSHOT/yyy-0.0.1-SNAPSHOT.jar Where the dar file that I have created is being installed as a jar file :-/ So, any ideas about how I can work around this please? Many thanks Nathan -- Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG XMP - +34-638-083-675 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Creating a dar archive
It looks like your DARMojo class isn't in this project or that it doesn't have the correct annotations. -Original Message- From: nsowatsk [mailto:nsowa...@cisco.com] Sent: Tuesday, October 27, 2009 9:59 AM To: Maven Users List Subject: Re: Creating a dar archive Thank you very much :-) I got: [WARNING] *** [WARNING] Deprecation Alert: [WARNING] No mojo descriptors were found in this project which has a packaging type of maven-plugin. [WARNING] In future versions of the plugin tools, this will fail the build. [WARNING] If this project is an archetype, change the packaging type from maven-plugin to maven-archetype. [WARNING] [WARNING] [WARNING] The idea works as advertised, but I have a small twist (I guess) as I also wanted to include all of the dependencies in the dar file, so I think that I need to add some other code also. I'll do that and report back. Thanks Nathan On 27/10/2009 16:21, Edelson, Justin justin.edel...@mtvstaff.com wrote: You need to create a new packaging type. See http://stackoverflow.com/questions/1427722/how-do-i-create-a-new-packa gi ng-type-for-maven Justin -Original Message- From: nsowatsk [mailto:nsowa...@cisco.com] Sent: Tuesday, October 27, 2009 8:53 AM To: Maven Users List Subject: Creating a dar archive Hi all I would like to use Maven to create a new kind of archive. I want this new archive to be called a dar file. I want it to work the same in all other respects as jars/wars/ears, so it is really just the name that differs. As a first stab at this I have created a DARMojo that extends AbstractFromDependenciesMojo and made changes like: protected static File getJarFile(File basedir, String finalName) { return new File(basedir, finalName + .dar); } And that's pretty much it. BUT, I get this problem: Installing xxx/yyy-0.0.1-SNAPSHOT.dar to xxx/0.0.1-SNAPSHOT/yyy-0.0.1-SNAPSHOT.jar Where the dar file that I have created is being installed as a jar file :-/ So, any ideas about how I can work around this please? Many thanks Nathan -- Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG XMP - +34-638-083-675 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Creating a dar archive
That's right. It wasn't. Just for the purposes of the new type per se I didn't need another mojo if all I wanted was the default behaviour. Of course, since I actually want to copy all of the dependencies to put them into the archive, I think that I do need my own Mojo, so I am writing that now :-) Thanks Nathan On 27/10/2009 17:01, Edelson, Justin justin.edel...@mtvstaff.com wrote: It looks like your DARMojo class isn't in this project or that it doesn't have the correct annotations. -Original Message- From: nsowatsk [mailto:nsowa...@cisco.com] Sent: Tuesday, October 27, 2009 9:59 AM To: Maven Users List Subject: Re: Creating a dar archive Thank you very much :-) I got: [WARNING] *** [WARNING] Deprecation Alert: [WARNING] No mojo descriptors were found in this project which has a packaging type of maven-plugin. [WARNING] In future versions of the plugin tools, this will fail the build. [WARNING] If this project is an archetype, change the packaging type from maven-plugin to maven-archetype. [WARNING] [WARNING] [WARNING] The idea works as advertised, but I have a small twist (I guess) as I also wanted to include all of the dependencies in the dar file, so I think that I need to add some other code also. I'll do that and report back. Thanks Nathan On 27/10/2009 16:21, Edelson, Justin justin.edel...@mtvstaff.com wrote: You need to create a new packaging type. See http://stackoverflow.com/questions/1427722/how-do-i-create-a-new-packa gi ng-type-for-maven Justin -Original Message- From: nsowatsk [mailto:nsowa...@cisco.com] Sent: Tuesday, October 27, 2009 8:53 AM To: Maven Users List Subject: Creating a dar archive Hi all I would like to use Maven to create a new kind of archive. I want this new archive to be called a dar file. I want it to work the same in all other respects as jars/wars/ears, so it is really just the name that differs. As a first stab at this I have created a DARMojo that extends AbstractFromDependenciesMojo and made changes like: protected static File getJarFile(File basedir, String finalName) { return new File(basedir, finalName + .dar); } And that's pretty much it. BUT, I get this problem: Installing xxx/yyy-0.0.1-SNAPSHOT.dar to xxx/0.0.1-SNAPSHOT/yyy-0.0.1-SNAPSHOT.jar Where the dar file that I have created is being installed as a jar file :-/ So, any ideas about how I can work around this please? Many thanks Nathan -- Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG XMP - +34-638-083-675 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Creating a dar archive
I should further explain that I want the behaviour of the ear Mojo, with the ability to filter etc. If there is a non-coding way to do that, please let me know. So, what I want is to create a dar file that contains the files from a filtered list of the transitive dependencies in the various poms. Thanks Nathan On 27/10/2009 17:01, Edelson, Justin justin.edel...@mtvstaff.com wrote: It looks like your DARMojo class isn't in this project or that it doesn't have the correct annotations. -Original Message- From: nsowatsk [mailto:nsowa...@cisco.com] Sent: Tuesday, October 27, 2009 9:59 AM To: Maven Users List Subject: Re: Creating a dar archive Thank you very much :-) I got: [WARNING] *** [WARNING] Deprecation Alert: [WARNING] No mojo descriptors were found in this project which has a packaging type of maven-plugin. [WARNING] In future versions of the plugin tools, this will fail the build. [WARNING] If this project is an archetype, change the packaging type from maven-plugin to maven-archetype. [WARNING] [WARNING] [WARNING] The idea works as advertised, but I have a small twist (I guess) as I also wanted to include all of the dependencies in the dar file, so I think that I need to add some other code also. I'll do that and report back. Thanks Nathan On 27/10/2009 16:21, Edelson, Justin justin.edel...@mtvstaff.com wrote: You need to create a new packaging type. See http://stackoverflow.com/questions/1427722/how-do-i-create-a-new-packa gi ng-type-for-maven Justin -Original Message- From: nsowatsk [mailto:nsowa...@cisco.com] Sent: Tuesday, October 27, 2009 8:53 AM To: Maven Users List Subject: Creating a dar archive Hi all I would like to use Maven to create a new kind of archive. I want this new archive to be called a dar file. I want it to work the same in all other respects as jars/wars/ears, so it is really just the name that differs. As a first stab at this I have created a DARMojo that extends AbstractFromDependenciesMojo and made changes like: protected static File getJarFile(File basedir, String finalName) { return new File(basedir, finalName + .dar); } And that's pretty much it. BUT, I get this problem: Installing xxx/yyy-0.0.1-SNAPSHOT.dar to xxx/0.0.1-SNAPSHOT/yyy-0.0.1-SNAPSHOT.jar Where the dar file that I have created is being installed as a jar file :-/ So, any ideas about how I can work around this please? Many thanks Nathan -- Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG XMP - +34-638-083-675 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org