Re: Problem of resolving eclipse swt linux library
Andrew Robinson-5 wrote: BTW, if you plan on using JFace, do not use the libraries from maven, use your own from eclipse. The maven pom files for the uploaded SWT and JFace jars are incompatible. I found it much easier to install my own jars into my local repo than trying to fight the versions that are in the central repositories. Sounds like a good recommendation. I regret using the stuff from central repo. [1] Best Regards, Luke [1] - http://www.nabble.com/Re%3A-Dependency-problem-for-org.eclipse.core%3Aruntime%3A3.3.100-v20070530-p19332764.html -- View this message in context: http://www.nabble.com/Problem-of-resolving-eclipse-swt-linux-library-tp19103219p19332992.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem of resolving eclipse swt linux library
So you are creating a jar with correct dependence classes and run test base on that jar? Not sure how can I do that... would you sure you pom.xml for me to refer to? Andrew Robinson-5 wrote: I used the maven assembly plugin to pull in the correct Jar. I have all 3 jars (linux, Mac and Windows) as provided so that they are there for compilation but they don't get automatically included in the release. You can also have a profile to trigger on the correct current OS, but that will not help you for releases, as you may want to package a windows build on Linux. -Andrew On Tue, Aug 26, 2008 at 1:23 PM, Carfield Yim [EMAIL PROTECTED] wrote: Actually what I like to do is to tell maven to use System.getProperty(user.os) and select the right dependence, is that possible? Carfield Yim wrote: I see... thanks, now I can resolve and download the correct swt library. However, we would like to make the test running with maven correctly for Windows and Linux. How can I tell maven to use correct platform of library? lukewpatterson wrote: These are in the repo groupIdorg.eclipse.swt.gtk.linux/groupId artifactIdx86_64/artifactId [1] groupIdorg.eclipse.swt.gtk.linux/groupId artifactIdx86/artifactId [2] The (groupId/artifactId)s are different than what you had listed. [1] - http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86_64/3.3.0-v3346/ [2] - http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86/3.3.0-v3346/ -- View this message in context: http://www.nabble.com/Problem-of-resolving-eclipse-swt-linux-library-tp19103219p19168597.html Sent from the Maven - Users mailing list archive at Nabble.com. - 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] -- View this message in context: http://www.nabble.com/Problem-of-resolving-eclipse-swt-linux-library-tp19103219p19183049.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem of resolving eclipse swt linux library
My pom is huge, but here are some snippets: ... properties ... eclipse-version3.3.2/eclipse-version /properties ... dependencies ... !-- JFace and SWT: -- dependency groupIdorg.eclipse/groupId artifactIdeclipse-jface/artifactId version${eclipse-version}/version /dependency dependency groupIdorg.eclipse/groupId artifactIdeclipse-equinox-common/artifactId version${eclipse-version}/version /dependency dependency groupIdorg.eclipse/groupId artifactIdeclipse-core-commands/artifactId version${eclipse-version}/version /dependency dependency groupIdorg.eclipse/groupId artifactIdeclipse-osgi/artifactId version${eclipse-version}/version /dependency dependency groupIdorg.eclipse/groupId artifactIdeclipse-ui-workbench/artifactId version${eclipse-version}/version /dependency !-- native SWT jars -- dependency groupIdorg.eclipse/groupId artifactIdswt-gtk-linux-x86/artifactId version${eclipse-version}/version scopeprovided/scope /dependency dependency groupIdorg.eclipse/groupId artifactIdswt-gtk-linux-x86_64/artifactId version${eclipse-version}/version scopeprovided/scope /dependency dependency groupIdorg.eclipse/groupId artifactIdswt-win32/artifactId version${eclipse-version}/version scopeprovided/scope /dependency dependency groupIdorg.eclipse/groupId artifactIdmacosx-swt/artifactId version${eclipse-version}/version scopeprovided/scope /dependency ... plugins ... plugin artifactIdmaven-assembly-plugin/artifactId version2.2-beta-2/version executions execution idmake-jar/id phasepackage/phase goals goalattached/goal /goals configuration attachfalse/attach descriptorSourceDirectorysrc/main/assembly/jar//descriptorSourceDirectory archive manifest mainClassmypackage.MyMainClass/mainClass /manifest /archive /configuration /execution execution idmake-assembly/id phasepackage/phase goals goalattached/goal /goals configuration descriptorSourceDirectorysrc/main/assembly/package//descriptorSourceDirectory /configuration /execution /executions /plugin ... Here is an example of my win32.xml file in the src/main/assembly/package directory: ?xml version=1.0 encoding=UTF-8? assembly xmlns=http://maven.apache.org/POM/4.0.0; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/assembly-1.1.0-SNAPSHOT.xsd; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; idwin32/id formats formatzip/format /formats files file filteredtrue/filtered outputDirectory//outputDirectory sourcesrc/main/assembly/windows/runMyApplication.cmd/source /file file destName${pom.artifactId}-${pom.version}.jar/destName sourcetarget/${pom.artifactId}-${pom.version}-win32.jar/source /file /files /assembly Hope that helps, Andrew On Wed, Aug 27, 2008 at 9:09 AM, Carfield Yim [EMAIL PROTECTED] wrote: So you are creating a jar with correct dependence classes and run test base on that jar? Not sure how can I do that... would you sure you pom.xml for me to refer to? Andrew Robinson-5 wrote: I used the maven assembly plugin to pull in the correct Jar. I have all 3 jars (linux, Mac and Windows) as provided so that they are there for compilation but they don't get automatically included in the release. You can also have a profile to trigger on the correct current OS, but that will not help you for releases, as you may want to package a windows build on Linux. -Andrew On Tue, Aug 26, 2008 at 1:23 PM, Carfield Yim [EMAIL PROTECTED] wrote: Actually what I like to do is to tell maven to use System.getProperty(user.os) and select the right dependence, is that possible? Carfield Yim wrote: I see... thanks, now I can resolve and download the correct swt library. However, we would like to make the test running with maven correctly for Windows and Linux. How can I tell maven to use correct platform of library? lukewpatterson wrote: These are in the repo groupIdorg.eclipse.swt.gtk.linux/groupId artifactIdx86_64/artifactId [1] groupIdorg.eclipse.swt.gtk.linux/groupId artifactIdx86/artifactId [2] The (groupId/artifactId)s are different than what you had listed. [1] - http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86_64/3.3.0-v3346/ [2] - http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86/3.3.0-v3346/ -- View this message in context:
Re: Problem of resolving eclipse swt linux library
Forgot my win32.xml that is in my src/main/assembly/jar folder: ?xml version=1.0 encoding=UTF-8? assembly xmlns=http://maven.apache.org/POM/4.0.0; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/assembly-1.1.0-SNAPSHOT.xsd; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; idwin32/id formats formatjar/format /formats includeBaseDirectoryfalse/includeBaseDirectory dependencySets dependencySet unpacktrue/unpack outputDirectory/outputDirectory /dependencySet dependencySet outputDirectory/outputDirectory unpacktrue/unpack scopeprovided/scope includes includeorg.eclipse:swt-win32/include /includes /dependencySet /dependencySets /assembly On Wed, Aug 27, 2008 at 11:42 AM, Andrew Robinson [EMAIL PROTECTED] wrote: My pom is huge, but here are some snippets: ... properties ... eclipse-version3.3.2/eclipse-version /properties ... dependencies ... !-- JFace and SWT: -- dependency groupIdorg.eclipse/groupId artifactIdeclipse-jface/artifactId version${eclipse-version}/version /dependency dependency groupIdorg.eclipse/groupId artifactIdeclipse-equinox-common/artifactId version${eclipse-version}/version /dependency dependency groupIdorg.eclipse/groupId artifactIdeclipse-core-commands/artifactId version${eclipse-version}/version /dependency dependency groupIdorg.eclipse/groupId artifactIdeclipse-osgi/artifactId version${eclipse-version}/version /dependency dependency groupIdorg.eclipse/groupId artifactIdeclipse-ui-workbench/artifactId version${eclipse-version}/version /dependency !-- native SWT jars -- dependency groupIdorg.eclipse/groupId artifactIdswt-gtk-linux-x86/artifactId version${eclipse-version}/version scopeprovided/scope /dependency dependency groupIdorg.eclipse/groupId artifactIdswt-gtk-linux-x86_64/artifactId version${eclipse-version}/version scopeprovided/scope /dependency dependency groupIdorg.eclipse/groupId artifactIdswt-win32/artifactId version${eclipse-version}/version scopeprovided/scope /dependency dependency groupIdorg.eclipse/groupId artifactIdmacosx-swt/artifactId version${eclipse-version}/version scopeprovided/scope /dependency ... plugins ... plugin artifactIdmaven-assembly-plugin/artifactId version2.2-beta-2/version executions execution idmake-jar/id phasepackage/phase goals goalattached/goal /goals configuration attachfalse/attach descriptorSourceDirectorysrc/main/assembly/jar//descriptorSourceDirectory archive manifest mainClassmypackage.MyMainClass/mainClass /manifest /archive /configuration /execution execution idmake-assembly/id phasepackage/phase goals goalattached/goal /goals configuration descriptorSourceDirectorysrc/main/assembly/package//descriptorSourceDirectory /configuration /execution /executions /plugin ... Here is an example of my win32.xml file in the src/main/assembly/package directory: ?xml version=1.0 encoding=UTF-8? assembly xmlns=http://maven.apache.org/POM/4.0.0; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/assembly-1.1.0-SNAPSHOT.xsd; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; idwin32/id formats formatzip/format /formats files file filteredtrue/filtered outputDirectory//outputDirectory sourcesrc/main/assembly/windows/runMyApplication.cmd/source /file file destName${pom.artifactId}-${pom.version}.jar/destName sourcetarget/${pom.artifactId}-${pom.version}-win32.jar/source /file /files /assembly Hope that helps, Andrew On Wed, Aug 27, 2008 at 9:09 AM, Carfield Yim [EMAIL PROTECTED] wrote: So you are creating a jar with correct dependence classes and run test base on that jar? Not sure how can I do that... would you sure you pom.xml for me to refer to? Andrew Robinson-5 wrote: I used the maven assembly plugin to pull in the correct Jar. I have all 3 jars (linux, Mac and Windows) as provided so that they are there for compilation but they don't get automatically included in the release. You can also have a profile to trigger on the correct current OS, but that will not help you for releases, as you may want to package a windows build on Linux. -Andrew On Tue, Aug 26, 2008 at 1:23 PM, Carfield Yim [EMAIL PROTECTED] wrote: Actually what I like to
Re: Problem of resolving eclipse swt linux library
I see... thanks, now I can resolve and download the correct swt library. However, we would like to make the test running with maven correctly for Windows and Linux. How can I tell maven to use correct platform of library? lukewpatterson wrote: These are in the repo groupIdorg.eclipse.swt.gtk.linux/groupId artifactIdx86_64/artifactId [1] groupIdorg.eclipse.swt.gtk.linux/groupId artifactIdx86/artifactId [2] The (groupId/artifactId)s are different than what you had listed. [1] - http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86_64/3.3.0-v3346/ [2] - http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86/3.3.0-v3346/ -- View this message in context: http://www.nabble.com/Problem-of-resolving-eclipse-swt-linux-library-tp19103219p19168249.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem of resolving eclipse swt linux library
Actually what I like to do is to tell maven to use System.getProperty(user.os) and select the right dependence, is that possible? Carfield Yim wrote: I see... thanks, now I can resolve and download the correct swt library. However, we would like to make the test running with maven correctly for Windows and Linux. How can I tell maven to use correct platform of library? lukewpatterson wrote: These are in the repo groupIdorg.eclipse.swt.gtk.linux/groupId artifactIdx86_64/artifactId [1] groupIdorg.eclipse.swt.gtk.linux/groupId artifactIdx86/artifactId [2] The (groupId/artifactId)s are different than what you had listed. [1] - http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86_64/3.3.0-v3346/ [2] - http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86/3.3.0-v3346/ -- View this message in context: http://www.nabble.com/Problem-of-resolving-eclipse-swt-linux-library-tp19103219p19168597.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem of resolving eclipse swt linux library
I used the maven assembly plugin to pull in the correct Jar. I have all 3 jars (linux, Mac and Windows) as provided so that they are there for compilation but they don't get automatically included in the release. You can also have a profile to trigger on the correct current OS, but that will not help you for releases, as you may want to package a windows build on Linux. -Andrew On Tue, Aug 26, 2008 at 1:23 PM, Carfield Yim [EMAIL PROTECTED] wrote: Actually what I like to do is to tell maven to use System.getProperty(user.os) and select the right dependence, is that possible? Carfield Yim wrote: I see... thanks, now I can resolve and download the correct swt library. However, we would like to make the test running with maven correctly for Windows and Linux. How can I tell maven to use correct platform of library? lukewpatterson wrote: These are in the repo groupIdorg.eclipse.swt.gtk.linux/groupId artifactIdx86_64/artifactId [1] groupIdorg.eclipse.swt.gtk.linux/groupId artifactIdx86/artifactId [2] The (groupId/artifactId)s are different than what you had listed. [1] - http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86_64/3.3.0-v3346/ [2] - http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86/3.3.0-v3346/ -- View this message in context: http://www.nabble.com/Problem-of-resolving-eclipse-swt-linux-library-tp19103219p19168597.html Sent from the Maven - Users mailing list archive at Nabble.com. - 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: Problem of resolving eclipse swt linux library
These are in the repo groupIdorg.eclipse.swt.gtk.linux/groupId artifactIdx86_64/artifactId [1] groupIdorg.eclipse.swt.gtk.linux/groupId artifactIdx86/artifactId [2] The (groupId/artifactId)s are different than what you had listed. [1] - http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86_64/3.3.0-v3346/ [2] - http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86/3.3.0-v3346/ -- View this message in context: http://www.nabble.com/Problem-of-resolving-eclipse-swt-linux-library-tp19103219p19106859.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem of resolving eclipse swt linux library
BTW, if you plan on using JFace, do not use the libraries from maven, use your own from eclipse. The maven pom files for the uploaded SWT and JFace jars are incompatible. I found it much easier to install my own jars into my local repo than trying to fight the versions that are in the central repositories. On Fri, Aug 22, 2008 at 2:12 AM, Carfield Yim [EMAIL PROTECTED] wrote: I try to add eclipse swt linux library to my project. Thus, I add following library to the pom.xml dependency groupIdorg.eclipse.swt/groupId artifactIdorg.eclipse.swt.gtk.linux.x86_64/artifactId version3.3.0-v3346/version scopeprovided/scope /dependency dependency groupIdorg.eclipse.swt/groupId artifactIdorg.eclipse.swt.gtk.linux.x86/artifactId version3.3.0-v3346/version scopeprovided/scope /dependency However, maven complaint cannot be find Missing: -- 1) org.eclipse.swt:org.eclipse.swt.gtk.linux.x86:jar:3.3.0-v3346 However, when I check maven repo, it is there - http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86_64/ Anyone know what is the problem? I have tried to use version 3.30 as win32 does, but it failed also, any idea? -- View this message in context: http://www.nabble.com/Problem-of-resolving-eclipse-swt-linux-library-tp19103219p19103219.html Sent from the Maven - Users mailing list archive at Nabble.com. - 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]