Re: Example of setting up a maven 2 J2ee project

2007-09-05 Thread Martin Hoeller
Am Dienstag, 4. September 2007 schrieb Eric Wood: > Folks: > > I'm new to maven and I'm looking for a good reference to how to set up a > j2ee application using maven 2.0. Are there and good documents or > examples out there that I could use to get started? See http://www.sonatype.com/book/j2ee.h

How to add menu entries to Project Information

2007-10-10 Thread Martin Hoeller
Hi all! I've set up a simple site for a project following the documentation on maven.apache.org. I basically have a "Welcome Page" and the usual "Project Documentation" links with "Project Information" and "Project Reports" on the left side. What I want to do is add another menu entry to the "

Re: How to add menu entries to Project Information

2007-10-10 Thread Martin Hoeller
On 10. Oktober 2007 Manos Batsis wrote: > > I usually just add menu entries in site.xml. Yes, this is what I found out quite easily. However, the link I want to add is a link for an enterprise content management system (www.nuxeo.org) and would fit to the other entries in "Project Information".

Re: maven ear building

2007-10-30 Thread Martin Hoeller
Hi! On 28. October 2007 jdijkmeijer wrote: > Hi i'm quite new to Maven, and I'm currently looking into some existing > code/poms to genereate a ear project Read the coresponding chapters in the really good books "Better Builds with Maven" from DevZuZz [1] and "Maven: The Definitive Guide" from

Re: Maven Release plugin

2007-10-30 Thread Martin Hoeller
On 29. October 2007 Mark Russell wrote: > I am about to release my first maven plugin. I was looking at the > maven-release-plugin. This seams to do what I want. does it work with > CVS? Yes it does. > If so where is the documentation for this? It uses maven's SCM infrastructure. See [1] for

Re: [m2] Continuum error with ${scm.connection} type variables in declaration

2007-12-03 Thread Martin Hoeller
On 28 Nov 2007, Mick Knutson wrote: > I have my scm as: > > > ${scm.connection} > ${scm.connection} > ${scm.url} > See this post for details: http://www.nabble.com/-c-1.0-beta-4--Error-getting-continuum-to-pick-up-settings.xml-tf4893604s177.html#a14014979 hth,

Re: deploying without deploying - how do I turn off deployment of pom (or anyother default maven goal in a phase)?

2007-12-03 Thread Martin Hoeller
On 03 Dec 2007, [EMAIL PROTECTED] wrote: > How can I stop maven from deploying the pom. Can't I disable the goal > somehow? This should be possible (not tested): just configure the maven-deploy-plugin [0] not to execute in the deploy lifecycle. See the POM Reference [1] and the Introduction t

Fw: deploying without deploying - how do I turn off deployment of pom(or anyother default maven goal in a phase)?

2007-12-04 Thread Martin Hoeller
I forgot to CC the list... Begin forwarded message: Date: Tue, 4 Dec 2007 14:16:10 +0100 From: Martin Hoeller <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: deploying without deploying - how do I turn off deployment of pom(or anyother default maven goal in a phase)? Hi Michae

Re: Default executions

2007-12-04 Thread Martin Hoeller
On 03 Dec 2007, lightbulb432 wrote: > > How can I find out the default plugin executions? For example, how would I > know that maven-clean-plugin or maven-site-plugin isn't automatically in the > build lifecycle (therefore requiring me to do a mvn clean or mvn site > specifically or adding it as

archiva.xml on JBoss

2008-01-28 Thread Martin Hoeller
Hi all! As discussed in another thread [0], I deployed archiva successfully to JBoss 4.2.2.GA. However, when configuring repositories archiva complains that it cannot write configuration and a number of exceptions are thrown. The reason seems to be that JBoss' home directory is (by intention) not

Re: A "Hello World" in ejb3

2008-01-28 Thread Martin Hoeller
On 27 Jan 2008, Angelo Chen wrote: > I'm looking for a simple sample Maven project for ejb3, Have a look at this: http://maven.apache.org/plugins/maven-archetype-plugin/examples/j2ee-simple.html It's not just EJB but a complete EAR, but it's a good starting point. Also have a look at www.michae

Re: A "Hello World" in ejb3

