Project-wide default profile?

2007-01-22 Thread pjungwir
Hello, I know that profiles get discussed here all the time, but I just wanted to confirm that the feature I want really doesn't exist. I want to create two mutually-exclusive profiles. To build the project successfully, you must activate one of these profiles. Therefore they should be in the

Re: Project-wide default profile?

2007-01-22 Thread pjungwir
Ah, thank you. The key is right here: activation property name!jsf/name /property /activation I didn't know you could activate a profile based on an *unset* property. But that gives me just what I need. Thanks again, Paul -- View this message in context:

Re: Assembly plugin for multi module project

2006-11-29 Thread pjungwir
Hello, I hit that error once! It is very confusing, but it means that the resulting tarball (or whatever) would be empty. In other words, Maven isn't finding any files to include in the assembly. I guess there is something wrong with your moduleSet, but I don't know; I haven't used this plugin

Re: Using the assembly plugin to build a stand-alone application

2006-11-21 Thread pjungwir
Hi Larry, I'm doing this, too. I think you'll need to create your own assembly descriptor. Here is mine: assembly idbin/id formats formattar.gz/format formatzip/format /formats fileSets fileSet directorytarget/directory

Re: Using the assembly plugin to build a stand-alone application

2006-11-21 Thread pjungwir
this in your project? Larry On 11/20/06, pjungwir [EMAIL PROTECTED] wrote: Hi Larry, I'm doing this, too. I think you'll need to create your own assembly descriptor. Here is mine: assembly idbin/id formats formattar.gz/format formatzip/format /formats

Re: site-deploy

2006-11-17 Thread pjungwir
I'm not positive, but it is probably something like what I've got for wagon-ftp in one of my projects: project ... extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-ftp/artifactId version1.0-beta-1/version

Re: Help on profiles

2006-11-17 Thread pjungwir
Hi Deluigi, You can solve your second problem by adding this below plugin: inheritedfalse/inherited I'm not sure about problem 1. Paul Deluigi Marcus wrote: Hi I have the following scenario: I have a project with several modules. One of the modules starts a container with

Re: site-deploy

2006-11-16 Thread pjungwir
Hi Francois, I'm not sure about the password prompt, but the file permissions problem looks like another case of this: http://jira.codehaus.org/browse/MASSEMBLY-153 Paul Francois Le Fevre wrote: Dear all, I am using maven 2 on a linux OS I want to deploy my project. I have 2

Re: Execute phase in weblogic:appc

2006-11-16 Thread pjungwir
I think forked lifecycles are often too helpful, like Clippy the Paperclip. If you can't find a real solution, you could patch the plugin. Give it a new Mojo that just calls the original, and put different annotations on the new mojo so it doesn't fork a lifecycle. That seems to be roughly how

Re: Best practice for source-generating multiple archetype plugin

2006-11-15 Thread pjungwir
Why not limit your plugin to generating the sources, and use the existing plugins for compiling and packaging? This is likely to be more flexible, plus it's a lot less work. If you want different artifactIds for each bundle, you should use a separate module for each. But you could also put them

Re: Maven plugin interaction

2006-11-15 Thread pjungwir
I think you have the right approach, but there are two missing bits: - make sure the assembly plugin doesn't attach its result. - make sure the last step does attach its result. An attached file is one that maven considers an artifact and will upload when you run install/deploy/etc. By

Re: Maven plugin interaction

2006-11-15 Thread pjungwir
not know what the assembly plugin produced. I guess I'm missing something, can you explain perhaps with more detail. thanks, Mikko pjungwir wrote: I think you have the right approach, but there are two missing bits: - make sure the assembly plugin doesn't attach its result

Re: [M2] Referencing Project Modules in plugin

2006-11-15 Thread pjungwir
Why do you have an asterisk after @parameter? Shouldn't you have a quote mark after =? Paul M Campbell wrote: I need my plugin to make an arraylist out of the modules in the parent pom. I'm creating a List out of them. I'm trying [EMAIL PROTECTED] expression=${project.modules} But

