War Plugin does not copy Main-Class to / of war file

2009-06-02 Thread nambi sankaran
Hi All I am trying to embed jetty into a war file, so that the war file becomes executable.    java -jar mywar.war  will start jetty on port 8080. ie, Main-Class will start Jetty programmatically. To achieve this I have added configuration section for war plugin,     build    

Re: War Plugin does not copy Main-Class to / of war file

2009-06-02 Thread Stephen Connolly
You'll probably want to put your main class in a separate jar and then use dependency:unpack-dependencies to unpack the main class 2009/6/2 nambi sankaran snambi...@yahoo.com Hi All I am trying to embed jetty into a war file, so that the war file becomes executable. java -jar mywar.war

Re: Lifecycle for javascript

2009-06-02 Thread Olivier Lamy
Hi, A packaging javascript exists in the mojo sandbox [1] You can try that. HTH, -- Olivier [1] http://mojo.codehaus.org/javascript-maven-tools/guide-javascript-development.html 2009/6/1 Nitin Verma nitin.mat...@gmail.com: Hi, Do we have lifecycle defined for javascript? Like:

Re: Lifecycle for javascript

2009-06-02 Thread Manos Batsis
Nitin Verma wrote: Do we have lifecycle defined for javascript? Like: concatenate static-check (run jslint) test minify install deploy Last time I checked in our company we just used the normal life cycle along with our own maven-jstools-plugin [1] and the maven-js-plugin by Mobilvox [2].

Maven Site plugin - no parent link

2009-06-02 Thread Tom Bollwitt
I am testing out the site plugin on a multi module project and the module project's site is not getting a link back to the parent site. I am using maven version... Apache Maven 2.1.0 (r755702; 2009-03-18 14:10:27-0500) Java version: 1.5.0_16 OS name: mac os x version: 10.5.7 arch: i386 Family:

Re: Lifecycle for javascript

2009-06-02 Thread nicolas de loof
Would you like to contribute to js-tools in Mojo ? http://mojo.codehaus.org/javascript-maven-tools/ Nicolas 2009/6/2 Manos Batsis manos_li...@geekologue.com Nitin Verma wrote: Do we have lifecycle defined for javascript? Like: concatenate static-check (run jslint) test minify

Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-06-02 Thread dfernandez
Hello, I have a form with a DropDownChoice, on which onchange event I want to update some form components. But I need to read data from other fields of the form for doing so, and so I added an AjaxFormSubmitBehavior to the DropDownChoice. My intention is to read the data from the drop down and

Re: dlls and runtime dependencies

