cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Up Dev-Environment with SDK2.1

jogla
Champ in-the-making
Champ in-the-making
Hello,
I made several trials to set up a development environment in order to follow the tutorials by Jeff Pott [ http://ecmarchitect.com/alfresco-developer-series ].
I always get stuck at the same Point.

In our company I am sitting behind a proxy/frewall. I managed to get through it by using a CNTLM-Service on my Computer.
As you see in the file [ https://docs.google.com/document/d/15uRRmT2kwjrkRrSOmAnvOyf8_41ehoxiw6IJA1KW-Xo/edit?usp=sharing (shortened logfile) / full file: see the attached textfile] at first all went well:
mvn –Version …OK.
mvn archetype:generate -Dfilter=org.alfresco:  …OK.

but when ist come to
mvn install
the download process gets stuck with several errors. Always at the same position.

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.alfresco.maven.plugin:alfresco-maven-plugin:2.1.0 or one of its dependencies could not be resolved: Failed to collect dependencies at org.alfresco.maven.plugin:alfresco-maven-plugin:jar:2.1.0 -> org.alfresco:alfresco-mmt:jar:5.0.d @
[ERROR] Unknown packaging: amp @ line 9, column 16



=> Can anyone see what the probelm is?
=> What's the best way to analyze?
=> Is there a way to download the whole package (with all dependencies)?

Best regards,
Joerg Glasauer

———–

ERRORS:


Downloading: http://oss.sonatype.org/content/groups/public/org/clojars/pmonks/spinner/0.2.0/spinner-0.2.0.pom
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/clojars/pmonks/spinner/0.2.0/spinner-0.2...
Downloading: https://artifacts.alfresco.com/nexus/content/groups/public/org/clojars/pmonks/spinner/0.2.0/spinner-...
Downloading: https://artifacts.alfresco.com/nexus/content/groups/public-snapshots/org/clojars/pmonks/spinner/0.2....
Downloading: https://repo.maven.apache.org/maven2/org/clojars/pmonks/spinner/0.2.0/spinner-0.2.0.pom
Downloading: http://clojars.org/repo/org/clojars/pmonks/spinner/0.2.0/spinner-0.2.0.pom
Downloaded: http://clojars.org/repo/org/clojars/pmonks/spinner/0.2.0/spinner-0.2.0.pom (4 KB at 9.4 KB/sec)
Downloading: https://artifacts.alfresco.com/nexus/content/groups/public/org/alfresco/alfresco-platform-distributi...
Downloading: https://artifacts.alfresco.com/nexus/content/groups/public-snapshots/org/alfresco/alfresco-platform-...
Downloading: https://repo.maven.apache.org/maven2/org/alfresco/alfresco-platform-distribution/5.0.d/alfresco-plat...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.alfresco.maven.plugin:alfresco-maven-plugin:2.1.0 or one of its dependencies could not be resolved: Failed to collect dependencies at org.alfresco.maven.plugin:alfresco-maven-plugin:jar:2.1.0 -> org.alfresco:alfresco-mmt:jar:5.0.d @
[ERROR] Unknown packaging: amp @ line 9, column 16
[ERROR] Non-resolvable import POM: Could not transfer artifact org.alfresco:alfresco-platform-distribution:pom:5.0.d from/to alfresco-public (https://artifacts.alfresco.com/nexus/content/groups/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target @ line 48, column 25
[ERROR] 'dependencies.dependency.version' for org.alfresco:alfresco-repository:jar is missing. @ line 62, column 21
[ERROR] 'dependencies.dependency.version' for junit:junit:jar is missing. @ org.alfresco.maven:alfresco-sdk-parent:2.1.0, C:\Users\glasauerj\.m2\repository\org\alfresco\maven\alfresco-sdk-parent\2.1.0\alfresco-sdk-parent-2.1.0.pom, line 701, column 29 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project at.kabeg:kabeg-mvn-sdk21tutorial-repo:1.0-SNAPSHOT (C:\Daten\AlfSDK21TutorialHome\kabeg-mvn-sdk21tutorial-repo\pom.xml) has 5 errors
[ERROR]     Unresolveable build extension: Plugin org.alfresco.maven.plugin:alfresco-maven-plugin:2.1.0 or one of its dependencies could not be resolved: Failed to collect dependencies at org.alfresco.maven.plugin:alfresco-maven-plugin:jar:2.1.0 -> org.alfresco:alfresco-mmt:jar:5.0.d: Failed to read artifact descriptor for org.alfresco:alfresco-mmt:jar:5.0.d: Could not transfer artifact org.alfresco:alfresco-mmt:pom:5.0.d from/to sonatype-public (http://oss.sonatype.org/content/groups/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 2]
[ERROR]     Unknown packaging: amp @ line 9, column 16
[ERROR]     Non-resolvable import POM: Could not transfer artifact org.alfresco:alfresco-platform-distribution:pom:5.0.d from/to alfresco-public (https://artifacts.alfresco.com/nexus/content/groups/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target @ line 48, column 25 -> [Help 3]
[ERROR]     'dependencies.dependency.version' for org.alfresco:alfresco-repository:jar is missing. @ line 62, column 21
[ERROR]     'dependencies.dependency.version' for junit:junit:jar is missing. @ org.alfresco.maven:alfresco-sdk-parent:2.1.0, C:\Users\glasauerj\.m2\repository\org\alfresco\maven\alfresco-sdk-parent\2.1.0\alfresco-sdk-parent-2.1.0.pom, line 701, column 29
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException
[ERROR] [Help 3] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
4 REPLIES 4

gravitonian
Star Collaborator
Star Collaborator
It looks like you cannot download from https://artifacts.alfresco.com. So your Java installation might not have correct CA path to artifacts cert.

Try using the following class to test this, you should see something like:

martin@gravitonian:~/tools$ java SSLPoke artifacts.alfresco.com 443
Successfully connected

You can download this class from for example: https://confluence.atlassian.com/display/JIRAKB/Unable+to+Connect+to+SSL+Services+due+to+PKIX+Path+B...

jogla
Champ in-the-making
Champ in-the-making
Thank you Martin.
after downloading and using the additional class I'm getting the following back:

C:\Daten\AlfSDK21TutorialHome>java SSLPoke artifacts.alfresco.com 443
java.net.ConnectException: Connection timed out: connect
        at java.net.DualStackPlainSocketImpl.connect0(Native Method)
        at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
        at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
        at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
        at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.<init>(Unknown Source)
        at sun.security.ssl.SSLSocketFactoryImpl.createSocket(Unknown Source)
        at SSLPoke.main(SSLPoke.java:25)



edited:
Just tried to connect with curl an got the following back:


C:\Daten\AlfSDK21TutorialHome>curl -v -IHEAD https://artifacts.alfresco.com
* Rebuilt URL to: https://artifacts.alfresco.com/
* Hostname was NOT found in DNS cache
*   Trying 127.0.0.1…
* Connected to 127.0.0.1 (127.0.0.1) port 3128 (#0)
* Establish HTTP proxy tunnel to artifacts.alfresco.com:443
> CONNECT artifacts.alfresco.com:443 HTTP/1.1
> Host: artifacts.alfresco.com:443
> User-Agent: curl/7.37.0
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 200 Connection established
HTTP/1.1 200 Connection established
< Connection: close
Connection: close
<

* Proxy replied OK to CONNECT request
* successfully set certificate verify locations:
*   CAfile: C:\Program Files\cURL\bin\curl-ca-bundle.crt
  CApath: none
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS alert, Server hello (2):
* SSL certificate problem: self signed certificate in certificate chain
* Closing connection 0
curl: (60) SSL certificate problem: self signed certificate in certificate chain
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the –cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or –insecure) option.




I looked at the traffic with whireshark there are only 3 short connections from my computer to "162.13.213.78" an nothing comes back.
I think I speak to our firewall admin?

Or is there a way to download the whole package from outside of our Company network and bring the full set inside ("manually")=> Then: what parts do I have to take?

:-j,
Joerg

gravitonian
Star Collaborator
Star Collaborator
Hi,

I think you need to get your network admin to open up the connection to the Alfresco Nexus server (Maven repo). It is not practical to start downloading all artifacts and then install them manually in your local maven repo. You might also make sure that the Maven central repo is accessible (http://repo1.maven.org/maven/)

jogla
Champ in-the-making
Champ in-the-making
I hope they'll support me.

Thank you Martin!