Maven beginner: A few problems

2006-04-22 Thread Tommy Svensson
order required to support compile dependencies. I get the impression that Ant is still needed to manage the project as a whole. I've read what documentation I can find on the Maven home page, but it is unfortunately not very helpful. Any suggestions are appreciated. Best Regards, Tomm

Re: What is the use of the maven-compiler-plugin ?

2015-08-23 Thread Tommy Svensson
compile it without you having to do anything. This collides with ”traditional” build tools like maven. Tommy Svensson > 23 aug 2015 kl. 15:59 skrev Sreyan Chakravarty : > > OK I am new to Maven and I am using it within Eclipse for a simple > Hibernate project. > > What I want t

Re: What is the use of the maven-compiler-plugin ?

2015-08-24 Thread Tommy Svensson
ting. >> >> I think that the problem with the maven integration in Eclipse is that >> Eclipse is centered around that it compiles constantly as you type in the >> editor. When you have finished some code that is compilable Eclipse will >> compile it without you having to

Re: Is it possible to search maven site?

2017-07-13 Thread Tommy Svensson
I know of nothing that does both, but if you want to find something locally and are on: Mac:      You’d think that spotlight would be able to help here but NO! Any unix (including Mac), in a shell:     find ~/.m2/repository -name *-*.jar -print     This should give you a pretty clear result. W

Maven bug in conjunction with annotation processing ?

2013-07-19 Thread Tommy Svensson
help is appreciated. Best Regards, Tommy Svensson - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Re: Maven bug in conjunction with annotation processing ?

2013-07-19 Thread Tommy Svensson
> > I work around that by doing a clean compile in maven before starting IDE work. > > Is that your problem? Or are you only seeing this by only doing repeated > Maven builds? I don't have that problem. > > - Russ > > On Jul 19, 2013, at 11:22 AM, Tommy Svensson w

Re: Maven bug in conjunction with annotation processing ?

2013-07-20 Thread Tommy Svensson
cate class problem, do you find multiple copies of the > generated source in your target directory? Multiple copies of the same class > files? AFAIK that is the only way you should ever see a duplicate class > exception > > - Regards, > Russ > > On Jul 19, 2013, at 11:40 A

Re: Maven bug in conjunction with annotation processing ?

2013-07-20 Thread Tommy Svensson
mpile this ? My previous question of what triggers an annotation processor was stupid :-) An annotation processor is of course always triggered when a source having its annotation is compiled. Regards, Tommy 20 jul 2013 kl. 12:31 skrev Tommy Svensson : > Hello Russ, > > No, the sources

Re: Maven bug in conjunction with annotation processing ?

2013-07-20 Thread Tommy Svensson
downgraded to version 2.3.2, and now everything works perfectly! I'd say that there is a bug in version 3.1. And now again I'm asking myself "Why wasn't that the first thing I tested ?" :-) /Tommy 20 jul 2013 kl. 15:19 skrev Tommy Svensson : > I have found something in

No class files!!

2013-07-21 Thread Tommy Svensson
omeone had told me that they had this problem i would say, "that is not possible!". Actually, I still keep saying to myself, this is not possible! Regards, Tommy Svensson - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Re: No class files!!

2013-07-21 Thread Tommy Svensson
Damn you Oracle! /Tommy 21 jul 2013 kl. 19:06 skrev Tommy Svensson : > Hello, > > Can someone please inform me why maven-compiler-plugin is clearly saying that > it is compiling 12 classes into my target/classes directory but after build > there are only resources

Re: No class files!!

2013-07-21 Thread Tommy Svensson
it produces no class files. Have anyone else experienced this problem with JDK 1.7 on a Mac ? If so, what did you do about it ? That is if there is a solution that does not involve reinstalling the whole machine! Regards, Tommy Svensson 21 jul 2013 kl. 20:10 skrev Tommy Svensson : > I fo

Re: No class files!!

2013-07-29 Thread Tommy Svensson
about >> what the plugins are doing. >> >> I haven't done any work on a Mac, is there any file/directory permissions >> that might be causing issues? >> >> Not much help, sorry. >> >> >> On Mon, Jul 22, 2013 at 5:12 AM, Tommy Svensson wrot

Maven trying to download pom being built and then fails with what seems to be an imaginary error

2013-11-28 Thread Tommy Svensson
ue is that I'm running on SUSE and she is running on Ubuntu, but that shouldn't make any difference. Any suggestions are appreciated since I'm out of ideas myself. Best Regards, Tommy Svensson - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Re: Maven trying to download pom being built and then fails with what seems to be an imaginary error

2013-11-28 Thread Tommy Svensson
28 nov 2013 kl. 16:05 skrev Jörg Schaible : > Hi Tommy, > > Tommy Svensson wrote: > >> My team colleague gets the following error: >> >> _ >> mvn clean or mvn help:effective-pom gives the following error:

Re: Maven trying to download pom being built and then fails with what seems to be an imaginary error

2013-11-28 Thread Tommy Svensson
ut setting the relativePath you will see the same > error as your colleague. The relative path is ".." and should thus be correct. But "cleaning" my ~/.m2/repository/... artifacts is probably a good test to do anyhow. Thanks, Tommy Svensson > > Hth, > > Nick St

Re: Maven trying to download pom being built and then fails with what seems to be an imaginary error

2013-11-28 Thread Tommy Svensson
odules! It only provides plugins, properties, etc. It has no knowledge of its children. Regards, Tommy Svensson 28 nov 2013 kl. 17:33 skrev Tommy Svensson : > > 28 nov 2013 kl. 15:39 skrev Nick Stolwijk : > >> Probably you have the xxx-shared artifact already in your local repository &g

Re: Maven trying to download pom being built and then fails with what seems to be an imaginary error

2013-11-28 Thread Tommy Svensson
Svensson 28 nov 2013 kl. 18:04 skrev Tommy Svensson : > I did remove my local repository files (~/.m2/repository/...) and did an "mvn > install" and got this exact problem myself! > > I'm however completely failing to understand why. I tried to add > ".. to th

Re: Maven trying to download pom being built and then fails with what seems to be an imaginary error

2013-11-28 Thread Tommy Svensson
or suspicion is people referring to an "install" pom... esp when > they put install in quotes) I'm failing here too. /Tommy > > > On 28 November 2013 17:04, Tommy Svensson wrote: > >> I did remove my local repository files (~/.m2/repository/...) and did an &g

Re: Maven trying to download pom being built and then fails with what seems to be an imaginary error

2013-11-29 Thread Tommy Svensson
... I ack that I could be wildly off > base... but when we see people talking about their "install" pom and > putting "install" in quotes 9 times out of 10 they are trying to hack > installing .jar files into the local repo... you may be the 1 time out of > 10 tha

Re: Maven trying to download pom being built and then fails with what seems to be an imaginary error

2013-11-29 Thread Tommy Svensson
18:12 skrev Tommy Svensson : > Actually, if maven is failing to see the project being built (itself) it > would explain both that it tries to download its own pom and that the first > module child fails to see the parent. > > But what would make it fail to se itself ? It is a

Re: Maven trying to download pom being built and then fails with what seems to be an imaginary error

2013-11-29 Thread Tommy Svensson
still refered to xxx-share:2.0.26-SNAPSHOT. So it was not trying to download itself. It was trying to download an older version of itself. This should of course been the first thing to check for, and the obvious answer to the problem! Damn it! /Tommy 29 nov 2013 kl. 09:32 skrev Tommy Svensson :

Re: Maven trying to download pom being built and then fails with what seems to be an imaginary error

2013-11-29 Thread Tommy Svensson
ims > to discourage typically have a special pom for installing these 3rd party > jars and for some reason they almost always refer to it as their "install" > pom and then they have problems with the build failing to download > artifacts... so you can see why I might make

Maven Central Opinion

2014-01-05 Thread Tommy Svensson
providing ease of release, where it is trivial for anyone to share their binaries for easy access by others. I’m wondering if I’m alone in this view or if there are others who agree with me ? Tommy Svensson - To unsubscribe, e-mail

Re: Maven Central Opinion