2008-01-28 Thread Martin Hoeller
On 28 Jan 2008, Angelo Chen wrote: > Thanks but maven-archetype-j2ee-simple is not for ejb3, is there archetype > for ejb3? thanks. Unfortunately not that I know of and not in the list of archetypes [0]. However, you can use the j2ee archetype and just add this to your maven-ejb-plugin definitio

Re: [c1.1] mvn binary not found on path?

2008-01-29 Thread Martin Hoeller
On 29 Jan 2008, Mick Knutson wrote: > I am logging in as the admin user and mvn is indeed on my $PATH and I can > validate that running mvn from anywhere works fine. > But the same user starts up continuum and I keep getting an error the mvn > can't be found? > > Why is this happening? > The

Re: deploying to archiva repository

2008-02-18 Thread Martin Hoeller
On 18 Feb 2008, Sunita Pahwa wrote: > I am using archiva 1.0.1 standalone version. I am trying to deploy my > artifact to archiva 'internal' repository using 'mvn: deploy'. > 1) I have done following changes to my artifact's POM: > -added and sections under > element with appropriate and > -a

Re: deploying to archiva repository

2008-02-18 Thread Martin Hoeller
Hi Wendy! On 18 Feb 2008, Wendy Smoak wrote: > On Feb 18, 2008 4:35 AM, Martin Hoeller <[EMAIL PROTECTED]> wrote: > > On 18 Feb 2008, Sunita Pahwa wrote: > > > I have followed all the steps specified at > > > http://maven.apache.org/archiva/docs/1.0/userguide

Re: Separating the base from the installation not working

2008-02-18 Thread Martin Hoeller
On 19 Feb 2008, Martin Hoeller wrote: > On 19 Feb 2008, Brett Porter wrote: > > > oops - you need to edit plexus.xml too. > > Which one, a find -name plexus.xml gives me this: > > ./archiva-data/conf/plexus.xml > ./apache-archiva-1.0.1/conf/plexus.xml > ./apache-a

Re: Separating the base from the installation not working

2008-02-19 Thread Martin Hoeller
On 19 Feb 2008, Martin Hoeller wrote: > I'll go and file an issue with the updated documentation. Added information from this thread to issue MRM-701 [0]. hth, - martin [0] http://jira.codehaus.org/browse/MRM-701 -- Martin Höller | [EMAIL PROTECTED] *x Software +

Re: putting context.xml into META-INF

2008-02-25 Thread Martin Hoeller
Hi! First, if you start a new topic, please do this by writing a new mail and not by replying to some other mail. This can be really annoying if you use a proper MUA that sorts by thread! On 25 Feb 2008, [EMAIL PROTECTED] wrote: > i am using "mvn package" to create a war file of my project. > Ho

Re: an oveview of all the installed plugins and goals

2007-05-16 Thread Martin Hoeller
Hi! On Wednesday, 16. May 2007 14:28 Gert-Jan Braas wrote: > Now I'm using the axis2-aar maven plugin. > As far as I can tell, it is installed. > == > [EMAIL PROTECTED]:~/.m2/repository$ find . | grep aar > ./org/apache/maven/plugins/maven-aar-plugin > ./or

Re: Writing portable CVS configuration using Maven 2

2007-07-25 Thread Martin Hoeller
Hi! First, please stop hijacking somebody else's thread by replying to a mail and changing the subject! If you want to start a new topic, write a new email and DO NOT reply to another thread. Thanks! Second, why do you repost somebody's questions answered months ago? Jerome Thibaud posted exa

handling of optional 3rd-party-dependencies in tests

2007-02-14 Thread Martin Hoeller
Hi all! I've got a question regarding dependencies. Let me first explain my project structure. - I've got project A which is a web application (WAR). - A depends on project B which is of type JAR. - B depends on hibernate which has an optional dependency on ehcache. My idea is if A wants to use

Re: [m2] handling of optional 3rd-party-dependencies in tests

2007-02-14 Thread Martin Hoeller
Hello Franz! Thanks for your quick reply. On 14. February 2007 13:08 franz see wrote: > I'm guessing that happened while maven was building module B. Yes, forgot to mention this. > AFAIK, that's just a reminder that that jar is using the scope "test" > only. I don't think it's anything to worr

