First build OK, second build fails with scm file url error

2007-08-23 Thread Gary Bauer
I have a multiple module Maven 2 project added to Continuum.  There is one
parent module and three child modules.  Each module builds without problems
the first time, but the second time I try to build any of them I get the
following exception:

org.apache.maven.continuum.scm.ContinuumScmException: Error while update
sources.A svn 'file' url must be on the form 'file:///' or
'file://localhost/'.

and the build fails. Surely the svn url is OK as it worked for the first
build.

The scm entry in the parent module's pom.xml is as follows

scm
  connection
   scm:svn:file:///e:/apps-data/svn-repo/ragel/trunk/
  /connection
  developerConnection
   scm:svn:file:///e:/apps-data/svn-repo/ragel/trunk/
  /developerConnection
  urlfile:///e:/apps-data/svn-repo/ragel/trunk//url
 /scm

I am using Continuum 1.03 on Windows Vista.  Maven 2.07.  Subversion.  All
are installed on the same PC.

Any ideas?

Thanks!

Gary Bauer


monitoring builds

2007-08-23 Thread Ionut S
Hi,
I want to implement a system of lava lamps for our continuum server and I need 
a way to find out when a build was done and the result. I know about the 
notifications mechanism, but my lava lamps will not be located on the same 
computer that hosts the continuum server. 

My computer is behind a firewall and I can't change these settings - hence I 
can access the continuum server from my computer but not the other way around. 
As a consequence, I will need a way from my computer to ping Continuum from 
time to time and see when a build was done.

Another method would be to have an application that checks the email and see if 
an email notification arrived (we have email notifications configured, yes). 
However, this solution doesn't seem very elegant - I would keep it only as the 
last resort..

Thank you in advance for your advices !

Ionut

   
-
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us.

Re: monitoring builds

2007-08-23 Thread Nick Stolwijk

Hi,

Maybe it is an idea to use a IM notification like Jabber. That way you 
don't have to poll the continuum or your mail.


With regards,

Nick Stolwijk

Ionut S wrote:

Hi,
I want to implement a system of lava lamps for our continuum server and I need a way to find out when a build was done and the result. I know about the notifications mechanism, but my lava lamps will not be located on the same computer that hosts the continuum server. 


My computer is behind a firewall and I can't change these settings - hence I can access 
the continuum server from my computer but not the other way around. As a consequence, I 
will need a way from my computer to ping Continuum from time to time and see 
when a build was done.

Another method would be to have an application that checks the email and see if 
an email notification arrived (we have email notifications configured, yes). 
However, this solution doesn't seem very elegant - I would keep it only as the 
last resort..

Thank you in advance for your advices !

Ionut

   
-

Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us.
  




RE: monitoring builds

2007-08-23 Thread LAMY Olivier
Hi,
Added in 1.1-beta-1.
But in your case will need some developpement.


Have you look at all available notifier impls :
- mail
- jabber
- wagon (send the build output file to the wagon url)
- irc

--
Olivier 

-Message d'origine-
De : Ionut S [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 23 août 2007 14:03
À : continuum-users@maven.apache.org; [EMAIL PROTECTED]
Objet : Re: monitoring builds

Do you know when this feature was added ? We still have the 1.0.3 version ...



Michael Meyer [EMAIL PROTECTED] wrote: Hi we use continuums xml-rpc api for 
this. Look in the archive for [1.1-beta-1] How does the XML-RPC API work? 
(Date: 10. August 2007). 
Emmanuel Venisse explains it nicely.

Cheers, michael

Ionut S wrote:
 Hi,
 I want to implement a system of lava lamps for our continuum server and I 
 need a way to find out when a build was done and the result. I know about the 
 notifications mechanism, but my lava lamps will not be located on the same 
 computer that hosts the continuum server. 
 
 My computer is behind a firewall and I can't change these settings - hence I 
 can access the continuum server from my computer but not the other way 
 around. As a consequence, I will need a way from my computer to ping 
 Continuum from time to time and see when a build was done.
 
 Another method would be to have an application that checks the email and see 
 if an email notification arrived (we have email notifications configured, 
 yes). However, this solution doesn't seem very elegant - I would keep it only 
 as the last resort..
 
 Thank you in advance for your advices !
 
 Ionut
 

 -
 Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
 and lay it on us.

--
Michael Meyer | [EMAIL PROTECTED] phone +41-44-247 79 12 | fax +41-44-247 70 75 
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch



   
-
Shape Yahoo! in your own image.  Join our Network Research Panel today!


This e-mail, any attachments and the information contained therein (this 
message) are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
** 
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après le message ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur 
et de le détruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressément autorisées de ce 
message, sont interdites.
** 



RE: monitoring builds

2007-08-23 Thread Ionut S
What do you need by But in your case will need some developpement. ? 



LAMY Olivier [EMAIL PROTECTED] wrote: Hi,
Added in 1.1-beta-1.
But in your case will need some developpement.


Have you look at all available notifier impls :
- mail
- jabber
- wagon (send the build output file to the wagon url)
- irc

--
Olivier 

-Message d'origine-
De : Ionut S [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 23 août 2007 14:03
À : continuum-users@maven.apache.org; [EMAIL PROTECTED]
Objet : Re: monitoring builds

Do you know when this feature was added ? We still have the 1.0.3 version ...



Michael Meyer  wrote: Hi we use continuums xml-rpc api for this. Look in the 
archive for [1.1-beta-1] How does the XML-RPC API work? (Date: 10. August 
2007). 
Emmanuel Venisse explains it nicely.

Cheers, michael

Ionut S wrote:
 Hi,
 I want to implement a system of lava lamps for our continuum server and I 
 need a way to find out when a build was done and the result. I know about the 
 notifications mechanism, but my lava lamps will not be located on the same 
 computer that hosts the continuum server. 
 
 My computer is behind a firewall and I can't change these settings - hence I 
 can access the continuum server from my computer but not the other way 
 around. As a consequence, I will need a way from my computer to ping 
 Continuum from time to time and see when a build was done.
 
 Another method would be to have an application that checks the email and see 
 if an email notification arrived (we have email notifications configured, 
 yes). However, this solution doesn't seem very elegant - I would keep it only 
 as the last resort..
 
 Thank you in advance for your advices !
 
 Ionut
 

 -
 Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
 and lay it on us.

--
Michael Meyer | [EMAIL PROTECTED] phone +41-44-247 79 12 | fax +41-44-247 70 75 
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch



   
-
Shape Yahoo! in your own image.  Join our Network Research Panel today!


This e-mail, any attachments and the information contained therein (this 
message) are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
** 
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après le message ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur 
et de le détruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressément autorisées de ce 
message, sont interdites.
** 



   
-
Shape Yahoo! in your own image.  Join our Network Research Panel today!

Re: monitoring builds

2007-08-23 Thread Michael Meyer

Ionut S wrote:

Thank you ! However, I looked at the changes from 1.0.3 to 1.1-alpha1 and it 
seems this bug might be a problem:
...
3) find another method 


For continuum 1.0.3 I used to parse the index page with jtidy. Ugly but 
it worked. If you can wait for the 1.1 final release I would probably do 
that (Don't know when the final release will be available though).


michael


Re: monitoring builds

2007-08-23 Thread Wendy Smoak
On 8/23/07, Ionut S [EMAIL PROTECTED] wrote:
 Hi,
 I want to implement a system of lava lamps for our continuum server and I 
 need a way to find out when a build was done and the result. I know about the 
 notifications mechanism, but my lava lamps will not be located on the same 
 computer that hosts the continuum server.

I was in a Cruise Control talk recently, and apparently they do the
lava lamp thing with X10 (home automation stuff).

There's a discussion here:
http://www.pragmaticautomation.com/cgi-bin/pragauto.cgi/Monitor/Devices/BubbleBubbleBuildsInTrouble.rdoc

-- 
Wendy


FW: Maven Multi-Project - Modules are Numbers when checked out

2007-08-23 Thread James Clinton
( apoligies if you received this twice ) 

Hello,
 
Setting up Continuum for the first time using Maven2 for our builds. (which
is a Multi-Project).
 
Pointed Continuum to the parent POM and this loaded in the projects.  When
running the parent the build fails because it cannot find the child POM in
the working directory.
 
Looking in the directory, the reason is because the checked out folder isnt
the name of the module, but a number:
 
-1   (parent)
-2   (child)
-n
 
If this number was the project name the child POM would of been found.  Is
there some configuration I am missing or is this to do with my setup.  My
Parent module is at the same level as it children if that matters. Parent
POM extract:
 
modules
 module../ProjectAPI/module
 module../ProjectCore/module
/modules
 
Any help appreciated.
 
Regards,
James.
DISCLAIMER: This e-mail is confidential and may also be legally privileged.
If you are not the intended recipient, use of the information contained in
this e-mail (including disclosure, copying or distribution) is prohibited
and may be unlawful.  Please inform the sender and delete the message
immediately from your system.  This e-mail is attributed to the sender and
may not necessarily reflect the views of the Patsystems Group and no member
of the Patsystems Group accepts any liability for any action taken in
reliance on the contents of this e-mail (other than where it has a legal or
regulatory obligation to do so) or for the consequences of any computer
viruses which may have been transmitted by this e-mail. The Patsystems Group
comprises Patsystems plc and its subsidiary group of companies.


Re: M2: Need help with central repositories, and mirrors

2007-08-23 Thread Tim Kettler

Hi,

setting the mirror to an invalid url would certainly work but I imagine 
you would get tons of warnings about failed repository accesses since 
maven would still try download from the mirror.


What I would do instead is to just overwrite the definition of central 
in the qa and cert profiles like this:


  repositories
repository
  idcentral/id
  nameInternal replacement for the central repository/name
  urlhttp://bla.com/repository/url
  releases
enabledtrue/enabled
  /releases
  snapshots
enabledfalse/enabled
  /snapshots
/repository
  /repositories

  pluginRepositories
pluginRepository
  idcentral/id
  nameInternal replacement for the central repository/name
  urlhttp://bla.com/repository/url
  releases
enabledtrue/enabled
  /releases
  snapshots
enabledfalse/enabled
  /snapshots
/pluginRepository
  /pluginRepositories

-Tim

Chris Helck schrieb:

Hi,

How can I redefine the central repository for specific profiles? I have
three profiles defined in my settings.xml: dev, qa, and cert. I want the
dev profile to use the default central repository, but I want the qa
and cert profiles to use specific (but different) in-house URLs. From
what I've read the preferred way of overriding the central repository is
to redirect it via the mirror tag in settings.xml. But I can't use
mirrors/ at the profile/ level, it only goes under settings/, so
the mirror ends up being a global redirect instead of a profile specific
redirect.

Should I disable central completely:
mirror
  idNull Central/id
  nameNull/name
  url/
  mirrorOfcentral/mirrorOf
/mirror

And add http://repo1.maven.org/maven under a different repo id? The in
each profile I could define something lilke:
repository
  idmy-central/id
  ...
/repository

BTW: I'm using maven 2.0.4 on Ubuntu.

Thanks,
Christopher Helck



**
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the Information) is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 (ICAP) or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**





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



Re: M2: Need help with central repositories, and mirrors

2007-08-23 Thread Tim Kettler
Additionally you need to keep in mind to use different local 
repositories as well when using the different profiles on the same 
machine. Else the artifacts from the different repositories will be mixed.


-Tim

Tim Kettler schrieb:

Hi,

setting the mirror to an invalid url would certainly work but I imagine 
you would get tons of warnings about failed repository accesses since 
maven would still try download from the mirror.


What I would do instead is to just overwrite the definition of central 
in the qa and cert profiles like this:


  repositories
repository
  idcentral/id
  nameInternal replacement for the central repository/name
  urlhttp://bla.com/repository/url
  releases
enabledtrue/enabled
  /releases
  snapshots
enabledfalse/enabled
  /snapshots
/repository
  /repositories

  pluginRepositories
pluginRepository
  idcentral/id
  nameInternal replacement for the central repository/name
  urlhttp://bla.com/repository/url
  releases
enabledtrue/enabled
  /releases
  snapshots
enabledfalse/enabled
  /snapshots
/pluginRepository
  /pluginRepositories

-Tim

Chris Helck schrieb:

Hi,

How can I redefine the central repository for specific profiles? I have
three profiles defined in my settings.xml: dev, qa, and cert. I want the
dev profile to use the default central repository, but I want the qa
and cert profiles to use specific (but different) in-house URLs. From
what I've read the preferred way of overriding the central repository is
to redirect it via the mirror tag in settings.xml. But I can't use
mirrors/ at the profile/ level, it only goes under settings/, so
the mirror ends up being a global redirect instead of a profile specific
redirect.

Should I disable central completely:
mirror
  idNull Central/id
  nameNull/name
  url/
  mirrorOfcentral/mirrorOf
/mirror

And add http://repo1.maven.org/maven under a different repo id? The in
each profile I could define something lilke:
repository
  idmy-central/id
  ...
/repository

BTW: I'm using maven 2.0.4 on Ubuntu.

Thanks,
Christopher Helck



**
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the Information) is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its 
affiliates

 (ICAP) or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is 
prohibited. If

 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**





-
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: Having trouble using maven-ejb-plugin -- can't get Class-Path in manifest

2007-08-23 Thread Tim Kettler

Hi,

jzhang schrieb:

I am using Maven 2.0.7. In my ear file, I have a ejb jar (called core.jar)
that depends on common.jar. They are all in the same ear. I want to have
core.jar manifest.mf file have Class-Path entry for common.jar. But I can
not get that work. I follow maven-ejb-plugin instruction:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-ejb-plugin/artifactId
configuration
archive
manifest
addClasspathtrue/addClasspath
/manifest
/archive
!--generateClienttrue/generateClient--
/configuration
/plugin

And I ran: mvn install. The new generated ejb jar file's manifest does not
have Class-Path entry.


Your configuration looks correct and should work. However since 
addClasspath/ adds classpath entries for dependencies of your project 
to the manifest and you seem not to have declared dependencies it may be 
that maven omits the empty classpath entry.



Besides, I want to add common.jar to this path. Then I add:

dependency
groupId${pom.groupId}/groupId
artifactIdmy-common/artifactId
version${pom.version}/version
  
   properties

ejb.manifest.classpathtrue/ejb.manifest.classpath
/properties

/dependency