Re: error to package jar project

2006-11-15 Thread pjungwir
Please post the jar plugin section from your pom. Barbier-Accary Aurélien wrote: Hello, I obtain an internal error when I try « mvn package » or « mvn install » for a « jar » project. The trace is: [INFO] Internal error in the plugin manager executing goal

Re: Intalled pom version is not expanded resulting in a bogus pom version in the repository.

2006-11-14 Thread pjungwir
If you're installing the artifact every build, you might want to use a -SNAPSHOT version. Paul Arne Saeten wrote: Hi, I have the same problem. Any solutions out there? Thanks, Arne - To unsubscribe,

Re: How to get path to artifact for a dependency in a plugin

2006-11-13 Thread pjungwir
Hi Joachim, Some methods on MavenProject are deliberately limited to what you see in the pom, and others contain computed values. getDependencies() and getDependencyArtifacts() are the former type. Probably you want getArtifacts(). That will give you a Set of Artifact objects which should have

Re: problem with provided scope

2006-11-13 Thread pjungwir
I believe that dependencyManagement does not actually add dependencies. It just specifies which version should be used if a child adds that dependency. So instead of using dependencyManagement, perhaps you should try dependencies. Paul Joachim Van der Auwera wrote: Thanks for the help.

Re: Assembly plugin - packaging chaning the extension

2006-11-13 Thread pjungwir
Hi Ste, I'm not sure how to get a s4j extension. You could rename the file, but then it wouldn't be an attached artifact, so things like deploy would break. To get rid of the top-level directory, put this in your assembly descriptor: includeBaseDirectoryfalse/includeBaseDirectory Paul

Re: Continue Build and Site Generation on Junit failure

2006-11-13 Thread pjungwir
Suppose you say this: mvn test mvn site That gives you a failure but not a site. And if you say this: mvn test; mvn site you get a site but not a failure. So what if you wrote a quick plugin that checks for errors in the surefire reports? Then you could say: mvn test; mvn site; mvn

Re: Add Directory to Jar Manifest Classpath

2006-10-27 Thread pjungwir
Oh, I'm sorry, I thought you were saying that the Class-Path entry in the manifest couldn't refer to non-jar items. It's very easy to set the Class-Path entry using either the jar plugin or the assembly plugin. In the configuration section, specify an archive element. The jar plugin has pretty

Re: How to get the groupId and other values from a Maven pom file using

2006-10-26 Thread pjungwir
Are you writing a plugin? In that case, declare a parameter of type org.apache.maven.project.MavenProject and give it these javadoc annotations: @parameter default-value=${project} @required @readonly You can call methods as shown here:

Re: Add Directory to Jar Manifest Classpath

2006-10-26 Thread pjungwir
I don't understand. 2.2 is the plugin version, not the maven version, right? That appears to be released. For me, it's what maven just uses; I didn't do anything special. Paul Syvalta wrote: pjungwir wrote: Syvalta wrote: But that doesn't work for me, see: http

Re: ftp-wagon Unrecognised tag: 'extensions'

2006-10-26 Thread pjungwir
/06, pjungwir [EMAIL PROTECTED] wrote: Hi Jeff, What is the benefit of loading wagon-ftp in a profile? That extensions block doesn't per se do anything; it just makes wagon-ftp available. I guess you're loading it for the sake of the sftp:// repository in the top-level POM? Then why not just

Re: maven plugin execution phase: post-site?

2006-10-26 Thread pjungwir
Hello, @execute means that when the mojo is run, it should spawn a separate lifecycle and run everything up to the given phase before running itself. It's useful for running a mojo from the command line like mvn plugin:mojo, but it's problematic when you want to bind the mojo to a phase. In

Re: Using Cactus with Maven 2

2006-10-26 Thread pjungwir
Hi Mohan, There is an integration-test phase that comes after package. But if you really want to test inside a container, you probably want to use a continuous-build system, unless you tell maven to deploy to the app server during package. Paul Mohan Gopal wrote: Hi, I have been trying to

