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
    finalNametestwar/finalName
    plugins
    plugin
    groupIdorg.apache.maven.plugins/groupId
    artifactIdmaven-war-plugin/artifactId
    configuration
    archive
    manifest
    mainClassTestMain/mainClass
    /manifest
    /archive
    /configuration
    /plugin
    /plugins
    /build


This results in correct MANIFEST.MF file, with the following entry
    Main-Class : TestMain

Howvever,  TestMain class is coped to WEB-INF/classes directory
To make the war executable, the TestMain should be at the root level of war 
file.

The war plugin documentation doesn't provide enough information how to 
configure the plugin, to copy Main-Class  to root level.

Have anyone come across this issue?

Thanks
Nambi



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
 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
 finalNametestwar/finalName
 plugins
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-war-plugin/artifactId
 configuration
 archive
 manifest
 mainClassTestMain/mainClass
 /manifest
 /archive
 /configuration
 /plugin
 /plugins
 /build


 This results in correct MANIFEST.MF file, with the following entry
 Main-Class : TestMain

 Howvever,  TestMain class is coped to WEB-INF/classes directory
 To make the war executable, the TestMain should be at the root level of war
 file.

 The war plugin documentation doesn't provide enough information how to
 configure the plugin, to copy Main-Class  to root level.

 Have anyone come across this issue?

 Thanks
 Nambi




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:

 concatenate
 static-check (run jslint)
 test
 minify
 install
 deploy

 Regards,

 Nitin Verma

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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].


Our plugin provides jslint/jsdoc reports, but most importantly it 
provides dependency management for java webapps - i.e. add a JS 
dependency and your webapp can use it right away if the filter is 
configured in web.xml.


Mobilvox provides minification of JS files. For a sample project that 
uses them both check out sarissa's POM [3].


[1] http://dev.abiss.gr/mvn-jstools/
[2] http://ossi.mobilvox.com/maven-js-plugin/
[3] http://sarissa.cvs.sourceforge.net/sarissa/sarissa/pom.xml?view=markup

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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: unix

Site plugin version...
maven-site-plugin   2.0-beta-7

The basic directory structure is as follows..

parent
|_module1
|  |_pom.xml
|_module2
|  |_pom.xml
|_...
|_pom.xml


The parent pom is structured like...

project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance 

	xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd 


modelVersion4.0.0/modelVersion
parent
groupIdmy.company/groupId
artifactIdsuper-pom/artifactId
version1.0/version
/parent
groupIdcom.mycompany.testproject/groupId
artifactIdtestparent/artifactId
nametest parent/name
packagingpom/packaging
version1.0.0-SNAPSHOT/version
...
distributionManagement
site
idtestServer1/id
urlfile:///var/www/html//url
/site
/distributionManagement
...
modules
modulemodule1/module
modulemodule2/module
...
/modules
...
/project


The pom for module1 is like...

project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance 

	xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd 


modelVersion4.0.0/modelVersion
parent
groupIdcom.mycompany.testproject/groupId
artifactIdtestparent /artifactId
version1.0.0-SNAPSHOT/version
/parent
groupIdcom.mycompany.testproject/groupId
artifactIdmodule1/artifactId
nametest module1/name
packagingjar/packaging
version1.0.0-SNAPSHOT/version
...
/project

The site.xml for module1 is as follows...

?xml version=1.0 encoding=UTF-8?
project xmlns=http://maven.apache.org/DECORATION/1.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd 



body
menu ref=parent /
menu name=My Test project
item name=My XDoc Test href=/myTest.html /
/menu
menu ref=reports /
/body
/project

After reading the docs I thought menu ref=parent / would create a  
link in module1's menu back to the parent site. Am I missing something  
or is this just a bug in the site plugin?


http://maven.apache.org/plugins/maven-site-plugin/examples/sitedescriptor.html
Including Generated Content

There are several preset menus that can be used in the site descriptor  
to include generated content from your project. These are:


reports - a menu with links to all the generated reports for your  
project

parent - a menu with a link to the parent project's site
modules - a menu containing the links to the sites of the submodules  
of this project


Regards,

Tom Bollwitt
Mersoft
tlbollw...@mersoft.com









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
 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].

 Our plugin provides jslint/jsdoc reports, but most importantly it provides
 dependency management for java webapps - i.e. add a JS dependency and your
 webapp can use it right away if the filter is configured in web.xml.

 Mobilvox provides minification of JS files. For a sample project that uses
 them both check out sarissa's POM [3].

 [1] http://dev.abiss.gr/mvn-jstools/
 [2] http://ossi.mobilvox.com/maven-js-plugin/
 [3] http://sarissa.cvs.sourceforge.net/sarissa/sarissa/pom.xml?view=markup

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




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 from the other
fields, and depending on these data, update some other components... but the
problem is that AjaxFormSubmitBehavior not only sends the form data, but
also *validates it*, which I don't want (I don't want validation messages to
appear when changing the value of the drop down).

