Re: Using maven properties inside .java inside annotation in a clean way

2013-01-16 Thread tobias maslowski
This actually sounds like fighting the bad fight with maven to me, it is a management tool, not a part of your bl(please correct me if I got this wrong). I doubt there is a way to do this in a way I would call clean. However, as anybody has rights to fight bad fights, you could configure your

Re: Corrupted Assembly, when using a type:pom dependency

2012-10-08 Thread tobias maslowski
You probably should provide some information about your problem, like what you tried to do, the setup ... Anyway there are a few issues in the tracker, maybe you stumbled accross http://jira.codehaus.org/browse/MASSEMBLY-609? 2012/10/8 Stefan Rademacher rademac...@hhla.de Hi, is there

Re: understanding maven dependencies range

2012-09-03 Thread tobias maslowski
Hello, as far as I understand your message, there are two problems. First: Your project C (depending on A and B) needs to resolve the transitive ano-util artifact to version 1.0.14 instead of 1.0.8. In my experience it's the easiest way to explicitly declare this dependency in project C. (It

AW: Best Practices for Passwords and Usernames

2012-08-15 Thread Tobias Maslowski
I don't think they misunderstood what you were asking for, you just seem to have different grasps on the matter, thus a misunderstanding. To your concern: What you read seems to be right, user/password are client specific(pom is project specific, they are pretty public) settings, you can/should

Re: Accessing an xsl in another project from a unit test case

2012-06-22 Thread tobias maslowski
Hi, as Wayne recommended I'ld try to have a look at the utility-jar to see if and where your file gets copied to. Just for the record: From the Spring-ClasspathResource-constructor javadoc: A leading slash will be removed, as the ClassLoader resource access methods will not accept it. Also, as far

Re: Accessing an xsl in another project from a unit test case

2012-06-21 Thread tobias maslowski
By the call of Class.getClassLoader() before retrieving the resource-Stream you do navigate to the root of your classpath. Keeping that in mind, the call you described provided the parameter my.xsl should deliver the InputStream pointing to src/main/resources/my.xsl as wayne described of ANY jar

Possible to execute Maven Goals from API level calls?

2012-04-13 Thread Tobias Maslowski
Hello, It might be silly, but I was wondering if it was possible to use maven goals from api. I'ld like to do something like this: Maven mvn = new Maven(mySettings.xml); MavenCoordinates coords = new MavenCoordinates(my.group.id, ArtifactID, 1.0.0-SNAPSHOT); try { Artifact dep =

Re: Possible to execute Maven Goals from API level calls?

2012-04-13 Thread tobias maslowski
Thank you so much! This is pretty much exactly what I had in mind, but could not find :-) Am 13. April 2012 22:57 schrieb Wayne Fay wayne...@gmail.com: It might be silly, but I was wondering if it was possible to use maven goals from api. I'ld like to do something like this: ... Can