Re: [ANN] First release of Patchwork coverage maven plugin

2007-02-26 Thread Martin Hoeller
Hi! Just wanted to try out the patchwork-maven-plugin but it fails with the following exception (actually it doesn't fail, but maven says "Build Successful". However, I didn't get a report): $ mvn patchwork:test [...] Error while defining at.co.xss.emcs.tg.dsp.EmcsDatasetProducer java.lang.NoClas

Re: Default location of config files -> Maven Standard Directroy Layo ut?

2007-03-28 Thread Martin Hoeller
Hi! Sorry for the late reply. On 26-03-2007 11:15 Doyle D.G. (Duncan) worte: > Furthermore, where should one put configuration files which are needed > for testing? There is no 'src/test/config' listed in the Maven Standard > Directory Layout. Put it in src/test/resources. hth, - martin -- Ma

Re: [2.0.9 RC6] Release Candidate testing

2008-04-02 Thread Martin Hoeller
On 01 Apr 2008, Brian E. Fox wrote: > I didn't get much response yesterday and we respun a new RC (RC6) so I'm > resending the original mail. Do you also want feedback like "no problems here"? If yes: 2.0.9-RC6 runs fine, no problems here :-) hth, - martin signature.asc Description: PGP signa

Re: Use 2 pom.xml files with different names

2015-08-11 Thread Martin Hoeller
Hi! Am Mon, 10 Aug 2015 19:23:51 +0300 schrieb Alex Ditu : > I cannot test right now, but it can be tested very simple: in a simple > project, rename pom.xml and run install/deploy, and see if it works. > If it is ok, then is smth that I've done wrong. Else maybe it is the > desired effect (wich

[ANN] vdldoc-maven-plugin 1.0-beta-1 available

2016-06-17 Thread Martin Hoeller
Hi all! I'm happy to announce the availability of the Vdldoc Maven Plugin 1.0-beta-1 on maven central. The Vdldoc Maven Plugin uses OmniFaces Vdldoc [1] to generate documentation for Facelet tags and JSF (composite) components. Basically it's JavaDoc for JSF. Documentation: https://matinh.github

Re: Comparing specifying repositories in pom vs. settings.xml?