2014-01-05 Thread Tommy Svensson
tance, then closing and releasing it. This > it at-most simple and done in minutes. If you need help, feel free to contact > me at mar...@headcrashing.eu, I can guide you. > > -Original Message- > From: Tommy Svensson [mailto:to...@natusoft.se] > Sent: Sonntag, 5. J

Re: Maven Central Opinion

2014-01-06 Thread Tommy Svensson
Hello again, OK, I suspected that I get a lot of replies on this :-). From experience in other forums I also expected to have people tell me to go screw myself, but that has not happened. There are apparently only professionals here! That said, there some very good replies and explanations bu

Re: Maven Central Opinion

2014-01-06 Thread Tommy Svensson
6 jan 2014 kl. 14:10 skrev Tamás Cservenák : >> >> The arguments about quality I just don't buy. We are only talking poms >> here. Whatever is in the poms says nothing about the quality of the >> software itself. > > > Quality of metadata. POM serve as "metadata" in this case, so, I'd rather >

Re: Maven Central Opinion

2014-01-09 Thread Tommy Svensson
I think that you did the right thing by raising your concerns here and I >> think that you got some very good advice and concrete suggestions. >> >> This is a very good group that is usually well-mannered when approached in >> the way that you did. >> You were very

How do you report a maven bug ?

2014-07-10 Thread Tommy Svensson
Hello, I wonder how you report a bug in maven ? I found the following: http://jira.codehaus.org/browse/MNG But that requires a login and there is no ”sing up”. I get the following when trying to build a maven plugin with version 3.2.2: [ERROR] Failed to execute goal org.apache.maven.

[ANN] odt2apt maven plugin

2010-02-07 Thread Tommy Svensson
about it. Best Regards, Tommy Svensson - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Re: [ANN] odt2apt maven plugin

2010-02-07 Thread Tommy Svensson
re interested, attach a patch to http://jira.codehaus.org/browse/DOXIA, >> I would be happy to review and apply it. >> >> Cheers, >> -Lukas >> >> >> Tommy Svensson wrote: >>> >>> Hello, >>> >>> I recently used the maven site p

Re: [ANN] odt2apt maven plugin

2010-02-07 Thread Tommy Svensson
ml > [4] http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/ > [5] http://maven.apache.org/doxia/mail-lists.html > > > > Tommy Svensson wrote: >> I have no knowledge of maven internals. I did go to maven.apache.org/doxia, >> but cannot find any documentatio

Building maven plugin: Caused by: java.lang.ArrayIndexOutOfBoundsException: 3411 …

2018-06-20 Thread Tommy Svensson
ly other alternative is to go back to javadoc annotations and build with maven 3.0.5.  Thanks! Tommy Svensson

Re: Building maven plugin: Caused by: java.lang.ArrayIndexOutOfBoundsException: 3411 …

2018-06-20 Thread Tommy Svensson
the latest version should fix your > issue. > > [1] https://issues.apache.org/jira/browse/MPLUGIN-328 > > On Wed, 20 Jun 2018 20:25:43 +0200, Tommy Svensson > wrote: > > > Hello, > > > > I keep getting this exception from maven

Re: Maven plugin naming best practices

2018-07-07 Thread Tommy Svensson
Hello Christian, I’m just a maven user like yourself. I think you should stick with your company name, i.e com.atilika. The ’org.apache.maven.plugins’ are reserved for plugins comming from the apache-maven project itself. So if you put your code on github and submit binaries to maven central

Re: Could not run main class in src/test/java due to ClassNotFoundException

2018-07-12 Thread Tommy Svensson
Hello Baha, You need a dependency to a jar containing the `np.com.bahadur.ExecTest` class. According to: https://www.mojohaus.org/exec-maven-plugin/java-mojo.html the dependency should have scope ’runtime’ unless you set the ’classpathScope’ parameter to something else.  Your pom has no depend

Incorrect documentation examples for test exclusions

2018-08-01 Thread Tommy Svensson
Regards, Tommy Svensson signature.asc Description: Message signed with OpenPGP using AMPGpg

Re: Incorrect documentation examples for test exclusions

2018-08-03 Thread Tommy Svensson
> Consider filing an issue with MNGSITE.  I agree with you. That would have been the smarter thing to do to begin with.  /Tommy  Från: Michael Osipov Svara: Michael Osipov Datum: 2 augusti 2018 at 20:51:33 Till: Tommy Svensson Ämne:  Re: Incorrect documentation examples for test exclusi

