Re: How to tell Maven to generate code when XSL has changed?

2013-04-25 Thread Leon Rosenberg
On 25.04.2013, at 10:13, Markus Karg k...@quipsy.de wrote: I am using xml-maven-plugin to generate Java code from XML: groupIdorg.codehaus.mojo/groupId artifactIdxml-maven-plugin/artifactId version1.0/version executions execution

understanding maven dependencies range

2012-09-03 Thread Leon Rosenberg
Hello, I have two modules, say A and B, which are using the same library, one is using 1.0.8 and one 1.0.14: dependency groupIdnet.anotheria/groupId artifactIdano-util/artifactId version1.0.14/version

How to ensure proper transitive dependencies

2012-02-02 Thread Leon Rosenberg
Hello, I have following question, I don't quite understand how to solve properly. I have 3 projects, A,B and C. A depends on B and C, and B depends on C. A requires at least C version 1.06. However, after a while C got a new feature which is now used in B. So in my situation A contains: B

Re: How to ensure proper transitive dependencies

2012-02-02 Thread Leon Rosenberg
On Thu, Feb 2, 2012 at 6:10 PM, Jörg Schaible joerg.schai...@scalaris.com wrote: Leon Rosenberg wrote: Hello, I have following question, I don't quite understand how to solve properly. I have 3 projects, A,B and C. A depends on B and C, and B depends on C. A requires at least C version

Re: How to ensure proper transitive dependencies

2012-02-02 Thread Leon Rosenberg
Hello Stephen, thanks for your reply, more inlined. On Thu, Feb 2, 2012 at 5:29 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: On 2 February 2012 16:17, Leon Rosenberg rosenberg.l...@gmail.com wrote: Hello, I have following question, I don't quite understand how to solve

Using multiple repositories

2011-09-07 Thread Leon Rosenberg
Hello, I have following question/problem. We have some open source software and some commercial software. We use two different repositories to host them: (settings) repositories repository idprovided/id

Re: Maven with ant build unable to publish to artifactory

2011-06-18 Thread Leon Rosenberg
Looks like your ant code runs too late, you need to run it in an earlier phase than deploy, for example package. Regards Leon Sent from my iPhone On 17.06.2011, at 12:04, vijendra vjmake...@gmail.com wrote: I am getting some strange behaviour from Maven-ant publish jar to artifactory.

Re: subversion vs maven

2011-02-16 Thread Leon Rosenberg
How about hudson? Hudson can watch for svn changes and trigger builds on commit. regards Leon On Wed, Feb 16, 2011 at 5:46 PM, Zilvinas Vilutis cika...@gmail.com wrote: Hello Maven Users! Probably this question was already asked, so if there is an answer which I could not find - please

Re: can i use aggregator as dependency holder?

2011-01-11 Thread Leon Rosenberg
? A wiki?) is the key. /Anders On Mon, Jan 10, 2011 at 18:16, Leon Rosenberg rosenberg.l...@gmail.comwrote: Hi, so I have 4 projects with one aggregator pom and it works just fine for publishing and releasing. I have an aggregator pom, which includes a,b,c,d and it all got built and stuff. Now

can i use aggregator as dependency holder?

2011-01-10 Thread Leon Rosenberg
Hi, so I have 4 projects with one aggregator pom and it works just fine for publishing and releasing. I have an aggregator pom, which includes a,b,c,d and it all got built and stuff. Now, if a user of mine wants to use this project, he has to know which of the a,b,c,d modules he actually need, or

Re: can i change the name of the uploaded/installed artifact?

2011-01-06 Thread Leon Rosenberg
On Wed, Jan 5, 2011 at 10:21 PM, Wayne Fay wayne...@gmail.com wrote: The webapp have to be accessed by a specific context-path, e.g. http://host:port/distributeme/registry/list The easiest way to achieve it, is to name the war distributeme.war. Each app server has its own way of handling

Re: can i change the name of the uploaded/installed artifact?

2011-01-06 Thread Leon Rosenberg
On Thu, Jan 6, 2011 at 3:49 PM, Justin Edelson justinedel...@gmail.com wrote: On 1/6/11 8:16 AM, Leon Rosenberg wrote: Unfortunately no. You can't set the context-path from within the webapp :-( regards Leon Um, no. You can certainly do this. There just isn't a standard way to do it across

Re: can i change the name of the uploaded/installed artifact?

