RE: qalab.xml does not exist.

2006-10-14 Thread Guillaume Tardif
Hi,

This happens typically if you add QLab reports without adding qlab in your 
build/plugin section, associated to phase pre-site for exemple
Note that you also need to add pmd execution there, since qlab uses the pmd xml 
file.
If you have not added qlab to your build section, take a look at the following 
example

Regards
Guillaume 

   build
 plugins
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-pmd-plugin/artifactId
 executions
   execution
 idpmd/id
 phasepre-site/phase
 goals
   goalpmd/goal
 /goals
   /execution
 /executions
 configuration
   linkXreftrue/linkXref
   targetJdk1.5/targetJdk
   formatxml/format
 /configuration 
   /plugin
   plugin
 groupIdnet.objectlab/groupId
 artifactIdmaven-qalab-plugin/artifactId
 version2.1/version
 executions
   execution
 idpmd-merge/id
 phasepre-site/phase
 goals
   goalmerge/goal
 /goals
 configuration
   handlernet.objectlab.qalab.parser.PMDStatMerge/handler
   inputFile
 ${project.build.directory}/pmd.xml
   /inputFile
 /configuration
   /execution
   execution
 idqalab-movers/id
 phasepre-site/phase
 goals
   goalmovers/goal
 /goals
 configuration
   startTimeHoursOffset480/startTimeHoursOffset
 /configuration
   /execution
 execution
 idqalab-chart/id
 phasepre-site/phase
 goals
 goalchart/goal
 /goals
 configuration
 summaryOnlyfalse/summaryOnly
 /configuration
 /execution
 /executions
 configuration
   typespmd/types
 /configuration
   /plugin
 /plugins
   /build
   reporting
 plugins
   plugin
 groupIdnet.objectlab/groupId
 artifactIdmaven-qalab-plugin/artifactId
 version2.1/version
   /plugin
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-pmd-plugin/artifactId 
 configuration
   linkXreftrue/linkXref
   targetJdk1.5/targetJdk
   formatxml/format
 /configuration
   /plugin
 /plugins
   /reporting