Then I got 'org.apache.maven.reactor.MavenExecutionException: Parse error
reading POM. Reason: Unrecognised tag: 'properties' (position: START_TAG
seen ...\r\nproperties... @18:25' error.

It seems I can not put properties tag in dependency element. What is
wrong?


It's just as you say: you can't put a properties/ tag into an 
dependency element. I think maven 1 had such a syntax but not maven 2. 
See [1] and [2] for a reference for the pom.


-Tim

[1] http://maven.apache.org/pom.html
[2] http://maven.apache.org/ref/current/maven-model/maven.html

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



Re: [ANN] groovy-maven-plugin 1.0-beta-2

2007-08-23 Thread Jason Dillon
Hi folks, a little note... looks like something is wedged in the  
codehaus - central sync...


As the artifacts have been deployed here:

 http://repository.codehaus.org/org/codehaus/mojo/groovy/groovy/ 
1.0-beta-2/


But is been a long time now and still they haven't made it to here  
(where they should have been already):


http://repo1.maven.org/maven2/org/codehaus/mojo/groovy/groovy/ 
1.0-beta-2/


Hopefully this will be resolved soon.

Sorry about that... :-\

--jason


On Aug 21, 2007, at 12:15 PM, Jason Dillon wrote:


Hiya folks!

I gotta say I am really stoked to announce the release of the  
Groovy Maven Plugin (and related modules) version 1.0-beta-2!


This release has some really nice goodies in it for your Maven 
+Groovy development enjoyment:


 * Support for mixed Java + Groovy compilation
 * New goals to run the shell, console and java2groovy tools from  
Maven


Some updates to the site documentation will be rolling around shortly.

For the full list of issues fixed for this release please see the  
changelog:


http://jira.codehaus.org/secure/IssueNavigator.jspa? 
reset=truepid=11532fixfor=13621


And as always, peep at the latest docs up here:

http://mojo.codehaus.org/groovy/

Cheers,

--jason



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



RE: Junit testing of webapps in maven

2007-08-23 Thread Robbrecht van Amerongen
You can use JMeter for these functional tests. Use the Cargo pluigin to
deploy your application 
Then use the maven-jmeter-plugin.
http://wiki.apache.org/jakarta-jmeter/JMeterMavenPlugin to run your
functional tests. 

On http://technology.amis.nl/blog/?p=2364 you can find an article to get
this plugin running. 

Regards, 

Robbrecht


 

-Original Message-
From: Farrukh Najmi [mailto:[EMAIL PROTECTED] 
Sent: donderdag 23 augustus 2007 0:54
To: Maven Users List
Subject: Junit testing of webapps in maven


I have recently started using maven-jetty6-plugin for my webapp project.
A common problem is that the webapp needs to be deployed in order for
the junit tests to work. At present I manually start jetty6 server using

maven jetty6:run and then manually run the junit tests in a separate 
process.

What is the best solution in maven for automatically testing a webapp 
such that the web container gets started, webapp gets deployed / 
hot-deployed and junit tests run as and wehn required?

Thanks for some guidance on this.

-- 
Regards,
Farrukh

Web: http://www.wellfleetsoftware.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: Missing ant task running under maven-antrun-plugin

2007-08-23 Thread Tim Kettler

Hi,

The antrun-plugin by default only provides the core ant tasks. If you 
need additional tasks you need to include the jar containing the add-on 
tasks to the dependencies/ section of the plugin definition in your pom.


propertyfile is an optional ant task and is contained in 
ant:ant-optional [1]. As you can see the newest version available in 
central is 1.5.3-1 whereas the current antrun-plugin uses ant-1.6.5. I 
don't know if the two versions are compatible. If not you either need to 
create an upload-request for ant-optional:1.6.5 or install it in your 
local repository.


-Tim

[1] http://repo1.maven.org/maven2/ant/ant-optional/

[EMAIL PROTECTED] schrieb:
I've found that when using the maven-antrun-plugin, there are certain 
ant tasks that are unknown and cannot be used.  I've looked for needed 
jars, but not found them.  I've looked for, but not found references to 
this problem.  Here is are a pom and ant file that illustrate the 
problem.  I would like to know how to fix this.  There are other tasks 
that do not work and several builtin properties that are undefined.  
I've just used propertyfile as an example.


Running ant -f install.xml installTarget succeeds and creates two 
files in the basedir.

Running mvn install fails
[ERROR] BUILD ERROR
[INFO] 


[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line:
C:\Temp\install.xml:26: Could not create task or type of type: 
propertyfile.


Ant could not find the task or a class this task relies upon.

I'm using maven 2.0.5 and ant ant 1.6.2.

Any help would be appreciated.
Thanks!
--the walrus

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

 modelVersion4.0.0/modelVersion
 groupIdcom.mycompany.mygroupid/groupId
 artifactIdmyartifact/artifactId
 packagingpom/packaging
 version0.4.0-SNAPSHOT/version
 nameMy maven and ant project/name

 build
   plugins
 plugin
   artifactIdmaven-antrun-plugin/artifactId
   executions
 execution
   idinstallId/id
   phaseinstall/phase
   configuration
 tasks
   ant antfile=${basedir}/install.xml inheritRefs=true
 target name=installTarget /
   /ant
 /tasks
   /configuration
   goals
 goalrun/goal
   /goals
 /execution
   /executions
 /plugin

   /plugins
 /build
/project
=

=install.xml=
?xml version=1.0?
project name=myproject

   tstamp
   format property=install.date.time pattern=.MM.dd.HH.mm/
   format property=install.year pattern=/
   format property=install.month pattern=MM/
   format property=install.day pattern=dd/
   format property=install.hour pattern=HH/
   format property=install.minute pattern=mm/
   /tstamp

   target name=installTarget
   echo message=Running installTarget/
 !-- workaround --
   echo file=${basedir}/install_echo.properties# my comment
install.date.time=${install.date.time}
install.year=${install.year}
install.month=${install.month}
install.day=${install.day}
install.hour=${install.hour}
install.minute=${install.minute}
/echo
 propertyfile file=${basedir}/install.properties
   entry key=install.date.time value=${install.date.time}/
   entry key=install.year value=${install.year}/
   entry key=install.month value=${install.month}/
   entry key=install.day value=${install.day}/
   entry key=install.hour value=${install.hour}/
   entry key=install.minute value=${install.minute}/
   /propertyfile
   echo message=Finished installTarget/
   /target
  /project
==


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



Accessing POM properties in a filter

2007-08-23 Thread William Ferguson
In a resource filter, I can specify tokens like:

token1=${project.version}
token2=${project.properties}

Which when used in a resource file evaluates to:

valueForToken1=1.0-SNAPSHOT
valueForToken2={myProp1=value1, myProp2=value2}

How do I specify a token in the resource filter that resolves to the
value of myProp1?
I've tried all variants (that I can think of) of
${project.properties.myProp1}.

I'm sure there's a way, but I can't find documentation spelling out the
syntax that is required.


William

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



Activating a Profile from another Profile

2007-08-23 Thread William Ferguson
Is there any way to activatee a Profile from another Profile?

We have some pieces of the build, specifcally build.resources
definitions that vary depending on which Profile is targetted. But some
of the resource definitions are identical for several of the Profiles.

So I had hoped to extract the common resource definitions into their own
Profile which was then activated by the target Profiles.

Hopefully that makes sense :-)

It seems this has been asked before without any +ve answer.
http://mail-archives.apache.org/mod_mbox/maven-users/200702.mbox/%3Ce752
[EMAIL PROTECTED]
But maybe the question was just overlooked.

Then again, perhaps there is a better way to come at this, in which case
I'm all ears.


William

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



Re: maven assembly plugin to create a remote repository?

2007-08-23 Thread Stephane Nicoll
Hi,

Yes, I'm doing this for one of my project but it's a bit messy with
snapshots. Regardnig plugins, it's not possible as far as I know. Only
the project's dependencies can be included in a repository.

HTH,
Stéphane

On 8/22/07, Wim Deblauwe [EMAIL PROTECTED] wrote:
 Hi,

 is it possible to use the maven assembly plugin to create a remote
 repository? I have some custom artifacts that my build needs. I don't want
 to force my users to have to manually do 'mvn install:install-file' for each
 of those. I have seen you can create a local repository which you need to
 unzip then, but it would be easier if they can just include a new repository
 url. My project is an open-source sourceforge project, so I can only upload
 static files and not install something like archiva or proximity.

 1) Is this possible?

 2) Is it possible to also include the plugin versions? I'm using some
 SNAPSHOT versions of plugins, but I can't wait forever to release, so I
 would like to give those a custom version and make them available.

 regards,

 Wim

 --
 Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
 Blog: http://www.jroller.com/page/Fester



-- 
Large Systems Suck: This rule is 100% transitive. If you build one,
you suck -- S.Yegge

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



Re: maven assembly plugin to create a remote repository?

2007-08-23 Thread Wim Deblauwe
And how do you do this?

2007/8/23, Stephane Nicoll [EMAIL PROTECTED]:

 Hi,

 Yes, I'm doing this for one of my project but it's a bit messy with
 snapshots. Regardnig plugins, it's not possible as far as I know. Only
 the project's dependencies can be included in a repository.

 HTH,
 Stéphane

 On 8/22/07, Wim Deblauwe [EMAIL PROTECTED] wrote:
  Hi,
 
  is it possible to use the maven assembly plugin to create a remote
  repository? I have some custom artifacts that my build needs. I don't
 want
  to force my users to have to manually do 'mvn install:install-file' for
 each
  of those. I have seen you can create a local repository which you need
 to
  unzip then, but it would be easier if they can just include a new
 repository
  url. My project is an open-source sourceforge project, so I can only
 upload
  static files and not install something like archiva or proximity.
 
  1) Is this possible?
 
  2) Is it possible to also include the plugin versions? I'm using some
  SNAPSHOT versions of plugins, but I can't wait forever to release, so I
  would like to give those a custom version and make them available.
 
  regards,
 
  Wim
 
  --
  Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
  Blog: http://www.jroller.com/page/Fester
 


 --
 Large Systems Suck: This rule is 100% transitive. If you build one,
 you suck -- S.Yegge

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




-- 
Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
Blog: http://www.jroller.com/page/Fester


Re: maven assembly plugin to create a remote repository?

2007-08-23 Thread Stephane Nicoll
You gather the dependencies you need in a project (either directly or
transitively) and you add a repository section in your assembly
descriptor, something like that:

repositories
repository
outputDirectorybuild-integration/repository/outputDirectory
scopetest/scope
/repository
/repositories

Regards from a belgian fellow,

Stéphane

On 8/23/07, Wim Deblauwe [EMAIL PROTECTED] wrote:
 And how do you do this?

 2007/8/23, Stephane Nicoll [EMAIL PROTECTED]:
 
  Hi,
 
  Yes, I'm doing this for one of my project but it's a bit messy with
  snapshots. Regardnig plugins, it's not possible as far as I know. Only
  the project's dependencies can be included in a repository.
 
  HTH,
  Stéphane
 
  On 8/22/07, Wim Deblauwe [EMAIL PROTECTED] wrote:
   Hi,
  
   is it possible to use the maven assembly plugin to create a remote
   repository? I have some custom artifacts that my build needs. I don't
  want
   to force my users to have to manually do 'mvn install:install-file' for
  each
   of those. I have seen you can create a local repository which you need
  to
   unzip then, but it would be easier if they can just include a new
  repository
   url. My project is an open-source sourceforge project, so I can only
  upload
   static files and not install something like archiva or proximity.
  
   1) Is this possible?
  
   2) Is it possible to also include the plugin versions? I'm using some
   SNAPSHOT versions of plugins, but I can't wait forever to release, so I
   would like to give those a custom version and make them available.
  
   regards,
  
   Wim
  
   --
   Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
   Blog: http://www.jroller.com/page/Fester
  
 
 
  --
  Large Systems Suck: This rule is 100% transitive. If you build one,
  you suck -- S.Yegge
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
 Blog: http://www.jroller.com/page/Fester



-- 
Large Systems Suck: This rule is 100% transitive. If you build one,
you suck -- S.Yegge

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



assembly plugin: ordering of dependencies

2007-08-23 Thread aldana

hi,

i am facing following problem:
when building assembly there are two libraries (A.jar+B.jar) which contain
same classes (packageName + className). looking at this library A.jar
contains a class which offers different public methods as B.jar. assembly
plugin now overrides this A.jar class with B.jar classes. 

result of this, that application gives me a NotSuchMethodException.
unfortunately i cannot replace A with B or otherwise. both need to be
assembled into one jar. 

so how is it possible to configure following in assembly plugin:
-dependency X defined in pom.xml of  project P1 should be preferred over
dependency Y in pom.xml of project P2, when running assembly:assembly 

thanks in advance!

besides: i know i should change my architecture to avoid such a library
conflict (there should exist only one class version). but before refactoring
i need a quick solution to make a running release.




-- 
View this message in context: 
http://www.nabble.com/assembly-plugin%3A-ordering-of-dependencies-tf4316169s177.html#a12289677
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Archiva does not generate correct maven-metadata.xml file

2007-08-23 Thread IvanPopov

First, I thank Archiva developpers for the work they have done. This proxy is
really promising.  

Currently, the only feature that miss for me is the generation of the
maven-metadata.xml file.
This file is very important in case of artifact that define a range of
version for dependency.

In my case, there are no maven-metadata.xml file in the repository of
Archiva and the generate one in my local repository has no version field
that cause troubles

With the old maven proxy, http://maven-proxy.codehaus.org/, this file was
correctly generated.

If someone can help me with this trouble or if I can help to correct this,
this will be with pleasure.

Regards,
-- 
View this message in context: 
http://www.nabble.com/Archiva-does-not-generate-correct-maven-metadata.xml-file-tf4316209.html#a12289792
Sent from the archiva-users mailing list archive at Nabble.com.



Skip lifecycle phases

2007-08-23 Thread Christian Clauss
Hello everyone,

 

I am developing a maven2 plug-in and I'm having a problem.

My goal is to end the build process with Build successful at the
lifecycle phase validate although I'm calling the mvn deploy.

Could you please tell me how this is possible?

 

Best Regards

 

Christian



Re: assembly plugin: ordering of dependencies

2007-08-23 Thread Tim Kettler

Hi,

As far as I know this is not supported by the assembly-plugin directly.

If the two jars contain exactly the same set of classes (just different 
versions) you can just exclude one of them via the excludes/ tag. Or 
you can try to define two distinct dependencySet respectivly 
moduleSet/ definitions. One containing the dependencies pulling in 
A.jar, one with the dependencies pulling in B.jar and then try to switch 
the order of the two definitions in your assembly descriptor and hope 
that that switches the order in which the jars get copied.


-Tim

aldana schrieb:

hi,

i am facing following problem:
when building assembly there are two libraries (A.jar+B.jar) which contain
same classes (packageName + className). looking at this library A.jar
contains a class which offers different public methods as B.jar. assembly
plugin now overrides this A.jar class with B.jar classes. 


result of this, that application gives me a NotSuchMethodException.
unfortunately i cannot replace A with B or otherwise. both need to be
assembled into one jar. 


so how is it possible to configure following in assembly plugin:
-dependency X defined in pom.xml of  project P1 should be preferred over
dependency Y in pom.xml of project P2, when running assembly:assembly 


thanks in advance!

besides: i know i should change my architecture to avoid such a library
conflict (there should exist only one class version). but before refactoring
i need a quick solution to make a running release.







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



Re: Junit testing of webapps in maven

2007-08-23 Thread Michael McCallum
junit and testng are testing tools if you use them to test little bits of code 
thats a unit test

if you use it to test the function of something e.g. via selenium then its a 
functional test

I test everything

easymock + testng + hsqldb + hibernate + jsf +selenium == testing from db to 
view

On Thursday 23 August 2007 16:49, noon wrote:
 I think the webapp doesn't prohibit to use the unit tests in any matter.
 Unit tests are just unit tests which purpose is to test a single method in
 a class. Unit tests shouldn't be depended on any other external tools like
 web server or database. If you like to to test the DAO layer, you can use
 e.g. the HSQL inmemory database as a datasource.

 Then there are other tools which acts like Http Server which allows you
 to test the controller (web layer) and JSP pages.

 Personally I don't test the controller layer atall... yet. I might start
 testing the jsp pages but for now I'm focusing on writing unit tests on the
 manager (business) level.

-- 
Michael McCallum
Enterprise Engineer
mailto:[EMAIL PROTECTED]

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



Re: deploying to proximity via webdav

2007-08-23 Thread Heinrich Nirschl
On 8/23/07, Dave Hoffer [EMAIL PROTECTED] wrote:
 If I recall correctly proximity did not support uploading artifacts only
 downloading them.  This may have changed since we used it however.  I
 think this was one of the reasons we switched to Artifactory.  With
 proximity we were using ftp to upload (deploy, release).

[configuration example deleted]

Thanks for the configuration example. Upload to proximity via WebDAV
works in principle, I can successfully upload to the other
repositories (inhouse, inhouse.snapshot, extFree). It's just the
extNonFree that doesn't work.

I hoped, somebody knows the trick how to do it or can confirm that it
doesn't work in the current version. Unfortunately the source is not
available at the moment, otherwise I would have had a look there.

If I don't get it to work I have to switch to other upload methods (ftp or scp).

- Henry

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



Re: maven assembly plugin to create a remote repository?

2007-08-23 Thread Wim Deblauwe
But according to the documentation of the assembly plugin[1]: This example
demonstrates the creation of repository artifacts in an assembly so that the
archive can easily be used to update an *internal* repository with the
artifacts used by your project.

I want to create a directory structure that I can upload to sourceforge and
serve as a remote repository or is it the same structure?

regards,

Wim

[1]
http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/using-repositories.html


