[jboss-jira] [JBoss JIRA] (WFLY-9661) Can't find wildfly-spec-api-10.1.0.Final.jar in Maven Central

jaikiran pai (JIRA) issues at jboss.org
Fri Jan 12 00:11:00 EST 2018


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

jaikiran pai commented on WFLY-9661:
------------------------------------

{code}
        <dependency>
            <groupId>org.wildfly</groupId>
            <artifactId>wildfly-spec-api</artifactId>
            <version>10.1.0.Final</version>
            <scope>provided</scope>
        </dependency>
{code}

That's missing the {{<type>}} which should be {{pom}}:

{code}
<type>pom</type>
{code}

> Can't find wildfly-spec-api-10.1.0.Final.jar in Maven Central
> -------------------------------------------------------------
>
>                 Key: WFLY-9661
>                 URL: https://issues.jboss.org/browse/WFLY-9661
>             Project: WildFly
>          Issue Type: Bug
>            Reporter: Instantiation Exception
>            Assignee: Jason Greene
>
> I have the following Maven configuration:
> {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>mycompany</groupId>
>     <artifactId>payment</artifactId>
>     <version>1.0-SNAPSHOT</version>
>     <packaging>war</packaging>
>     <name>payment</name>
>     <properties>
>         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>         <maven.compiler.source>1.8</maven.compiler.source>
>         <maven.compiler.target>1.8</maven.compiler.target>
>         <failOnMissingWebXml>false</failOnMissingWebXml>
>     </properties>
>     <dependencyManagement>
>         <dependencies>
>             <dependency>
>                 <groupId>org.wildfly.bom</groupId>
>                 <artifactId>wildfly-javaee7-with-tools</artifactId>
>                 <version>10.1.0.Final</version>
>                 <type>pom</type>
>                 <scope>import</scope>
>             </dependency>
>         </dependencies>
>     </dependencyManagement>
>     <dependencies>
>         <dependency>
>             <groupId>org.wildfly</groupId>
>             <artifactId>wildfly-spec-api</artifactId>
>             <version>10.1.0.Final</version>
>             <scope>provided</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.jboss.resteasy</groupId>
>             <artifactId>resteasy-jaxrs</artifactId>
>             <scope>provided</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.hibernate</groupId>
>             <artifactId>hibernate-validator</artifactId>
>             <scope>provided</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.projectlombok</groupId>
>             <artifactId>lombok</artifactId>
>             <version>1.16.12</version>
>             <scope>provided</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.flywaydb</groupId>
>             <artifactId>flyway-core</artifactId>
>             <version>4.0.2</version>
>         </dependency>
>         <dependency>
>             <groupId>com.google.guava</groupId>
>             <artifactId>guava</artifactId>
>             <version>20.0</version>
>         </dependency>
>         <dependency>
>             <groupId>io.rest-assured</groupId>
>             <artifactId>rest-assured</artifactId>
>             <version>3.0.2</version>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>junit</groupId>
>             <artifactId>junit</artifactId>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.hamcrest</groupId>
>             <artifactId>hamcrest-library</artifactId>
>             <version>1.3</version>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.mockito</groupId>
>             <artifactId>mockito-core</artifactId>
>             <version>1.10.19</version>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.jboss.arquillian.junit</groupId>
>             <artifactId>arquillian-junit-container</artifactId>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.jboss.arquillian.graphene</groupId>
>             <artifactId>graphene-webdriver</artifactId>
>             <type>pom</type>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.wildfly.arquillian</groupId>
>             <artifactId>wildfly-arquillian-container-remote</artifactId>
>             <scope>test</scope>
>         </dependency>
>     </dependencies>
>     <build>
>         <finalName>payment</finalName>
>     </build>
> </project>
> {code}
> I type
> {code}
> mvn clean package
> {code}
> and I get following error
> {code}
> [INFO] ------------------------------------------------------------------------
> Downloading: https://repo.maven.apache.org/maven2/org/wildfly/wildfly-spec-api/10.1.0.Final/wildfly-spec-api-10.1.0.Final.jar
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2.262 s
> [INFO] Finished at: 2018-01-10T15:50:43+01:00
> [INFO] Final Memory: 20M/399M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project payment: Could not resolve dependencies for project mycompany:payment:war:1.0-SNAPSHOT: Could not find artifact org.wildfly:wildfly-spec-api:jar:10.1.0.Final in central (https://repo.maven.apache.org/maven2) -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
> {code}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list