Well the mavenizer uses search.maven.org to check if an artifact with the same 
hash has been deployed to maven central, as I think it would be a bad idea to 
deploy third party libs as apache flex libs and would rather re-use existing 
deployments. If your host can't access this address, that's the error you'll be 
getting. (Some companies block access to it as they want their developers to 
use the company internal Nexus/Artifactory/Whatsoever). 

Eventually I could implement an "offline mode" that avoids the checksum query, 
but will deploy a lot more libraries.

Chris

________________________________________
Von: Gautam Pandey <[email protected]>
Gesendet: Mittwoch, 5. November 2014 13:30
An: [email protected]
Betreff: Re: Mavenize Apache Flex SDK 4.13 in couple with Air 15

Hi Chris,
    I tried the steps given in the doc and I am getting below error. I
wanted to mavenize sdk 4.13.

F:\apache\flex\sdk>java -jar
F:\GIT\apachegit\flex-utilities\mavenizer\mavenizer\target\mavenizer.jar
F:\apache\flex\sdk F:\apache\flex\mavenizedsdk

Exception in thread "main"
com.sun.jersey.api.client.ClientHandlerException:
java.net.UnknownHostException: search.maven.org
        at
com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:149)
        at com.sun.jersey.api.client.Client.handle(Client.java:648)
        at
com.sun.jersey.api.client.WebResource.handle(WebResource.java:680)
        at
com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
        at
com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:507)
        at
org.apache.flex.utilities.converter.BaseConverter.lookupMetadataForChecksum(BaseConverter.java:141)
        at
org.apache.flex.utilities.converter.BaseConverter.resolveArtifact(BaseConverter.java:336)
        at
org.apache.flex.utilities.converter.flex.FlexConverter.generateCompilerArtifacts(FlexConverter.java:107)
        at
org.apache.flex.utilities.converter.flex.FlexConverter.processDirectory(FlexConverter.java:68)
        at
org.apache.flex.utilities.converter.BaseConverter.convert(BaseConverter.java:90)
        at
org.apache.flex.utilities.converter.core.SdkConverter.main(SdkConverter.java:52)
Caused by: java.net.UnknownHostException: search.maven.org
        at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:579)
        at java.net.Socket.connect(Socket.java:528)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
        at sun.net.www.http.HttpClient.New(HttpClient.java:308)
        at sun.net.www.http.HttpClient.New(HttpClient.java:326)
        at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:996)
        at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932)
        at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850)
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1300)
        at
java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
        at
com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:240)
        at
com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:147)
        ... 10 more


Please let me know if I am missing anything.

Thanks & Regards
Gautam Pandey


On Tue, Nov 4, 2014 at 2:21 PM, Christofer Dutz <[email protected]>
wrote:

> Yesterday I updated the Mavenizer and the Documentation. Now there is a
> "mavenizer" module that produces a big, fat jar containing everything you
> should need. See the updated documentation at:
> https://cwiki.apache.org/confluence/display/FLEX/Apache+Flex+SDK+Mavenizer
>
> Chris
>
> ________________________________________
> Von: Christofer Dutz <[email protected]>
> Gesendet: Freitag, 31. Oktober 2014 13:50
> An: [email protected]
> Betreff: AW: Mavenize Apache Flex SDK 4.13 in couple with Air 15
>
> Ok seeing your first post (Sort of skipped that)
>
> The new mavneizer consists of several parts. Each one in a dedicated
> module producing a dedicated jar. If you want to run it from the
> commandline you would have to add all these jars as well as the dependenies
> to your classpath. An alternative would be to have a no-deps jar created
> and using this. But till that's in I would recommend using Eclipse with
> M2Eclipse or IntelliJ or Netbeans and run the main classes from in these as
> the IDE takes care of configuring the classpath for you.
>
> Chris
>
> ________________________________________
> Von: 4xy <[email protected]>
> Gesendet: Freitag, 31. Oktober 2014 12:25
> An: [email protected]
> Betreff: Re: Mavenize Apache Flex SDK 4.13 in couple with Air 15
>
> May be I'm dense, but:
>
> I did this.
>
> git clone https://git-wip-us.apache.org/repos/asf/flex-utilities.git
> cd flex-utilities/mavenizer
> mvn package
>
> This gave me the result:
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] flex-sdk-converter ................................ SUCCESS [1.230s]
> [INFO] converters ........................................ SUCCESS [0.038s]
> [INFO] base-converter .................................... SUCCESS [0.599s]
> [INFO] air-converter ..................................... SUCCESS [0.113s]
> [INFO] flash-converter ................................... SUCCESS [0.135s]
> [INFO] flex-converter .................................... SUCCESS [0.130s]
> [INFO] retrievers ........................................ SUCCESS [0.018s]
> [INFO] base-retriever .................................... SUCCESS [0.194s]
> [INFO] download-retriever ................................ SUCCESS [0.089s]
> [INFO] core .............................................. SUCCESS [1.603s]
> [INFO] deployers ......................................... SUCCESS [0.011s]
> [INFO] maven-deployer .................................... SUCCESS [0.058s]
> [INFO] aether-deployer ................................... SUCCESS [2.519s]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 6.982s
> [INFO] Finished at: Fri Oct 31 15:13:24 MSK 2014
> [INFO] Final Memory: 33M/532M
> [INFO]
> ------------------------------------------------------------------------
>
> NOTE: 'flex-utilities/mavenizer/target' directory doesn't contain
> flex-sdk-converter-1.0.jar.
>
> Eventually I found flex-sdk-converter-1.0.0-SNAPSHOT.jar under the
> flex-utilities/mavenizer/core/target
>
> I tried
>
> java -cp flex-sdk-converter-1.0.0-SNAPSHOT.jar SDKGenerator
> path/to/flex-sdk
> path/to/mavenized-flex-sdk false
>
> got
> Error: Could not find or load main class SDKGenerator
>
> I tried
> java -jar flex-sdk-converter-1.0.0-SNAPSHOT.jar path/to/flex-sdk
> path/to/mavenized-flex-sdk false
> got
> Usage: SDKConverter {source-directory} {target-directory}
>
> I tried
> java -jar flex-sdk-converter-1.0.0-SNAPSHOT.jar path/to/flex-sdk
> path/to/mavenized-flex-sdk
>
> And it's worked, but with org.apache namespace, but I need com.adobe. I
> looked into the source code and saw it doesn't accept third parameter.
>
> Ok, I also see the sources under the 'flex-utilities/mavenizer/src'
>
> And I really see the SDKGenerator class mentioned in the manual, but the
> pom.xml (localed in 'flex-utilities/mavenizer') has no directions on how to
> build it, so I have nothing in 'flex-utilities/mavenizer/target'.
>
> Suggestions?
>
>
>
>
>
>
>
>
>
>
> --
> View this message in context:
> http://apache-flex-users.2333346.n4.nabble.com/Mavenize-Apache-Flex-SDK-4-13-in-couple-with-Air-15-tp8549p8554.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>

Reply via email to