Re: Add Directory to Jar Manifest Classpath

2006-10-26 Thread pjungwir
is filed against windows Paul Syvalta wrote: pjungwir wrote: I don't understand. 2.2 is the plugin version, not the maven version, right? That appears to be released. For me, it's what maven just uses; I didn't do anything special. Yes, the version of jar-plugin. To my knowledge

Re: Add Directory to Jar Manifest Classpath

2006-10-26 Thread pjungwir
Are you sure that documentation wasn't talking about applets? I've run executable jars with Class-Path manifest entries referencing the filesystem many times. Paul berndq wrote: SingleShot wrote: I am building an executable JAR that depends on a handful of other JARs and a few config

Re: Maven Snapshot Repository Down?

2006-10-25 Thread pjungwir
Someone yesterday mentioned running mvn -o to prevent updating snapshots. Of course you must already have them, but this will apparently prevent maven from failing trying to get newer ones. Paul -- View this message in context:

Using ant-tasks inside antrun

2006-10-25 Thread pjungwir
classpath. I tried adding this to the beginning of tasks: typedef resource=org/apache/maven/artifact/ant/antlib.xml uri=urn:maven-artifact-ant classpath pathelement location=/home/pjungwir/maven

Re: Deploy fails if directory exists using wagon-file

2006-10-25 Thread pjungwir
Hi Dave, Is wagon-file even necessary? I used a file-based repository for a while, and I didn't even mention wagon. I just had a urlfile:////url in my /project/distributionManagement/repository section. But maybe wagon-file was used implicitly. I wonder if the problem is related to windows

Re: ftp-wagon Unrecognised tag: 'extensions'

2006-10-25 Thread pjungwir
Hi Jeff, What is the benefit of loading wagon-ftp in a profile? That extensions block doesn't per se do anything; it just makes wagon-ftp available. I guess you're loading it for the sake of the sftp:// repository in the top-level POM? Then why not just put extensions up there, too (with no

Re: basedir

2006-10-25 Thread pjungwir
${basedir} :-) Technically, this gives the directory where the pom is located, not the directory from which you run mvn. Paul EJ Ciramella-2 wrote: Is there some property readily available that represents the directory from which maven was run from? Something like ${basedir} in ant?

RE: basedir

2006-10-25 Thread pjungwir
? -Original Message- From: pjungwir [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 2:35 PM To: users@maven.apache.org Subject: Re: basedir ${basedir} :-) Technically, this gives the directory where the pom is located, not the directory from which you run mvn. Paul

RE: basedir

