New packaging type HOWTO?

2010-06-14 Thread Laird Nelson
Hello; I'd like to add a new packaging type for our builds. Strictly speaking, I could just pack up the file I need into a jar and use that, and I will if I have to, but I'd like to see what's involved in making a new packaging type. I hunted through the Maven Developer Centre links on the Maven

Re: New packaging type HOWTO?

2010-06-14 Thread kristian
maybe following blog post helps (just read the code if you can not understand french): http://blog.tartachuc.org/2008/07/07/creer-un-packaging-maven2/ or have a look at the code and xml files (components.xml) of other maven plugins like the war-maven-plugin, etc regards Kristian On Mon, Jun 14,

How to get the execution id from a plugin

2010-06-14 Thread Giuseppe.Greco
Hi all, I'm writing a Maven plugin: public class MyMojo extends AbstractMojo { ... private void execute() throws MojoExecutionException { /* I need to get the execution id here */ } } Given the following POM, I'm wondering how can I retrieve the execution id from it:

Re: New packaging type HOWTO?

2010-06-14 Thread Laird Nelson
On Mon, Jun 14, 2010 at 9:36 AM, kristian wrote: > maybe following blog post helps (just read the code if you can not > understand french): Thanks for the reference--and for the excuse to practice my 12 years of schoolroom-only French! Best, Laird ---

Re: Strange surefire error

2010-06-14 Thread Wayne Fay
> When running tests we get errors > "org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.CommandLineException: > Error while executing external command, process killed." when Maven > runs the command below. What happens when you run this from the same directory? Literally open a M

Re: New packaging type HOWTO?

2010-06-14 Thread Adam Leggett
This should provide you with the info you need: http://www.sonatype.com/people/2009/08/create-a-customized-build-process-in-maven/ On Mon, 2010-06-14 at 09:06 -0400, Laird Nelson wrote: > Hello; I'd like to add a new packaging type for our builds. > > Strictly speaking, I could just pack up the

Re: Strange surefire error

2010-06-14 Thread Joacim J
> What happens when you run this from the same directory? Literally open > a MS-DOS prompt and copy/paste starting at cmd.exe through to the last > double quote. > > Forking command line: cmd.exe /X /C ""C:\Program > Files\IBM\WMBT700\jdk\jre\bin\java" -jar > C:\DOCUME~1\v008789\LOCALS~1\Temp\suref

Re: Strange surefire error

2010-06-14 Thread Wayne Fay
> As I wrote in the previous mail: "If I however run the command directly it > works." Yea, I saw that, but didn't actually believe that you were executing the right command. We get a lot of hmmm confused people on this list at times. Most likely there is something going on related to plexus.util

Re: Strange surefire error

2010-06-14 Thread Joacim J
On Mon, Jun 14, 2010 at 5:04 PM, Wayne Fay wrote: > > As I wrote in the previous mail: "If I however run the command directly > it > > works." > > Yea, I saw that, but didn't actually believe that you were executing > the right command. We get a lot of hmmm confused people on this list > at times

multi module checkout

2010-06-14 Thread House, Thomas
Hi Everyone - I'm having a problem checking out the code from my multi module project - it's very frustrating and I've been working on it for a few days, so any help anyone can provide will be greatly appreciated. Here's the background - I have a multi module project where the parent project is j

RE: How to get the execution id from a plugin

2010-06-14 Thread Giuseppe.Greco
Maybe this is the wrong list... Shall I move this question to the Developers list? Jeff > -Original Message- > From: giuseppe.gr...@b-source.ch [mailto:giuseppe.gr...@b-source.ch] > Sent: Monday, June 14, 2010 3:52 PM > To: users@maven.apache.org > Subject: How to get the execution id fro

Re: How to get the execution id from a plugin

2010-06-14 Thread Stephen Connolly
I'm not sure it's possible to get the execution id, just as it's not possible AFAIK to get the phase the execution is bound to -Stephen On 14 June 2010 17:05, wrote: > Maybe this is the wrong list... Shall I move this question to the > Developers list? > Jeff > > > -Original Message- >