Re: Cannot Deploy From Jenkins to Nexus maven-deploy-plugin:2.7 not found

2018-08-10 Thread Tommy Svensson
Hello Gary, I have seen the word LATEST in capitals used as version number, but never tried it myself. It is in general a good idea to know exactly what version you are using, and do controlled upgrades to newer versions. Surprises are seldom good IMHO. Regards, Tommy På 9 augusti 2018 ti

Re: Cannot Deploy From Jenkins to Nexus maven-deploy-plugin:2.7 not found

2018-08-10 Thread Tommy Svensson
n set? Gary Mills Kind Regards, Cell 630-607-9639 Work 920-390-4806 -Original Message- From: Tommy Svensson Sent: Friday, August 10, 2018 2:14 AM To: Maven Users List Subject: EXT: Re: Cannot Deploy From Jenkins to Nexus maven-deploy-plugin:2.7 not found Hello Gary,

Re: Maven compiler plugin - test compiler arguments with double dash

2019-10-09 Thread Tommy Svensson
Can't you use a profile for the test case, where you redefine the maven-compiler-plugin settings to what you need for test ?  I thinks settings in profiles overrides previously seen definitions, but I'm not 100% sure of that. In worst case you might need 2 different profiles. Cheers, Tommy Fr

Re: versioning by hashes to speedup multi-module build (a'la nix package manager)

2020-02-02 Thread Tommy Svensson
Hello Anton, If I understand you correctly, you do not want to build all modules of the maven build, only those that has changed.  As long as you are building in development shell or IDE the result of last build is still there and maven will only recompile sources that are newer than their cla

Re: exclusive execution scheduling

2021-02-05 Thread Tommy Svensson
I would say this is a windows problem rather than a maven problem. I have had  similar problems trying to build simpler things where only solution is to reboot windows to unlock NTFS (NoT a File System).  I'm very seriously considering getting VMWare and installing a Linux Mint 20 and  work in Li

Scratching my head over repositories ...

2021-04-22 Thread Tommy Svensson
enseManager in maven central, it is not looking at other repos for this version.  So now my question is: Is there a way to force maven  to look in all repos when version is not available but artifact is ? Or is the only way out of this to change the name or group of the artifact ?  Best Regards, Tommy Svensson

Re: Scratching my head over repositories ...

2021-04-24 Thread Tommy Svensson
ll the best way to go. At > least for your users. > > HTH, > T > > On Thu, Apr 22, 2021 at 6:24 PM Tommy Svensson wrote: > > > Hello fellow maven fans, > > > > A very long time ago I released a package to maven central. That was such >

Re: Scratching my head over repositories ...

2021-04-24 Thread Tommy Svensson
too. /Tommy Från: Tommy Svensson Svara: Maven Users List Datum: 24 april 2021 at 15:21:03 Till: Maven Users List Ämne:  Re: Scratching my head over repositories ... I am using latest IDEA which supplies maven 3.6.3. No version ranges. My interpretation of  https://maven.apache.org/gui

Re: Scratching my head over repositories ...

2021-04-25 Thread Tommy Svensson
ability and > speed > > of that of Central (or let's say 1/3 of it). > > Moreover, bringing your own repo with overlapping GAVs to Central is a > big > > mistake, you are booby-trapping your users: they will always struggle > just > > like y

Re: OSS Nexus vs GitHub Packages

2021-07-27 Thread Tommy Svensson
I played with GitHub packages thinking I could use it as a general binary repo, but NO! It turned out that what is published on GitHub packages are only available from within GitHub! Anything built with GitHub CI can use GitHub packages. If you want to build locally you cannot access Github pack

Re: How to retrieve target folder / jar paths from multi-module Maven project

2022-06-10 Thread Tommy Svensson
might be a plugin available for executing external commands where the above find can be done. . Regards, Tommy Svensson > 9 juni 2022 kl. 22:51 skrev Karl Heinz Marbaise : > > Hi, > > On 07.06.22 05:22, Laurian Angelescu wrote: >> Is it possible to invoke *mvn* on the c

Maven slow

2023-04-06 Thread Tommy Svensson
mproved build speed before.  I'm running Apache Maven 3.8.5 (3599d3414f046de2324203b78ddcf9b5e4388aa0) That is what the latest version of IDEA gives me.  BR, Tommy Svensson

Re: Maven slow

2023-04-09 Thread Tommy Svensson
Tommy Svensson <to...@natusoft.se> wrote: > I'm running Apache Maven 3.8.5 (3599d3414f046de2324203b78ddcf9b5e4388aa0) That is what the latest version of IDEA gives me. If you add Maven Wrapper [0] to your project, you can use any version of Maven you like, including the latest

Re: Maven slow

2023-04-10 Thread Tommy Svensson
chine. The real culprit here is IntelliJ IDEA! It still takes 43 seconds to build within IDEA. Doing a "mvn clean install" in a terminal takes 7 seconds! A rather extreme diff! This is a multimodule project of about 5 modules. BR, Tommy På 9 april 2023 till 17:00:51, Tomm

Re: Maven slow

2023-04-10 Thread Tommy Svensson
ad... > > > Kind regards > Karl Heinz Marbaise > On 10.04.23 10:50, Tommy Svensson wrote: > > Hello maven users, > > > > I provided an update on this yesterday, but I'm not sure it was sent. My > > Mac was in a really bad state. > > > >

maven-jar-plugin refuses to include META-INF/persistence.xml !

2012-07-21 Thread Tommy Svensson
ehavior. Anyhow, any suggestions are appreciated. Currently I have to manually jar my project. Regards, Tommy Svensson

Re: maven-jar-plugin refuses to include META-INF/persistence.xml !

2012-07-21 Thread Tommy Svensson
I was hoping for a "Well, thats easy, just do ..." :-). But you are of course right Wayne, I need to isolate what is causing this. Thanks. /Tommy 22 jul 2012 kl. 05:30 skrev Wayne Fay: >> Maven just refuses to include META-INF/persistence.xml in the jar no matter >> what I do! It resides in src

Re: maven-jar-plugin refuses to include META-INF/persistence.xml ! - Problem solved

2012-08-11 Thread Tommy Svensson
I finally found the source of this problem! Or close to it at least. I have managed to get my META-INF/persistence.xml included in the jar, but I'm unsure what is to blame :-). I'm also using the Apache Felix bundle-plugin which allows for: bundle This due to the following configuratio

Re: maven-jar-plugin refuses to include META-INF/persistence.xml ! - Problem solved

2012-08-12 Thread Tommy Svensson
I pulled those parts out and replaced them with "..." to make the example smaller. I didn't think those parts relevant, but apparently they are since the following suggested by Stuart McCulloch does work: {maven-resources}, META-INF/persistence.xml=target/classes/META-INF/persistence.xm

Re: what javac is actually used?

2023-12-05 Thread Tommy Svensson
Hello Dave, Maven will not recompile java classes if it already finds classes under target that are newer than the source file. And if Eclipse have already compiled classes into the target folder then maven will not recompile these.   In most  places release binaries are build separately using

Maven & Github codespaces

2024-03-27 Thread Tommy Svensson
(bc0240f3c744dd6b6ec2920b3cd08dcc295161ae) Is there any known solution for this combination / situation or is it just "forgett maven on GitHub codespaces" ? Best Regards, Tommy Svensson ______ Tommy Svensson to...@natusoft.se (mailto:to...@natusoft.se)

Re: Maven & Github codespaces

2024-03-27 Thread Tommy Svensson
Yes, Im sure. I have deleted and recreated and still get JDK 21, with an optional JDK 17 being avilable, but the "java" command is a link to 21. BR / Tommy ______ Tommy Svensson to...@natusoft.se (mailto:to...@natusoft.se) På 27 mars 2024 till 18:05:18, Mantas Gridin

Re: Maven & Github codespaces

2024-03-28 Thread Tommy Svensson
odespaces comes with 11 by default. Whats > your output of java -version? > > Regardless, you can download your needed jdk from adoptium, and setup both > $PATH and $JAVA_HOME to point to the downloaded jdk just as you would on > normal machine. > > > On Wed, Mar 27, 2024, 19

Re: Maven & Github codespaces

2024-03-31 Thread Tommy Svensson
Tommy __ Tommy Svensson to...@natusoft.se Från: Tamás Cservenák Svara: Maven Users List Datum: 28 mars 2024 at 13:15:24 Till: Maven Users List Ämne:  Re: Maven & Github codespaces Yes, it works! I just said a few emails ago that I am using Maven 3.9.6 on Java 21 since that

Re: Maven & Github codespaces

2024-04-01 Thread Tommy Svensson
My brain screwed upp here! I incorrectly took this to be a maven issue! I have just figured out that Maven has nothing to do with this problem! Sorry!  When I came to that conclusion things made much more sense :-). __ Tommy Svensson to...@natusoft.se Från: Bernd Eckenfels

