RE: ftp-wagon NullPointerException

2006-10-19 Thread Zeltner Martin
Hello Paul

The NullPointerException seams to occur when the ftp wagon tries to get
the authentication data. Try to set the following settings in your
settings.xml (default location ~/.m2).

settings
...
servers
server
idakathist-repository/id
usernamexyz_user/username
passwordxyz_password/password
/server
/servers
...
/settings


Cheers,
Martin
http://el4j.sf.net

 

 -Original Message-
 From: pjungwir [mailto:[EMAIL PROTECTED] 
 Sent: Mittwoch, 18. Oktober 2006 22:46
 To: users@maven.apache.org
 Subject: Re: ftp-wagon NullPointerException
 
 
 Ah, there is a beta-1. I tried that, but I still get the same problem.
 
 -- 
 View this message in context: 
 http://www.nabble.com/ftp-wagon-NullPointerException-tf2469460
 .html#a6885414
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 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: Continuum with ClearCase

2006-10-19 Thread Wim Deblauwe

You can specify the location of pom.xml through the web interface.

2006/10/19, Janos Mucsi [EMAIL PROTECTED]:


Hi
I am using Continuum with ClearCase. Even though the load rules are
correctly specified and the files are checked out, Continuum is looking
for pom.xml on top of the directories
rather than 3-level deep. How do I configure it to look in the
subdirectory?
The config_spec file is typical:

element * CHECKEDOUT
element * /main/LATEST
load /vobs/bd_test/fed-one/fedone-all/fedone-core

pom.xml is in fedone-core

Thanks.

Janos Mucsi
415-422-1692



Build Error:


org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
Could not find Maven project descriptor.
at

org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.updateProjectFromCheckOut
(MavenTwoBuildExecutor.java:108)



Hi! When i using the mvn site command it got the error.

2006-10-19 Thread praveenkumar muppala

Hi!
When i using the mvn site i got the error like

[ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2
got 0
[ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got
0
what was the problem for this. I didn't get where i should go to change the
macro.

--
Thanks and Regards,
Praveen kUmar Raju.Muppala
OSI Technologies.


Re: Maven 2 Site generation

2006-10-19 Thread Allan Ramirez

Please see http://maven.apache.org/guides/mini/guide-site.html

You dont have to generate a site project, all of your site docs(apt, 
fml, xdoc) will be place in src/site of your existing project.


-allan

Morgovsky, Alexander (US - Glen Mills) wrote:

I have a Maven 2 project.  I want to create a site for it.  Should I run
the mvn site creation command with the archetype function?  I am
concerned that I will overwrite my work.  May someone please tell me
exactly what I need to do so that I could generate a generic site for an
already made Maven 2 project?  For discussion purposes, here is the
structure.

Project1
-src
-pom.xml
groupIdexample/groupId
artifactIditem/artifactId
version5.1.3/version 



This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law.  If you are not the intended recipient, you should delete this message. 



Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]

  


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



Re: Hi! When i using the mvn site command it got the error.

2006-10-19 Thread Wayne Fay

This is not actually an error, at least not one you need to concern
yourself about, so you can safely ignore it. Maven reports a [INFO]
BUILD SUCCESSFUL at the end of the build which is all you need to be
concerned about.

This has been discussed several times on this mailing list. Feel free
to search the archives for more details and information about this
error.

Wayne

On 10/19/06, praveenkumar muppala [EMAIL PROTECTED] wrote:

Hi!
 When i using the mvn site i got the error like

[ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2
got 0
[ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got
0
what was the problem for this. I didn't get where i should go to change the
macro.

--
Thanks and Regards,
Praveen kUmar Raju.Muppala
OSI Technologies.




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



Re: [M2] FindBugs Plugin: How to generate XML file?

2006-10-19 Thread Gisbert Amm

plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdfindbugs-maven-plugin/artifactId
  version1.0-beta-1/version
  configuration

excludeFilterFile${basedir}/src/main/conf/findbugs-exclude.xml/excludeFilterFile
omitVisitorsFindDeadLocalStores,UnreadFields/omitVisitors
pluginList/libs/fb-contrib/fb-contrib-2.8.0.jar/pluginList--
  /configuration
/plugin

However, as said before, the problem is already reported in 
http://jira.codehaus.org/browse/MOJO-511


-Gisbert


Mick Knutson wrote:

Can I see how you configured your FindBugs in Maven 2 please?


On 10/12/06, Gisbert Amm [EMAIL PROTECTED] wrote:



Does anybody know how I can persuade the Maven2 FindBugs Plugin to let
Findbugs generate an XML file containing its results into the target
directory in addition to the HTML report in target/site?

The Maven1 Findbugs Plugin automagically generates a file named
findbugs-raw-report.xml into the target directory during maven site.

I cannot find any information about how to achieve that with Maven2
neither on http://maven-plugins.sourceforge.net/maven-findbugs-plugin/
nor on http://mojo.codehaus.org/findbugs-maven-plugin/howto.html

I tried  generateXmltrue/generateXml in the configuration section
as it is for the Clover Plugin but of course that didn't work.

What I want is to use this option of Findbugs:

-xml

 Produce the bug reports as XML. The XML data produced may be viewed
in the GUI at a later time. You may also specify this option as
-xml:withMessages; when this variant of the option is used, the XML
output will contain human-readable messages describing the warnings
contained in the file.
(http://findbugs.sourceforge.net/manual/installing.html#commandLineOptions 


)

Any pointer or help would be highly appreciated.

-Gisbert


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



Re: Why do some jars in ibiblio do not have .pom files?

2006-10-19 Thread Nicolas DE LOOF


Relocation POMs should then be usefull !

Dan Tran a écrit :
axis group has been moved to org/apache/axis, that could be the reason 
why

nobody
bothers to fix the missing pom.

-D


On 10/18/06, Christian Goetze [EMAIL PROTECTED] wrote:


Just wondering - examples include:

axis/axis-saaj/1.4/axis-saaj-1.4.pom
axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.pom

Of course I can create my own in my own proxy, but would like to know
whether there is a deeper reason.
--
cg

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






This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



Re: [m2] Surefire-Plugin: how to get aggregated XML?

2006-10-19 Thread Gisbert Amm
A week passed since I've posted this question and I got no reply so far. 
 Can anyone say something about it, please?


-Gisbert

Gisbert Amm wrote:

Hi,

in Maven1 the Junit Plugin wrote the test data aggregated into a file 
named TESTS-TestSuites.xml. How can I achieve this with the Maven2 
Surefire plugin?


-Gisbert


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



Properties for artifact names?

2006-10-19 Thread Owen Jacobson

Good morning.

I need to put the correct filename for a given artifact into a file at
build time.  Are there properties usable for resource substitution
that, given an artifact

 groupId: com.example
 artifactId: myapp
 version: 1.0
 type: ear

produce any of the following (in order of preference)

- myapp-1.0
- myapp and 1.0 as separate properties
- myapp-1.0.ear
- some longer name

Nothing obvious either in my mailing list history or the maven documentation.

Any ideas?  Thanks in advance,
Owen

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



Re: Properties for artifact names?

2006-10-19 Thread Siegfried Goeschl

Hi Owen,

there are may ways to skin the cat - I would say give it a try ... :-)

Cheers,

Siegfried Goeschl

Owen Jacobson wrote:

Good morning.

I need to put the correct filename for a given artifact into a file at
build time.  Are there properties usable for resource substitution
that, given an artifact

 groupId: com.example
 artifactId: myapp
 version: 1.0
 type: ear

produce any of the following (in order of preference)

- myapp-1.0
- myapp and 1.0 as separate properties
- myapp-1.0.ear
- some longer name

Nothing obvious either in my mailing list history or the maven 
documentation.


Any ideas?  Thanks in advance,
Owen

-
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: clear separation of source and target

2006-10-19 Thread Rémy Sanlaville

I do it with XDoclet like this and it works well :

   artifactIdxdoclet-maven-plugin/artifactId
   executions
 execution
   phasegenerate-sources/phase
   goals
 goalxdoclet/goal
   /goals
   configuration
 tasks
   ejbdoclet
destDir=${project.build.directory}/generated-sources/xdoclet
ejbSpec=2.1 verbose=true force=true
 fileset dir=${project.build.sourceDirectory}
   include name=**/*Bean.java/include
   include name=**/*MDB.java/include
 /fileset
...

HTH,

Rémy


How to make a maven plugin to generate project reports through site

2006-10-19 Thread Øystein Skadsem
Hello there.

I'm currently working on a small plugin to maven that goes through our
codebase, checking all our modules for translated strings, and then
reporting translation percentage, which languages have translations, what
strings are missing translations etc. This was intended to be reported as
a web-page under Project Reports when we generate a project page through
the site-plugin (akin to how JXR, changes, changelog etc create
reports). However I am having some problems figuring out how to do this.

Does anyone know where I can find some documentation for how this is done?
I could not find any despite quite some time spent searching. Barring
that, does anyone know how my plugin should be configured? I.e. what goals
must it provide to site, and what should it return/generate?

Any help/info at all is appreciated, I've started to read through the
source-code of other plugins now to get what I need, but that's very slow
going :-). (And my apologies if this is the wrong place to ask/it's been
asked before)

regards,
Øystein Skadsem


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



Re: How to make a maven plugin to generate project reports through site

2006-10-19 Thread Gisbert Amm
You need to implement your Mojo as AbstractMavenReport, then Maven does 
all the Magic for you. To write your results into a HTML file, you need 
the Doxia Sink. It's really not difficult.


Unfortunately there is no documentation despite the sources themselves. 
I used the maven-changes-plugin as a starting point - it shows quite 
well how the reporting works - and got the following sources to find out 
some details:


http://svn.apache.org/repos/asf/maven/doxia/tags/doxia-1.0-alpha-8
http://svn.apache.org/repos/asf/maven/components/tags/maven-2.0.4/maven-reporting

See the recent thread [M2] Is there a guide how to write Report 
Plugins? for another example.


-Gisbert

Øystein Skadsem wrote:

Hello there.

I'm currently working on a small plugin to maven that goes through our
codebase, checking all our modules for translated strings, and then
reporting translation percentage, which languages have translations, what
strings are missing translations etc. This was intended to be reported as
a web-page under Project Reports when we generate a project page through
the site-plugin (akin to how JXR, changes, changelog etc create
reports). However I am having some problems figuring out how to do this.

Does anyone know where I can find some documentation for how this is done?
I could not find any despite quite some time spent searching. Barring
that, does anyone know how my plugin should be configured? I.e. what goals
must it provide to site, and what should it return/generate?

Any help/info at all is appreciated, I've started to read through the
source-code of other plugins now to get what I need, but that's very slow
going :-). (And my apologies if this is the wrong place to ask/it's been
asked before)

regards,
Øystein Skadsem


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



--
Gisbert Amm
Softwareentwickler Infrastruktur

WEB.DE GmbH
Brauerstraße 48 · D-76135 Karlsruhe
Tel. +49-721-91374-4224 · Fax +49-721-91374-2740
[EMAIL PROTECTED] · http://www.web.de/

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



Aggregate plugin that runs after each module's reports

2006-10-19 Thread J.J.B. Rentrop
Hi all,

I'm looking for ways to enable an aggregate report for multi module
projects for tools like checkstyle, cobertura, findbugs, surefire etc.

One approach I'm trying is to first generate all reports and xml data
files for each module and afterwards loop through each module, read
their xml output file and create an aggregation report based on that data.

The problem I face is that my aggregation MavenReport executes before
the reports of each modules has been executed. When I run mvn site it
will create an empty aggregate report, because it's unable to gather the
data from each module. If I run it a second time it will work because
then the data files of each module are available.

Is there a way to make my aggregation MavenReport execute after the
reports of all modules have been generated? I have tried some
annotations but it didn't work.

Best regards,
Julien

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



Re: Spring Taglib Dependency

2006-10-19 Thread ben short

Hi Stephen,

The spring.tld is in the spring.jar so you dont need to do any more
than grab the spring as a dependancy, like this..

dependency
   groupIdorg.springframework/groupId
   artifactIdspring/artifactId
   version1.2.8/version
   scopecompile/scope
   /dependency

With the scope set to compile the spring.jar will be bundled into the war file.

Add the flowing line to the top of your jsp pages..

%@ taglib prefix=spring uri=http://www.springframework.org/tags; %

You dont need to declare anything in your web.xml.

hope this helps

Ben

On 10/18/06, Stephen Bobick [EMAIL PROTECTED] wrote:



Hi,



I've added a dependency to Spring 1.2.8 in my project's POM file.  When I try
to use the spring.tld tag libs (add the declaration to the web.xml as well as
the taglib reference to the JSP page), I get an error message:



org.apache.jasper.JasperException: File /WEB-INF/spring.tld not found



My question is this:  do I need to copy spring.tld manually into my WEB-INF
directory, or can I import this through Maven's dependency mechanism and link
to it somehow in the web.xml?



  jsp-config

taglib

  taglib-urihttp://www.springframework.org/tags/taglib-uri

  taglib-location/WEB-INF/spring.tld/taglib-location

/taglib

  /jsp-config



Thanks in advance,



Stephen J. Bobick

Senior Lead Engineer, Life Sciences

Insightful Corporation

(206) 802-2350 Direct











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



Re: Aggregate plugin that runs after each module's reports

2006-10-19 Thread Gisbert Amm
I'm currently writing almost the same plugin, formerly (in the Maven 1 
world) known as Dashboard Plugin. Isn't that funny (I think it isn't)? 
Would it probably not be better to focus such efforts within the Maven 
project itself rather than having each company writing it's own 
Dashboard plugin for Maven 2?


Your question: I simply wrote the plugin section for this plugin 
behind all others in the POM and that seems to work. Of course, one has 
to check if the required XML lies there as expected. ATM, I'm simply 
leaving the respective table cells in the generated report empty if that 
should happen.


-Gisbert

J.J.B. Rentrop wrote:

Hi all,

I'm looking for ways to enable an aggregate report for multi module
projects for tools like checkstyle, cobertura, findbugs, surefire etc.

One approach I'm trying is to first generate all reports and xml data
files for each module and afterwards loop through each module, read
their xml output file and create an aggregation report based on that data.

The problem I face is that my aggregation MavenReport executes before
the reports of each modules has been executed. When I run mvn site it
will create an empty aggregate report, because it's unable to gather the
data from each module. If I run it a second time it will work because
then the data files of each module are available.

Is there a way to make my aggregation MavenReport execute after the
reports of all modules have been generated? I have tried some
annotations but it didn't work.


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



How to execute just one script?

2006-10-19 Thread Bram de Kruijff
Hello,

is it possible to execute just one script without going through the
build lifecycle? In my case I'd like to run and re-run an ant script
without building and certainly not installing and/or deploying(!) any
artifacts.

just something like 'mvn cleanmycachedir' or something like that :)

regards,
Bram

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



Re: Aggregate plugin that runs after each module's reports

2006-10-19 Thread J.J.B. Rentrop
It's good to hear that there is someone who is also working on it. I'm
in favour of focusing the work and have this available for everyone.

Your solution works for projects that have packaging=jar but not for
projects that consists of multiple modules (packaging=pom). It can
affect the sequence of the plugins that are ran for each site but it
can't make the plugin execute after the site phase for each module has
been executed.

Best regards,
Julien

- Original Message -
From: Gisbert Amm [EMAIL PROTECTED]
Date: Thursday, October 19, 2006 12:17 pm
Subject: Re: Aggregate plugin that runs after each module's reports
To: Maven Users List users@maven.apache.org

 I'm currently writing almost the same plugin, formerly (in the 
 Maven 1 
 world) known as Dashboard Plugin. Isn't that funny (I think it 
 isn't)? 
 Would it probably not be better to focus such efforts within the 
 Maven 
 project itself rather than having each company writing it's own 
 Dashboard plugin for Maven 2?
 
 Your question: I simply wrote the plugin section for this plugin 
 behind all others in the POM and that seems to work. Of course, one 
 has 
 to check if the required XML lies there as expected. ATM, I'm 
 simply 
 leaving the respective table cells in the generated report empty if 
 that 
 should happen.
 
 -Gisbert
 
 J.J.B. Rentrop wrote:
  Hi all,
  
  I'm looking for ways to enable an aggregate report for multi module
  projects for tools like checkstyle, cobertura, findbugs, surefire 
 etc. 
  One approach I'm trying is to first generate all reports and xml 
 data files for each module and afterwards loop through each 
 module, read
  their xml output file and create an aggregation report based on 
 that data.
  
  The problem I face is that my aggregation MavenReport executes 
 before the reports of each modules has been executed. When I run 
 mvn site it
  will create an empty aggregate report, because it's unable to 
 gather the
  data from each module. If I run it a second time it will work 
 because then the data files of each module are available.
  
  Is there a way to make my aggregation MavenReport execute after the
  reports of all modules have been generated? I have tried some
  annotations but it didn't work.
 
 
 -
 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: What configuration for my Use case

2006-10-19 Thread Nicolas DE LOOF


Thanks.
I just created this config :

- 4 managed repositories pointing to windows shared 
\\myserver\maven\restricted  ...

I use archiva reports to check for consisitency
- 1 main managed repository on local server that is configured to proxy
  * http://repo1.maven.org
  * file:/myserver/maven/restricted (...)

I can see all my artifacts using proxy request on main, and get a 
clean separation of artifacts in managed repos.


Nico.

Brett Porter a écrit :
I think you have 4 managed repositories + 1 managed repository that 
proxies ibiblio.


This will result in 5 different repositories to use from Maven though 
- if you want a unified view over this from Maven you could do what 
you say below (proxying them through the last managed repo), or make a 
feature request for that directly, but I'm not sure of the point of 
separating them if they will always be unified.


- Brett

On 18/10/2006, at 11:27 PM, Nicolas DE LOOF wrote:



I've got a private repo splitted in 4 parts :

* restricted artifacts : SUN jars, oracle libs...
* free libs not yet on ibiblio
* sources : sources jars not available on ibilbio
* private : our corporate commons libs

I'd like to make my 4 repos managed to check for consistency using 
archiva reports.


I also want to use archiva to show a unified view of those 
repositories + a proxy to maven public repo.


What would be the archiva way to do that :
4 managed repository + 1 managed repository proxying the 4 + ibiblio ?
Sync repositories ?

Nico.



This message contains information that may be privileged or 
confidential and is the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not 
the intended recipient,  you are not authorized to read, print, 
retain, copy, disseminate,  distribute, or use this message or any 
part thereof. If you receive this  message in error, please notify 
the sender immediately and delete all  copies of this message.




This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.



Re: Aggregate plugin that runs after each module's reports

2006-10-19 Thread dvicente

Yes, me too.

i try to develop the same plugin and i have the problem.

If i put my report at the end of plugins list in reporting section, it
works for 1 project but doesn't work for projects with module.

see my last posts :

http://www.nabble.com/-m2--Dashboard-report-plugin-tf2338270.html#a6506403

or http://www.nabble.com/-m2--lifecycle-design-tf2350045.html

the only one solution is to declare plugin in reporting section: with this
you have the item menu in the generated site and re-generated your dashboard
after site generation as :

mvn compile site dashboard-report:report if your plugin is
dashboard-report with goal report as i do

it's the the same problem as Clover plugin as described in JIRA:

http://jira.codehaus.org/browse/MNG-2184 




J.J.B. Rentrop wrote:
 
 It's good to hear that there is someone who is also working on it. I'm
 in favour of focusing the work and have this available for everyone.
 
 Your solution works for projects that have packaging=jar but not for
 projects that consists of multiple modules (packaging=pom). It can
 affect the sequence of the plugins that are ran for each site but it
 can't make the plugin execute after the site phase for each module has
 been executed.
 
 Best regards,
 Julien
 
 - Original Message -
 From: Gisbert Amm [EMAIL PROTECTED]
 Date: Thursday, October 19, 2006 12:17 pm
 Subject: Re: Aggregate plugin that runs after each module's reports
 To: Maven Users List users@maven.apache.org
 
 I'm currently writing almost the same plugin, formerly (in the 
 Maven 1 
 world) known as Dashboard Plugin. Isn't that funny (I think it 
 isn't)? 
 Would it probably not be better to focus such efforts within the 
 Maven 
 project itself rather than having each company writing it's own 
 Dashboard plugin for Maven 2?
 
 Your question: I simply wrote the plugin section for this plugin 
 behind all others in the POM and that seems to work. Of course, one 
 has 
 to check if the required XML lies there as expected. ATM, I'm 
 simply 
 leaving the respective table cells in the generated report empty if 
 that 
 should happen.
 
 -Gisbert
 
 J.J.B. Rentrop wrote:
  Hi all,
  
  I'm looking for ways to enable an aggregate report for multi module
  projects for tools like checkstyle, cobertura, findbugs, surefire 
 etc. 
  One approach I'm trying is to first generate all reports and xml 
 data files for each module and afterwards loop through each 
 module, read
  their xml output file and create an aggregation report based on 
 that data.
  
  The problem I face is that my aggregation MavenReport executes 
 before the reports of each modules has been executed. When I run 
 mvn site it
  will create an empty aggregate report, because it's unable to 
 gather the
  data from each module. If I run it a second time it will work 
 because then the data files of each module are available.
  
  Is there a way to make my aggregation MavenReport execute after the
  reports of all modules have been generated? I have tried some
  annotations but it didn't work.
 
 
 -
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Aggregate-plugin-that-runs-after-each-module%27s-reports-tf2472384.html#a6894274
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: [m2] Surefire-Plugin: how to get aggregated XML?

2006-10-19 Thread dvicente

i only know Maven 2 but in maven 2 surefire generates this xml.

see in directory /myProject/target/surefire-reports, you must have
TEST-.yyy.xml



Gisbert Amm-3 wrote:
 
 A week passed since I've posted this question and I got no reply so far. 
   Can anyone say something about it, please?
 
 -Gisbert
 
 Gisbert Amm wrote:
 Hi,
 
 in Maven1 the Junit Plugin wrote the test data aggregated into a file 
 named TESTS-TestSuites.xml. How can I achieve this with the Maven2 
 Surefire plugin?
 
 -Gisbert
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-m2--Surefire-Plugin%3A-how-to-get-aggregated-XML--tf2430953.html#a6894432
Sent from the Maven - Users mailing list archive at Nabble.com.


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



assembly warning message

2006-10-19 Thread Bozhong Lin

Hi,

When i use assembly plugin to create tar.gz package, maven complains 
about the file name size more that 100 characters. Is this a concern? If 
so, any configuration to fix the problem? If not, how can I get rid of 
the annoying warning?


Thanks for help!
Bo

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



Re: Filtered proxy ?

2006-10-19 Thread Nicolas DE LOOF


MRM-211

I looked into code and I think this is an issue with maven2 
DefaultArtifactHandler configuration, that has no configuration for 
plugin type.
Would this require to update maven2 artifact project, or can archiva 
plexus configuration be set to add some ArtifactHandlers ?


Nico.

Emmanuel Venisse a écrit :

Seems to be a bug. Please, file an issue.

Emmanuel

Nicolas DE LOOF a écrit :


Yet another question :

How to handle maven1 plugins using Archiva as a proxy ?

Example : I request maven PMD plugin 1.9 using maven1

Archiva looks into 
http://repo1.maven.org/maven2/maven/maven-pmd-plugin/1.9/ and get the 
POM
It also searchs the Artifact as 
maven/maven-pmd-plugin/1.9/maven-pmd-plugin-1.9.plugin (from logs)


Sounds like a little bug.
Even looking at maven/maven-pmd-plugin/1.9/maven-pmd-plugin-1.9.jar 
fails : the artifact doesn't exist ! It has a POM and a sources-jar 
but no binary artifact.


What's wrong ?


This message contains information that may be privileged or 
confidential and is the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not 
the intended recipient,  you are not authorized to read, print, 
retain, copy, disseminate,  distribute, or use this message or any 
part thereof. If you receive this  message in error, please notify 
the sender immediately and delete all  copies of this message.









This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.



adding dependency jars in jar project

2006-10-19 Thread Marek Chowaniok

Hi 
I have problem with creating jar project which has dependecy on another
projects.

I know that the 'jar project' will not include dependecy jars (as 'war
project' does) and I have read that the assembly plugin should do it
somehow.

I am playing with it few days, trying find out as much as possible but
without success.

Here are my projects :

REPORTGENERATOR
  |-ReportGeneratorMpress
  |-ReportGeneratorLogic
  |-ReportGeneratorHibernate
  |-ReportGeneratorCommon

I need to create 1 jar file with all those modules. This is done in
ReportGeneratorLogic (we used for building MyEclipseIde software and we are
developing in Eclipse). 

How should look the result:

ReportGeneratorLogic.jar:
  |-com 
   |-xyz
   |-report  (here are sources of those modules)
  |-lib (here are dependecy jars from all those modules)
  |-META-INF (meta-inf files)

Can you help me to create this jar file? Should I use assembly (and how) or
something else?
Where should I configure assembly plugin? in Parent pom or in
ReportGeneratoLogic pom.xml ?

Thanks in advance
-- 
View this message in context: 
http://www.nabble.com/adding-dependency-jars-in-jar-project-tf2472625.html#a6894579
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Filtered proxy ?

2006-10-19 Thread Brett Porter

They should be able to be added.

- Brett

On 19/10/2006, at 9:11 PM, Nicolas DE LOOF wrote:



MRM-211

I looked into code and I think this is an issue with maven2  
DefaultArtifactHandler configuration, that has no configuration for  
plugin type.
Would this require to update maven2 artifact project, or can  
archiva plexus configuration be set to add some ArtifactHandlers ?


Nico.

Emmanuel Venisse a écrit :

Seems to be a bug. Please, file an issue.

Emmanuel

Nicolas DE LOOF a écrit :


Yet another question :

How to handle maven1 plugins using Archiva as a proxy ?

Example : I request maven PMD plugin 1.9 using maven1

Archiva looks into http://repo1.maven.org/maven2/maven/maven-pmd- 
plugin/1.9/ and get the POM
It also searchs the Artifact as maven/maven-pmd-plugin/1.9/maven- 
pmd-plugin-1.9.plugin (from logs)


Sounds like a little bug.
Even looking at maven/maven-pmd-plugin/1.9/maven-pmd- 
plugin-1.9.jar fails : the artifact doesn't exist ! It has a POM  
and a sources-jar but no binary artifact.


What's wrong ?


This message contains information that may be privileged or  
confidential and is the property of the Capgemini Group. It is  
intended only for the person to whom it is addressed. If you are  
not the intended recipient,  you are not authorized to read,  
print, retain, copy, disseminate,  distribute, or use this  
message or any part thereof. If you receive this  message in  
error, please notify the sender immediately and delete all   
copies of this message.









This message contains information that may be privileged or  
confidential and is the property of the Capgemini Group. It is  
intended only for the person to whom it is addressed. If you are  
not the intended recipient,  you are not authorized to read, print,  
retain, copy, disseminate,  distribute, or use this message or any  
part thereof. If you receive this  message in error, please notify  
the sender immediately and delete all  copies of this message.


Re: How to execute just one script?

2006-10-19 Thread Siegfried Goeschl

Hi Bram,

not sure what you would like to achieve but

+) run an ANT script instead ... :-)
+) you can use the ant run plugin and the validate lifecycle phase

Cheers,

Siegfried Goeschl

Bram de Kruijff wrote:

Hello,

is it possible to execute just one script without going through the
build lifecycle? In my case I'd like to run and re-run an ant script
without building and certainly not installing and/or deploying(!) any
artifacts.

just something like 'mvn cleanmycachedir' or something like that :)

regards,
Bram

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



exec:exec java NoClassDefFoundError

2006-10-19 Thread Urs Frei
Hi

I am new in using maven.

I would like to use the antRunner from eclipse to build my project. But 
the class for the antRunner will be not found. What do I wrong?


project 
  modelVersion4.0.0/modelVersion
  ...
  dependencies
dependency
  groupIdorg.eclipse/groupId
  artifactIdstartup/artifactId
  version1.0.0/version
  scopesystem/scope
  systemPath${ECLIPSE_HOME}/startup.jar/systemPath
/dependency
  /dependencies
  build
plugins
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdexec-maven-plugin/artifactId
version1.0.1/version
executions
  execution
phasecompile/phase
  goals
goalexec/goal
  /goals
/execution
  /executions
  configuration
executablejava/executable
arguments
  argument-classpath/argument
  classpath
dependencyorg.eclipse:startup/dependency
  /classpath
  argumentorg.eclipse.core.launcher.Main -application 
org.eclipse.ant.core.antRunner -f 
${ECLIPSE_HOME}/plugins/org.eclipse.pde.build_3.2.1.r321_v20060823/scripts/build.xml/argument
  argument-DECLIPSE_HOME=${ECLIPSE_HOME}/argument
/arguments
  /configuration
/plugin
/plugins 
  ... 
/project

The result is:

[INFO] [exec:exec {execution: default}]
[INFO] java.lang.NoClassDefFoundError: org/eclipse/core/launcher/Main 
-applicati
on org/eclipse/ant/core/antRunner -f 
C:\Programme\eclipse/plugins/org/eclipse/pd
e/build_3/2/1/r321_v20060823/scripts/build/xml
[INFO] Exception in thread main
[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Result of java -cp D:\Daten\Subversion\ch.fhsg.nc.go.build\bin 
org.eclip
se.core.launcher.Main -application org.eclipse.ant.core.antRunner -f 
C:\Programm
e\eclipse/plugins/org.eclipse.pde.build_3.2.1.r321_v20060823/scripts/build.xml
-DECLIPSE_HOME=C:\Programme\eclipse execution is: '1'.
[INFO] 

[INFO] For more information, run Maven with the -e switch
[INFO] 

[INFO] Total time: 3 seconds
[INFO] Finished at: Thu Oct 19 13:30:55 CEST 2006
[INFO] Final Memory: 4M/7M
[INFO] 


Have someone any idea what I do wrong?

Thanks for help

Urs





Urs Frei


Fon +41 71 226 12 27
Fax  +41 71 226 12 05
Web http://www.fhsg.ch/neurocomputing

FHS St.Gallen - Hochschule für Angewandte Wissenschaften
Institut IMS Tellstrasse 2  Postfach 664  CH-9001 St.Gallen



Re: Filtered proxy ?

2006-10-19 Thread Nicolas DE LOOF


I updated my archiva webapp (it runs under tomcat) to include a 
DefaultArtifactHandler component for plugin type in 
WEB-INF/classes/META-INF/plexus/components.xml.


I now can download maven1 plugins now.

I don't know if this DefaultArtifactHandler may be define in 
maven-artifact project or in archiva as this is only required to support 
Maven1 artifacts, that is out of maven2 scope.


This doesn't solve the issue of 
http://repo1.maven.org/maven2/maven/maven-pmd-plugin/1.9/

The maven2 repo contains a pom, a source-jar but no artifact jar.

Is archiva used for converting maven1 repository to maven2 or is this a 
MPA issue ?


Nico.

Brett Porter a écrit :

They should be able to be added.

- Brett

On 19/10/2006, at 9:11 PM, Nicolas DE LOOF wrote:



MRM-211

I looked into code and I think this is an issue with maven2 
DefaultArtifactHandler configuration, that has no configuration for 
plugin type.
Would this require to update maven2 artifact project, or can archiva 
plexus configuration be set to add some ArtifactHandlers ?


Nico.

Emmanuel Venisse a écrit :

Seems to be a bug. Please, file an issue.

Emmanuel

Nicolas DE LOOF a écrit :


Yet another question :

How to handle maven1 plugins using Archiva as a proxy ?

Example : I request maven PMD plugin 1.9 using maven1

Archiva looks into 
http://repo1.maven.org/maven2/maven/maven-pmd-plugin/1.9/ and get 
the POM
It also searchs the Artifact as 
maven/maven-pmd-plugin/1.9/maven-pmd-plugin-1.9.plugin (from logs)


Sounds like a little bug.
Even looking at maven/maven-pmd-plugin/1.9/maven-pmd-plugin-1.9.jar 
fails : the artifact doesn't exist ! It has a POM and a sources-jar 
but no binary artifact.


What's wrong ?


This message contains information that may be privileged or 
confidential and is the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are 
not the intended recipient,  you are not authorized to read, print, 
retain, copy, disseminate,  distribute, or use this message or any 
part thereof. If you receive this  message in error, please notify 
the sender immediately and delete all  copies of this message.









This message contains information that may be privileged or 
confidential and is the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not 
the intended recipient,  you are not authorized to read, print, 
retain, copy, disseminate,  distribute, or use this message or any 
part thereof. If you receive this  message in error, please notify 
the sender immediately and delete all  copies of this message.




This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.



Re: Filtered proxy ?

2006-10-19 Thread Arnaud HERITIER

http://jira.codehaus.org/browse/MRM-210 is related to this problem

cheers

Arnaud

On 10/19/06, Nicolas DE LOOF [EMAIL PROTECTED] wrote:



MRM-211

I looked into code and I think this is an issue with maven2
DefaultArtifactHandler configuration, that has no configuration for
plugin type.
Would this require to update maven2 artifact project, or can archiva
plexus configuration be set to add some ArtifactHandlers ?

Nico.

Emmanuel Venisse a écrit :
 Seems to be a bug. Please, file an issue.

 Emmanuel

 Nicolas DE LOOF a écrit :

 Yet another question :

 How to handle maven1 plugins using Archiva as a proxy ?

 Example : I request maven PMD plugin 1.9 using maven1

 Archiva looks into
 http://repo1.maven.org/maven2/maven/maven-pmd-plugin/1.9/ and get the
 POM
 It also searchs the Artifact as
 maven/maven-pmd-plugin/1.9/maven-pmd-plugin-1.9.plugin (from logs)

 Sounds like a little bug.
 Even looking at maven/maven-pmd-plugin/1.9/maven-pmd-plugin-1.9.jar
 fails : the artifact doesn't exist ! It has a POM and a sources-jar
 but no binary artifact.

 What's wrong ?


 This message contains information that may be privileged or
 confidential and is the property of the Capgemini Group. It is
 intended only for the person to whom it is addressed. If you are not
 the intended recipient,  you are not authorized to read, print,
 retain, copy, disseminate,  distribute, or use this message or any
 part thereof. If you receive this  message in error, please notify
 the sender immediately and delete all  copies of this message.






This message contains information that may be privileged or confidential
and is the property of the Capgemini Group. It is intended only for the
person to whom it is addressed. If you are not the intended recipient,  you
are not authorized to read, print, retain, copy, disseminate,  distribute,
or use this message or any part thereof. If you receive this  message in
error, please notify the sender immediately and delete all  copies of this
message.




Re: [M2] Is there a guide how to write Report Plugins?

2006-10-19 Thread Gisbert Amm

Gisbert Amm wrote:

Arnaud Bailly wrote:


Did I oversee something? I'd really appreciate some guidance and
examples so that I don't have to read trough the sources of several
existing report plugins to find out how it works by myself.


Hello, I fear that this may actually be the only way right now. Another
solution is providing a document reporting your efforts for
integration into maven's doc base ;-)


I actually started a page on that subject:

http://docs.codehaus.org/display/MAVENUSER/Write+your+own+report+plugin

Please everyone interested in the topic have a look and correct me or 
append whatever you like.


-Gisbert

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



Re: Filtered proxy ?

2006-10-19 Thread Nicolas DE LOOF


Seems the same issue.
ejb and ejb-clients types are allready configured in maven-artifact 
configuration, so they should work (or there is another isue)


How could archiva handle non standard artifacts without requirement 
for a new Archiva release ? For example, people may want to create some 
it-tests jars. Could Archiva update it's plexus configuration at 
runtime to add such custom types ?


Nico.


Arnaud HERITIER a écrit :

http://jira.codehaus.org/browse/MRM-210 is related to this problem

cheers

Arnaud

On 10/19/06, Nicolas DE LOOF [EMAIL PROTECTED] wrote:



MRM-211

I looked into code and I think this is an issue with maven2
DefaultArtifactHandler configuration, that has no configuration for
plugin type.
Would this require to update maven2 artifact project, or can archiva
plexus configuration be set to add some ArtifactHandlers ?

Nico.

Emmanuel Venisse a écrit :
 Seems to be a bug. Please, file an issue.

 Emmanuel

 Nicolas DE LOOF a écrit :

 Yet another question :

 How to handle maven1 plugins using Archiva as a proxy ?

 Example : I request maven PMD plugin 1.9 using maven1

 Archiva looks into
 http://repo1.maven.org/maven2/maven/maven-pmd-plugin/1.9/ and get the
 POM
 It also searchs the Artifact as
 maven/maven-pmd-plugin/1.9/maven-pmd-plugin-1.9.plugin (from logs)

 Sounds like a little bug.
 Even looking at maven/maven-pmd-plugin/1.9/maven-pmd-plugin-1.9.jar
 fails : the artifact doesn't exist ! It has a POM and a sources-jar
 but no binary artifact.

 What's wrong ?


 This message contains information that may be privileged or
 confidential and is the property of the Capgemini Group. It is
 intended only for the person to whom it is addressed. If you are not
 the intended recipient,  you are not authorized to read, print,
 retain, copy, disseminate,  distribute, or use this message or any
 part thereof. If you receive this  message in error, please notify
 the sender immediately and delete all  copies of this message.






This message contains information that may be privileged or confidential
and is the property of the Capgemini Group. It is intended only for the
person to whom it is addressed. If you are not the intended 
recipient,  you
are not authorized to read, print, retain, copy, disseminate,  
distribute,

or use this message or any part thereof. If you receive this  message in
error, please notify the sender immediately and delete all  copies of 
this

message.






This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.



Re: change-log plugin - empty password

2006-10-19 Thread Ali Hisham Malik
UmmmDidn't get any responses...Nobody ran into this issue before???

Ali Hisham Malik wrote:
 Hi,
 
 I am using an svn repository that requires empty password to be sent
 with the username (guest). I have tried several ways to configure the
 empty password in changelog plugin. For example,
 1) using an empty password/password in pom.xml for the changelog
 configuration.
 2)using an password''/password in pom.xml for the changelog
 configuration. (since you can use '' to signify empty password in svn)
 
 In case 1), the password field is completely ignored, whereas in case 2)
 the password does not translate to empty password. Perhaps the solution
  requires a fix in the changelog plugin behavior.
 
 Any help is greatly appreciated.
 
 Thanks,
 
 ~Hisham
 
 -
 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]



Dependencies in EJB project

2006-10-19 Thread horse

Hi,

i am using Maven to create a Standalone EJB jar. in Eclipse all the required
libraries (*.jars) which are defined in my project.xml under the
dependencies tag are all properly included. but in the generated EJB, the
the jars are not included in my ejb-jar file. what could be the problem?
-- 
View this message in context: 
http://www.nabble.com/Dependencies-in-EJB-project-tf2473101.html#a6895853
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: [m2] Surefire-Plugin: how to get aggregated XML?

2006-10-19 Thread Gisbert Amm
That's not what I meant. The TEST-.yyy.xml files are there, indeed, 
but no file with *aggregated* test results.


Of course I can go through the single files and collect errors and 
failures from there (that's what I actually do ATM). But the Surefire 
plugin could do that much more efficent during it's execution and write 
it to a neat XML file afterwards as it was in Maven 1.


-Gisbert

dvicente wrote:

i only know Maven 2 but in maven 2 surefire generates this xml.

see in directory /myProject/target/surefire-reports, you must have
TEST-.yyy.xml



Gisbert Amm-3 wrote:

A week passed since I've posted this question and I got no reply so far. 
 Can anyone say something about it, please?


-Gisbert

Gisbert Amm wrote:


Hi,

in Maven1 the Junit Plugin wrote the test data aggregated into a file 
named TESTS-TestSuites.xml. How can I achieve this with the Maven2 
Surefire plugin?


-Gisbert


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








--
Gisbert Amm
Softwareentwickler Infrastruktur

WEB.DE GmbH
Brauerstraße 48 · D-76135 Karlsruhe
Tel. +49-721-91374-4224 · Fax +49-721-91374-2740
[EMAIL PROTECTED] · http://www.web.de/

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



Dummy question my first Maven project: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist ...

2006-10-19 Thread Xavier Outhier

Hi all,

I'm sure this is not a cutting edge question.
I've just downloaded and installed Maven.

1)
Well, I simply followed the Installation instructions from page
http://maven.apache.org/download.html#installation


   Windows 2000/XP

  1. Unzip maven-2.0.3-bin.zip to the directory you wish to install
 Maven 2.0.3. These instructions assume you chose C:\Program
 Files\Apache Software Foundation\maven-2.0.3
  2. Add the bin directory to your path, by opening up the system
 properties (WinKey + Pause), selecting the Advanced tab, and the
 Environment Variables button, then editing the PATH variable in
 the user variables. eg. C:\Program Files\Apache Software
 Foundation\maven-2.0.3\bin;%PATH%
  3. In the same dialog, make sure that JAVA_HOME is set to the
 location of your JDK, eg. C:\Program Files\Java\jdk1.5.0_02
  4. Run mvn --version to verify that it is correctly installed.


And then I try the first command of the Maven Getting Started Guide
(http://maven.apache.org/guides/getting-started/index.html):

2) But here is what I get:
D:\tmp\sandboxmvn --version
Maven version: 2.0.4

D:\tmp\sandbox*mvn archetype:create -DgroupId=com.mycompany.app 
-DartifactId=myApp*

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does 
not exist or no valid version could be found
[INFO] 


[INFO] For more information, run Maven with the -e switch
[INFO] 


[INFO] Total time:  1 second
[INFO] Finished at: Thu Oct 19 14:37:03 CEST 2006
[INFO] Final Memory: 1M/2M
[INFO] 



D:\tmp\sandboxmvn -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] 


[ERROR] BUILD FAILURE
[INFO] 


[INFO] You must specify at least one goal. Try 'install'
[INFO] 


[INFO] Trace
org.apache.maven.BuildFailureException: You must specify at least one 
goal. Try 'install'
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:132)

   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   at java.lang.reflect.Method.invoke(Method.java:585)
   at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] 


[INFO] Total time:  1 second
[INFO] Finished at: Thu Oct 19 14:37:24 CEST 2006
[INFO] Final Memory: 1M/2M
[INFO] 



3) What should I do? Is it a configuration problem? How to install 
locally the plug-in?


Thanks for any help,

Xavier.


Re: [m2] Surefire-Plugin: how to get aggregated XML?

2006-10-19 Thread dvicente

ok, i haven't understood.

But why do you want this aggregated xml file ?


Gisbert Amm-3 wrote:
 
 That's not what I meant. The TEST-.yyy.xml files are there, indeed, 
 but no file with *aggregated* test results.
 
 Of course I can go through the single files and collect errors and 
 failures from there (that's what I actually do ATM). But the Surefire 
 plugin could do that much more efficent during it's execution and write 
 it to a neat XML file afterwards as it was in Maven 1.
 
 -Gisbert
 
 dvicente wrote:
 i only know Maven 2 but in maven 2 surefire generates this xml.
 
 see in directory /myProject/target/surefire-reports, you must have
 TEST-.yyy.xml
 
 
 
 Gisbert Amm-3 wrote:
 
A week passed since I've posted this question and I got no reply so far. 
  Can anyone say something about it, please?

-Gisbert

Gisbert Amm wrote:

Hi,

in Maven1 the Junit Plugin wrote the test data aggregated into a file 
named TESTS-TestSuites.xml. How can I achieve this with the Maven2 
Surefire plugin?

-Gisbert

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



 
 
 
 -- 
 Gisbert Amm
 Softwareentwickler Infrastruktur
 
 WEB.DE GmbH
 Brauerstraße 48 · D-76135 Karlsruhe
 Tel. +49-721-91374-4224 · Fax +49-721-91374-2740
 [EMAIL PROTECTED] · http://www.web.de/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-m2--Surefire-Plugin%3A-how-to-get-aggregated-XML--tf2430953.html#a6896130
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Problem with site plugin

2006-10-19 Thread Manuel Ledesma
I writing sites for my custom plugins, but I have an issue with 
index.apt, Maven seems to ignore it, instead it always shows me the list 
of goals. But if I run it in a non-plugin project, everything works 
fine. Can someone explain how can i use my index.apt ?


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



Re: Dummy question my first Maven project: The plugin 'org.apache.maven.plugins:maven-archetype-plugin'does not exist ...

2006-10-19 Thread Nicolas DE LOOF


Try to run
   mvn *-U* archetype:create -DgroupId=com.mycompany.app -DartifactId=myApp

The -U force plugin updates, thismay solve this issue.

Xavier Outhier a écrit :

Hi all,

I'm sure this is not a cutting edge question.
I've just downloaded and installed Maven.

1)
Well, I simply followed the Installation instructions from page
http://maven.apache.org/download.html#installation


   Windows 2000/XP

  1. Unzip maven-2.0.3-bin.zip to the directory you wish to install
 Maven 2.0.3. These instructions assume you chose C:\Program
 Files\Apache Software Foundation\maven-2.0.3
  2. Add the bin directory to your path, by opening up the system
 properties (WinKey + Pause), selecting the Advanced tab, and the
 Environment Variables button, then editing the PATH variable in
 the user variables. eg. C:\Program Files\Apache Software
 Foundation\maven-2.0.3\bin;%PATH%
  3. In the same dialog, make sure that JAVA_HOME is set to the
 location of your JDK, eg. C:\Program Files\Java\jdk1.5.0_02
  4. Run mvn --version to verify that it is correctly installed.


And then I try the first command of the Maven Getting Started Guide
(http://maven.apache.org/guides/getting-started/index.html):

2) But here is what I get:
D:\tmp\sandboxmvn --version
Maven version: 2.0.4

D:\tmp\sandbox*mvn archetype:create -DgroupId=com.mycompany.app 
-DartifactId=myApp*

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' 
does not exist or no valid version could be found
[INFO] 


[INFO] For more information, run Maven with the -e switch
[INFO] 


[INFO] Total time:  1 second
[INFO] Finished at: Thu Oct 19 14:37:03 CEST 2006
[INFO] Final Memory: 1M/2M
[INFO] 



D:\tmp\sandboxmvn -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] 


[ERROR] BUILD FAILURE
[INFO] 


[INFO] You must specify at least one goal. Try 'install'
[INFO] 


[INFO] Trace
org.apache.maven.BuildFailureException: You must specify at least one 
goal. Try 'install'
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:132) 


   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 


   at java.lang.reflect.Method.invoke(Method.java:585)
   at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] 


[INFO] Total time:  1 second
[INFO] Finished at: Thu Oct 19 14:37:24 CEST 2006
[INFO] Final Memory: 1M/2M
[INFO] 



3) What should I do? Is it a configuration problem? How to install 
locally the plug-in?


Thanks for any help,

Xavier.



This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



Re: can't remove project

2006-10-19 Thread Adrian Herscu
Hi all,

Tried not to touch the keyboard/mouse at all during the add operation
of some multi-module project, and the same thing happened again but with
 different project (now I have two projects duplicated instead of one --
the conclusion might be that it is better to do a refresh while adding
projects ;-)

Adrian.

Here is the stack trace:

ognl.MethodFailedException: Method removeProject failed for object
[EMAIL PROTECTED]
[javax.jdo.JDOUserException: One or more instances could not be deleted
NestedThrowables:
javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM
BUILDDEFINITION WHERE ID = ?
NestedThrowables:
SQL Exception: DELETE on table 'BUILDDEFINITION' caused a violation of
foreign key constraint 'PROJECT_BUILP8_FK2' for key (4).  The statement
has been rolled back.]
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:796)
at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61)
at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819)
at ognl.ASTMethod.getValueBody(ASTMethod.java:75)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
at ognl.SimpleNode.getValue(SimpleNode.java:210)
at ognl.Ognl.getValue(Ognl.java:333)
at ognl.Ognl.getValue(Ognl.java:378)
at ognl.Ognl.getValue(Ognl.java:357)
at
org.codehaus.plexus.formica.action.DeleteEntity.uponSuccessfulValidation(DeleteEntity.java:57)
at
org.codehaus.plexus.formica.action.DeleteEntity.execute(DeleteEntity.java:47)
at
org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve.java:68)
at
org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipeline.java:70)
at org.codehaus.plexus.summit.Summit.doGet(Summit.java:54)
at org.codehaus.plexus.summit.Summit.doPost(Summit.java:108)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)
/-- Encapsulated exception \
javax.jdo.JDOUserException: One or more instances could not be deleted
at
org.jpox.AbstractPersistenceManager.deletePersistentAll(AbstractPersistenceManager.java:1438)
at
org.jpox.store.rdbms.scostore.ElementContainerStore.clear(ElementContainerStore.java:595)
at
org.jpox.store.mapping.CollectionMapping.preDelete(CollectionMapping.java:304)
at
org.jpox.store.mapping.CollectionMapping.deleteDependent(CollectionMapping.java:332)
at
org.jpox.store.rdbms.table.ClassTable.deleteDependent(ClassTable.java:2280)
at org.jpox.store.StoreManager.deleteDependent(StoreManager.java:838)
at
org.jpox.state.StateManagerImpl.deletePersistent(StateManagerImpl.java:4049)
at
org.jpox.AbstractPersistenceManager.internalDeletePersistent(AbstractPersistenceManager.java:1391)
at
org.jpox.AbstractPersistenceManager.deletePersistent(AbstractPersistenceManager.java:1402)
at
org.codehaus.plexus.jdo.PlexusJdoUtils.removeObject(PlexusJdoUtils.java:53)
at
org.apache.maven.continuum.store.JdoContinuumStore.removeObject(JdoContinuumStore.java:969)
at
org.apache.maven.continuum.store.JdoContinuumStore.removeProject(JdoContinuumStore.java:901)
at
org.apache.maven.continuum.DefaultContinuum.removeProject(DefaultContinuum.java:328)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:491)
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:785)
at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61)
at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819)
at 

Re: Plugin Documentation and the Index Page

2006-10-19 Thread Manuel Ledesma

I downloaded version 2.0.5-SNAPSHOT, still getting the same problem. Do I
have to specifically tell which version of plugin-plugin to use ?