2006-10-25 Thread pjungwir
does you pom look like, and what results are you seeing? Paul EJ Ciramella-2 wrote: Ahh - I'm not talking about having it IN a resource, I'm talking about having it in the resource mapping in the POM file. -Original Message- From: pjungwir [mailto:[EMAIL PROTECTED] Sent

RE: basedir

2006-10-25 Thread pjungwir
talking about having it in the resource mapping in the POM file. -Original Message- From: pjungwir [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 3:31 PM To: users@maven.apache.org Subject: RE: basedir Hmm. It works for me in a plain, single-module setup. You may need

Re: [m2/ant] ClassCastException jwsc

2006-10-25 Thread pjungwir
I'm not sure how to fix your problem, but if you're really stuck, you could go back to your build.xml script and call it from maven by using the antrun plugin with just tasksant antfile=build.xml//tasks. That might be give you more control over your classpath by letting you handle taskdefing

Re: Using ant-tasks inside antrun

2006-10-25 Thread pjungwir
. Paul dan tran wrote: see if this helps http://www.nabble.com/M2-antrun-plugin-problem-tf1400135.html#a5892203 -D On 10/25/06, pjungwir [EMAIL PROTECTED] wrote: Hello, This is kind of a weird question. Suppose I'm writing a tasks block for maven-antrun-plugin. Now suppose I

Re: Using ant-tasks inside antrun

2006-10-25 Thread pjungwir
listed: [echo] maven.dependency.classpath = /home/pjungwir/src/ant-test/junit:/home/pjungwir/src/ant-test/jar:/home/pjungwir/src/ant-test/3.8.1:/home/pjungwir/src/ant-test/test That can't be right. The other four maven.*.classpath refids come out correct. I looked through MANTRUN on jira

Re: basedir

2006-10-25 Thread pjungwir
I just noticed that the resources plugin supports an outputDirectory configuration element. So you could try a relative targetPath and an absolute outputDirectory. Note that the former is on the resource itself; the latter, on the plugin's configuration. Paul -- View this message in context:

Re: Malformed manifest classpath entry

2006-10-25 Thread pjungwir
Hello, Could you please post your MANIFEST.MF file so we can see what royally screwed up means? Thanks, Paul Alexander Sack-3 wrote: Hi Everybody, I did check the email archives on this one and I'm not sure what's what... If I specify a manifest entry such as: archive

Re: Add Directory to Jar Manifest Classpath

2006-10-25 Thread pjungwir
Syvalta wrote: But that doesn't work for me, see: http://jira.codehaus.org/browse/MJAR-60. I didn't get any error with a trailing slash inside Class-Path. JIRA says this is fixed against 2.2. I'm not sure why the bug is still open in that case. . . . Paul -- View this message in

Re: Malformed manifest classpath entry

2006-10-25 Thread pjungwir
Yeah, I wish maven wouldn't wrap the Class-Path entry, too. I'm pretty new to maven myself, so I haven't tried out multi-module builds or J2EE builds. But I think you have the right idea. Marking things provided is the surest way I know to keep transitive dependencies out of your artifacts.

Re: ftp-wagon Unrecognised tag: 'extensions'

2006-10-24 Thread pjungwir
Hi Jeff, Could you please post your whole pom, and also the version of maven you're running? Thanks, Paul Jeff Mutonho wrote: On 10/23/06, Wayne Fay [EMAIL PROTECTED] wrote: Fair enough, I hadn't noticed that. I've only ever used extensions inside a plugin so I figured this was the

Re: cvs.apache.org connection problems

2006-10-24 Thread pjungwir
There were a variety of servers out yesterday. This one still isn't responding. -- View this message in context: http://www.nabble.com/cvs.apache.org-connection-problems-tf2499791.html#a6975473 Sent from the Maven - Users mailing list archive at Nabble.com.

Re: m2, surefire console output

2006-10-24 Thread pjungwir
I think by default stacktraces do not appear. To see them, you have to add this to the maven-surefire-plugin section of your pom: configuration useFilefalse/useFile /configuration Have you done that? If so, then removing it should get you what you want. Paul -- View this message in

Re: Downloading a non-jar dependancy

2006-10-24 Thread pjungwir
Hello, First, the Dojo zip file must be in a maven remote repository somewhere. If it isn't, you could just put it in private remote repository and point your project at it using the repositories element. There are lots of docs on setting up your own repository. It's just a directory structure

Re: Re: exec:exec java NoClassDefFoundError

2006-10-23 Thread pjungwir
Well, this isn't a NoClassDefFoundError, so perhaps we're making progress. Now java is returning a 1. It would help if you could see stdout, but I'm not sure how to do that. Perhaps Eclipse is running but complaining about your arguments. That would make sense, because it looks like you have an

Re: [maven2] subversion revision in MANIFEST file

2006-10-23 Thread pjungwir
Daniel Serodio-2 wrote: I'm using the assembly plugin to generate a jar with dependencies, so the MANIFEST.MF is static (not generated dinamically); how can I add the scm.revision to such a jar? When you say static, do you mean that you have a MANIFEST.MF sitting on your filesystem, and

Re: Odd dependency behaviour with java.servlet servlet-api in M2 2.0.4

2006-10-23 Thread pjungwir
Hello, Compile scope doesn't mean compile-time only. In fact, it is the broadest of maven's scopes. Here is what the scopes mean (as far as I can tell): compile available when compiling, testing, and running runtime available when testing and running provided available when compiling and

Re: webstart-maven-plugin needs maven-jar-plugin:jar:2.1-SNAPSHOT

2006-10-23 Thread pjungwir
Snapshots live in a separate repository. See here for information on obtaining snapshots: http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html HTH, Paul -- View this message in context:

Re: [m204] deploy fails if directory exists using file

2006-10-23 Thread pjungwir
I think perhaps your post had a typo, because you can't be switching from wagon-ftp to wagon-ftp. What transport are you using now that's giving you this error? Paul -- View this message in context:

Re: [M2] Ant-based plugin and target classpath

2006-10-23 Thread pjungwir
Hello, I just finished a launch4j plugin. You can find info on it here: http://9stmaryrd.com/tools/launch4j-maven-plugin/ Paul -- View this message in context: http://www.nabble.com/-M2--Ant-based-plugin-and-target-classpath-tf2485665.html#a6960634 Sent from the Maven - Users mailing list

Re: ftp-wagon Unrecognised tag: 'extensions'

2006-10-23 Thread pjungwir
It appears to me from that schema that extensions is also a valid child of build. This is where I'm using it, and it seems to work fine. Perhaps the problem is using extensions in a module? Paul -- View this message in context:

Re: [maven2] subversion revision in MANIFEST file

2006-10-23 Thread pjungwir
Yep, I agree. At least it's already filed! :-) Paul -- View this message in context: http://www.nabble.com/-maven2--subversion-revision-in-MANIFEST-file-tf2485250.html#a6961406 Sent from the Maven - Users mailing list archive at Nabble.com.

Re: assembly warning message

2006-10-19 Thread pjungwir
This refers to the files being tarred? If so, it's because different versions of tar support long filenames in different ways. A good explanation is in the Ant user manual, under Core Tasks : Tar. Because of the frames, I can't give a direct link, but here is the manual:

RE: ftp-wagon NullPointerException

2006-10-19 Thread pjungwir
Cheers, Martin http://el4j.sf.net -Original Message- From: pjungwir [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 18. Oktober 2006 22:46 To: users@maven.apache.org Subject: Re: ftp-wagon NullPointerException Ah, there is a beta-1. I tried that, but I still get the same problem

Re: exec:exec java NoClassDefFoundError

2006-10-19 Thread pjungwir
Hello, The problem appears to be this line: argumentorg.eclipse.core.launcher.Main -application org.eclipse.ant.core.antRunner -f ${ECLIPSE_HOME}/plugins/org.eclipse.pde.build_3.2.1.r321_v20060823/scripts/build.xml/argument That is all one argument, which is not what you intend. Take a look at

Re: Mojo and it's own dependencies

2006-10-19 Thread pjungwir
You can get the plugin's model class by declaring a property set to ${project.build.plugins}. It will be a Collection of org.apache.maven.model.Plugin objects. Iterate it until you find your plugin (using groupId and artifactId). I'm sorry; that's the best way I know in a mojo to do ${this}. The

ftp-wagon NullPointerException

2006-10-18 Thread pjungwir
Hello, I'm trying to use ftp-wagon to deploy a plugin to my remote repository, as described on page 69 of the BBWM book. Here is my POM: . . . extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-ftp/artifactId

Re: ftp-wagon NullPointerException

2006-10-18 Thread pjungwir
I should add that I tried searching around http://maven.apache.org/wagon/, but almost all the links are 404s. Paul -- View this message in context: http://www.nabble.com/ftp-wagon-NullPointerException-tf2469460.html#a6885299 Sent from the Maven - Users mailing list archive at Nabble.com.

Re: ftp-wagon NullPointerException

2006-10-18 Thread pjungwir
Ah, there is a beta-1. I tried that, but I still get the same problem. -- View this message in context: http://www.nabble.com/ftp-wagon-NullPointerException-tf2469460.html#a6885414 Sent from the Maven - Users mailing list archive at Nabble.com.

html link tags in the project description?

2006-10-18 Thread pjungwir
Hello, I'm using maven to generate a website for my plugin. I would like the About page of my site to show a link. The text for this page is based on the projectdescription element of the POM, so I tried this: description![CDATA[This plugin creates Windows executables from Java jar files

property substitution in site files?

2006-10-18 Thread pjungwir
Hello, I am trying to generate some site files using the .apt format. (I'm not wedded to that format, but I'm starting there since it's the easiest.) I was hoping to do something like this: ${project.name} ${project.description} But that doesn't work. The curly braces disappear, but

Re: Issue with Maven Deploy

2006-10-18 Thread pjungwir
Hello, Maven will use known hosts from the user's .ssh directory if available, so after the first connection these questions won't appear. Please see: http://www.nabble.com/How-to-prevent-Maven%27s-questions--tf2465228.html Paul -- View this message in context:

Re: Conditional execution of plugin in maven2

2006-10-17 Thread pjungwir
Hello, How complicated is your ant script? If it's simple, you might consider replacing it with a bonafide plugin. That way you should be able to query the API for modules and only operate on the web ones. Sorry I don't know an ant-based solution. Paul -- View this message in context:

Re: NoClassDefFoundError when running jar

2006-10-17 Thread pjungwir
Just a wild guess, but could this be a matter of / vs. \? I see you're running on windows; maybe java isn't parsing the classpath as you think it is. When you're sharing a directory with argparser.jar, try -cp argparser.jar instead of -cp ./argparser.jar. Paul -- View this message in context:

Re: plugin naming advice

2006-10-16 Thread pjungwir
I've finished work on the launch4j plugin. Besides the core plugin artifact, there are four attached artifacts, named with classifiers: one for each platform that l4j supports. The plugin uses the maven apis to download and unpack one if necessary. Here is some more info on the plugin: I wrote

Re: run maven plugin without installing in local repo?

2006-10-16 Thread pjungwir
Hi, Are you creating your plugin using assembly, or are you running assembly in the project that uses your plugin? I doubt you can run a plugin from outside ~/.m2, because maven has to load the info from somewhere. As long as your plugin has a packaging type of maven-plugin, it should be

Re: plugin naming advice

2006-10-16 Thread pjungwir
This plugin is online now. Instructions are here: http://9stmaryrd.com/tools/launch4j-maven-plugin/ The source bundle is here: http://www.9stmaryrd.com/shared/launch4j/launch4j-maven-plugin-1.0.tar.gz The maven repository I'm using for now is here: http://www.9stmaryrd.com/maven I'd like to

getting a plugin's own version?

2006-10-14 Thread pjungwir
Hello, Is there an easy way for a plugin to get its own version? I can't just do a property set to ${project.version}, because that will get the version of the user's project. So far, the easiest thing I've come up with is to write ${project.version} to a filtered resource file, but that seems

Re: getting a plugin's own version?

2006-10-14 Thread pjungwir
By the way, what are the get/setPluginContext methods on AbstractMojo for? When I look in the Map, it is empty. Is this a way to pass information to your plugin from the plugin's pom? Maybe I could use this for what I want. -- View this message in context:

can plugins use other plugins?

2006-10-14 Thread pjungwir
Hello, Is it possible for a plugin to tell maven that other plugins must be run prior to itself? All I see for this is the @execute goal annotation. But if I do that, how do I pass configuration to that goal? Can I set it up in the plugin, or does the user have to set it up? Can specify two

Re: getting a plugin's own version?

2006-10-14 Thread pjungwir
Hi Dan, you're coding on a Saturday, too? dan tran wrote: use project to browse the user pom which for sure has your plugin. I was hoping nobody would suggest this! :-) But I'm giving it a try. I get all the artifacts via project.getPluginArtifacts(). But when I find my own, I can only

Re: getting a plugin's own version?

2006-10-14 Thread pjungwir
pjungwir wrote: I see that ArtifactVersion (from getSelectedVersion()) has the major/minor numbers. Do I have to patch these together myself? Actually, these are all set to zero -- View this message in context: http://www.nabble.com/getting-a-plugin%27s-own-version--tf2443270.html

Re: getting a plugin's own version?

2006-10-14 Thread pjungwir
Oh, that is much better! Thank you. -- View this message in context: http://www.nabble.com/getting-a-plugin%27s-own-version--tf2443270.html#a6813179 Sent from the Maven - Users mailing list archive at Nabble.com. - To

xstream missing pom?

2006-10-14 Thread pjungwir
Hello, I'm trying to use xstream 1.1.3 by thoughtworks in my project. It is here: http://repo1.maven.org/maven2/com/thoughtworks/xstream/xstream/1.1.3/ I can get the dependency all right, but I get a warning every time I compile because the pom isn't there: Downloading:

test scope should inherit provided scope?

2006-10-13 Thread pjungwir
Hello, I noticed that when I run my tests, the classpath includes all my provided-scope dependencies. The docs online don't say they should be there, but I guess it makes sense, right? Provided scope means I need them to run, but they'll be available after I deploy. Therefore maven needs to

Re: test scope should inherit provided scope?

2006-10-13 Thread pjungwir
I rigged up a test. The chart is accurate, but the behavior seems wrong to me. Could someone please explain why dropping that dependency is the right thing to do? Just to repeat, here is the setup: Project depends on A with test scope. A depends on B with provided scope. When I run A's tests,

Re: docbook plugin

2006-10-13 Thread pjungwir
ir. ing. Jan Dockx wrote: http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html hope this helps. Thanks. That is the best table I've seen so far. I eventually figured this out by looking here:

lists arrays as plugin parameters

2006-10-13 Thread pjungwir
Hello, I'm writing a plugin, and I would like to accept configuration xml like this: someOption anotherOption var var var ... [more vars] ... Is this possible without wrapping the var tags inside a container like vars? In the docs, all the examples have a wrapper tag for lists and arrays. I

plugin annotations on plugin members' classes

2006-10-13 Thread pjungwir
Hello, The plugin I'm writing wants some configuration xml like this: configuration ... classPath mainClasscom.whatever.Main/mainClass cpthis.jar;that.jar/cp /classPath ... /configuration The classPath element is required, and the mainClass element is also

Re: plugin annotations on plugin members' classes

2006-10-13 Thread pjungwir
dan tran wrote: Not that I know of, you will need to validate it your self. but you can file a JIRA against MNG for this feature enhancement Hi Dan, thanks for your reply (this one and the many others!). I've been thinking about filing a jira, and maybe starting on a patch. I think the

plugin naming advice

2006-10-13 Thread pjungwir
Hello, I'm writing a plugin for the launch4j tool. This tool wraps jar files in windows executables so you don't have to deal with finding a jre, setting your classpath, etc. The distribution is a little bit different depending on whether you're running on linux, windows, solaris, or os x. I

directory type artifact?

2006-10-13 Thread pjungwir
Hello again, Is it possible to create an artifact that, once retrieved to your local ~/.m2 repository, automatically unarchives itself and becomes a little directory there? Thanks, Paul -- View this message in context:

Re: plugin naming advice

2006-10-13 Thread pjungwir
dan tran wrote: sorry it is for maven1. What the technical difficulty prevent you from having only 1 plugin to handle all support platforms? Thank you for pointing me to that other plugin! I just emailed the author. I did search for such a thing before I started my work, but I didn't

Re: plugin naming advice

2006-10-13 Thread pjungwir
dan tran wrote: does the build need to stay on the supported platform to build the executable? I'm not exactly sure what you're asking. But if your project uses a solaris launch4j plugin, then you checkout the project on mas os x, building the exe will fail. I had envisioned people using

Re: plugin naming advice

2006-10-13 Thread pjungwir
dan tran wrote: I think this plugin is more like a assembly plugin with launch4j specifics. am i wrong? I intend to use it in conjunction with the assembly plugin. I'll generate an exe file to wrap my jar, then I'll use the assembly plugin to tar up my exe along with docs, a lib

Re: plugin naming advice

2006-10-13 Thread pjungwir
Hi Dan, Ask all the questions you like. :-) Only grabbing the necessary binary bundle is a nice idea. I'll think about that one. So that means the plugin would have a variable dependency based on platform. I'm not sure how to do that, but it sounds fun to figure out. Profiles? I need an excuse

Re: plugin naming advice

2006-10-13 Thread pjungwir
Ah, thanks, that sounds like a good pointer. I'll take a look at the dependency plugin. I agree, querying java properties is the way to go. I'm not religious about licenses. :-) If necessary, I can host the plugin myself. Paul -- View this message in context:

Re: plugin naming advice

2006-10-13 Thread pjungwir
dan tran wrote: You can ping list about their licence policy. But I am sure we allow to load GPL artifacts onto maven central. We just never load a bundle before I don't understand--what is the difference between an artifact and a bundle? -- View this message in context:

properties in plugins vs. pom

2006-10-12 Thread pjungwir
Hello, I'm developing a plugin in maven 2.0.4. My plugin has a property annotated like this: /** * @parameter default-value=${artifactId}.exe */ private File outfile; When I use the plugin, outfile is set to /home/pjungwir/src/encc/null.exe. But suppose I use this javadoc instead

Re: properties in plugins vs. pom

2006-10-12 Thread pjungwir
dan tran wrote: inconsistency i guess, I suggest to always start with ${project} I'm surprised at the implication: different code handles variable replacement here vs. there. Inconsistencies like this can be maddening. Could I file this as a jira? Maybe I'll even supply a patch. :-)

