[jboss-jira] [JBoss JIRA] (WFLY-11265) wildfly-feature-pack -- Dependency Error

Brian Stansberry (Jira) issues at jboss.org
Fri Nov 2 12:44:00 EDT 2018


    [ https://issues.jboss.org/browse/WFLY-11265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13656157#comment-13656157 ] 

Brian Stansberry commented on WFLY-11265:
-----------------------------------------

In case it helps, you don't need 1.1-b01-SNAPSHOT, you need 1.0.

The org.glassfish.soteria:parent:1.0 pom has this unfortunate business:

{code}
    <properties>
        ...

        <!--
            <spec_build> and <spec_impl_version> are overridden
            below for the "release" profile, and must be updated
            in both places when the release or build number of
            the dependency changes.
        -->
        <spec_build>01</spec_build>
        <spec_impl_version>1.1-b01-SNAPSHOT</spec_impl_version>

        <api_dependency_version>${spec_impl_version}</api_dependency_version>

        ...

    </properties>

    <profiles>
        <profile>
            <id>release</id>
            <properties>
                <spec_build>01</spec_build>
                <spec_impl_version>1.0</spec_impl_version>
            </properties>
        </profile>
    </profiles>
{code}

So when they build their stuff using the 'release' profile they depend on the non-snapshot but anyone whose tooling is following their dependency tree but not declaring a 'release' profile is going to see a SNAPSHOT version.  And of course people are quite likely not going to specify a 'release' profile if they are not doing a release of their own stuff.

The org.wildfly:wildfly-parent:14.0.1.Final pom has a dependency-management section where we control this version, and we specify 1.0.  I suspect you'll need to do the same.

> wildfly-feature-pack -- Dependency Error
> ----------------------------------------
>
>                 Key: WFLY-11265
>                 URL: https://issues.jboss.org/browse/WFLY-11265
>             Project: WildFly
>          Issue Type: Bug
>    Affects Versions: 14.0.0.Final
>         Environment: Ubuntu 18.10
> JDK 11
> WildFly 14.0.1.Final
>            Reporter: Dennis Gesker
>            Assignee: Jason Greene
>            Priority: Major
>              Labels: wildfly-feature-pack
>             Fix For: 14.0.0.Final
>
>
> In my gradle build I've added:
> * providedCompile "org.wildfly:wildfly-feature-pack:14.0.1.Final"*
>  
> But, I'm getting:
>  
> *> Could not resolve javax.security.enterprise:javax.security.enterprise-api:1.1-b01-SNAPSHOT.
>   Required by:
>       project : > org.wildfly:wildfly-feature-pack:14.0.1.Final > org.glassfish.soteria:javax.security.enterprise:1.0*
>    > Could not resolve javax.security.enterprise:javax.security.enterprise-api:1.1-b01-SNAPSHOT.
>       > Unable to load Maven meta-data from https://repository.jboss.org/nexus/content/groups/public-jboss/javax/security/enterprise/javax.security.enterprise-api/1.1-b01-SNAPSHOT/maven-metadata.xml.
>          > Could not get resource 'https://repository.jboss.org/nexus/content/groups/public-jboss/javax/security/enterprise/javax.security.enterprise-api/1.1-b01-SNAPSHOT/maven-metadata.xml'.
>             > Could not GET 'https://repository.jboss.org/nexus/content/groups/public-jboss/javax/security/enterprise/javax.security.enterprise-api/1.1-b01-SNAPSHOT/maven-metadata.xml'.
>                > extension (10) should not be presented in server_hello
>  
> Presently I have the following repositories in my build:
>  
>     jcenter()
>     mavenCentral()
>  
>     maven {
>         name "Gradle Repository"
>         url "https://plugins.gradle.org/m2/"
>     }
>     maven {
>         name "JBoss Public Maven Repository Group"
>         url "https://repository.jboss.org/nexus/content/groups/public-jboss/"
>     }
>     maven {
>         name "JBoss Public Maven Repository Group"
>         url "http://repository.jboss.org/nexus/content/groups/public/"
>     }
>  
>  
> But, I suspect I am missing a repository specific to WildFly. Or, maybe there is a bad entry in the POM?
>  
> Thanks,
> Dennis



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list