RE: Auto Generate Text File at Build Time

2009-10-28 Thread Edelson, Justin
Generated files should go in a subdirectory of the target directory, which should be in .cvsignore (and is automatically ignored goals which use Maven SCM, IIRC). There are a variety of code generation plugins around. Most of these are built around specific types of generation (e.g. javacc,

RE: Creating a dar archive

2009-10-27 Thread Edelson, Justin
You need to create a new packaging type. See http://stackoverflow.com/questions/1427722/how-do-i-create-a-new-packagi ng-type-for-maven Justin -Original Message- From: nsowatsk [mailto:nsowa...@cisco.com] Sent: Tuesday, October 27, 2009 8:53 AM To: Maven Users List Subject: Creating a

RE: Creating a dar archive

2009-10-27 Thread Edelson, Justin
in the dar file, so I think that I need to add some other code also. I'll do that and report back. Thanks Nathan On 27/10/2009 16:21, Edelson, Justin justin.edel...@mtvstaff.com wrote: You need to create a new packaging type. See http://stackoverflow.com/questions/1427722/how-do-i-create-a-new

RE: Global transitive depedency exclude

2009-10-27 Thread Edelson, Justin
The war plugin doesn't support useTransitiveDependencies. It does, however, support packagingIncludes and packagingExcludes, which can be used to limit which files get placed into the WAR file. See http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.ht ml Justin -Original

RE: Creating a new Goal

2009-10-26 Thread Edelson, Justin
You can do this with a second execution of the jar plugin, assuming there's some easy way to identify the DTO and Interface classes (i.e. by package/path or file name). See http://maven.apache.org/plugins/maven-jar-plugin/usage.html. There was some discussion last week about potential issues with

RE: [cobertura] do not publish source code

2009-10-23 Thread Edelson, Justin
Without an extensive amount of work, I suspect you could bind a custom execution of the clean plugin in the post-site phase to remove all the html files from target/site/cobertura EXCEPT for index.html, frame-packages.html, frame-summary.html, frame-sourcefiles.html, and help.html. This would lead

RE: [cobertura] do not publish source code

2009-10-23 Thread Edelson, Justin
is confidential... that way your links will still work ;-) 2009/10/23 Edelson, Justin justin.edel...@mtvstaff.com Without an extensive amount of work, I suspect you could bind a custom execution of the clean plugin in the post-site phase to remove all the html files from target/site/cobertura

RE: Maven assembly and onejar goal

2009-10-22 Thread Edelson, Justin
Gotta love how Nabble removes the context, forcing people to go to the site... Anyway, one-jar isn't a built-in descriptor: http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.ht ml There is one here: http://binkley.blogspot.com/2006/12/making-one-jar-with-maven.html But I

RE: maven-eclipse-plugin and src/main/webapp with Eclipse

2009-10-21 Thread Edelson, Justin
It doesn't really make sense for src/main/webapp to be a source folder - it doesn't contain compilable source files. Justin -Original Message- From: Vincent F [mailto:vincent.fu...@sgcib.com] Sent: Wednesday, October 21, 2009 1:22 PM To: users@maven.apache.org Subject:

RE: installing src or javadoc into local repository

2009-10-21 Thread Edelson, Justin
Not quite the answer to your question, but mvn dependency:sources will download all available source jars for a project's dependencies (including transitive dependencies). There's no dependency:javadocs AFAIK, but it probably wouldn't be that hard to do (based on the source of the sources

RE: Config.jar project dependency

2009-10-19 Thread Edelson, Justin
Quintin Beukes wrote: OK, firstly you can only produce one artifact per POM. This is not true. A POM has one GAV, but you can produce multiple artifacts with different classifiers. For example, most Java projects using the release plugin will have a source JAR file produced from the same POM

RE: how to set environment variables

2009-10-19 Thread Edelson, Justin
Those are Maven properties, not environment variables. You can't set environment variables for the current process in Java at all, let alone in Maven. If you're forking a new process, you may be able to set environment variables on the subprocess via ProcessBuilder. Justin -Original

RE: Config.jar project dependency

2009-10-19 Thread Edelson, Justin
Here's two examples: http://svn.apache.org/repos/asf/sling/trunk/launchpad/base/pom.xml - creates artifacts with app and webapp classifiers which are then used as dependencies in other projects. http://kenai.com/projects/boxspring/sources/main/content/trunk/boxspring -core/pom.xml?rev=125 -

