You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Jaroslav Tulach (Jira)" <ji...@apache.org> on 2020/07/01 15:37:00 UTC

[jira] [Commented] (NETBEANSINFRA-12) NetBeans Platform Cluster pom.xml has broken dependencies!

    [ https://issues.apache.org/jira/browse/NETBEANSINFRA-12?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17149522#comment-17149522 ] 

Jaroslav Tulach commented on NETBEANSINFRA-12:
----------------------------------------------

I've just tried to use the 12.0 Maven artifacts and it doesn't work. Try following pom:
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.apidesign.test</groupId>
    <artifactId>VerifyHtmlUI</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>nbm-application</packaging>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>8</maven.compiler.source>
        <maven.compiler.target>8</maven.compiler.target>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.netbeans.cluster</groupId>
            <artifactId>platform</artifactId>
            <version>RELEASE120</version>
            <type>pom</type>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.netbeans.utilities</groupId>
                <artifactId>nbm-maven-plugin</artifactId>
                <version>4.3</version>
                <extensions>true</extensions>
                <configuration>
                    <brandingToken>test</brandingToken>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
{code}
e.g. to build an empty project with just {{org.netbeans.cluster:platform:RELEASE12}} - it doesn't work:
{code}
Failed to execute goal on project VerifyHtmlUI: Could not resolve dependencies for project org.apidesign.test:VerifyHtmlUI:nbm-application:1.0-SNAPSHOT: The following artifacts could not be resolved: org.ow2.asm:asm-7.2:jar:7.2, org.ow2.asm:asm-commons-7.2:jar:7.2, org.ow2.asm:asm-tree-7.2:jar:7.2, org.netbeans.html:net-java-html-boot-fx:jar:1.7, org.netbeans.html:net-java-html-boot-script:jar:1.7, org.netbeans.html:net-java-html-boot:jar:1.7, org.netbeans.html:net-java-html-geo:jar:1.7, org.netbeans.html:net-java-html-json:jar:1.7, org.netbeans.html:net-java-html-sound:jar:1.7, org.netbeans.html:net-java-html:jar:1.7, commons-io:org-apache-commons-io:jar:2.6, org.netbeans.html:org-netbeans-html-ko4j:jar:1.7, org.netbeans.html:org-netbeans-html-xhr4j:jar:1.7: Failure to find org.ow2.asm:asm-7.2:jar:7.2 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
{code}

Can we please start to treat this seriously and fix it before 12.0-u1 Maven artifacts are out?

> NetBeans Platform Cluster pom.xml has broken dependencies!
> ----------------------------------------------------------
>
>                 Key: NETBEANSINFRA-12
>                 URL: https://issues.apache.org/jira/browse/NETBEANSINFRA-12
>             Project: Apache NetBeans Infra
>          Issue Type: Bug
>          Components: MU - Apache NetBeans nb repository plugin
>            Reporter: Jaroslav Tulach
>            Assignee: Eric Barboni
>            Priority: Blocker
>              Labels: pull-request-available
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> While working on https://github.com/apache/netbeans/pull/1738 I realized that the Maven name given to org.netbeans.external:net.java.html:1.7 is wrong and it needlessly complicates the integration with rest of the utilities that rely on upstream org.netbeans.html:net.java.html:1.7 name.
> There is a code that tries to {{findExternal}} in Maven Utilities module:
> https://github.com/apache/netbeans-mavenutils-nb-repository-plugin/blob/master/src/main/java/org/apache/netbeans/nbm/repository/PopulateRepositoryMojo.java#L426
> However it is not yet implemented. Anyway, many of our OSGi bundles come from Maven central and they should be referenced with their real Maven co-ordinates.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists