Re: [m2] Executing a Test First

2006-08-14 Thread franz see



Tony Truong wrote:
 
 Hi Franz,
 
 Thanks for you quick reply.
 
 For one thing, -Dtest only runs one singular test. What I want though is
 to run that specified test, then have it execute the rest of the tests.
 
 It would also be desirable if I could specify this in the pom rather than
 in command line/runtime.
 
 Tony.
 
 franz see wrote:
 
 
 Tony Truong wrote:
 
 To all,
 
 I need to run a specific JWebunit test before the other tests, since
 this JWebunit test sets up the web app environment. How would I be able
 to do this with the surefire plugin?
 
 Tony.
 
 
 Good day to you, Tony,
 
 add -Dtest=[test class name] to your mvn command.
 
 Cheers, 
 Franz
 
 
 


Good day to you, Tony, 

Sorry about that, my bad. Anyway, here's another suggestion.

Try binding the test goal to the test-compile phase (the phase right before
test) and to the test phase. Also, specify that the only test you would run
during the test-compile is that specific JWebunit test case. 

Specifically, try adding this

project
  [...]
  build
pluginManagement
  plugins
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-surefire-plugin/artifactId
  executions
execution
  id1/id
  phasetest-compile/phase
  goals
goaltest/goal
  /goals
  configuration
test[...your initial test...]
  /configuration
/execution
execution
  id2/id
  goals
goaltest/goal
  /goals
/execution
  /executions
/plugin
  /plugins
/pluginManagement
  /build
  [...]
/project
-- 
View this message in context: 
http://www.nabble.com/-m2--Executing-a-Test-First-tf2101214.html#a5791865
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Projectstructure

2006-08-14 Thread Kai Uwe Bachmann

Hello,

I have a similar project structure and I realized it as a Maven 
multiproject (see HowTos).
Finaly you wil have 4 pom-files. One in the projects and one in the 
module.


In Eclipse I opened these projects simply by creating new projects from 
existing source, so the module wasn't in the Eclipse workspace.


Mit freundlichen Grüßen / Best Regards

Kai Uwe Bachmann
Am 13.08.2006 um 23:41 schrieb Kaiser, Hans:


Hello list,

I am currently astonished, how maven handles many build problems. It is
pretty fine!
Anyway I have troubles to integrate it into my project structure.

I am using eclipse and I have my eclipse sub-projects all together in a
CVS-module my-app.
Here the CVS structure:
my-app (CVS-module)
   presentation
   common
   web

In eclipse I have following projects:
presentation
common
web


Now I am wondering, how could I add a pom.xml to the given structure?
Does the CVS-module my-app has to be checkout into ecplise-workspace, 
so

the resulting projects in eclipse will be:
my-app
presentation
common
web

What will be the best way to use such project structure in maven?

best regards



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] Executing a Test First

2006-08-14 Thread Tony Truong

Hi franz,

Thanks franz! The solution to the problem was to create two executions and
bind it to the same phase. In each execution, specify a different ID.

Case solved.


franz see wrote:
 
 
 
 Tony Truong wrote:
 
 Hi Franz,
 
 Thanks for you quick reply.
 
 For one thing, -Dtest only runs one singular test. What I want though is
 to run that specified test, then have it execute the rest of the tests.
 
 It would also be desirable if I could specify this in the pom rather than
 in command line/runtime.
 
 Tony.
 
 franz see wrote:
 
 
 Tony Truong wrote:
 
 To all,
 
 I need to run a specific JWebunit test before the other tests, since
 this JWebunit test sets up the web app environment. How would I be able
 to do this with the surefire plugin?
 
 Tony.
 
 
 Good day to you, Tony,
 
 add -Dtest=[test class name] to your mvn command.
 
 Cheers, 
 Franz
 
 
 
 
 
 Good day to you, Tony, 
 
 Sorry about that, my bad. Anyway, here's another suggestion.
 
 Try binding the test goal to the test-compile phase (the phase right
 before test) and to the test phase. Also, specify that the only test you
 would run during the test-compile is that specific JWebunit test case. 
 
 Specifically, try adding this
 
 project
   [...]
   build
   pluginManagement
   plugins
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-surefire-plugin/artifactId
   executions
 execution
   id1/id
   phasetest-compile/phase
   goals
 goaltest/goal
   /goals
   configuration
 test[...your initial test...]
   /configuration
 /execution
 execution
   id2/id
   goals
 goaltest/goal
   /goals
 /execution
   /executions
 /plugin
   /plugins
 /pluginManagement
   /build
   [...]
 /project
 

-- 
View this message in context: 
http://www.nabble.com/-m2--Executing-a-Test-First-tf2101214.html#a5791954
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: build error

2006-08-14 Thread Emmanuel Venisse

do you have svn in your path?

Emmanuel

p_m a écrit :
 Hi, 
  I am getting following error while doing build. SVN is installed and i

am able to do manual check-out from SVN
Online report : 
http://localhost:8080/continuum/servlet/continuum/target/ProjectBuild.vm 
/view/ProjectBuild/id/56/buildId/118 
Build statistics: 
  State: Error 
  Previous State: Error 
  Started at: Sun, 13 Aug 2006 21:03:37 -0400 
  Finished at: Sun, 13 Aug 2006 21:03:37 -0400 
  Total time: 0s 
  Build Trigger: Forced 
  Exit code: 0 
  Building machine hostname: emetadev1 
  Operating system : Linux(unknown) 
  Java version : 1.4.2_04(Sun Microsystems Inc.) 

Changes 
  No files changed 
  
 
 
Build Error: 
 
 
Exception: 
Cannot checkout sources. 
Exception while executing SCM command. 
Error while executing command. 
Error while executing process. 
java.io.IOException: svn: not found 



My SCM tag in POM is as below 

scm 
connection 
scm:svn:http://ip:port/svn/repos/proj/common 
/connection 
   developerConnection 
scm:svn:http://ip:port/svn/repos/proj/common 
/developerConnection 
url 
http://ip:port/svn/repos/proj/common 
/url 
/scm 

Thanks 
P~M




RE: m2-eclipse: exported libraries are unordered?

2006-08-14 Thread Zeltner Martin
See http://jira.codehaus.org/browse/MNG-1412 and vote for it.

Cheers,
Martin


 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of Holger Hoffstaette
 Sent: Montag, 14. August 2006 04:56
 To: users@maven.apache.org
 Subject: m2-eclipse: exported libraries are unordered?
 
 
 Dear Mavens -
 
 After switching a project from m1 to m2 it seems that, much to my
 surprise, the m2-eclipse plugin does not order the exported 
 jars in the
 generated .classpath file. Is there a magick flag that I'm 
 missing or do I
 need to talk to the the source?
 
 thanks,
 Holger
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refreshing the source files before the build starts (Perforce)

2006-08-14 Thread Emmanuel Venisse
I don't know how Perforce works, but I think the client should remove files deleted on the server, 
isn't it?


You can remove manually the working directory of your project in continuum and it will be checkouted 
at the next build


Emmanuel

Prashanth Krishnamurthy a écrit :

I have deleted few files from the perforce server.
When the build starts, it still looks for these
deleted files.

Is there a way to have continuum drop and re-create
source dir? 


thanks
--Prashanth

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 








Newbie question on MOJOs

2006-08-14 Thread ritu . x . kedia
Hi,