RE: Config.jar project dependency

2009-10-19 Thread Edelson, Justin
Ha! I hadn't seen this. But yes, as with anything else, Maven simply provides the tools - how you use (or abuse) them, is up to you. I think the two examples I provided are appropriate cases for classifiers, but reasonable people can disagree. Justin -Original Message- From:

RE: Config.jar project dependency

2009-10-19 Thread Edelson, Justin
I've seen projects that do this and I don't like it. To my mind stage is a runtime concept that your application (or, better yet, the framework your application uses) should adapt itself to, not something which requires different build artifacts. Justin -Original Message- From: Martin

RE: How to avoid multiple spring versions?

2009-10-13 Thread Edelson, Justin
Wim- I'm pretty sure Spring won't be doing this for 3.x, so you might want to go ahead and migrate to the discreet artifacts now. Justin -Original Message- From: Jamie Whitehouse [mailto:basil.whiteho...@genesyslab.com] Sent: Tuesday, October 13, 2009 12:59 PM To: Maven Users List

RE: Setting Java heap space

2009-10-08 Thread Edelson, Justin
Did you read this thread: http://www.nabble.com/-Maven%27s-memory--How-to-avoid-adding-the-MAVEN_OPTS-variable--td25788729.html This should answer most of your question. As for setting it on the command line, that's not possible AFAIK. What you can do is create multiple mvn.bat files which

RE: Unit test project depending on WAR project code

2009-10-07 Thread Edelson, Justin
If you question is - can I use a WAR file as a dependency and get the classes inside the WAR file added to the classpath, the answer is no. This has nothing to do with Maven - it's Java. -Original Message- From: Chris Bredesen [mailto:cbrede...@redhat.com] Sent: Wednesday, October 07,

RE: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread Edelson, Justin
No. Nor could their be, at least for the case you're describing. Maven's JVM has already started by the time it parses the POM. For plugins which fork a new VM, you may be able to provide these options. For example:

RE: Wagon protocol 'scm' doesn't support directory copying

2009-10-05 Thread Edelson, Justin
Not with wagon-scm, but you can with https://wagon-svn.dev.java.net/. From: Open Source Dept [mailto:o...@openmaximo.net] Sent: Mon 10/5/2009 7:14 AM To: users@maven.apache.org Subject: Wagon protocol 'scm' doesn't support directory copying Hi everyone, I'm

RE: Ant Mojo Resources

2009-10-05 Thread Edelson, Justin
As far as I know, Windows has no facility for executing batch scripts (or anything else for that matter) which are inside a JAR file. So, what you'll need to do is copy the script to a temp directory and execute it from there. I'm not sure how you'd do this with Ant. In a Java-based Mojo, you

RE: String manipulation in POM?

2009-09-30 Thread Edelson, Justin
Not directly. But you can use the gmaven plugin for this type of thing. Something like this: plugin groupIdorg.codehaus.groovy.maven/groupId artifactIdgmaven-plugin/artifactId version1.0-rc-5/version executions

RE: Shared log4j configuration - best practice?

2009-09-28 Thread Edelson, Justin
That's just how Maven works. If A depends upon B and B depends upon C, A depends upon C transitively. It's, of course, not always this simple because there are different dependency scopes. See the matrix in http://maven.apache.org/guides/introduction/introduction-to-dependency-m echanism.html.

Re: Shared log4j configuration - best practice?

2009-09-28 Thread Edelson, Justin
PM, Damon Silver damon.sil...@diio.net wrote: For common images, say, are you putting those in a shared jar or in a war? If the former, how do you reference them at runtime? - Damon -Original Message- From: Edelson, Justin [mailto:justin.edel...@mtvstaff.com] Sent: Monday, September

RE: M2Eclipse - Security issue

2009-09-24 Thread Edelson, Justin
To my mind, the only way to solve this problem is to use a repository manager which supports routing. You would configure Maven to direct all traffic to the repository manager and configure the repository manager with explicit rules regarding which repositories to search for which artifacts.

RE: using my own archtype

2009-09-22 Thread Edelson, Justin
You need to specify the archetype repository: http://maven.apache.org/plugins/maven-archetype-plugin/generate-mojo.html#archetypeRepository Justin From: Manuel Grau [mailto:mang...@gmail.com] Sent: Tue 9/22/2009 5:47 PM To: users@maven.apache.org Subject:

RE: only one artifact per project