2011-01-06 Thread Leon Rosenberg
if you mean context.xml in META-INF - than nope. Tomcat only allows you to change the context path from outside, for example from localhost/Catalina/distributeme.xml regards Leon On Thu, Jan 6, 2011 at 5:20 PM, Wayne Fay wayne...@gmail.com wrote: You know by chance how to achieve this in tomcat

Re: can i change the name of the uploaded/installed artifact?

2011-01-06 Thread Leon Rosenberg
On Thu, Jan 6, 2011 at 5:45 PM, Wayne Fay wayne...@gmail.com wrote: if you mean context.xml in META-INF - than nope. Tomcat only allows you to change the context path from outside, for example from localhost/Catalina/distributeme.xml The documentation suggests (to me) otherwise:

Re: can i change the name of the uploaded/installed artifact?

2011-01-05 Thread Leon Rosenberg
Hello Reynald, I posted it in my original post. The webapp have to be accessed by a specific context-path, e.g. http://host:port/distributeme/registry/list The easiest way to achieve it, is to name the war distributeme.war. In other words, for external users its easier to understand: Download

One project depends on another, how to declare dependency, again...

2011-01-04 Thread Leon Rosenberg
Hi, say I have two projects, foo and bar, and bar depends on foo. My question is how should I properly declare this dependency. From the maintainers point of view (and I'm the maintainer of both) I always want bar to use the newest release of foo. So, I have a released version of foo - 1.0.1,

Re: One project depends on another, how to declare dependency, again...

2011-01-04 Thread Leon Rosenberg
1 Maven Problem Project build error: Resolving expression: '${version}': Detected the following recursive expression cycle: [version] pom.xml /distributeme-runtime line 1 Maven Problem regards Leon /Anders On Tue, Jan 4, 2011 at 11:46, Leon Rosenberg rosenberg.l...@gmail.comwrote

maven tries to download wrong pmd version

2011-01-04 Thread Leon Rosenberg
Hello, a build of an aggregated project recently broke (actually after first release) with following error message: [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID:

Re: maven tries to download wrong pmd version

2011-01-04 Thread Leon Rosenberg
into account and you have to set the version in /project/reporting/plugins/ Hth, Nick Stolwijk ~Senior Java Developer~ iPROFS Wagenweg 208 2012 NM Haarlem T +31 23 547 6369 F +31 23 547 6370 I www.iprofs.nl On Tue, Jan 4, 2011 at 3:11 PM, Leon Rosenberg rosenberg.l...@gmail.com wrote

Re: Accessing the version of a dependency

2011-01-04 Thread Leon Rosenberg
Can't you just define the version as variable and use it in your webresource target path definition? like in: plugin artifactIdmaven-war-plugin/artifactId version2.1/version configuration webResources resource !--

can i change the name of the uploaded/installed artifact?

2011-01-04 Thread Leon Rosenberg
Hi, next day, next problem ;-)) I'm right now fighting with the name that comes out of the war packaging. My artifact is a webapp, called distributeme-registry and is a module of a larger project. However, the automatically generated client expects it to be accessable under

Re: can i change the name of the uploaded/installed artifact?

2011-01-04 Thread Leon Rosenberg
Or you can modify it only in the war plugin by changing the warName parameter (see http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html). I personally recommend the first way. Regards, Reynald On Tuesday, January 4, 2011 at 23:26 , Leon Rosenberg wrote: Hi, next day, next

Re: svn multi-modules vs. or with. maven multi-modules