Re: Maven & Github codespaces

2024-04-01 Thread Tommy Svensson
have been submitted to maven-central, and have now been removed. So I'm looking for some other solution to re-use pom segments, in a future compatible way. /Tommy __ Tommy Svensson to...@natusoft.se Från: Tamás Cservenák Svara: Maven Users List Datum: 1 april 2024 a

Will this potentially break in future releases ?

2024-04-07 Thread Tommy Svensson
e-code levels. By appending byte-code level in version I can produce multiple artifacts for different byte-code levels, in a relatively easy way. But if using variables in tag goes away then it becomes much more difficult. That it works now I see as a very nice and flexible feature. BR / Tommy __

Re: Will this potentially break in future releases ?

2024-04-08 Thread Tommy Svensson
by Groovy, and do that in an as uncomplicated way as possible.  I have my own repo at repsy.io which I can test against. Thanks for the replies! /Tommy __ Tommy Svensson to...@natusoft.se Från: Francois Marot Svara: Maven Users List Datum: 7 april 2024 at 22:45:26 Till: M

Re: Will this potentially break in future releases ?

2024-04-08 Thread Tommy Svensson
r all my open source binaries. So if I screw up I only screw up my stuff :-). Thanks for replies! ______ Tommy Svensson to...@natusoft.se Från: Francois Marot Svara: Maven Users List Datum: 7 april 2024 at 22:45:26 Till: Maven Users List Ämne:  Re: Will this potentially