2009-09-18 Thread Edelson, Justin
This is a bit of a misunderstanding. There's no restriction in Maven that only one artifact be generated per project (also, in Maven 2, it's pom.xml, not project.xml). There must be one primary artifact, but many (if not most) Maven projects actually produce multiple artifacts. source and

Re: Failing to Fetch Snapshots with Every Build - How to disable undesired Behaviour

2009-09-16 Thread Edelson, Justin
By default, Maven will only check for updated snapshots once per day. Are you overriding this in the settings.xml file? Justin On Sep 16, 2009, at 4:09 AM, Quintin Beukes quin...@last.za.net wrote: Everytime I build I get the following (and a couple of others, including JARs, but all for

RE: Failing to Fetch Snapshots with Every Build - How to disable undesired Behaviour

2009-09-16 Thread Edelson, Justin
, 2009 at 2:37 PM, Edelson, Justin justin.edel...@mtvstaff.com wrote: By default, Maven will only check for updated snapshots once per day. Are you overriding this in the settings.xml file? Justin On Sep 16, 2009, at 4:09 AM, Quintin Beukes quin...@last.za.net wrote: Everytime I build I get

RE: Failing to Fetch Snapshots with Every Build - How to disable undesired Behaviour

2009-09-16 Thread Edelson, Justin
build. The exact same set of files. Q On Wed, Sep 16, 2009 at 2:37 PM, Edelson, Justin justin.edel...@mtvstaff.com wrote: By default, Maven will only check for updated snapshots once per day. Are you overriding this in the settings.xml file? Justin On Sep 16, 2009

RE: War packaged in ear. How to exclude shared jars

2009-09-16 Thread Edelson, Justin
I don't think it's possible to do this automatically - that would require the war project to be aware that it was going to be included in the ear project. There is a way to do manually. See http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html (or using the provided scope

RE: webdav deployment fails with Access denied message with 2.2.1 (works with 2.0.10)

2009-09-14 Thread Edelson, Justin
The pom is what's trying to be deployed: Uploading: https://maven.atlassian.com/contrib-snapshot/com/mtvnet/crowd/mock-crowd-server/1.0.0-alpha-3-SNAPSHOT/mock-crowd-server-1.0.0-alpha-3-20090914.161335-1.pom It's being installed in my local repository, the deploy is what's failing. Justin

webdav deployment fails with Access denied message with 2.2.1 (works with 2.0.10)

2009-09-14 Thread Edelson, Justin
Is there something special I need to do to get WebDAV artifact deployment working with 2.2.1? When trying to do a deploy, I get the error below. In looking at the release notes for 2.1.x and 2.2.x, there's discussion of using different wagons for HTTP (httpclient vs. lightweight), but my

RE: webdav deployment fails with Access denied message with 2.2.1 (works with 2.0.10)

2009-09-14 Thread Edelson, Justin
Martin- This doesn't make any sense to me. SCP and WebDAV should have nothing to do with each other. In any case, there is an id in the distributionManagement section and a corresponding entry in settings.xml. If not, the deploy wouldn't have worked with 2.0.10. Oh, an Tortoise is a SVN

RE: webdav deployment fails with Access denied message with 2.2.1 (works with 2.0.10)

2009-09-14 Thread Edelson, Justin
if it's exactly the same - after upgrading to a newer Maven (newer than 2.0.x), I had to specify dav: for deployments to succeed again. Kalle On Mon, Sep 14, 2009 at 10:51 AM, Edelson, Justin justin.edel...@mtvstaff.com wrote: Martin- This doesn't make any sense to me. SCP and WebDAV should have

Re: how to add jar in dependeny which is just installed in repo through maven-install-plugin

2009-09-08 Thread Edelson, Justin
It's atypical to use the install-file goal in the build lifecycle like this. Instead, just run it on the command line one time. The plugin docs only show that usage pattern, at least for install-file, IIRC. Justin On Sep 8, 2009, at 6:28 PM, rehanwmu rehan...@hotmail.com wrote: I am

Re: how to add jar in dependeny which is just installed in repo through maven-install-plugin

2009-09-08 Thread Edelson, Justin
Well, you can automate with other tools (e.g. shell scripts), but why would you automate something that happens one time? On Sep 8, 2009, at 6:56 PM, rehanwmu rehan...@hotmail.com wrote: thanks for quick reply but I don't want to run manually. its a part of automation justinedelson wrote:

Re: JAR file downloading blocked

2009-08-27 Thread Edelson, Justin
repo1.maven.org blocks requests from wget. That's not a good test. Justin On Aug 27, 2009, at 5:50 PM, Hilco Wijbenga hilco.wijbe...@gmail.com wrote: 2009/8/27 Alexander the.malk...@gmail.com: Wow, maybe you should talk with your sysops? That feels too much like fighting windmills. :-)

RE: Can aggregator be other type than pom?

2009-08-25 Thread Edelson, Justin
no. From: solo1970 [mailto:sonia.lodoviche...@ericsson.com] Sent: Tue 8/25/2009 11:15 AM To: users@maven.apache.org Subject: Can aggregator be other type than pom? Hello, I have the followng scenario: Currently I have 1 POM that generates a jar file. I

Getting duplicate mojo extraction errors in maven-plugin-plugin

2009-08-25 Thread Edelson, Justin
When trying to run mvn site on a multi-module project which contains a Maven plugin project, I'm getting the Error extracting plugin descriptor: 'Goal: XXX already exists in the plugin descriptor for prefix: YYY error. This is described in http://jira.codehaus.org/browse/MJAVADOC-224 and

RE: Maven 2.2.1 and NTLM Proxy

2009-08-12 Thread Edelson, Justin
http://maven.apache.org/guides/mini/guide-proxies.html -Original Message- From: Pilgrim, Peter [mailto:peter.pilg...@lloydsbanking.com] Sent: Wednesday, August 12, 2009 7:17 AM To: users@maven.apache.org Subject: Maven 2.2.1 and NTLM Proxy Hi I am back on the Maven 2.2.1 list

RE: Exclude web.xml from war packaging

2009-08-10 Thread Edelson, Justin
I think you need to set failOnMissingWebXml to false in the plugin configuration. See http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#failOnMissingWebXml Justin -Original Message- From: arungupta [mailto:arun.gu...@gmail.com] Sent: Monday, August 10, 2009 2:15 PM To:

RE: How to use mvn install but have all options in the pom.xml?

2009-07-30 Thread Edelson, Justin
It's no different than any other plugin. Something like this should work: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-install-plugin/artifactId executions execution

RE: How to use mvn install but have all options in the pom.xml?

2009-07-30 Thread Edelson, Justin
problem Needa try.. 2009/7/30 Edelson, Justin justin.edel...@mtvstaff.com It's no different than any other plugin. Something like this should work: plugin groupIdorg.apache.maven.plugins/groupId

RE: How to use mvn install but have all options in the pom.xml?

2009-07-30 Thread Edelson, Justin
I should also say that I personally think using install-file is a bad idea when there are good repository managers available. Justin -Original Message- From: Edelson, Justin Sent: Thursday, July 30, 2009 1:13 PM To: Maven Users List Subject: RE: How to use mvn install but have all

RE: How to use mvn install but have all options in the pom.xml?

2009-07-30 Thread Edelson, Justin
build-helper:attach-artifacts attaches artifacts to the build, i.e. so that they will be installed/deployed at the appropriate stage. This is almost the opposite of that - the artifacts are dependencies of the project, not part of the output of it. Justin From:

RE: Corporate Parent POM

2009-07-30 Thread Edelson, Justin
I think the best way to do this is through properties where you set a default in the corporate POM and allow children to override it. If it helps you, the open-source version of our corporate poms are on kenai: http://kenai.com/projects/mtvn-master-pom/sources/source/show/trunk. These are not

RE: Corporate Parent POM

2009-07-30 Thread Edelson, Justin
PM To: Edelson, Justin Cc: Maven Users List Subject: RE: Corporate Parent POM Importance: High Hi Justin, Thanks for your input and it is very helpful in understanding how this can be worked out. Have another question - I am having 100 applications in 100 different SVN repositories

RE: maven spring eclipse and properties/spring config

2009-07-13 Thread Edelson, Justin
/spring config Hi Justin, What is the license? http://www.box-spring.org/license.html doesn't yet list one . Brett Edelson, Justin wrote: This is getting a little off-topic, but I feel obliged to mention that we recently open sourced our generalized solution for dealing with the problem

RE: dependency on artifact javax.activation:activation version 1.1.1

2009-07-11 Thread Edelson, Justin
As to your second question, m2eclipse will only index the repositories you tell it to. Open up the Index View and you'll see the list of repos. Justin From: Harper, Brad [mailto:brad.har...@fiserv.com] Sent: Fri 7/10/2009 6:00 PM To: Maven Users List Subject:

RE: maven spring eclipse and properties/spring config

2009-07-11 Thread Edelson, Justin
This is getting a little off-topic, but I feel obliged to mention that we recently open sourced our generalized solution for dealing with the problem of environmental-specific Spring configuration, known as BoxSpring. Our experience with both Spring and our prior DI container lead to the

RE: Unable to add module to the current project as it is not of packaging type 'pom' - Was: Detected Maven Version: 2.1.0 is not in the allowed range

2009-07-07 Thread Edelson, Justin
That error message means what it says - you can't create a sub-project of a project which doesn't have a packaging of pom. When you run the archetype:generate goal and Maven sees that there's a existing project in the current directory, it assumes you are trying to create a sub-project

RE: How to run a goal only for a particular project in a multimodule project ?

2009-06-29 Thread Edelson, Justin
You would have to build that logic into your plugin. You could do this with a skip parameter which would be set to true in a-maven-proj2 or by adding some code which determines that a-maven-proj2 isn't an appropriate target for the plugin. Justin -Original Message- From: ksachdeva

RE: Newbie complience question

2009-06-25 Thread Edelson, Justin
It appears to me that your property name doesn't match how you have the compiler plugin configured. Property: maven.target.source1.5/maven.target.source Plugin Config: target${maven.compiler.target}/target Using the -X command line option or help:effective-pom is helpful in diagnosing this

Re: Anyone have a plugin to check if the surefire tests pass?

2009-05-18 Thread Edelson, Justin
Can you use -fae to do this? On May 18, 2009, at 12:17 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: Hey, before you think this guy is crazy, surefire will do that for you... pre-integration-test: jetty:run daemon=true integration-test: surefire:test testFailureIgnore=true

RE: Self-Extracting Maven Plugin

2009-05-18 Thread Edelson, Justin
1) Put the binaries in src/main/resources. (make sure resource filtering isn't enabled) 2) Watch them get compiled into your plugin's JAR file. 3) use Class.getResourceAsStream() to get an InputStream to each binary. 4) copy the bytes from the InputStream to a FileOutputStream. No need to use

