You can use mvn help:active-profiles to help resolve your problems with profiles. It will show you which profiles have been activated.
Probably both profiles are being activated for some reason. Michael -----Original Message----- From: Bhupendra Bhardwaj [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 12, 2006 11:16 AM To: users@maven.apache.org Subject: Re: m2 profiles: pom with os specific (and native) dependencies Hi, could you resolve your problem. I am in similar situation, so you may be helpful for me. And in the repo1.maven.org the swt for win32 is there, but didn't find the swt for linux in that repository. Can you tell me which repository has the swt for linux? I was thinking if the runtime binary (zip/tar) files from eclipse cvs repository can be downloaded instead of downloading each plugin. I have those two questions. if you can give me your input, that will be very helpful Thanks, Bhupendra Joerg Hohwiller wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi there, > > I am using SWT in my maven project. Now I have two major problems: > > 1. There are different JARs required depending on the OS: > swt-win32 for Windows and swt-linux-gtk for linux, etc. > Now I tried to definie these using profiles: > > <profiles> > <profile> > <id>linux</id> > <activation> > <os> > <family>Linux</family> > </os> > </activation> > <dependencies> > <dependency> > <groupId>swt</groupId> > <artifactId>swt-linux-gtk</artifactId> > <version>3.2.1</version> > <scope>compile</scope> > </dependency> > </dependencies> > </profile> > <profile> > <id>windows</id> > <activation> > <os> > <family>Windows</family> > </os> > </activation> > <dependencies> > <dependency> > <groupId>swt</groupId> > <artifactId>swt-win32</artifactId> > <version>3.2.1</version> > <scope>compile</scope> > </dependency> > </dependencies> > </profile> > </profiles> > > when I do "mvn eclipse:eclipse" then both win32 and linux-gtk JARs are > added to > the classpath. Is this a bug or did I get something wrong? > > 2. SWT also requires native libraries (dll/so files). Is there a proper > way how > to put native libs into a repository and define them as dependency? > > Thank you very much... > Regards > Jörg > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.5 (GNU/Linux) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFFbf7GmPuec2Dcv/8RAo/0AJ9+ccQZPUvDdPwStNnX8SoMqqlErgCfVQdA > 7zBeKSLQKMsjWFRvu0AxlvQ= > =JN8X > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/m2-profiles%3A-pom-with-os-specific-%28and-native%29-dependencies-tf2727975s177.html#a7837376 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ============================================================ The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any reproduction, dissemination or distribution of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Tellabs ============================================================ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]