No maven dependency with nexus setup

I am trying to build a maven project to test some test programs - Arquillian.

I installed nexus and added jboss repositories to the bottom of the public group.

When I run mvn test, I get this error:

Missing:
----------
1) com.sun.istack:istack-commons-runtime:jar:1.1-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=com.sun.istack -DartifactId=istack-commons-runtime -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=com.sun.istack -DartifactId=istack-commons-runtime -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.jboss.arquillian.sandbox.showcase:arquillian-sandbox-showcase-jsf:jar:1.0.0-SNAPSHOT
        2) org.jboss.jbossas:jboss-as-client:pom:6.0.0.20100721-M4
        3) org.jboss.jbossas:jboss-as-iiop:jar:client:6.0.0.20100721-M4
        4) org.jboss.jbossts:jbossjts:jar:4.11.0.Final
        5) org.jboss.ws.native:jbossws-native-core:jar:3.3.0.CR1.SP2
        6) com.sun.xml.ws:jaxws-rt:jar:2.2
        7) com.sun.xml.ws:policy:jar:2.0-b01
        8) com.sun.istack:istack-commons-runtime:jar:1.1-SNAPSHOT

I checked the java.net maven 2 repository and it is definitely there .

However, when I move on to my local community group, this is not so.

How can I solve this problem? And what is the cause of this problem? I am in my head with this since I am more used to using ant + ivy.

The full output from mvn is here .

+3
5

. , . !

0

, -, . . , , istack-common-runtime-1.1.0-SNAPSHOT, "" - nexus. nexus . , , istack-common-runtime-1.1.0-SNAPSHOT, "SNAPSHOT" . "SNAPSHOT".

settings.xml nexus, - :

<profiles>
    <profile>
        <id>nexus</id>
        <activation>
            <activeByDefault>true</activeByDefault>
        </activation>
        <repositories>
            <repository>
                <id>release</id>
                <url>http://nexus-server/nexus/content/groups/public</url>
                <releases>
                    <enabled>true</enabled>
                </releases>
                <snapshots>
                    <enabled>false</enabled>
                </snapshots>
            </repository>
            <repository>
                <id>snapshots</id>
                <url>http://nexus-server/nexus/content/groups/public-snapshots</url>
                <releases>
                    <enabled>false</enabled>
                </releases>
                <snapshots>
                    <enabled>true</enabled>
                </snapshots>
            </repository>
        </repositories>
    </profile>
</profiles>

+3

, - nexus ? nexus, , , . , maven.

, , , , .

+1

JBoss Nexus, , Public Repositories ?

:

alt text

+1

Are you behind a corporate firewall? Perhaps the HTTP proxy should be configured on Nexus (see Server Admin Screen)

0
source

Source: https://habr.com/ru/post/1764615/


All Articles