help with default nexus setup

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

help with default nexus setup

Shoukat, Faisal (Systems Management Services, Group IT)

I have installed Nexus 2.8 on a Linux virtual machine. Started it and can quite happily browser to the repository. If I look at the repositories from the repository view they are all in service and none of them is blocked.

I can browse the individual repo indexes but 1 thing that concerns me is that when i update or rebuild the index i get the following where it states 0 scanned, updated read etc..

jvm 1    | 2014-07-10 12:08:02,115+0100 INFO  [pxpool-1-thread-3] admin org.sonatype.nexus.index.Def
aultIndexerManager - Remote indexes updated successfully for repository "Central" [id=central]
jvm 1    | 2014-07-10 12:08:02,123+0100 INFO  [pxpool-1-thread-3] admin org.sonatype.nexus.index.Nex
usScanningListener - Scanning of repositoryID="central" started.
jvm 1    | 2014-07-10 12:08:59,617+0100 INFO  [pxpool-1-thread-3] admin org.sonatype.nexus.index.Nex
usScanningListener - Scanning of repositoryID="central" finished: scanned=0, added=0, updated=0, rem
oved=0, scanningDuration=0:00:57.493
jvm 1    | 2014-07-10 12:09:00,025+0100 INFO  [pxpool-1-thread-3] admin org.sonatype.nexus.index.Def
aultIndexerManager - Publishing index for repository cen

my public repository is configured so that all the repositories are in the available repositories box. I didnt think that I need to do any other configuration for this just yet as i havent started playing with it just want to get the default set up working first. I have set download remote indexes for each repo to true though.

When I try to create a maven project via eclipse I am not able to create it. I get the following error in the console

10/07/2014 12:27:40 BST: [WARN] The POM for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2 is missing, no dependency information available
10/07/2014 12:27:41 BST: [WARN] The POM for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2 is missing, no dependency information available
10/07/2014 12:27:41 BST: [INFO] Using org.eclipse.m2e.jdt.JarLifecycleMapping lifecycle mapping for MavenProject: dcdw:dccd:0.0.1-SNAPSHOT @ C:\projects\lloyds\dccd\pom.xml.
10/07/2014 12:27:41 BST: [WARN] The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 is missing, no dependency information available
10/07/2014 12:27:41 BST: [WARN] The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 is missing, no dependency information available
10/07/2014 12:27:42 BST: [WARN] The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 is missing, no dependency information available
10/07/2014 12:27:42 BST: [WARN] The POM for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2 is missing, no dependency information available
10/07/2014 12:27:42 BST: [WARN] The POM for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2 is missing, no dependency information available
10/07/2014 12:27:42 BST: [INFO] Using org.eclipse.m2e.jdt.JarLifecycleMapping lifecycle mapping for MavenProject: dcdw:dccd:0.0.1-SNAPSHOT @ C:\projects\lloyds\dccd\pom.xml.
10/07/2014 12:27:42 BST: [WARN] The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 is missing, no dependency information available

I can browse the remote and see that these jars exist so why cant I download them in my eclipse IDE?

my settings xml that I am using is

<?xml version="1.0"?>
<settings 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/settings-1.0.0.xsd">
 
 
    <localRepository>c:/maven/repository</localRepository>
 
    <mirrors>
        <mirror>
            <id>nexus</id>
            <mirrorOf>*</mirrorOf>
            <url>http://unix.host.ip:8081/nexus/content/groups/public</url>
        </mirror>
    </mirrors>
 
    <profiles>
        <profile>
            <id>nexus</id>
            <!--Enable snapshots for the built in central repo to direct -->
            <!--all requests to nexus via the mirror -->
            <repositories>
                <repository>
                    <id>central</id>
                    <url>http://central</url>
                    <releases>
                        <enabled>true</enabled>
                        <updatePolicy>daily</updatePolicy>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                        <updatePolicy>always</updatePolicy>
                    </snapshots>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <id>central</id>
                    <url>http://central</url>
                    <releases>
                        <enabled>true</enabled>
                        <updatePolicy>daily</updatePolicy>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                        <updatePolicy>always</updatePolicy>
                    </snapshots>
                </pluginRepository>
            </pluginRepositories>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>nexus</activeProfile>
    </activeProfiles>
 
 
</settings>

I have set up the proxy configuration as I am behind a firewall and confirmed that this has access as no errors are thrown and can run a health check although this returns 0 but doesnt throw any error.

Any one have a clue why this doesnt work?

Also if I put this in the url

http://unix.ip.host:8081/nexus/content/groups/public/org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-plugin-2.3.2.pom?describe

I get the following output

Describe of /groups/public/org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-
 
plugin-2.3.2.pom
 
This page describes the processing of a request made by external client, using information from the request, retrieved item (or exception if not item was retrieved) and some intermittent processing states.
 
Processing time
 
1.581 ms
 
Request Context
 
