Hi I wrote my own plugin (built on ideas from the native plugin and using a slightly patched version of the cpp-tasks. Its description in short:
This plugin for Maven allows you to compile native code (c++, c and fortran) on a number of different architectures (Linux, Windows, Solaris, ...) and with a number of different compilers (g++, Microsoft Visual C++, ...) The output produced is wrapped up in Native Archive files (.nar) some of which are machine independent, while others are machine-and-compiler specific. These nar files can be published on a maven server. Other nar projects may specify dependencies on these nar files. Nar files get downloaded, unwrapped and installed in the local repository, just like jar files are (apart from the unwrapping). I have not tested this with any multiproject goals, so I have no idea how it works out. It also still has some problems with static and dynamic lib naming on Windows since the .lib file will end up with the same name, but apart from that you are welcome to try it out if you wish. Let me know if I should make it available. Regards Mark Donszelmann Stanford Linear Accelerator Center -----Original Message----- From: Deblauwe, Wim [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 12:14 AM To: Maven Users List (E-mail) Subject: Multiple output targets Hi, we are converting to maven for our whole build process, not only for java modules, but also for dlls. I currently export a .mak file from Visual Studio and call this via a bat file from a custom goal in maven. I also created a custom install/deploy goal: <goal name="cmodule:build:release:install" description="Install a Release version on the local repository"> <attainGoal name="cmodule:build:release"/> <copy todir="${maven.repo.local}/${pom.groupId}/${maven.multiproject.type}s/${pom. currentVersion}"> <fileset dir="${maven.build.dir}/Release"> <include name="*.${maven.multiproject.type}"/> </fileset> </copy> </goal> This is all very nice, but now I need to get the dll and the lib file in the repository. I can ofcourse write some custom ant to copy also the .lib, but then I can no longer make use of the ${maven.multiproject.type}, since only 1 type should be in there. How have others solved this problem or am I all alone at trying to do this? Any recommendations? regards, Wim Ing. Wim Deblauwe Software Development Engineer BarcoView - Medical Imaging Systems President Kennedypark 35 B-8500 Kortrijk, Belgium Tel. +32 56 233 985 Fax +32 56 233 457 www.barco.com <http://www.barco.com/> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> - - - - - - - DISCLAIMER- - - - - - - - Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liablility for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