-Message d'origine-
De : Mick Knutson [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 13 octobre 2006 19:56
À : maven
Objet : qalab.xml does not exist.

[INFO] Generate Dependencies report.
[INFO] Generate Dependency Convergence report.
[INFO] Generate Mailing Lists report.
[INFO] Generate About report.
[INFO] Generate Project Summary report.
[INFO] Generate Project Team report.
[INFO] Generate Source Xref report.
[INFO] Generate QALab Main Report report.

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error during page generation

Embedded error: Error rendering Maven report:
C:\viewstore\npi_tactical_dev\NPI_Provider\qalab.xml does not exist.
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error during page
generation
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.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(
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)
   

RE: qalab.xml does not exist.

2006-10-14 Thread Guillaume Tardif
To avoid any dependancy between the build phases (compile/test/verify/install) 
and site generation, link your qlab execution to phase pre-site instead of 
verify

Guillaume

-Message d'origine-
De : Mick Knutson [mailto:[EMAIL PROTECTED] 
Envoyé : samedi 14 octobre 2006 01:49
À : maven
Objet : Re: qalab.xml does not exist.

Seems I am getting further, but still issues with QALab
I have all my artifacts in sub-modules. So I find that to allow this to work
correctly, I have to:


   1. Create a dependancyManagement plugin declaration for qalab.
   2. Add a plugin declaration into each module's pom.xml I want to run
   QALab for
   3. run mvn site so that my checkstyle-report.xml and pmd.xml exist
   4. run mvn install to compile my code again.

It seems that if I run mvn clean install -e I get an issue with the
checkstyle-report.xml and pmd.xml files not being found. So why must I have
these files present just to run an install?

here is my super pom.xml declaration:

plugin
groupIdnet.objectlab/groupId
artifactIdmaven-qalab-plugin/artifactId
version2.1/version
!-- Checkstyle Merge --
executions
execution
idcheckstyle-merge/id
phaseverify/phase
goals
goalmerge/goal
/goals
configuration
handler
net.objectlab.qalab.parser.CheckstyleStatMerge/handler
inputFile${basedir}/target/checkstyle-
result.xml/inputFile
/configuration
/execution
!-- findBugs Merge --
!--execution
idfindbugs-merge/id
phaseverify/phase
goals
goalmerge/goal
/goals
configuration
handler
net.objectlab.qalab.parser.FindBugsStatMerge/handler

inputFile${basedir}/target/site/findbugs.xml/inputFile
/configuration
/execution--
!-- PMD Merge --
execution
idpmd-merge/id
phaseverify/phase
goals
goalmerge/goal
/goals
configuration
handler
net.objectlab.qalab.parser.PMDStatMerge/handler

inputFile${basedir}/target/site/pmd.xml/inputFile
!--inputFile${project.build.directory
}/pmd/pmd.xml/inputFile--
/configuration
/execution
!-- Additional executions --
execution
idqalab-movers/id
phaseverify/phase
goals
goalmovers/goal
/goals
configuration

startTimeHoursOffset480/startTimeHoursOffset
/configuration
/execution
execution
idqalab-chart/id
phaseverify/phase
goals
goalchart/goal
/goals
configuration
summaryOnlyfalse/summaryOnly
/configuration
/execution
/executions
configuration
!--typescheckstyle,findbugs,pmd/types--
typescheckstyle,pmd/types
/configuration
/plugin



here is my comon/common-jar/pom.xml declaration:

build
plugins

plugin
groupIdnet.objectlab/groupId
artifactIdmaven-qalab-plugin/artifactId
/plugin
.

reporting
plugins

plugin
groupIdnet.objectlab/groupId
artifactIdmaven-qalab-plugin/artifactId
version2.1/version
reportSets
reportSet
reports
reportreport/report
/reports
/reportSet
/reportSets
/plugin
.





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

 Is there something I am missing with:


There are 3 Mojos provided for your use.
1. BuildStatMergeMojo - Handles the merge of statistics into
qalab.xml

[OT][ANN] JAVAWUG Video / Jason van Zyl Maven 2.0 / Available Now

2006-10-14 Thread Peter Pilgrim

Hi All

The Java Web User Group is proud to announce that the Google Video for
BOF 22 is now uploaded. Jason van Zyl presented Maven 2.0 at the Sun
Microsystem's London Office, on Wednesday 22nd September 2006.

Over 90 minutes of Maven, build philosophy, design, architecture,
discussions, and demonstrations of Maven, Archiva, Continuum are
available from here

http://video.google.com/videoplay?docid=-4064926306201565385hl=en

For more information surf to

(1) http://jroller.com/page/javawug?entry=bof_22_report

(2) http://jroller.com/page/javawug?entry=announcement_javabof_xxii_jason_van

(3) http://jroller.com/page/javawug


--
Peter Pilgrim  ( Windows XP / Thunderbird 1.5 )

_ ___  + Expert Java
__  /_ ___   ___ ____  /__  /  + Enterprise
___ _  /_  __ `/_ | / /  __ `/__  __/  __  __/ + Design
/ /_/ / / /_/ /__ |/ // /_/ / _  /___  _  /___ + Architecture
\/  \__,_/ _/ \__,_/  /_/  /_/ + Web New Age


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



Missing Javax jars

2006-10-14 Thread Dmystery

The javax.transaction and javax.security jars are missing in
http://repo1.maven.org. I'm using hibernate for compilation and i dont know
why it wants these javax jars. I can set up a local hibernate repository but
i want maven to download everything from the central. 

Is there a work around. 

Thanks
-- 
View this message in context: 
http://www.nabble.com/Missing-Javax-jars-tf2441945.html#a6809041
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: XMLBeans Plugin - include subdirectories

2006-10-14 Thread cameron101

It would be great if the mvn2 pluggin supported file sets as per the ant
target but so far as I can see it does not :-(

An alternative is (it's not a great solution but it's workable) is to create
a separate project/module with all your .xsd, nested in the desired sub
directories etc. Set this project POM up so maven packages the .xsd's to a
jar artifact, then add this artifact to your 'real' project/module that
needs to use xmlbeans as a dependency. The POM entry needs to use the
xsdJar  tag to tell the xmlbeans compiler where to look for all the .xsd's
including paths e.g.

  plugin
   groupIdorg.codehaus.mojo/groupId
artifactIdxmlbeans-maven-plugin/artifactId
   executions
  execution
 goals
 goalxmlbeans/goal
 /goals
  /execution
   /executions
   configuration
  memoryInitialSize50m/memoryInitialSize
  memoryMaximumSize80m/memoryMaximumSize
  xsdJars
  xsdJar
implementation=java.lang.StringyourXSdGroupIdGoesHere:yourXSdArtifactIdGoesHere/xsdJar
  /xsdJars
   /configuration
  /plugin


This works quite well unless you have a lot of duplicated global type
references in your .xsd's.   Also see
http://jira.codehaus.org/browse/MXMLBEANS-21?page=alldecorator=printable

to add some optimisation as ALL the jar'ed .xsd's will be loaded and
converted to in memory objects by default.

Regards
C


On 14/08/06, Adrian Shum [EMAIL PROTECTED] wrote:


Dear all,

I am trying XMLBeans plugins in maven2.






I'd like to know if there is any way to include

subdirectories of the schema directory?

As we are organizing the XSDs in directories now.

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

Thanks a lot for your help


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



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





Re: site customization

2006-10-14 Thread Arik Kfir
Note that you can also use this syntax:

[snip]
...
menu name=modules/
menu name=reports/
...
[/snip]



On Fri, 2006-10-13 at 12:20 -0700, Attila Mezei-Horvati wrote:

 Dohh.
 Here is the solution, if other people are interested:
 
 menu name=Development
   item name=Setup href=howto.html/
 /menu
 ${modules}
 ${reports}
 
 Here is a link to the help files: 
 http://maven.apache.org/plugins/maven-site-plugin/howto.html
 
 Now, if I would understand why the modules menu links
 to my modules as index.html instead of
 module_name/index.html or similar
 
 Attila
 
 
 --- Attila Mezei-Horvati [EMAIL PROTECTED] wrote:
 
  I am trying to add a custom page (about how to
  get/build the project) to the project site. 
  
  The site is generated by maven 2. 
  
  Unfortunately I can't figure it out how to add a
  couple of menu items so that maven keeps all the
  ones
  generated by default. If I specify my own site.xml
  and
  menu-s then the default ones are not generated any
  more. If I just put the page in the xdoc folder
  without adding a site.xml the page will not be
  linked.
  
  
  What is the solution? Can't seem to find any doc on
  it.
  thanks,
  Attila
  
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
  protection around 
  http://mail.yahoo.com 
  
 
 
 __
 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: Maven plugin to generate Java source, SQL schema, and O/R mapping files from XSD?

2006-10-14 Thread Aleksei Valikov

Hi.


Its great that these tools exist -- obviously I had no idea. ;-)


Yeah, we're programmers not promoters...


I'm going to have to take a look at both of them and perhaps integrate
one of them into our build process...


Let me know if you experience any problems with Hyperjaxb2. There's a 
[EMAIL PROTECTED] m,ailing list, if anything.



Any others worth looking at, while we're on the topic??


There are tools like Castor and XMLBeans, but I'm not sure if there's Maven 
support for these libs. Hyperjaxb2 delivers Maven support out of the box.


Bye.
/lexi

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



activating multiple profiles

2006-10-14 Thread Nir Feldman
Can I activate multiple profiles from command line?

I have tried writing:

mvn help:active-profiles -P all -P noTests

but only the all profile was active.

 

Thanks,

 

Nir Feldman, CCM RD, [EMAIL PROTECTED]
direct +972-3-5399896  fax +972-3-5331617
19 Shabazi St., Yehud, Israel 56100

MERCURY
Business Technology Optimization
www.mercury.com http://www.mercury.com 

 


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

Re: [M2] Changelog Plugin and CVS Tags

2006-10-14 Thread Dennis Lundberg

Hi Dan

He's talking about the *changelog* plugin, not the *changes* plugin. The 
changelog plugin has not been release yet, you still require a snapshot 
of it.


Hopefully my day job will require less of my time soon, and I will have 
the time to release the changelog plugin as well...


--
Dennis Lundberg

Dan Tran wrote:

your snapshot 2.0-SNAPSHOT is very old.

may be we should bug *Dennis Lundberg *to remove them.

Try the just released one

http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-changes-plugin/2.0-beta-2/ 




-D

On 10/13/06, Nate [EMAIL PROTECTED] wrote:


First of all, I'd like to say how impressed I've been with the speed of
responses for this list.  Thanks for all the help.

-

I'm using the 2.0-SNAPSHOT version of the maven-changelog-plugin, and I'm
trying to get a report of, All changes after MyApp_0_7_rc1 that went 
into
making MyApp_0_7_rc2.  I have the following configuration for the 
plugin.

typetag/type
  tags
tag implementation=java.lang.StringMyApp_0_7_rc1/tag
tag implementation=java.lang.StringMyApp_0_7_rc2/tag
  /tags

Here is my file CVS tree of one of my files:
UserDatabase.java
  1.1
  1.2 MyApp_0_7_rc1
  1.3
  1.4
  1.5--- MyApp_0_7_rc2
  1.6

When I look at the site generated change log page, I see only comments 
for

v1.3 and v1.4.  I would like to see the 1.5 comments because those change
went into the MyApp_0_7_rc2 release.

I see that -r MyApp_0_7_rc1::MyApp_0_7_rc2 is by the plugin used.  I 
ran

a log with WinCVS and the generated log file also only contained versions
1.3 and 1.4.  The CVS documentation says the results of a log with the
double colon should list all change versions except for the MyApp_0_7_rc1
version.  When I modified the WinCVS command to only use one colon, I got
versions 1.2, 1.3, 1.4, 1.5; however, I obviously don't want version 1.2
in my final results.

Am I doing something wrong here with ChangeLog configuration?  Is this a
CVS issue?

Thanks for the help,
-Nate


-
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: [M2] Changelog Plugin and CVS Tags

2006-10-14 Thread Dennis Lundberg

Hi Nate

I'll try to see if I can replicate this.

From your text I understand that you are using Windows as your client 
OS and the command line CVS client from WinCVS, is that correct?


What CVS server are you using and what OS does it run on?

--
Dennis Lundberg

Nate wrote:

First of all, I'd like to say how impressed I've been with the speed of
responses for this list.  Thanks for all the help.

-

I’m using the 2.0-SNAPSHOT version of the maven-changelog-plugin, and I’m
trying to get a report of, “All changes after MyApp_0_7_rc1 that went into
making MyApp_0_7_rc2.”  I have the following configuration for the plugin.
 typetag/type
   tags
 tag implementation=java.lang.StringMyApp_0_7_rc1/tag
 tag implementation=java.lang.StringMyApp_0_7_rc2/tag
   /tags

Here is my file CVS tree of one of my files:
 UserDatabase.java
   1.1
   1.2 MyApp_0_7_rc1
   1.3
   1.4
   1.5--- MyApp_0_7_rc2
   1.6

When I look at the site generated change log page, I see only comments for
v1.3 and v1.4.  I would like to see the 1.5 comments because those change
went into the MyApp_0_7_rc2 release.

I see that “-r MyApp_0_7_rc1::MyApp_0_7_rc2” is by the plugin used.  I ran
a log with WinCVS and the generated log file also only contained versions
1.3 and 1.4.  The CVS documentation says the results of a log with the
double colon should list all change versions except for the MyApp_0_7_rc1
version.  When I modified the WinCVS command to only use one colon, I got
versions 1.2, 1.3, 1.4, 1.5; however, I obviously don’t want version 1.2
in my final results.

Am I doing something wrong here with ChangeLog configuration?  Is this a
CVS issue?

Thanks for the help,
-Nate




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



Re: Missing Javax jars

2006-10-14 Thread Carlos Sanchez

http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html

On 10/14/06, Dmystery [EMAIL PROTECTED] wrote:


The javax.transaction and javax.security jars are missing in
http://repo1.maven.org. I'm using hibernate for compilation and i dont know
why it wants these javax jars. I can set up a local hibernate repository but
i want maven to download everything from the central.

Is there a work around.

Thanks
--
View this message in context: 
http://www.nabble.com/Missing-Javax-jars-tf2441945.html#a6809041
Sent from the Maven - Users mailing list archive at Nabble.com.


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





--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride

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



Re: activating multiple profiles

2006-10-14 Thread Wendy Smoak

On 10/14/06, Nir Feldman [EMAIL PROTECTED] wrote:


Can I activate multiple profiles from command line?

I have tried writing:

mvn help:active-profiles -P all -P noTests

but only the all profile was active.


mvn help:active-profiles -Pall,noTests

... add whitespace as desired. :)

--
Wendy

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



Re: [m2] finalName not working

2006-10-14 Thread Doug Douglass

Yann,

This is to be expected. When running maven in your B project, maven has no
knowledge of project A as a module to be built and referenced, only as a
dependency that needs to be retrieved from a repository and added to the
classpath.

In addition, finalName only effects the name of the artifact generated in
the target directory. If you install/deploy the same artifact it will
(should) have the standard naming of ${artifactId}-${version}. This is A
Good Thing, as it prevents ambiguity in the repository.

HTH,
Doug

On 10/12/06, Yann Albou [EMAIL PROTECTED] wrote:


Hi,
I try to use the finalName in my parent pom as following:
finalName${artifactId}/finalName (without the version number)

If I run maven from the parent pom everything works fine: all my
artifacts are generated without the version number. and also the
classpath entry of the manifest.mf file is correctly set.
For instance I get :
parent
--- A module
--- B module (with a dependency on A)

So it generates B.jar with a Manifest containning ClassPath: A.Jar


Now If I run maven from B module it generates a B.jar but with a
manifest containing ClassPath: A-1.2.1.Jar for instance.

I get exactly the same behaviour with an EAR module that generate the
application.xml = module are not generated with the correct name...
If I run maven from the parent pom then the application.xml is generated
correctly


Did I miss something ?

Yann.






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




How to unpack a zip file into a source directory

2006-10-14 Thread Naresh Bhatia
Hi,

I would like to unpack a zip file into a source directory using Maven.
What is the best way to do this? Here are the details of what I am
trying to do:

- The zip file is essentially the Dojo JavaScript library
(ajax-2006.10.10.zip ) - it simply contains JavaScript source.

- I would like to unpack this file under my project's
${basedir}/src/main/webapp/scripts.

- I don't know if it is ok to keep such artifacts in the maven local
repository, but for right now I have kept the Dojo library at
  .m2/repository/dojo/ajax/2006.10.10/ajax-2006.10.10.zip

- I was playing around with the assembly:unpack goal to unpack the
library. I tried the following command but it absolutely did not work -
obviously I don't know how to use it:
  mvn assembly:unpack \
  -DfinalName=ajax-2006.10.10.zip \
  -DoutputDirectory=${basedir}/src/main/webapp/scripts

- I would ideally like to have a goal in my pom.xml which will make it
easy to perform the unpacking, something like
  mvn unpack-dojo
  How can I create something equivalent to this?

Thanks for your help.
Naresh

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



Re: How to unpack a zip file into a source directory

2006-10-14 Thread Wendy Smoak

On 10/14/06, Naresh Bhatia [EMAIL PROTECTED] wrote:


I would like to unpack a zip file into a source directory using Maven.
What is the best way to do this?


I'm doing something similar with the Selenium zip file, using
dependency-maven-plugin's 'unpack' goal.

Take a look at this wiki page:
   http://docs.codehaus.org/display/MAVENUSER/Maven+and+Selenium

--
Wendy

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



RE: How to unpack a zip file into a source directory

2006-10-14 Thread Naresh Bhatia
Thanks so much Wendy. That is exactly what I was looking for.

Naresh

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Saturday, October 14, 2006 11:34 AM
To: Maven Users List
Subject: Re: How to unpack a zip file into a source directory

On 10/14/06, Naresh Bhatia [EMAIL PROTECTED] wrote:

 I would like to unpack a zip file into a source directory using Maven.
 What is the best way to do this?

I'm doing something similar with the Selenium zip file, using
dependency-maven-plugin's 'unpack' goal.

Take a look at this wiki page:
http://docs.codehaus.org/display/MAVENUSER/Maven+and+Selenium

-- 
Wendy

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



getting a plugin's own version?

2006-10-14 Thread pjungwir

Hello,

Is there an easy way for a plugin to get its own version? I can't just do a
property set to ${project.version}, because that will get the version of the
user's project. So far, the easiest thing I've come up with is to write
${project.version} to a filtered resource file, but that seems very
circuitous. Can I just get it in java?

Thanks,
Paul




-- 
View this message in context: 
http://www.nabble.com/getting-a-plugin%27s-own-version--tf2443270.html#a6812276
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: getting a plugin's own version?

2006-10-14 Thread pjungwir

By the way, what are the get/setPluginContext methods on AbstractMojo for?
When I look in the Map, it is empty. Is this a way to pass information to
your plugin from the plugin's pom? Maybe I could use this for what I want.


-- 
View this message in context: 
http://www.nabble.com/getting-a-plugin%27s-own-version--tf2443270.html#a6812346
Sent from the Maven - Users mailing list archive at Nabble.com.


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



can plugins use other plugins?

2006-10-14 Thread pjungwir

Hello,

Is it possible for a plugin to tell maven that other plugins must be run
prior to itself? All I see for this is the @execute goal annotation. But
if I do that, how do I pass configuration to that goal? Can I set it up in
the plugin, or does the user have to set it up? Can specify two goals?

I would like to have something like executions in the plugin.xml so I can
specify everything about the pre- and post-goals I want to run. Within that
element, it'd be nice to have ${} syntax for referencing values both in the
plugin's own pom and the user's pom. I guess this would be something like
ant macros.

Thanks,
Paul







-- 
View this message in context: 
http://www.nabble.com/can-plugins-use-other-plugins--tf2443342.html#a6812467
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: getting a plugin's own version?

2006-10-14 Thread pjungwir

Hi Dan, you're coding on a Saturday, too?


dan tran wrote:
 
 use project to browse the user pom which for sure has your plugin.
 

I was hoping nobody would suggest this! :-) But I'm giving it a try. I get
all the artifacts via project.getPluginArtifacts().
But when I find my own, I can only get RELEASE as the version. I need the
real number. I've tried getVersion(), getBaseVersion(), and
getSelectedVersion().getQualifier(). I see that ArtifactVersion (from
getSelectedVersion()) has the major/minor numbers. Do I have to patch these
together myself? Or is there an easier way?

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/getting-a-plugin%27s-own-version--tf2443270.html#a6812758
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: getting a plugin's own version?

