Caoilte O'Connor | 19 Aug 18:26 2014
Picon

Fwd: [scalatest-users] insufficient context in test failure because of IllegalAnnotationException

Hi,
I get the following JAXB error from sbt when one of my scalatest tests fail

[info] - A Simple class serializes correctly *** FAILED ***
[info]   com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
[info]   at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:91)

which is insufficient to understand the nature of the problem. I get much more detail in IntelliJ when I run the test there

1 counts of IllegalAnnotationExceptions
com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
If a class has <at> XmlElement property, it cannot have <at> XmlValue property.
this problem is related to the following location:
at private final java.lang.String org.caoilte.model.Text.content3
at org.caoilte.atomizer.model.Text
this problem is related to the following location:
at private final java.lang.String org.caoilte.model.Text.text2
at org.caoilte.model.Text

at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:91)

Could there be an SBT deficiency preventing the entire stack from being printed? (I've already posted to the scalatest mailing list but it occurred to me that it works fine for scalatest in intellij - so it's more likely to be sbt)

c

--
You received this message because you are subscribed to the Google
Groups "scalatest-users" group.
To post to this group, send email to scalatest-users <at> googlegroups.com
To unsubscribe from this group, send email to
scalatest-users+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/scalatest-users?hl=en
ScalaTest itself, and documentation, is available here:
http://www.artima.com/scalatest
---
You received this message because you are subscribed to the Google Groups "scalatest-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalatest-users+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-tool+unsubscribe <at> googlegroups.com.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool.
For more options, visit https://groups.google.com/d/optout.
Luchesar Cekov | 18 Aug 12:38 2014
Picon

bintray-sbt cannot publish

I am trying to publish my project to bintray following the instruction to the letter from: https://github.com/softprops/bintray-sbt/blob/0.1.2/README.md


I keep getting:
java.lang.RuntimeException: was not able to find or create a package for luchesar in repo maven named sbt.SettingKey$$anon$4 <at> 6028e736
at scala.sys.package$.error(package.scala:27)
at bintray.Plugin$$anonfun$ensurePackageTask$1.apply(Plugin.scala:72)
at bintray.Plugin$$anonfun$ensurePackageTask$1.apply(Plugin.scala:45)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
at sbt.std.Transform$$anon$4.work(System.scala:64)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)

 Sounds really confusing to me and looks like nobody else has experience anything like that... Any suggestions?

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-tool+unsubscribe <at> googlegroups.com.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool.
For more options, visit https://groups.google.com/d/optout.
Xin Yao | 18 Aug 07:58 2014
Picon

How to get all the plugin infos in sbt task

Hi:

I am writing a sbt task. In this task, I want to get the list of plugins used by current project.

I have tried the keys: sbt.Keys.pluginData, sbt.Keys.definedSbtPlugins, but seems they are all not defined in scope compile.

The only way I can find now, is to scan and parse ./project/plugins.sbt and all the separate plugins.sbt file.

Is there any elegant way to do this.

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-tool+unsubscribe <at> googlegroups.com.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool.
For more options, visit https://groups.google.com/d/optout.
Maatary Okouya | 17 Aug 16:49 2014
Picon

Resolver issue when offline (without connection)

I try to work on my project while in an no internet connection zone. To my surprise, sbt is having trouble in that situation. Although, i'm supposed to have my libraries in the cache (given that i initially started the project online), sbt can't resolve some dependency. 


***Sbt can't fetch my local maven repository, neither can he find some other dependency that i thought he downloaded already (i.e. in the cache).*** 


*

>> My question is: how to ensure that  when i have the connection, sbt fetches the libs in the cache ONCE, so that when i don't have it, it fetches all my local repo including the one of maven.

 I'm asking this because to my understanding of the current situation (i.e. when no internet connection is available):

 1. sbt has trouble downloading from the maven cache
 2. sbt can find find most of my dependency in ivy local
 3. sbt can't find some specific dependency that for certain reasons,
    apparently were not cached.


