开发者

Publishing a generated JAR file to Maven using SBT

I have an SBT Project that creates a JAR file using some external tool (开发者_运维百科all working fine), i.e. it's not compiling source code. I have the Maven Repo correctly configured with correct Credentials but I am struggling to figure out how to configure the artifact so it publishes the generated JAR file.

My JAR file is "target/my.jar".

I've overridden artifacts as follows:

override def artifacts = Set(Artifact("my.jar", "jar", "jar"))

publish outputs the following

No dependency configuration found, using defaults. [info] :: publishing :: org.foo#my-project_2.9.0

Can anyone point me in the right direction with this neat tool?

Thanks!


Did you set up the publishTo like this:

 override def managedStyle = ManagedStyle.Maven
 val publishTo = "My Repo" at "http://foo.bar/content/repositories/releases"

Then you run the 'publish' action. You can also do 'publish local'.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