發表文章

目前顯示的是 1月, 2016的文章

The resource could not be loaded because the App Transport Security policy requires the use of a secure connection

Transport security   is provided in iOS 9.0 or later, and in OS X v10.11 and later. So by default only   https   calls only allowed in apps. To turn off App Transport Security add following lines in   info.plist   file... NSAppTransportSecurity NSAllowsArbitraryLoads For more info: https://developer.apple.com/library/prerelease/ios/technotes/App-Transport-Security-Technote/   Reference: http://stackoverflow.com/questions/32631184/the-resource-could-not-be-loaded-because-the-app-transport-security-policy-requi

Maven file transfer failure

When using maven to get dependencies, files are required to download from respository. In some situation, file transfer may be failure. The following exception will be encountered:   Description Resource Path Location Type Could not calculate build plan: Failure to transfer xxxxxx:pom:xx.xx.xx from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact xxxxxxx:xxxx:pom:xx.xx.xx from/to central ( http://repo1.maven.org/maven2 ):                                                                                                Solution: Remove all the failed download from your local respository: Mac or Linux: find ~/.m2  -name "*.lastUpdated" -exec grep -q "Could not transfer" {} \; -print -exec rm {} \; Windows: cd %userprofile%\.m2\repository for /r %i in (*.lastUpdated) do del %i