If it where an AjaxButton I would be able to just
setDefaultFormProcessing(false), but I don't see anything like that in
AjaxFormSubmitBehavior...

Is there a way to do this?

Regards,
Daniel.

-- 
View this message in context: 
http://www.nabble.com/Can-I-make-AjaxFormSubmitBehavior-submit-raw-form-data-but-not-validate-it--tp23829661p23829661.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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
  |
  |- zipfile containing rxtxSerial.dll and rxtxParallel.dll
 
 So the end project needs to have the zip file somewhere in it's runtime
 path. Project A does see that it has a runtime dependency of that zip file,
 but nothing smart happens with it.

A fairly common idiom for this sort of thing is to pack the dlls in a
.jar file on the classpath, and make the Java code that requires the
native libraries responsible for extracting them from the classpath into
 a temporary directory at runtime, and loading them.

Max.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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
 DropDownChoice.
 
 My intention is to read the data from the drop down and from the other
 fields, and depending on these data, update some other components... but
 the problem is that AjaxFormSubmitBehavior not only sends the form data,
 but also *validates it*, which I don't want (I don't want validation
 messages to appear when changing the value of the drop down).
 
 If it where an AjaxButton I would be able to just
 setDefaultFormProcessing(false), but I don't see anything like that in
 AjaxFormSubmitBehavior...
 
 Is there a way to do this?
 
 Regards,
 Daniel.
 
 

-- 
View this message in context: 
http://www.nabble.com/Can-I-make-AjaxFormSubmitBehavior-submit-raw-form-data-but-not-validate-it--tp23829661p23830309.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 --
sx:autocompleter  href=%{jsonList} formId=selectForm 
forceValidOption=false listenTopics=/changed/dont know if jsf has a 
dropdown component
does this help?
Martin Gainty 
__ 
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
Vertraulichkeitanmerkung/Note de déni et de confidentialité
 Ez az
üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
készítése nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és
semmiféle jogi alkalmazhatósága sincs.  Mivel az electronikus üzenetek
könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
ezen üzenet tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Tue, 2 Jun 2009 03:22:22 -0700
 From: dfernan...@users.sourceforge.net
 To: users@maven.apache.org
 Subject: Can I make AjaxFormSubmitBehavior submit raw form data but not 
 validate it?
 
 
 
 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 from the other
 fields, and depending on these data, update some other components... but the
 problem is that AjaxFormSubmitBehavior not only sends the form data, but
 also *validates it*, which I don't want (I don't want validation messages to
 appear when changing the value of the drop down).
 
 If it where an AjaxButton I would be able to just
 setDefaultFormProcessing(false), but I don't see anything like that in
 AjaxFormSubmitBehavior...
 
 Is there a way to do this?
 
 Regards,
 Daniel.
 
 -- 
 View this message in context: 
 http://www.nabble.com/Can-I-make-AjaxFormSubmitBehavior-submit-raw-form-data-but-not-validate-it--tp23829661p23829661.html
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 

_
Windows Live™ SkyDrive™: Get 25 GB of free online storage.
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009

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 und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Tue, 2 Jun 2009 11:47:35 +0100
 From: m...@mxtelecom.com
 To: users@maven.apache.org
 Subject: Re: dlls and runtime dependencies
 
 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
   |
   |- zipfile containing rxtxSerial.dll and rxtxParallel.dll
  
  So the end project needs to have the zip file somewhere in it's runtime
  path. Project A does see that it has a runtime dependency of that zip file,
  but nothing smart happens with it.
 
 A fairly common idiom for this sort of thing is to pack the dlls in a
 .jar file on the classpath, and make the Java code that requires the
 native libraries responsible for extracting them from the classpath into
  a temporary directory at runtime, and loading them.
 
 Max.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 

_
Windows Live™ SkyDrive™: Get 25 GB of free online storage.
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009

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 to choose what to call it.

There is no widely accepted standard for naming native code artifacts,
AFAIK.

Max.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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
TestFile2.xml

I want to traverse TestDir1 and get all the *.xml files and copy them into a
new location.  All I have been able to get Maven to do is copy all the
directories and files.  Here is my assembly snippet :

