Giter Site home page Giter Site logo

sbt-maven-plugin's Introduction

  • Abstraction is great, but not too much.
  • Optimize for simplicity, but not easy.
  • Pick the right defaults, opt-in vs opt-out.

sbt-maven-plugin's People

Contributors

erikfried avatar germanosin avatar kirstin-rhys avatar taokim avatar zen0wu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sbt-maven-plugin's Issues

sbt.IncompatiblePluginsException: Binary incompatibility in plugins detected

Hello,

I am working on a Maven project that uses Scala 2.9. When trying to launch sbt as suggestion in your homepage, I have got this exception and I guess it is to do with the version difference. Would you have a plugin built for Scala 2.9?

Many thanks.

Cheeven

[info] Loading project definition from C:\Projects\new-jump\XXXXX\project
[info] Loading [pom.xml]
[info] Loading maven settings from [C:\Users\xxxxx/.m2/settings.xml]
[info] Use auto-generated Build object
[warn] Cannot resolve parent definition of [pom.xml]
[error] sbt.IncompatiblePluginsException: Binary incompatibility in plugins detected.
[error] Use 'last' for the full log.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?

Use with ProjectRef

It would be nice if this could be used with a project ref, to build a remote, unpublished project using sbt:

lazy val someMvnProject = RootProject(uri("git://github.com/somemvn/project.git"))
  .enablePlugins(MvnPlugin)

lazy val root = (project.in(file(".")).dependsOn(someMvnProject)

Exactly how to use this plugin

Hi!

Please, provide more info on how to use your plugin. I did what it says in Usage section for single module maven projects but with no luck.

I add
addSbtPlugin("com.github.shivawu" % "sbt-maven-plugin" % "0.1.0")
to project/plugins.sbt

Then I run sbt and it print:
$ sbt
[info] Loading project definition from /mypath/myproject/project
[info] Updating {file:/hmypath/myproject/project/}default-e07e35...
[info] Resolving org.scala-sbt#precompiled-2_10_0;0.12.2 ...
[info] Done updating.
[info] Loading [pom.xml]
[success] POM definition loaded
[info] Set current project to default-3d2470 (in build file:/mypath/myprject/)

Then I type update:

update
[info] Updating {file:/mypath/myproject/}default-3d2470...
[info] Resolving org.scala-lang#scala-library;2.9.1 ...
[info] Done updating.
[success] Total time: 0 s, completed 25.03.2013 17:50:20

Then I type compile:

compile
[info] Compiling 23 Scala sources to /mypath/myproject/target/scala-2.9.1/classes...
[error] /mypath/myproject/src/main/scala/ru/ipsoft/statserver/AppProperties.scala:5: object weiglewilczek is not a member of package com
[error] import com.weiglewilczek.slf4s.Logger
[error] ^
... lots of compilation errors below ...

So compilation fails and it seems it cannot resolve dependencies. Also I don't know how to access artifactId, version and other maven stuff from sbt. Maybe I should also add something to build.sbt or any other place?

allow global plugin setting?

I work across different scala projects, some in sbt, others exclusively maven. It would be nice if I could set the sbt-maven-plugin globally (in ~/.sbt/<version>/plugins/build.sbt) and then let this plugin detect if there is a pom.xml in my working directory to decide if a pom.xml should be used.

Issue with getting project.version

How can I get project.version from pom? I would need to use that version for naming my rpm file name in build.sbt and also I have a application.properties file on project resources folder that has a value version=${project.version}. This gets filled by maven if I would do package for instance but with this sbt plugin it never gets filled.

Maven goals

Hi,

is it possible to run certain Maven goals and options with the plugin? Say, pretty usual scenario 'mvn clean install -DskipTests'

Thanks for support,
Dmitry

Release for Scala 2.10/2.11

Hi, your plugin seems great. I'd love to try it out.

When I try to use this, I get this output:

      [sbt] [info] Loading global plugins from /Users/tim/.sbt/0.13/plugins
      [sbt] [info] Updating {file:/Users/tim/.sbt/0.13/plugins/}global-plugins...
            [info] Resolving org.fusesource.jansi#jansi;1.4 ...[info] Done updating.
      [sbt] [info] Loading project definition from xxx
      [sbt] [info] Updating {file:xxx-build...
            [info] Resolving com.github.shivawu#sbt-maven-plugin;0.1.2 ...[warn]        module not found: com.github.shivawu#sbt-maven-plugin;0.1.2
      [sbt] [warn] ==== typesafe-ivy-releases: tried
      [sbt] [warn]   https://repo.typesafe.com/typesafe/ivy-releases/com.github.shivawu/sbt-maven-plugin/scala_2.10/sbt_0.13/0.1.2/ivys/ivy.xml
      [sbt] [warn] ==== sbt-plugin-releases: tried
      [sbt] [warn]   https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.github.shivawu/sbt-maven-plugin/scala_2.10/sbt_0.13/0.1.2/ivys/ivy.xml
      [sbt] [warn] ==== local: tried
      [sbt] [warn]   /Users/tim/.ivy2/local/com.github.shivawu/sbt-maven-plugin/scala_2.10/sbt_0.13/0.1.2/ivys/ivy.xml
      [sbt] [warn] ==== public: tried
      [sbt] [warn]   https://repo1.maven.org/maven2/com/github/shivawu/sbt-maven-plugin_2.10_0.13/0.1.2/sbt-maven-plugin-0.1.2.pom

It seems it needs the 2.10 version, but maven central only has the 2.9.2 version with sbt(?) version 12 (see https://repo1.maven.org/maven2/com/github/shivawu/).
Is it possible to release this version to maven central?

multi-module usage?

I've been staring at the "multi-module" usage section and it's not clear at all how to use this plugin for multiple modules?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.