jrduncans wrote:
 
 Thanks.
 
 (Notes for anyone else: 2.0.5-SNAPSHOT builds are here:
 http://maven.zones.apache.org/~maven/builds/branches/maven-2.0.x/ )
 
 -Stephen
 
 On 9/21/06, Brett Porter [EMAIL PROTECTED] wrote:
 It was a bug in the current release of the plugin plugin. You can use
 the new version, but it also requires a snapshot of maven 2.0.5. I'm
 hoping to work on correcting that shortly, but for now if you grab a
 Maven nightly and build the plugin plugin from SVN you should be good
 to go.

 - Brett

 On 22/09/06, Stephen Duncan [EMAIL PROTECTED] wrote:
  I'm working on a new maven plugin (see an upcoming e-mail soon), and
  I'm trying to create  the site generally matching the best
  practices of the new maven plugin sites.  I'm having trouble though: I
  have an src/site/apt/index.apt, but the contents of index.html is the
  auto-generated plugin documentation.  Am I doing something wrong?  Is
  there some workaround?
 
  --
  Stephen Duncan Jr
  www.stephenduncanjr.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Apache Maven - http://maven.apache.org
 Better Builds with Maven book - http://library.mergere.com/

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


 
 
 -- 
 Stephen Duncan Jr
 www.stephenduncanjr.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Plugin-Documentation-and-the-Index-Page-tf2315168.html#a6896561
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Jar's in ear file root

2006-10-19 Thread Jeff Mutonho

The only dependency I have in my ear project's pom is the war file ,
as specified below :

dependencies
   dependency
 groupIdza.co.pragmaticus.jportal/groupId
 artifactIdjportal/artifactId
 version1.0.0/version
 typewar/type
   /dependency
 /dependencies


But my resulting ear file  has extra jars in its root (eg
j2ee-1.3.0.jar ,log4j-1.2.13.jar) , together with my jportal-1.0.0.war
.
Where are these extra jars coming from?


Jeff  Mutonho

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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



Re: Dummy question my first Maven project: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist ...

2006-10-19 Thread Wendy Smoak

On 10/19/06, Xavier Outhier [EMAIL PROTECTED] wrote:

2) But here is what I get:
D:\tmp\sandboxmvn --version
Maven version: 2.0.4


(Strange, since above you say you installed 2.0.3.)


D:\tmp\sandbox*mvn archetype:create -DgroupId=com.mycompany.app
-DartifactId=myApp*
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does
not exist or no valid version could be found


It should look like this:
http://wiki.wsmoak.net/cgi-bin/wiki.pl?ArchetypeCreate

(Without the checksum errors, and with a lot more things downloaded,
since you're starting from an empty local repository.)

In your case, it doesn't look like it even *tries* to download
anything.  Is there a firewall or a proxy involved?


[INFO]

[INFO] For more information, run Maven with the -e switch


This means, 'execute the same command you just used, but add -e to it.'  So

mvn archetype:create -e ...

Nicolas' advice to try -U (update) is also good (but this really
should work out of the box...)

--
Wendy

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



Re: Downloading Maven 2 documentation

2006-10-19 Thread Daniel Serodio
Wayne Fay wrote:
 I believe the entire Maven website is generated by Maven itself.

 You'll need to checkout the maven-site component from SVN and then
 build it with mvn site.
Can't we include this documentation in the download?