Key Value
request.address 10.175.42.118
request.remoteOnly  false
request.user    admin
request.url http://hostname:8081/nexus/content/groups/public/org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-plugin-2.3.2.pom?describe
request.localOnly   false
request.agent   Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36
request.asExpired   false
org.sonatype.nexus.content.internal.ContentServlet.stopwatch    1.581 ms
request.external    true
Response Outcome
 
NOT FOUND (Item not found, core threw exception)
 
Processed repositories (IDs)
 
public
Applied Routings
 
Key Value
public  []
Exception
Type
 
org.sonatype.nexus.proxy.repository.GroupItemNotFoundException
 
Message
 
Path /org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-plugin-2.3.2.pom not found in group repository "Public Repositories" [id=public].
 
Exception reasoning
 
public : Path /org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-plugin-2.3.2.pom not found in group repository "Public Repositories" [id=public].
 

 


Lloyds Banking Group plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland no. SC95000. Telephone: 0131 225 4555. Lloyds Bank plc. Registered Office: 25 Gresham Street, London EC2V 7HN. Registered in England and Wales no. 2065. Telephone 0207626 1500. Bank of Scotland plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland no. SC327000. Telephone: 08457 21 31 41. Cheltenham & Gloucester plc. Registered Office: Barnett Way, Gloucester GL4 3RL. Registered in England and Wales 2299428. Telephone: 0845 603 1637

Lloyds Bank plc, Bank of Scotland plc are authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority and Prudential Regulation Authority.

Cheltenham & Gloucester plc is authorised and regulated by the Financial Conduct Authority.

Halifax is a division of Bank of Scotland plc. Cheltenham & Gloucester Savings is a division of Lloyds Bank plc.

HBOS plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland no. SC218813.

This e-mail (including any attachments) is private and confidential and may contain privileged material. If you have received this e-mail in error, please notify the sender and delete it (including any attachments) immediately. You must not copy, distribute, disclose or use any of the information in it or any attachments. Telephone calls may be monitored or recorded.

Reply | Threaded
Open this post in threaded view
|

Re: help with default nexus setup

Peter Lynch-2
Hi,


On Thu, Jul 10, 2014 at 12:14 PM, Shoukat, Faisal (Systems Management Services, Group IT) <[hidden email]> wrote:

I have installed Nexus 2.8 on a Linux virtual machine. Started it and can quite happily browser to the repository. If I look at the repositories from the repository view they are all in service and none of them is blocked.

I can browse the individual repo indexes but 1 thing that concerns me is that when i update or rebuild the index i get the following where it states 0 scanned, updated read etc..

jvm 1    | 2014-07-10 12:08:02,115+0100 INFO  [pxpool-1-thread-3] admin org.sonatype.nexus.index.Def
aultIndexerManager - Remote indexes updated successfully for repository "Central" [id=central]
jvm 1    | 2014-07-10 12:08:02,123+0100 INFO  [pxpool-1-thread-3] admin org.sonatype.nexus.index.Nex
usScanningListener - Scanning of repositoryID="central" started.
jvm 1    | 2014-07-10 12:08:59,617+0100 INFO  [pxpool-1-thread-3] admin org.sonatype.nexus.index.Nex
usScanningListener - Scanning of repositoryID="central" finished: scanned=0, added=0, updated=0, rem
oved=0, scanningDuration=0:00:57.493
jvm 1    | 2014-07-10 12:09:00,025+0100 INFO  [pxpool-1-thread-3] admin org.sonatype.nexus.index.Def
aultIndexerManager - Publishing index for repository cen

These messages look normal. The scanning it is referring to is scanning of local artifacts, of which you don't have any yet. If you search for an artifact in Nexus, that is the remote central repo, are you seeing results?

my public repository is configured so that all the repositories are in the available repositories box. I didnt think that I need to do any other configuration for this just yet as i havent started playing with it just want to get the default set up working first. I have set download remote indexes for each repo to true though.

When I try to create a maven project via eclipse I am not able to create it. I get the following error in the console

10/07/2014 12:27:40 BST: [WARN] The POM for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2 is missing, no dependency information available
10/07/2014 12:27:41 BST: [WARN] The POM for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2 is missing, no dependency information available
10/07/2014 12:27:41 BST: [INFO] Using org.eclipse.m2e.jdt.JarLifecycleMapping lifecycle mapping for MavenProject: dcdw:dccd:0.0.1-SNAPSHOT @ C:\projects\lloyds\dccd\pom.xml.
10/07/2014 12:27:41 BST: [WARN] The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 is missing, no dependency information available
10/07/2014 12:27:41 BST: [WARN] The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 is missing, no dependency information available
10/07/2014 12:27:42 BST: [WARN] The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 is missing, no dependency information available
10/07/2014 12:27:42 BST: [WARN] The POM for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2 is missing, no dependency information available
10/07/2014 12:27:42 BST: [WARN] The POM for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2 is missing, no dependency information available
10/07/2014 12:27:42 BST: [INFO] Using org.eclipse.m2e.jdt.JarLifecycleMapping lifecycle mapping for MavenProject: dcdw:dccd:0.0.1-SNAPSHOT @ C:\projects\lloyds\dccd\pom.xml.
10/07/2014 12:27:42 BST: [WARN] The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 is missing, no dependency information available