RE: Jetty and using src/test/webapp

2009-05-01 Thread Edelson, Justin
The useTestClasspath configuration option adds test classes and resources to the classpath used by jetty:run. Justin -Original Message- From: Todd Orr [mailto:torr0...@gmail.com] Sent: Friday, May 01, 2009 11:39 AM To: Maven Users List Subject: Re: Jetty and using src/test/webapp This

RE: jetty:run class path

2009-04-28 Thread Edelson, Justin
As Brett said below, this file would be in /src/main/webapp/WEB-INF/applicationContext.xml. Files in /src/main/resources ultimately end up as classpath resources, not servlet context resources and XmlWebApplicationContext defaults to ServletContextResource if not resource prefix is provided. To

RE: Maven - POM repository, Freemind, Confluence

2009-04-07 Thread Edelson, Justin
Did you read the comment thread on that page? From: sigi9009 [mailto:sigi9...@web.de] Sent: Tue 4/7/2009 3:29 AM To: users@maven.apache.org Subject: RE: Maven - POM repository, Freemind, Confluence and why doesn't it work? I tried to follow this

RE: Maven - POM repository, Freemind, Confluence

2009-04-06 Thread Edelson, Justin
http://maven.apache.org/POM/4.0.0 is a namespace URI, not a link. From: sigi9009 [mailto:sigi9...@web.de] Sent: Mon 4/6/2009 6:58 AM To: users@maven.apache.org Subject: Maven - POM repository, Freemind, Confluence Hi forum, Does somebody know the link to the