2007/8/23, Stephane Nicoll [EMAIL PROTECTED]:

 You gather the dependencies you need in a project (either directly or
 transitively) and you add a repository section in your assembly
 descriptor, something like that:

 repositories
 repository

 outputDirectorybuild-integration/repository/outputDirectory
 scopetest/scope
 /repository
 /repositories

 Regards from a belgian fellow,

 Stéphane

 On 8/23/07, Wim Deblauwe [EMAIL PROTECTED] wrote:
  And how do you do this?
 
  2007/8/23, Stephane Nicoll [EMAIL PROTECTED]:
  
   Hi,
  
   Yes, I'm doing this for one of my project but it's a bit messy with
   snapshots. Regardnig plugins, it's not possible as far as I know. Only
   the project's dependencies can be included in a repository.
  
   HTH,
   Stéphane
  
   On 8/22/07, Wim Deblauwe [EMAIL PROTECTED] wrote:
Hi,
   
is it possible to use the maven assembly plugin to create a remote
repository? I have some custom artifacts that my build needs. I
 don't
   want
to force my users to have to manually do 'mvn install:install-file'
 for
   each
of those. I have seen you can create a local repository which you
 need
   to
unzip then, but it would be easier if they can just include a new
   repository
url. My project is an open-source sourceforge project, so I can only
   upload
static files and not install something like archiva or proximity.
   
1) Is this possible?
   
2) Is it possible to also include the plugin versions? I'm using
 some
SNAPSHOT versions of plugins, but I can't wait forever to release,
 so I
would like to give those a custom version and make them available.
   
regards,
   
Wim
   
--
Vigilog - an open source log file viewer:
 http://vigilog.sourceforge.net
Blog: http://www.jroller.com/page/Fester
   
  
  
   --
   Large Systems Suck: This rule is 100% transitive. If you build one,
   you suck -- S.Yegge
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
  Blog: http://www.jroller.com/page/Fester
 


 --
 Large Systems Suck: This rule is 100% transitive. If you build one,
 you suck -- S.Yegge

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




-- 
Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
Blog: http://www.jroller.com/page/Fester


Re: maven assembly plugin to create a remote repository?

2007-08-23 Thread Stephane Nicoll
Well, you hit part of the actual problem we're facing as well.

The documentation referred by your link is wrong. There's a flag that
allows to include the metadata in order for the repository to be used
as a standard remote repository

snip
includeMetadata If set to true, this property will trigger the
creation of repository metadata which will allow the repository to be
used as a functional remote repository. The default value is false
snip

Now the actual problem is to deploy this to your remote repository.
The first time will work but for subsequent deployments, you'll need
to merge the metadata and there's no tool out there that is stable
enough to do that. We're working on the staging plugin and I do hope
we'll find a solution. If you want to hack a bit, check the
reposiorytools plugin in the mojo sandbox. For simple use cases, it
will work.

Cheers,
Stéphane

On 8/23/07, Wim Deblauwe [EMAIL PROTECTED] wrote:
 But according to the documentation of the assembly plugin[1]: This example
 demonstrates the creation of repository artifacts in an assembly so that the
 archive can easily be used to update an *internal* repository with the
 artifacts used by your project.

 I want to create a directory structure that I can upload to sourceforge and
 serve as a remote repository or is it the same structure?

 regards,

 Wim

 [1]
 http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/using-repositories.html


 2007/8/23, Stephane Nicoll [EMAIL PROTECTED]:
 
  You gather the dependencies you need in a project (either directly or
  transitively) and you add a repository section in your assembly
  descriptor, something like that:
 
  repositories
  repository
 
  outputDirectorybuild-integration/repository/outputDirectory
  scopetest/scope
  /repository
  /repositories
 
  Regards from a belgian fellow,
 
  Stéphane
 
  On 8/23/07, Wim Deblauwe [EMAIL PROTECTED] wrote:
   And how do you do this?
  
   2007/8/23, Stephane Nicoll [EMAIL PROTECTED]:
   
Hi,
   
Yes, I'm doing this for one of my project but it's a bit messy with
snapshots. Regardnig plugins, it's not possible as far as I know. Only
the project's dependencies can be included in a repository.
   
HTH,
Stéphane
   
On 8/22/07, Wim Deblauwe [EMAIL PROTECTED] wrote:
 Hi,

 is it possible to use the maven assembly plugin to create a remote
 repository? I have some custom artifacts that my build needs. I
  don't
want
 to force my users to have to manually do 'mvn install:install-file'
  for
each
 of those. I have seen you can create a local repository which you
  need
to
 unzip then, but it would be easier if they can just include a new
repository
 url. My project is an open-source sourceforge project, so I can only
upload
 static files and not install something like archiva or proximity.

 1) Is this possible?

 2) Is it possible to also include the plugin versions? I'm using
  some
 SNAPSHOT versions of plugins, but I can't wait forever to release,
  so I
 would like to give those a custom version and make them available.

 regards,

 Wim

 --
 Vigilog - an open source log file viewer:
  http://vigilog.sourceforge.net
 Blog: http://www.jroller.com/page/Fester

   
   
--
Large Systems Suck: This rule is 100% transitive. If you build one,
you suck -- S.Yegge
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
   --
   Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
   Blog: http://www.jroller.com/page/Fester
  
 
 
  --
  Large Systems Suck: This rule is 100% transitive. If you build one,
  you suck -- S.Yegge
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
 Blog: http://www.jroller.com/page/Fester



-- 
Large Systems Suck: This rule is 100% transitive. If you build one,
you suck -- S.Yegge

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



Maven keeps trying to download - even after a success.

2007-08-23 Thread Mark Hansen
Maven2 has sucessfully downloaded the artifact 'servlet-4.1.36.jar' 
required by my POM.  Yet, every time I run 'mvn install, maven2 tries 
to download it again.  See console output below.  Why is that?  It 
doesn't seem to be happening with the other dependencies.  Thanks -- Mark