2010-12-11 Thread Leon Rosenberg
Hello Zac, thank you for the reply. I will try to provide more details. In my pre-maven time i had 5 projects for moskito (http://moskito.anotheria.net), but 3 are enough to illustrate the problem: moskito-core moskito-web moskito-webui which are depending on each other webui- web - core i had

svn multi-modules vs. or with. maven multi-modules

2010-12-07 Thread Leon Rosenberg
Hi, We used to use svn multi-module projects for a while, because they were useful in some aspects. You only had to create one branch, one tag for the whole projects. However, for my limited understanding it doesn't work well with maven (or at all): svn-home/projecthome/trunk/project1

Re: how can i have two compile phases?

2010-11-02 Thread Leon Rosenberg
Well, my code generator is attached and it works, the problem is that the code generator itself has to be compiled first. regards Leon On Fri, Oct 29, 2010 at 11:10 PM, Paul Benedict pbened...@apache.org wrote: On Fri, Oct 29, 2010 at 4:03 PM, Leon Rosenberg rosenberg.l...@gmail.com wrote: Hi

Re: how can i have two compile phases?

2010-11-02 Thread Leon Rosenberg
Sorry, I was not able to answer to this message in the previous three days... If I understand your replies correctly, I cannot split the compile phase into two with maven. This sounds pretty ... shitty ;-( regards Leon On Fri, Oct 29, 2010 at 11:07 PM, Manfred Moser manf...@mosabuam.com wrote:

Re: how can i have two compile phases?

2010-11-02 Thread Leon Rosenberg
initially... the easiest tools for setting up a build process are not necessariliy the best tools for maintaining a build when the original build engineer moves elsewhere On 2 November 2010 10:22, Leon Rosenberg rosenberg.l...@gmail.com wrote: Sorry, I was not able to answer to this message

how can i have two compile phases?

2010-10-29 Thread Leon Rosenberg
Hi, I have following requirement. I have a project, in which I have one source folder which contains a code generator (run with apt), another source folder which contains code, which is processed by the generator from folder 1, and a third folder that relies on the code generated by the second

Now seriously: how can I manage dependencies of own projects with maven

2010-10-15 Thread Leon Rosenberg
Hello, following situation: I have like 20 projects which are libs of different level. They are all built as jars. They are partially dependent on each other (not circularly). For example project A provides very basic utils. Project B is more specialized and depends on A. Project C depends on A,

Re: Now seriously: how can I manage dependencies of own projects with maven

2010-10-15 Thread Leon Rosenberg
On Fri, Oct 15, 2010 at 10:31 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: On 15 October 2010 07:28, Leon Rosenberg rosenberg.l...@gmail.com wrote: Hello, following situation: I have like 20 projects which are libs of different level. They are all built as jars

Re: maven is a swamp

2010-10-14 Thread Leon Rosenberg
Hello, On Wed, Oct 13, 2010 at 10:53 PM, Graham Leggett minf...@sharp.fm wrote: On 13 Oct 2010, at 8:52 PM, Leon Rosenberg wrote: Many traditional programming languages are declarative and not procedural or are based on declarative concepts, most of the time the declarative nature

Re: maven is a swamp

2010-10-13 Thread Leon Rosenberg
On Wed, Oct 13, 2010 at 5:31 AM, Brian Topping topp...@codehaus.org wrote: On Oct 12, 2010, at 10:01 PM, Martin Gainty wrote: Suprisingly maven is not the first programming language to use XML This is worth clarifying.  What makes Maven unique, and I believe groundbreaking, is that the POM

Re: first plugin

2010-10-05 Thread Leon Rosenberg
the source of the error below. Justin On Mon, Oct 4, 2010 at 5:50 PM, Leon Rosenberg rosenberg.l...@gmail.com wrote: Hello, I'm currently writing my first plugin and am struggling with very basics. From the guide (http://maven.apache.org/guides/plugin/guide-java-plugin-development.html) I

Re: first plugin

2010-10-05 Thread Leon Rosenberg
: * @execute phase=generate-sources But I doubt that's the source of the error below. Justin On Mon, Oct 4, 2010 at 5:50 PM, Leon Rosenberg rosenberg.l...@gmail.com wrote: Hello, I'm currently writing my first plugin and am struggling with very basics. From the guide (http

Re: first plugin

2010-10-05 Thread Leon Rosenberg
5, 2010 at 11:16 AM, Jörg Schaible joerg.schai...@gmx.de wrote: Hi Leon, Leon Rosenberg wrote: ok, resolved, my error, i forgot to explicitly include the compile plugin, therefor my plugin was packaged but contained no classes. thanx for the help. now i only need to force the using project

Re: first plugin

2010-10-05 Thread Leon Rosenberg
...@gmail.com wrote: On Tue, Oct 5, 2010 at 7:10 AM, Leon Rosenberg rosenberg.l...@gmail.com wrote: basically add this to my pom ...    sourceDirectory${project.basedir}/java/sourceDirectory Did you add this at the same time?  If so, that's what did it... without that Maven would expect

Re: how to centralize configuration accross multiple modules

2010-10-05 Thread Leon Rosenberg
On Tue, Oct 5, 2010 at 2:50 PM, emerson echofloripa.y...@gmail.com wrote: Hi ... I would like then to pass a parameter to the mvn command (eg. mvn -Denv=st1) and it would pick up the appropriate resource file depending on the environment. Hi, I don't know whether it is what you want, but

first plugin

2010-10-04 Thread Leon Rosenberg
Hello, I'm currently writing my first plugin and am struggling with very basics. From the guide (http://maven.apache.org/guides/plugin/guide-java-plugin-development.html) I understood that if I specify a goal in a javadoc annotation I will able to call it later directly, but I fail to achieve