| Summary: | Nexus repository groups not browsable | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Frederick Staats <frederick> | ||||||||
| Component: | m2e | Assignee: | Project Inbox <m2e.core-inbox> | ||||||||
| Status: | CLOSED NOT_ECLIPSE | QA Contact: | |||||||||
| Severity: | major | ||||||||||
| Priority: | P3 | CC: | igor, jfarcand, pascal, rseddon | ||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows 7 | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Frederick Staats
Tonight I also tested it with a 32-bit Eclipse, and 32-bit Java and had the same behavior. I forgot to mention that I am setting the arguments on the eclipse command line to set the keystore for SSL certificate verification (these are the same arguments that I add to MAVEN_OPT for the command line MVN.exe to use SSL): "C:\Program Files (x86)\eclipse\eclipse.exe" -vm "C:\Program Files (x86)\Java\jdk1.6.0_24\bin\javaw.exe" -vmargs -Djavax.net.ssl.trustStore=C:\truststore.jks -Djavax.net.ssl.trustStorePassword=truststore I also set the arguments in the Default Java execution environment: -Djavax.net.ssl.trustStore=C:\truststore.jks -Djavax.net.ssl.trustStorePassword=truststore Can you attach your maven-clean-plugin/2.5-SNAPSHOT/maven-metadata.xml, mvn's attempt to download maven-clean-plugin-2.5-SNAPSHOT.pom, i.e. a non-timestamp, indicates an issue with the metadata? Thanks --Jeanfrancois Created attachment 190186 [details]
File from the requested 2.5-SNAPSHOT directory
Created attachment 190187 [details]
File in the requested 2.5-SNAPSHOT directory
I removed my local repository before starting eclipse to make sure it was clean. I opened Eclipse and waited for the Global Repository indexes to rebuild (~5 minutes). I reran "Open Maven POM..." searching form maven-clean-plugin and selected org.apache.maven.plugins maven-clean-plugin 2.5-SNAPSHOT I got the error "Could not resolve artifact org.eclipse.core.runtime.CoreException: Could not resolve artifact. The directory was created in the local repository: C:\Users\<userid>\.m2\repository\org\apache\maven\plugins\maven-clean-plugin\2.5-SNAPSHOT But the file maven-metadata.xml you asked me to look for was not in it. I attached the two small files that were in it to the bug (m2e-lastUpdated.properties and resolver-status.properties). Also I did some additional debugging with -Djavax.net.debug=all to verify that the SSL communication is configured properly. "C:\Program Files (x86)\eclipse\eclipse.exe" -vm "C:\Program Files (x86)\Java\jdk1.6.0_24\bin\java.exe" -vmargs -Djavax.net.debug=all -Djavax.net.ssl.trustStore=C:\truststore.jks -Djavax.net.ssl.trustStorePassword=truststore Here is a sample from the exchange after the certificate and key exchange have finished while it is verifying the update of the remote index: Padded plaintext before ENCRYPTION: len = 254 0000: 47 45 54 20 2F 6E 65 78 75 73 2F 63 6F 6E 74 65 GET /nexus/conte 0010: 6E 74 2F 67 72 6F 75 70 73 2F 70 75 62 6C 69 63 nt/groups/public 0020: 2D 73 6E 61 70 73 68 6F 74 73 2F 2E 69 6E 64 65 -snapshots/.inde 0030: 78 2F 6E 65 78 75 73 2D 6D 61 76 65 6E 2D 72 65 x/nexus-maven-re 0040: 70 6F 73 69 74 6F 72 79 2D 69 6E 64 65 78 2E 70 pository-index.p 0050: 72 6F 70 65 72 74 69 65 73 20 48 54 54 50 2F 31 roperties HTTP/1 0060: 2E 31 0D 0A 48 6F 73 74 3A 20 63 63 61 70 6E 65 .1..Host: ccapne 0070: 78 75 73 2E 69 6E 74 65 6C 2E 63 6F 6D 3A 38 34 xus.intel.com:84 0080: 34 33 0D 0A 41 63 63 65 70 74 2D 45 6E 63 6F 64 43..Accept-Encod 0090: 69 6E 67 3A 20 67 7A 69 70 0D 0A 43 6F 6E 6E 65 ing: gzip..Conne 00A0: 63 74 69 6F 6E 3A 20 6B 65 65 70 2D 61 6C 69 76 ction: keep-aliv 00B0: 65 0D 0A 41 63 63 65 70 74 3A 20 2A 2F 2A 0D 0A e..Accept: */*.. 00C0: 55 73 65 72 2D 41 67 65 6E 74 3A 20 4D 32 45 63 User-Agent: M2Ec 00D0: 6C 69 70 73 65 2F 30 2E 31 32 2E 31 2E 32 30 31 lipse/0.12.1.201 00E0: 31 30 31 31 32 2D 31 37 31 32 0D 0A 0D 0A 23 D0 10112-1712....#. 00F0: F2 E1 A2 DB E7 AA 35 AE 42 9C 4E BF 66 48 ......5.B.N.fH New I/O client worker #2-1, WRITE: TLSv1 Application Data, length = 238 [Raw write (bb)]: length = 259 0000: 17 03 01 00 FE D5 DC 6E 82 F6 85 2F 18 97 A4 EB .......n.../.... 0010: 22 06 9D 5B 78 40 09 3A 65 40 A1 C0 F3 45 11 4B "..[x@.:e@...E.K 0020: FE DF 1C C0 E9 C2 49 D2 A8 DF 38 CD EB 39 CD 8C ......I...8..9.. 0030: 32 95 D5 2C CA 94 50 F6 6A 2F 2C AA 32 43 13 E1 2..,..P.j/,.2C.. 0040: AF 08 FD 4B 8B A5 D4 49 CC 4F 35 78 91 35 4C FC ...K...I.O5x.5L. 0050: 0B 59 ED 64 83 89 AD 46 F5 D7 84 05 44 B9 87 38 .Y.d...F....D..8 0060: 31 34 E4 9B 2C B6 4F F1 E0 F4 ED 57 BA 2A 46 65 14..,.O....W.*Fe 0070: 84 02 F4 4E 46 90 CC 3F 00 53 0C F8 EF A4 BD E2 ...NF..?.S...... 0080: 19 BF 34 BE 0E E0 EC 51 A8 C5 9D 7C 00 55 C0 A8 ..4....Q.....U.. 0090: DB C3 D4 B5 57 D6 4F 73 49 92 A6 AF 62 96 98 94 ....W.OsI...b... 00A0: 0C 12 D6 20 26 24 66 BF C3 1C B4 3E 8C 79 26 62 ... &$f....>.y&b 00B0: 79 FD 0E C5 83 28 20 78 CA A6 D8 6D C7 6F 40 7E y....( x...m.o@. 00C0: DF 3D 42 5A 68 65 DE 3B 9A FD 6D D4 ED 6C A6 9C .=BZhe.;..m..l.. 00D0: 3A 78 2F EF EB 7D B3 03 6F BC 24 21 89 2E B4 5D :x/.....o.$!...] 00E0: 0E 53 53 F5 83 4F 6C 8E ED 05 B2 15 21 05 F9 A4 .SS..Ol.....!... 00F0: 21 0D 38 B0 87 CA 23 0A 91 1F A4 7E 35 B2 29 A3 !.8...#.....5.). 0100: 0B 3F 7D .?. [Raw read (bb)]: length = 758 0000: 17 03 01 02 F1 75 54 8A DA 35 8A 51 84 72 53 CF .....uT..5.Q.rS. 0010: 30 8D 28 D2 DF 46 BD 03 31 1C A1 38 9C E7 C8 35 0.(..F..1..8...5 0020: 02 2E 7C F5 9D 91 CD AB DC DB 5F A1 43 38 53 B2 .........._.C8S. 0030: 8F 01 FA D5 75 37 D6 BE D8 18 08 F5 15 1A BA 32 ....u7.........2 0040: 1D 7A D1 A7 79 B8 35 14 AC E4 FC 47 2A 94 9C 25 .z..y.5....G*..% 0050: 4E 22 7E 55 74 84 30 97 1E F2 D0 51 50 F8 88 33 N".Ut.0....QP..3 0060: 37 53 7B EC 08 8D C4 BB 12 57 DD 77 77 F7 84 8D 7S.......W.ww... 0070: 6B CA A1 7B A2 59 13 C6 49 7B 78 7A 99 AF 1D 45 k....Y..I.xz...E 0080: BC 80 AB 16 68 F8 A2 1B 9D 64 55 71 75 EE 4A 97 ....h....dUqu.J. 0090: 12 13 D7 E1 05 7D 15 D9 A8 A4 DE 5D D7 A6 FC 79 ...........]...y 00A0: 7D 20 34 5E 12 E5 6A 72 43 9C AC B5 D3 D9 45 8C . 4^..jrC.....E. 00B0: C0 5E 3D B7 0F 03 A5 BA D3 82 AE FD 58 CB 7E 51 .^=.........X..Q 00C0: 44 13 6C F7 B6 11 B5 30 B1 C4 D9 B1 D4 D3 1A 36 D.l....0.......6 00D0: AA E8 0A B6 9C 30 5D D6 A6 B5 B8 E9 8D FB 36 B1 .....0].......6. 00E0: 57 09 69 D7 9A 2E 5F C7 6E 0A 12 33 07 29 0B C9 W.i..._.n..3.).. 00F0: 2A 5F 47 7A 27 AF D8 D2 8E 70 9F 6D 12 8E C7 3D *_Gz'....p.m...= 0100: E6 BC 42 8A 3B 1C DC D2 97 F3 43 31 35 B0 7A CF ..B.;.....C15.z. 0110: EE A8 C0 61 9D 93 7B 38 C1 6C 5B 52 1B 67 C4 5E ...a...8.l[R.g.^ 0120: 5E 42 15 30 A8 88 A0 D9 4E 38 7D 79 C8 6A 3C C4 ^B.0....N8.y.j<. 0130: FA EA F3 29 D7 59 9F FF 3F 98 1A 80 C9 24 CC 71 ...).Y..?....$.q 0140: 8A 9B FC 62 D5 F8 FC 64 23 06 2E 06 4E 05 6F F1 ...b...d#...N.o. 0150: D3 0E 5B B5 44 64 81 D4 61 6D 80 AB 0B CF 49 ED ..[.Dd..am....I. 0160: 95 DE 4B 60 BA 61 BA 09 A2 E8 EE E6 CB 1F 0C 2C ..K`.a........., 0170: 8E 37 02 38 41 C7 61 5D D4 34 11 6D 21 62 04 5E .7.8A.a].4.m!b.^ 0180: C8 35 E0 F7 5D BB 24 7C 8B C8 D1 10 C4 6B D7 63 .5..].$......k.c 0190: 84 68 11 FF 36 FB D1 B8 06 CB 98 93 63 58 72 D5 .h..6.......cXr. 01A0: 1B 68 86 8F F2 81 E5 EC 63 1B 9F 4E 4E 89 14 40 .h......c..NN..@ 01B0: FF 0B BA E2 82 DA 86 CD EE 72 5C CD 80 7B 0F 22 .........r\...." 01C0: BE 40 A0 B0 10 8F CC 20 82 67 4B 62 32 73 A6 F7 .@..... .gKb2s.. 01D0: 92 87 7C 07 08 CF C3 5B 23 8B 6F 7C 71 90 CC 7E .......[#.o.q... 01E0: 26 79 10 0A 34 6E 78 C0 E9 8C 07 31 53 BB BB AC &y..4nx....1S... 01F0: 0D 67 02 C1 4D 04 00 C1 9B AC 91 84 42 0C F0 E9 .g..M.......B... 0200: 4C C0 DD AF 9D 28 F2 99 40 0F C0 9D 98 93 2D A2 L....(..@.....-. 0210: F2 E8 15 0E 31 3B 47 84 86 D6 C9 CF 19 A3 5E 32 ....1;G.......^2 0220: 79 F0 F2 59 71 13 60 85 44 EA B1 DE 53 B3 F2 C8 y..Yq.`.D...S... 0230: DF DE 83 56 EB 9A 18 BB F8 EA E4 2B F4 AD 78 87 ...V.......+..x. 0240: 41 4D B6 B3 3C 49 A7 DF B5 0F E2 06 FA A2 AC A5 AM..<I.......... 0250: C4 C6 87 0D 32 41 EA B9 15 39 15 F9 B0 73 CD 7D ....2A...9...s.. 0260: BB 53 71 AD 2E 95 CB 77 70 CA AE 45 F6 05 0D 42 .Sq....wp..E...B 0270: 7C B2 82 B7 81 07 68 A4 C2 90 3D 6C CB A3 82 29 ......h...=l...) 0280: 26 EE F3 78 E5 04 26 05 2E 85 28 32 AF 25 C4 8E &..x..&...(2.%.. 0290: 7D B0 56 B6 90 8D 24 46 50 28 BC 8F 3A 30 9E 9B ..V...$FP(..:0.. 02A0: 8B 31 03 28 D6 2E 02 05 59 A8 2A 5D 57 AC 7F 60 .1.(....Y.*]W..` 02B0: 6A 04 E9 C9 B2 5D 58 3D 0A BF B9 1C 46 D5 EF E9 j....]X=....F... 02C0: C9 55 C2 84 E9 16 67 89 EB C4 60 12 B4 BC 87 0F .U....g...`..... 02D0: 18 2D 2C 31 4D AE 7A D2 D1 CF F4 89 A0 6E DE 17 .-,1M.z......n.. 02E0: A5 A4 E3 0C C5 BD B1 25 D1 83 FE AB 99 E8 0B FB .......%........ 02F0: D5 EE 2C A3 18 84 ..,... Padded plaintext after DECRYPTION: len = 753 0000: 48 54 54 50 2F 31 2E 31 20 32 30 30 20 4F 4B 0D HTTP/1.1 200 OK. 0010: 0A 44 61 74 65 3A 20 57 65 64 2C 20 30 32 20 4D .Date: Wed, 02 M 0020: 61 72 20 32 30 31 31 20 31 39 3A 30 35 3A 34 39 ar 2011 19:05:49 0030: 20 47 4D 54 0D 0A 53 65 74 2D 43 6F 6F 6B 69 65 GMT..Set-Cookie 0040: 3A 20 4A 53 45 53 53 49 4F 4E 49 44 3D 64 63 35 : JSESSIONID=dc5 0050: 38 61 33 32 32 2D 31 31 39 62 2D 34 36 31 35 2D 8a322-119b-4615- 0060: 39 62 34 63 2D 34 32 34 65 39 36 34 64 62 32 34 9b4c-424e964db24 0070: 30 3B 20 50 61 74 68 3D 2F 6E 65 78 75 73 3B 20 0; Path=/nexus; 0080: 48 74 74 70 4F 6E 6C 79 0D 0A 53 65 74 2D 43 6F HttpOnly..Set-Co 0090: 6F 6B 69 65 3A 20 72 65 6D 65 6D 62 65 72 4D 65 okie: rememberMe 00A0: 3D 64 65 6C 65 74 65 4D 65 3B 20 50 61 74 68 3D =deleteMe; Path= 00B0: 2F 6E 65 78 75 73 3B 20 45 78 70 69 72 65 73 3D /nexus; Expires= 00C0: 54 75 65 2C 20 30 31 2D 4D 61 72 2D 32 30 31 31 Tue, 01-Mar-2011 00D0: 20 31 39 3A 30 35 3A 35 31 20 47 4D 54 0D 0A 43 19:05:51 GMT..C 00E0: 6F 6E 74 65 6E 74 2D 54 79 70 65 3A 20 74 65 78 ontent-Type: tex 00F0: 74 2F 70 6C 61 69 6E 0D 0A 4C 61 73 74 2D 4D 6F t/plain..Last-Mo 0100: 64 69 66 69 65 64 3A 20 4D 6F 6E 2C 20 32 38 20 dified: Mon, 28 0110: 46 65 62 20 32 30 31 31 20 32 31 3A 34 34 3A 30 Feb 2011 21:44:0 0120: 35 20 47 4D 54 0D 0A 45 54 61 67 3A 20 22 39 64 5 GMT..ETag: "9d 0130: 37 33 65 30 63 37 30 37 62 64 33 65 30 65 64 37 73e0c707bd3e0ed7 0140: 61 34 63 33 62 30 37 61 31 64 35 64 63 36 30 63 a4c3b07a1d5dc60c 0150: 31 34 63 38 65 37 22 0D 0A 44 61 74 65 3A 20 57 14c8e7"..Date: W 0160: 65 64 2C 20 30 32 20 4D 61 72 20 32 30 31 31 20 ed, 02 Mar 2011 0170: 31 39 3A 30 35 3A 35 31 20 47 4D 54 0D 0A 56 61 19:05:51 GMT..Va 0180: 72 79 3A 20 41 63 63 65 70 74 2D 43 68 61 72 73 ry: Accept-Chars 0190: 65 74 2C 20 41 63 63 65 70 74 2D 45 6E 63 6F 64 et, Accept-Encod 01A0: 69 6E 67 2C 20 41 63 63 65 70 74 2D 4C 61 6E 67 ing, Accept-Lang 01B0: 75 61 67 65 2C 20 41 63 63 65 70 74 0D 0A 53 65 uage, Accept..Se 01C0: 72 76 65 72 3A 20 4E 6F 65 6C 69 6F 73 2D 52 65 rver: Noelios-Re 01D0: 73 74 6C 65 74 2D 45 6E 67 69 6E 65 2F 31 2E 31 stlet-Engine/1.1 01E0: 2E 36 2D 53 4F 4E 41 54 59 50 45 2D 35 33 34 38 .6-SONATYPE-5348 01F0: 2D 56 34 0D 0A 43 6F 6E 74 65 6E 74 2D 4C 65 6E -V4..Content-Len 0200: 67 74 68 3A 20 32 31 33 0D 0A 0D 0A 23 4D 6F 6E gth: 213....#Mon 0210: 20 46 65 62 20 32 38 20 31 33 3A 34 35 3A 35 36 Feb 28 13:45:56 0220: 20 50 53 54 20 32 30 31 31 0D 0A 6E 65 78 75 73 PST 2011..nexus 0230: 2E 69 6E 64 65 78 2E 63 68 61 69 6E 2D 69 64 3D .index.chain-id= 0240: 31 32 39 38 39 32 37 37 34 39 34 34 35 0D 0A 6E 1298927749445..n 0250: 65 78 75 73 2E 69 6E 64 65 78 2E 74 69 6D 65 73 exus.index.times 0260: 74 61 6D 70 3D 32 30 31 31 30 32 32 38 32 31 34 tamp=20110228214 0270: 34 30 35 2E 30 33 39 20 2B 30 30 30 30 0D 0A 6E 405.039 +0000..n 0280: 65 78 75 73 2E 69 6E 64 65 78 2E 69 64 3D 70 75 exus.index.id=pu 0290: 62 6C 69 63 2D 73 6E 61 70 73 68 6F 74 73 2D 63 blic-snapshots-c 02A0: 74 78 0D 0A 6E 65 78 75 73 2E 69 6E 64 65 78 2E tx..nexus.index. 02B0: 69 6E 63 72 65 6D 65 6E 74 61 6C 2D 30 3D 31 0D incremental-0=1. 02C0: 0A 6E 65 78 75 73 2E 69 6E 64 65 78 2E 6C 61 73 .nexus.index.las 02D0: 74 2D 69 6E 63 72 65 6D 65 6E 74 61 6C 3D 31 0D t-incremental=1. 02E0: 0A BD DC DA BD B3 18 06 7C EE 8D 4D AD 2D C7 5D ...........M.-.] 02F0: B1 . Worker-4, called closeOutbound() Worker-4, closeOutboundInternal() Worker-4, SEND TLSv1 ALERT: warning, description = close_notify Padded plaintext before ENCRYPTION: len = 18 0000: 01 00 75 45 91 D8 F0 02 10 C8 DC E9 1B 3B 0D 2C ..uE.........;., 0010: 17 E2 .. Worker-4, WRITE: TLSv1 Alert, length = 18 [Raw write]: length = 23 0000: 15 03 01 00 12 A1 88 4C 5E 38 17 8D 9B 53 9C 94 .......L^8...S.. 0010: D0 EE CE 32 77 D3 4D ...2w.M Worker-4, called closeOutbound() Worker-4, closeOutboundInternal() I figured out why I couldn't download the maven-clean-plugin/2.5-SNAPSHOT pom. I was configured with the repository pointed at the developer profile that didn't allow download of snapshots. I switched to my public-snapshot profile and could download the maven-clean-plugin/2.5-SNAPSHOT pom. I still have my original issue of not being able to browse the global repositories though my Nexus server (even though I can search them with "Search Maven POM" dialog. Attached screen shot. Created attachment 190207 [details]
Picture of not being able to browse the Global Repository
I would note that it's a confusing m2e limitation that even when the current profile prevents the downloading of SNAPSHOT a POM from the repository the search function returned a snapshot POM from the index of the snapshot repository without an indication that it couldn't be downloaded (possible future enhancement request?) Frederick, since you are in the process of evaluating m2e, I would recommend you to take a look at m2eclipse 0.13 that is currently being developed at Eclipse. You can get it from http://download.eclipse.org/technology/m2e/updates/M or from the http://download.eclipse.org/releases/indigo. Remember that this is work in progress. Also 0.13 uses a new http client called AHC that could be helping for your transport issues and even if it was not the case we would be able to fix it since Jean Francois is the maintainer of this http client. Finally please open an enhancement request for the filtering you were mentioning. Thank you for the help so far. I as requested installed 0.13.0.20110270821 from the http://download.eclipse.org/technology/m2e/updates/M update site. I have this available slide by side with an eclipse with the 0.12 release if needed. The "Search Maven POM" no longer returns any values when I search for maven-clean-plugin (I also rebuilt the index by hand just to be sure.) I've validated with -Djavax.net.debug=all that SSL traffic during the index update is happening. The behavior of the "Maven Repositories / Global Repositories" is the same in that the indexes update but still only show an empty directory in the browser (like under 0.12). The issues doesn't seem to be a transport issue m2e is communicating with the repository and getting back what appear to be valid "200" HTTP response codes. Is there any way to debug or trace what it is trying to do when initiating a search or trying to display the Maven Repositories view for the remote index? I was finally able to track down the root cause of the behavior. In all my tests I had been using a Nexus Repository Group and it appears that m2eclipse (0.12 and 0.13) would not allow me to browse the index of in the Maven Repositories view. When I switched over to using the Nexus Repositories within the group directly everything started work. I could find no documentation related to this limitation. Is there a reason that indexes of Nexus Repository Groups are not visualized in the m2eclipse Maven Repositories view? They can be viewed in Nexus web administration window and the contents of the groups can be referenced by a POM. Thank you very much for tracking this problem. I was not aware of it. The published index format in Nexus 1.9 has become incompatible with the indexer that ships with M2E. We might want to consider upgrading the index libraries in M2E as a workaround, but this is a bug against Nexus: https://issues.sonatype.org/browse/NEXUS-4149 I'm trying to see if this warrants a patch release (I think it might). I'll update this issue when I have more information. We've found the problem, and will be making a new Nexus 1.9 release (1.9.0.2) to fix it. This will likely be released early next week. as per comment 16, this is not an m2e issue. |