[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: 
http://repo1.maven.org/maven2/tomcat/servlet/4.1.36/servlet-4.1.36.pom
[WARNING] Unable to get resource from repository maven 
(http://repo1.maven.org/maven2)
Downloading: 
http://www.ibiblio.org/maven2/tomcat/servlet/4.1.36/servlet-4.1.36.pom
[WARNING] Unable to get resource from repository ibiblio 
(http://www.ibiblio.org/maven2)
Downloading: 
http://download.java.net/maven/2//tomcat/servlet/4.1.36/servlet-4.1.36.pom
[WARNING] Unable to get resource from repository 
maven2-repository.dev.java.net (http://download.java.net/maven/2/)
Downloading: 
http://download.java.net/maven/1//tomcat/poms/servlet-4.1.36.pom
[WARNING] Unable to get resource from repository 
maven1-repository.dev.java.net (http://download.java.net/maven/1/)
Downloading: 
http://repo1.maven.org/maven2/tomcat/servlet/4.1.36/servlet-4.1.36.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)


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



Re: monitoring builds

2007-08-23 Thread Michael Meyer

Hi
we use continuums xml-rpc api for this. Look in the archive for 
[1.1-beta-1] How does the XML-RPC API work? (Date: 10. August 2007). 
Emmanuel Venisse explains it nicely.


Cheers, michael

Ionut S wrote:

Hi,
I want to implement a system of lava lamps for our continuum server and I need a way to find out when a build was done and the result. I know about the notifications mechanism, but my lava lamps will not be located on the same computer that hosts the continuum server. 


My computer is behind a firewall and I can't change these settings - hence I can access 
the continuum server from my computer but not the other way around. As a consequence, I 
will need a way from my computer to ping Continuum from time to time and see 
when a build was done.

Another method would be to have an application that checks the email and see if 
an email notification arrived (we have email notifications configured, yes). 
However, this solution doesn't seem very elegant - I would keep it only as the 
last resort..

Thank you in advance for your advices !

Ionut

   
-

Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us.


--
Michael Meyer | [EMAIL PROTECTED]
phone +41-44-247 79 12 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch



Re: maven assembly plugin to create a remote repository?

2007-08-23 Thread Wim Deblauwe
2007/8/23, Stephane Nicoll [EMAIL PROTECTED]:

 Well, you hit part of the actual problem we're facing as well.

 The documentation referred by your link is wrong. There's a flag that
 allows to include the metadata in order for the repository to be used
 as a standard remote repository


ignorebut that is the official page of the plugin! I would expect some
accurate information here. /ignore
ok, thank you for that information :)

snip
 includeMetadata If set to true, this property will trigger the
 creation of repository metadata which will allow the repository to be
 used as a functional remote repository. The default value is false
 snip

 Now the actual problem is to deploy this to your remote repository.
 The first time will work but for subsequent deployments, you'll need
 to merge the metadata and there's no tool out there that is stable
 enough to do that. We're working on the staging plugin and I do hope
 we'll find a solution. If you want to hack a bit, check the
 reposiorytools plugin in the mojo sandbox. For simple use cases, it
 will work.


My open source project is very simple with only a few dependencies. I could
live with fact that I wipe out the complete remote repository and upload all
the dependencies again for now. So if I let the assembly plugin generate
that zip file, unzip that file onto a directory that the site plugin will
upload (target/site or target/staging), I should get a remote repository on
my website. Is this correct?

thank you for your help,

regards,

Wim

Cheers,
 Stéphane

 On 8/23/07, Wim Deblauwe [EMAIL PROTECTED] wrote:
  But according to the documentation of the assembly plugin[1]: This
 example
  demonstrates the creation of repository artifacts in an assembly so that
 the
  archive can easily be used to update an *internal* repository with the
  artifacts used by your project.
 
  I want to create a directory structure that I can upload to sourceforge
 and
  serve as a remote repository or is it the same structure?
 
  regards,
 
  Wim
 
  [1]
 
 http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/using-repositories.html
 
 
  2007/8/23, Stephane Nicoll [EMAIL PROTECTED]:
  
   You gather the dependencies you need in a project (either directly or
   transitively) and you add a repository section in your assembly
   descriptor, something like that:
  
   repositories
   repository
  
  
 outputDirectorybuild-integration/repository/outputDirectory
   scopetest/scope
   /repository
   /repositories
  
   Regards from a belgian fellow,
  
   Stéphane
  
   On 8/23/07, Wim Deblauwe [EMAIL PROTECTED] wrote:
And how do you do this?
   
2007/8/23, Stephane Nicoll [EMAIL PROTECTED]:

 Hi,

 Yes, I'm doing this for one of my project but it's a bit messy
 with
 snapshots. Regardnig plugins, it's not possible as far as I know.
 Only
 the project's dependencies can be included in a repository.

 HTH,
 Stéphane

 On 8/22/07, Wim Deblauwe [EMAIL PROTECTED] wrote:
  Hi,
 
  is it possible to use the maven assembly plugin to create a
 remote
  repository? I have some custom artifacts that my build needs. I
   don't
 want
  to force my users to have to manually do 'mvn
 install:install-file'
   for
 each
  of those. I have seen you can create a local repository which
 you
   need
 to
  unzip then, but it would be easier if they can just include a
 new
 repository
  url. My project is an open-source sourceforge project, so I can
 only
 upload
  static files and not install something like archiva or
 proximity.
 
  1) Is this possible?
 
  2) Is it possible to also include the plugin versions? I'm using
   some
  SNAPSHOT versions of plugins, but I can't wait forever to
 release,
   so I
  would like to give those a custom version and make them
 available.
 
  regards,
 
  Wim
 
  --
  Vigilog - an open source log file viewer:
   http://vigilog.sourceforge.net
  Blog: http://www.jroller.com/page/Fester
 


 --
 Large Systems Suck: This rule is 100% transitive. If you build
 one,
 you suck -- S.Yegge


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


   
   
--
Vigilog - an open source log file viewer:
 http://vigilog.sourceforge.net
Blog: http://www.jroller.com/page/Fester
   
  
  
   --
   Large Systems Suck: This rule is 100% transitive. If you build one,
   you suck -- S.Yegge
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
  Blog: http://www.jroller.com/page/Fester
 


 --
 Large 

Re: monitoring builds

2007-08-23 Thread Michael Meyer

Hi
I've only used xml-rpc with continuum 1.1-beta-1. But the documentation 
[1] suggests that xml-rpc works with 1.0.3


Cheers, michael

[1] http://maven.apache.org/continuum/guides/mini/guide-xmlrpc-api.html

Ionut S wrote:
Do you know when this feature was added ? We still have the 1.0.3 
version ...




*/Michael Meyer [EMAIL PROTECTED]/* wrote:

Hi
we use continuums xml-rpc api for this. Look in the archive for
[1.1-beta-1] How does the XML-RPC API work? (Date: 10. August 2007).
Emmanuel Venisse explains it nicely.

Cheers, michael

Ionut S wrote:
  Hi,
  I want to implement a system of lava lamps for our continuum
server and I need a way to find out when a build was done and the
result. I know about the notifications mechanism, but my lava lamps
will not be located on the same computer that hosts the continuum
server.
 
  My computer is behind a firewall and I can't change these
settings - hence I can access the continuum server from my computer
but not the other way around. As a consequence, I will need a way
from my computer to ping Continuum from time to time and see when
a build was done.
 
  Another method would be to have an application that checks the
email and see if an email notification arrived (we have email
notifications configured, yes). However, this solution doesn't seem
very elegant - I would keep it only as the last resort..
 
  Thank you in advance for your advices !
 
  Ionut
 
 
  -
  Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s
user panel and lay it on us.

-- 
Michael Meyer | [EMAIL PROTECTED]

phone +41-44-247 79 12 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch



Shape Yahoo! in your own image. Join our Network Research Panel today! 
http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 



--
Michael Meyer | [EMAIL PROTECTED]
phone +41-44-247 79 12 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch



Re: maven assembly plugin to create a remote repository?

2007-08-23 Thread Stephane Nicoll
On 8/23/07, Wim Deblauwe [EMAIL PROTECTED] wrote:
 2007/8/23, Stephane Nicoll [EMAIL PROTECTED]:

 ignorebut that is the official page of the plugin! I would expect some
 accurate information here. /ignore

ignore
If you're not happy, provide a patch or open an issue :) There's
plenty of things that need to be improved.
/ignore

 My open source project is very simple with only a few dependencies. I could
 live with fact that I wipe out the complete remote repository and upload all
 the dependencies again for now. So if I let the assembly plugin generate
 that zip file, unzip that file onto a directory that the site plugin will
 upload (target/site or target/staging), I should get a remote repository on
 my website. Is this correct?

Yes.


 thank you for your help,

You're welcome.

Cheers,
Stéphane


 regards,

 Wim

 Cheers,
  Stéphane
 
  On 8/23/07, Wim Deblauwe [EMAIL PROTECTED] wrote:
   But according to the documentation of the assembly plugin[1]: This
  example
   demonstrates the creation of repository artifacts in an assembly so that
  the
   archive can easily be used to update an *internal* repository with the
   artifacts used by your project.
  
   I want to create a directory structure that I can upload to sourceforge
  and
   serve as a remote repository or is it the same structure?
  
   regards,
  
   Wim
  
   [1]
  
  http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/using-repositories.html
  
  
   2007/8/23, Stephane Nicoll [EMAIL PROTECTED]:
   
You gather the dependencies you need in a project (either directly or
transitively) and you add a repository section in your assembly
descriptor, something like that:
   
repositories
repository
   
   
  outputDirectorybuild-integration/repository/outputDirectory
scopetest/scope
/repository
/repositories
   
Regards from a belgian fellow,
   
Stéphane
   
On 8/23/07, Wim Deblauwe [EMAIL PROTECTED] wrote:
 And how do you do this?

 2007/8/23, Stephane Nicoll [EMAIL PROTECTED]:
 
  Hi,
 
  Yes, I'm doing this for one of my project but it's a bit messy
  with
  snapshots. Regardnig plugins, it's not possible as far as I know.
  Only
  the project's dependencies can be included in a repository.
 
  HTH,
  Stéphane
 
  On 8/22/07, Wim Deblauwe [EMAIL PROTECTED] wrote:
   Hi,
  
   is it possible to use the maven assembly plugin to create a
  remote
   repository? I have some custom artifacts that my build needs. I
don't
  want
   to force my users to have to manually do 'mvn
  install:install-file'
for
  each
   of those. I have seen you can create a local repository which
  you
need
  to
   unzip then, but it would be easier if they can just include a
  new
  repository
   url. My project is an open-source sourceforge project, so I can
  only
  upload
   static files and not install something like archiva or
  proximity.
  
   1) Is this possible?
  
   2) Is it possible to also include the plugin versions? I'm using
some
   SNAPSHOT versions of plugins, but I can't wait forever to
  release,
so I
   would like to give those a custom version and make them
  available.
  
   regards,
  
   Wim
  
   --
   Vigilog - an open source log file viewer:
http://vigilog.sourceforge.net
   Blog: http://www.jroller.com/page/Fester
  
 
 
  --
  Large Systems Suck: This rule is 100% transitive. If you build
  one,
  you suck -- S.Yegge
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Vigilog - an open source log file viewer:
  http://vigilog.sourceforge.net
 Blog: http://www.jroller.com/page/Fester

   
   
--
Large Systems Suck: This rule is 100% transitive. If you build one,
you suck -- S.Yegge
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
   --
   Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
   Blog: http://www.jroller.com/page/Fester
  
 
 
  --
  Large Systems Suck: This rule is 100% transitive. If you build one,
  you suck -- S.Yegge
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
 Blog: http://www.jroller.com/page/Fester



-- 
Large Systems Suck: This rule is 100% transitive. If you build one,
you suck -- S.Yegge


Re: Eclipse 3.3 plugin artifacts for Maven 2

2007-08-23 Thread Marshall Schor
Hi everyone -

Did I ask this question on the wrong list?  No one has responded, I think..

Any pointers on how to get this fixed would be appreciated :-)

-Marshall


Marshall Schor wrote:
 We have a Maven 2 build that would like to depend on Eclipse 3.3
 plugin artifacts.

 We've found one repository, http://repo1.maven.org/eclipse/ which has
 some 3.3 artifacts, but many which we want to depend on are missing,
 such as org.eclipse.jface.viewers.

 Is there a public repository which has all the eclipse 3.3. release
 artifacts?  If not, can someone add these artifacts to an existing
 pubilc repository?

 Thanks. -Marshall Schor (Apache UIMA committer)

 -
 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: Eclipse 3.3 plugin artifacts for Maven 2

2007-08-23 Thread Carlos Sanchez
I'm working on it, it's just that it takes time
we use the eclipse plugin with the eclipse:to-maven goal
http://maven.apache.org/plugins/maven-eclipse-plugin/

you probably need to build the last code from subversion

On 8/23/07, Marshall Schor [EMAIL PROTECTED] wrote:
 Hi everyone -

 Did I ask this question on the wrong list?  No one has responded, I think..

 Any pointers on how to get this fixed would be appreciated :-)

 -Marshall


 Marshall Schor wrote:
  We have a Maven 2 build that would like to depend on Eclipse 3.3
  plugin artifacts.
 
  We've found one repository, http://repo1.maven.org/eclipse/ which has
  some 3.3 artifacts, but many which we want to depend on are missing,
  such as org.eclipse.jface.viewers.
 
  Is there a public repository which has all the eclipse 3.3. release
  artifacts?  If not, can someone add these artifacts to an existing
  pubilc repository?
 
  Thanks. -Marshall Schor (Apache UIMA committer)
 
  -
  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]




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



maven-eclipse-plugin classpathContainers parameter question

2007-08-23 Thread Mark Hansen
I've got a multi-project maven build where some modules use different 
versions of the JRE than others.  I am using eclipse:eclipse to 
synchronize my maven build process with the eclipse development environment.


I use the classpathContainers parameter to specify the JRE for each 
module.  However, it seems that in addition to the JRE specified by 
classpathContainers, the maven-eclipse-plugin also adds the default 
workspace JRE to each module.


Is there any way to prevent this behavior, so that only the 
classpathContainers specified JRE is added to the eclipse build path and 
the default JRE is ignored?


Thanks,

Mark



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



assembly plugin: transitive dependencies do not get included

2007-08-23 Thread aldana

hi,

i am using assembly plugin with standard descriptor jar-with-dependencies.
problem is that transitive dependencies do not get included.

pom.xml from project A:
...
 groupIda/groupId
 artifactIda/artifactId
 version1.0/version
 dependencies
dependency
  groupIdtran/groupId
  artifactIddep/artifactId
  version1.0/version
/dependency  
   /dependencies
...


pom.xml from project B:
...
 groupIdb/groupId
 artifactIdb/artifactId
 version1.0/version
 build
 ... enabling assembly-plugin with jar-with-dependencies...
 /build
 dependencies
dependency
  groupIda/groupId
  artifactIda/artifactId
  version1.0/version
/dependency  
 /dependencies
...

i am doing assembly:assembly on b:b. now tran:dep does not get included
though it is defined in a:a. that means: if i open the assembled jar-file
(from b:b) i cannot see any artifacts from tran:dep.

what is going wrong here? thought that default behaviour of
jar-with-dependencies includes everything as told in 
http://www.nabble.com/-M2--How-to-include-transitive-dependencies-with-Assembly-plugin-tf2177453s177.html#a6020485?

i am using plugin in version 2.2-beta-1.

thanks for your help.


-- 
View this message in context: 
http://www.nabble.com/assembly-plugin%3A-transitive-dependencies-do-not-get-included-tf4317601s177.html#a12293820
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: assembly plugin: ordering of dependencies

2007-08-23 Thread aldana

alright, i'll try that as a quick solution. after having refactored i hope i
get rid of this evil duplicate class-dependency.


Tim Kettler wrote:
 
 Hi,
 
 As far as I know this is not supported by the assembly-plugin directly.
 
 If the two jars contain exactly the same set of classes (just different 
 versions) you can just exclude one of them via the excludes/ tag. Or 
 you can try to define two distinct dependencySet respectivly 
 moduleSet/ definitions. One containing the dependencies pulling in 
 A.jar, one with the dependencies pulling in B.jar and then try to switch 
 the order of the two definitions in your assembly descriptor and hope 
 that that switches the order in which the jars get copied.
 
 -Tim
 
 aldana schrieb:
 hi,
 
 i am facing following problem:
 when building assembly there are two libraries (A.jar+B.jar) which
 contain
 same classes (packageName + className). looking at this library A.jar
 contains a class which offers different public methods as B.jar. assembly
 plugin now overrides this A.jar class with B.jar classes. 
 
 result of this, that application gives me a NotSuchMethodException.
 unfortunately i cannot replace A with B or otherwise. both need to be
 assembled into one jar. 
 
 so how is it possible to configure following in assembly plugin:
 -dependency X defined in pom.xml of  project P1 should be preferred over
 dependency Y in pom.xml of project P2, when running assembly:assembly 
 
 thanks in advance!
 
 besides: i know i should change my architecture to avoid such a library
 conflict (there should exist only one class version). but before
 refactoring
 i need a quick solution to make a running release.
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/assembly-plugin%3A-ordering-of-dependencies-tf4316169s177.html#a12293947
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: maven plugin alternative to assembly plugin

2007-08-23 Thread aldana

hi again,

i tried to search in archive to find out how to achieve packaging a release
like stated below. no success (maybe wrong keywords...).

that's why i would like to ask you for an example how to do this. i really
need to get rid of this muddy copy all into one jar assembly...

many thanks again.



Dirk Olmes-4 wrote:
 
 hi,

 does anybody know an alternative to assembly plugin which is mainly
 putting all stuff into a single jar.

 would prefer a layout where libraries are organized as following:

 -mainJar.jar
 -lib/
   -dependentJar1
   -dependentJar2
   -...

 the main task would be to set up Manifest.MF from mainJar.jar correctly
 so
 neccessary classpaths are set correctly and reference to outside living
 lib/*.jar.
 
 That's perfectly doable with the assembly plugin and the jar plugin. I'm
 not at my machine right now so I cannot provide you with the exaxt
 details. Search the archive, though, this has been done before. Or bug me
 per mail next week when I'm back home to send you the example config.
 
 -dirk
 
 -- 
 Anyway kids, have fun, play nicely, be good. And remember - if it ain't
 broke, hit it again.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/maven-plugin-alternative-to-assembly-plugin-tf4262116s177.html#a12294278
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: assembly plugin: ordering of dependencies

2007-08-23 Thread Wayne Fay
You might try using the dependency:unpack mojo to unpack those 2 jars
on top of each other. I'm not positive it supports ordering but it
would be a quick test to find out if it would work for you. Assuming
you could unpack the old one first, and then the new one on top of it,
you would achieve the results you desire.

Then instead of including those 2 jars, you would just include their
*.class files directly.

Wayne

On 8/23/07, aldana [EMAIL PROTECTED] wrote:

 alright, i'll try that as a quick solution. after having refactored i hope i
 get rid of this evil duplicate class-dependency.


 Tim Kettler wrote:
 
  Hi,
 
  As far as I know this is not supported by the assembly-plugin directly.
 
  If the two jars contain exactly the same set of classes (just different
  versions) you can just exclude one of them via the excludes/ tag. Or
  you can try to define two distinct dependencySet respectivly
  moduleSet/ definitions. One containing the dependencies pulling in
  A.jar, one with the dependencies pulling in B.jar and then try to switch
  the order of the two definitions in your assembly descriptor and hope
  that that switches the order in which the jars get copied.
 
  -Tim
 
  aldana schrieb:
  hi,
 
  i am facing following problem:
  when building assembly there are two libraries (A.jar+B.jar) which
  contain
  same classes (packageName + className). looking at this library A.jar
  contains a class which offers different public methods as B.jar. assembly
  plugin now overrides this A.jar class with B.jar classes.
 
  result of this, that application gives me a NotSuchMethodException.
  unfortunately i cannot replace A with B or otherwise. both need to be
  assembled into one jar.
 
  so how is it possible to configure following in assembly plugin:
  -dependency X defined in pom.xml of  project P1 should be preferred over
  dependency Y in pom.xml of project P2, when running assembly:assembly
 
  thanks in advance!
 
  besides: i know i should change my architecture to avoid such a library
  conflict (there should exist only one class version). but before
  refactoring
  i need a quick solution to make a running release.
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/assembly-plugin%3A-ordering-of-dependencies-tf4316169s177.html#a12293947
 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: Maven keeps trying to download - even after a success.

2007-08-23 Thread Wayne Fay
Apparently, you don't have a corresponding pom for the jar. If you
look at the warning, you'll see its looking for the POM file not the
JAR file.

Maven will keep looking for the pom, until it finds one or you give it
one. To make this error go away, you'll need to provide a pom for this
artifact. You can just copy it directly into the proper place in your
local repo cache under ~/.m2.

Wayne

On 8/23/07, Mark Hansen [EMAIL PROTECTED] wrote:
 Maven2 has sucessfully downloaded the artifact 'servlet-4.1.36.jar'
 required by my POM.  Yet, every time I run 'mvn install, maven2 tries
 to download it again.  See console output below.  Why is that?  It
 doesn't seem to be happening with the other dependencies.  Thanks -- Mark

 [INFO] [resources:resources]
 [INFO] Using default encoding to copy filtered resources.
 Downloading:
 http://repo1.maven.org/maven2/tomcat/servlet/4.1.36/servlet-4.1.36.pom
 [WARNING] Unable to get resource from repository maven
 (http://repo1.maven.org/maven2)
 Downloading:
 http://www.ibiblio.org/maven2/tomcat/servlet/4.1.36/servlet-4.1.36.pom
 [WARNING] Unable to get resource from repository ibiblio
 (http://www.ibiblio.org/maven2)
 Downloading:
 http://download.java.net/maven/2//tomcat/servlet/4.1.36/servlet-4.1.36.pom
 [WARNING] Unable to get resource from repository
 maven2-repository.dev.java.net (http://download.java.net/maven/2/)
 Downloading:
 http://download.java.net/maven/1//tomcat/poms/servlet-4.1.36.pom
 [WARNING] Unable to get resource from repository
 maven1-repository.dev.java.net (http://download.java.net/maven/1/)
 Downloading:
 http://repo1.maven.org/maven2/tomcat/servlet/4.1.36/servlet-4.1.36.pom
 [WARNING] Unable to get resource from repository central
 (http://repo1.maven.org/maven2)

 -
 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: Having trouble using maven-ejb-plugin -- can't get Class-Path in manifest

2007-08-23 Thread jzhang


Tim Kettler wrote:
 
 Hi,
 
 jzhang schrieb:
 I am using Maven 2.0.7. In my ear file, I have a ejb jar (called
 core.jar)
 that depends on common.jar. They are all in the same ear. I want to have
 core.jar manifest.mf file have Class-Path entry for common.jar. But I can
 not get that work. I follow maven-ejb-plugin instruction:
 
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-ejb-plugin/artifactId
 configuration
 archive
 manifest
 addClasspathtrue/addClasspath
 /manifest
 /archive
 !--generateClienttrue/generateClient--
 /configuration
 /plugin
 
 And I ran: mvn install. The new generated ejb jar file's manifest does
 not
 have Class-Path entry.
 
 Your configuration looks correct and should work. However since 
 addClasspath/ adds classpath entries for dependencies of your project 
 to the manifest and you seem not to have declared dependencies it may be 
 that maven omits the empty classpath entry.
 
 Besides, I want to add common.jar to this path. Then I add:
 
 dependency
 groupId${pom.groupId}/groupId
 artifactIdmy-common/artifactId
 version${pom.version}/version
   
properties
  ejb.manifest.classpathtrue/ejb.manifest.classpath
  /properties
  
 /dependency
 
 Then I got 'org.apache.maven.reactor.MavenExecutionException: Parse error
 reading POM. Reason: Unrecognised tag: 'properties' (position: START_TAG
 seen ...\r\nproperties... @18:25' error.
 
 It seems I can not put properties tag in dependency element. What is
 wrong?
 
 It's just as you say: you can't put a properties/ tag into an 
 dependency element. I think maven 1 had such a syntax but not maven 2. 
 See [1] and [2] for a reference for the pom.
 
 -Tim
 
 [1] http://maven.apache.org/pom.html
 [2] http://maven.apache.org/ref/current/maven-model/maven.html
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


Thanks for the feedback. From 'maven-ejb-plugin' page, I found this FAQ:
http://maven.apache.org/plugins/maven-ejb-plugin/faq.html. It dose not have
any entry for which dependency should be added to Class-Path. I thought it
should be added in that dependency declaration as 'properties'. But I got
error. One question -- how do I know if this plugin is installed? I did not
do anything but downloaded Maven 2.0.7.
-- 
View this message in context: 
http://www.nabble.com/Having-trouble-using-maven-ejb-plugincan%27t-get-Class-Path-in-manifest-tf4312954s177.html#a12295668
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: Issue with ejb manifest

2007-08-23 Thread jzhang



LarryS wrote:
 
 Hi I am hoping somebody can help me understand how manifests are
 created by the ejb plugin as I am having a strange proble. I have two
 ejbs in my build. Both have a dependency to another jar which has a
 jar with hibernate mappings in it. The jar with the hibernate mappings
 appears in the manifest of one of the ejbs but not the other. The
 dependency list and the ejb plugin is configured identically in the
 pom.xml of both ejbsdoes anyone have an idea as to why this might
 be happening.
 
 Larry
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

Can youpost your pom.xml?
-- 
View this message in context: 
http://www.nabble.com/Issue-with-ejb-manifest-tf4112557s177.html#a12296038
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Creating maven project

2007-08-23 Thread sprabhu

Hi,

We am currently using ant for our build environment.
We are planning to use Maven for build process.

We already have all the third party jar libraries in our cvs repository.
In our maven project we want to use this jar files directly instead of
providing 
the groupid, artifactid and versionid.
Is there any way in Maven in which I can provide the full path of the jars 
on which the project depends.
All our projects use the same version of the third party jars so we have
removed 
the version number from the jar name.

Thanks in advance.

Regards,
Santosh
-- 
View this message in context: 
http://www.nabble.com/Creating-maven-project-tf4318371s177.html#a12296368
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: Having trouble using maven-ejb-plugin -- can't get Class-Path in manifest

2007-08-23 Thread Tim Kettler

jzhang schrieb:


Tim Kettler wrote:

Hi,

jzhang schrieb:

I am using Maven 2.0.7. In my ear file, I have a ejb jar (called
core.jar)
that depends on common.jar. They are all in the same ear. I want to have
core.jar manifest.mf file have Class-Path entry for common.jar. But I can
not get that work. I follow maven-ejb-plugin instruction:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-ejb-plugin/artifactId
configuration
archive
manifest
addClasspathtrue/addClasspath
/manifest
/archive
!--generateClienttrue/generateClient--
/configuration
/plugin

And I ran: mvn install. The new generated ejb jar file's manifest does
not
have Class-Path entry.
Your configuration looks correct and should work. However since 
addClasspath/ adds classpath entries for dependencies of your project 
to the manifest and you seem not to have declared dependencies it may be 
that maven omits the empty classpath entry.



Besides, I want to add common.jar to this path. Then I add:

dependency
groupId${pom.groupId}/groupId
artifactIdmy-common/artifactId
version${pom.version}/version
  
   properties

ejb.manifest.classpathtrue/ejb.manifest.classpath
/properties

/dependency

Then I got 'org.apache.maven.reactor.MavenExecutionException: Parse error
reading POM. Reason: Unrecognised tag: 'properties' (position: START_TAG
seen ...\r\nproperties... @18:25' error.

It seems I can not put properties tag in dependency element. What is
wrong?
It's just as you say: you can't put a properties/ tag into an 
dependency element. I think maven 1 had such a syntax but not maven 2. 
See [1] and [2] for a reference for the pom.


-Tim

[1] http://maven.apache.org/pom.html
[2] http://maven.apache.org/ref/current/maven-model/maven.html

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






Thanks for the feedback. From 'maven-ejb-plugin' page, I found this FAQ:
http://maven.apache.org/plugins/maven-ejb-plugin/faq.html. It dose not have
any entry for which dependency should be added to Class-Path. I thought it
should be added in that dependency declaration as 'properties'. But I got
error. One question -- how do I know if this plugin is installed? I did not
do anything but downloaded Maven 2.0.7.


Maven automatically downloads all needed plugins. You can think of a 
plugin as just a special kind of dependency. Ultimatly it's just a jar 
in the central repository. As long as you don't see errors like this, 
everything is ok:


[ERROR] BUILD ERROR
[INFO] 

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


If you really want to check if the plugin was downloaded just check your 
local repository if the jar for the plugin is present.


To learn about the concepts and usage of maven2 I suggest reading the 
two good (and free) available books from Sonatype [1] and DevZuz [2].


-Tim

[1] http://www.sonatype.com/book/
[2] http://www.devzuz.com/web/guest/products/resources#BBWM

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



M2 How to populate internal repository?

2007-08-23 Thread Chris Helck
I need to populate an inhouse repository so it can act as a stand alone
repository. It needs to include the standard maven plugins. I don't want
to rsync Ibiblio.

I've tried using the assembly plugin to create a repository but it does
not include the plugins. 

What should I do?

Thanks,
C. Helck


**
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the Information) is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 (ICAP) or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**



Patch plugin and filter

2007-08-23 Thread JC Walmetz

It would be great to be able to filter patches before applying patch with the
patch plugin (plugin such as resources manages this filter). It looks like
it is not supported yet.

I'd like to filter the patches dir before applying patches (I need to
replace some version in patches). Is it possible to filter files that are
not in a resources dir ? I do not find any plugin for that.
-- 
View this message in context: 
http://www.nabble.com/Patch-plugin-and-filter-tf4318430s177.html#a12296584
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 How to populate internal repository?

2007-08-23 Thread Stuart McCulloch
On 23/08/07, Chris Helck [EMAIL PROTECTED] wrote:

 I need to populate an inhouse repository so it can act as a stand alone
 repository. It needs to include the standard maven plugins. I don't want
 to rsync Ibiblio.

 I've tried using the assembly plugin to create a repository but it does
 not include the plugins.

 What should I do?


if you're using linux then here's some shell scripts that can quickly
convert your local repository into a shared or mirrored repository:

   http://wiki.ops4j.org/confluence/x/CIAO

once converted, the repository can of course be used cross-platform
these scripts aren't supported and come with the usual disclaimers :)

Thanks,
 C. Helck


 **
 This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the Information) is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 (ICAP) or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited.
 If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
 **




-- 
Cheers, Stuart


Re: M2 How to populate internal repository?

2007-08-23 Thread Wendy Smoak
On 8/23/07, Chris Helck [EMAIL PROTECTED] wrote:
 I need to populate an inhouse repository so it can act as a stand alone
 repository. It needs to include the standard maven plugins. I don't want
 to rsync Ibiblio.

 I've tried using the assembly plugin to create a repository but it does
 not include the plugins.

 What should I do?

You don't mention a reason for not wanting to rsync ibiblio.  Size?
Security? Governance?

If it's just that you don't want the whole thing, you can use one of
the repository managers to proxy the central repository, establishing
an internal cache of the artifacts you use.  Archiva, Artifactory and
Proximity are examples.

I'm fairly sure there is a tool somewhere that will convert a local
repository into a remote one.  (The metadata is different.)

Otherwise, let us know more about your requirements.

-- 
Wendy

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



Re: Having trouble using maven-ejb-plugin -- can't get Class-Path in manifest

2007-08-23 Thread jzhang

Thanks Tim. I do have these two sites. I searched my local repo and the
ejb-plugin is the latest one: 2.1. I also found the release notes for this
release:http://www.nabble.com/-ANN--Maven-Ejb-Plugin-2.1-released-tf3208223s177.html#a8909122.
If I am reading correctly this manifest is still a bug in this release: 

** Bug 
   * [MEJB-7] - Transitive Classpath not written to the manifest 


Not sure what to do with it. I might want to try using jar plugin. Any help
is appreciated.
   

Tim Kettler wrote:
 
 jzhang schrieb:
 
 Tim Kettler wrote:
 Hi,

 jzhang schrieb:
 I am using Maven 2.0.7. In my ear file, I have a ejb jar (called
 core.jar)
 that depends on common.jar. They are all in the same ear. I want to
 have
 core.jar manifest.mf file have Class-Path entry for common.jar. But I
 can
 not get that work. I follow maven-ejb-plugin instruction:

 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-ejb-plugin/artifactId
 configuration
 archive
 manifest
 addClasspathtrue/addClasspath
 /manifest
 /archive
 !--generateClienttrue/generateClient--
 /configuration
 /plugin

 And I ran: mvn install. The new generated ejb jar file's manifest does
 not
 have Class-Path entry.
 Your configuration looks correct and should work. However since 
 addClasspath/ adds classpath entries for dependencies of your project 
 to the manifest and you seem not to have declared dependencies it may be 
 that maven omits the empty classpath entry.

 Besides, I want to add common.jar to this path. Then I add:

 dependency
 groupId${pom.groupId}/groupId
 artifactIdmy-common/artifactId
 version${pom.version}/version
   
properties
ejb.manifest.classpathtrue/ejb.manifest.classpath
/properties

 /dependency

 Then I got 'org.apache.maven.reactor.MavenExecutionException: Parse
 error
 reading POM. Reason: Unrecognised tag: 'properties' (position:
 START_TAG
 seen ...\r\nproperties... @18:25' error.

 It seems I can not put properties tag in dependency element. What
 is
 wrong?
 It's just as you say: you can't put a properties/ tag into an 
 dependency element. I think maven 1 had such a syntax but not maven 2. 
 See [1] and [2] for a reference for the pom.

 -Tim

 [1] http://maven.apache.org/pom.html
 [2] http://maven.apache.org/ref/current/maven-model/maven.html

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



 
 
 Thanks for the feedback. From 'maven-ejb-plugin' page, I found this FAQ:
 http://maven.apache.org/plugins/maven-ejb-plugin/faq.html. It dose not
 have
 any entry for which dependency should be added to Class-Path. I thought
 it
 should be added in that dependency declaration as 'properties'. But I got
 error. One question -- how do I know if this plugin is installed? I did
 not
 do anything but downloaded Maven 2.0.7.
 
 Maven automatically downloads all needed plugins. You can think of a 
 plugin as just a special kind of dependency. Ultimatly it's just a jar 
 in the central repository. As long as you don't see errors like this, 
 everything is ok:
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] The plugin 'org.apache.maven.plugins:maven-jar-plugin' does not 
 exist or no valid version could be found
 
 If you really want to check if the plugin was downloaded just check your 
 local repository if the jar for the plugin is present.
 
 To learn about the concepts and usage of maven2 I suggest reading the 
 two good (and free) available books from Sonatype [1] and DevZuz [2].
 
 -Tim
 
 [1] http://www.sonatype.com/book/
 [2] http://www.devzuz.com/web/guest/products/resources#BBWM
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Having-trouble-using-maven-ejb-plugincan%27t-get-Class-Path-in-manifest-tf4312954s177.html#a12296736
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: Creating maven project

2007-08-23 Thread Wayne Fay
You can use scopesystem/scope in your dependency declaration for
this. You can find more documentation online.

Having said that, you are STRONGLY advised against using system scope,
especially for new users, as it does not always work as you would
expect. Instead, you should use Maven the correct way -- with
artifacts in a repository, and dependency scopes based on your actual
needs etc.

Wayne

On 8/23/07, sprabhu [EMAIL PROTECTED] wrote:

 Hi,

 We am currently using ant for our build environment.
 We are planning to use Maven for build process.

 We already have all the third party jar libraries in our cvs repository.
 In our maven project we want to use this jar files directly instead of
 providing
 the groupid, artifactid and versionid.
 Is there any way in Maven in which I can provide the full path of the jars
 on which the project depends.
 All our projects use the same version of the third party jars so we have
 removed
 the version number from the jar name.

 Thanks in advance.

 Regards,
 Santosh
 --
 View this message in context: 
 http://www.nabble.com/Creating-maven-project-tf4318371s177.html#a12296368
 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: Having trouble using maven-ejb-plugin -- can't get Class-Path in manifest

2007-08-23 Thread Tim Kettler
Create a test project with the following pom (you have to create a test 
class under 'src/main/java' too. Just 'public class TestClass {}' will 
do) and do 'mvn package'. The manifest in the created jar will have a 
classpath entry with all dependencies (including transitive) listed:


project
  modelVersion4.0.0/modelVersion
  groupIdmy-test-group/groupId
  artifactIdmy-test-ejb/artifactId
  version1.0-SNAPSHOT/version
  packagingejb/packaging

  dependencies
dependency
  groupIdcommons-logging/groupId
  artifactIdcommons-logging/artifactId
  version1.1/version
/dependency
  /dependencies

  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-ejb-plugin/artifactId
configuration
  ejbVersion3.0/ejbVersion
  archive
manifest
  addClasspathtrue/addClasspath
/manifest
  /archive
/configuration
  /plugin
/plugins
   /build
/project

jzhang schrieb:

Thanks Tim. I do have these two sites. I searched my local repo and the
ejb-plugin is the latest one: 2.1. I also found the release notes for this
release:http://www.nabble.com/-ANN--Maven-Ejb-Plugin-2.1-released-tf3208223s177.html#a8909122.
If I am reading correctly this manifest is still a bug in this release: 

** Bug 
   * [MEJB-7] - Transitive Classpath not written to the manifest 



Not sure what to do with it. I might want to try using jar plugin. Any help
is appreciated.
   


Tim Kettler wrote:

jzhang schrieb:

Tim Kettler wrote:

Hi,

jzhang schrieb:

I am using Maven 2.0.7. In my ear file, I have a ejb jar (called
core.jar)
that depends on common.jar. They are all in the same ear. I want to
have
core.jar manifest.mf file have Class-Path entry for common.jar. But I
can
not get that work. I follow maven-ejb-plugin instruction:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-ejb-plugin/artifactId
configuration
archive
manifest
addClasspathtrue/addClasspath
/manifest
/archive
!--generateClienttrue/generateClient--
/configuration
/plugin

And I ran: mvn install. The new generated ejb jar file's manifest does
not
have Class-Path entry.
Your configuration looks correct and should work. However since 
addClasspath/ adds classpath entries for dependencies of your project 
to the manifest and you seem not to have declared dependencies it may be 
that maven omits the empty classpath entry.



Besides, I want to add common.jar to this path. Then I add:

dependency
groupId${pom.groupId}/groupId
artifactIdmy-common/artifactId
version${pom.version}/version
  
   properties

ejb.manifest.classpathtrue/ejb.manifest.classpath
/properties

/dependency

Then I got 'org.apache.maven.reactor.MavenExecutionException: Parse
error
reading POM. Reason: Unrecognised tag: 'properties' (position:
START_TAG
seen ...\r\nproperties... @18:25' error.

It seems I can not put properties tag in dependency element. What
is
wrong?
It's just as you say: you can't put a properties/ tag into an 
dependency element. I think maven 1 had such a syntax but not maven 2. 
See [1] and [2] for a reference for the pom.


-Tim

[1] http://maven.apache.org/pom.html
[2] http://maven.apache.org/ref/current/maven-model/maven.html

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





Thanks for the feedback. From 'maven-ejb-plugin' page, I found this FAQ:
http://maven.apache.org/plugins/maven-ejb-plugin/faq.html. It dose not
have
any entry for which dependency should be added to Class-Path. I thought
it
should be added in that dependency declaration as 'properties'. But I got
error. One question -- how do I know if this plugin is installed? I did
not
do anything but downloaded Maven 2.0.7.
Maven automatically downloads all needed plugins. You can think of a 
plugin as just a special kind of dependency. Ultimatly it's just a jar 
in the central repository. As long as you don't see errors like this, 
everything is ok:


[ERROR] BUILD ERROR
[INFO] 

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


If you really want to check if the plugin was downloaded just check your 
local repository if the jar for the plugin is present.


To learn about the concepts and usage of maven2 I suggest reading the 
two good (and free) available books from Sonatype [1] and DevZuz [2].


-Tim

[1] http://www.sonatype.com/book/
[2] 

Re: maven-eclipse-plugin classpathContainers parameter question

2007-08-23 Thread Wayne Fay
It is possible this configuration is not currently available in the
plugin -- I don't need that myself, and I haven't looked at the code,
so I'm not sure myself.

If it is not, I expect the code would be relatively trivial to add
yourself, and contribute back via a patch. I'd encourage you to take a
look at the Mojo code.

Wayne

On 8/23/07, Mark Hansen [EMAIL PROTECTED] wrote:
 I've got a multi-project maven build where some modules use different
 versions of the JRE than others.  I am using eclipse:eclipse to
 synchronize my maven build process with the eclipse development environment.

 I use the classpathContainers parameter to specify the JRE for each
 module.  However, it seems that in addition to the JRE specified by
 classpathContainers, the maven-eclipse-plugin also adds the default
 workspace JRE to each module.

 Is there any way to prevent this behavior, so that only the
 classpathContainers specified JRE is added to the eclipse build path and
 the default JRE is ignored?

 Thanks,

 Mark



 -
 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: Having trouble using maven-ejb-plugin -- can't get Class-Path in manifest

2007-08-23 Thread Tim Kettler

jzhang schrieb:

Thanks Tim. I do have these two sites. I searched my local repo and the
ejb-plugin is the latest one: 2.1. I also found the release notes for this
release:http://www.nabble.com/-ANN--Maven-Ejb-Plugin-2.1-released-tf3208223s177.html#a8909122.
If I am reading correctly this manifest is still a bug in this release: 

** Bug 
   * [MEJB-7] - Transitive Classpath not written to the manifest 



You misunderstood the meaning. The release announcement lists the 
workitems included in the release. So the bugs listed are actually fixed 
in this release.



Not sure what to do with it. I might want to try using jar plugin. Any help
is appreciated.
   


Tim Kettler wrote:

jzhang schrieb:

Tim Kettler wrote:

Hi,

jzhang schrieb:

I am using Maven 2.0.7. In my ear file, I have a ejb jar (called
core.jar)
that depends on common.jar. They are all in the same ear. I want to
have
core.jar manifest.mf file have Class-Path entry for common.jar. But I
can
not get that work. I follow maven-ejb-plugin instruction:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-ejb-plugin/artifactId
configuration
archive
manifest
addClasspathtrue/addClasspath
/manifest
/archive
!--generateClienttrue/generateClient--
/configuration
/plugin

And I ran: mvn install. The new generated ejb jar file's manifest does
not
have Class-Path entry.
Your configuration looks correct and should work. However since 
addClasspath/ adds classpath entries for dependencies of your project 
to the manifest and you seem not to have declared dependencies it may be 
that maven omits the empty classpath entry.



Besides, I want to add common.jar to this path. Then I add:

dependency
groupId${pom.groupId}/groupId
artifactIdmy-common/artifactId
version${pom.version}/version
  
   properties

ejb.manifest.classpathtrue/ejb.manifest.classpath
/properties

/dependency

Then I got 'org.apache.maven.reactor.MavenExecutionException: Parse
error
reading POM. Reason: Unrecognised tag: 'properties' (position:
START_TAG
seen ...\r\nproperties... @18:25' error.

It seems I can not put properties tag in dependency element. What
is
wrong?
It's just as you say: you can't put a properties/ tag into an 
dependency element. I think maven 1 had such a syntax but not maven 2. 
See [1] and [2] for a reference for the pom.


-Tim

[1] http://maven.apache.org/pom.html
[2] http://maven.apache.org/ref/current/maven-model/maven.html

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





Thanks for the feedback. From 'maven-ejb-plugin' page, I found this FAQ:
http://maven.apache.org/plugins/maven-ejb-plugin/faq.html. It dose not
have
any entry for which dependency should be added to Class-Path. I thought
it
should be added in that dependency declaration as 'properties'. But I got
error. One question -- how do I know if this plugin is installed? I did
not
do anything but downloaded Maven 2.0.7.
Maven automatically downloads all needed plugins. You can think of a 
plugin as just a special kind of dependency. Ultimatly it's just a jar 
in the central repository. As long as you don't see errors like this, 
everything is ok:


[ERROR] BUILD ERROR
[INFO] 

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


If you really want to check if the plugin was downloaded just check your 
local repository if the jar for the plugin is present.


To learn about the concepts and usage of maven2 I suggest reading the 
two good (and free) available books from Sonatype [1] and DevZuz [2].


-Tim

[1] http://www.sonatype.com/book/
[2] http://www.devzuz.com/web/guest/products/resources#BBWM

-
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: Having trouble using maven-ejb-plugin -- can't get Class-Path in manifest

2007-08-23 Thread jzhang

Tim,

You are right. I had packagingjar/packaging instead of
packagingejb/packaging so the ejb-plugin did not get executed. Now all
dependencies are in calss-path. Is there anyway I can select some of them? I
don't think includes works here.

Thanks,

J



jzhang wrote:
 
 I am using Maven 2.0.7. In my ear file, I have a ejb jar (called core.jar)
 that depends on common.jar. They are all in the same ear. I want to have
 core.jar manifest.mf file have Class-Path entry for common.jar. But I can
 not get that work. I follow maven-ejb-plugin instruction:
 
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-ejb-plugin/artifactId
 configuration
 archive
 manifest
 addClasspathtrue/addClasspath
 /manifest
 /archive
 !--generateClienttrue/generateClient--
 /configuration
 /plugin
 
 And I ran: mvn install. The new generated ejb jar file's manifest does not
 have Class-Path entry. Besides, I want to add common.jar to this path.
 Then I add:
 
 dependency
 groupId${pom.groupId}/groupId
 artifactIdmy-common/artifactId
 version${pom.version}/version
   
properties
   ejb.manifest.classpathtrue/ejb.manifest.classpath
   /properties
   
 /dependency
 
 Then I got 'org.apache.maven.reactor.MavenExecutionException: Parse error
 reading POM. Reason: Unrecognised tag: 'properties' (position: START_TAG
 seen ...\r\nproperties... @18:25' error.
 
 It seems I can not put properties tag in dependency element. What is
 wrong?
 

-- 
View this message in context: 
http://www.nabble.com/Having-trouble-using-maven-ejb-plugincan%27t-get-Class-Path-in-manifest-tf4312954s177.html#a12297923
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: Need help with central repositories, and mirrors

2007-08-23 Thread John Quinn
I'd like to piggy back on this thread, since my question is just drilling
down further.

So, if I say have the following profile in my mvn home settings.xml:

   profile
  idmyRepository/id

  activation
jdk1.4/jdk
  /activation

  repositories
repository
   idmyRepository/id
   nameRepository for myRepository builds/name
   urlhttp://www.myhost.com/maven/myRepository/url
   layoutdefault/layout
   snapshotPolicyalways/snapshotPolicy
 /repository
  /repositories
/profile
And then I put in the apache html directory my entire directory structure
and files currently under my local repository under the apache html
directory like so:

/var/www/html/maven/myRepository

Then I now will be getting everything from that repository instead of my
local repository, true?

And how would I install new jars in the repository as they are needed, by a
simple copy, or could I then use the install command to get  it to the
remote repository?

Thanks,
John


On 8/23/07, Tim Kettler [EMAIL PROTECTED] wrote:

 Additionally you need to keep in mind to use different local
 repositories as well when using the different profiles on the same
 machine. Else the artifacts from the different repositories will be mixed.

 -Tim

 Tim Kettler schrieb:
  Hi,
 
  setting the mirror to an invalid url would certainly work but I imagine
  you would get tons of warnings about failed repository accesses since
  maven would still try download from the mirror.
 
  What I would do instead is to just overwrite the definition of central
  in the qa and cert profiles like this:
 
repositories
  repository
idcentral/id
nameInternal replacement for the central repository/name
urlhttp://bla.com/repository/url
releases
  enabledtrue/enabled
/releases
snapshots
  enabledfalse/enabled
/snapshots
  /repository
/repositories
 
pluginRepositories
  pluginRepository
idcentral/id
nameInternal replacement for the central repository/name
urlhttp://bla.com/repository/url
releases
  enabledtrue/enabled
/releases
snapshots
  enabledfalse/enabled
/snapshots
  /pluginRepository
/pluginRepositories
 
  -Tim
 
  Chris Helck schrieb:
  Hi,
 
  How can I redefine the central repository for specific profiles? I have
  three profiles defined in my settings.xml: dev, qa, and cert. I want
 the
  dev profile to use the default central repository, but I want the
 qa
  and cert profiles to use specific (but different) in-house URLs. From
  what I've read the preferred way of overriding the central repository
 is
  to redirect it via the mirror tag in settings.xml. But I can't use
  mirrors/ at the profile/ level, it only goes under settings/, so
  the mirror ends up being a global redirect instead of a profile
 specific
  redirect.
 
  Should I disable central completely:
  mirror
idNull Central/id
nameNull/name
url/
mirrorOfcentral/mirrorOf
  /mirror
 
  And add http://repo1.maven.org/maven under a different repo id? The in
  each profile I could define something lilke:
  repository
idmy-central/id
...
  /repository
 
  BTW: I'm using maven 2.0.4 on Ubuntu.
 
  Thanks,
  Christopher Helck
 
 
 
  **
  This communication and all information (including, but not limited to,
   market prices/levels and data) contained therein (the Information)
 is
   for informational purposes only, is confidential, may be legally
   privileged and is the intellectual property of ICAP plc and its
  affiliates
   (ICAP) or third parties. No confidentiality or privilege is waived
 or
   lost by any mistransmission. The Information is not, and should not
   be construed as, an offer, bid or solicitation in relation to any
   financial instrument or as an official confirmation of any
 transaction.
   The Information is not warranted, including, but not limited, as to
   completeness, timeliness or accuracy and is subject to change
   without notice. ICAP assumes no liability for use or misuse of the
   Information. All representations and warranties are expressly
   disclaimed. The Information does not necessarily reflect the views of
   ICAP. Access to the Information by anyone else other than the
   recipient is unauthorized and any disclosure, copying, distribution or
   any action taken or omitted to be taken in reliance on it is
  prohibited. If
   you receive this message in error, please immediately delete it and
 all
   copies of it from your system, destroy any hard copies of it and
   notify the sender.
  **
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL 

collapsable project reports ...

2007-08-23 Thread Giovanni Azua
Hi all,

When using the default project reports i.e. ${reports} in site.xml we get
collapsable the two sections project info and project reports but when
you have a multi-project and you have to manually add the section to
site.xml you do not have that possibility ... the question is how can I hack
it in? is there any collapsable xml attribute for the section or something
alike? 

TIA,

regards,
Giovanni



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



Re: M2: Need help with central repositories, and mirrors

2007-08-23 Thread Tim Kettler

Hi,

see comment inline

John Quinn schrieb:

I'd like to piggy back on this thread, since my question is just drilling
down further.

So, if I say have the following profile in my mvn home settings.xml:

   profile
  idmyRepository/id

  activation
jdk1.4/jdk
  /activation

  repositories
repository
   idmyRepository/id
   nameRepository for myRepository builds/name
   urlhttp://www.myhost.com/maven/myRepository/url
   layoutdefault/layout
   snapshotPolicyalways/snapshotPolicy
 /repository
  /repositories
/profile
And then I put in the apache html directory my entire directory structure
and files currently under my local repository under the apache html
directory like so:

/var/www/html/maven/myRepository

Then I now will be getting everything from that repository instead of my
local repository, true?


In theory yes. In practice it's not that simple. Even if they look 
similar a local and remote repository are different things. A remote 
repository has additional metadata that is missing in a local 
repository. See here [1] for example.


To get a valid remote repository you have to deploy your artifacts to it 
(see below for instruction).


Coincidently someone posted just today in this thread [6] a link to a 
shell script that converts a local to a remote repository. You may want 
to have a look at it.



And how would I install new jars in the repository as they are needed, by a
simple copy, or could I then use the install command to get  it to the
remote repository?


As you use the install (for existing projects) or install-file (for 
3rd-party jars) mojos to install artifacts to a local repository you use 
the deploy respectivly deploy-file mojos for remote repositories. See 
[2], [3] and [4], [5] for instructions.



Thanks,
John


-Tim

[1] http://repo1.maven.org/maven2/org/hibernate/hibernate/maven-metadata.xml
[2] http://maven.apache.org/plugins/maven-install-plugin/
[3] http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
[4] http://maven.apache.org/plugins/maven-deploy-plugin/
[5] http://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html
[6] 
http://www.nabble.com/M2-How-to-populate-internal-repository--tf4318392s177.html#a12296445


[...]

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



Maven eclipse plugin with This project needs to migrate WTP metadata error

2007-08-23 Thread thebugslayer
Hi maven folks,

I tried following to create a webapp project to be used in eclipse,
but got an error that hope someone can help me resolve. The following
commands ran successfully on a terminal:

$ mvn archetype:create -DarchetypeArtifactId=maven-archetype-webapp
-DgroupId=mywebapp -DartifactId=mywebapp
$ mvn -Dwtpversion=R7 eclipse:m2eclipse

My questions and needed help on are:
1) When I imported the project into eclipse, I get this error under
Problem view:
This project needs to migrate WTP metadata
I have tried right click and QuickFix, but nothing happened. How would
I resolve this?

2) What is R7? WTP release goes from 1.0, 1.5, then 2.0. So not sure what R7 is.

3) The first command (archetype:create) ran successful, but I saw this
msg as well:
[ERROR] ResourceManager : unable to find resource
'VM_global_library.vm' in any resource loader.
Anyone know what this is?

I am using
Eclipse: 3.3(Europa) with latest m2eclipse plugin installed.
Maven version: 2.0.7
Java version: 1.5.0_07
OS name: mac os x version: 10.4.10 arch: i386

-- 
/bugslayer

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



Re: Maven eclipse plugin with This project needs to migrate WTP metadata error

2007-08-23 Thread Arnaud HERITIER
In eclipse 3.3, it's WTP 2.0 which is bundled (but which isn't yet
supported by the eclipse plugin (AFAIK).
The R7 is a very old release.
You can try with the wtpversion=1.5 to see if eclipse succeed to
upgrade the settings.

cheers

Arnaud

On 23/08/07, thebugslayer [EMAIL PROTECTED] wrote:
 Hi maven folks,

 I tried following to create a webapp project to be used in eclipse,
 but got an error that hope someone can help me resolve. The following
 commands ran successfully on a terminal:

 $ mvn archetype:create -DarchetypeArtifactId=maven-archetype-webapp
 -DgroupId=mywebapp -DartifactId=mywebapp
 $ mvn -Dwtpversion=R7 eclipse:m2eclipse

 My questions and needed help on are:
 1) When I imported the project into eclipse, I get this error under
 Problem view:
 This project needs to migrate WTP metadata
 I have tried right click and QuickFix, but nothing happened. How would
 I resolve this?

 2) What is R7? WTP release goes from 1.0, 1.5, then 2.0. So not sure what R7 
 is.

 3) The first command (archetype:create) ran successful, but I saw this
 msg as well:
 [ERROR] ResourceManager : unable to find resource
 'VM_global_library.vm' in any resource loader.
 Anyone know what this is?

 I am using
 Eclipse: 3.3(Europa) with latest m2eclipse plugin installed.
 Maven version: 2.0.7
 Java version: 1.5.0_07
 OS name: mac os x version: 10.4.10 arch: i386

 --
 /bugslayer

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




-- 
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...

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



Cargo plugin not found

2007-08-23 Thread Alexander Sack
I read two threads in the archives and did not see a real fix but I can't
get Maven2 to automatically download the Cargo plugin.  How the heck is
anyone using it?

I'm just using:

plugins
  plugin
groupIdorg.codehaus.cargo/groupId
artifactIdcargo-maven2-plugin/artifactId
version0.3.1/version  !-- or no version --
  /plugin
/plugins

I also added the pluginRepositories as well in my parent project pom but
still no luck.  It seems to think that cargo is an internal Apache Maven
plugin, I get:

org.apache.maven.lifecycle.LifecycleExecutionException: The plugin '
org.apache.maven.plugins:maven-cargo-plugin' does not exist or no valid
version could be found
etc.

What am I doing wrong?  Anyone using Cargo?

-aps

-- 
What lies behind us and what lies in front of us is of little concern to
what lies within us. -Ralph Waldo Emerson


Question about filtering

2007-08-23 Thread Dave Feltenberger
Hi -

I'm working on a project that has the need to do the following, and I can't
think of an elegant way of achieving it using Maven without having to call
out to Ant:

We have several clients, each of which get a customized Java Web Start /
.jnlp file.  There are only 5 clients now, but the number could explode very
quickly, so automation is key.  The jnlp files are almost identical, with
only a few things changed.  In the current Ant build system -- which I'm
replacing with Maven2 -- one template.jnlp file is copied n times, one for
each client.  Each client has its own properties file that is used to filter
the jnlp.  So basically we start with:

template.jnlp
client1.properties
client2.properties
client3.properties

And end up with:
client1.jnlp (with the filtered properties in it)
client2.jnlp (ditto)
client3.jnlp (ditto)
etc.

It's not practical to create a new POM/artifact for each new client, since
there may be so many so soon.  The only thing I know how to do is to add
multiple properties files and multiple files to filter, but that's done at
more of a global level - the filter attributes in the jnlp files will be the
same since they'll come from the same template, so I need to do them one
.properties and .jnlp at a time.

This is what I have so far that works for only one client at a time (copy
the template to a new file in generate-resources phase, then do the
filtering during the regular life cycle).  I'm considering changing this to
do more work in the Ant taks - looping through a list, creating each .jnlp,
filtering, etc. -- but I feel like I'm breaking some kind of best practice
or re-creating a wheel someone on the list may have already created by going
down that path.

...
build
filters
filtersrc/main/filters/${client.filter}.properties/filter
/filters
resources
resource
directory${temp.resources.dir}/directory
includes
include${client.filter}.jnlp/include
/includes
filteringtrue/filtering
/resource
/resources
 /build
...
plugins
plugin
inheritedtrue/inherited
artifactIdmaven-antrun-plugin/artifactId
executions
execution
phasegenerate-resources/phase
configuration
tasks
mkdir dir=${temp.resources.dir} /
copy file=${jnlp.template.file}
tofile=${temp.resources.dir}/${client.filter}.jnlp /
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin
   /plugins

Any help would be greatly appreciated!

Thanks.

Dave


Re: assembly plugin: transitive dependencies do not get included

2007-08-23 Thread Stephane Nicoll
Mmm. This might be a bug. Check that includeTransitiveDeps is set to true.

HTH,
Stéphane

On 8/23/07, aldana [EMAIL PROTECTED] wrote:

 hi,

 i am using assembly plugin with standard descriptor jar-with-dependencies.
 problem is that transitive dependencies do not get included.

 pom.xml from project A:
 ...
  groupIda/groupId
  artifactIda/artifactId
  version1.0/version
  dependencies
 dependency
   groupIdtran/groupId
   artifactIddep/artifactId
   version1.0/version
 /dependency
/dependencies
 ...


 pom.xml from project B:
 ...
  groupIdb/groupId
  artifactIdb/artifactId
  version1.0/version
  build
  ... enabling assembly-plugin with jar-with-dependencies...
  /build
  dependencies
 dependency
   groupIda/groupId
   artifactIda/artifactId
   version1.0/version
 /dependency
  /dependencies
 ...

 i am doing assembly:assembly on b:b. now tran:dep does not get included
 though it is defined in a:a. that means: if i open the assembled jar-file
 (from b:b) i cannot see any artifacts from tran:dep.

 what is going wrong here? thought that default behaviour of
 jar-with-dependencies includes everything as told in
 http://www.nabble.com/-M2--How-to-include-transitive-dependencies-with-Assembly-plugin-tf2177453s177.html#a6020485?

 i am using plugin in version 2.2-beta-1.

 thanks for your help.


 --
 View this message in context: 
 http://www.nabble.com/assembly-plugin%3A-transitive-dependencies-do-not-get-included-tf4317601s177.html#a12293820
 Sent from the Maven - Users mailing list archive at Nabble.com.


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




-- 
Large Systems Suck: This rule is 100% transitive. If you build one,
you suck -- S.Yegge

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



Jar with dependencies help

2007-08-23 Thread Siegmann Daniel, NY
I am trying to assemble a modified version of the jar-with-dependencies.
Limiting it to just specific dependencies was easy enough. However,
there are a couple of other things I need to do, and I'm not sure how to
set up the descriptor.

1. I want to change the final name of the assembly. I don't see an
option for this in the descriptor.

2. What I *really* want is to replace the normal jar (produced by
jar:jar in the package phase) with this combined jar. I will never need
the normal jar.

3. I want to do the same thing for the sources of this project and
selected dependencies - I want to replace the jar produced by
source:jar. I don't see a way to pull in the source jars for the
dependencies though.

Any help would be much appreciated. I've included my current descriptor
below just in case that helps.

assembly
idcomplete/id
formats
formatjar/format
/formats
includeBaseDirectoryfalse/includeBaseDirectory
dependencySets
dependencySet
outputDirectory/outputDirectory
outputFileNameMapping/outputFileNameMapping
unpacktrue/unpack
scoperuntime/scope
includes

includecom.chubb.pm:chubb-common-pm-base/include

includecom.chubb.pm:chubb-common-pm/include

includecom.chubb.pm:chubb-yacht-gen/include
/includes
/dependencySet
/dependencySets
fileSets
fileSet
directorytarget/classes/directory
outputDirectory/outputDirectory
/fileSet
/fileSets
/assembly

--
Daniel Siegmann
FJA-US, Inc.
512 7th Ave. 15th Flr. New York, NY 10018
(212) 840-2618 x139

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



Re: Cargo plugin not found

2007-08-23 Thread Wayne Fay
Not sure what exactly the problem is, but make sure you're following
the directions... I'd start here:
http://cargo.codehaus.org/Maven2+Plugin+Installation

If you're still having problems, you can always use the long way to
specify a plugin:
mvn groupId:artifactId:version:mojo

Which becomes:
mvn org.codehaus.cargo:cargo-maven2-plugin:0.3.1:start

Wayne

On 8/23/07, Alexander Sack [EMAIL PROTECTED] wrote:
 I read two threads in the archives and did not see a real fix but I can't
 get Maven2 to automatically download the Cargo plugin.  How the heck is
 anyone using it?

 I'm just using:

 plugins
   plugin
 groupIdorg.codehaus.cargo/groupId
 artifactIdcargo-maven2-plugin/artifactId
 version0.3.1/version  !-- or no version --
   /plugin
 /plugins

 I also added the pluginRepositories as well in my parent project pom but
 still no luck.  It seems to think that cargo is an internal Apache Maven
 plugin, I get:

 org.apache.maven.lifecycle.LifecycleExecutionException: The plugin '
 org.apache.maven.plugins:maven-cargo-plugin' does not exist or no valid
 version could be found
 etc.

 What am I doing wrong?  Anyone using Cargo?

 -aps

 --
 What lies behind us and what lies in front of us is of little concern to
 what lies within us. -Ralph Waldo Emerson


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



Re: assembly plugin: transitive dependencies do not get included

2007-08-23 Thread aldana

where do i set option includeTransitiveDeps to true? cannot find it in
assembly descriptor schema.


Stephane Nicoll-2 wrote:
 
 Mmm. This might be a bug. Check that includeTransitiveDeps is set to true.
 
 HTH,
 Stéphane
 
 On 8/23/07, aldana [EMAIL PROTECTED] wrote:

 hi,

 i am using assembly plugin with standard descriptor
 jar-with-dependencies.
 problem is that transitive dependencies do not get included.

 pom.xml from project A:
 ...
  groupIda/groupId
  artifactIda/artifactId
  version1.0/version
  dependencies
 dependency
   groupIdtran/groupId
   artifactIddep/artifactId
   version1.0/version
 /dependency
/dependencies
 ...


 pom.xml from project B:
 ...
  groupIdb/groupId
  artifactIdb/artifactId
  version1.0/version
  build
  ... enabling assembly-plugin with jar-with-dependencies...
  /build
  dependencies
 dependency
   groupIda/groupId
   artifactIda/artifactId
   version1.0/version
 /dependency
  /dependencies
 ...

 i am doing assembly:assembly on b:b. now tran:dep does not get included
 though it is defined in a:a. that means: if i open the assembled jar-file
 (from b:b) i cannot see any artifacts from tran:dep.

 what is going wrong here? thought that default behaviour of
 jar-with-dependencies includes everything as told in
 http://www.nabble.com/-M2--How-to-include-transitive-dependencies-with-Assembly-plugin-tf2177453s177.html#a6020485?

 i am using plugin in version 2.2-beta-1.

 thanks for your help.


 --
 View this message in context:
 http://www.nabble.com/assembly-plugin%3A-transitive-dependencies-do-not-get-included-tf4317601s177.html#a12293820
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 
 -- 
 Large Systems Suck: This rule is 100% transitive. If you build one,
 you suck -- S.Yegge
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/assembly-plugin%3A-transitive-dependencies-do-not-get-included-tf4317601s177.html#a12301837
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: Cargo plugin not found

2007-08-23 Thread Alexander Sack
Yeesh, Wayne I must have read those pages now about 100 times.  But of
course, the javadoc thing still doesn't work and I still have no idea
why..this might make me start looking at Maven source!  :D!

-aps

On 8/23/07, Wayne Fay [EMAIL PROTECTED] wrote:

 Not sure what exactly the problem is, but make sure you're following
 the directions... I'd start here:
 http://cargo.codehaus.org/Maven2+Plugin+Installation

 If you're still having problems, you can always use the long way to
 specify a plugin:
 mvn groupId:artifactId:version:mojo

 Which becomes:
 mvn org.codehaus.cargo:cargo-maven2-plugin:0.3.1:start

 Wayne

 On 8/23/07, Alexander Sack [EMAIL PROTECTED] wrote:
  I read two threads in the archives and did not see a real fix but I
 can't
  get Maven2 to automatically download the Cargo plugin.  How the heck is
  anyone using it?
 
  I'm just using:
 
  plugins
plugin
  groupIdorg.codehaus.cargo/groupId
  artifactIdcargo-maven2-plugin/artifactId
  version0.3.1/version  !-- or no version --
/plugin
  /plugins
 
  I also added the pluginRepositories as well in my parent project pom but
  still no luck.  It seems to think that cargo is an internal Apache Maven
  plugin, I get:
 
  org.apache.maven.lifecycle.LifecycleExecutionException: The plugin '
  org.apache.maven.plugins:maven-cargo-plugin' does not exist or no valid
  version could be found
  etc.
 
  What am I doing wrong?  Anyone using Cargo?
 
  -aps
 
  --
  What lies behind us and what lies in front of us is of little concern
 to
  what lies within us. -Ralph Waldo Emerson
 

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




-- 
What lies behind us and what lies in front of us is of little concern to
what lies within us. -Ralph Waldo Emerson


webstart plugin users: please test the latest snapshot (1.0-alpha-2 around the corner)

2007-08-23 Thread Jerome Lacoste
Hei,

I want to release a new version of the webstart plugin, so all those
interested this plugin should  make sure the latest SNAPSHOT works for
them.

I've uploaded the latest snapshot:

http://snapshots.repository.codehaus.org/org/codehaus/mojo/webstart-maven-plugin/1.0-alpha-2-SNAPSHOT/

webstart-maven-plugin-1.0-alpha-2-20070823.210958-8.jar

Report any issue to Jira. Thank you.

Cheers,

-- 
Jerome Lacoste

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



Re: Maven eclipse plugin with This project needs to migrate WTP metadata error

2007-08-23 Thread thebugslayer
Thanks for explaining Arnaud.

It works when using version 1.5 then do QuickFix.

-Z

On 8/23/07, Arnaud HERITIER [EMAIL PROTECTED] wrote:
 In eclipse 3.3, it's WTP 2.0 which is bundled (but which isn't yet
 supported by the eclipse plugin (AFAIK).
 The R7 is a very old release.
 You can try with the wtpversion=1.5 to see if eclipse succeed to
 upgrade the settings.

 cheers

 Arnaud

 On 23/08/07, thebugslayer [EMAIL PROTECTED] wrote:
  Hi maven folks,
 
  I tried following to create a webapp project to be used in eclipse,
  but got an error that hope someone can help me resolve. The following
  commands ran successfully on a terminal:
 
  $ mvn archetype:create -DarchetypeArtifactId=maven-archetype-webapp
  -DgroupId=mywebapp -DartifactId=mywebapp
  $ mvn -Dwtpversion=R7 eclipse:m2eclipse
 
  My questions and needed help on are:
  1) When I imported the project into eclipse, I get this error under
  Problem view:
  This project needs to migrate WTP metadata
  I have tried right click and QuickFix, but nothing happened. How would
  I resolve this?
 
  2) What is R7? WTP release goes from 1.0, 1.5, then 2.0. So not sure what 
  R7 is.
 
  3) The first command (archetype:create) ran successful, but I saw this
  msg as well:
  [ERROR] ResourceManager : unable to find resource
  'VM_global_library.vm' in any resource loader.
  Anyone know what this is?
 
  I am using
  Eclipse: 3.3(Europa) with latest m2eclipse plugin installed.
  Maven version: 2.0.7
  Java version: 1.5.0_07
  OS name: mac os x version: 10.4.10 arch: i386
 
  --
  /bugslayer
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 ..
 Arnaud HERITIER
 ..
 OCTO Technology - aheritier AT octo DOT com
 www.octo.com | blog.octo.com
 ..
 ASF - aheritier AT apache DOT org
 www.apache.org | maven.apache.org
 ...

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




-- 
/bugslayer

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



Re: Question about filtering

2007-08-23 Thread Wayne Fay
If you have something that works in Ant, and you're happy with it,
then I wouldn't worry too much about doing it in the Maven way.

If you really want to make it work the Maven way, I think it might
be easiest if you just write a plugin.

Wayne

On 8/23/07, Dave Feltenberger [EMAIL PROTECTED] wrote:
 Hi -

 I'm working on a project that has the need to do the following, and I can't
 think of an elegant way of achieving it using Maven without having to call
 out to Ant:

 We have several clients, each of which get a customized Java Web Start /
 .jnlp file.  There are only 5 clients now, but the number could explode very
 quickly, so automation is key.  The jnlp files are almost identical, with
 only a few things changed.  In the current Ant build system -- which I'm
 replacing with Maven2 -- one template.jnlp file is copied n times, one for
 each client.  Each client has its own properties file that is used to filter
 the jnlp.  So basically we start with:

 template.jnlp
 client1.properties
 client2.properties
 client3.properties

 And end up with:
 client1.jnlp (with the filtered properties in it)
 client2.jnlp (ditto)
 client3.jnlp (ditto)
 etc.

 It's not practical to create a new POM/artifact for each new client, since
 there may be so many so soon.  The only thing I know how to do is to add
 multiple properties files and multiple files to filter, but that's done at
 more of a global level - the filter attributes in the jnlp files will be the
 same since they'll come from the same template, so I need to do them one
 .properties and .jnlp at a time.

 This is what I have so far that works for only one client at a time (copy
 the template to a new file in generate-resources phase, then do the
 filtering during the regular life cycle).  I'm considering changing this to
 do more work in the Ant taks - looping through a list, creating each .jnlp,
 filtering, etc. -- but I feel like I'm breaking some kind of best practice
 or re-creating a wheel someone on the list may have already created by going
 down that path.

 ...
 build
 filters
 filtersrc/main/filters/${client.filter}.properties/filter
 /filters
 resources
 resource
 directory${temp.resources.dir}/directory
 includes
 include${client.filter}.jnlp/include
 /includes
 filteringtrue/filtering
 /resource
 /resources
  /build
 ...
 plugins
 plugin
 inheritedtrue/inherited
 artifactIdmaven-antrun-plugin/artifactId
 executions
 execution
 phasegenerate-resources/phase
 configuration
 tasks
 mkdir dir=${temp.resources.dir} /
 copy file=${jnlp.template.file}
 tofile=${temp.resources.dir}/${client.filter}.jnlp /
 /tasks
 /configuration
 goals
 goalrun/goal
 /goals
 /execution
 /executions
 /plugin
/plugins

 Any help would be greatly appreciated!

 Thanks.

 Dave


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



mvn.bat and error_code (Maven 2.0.7 and Windows XP)

2007-08-23 Thread Andreas Guther
Maven 2.0.7 mvn.bat errorlevel return code problem.

Hi
I am failing to capture the mvn.bat return code.


Basically I have a batch file that calls mvn several times.  In case of
an error I would like to stop calling following mvn calls.



Example

call mvn clean:clean
IF ERRORLEVEL 0 GOTO CONTINUE
GOTO CLEANERROR
... and so on...

The error level seems not to be propagated to my batch file.

If I use SET MAVEN_TERMINATE_CMD=on in my batch file then in case of
an error my batch file is terminated.

There must be a way to capture the return code and handle it from a
calling batch file, but which???

Thanks in advance for any help

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



RE: Accessing POM properties in a filter

2007-08-23 Thread William Ferguson
OK, well after a bit of investigation I found that the
maven-resources-plugin only resolves System properties and simple POM
elements, but not POM properties within the Filter before applying them.

So I have created a patch that resolves POM properties within filter
files too.

http://jira.codehaus.org/browse/MRESOURCES-47

If this is affecting you and I recall hearing that some of the Axis2
guys were affected by something that I suspect was this, then please
vote for it.

William 


-Original Message-
From: William Ferguson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 23 August 2007 5:10 PM
To: Maven Users List
Subject: Accessing POM properties in a filter

In a resource filter, I can specify tokens like:

token1=${project.version}
token2=${project.properties}

Which when used in a resource file evaluates to:

valueForToken1=1.0-SNAPSHOT
valueForToken2={myProp1=value1, myProp2=value2}

How do I specify a token in the resource filter that resolves to the
value of myProp1?
I've tried all variants (that I can think of) of
${project.properties.myProp1}.

I'm sure there's a way, but I can't find documentation spelling out the
syntax that is required.


William

-
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: mvn.bat and error_code (Maven 2.0.7 and Windows XP)

2007-08-23 Thread Dan Tran
http://jira.codehaus.org/browse/MNG-3084

On 8/23/07, Andreas Guther [EMAIL PROTECTED] wrote:
 Maven 2.0.7 mvn.bat errorlevel return code problem.

 Hi
 I am failing to capture the mvn.bat return code.


 Basically I have a batch file that calls mvn several times.  In case of
 an error I would like to stop calling following mvn calls.



 Example

 call mvn clean:clean
 IF ERRORLEVEL 0 GOTO CONTINUE
 GOTO CLEANERROR
 ... and so on...

 The error level seems not to be propagated to my batch file.

 If I use SET MAVEN_TERMINATE_CMD=on in my batch file then in case of
 an error my batch file is terminated.

 There must be a way to capture the return code and handle it from a
 calling batch file, but which???

 Thanks in advance for any help

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



maven release:prepare

2007-08-23 Thread nehta

Hi All,
  I am new to Maven and have figured out how to use most plugins that I
require. However, I am now trying to use the maven release:prepare plugin.
For the most part I have figured out how to do what I require, but I am
having trouble getting the update dependencies to work in batch mode. I have
a pom file that contains a dependency to a snapshot version of another
pproject. When I execute release:prepare in interactive mode, it checks for
dependency snapshots and prompts me if I want to resolve them now. The
default is no. This is my problem, in batch mode, the defaults are selected,
thus the dependecies are not resolved and the build fails. Is there any way
I can set this default value to yes so that when run in batch mode it will
resolve the dependencies for me? Any help would be greatly appreciated.

Thanks:confused: 
-- 
View this message in context: 
http://www.nabble.com/maven-release%3Aprepare-tf4320725s177.html#a12304158
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Where to store configuration files?

2007-08-23 Thread lightbulb432

Where's the best place in the standard Maven layout to place configuration
files - I don't mean resources that end up bundled with the classes and
which are available on the final classpath, like property files.

By configuration files, I mean things like development-time web server
scripts that are colocated with the project - but which aren't used for
production time. Where would be the best place to put this?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Where-to-store-configuration-files--tf4320947s177.html#a12304815
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: Archiva Dies on Tomcat 5.5.23 on a VPS

2007-08-23 Thread Wendy Smoak
On 8/22/07, bsbodden [EMAIL PROTECTED] wrote:

 I have an Archiva install on eApps. I'm using Tomcat 5.5.23 all patched up to
 work with Archiva. Everything seems find until the point that you get
 redirected to the no-admin user page at which point it just blows Tomcat out
 of the water. See the logs below. My max heap is set to 192 the max
 recommended by the VPS for my config. Has anybody gotten Archiva working on
 a similar environment? I'm beginning to think this is more trouble than its
 worth :-(

There are several issues open related to Archiva and Tomcat.  This one
links to some others:
 * http://jira.codehaus.org/browse/MRM-333

There's also a wiki page for the community to edit and share info:
 * http://docs.codehaus.org/display/MAVENUSER/Archiva+on+Tomcat

Most of us use the binary distribution with the Plexus appserver and
embedded Jetty, so Tomcat doesn't get as much attention.  Any
information you can provide to help the developers find and fix the
problems is appreciated.

-- 
Wendy


Re: Accessing POM properties in a filter

2007-08-23 Thread Eric Redmond
Why can't you just use ${myProp1} ? Why go through the trouble of refering
via project.properties?

-- 
Eric Redmond
http://blog.propellors.net

On 8/23/07, William Ferguson [EMAIL PROTECTED] wrote:

 In a resource filter, I can specify tokens like:

 token1=${project.version}
 token2=${project.properties}

 Which when used in a resource file evaluates to:

 valueForToken1=1.0-SNAPSHOT
 valueForToken2={myProp1=value1, myProp2=value2}

 How do I specify a token in the resource filter that resolves to the
 value of myProp1?
 I've tried all variants (that I can think of) of
 ${project.properties.myProp1}.

 I'm sure there's a way, but I can't find documentation spelling out the
 syntax that is required.


 William

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




Re: Where to store configuration files?

2007-08-23 Thread Wayne Fay
Anywhere you want.

The directory src/main/config/dev seems reasonable since you don't
need these scripts in your final product (in which case, I'd say
somewhere under src/main/resources).

Wayne

On 8/23/07, lightbulb432 [EMAIL PROTECTED] wrote:

 Where's the best place in the standard Maven layout to place configuration
 files - I don't mean resources that end up bundled with the classes and
 which are available on the final classpath, like property files.

 By configuration files, I mean things like development-time web server
 scripts that are colocated with the project - but which aren't used for
 production time. Where would be the best place to put this?

 Thanks.
 --
 View this message in context: 
 http://www.nabble.com/Where-to-store-configuration-files--tf4320947s177.html#a12304815
 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]



Maven plugin metadata

2007-08-23 Thread Ian Berry
 

Hi,

 

I am developing a buildinfo plugin, listing all dependencies and plugins
used during a build.

 

For snapshot dependencies, and snapshot plugins, I would like to get the
build timestamp and build number to include in the output.

 

I have successfully gained this metadata information for
snapshot-dependencies, but I can't get the metadata for
snapshot-plugins.

 

To get the plugin artifacts, I use ${project.pluginArtifacts} (or
project.getPluginArtifacts()) 

The artifacts returned, have not metadata attached, i.e.
artifact.getMedatadatalist().size() returns 0;

 

How can I get a build timestamp and build number for a snapshot-plugin? 

In my local repository, the snapshot-plugins have a
maven-metadata-snapshot.xml.

 

 

Ian Berry

J2EE Software Engineer



Re: Proxying internal repositories?

2007-08-23 Thread Barrie Treloar
On 8/24/07, Brett Porter [EMAIL PROTECTED] wrote:
 Hi Barrie,

 Sorry I missed your earlier post. I think this is a valid use case.

 With the changes I'm making for MRM-462, it should be again possible
 to proxy file:// repositories, though I think even with the current
 release you could configure the available http:// URL for each of your
 repositories. The downside is that you need to configure a remote
 repository that corresponds to each of your internal ones.

remote repo is a valid workaround.

My internal repositories are already exposed via http.

Thanks


RE: [***POSSIBLE SPAM***] - Re: Accessing POM properties in a filter - Email has different SMTP TO: and MIME TO: fields in the email addresses

2007-08-23 Thread William Ferguson
${myProp1} doesn't work either.


With a POM declaring
myProp1Somevalue/myprop1

A filter.file of
some.token=${myProp1}

And a resource file with
Show.me.the.value.of.some.token=${some.token}


The resource file resolves to :
Show.me.the.value.of.some.token=${myProp1}

Instead of 
Show.me.the.value.of.some.token=SomeValue


William


-Original Message-
From: Eric Redmond [mailto:[EMAIL PROTECTED] 
Sent: Friday, 24 August 2007 12:36 PM
To: Maven Users List
Subject: [***POSSIBLE SPAM***] - Re: Accessing POM properties in a
filter - Email has different SMTP TO: and MIME TO: fields in the email
addresses

Why can't you just use ${myProp1} ? Why go through the trouble of
refering via project.properties?

--
Eric Redmond
http://blog.propellors.net

On 8/23/07, William Ferguson [EMAIL PROTECTED] wrote:

 In a resource filter, I can specify tokens like:

 token1=${project.version}
 token2=${project.properties}

 Which when used in a resource file evaluates to:

 valueForToken1=1.0-SNAPSHOT
 valueForToken2={myProp1=value1, myProp2=value2}

 How do I specify a token in the resource filter that resolves to the 
 value of myProp1?
 I've tried all variants (that I can think of) of 
 ${project.properties.myProp1}.

 I'm sure there's a way, but I can't find documentation spelling out 
 the syntax that is required.


 William

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



Maven insist to fetch sibling module from repository

2007-08-23 Thread Zarick Lau
Dear Users and Developers,

In a multi-module project (1 parent with 2 sub-module),
sub-module-b deps on sub-module-a, when I run maven under
the top-level (parent),

mvn process-resources

Maven will try to grab sub-module-a from repository, as I
haven't install / deploy sub-module-a, the build failed.

However, if I invoke maven with:

mvn package

The whole build completed without error..

Any clues why this strange behavior happens?

Thanks!

Best regards,
Zarick

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



Suppressing the building of .war file for webapp project

2007-08-23 Thread Zarick Lau
Dear User and Developers,

In a packaging=war project, mvn package implies executing plugin war:war.

However, is it non-adjustable? Can I change the default goal is exploded
instead of war?

For some teammates in here, package a war can be pretty time consuming,
esp on Windows box. I guess the primary bottom neck is file IO involved
in 'war' file creation. As a result, I hope I can change the default,
whenever package is invoked, use war:exploded instead.

Thanks!

Best regards,
Zarick

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



Re: Maven insist to fetch sibling module from repository

2007-08-23 Thread Barrie Treloar
On 8/24/07, Zarick Lau [EMAIL PROTECTED] wrote:
 Dear Users and Developers,

 In a multi-module project (1 parent with 2 sub-module),
 sub-module-b deps on sub-module-a, when I run maven under
 the top-level (parent),

 mvn process-resources

 Maven will try to grab sub-module-a from repository, as I
 haven't install / deploy sub-module-a, the build failed.

 However, if I invoke maven with:

 mvn package

 The whole build completed without error..

 Any clues why this strange behavior happens?

http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

However you need install to get your artifacts into the local
repository and package is _prior_ to install.

It doesn't make sense that process-resources should work when package does.

Maybe one of your plugins is failing because it is being run in a
phase before process-resources but requires some resolution available
in a later phase.

Can you paste the error message?

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



Re: maven plugin alternative to assembly plugin

2007-08-23 Thread Zarick Lau
On 8/14/07, aldana [EMAIL PROTECTED] wrote:

 hi,

 does anybody know an alternative to assembly plugin which is mainly putting
 all stuff into a single jar.

 would prefer a layout where libraries are organized as following:

 -mainJar.jar
 -lib/
   -dependentJar1
   -dependentJar2
   -...

 the main task would be to set up Manifest.MF from mainJar.jar correctly so
 neccessary classpaths are set correctly and reference to outside living
 lib/*.jar.

This is two different piece of configuration effort.

First, configure pom so that, the Manifest of mainJar to add classpath
for all dependency, and also enable classpathPrefix configuration to
lib.

Put this fragment in your pom:
!-- Fragment in POM --
build
  plugins
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-jar-plugin/artifactId
  configuration
archive
  manifest
addClasspathtrue/addClasspath
classpathPrefixlib/classpathPrefix
  /manifest
/archive
  /configuration
/plugin
  /plugins
/build



Secondly, use assembly plugin, put all dependency to lib/ and put
the mainjar to
top level, the assembly descriptor should be some like this:

!-- Fragment in pom.xml --
  build
plugins
  plugin
artifactIdmaven-assembly-plugin/artifactId
executions
  execution
idassemble/id
phasepackage/phase
goals
  goaldirectory-inline/goal
/goals
  /execution
/executions
configuration
  finalNamepackage/finalName
  appendAssemblyIdfalse/appendAssemblyId
  descriptors
descriptorsrc/main/assembly/binary.xml/descriptor
  /descriptors
/configuration
  /plugin
/plugins
  /build


!-- File: assembly descriptor, src/main/assembly/binary.xml --
assembly
  idbinary/id
  formats
formatzip/format
  /formats
  includeBaseDirectorytrue/includeBaseDirectory
  baseDirectoryall-in-one/baseDirectory
  fileSets
fileSet
  includes
include${artifactId}-*.jar/include
  /includes
  directory${basedir}/target/directory
  outputDirectorylib/outputDirectory
  lineEndingkeep/lineEnding
  fileMode0644/fileMode
/fileSet
  /fileSets
  dependencySets
dependencySet
  outputDirectorylib/outputDirectory
/dependencySet
  /dependencySets
/assembly

Cheers,
Zarick

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



Re: [***POSSIBLE SPAM***] - Re: Accessing POM properties in a filter - Email has different SMTP TO: and MIME TO: fields in the email addresses

2007-08-23 Thread Tim Kettler

Hi,

The probem is that for this to work the filters file would need to be 
filtered too, which is not the case. Use your declared properties 
directly in the resource files you want filtered and don't do the extra 
indirection via the filters file.


-Tim

William Ferguson schrieb:

${myProp1} doesn't work either.


With a POM declaring
myProp1Somevalue/myprop1

A filter.file of
some.token=${myProp1}

And a resource file with
Show.me.the.value.of.some.token=${some.token}


The resource file resolves to :
Show.me.the.value.of.some.token=${myProp1}

Instead of 
Show.me.the.value.of.some.token=SomeValue



William


-Original Message-
From: Eric Redmond [mailto:[EMAIL PROTECTED] 
Sent: Friday, 24 August 2007 12:36 PM

To: Maven Users List
Subject: [***POSSIBLE SPAM***] - Re: Accessing POM properties in a
filter - Email has different SMTP TO: and MIME TO: fields in the email
addresses

Why can't you just use ${myProp1} ? Why go through the trouble of
refering via project.properties?

--
Eric Redmond
http://blog.propellors.net

On 8/23/07, William Ferguson [EMAIL PROTECTED] wrote:

In a resource filter, I can specify tokens like:

token1=${project.version}
token2=${project.properties}

Which when used in a resource file evaluates to:

valueForToken1=1.0-SNAPSHOT
valueForToken2={myProp1=value1, myProp2=value2}

How do I specify a token in the resource filter that resolves to the 
value of myProp1?
I've tried all variants (that I can think of) of 
${project.properties.myProp1}.


I'm sure there's a way, but I can't find documentation spelling out 
the syntax that is required.



William

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




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



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



Re: Activating a Profile from another Profile

2007-08-23 Thread Tim Kettler

Hi,

No, this is currently not possible directly. However, what you can do is 
activate the set of profile via a system property you specify on the 
commandline ('mvn -Ddev ...'):


profiles
  profile
iddev/id
activation
  property
namedev/name
  /property
/activation
...
  /profile

  profile
idprod/id
activation
  property
nameprod/name
  /property
/activation
...
  /profile

  profile
idcommon/id
activation
  property
namedev/name
nameprod/name
  /property
/activation
...
  /profile
/profiles

-Tim

William Ferguson schrieb:

Is there any way to activatee a Profile from another Profile?

We have some pieces of the build, specifcally build.resources
definitions that vary depending on which Profile is targetted. But some
of the resource definitions are identical for several of the Profiles.

So I had hoped to extract the common resource definitions into their own
Profile which was then activated by the target Profiles.

Hopefully that makes sense :-)

It seems this has been asked before without any +ve answer.
http://mail-archives.apache.org/mod_mbox/maven-users/200702.mbox/%3Ce752
[EMAIL PROTECTED]
But maybe the question was just overlooked.

Then again, perhaps there is a better way to come at this, in which case
I'm all ears.


William

-
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: Having trouble using maven-ejb-plugin -- can't get Class-Path in manifest

2007-08-23 Thread Tim Kettler
I don't know a way to do this. Why do you want to do this at all? Either 
your jar depends on a other jar, then you declare it in a dependency and 
it ends up in the classpath entry or you dont't depend on it, then just 
don't declare the dependency at all.


-Tim

jzhang schrieb:

Tim,

You are right. I had packagingjar/packaging instead of
packagingejb/packaging so the ejb-plugin did not get executed. Now all
dependencies are in calss-path. Is there anyway I can select some of them? I
don't think includes works here.

Thanks,

J



jzhang wrote:

I am using Maven 2.0.7. In my ear file, I have a ejb jar (called core.jar)
that depends on common.jar. They are all in the same ear. I want to have
core.jar manifest.mf file have Class-Path entry for common.jar. But I can
not get that work. I follow maven-ejb-plugin instruction:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-ejb-plugin/artifactId
configuration
archive
manifest
addClasspathtrue/addClasspath
/manifest
/archive
!--generateClienttrue/generateClient--
/configuration
/plugin

And I ran: mvn install. The new generated ejb jar file's manifest does not
have Class-Path entry. Besides, I want to add common.jar to this path.
Then I add:

dependency
groupId${pom.groupId}/groupId
artifactIdmy-common/artifactId
version${pom.version}/version
  
   properties

ejb.manifest.classpathtrue/ejb.manifest.classpath
/properties

/dependency

Then I got 'org.apache.maven.reactor.MavenExecutionException: Parse error
reading POM. Reason: Unrecognised tag: 'properties' (position: START_TAG
seen ...\r\nproperties... @18:25' error.

It seems I can not put properties tag in dependency element. What is
wrong?






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