RE: Is IBIBLIO down?

2009-04-03 Thread Edelson, Justin
Don't use the LATEST version identifier. If you use LATEST or RELEASE, Maven needs to access the repository to discover what the latest version is. But is Central really down? Working for me. Justin -Original Message- From: logachandru.x.rajamanic...@jpmchase.com

Re: tricky cyclic dependency issue ...

2009-03-25 Thread Edelson, Justin
Move the concrete impls of your API interfaces into a seperate module. The only solution to cyclical dependencies is not to have them. Justin On Mar 25, 2009, at 8:21 AM, Giovanni Azua brave...@hotmail.com wrote: hi, I have the following setup: ProjectX-API: pure abstract layer

RE: Possible problem when multiple developers depend on SNAPSHOT versions

2009-03-25 Thread Edelson, Justin
+10 From: B Smith-Mannschott [mailto:bsmith.o...@gmail.com] Sent: Wed 3/25/2009 5:49 PM To: Maven Users List Subject: Re: Possible problem when multiple developers depend on SNAPSHOT versions With all due respect to others' responses, the scenario described

RE: How to perform a deploy only

2009-03-25 Thread Edelson, Justin
I'm not 100% sure I understand, but mvn deploy:deploy will do what I think you are describing. Justin From: Jim McCaskey [mailto:jim.mccas...@pervasive.com] Sent: Wed 3/25/2009 10:17 PM To: 'users@maven.apache.org' Subject: How to perform a deploy only