2006-10-14 Thread pjungwir


pjungwir wrote:
 
 I see that ArtifactVersion (from getSelectedVersion()) has the major/minor
 numbers. Do I have to patch these together myself?
 

Actually, these are all set to zero

-- 
View this message in context: 
http://www.nabble.com/getting-a-plugin%27s-own-version--tf2443270.html#a6812804
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: getting a plugin's own version?

2006-10-14 Thread Dan Tran

since your plugin is defined in project--build--plugins, I would suggest
to use that
browse it thru a api as well.




On 10/14/06, pjungwir [EMAIL PROTECTED] wrote:




pjungwir wrote:

 I see that ArtifactVersion (from getSelectedVersion()) has the
major/minor
 numbers. Do I have to patch these together myself?


Actually, these are all set to zero

--
View this message in context:
http://www.nabble.com/getting-a-plugin%27s-own-version--tf2443270.html#a6812804
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: getting a plugin's own version?

2006-10-14 Thread pjungwir

Oh, that is much better! Thank you.
-- 
View this message in context: 
http://www.nabble.com/getting-a-plugin%27s-own-version--tf2443270.html#a6813179
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: How to unpack a zip file into a source directory

2006-10-14 Thread Naresh Bhatia
Wendy,

Quick question. It seems that the dependency-maven-plugin does not
recognize the .zip extension. I had to change the extension to .jar to
make the plugin work. Is my understanding correct?