TIA,
Daniel Serodio

 Wayne

 On 10/18/06, Ian Springer [EMAIL PROTECTED] wrote:
 There are a number of good tools for downloading entire web sites, or
 subtrees of web sites, for offline browsing. I recommend HTTrack
 (http://www.httrack.com/), or if you prefer a command line tool, you can
 use wget or curl.

 | -Original Message-
 | From: Carlos A. Carnero Delgado [mailto:[EMAIL PROTECTED]
 | Sent: Wednesday, October 18, 2006 3:01 PM
 | To: Maven Users List
 | Subject: Downloading Maven 2 documentation
 |
 | Hello,
 |
 | I'm a new Maven user, and I'd like to have a local copy of the
 | documentation
 | (http://maven.apache.org/guides/getting-started/index.html
 | and all the documents linked from
 | http://maven.apache.org/guides/index.html) for offline browsing while
 | commuting.
 |
 | What's the best way? I could not find a download link.
 |
 | Best regards,
 | Carlos.
 | --
 | nick grah windows just crashed again, unstable crap.
 | yukito Windows isn't unstable, it's just spontaneous.
 |


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



Re: Jar's in ear file root

2006-10-19 Thread Marco Mistroni

hello,
 check all dependencies in your projects (if it is  a mulitproject)that
are part of the ear and i m sure you will find the two extra jars

hth
marco

On 10/19/06, Jeff Mutonho [EMAIL PROTECTED] wrote:


The only dependency I have in my ear project's pom is the war file ,
as specified below :

dependencies
dependency
  groupIdza.co.pragmaticus.jportal/groupId
  artifactIdjportal/artifactId
  version1.0.0/version
  typewar/type
/dependency
  /dependencies


But my resulting ear file  has extra jars in its root (eg
j2ee-1.3.0.jar ,log4j-1.2.13.jar) , together with my jportal-1.0.0.war
.
Where are these extra jars coming from?


Jeff  Mutonho

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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




Complete offline? was: (Re: Dummy question my first Maven project[...])

2006-10-19 Thread Xavier Outhier

Wendy Smoak wrote:

On 10/19/06, Xavier Outhier [EMAIL PROTECTED] wrote:

2) But here is what I get:
D:\tmp\sandboxmvn --version
Maven version: 2.0.4


(Strange, since above you say you installed 2.0.3.)

It was just a copy/paste from the page mentionned above. So no magic here.



D:\tmp\sandbox*mvn archetype:create -DgroupId=com.mycompany.app
-DartifactId=myApp*
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does
not exist or no valid version could be found


It should look like this:
http://wiki.wsmoak.net/cgi-bin/wiki.pl?ArchetypeCreate

(Without the checksum errors, and with a lot more things downloaded,
since you're starting from an empty local repository.)

In your case, it doesn't look like it even *tries* to download
anything.  Is there a firewall or a proxy involved?


Yes. I fixed it by creating a settings.xml in the .m2 directory.
Now even without this file, I'm able to run the simple command.
Does it mean that Maven need always to access internet to work?
For me it seems like it's not a complete installation. I suppose it's
a JIT philosophy. Where can I find more information about this topic?

Maven seems a quite interesting tool. I'll continue to dig. :)
[...]

Thanks for the very fast answers. :)

Xavier.


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



how to chain maven goals

2006-10-19 Thread Los Morales

Hi,

I would like to know how to chain a series of maven goals together (much 
like Ant's dependency function).  For example, I want to do this with one 
command:  mvn clean; mvn compile; mvn install; mvn package; mvn install.  
How do I go about accomplishing this (if its possible).  Thanks in advance.


-los

_
Find a local pizza place, music store, museum and more…then map the best 
route!  http://local.live.com?FORM=MGA001



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



Re: Jar's in ear file root

2006-10-19 Thread Jeff Mutonho

On 10/19/06, Marco Mistroni [EMAIL PROTECTED] wrote:

hello,
  check all dependencies in your projects (if it is  a mulitproject)that
are part of the ear and i m sure you will find the two extra jars

hth
 marco




Makes sense.I have a few jars that are in the top level pom (because
they're needed by more than one sub -modules) .
How do I tell Maven not to include these jars from the EAR file?

--


Jeff  Mutonho

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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



RE: how to chain maven goals

2006-10-19 Thread Artamonov, Juri
Just start mvn clean compile package install. They will be perfomed
according to defined in maven build life cycle.

-Original Message-
From: Los Morales [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 19, 2006 5:03 PM
To: users@maven.apache.org
Subject: how to chain maven goals


Hi,

I would like to know how to chain a series of maven goals together (much

like Ant's dependency function).  For example, I want to do this with
one 
command:  mvn clean; mvn compile; mvn install; mvn package; mvn install.

How do I go about accomplishing this (if its possible).  Thanks in
advance.

-los

_
Find a local pizza place, music store, museum and more...then map the
best 
route!  http://local.live.com?FORM=MGA001


-
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: how to chain maven goals

2006-10-19 Thread Dan Tran

mvn clean install

or bind clean goal to initialize phase then

mvn install will do everything

btw, there is a  good book at maven site

http://maven.apache.org/articles.html

-D


On 10/19/06, Los Morales [EMAIL PROTECTED] wrote:


Hi,

I would like to know how to chain a series of maven goals together (much
like Ant's dependency function).  For example, I want to do this with one
command:  mvn clean; mvn compile; mvn install; mvn package; mvn install.
How do I go about accomplishing this (if its possible).  Thanks in
advance.

-los

_
Find a local pizza place, music store, museum and more…then map the best
route!  http://local.live.com?FORM=MGA001


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




Problem using xdoc plugin

2006-10-19 Thread Venky Kandaswamy \(IT\)
All,

   I am new to Maven. Tried running maven 1.x with xdoc:transform goal and it 
keeps asking for the jaxb plugins. I downloaded the plugins and put them in the 
repository and renamed them with the version jwsdp-1.5 in the name etc., 
according to the instructions on the maven jaxb plugin site at sf.net. 

   Still does not work. Any suggestions? 

__
Venky Kandaswamy




Re: Jar's in ear file root

2006-10-19 Thread Marco Mistroni

hi,
try to use  scopeprovided/scope for those jars

hth
marco

On 10/19/06, Jeff Mutonho [EMAIL PROTECTED] wrote:


On 10/19/06, Marco Mistroni [EMAIL PROTECTED] wrote:
 hello,
   check all dependencies in your projects (if it is  a
mulitproject)that
 are part of the ear and i m sure you will find the two extra jars

 hth
  marco



Makes sense.I have a few jars that are in the top level pom (because
they're needed by more than one sub -modules) .
How do I tell Maven not to include these jars from the EAR file?

--


Jeff  Mutonho

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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




Re: Complete offline? was: (Re: Dummy question my first Maven project[...])

2006-10-19 Thread Nicolas DE LOOF


Maven is only a container for plugins. The installation includes the 
required base to run maven, but all plugin and the libs they required 
are downloaded.

This make the first maven runs long as lot's of jars are downloaded.
After a first run worked, no more internet connexion is required to run 
maven.


Nico.


Yes. I fixed it by creating a settings.xml in the .m2 directory.
Now even without this file, I'm able to run the simple command.
Does it mean that Maven need always to access internet to work?
For me it seems like it's not a complete installation. I suppose it's
a JIT philosophy. Where can I find more information about this topic?

Maven seems a quite interesting tool. I'll continue to dig. :)
[...]

Thanks for the very fast answers. :)

Xavier.


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



This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



Re: Complete offline? was: (Re: Dummy question my first Maven project[...])

2006-10-19 Thread Xavier Outhier

Nicolas DE LOOF wrote:


Maven is only a container for plugins. The installation includes the 
required base to run maven, but all plugin and the libs they required 
are downloaded.

This make the first maven runs long as lot's of jars are downloaded.
After a first run worked, no more internet connexion is required to 
run maven.


Nico.

OK. Thanx.

X.


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



Re: [m2] Surefire-Plugin: how to get aggregated XML?

2006-10-19 Thread Gisbert Amm
If it would exist, I could open this *one* file to receive the JUnit 
statistics instead of opening up to serveral *hundret* files (in large 
projects with lots of tests) to collect the data this way, which seems 
not the most performant thing to do.


The Surefire plugin could easily add up the errors and failures while it 
runs and write the results to a file if a certain switch is turned on 
(let's say generateXml, e.g.) without significant lack of performance. 
The Maven1 JUnit Plugin did so, at least.


-Gisbert

dvicente wrote:

ok, i haven't understood.

But why do you want this aggregated xml file ?


Gisbert Amm-3 wrote:

That's not what I meant. The TEST-.yyy.xml files are there, indeed, 
but no file with *aggregated* test results.


Of course I can go through the single files and collect errors and 
failures from there (that's what I actually do ATM). But the Surefire 
plugin could do that much more efficent during it's execution and write 
it to a neat XML file afterwards as it was in Maven 1.


-Gisbert

dvicente wrote:


i only know Maven 2 but in maven 2 surefire generates this xml.

see in directory /myProject/target/surefire-reports, you must have
TEST-.yyy.xml



Gisbert Amm-3 wrote:


A week passed since I've posted this question and I got no reply so far. 
Can anyone say something about it, please?


-Gisbert

Gisbert Amm wrote:



Hi,

in Maven1 the Junit Plugin wrote the test data aggregated into a file 
named TESTS-TestSuites.xml. How can I achieve this with the Maven2 
Surefire plugin?


-Gisbert


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







--
Gisbert Amm
Softwareentwickler Infrastruktur

WEB.DE GmbH
Brauerstraße 48 · D-76135 Karlsruhe
Tel. +49-721-91374-4224 · Fax +49-721-91374-2740
[EMAIL PROTECTED] · http://www.web.de/

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








--
Gisbert Amm
Softwareentwickler Infrastruktur

WEB.DE GmbH
Brauerstraße 48 · D-76135 Karlsruhe
Tel. +49-721-91374-4224 · Fax +49-721-91374-2740
[EMAIL PROTECTED] · http://www.web.de/

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



Re: Complete offline? was: (Re: Dummy question my first Maven project[...])

2006-10-19 Thread Wayne Fay

No internet connection is required but you should probably run mvn
-o ... to specify offline or else you will get some complaints (and
possibly error out rather than building successfully) due to not being
online while building with Maven.

Also if you start using a new plugin in your project or add a new
dependency, you **will** need to connect to the internet while you run
Maven to download the files.

Wayne

On 10/19/06, Xavier Outhier [EMAIL PROTECTED] wrote:

Nicolas DE LOOF wrote:

 Maven is only a container for plugins. The installation includes the
 required base to run maven, but all plugin and the libs they required
 are downloaded.
 This make the first maven runs long as lot's of jars are downloaded.
 After a first run worked, no more internet connexion is required to
 run maven.

 Nico.
OK. Thanx.

X.


-
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: Complete offline? was: (Re: Dummy question my first Maven project[...])

2006-10-19 Thread Xavier Outhier

Nicolas DE LOOF wrote:


Maven is only a container for plugins. The installation includes the 
required base to run maven, but all plugin and the libs they required 
are downloaded.

This make the first maven runs long as lot's of jars are downloaded.
After a first run worked, no more internet connexion is required to 
run maven.


Nico.

[...]
Is there a way to download all at once?

X.


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



Re: profiles.xml question

2006-10-19 Thread Attila Mezei-Horvati
Mick,

I just discovered how to use profiles myself. I hope
the following will help.
First, you don't need to run mvn always and check the
end results to make sure everything is alright.

Just do:
mvn help:active-profiles 
and it will list you all the profiles which will be
used.

In my case I could get profiles working in one of
these ways:
1. add activeprofile to settings.xml
activeProfiles
activeProfiledefault/activeProfile
/activeProfiles

2. specify profiles as param values as:

profile
idskipunittest/id
properties
   
maven.test.skiptrue/maven.test.skip
/properties
activation
  property
nametest/name
  /property
/activation
/profile
then call 

mvn help:active-profiles -Dtest
or
mvn install -Dtest

etc.. Note that each property is a separate param as
mvn help:active-profiles -Dtest -DtoProduction -Dmyapp

where test, toProduction, myapp are different profiles
I want to enable.

I couldn't get -P to use the correct profiles. Env I
think it worked but it is more to type. :)

See also this link for more info:
http://maven.apache.org/guides/introduction/introduction-to-profiles.html

good luck,
Attila

 

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

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



Re: SCM URL field not sticky/not updating on web interface

2006-10-19 Thread Michael Kearney
(intro removed)
 I'm running Continuum 1.0.3 on Solaris 10 and I
 originally ran as root but switched to user 'continuum'.  Any idea what I 
 might
 have done to myself?
 
  Thanks,
Michael
 
 
Michael Kearney michaelkearney at comcast.net writes:
Well,  it was a self-inflicted problem.  
I want to use the RUN_AS_USER setting to be 'continuum'.
When I do that, the continuum user can't write the .pid file so 
I changed the permissions on the directory but now the GUI doesn't work.

I reinstalled and am running sucessfully as root.

So my general question is:

Has anyone sucessfully configured Continuum on a Unix machine to run
under a different (non-root) userid?
What are the best practices for the userid that owns the CVS database,
published website, and other build products?

 Best Regards,
  Michael






Re: adding dependency jars in jar project

2006-10-19 Thread Wayne Fay

I see you're using Nabble, so you should be able to easily search this
list and find plenty of examples using the Assembly plugin. Search
using the term maven-assembly-plugin.

Having said that, this discussion (from yesterday) might be helpful,
as it sounds similar to what you are looking for:

From: Mirko Leschikar [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Date: Oct 18, 2006 3:11 AM
Subject: Re: Aggregate m2 modules in a unique jar file

Wayne

On 10/19/06, Marek Chowaniok [EMAIL PROTECTED] wrote:


Hi
I have problem with creating jar project which has dependecy on another
projects.

I know that the 'jar project' will not include dependecy jars (as 'war
project' does) and I have read that the assembly plugin should do it
somehow.

I am playing with it few days, trying find out as much as possible but
without success.

Here are my projects :

REPORTGENERATOR
 |-ReportGeneratorMpress
 |-ReportGeneratorLogic
 |-ReportGeneratorHibernate
 |-ReportGeneratorCommon

I need to create 1 jar file with all those modules. This is done in
ReportGeneratorLogic (we used for building MyEclipseIde software and we are
developing in Eclipse).

How should look the result:

ReportGeneratorLogic.jar:
 |-com
  |-xyz
  |-report  (here are sources of those modules)
 |-lib (here are dependecy jars from all those modules)
 |-META-INF (meta-inf files)

Can you help me to create this jar file? Should I use assembly (and how) or
something else?
Where should I configure assembly plugin? in Parent pom or in
ReportGeneratoLogic pom.xml ?

Thanks in advance
--
View this message in context: 
http://www.nabble.com/adding-dependency-jars-in-jar-project-tf2472625.html#a6894579
Sent from the Maven - Users mailing list archive 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: Dependencies in EJB project

2006-10-19 Thread Wayne Fay

There is no problem, this is the normal behavior for Maven Jars, you
simply were expecting more than you got. Jar packaging projects do not
bundle other jars into the resulting output Jar.

You will need to use the maven-assembly-plugin to create the Jar you
desire, or perhaps package your EJB into an EAR (which does package
the dependencies).

Wayne

On 10/19/06, horse [EMAIL PROTECTED] wrote:


Hi,

i am using Maven to create a Standalone EJB jar. in Eclipse all the required
libraries (*.jars) which are defined in my project.xml under the
dependencies tag are all properly included. but in the generated EJB, the
the jars are not included in my ejb-jar file. what could be the problem?
--
View this message in context: 
http://www.nabble.com/Dependencies-in-EJB-project-tf2473101.html#a6895853
Sent from the Maven - Users mailing list archive 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: assembly warning message

2006-10-19 Thread pjungwir

This refers to the files being tarred?

If so, it's because different versions of tar support long filenames in
different ways. A good explanation is in the Ant user manual, under Core
Tasks : Tar. Because of the frames, I can't give a direct link, but here is
the manual: 

http://ant.apache.org/manual/

I bet maven supports the same options.

Paul



-- 
View this message in context: 
http://www.nabble.com/assembly-warning-message-tf2472583.html#a6898577
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: profiles.xml question

2006-10-19 Thread Greg_Vaughn
I'm by no means an expert on this. Your situation is much more complex 
than the profile stuff I've used. I've not used a profiles.xml but instead 
put them in the pom.xml. I suspect there's some sort of confusion between 
the multiple files as well as setting activeProfile and 
activeByDefault in different places.

There's one issue I do see, but it could be a typo. If you're using the 
system property to activate the profile, you should use:

mvn -Denv=qa clean package -e

Note the equals sign instead of dash.

The other suggestion you got to use 'mvn help:active-profiles' is a good 
one and helped me to debug some confusion I had.

Greg Vaughn
[EMAIL PROTECTED]

Mick Knutson [EMAIL PROTECTED] wrote on 10/18/2006 06:36:05 PM:

 Here is what I now have working:
 
 with mvn clean package -e or mvn -Denv-qa clean package -e
 
 None of the profiles get picked up correctly and all my parameters are
 missing.
 
 
 mvn -P qa clean package -e works just fine with the configuration 
below.
 
 In the settings.xml the envdev/env tag seems to override what is in 
the
 profiles.xml, but when I remove it, then env seems to work if I specify 
the
 -P on the command line
 
 *** BUT, I want to be able to run with zero parameters on the command 
line
 and run the default profile but that does not seem to work
 
 
 
profile
 idlocal/id
 
 properties
 envdev/env
 
 /properties
 /profile
 
 /profiles
 
 !--
| activeProfiles
| List of profiles that are active
 for all builds.
|--
 activeProfiles
 activeProfilelocal/activeProfile
 /activeProfiles
 
 /settings
 
 
 profiles.xml:
 
 
 profilesXml
 profiles
 
 
 !----
 !-- Local developer Profile. --
 
 !----
 profile
 iddev/id
 activation
 activeByDefault/
 /activation
 properties
 envdev/env
 compiler.debugtrue/compiler.debug
 
 jazn.url${jazn.url.dev}/jazn.url
 jazn.bind.dn${jazn.bind.dn.dev}/jazn.bind.dn
 jazn.samaccount${jazn.samaccount.dev}/jazn.samaccount
 
 /properties
 /profile
 
 profile
 idqa/id
 activation
 property
 nameenv/name
 valueqa/value
 /property
 /activation
 properties
 envqa/env
 jazn.url${jazn.url.qa}/jazn.url
 jazn.bind.dn${jazn.bind.dn.qa}/jazn.bind.dn
 jazn.samaccount${jazn.samaccount.qa}/jazn.samaccount
 /properties
 /profile
 
 profile
 iduat/id
 activation
 property
 nameenv/name
 valueuat/value
 /property
 /activation
 properties
 envuat/env
 jazn.url${jazn.url.uat}/jazn.url
 jazn.bind.dn${jazn.bind.dn.uat}/jazn.bind.dn
 jazn.samaccount${jazn.samaccount.uat}/jazn.samaccount
 /properties
 /profile
 
 profile
 idprod/id
 activation
 property
 nameenv/name
 valueprod/value
 /property
 /activation
 properties
 envprod/env
 jazn.url${jazn.url.prod}/jazn.url
 jazn.bind.dn${jazn.bind.dn.prod}/jazn.bind.dn
 jazn.samaccount${jazn.samaccount.prod}/jazn.samaccount
 /properties
 /profile
 
 
 /profiles
 /profilesXml

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: Dependencies in EJB project

2006-10-19 Thread maven_learner

Hi Wayne!

Thanks for your reply. Does that mean i have to include the jars (which i
need inside my ejb-jar)  in my ear project?

which means i need to do the dependencies in my ejb project and my ear
project , assuming my ear project has a dependency on the ejb project.

thank you very much.



Wayne Fay wrote:
 
 There is no problem, this is the normal behavior for Maven Jars, you
 simply were expecting more than you got. Jar packaging projects do not
 bundle other jars into the resulting output Jar.
 
 You will need to use the maven-assembly-plugin to create the Jar you
 desire, or perhaps package your EJB into an EAR (which does package
 the dependencies).
 
 Wayne
 
 On 10/19/06, horse [EMAIL PROTECTED] wrote:

 Hi,

 i am using Maven to create a Standalone EJB jar. in Eclipse all the
 required
 libraries (*.jars) which are defined in my project.xml under the
 dependencies tag are all properly included. but in the generated EJB,
 the
 the jars are not included in my ejb-jar file. what could be the problem?
 --
 View this message in context:
 http://www.nabble.com/Dependencies-in-EJB-project-tf2473101.html#a6895853
 Sent from the Maven - Users mailing list archive 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Dependencies-in-EJB-project-tf2473101.html#a6899106
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: profiles.xml question

2006-10-19 Thread Mick Knutson

Everything seems to work if I FORCE the -P on the command line.

My issue now is that I want to run without the -P on the command line as
well to use the default profile, but that does not seem to work. If I use
profiles, I must ALWAYS specify the profiles.

Is there a way around this?



On 10/19/06, Attila Mezei-Horvati [EMAIL PROTECTED] wrote:


Mick,

I just discovered how to use profiles myself. I hope
the following will help.
First, you don't need to run mvn always and check the
end results to make sure everything is alright.

Just do:
mvn help:active-profiles
and it will list you all the profiles which will be
used.

In my case I could get profiles working in one of
these ways:
1. add activeprofile to settings.xml
activeProfiles
activeProfiledefault/activeProfile
/activeProfiles

2. specify profiles as param values as:

profile
idskipunittest/id
properties

maven.test.skiptrue/maven.test.skip
/properties
activation
  property
nametest/name
  /property
/activation
/profile
then call

mvn help:active-profiles -Dtest
or
mvn install -Dtest

etc.. Note that each property is a separate param as
mvn help:active-profiles -Dtest -DtoProduction -Dmyapp

where test, toProduction, myapp are different profiles
I want to enable.

I couldn't get -P to use the correct profiles. Env I
think it worked but it is more to type. :)

See also this link for more info:
http://maven.apache.org/guides/introduction/introduction-to-profiles.html

good luck,
Attila



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

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





--

Thanks

DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson


RE: ftp-wagon NullPointerException

2006-10-19 Thread pjungwir

Thanks, this is exactly what I needed to know. Works fine! I filed a jira for
the NPE, because wagon should give you a sensible error message instead.

Paul


Zeltner Martin wrote:
 
 Hello Paul
 
 The NullPointerException seams to occur when the ftp wagon tries to get
 the authentication data. Try to set the following settings in your
 settings.xml (default location ~/.m2).
 
 settings
 ...
 servers
 server
 idakathist-repository/id
 usernamexyz_user/username
 passwordxyz_password/password
 /server
 /servers
 ...
 /settings
 
 
 Cheers,
 Martin
 http://el4j.sf.net
 
  
 
 -Original Message-
 From: pjungwir [mailto:[EMAIL PROTECTED] 
 Sent: Mittwoch, 18. Oktober 2006 22:46
 To: users@maven.apache.org
 Subject: Re: ftp-wagon NullPointerException
 
 
 Ah, there is a beta-1. I tried that, but I still get the same problem.
 
 -- 
 View this message in context: 
 http://www.nabble.com/ftp-wagon-NullPointerException-tf2469460
 .html#a6885414
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/ftp-wagon-NullPointerException-tf2469460.html#a6899162
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: profiles.xml question

2006-10-19 Thread Greg_Vaughn
I'm glad to hear at least the -P approach is working for you. I understand 
your desire to encapsulate the default behavior inside a profile. It's 
something that didn't dawn on me when I implemented something similar. I 
just put my default behavior right in the relevant build section of the 
pom.xml. That gets executed in the common case of not specifying any 
profile. Then I have a profile that overrides those default setts.

Greg Vaughn
[EMAIL PROTECTED]

Mick Knutson [EMAIL PROTECTED] wrote on 10/19/2006 10:24:27 AM:

 Everything seems to work if I FORCE the -P on the command line.
 
 My issue now is that I want to run without the -P on the command line as
 well to use the default profile, but that does not seem to work. If I 
use
 profiles, I must ALWAYS specify the profiles.
 
 Is there a way around this?
 
 
 
 On 10/19/06, Attila Mezei-Horvati [EMAIL PROTECTED] wrote:
 
  Mick,
 
  I just discovered how to use profiles myself. I hope
  the following will help.
  First, you don't need to run mvn always and check the
  end results to make sure everything is alright.
 
  Just do:
  mvn help:active-profiles
  and it will list you all the profiles which will be
  used.
 
  In my case I could get profiles working in one of
  these ways:
  1. add activeprofile to settings.xml
  activeProfiles
  activeProfiledefault/activeProfile
  /activeProfiles
 
  2. specify profiles as param values as:
 
  profile
  idskipunittest/id
  properties
 
  maven.test.skiptrue/maven.test.skip
  /properties
  activation
property
  nametest/name
/property
  /activation
  /profile
  then call
 
  mvn help:active-profiles -Dtest
  or
  mvn install -Dtest
 
  etc.. Note that each property is a separate param as
  mvn help:active-profiles -Dtest -DtoProduction -Dmyapp
 
  where test, toProduction, myapp are different profiles
  I want to enable.
 
  I couldn't get -P to use the correct profiles. Env I
  think it worked but it is more to type. :)
 
  See also this link for more info:
  
http://maven.apache.org/guides/introduction/introduction-to-profiles.html
 
  good luck,
  Attila
 
 
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam protection around
  http://mail.yahoo.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -- 
 
 Thanks
 
 DJ MICK
 http://www.djmick.com
 http://www.myspace.com/mickknutson

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: Dependencies in EJB project

2006-10-19 Thread Wayne Fay

The EAR project should have your EJB project as a dependency.

Then the EJB dependencies should be automatically (transitively)
brought in to the EAR project when you build the EAR. Give it a try
and respond back if it doesn't work for you.

Wayne

On 10/19/06, maven_learner [EMAIL PROTECTED] wrote:


Hi Wayne!

Thanks for your reply. Does that mean i have to include the jars (which i
need inside my ejb-jar)  in my ear project?

which means i need to do the dependencies in my ejb project and my ear
project , assuming my ear project has a dependency on the ejb project.

thank you very much.



Wayne Fay wrote:

 There is no problem, this is the normal behavior for Maven Jars, you
 simply were expecting more than you got. Jar packaging projects do not
 bundle other jars into the resulting output Jar.

 You will need to use the maven-assembly-plugin to create the Jar you
 desire, or perhaps package your EJB into an EAR (which does package
 the dependencies).

 Wayne

 On 10/19/06, horse [EMAIL PROTECTED] wrote:

 Hi,

 i am using Maven to create a Standalone EJB jar. in Eclipse all the
 required
 libraries (*.jars) which are defined in my project.xml under the
 dependencies tag are all properly included. but in the generated EJB,
 the
 the jars are not included in my ejb-jar file. what could be the problem?
 --
 View this message in context:
 http://www.nabble.com/Dependencies-in-EJB-project-tf2473101.html#a6895853
 Sent from the Maven - Users mailing list archive 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]




--
View this message in context: 
http://www.nabble.com/Dependencies-in-EJB-project-tf2473101.html#a6899106
Sent from the Maven - Users mailing list archive 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: can't remove project

2006-10-19 Thread David J. M. Karlsen

Adrian Herscu wrote:

Hi all,

Tried not to touch the keyboard/mouse at all during the add operation
of some multi-module project, and the same thing happened again but with
 different project (now I have two projects duplicated instead of one --
the conclusion might be that it is better to do a refresh while adding
projects ;-)
  

[stack-trace snipped]

Same problem here.
Is it possible to fix this by nuking the working-directory dir - or are 
you saying that doing so won't fix it?
It'd rather scrap the whole setup - as other projects are using the same 
continuum instance as well.



Punkin Head wrote:
  

We had a problem similar to this as well and were able to delete them
by shutting down Continuum and going into the build directory folder
and deleting the projects from there, then they would remove from the
GUI.  FYI, Our problem occurred because I refreshed the page before
the projects were all completely added, at least that's how I was able
to re-create it.

On 5/13/06, Wayne Fay [EMAIL PROTECTED] wrote:


Based on the error below, it looks like the deletes aren't cascading
properly.

You could probably log in to the database and blow away individual
projects if you dug around and figured out how tables and foreign keys
are linked up.

This seems to be a bug, I'd file it in JIRA. Delete a project was
just not tested enough before release, apparently.

Wayne

On 5/13/06, Brian E. Fox [EMAIL PROTECTED] wrote:
  

Somehow I have a bunch of projects that got duplicated but I can't
remove them. Here's the error, is there anything I can do other than
blow away the db and start over?

ognl.MethodFailedException: Method removeProject failed for object
[EMAIL PROTECTED]
[javax.jdo.JDOUserException: One or more instances could not be deleted
NestedThrowables:
javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM
BUILDDEFINITION WHERE ID = ?
NestedThrowables:
SQL Exception: DELETE on table 'BUILDDEFINITION' caused a violation of
foreign key constraint 'PROJECT_BUILP8_FK2' for key (86).  The


statement
  

has been rolled back.]





--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com




Mojo and it's own dependencies

2006-10-19 Thread Hermod Opstvedt
Hi

Is there a Maven helper class that can be called from a Mojo that will give
the Mojo access to it's own dependencies?

Hermod


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



How do i use the hibernate3 plugin from codehause

2006-10-19 Thread Yves Van Steen
Hey,

 

I want to create ddl sql files from my hbm files but none of the goals of
the hibernate3 plugin actually works?

Is this plugin useable or still in development?

 

If possible I also want to execute these sql files to my database server.
Anybody have any ideas?

 

My configuration is the same as on the info site

HYPERLINK
http://mojo.codehaus.org/hibernate3-maven-plugin/howto.htmlhttp://mojo.cod
ehaus.org/hibernate3-maven-plugin/howto.html

 

OUTPUT

 

Hibernate3:hbm2java = generates the java files but ends with an error

hibernate3:schema-update = returns success but does nothing

hibernate3:hbm2doc = class not found exception
org/hibernate/engine/query/sql/NativeSQLQueryReturn

hibernate3:hbm2hbmxml = class not found exception
org/hibernate/engine/query/sql/NativeSQLQueryReturn

Hibernate3:hbm2ddl  hibernate3:schema-export (any difference between the 2
???) returns this

 

[INFO] Configuration XML file loaded: G:\PROJECTS\sw - admin
baert\source\Common

\src\main\resources\hibernate.cfg.xml

[INFO] Configuration Properties file loaded: G:\PROJECTS\sw - admin
baert\source

\Common\src\main\resources\database.properties

[WARNING] 1 error(s) occurred while performing hbm2ddl.

[WARNING] Error #1: com.mysql.jdbc.CommunicationsException: Communications
link

failure due to underlying exception:

 

** BEGIN NESTED EXCEPTION **

 

java.net.SocketException

MESSAGE: java.net.ConnectException: Connection refused: connect

 

STACKTRACE:

 

java.net.SocketException: java.net.ConnectException: Connection refused:
connect

 

at
com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.ja

va:156)

at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:276)

at com.mysql.jdbc.Connection.createNewIO(Connection.java:2641)

at com.mysql.jdbc.Connection.init(Connection.java:1531)

at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java

:266)

at java.sql.DriverManager.getConnection(DriverManager.java:525)

at java.sql.DriverManager.getConnection(DriverManager.java:140)

at
org.hibernate.connection.DriverManagerConnectionProvider.getConnectio

n(DriverManagerConnectionProvider.java:110)

at
org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.prepare(Ma

nagedProviderConnectionHelper.java:28)

at
org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:178

)

at
org.codehaus.mojo.hibernate3.exporter.SchemaExportMojo.doSchemaExport

(SchemaExportMojo.java:79)

at
org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(H

bm2DDLExporterMojo.java:56)

at
org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateE

xporterMojo.java:59)

at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi

nManager.java:412)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

ultLifecycleExecutor.java:534)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone

Goal(DefaultLifecycleExecutor.java:488)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau

ltLifecycleExecutor.java:458)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan

dleFailures(DefaultLifecycleExecutor.java:306)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen

ts(DefaultLifecycleExecutor.java:273)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi

fecycleExecutor.java:140)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

 

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

 

 

** END NESTED EXCEPTION **


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.5/483 - Release Date: 18/10/2006
 


Re: How do i use the hibernate3 plugin from codehause

2006-10-19 Thread Charles Harvey III

No.  It does not work.  I have been trying to get that thing to generate
SQL files for a month now.  Don't bother wasting your time.


Charlie


Yves Van Steen said the following on 10/19/2006 1:00 PM:

Hey,

 


I want to create ddl sql files from my hbm files but none of the goals of
the hibernate3 plugin actually works?

Is this plugin useable or still in development?

 


If possible I also want to execute these sql files to my database server.
Anybody have any ideas?

 


My configuration is the same as on the info site

HYPERLINK
http://mojo.codehaus.org/hibernate3-maven-plugin/howto.htmlhttp://mojo.cod
ehaus.org/hibernate3-maven-plugin/howto.html

 


OUTPUT

 


Hibernate3:hbm2java = generates the java files but ends with an error

hibernate3:schema-update = returns success but does nothing

hibernate3:hbm2doc = class not found exception
org/hibernate/engine/query/sql/NativeSQLQueryReturn

hibernate3:hbm2hbmxml = class not found exception
org/hibernate/engine/query/sql/NativeSQLQueryReturn

Hibernate3:hbm2ddl  hibernate3:schema-export (any difference between the 2
???) returns this

 


[INFO] Configuration XML file loaded: G:\PROJECTS\sw - admin
baert\source\Common

\src\main\resources\hibernate.cfg.xml

[INFO] Configuration Properties file loaded: G:\PROJECTS\sw - admin
baert\source

\Common\src\main\resources\database.properties

[WARNING] 1 error(s) occurred while performing hbm2ddl.

[WARNING] Error #1: com.mysql.jdbc.CommunicationsException: Communications
link

failure due to underlying exception:

 


** BEGIN NESTED EXCEPTION **

 


java.net.SocketException

MESSAGE: java.net.ConnectException: Connection refused: connect

 


STACKTRACE:

 


java.net.SocketException: java.net.ConnectException: Connection refused:
connect

 


at
com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.ja

va:156)

at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:276)

at com.mysql.jdbc.Connection.createNewIO(Connection.java:2641)

at com.mysql.jdbc.Connection.init(Connection.java:1531)

at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java

:266)

at java.sql.DriverManager.getConnection(DriverManager.java:525)

at java.sql.DriverManager.getConnection(DriverManager.java:140)

at
org.hibernate.connection.DriverManagerConnectionProvider.getConnectio

n(DriverManagerConnectionProvider.java:110)

at
org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.prepare(Ma

nagedProviderConnectionHelper.java:28)

at
org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:178

)

at
org.codehaus.mojo.hibernate3.exporter.SchemaExportMojo.doSchemaExport

(SchemaExportMojo.java:79)

at
org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(H

bm2DDLExporterMojo.java:56)

at
org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateE

xporterMojo.java:59)

at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi

nManager.java:412)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

ultLifecycleExecutor.java:534)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone

Goal(DefaultLifecycleExecutor.java:488)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau

ltLifecycleExecutor.java:458)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan

dleFailures(DefaultLifecycleExecutor.java:306)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen

ts(DefaultLifecycleExecutor.java:273)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi

fecycleExecutor.java:140)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

 


at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

 

 


** END NESTED EXCEPTION **


  


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



Re: Why do some jars in ibiblio do not have .pom files?

2006-10-19 Thread Christian Goetze

Dan Tran wrote:

axis group has been moved to org/apache/axis, that could be the reason 
why

nobody
bothers to fix the missing pom.

-


In ibiblio, I see org.apache.axis, and underneath I only see jars, not poms.
--
cg

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



Re: profiles.xml question

2006-10-19 Thread Attila Mezei-Horvati
If you want to run a profile without specifying on the
command line you have two possiblities:
1. set them in the active profiles section (you can
set more than one)
2. trigger the profile activation. The link I sent you
before
(http://maven.apache.org/guides/introduction/introduction-to-profiles.html)
 has examples on it. Or is it the mergere book? If you
don't have that one, I suggest you download it. It is
free (http://www.mergere.com/m2book_download.jsp). One
of these docs have an example on how to activa a
profile based on for ex. java version.

I personally use the command line option. That is when
I know what profile I want to run.

Attila

Everything seems to work if I FORCE the -P on the 
 command line.

 My issue now is that I want to run without the -P on

 the command line 
 as well to use the default profile, but that does
not
 seem to work. If I use profiles, I must ALWAYS 
 specify the profiles.

 Is there a way around this?


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

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



Re: Why do some jars in ibiblio do not have .pom files?

2006-10-19 Thread Dan Tran

are you sure?

http://repo1.maven.org/maven2/org/apache/axis/axis/1.4/

-D


On 10/19/06, Christian Goetze [EMAIL PROTECTED] wrote:


Dan Tran wrote:

 axis group has been moved to org/apache/axis, that could be the reason
 why
 nobody
 bothers to fix the missing pom.

 -

In ibiblio, I see org.apache.axis, and underneath I only see jars, not
poms.
--
cg

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




ear final name issue for installing into local repository

2006-10-19 Thread Mick Knutson

I am running mvn install and have this in my ear pom.xml:

   build

   finalNamenpi-${env}-${project.version}/finalName

   plugins

   plugin
   artifactIdmaven-ear-plugin/artifactId
   configuration
   version1.4/version
   archive
   manifest
   addClasspathtrue/addClasspath
   /manifest
   /archive
   modules
   webModule
   groupIdorg.delta.npi.project-web/groupId
   artifactIdnpi-webproject/artifactId
   contextRootnpi/contextRoot
   /webModule
   /modules
   /configuration
   /plugin


   /plugins
   /build


in target, I get npi-uat-2.0.2.ear created, but in my repository I get
project-ear-2.0.2.ear

How can I synch the names and append the ${env} to it?



--

Thanks

DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson


Re: ear final name issue for installing into local repository

2006-10-19 Thread Wayne Fay

finalName only affects the artifacts produced in target.

Otherwise, Maven uses the proper name derived from the pom.xml
groupId and artifactId to name the item.

There is no way to sync these names unless you change the name in the
artifactId.

Wayne

On 10/19/06, Mick Knutson [EMAIL PROTECTED] wrote:

I am running mvn install and have this in my ear pom.xml:

   build

   finalNamenpi-${env}-${project.version}/finalName

   plugins

   plugin
   artifactIdmaven-ear-plugin/artifactId
   configuration
   version1.4/version
   archive
   manifest
   addClasspathtrue/addClasspath
   /manifest
   /archive
   modules
   webModule
   groupIdorg.delta.npi.project-web/groupId
   artifactIdnpi-webproject/artifactId
   contextRootnpi/contextRoot
   /webModule
   /modules
   /configuration
   /plugin


   /plugins
   /build


in target, I get npi-uat-2.0.2.ear created, but in my repository I get
project-ear-2.0.2.ear

How can I synch the names and append the ${env} to it?



--

Thanks

DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson




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



how to package and install dependecy jars in repository and local target

2006-10-19 Thread Chen, Anning
Is there a way to package or install jars from your dependencies in your
repository or target dirs?  I want to include all jars used for
compilation in the module that I'm building instead of just the module
jar.  That way, I can install the entire package in the repository and
users can get it and use right away without having to add the required
jars.  If this method is not feasible, is there a way to download or
deploy the package from the repository with all its dependency jars?

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



Xdoclet Plugin

2006-10-19 Thread Yves Van Steen
Hey,

 

Little help needed with xdoclet plugin.

  

1)hibernatecf doesn’t add the mappingsfiles to the configuration file.

The mappings files are in the resource folder. Why?

2)The schemaexport tag doesn’t seem to work. Normal ?

3)How can I execute the generated sql file on my database?

  

configuration

  tasks

mkdir
dir=${project.build.directory}/generated-sources/hibernate/cfg /

  

hibernatedoclet 

 
destDir=${project.build.directory}/generated-sources/hibernate/cfg

  fileset dir=src/main/resources includes=**/*.hbm.xml
/

  hibernatecfg

version=3.0

dialect=org.hibernate.dialect.MySQLDialect

driver=com.mysql.jdbc.Driver

jdbcUrl=${db.url}

username=${db.username}

password=${db.password}



  /hibernatecfg

  schemaexport

  quiet=yes text=true drop=false delimiter=;

 
output=${project.build.directory}/generated-sources/installation.sql

  fileset dir=src/main/resources
includes=**/*.hbm.xml/

/schemaexport

/hibernatedoclet

  /tasks

/configuration


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.5/483 - Release Date: 18/10/2006
 


Re: exec:exec java NoClassDefFoundError

2006-10-19 Thread pjungwir

Hello,

The problem appears to be this line:

argumentorg.eclipse.core.launcher.Main -application
org.eclipse.ant.core.antRunner -f
${ECLIPSE_HOME}/plugins/org.eclipse.pde.build_3.2.1.r321_v20060823/scripts/build.xml/argument

That is all one argument, which is not what you intend. Take a look at the
error message:

[INFO] java.lang.NoClassDefFoundError: org/eclipse/core/launcher/Main 
-applicati
on org/eclipse/ant/core/antRunner -f 
C:\Programme\eclipse/plugins/org/eclipse/pd
e/build_3/2/1/r321_v20060823/scripts/build/xml

Java thinks you're trying to run a class with one really long and strange
classname.

Just break your argument into several: one for the classname and others for
the arguments you want to give your application.

Paul
-- 
View this message in context: 
http://www.nabble.com/exec%3Aexec-java-NoClassDefFoundError-tf2472771.html#a6903908
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Mojo and it's own dependencies

2006-10-19 Thread pjungwir

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

Paul
-- 
View this message in context: 
http://www.nabble.com/Mojo-and-it%27s-own-dependencies-tf2474701.html#a6904199
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Re: can't remove project

2006-10-19 Thread Brian E. Fox
Man, I hate this bug. It happened again after adding a new project. Now
I can't delete them and I get a different exception.


ognl.MethodFailedException: Method removeProject failed for object
[EMAIL PROTECTED]
[javax.jdo.JDOUserException: One or more instances could not be deleted
NestedThrowables:
javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM
PROJECTNOTIFIER WHERE ID = ?
NestedThrowables:
SQL Exception: DELETE on table 'PROJECTNOTIFIER' caused a violation of
foreign key constraint 'PROJECT_NOTIRN_FK2' for key (12630).  The
statement has been rolled back.
javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM
PROJECTNOTIFIER WHERE ID = ?
NestedThrowables:
SQL Exception: DELETE on table 'PROJECTNOTIFIER' caused a violation of
foreign key constraint 'PROJECT_NOTIRN_FK2' for key (12628).  The
statement has been rolled back.
javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM
PROJECTNOTIFIER WHERE ID = ?
NestedThrowables:
SQL Exception: DELETE on table 'PROJECTNOTIFIER' caused a violation of
foreign key constraint 'PROJECT_NOTIRN_FK2' for key (12625).  The
statement has been rolled back.
javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM
PROJECTNOTIFIER WHERE ID = ?
NestedThrowables:
SQL Exception: DELETE on table 'PROJECTNOTIFIER' caused a violation of
foreign key constraint 'PROJECT_NOTIRN_FK2' for key (12623).  The
statement has been rolled back.
javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM
PROJECTNOTIFIER WHERE ID = ?
NestedThrowables:
SQL Exception: DELETE on table 'PROJECTNOTIFIER' caused a violation of
foreign key constraint 'PROJECT_NOTIRN_FK2' for key (12631).  The
statement has been rolled back.
javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM
PROJECTNOTIFIER WHERE ID = ?
NestedThrowables:
SQL Exception: DELETE on table 'PROJECTNOTIFIER' caused a violation of
foreign key constraint 'PROJECT_NOTIRN_FK2' for key (12627).  The
statement has been rolled back.
javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM
PROJECTNOTIFIER WHERE ID = ?
NestedThrowables:
SQL Exception: DELETE on table 'PROJECTNOTIFIER' caused a violation of
foreign key constraint 'PROJECT_NOTIRN_FK2' for key (12629).  The
statement has been rolled back.
javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM
PROJECTNOTIFIER WHERE ID = ?
NestedThrowables:
SQL Exception: DELETE on table 'PROJECTNOTIFIER' caused a violation of
foreign key constraint 'PROJECT_NOTIRN_FK2' for key (12624).  The
statement has been rolled back.
javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM
PROJECTNOTIFIER WHERE ID = ?
NestedThrowables:
SQL Exception: DELETE on table 'PROJECTNOTIFIER' caused a violation of
foreign key constraint 'PROJECT_NOTIRN_FK2' for key (12626).  The
statement has been rolled back.]
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:796)
at
ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61)
at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819)
at ognl.ASTMethod.getValueBody(ASTMethod.java:75)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
at ognl.SimpleNode.getValue(SimpleNode.java:210)
at ognl.Ognl.getValue(Ognl.java:333)
at ognl.Ognl.getValue(Ognl.java:378)
at ognl.Ognl.getValue(Ognl.java:357)
at
org.codehaus.plexus.formica.action.DeleteEntity.uponSuccessfulValidation
(DeleteEntity.java:57)
at
org.codehaus.plexus.formica.action.DeleteEntity.execute(DeleteEntity.jav
a:47)
at
org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve
.java:68)
at
org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipe
line.java:70)
at org.codehaus.plexus.summit.Summit.doGet(Summit.java:54)
at org.codehaus.plexus.summit.Summit.doPost(Summit.java:108)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH
andler.java:294)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon
text.java:525)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at
org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218
)
at

Re: Maven 2.0 deploy to IBM WAS 5

2006-10-19 Thread David J. M. Karlsen

Wayne Fay wrote:

I'd be surprised if Cargo didn't already support WAS 5. Check the
Cargo site for details about their Maven plugin and configuration.
Have a look in codehaus' sandbox - a collegue of mine wrote wrappers for 
the ant-tasks - maybe we can cargo-i-fy it over time, if it's worthwhile.


I also made one (before the codehaus thingy): 
http://www.davidkarlsen.com/maven-was-plugin/ but it only generates 
stubs and ties, and probably won't be very maintained now as there are 
others (more promising ones) around.



--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com



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



Re: SCM URL field not sticky/not updating on web interface