For instance here is a trace of libs that sbt was supposed to have cached already but can't find when i don't have my connection

    [warn]   file:///Users/maatary/.m2/repository/com/google/inject/extensions/guice-assistedinject/4.0-beta4/guice-assistedinject-4.0-beta4.pom
    [info] Resolving com.google.inject.extensions#guice-multibindings;4.0-beta4 ...
    **[warn] Host repo1.maven.org not found.** url=http://repo1.maven.org/maven2/com/google/inject/extensions/guice-multibindings/4.0-beta4/guice-multibindings-4.0-beta4.pom
    **[info] You probably access the destination server through a proxy server that is not well configured.**
    [warn]  module not found: com.google.inject.extensions#guice-multibindings;4.0-beta4
    **[warn] ==== local: tried
    [warn]   /Users/maatary/.ivy2/local/com.google.inject.extensions/guice-multibindings/4.0-beta4/ivys/ivy.xml**
    [warn] ==== public: tried
    [warn]   http://repo1.maven.org/maven2/com/google/inject/extensions/guice-multibindings/4.0-beta4/guice-multibindings-4.0-beta4.pom
    [warn] ==== Local Maven Repository: tried
    [warn]   file:///Users/maatary/.m2/repository/com/google/inject/extensions/guice-multibindings/4.0-beta4/guice-multibindings-4.0-beta4.pom
    [info] Resolving jline#jline;2.12 ...                                          
    [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
    [warn]  ::          UNRESOLVED DEPENDENCIES         ::
    [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
    [warn]  :: com.google.inject.extensions#guice-assistedinject;4.0-beta4: not found
    [warn]  :: com.google.inject.extensions#guice-multibindings;4.0-beta4: not found

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-tool+unsubscribe <at> googlegroups.com.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool.
For more options, visit https://groups.google.com/d/optout.
Maatary Okouya | 16 Aug 17:43 2014
Picon

Sbt when no internet connection

Hi, 


I try to work on my project while in an no internet connection zone. So my wifi connection was out.  The network icon if off. To my surprise sbt is having trouble in that situation. Although, i have normally my library in the cache, sbt can't resolve some dependency. 


Sbt can't fetch my local maven repository neither can he find some other dependency that i thought he downloaded already. 


My question is, how to ensure that he fetch libs once when i have the connection and when i don't have it, making sure that he fetch all my local repo including the one of maven. 


My guess is he could find all the libs that he cached, but not the maven local repo and not certain lib that i don't understand why they where not cached. 


For instance here is a trace

[warn]   file:///Users/maatary/.m2/repository/com/google/inject/extensions/guice-assistedinject/4.0-beta4/guice-assistedinject-4.0-beta4.pom
[info] Resolving com.google.inject.extensions#guice-multibindings;4.0-beta4 ...
[warn] Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/com/google/inject/extensions/guice-multibindings/4.0-beta4/guice-multibindings-4.0-beta4.pom
[info] You probably access the destination server through a proxy server that is not well configured.
[warn]  module not found: com.google.inject.extensions#guice-multibindings;4.0-beta4
[warn] ==== local: tried
[warn]   /Users/maatary/.ivy2/local/com.google.inject.extensions/guice-multibindings/4.0-beta4/ivys/ivy.xml
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/com/google/inject/extensions/guice-multibindings/4.0-beta4/guice-multibindings-4.0-beta4.pom
[warn] ==== Local Maven Repository: tried
[warn]   file:///Users/maatary/.m2/repository/com/google/inject/extensions/guice-multibindings/4.0-beta4/guice-multibindings-4.0-beta4.pom
[info] Resolving jline#jline;2.12 ...                                          
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.google.inject.extensions#guice-assistedinject;4.0-beta4: not found
[warn]  :: com.google.inject.extensions#guice-multibindings;4.0-beta4: not found

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-tool+unsubscribe <at> googlegroups.com.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool.
For more options, visit https://groups.google.com/d/optout.
Maatary Okouya | 15 Aug 11:41 2014
Picon

Starting a Gui application from within SBT (OSX)

I am trying to start a jface/swt application (I know oldschool but legacy demand),from within SBT. jface/swt application requires the option "-XstartOnFirstThread"

I have tried to add

javaOptions := Seq("-XstartOnFirstThread", "-d64"), fork in run := true

But it does not work. Any idea how i can do that? or even if it possible?

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-tool+unsubscribe <at> googlegroups.com.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool.
For more options, visit https://groups.google.com/d/optout.
Maatary Okouya | 13 Aug 19:52 2014
Picon

help with sbt assembly

I am trying to publish an assembly artifact. The code online does not work in my build based on sbt 0.13.5.

I resorted to use a technics seen in a book:

lazy val assemblyArtifact = Def.setting { artifact.value.copy(classifier = Some("assembly")) }   artifacts += assemblyArtifact.value   packagedArtifacts +=   assemblyArtifact.value -> assemblyArtifact.value

which sounds ok to me still does not work, because of the last line:

assemblyArtifact.value -> assemblyArtifact.value

the compiler says:

error: No implicit for Append.Value[Map[sbt.Artifact,java.io.File], (sbt.Artifact, sbt.Artifact)] found, so (sbt.Artifact, sbt.Artifact) cannot be appended to Map[sbt.Artifact,java.io.File] packagedArtifacts += assemblyArtifact.value -> assemblyArtifact.value

I try to figure it out but i don't see any fix to that.

Do anyone has an idea ?

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-tool+unsubscribe <at> googlegroups.com.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool.
For more options, visit https://groups.google.com/d/optout.
Maatary Okouya | 13 Aug 15:03 2014
Picon

What is SBT global scope, how does it works ?

I have red the Doc on the different Scopes in SBT, but I have trouble being comfortable with the global scope Axis. I just don't understand in simple terms what does it correspond to?

Can someone provided a more elaborated but simpler explanation of the Global Scope than what in on the current Doc.

My first guess is that it is something encompassing the project scope. Something like for all project.

I would appreciate if one could take a bit of time to explain it.

Many thanks,

M

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-tool+unsubscribe <at> googlegroups.com.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool.
For more options, visit https://groups.google.com/d/optout.
Maatary Okouya | 12 Aug 18:26 2014
Picon

sbt configurations(scopes) vs Ivy configuration

 I have red Ivy quite deep to better understand SBT. However one thing is puzzling me: in ivy it is all about the configuration of a module that determines how to use or construct it. I was just wondering if the set of configuration are fixed in sbt : Compile, test, run, provided(?), global(?), default(?) ???

If it is possible to set new one, how would it be possible ?

What is the default configuration in which a artifact are published?

How can you set that the product artifact conf other than the default one? How to remove the default one?

Is there a way to list the available configuration?

Many thanks,

M

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-tool+unsubscribe <at> googlegroups.com.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool.
For more options, visit https://groups.google.com/d/optout.
Maatary Okouya | 11 Aug 22:19 2014
Picon

Implication of exportJars


I,

just started using an sbt Plugin for Packaging JavaFx/ScalaFx application: sbt-javafx. This under java 7. 

While the plugin seem to work pretty well, it is not able to properly package multi-module project. A workaround they have found is to use "exportsJars := true" in all the modules on which the javaFX  modules depends on. 

I also have intelliJ idea that can produce JavaFX application for me. although that would break the automated build. Even if i could leave with it, i think i would appreciate  to have the executable automated. 

Nevertheless, i need to understand the broad implication of that parameter on my sbt build. I don't want to find myself down the like, trying to fix some hack everywhere. 

So if someone, as a fairly good understanding of it, i would appreciate that you share it. 

Here is the help definition: "Determines whether the exported classpath for this project contains classes (false) or a packaged jar (true)."

It sounds like by default i is false why ? 

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-tool+unsubscribe <at> googlegroups.com.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool.
For more options, visit https://groups.google.com/d/optout.
Monosij Dutta-Roy | 11 Aug 18:51 2014
Picon

sbt / ivy home / cache directories


I wanted to find out what is the best way to set the SBT and IVY cache directories. 0.13.5.

I found on web some conflicting answers so wanted to check here.
sbt -Dsbt.boot.directory=/home/user/.sbt/boot/
sbt -Dsbt.ivy.home=/home/user/.sbt/.ivy2/

Can these be set as environment vars or do they need to be in each build.sbt?

If environ vars would they be sbt.boot.directory and sbt.ivy.home?
Again I ask as environ vars of type SBT_HOME etc.

Is it better to set in each build.sbt and possibly also as environ var?

Thanks.

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-tool+unsubscribe <at> googlegroups.com.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool.
For more options, visit https://groups.google.com/d/optout.

Gmane