Thanks.
Naresh

-Original Message- 
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Saturday, October 14, 2006 11:34 AM 
To: Maven Users List 
Subject: Re: How to unpack a zip file into a source directory 

On 10/14/06, Naresh Bhatia [EMAIL PROTECTED] wrote: 

 I would like to unpack a zip file into a source directory using Maven.

 What is the best way to do this? 

I'm doing something similar with the Selenium zip file, using 
dependency-maven-plugin's 'unpack' goal. 

Take a look at this wiki page: 
http://docs.codehaus.org/display/MAVENUSER/Maven+and+Selenium 

-- 
Wendy

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



Problem overriding profile

2006-10-14 Thread Naresh Bhatia
I have a multi-project with several properties defined in an active
profile in the root pom:

profiles
profile
idlocal/id
activation
activeByDefaulttrue/activeByDefault
/activation
properties
jdbc.urljdbc:mysql://buildserver:3306/builddb/jdbc.url
 other properties 
/properties
/profile
/profiles

I would like to override the jdbc.url property for my personal builds.
So I created a profiles.xml file in the root project:

profiles
profile
idpersonal/id
activation
activeByDefaulttrue/activeByDefault
/activation
properties
jdbc.urljdbc:mysql://localhost:3306/mydb/jdbc.url
/properties
/profile
/profiles

