Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipse-dev] Using SWT with pure Maven (non OSGi / RCP / plug-in)

Thanks Alex for the reply.

Opened: https://bugs.eclipse.org/bugs/show_bug.cgi?id=570685

On Wed, Jan 27, 2021 at 12:39 PM Aleksandar Kurtakov
<akurtako@xxxxxxxxxx> wrote:
>
> Please open a bug report. The pom.xml file contains osgi.platform which nothing provides. I see that old versions like had that used as placeholder to add all swt fragments as a dependency https://repo1.maven.org/maven2/org/eclipse/platform/org.eclipse.swt/3.105.2/org.eclipse.swt-3.105.2.pom so my guess is generator broke (probably doesn't cope will with changes in architectures and has them hardcoded).
>
> On Wed, Jan 27, 2021 at 1:01 PM Lars Vogel <lars.vogel@xxxxxxxxxxx> wrote:
>>
>> Hi,
>>
>> Since a few releases we are publishing our build artifacts to Maven central.
>>
>> Does anyone know how successfully use SWT in a pure Maven build? If I
>> try I get multiple errors (see below):
>>
>> Build file:
>> ------
>> <project xmlns="http://maven.apache.org/POM/4.0.0";
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> https://maven.apache.org/xsd/maven-4.0.0.xsd";>
>> <modelVersion>4.0.0</modelVersion>
>> <groupId>com.vogella</groupId>
>> <artifactId>com.vogella.test</artifactId>
>> <version>0.0.1-SNAPSHOT</version>
>>
>> <properties>
>> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>> <maven.compiler.source>11</maven.compiler.source>
>> <maven.compiler.target>11</maven.compiler.target>
>> </properties>
>>
>>
>> <!--2 -->
>> <dependencies>
>> <dependency>
>> <groupId>org.eclipse.platform</groupId>
>> <artifactId>org.eclipse.swt</artifactId>
>> <version>3.115.100</version>
>> </dependency>
>>
>> <!-- https://mvnrepository.com/artifact/org.eclipse.platform/org.eclipse.swt.gtk.linux.x86_64
>> -->
>> <dependency>
>> <groupId>org.eclipse.platform</groupId>
>> <artifactId>org.eclipse.swt.gtk.linux.x86_64</artifactId>
>> <version>3.115.100</version>
>> </dependency>
>>
>> </dependencies>
>> </project>
>> -------
>>
>> Errror I get with "mvn clean verify".
>>
>> [WARNING] The POM for
>> org.eclipse.platform:org.eclipse.swt:jar:3.115.100 is invalid,
>> transitive dependencies (if any) will not be available, enable debug
>> logging for more details
>> [WARNING] The POM for org.eclipse.platform:org.eclipse.swt:jar:3.105.3
>> is invalid, transitive dependencies (if any) will not be available,
>> enable debug logging for more details
>> [WARNING] The POM for org.eclipse.platform:org.eclipse.swt:jar:3.106.0
>> is invalid, transitive dependencies (if any) will not be available,
>> enable debug logging for more details
>> [WARNING] The POM for org.eclipse.platform:org.eclipse.swt:jar:3.106.1
>> is invalid, transitive dependencies (if any) will not be available,
>> enable debug logging for more details
>> [WARNING] The POM for org.eclipse.platform:org.eclipse.swt:jar:3.106.2
>> is invalid, transitive dependencies (if any) will not be available,
>> enable debug logging for more details
>> [WARNING] The POM for org.eclipse.platform:org.eclipse.swt:jar:3.106.3
>> is invalid, transitive dependencies (if any) will not be available,
>> enable debug logging for more details
>> [WARNING] The POM for org.eclipse.platform:org.eclipse.swt:jar:3.107.0
>> is invalid, transitive dependencies (if any) will not be available,
>> enable debug logging for more details
>> [WARNING] The POM for org.eclipse.platform:org.eclipse.swt:jar:3.108.0
>> is invalid, transitive dependencies (if any) will not be available,
>> enable debug logging for more details
>> [WARNING] The POM for org.eclipse.platform:org.eclipse.swt:jar:3.109.0
>> is invalid, transitive dependencies (if any) will not be available,
>> enable debug logging for more details
>> [WARNING] The POM for org.eclipse.platform:org.eclipse.swt:jar:3.110.0
>> is invalid, transitive dependencies (if any) will not be available,
>> enable debug logging for more details
>> [WARNING] The POM for org.eclipse.platform:org.eclipse.swt:jar:3.111.0
>> is invalid, transitive dependencies (if any) will not be available,
>> enable debug logging for more details
>> [WARNING] The POM for org.eclipse.platform:org.eclipse.swt:jar:3.112.0
>> is invalid, transitive dependencies (if any) will not be available,
>> enable debug logging for more details
>> [WARNING] The POM for org.eclipse.platform:org.eclipse.swt:jar:3.113.0
>> is invalid, transitive dependencies (if any) will not be available,
>> enable debug logging for more details
>> [WARNING] The POM for org.eclipse.platform:org.eclipse.swt:jar:3.114.0
>> is invalid, transitive dependencies (if any) will not be available,
>> enable debug logging for more details
>> [WARNING] The POM for
>> org.eclipse.platform:org.eclipse.swt:jar:3.114.100 is invalid,
>> transitive dependencies (if any) will not be available, enable debug
>> logging for more details
>> [WARNING] The POM for org.eclipse.platform:org.eclipse.swt:jar:3.115.0
>> is invalid, transitive dependencies (if any) will not be available,
>> enable debug logging for more details
>> [INFO] ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Total time:  0.307 s
>> [INFO] Finished at: 2021-01-27T11:57:54+01:00
>> [INFO] ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal on project com.vogella.junit5: Could
>> not resolve dependencies for project
>> com.vogella:com.vogella.junit5:jar:0.0.1-SNAPSHOT: Failed to collect
>> dependencies at
>> org.eclipse.platform:org.eclipse.swt.gtk.linux.x86_64:jar:3.115.100 ->
>> org.eclipse.platform:org.eclipse.swt:jar:3.105.2 ->
>> org.eclipse.platform:org.eclipse.swt.gtk.linux.aarch64:jar:[3.105.2,3.105.2]:
>>
>> Best regards, Lars
>>
>> --
>> Eclipse Platform project co-lead
>> CEO vogella GmbH
>>
>> Haindaalwisch 17a, 22395 Hamburg
>> Amtsgericht Hamburg: HRB 127058
>> Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
>> USt-IdNr.: DE284122352
>> Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx, Web: http://www.vogella.com
>> _______________________________________________
>> eclipse-dev mailing list
>> eclipse-dev@xxxxxxxxxxx
>> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/eclipse-dev
>
>
>
> --
> Alexander Kurtakov
> Red Hat Eclipse Team
> _______________________________________________
> eclipse-dev mailing list
> eclipse-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/eclipse-dev



-- 
Eclipse Platform project co-lead
CEO vogella GmbH

Haindaalwisch 17a, 22395 Hamburg
Amtsgericht Hamburg: HRB 127058
Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
USt-IdNr.: DE284122352
Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx, Web: http://www.vogella.com


Back to the top