Spring Boot上传BootRepackage可执行文件夹(Spring Boot Upload BootRepackage Executable Jar)
我正在使用Spring-Boot来开发我的新项目。 在我的build.gradle文件中,我使用'bootRepackage.classifier',因此我可以单独生成我的项目的默认jar和使用Spring Boot生成的可执行jar。 我想发布两个罐子,但我遇到了问题。 我正在使用uploadArchives任务将我的jar上传到Nexus Maven存储库。 我只能上传我的默认jar。 以下是我的build.gradle文件中与上传档案有关的部分:
bootRepackage.classifier = 'exec' jar { baseName='default' version = '1.0.0' } uploadArchives { repositories { mavenDeployer { repository(url: "repositoryURL") { authentication(userName: "username", password: "password") } pom.groupId = 'groupId' pom.version = "1.0.0" } } }
我错过了什么吗?
I am using Spring-Boot to develop my new project. In my build.gradle file, I am using 'bootRepackage.classifier', so I can separately generate the default jar of my project and the executable jar that is generated using Spring Boot. I would like to publish both jars, but I am running into issues. I am using the uploadArchives task to upload my jars to a Nexus Maven repository. I can only get my default jar to upload. Here is the part of my build.gradle file that pertains to uploading the archive:
bootRepackage.classifier = 'exec' jar { baseName='default' version = '1.0.0' } uploadArchives { repositories { mavenDeployer { repository(url: "repositoryURL") { authentication(userName: "username", password: "password") } pom.groupId = 'groupId' pom.version = "1.0.0" } } }
Am I missing something?
原文:https://stackoverflow.com/questions/39456951
最满意答案
在iPhone上我已经通过仅使用
UIKit
完成了这个...而且我没有任何问题。 所以我会回答纯粹的UIKit
。 在iWatch上,我没有足够的知识来回答你这个部分。你说你想要
UIImageView
,但我不认为你想这样做。 相反,您应该将UIView
子类化并私下管理UIImageView
实例。此外,当且仅当您想在应用程序中仅为该组件使用
SpritKit
,您应该避免使用它,因为您拥有的依赖性越小,您就越高兴。 但这是我个人对此的想法。On iPhone I've already done this by only using
UIKit
... And I didn't have any problem with it. So I would answer pureUIKit
. On iWatch, I don't have the knowledge to answer you about this part.You said you want to subclass
UIImageView
, but I don't think you want to do that. Instead, you should subclassUIView
and manageUIImageView
instances privately.Also, if and only if you want to use
SpritKit
only for that component in your application, you should avoid using it because the less dependency you have, the more happy you are. But it's my personal thought about that.
相关问答
更多-
ios - 结合OpenGL和UIKit CoreGraphics性能(ios - Combining OpenGL and UIKit CoreGraphics perfomance)[2023-07-01]
不,当您在OpenGLES或Metal层上使用UI组件时,没有明显的性能下降。 在iOS 4或5之前,如果将两者结合起来,FPS会大幅下降。 它在旧版本中使用减少一半。 但是,Apple早就解决了这个问题。 来源:我是名为Iyan 3d的应用程序的开发人员,它大量使用这种组合。 OpenGLES或Even Metal中的FPS独立于UI复杂性。 No, there is no noticeable performance drop when you use UI components over a Open ... -
iPhone应用程序崩溃:UIKit(iPhone app crash: UIKit)[2024-01-15]
根据我的读数,这是UIApperence或[UIColor colorWithPatternImage:]在ios 6中的错误 所以请检查你的代码。 如果您的应用中有该代码,请使用纯色。 以下是我得出这一结论的几条链接: 1) 使用本地共享对话框在Facebook上发布IOS错误 - UICGColor encodeWithCoder 2) UIApperance和各种崩溃 3) UIApperance和各种崩溃 4) iOS 6 MFMailComposeViewController:只支持RGBA或白色 ... -
spritekit SKView是viewcontroller的视图。 每个子视图都将呈现在它上面。 您是否有特殊原因要将Spritekit用于操纵杆? 否则我建议用标准的UIKit元素制作它,然后在imageView之后添加它。 在其他视图之上使用SKView将无法获得所需的结果,因为它不具有透明背景。 您的代码的另一个问题:您不应该在viewWillLayoutSubviews创建和添加视图,因为可以多次调用此方法(例如,每个设备Rotation)。 请改用viewDidLoad 。 The sprit ...
-
混合OpenGL和UIKit(Mixing OpenGL and UIKit)[2023-10-04]
取决于你的目标受众。 如果你关心较老的iPhone用户,那么混合UIKit和OpenGL可能不会很好,因为旧iPhone不能很好地处理这个问题。 较新的处理它就好了。 今年早些时候,我看到了Noel Llopis的一个会议,他在那里展示了OpenGL和UIKit的混合是多么的酷。 在这里看到/听到它: http : //www.slideshare.net/llopis/the-best-of-both-worlds-mixing-uikit-with-opengl (hm,我没有听到那个音频,但也许这就是 ... -
在iPhone上我已经通过仅使用UIKit完成了这个...而且我没有任何问题。 所以我会回答纯粹的UIKit 。 在iWatch上,我没有足够的知识来回答你这个部分。 你说你想要UIImageView ,但我不认为你想这样做。 相反,您应该将UIView子类化并私下管理UIImageView实例。 此外,当且仅当您想在应用程序中仅为该组件使用SpritKit ,您应该避免使用它,因为您拥有的依赖性越小,您就越高兴。 但这是我个人对此的想法。 On iPhone I've already done this ...
-
添加我的评论作为答案, 您可能必须创建自己的方法来基于设备获取图像。 在这种情况下,您不应该使用@ 2x命名图像。 您的方法应该根据设备和视网膜显示获取图像,并返回可用于创建UIImage对象的图像名称。 此方法可以是UIImage添加的类别。 例如: - [UIImage testImageNamed:@"test.png"]; 并将testImageNamed方法实现为UIImage中的一个类别, UIImage类别根据设备和视网膜/非视网膜分辨率返回testRetina.png或test.png 。 ...
-
如何在WatchKit扩展应用程序中实现SpriteKit?(How do you implement SpriteKit within a WatchKit extension app?)[2023-10-11]
这是旧的,但只是想提一下,在watchOS 3中你可以使用SpriteKit和SceneKit。 This is old, but just wanted to mention that in watchOS 3 you can use SpriteKit and SceneKit. -
我终于弄清楚问题对我来说是什么。 我正在使用viewController的 - (void)willLayoutSubviews方法来确保我有正确的边界,但我忘了看我的SKScene是否已经呈现。 这导致每次将视图放在旧视图之上时,会出现一个新的welcomeScene。 -(void)willLayoutSubviews { if(!self.didPresentScene) { // Present scene here .... self ...
-
在UIKit中获取内存泄漏?(Getting memory leak in UIKit?)[2022-05-08]
第一: 你有一个可能的,可见的泄漏,但我不确定它是否与仪器中发现的泄漏相同: 这两行都在viewDidLoad方法中 _carouselItems = [[NSMutableArray alloc] initWithCapacity:1]; _categorymAr = [[NSMutableArray alloc] initWithCapacity:1]; 但是: viewDidLoad:每当视图由其控制器加载时调用。 如果控制器清除视图(例如在内存警告之后),则在第二个view ... -
我在datetimepicker中看到了相同的新约会行为,所以它似乎是一个如何实现控件的怪癖。 我不确定它有多大问题,因为同时旋转多个轮子并不是datetimepicker的常见使用模式。 I'm seeing the same behavior in the datetimepicker for a new appointment, so it seems to be a quirk of how the control is implemented. I'm not sure how big a pro ...