When I execute mvn install, I am finding that the value in
profiles.xml is NOT overriding the value in pom.xml. Interestingly
enough, if I execute one of the sub-projects using mvn -f mda/pom.xml
install, the property in profiles.xml DOES override. What am I doing
wrong?

Thanks.
Naresh

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



Re: How to unpack a zip file into a source directory

2006-10-14 Thread Wendy Smoak

On 10/14/06, Naresh Bhatia [EMAIL PROTECTED] wrote:

Wendy,

Quick question. It seems that the dependency-maven-plugin does not
recognize the .zip extension. I had to change the extension to .jar to
make the plugin work. Is my understanding correct?


You can use the type element to tell the dependency plugin what to look for.

Take a look at this old revision of one of my wiki pages, when I was
still installing the Selenium distribution .zip file in my local
repository:

http://wiki.wsmoak.net/cgi-bin/wiki.pl?action=browseid=Maven/Seleniumrevision=5

artifactItem
  groupIdorg.openqa/groupId
  artifactIdselenium-core/artifactId
  version0.7.0/version
  typezip/type   ---
/artifactItem

HTH,
--
Wendy

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



RE: How to unpack a zip file into a source directory

2006-10-14 Thread Naresh Bhatia
Perfect! That worked like a charm. Thanks again Wendy.