Re: multi module checkout

2010-06-14 Thread Justin Edelson
On 6/14/10 11:58 AM, House, Thomas wrote: > This seems like it would be a very common usecase so I'm surprised I > can't find more information about it on the web. Maybe I'm doing a bad > job searching. > An observation - I get the impression scm:checkout isn't used very much and/or this is a CVS

Specifying plugin versions

2010-06-14 Thread sebb
The guide to configuring plugins [1] says that: "Important Note: It is recommended to always defined each version of the plugins used by the build to guarantee the build reproducibility." This seems sensible, but I've also been told that one should not specify the versions of the core plugins [2]

Re: Specifying plugin versions

2010-06-14 Thread Jason van Zyl
All plugins because unfortunately we haven't had the best track record with respect to behavioral compatibility between releases. On Jun 14, 2010, at 1:37 PM, sebb wrote: > The guide to configuring plugins [1] says that: > > "Important Note: It is recommended to always defined each version of >

How to resolve properties defined in another (external) artifact?

2010-06-14 Thread Michael O'Cleirigh
Hello, The case I am looking at is that I have two maven artifact hierarchies that are independent. Hierarchy A artifacts are core code that is shared between a bunch of different projects. Hierarchy B artifacts are for a single project and in some cases depend on artifacts from A. Now t

Re: How to resolve properties defined in another (external) artifact?

2010-06-14 Thread Anders Hammar
Nope, not possible the way you describe it. However, you can control the version of all dependencies (incl. transitive) through the use of dependencyManagement in the B hierarchy. http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html /Anders On Mon, Jun 14, 2010 a

Re: How to resolve properties defined in another (external) artifact?

2010-06-14 Thread Ron Wheeler
The way that we solved this is to build a set of pom files that identify the 3rd party libraries that we use and version the POM with the version of the product that we are building. For example, we have a pom-spring-hibernate-mysql-tomcat project that builds a jar with the spring, hibernate, my

Re: Specifying plugin versions

2010-06-14 Thread sebb
On 14/06/2010, Jason van Zyl wrote: > All plugins because unfortunately we haven't had the best track record with > respect to behavioral compatibility between releases. OK, thanks. What about the Maven Available Plugs list at [1] - can one assume that these plugin versions will work together O

Re: Specifying plugin versions

2010-06-14 Thread Nick Stolwijk
Use the Maven Versions Plugin to show the latest versions of all the plugins you have specified. Most of the time the latest are the greatest. I only move back if I hit specific bugs (or I move forward if a patch is available, and make my own release) http://mojo.codehaus.org/versions-maven-plugin

problems with jar in central?

2010-06-14 Thread Zac Thompson
Is there a place to report issues with the contents of maven central? Or does it need to be reported to each project's maintainers? https://repository.sonatype.org/content/repositories/central/org/codehaus/woodstox/stax2-api/3.0.1/ the jar.sha1 file reads 88985bfab2394cf8e56fcbd97cd44f7cac7bf8ca

using javascript dependencies in a webapp (war packaging)

2010-06-14 Thread Haszlakiewicz, Eric
I've got a webapp that uses javascript files from third party projects. For instance, one of the files we use is prototype.js. It seems like this must be something that many people have done in the past, but I can't seem to find much information about it. The first issue I have is that I can't s

Re: using javascript dependencies in a webapp (war packaging)

2010-06-14 Thread Nick Stolwijk
I don't know the state of the plugin, but have a look at the Maven Javascript Plugin. http://mojo.codehaus.org/javascript-maven-tools/javascript-maven-plugin/index.html Hth, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl On Tue, Jun 15, 201

Re: using javascript dependencies in a webapp (war packaging)

