Displaying #maven/2017-02-28.log:

Tue Feb 28 00:04:35 2017  [diecast]:Joined the channel
Tue Feb 28 00:05:25 2017  PeterReid:Joined the channel
Tue Feb 28 00:05:50 2017  davidmichaelkarr:Joined the channel
Tue Feb 28 00:09:48 2017  Akkarin:Joined the channel
Tue Feb 28 00:12:22 2017  edwarnicke_:Joined the channel
Tue Feb 28 02:01:09 2017  angular_mike_:Joined the channel
Tue Feb 28 03:21:53 2017  jdcasey:Joined the channel
Tue Feb 28 03:52:50 2017  theRealGent:Joined the channel
Tue Feb 28 03:54:58 2017  makii-42:Joined the channel
Tue Feb 28 07:17:39 2017  Keepa:Joined the channel
Tue Feb 28 07:27:35 2017  ppalaga:Joined the channel
Tue Feb 28 07:28:10 2017  makii-42:Joined the channel
Tue Feb 28 08:12:26 2017  TomyWork:Joined the channel
Tue Feb 28 08:37:28 2017  gk-1wm-su:Joined the channel
Tue Feb 28 08:37:31 2017  gk-1wm-su:Left the channel
Tue Feb 28 08:46:11 2017  thc202:Joined the channel
Tue Feb 28 09:01:20 2017  bentech:Joined the channel
Tue Feb 28 09:03:06 2017  vtunka:Joined the channel
Tue Feb 28 09:06:11 2017  jpoth:Joined the channel
Tue Feb 28 09:42:54 2017  Hounddog:Joined the channel
Tue Feb 28 09:50:15 2017  vtunka:Joined the channel
Tue Feb 28 10:26:58 2017  bendlas:Joined the channel
Tue Feb 28 11:39:27 2017  masuberu:Joined the channel
Tue Feb 28 11:52:15 2017  elh9:Joined the channel
Tue Feb 28 12:09:31 2017  Pedro_:Joined the channel
Tue Feb 28 12:10:54 2017  Pedro_:Hello everyone! I'm migrating and old system from ant to maven. There are different jar-files which lend functionality kind of like libs.
Tue Feb 28 12:11:33 2017  Pedro_:So I'm making each jar a module to be created by a parent pom
Tue Feb 28 12:12:04 2017  Pedro_:It worked out pretty well, but now I've got two co-dependent jars
Tue Feb 28 12:12:27 2017  Pedro_:I can't add both to each others dependencies as this would lead to an cyclic dependency
Tue Feb 28 12:13:24 2017  Pedro_:The only solution i got so far is putting the dependent pieces into a new jar which both jars can then in turn be dependent
Tue Feb 28 12:13:58 2017  Pedro_:But as I am working on a rather big legacy project this would mean a lot of refactoring in the code
Tue Feb 28 12:14:22 2017  Pedro_:Is there a way to create codependent jars or will I just have to throw myself at the code?
Tue Feb 28 12:15:43 2017  edvorg:Joined the channel
Tue Feb 28 12:54:04 2017  synthroid:Joined the channel
Tue Feb 28 12:54:14 2017  conan:Joined the channel
Tue Feb 28 12:55:55 2017  synthroi_:Joined the channel
Tue Feb 28 13:54:50 2017  Pete_:Joined the channel
Tue Feb 28 13:55:44 2017  Pete_:Hello! I'm afraid I need some help with a little problem. I had a maven project which worked perfectly. Then I ran "mvn clean install" and suddenly it ignores my local maven repository
Tue Feb 28 13:56:21 2017  Pete_:The problem is that the local repository contains old legacy *.jars which are not online
Tue Feb 28 13:56:55 2017  Pete_:And I simply can't get it to work again. It just tells me that it cant resolve the dependencies
Tue Feb 28 13:57:07 2017  Pete_:I already tried deleting the repository and reinstalling
Tue Feb 28 13:57:59 2017  Maldivia:Pete_: the legacy jars are not maven artifacts, I assume -- are they located relative to the project?
Tue Feb 28 13:59:09 2017  Pete_:Yes is have a folder in the project root called "local-maven-repo" where i deployed the jars with "mvn deploy:deploy-file"
Tue Feb 28 13:59:48 2017  Pete_:and my parent pom which is in the project root knows it as <url>file:///${project.basedir}/local-maven-repo</url>
Tue Feb 28 14:01:31 2017  Maldivia:hmm, alternative would be tell maven where the dependency is located, by using <systemPath>
Tue Feb 28 14:01:47 2017  Maldivia:although, having actual artifacts would be better :)
Tue Feb 28 14:03:28 2017  Pete_:I was actually just using "mvn clean install" to tie everything up and then phase them out with new versions from the online repo
Tue Feb 28 14:04:07 2017  Pete_:but I got to get this working for the production team first. what i don't get is why it should just stop working...
Tue Feb 28 14:09:49 2017  Pete_:It works when I define a <systemPath> on the dependency. But it was much easier to just create a local repository once and not filepath every dependency
Tue Feb 28 14:11:21 2017  Maldivia:and no paths have changed or something?
Tue Feb 28 14:12:36 2017  bentech:Joined the channel
Tue Feb 28 14:13:53 2017  Pete_:no nothing changed
Tue Feb 28 14:13:59 2017  Pete_:that what baffles me
Tue Feb 28 14:16:40 2017  Pete_:i put the modules which inherit from the parent pom in a subfolder called "modules" but that was like 3h ago and everything still worked fine up til now
Tue Feb 28 14:18:58 2017  Pete_:a colleuge changed the sourceEncoding to UTF16 inbetween which nuked the system.. could something happened back then? .. shouldn't have any consequences outside my build
Tue Feb 28 14:22:07 2017  Pete_:anyway the <systemPath> has to be absolute to work for the modules.. this will make it hard for production since the project now isn't relative.. but thanks for the fix!
Tue Feb 28 14:24:41 2017  vtunka:Joined the channel
Tue Feb 28 14:31:29 2017  CrazyLazyDazy:Joined the channel
Tue Feb 28 14:33:56 2017  Maldivia:Pete_: when you moved the modules, did you remember to update the <module> references in the pom?
Tue Feb 28 14:34:13 2017  masuberu:Joined the channel
Tue Feb 28 14:34:46 2017  Pete_:yes the modules are now <module>./modules/modulename</module> in the parent pom
Tue Feb 28 14:35:30 2017  Pete_:and the modules all have <relativePath>../../pom.xml</relativePath> in the <parent></parent> declaration
Tue Feb 28 14:43:43 2017  Pete_:i just copied the files from the local relativ repository into the ${user.dir}/.m2/ repository and now it works...
Tue Feb 28 14:44:01 2017  Pete_:so the files are okay it just irgnores the declaration of the local repository
Tue Feb 28 14:46:18 2017  Pete_:<repositories> <repository> <id>local-maven-repo</id> <url>file:///${project.basedir}/local-maven-repo</url> </repository> </repositories>
Tue Feb 28 14:46:35 2017  Pete_:this is my declaration in the parent pom.. is it wrong? I'm doubting everything...
Tue Feb 28 14:53:23 2017  Pete_:i got the local repository working with following declaration
Tue Feb 28 14:53:26 2017  Pete_:<url>file:///${project.basedir}/../../local-maven-repo</url>
Tue Feb 28 14:53:47 2017  Pete_:i found a local-maven-repo dir in each module and it tried to look there
Tue Feb 28 14:54:17 2017  Pete_:i tried patching it up with ${project.parent.basedir} but that just didn't get resolved
Tue Feb 28 14:54:27 2017  Pete_:and with the .. it's working..
Tue Feb 28 14:54:40 2017  Pete_:Still seems like a pretty ugly fix...
Tue Feb 28 14:58:34 2017  Pete_:Just found that the variable ${main.dir} is exactly what i was looking for
Tue Feb 28 14:58:46 2017  Pete_:It now works with <url>file:///${main.basedir}/local-maven-repo</url>
Tue Feb 28 14:59:09 2017  Pete_:Thank you for working this out with me Maldivia!
Tue Feb 28 14:59:44 2017  Maxel:Joined the channel
Tue Feb 28 15:05:57 2017  isavin:Joined the channel
Tue Feb 28 15:10:48 2017  bendlas:Joined the channel
Tue Feb 28 15:16:54 2017  tang^:Joined the channel
Tue Feb 28 15:21:39 2017  vtunka:Joined the channel
Tue Feb 28 16:07:54 2017  bentech:Left the channel
Tue Feb 28 16:17:02 2017  synthroid:Joined the channel
Tue Feb 28 16:40:08 2017  bendlas:Joined the channel
Tue Feb 28 17:03:38 2017  Maxel_:Joined the channel
Tue Feb 28 17:06:59 2017  jdcasey:Joined the channel
Tue Feb 28 17:40:43 2017  bendlas:Joined the channel
Tue Feb 28 18:02:37 2017  Maxel:Joined the channel
Tue Feb 28 18:05:05 2017  rfscholte:Joined the channel
Tue Feb 28 18:21:18 2017  bobbyja:Joined the channel
Tue Feb 28 18:25:17 2017  Maxel:Joined the channel
Tue Feb 28 18:35:17 2017  hboutemy:Joined the channel
Tue Feb 28 18:35:41 2017  Maxel_:Joined the channel
Tue Feb 28 18:47:35 2017  bentech:Joined the channel
Tue Feb 28 19:11:45 2017  Sasazuka:Joined the channel
Tue Feb 28 19:27:15 2017  conan:Joined the channel
Tue Feb 28 19:51:37 2017  isavin:Joined the channel
Tue Feb 28 19:58:35 2017  Jake__:Joined the channel
Tue Feb 28 20:05:58 2017  ppalaga_away:Left the channel
Tue Feb 28 20:26:39 2017  synthroid:Joined the channel
Tue Feb 28 20:33:29 2017  olamy:Joined the channel
Tue Feb 28 20:36:42 2017  jdcasey:Joined the channel
Tue Feb 28 21:00:37 2017  elh9:Joined the channel
Tue Feb 28 21:04:02 2017  elh9:Joined the channel
Tue Feb 28 21:29:05 2017  masuberu:Joined the channel
Tue Feb 28 22:15:15 2017  bentech:Left the channel
Tue Feb 28 22:22:46 2017  Sasazuka__:Joined the channel
Tue Feb 28 23:19:13 2017  Vivekananda:Joined the channel

Comments