Displaying #maven/2017-03-29.log:

Wed Mar 29 00:37:35 2017  cyberz:Joined the channel
Wed Mar 29 01:06:47 2017  cyberz:Joined the channel
Wed Mar 29 01:08:01 2017  jimklo_:Joined the channel
Wed Mar 29 01:19:59 2017  edvorg:Joined the channel
Wed Mar 29 01:25:15 2017  Sasazuka_:Joined the channel
Wed Mar 29 01:40:27 2017  edvorg:Joined the channel
Wed Mar 29 01:51:15 2017  ottO_:Joined the channel
Wed Mar 29 02:09:17 2017  bobbyja:Joined the channel
Wed Mar 29 02:10:02 2017  cyberz:Joined the channel
Wed Mar 29 02:26:37 2017  cyberz:Joined the channel
Wed Mar 29 02:29:59 2017  jimklo:Joined the channel
Wed Mar 29 02:38:37 2017  D9:Joined the channel
Wed Mar 29 03:01:42 2017  cyberz:Joined the channel
Wed Mar 29 04:25:58 2017  Keepa:Joined the channel
Wed Mar 29 04:56:59 2017  witquicked:Joined the channel
Wed Mar 29 05:29:34 2017  jimklo:Joined the channel
Wed Mar 29 05:34:40 2017  witquicked:Joined the channel
Wed Mar 29 05:38:15 2017  witquicked:Joined the channel
Wed Mar 29 05:55:38 2017  Fabricio20:Joined the channel
Wed Mar 29 06:05:39 2017  ppalaga:Joined the channel
Wed Mar 29 06:08:02 2017  mischat:Joined the channel
Wed Mar 29 06:30:38 2017  Sasazuka:Joined the channel
Wed Mar 29 06:33:13 2017  cyberz:Joined the channel
Wed Mar 29 06:53:48 2017  witquicked:Joined the channel
Wed Mar 29 07:06:52 2017  thc202:Joined the channel
Wed Mar 29 07:08:06 2017  cyberz:Joined the channel
Wed Mar 29 07:10:19 2017  TomyWork:Joined the channel
Wed Mar 29 07:21:54 2017  Hounddog:Joined the channel
Wed Mar 29 07:34:51 2017  jpoth:Joined the channel
Wed Mar 29 07:36:23 2017  bentech:Joined the channel
Wed Mar 29 07:54:31 2017  paissad:Joined the channel
Wed Mar 29 08:03:08 2017  IRQ`:Joined the channel
Wed Mar 29 08:15:59 2017  fomox:Joined the channel
Wed Mar 29 08:26:04 2017  masuberu:Joined the channel
Wed Mar 29 08:28:33 2017  olamy:Joined the channel
Wed Mar 29 08:30:09 2017  olamy:Joined the channel
Wed Mar 29 08:31:45 2017  olamy:Joined the channel
Wed Mar 29 08:33:21 2017  olamy:Joined the channel
Wed Mar 29 08:41:38 2017  vtunka:Joined the channel
Wed Mar 29 08:46:47 2017  mischat:Joined the channel
Wed Mar 29 08:48:26 2017  cyberz:Joined the channel
Wed Mar 29 08:49:38 2017  [1]Keepa:Joined the channel
Wed Mar 29 08:52:24 2017  paissad:Joined the channel
Wed Mar 29 10:08:58 2017  conan_:Joined the channel
Wed Mar 29 10:16:36 2017  olamy:Joined the channel
Wed Mar 29 10:34:43 2017  mischat:Joined the channel
Wed Mar 29 10:45:32 2017  masuberu:Joined the channel
Wed Mar 29 10:49:03 2017  conan_:Joined the channel
Wed Mar 29 11:47:38 2017  vtunka:Joined the channel
Wed Mar 29 11:54:25 2017  synthroid:Joined the channel
Wed Mar 29 12:05:29 2017  synthroi_:Joined the channel
Wed Mar 29 12:23:31 2017  ddwolf:Joined the channel
Wed Mar 29 12:47:24 2017  conan:Joined the channel
Wed Mar 29 13:10:20 2017  conan:Joined the channel
Wed Mar 29 13:26:20 2017  ottO_:Joined the channel
Wed Mar 29 13:41:17 2017  dudeji:Joined the channel
Wed Mar 29 13:42:39 2017  dudeji:Hi, I have one module which is common in two places how do i refer that in both projects ? | i saw that I needed to copy paste inside multimodule. so how do i refer both places ?
Wed Mar 29 14:04:23 2017  mischat:Joined the channel
Wed Mar 29 14:04:45 2017  vtunka:Joined the channel
Wed Mar 29 14:06:10 2017  Maxel_:Joined the channel
Wed Mar 29 14:17:09 2017  AmVarPG:Joined the channel
Wed Mar 29 14:37:32 2017  ekinmur:Joined the channel
Wed Mar 29 14:45:11 2017  conan_:Joined the channel
Wed Mar 29 14:56:36 2017  mischat:Joined the channel
Wed Mar 29 15:31:07 2017  tang^:Joined the channel
Wed Mar 29 15:36:23 2017  mischat:Joined the channel
Wed Mar 29 15:47:04 2017  oseph:Joined the channel
Wed Mar 29 15:52:56 2017  TomyWork:Joined the channel
Wed Mar 29 16:33:18 2017  mischat:Joined the channel
Wed Mar 29 16:40:04 2017  bobbyja:Joined the channel
Wed Mar 29 16:43:28 2017  bobbyja_:Joined the channel
Wed Mar 29 16:53:33 2017  rfscholte:Joined the channel
Wed Mar 29 17:16:40 2017  synthroid:Joined the channel
Wed Mar 29 17:25:09 2017  paissad:Joined the channel
Wed Mar 29 17:26:02 2017  paissad:hello guys, how must i configure the pom.xml so that it publish my artifact directly to either the snapshot or release repository (Artifactory) ? http://stackoverflow.com/questions/35158890/can-i-include-the-mvn-deploydeploy-file-in-the-pom-or-settings-xml-instead-of-c?answertab=active#tab-top
Wed Mar 29 17:26:58 2017  paissad:i have something like this in my pom.xml https://bpaste.net/show/ef6b5ccc872b
Wed Mar 29 17:27:34 2017  paissad:but where will deploy:deploy-file uploads the file ? ... artifactory will manage ?
Wed Mar 29 18:00:46 2017  Sasazuka:Joined the channel
Wed Mar 29 18:17:25 2017  fomox:Joined the channel
Wed Mar 29 18:26:22 2017  Sasazuka:Joined the channel
Wed Mar 29 18:26:59 2017  mischat:Joined the channel
Wed Mar 29 18:46:13 2017  jdcasey:Joined the channel
Wed Mar 29 19:13:47 2017  ppalaga_lunch:Left the channel
Wed Mar 29 19:22:36 2017  jimklo:Joined the channel
Wed Mar 29 20:21:00 2017  clofacto:Joined the channel
Wed Mar 29 20:21:04 2017  clofacto:hi
Wed Mar 29 20:36:31 2017  clofacto:i'm having a weird dependency problem with maven.. if someone can give me a hint that would be great ;)... Well, the thing is, in the basic example maven App, I did an import, and added the corresponding dependency in pom.xlm. OK, so running "mvn exec:java -D exec.mainClass=com.mycompany.app.App" works as expected, but doing "java -jar ./my-app-1.0-SNAPSHOT.jar" gives me a "NoClassDefFoundError".. and I don't know what else to try. :
Wed Mar 29 20:37:04 2017  Maldivia:clofacto: well, add all the dependencies on classpath as well when doing java -jar
Wed Mar 29 20:37:25 2017  clofacto:hi, Maldivia, thanks.. I'll try that..
Wed Mar 29 20:37:54 2017  clofacto:can you plz type the command?
Wed Mar 29 20:38:01 2017  Maldivia:meaning, <addClasspath>true</addClasspath> in the archiver plugin settings, or use shade or similar to make a "fat jar"
Wed Mar 29 20:38:16 2017  clofacto:oh, you mean in pom.xml
Wed Mar 29 20:38:58 2017  clofacto:right?
Wed Mar 29 20:39:10 2017  Maldivia:yeah
Wed Mar 29 20:39:24 2017  clofacto:look, here's my github repo with this basic app
Wed Mar 29 20:39:28 2017  clofacto:https://github.com/martinodb/maven-App
Wed Mar 29 20:39:46 2017  Maldivia:maven doesn't by default pack all dependencies into a jar, so you either have to supply them yourself (though -cp and -jar cannot be mixed on java commandline), or use a plugin just shade, to make a fat jar, or similar plugins to make a distribution
Wed Mar 29 20:41:03 2017  clofacto:sorry, this is the right link (development branch): https://github.com/martinodb/maven-App/blob/development/pom.xml
Wed Mar 29 20:42:30 2017  clofacto:you see, i'm using the plugin, but i cant get it right for some reason
Wed Mar 29 20:43:56 2017  clofacto:the only dependency is Apache commons lang3
Wed Mar 29 20:44:30 2017  clofacto:besides the default junit
Wed Mar 29 20:45:17 2017  clofacto:I've been all day with this, feeling dumb lol
Wed Mar 29 20:47:24 2017  Maldivia:clofacto: well, right now, you have the addclasspath option -- but you're not actually copying the dependencies, so java -jar can't actially find them
Wed Mar 29 20:48:50 2017  clofacto:yeah, well, I want to fix it in the pom.. the reason is that i had the same problem in another project, and i wanted to fix it so that i could do a pull request
Wed Mar 29 20:49:16 2017  clofacto:so i made a simple app and the same problem happened
Wed Mar 29 20:49:43 2017  Maldivia:often though, you either use shade or assembly plugin to create distributions
Wed Mar 29 20:50:00 2017  clofacto:i want to do it the right way
Wed Mar 29 20:50:17 2017  Maldivia:I would consider that the right way :)
Wed Mar 29 20:50:49 2017  clofacto:cool :) I dont know what "shade" is though.. the assembly plugin is the thing i did already, right
Wed Mar 29 20:50:58 2017  Maldivia:for a quick fix for what you have, add <classpathPrefix>dependency/</classpathPrefix> and run mvn dependency:copy-dependency :)
Wed Mar 29 20:51:12 2017  Maldivia:https://maven.apache.org/plugins/maven-shade-plugin/
Wed Mar 29 20:51:52 2017  Maldivia:shade basically packages your classes and all the dependencies into a single jar file -- and über jar or fat jar -- potentially relocating packages (shading) if asked to, etc
Wed Mar 29 20:52:30 2017  clofacto:ok, thanks, i'll try that
Wed Mar 29 20:52:31 2017  clofacto:ok, thanks, i'll try that
Wed Mar 29 20:55:29 2017  bobbyja:Joined the channel
Wed Mar 29 20:56:27 2017  clofacto:im getting an error
Wed Mar 29 20:56:52 2017  clofacto:[ERROR] Could not find goal 'copy-dependency' in plugin org.apache.maven.plugins:maven-dependency-plugin:2.8 among available goals copy, analyze, unpack, list-repositories, resolve, resolve-plugins, build-classpath, list, analyze-dep-mgt, sources, analyze-duplicate, copy-dependencies, unpack-dependencies, go-offline, get, purge-local-repository, properties, analyze-report, tree, analyze-only, help -> [Help 1]
Wed Mar 29 20:59:24 2017  Maldivia:plural form :D
Wed Mar 29 20:59:38 2017  Maldivia:it's even helpful and actually lists it for yoyu
Wed Mar 29 21:00:36 2017  clofacto:oh yeah lol
Wed Mar 29 21:01:39 2017  clofacto:ok, build success. now i'll try the jar
Wed Mar 29 21:02:08 2017  hakvroot:Joined the channel
Wed Mar 29 21:02:33 2017  clofacto:same error as before.. do i have to "mvn package" first?
Wed Mar 29 21:03:24 2017  Maldivia:you have to rebuild your package after changing your pom, yes...
Wed Mar 29 21:03:52 2017  clofacto:ohh awesome, it worked, thanks :)))
Wed Mar 29 21:04:32 2017  clofacto:so this "mvn dependency:copy-dependencies" changed my pom.xml, right?
Wed Mar 29 21:04:39 2017  Maldivia:no
Wed Mar 29 21:04:54 2017  Maldivia:it copies all the dependencies to the target/dependency folder
Wed Mar 29 21:05:03 2017  clofacto:ohh
Wed Mar 29 21:05:34 2017  Maldivia:what did you expect it would do with that name?
Wed Mar 29 21:05:44 2017  clofacto:hehe yeah, good point
Wed Mar 29 21:07:23 2017  clofacto:what i'm wondering is.. well, I need "mvn package" to work, without having to run "mvn dependency:.." every time, right?
Wed Mar 29 21:08:01 2017  clofacto:i mean, now i should change the pom to do what i did manually, right
Wed Mar 29 21:09:18 2017  clofacto:or do i just tell users to run "mvn dependency:.." before running "mvn package" every time?
Wed Mar 29 21:09:21 2017  bobbyja_:Joined the channel
Wed Mar 29 21:12:34 2017  clofacto:i just dont get why "mvn package" doesnt work OOTB
Wed Mar 29 21:14:03 2017  Maldivia:mvn package creates an artifact from YOUR code
Wed Mar 29 21:14:29 2017  Maldivia:meaning in my-app-1.0-SNAPSHOT.jar is only YOUR classes
Wed Mar 29 21:15:33 2017  Maldivia:meaning you either have to tell it where it can find the dependencies (ie, copy the dependencies and then reference them from the manifest, for instance like you're doing, or using the assembly plugin), OR pack the dependenciecs inside your jar (shade plugin)
Wed Mar 29 21:16:34 2017  Maldivia:which option is the best depends on the size and scale of the application and the dependencies
Wed Mar 29 21:19:21 2017  clofacto:ohh, i was mixing up the assembly plugin with the jar plugin. I did put the jar plugin, but not the assembly plugin
Wed Mar 29 21:20:58 2017  clofacto:i just want to have the pom so that "mvn package" works, without other commands
Wed Mar 29 21:21:13 2017  clofacto:so you are saying there are two options for that
Wed Mar 29 21:22:19 2017  clofacto:the assembly plugin does the "mvn dependency: .." thing for me?
Wed Mar 29 21:35:46 2017  clofacto:and why am i having problems with a dependency as widespread as apache commons?
Wed Mar 29 21:35:58 2017  clofacto:that's what bugs me
Wed Mar 29 21:36:14 2017  clofacto:is it ubuntu's fault?
Wed Mar 29 22:29:21 2017  cyberz:Joined the channel
Wed Mar 29 22:37:32 2017  cyberz:Joined the channel
Wed Mar 29 22:39:30 2017  jsightler_afk:Joined the channel
Wed Mar 29 22:43:07 2017  jsightler_afk:Joined the channel
Wed Mar 29 22:45:39 2017  Maxels:Joined the channel
Wed Mar 29 22:59:26 2017  clofacto:yeahhhh the shade plugin did the trick!!!! :9
Wed Mar 29 23:00:03 2017  piratepete:Joined the channel
Wed Mar 29 23:01:57 2017  piratepete:I created a keystore for my maven for one project and now even using this it doesn't work for a new JHipster project. Any thoughts? using mvn -Djavax.net.ssl.trustStore=c:\Users\guita\mavenKeystore Getting PKIX error
Wed Mar 29 23:02:32 2017  piratepete:I just want to use "mvn" only.
Wed Mar 29 23:02:39 2017  piratepete:How can I fix?
Wed Mar 29 23:04:59 2017  bobbyja:Joined the channel
Wed Mar 29 23:06:38 2017  clofacto:piratepete: you are having the same problem as me?
Wed Mar 29 23:07:24 2017  clofacto:i followed instructions here: http://www.mkyong.com/maven/create-a-fat-jar-file-maven-shade-plugin/
Wed Mar 29 23:07:46 2017  clofacto:to use the shade plugin, as Maldivia recommended
Wed Mar 29 23:08:01 2017  clofacto:to build a jar with deps
Wed Mar 29 23:08:09 2017  clofacto:then you just "mvn package"
Wed Mar 29 23:16:37 2017  [1]Keepa:Joined the channel
Wed Mar 29 23:17:22 2017  piratepete:clofacto my issue is with Java security. I had to create a keystore for Maven to run (first project). I started another project and now that keystore doesn't work with the new project.
Wed Mar 29 23:19:56 2017  conan:Joined the channel
Wed Mar 29 23:20:16 2017  clofacto:piratepete: ohh, ok, sorry. I hope you fix it ;)
Wed Mar 29 23:23:08 2017  piratepete:clofacto thanks. This is frustrating because it's happening a lot now and I think it started with a new Maven version, not sure.
Wed Mar 29 23:24:03 2017  clofacto::p
Wed Mar 29 23:33:13 2017  Sasazuka:Joined the channel
Wed Mar 29 23:46:48 2017  Maxels:Joined the channel
Wed Mar 29 23:58:19 2017  cyberz:Joined the channel

Comments