2006-10-19 Thread Christian Edward Gruber
What I did is create a user on the continuum machine (call it builder
for kicks), and an identical name on the SVN server (CVS would work this
way as well).  I made sure the [EMAIL PROTECTED] can ssh via
certificates without passphrases to [EMAIL PROTECTED]'s account.  Then I have
builder own the continuum installation location, and start it up as that
user.  Any non-anonymous checkouts will (unless otherwise instructed)
use the builder id, who checks out of the repository normally.  (If you
had fine grained access control, you could make him a read-only user,
but then you couldn't do releases with the 1.1 release mechanism.  Anyway.

That set has worked without trouble.

Otherwise, I've setup projects wtih scm urls containing maven variables
that are resolved from profiles.  These variables would be for username,
etc.  I've had less success with the latter approach, though it's
arguably good to do in any case, if you can get it right.

Christian.

Michael Kearney wrote:
 (intro removed)
   
 I'm running Continuum 1.0.3 on Solaris 10 and I
 originally ran as root but switched to user 'continuum'.  Any idea what I 
 might
 have done to myself?

  Thanks,
Michael


 
 Michael Kearney michaelkearney at comcast.net writes:
 Well,  it was a self-inflicted problem.  
 I want to use the RUN_AS_USER setting to be 'continuum'.
 When I do that, the continuum user can't write the .pid file so 
 I changed the permissions on the directory but now the GUI doesn't work.

 I reinstalled and am running sucessfully as root.

 So my general question is:

 Has anyone sucessfully configured Continuum on a Unix machine to run
 under a different (non-root) userid?
 What are the best practices for the userid that owns the CVS database,
 published website, and other build products?

  Best Regards,
   Michael




   


-- 

*christian** gruber + process coach and architect*

*Israfil Consulting Services Corporation*

*email** [EMAIL PROTECTED] + bus 905.640.1119 + mob 416.998.6023*



Re: Continuum cant find dependencies from Repository

2006-10-19 Thread Lucas Gonçalves

I don't know exactly why but i had the same problem and i resolved it
putting ${continuum.home}\bin\win32\conf\settings.xml.

2006/10/17, Emmanuel Venisse [EMAIL PROTECTED]:


Where are defined your repository?
If your libs are in your local repository, the location of your local
repository must be defined in
${user.home}/.m2/settings.xml, continuum doesn't read settings.xml from ${
maven.home}/conf/

Emmanuel

juergen.schumacher a écrit :
 Hi,
 I added a maven2 project to continuum. The build fails because 3 Libs
cant
 find in the repository. When I try to build the project directly on the
 continuum server from the working directory it worked fine. The libs are
 definitely in the repository. Am I missing some settings ?

 Thx for any hint,
 juergen





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


Re: Aggregate m2 modules in a unique jar file

2006-10-19 Thread Thomas Recloux

Thanks a lot !

2006/10/18, Dan Tran [EMAIL PROTECTED]:

create jar packaging project with empty source.  Use maven-dependency-plugin
to unpack all your jars into
${project.output.directory} before package phase.  Wala, all your unpacked
classes got pack again in a deployable jar.

-D


On 10/17/06, Thomas Recloux [EMAIL PROTECTED] wrote:

 Hello all,


 I'have got a projet with some modules producing their jars, but I'd
 like to produce one jar including all modules classes.

 I looked at the assembly plugin, but :
 - There is not jar format
 - I think I wil not be able to install or deploy the generated jar
 in local and remote repos.

 Thanks, Thomas

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







--
Thomas Recloux a.k.a Karmelitre
http://karmelitre.tartachuc.org

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



Re: Why do some jars in ibiblio do not have .pom files?

2006-10-19 Thread Christian Goetze

Dan Tran wrote:


are you sure?

http://repo1.maven.org/maven2/org/apache/axis/axis/1.4/

OK, that's not the same as http://www.ibiblio.org/maven/. I'll add this 
one to my proxy

--
cg

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



SV: Maven 2.0 deploy to IBM WAS 5

2006-10-19 Thread Hermod Opstvedt
Hi

I'm that guy :) - Because somebody with greater rights than me needs to
define the directories in the sandbox repository (hope to have this done in
a day or two) you will need to get it from svn and build it using Maven
until then.

Hermod


-Opprinnelig melding-
Fra: David J. M. Karlsen [mailto:[EMAIL PROTECTED] 
Sendt: 19. oktober 2006 19:48
Til: Maven Users List
Emne: Re: Maven 2.0 deploy to IBM WAS 5

Wayne Fay wrote:
 I'd be surprised if Cargo didn't already support WAS 5. Check the
 Cargo site for details about their Maven plugin and configuration.
Have a look in codehaus' sandbox - a collegue of mine wrote wrappers for 
the ant-tasks - maybe we can cargo-i-fy it over time, if it's worthwhile.

I also made one (before the codehaus thingy): 
http://www.davidkarlsen.com/maven-was-plugin/ but it only generates 
stubs and ties, and probably won't be very maintained now as there are 
others (more promising ones) around.


-- 
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.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: Why do some jars in ibiblio do not have .pom files?

2006-10-19 Thread Christian Goetze

Dan Tran wrote:


are you sure?

http://repo1.maven.org/maven2/org/apache/axis/axis/1.4/

Oh, I see it now - the groupid changed too  that's going to be so 
much fun down the road when repositories will have a gazillion things in 
it and somebody decides to clean up

--
cg

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



attributes-Map in site-plugin's configuration

2006-10-19 Thread Stefan Hübner

Hi all,

I'm wondering if there's a way to include POM-specific information in
a project's site. I would like to include version info in the site's
navigation bar. How would I do this?

Also, while reading the site-plugin's docs at
http://maven.apache.org/plugins/maven-site-plugin/site-mojo.html, I
wonder what the attributes-Parameter is used for. I didn't find any
examples and couldn't get it do something usefull for me. any hints on
this?

cheers,
Stefan

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



Re: Why do some jars in ibiblio do not have .pom files?

2006-10-19 Thread Dan Tran

http://www.ibiblio.org http://www.ibiblio.org/maven/ is a mirror of
repo1.maven.org which is the built-in maven-central




On 10/19/06, Christian Goetze [EMAIL PROTECTED] wrote:


Dan Tran wrote:

 are you sure?

 http://repo1.maven.org/maven2/org/apache/axis/axis/1.4/

Oh, I see it now - the groupid changed too  that's going to be so
much fun down the road when repositories will have a gazillion things in
it and somebody decides to clean up
--
cg

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




Re: Problem using xdoc plugin

2006-10-19 Thread Arnaud HERITIER

Is it a personal project that you try to build ? Don't you have a dependency
to jaxb in this project ?
Which maven version are you using ?
Why do you call directly this goal. Generally, you call maven site ...


Arnaud

On 10/19/06, Venky Kandaswamy (IT) [EMAIL PROTECTED] wrote:


Has anyone used this xdoc plugin? Is there a different repository that I
should point to for the dependencies?

__
Venky


-Original Message-
From: Venky Kandaswamy (IT)
Sent: Thursday, October 19, 2006 10:20 AM
To: users@maven.apache.org
Subject: Problem using xdoc plugin


All,

   I am new to Maven. Tried running maven 1.x with xdoc:transform goal and
it keeps asking for the jaxb plugins. I downloaded the plugins and put them
in the repository and renamed them with the version jwsdp-1.5 in the name
etc., according to the instructions on the maven jaxb plugin site at
sf.net.

   Still does not work. Any suggestions?

__
Venky Kandaswamy



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




Re: LIB's in war ear

2006-10-19 Thread Mick Knutson

Well, this does not seem to work the way I invision it.

I have the following:

pom.xml
--common/pom.xml
--ear/pom.xml
--war/pom.xml


I declared my dependancies in my master pom, then added a provided scope in
my ear:
   dependency
   groupIdorg.delta.npi.common/groupId
   artifactIdcommon-jar/artifactId
   scopecompile/scope
   /dependency


and in my war:

   dependency
   groupIdorg.delta.npi.common/groupId
   artifactIdcommon-jar/artifactId
   scopeprovided/scope
   /dependency

The common-jar _is_ in my ear, but the deployment fails as it can't seem to
access a class in common-jar








On 10/11/06, Max Cooper [EMAIL PROTECTED] wrote:


Scope is subject to inheritance as well.

Deciding where to put it is a judgment call.

In the context of your whole project, I wouldn't consider a jar that
goes in the ear to be provided. I would only consider it to be
provided in the context of the war module. So, I would set the scope
in the child pom. And the version in the dependencyManagement section of
the parent pom.

-Max

Wayne Fay wrote:
 I'd imagine you could omit both, but I'm not currently doing that.
 Version I'm sure would flow through, and I'd expect scope would as
 well.

 Wayne

 On 10/11/06, Mick Knutson [EMAIL PROTECTED] wrote:
 Can I omit the version and scope as they are already defined in the
 master
 pom.xml in DependancyManagement? Or did that not work?




 On 10/11/06, Wayne Fay [EMAIL PROTECTED] wrote:
 
  Sure, here's my war and ear pom (not all of them, but some of the
  dependencies)...
 
  war/pom.xml
  dependency
groupIdgeronimo-spec/groupId
artifactIdgeronimo-spec-jms/artifactId
version1.1-rc4/version
scopeprovided/scope
  /dependency
  dependency
groupIdgeronimo-spec/groupId
artifactIdgeronimo-spec-ejb/artifactId
version2.1-rc4/version
scopeprovided/scope
  /dependency
  dependency
groupIdjavax.servlet/groupId
artifactIdservlet-api/artifactId
version2.3/version
scopeprovided/scope
  /dependency
  dependency
groupIdtaglibs/groupId
artifactIdstandard/artifactId
version1.1.2/version
scopecompile/scope
exclusions
  exclusion
artifactIdtaglibs/artifactId
groupIdstandard/groupId
  /exclusion
/exclusions
optionaltrue/optional
  /dependency
  dependency
groupIdjavax.servlet/groupId
artifactIdjstl/artifactId
version1.1.2/version
scopecompile/scope
exclusions
  exclusion
artifactIdjavax.servlet/artifactId
groupIdjstl/groupId
  /exclusion
/exclusions
optionaltrue/optional
  /dependency
  dependency
groupIdlog4j/groupId
artifactIdlog4j/artifactId
version1.2.12/version
scopecompile/scope
exclusions
  exclusion
artifactIdlog4j/artifactId
groupIdlog4j/groupId
  /exclusion
/exclusions
optionaltrue/optional
  /dependency
  dependency
groupIdquartz/groupId
artifactIdquartz/artifactId
version1.5.1/version
scopecompile/scope
exclusions
  exclusion
artifactIdquartz/artifactId
groupIdquartz/groupId
  /exclusion
/exclusions
optionaltrue/optional
  /dependency
 
 
  ear/pom.xml
  dependency
groupIdgeronimo-spec/groupId
artifactIdgeronimo-spec-jms/artifactId
version1.1-rc4/version
scopeprovided/scope
  /dependency
  dependency
groupIdgeronimo-spec/groupId
artifactIdgeronimo-spec-ejb/artifactId
version2.1-rc4/version
scopeprovided/scope
  /dependency
  dependency
groupIdjavax.servlet/groupId
artifactIdservlet-api/artifactId
version2.3/version
scopeprovided/scope
  /dependency
  dependency
groupIdtaglibs/groupId
artifactIdstandard/artifactId
version1.1.2/version
scopecompile/scope
  /dependency
  dependency
groupIdjavax.servlet/groupId
artifactIdjstl/artifactId
version1.1.2/version
scopecompile/scope
  /dependency
  dependency
groupIdlog4j/groupId
artifactIdlog4j/artifactId
version1.2.12/version
scopecompile/scope
  /dependency
  dependency
groupIdquartz/groupId
artifactIdquartz/artifactId
version1.5.1/version
scopecompile/scope
  /dependency
 
 
  HTH.
  Wayne
 
  On 10/11/06, Mick Knutson [EMAIL PROTECTED] wrote:
   Can I see your war pom.xml to see how you excluded everything?
  
  
  
   On 10/11/06, Wayne Fay [EMAIL PROTECTED] wrote:
   
I generally only allow my JARs to be placed in my EAR lib to
reduce
the overall size of my 

Re: LIB's in war ear

2006-10-19 Thread Wayne Fay

This is correct per the J2EE spec (from what I've read) and its how
I'm currently doing things. It might be that your container is not
fully J2EE compliant, or does not handle this packaging properly?

What app server are you using, and what version etc?

Wayne

On 10/19/06, Mick Knutson [EMAIL PROTECTED] wrote:

Well, this does not seem to work the way I invision it.

I have the following:

pom.xml
--common/pom.xml
--ear/pom.xml
--war/pom.xml


I declared my dependancies in my master pom, then added a provided scope in
my ear:
   dependency
   groupIdorg.delta.npi.common/groupId
   artifactIdcommon-jar/artifactId
   scopecompile/scope
   /dependency


and in my war:

   dependency
   groupIdorg.delta.npi.common/groupId
   artifactIdcommon-jar/artifactId
   scopeprovided/scope
   /dependency

The common-jar _is_ in my ear, but the deployment fails as it can't seem to
access a class in common-jar








On 10/11/06, Max Cooper [EMAIL PROTECTED] wrote:

 Scope is subject to inheritance as well.

 Deciding where to put it is a judgment call.

 In the context of your whole project, I wouldn't consider a jar that
 goes in the ear to be provided. I would only consider it to be
 provided in the context of the war module. So, I would set the scope
 in the child pom. And the version in the dependencyManagement section of
 the parent pom.

 -Max

 Wayne Fay wrote:
  I'd imagine you could omit both, but I'm not currently doing that.
  Version I'm sure would flow through, and I'd expect scope would as
  well.
 
  Wayne
 
  On 10/11/06, Mick Knutson [EMAIL PROTECTED] wrote:
  Can I omit the version and scope as they are already defined in the
  master
  pom.xml in DependancyManagement? Or did that not work?
 
 
 
 
  On 10/11/06, Wayne Fay [EMAIL PROTECTED] wrote:
  
   Sure, here's my war and ear pom (not all of them, but some of the
   dependencies)...
  
   war/pom.xml
   dependency
 groupIdgeronimo-spec/groupId
 artifactIdgeronimo-spec-jms/artifactId
 version1.1-rc4/version
 scopeprovided/scope
   /dependency
   dependency
 groupIdgeronimo-spec/groupId
 artifactIdgeronimo-spec-ejb/artifactId
 version2.1-rc4/version
 scopeprovided/scope
   /dependency
   dependency
 groupIdjavax.servlet/groupId
 artifactIdservlet-api/artifactId
 version2.3/version
 scopeprovided/scope
   /dependency
   dependency
 groupIdtaglibs/groupId
 artifactIdstandard/artifactId
 version1.1.2/version
 scopecompile/scope
 exclusions
   exclusion
 artifactIdtaglibs/artifactId
 groupIdstandard/groupId
   /exclusion
 /exclusions
 optionaltrue/optional
   /dependency
   dependency
 groupIdjavax.servlet/groupId
 artifactIdjstl/artifactId
 version1.1.2/version
 scopecompile/scope
 exclusions
   exclusion
 artifactIdjavax.servlet/artifactId
 groupIdjstl/groupId
   /exclusion
 /exclusions
 optionaltrue/optional
   /dependency
   dependency
 groupIdlog4j/groupId
 artifactIdlog4j/artifactId
 version1.2.12/version
 scopecompile/scope
 exclusions
   exclusion
 artifactIdlog4j/artifactId
 groupIdlog4j/groupId
   /exclusion
 /exclusions
 optionaltrue/optional
   /dependency
   dependency
 groupIdquartz/groupId
 artifactIdquartz/artifactId
 version1.5.1/version
 scopecompile/scope
 exclusions
   exclusion
 artifactIdquartz/artifactId
 groupIdquartz/groupId
   /exclusion
 /exclusions
 optionaltrue/optional
   /dependency
  
  
   ear/pom.xml
   dependency
 groupIdgeronimo-spec/groupId
 artifactIdgeronimo-spec-jms/artifactId
 version1.1-rc4/version
 scopeprovided/scope
   /dependency
   dependency
 groupIdgeronimo-spec/groupId
 artifactIdgeronimo-spec-ejb/artifactId
 version2.1-rc4/version
 scopeprovided/scope
   /dependency
   dependency
 groupIdjavax.servlet/groupId
 artifactIdservlet-api/artifactId
 version2.3/version
 scopeprovided/scope
   /dependency
   dependency
 groupIdtaglibs/groupId
 artifactIdstandard/artifactId
 version1.1.2/version
 scopecompile/scope
   /dependency
   dependency
 groupIdjavax.servlet/groupId
 artifactIdjstl/artifactId
 version1.1.2/version
 scopecompile/scope
   /dependency
   dependency
 groupIdlog4j/groupId
 artifactIdlog4j/artifactId
 version1.2.12/version
 scopecompile/scope
   /dependency
   

Re: m2eclipse or running mvn as external program?

2006-10-19 Thread Adam Hardy

Steinar,

try this link:

http://www.nabble.com/Maven-Eclipse---User-f14525.html


hth
Adam

Steinar Bang on 18/10/06 07:57, wrote:

What do others recommend for running maven 2 builds from inside eclipse,
the m2eclipse plugin (http://m2eclipse.codehaus.org/), or running mvn
as an external program?

The m2eclipse plugin seems to have most promise, in that it's able to
update the classpath and dependencies of the projects it builds.

But the m2eclipse home page seems a bit out of date, there isn't any
documentation outside of the flash demo, and I haven't been able to
google up any archives for the mailing lists listed on the home page,
so I haven't been able to determine the activity level for the
project. 


And also a search match I dug up yesterday, mentioned
incompatibilities between the eclipse:eclipse target of the maven
eclipse plugin, and m2eclipse:
http://permalink.gmane.org/gmane.comp.jakarta.turbine.maven.user/47974

Does anyone know more about this?



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



Re: problems with continuum perforce support

2006-10-19 Thread Adam Hardy

Hi Michael,

I am using perforce and sometimes but not always have the same issue. I have 
thought about putting a script in place in continuum to clear out the directory 
of a project in-between builds, but I haven't had an opportunity to do that yet.


In the meantime I haven't suffered the problem for a while, it seems it's not 
always recreatable.


I'm running on linux, and I thought it might be OS dependent. What are you 
running on?


Regards
Adam


Michael Stevens on 18/10/06 15:14, wrote:

I'm using continuum to build projects out of a perforce repository. It
nearly works, but deleted files in perforce seem to never be removed
from the continuum working directory.

This means that my builds start failing pretty soon after anyone
deletes a java file and deletes anything related.

Is there any way to get continuum to delete files properly?




Re: Plugin Documentation and the Index Page

2006-10-19 Thread Stephen Duncan

Yes, you need to specify the version of plugin-plugin in your pom.xml.

-Stephen

On 10/19/06, Manuel Ledesma [EMAIL PROTECTED] wrote:


I downloaded version 2.0.5-SNAPSHOT, still getting the same problem. Do I
have to specifically tell which version of plugin-plugin to use ?


jrduncans wrote:

 Thanks.

 (Notes for anyone else: 2.0.5-SNAPSHOT builds are here:
 http://maven.zones.apache.org/~maven/builds/branches/maven-2.0.x/ )

 -Stephen

 On 9/21/06, Brett Porter [EMAIL PROTECTED] wrote:
 It was a bug in the current release of the plugin plugin. You can use
 the new version, but it also requires a snapshot of maven 2.0.5. I'm
 hoping to work on correcting that shortly, but for now if you grab a
 Maven nightly and build the plugin plugin from SVN you should be good
 to go.

 - Brett

 On 22/09/06, Stephen Duncan [EMAIL PROTECTED] wrote:
  I'm working on a new maven plugin (see an upcoming e-mail soon), and
  I'm trying to create  the site generally matching the best
  practices of the new maven plugin sites.  I'm having trouble though: I
  have an src/site/apt/index.apt, but the contents of index.html is the
  auto-generated plugin documentation.  Am I doing something wrong?  Is
  there some workaround?
 
  --
  Stephen Duncan Jr
  www.stephenduncanjr.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Apache Maven - http://maven.apache.org
 Better Builds with Maven book - http://library.mergere.com/

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




 --
 Stephen Duncan Jr
 www.stephenduncanjr.com

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




--
View this message in context: 
http://www.nabble.com/Plugin-Documentation-and-the-Index-Page-tf2315168.html#a6896561
Sent from the Maven - Users mailing list archive at Nabble.com.


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





--
Stephen Duncan Jr
www.stephenduncanjr.com

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



Re: LIB's in war ear

2006-10-19 Thread Max Cooper

You may need to declare more stuff, see:
http://maven.apache.org/plugins/maven-ear-plugin/howto.html

Specifically, I think you need to declare your common.jar as a 
javaModule with includeInApplicationXml=true in your ear/pom.xml:


  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-ear-plugin/artifactId
configuration
   [...]
   modules
 javaModule
   groupIdorg.delta.npi.common/groupId
   artifactIdcommon-jar/artifactId
   includeInApplicationXmltrue/includeInApplicationXml
 /javaModule
  /modules
/configuration
  /plugin
/plugins
  /build

-Max

Mick Knutson wrote:

Well, this does not seem to work the way I invision it.

I have the following:

pom.xml
--common/pom.xml
--ear/pom.xml
--war/pom.xml


I declared my dependancies in my master pom, then added a provided scope in
my ear:
   dependency
   groupIdorg.delta.npi.common/groupId
   artifactIdcommon-jar/artifactId
   scopecompile/scope
   /dependency


and in my war:

   dependency
   groupIdorg.delta.npi.common/groupId
   artifactIdcommon-jar/artifactId
   scopeprovided/scope
   /dependency

The common-jar _is_ in my ear, but the deployment fails as it can't seem to
access a class in common-jar








On 10/11/06, Max Cooper [EMAIL PROTECTED] wrote:


Scope is subject to inheritance as well.

Deciding where to put it is a judgment call.

In the context of your whole project, I wouldn't consider a jar that
goes in the ear to be provided. I would only consider it to be
provided in the context of the war module. So, I would set the scope
in the child pom. And the version in the dependencyManagement section of
the parent pom.

-Max

Wayne Fay wrote:
 I'd imagine you could omit both, but I'm not currently doing that.
 Version I'm sure would flow through, and I'd expect scope would as
 well.

 Wayne

 On 10/11/06, Mick Knutson [EMAIL PROTECTED] wrote:
 Can I omit the version and scope as they are already defined in the
 master
 pom.xml in DependancyManagement? Or did that not work?




 On 10/11/06, Wayne Fay [EMAIL PROTECTED] wrote:
 
  Sure, here's my war and ear pom (not all of them, but some of the
  dependencies)...
 
  war/pom.xml
  dependency
groupIdgeronimo-spec/groupId
artifactIdgeronimo-spec-jms/artifactId
version1.1-rc4/version
scopeprovided/scope
  /dependency
  dependency
groupIdgeronimo-spec/groupId
artifactIdgeronimo-spec-ejb/artifactId
version2.1-rc4/version
scopeprovided/scope
  /dependency
  dependency
groupIdjavax.servlet/groupId
artifactIdservlet-api/artifactId
version2.3/version
scopeprovided/scope
  /dependency
  dependency
groupIdtaglibs/groupId
artifactIdstandard/artifactId
version1.1.2/version
scopecompile/scope
exclusions
  exclusion
artifactIdtaglibs/artifactId
groupIdstandard/groupId
  /exclusion
/exclusions
optionaltrue/optional
  /dependency
  dependency
groupIdjavax.servlet/groupId
artifactIdjstl/artifactId
version1.1.2/version
scopecompile/scope
exclusions
  exclusion
artifactIdjavax.servlet/artifactId
groupIdjstl/groupId
  /exclusion
/exclusions
optionaltrue/optional
  /dependency
  dependency
groupIdlog4j/groupId
artifactIdlog4j/artifactId
version1.2.12/version
scopecompile/scope
exclusions
  exclusion
artifactIdlog4j/artifactId
groupIdlog4j/groupId
  /exclusion
/exclusions
optionaltrue/optional
  /dependency
  dependency
groupIdquartz/groupId
artifactIdquartz/artifactId
version1.5.1/version
scopecompile/scope
exclusions
  exclusion
artifactIdquartz/artifactId
groupIdquartz/groupId
  /exclusion
/exclusions
optionaltrue/optional
  /dependency
 
 
  ear/pom.xml
  dependency
groupIdgeronimo-spec/groupId
artifactIdgeronimo-spec-jms/artifactId
version1.1-rc4/version
scopeprovided/scope
  /dependency
  dependency
groupIdgeronimo-spec/groupId
artifactIdgeronimo-spec-ejb/artifactId
version2.1-rc4/version
scopeprovided/scope
  /dependency
  dependency
groupIdjavax.servlet/groupId
artifactIdservlet-api/artifactId
version2.3/version
scopeprovided/scope
  /dependency
  dependency
groupIdtaglibs/groupId
artifactIdstandard/artifactId
version1.1.2/version
scopecompile/scope
  /dependency
  dependency

Re: Create only .classpath with eclipse:eclipse?

2006-10-19 Thread James Mitchell
The eclipse plugin can handle most anything you throw at it.  What  
specifically is wrong with the output .project file?


What type of project is it?  Web Tools?  MyEclipse?  RAD?


--
James Mitchell
678.910.8017




On Oct 19, 2006, at 11:59 AM, Lewis, Eric wrote:


Hi

I'm new to this list, so.. hi!  :-)
We're changing our build to Maven, and since the POMs are the  
masters of

the build, we'd like to execute eclipse:eclipse whenever the POM has
chagned.
However, this messes up the .project file. Is there any way to tell  
the

eclipse plugin to only generate the class path?

Best regards,
Eric

-
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: LIB's in war ear

2006-10-19 Thread Wayne Fay

Hmmm... I checked my WAR and EAR poms... I am doing this:

WAR
   dependency
 groupIdlog4j/groupId
 artifactIdlog4j/artifactId
 version1.2.12/version
 scopecompile/scope
 exclusions
   exclusion
 artifactIdlog4j/artifactId
 groupIdlog4j/groupId
   /exclusion
 /excusions
 optionaltrue/optional
   /dependency

EAR
   dependency
 groupIdlog4j/groupId
 artifactIdlog4j/artifactId
 version1.2.12/version
 scopecompile/scope
   /dependency

(snip)
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-ear-plugin/artifactId
   configuration
 archive
   manifest
 addClasspathtrue/addClasspath
   /manifest
 /archive
   /configuration
 /plugin

So perhaps that's why its working for me, without using javaModule etc? ;-)

Wayne

On 10/19/06, Max Cooper [EMAIL PROTECTED] wrote:

You may need to declare more stuff, see:
http://maven.apache.org/plugins/maven-ear-plugin/howto.html

Specifically, I think you need to declare your common.jar as a
javaModule with includeInApplicationXml=true in your ear/pom.xml:

  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-ear-plugin/artifactId
configuration
   [...]
   modules
 javaModule
   groupIdorg.delta.npi.common/groupId
   artifactIdcommon-jar/artifactId
   includeInApplicationXmltrue/includeInApplicationXml
 /javaModule
  /modules
/configuration
  /plugin
/plugins
  /build

-Max

Mick Knutson wrote:
 Well, this does not seem to work the way I invision it.

 I have the following:

 pom.xml
 --common/pom.xml
 --ear/pom.xml
 --war/pom.xml


 I declared my dependancies in my master pom, then added a provided scope in
 my ear:
dependency
groupIdorg.delta.npi.common/groupId
artifactIdcommon-jar/artifactId
scopecompile/scope
/dependency


 and in my war:

dependency
groupIdorg.delta.npi.common/groupId
artifactIdcommon-jar/artifactId
scopeprovided/scope
/dependency

 The common-jar _is_ in my ear, but the deployment fails as it can't seem to
 access a class in common-jar








 On 10/11/06, Max Cooper [EMAIL PROTECTED] wrote:

 Scope is subject to inheritance as well.

 Deciding where to put it is a judgment call.

 In the context of your whole project, I wouldn't consider a jar that
 goes in the ear to be provided. I would only consider it to be
 provided in the context of the war module. So, I would set the scope
 in the child pom. And the version in the dependencyManagement section of
 the parent pom.

 -Max

 Wayne Fay wrote:
  I'd imagine you could omit both, but I'm not currently doing that.
  Version I'm sure would flow through, and I'd expect scope would as
  well.
 
  Wayne
 
  On 10/11/06, Mick Knutson [EMAIL PROTECTED] wrote:
  Can I omit the version and scope as they are already defined in the
  master
  pom.xml in DependancyManagement? Or did that not work?
 
 
 
 
  On 10/11/06, Wayne Fay [EMAIL PROTECTED] wrote:
  
   Sure, here's my war and ear pom (not all of them, but some of the
   dependencies)...
  
   war/pom.xml
   dependency
 groupIdgeronimo-spec/groupId
 artifactIdgeronimo-spec-jms/artifactId
 version1.1-rc4/version
 scopeprovided/scope
   /dependency
   dependency
 groupIdgeronimo-spec/groupId
 artifactIdgeronimo-spec-ejb/artifactId
 version2.1-rc4/version
 scopeprovided/scope
   /dependency
   dependency
 groupIdjavax.servlet/groupId
 artifactIdservlet-api/artifactId
 version2.3/version
 scopeprovided/scope
   /dependency
   dependency
 groupIdtaglibs/groupId
 artifactIdstandard/artifactId
 version1.1.2/version
 scopecompile/scope
 exclusions
   exclusion
 artifactIdtaglibs/artifactId
 groupIdstandard/groupId
   /exclusion
 /exclusions
 optionaltrue/optional
   /dependency
   dependency
 groupIdjavax.servlet/groupId
 artifactIdjstl/artifactId
 version1.1.2/version
 scopecompile/scope
 exclusions
   exclusion
 artifactIdjavax.servlet/artifactId
 groupIdjstl/groupId
   /exclusion
 /exclusions
 optionaltrue/optional
   /dependency
   dependency
 groupIdlog4j/groupId
 artifactIdlog4j/artifactId
 version1.2.12/version
 scopecompile/scope
 exclusions
   exclusion
 artifactIdlog4j/artifactId
 groupIdlog4j/groupId
   /exclusion
 /exclusions
 optionaltrue/optional
   /dependency
   dependency
 groupIdquartz/groupId
  

RE: How do i use the hibernate3 plugin from codehause

2006-10-19 Thread Johann Reyes
Hello Yves

To create sql from hbm.xml files it works, from the error message that you
posted, it looks like it's failing to connect to your database server as it
looks it's trying to create the database tables in it. The difference
between hbm2ddl and schema-export is that hbm2ddl is used to create and
update database schemas (thus you need to specify what action you are going
to do in your pom.xml) while the schema-export you don't need to specify
nothing in your pom.xml and it creates the tables in the database while
schema-update it just update the schema in the database.

About your error, it looks the database it's running because the database
it's refusing the connection, so I would check the username and password
that you are using to create the connection to see if they are the right
ones.

Regards

Johann Reyes

-Original Message-
From: Yves Van Steen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 19, 2006 1:01 PM
To: Maven Users List
Subject: How do i use the hibernate3 plugin from codehause

Hey,

 

I want to create ddl sql files from my hbm files but none of the goals of
the hibernate3 plugin actually works?

Is this plugin useable or still in development?

 

If possible I also want to execute these sql files to my database server.
Anybody have any ideas?

 

My configuration is the same as on the info site

HYPERLINK
http://mojo.codehaus.org/hibernate3-maven-plugin/howto.htmlhttp://mojo.cod
ehaus.org/hibernate3-maven-plugin/howto.html

 

OUTPUT

 

Hibernate3:hbm2java = generates the java files but ends with an error

hibernate3:schema-update = returns success but does nothing

hibernate3:hbm2doc = class not found exception
org/hibernate/engine/query/sql/NativeSQLQueryReturn

hibernate3:hbm2hbmxml = class not found exception
org/hibernate/engine/query/sql/NativeSQLQueryReturn

Hibernate3:hbm2ddl  hibernate3:schema-export (any difference between the 2
???) returns this

 

[INFO] Configuration XML file loaded: G:\PROJECTS\sw - admin
baert\source\Common

\src\main\resources\hibernate.cfg.xml

[INFO] Configuration Properties file loaded: G:\PROJECTS\sw - admin
baert\source

\Common\src\main\resources\database.properties

[WARNING] 1 error(s) occurred while performing hbm2ddl.

[WARNING] Error #1: com.mysql.jdbc.CommunicationsException: Communications
link

failure due to underlying exception:

 

** BEGIN NESTED EXCEPTION **

 

java.net.SocketException

MESSAGE: java.net.ConnectException: Connection refused: connect

 

STACKTRACE:

 

java.net.SocketException: java.net.ConnectException: Connection refused:
connect

 

at
com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.ja

va:156)

at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:276)

at com.mysql.jdbc.Connection.createNewIO(Connection.java:2641)

at com.mysql.jdbc.Connection.init(Connection.java:1531)

at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java

:266)

at java.sql.DriverManager.getConnection(DriverManager.java:525)

at java.sql.DriverManager.getConnection(DriverManager.java:140)

at
org.hibernate.connection.DriverManagerConnectionProvider.getConnectio

n(DriverManagerConnectionProvider.java:110)

at
org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.prepare(Ma

nagedProviderConnectionHelper.java:28)

at
org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:178

)

at
org.codehaus.mojo.hibernate3.exporter.SchemaExportMojo.doSchemaExport

(SchemaExportMojo.java:79)

at
org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(H

bm2DDLExporterMojo.java:56)

at
org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateE

xporterMojo.java:59)

at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi

nManager.java:412)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

ultLifecycleExecutor.java:534)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone

Goal(DefaultLifecycleExecutor.java:488)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau

ltLifecycleExecutor.java:458)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan

dleFailures(DefaultLifecycleExecutor.java:306)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen

ts(DefaultLifecycleExecutor.java:273)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi

fecycleExecutor.java:140)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

at

  1   2   >