I am new to Maven2. I am trying to develop plugins in Maven2 using the 
Java Plugins approach. I have seen the getting started guide on MOJOs 
(http://maven.apache.org/guides/plugin/guide-java-plugin-development.html). 
But this is too elementary. Could someone please point me to some more 
advanced guide to building MOJOs, one which contains integration with Ant 
Java APIs? I have taken a look at the AntExternal guide as well: 
http://ant.apache.org/manual/antexternal.html.

At this point, I am simply trying to use Ant's Javac.java API to compile 
my source code using a MOJO. I had the following questiions:
1. How do I get access to maven's dependency classpath (i.e. path 
containing all the dependencies defined in project's pom.xml)? In Maven 
1.x this was accessible using maven.dependency.classpath reference in 
plugin.jelly.
2. How does Maven set the java.home System Property? I have set the 
environment var Java_Home to the jdk directory but Maven is setting the 
java.home System property to the jre directory (i.e. jdk_dir/jre). Why 
is that so?

Has anyone used Ant's Javac API to do the compilation from inside a MOJO. 
If yes, could you please send me the code snippet to set the classpath and 
any other system properties?

Thanks in advance,
Ritu







-
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase  Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.


RE: [m2] Configuring the scp executable

2006-08-14 Thread Jörg Schaible
Hi Daniel,

Daniel Serodio wrote on Friday, August 11, 2006 11:38 PM:

 I found documentation on how to configure the scp executable at
 http://maven.apache.org/guides/mini/guide-deploy-ssh-external. html,
 but it doesn't work for Maven2:
 
 [INFO] Error deploying artifact: While configuring wagon for
 'vulcano': Unable to apply wagon configuration.
 
 Cannot find setter nor field in
 org.apache.maven.wagon.providers.ssh.ScpWagon for 'sshExecutable'
 
 How do I configure the scp executable for Maven 2?

let me guess, you have configured your server in the server section of your 
settings.xml as well as a repository for your artifacts? You are using the same 
id in both cases?

It seems that a server configuration shares some parts of the configuration 
with the repository configuration if the id is the same. Since the repo 
configuration uses normally the http provider and it seems to win the 
configuration match, but it has no sshExecutable setting.

Solution: Use different ids for server and repository definitions ...

- Jörg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Ad: Newbie question on MOJOs

2006-08-14 Thread Stefan Magnus Landrø
Hi there,

Have a look at the maven-compiler-plugin plugin. It should provide you 
with lots of ingormation.

Stefan
[EMAIL PROTECTED] skrev 14.08.2006 09:31:13:

 Hi,
 
 I am new to Maven2. I am trying to develop plugins in Maven2 using the 
 Java Plugins approach. I have seen the getting started guide on MOJOs 
 
(http://maven.apache.org/guides/plugin/guide-java-plugin-development.html). 

 But this is too elementary. Could someone please point me to some more 
 advanced guide to building MOJOs, one which contains integration with 
Ant 
 Java APIs? I have taken a look at the AntExternal guide as well: 
 http://ant.apache.org/manual/antexternal.html.
 
 At this point, I am simply trying to use Ant's Javac.java API to compile 

 my source code using a MOJO. I had the following questiions:
 1. How do I get access to maven's dependency classpath (i.e. path 
 containing all the dependencies defined in project's pom.xml)? In Maven 
 1.x this was accessible using maven.dependency.classpath reference in 
 plugin.jelly.
 2. How does Maven set the java.home System Property? I have set the 
 environment var Java_Home to the jdk directory but Maven is setting 
the 
 java.home System property to the jre directory (i.e. jdk_dir/jre). Why 

 is that so?
 
 Has anyone used Ant's Javac API to do the compilation from inside a 
MOJO. 
 If yes, could you please send me the code snippet to set the classpath 
and 
 any other system properties?
 
 Thanks in advance,
 Ritu
 
 
 
 
 
 
 
 -
 This transmission may contain information that is privileged,
 confidential, legally privileged, and/or exempt from disclosure
 under applicable law.  If you are not the intended recipient, you
 are hereby notified that any disclosure, copying, distribution, or
 use of the information contained herein (including any reliance
 thereon) is STRICTLY PROHIBITED.  Although this transmission and
 any attachments are believed to be free of any virus or other
 defect that might affect any computer system into which it is
 received and opened, it is the responsibility of the recipient to
 ensure that it is virus free and no responsibility is accepted by
 JPMorgan Chase  Co., its subsidiaries and affiliates, as
 applicable, for any loss or damage arising in any way from its use.
 If you received this transmission in error, please immediately
 contact the sender and destroy the material in its entirety,
 whether in electronic or hard copy format. Thank you.


Re: Projectstructure

2006-08-14 Thread Kaiser, Hans
Hello Kai Uwe,

Thank you for your advice!


 I have a similar project structure and I realized it as a Maven 
 multiproject (see HowTos).
 Finaly you wil have 4 pom-files. One in the projects and one in the 
 module.

fine, this was also my plan, but see project structure

 In Eclipse I opened these projects simply by creating new projects from 
 existing source, so the module wasn't in the Eclipse workspace.

I haven't got it, could you explain me, how you get it working with the
master-POM which includes all my modules?
As I can see, I will have to checkout following structure in eclipse:
- presentation
- common
- web
- the whole CVS-module my-app, which itself includes: (pom.xml,
presentation, common, web)

If so, this would be very odd, because of redundant data in the eclipse
workspace.
Could you explain me your approach?

regards


Re: Ad: Newbie question on MOJOs

2006-08-14 Thread ritu . x . kedia
Hi Stefan,

Thanks for that quick response.

I took a look at the compiler plugin. It uses quite a lot of current build 
context references, for e.g. project.compileClasspathElements.

Would you know if there is any single source of document on all the 
available Maven2 properties/references? In Maven 1.x there was a reference 
page available for all the default Maven properties. I didn't find similar 
documentation in Maven2. Any pointers will be very much appreciated.

Thanks again,
Ritu





Stefan Magnus Landrø [EMAIL PROTECTED]
08/14/2006 01:18 PM
Please respond to Maven Users List
 
To: Maven Users List users@maven.apache.org
cc: 
Subject:Ad: Newbie question on MOJOs


Hi there,

Have a look at the maven-compiler-plugin plugin. It should provide you 
with lots of ingormation.

Stefan
[EMAIL PROTECTED] skrev 14.08.2006 09:31:13:

 Hi,
 
 I am new to Maven2. I am trying to develop plugins in Maven2 using the 
 Java Plugins approach. I have seen the getting started guide on MOJOs 
 
(http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
). 

 But this is too elementary. Could someone please point me to some more 
 advanced guide to building MOJOs, one which contains integration with 
Ant 
 Java APIs? I have taken a look at the AntExternal guide as well: 
 http://ant.apache.org/manual/antexternal.html.
 
 At this point, I am simply trying to use Ant's Javac.java API to compile 


 my source code using a MOJO. I had the following questiions:
 1. How do I get access to maven's dependency classpath (i.e. path 
 containing all the dependencies defined in project's pom.xml)? In Maven 
 1.x this was accessible using maven.dependency.classpath reference in 
 plugin.jelly.
 2. How does Maven set the java.home System Property? I have set the 
 environment var Java_Home to the jdk directory but Maven is setting 
the 
 java.home System property to the jre directory (i.e. jdk_dir/jre). Why 


 is that so?
 
 Has anyone used Ant's Javac API to do the compilation from inside a 
MOJO. 
 If yes, could you please send me the code snippet to set the classpath 
and 
 any other system properties?
 
 Thanks in advance,
 Ritu
 
 
 
 
 
 
 
 -
 This transmission may contain information that is privileged,
 confidential, legally privileged, and/or exempt from disclosure
 under applicable law.  If you are not the intended recipient, you
 are hereby notified that any disclosure, copying, distribution, or
 use of the information contained herein (including any reliance
 thereon) is STRICTLY PROHIBITED.  Although this transmission and
 any attachments are believed to be free of any virus or other
 defect that might affect any computer system into which it is
 received and opened, it is the responsibility of the recipient to
 ensure that it is virus free and no responsibility is accepted by
 JPMorgan Chase  Co., its subsidiaries and affiliates, as
 applicable, for any loss or damage arising in any way from its use.
 If you received this transmission in error, please immediately
 contact the sender and destroy the material in its entirety,
 whether in electronic or hard copy format. Thank you.



Re: Maven2 versus JAXB2 (on ibiblio)

2006-08-14 Thread Franz Fehringer

First thanks and second i would like to apologize, if my mail was too harsh.

Franz

Carlos Sanchez schrieb:

The reference API is under javax.xml.bind in
http://www.ibiblio.org/maven2/javax/xml/bind/ and sun implementation
under com.sun.xml.bind

On 8/11/06, Franz Fehringer [EMAIL PROTECTED] wrote:

I am not interested in javax.xml instead of java.xml.bind, i am only
interested in a working (and current) Maven2/JAXB2 combination (and a
fix for MNG-2305).

Greetings

Franz


Wayne Fay schrieb:
 You should probably file the javax.xml instead of java.xml.bind
 issue on JIRA under MEV if you actually expect someone to fix it.

 Otherwise its just lots of talk on the Users list...

 Wayne

 On 8/11/06, Franz Fehringer [EMAIL PROTECTED] wrote:


 IIUC the point was, that the groupId should be javax.xml and not
 java.xml.bind (the link given for this currently yields Application
 error
 (Rails)) .
 I reported the proxies/settings.xml error as MNG-2305.


 Greetings

 Franz

 Malachi de Ælfweald schrieb:
 Yeah, I definitely agree that it should be under javax instead of
 com.sun --
 but that's just because com.sun is supposedly reserved for Sun 
internal;

 whereas javax is reserved for JCP-authorized extensions.

 Regarding the proxy bit..  So it seems like the correct solution
 would be if
 there is a way we can setup ibilio to MIRROR the java.net archive;
 instead
 of maintaining seperate copies...? Or for whatever process delivers
 it to
 java.net to deliver it to ibiblio as well  hmmm...

 BTW: Have you reported the Maven bug?


 Malachi


 On 8/11/06, Franz Fehringer [EMAIL PROTECTED] wrote:
  Regarding the location (javax.xml.bind versus java.xml) i had a 
mail

  sent by [EMAIL PROTECTED] in mind saying
  .
  .
  .
 
  Please note, that the policy for the groupId is javax.xml and
 com.sun.xml only. See also
 
http://www.mavenregistry.com/search/artifacts?hl=enq=jsr173btnG=Search+Registry 



  .
  .
  .
 
  Hosting at java.net is not appropriate for me, because i sit 
behind a

  proxy and there is an error in maven2 to the extent that only the
 first
  proxy is considered in settings.xml (this is MNG-2305).
  Since access to http sites is indispensable i thus cannot access 
https

  sites with maven2.
 
  Greetings
 
  Franz
 
  Malachi de Ælfweald schrieb:
   We should be using the latest version of JAXB, which is 2.0.2 as
 per the
   website.  Personally, I was not aware that the jars made it onto
   ibilio -- I
   thought they were supposed to be hosted at java.net?
  
   Out of curiousity, why would javax.xml.bind be incorrect for XML
   Databinding?
  
   Malachi
  
   On 8/11/06, Franz Fehringer  [EMAIL PROTECTED] wrote:
  
Hello,
  
   Are there any current activities for enabling JAXB2 support in
 Maven2?
   In http://www.ibiblio.org/maven2/javax/xml/ there are
 jaxb-api jaxb-impl
   jaxb-xjc, but they still contain only 2.0EA3.
   Since 17. of july there is an additional subdirectory bind, but
 there
   are
   several things wrong/missing with this:
  
  - jaxb-impl and jaxb-xjc are missing.
  - version is 2.0; 2.0.1 and 2.0.2 have appeared in the 
meantime.

  - it has been mentioned on this list, that the location
  javax/xml/bind is wrong, javax/xml is the correct one.
  
   Will there be any progress/cleanup for this?
  
   Thanks and best regards
  
   Franz
  
  
  
  
 -
   To unsubscribe, e-mail:
 [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
 
 
 
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

MNG-2305

2006-08-14 Thread Franz Fehringer

Hello,

Any chance for MNG-2305 to get looked upon?
As can be seen from
http://www.mail-archive.com/users@maven.apache.org/msg48167.html
i am not the only one.

Greetings

Franz


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Changes report - maven 2.0.4

2006-08-14 Thread Abhijit Diwan
Hi

After struggling a lot for the report here is the plugin snippet
from my pom.xml which creates change log successfully from perforce.

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-changelog-plugin/artifactId
version2.0-SNAPSHOT/version
reportSets
reportSet
idPerofrce report/id
configuration
typerange/type
range10/range
repositoryConnection
 
scm:perforce://EJB/ejb-dev/MavenCodeline//repositoryConnection
properties
maven.changelog.factory
 
org.apache.maven.perforcelib.PerforceChangeLogFactory/maven.changelog.f
actory
/properties
dateFormat/MM/dd HH:mm:ss/dateFormat
/configuration
reports
reportchangelog/report
reportfile-activity/report
reportdev-activity/report
/reports
/reportSet
/reportSets
/plugin

Hope this helps

Thanks a lot
Abhijit
-Original Message-
From: Jan Vissers [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 11, 2006 7:35 PM
To: users@maven.apache.org
Subject: Changes report - maven 2.0.4

Cannot use this report, cause it cannot be located.
Tried several things here:

according to documentation:

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-changelog-plugin/artifactId
  /plugin

And according to some 'rumours' about relocation of the plugin:

  groupIdorg.codehaus.mojo/groupId
artifactIdchanges-maven-plugin/artifactId
version2.0-beta-1-SNAPSHOT/version
reportSets
  reportSet
reports
reportjira-report/report
/reports
  /reportSet
/reportSets

Come on guys ... this is getting pretty awkward!




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie question on MOJOs

2006-08-14 Thread franz see

Good day to you, Ritu

 Hi,
 
 I am new to Maven2. I am trying to develop plugins in Maven2 using the 
 Java Plugins approach. I have seen the getting started guide on MOJOs 
 (http://maven.apache.org/guides/plugin/guide-java-plugin-development.html). 
 But this is too elementary. Could someone please point me to some more 
 advanced guide to building MOJOs, one which contains integration with Ant 
 Java APIs? I have taken a look at the AntExternal guide as well: 
 http://ant.apache.org/manual/antexternal.html.

Sorry, I don't know of any advance guides which integrates Ant Java APIs
with MOJOs. But you may want to look at the source code of
maven-antrun-plugin to see how it used the Ant Java APIs (see [1]). Who
names, maybe it can already do what you're trying to accomplish ^_^

 At this point, I am simply trying to use Ant's Javac.java API to compile 
 my source code using a MOJO. I had the following questiions:
 1. How do I get access to maven's dependency classpath (i.e. path 
 containing all the dependencies defined in project's pom.xml)? In Maven 
 1.x this was accessible using maven.dependency.classpath reference in 
 plugin.jelly.

code wise, you can use the following to get those classpaths

* for maven.dependency.classpath and maven.compile.classpath, use
mavenProject.getCompileClasspathElements()
* for maven.runtime.classpath, use
mavenProject.getRuntimeClasspathElements()
* for maven.test.classpath, use mavenProject.getTestClasspathElements()

then add reference to your Ant Project (i.e. antProject.addReference(
maven.compile.classpath, p) where p is of type
org.apache.tools.ant.types.Path)

Better if you take a look at executeTasks( ... ) of AbstractAntMojo (see
[2])

 2. How does Maven set the java.home System Property? I have set the 
 environment var Java_Home to the jdk directory but Maven is setting the 
 java.home System property to the jre directory (i.e. jdk_dir/jre). Why 
 is that so?

Maven's System properites simply comes from java.lang.System.getProperties()

 Has anyone used Ant's Javac API to do the compilation from inside a MOJO. 
 If yes, could you please send me the code snippet to set the classpath and 
 any other system properties?

java compilation? try [3]

Btw, [4] contains a list of plugins supported by Apache. Maybe what you're
trying to do has already been done.

[1] http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-antrun-plugin/
[2]
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-antrun-plugin/src/main/java/org/apache/maven/plugin/antrun/AbstractAntMojo.java
[3]
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-compiler-plugin/
[4] 

Cheers,
Franz
-- 
View this message in context: 
http://www.nabble.com/Newbie-question-on-MOJOs-tf2101911.html#a5793568
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ad: Newbie question on MOJOs

2006-08-14 Thread franz see



ritu.x.kedia wrote:
 
 Hi Stefan,
 
 Thanks for that quick response.
 
 I took a look at the compiler plugin. It uses quite a lot of current build 
 context references, for e.g. project.compileClasspathElements.
 
 Would you know if there is any single source of document on all the 
 available Maven2 properties/references? In Maven 1.x there was a reference 
 page available for all the default Maven properties. I didn't find similar 
 documentation in Maven2. Any pointers will be very much appreciated.
 
 Thanks again,
 Ritu
 
 
 
 
 
 Stefan Magnus Landrø [EMAIL PROTECTED]
 08/14/2006 01:18 PM
 Please respond to Maven Users List
  
 To: Maven Users List users@maven.apache.org
 cc: 
 Subject:Ad: Newbie question on MOJOs
 
 
 Hi there,
 
 Have a look at the maven-compiler-plugin plugin. It should provide you 
 with lots of ingormation.
 
 Stefan
 [EMAIL PROTECTED] skrev 14.08.2006 09:31:13:
 
 Hi,
 
 I am new to Maven2. I am trying to develop plugins in Maven2 using the 
 Java Plugins approach. I have seen the getting started guide on MOJOs 
 
 (http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
 ). 
 
 But this is too elementary. Could someone please point me to some more 
 advanced guide to building MOJOs, one which contains integration with 
 Ant 
 Java APIs? I have taken a look at the AntExternal guide as well: 
 http://ant.apache.org/manual/antexternal.html.
 
 At this point, I am simply trying to use Ant's Javac.java API to compile 
 
 
 my source code using a MOJO. I had the following questiions:
 1. How do I get access to maven's dependency classpath (i.e. path 
 containing all the dependencies defined in project's pom.xml)? In Maven 
 1.x this was accessible using maven.dependency.classpath reference in 
 plugin.jelly.
 2. How does Maven set the java.home System Property? I have set the 
 environment var Java_Home to the jdk directory but Maven is setting 
 the 
 java.home System property to the jre directory (i.e. jdk_dir/jre). Why 
 
 
 is that so?
 
 Has anyone used Ant's Javac API to do the compilation from inside a 
 MOJO. 
 If yes, could you please send me the code snippet to set the classpath 
 and 
 any other system properties?
 
 Thanks in advance,
 Ritu
 
 
 
 
 
 
 
 -
 This transmission may contain information that is privileged,
 confidential, legally privileged, and/or exempt from disclosure
 under applicable law.  If you are not the intended recipient, you
 are hereby notified that any disclosure, copying, distribution, or
 use of the information contained herein (including any reliance
 thereon) is STRICTLY PROHIBITED.  Although this transmission and
 any attachments are believed to be free of any virus or other
 defect that might affect any computer system into which it is
 received and opened, it is the responsibility of the recipient to
 ensure that it is virus free and no responsibility is accepted by
 JPMorgan Chase  Co., its subsidiaries and affiliates, as
 applicable, for any loss or damage arising in any way from its use.
 If you received this transmission in error, please immediately
 contact the sender and destroy the material in its entirety,
 whether in electronic or hard copy format. Thank you.
 
 
 

Good day to you, Ritu,

I'm not sure if there is a documented list of maven expressions. But you can
try reading the following:
http://svn.apache.org/repos/asf/maven/components/trunk/maven-core/src/main/java/org/apache/maven/usability/plugin/ExpressionDocumenter.java
http://svn.apache.org/repos/asf/maven/components/trunk/maven-core/src/main/resources/META-INF/maven/plugin-expressions/project.paramdoc.xml
http://svn.apache.org/repos/asf/maven/components/trunk/maven-core/src/main/resources/META-INF/maven/plugin-expressions/rootless.paramdoc.xml
http://svn.apache.org/repos/asf/maven/components/trunk/maven-core/src/main/resources/META-INF/maven/plugin-expressions/settings.paramdoc.xml

^_^

Cheers, 
- Franz
-- 
View this message in context: 
http://www.nabble.com/Ad%3A-Newbie-question-on-MOJOs-tf2101966.html#a5794107
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



XMLBeans Plugin - include subdirectories

2006-08-14 Thread Adrian Shum
Dear all,

I am trying XMLBeans plugins in maven2.
I'd like to know if there is any way to include
subdirectories of the schema directory?

As we are organizing the XSDs in directories now.

At least, is there anyway to include multiple XSD
directory for generation of JAR?

Thanks a lot for your help


--
AdRiAN ShUM
(-: Don’t worry, Be Happy :-)



This email is confidential. If you are not the intended recipient, please 
delete it from your system and notify the sender immediately. Any unauthorized 
use, disclosure, dissemination or copying of this email is prohibited. Taifook 
Securities Group, its group companies and their content providers (Parties) 
shall not be responsible for the accuracy or completeness of this email or its 
attachment, if any, which could contain virus, be corrupted, destroyed, 
incomplete, intercepted, lost or arrive late.   The Parites do not accept 
liability for any damage caused by this email.



site-deploy and webdav

2006-08-14 Thread juergen.schumacher

Hi,
for site-deploy I would like to use webdav because my webserver running on
windows and I found the ssh rather complicated on windows. On one post here
I found webdav is also supported by the site-deploy plugin. But how can I
set this up in the POM.XML ??
Using http://webdavserver/folder shows an error, using
file:webdavserver/project show a successful build but no files are copied.

Thank you for any help and have a nice day,
juergen
-- 
View this message in context: 
http://www.nabble.com/site-deploy-and-webdav-tf2102662.html#a5794662
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



False Build Errors

2006-08-14 Thread Steven Vetzal

Hi All,

I installed Continuum (v1.0.3) for the first time the other week and 
added a bunch of projects to it. The installation was great, although 
this is on one of our FreeBSD 64-bit boxes and I had to patch and 
compile Tanuki's Wrapper for the platform and graft it into the 
Continuum installation.


I have one problem - builds will fail regularly with Build in Error 
the status icon, but when I go looking for a build error in the build 
logs, it only shows me the last successful build.


If I manually trigger another build, it will run successfully and the 
status icon will update to show it was successful.


This only seems to happen when I leave it on its own and it does its 
hourly checks.


Looking through wrapper.log there are no errors noted.

Anyone seen this before?

Steve



RE: Converting AppFuse to a Maven 2 Project

2006-08-14 Thread Scott Ryan
Matt,
Check out the project attached to the jira ticket
http://jira.codehaus.org/browse/MOJO-315 .  It has a zip with a project
structure similar to what you are looking at and that should build and you
can use as a template.  It has been a while since I posted it but it may be
something you can modify to work.

Scott Ryan
Chief Technology Officer
Soaring Eagle L.L.C.
[EMAIL PROTECTED]
www.soaringeagleco.com
(303) 263-3044

-Original Message-
From: mraible [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 09, 2006 10:24 AM
To: users@maven.apache.org
Subject: Re: Converting AppFuse to a Maven 2 Project



I started working on the Maven 2 conversion last night. I'm currently using
Carlos's nested recommendation.

Here's a screenshot of the current structure:

http://raibledesigns.com/repository/images/appfuse2-structure.png

Using this structure, I get errors stating that the data and web parent
projects should have a packaging type of pom.  However, I want these
projects to create their own JAR artifacts.  Should these be moved into
common projects instead of having them in the root of data and web?

Thanks,

Matt
--
View this message in context:
http://www.nabble.com/Converting-AppFuse-to-a-Maven-2-Project-tf1964609.html
#a5729055
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Creating an ant-style distribution with Maven

2006-08-14 Thread Aleksei Valikov

Hi.

I have recently migrated one of my projects (Hyperjaxb2, 
https://hyperjaxb2.dev.java.net/) onto Maven. I'm very satisfied with results 
but have one open question.


Hyperjaxb2 is a code generation tool. You give your XML Schema in and get a JAR 
with JAXB-generated classes plus Hibernate mappings to persiste these classes in 
a relational database.


As one of the artifacts, I'd like to produce a just add water project 
template, where users could simply copy the XML schema in some directory and 
execute the build.


With Maven this can be implemented with a Maven plugin, which could create the 
appropriate directory structure and build files. However I still have a lot of 
Ant users which aren't ready to migrate to Maven. For these users I'd like to 
produce something like a zip file with pre-created directory structure and build 
files as well as all the required libraries.


So my question is - how could I produce such a Zip?

Thank you for your time.

Bye.
/lexi


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Ad: Creating an ant-style distribution with Maven

2006-08-14 Thread Stefan Magnus Landrø
Have you tried the assembly plugin?


Aleksei Valikov [EMAIL PROTECTED] skrev 14.08.2006 14:41:57:

 Hi.
 
 I have recently migrated one of my projects (Hyperjaxb2, 
 https://hyperjaxb2.dev.java.net/) onto Maven. I'm very satisfied with 
results 
 but have one open question.
 
 Hyperjaxb2 is a code generation tool. You give your XML Schema in 
 and get a JAR 
 with JAXB-generated classes plus Hibernate mappings to persiste 
 these classes in 
 a relational database.
 
 As one of the artifacts, I'd like to produce a just add water project 
 template, where users could simply copy the XML schema in some directory 
and 
 execute the build.
 
 With Maven this can be implemented with a Maven plugin, which could 
 create the 
 appropriate directory structure and build files. However I still 
 have a lot of 
 Ant users which aren't ready to migrate to Maven. For these users I'd 
like to 
 produce something like a zip file with pre-created directory 
 structure and build 
 files as well as all the required libraries.
 
 So my question is - how could I produce such a Zip?
 
 Thank you for your time.
 
 Bye.
 /lexi
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: False Build Errors

2006-08-14 Thread Andreas Guther
I have noticed that too; I am having Continuum 1.0.3 running on a
Windows system.  But I do not see that on a regular basis, rather as an
exception that occurs from time to time.

Andreas


-Original Message-
From: Steven Vetzal [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 14, 2006 4:51 AM
To: Continuum Users
Subject: False Build Errors

Hi All,

I installed Continuum (v1.0.3) for the first time the other week and 
added a bunch of projects to it. The installation was great, although 
this is on one of our FreeBSD 64-bit boxes and I had to patch and 
compile Tanuki's Wrapper for the platform and graft it into the 
Continuum installation.

I have one problem - builds will fail regularly with Build in Error 
the status icon, but when I go looking for a build error in the build 
logs, it only shows me the last successful build.

If I manually trigger another build, it will run successfully and the 
status icon will update to show it was successful.

This only seems to happen when I leave it on its own and it does its 
hourly checks.

Looking through wrapper.log there are no errors noted.

Anyone seen this before?

Steve



Re: Ad: Creating an ant-style distribution with Maven

2006-08-14 Thread Aleksei Valikov

Hi.


Have you tried the assembly plugin?


Oh, looks promising.

Thanks.

Bye.
/lexi

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refreshing the source files before the build starts (Perforce)

2006-08-14 Thread Mike Perham





Prashanth, the Perforce checkout does not use the -f (force) sync flag.  If
you delete files by hand, it will not pull them down again.  You have three
choices:

1) Don't do this.  You shouldn't be mucking about directly on your build
server.  It's a bad idea in general.
2) Force a sync by hand after you make local changes.  You will need to
ensure you use the same clientspec used by Continuum.
3) Delete the entire Continuum working directory.  If the directory does
not exist, it will resync everything.

mike

Emmanuel Venisse [EMAIL PROTECTED] wrote on 08/14/2006 02:26:12 AM:

 I don't know how Perforce works, but I think the client should
 remove files deleted on the server,
 isn't it?

 You can remove manually the working directory of your project in
 continuum and it will be checkouted
 at the next build

 Emmanuel

 Prashanth Krishnamurthy a écrit :
  I have deleted few files from the perforce server.
  When the build starts, it still looks for these
  deleted files.
 
  Is there a way to have continuum drop and re-create
  source dir?
 

Re: Projectstructure

2006-08-14 Thread Kai Uwe Bachmann

Hello,

my suggestion is a direcory structure of
myApp
|-- common
|-- presentation
|-- web
In CVS only the module myApp was checked in.
The whole project doesn't exists in the Eclipse workspace,

In Eclipse I've created a new workspace and 3 new projects from the 
existing sources. The myApp
contains no sources itself and (only the pom file) so I doesn't create 
an Eclipse project for it.
Finally I had only one CVS module with all the sources and no 
duplications.
The only redundancies I have in my project are the dependencies between 
the projects. This must be defined
in the maven pom and the Eclipse project because of a bug or missing 
feature in the Eclipse plugin. I hope this

lack will be fixed in the next version.

Mit freundlichen Grüßen / Best Regards

Kai Uwe Bachmann

BTW: The maven integration of Netbeans is much better if it could be an 
alternative for you.


Am 14.08.2006 um 09:57 schrieb Kaiser, Hans:


Hello Kai Uwe,

Thank you for your advice!



I have a similar project structure and I realized it as a Maven
multiproject (see HowTos).
Finaly you wil have 4 pom-files. One in the projects and one in the
module.


fine, this was also my plan, but see project structure

In Eclipse I opened these projects simply by creating new projects 
from

existing source, so the module wasn't in the Eclipse workspace.


I haven't got it, could you explain me, how you get it working with the
master-POM which includes all my modules?
As I can see, I will have to checkout following structure in eclipse:
- presentation
- common
- web
- the whole CVS-module my-app, which itself includes: (pom.xml,
presentation, common, web)

If so, this would be very odd, because of redundant data in the eclipse
workspace.
Could you explain me your approach?

regards



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [m2] Configuring the scp executable

2006-08-14 Thread Jörg Schaible
Daniel Serodio wrote on Monday, August 14, 2006 5:07 PM:
[snip]
 Got it: I had scp:// instead of scpexe:// protocol in the
 repository's URL in my POM. Now that I have corrected it, the
 remaining problem is that the path to my scp has spaces, and Maven
 dies with: 
 
 Exit code 1 - 'c:\Program' is not recognized as a command,
 application or batch file. 
 
 (note: I translated this error message to English, because
 it's produced
 by Windows' cmd.exe, and my Windows is in portuguese).
 
 I tried wrapping the path in double quotes, but it didn't
 work. What can
 I do to make it properly recognize this path?

Did you also try to quot;quotequot; it? :)

- Jörg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Stuck ! (was Re: Doxia module)

2006-08-14 Thread Zeltner Martin
Hello Arnaud

I've got the same problem.
See the following:
http://jira.codehaus.org/browse/DOXIA-68
http://jira.codehaus.org/browse/DOXIA-69
http://jira.codehaus.org/browse/DOXIA-70

Until these problems are solved you have to build maven components, maven 
plugins and doxia yourself. But that's not really complicated. If you need help 
let me know.

Cheers,
Martin





 -Original Message-
 From: Arnaud Bailly [mailto:[EMAIL PROTECTED] 
 Sent: Montag, 14. August 2006 16:43
 To: Maven Developers List
 Cc: users@maven.apache.org
 Subject: Stuck ! (was Re: Doxia module)
 
 Hello,
 I still have troubles with doxia while trying to add a new module. I
 can see from posts in the users list that other people have troubles
 with using non standard modules like twiki.
 
 I tried copying my muse module to doxia-modules, it works fine and
 compiles ok, but I am left with the problem of telling maven to use my
 version of doxia. I could think of various solutions to this problem,
 including full recompilation of maven with modified dependency but I
 dont think this is the rigth way: there must be a way to add a plexus
 component to a system without recompiling everything. After all, this
 is the whole point of component based software engineering !
 
 So I am asking my question again: How can I add a new module
 (ie. input file format) to doxia in such a way that this format can be
 used to document a project in maven ? I suspect this has something to
 do with injecting a new plexus component, which may be something that
 is done when a jar or classpath entry is loadedd ( ? maybe through
 classworlds). 
 
 Any insights into this would be greatly appreciated as I desperately
 want  this plugin to work. 
 
 thx,
 
 -- 
 OQube  software engineering \ génie logiciel 
 Arnaud Bailly, Dr.
 \web http://www.oqube.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Optional Goals Dependencies

2006-08-14 Thread Douglas Ferguson
I agree, however I don't want to create 100 poms. 
That just isn't manageable, especially since they all need similar assemply
logic.

D-

-Original Message-
From: Dave Syer [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 12, 2006 2:52 AM
To: users@maven.apache.org
Subject: RE: Optional Goals  Dependencies


 I still need to be able to have compile/test compile/test/jar/assemble 
 all use a subdirectory based on a property. 

I think the maven way to do this might be to make your subdirectories into
separate projects with their own pom and artifact.
-- 
View this message in context:
http://www.nabble.com/Optional-Goals---Dependencies-tf2081628.html#a5773604
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Resource Plugin

2006-08-14 Thread Douglas Ferguson
Hey,

I wasn't so much knocking the documentation. I ended up finding this info in
the pom model. I found it kind of difficult to find actually. 

D-

-Original Message-
From: franz see [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 12, 2006 4:23 AM
To: users@maven.apache.org
Subject: Re: Resource Plugin




Douglas Ferguson wrote:
 
 I can't find any documentation on how to change the default location of
 the
 resources plugin.
 
  
 
 I checked out the code and it declares ${project.resources}.
 But this is a list of resource objects. I'd like to just change the
 directory from ${basedir}/src/main/resources -
 ${basedir}/${someotherdir}/src/main/resources
 
  
 
  
 
 __
 
 
 Douglas W. Ferguson
 
 EPSIIA - Another Fiserv Connection
 
 Development
 
 Office Phone: 512-329-0081 ext. 3309
 
 Dial Toll Free: 800-415-5946
 
 Mobile Phone: 512-293-7279
 
 Fax: 512-329-0086
 
 [EMAIL PROTECTED]
 
 www.epsiia.com http://www.epsiia.com/ 
 
 __
 
  
 
 
 


Good day to you Douglas,

You can try out [1] for more info regarding maven-resources-plugin. That
documentation is still being reviewed and is still not final, but it's good
enough (i think).

Anyway, to answer your question add the following to your pom:

project
  [...]
  build
resources
  resource[..a resource directory...]/resource
  resource[..another resource directory...]/resource
resources
  /build
  [...]
/project

Also, if you have some comments regarding the documentation, it would be
greatly appreciated ^_^ 

Thanks a bunch and goodluck to you
- Franz

Ref:
[1] http://people.apache.org/~aramirez/maven-resources-plugin/
-- 
View this message in context:
http://www.nabble.com/Resource-Plugin-tf2092205.html#a5774084
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Stuck !

2006-08-14 Thread Arnaud Bailly
Zeltner Martin [EMAIL PROTECTED] writes:

 Hello Arnaud


Hello Martin,

Thanks for the answer. 

 I've got the same problem.
 See the following:
 http://jira.codehaus.org/browse/DOXIA-68
 http://jira.codehaus.org/browse/DOXIA-69
 http://jira.codehaus.org/browse/DOXIA-70


I tried using my custom format the way you use it in DOXIA-68 and got
the same errors. I alos noticed the errors in twiki format. 

 Until these problems are solved you have to build maven components,

I am OK to try solving these problems, if I could only know how (and
when) the modules are supposed to be injected in maven. Things seem to
happen in DefaultSiteModuleManager and DefaultSiteRenderer ...


 maven plugins and doxia yourself. But that's not really
 complicated. If you need help let me know.

OK, thx a lot. I'd rather correct things to implement a clean
solution. Isn't there somebody who coded the whole thing out there
that could provide some hints or help ?


regards

-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Optional Goals Dependencies

2006-08-14 Thread Dave Syer

 I agree, however I don't want to create 100 poms. 
 That just isn't manageable, especially since they all need similar
 assemply
 logic.

That's where project inheritance is truly useful.  You can put all the
common logic in one parent pom, and have your tiddlers all define only local
things (e.g. just the artifactId, and a reference to the parent).  I don't
have 100 dependencies to manage this way, but I do have 20 (and climbing). 
It's pretty sweet when you get your head round it.

One thing I find very useful is to be able to specify the extra meta data
(url, name, description) for the artifacts that I am installing / deploying
- it makes the dependency report of my main project much more readable.
-- 
View this message in context: 
http://www.nabble.com/Optional-Goals---Dependencies-tf2081628.html#a5799178
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Dependencies between modules

2006-08-14 Thread Maruf Aytekin
Hi,

I am trying to build a multiple project with maven 2. I have defined the
modules in the top level POM as follows:

modules
   modulerecmessage/module
   modulehttpmanagement/module
..
/modules

And also defined Dependency management section in top level POM as: 

dependencyManagement
  dependencies
dependency
  groupIdcom.idds.recmessage/groupId
  artifactIdrecmessage/artifactId
  version${project.version}/version
/dependency
dependency
  groupIdcom.idds.recmessage/groupId
  artifactIdrecmessage/artifactId
  version${project.version}/version
/dependency
  /dependencies
/dependencyManagement


Httpmanagement subproject depends on recmessage project so I have
created the POM for http pmanagement as follows:

?xml version=1.0?project
  parent
artifactIdknidos/artifactId
groupIdcom.idds/groupId
version4/version
  /parent
  modelVersion4.0.0/modelVersion
  groupIdcom.idds.httpmanagement/groupId
  artifactIdhttpmanagement/artifactId
  nameHttpmanagement/name
  packagingjar/packaging  
  dependencies
dependency
  groupIdcom.idds.recmessage/groupId
  artifactIdrecmessage/artifactId
   /dependency
  /dependencies
/project

When I try to compile it it tries to download recmessage artifact and
fails. 
It gives following output:

[ERROR] BUILD ERROR
[INFO] -
---
[INFO] Failed to resolve artifact.

required artifacts missing:
  com.idds.recmessage:recmessage:jar:4

for the artifact:
  com.idds.httpmanagement:httpmanagement:jar:4

Shouldn't maven try to compile recmessage first then use it to compile
httpmanagement? I would like to know If 2 or more subproject depends on
each other how does maven deal with this.

Many Thanks,
Maruf


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Optional Goals Dependencies

2006-08-14 Thread Douglas Ferguson
Correct me if I'm wrong but I need to support goal customization in the
parent pom.

I am defining custom assembly, custom ant tasks, etc. 

D-

-Original Message-
From: Dave Syer [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 14, 2006 11:01 AM
To: users@maven.apache.org
Subject: RE: Optional Goals  Dependencies


 I agree, however I don't want to create 100 poms. 
 That just isn't manageable, especially since they all need similar
 assemply
 logic.

That's where project inheritance is truly useful.  You can put all the
common logic in one parent pom, and have your tiddlers all define only local
things (e.g. just the artifactId, and a reference to the parent).  I don't
have 100 dependencies to manage this way, but I do have 20 (and climbing). 
It's pretty sweet when you get your head round it.

One thing I find very useful is to be able to specify the extra meta data
(url, name, description) for the artifacts that I am installing / deploying
- it makes the dependency report of my main project much more readable.
-- 
View this message in context:
http://www.nabble.com/Optional-Goals---Dependencies-tf2081628.html#a5799178
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Optional Goals Dependencies

2006-08-14 Thread Douglas Ferguson
Wow.. I just tried it and the goals are inherieted too. This is really cool.

However, now I only really need those goals to execute on the children. Is
there a way to bind  configure the goals in the parent but only have them
execute in the children?  

D-

-Original Message-
From: Dave Syer [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 14, 2006 11:01 AM
To: users@maven.apache.org
Subject: RE: Optional Goals  Dependencies


 I agree, however I don't want to create 100 poms. 
 That just isn't manageable, especially since they all need similar
 assemply
 logic.

That's where project inheritance is truly useful.  You can put all the
common logic in one parent pom, and have your tiddlers all define only local
things (e.g. just the artifactId, and a reference to the parent).  I don't
have 100 dependencies to manage this way, but I do have 20 (and climbing). 
It's pretty sweet when you get your head round it.

One thing I find very useful is to be able to specify the extra meta data
(url, name, description) for the artifacts that I am installing / deploying
- it makes the dependency report of my main project much more readable.
-- 
View this message in context:
http://www.nabble.com/Optional-Goals---Dependencies-tf2081628.html#a5799178
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Stuck ! (was Re: Doxia module)

2006-08-14 Thread Arnaud Bailly
Hello,
I still have troubles with doxia while trying to add a new module. I
can see from posts in the users list that other people have troubles
with using non standard modules like twiki.

I tried copying my muse module to doxia-modules, it works fine and
compiles ok, but I am left with the problem of telling maven to use my
version of doxia. I could think of various solutions to this problem,
including full recompilation of maven with modified dependency but I
dont think this is the rigth way: there must be a way to add a plexus
component to a system without recompiling everything. After all, this
is the whole point of component based software engineering !

So I am asking my question again: How can I add a new module
(ie. input file format) to doxia in such a way that this format can be
used to document a project in maven ? I suspect this has something to
do with injecting a new plexus component, which may be something that
is done when a jar or classpath entry is loadedd ( ? maybe through
classworlds). 

Any insights into this would be greatly appreciated as I desperately
want  this plugin to work. 

thx,

-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Profile Inheritance

2006-08-14 Thread Douglas Ferguson
Are profiles inherited from the parent pom?

 

__


Douglas W. Ferguson

EPSIIA - Another Fiserv Connection

Development

Office Phone: 512-329-0081 ext. 3309

Dial Toll Free: 800-415-5946

Mobile Phone: 512-293-7279

Fax: 512-329-0086

[EMAIL PROTECTED]

www.epsiia.com http://www.epsiia.com/ 

__

 



I don´t want put jsp in my war!

2006-08-14 Thread Lucas Gonçalves

After use jspc i wish not put my jsp inside my warfile. Anybody could help
me?

--
   Lucas Gonçalves
   Tel: (31)87382096


Re: Profile Inheritance

2006-08-14 Thread Craig McClanahan

On 8/14/06, Douglas Ferguson [EMAIL PROTECTED] wrote:


Are profiles inherited from the parent pom?



They are supposed to be, although there have been a few issues here and
there.  The one that bit us (Shale project) was MNG-2221[1], which looks
like it's been fixed for 2.0.5 when that is released.

Craig

[1] http://jira.codehaus.org/browse/MNG-2221


__



Douglas W. Ferguson

EPSIIA - Another Fiserv Connection

Development

Office Phone: 512-329-0081 ext. 3309

Dial Toll Free: 800-415-5946

Mobile Phone: 512-293-7279

Fax: 512-329-0086

[EMAIL PROTECTED]

www.epsiia.com http://www.epsiia.com/

__







Can't download org.mortbay.jetty:servlet-api-2.5:jar:6.0.0beta12

2006-08-14 Thread Siegmann Daniel, NY
A coworker had an issue with Maven2 failing to download
http://dist.codehaus.org/org.mortbay.jetty/jars/servlet-api-2.5-6.0. I don't
know why M2 is looking for the file there, since the file is on Ibiblio at
http://www.ibiblio.org/maven2/org/mortbay/jetty/servlet-api/2.5-6.0.0beta12/
, and this is already cached in our Maven Proxy (which mirrors central).

He's using the same settings.xml file as everyone else, which just mirrors
central with the Maven Proxy. I copied the error below. Anyone have an idea
as to why Maven2 is looking in the wrong place?

Downloading:
http://dist.codehaus.org/org.mortbay.jetty/jars/servlet-api-2.5-6.0
.0beta12.jar
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

Error transferring file
  org.mortbay.jetty:servlet-api-2.5:jar:6.0.0beta12

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  codehaus (http://dist.codehaus.org),
  apache.snapshots (http://svn.apache.org/maven-snapshot-repository),
  snapshots (http://snapshots.maven.codehaus.org/maven2)
Path to dependency:
1)
org.apache.maven.plugins:maven-site-plugin:maven-plugin:2.0-beta-5
2) org.mortbay.jetty:jetty:jar:6.0.0beta12
3) org.mortbay.jetty:servlet-api-2.5:jar:6.0.0beta12

--
Daniel Siegmann
FJA-US, Inc.
(212) 840-2618 ext. 139

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Profile Inheritance

2006-08-14 Thread John Casey

Actually, profiles themselves are NOT inherited as such. Instead, they are
triggered when the parent POM delcaring them is loaded, and applied to that
parent POM. Then, the effects of the profile are inherited via normal parent
inheritance calculation.

It's a small difference in most cases, but it can be important to
understand.

-john

On 8/14/06, Craig McClanahan [EMAIL PROTECTED] wrote:


On 8/14/06, Douglas Ferguson [EMAIL PROTECTED] wrote:

 Are profiles inherited from the parent pom?


They are supposed to be, although there have been a few issues here and
there.  The one that bit us (Shale project) was MNG-2221[1], which looks
like it's been fixed for 2.0.5 when that is released.

Craig

[1] http://jira.codehaus.org/browse/MNG-2221


__


 Douglas W. Ferguson

 EPSIIA - Another Fiserv Connection

 Development

 Office Phone: 512-329-0081 ext. 3309

 Dial Toll Free: 800-415-5946

 Mobile Phone: 512-293-7279

 Fax: 512-329-0086

 [EMAIL PROTECTED]

 www.epsiia.com http://www.epsiia.com/

 __









Re: Newbie question on MOJOs

2006-08-14 Thread John Casey

Hi Ritu,

I'm not sure what your goal is, but if you're just trying to do a simple
compilation of source code, you might want to simply point your POM at the
source directory, and try calling `mvn compile`.

By default, Maven will compile the source files for you...it's part of the
default lifecycle for jar projects.

POM syntax for source directory:

project
 [...]
 build
   sourceDirectoryrelative/source/dir/sourceDirectory
 /build
/project

HTH,

john

On 8/14/06, franz see [EMAIL PROTECTED] wrote:



Good day to you, Ritu

 Hi,

 I am new to Maven2. I am trying to develop plugins in Maven2 using the
 Java Plugins approach. I have seen the getting started guide on MOJOs
 (
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html).
 But this is too elementary. Could someone please point me to some more
 advanced guide to building MOJOs, one which contains integration with
Ant
 Java APIs? I have taken a look at the AntExternal guide as well:
 http://ant.apache.org/manual/antexternal.html.

Sorry, I don't know of any advance guides which integrates Ant Java APIs
with MOJOs. But you may want to look at the source code of
maven-antrun-plugin to see how it used the Ant Java APIs (see [1]). Who
names, maybe it can already do what you're trying to accomplish ^_^

 At this point, I am simply trying to use Ant's Javac.java API to compile
 my source code using a MOJO. I had the following questiions:
 1. How do I get access to maven's dependency classpath (i.e. path
 containing all the dependencies defined in project's pom.xml)? In Maven
 1.x this was accessible using maven.dependency.classpath reference in
 plugin.jelly.

code wise, you can use the following to get those classpaths

* for maven.dependency.classpath and maven.compile.classpath, use
mavenProject.getCompileClasspathElements()
* for maven.runtime.classpath, use
mavenProject.getRuntimeClasspathElements()
* for maven.test.classpath, use mavenProject.getTestClasspathElements()

then add reference to your Ant Project (i.e. antProject.addReference(
maven.compile.classpath, p) where p is of type
org.apache.tools.ant.types.Path)

Better if you take a look at executeTasks( ... ) of AbstractAntMojo (see
[2])

 2. How does Maven set the java.home System Property? I have set the
 environment var Java_Home to the jdk directory but Maven is setting
the
 java.home System property to the jre directory (i.e. jdk_dir/jre). Why
 is that so?

Maven's System properites simply comes from java.lang.System.getProperties
()

 Has anyone used Ant's Javac API to do the compilation from inside a
MOJO.
 If yes, could you please send me the code snippet to set the classpath
and
 any other system properties?

java compilation? try [3]

Btw, [4] contains a list of plugins supported by Apache. Maybe what you're
trying to do has already been done.

[1]
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-antrun-plugin/
[2]

http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-antrun-plugin/src/main/java/org/apache/maven/plugin/antrun/AbstractAntMojo.java
[3]
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-compiler-plugin/
[4]

Cheers,
Franz
--
View this message in context:
http://www.nabble.com/Newbie-question-on-MOJOs-tf2101911.html#a5793568
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: incorrect war file structure

2006-08-14 Thread Jeff Mutonho

On 8/13/06, Pete Marvin King [EMAIL PROTECTED] wrote:



Hello Jeff,

Sorry about that, can you try this

1. svn co https://svn.apache.org/repos/asf/maven/plugins/trunk plugins
2. cd plugins/maven-war-plugin
3. mvn install

the steps above should do it.


pete marvin


Thanks Pete .Tried

https://svn.apache.org/repos/asf/maven/plugins/trunk/plugins and that url
seem not correct
as I get the Bad URL passed to RA layer svn: URL '
https://svn.apache.org/repos/asf/maven/plugins/trunk/plugins;  error.

Couldn't you or someone build the 2.0.2-SNAPSHOT with the fix for altering
the default path.That would be greatly appreciated.

Thanks

--


Jeff  Mutonho

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042


RE: Profile Inheritance

2006-08-14 Thread Douglas Ferguson
I think this may explain what I was seeing..

I have a parent pom.xml which defines 2 profiles. When I run mvn
help:active-profiles for the child, I couldn't get it to say that either
profile was active.

So perhaps the profile is active in the parent but not in the child?



-Original Message-
From: John Casey [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 14, 2006 3:20 PM
To: Maven Users List
Subject: Re: Profile Inheritance

Actually, profiles themselves are NOT inherited as such. Instead, they are
triggered when the parent POM delcaring them is loaded, and applied to that
parent POM. Then, the effects of the profile are inherited via normal parent
inheritance calculation.

It's a small difference in most cases, but it can be important to
understand.

-john

On 8/14/06, Craig McClanahan [EMAIL PROTECTED] wrote:

 On 8/14/06, Douglas Ferguson [EMAIL PROTECTED] wrote:
 
  Are profiles inherited from the parent pom?


 They are supposed to be, although there have been a few issues here and
 there.  The one that bit us (Shale project) was MNG-2221[1], which looks
 like it's been fixed for 2.0.5 when that is released.

 Craig

 [1] http://jira.codehaus.org/browse/MNG-2221


 __
 
 
  Douglas W. Ferguson
 
  EPSIIA - Another Fiserv Connection
 
  Development
 
  Office Phone: 512-329-0081 ext. 3309
 
  Dial Toll Free: 800-415-5946
 
  Mobile Phone: 512-293-7279
 
  Fax: 512-329-0086
 
  [EMAIL PROTECTED]
 
  www.epsiia.com http://www.epsiia.com/
 
  __
 
 
 
 
 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven-assembly-plugin dependencies

2006-08-14 Thread John Casey

First, you might want to check which version of the assembly plugin you're
using. It should be in the debug output (-X for debug).

If you're running with the maven-assembly-plugin 2.2-SNAPSHOT, then I'd say
file a JIRA issue for it in http://jira.codehaus.org/browse/MASSEMBLY and
I'll try to get that fixed prior to the 2.2 release.

Thanks,

John

On 8/11/06, Scott Battaglia [EMAIL PROTECTED] wrote:


I'm working on a project that has a parent project and two modules
(currently), with the following assembly.xml file:

http://developer.ja-sig.org/source/browse/jasig/cas-clients/java-client/assembly.xml?r=1.2


For the most part, the script works, but I have a couple issues that I
can't figure out:

1.  I haven't been able to filter dependencies.  I've specified a few as
provided but they still show up when I do includeDependencies
2.  If I do set includeBaseDirectory to true I get the following
directory structure (which is not what I want):
parent.project.name\*
parent.project.name\project.project.name\module1\*
parent.project.name\project.project.name\module2\*

while I want it to be:
parent.project.name\*
parent.project.name\module1\*
parent.project.name\module2\*

Any ideas, based on my assembly.xml, on what I am doing wrong?

Thanks
-Scott

--
Scott Battaglia
Application Developer, Architecture  Engineering Team
Enterprise Systems and Services, Rutgers University
v: 732.445.0097 | f: 732.445.5493 | [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Assembly module: binary exlusion

2006-08-14 Thread John Casey

This should be fixed in the current 2.2-SNAPSHOT of the assembly plugin...if
you need help accessing this plugin, let me know.

-john

On 8/10/06, Sebastien Pennec [EMAIL PROTECTED] wrote:


Hello,

I'm creating an assembly based on a few modules.

To include the dependencies of all modules in a module_name/lib directory,
I'm using
the moduleSets/moduleSet elements in my assembly descriptor.
Unfortunately, the jar of the artifact that is being assembled is always
included in
the lib directory. To prevent this, I wanted to do something like:

binaries
   outputDirectory${artifactId}/lib/outputDirectory
   includeDependenciestrue/includeDependencies
   unpackfalse/unpack
   excludes
 exclude${groupId}:${artifactId}/exclude
 excludemodule_name*/exclude
   /excludes
/binaries


I've tried these two ways of filling the exclude elements, but none
work.

Could anybody help me?

Thanks!

Sébastien
--
Sébastien Pennec
[EMAIL PROTECTED]

Logback: The reliable, generic, fast and flexible logging framework for
Java.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Assembly madness...

2006-08-14 Thread John Casey

FWIW, this issue is fixed in the current 2.2-SNAPSHOT version of the
assembly plugin. I've added tests to verify it.

-john

On 8/8/06, mike7 [EMAIL PROTECTED] wrote:



Thanks Wayne.
Indeed, the exclude problem is this JIRA issue.

I'm going to try 2.1-SNAPSHOT...
--
View this message in context:
http://www.nabble.com/Assembly-madness...-tf2070731.html#a5714990
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Profile Inheritance

2006-08-14 Thread John Casey

right. if you ran from the parent, and the parent specified these child POMs
as modules (or sub-modules), then you'd get a listing of all POMs in the
build, and the profiles which are active for each.

On 8/14/06, Douglas Ferguson [EMAIL PROTECTED] wrote:


I think this may explain what I was seeing..

I have a parent pom.xml which defines 2 profiles. When I run mvn
help:active-profiles for the child, I couldn't get it to say that either
profile was active.

So perhaps the profile is active in the parent but not in the child?



-Original Message-
From: John Casey [mailto:[EMAIL PROTECTED]
Sent: Monday, August 14, 2006 3:20 PM
To: Maven Users List
Subject: Re: Profile Inheritance

Actually, profiles themselves are NOT inherited as such. Instead, they are
triggered when the parent POM delcaring them is loaded, and applied to
that
parent POM. Then, the effects of the profile are inherited via normal
parent
inheritance calculation.

It's a small difference in most cases, but it can be important to
understand.

-john

On 8/14/06, Craig McClanahan [EMAIL PROTECTED] wrote:

 On 8/14/06, Douglas Ferguson [EMAIL PROTECTED] wrote:
 
  Are profiles inherited from the parent pom?


 They are supposed to be, although there have been a few issues here and
 there.  The one that bit us (Shale project) was MNG-2221[1], which looks
 like it's been fixed for 2.0.5 when that is released.

 Craig

 [1] http://jira.codehaus.org/browse/MNG-2221


 __
 
 
  Douglas W. Ferguson
 
  EPSIIA - Another Fiserv Connection
 
  Development
 
  Office Phone: 512-329-0081 ext. 3309
 
  Dial Toll Free: 800-415-5946
 
  Mobile Phone: 512-293-7279
 
  Fax: 512-329-0086
 
  [EMAIL PROTECTED]
 
  www.epsiia.com http://www.epsiia.com/
 
  __
 
 
 
 
 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Profile Inheritance

2006-08-14 Thread Douglas Ferguson
I'm only running this build from each child.
I'm using the parent for inheritance.
The parent doesn't even define the children as there are 100s.

If I have:

2 poms: pom a  pom b
Pom b declare pom a as it's parent.
Pom a has 2 profiles decared in it.
I run mvn -Pprofile1 from pom b's directory will profile1 activate for the
loading of pom a?

When I run mvn -Pprofile1 help:active-profiles it doesn't show. 

D-

-Original Message-
From: John Casey [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 14, 2006 4:25 PM
To: Maven Users List
Subject: Re: Profile Inheritance

right. if you ran from the parent, and the parent specified these child POMs
as modules (or sub-modules), then you'd get a listing of all POMs in the
build, and the profiles which are active for each.

On 8/14/06, Douglas Ferguson [EMAIL PROTECTED] wrote:

 I think this may explain what I was seeing..

 I have a parent pom.xml which defines 2 profiles. When I run mvn
 help:active-profiles for the child, I couldn't get it to say that either
 profile was active.

 So perhaps the profile is active in the parent but not in the child?



 -Original Message-
 From: John Casey [mailto:[EMAIL PROTECTED]
 Sent: Monday, August 14, 2006 3:20 PM
 To: Maven Users List
 Subject: Re: Profile Inheritance

 Actually, profiles themselves are NOT inherited as such. Instead, they are
 triggered when the parent POM delcaring them is loaded, and applied to
 that
 parent POM. Then, the effects of the profile are inherited via normal
 parent
 inheritance calculation.

 It's a small difference in most cases, but it can be important to
 understand.

 -john

 On 8/14/06, Craig McClanahan [EMAIL PROTECTED] wrote:
 
  On 8/14/06, Douglas Ferguson [EMAIL PROTECTED] wrote:
  
   Are profiles inherited from the parent pom?
 
 
  They are supposed to be, although there have been a few issues here and
  there.  The one that bit us (Shale project) was MNG-2221[1], which looks
  like it's been fixed for 2.0.5 when that is released.
 
  Craig
 
  [1] http://jira.codehaus.org/browse/MNG-2221
 
 
  __
  
  
   Douglas W. Ferguson
  
   EPSIIA - Another Fiserv Connection
  
   Development
  
   Office Phone: 512-329-0081 ext. 3309
  
   Dial Toll Free: 800-415-5946
  
   Mobile Phone: 512-293-7279
  
   Fax: 512-329-0086
  
   [EMAIL PROTECTED]
  
   www.epsiia.com http://www.epsiia.com/
  
   __
  
  
  
  
  
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: site-deploy and webdav

2006-08-14 Thread Beyer,Nathan
You'll need to add two pieces to your POM to get it to work.

1. Add the webdav extension to the build element. Something like this:

 build
  extensions
extension
  groupIdorg.apache.maven.wagon/groupId
  artifactIdwagon-webdav/artifactId
/extension
  /extensions
  ...
 /build

2. Put dav: in front of all URLs that you want deployed via WebDAV.
So, instead of http://webdavserver/folder; you would use
dav:http://webdavserver/folder;.

-Nathan

-Original Message-
From: juergen.schumacher [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 14, 2006 5:55 AM
To: users@maven.apache.org
Subject: site-deploy and webdav


Hi,
for site-deploy I would like to use webdav because my webserver running
on windows and I found the ssh rather complicated on windows. On one
post here I found webdav is also supported by the site-deploy plugin.
But how can I set this up in the POM.XML ??
Using http://webdavserver/folder shows an error, using
file:webdavserver/project show a successful build but no files are
copied.

Thank you for any help and have a nice day, juergen
--
View this message in context:
http://www.nabble.com/site-deploy-and-webdav-tf2102662.html#a5794662
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
CONFIDENTIALITY NOTICE This message and any included attachments
are from Cerner Corporation and are intended only for the
addressee. The information contained in this message is
confidential and may constitute inside or non-public information
under international, federal, or state securities laws.
Unauthorized forwarding, printing, copying, distribution, or use of
such information is strictly prohibited and may be unlawful. If you
are not the addressee, please promptly delete this message and
notify the sender of the delivery error by e-mail or you may call
Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1)
(816)221-1024. ---


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] Configuring the scp executable

2006-08-14 Thread Andrew Kreps

On 8/14/06, Daniel Serodio [EMAIL PROTECTED] wrote:

Exit code 1 - 'c:\Program' is not recognized as a command, application
or batch file.



Have you tried the age old trick of changing long filenames to their
short counterparts?  C:\Program Files is usually also accessable by
using C:\progra~1, which avoids the space character problem you appear
to be having.

Seeing as maven grew up in the Unix world, you may also want to try
escaping the spaces (\ ) or using forward slashes instead of back
slashes for the directories.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: incorrect war file structure

2006-08-14 Thread Pete Marvin King

 There's a space between trunk and plugins on the url, the last plugin
is the destination directory

1. svn co
https://svn.apache.org/repos/asf/maven/plugins/trunkspaceplugins
2. cd plugins/maven-war-plugin
3. mvn install



Jeff Mutonho wrote:
 On 8/13/06, Pete Marvin King [EMAIL PROTECTED] wrote:


 Hello Jeff,

 Sorry about that, can you try this

 1. svn co https://svn.apache.org/repos/asf/maven/plugins/trunk plugins
 2. cd plugins/maven-war-plugin
 3. mvn install

 the steps above should do it.


 pete marvin


 Thanks Pete .Tried
 https://svn.apache.org/repos/asf/maven/plugins/trunk/plugins and that url
 seem not correct
 as I get the Bad URL passed to RA layer svn: URL '
 https://svn.apache.org/repos/asf/maven/plugins/trunk/plugins;  error.

 Couldn't you or someone build the 2.0.2-SNAPSHOT with the fix for
 altering
 the default path.That would be greatly appreciated.

 Thanks



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[m2] How to package a WebService?

2006-08-14 Thread William Ferguson
Hi,

I want to package up my Axis2 WebService as a WebService archive (aar).
How do I go about it? Is there a particular value for the
project#packaging attribute or a particular plugin that I need to use?



William

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Hibernate plugin not binding?

2006-08-14 Thread Lakshman Srilakshmanan
Hi Cristian

Thanks for providing me with your feedback.

I did finally solve this problem by downloading and compiling it
locally.

http://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/maven-hibernate3/hi
bernate3-maven-plugin/

my pom.xml is setup as follows

  dependencies
dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version3.8.1/version
scopetest/scope
/dependency
dependency
groupIdorg.hibernate/groupId
artifactIdhibernate/artifactId
version3.1.2/version
/dependency
dependency
groupIdhsqldb/groupId
artifactIdhsqldb/artifactId
version1.8.0.4/version
/dependency
  /dependencies
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
/configuration
/plugin
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdhibernate3-maven-plugin/artifactId
version1.0-SNAPSHOT/version
executions
execution
idgenerate-hibernate/id
phasegenerate-sources/phase
configuration
hibernate
 
configurationFile/src/main/resources/hibernate.cfg.xml/configurationF
ile
/hibernate
outputDirectory
 
hbm2cfgxmlsrc/main/resources/hbm2cfgxml
 
hbm2javatarget/hibernate3/generated-sources/hbm2java
/outputDirectory
/configuration
goals
goalhbm2java/goal
/goals
/execution
/executions
/plugin
/plugins
extensions
extension
groupIdhsqldb/groupId
artifactIdhsqldb/artifactId
version1.8.0.4/version
/extension
/extensions
/build


Hope it helps :)

Thanks
Lakshman


 -Original Message-
 From: Cristian Jansenson [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 15 August 2006 11:07 AM
 To: Lakshman Srilakshmanan
 Subject: RE: Hibernate plugin not binding?
 
 No problem...  and I didn't resolve this problem.  My understanding on
this
 issue is that, as of the date I reported it, it was not resolved.
 Furthermore, some people informally solved the problem by modifying
the
 plugin; However, they didn't submit the fix because it was a hack more
than
 a real fix.  I suspect this issue will be addressed with the official
 version of the pluggin.
 
 Cristian
 
 -Original Message-
 From: Lakshman Srilakshmanan
 [mailto:[EMAIL PROTECTED]
 Sent: Sunday, August 13, 2006 8:10 PM
 To: [EMAIL PROTECTED]
 Subject: Hibernate plugin not binding?
 
 Hi Cristian
 
 Sorry for contacting you directly, but did you resolve the above issue
 
 I have included a link to the above problem you raised for your
 convenience.
 http://www.mail-archive.com/users@maven.apache.org/msg41711.html
 
 
 Your assistance is greatly appreciated.
 
 Thanks
 Lakshman
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Hibernate plugin not binding?

2006-08-14 Thread Johann Reyes
Hello Lakshman

Sorry for not answering before, was out of town. Well I found some issues
with the dependencies of the plugin that I'm going as soon as I get some
free time. But basically the idea behind hbm2java goal is that it would look
for *.hbm.xml files in the classpath (target/classes) and then go ahead to
create the java files. So to begin with you have to take into account that
the plugin was created more as a command plugin than a lifecycle one so the
command to run hbm2java without modifying the lifecycles or having
executions and assuming your *.hbm.xml files are under your
/src/java/resources directory would be:

mvn clean resources:resources hibernate3:hbm2java

[clean] delete target directory
[resources:resources] copy my *.hbm.xml files to my target directory
[hibernate3:hbm2java] and now the hibernate plugin knows where to find your
hibernate mapping files so go ahead and create the java source files

Hope that helps, please let me know if you need any other help.

Regards

Johann Reyes



-Original Message-
From: Lakshman Srilakshmanan
[mailto:[EMAIL PROTECTED] 
Sent: Monday, August 14, 2006 9:37 PM
To: Cristian Jansenson
Cc: Maven Users List
Subject: RE: Hibernate plugin not binding?

Hi Cristian

Thanks for providing me with your feedback.

I did finally solve this problem by downloading and compiling it locally.

http://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/maven-hibernate3/hi
bernate3-maven-plugin/

my pom.xml is setup as follows

  dependencies
dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version3.8.1/version
scopetest/scope
/dependency
dependency
groupIdorg.hibernate/groupId
artifactIdhibernate/artifactId
version3.1.2/version
/dependency
dependency
groupIdhsqldb/groupId
artifactIdhsqldb/artifactId
version1.8.0.4/version
/dependency
  /dependencies
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
/configuration
/plugin
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdhibernate3-maven-plugin/artifactId
version1.0-SNAPSHOT/version
executions
execution
idgenerate-hibernate/id
phasegenerate-sources/phase
configuration
hibernate
 
configurationFile/src/main/resources/hibernate.cfg.xml/configurationF
ile
/hibernate
outputDirectory
 
hbm2cfgxmlsrc/main/resources/hbm2cfgxml
 
hbm2javatarget/hibernate3/generated-sources/hbm2java
/outputDirectory
/configuration
goals
goalhbm2java/goal
/goals
/execution
/executions
/plugin
/plugins
extensions
extension
groupIdhsqldb/groupId
artifactIdhsqldb/artifactId
version1.8.0.4/version
/extension
/extensions
/build


Hope it helps :)

Thanks
Lakshman


 -Original Message-
 From: Cristian Jansenson [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 15 August 2006 11:07 AM
 To: Lakshman Srilakshmanan
 Subject: RE: Hibernate plugin not binding?
 
 No problem...  and I didn't resolve this problem.  My understanding on
this
 issue is that, as of the date I reported it, it was not resolved.
 Furthermore, some people informally solved the problem by modifying
the
 plugin; However, they didn't submit the fix because it was a hack more
than
 a real fix.  I suspect this issue will be addressed with the official 
 version of the pluggin.
 
 Cristian
 
 -Original Message-
 From: Lakshman Srilakshmanan
 [mailto:[EMAIL PROTECTED]
 Sent: Sunday, August 13, 2006 8:10 PM
 To: [EMAIL PROTECTED]
 Subject: Hibernate plugin not binding?
 
 Hi Cristian
 
 Sorry for contacting you directly, but did you resolve the above issue
 
 I have included a link to the above problem you raised for your 
 convenience.
 http://www.mail-archive.com/users@maven.apache.org/msg41711.html
 
 
 Your assistance is greatly appreciated.
 
 Thanks
 Lakshman
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]