Hmm ...

2024-05-28 Thread Tommy Svensson
oblem or not.  Best Regards,  Tommy Svensson to...@natusoft.se

Re: Hmm ...

2024-05-28 Thread Tommy Svensson
I've been told that I should just try earlier versions of maven and test! Of course!! My excuse is that Stockholm have stolen the sun from Spain and our brains aren't used to this heat ... :-) Tommy Svensson to...@natusoft.se Från: Tommy Svensson Svara: Maven Users List Datum: 2

Re: Problem building only one subproject with ${revision}

2024-06-16 Thread Tommy Svensson
accomplish this without writing a tool that generates POM:s, please share it here :-). And NO, don’t ever get an idea to write a tool that generates POM:s! That was a joke OK! :-) Tommy Svensson to...@natusoft.se Från: PavelTurk Svara: Maven Users List Datum: 16 juni 2024 at 16:21:00 Till: users

Incomprehensable error!!

2024-09-11 Thread Tommy Svensson
wrong angle towards north when I’m building … Tommy Svensson to...@natusoft.se

Re: Incomprehensable error!!

2024-09-11 Thread Tommy Svensson
Hello Tamas, Thanks for the reply! It is this: https://repo.maven.apache.org/maven2 it complains about not finding my binary in. And as I said, it never will. But cleaning my local repo and rebuild sounds like a very good idea. I wish I thought of that myself … Tommy Svensson to

Re: Incomprehensable error!! -> Didn't help!

2024-09-11 Thread Tommy Svensson
above! … Aha! I solved it, now built every thing! The solution was to NOT BUILD IN IDEA!!! ./mvnw clean install In a terminal did the trick! The Brains aren’t so Jet:y these days. Maybe they are doing too much. Tommy Svensson to...@natusoft.se Från: Tommy Svensson Svara: Tommy Svensson