fileSet
directorysrc/main/resources/test/integrations/directory
outputDirectoryintegrations/outputDirectory
includes
include**/**.xml/include
/includes
/fileSet

In Ant I used this syntax to copy :
copy todir=${INTEGRATIONS_DIR} flatten=true overwrite=true
fileset dir=src/conf/integrations 
includes=**/**.xml,**/**.properties
/
/copy

Thanks
-- 
View this message in context: 
http://www.nabble.com/Maven-Assembly-Question-tp23833852p23833852.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 your built artifacts would live side by side in the repo and 
each distinguished by the property.

--
Robert

-Original Message-
From: Avihaimar [mailto:avihai...@yahoo.com] 
Sent: Monday, June 01, 2009 1:20 PM
To: users@maven.apache.org
Subject: Maven repostiry for same projects,but different streams


Hey,

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 possible i
think on it is to include the stream name in the artifact name, so when new
stream is created his name will be a parameter to the artifact name.
Another suggestions?

Thank you
-- 
View this message in context: 
http://www.nabble.com/Maven-repostiry-for-same-projects%2Cbut-different-streams-tp23821087p23821087.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 ?
 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
 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].

 Our plugin provides jslint/jsdoc reports, but most importantly it provides
 dependency management for java webapps - i.e. add a JS dependency and your
 webapp can use it right away if the filter is configured in web.xml.

 Mobilvox provides minification of JS files. For a sample project that uses
 them both check out sarissa's POM [3].

 [1] http://dev.abiss.gr/mvn-jstools/
 [2] http://ossi.mobilvox.com/maven-js-plugin/
 [3] http://sarissa.cvs.sourceforge.net/sarissa/sarissa/pom.xml?view=markup

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 atypical: database credentials are read through properties so they
can be overridden for each developer. If no overriding file is specified, a
common one is read. This part in itself works fine (it's used elsewhere in
the build). The problem is that the ant task does not see those properties
and thus the db login fails. The output from running mvn -X install is
further below.

Any hints would be much appreciated. Is there anything missing in order to
propagate Maven properties to ant tasks?

Thanks,
-jl


build
filters
filter${filter.db.props}/filter
/filters
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
executions
execution
phasepre-integration-test/phase
configuration
tasks
taskdef name=sqlplus
classname=net.sf.incanto.Sqlplus classpathref=maven.plugin.classpath/
sqlplus
logon=${test.db.username}/${test.db.passwo...@sid dir=database/scripts
start=reinit.sql failOnError=true /
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
dependencies
  dependency
groupIdnet.sf/groupId
artifactIdincanto/artifactId
version0.2.4/version
  /dependency
/dependencies
/plugin
/plugins

...

profiles
profile
iduser.test.db.props/id
activation

fileexists${user.home}/test.db.properties/exists/file
/activation
properties

filter.db.props${user.home}/test.db.properties/filter.db.props
/properties
/profile
profile
iddefault.test.db.props/id
activation

filemissing${user.home}/test.db.properties/missing/file
/activation
properties

filter.db.props${common.test.filters}/test.db.properties/filter.db.props
/properties
/profile




[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-antrun-plugin:1.3:run' --
[DEBUG]   (f) pluginArtifacts = [net.sf:incanto:jar:0.2.4:compile,
org.codehaus.plexus:plexus-utils:jar:1.5.6:runtime,
org.apache.ant:ant-launcher:jar:1.7.1:runtime,
org.apache.ant:ant:jar:1.7.1:runtime,
org.apache.maven:maven-plugin-api:jar:2.0.4:runtime,
org.apache.maven:maven-project:jar:2.0.4:runtime,
org.apache.maven:maven-artifact:jar:2.0.4:runtime]
[DEBUG]   (f) tasks =
[DEBUG] -- end configuration --
[INFO] [antrun:run {execution: default}]
[DEBUG] Storing:
maven.dependency.commons-lang.commons-lang.jar.path=c:\dev\m2-repository\commons-lang\commons-lang\2.4\commons-lang-2.4.jar
Project base dir set to: C:\dev\mybuild
Adding reference: maven.dependency.classpath
Adding reference: maven.compile.classpath
Adding reference: maven.runtime.classpath
Adding reference: maven.test.classpath
Adding reference: maven.plugin.classpath
[INFO] Executing tasks
[DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
[antlib:org.apache.tools.ant] Could not load definitions from resource
org/apache/tools/ant/antlib.xml. It could not be found.
[DEBUG] getProperty(ns=null, name=test.db.username, user=false)
Property test.db.username has not been set
[DEBUG] getProperty(ns=null, name=test.db.password, user=false)
Property test.db.password has not been set
 [echo] mumu: ${test.db.username}/${test.db.passwo...@sid
[DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
[DEBUG] getProperty(ns=null, name=build.sysclasspath, user=false)
Class net.sf.incanto.Sqlplus loaded from parent loader (parentFirst)
 +Datatype sqlplus net.sf.incanto.Sqlplus
[DEBUG] getProperty(ns=null, name=test.db.username, user=false)
Property test.db.username has not been set
[DEBUG] getProperty(ns=null, name=test.db.password, user=false)
Property test.db.password has not been set
  [sqlplus] Executing 'sqlplus' with arguments:
[...]


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 possible i think on it is to include the stream name in 
 the artifact name, so when new stream is created his name 
 will be a parameter to the artifact name.
 Another suggestions?
 

I'm currently evaluating Maven, and this is also an issue we would have to face 
in our environment.  For each build we would pass in the stream name, such as 
'mvn -Dbuild.stream=test1'.  The big question is where to put the variable in 
the pom.

Option 1 - In the groupId:
  modelVersion4.0.0/modelVersion
  groupIdsome.package.name.${build.stream}/groupId
  artifactIdUtility_Jar/artifactId 
  packagingjar/packaging
  version1.0-SNAPSHOT/version

This is what I've been leaning toward since it provides the most separation.

Option 2 - In the artifactId: 
  modelVersion4.0.0/modelVersion
  groupIdsome.package.name/groupId
  artifactIdUtility_Jar-${build.stream}/artifactId 
  packagingjar/packaging
  version1.0-SNAPSHOT/version

This is what Avihaimar is suggesting.

Option 3 - In the version: 
  modelVersion4.0.0/modelVersion
  groupIdsome.package.name/groupId
  artifactIdUtility_Jar/artifactId 
  packagingjar/packaging
  version1.0-${build.stream}-SNAPSHOT/version

I think this is a valid build number, so this should work.


I'm completely new to maven and haven't finished The Definitive Guide yet, so 
maybe I'll come across the answer.  If anyone out there has any advice, though, 
I'd be glad to hear it.

Thanks,
Paul


-Message Disclaimer-

This e-mail message is intended only for the use of the individual or
entity to which it is addressed, and may contain information that is
privileged, confidential and exempt from disclosure under applicable law.
If you are not the intended recipient, any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately by
reply email to conn...@principal.com and delete or destroy all copies of
the original message and attachments thereto. Email sent to or from the
Principal Financial Group or any of its member companies may be retained
as required by law or regulation.

Nothing in this message is intended to constitute an Electronic signature
for purposes of the Uniform Electronic Transactions Act (UETA) or the
Electronic Signatures in Global and National Commerce Act (E-Sign)
unless a specific statement to the contrary is included in this message.

While this communication may be used to promote or market a transaction
or an idea that is discussed in the publication, it is intended to provide
general information about the subject matter covered and is provided with
the understanding that The Principal is not rendering legal, accounting,
or tax advice. It is not a marketed opinion and may not be used to avoid
penalties under the Internal Revenue Code. You should consult with
appropriate counsel or other advisors on all matters pertaining to legal,
tax, or accounting obligations and requirements.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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,
 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 atypical: database credentials are read through properties so they
 can be overridden for each developer. If no overriding file is specified, a
 common one is read. This part in itself works fine (it's used elsewhere in
 the build). The problem is that the ant task does not see those properties
 and thus the db login fails. The output from running mvn -X install is
 further below.

 Any hints would be much appreciated. Is there anything missing in order to
 propagate Maven properties to ant tasks?

 Thanks,
 -jl


 build
    filters
        filter${filter.db.props}/filter
    /filters
    plugins
        plugin
            groupIdorg.apache.maven.plugins/groupId
            artifactIdmaven-antrun-plugin/artifactId
            executions
                execution
                    phasepre-integration-test/phase
                    configuration
                        tasks
                            taskdef name=sqlplus
 classname=net.sf.incanto.Sqlplus classpathref=maven.plugin.classpath/
                            sqlplus
 logon=${test.db.username}/${test.db.passwo...@sid dir=database/scripts
 start=reinit.sql failOnError=true /
                        /tasks
                    /configuration
                    goals
                        goalrun/goal
                    /goals
                /execution
            /executions
            dependencies
              dependency
                groupIdnet.sf/groupId
                artifactIdincanto/artifactId
                version0.2.4/version
              /dependency
            /dependencies
        /plugin
    /plugins

 ...

    profiles
        profile
            iduser.test.db.props/id
            activation

 fileexists${user.home}/test.db.properties/exists/file
            /activation
            properties

 filter.db.props${user.home}/test.db.properties/filter.db.props
            /properties
        /profile
        profile
            iddefault.test.db.props/id
            activation

 filemissing${user.home}/test.db.properties/missing/file
            /activation
            properties

 filter.db.props${common.test.filters}/test.db.properties/filter.db.props
            /properties
        /profile




 [DEBUG] Configuring mojo
 'org.apache.maven.plugins:maven-antrun-plugin:1.3:run' --
 [DEBUG]   (f) pluginArtifacts = [net.sf:incanto:jar:0.2.4:compile,
 org.codehaus.plexus:plexus-utils:jar:1.5.6:runtime,
 org.apache.ant:ant-launcher:jar:1.7.1:runtime,
 org.apache.ant:ant:jar:1.7.1:runtime,
 org.apache.maven:maven-plugin-api:jar:2.0.4:runtime,
 org.apache.maven:maven-project:jar:2.0.4:runtime,
 org.apache.maven:maven-artifact:jar:2.0.4:runtime]
 [DEBUG]   (f) tasks =
 [DEBUG] -- end configuration --
 [INFO] [antrun:run {execution: default}]
 [DEBUG] Storing:
 maven.dependency.commons-lang.commons-lang.jar.path=c:\dev\m2-repository\commons-lang\commons-lang\2.4\commons-lang-2.4.jar
 Project base dir set to: C:\dev\mybuild
 Adding reference: maven.dependency.classpath
 Adding reference: maven.compile.classpath
 Adding reference: maven.runtime.classpath
 Adding reference: maven.test.classpath
 Adding reference: maven.plugin.classpath
 [INFO] Executing tasks
 [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
 [antlib:org.apache.tools.ant] Could not load definitions from resource
 org/apache/tools/ant/antlib.xml. It could not be found.
 [DEBUG] getProperty(ns=null, name=test.db.username, user=false)
 Property test.db.username has not been set
 [DEBUG] getProperty(ns=null, name=test.db.password, user=false)
 Property test.db.password has not been set
     [echo] mumu: ${test.db.username}/${test.db.passwo...@sid
 [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
 [DEBUG] getProperty(ns=null, name=build.sysclasspath, user=false)
 Class net.sf.incanto.Sqlplus loaded from parent loader (parentFirst)
  +Datatype sqlplus net.sf.incanto.Sqlplus
 [DEBUG] getProperty(ns=null, name=test.db.username, user=false)
 Property test.db.username has not been set
 [DEBUG] getProperty(ns=null, name=test.db.password, user=false)
 Property test.db.password has not been set
  [sqlplus] Executing 'sqlplus' with arguments:
 [...]




-- 
a href=http://in-pocket.blogspot.com;http://in-pocket.blogspot.com
- Mobile world, technology and more/a

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: 

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 14:10:27-0500)
 Java version: 1.5.0_16
 OS name: mac os x version: 10.5.7 arch: i386 Family: unix
 
 Site plugin version...
 maven-site-plugin 2.0-beta-7
 
 The basic directory structure is as follows..
 
 parent
 |_module1
 |  |_pom.xml
 |_module2
 |  |_pom.xml
 |_...
 |_pom.xml
 
 
 The parent pom is structured like...
 
 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;
 modelVersion4.0.0/modelVersion
 parent
 groupIdmy.company/groupId
 artifactIdsuper-pom/artifactId
 version1.0/version
 /parent
 groupIdcom.mycompany.testproject/groupId
 artifactIdtestparent/artifactId
 nametest parent/name
 packagingpom/packaging
 version1.0.0-SNAPSHOT/version
 ...
 distributionManagement
 site
 idtestServer1/id
 urlfile:///var/www/html//url
 /site
 /distributionManagement
 ...
 modules
 modulemodule1/module
 modulemodule2/module
 ...
 /modules
 ...
 /project
 
 
 The pom for module1 is like...
 
 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;
 modelVersion4.0.0/modelVersion
 parent
 groupIdcom.mycompany.testproject/groupId
 artifactIdtestparent /artifactId
 version1.0.0-SNAPSHOT/version
 /parent
 groupIdcom.mycompany.testproject/groupId
 artifactIdmodule1/artifactId
 nametest module1/name
 packagingjar/packaging
 version1.0.0-SNAPSHOT/version
 ...
 /project
 
 The site.xml for module1 is as follows...
 
 ?xml version=1.0 encoding=UTF-8?
 project xmlns=http://maven.apache.org/DECORATION/1.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/DECORATION/1.0.0
 http://maven.apache.org/xsd/decoration-1.0.0.xsd;
 
 body
 menu ref=parent /
 menu name=My Test project
 item name=My XDoc Test href=/myTest.html /
 /menu
 menu ref=reports /
 /body
 /project
 
 After reading the docs I thought menu ref=parent / would create a
 link in module1's menu back to the parent site. Am I missing something
 or is this just a bug in the site plugin?
 
 http://maven.apache.org/plugins/maven-site-plugin/examples/sitedescriptor.html
 
 Including Generated Content
 
 There are several preset menus that can be used in the site descriptor
 to include generated content from your project. These are:
 
 reports - a menu with links to all the generated reports for your project
 parent - a menu with a link to the parent project's site
 modules - a menu containing the links to the sites of the submodules of
 this project
 
 Regards,
 
 Tom Bollwitt
 Mersoft
 tlbollw...@mersoft.com
 
 
 
 
 
 
 
 


-- 
Dennis Lundberg

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



[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


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 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
 

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




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
 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 ?
  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
  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].
 
  Our plugin provides jslint/jsdoc reports, but most importantly it
 provides
  dependency management for java webapps - i.e. add a JS dependency and
 your
  webapp can use it right away if the filter is configured in web.xml.
 
  Mobilvox provides minification of JS files. For a sample project that
 uses
  them both check out sarissa's POM [3].
 
  [1] http://dev.abiss.gr/mvn-jstools/
  [2] http://ossi.mobilvox.com/maven-js-plugin/
  [3]
 http://sarissa.cvs.sourceforge.net/sarissa/sarissa/pom.xml?view=markup
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




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, 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 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
 

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 message in context:
 http://www.nabble.com/Excluding-default-repositories-tp23839715p23839715.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




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? 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 archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org


 
 

-- 
View this message in context: 
http://www.nabble.com/Excluding-default-repositories-tp23839715p23841313.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 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? 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 archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Excluding-default-repositories-tp23839715p23841313.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




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 plugin from git (
http://github.com/davidB/maven-scala-plugin/tree/master), though it doesn't
seem like compiling the plugin it is necessary. Using the configuration at
http://scala-tools.org/mvnsites/maven-scala-plugin/usage_scalac_plugins.html,
and adding the scalaVersion tag as per
http://scala-tools.org/mvnsites/maven-scala-plugin/usage.html didn't work
either. Please update the plugin page with a working example.

Thanks in advance,
Nicholas


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 connectivity
problems.
I have tried all combinations of command line, removing settings.xml,
starting with a clean .m2, no luck.
What can this possibly be?

One point - I originally installed maven2 through apt-get, I have now
removed it and use a version in my user directory.
I also have a version of maven 1 on the same machine.
It is true that env variables are not quite set correctly, no M2 and using
MAVEN_HOME instead.
MAVEN_HOME=/home/adam/maven2.1/apache-maven-2.1.0

MAVEN_HOME1=/home/adam/maven-1.1  --- obviously this doesn't work for maven
1. But not the issue.

This is one version of errors when trying to setup appfuse from command line
and using settings.xml in /home/adam/.m2 :-
...
We are using command line specified remote repositories:
http://static.appfuse.org/releases

[DEBUG] Trying repository
id0
[DEBUG] Checking for pre-existing User-Agent
configuration.
[DEBUG] Adding User-Agent
configuration.
[DEBUG] Connecting to repository: 'id0' with url: '
http://static.appfuse.org/releases'.

Downloading:
http://static.appfuse.org/releases/org/appfuse/archetypes/appfuse-basic-tapestry/2.0.2/appfuse-basic-tapestry-2.0.2.jar

[DEBUG] Error transferring file: static.appfuse.org

org.apache.maven.wagon.TransferFailedException: Error transferring file:
static.appfuse.org
...
Caused by: java.net.UnknownHostException: static.appfuse.org

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)


Any help would be appreciated.

Adam


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 an independenct 
lifecycle phase?


Thanks,
Jane

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 executions of that goal. How can I use the invoker
to force the executions to fork? 

Assuming the invoker could be used to cause forked execution of the goal
on the subprocesses, if I were to use a preBuildHookScript, would the
execution of the script occur in the same process as the goal
invocation, or would it be executed in its own process, then return to
the parent process to proceed with the goal execution?

Thanks ~ Tracy

-Original Message-
From: Brian Fox [mailto:bri...@infinity.nu] 
Sent: Sunday, May 24, 2009 5:51 AM
To: Maven Users List
Subject: Re: Does reactor spawn a subprocess for each submodule?

It runs inside the same process. You can use the invoker to fork a maven
process, but this is not usually done as you describe. Why do you want
to
fork a new process for each module?

On Fri, May 22, 2009 at 6:43 PM, Tracy Hartford tra...@zillow.com
wrote:

 I am working on a large multi-module project, and I need to know how
the
 reactor works when I invoke a maven goal on the parent POM. I know
that
 Maven adds all the submodule POMs into the Reactor, which analyzes the
 dependencies between them, and determines the build order. I
understand
 that the Reactor then effectively executes the goal for each
 submodule. What I need to know is, when the Reactor executes the goal
 for a given submodule, does it spawn a child process to do so, or does
 it execute in the current process? If it execute in the current
process,
 is there a way to force it to spawn a new process first?







-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 for the
plugin [1], you'll see various versions of this plugin available, with
the latest being version2.10.1/version. I'd add that to the
plugin node and try again. Also, it is a good practice to always
declare versions for plugins as well as dependencies.

It seems like the documentation should probably be updated as well,
but you'll have to take that up with the author of the plugin.

[1] http://scala-tools.org/repo-releases/org/scala-tools/maven-scala-plugin/

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 artifact, this gets old
pretty quickly (lots of -D's).

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 http://www.gatoatigrado.com/tmp-code-snippets.

 If you go to the repo and click thru to the versions directory for the
 plugin [1], you'll see various versions of this plugin available, with
 the latest being version2.10.1/version. I'd add that to the
 plugin node and try again. Also, it is a good practice to always
 declare versions for plugins as well as dependencies.

 It seems like the documentation should probably be updated as well,
 but you'll have to take that up with the author of the plugin.

 [1]
 http://scala-tools.org/repo-releases/org/scala-tools/maven-scala-plugin/


Thanks, I tried that, and 2.9, 2.10, etc. It seems to give the same error.

I cc'd David Bernard (he's the developer listed on github).

Thanks in advance,
Nicholas


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 phase?



You should probably look at using mvn deploy:deploy-file instead.
But if you are looking to deploy more than 1 artifact, this gets old
pretty quickly (lots of -D's).

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

  




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: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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
  groupIdorg.scala-tools/groupId
  version${pom.version}/version

make sure you install the right version (in this case what pom.version is) of 
scala e.g.

mvn install:install-file -DgroupId=org.scala-tools 
-DartifactId=maven-scala-plugin -Dversion=${pom.version}

OUT: 
---
OUT: TEST BUILD: 
/tmp/gatoatigrado/maven/maven-scala-plugin/src/it/docTest/pom.xml
OUT: Goals: clean compile site
OUT: 
---
OUT: + Error stacktraces are turned on.
OUT: [INFO] Scanning for projects...
OUT: [INFO] 

OUT: [INFO] Building Test scaladoc generation
OUT: [INFO]task-segment: [clean, compile, site]
OUT: [INFO] 

OUT: [INFO] 

OUT: [ERROR] BUILD ERROR
OUT: [INFO] 

OUT: [INFO] Internal error in the plugin manager getting plugin 
'org.scala-tools:maven-scala-plugin': Plugin 
'org.scala-tools:maven-scala-plugin:testing' has an invalid descriptor:
OUT: 1) Plugin's descriptor contains the wrong version: 2.11-SNAPSHOT
OUT: [INFO] 

OUT: [INFO] Trace
OUT: org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in 
the plugin manager getting plugin 'org.scala-tools:maven-scala-plugin': Plugin 
'org.scala-tools:maven-scala-plugin:testing' has an invalid descriptor:
OUT: 1) Plugin's descriptor contains the wrong version: 2.11-SNAPSHOT
OUT:

hth!
Martin 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Tue, 2 Jun 2009 14:52:12 -0700
 Subject: scalac compiler plugin help
 From: nt...@ntung.com
 To: users@maven.apache.org
 CC: david.bern...@gmail.com
 
 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 plugin from git (
 http://github.com/davidB/maven-scala-plugin/tree/master), though it doesn't
 seem like compiling the plugin it is necessary. Using the configuration at
 http://scala-tools.org/mvnsites/maven-scala-plugin/usage_scalac_plugins.html,
 and adding the scalaVersion tag as per
 http://scala-tools.org/mvnsites/maven-scala-plugin/usage.html didn't work
 either. Please update the plugin page with a working example.
 
 Thanks in advance,
 Nicholas

_
Windows Live™: Keep your life in sync. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009

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 silly -- many
people have successfully executed it.

However, this mojo is not designed to be called directly, and thus, is
breaking when you try to use it like this. I doubt you could use it
like this without a bit of trouble.

Maybe you should describe your use case and then people will have
better suggestions on how to achieve the results you are looking for.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 deploy goal but 
looks like maven-deploy-plugin does not allow you to directly execute 
the deploy goal.


Jane


Wayne Fay wrote:

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 silly -- many
people have successfully executed it.

However, this mojo is not designed to be called directly, and thus, is
breaking when you try to use it like this. I doubt you could use it
like this without a bit of trouble.

Maybe you should describe your use case and then people will have
better suggestions on how to achieve the results you are looking for.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

  




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

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org


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 kind-of fixed the some others; updates at
http://www.gatoatigrado.com/tmp-code-snippets . However, I still get,
   [WARNING] you don't define org.scala-lang:scala-library as a dependency
of the project
which seems odd, as I have scala-library designated as a dependency of the
project.

I would like to run a build of Scala git head (Scala 2.8) if possible...
this is probably on the documentation somewhere...

On Tue, Jun 2, 2009 at 17:37, Martin Gainty mgai...@hotmail.com wrote:


 David-
 inside the main pom.xml located at
 /tmp/gatoatigrado/maven/maven-scala-plugin/src/it/docTest/pom.xml


Sorry, gatoatigrado [me, Nicholas] is the user, David is the developer of
the Maven Scala plugin. Thanks though, it helps (see updates on page linked
above).

kind regards,
Nicholas


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 folder?

This is the annotated Spring unit test code that uses classpath to load the
spring-bean client-config.xml( Eclipse IDE loads it fine).
@ContextConfiguration(locations = {classpath:com/demo/client-config.xml})
@RunWith(SpringJUnit4ClassRunner.class)
public class HelloWorldAnnotationTest {
...
}

But mvn test apparently only looks target\test-classes\com\demo path - not
src/test/com/demo path, and complains client-config.xml file not found.

Thanks
-Herbert


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, when invoking a maven
 goal on a parent POM, to force the reactor to spawn a new process for
 each of the submodule executions of that goal. How can I use the invoker
 to force the executions to fork?

 Assuming the invoker could be used to cause forked execution of the goal
 on the subprocesses, if I were to use a preBuildHookScript, would the
 execution of the script occur in the same process as the goal
 invocation, or would it be executed in its own process, then return to
 the parent process to proceed with the goal execution?

 Thanks ~ Tracy

 -Original Message-
 From: Brian Fox [mailto:bri...@infinity.nu]
 Sent: Sunday, May 24, 2009 5:51 AM
 To: Maven Users List
 Subject: Re: Does reactor spawn a subprocess for each submodule?

 It runs inside the same process. You can use the invoker to fork a maven
 process, but this is not usually done as you describe. Why do you want
 to
 fork a new process for each module?

 On Fri, May 22, 2009 at 6:43 PM, Tracy Hartford tra...@zillow.com
 wrote:

  I am working on a large multi-module project, and I need to know how
 the
  reactor works when I invoke a maven goal on the parent POM. I know
 that
  Maven adds all the submodule POMs into the Reactor, which analyzes the
  dependencies between them, and determines the build order. I
 understand
  that the Reactor then effectively executes the goal for each
  submodule. What I need to know is, when the Reactor executes the goal
  for a given submodule, does it spawn a child process to do so, or does
  it execute in the current process? If it execute in the current
 process,
  is there a way to force it to spawn a new process first?
 
 
 
 
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




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 do

mvn jar:jar source:jar javadoc:jar deploy:deploy

that will just work from the command line and will deploy the three jars
as the three mojos prior will attach artifacts to the reactor for the deploy
mojo to deploy... but if I understand correctly, the deploy:deploy mojo is
designed to deploy multiple artifacts to the same GAV coordinates, and I
suspect you want to deploy multiple artifacts to multiple GAV coordinates

-Stephen

2009/6/3 Jane Young jane.yo...@sun.com

 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 deploy goal but
 looks like maven-deploy-plugin does not allow you to directly execute the
 deploy goal.

 Jane



 Wayne Fay wrote:

 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 silly -- many
 people have successfully executed it.

 However, this mojo is not designed to be called directly, and thus, is
 breaking when you try to use it like this. I doubt you could use it
 like this without a bit of trouble.

 Maybe you should describe your use case and then people will have
 better suggestions on how to achieve the results you are looking for.

 Wayne

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org







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
shell script etc. But this will not work with simply mvn
deploy:deploy as you've discovered.

Take a look at Nexus Pro's staging functionality, if you're looking
for this kind of feature and have a budget for it. Or build it
yourself with a few tools if you don't have Nexus Pro.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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
coordinates, however. ;-)

I think this scala plugin demo documentation is really lacking, if
this is the results you're getting...

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org