Naresh

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Saturday, October 14, 2006 10:32 PM
To: Maven Users List
Subject: Re: How to unpack a zip file into a source directory

On 10/14/06, Naresh Bhatia [EMAIL PROTECTED] wrote:
 Wendy,

 Quick question. It seems that the dependency-maven-plugin does not
 recognize the .zip extension. I had to change the extension to .jar to
 make the plugin work. Is my understanding correct?

You can use the type element to tell the dependency plugin what to
look for.

Take a look at this old revision of one of my wiki pages, when I was
still installing the Selenium distribution .zip file in my local
repository:

http://wiki.wsmoak.net/cgi-bin/wiki.pl?action=browseid=Maven/Seleniumr
evision=5

artifactItem
   groupIdorg.openqa/groupId
   artifactIdselenium-core/artifactId
   version0.7.0/version
   typezip/type   ---
/artifactItem

HTH,
-- 
Wendy

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



xstream missing pom?

2006-10-14 Thread pjungwir

Hello, I'm trying to use xstream 1.1.3 by thoughtworks in my project. It is
here:

http://repo1.maven.org/maven2/com/thoughtworks/xstream/xstream/1.1.3/

I can get the dependency all right, but I get a warning every time I compile
because the pom isn't there:

Downloading:
http://repo1.maven.org/maven2/com/thoughtworks/xstream/xstream/1.1.3/xstream-1.1.3.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)

Is this a m1-m2 thing? Is there anything I can do to supply a pom?

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/xstream-missing-pom--tf2445540.html#a6817736
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: xstream missing pom?

2006-10-14 Thread Dan Tran

http://jira.codehaus.org/browse/MEV

On 10/14/06, pjungwir [EMAIL PROTECTED] wrote:



Hello, I'm trying to use xstream 1.1.3 by thoughtworks in my project. It
is
here:

http://repo1.maven.org/maven2/com/thoughtworks/xstream/xstream/1.1.3/

I can get the dependency all right, but I get a warning every time I
compile
because the pom isn't there:

Downloading:

http://repo1.maven.org/maven2/com/thoughtworks/xstream/xstream/1.1.3/xstream-1.1.3.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)

Is this a m1-m2 thing? Is there anything I can do to supply a pom?

Thanks,
Paul

--
View this message in context:
http://www.nabble.com/xstream-missing-pom--tf2445540.html#a6817736
Sent from the Maven - Users mailing list archive at Nabble.com.


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