2016-10-18 Thread Martin Hoeller
On 17 Okt 2016, Manfred Moser wrote: > If you really feel you need to control the source of where you download > components from within the source control system > I would still NOT use the repositories definition in the POM since that is > them transferred to the target repo on deployment (unl

Re: Building WAR files with/without EAR context

2016-11-09 Thread Martin Hoeller
Hi! On 08 Nov 2016, Clemens von Musil wrote: > I am working on a multimodule maven project consisting of several EJB, WAR > and an EAR module. The EJB modules contain shared functionality. > > To increase development speed, I want the WAR modules build in a way that > allows me to bundle them in

Re: Building WAR files with/without EAR context

2016-11-16 Thread Martin Hoeller
On 14 Nov 2016, Clemens von Musil wrote: > Hi again, > > thanks a lot for your advice, Martin. > > We spent a lot of time into skinny wars but stuck with ejb dependencies. > > The EAR contains several WAR modules and these WAR modules share several > EJB modules. > Unfortunately, the skinny war

Re: Building WAR files with/without EAR context

2016-11-16 Thread Martin Hoeller
On 16 Nov 2016, Clemens von Musil wrote: > This is true for jar dependencies. > > But if the war file depends on an artifact with type ejb > (ejb), the skinnywar-option ignores this dependency and let it > remain in war/lib. This is not true in general, it works for me! Did you declare the depen

Re: Building WAR files with/without EAR context

2016-11-17 Thread Martin Hoeller
On 17 Nov 2016, Clemens von Musil wrote: > We pushed a very minimal example project to a public github repo located > here: > > https://github.com/kr1schan/mavenToy > > The project consists of an ear, two war modules, one ejb module and one > plain jar artifact. > Both war modules depend on the

Re: Building WAR files with/without EAR context

2016-11-21 Thread Martin Hoeller
On Fri, 18 Nov 2016 11:17:08 +0100 Stefan Seidel wrote: > you don't usually depend on EJBs in your WARs. That's actually right. You depend on the API (interfaces) of the EJBs. This is usually in separate JAR (but it is not required to be). > You should depend on > ejb- client. IIRC you'll have

Re: Strategies for overriding parent plugin configuration in some modules without duplicating config code?

2017-02-20 Thread Martin Hoeller
Hi! On Mon, 20 Feb 2017 16:32 "KARR, DAVID" wrote: > Although my issue is about configuring the "jacoco-maven-plugin", I > think it's really more of a pure Maven configuration issue, as I > don't think this situation is unique to JaCoCo. > > I have a somewhat large multi-module project. Each o

Re: How to use global checkstyle.xml that have SuppressionsFilter included

2017-05-10 Thread Martin Hoeller
On 09 Mai 2017, Gayan Weerakutti wrote: > So here in my case I want use remote checkstyle file located in > https://github.com/openmrs/openmrs-core/blob/master/checkstyle.xml?#L45 in > another project. > > > In my project's pom I have config location set as > follows:

Re: Query on increasing virtual memory for java heap size issue

2018-01-31 Thread Martin Hoeller
Hi! On 30 Jän 2018, Saisowjanya N wrote: > Dear All > I am facing java heap space issue.I want increase the heap size using vm > arguments through maven. > > When searched in internet I found a solution that says to define > ${maven.projectBasedir}/.mvn/extensions.xml in our project > > Could

Default value for properties depending on active profile

2013-10-18 Thread Martin Hoeller
Hi! Here is the short version of what I want: I've got a JEE6 webapp with a web.xml file, where the context-parameter facelets.DEVELOPMENT should be enabled in development mode but disabled for releases. My idea to solve this problem is as follows: 1) Define the context parameter in web.xml like

Re: Default value for properties depending on active profile

2013-10-18 Thread Martin Hoeller
On 18 Okt 2013, Adrien Rivard wrote: > You should just override the context-param when deploying on the real > production server. What do you mean by "override"? You don't want me to extract the released WAR artifact (which is actually included in an EAR), modify the web.xml and repackage it. Do

Re: Default value for properties depending on active profile

2013-10-18 Thread Martin Hoeller
On 18 Okt 2013, Adrien Rivard wrote: > Most server allow you to externally override context-param without > modifying the war I can't find anything for JBoss 7, which is the application-server i use. If this is not possible, your suggestion doesn't work for me :( > (which would be even worst tha

Best practices for Java EE 7 dependencies

2014-02-07 Thread Martin Hoeller
Hi! I'm wondering what the best practices are for specifying Java EE 7 dependencies in my modules. There is the so called BOM (bill of materials) POM: javax:javaee-api:7.0 which lists all API submodules required for JEE7. Specifying this in my module as javax javaee-api 7.0 wo

Re: Best practices for Java EE 7 dependencies

2014-02-11 Thread Martin Hoeller
Hi! Thanks for your answers so far. Am Fri, 7 Feb 2014 11:17:22 -0600 schrieb Wayne Fay : > > Should I better specify the exact dependencies and investigate some > > more work in POM maintainance? What would this gain me? > > You answered your own question, congrats! :) Well, if I got you righ

Are skinny WARs still recommended?

2014-02-27 Thread Martin Hoeller
Hi all! Most webapplication developers will probably know the concept of skinny WARs which is described here [0]. When I have a skinny WAR in an EAR everthing from WAR!WEB-INF/lib is excluded and goes into the lib-folder of the EAR. Thus, it is in the WARs classpath. However, when I use JSF comp

Re: Are skinny WARs still recommended?

2014-02-27 Thread Martin Hoeller
Hi Simon! Thanks for your help... On 27 Feb 2014, Simon Lessard wrote: > Hi Martin, > > Your definition of the skinny WAR is very slightly off and that may or not > solve your issue. A skinny WAR is not necessarily a WAR from which *all* > WEB-INF/lib was stripped, but rather one where all of i

Re: Are skinny WARs still recommended?

2014-02-27 Thread Martin Hoeller
On 27 Feb 2014, Antonio Petrelli wrote: > 2014-02-27 17:05 GMT+01:00 Martin Hoeller : > > > I have another concrete example with a single WAR where OmniFaces is a > > dependency by the WAR and by some EJB JAR, both contained in the EAR. The > > OmniFaces JAR goes in the

Re: Are skinny WARs still recommended?

2014-02-27 Thread Martin Hoeller
On 27 Feb 2014, Antonio Petrelli wrote: > 2014-02-27 17:14 GMT+01:00 Martin Hoeller : > > > On 27 Feb 2014, Antonio Petrelli wrote: > > > > > 2014-02-27 17:05 GMT+01:00 Martin Hoeller : > > > > > > > I have another concrete example with a single WA

Re: Are skinny WARs still recommended?

2014-02-27 Thread Martin Hoeller
On 27 Feb 2014, Simon Lessard wrote: > From a pure JSF point of view, you could also add a > WEB-INF/faces-config.xml file in your project that redefine all OmniFaces > artifact that are annotated. It's a super poor man solution/ugly hack as > you might have to alter the file with every OmniFaces

Re: Are skinny WARs still recommended?

2014-02-27 Thread Martin Hoeller
On 27 Feb 2014, Mark Struberg wrote: > JSF by default loads the resources from the local WAR classpath only. But you > can easily write your own ResourceResolver which picks the stuff from the > ClassPath as well. > > An example can be found here: > http://ocpsoft.org/opensource/create-common-f

Re: Maven copies 3 jars in lib folder (skinny war) for no reason

2014-02-28 Thread Martin Hoeller
Hi! This topic was just discussed yesterday: http://maven.40175.n5.nabble.com/Are-skinny-WARs-still-recommended-td5786626.html On 28 Feb 2014, poroto20 wrote: > I have one EAR project and I am trying to have a skinny war. It seems to be > working ok but for some reason it keeps copying 3 depende

OutOfMemoryError with maven-javadoc-plugin

2014-03-28 Thread Martin Hoeller
Hi! I have a quite large multimodule project with >150 modules. When executing "mvn site" the maven-javadoc-plugin is executed with default configuration. After some time of execution it fails in "aggregate" goal and I get a Exception in thread "main" java.lang.OutOfMemoryError: GC overhead lim

Re: OutOfMemoryError with maven-javadoc-plugin

2014-03-28 Thread Martin Hoeller
.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html#additionalJOption > > Cheers > > > 2014-03-28 10:36 GMT+01:00 Martin Hoeller : > > > Hi! > > > > I have a quite large multimodule project with >150 modules. When > > executing "mvn site

Re: OutOfMemoryError with maven-javadoc-plugin

2014-03-28 Thread Martin Hoeller
Yes I did. If I tried without "-J" I got some error. On 28 Mär 2014, Baptiste Mathus wrote: > Did you make sure you put -J-Xmx and not only -Xmx ? > > > 2014-03-28 12:24 GMT+01:00 Martin Hoeller : > > > Hi Baptiste! > > > > I tried it but it did

Re: OutOfMemoryError with maven-javadoc-plugin

2014-03-28 Thread Martin Hoeller
Hi Ron! On 28 Mär 2014, Ron Wheeler wrote: > Have you tried increasing the JVM memory past > > MAVEN_OPTS="-Xmx1536m -Xms512m -XX:MaxPermSize=512m" > MAVEN_OPTS="-Xmx1280m -Xms256m -XX:MaxPermSize=768m" > > You could try something extreme (-Xmx8g ) and see if that changes anything. Well, I sho

Re: OutOfMemoryError with maven-javadoc-plugin

2014-03-28 Thread Martin Hoeller
On 28 Mär 2014, Justin Georgeson wrote: > The maven-javadoc-plugin has a maxmemory configuration parameter. In my > parent POM I set a default property docs.maxMemory and then configure > maven-javadoc-plugin with > > ${docs.maxMemory} > > So each team can override that default setting in thei

bug in maven-ear-plugin with skinny war?

2014-05-05 Thread Martin Hoeller
Hi! I see strange behavior when using the maven EAR plugin with the skinnyWar [1] feature, which might be a bug. Here is the (simplified) module-structure I have: core +-- core-shared web +-- backend +-- war ee +-- ear Usually all modules share the same version (let's say 1.0) number.

Re: Version in Mojo

2014-05-19 Thread Martin Hoeller
Am Wed, 14 May 2014 07:41:27 -0700 (PDT) schrieb DenisDasKind : > Hi, > > i'm new to maven, and now i have the following problem. I have a > custom Mojo, and the Mojo should print the own version stored in the > pom.xml of this mojo. And now i have trouble to get this version. I > have tried the

Re: Testing Maven 3.2.3

2014-08-14 Thread Martin Hoeller
On 13 Aug 2014, Hilton Wichwski Silva wrote: > Example: > http://blog.ontoillogical.com/blog/2014/07/28/how-to-take-over-any-java-developer/ Just to let you know: there is already a plugin available to verify signatures as described in this StackOverflow answer: http://stackoverflow.com/questions

Bug? maven-ear-plugin 2.9.1 behaves different to 2.9

2014-11-26 Thread Martin Hoeller
Hi! I'm using the maven-ear-plugin to create an EAR with a skinny WAR. This worked fine till I did an update from version 2.9 to version 2.9.1. The actual problem is quite hard to explain, so I'll try and start with an abstract and provide details below. The problem is, the skinny WAR contains a

Re: Bug? maven-ear-plugin 2.9.1 behaves different to 2.9

2014-11-27 Thread Martin Hoeller
Hi Karl Heinz! On 26 Nov 2014, Karl Heinz Marbaise wrote: > Hi Martin, > > first can you create a project which reproduces the problem...otherwise > it's really hard to drill down the issue... I don't know if I can create such a project. I'll try and start with a simple project as described in

versions-maven-plugin not updating properties any more

2014-12-01 Thread Martin Hoeller
Hi all! I have two multi-module projects where the first one is a dependency of the second one. Usually before a release of the second one also the first one is released and the second one has to update the dependency-version which is set via a property. For this update I use versions-maven-plugi

Re: old version of dependencies getting included into project

2018-03-15 Thread Martin Hoeller
Hi! On 14 Mar 2018, Jonathan Yom-Tov wrote: > I have a fairly large project which compiles to a war file. I've upgraded > the jackson dependency to 2.7.3 but for some reason 2.4.3 and 2.4.0 jar > files are included into the war file in addition to the 2.7.3 version. I > ran mvn dependency:tree to

Re: Writing own plugin: The parameter annotation - does it work?

2018-04-17 Thread Martin Hoeller
Hi Gerrit! If you search for some examples have a look at https://github.com/matinh/vdldoc-maven-plugin I created this project some time ago as a proove of concept for myself to write a simple maven plugin including integration testing. Use the "run-its" profile to enable integration-tests and ha

Re: Maven Central broken? (was: Broken link for avalon)

2012-10-17 Thread Martin Hoeller
On 17 Okt 2012, Anders Hammar wrote: > https://issues.sonatype.org/browse/MVNCENTRAL Thanks. Reported it as https://issues.sonatype.org/browse/MVNCENTRAL-252 > It works for me though (Sweden/Europe) so I guess it depends on which > central mirror you're directed to. Maybe. I'm located in Austri

Re: Maven Central broken? (was: Broken link for avalon)

2012-10-17 Thread Martin Hoeller
On 17 Okt 2012, Lyons, Roy wrote: > Yet another reason to use a caching repository manager... You never know > when a repository out of your control can be on the fritz... We are using nexus, but the artifacts in question are just not yet in the cache. - martin signature.asc Description: PGP

Re: Can not get a jar from maven central

2012-11-05 Thread Martin Hoeller
Hi! Could it be MVNCENTRAL-252? See also this thread some weeks ago: http://maven.40175.n5.nabble.com/Broken-link-for-avalon-td5726894.html - martin On 05 Nov 2012, Brian Fox wrote: > N oone has been blacklisted in a while. Can you give us the headers like > shown here: > > > $ curl -I > htt

Re: My view on the relative merits of different ways to unpack jars into target/classes

2013-03-22 Thread Martin Hoeller
On 22 Mär 2013, Stephen Connolly wrote: > On 22 March 2013 08:12, Martin Höller wrote: > > > Hi! > > > > On 21 Mär 2013, Stephen Connolly wrote: > > > > > I think mailing lists are not the best way to explain why different > > > solutions are to be preferred when ranking against what is best for