2010-06-14 Thread Manos Batsis
On 06/15/2010 01:23 AM, Haszlakiewicz, Eric wrote: I've got a webapp that uses javascript files from third party projects. For instance, one of the files we use is prototype.js. It seems like this must be something that many people have done in the past, but I can't seem to find much informatio

RE: using javascript dependencies in a webapp (war packaging)

2010-06-14 Thread Haszlakiewicz, Eric
>-Original Message- >From: Manos Batsis [mailto:manos_li...@geekologue.com] > >There is no standard convention yet AFAIK. Including the JS libs in the >war is one thing, making it accessible to the browser through a specific >URL is another. Well that sucks. :( >Here (at Abiss.gr) we use

Re: using javascript dependencies in a webapp (war packaging)

2010-06-14 Thread Shan Syed
I've worked on projects that share common javascript files, so I used a simple assembly descriptor to zip each set of files and install them as maven artifacts WAR projects then just specified them as dependencies in their POMs it's nice then to be able to treat these artifacts like any other proje

Re: using javascript dependencies in a webapp (war packaging)

2010-06-14 Thread Manos Batsis
On 06/15/2010 01:55 AM, Haszlakiewicz, Eric wrote: -Original Message- From: Manos Batsis [mailto:manos_li...@geekologue.com] There is no standard convention yet AFAIK. Including the JS libs in the war is one thing, making it accessible to the browser through a specific URL is another.

mvn release:prepare cannot tag correctly from a branch

2010-06-14 Thread Ed Hillmann
I've got my Maven project checked out from a branch using SVN. The SVN repository structure is the "standard" one trunk tags branches I've checked out a working copy from a branch, and have run release:prepare on it. It all works, but then the release:perform fails. When I look at the tag in S

Re: mvn release:prepare cannot tag correctly from a branch

2010-06-14 Thread Ed Hillmann
Hi all. Some more info... when I change the developerConnection back to the URL, it's even worse. The tag reflects the code in the trunk instead of in the branch (I can tell because the POMs have different version numbers... the tag has the version number of the trunk instead of the branch... and

Re: mvn release:prepare cannot tag correctly from a branch

2010-06-14 Thread Ed Hillmann
More info... I am trying to reorganize my maven projects. Currently, there is a single pom that declares modules and acts as a parent project to those sub-modules. When I use this structure, the correct source is used when creating the SVN tag. I'm trying to move a bunch of the declarations into

Re: mvn release:prepare cannot tag correctly from a branch

2010-06-14 Thread Ed Hillmann
OK, I've been able to recreate this using a dummy application. I do think it's a bug, so I've raised an issue on it http://jira.codehaus.org/browse/MRELEASE-576 It does actually end up building the release and deploying the correct one. However, in the process, it's checking out the entire cont

Re: problems with jar in central?

2010-06-14 Thread Anders Hammar
http://jira.codehaus.org/browse/MEV /Anders On Mon, Jun 14, 2010 at 23:58, Zac Thompson wrote: > Is there a place to report issues with the contents of maven central? > Or does it need to be reported to each project's maintainers? > > > https://repository.sonatype.org/content/repositories/centr

Re: Strange surefire error

2010-06-14 Thread Kristian Rosenvold
Does it fail "immediately" or does it run the tests first ? Is the plugin configured with forkedProcessTimeoutInSeconds ? Kristian - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: us

Problem using maven-deploy-plugin against an https server via proxy

2010-06-14 Thread Jochen Wiedmann
Hi, I am trying to deploy a snapshot of an Apache project to https://repository.apache.org/content/repositories/snapshots. From my point of view, the configuration is correct: I have a "server" entry in my settings.xml and I have configured an https proxy. (See "Adding User-Agent configuration" an

Where do I put non-java project common files?

2010-06-14 Thread oor
I have n projects: project_super: Aggregates the projects project_subi. Just a "pom-project". project_sub1 : Inherits project_super ... project_subi : Inherits project_super ... roject_subn : Inherits project_super 1) Most projects project_subi have an assembly descriptor sited in their ${basedi