Re: properties in plugins vs. pom

2006-10-12 Thread pjungwir
dan tran wrote: when you are in pom.xml, ${someVar} means a reference of a variable under root of the pom Ah, so within the pom, the project. prefix is optional. It looks like it is also optional when filtering resource files. But not when annotating plugins. That's still a little

Re: mvn -N install not working for daytrader

2006-10-12 Thread pjungwir
Hi Satish, Maven expects to find a pom.xml in the current directory. That message means there isn't one there. I don't know what daytrader is. Are you trying to build it from source? Paul Satish Gupta wrote: I am just starting to learn Maven. I am trying to follow the instrucations in

Re: mvn -N install not working for daytrader

2006-10-12 Thread pjungwir
Hmm, I think these directories should already have pom.xml files of their own. If you copy pom.xmls from other projects, you're probably going to get errors. I'm not sure about the Cannot find parent error, but perhaps these foreign poms are the cause? I agree, the documentation for maven is

Re: docbook plugin

2006-10-09 Thread pjungwir
Jacek Laskowski-4 wrote: On 10/9/06, Andr?s [EMAIL PROTECTED] wrote: I don't know about such a pre-site phase. Indeed, I think there's no site phase either. Is it a typo, or I'm missing something?. It's executed right before the 'site' phase. Run 'mvn site' and see what happens. I went

property naming convention

2006-10-09 Thread pjungwir
Hello, The Better Builds with Maven book says that you can get any element from the POM with a property like ${project.foo.bar.baz}. Is there a more general naming convention for properties used by plugins? I see that the maven-surefire-plugin has configuration elements with these property

reactor?

2006-10-09 Thread pjungwir
Hello, I'm sorry for such a noobie question, but what is the reactor? I keep seeing references to it, but I don't know what it is. Googling just turns up more references, but no definition. Is this a maven 1 thing? I found this:

assembly:assembly does everything twice

2006-10-09 Thread pjungwir
Hello, I tried binding the assembly plugin to the package phase, so it would just be part of my regular build. Here is what my pom says: plugin artifactIdmaven-assembly-plugin/artifactId executions execution

Re: assembly:assembly does everything twice

2006-10-09 Thread pjungwir
Eric Redmond wrote: Does it run twice in a row? When you run package, Maven will print out all of the goals executed, one by one. Can you list them please? Hi, thanks for replying! Here is what I see: $ mvn clean package [INFO] [clean:clean] [INFO] [resources:resources] [INFO]

  1   2   >