RE: How to perform a deploy only

2009-03-25 Thread Edelson, Justin
Brian can pitch his own stuff far better than I can, but this kind of transactional deployment can be done with Nexus' Staging feature. I realized after I sent my deploy:deploy suggestion that it probably wouldn't work without running at least the package phase, sorry to give you bad info.

RE: Problem in release:prepare

2009-03-13 Thread Edelson, Justin
This looks like http://jira.codehaus.org/browse/SCM-406. Run svn up and rerun release:prepare. -Original Message- From: Jochen Wiedmann [mailto:jochen.wiedm...@gmail.com] Sent: Friday, March 13, 2009 6:40 PM To: Maven Users List Subject: Problem in release:prepare Hi, I am trying to

RE: Eclipse and maven

2009-03-09 Thread Edelson, Justin
. If in the settings.xml, where does that go and what is the syntax? On Mar 3, 2009, at 3:08 PM, Edelson, Justin wrote: This is very strange. It looks like an older version of the master is being used. If you run help:effective-pom against the master, does it correctly show targetJdk = 1.5? You

RE: Corporate pom naming conventions

2009-03-06 Thread Edelson, Justin
FWIW, I use the term master pom. We have multiple of these, so sometimes discussions of these sounds a bit like a Jedi council what with Master Java and Master Flex and Master Maven Plugin. I've tried to use organizational pom in conversation, but, as you indicate, it doesn't quite roll off

Re: Executing another process from maven plugin

2009-03-03 Thread Edelson, Justin
What is inside the getClassPath() method? On Mar 3, 2009, at 8:58 AM, Roman Kournjaev kournj...@gmail.com wrote: Hi Folks I am a little bit stuck here with the following problem. I have written some custom compiler plugin that invokes the actual compiler, the problem is that i have to

RE: Executing another process from maven plugin

2009-03-03 Thread Edelson, Justin
the regular thing .. : private static String getClassPath() { return prop.getProperty(java.class.path, null); } Roman On Tue, Mar 3, 2009 at 4:26 PM, Edelson, Justin justin.edel...@mtvstaff.com wrote

RE: Executing another process from maven plugin

2009-03-03 Thread Edelson, Justin
the *project *variable from ? I didnt see it in the AbstractMojo class? Thanks On Tue, Mar 3, 2009 at 4:40 PM, Edelson, Justin justin.edel...@mtvstaff.com wrote: I believe that will give you the class path of the current process, which is why you're getting Maven stuff. If you're trying to get project

RE: Executing another process from maven plugin

2009-03-03 Thread Edelson, Justin
that the plugin is actually running , but not of the plugin itself , so i had to add plugin dependencies also to the pom.xml where the plugin is configured. Is there a way to get the plugin classpath too ? Thanks in advnace Roman On Tue, Mar 3, 2009 at 4:59 PM, Edelson, Justin justin.edel...@mtvstaff.com

RE: Executing another process from maven plugin

