我正在处理的下载的应用程序具有无版本的依赖性。
似乎它(import UIKit
import SpriteKit
class GameViewController: UIViewController {
let scene = GameScene(fileNamed:"GameScene")
var touchedInPlayer = false
func goto(target: String) {
let storyboard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
let vc: UINavigationController = storyboard.instantiateViewControllerWithIdentifier(target) as! UINavigationController
self.presentViewController(vc, animated: false, completion: nil)
}
override func viewDidLoad() {
super.viewDidLoad()
// Configure the view.
let skView = self.view as! SKView
skView.ignoresSiblingOrder = true
scene!.scaleMode = .AspectFill
skView.presentScene(scene)
}
override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {
let location = touches.first!.locationInNode(scene!.player)
let locationInWorld = touches.first!.locationInNode(scene!.world)
if location.x < 25 && location.x > -25 && location.y < 25 && location.y > -25 {
touchedInPlayer = true
scene!.player.position = locationInWorld
}
}
override func touchesMoved(touches: Set<UITouch>, withEvent event: UIEvent?) {
//finds the location of the touch
let location = touches.first!.locationInNode(scene!.world)
//tests if the touch was in the player's square and moves the player to touch
if scene!.player.containsPoint(location) {
scene!.player.position = location
}
//what should happen when the 2 squares intersect
if scene!.player.intersectsNode(scene!.spinningGreenSquare) {
goto("Another View")
}
}
)只有x.y.z-M1&lt; - &gt; M4包,var storyboardViewName = "Lender-Details-View"
override func viewWillAppear(animated: Bool) {
super.viewWillAppear(animated)
// [START GOOGLE ANALYTICS]
var tracker = GAI.sharedInstance().defaultTracker
tracker.set(kGAIScreenName, value: storyboardViewName)
var builder = GAIDictionaryBuilder.createScreenView()
tracker.send(builder.build() as [NSObject : AnyObject])
// [END GOOGLE ANALYTICS]
//.... other code here .....
}
和spring-boot-devtools
都不想在声明为:
mvn
错误是:
无法找到工件org.springframework.boot:spring-boot-devtools:jar:1.3.0.M1 in central(repo.maven.apache.org/maven2)
我在那里错过了什么?我应该手动下载&amp;把它放在正确的位置?
答案 0 :(得分:2)
Maven Central不提供Spring里程碑版本。它们仅在Spring里程碑存储库(documentation)上可用。
因此,您需要将以下存储库添加到pom.xml
:
<repository>
<id>spring-milestone</id>
<url>http://maven.springframework.org/milestone</url>
</repository>