I can browse the remote and see that these jars exist so why cant I download them in my eclipse IDE?

my settings xml that I am using is

<?xml version="1.0"?>
<settings 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/settings-1.0.0.xsd">
 
 
    <localRepository>c:/maven/repository</localRepository>
 
    <mirrors>
        <mirror>
            <id>nexus</id>
            <mirrorOf>*</mirrorOf>
            <url>http://unix.host.ip:8081/nexus/content/groups/public</url>
        </mirror>
    </mirrors>
 
    <profiles>
        <profile>
            <id>nexus</id>
            <!--Enable snapshots for the built in central repo to direct -->
            <!--all requests to nexus via the mirror -->
            <repositories>
                <repository>
                    <id>central</id>
                    <url>http://central</url>
                    <releases>
                        <enabled>true</enabled>
                        <updatePolicy>daily</updatePolicy>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                        <updatePolicy>always</updatePolicy>
                    </snapshots>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <id>central</id>
                    <url>http://central</url>
                    <releases>
                        <enabled>true</enabled>
                        <updatePolicy>daily</updatePolicy>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                        <updatePolicy>always</updatePolicy>
                    </snapshots>
                </pluginRepository>
            </pluginRepositories>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>nexus</activeProfile>
    </activeProfiles>
 
 
</settings>

I have set up the proxy configuration as I am behind a firewall and confirmed that this has access as no errors are thrown and can run a health check although this returns 0 but doesnt throw any error.

Any one have a clue why this doesnt work?

Also if I put this in the url

http://unix.ip.host:8081/nexus/content/groups/public/org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-plugin-2.3.2.pom?describe

I get the following output

Describe of /groups/public/org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-
 
plugin-2.3.2.pom
 
This page describes the processing of a request made by external client, using information from the request, retrieved item (or exception if not item was retrieved) and some intermittent processing states.
 
Processing time
 
1.581 ms
 
Request Context
 
Key Value
request.address 10.175.42.118
request.remoteOnly  false
request.user    admin
request.url http://hostname:8081/nexus/content/groups/public/org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-plugin-2.3.2.pom?describe
request.localOnly   false
request.agent   Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36
request.asExpired   false
org.sonatype.nexus.content.internal.ContentServlet.stopwatch    1.581 ms
request.external    true
Response Outcome
 
NOT FOUND (Item not found, core threw exception)
 
Processed repositories (IDs)
 
public
Your public group has no members.
 
Applied Routings
 
Key Value
public  []
Exception
Type
 
org.sonatype.nexus.proxy.repository.GroupItemNotFoundException
 
Message
 
Path /org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-plugin-2.3.2.pom not found in group repository "Public Repositories" [id=public].
 
Exception reasoning
 
public : Path /org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-plugin-2.3.2.pom not found in group repository "Public Repositories" [id=public].
 

 


By default the public group includes members that will be checked and describe will show these members. I don't see that your public group has any members. Go to the public group configuration tab in Nexus and check the group members includes at least Central.

Example message for a bogus artifact not found in the group and all of its members:

Exception reasoning

  • public : Path /org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-plugin-9.9.9.pom not found in group repository "Public Repositories" [id=public].
    • snapshots : Path /org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-plugin-9.9.9.pom not found in local storage of repository "Snapshots" [id=snapshots]
    • releases : Path /org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-plugin-9.9.9.pom not found in local storage of repository "Releases" [id=releases]
    • thirdparty : Path /org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-plugin-9.9.9.pom not found in local storage of repository "3rd party" [id=thirdparty]
    • central : Path /org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-plugin-9.9.9.pom not found in local nor in remote storage of M2Repository(id=central)

 


Lloyds Banking Group plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland no. SC95000. Telephone: 0131 225 4555. Lloyds Bank plc. Registered Office: 25 Gresham Street, London EC2V 7HN. Registered in England and Wales no. 2065. Telephone 0207626 1500. Bank of Scotland plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland no. SC327000. Telephone: 08457 21 31 41. Cheltenham & Gloucester plc. Registered Office: Barnett Way, Gloucester GL4 3RL. Registered in England and Wales 2299428. Telephone: 0845 603 1637

Lloyds Bank plc, Bank of Scotland plc are authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority and Prudential Regulation Authority.

Cheltenham & Gloucester plc is authorised and regulated by the Financial Conduct Authority.

Halifax is a division of Bank of Scotland plc. Cheltenham & Gloucester Savings is a division of Lloyds Bank plc.

HBOS plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland no. SC218813.

This e-mail (including any attachments) is private and confidential and may contain privileged material. If you have received this e-mail in error, please notify the sender and delete it (including any attachments) immediately. You must not copy, distribute, disclose or use any of the information in it or any attachments. Telephone calls may be monitored or recorded.