2009-03-03 Thread Edelson, Justin
itself , so i had to add plugin dependencies also to the pom.xml where the plugin is configured. Is there a way to get the plugin classpath too ? Thanks in advnace Roman On Tue, Mar 3, 2009 at 4:59 PM, Edelson, Justin justin.edel...@mtvstaff.com wrote: The project variable (which doesn't need

RE: Eclipse and maven

2009-03-03 Thread Edelson, Justin
the time to help with this. http://pastebin.com/m57fb8d1e On Mar 2, 2009, at 4:25 PM, Edelson, Justin wrote: John- Sorry I didn't get back to you about your 1.5 problem over the weekend. Can you post your pom and the output of mvn help:effective-pom to a pastebin and send the link

RE: Eclipse and maven

2009-03-02 Thread Edelson, Justin
is the best direction here? On Feb 28, 2009, at 12:55 PM, Edelson, Justin wrote: source and target are not valid configuration parameters for pmd. The parameter is called targetJdk. The way I deal with this problem is to have a property called maven.java.version and then reference

RE: Eclipse and maven

2009-02-28 Thread Edelson, Justin
target1.5/target rulesets ruleset/rulesets/basic.xml/ruleset ruleset/rulesets/imports.xml/ruleset ruleset/rulesets/unusedcode.xml/ruleset ruleset/rulesets/finalizers.xml/ruleset /rulesets /configuration /plugin On Feb 27, 2009, at 7:25 PM, Edelson, Justin

Re: Eclipse and maven

2009-02-27 Thread Edelson, Justin
This looks like the right directory structure to me. Each directory with a pom.xml file would be an Eclipse project. Why do you think this won't work? Justin On Feb 27, 2009, at 8:25 AM, John Wooten jwoo...@shoulderscorp.com wrote: I'm trying to set up the structure below which was

RE: Eclipse and maven

2009-02-27 Thread Edelson, Justin
I believe that's a javadoc warning (not error). In addition to maven-compiler-plugin, you also need to specify the Java version in the javadoc plugin (in the reporting section) and, if you use it, the pmd plugin. Justin From: John Wooten

RE: New Maven Respository Search Application

2009-02-23 Thread Edelson, Justin
This use case is already met by Nexus (and, I assume, other repository managers). For example, go to http://repository.sonatype.org/ and search for a class name. Now, the results could be better in that you should be able to drill into a library and see the fully-qualified class names contained

RE: Repo release final

2009-02-23 Thread Edelson, Justin
https://docs.sonatype.com/display/NX/Nexus+FAQ#NexusFAQ-Q.HowdoIdisablea rtifactredeployment. -Original Message- From: PaulG [mailto:ps.gr...@googlemail.com] Sent: Monday, February 23, 2009 6:04 PM To: users@maven.apache.org Subject: Repo release final How do I ensure that a artifact

RE: POM element orders

2009-02-01 Thread Edelson, Justin
AFAIK, the execution of plugin goals within a phase is not configurable, at least in Maven 2.0.x. In order to make dependency:unpack happen before assembly:attached, just execute dependency:unpack in an earlier lifecycle phase. HTH, Justin From: Éric

RE: maven / osgi / repositories

2009-01-29 Thread Edelson, Justin
I think what we can do is give a brief guideline as to what's commonly expected and help people create correct and useful bundles. Clearing up the version vs. classifier issue would be a good first step. From: Jason van Zyl [mailto:jvan...@sonatype.com]

RE: Maven Assemblies

2009-01-28 Thread Edelson, Justin
The assembly descriptor (i.e. the file that defines the directory structure and contents of the assembly) is a separate file from the POM. They are typically placed in src/main/assembly/. See http://maven.apache.org/plugins/maven-assembly-plugin/usage.html for examples of how to configure the

RE: Does having a parent POM mean the current POM is a module ? (or a possible release plugin issue)

2009-01-27 Thread Edelson, Justin
Each project (defined shortly) needs to have the url, scm, and site distributionManagement elements defined explicitly. Project here = * Not a module of a parent project * May or may not have modules within it. Justin -Original Message- From: Lesaint Sébastien

Re: Adding pre-release steps...?

2009-01-26 Thread Edelson, Justin
Write plugins to perform your validation and add them to the preparationGoals of the release plugin. Justin On Jan 26, 2009, at 7:12 AM, Kent Närling kent.narl...@seamless.se wrote: Just asking to see if anyone wanted to do the same and hints about the best way of doing this: I would

Re: Adding pre-release steps...?

2009-01-26 Thread Edelson, Justin
way... thanks! :-) Will this configuration setting be inherited even if I change other parts of the configuration in the inherited projects? or will they then override this with the default empty list (removing my called plugins)? //Kent 2009/1/26 Edelson, Justin justin.edel...@mtvstaff.com

RE: ${pom.version} without the SNAPSHOT part.

2009-01-24 Thread Edelson, Justin
Um, 1.2.3 is a String too. From: Thiago Moreira (timba) [mailto:tmoreira2...@gmail.com] Sent: Sat 1/24/2009 6:23 PM To: Maven Users List Subject: ${pom.version} without the SNAPSHOT part. Hi there, Is there a way to get only the numbers of the