2009-06-02 Thread Max Bowsher
dkowis wrote: I've searched the mailing lists and they don't quite get far enough on this subject for me. I've got a project, incidentally it's the rxtx.org package, that uses the rxtxSerial.dll. I then have another project that uses that project: Project A | | - Project b |

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-06-02 Thread dfernandez
Sorry, wrong users list! :-( dfernandez wrote: Hello, I have a form with a DropDownChoice, on which onchange event I want to update some form components. But I need to read data from other fields of the form for doing so, and so I added an AjaxFormSubmitBehavior to the

RE: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-06-02 Thread Martin Gainty
http://struts.apache.org/2.x/docs/autocompleter.html form id=selectForm sx:autocompleter name=select list={'fruits','colors'} forceValidOption=false loadOnTextChange=false valueNotifyTopics=/changed /form !-- second autocompleter listens and populates based on change topic event --

RE: dlls and runtime dependencies

2009-06-02 Thread Martin Gainty
this is a good solution Is there a way to uniquely identify the jar using conventional plugin label attributes: artifactId groupId version (this way projects will be able to reference the installed plugin from repository) ? Martin Gainty __ Verzicht

Re: dlls and runtime dependencies

2009-06-02 Thread Max Bowsher
Martin Gainty wrote: this is a good solution Is there a way to uniquely identify the jar using conventional plugin label attributes: artifactId groupId version (this way projects will be able to reference the installed plugin from repository) You'll be the one creating the jar, you get

Maven Assembly Question

2009-06-02 Thread virtualshock
I previously was building a zip file with Ant. I have now moved on to Maven. I haven't been able to figure out how I can traverse directories copying all files found into one location like Ant's flatten. For instance : --TestDir1 TestDir2 --TestFile1.xml TestDir3 --TestDir4

RE: Maven repostiry for same projects,but different streams

2009-06-02 Thread Bracewell, Robert
The use of classifiers may help out in this case. The major Maven packaging plugins like jar, ear, and war allow the use of a classifier to be configured. For each of your streams if you pass in a property at build time -Dstream=value then you could set the classifier to this property and all

Re: Lifecycle for javascript

2009-06-02 Thread Nitin Verma
Hi Nicolas, Would you like to contribute to js-tools in Mojo Sure it would. Please let me know the details. Regards, Nitin Verma On Tue, Jun 2, 2009 at 2:07 PM, nicolas de loof nicolas.del...@gmail.com wrote: Would you like to contribute to js-tools in Mojo ?

passing properties from filters to an ant task

2009-06-02 Thread Jean Luc
Hello, I'm trying to use an ant task (a wrapper for sqlplus, http://incanto.sourceforge.net/usage-sqlplus.html) for a Maven build. It works if I hardcode the parameters for the ant task in my pom.xml, but if I try to use properties set through a filter, they are not read. There's nothing

RE: Maven repostiry for same projects,but different streams

2009-06-02 Thread Vonnahme, Paul
I have different streams for the same projects. Each task effort has its own stream (all streams are child streams of the integration stream). I want to be able to run builds for each stream on the integration machine. The problem is that the artifact names are the same , so the only

Re: passing properties from filters to an ant task

2009-06-02 Thread Laurent Perez
Hi Not sure if this could work, but did you try to explicitly pass the property again to the task with a property name=test.db.username value=${test.db.username} / within tasks ? laurent 2009/6/2 Jean Luc jeanluc2...@gmail.com: Hello, I'm trying to use an ant task (a wrapper for sqlplus,

Re: Maven Site plugin - no parent link

2009-06-02 Thread Dennis Lundberg
Please start by upgrading the Site Plugin to version 2.0. Tom Bollwitt wrote: I am testing out the site plugin on a multi module project and the module project's site is not getting a link back to the parent site. I am using maven version... Apache Maven 2.1.0 (r755702; 2009-03-18

Excluding default repositories

2009-06-02 Thread daniel.green
Is it possible to exclude default repositories? I need to ensure that all dependencies are taken only from the repositories that I specify. -- View this message in context: http://www.nabble.com/Excluding-default-repositories-tp23839715p23839715.html Sent from the Maven - Users mailing list

[minor] tar archives extraction warning

2009-06-02 Thread Nicholas Tung
I get tar: A lone zero block at 6491 when extracting either the .tar.gz or .tar.bz2 files. The md5sum matches. It doesn't seem to be a problem. Nicholas

Re: [minor] tar archives extraction warning

2009-06-02 Thread Olivier Lamy
Hi, What is your os ? -- Olivier 2009/6/2 Nicholas Tung nt...@ntung.com: I get tar: A lone zero block at 6491 when extracting either the .tar.gz or .tar.bz2 files. The md5sum matches. It doesn't seem to be a problem. Nicholas

Re: [minor] tar archives extraction warning

2009-06-02 Thread Nicholas Tung
opensuse x64 64b, originally 11.1 but I'm tracking trunk, so probably closer to 11.2 now. oliver:~ tar --version tar (GNU tar) 1.21 regards, Nicholas On Tue, Jun 2, 2009 at 13:43, Olivier Lamy ol...@apache.org wrote: Hi, What is your os ? -- Olivier 2009/6/2 Nicholas Tung

Re: Lifecycle for javascript

2009-06-02 Thread nicolas de loof
The project source is here : http://svn.codehaus.org/mojo/trunk/sandbox/javascript-maven-tools/ check it, attach any useful feature request or path to Mojo Jira Best regards Nicolas 2009/6/2 Nitin Verma nitin.mat...@gmail.com Hi Nicolas, Would you like to contribute to js-tools in Mojo

Re: [minor] tar archives extraction warning

2009-06-02 Thread Dan Tran
most likely the tar file was created by maven-assembly-plugin 2.2-beta-2 and before ( the actually main issue is at plexus-archiver ). maven-assembly-plugin 2.2-beta-3+ no longer has this problem. -D On Tue, Jun 2, 2009 at 1:47 PM, Nicholas Tung gatoatigr...@gmail.com wrote: opensuse x64 64b,

Re: Excluding default repositories

2009-06-02 Thread Stephen Connolly
you need to use a repository manager and have it proxy all repositories in your settings.xml 2009/6/2 daniel.green october...@gmail.com Is it possible to exclude default repositories? I need to ensure that all dependencies are taken only from the repositories that I specify. -- View this

Re: Excluding default repositories

2009-06-02 Thread daniel.green
So point the proxies for the default repositories at my onsite repository? Stephen Connolly-2 wrote: you need to use a repository manager and have it proxy all repositories in your settings.xml 2009/6/2 daniel.green october...@gmail.com Is it possible to exclude default repositories?

Re: Excluding default repositories

2009-06-02 Thread Stephen Connolly
Yep... point everything at your repository mirrorOf*/mirrorOf FYI, you want to do this anyway as running a repository manager is pretty much essential these days 2009/6/2 daniel.green october...@gmail.com So point the proxies for the default repositories at my onsite repository? Stephen

scalac compiler plugin help

2009-06-02 Thread Nicholas Tung
Hi all, I'm trying to use the Maven to build a scala project, but I get a NullPointerException at org.apache.maven.artifact.versioning.DefaultArtifactVersion.parseVersion. My setup is at http://www.gatoatigrado.com/tmp-code-snippets. Other attempts: I also had some problems building the

unable to download artifacts

2009-06-02 Thread adasal
I have looked at MNG-4028 http://jira.codehaus.org/browse/MNG-4028 and other similar issues. I have commented MNG-4183 http://jira.codehaus.org/browse/MNG-4183 My problems are roughly the same. I'm using maven 2.1.0, linux Jaunty, no firewall apart from that in the terminal adaptor, no network

mvn deploy:deploy

2009-06-02 Thread Jane Young
Hi Maven Gurus, When executing mvn deploy:deploy, I see this error: The packaging for this project did not assign a file to the build artifact. The deployment works fine with mvn deploy since it executes all the prior maven lifecycle phases. I'm just wondering can mvn deploy:deploy work as

RE: Does reactor spawn a subprocess for each submodule?

2009-06-02 Thread Tracy Hartford
I have spent some time looking into the invoker plugin, and according to the specs, it is primarily used for integration testing. My original question was whether it was possible, when invoking a maven goal on a parent POM, to force the reactor to spawn a new process for each of the submodule

Re: scalac compiler plugin help

2009-06-02 Thread Wayne Fay
   I'm trying to use the Maven to build a scala project, but I get a NullPointerException at org.apache.maven.artifact.versioning.DefaultArtifactVersion.parseVersion. My setup is at http://www.gatoatigrado.com/tmp-code-snippets. If you go to the repo and click thru to the versions directory

Re: mvn deploy:deploy

2009-06-02 Thread Wayne Fay
The deployment works fine with mvn deploy since it executes all the prior maven lifecycle phases. I'm just wondering  can mvn deploy:deploy work as an independenct lifecycle phase? You should probably look at using mvn deploy:deploy-file instead. But if you are looking to deploy more than 1

Re: scalac compiler plugin help

2009-06-02 Thread Nicholas Tung
On Tue, Jun 2, 2009 at 17:06, Wayne Fay wayne...@gmail.com wrote: I'm trying to use the Maven to build a scala project, but I get a NullPointerException at org.apache.maven.artifact.versioning.DefaultArtifactVersion.parseVersion. My setup is at

Re: mvn deploy:deploy

2009-06-02 Thread Jane Young
Does mvn deploy:deploy work? Has anyone successfully executed deploy goal with maven-deploy-plugin? Wayne Fay wrote: The deployment works fine with mvn deploy since it executes all the prior maven lifecycle phases. I'm just wondering can mvn deploy:deploy work as an independenct lifecycle

Re: scalac compiler plugin help

2009-06-02 Thread Wayne Fay
Thanks, I tried that, and 2.9, 2.10, etc. It seems to give the same error. Your pom is missing groupId, artifactId, and version, so add those too. That will most likely fix it. Wayne - To unsubscribe, e-mail:

RE: scalac compiler plugin help

2009-06-02 Thread Martin Gainty
David- inside the main pom.xml located at /tmp/gatoatigrado/maven/maven-scala-plugin/src/it/docTest/pom.xml should have a dependency for maven-scala-plugin dependency artifactIdmaven-scala-plugin/artifactId

Re: mvn deploy:deploy

2009-06-02 Thread Wayne Fay
Does mvn deploy:deploy work?  Has anyone successfully executed deploy goal with  maven-deploy-plugin? If you've ever deployed anything from Maven via mvn deploy, then you've used the deploy mojo in the maven-deploy-plugin. That is what runs behind the scenes. So asking this question is a bit

Re: mvn deploy:deploy

2009-06-02 Thread Jane Young
Thanks... Looks like maven-deploy-plugin is not intended to execute just the deploy goal. I asked this question before and Steve Connolly kindly responded a workaround by deploying to a staged repository and then merge to the final repo. A co-worker suggested that I should be able to use the

Re: scalac compiler plugin help

2009-06-02 Thread Nicholas Tung
On Tue, Jun 2, 2009 at 17:31, Wayne Fay wayne...@gmail.com wrote: Thanks, I tried that, and 2.9, 2.10, etc. It seems to give the same error. Your pom is missing groupId, artifactId, and version, so add those too. That will most likely fix it. Wayne

Spring unit test cfg file

2009-06-02 Thread Herbert Wu
Sorry for the rookie question as I am just learning Maven and had difficulty to find an answer for a simple spring cfg file issue: In my unit test, I placed the unit-test spring-bean xml file client-config.xml in src/test/com/demo folder, and how to instruct maven classloader to load from this

Re: Does reactor spawn a subprocess for each submodule?

2009-06-02 Thread Stephen Connolly
We are all still wondering _why_ you feel you need to do this forking? 2009/6/3 Tracy Hartford tra...@zillow.com I have spent some time looking into the invoker plugin, and according to the specs, it is primarily used for integration testing. My original question was whether it was possible,

Re: mvn deploy:deploy

2009-06-02 Thread Stephen Connolly
You'd have to run a whole bunch of buildhelper:attach goals on the same mvn command line... and since that will require properties to be passed and since I don't see any way to specify the same property with multiple values from the same command, I do not see what you'd gain... certainly if you

Re: mvn deploy:deploy

2009-06-02 Thread Wayne Fay
A co-worker suggested that I should be able to use the deploy goal but looks like maven-deploy-plugin does not allow you to directly execute the deploy goal. You should be able to use deploy:deploy-file and then iterate against the various artifacts you need to deploy with something like a

Re: scalac compiler plugin help

2009-06-02 Thread Wayne Fay
Thanks so much, that definitely fixes the first error. Sorry to be such a newbie. The error messages should be better than NullPointerException though. I don't disagree that the error message could be more friendly. I am unsure how you managed to get a pom.xml generated that lacks the GAV

Re: Spring unit test cfg file

2009-06-02 Thread Wayne Fay
In my unit test, I placed the unit-test spring-bean xml file client-config.xml in src/test/com/demo folder, and how to instruct maven classloader to load from this folder? Move it to src/test/resources/com/demo. Wayne - To