RE: How to exclude a package from compile

2009-01-17 Thread Edelson, Justin
Excluding the pom file can be done with this configuration of the jar plugin: configuration archive addMavenDescriptorfalse/addMavenDescriptor /archive /configuration As for your java package question, I would suggest building this one package as a separate project and included it (and

Re: Does the pluginGroup in the setting.xml work?

2009-01-15 Thread Edelson, Justin
Yes, it works. The file is supposed to be called settings.xml. On Jan 15, 2009, at 6:05 AM, linchongsu sulinchong1...@gmail.com wrote: does the pluginGroups in the setting.xml work? anybody comes to this problem? On Mon, Nov 24, 2008 at 3:21 PM, 苏林冲 sulinchong1...@gmail.com wrote:

RE: The PluginDescriptor for the plugin Plugin [org.apache.maven.plugins:maven-aar-plugin] was not found.

2009-01-05 Thread Edelson, Justin
See http://maven.apache.org/guides/introduction/introduction-to-plugin-prefi x-mapping.html, specifically the section labeled Configuring Maven to Search for Plugins -Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: Monday, January 05, 2009 1:33 PM To:

RE: Unable to successfully complete a mvn install on one of my apps

2008-12-19 Thread Edelson, Justin
You might want to try running mvn help:effective-settings. Justin -Original Message- From: edgarosy [mailto:edgar.l...@gmail.com] Sent: Friday, December 19, 2008 4:36 PM To: users@maven.apache.org Subject: Unable to successfully complete a mvn install on one of my apps I have an

RE: Unable to successfully complete a mvn install on one of my apps

2008-12-19 Thread Edelson, Justin
Right, but does it show your artifactory repository? -Original Message- From: edgarosy [mailto:edgar.l...@gmail.com] Sent: Friday, December 19, 2008 5:13 PM To: users@maven.apache.org Subject: RE: Unable to successfully complete a mvn install on one of my apps When I run the mvn

RE: Test plugin

2008-12-18 Thread Edelson, Justin
This error is accurate. There's no maven-test-plugin. test is a lifecycle phase, not a plugin. From: John Coleman [mailto:john.cole...@eurobase.com] Sent: Thu 12/18/2008 4:54 AM To: Maven Users List Subject: Test plugin When I try to run a test plugin goal I

RE: How do I build one jar per class file controlling the name of the jar?

2008-12-17 Thread Edelson, Justin
Did you try using additional executions of the jar plugin? I imagine with a combination of the classifier and includes you could accomplish this. It wouldn't be dynamic in the sense that you would need to specify each class file in a separate execution. I suspect you'd need to write your own

Re: Unexpected version packaged in war

2008-12-12 Thread Edelson, Justin
This may or may not be the expected behavior. But first, just to be clear, the fact that the war and jar are in the same multi-module project is irrelevant. All that matters is the ordering of dependencies and the 'closeness' of various dependencies. In your example, the two projectX

RE: Starting a jetty server for client side tests

2008-12-11 Thread Edelson, Justin
You might want to try using cargo instead. It should allow you to deploy the WAR project into a container and start up that container. Something like: configuration waittrue/wait container containerIdjetty6x/containerId /container configuration deployables deployable

Looking for good plugin examples

2008-12-11 Thread Edelson, Justin
Can anyone point me to good examples of plugins that use these two features: 1) DOM-based configuration 2) Getting a component from Plexus through lookup (ii.e. not via injection) Thanks, Justin

RE: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread Edelson, Justin
I seem to recall a problem where if you tried to combine JUnit 3.x and 4.x styles (i.e. use annotation and extend TestCase), something like the below would happen. But I'm not sure that was a Maven problem. Justin From: Anders Hammar [mailto:[EMAIL PROTECTED]

Re: creating a JAR file of the source code in a war project

2008-12-10 Thread Edelson, Justin
You should put your code in a seperate project with packaging 'jar' and then depend upon that project from your war project. This is considered a best practice anyway. Justin - Original Message - From: Richard Chamberlain [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org

Re: Limitation of the release plugin?

2008-12-04 Thread Edelson, Justin
And it won't work on SVN 1.5.x - Original Message - From: Brian E. Fox [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Thu Dec 04 10:53:03 2008 Subject: RE: Limitation of the release plugin? Yeah but it sounds like you're thinking in svn terms only. This might not

  1   2   >