Re: Does continuum tag a maven project after a successful build?

2006-02-02 Thread dan tran
No, you need to tell continuum to run maven-release-plugin

http://maven.apache.org/plugins/maven-release-plugin/index.html

google maven-release-plugin to get more info.

-D


On 2/2/06, Malcolm Wong Ho <[EMAIL PROTECTED]> wrote:
>
>
> Does continuum tag a maven project after a successful build?
>
>
> DISCLAIMER:
> This message may contain information which is confidential, private or
> privileged in nature. If you are not the intended recipient, you may not
> peruse, use, disseminate, distribute or copy this message or file which is
> attached to this message. If you have received this message in error, please
> notify the sender immediately by e-mail, facsimile or telephone and
> thereafter return and/or destroy the original message.
>
> Any views of this communication are those of the sender except where the
> sender specifically states them to be those of Faritec (Holdings)  Limited
> (Faritec) and/or  any of its subsidiaries including (but not limited to)
> Faritec Enterprise Solutions (Proprietary) Limited, Faritec Strategic IT
> Services (Proprietary) Limited, Faritec Contracting (Proprietary) Limited,
> Ebis and/or any of its subsidiaries.
>
> Please note that the recipient must scan this e-mail and any attached
> files for viruses and the like. While we do everything possible to protect
> information from viruses, Faritec accepts no liability of whatever nature
> for any loss, liability, damage or expense resulting directly or indirectly
> from the access and/or downloading of any files which are attached to this
> e-mail message.
>
>


Re: How would i do a build from a subversion tag ?

2006-02-02 Thread dan tran
mvn scm:bootstrap -DconnectionUrl=xyx -Dtag=theTag -Dgoals=xyx

http://maven.apache.org/scm/plugins/bootstrap-mojo.html



-Dan


On 2/2/06, Malcolm Wong Ho <[EMAIL PROTECTED]> wrote:
>
>
> An example scenario is that i'm currently working on version 2.0-SNAPSHOPand 
> then someone deletes the repository and the application server crashes.
> What i have is a maven release and tagged the source in svn, how would i go
> about doing a build from a certain subversion tag ?
>
>
> DISCLAIMER:
> This message may contain information which is confidential, private or
> privileged in nature. If you are not the intended recipient, you may not
> peruse, use, disseminate, distribute or copy this message or file which is
> attached to this message. If you have received this message in error, please
> notify the sender immediately by e-mail, facsimile or telephone and
> thereafter return and/or destroy the original message.
>
> Any views of this communication are those of the sender except where the
> sender specifically states them to be those of Faritec (Holdings)  Limited
> (Faritec) and/or  any of its subsidiaries including (but not limited to)
> Faritec Enterprise Solutions (Proprietary) Limited, Faritec Strategic IT
> Services (Proprietary) Limited, Faritec Contracting (Proprietary) Limited,
> Ebis and/or any of its subsidiaries.
>
> Please note that the recipient must scan this e-mail and any attached
> files for viruses and the like. While we do everything possible to protect
> information from viruses, Faritec accepts no liability of whatever nature
> for any loss, liability, damage or expense resulting directly or indirectly
> from the access and/or downloading of any files which are attached to this
> e-mail message.
>
>


Using cobertura with Maven 2

2006-02-02 Thread javed mandary
Hi Guys,
 i'd like to know some information about the cobertura plugin in
general:

1. On which repo is the cobertura-maven-plugin hosted ?
2. How to configure it in your POM ?

I tried the following 2 configurations in my POM:
---EXTRACT OF MY POM
--

  
   
 
org.codehaus.mojo
cobertura-maven-plugin

  

  clean

  

 

  
...

  
   
org.codehaus.mojo
cobertura-maven-plugin
  



-END-

I get the following error:

---
[ERROR] BUILD ERROR
[INFO]
-
---
[INFO] The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not exist
or n
o valid version could be found
[INFO]
-
---
[INFO] For more information, run Maven with the -e switch
[INFO]
-
---
[INFO] Total time: 1 second
[INFO] Finished at: Fri Feb 03 11:34:19 GST 2006
[INFO] Final Memory: 2M/4M
[INFO] --
---

Is there any other configurations that is required ? I am using Maven 2.0.2.

kind regards,
  Javed


Re: [m202] Cobertura plugin

2006-02-02 Thread Konstantin Polyzois
I checked it out ant built it myself did not find a working release of it.

/Konstantin

2006/2/1, Arnaud Bailly <[EMAIL PROTECTED]>:
> Hello,
> What is the status of the cobertura plugin for m2 ? I had problems
> trying to include it in the pom through central and there
> was some discussion on the list some days ago, but I didn't find
> how to get the latest and greatest version.
>
> Thanks,
>
> --
> Arnaud Bailly, Dr. - Ingénieur de Recherche
> NORSYS
> 1, rue de la Cense des Raines
> ZAC du Moulin
> 59710 ENNEVELIN
> Tel : (33) 3 28 76 56 76
> Mob : (33) 6 17 12 19 78
> Fax : (33) 3 28 76 57 00
> Web : http://www.norsys.fr
>
>
> -
> 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: Launch an application from the commandline

2006-02-02 Thread jerome lacoste
On 2/2/06, Darryl L. Pierce <[EMAIL PROTECTED]> wrote:
> I would like to be able to run an application from the commandline using
> Maven. The ideal thing would be for Maven to create the command line,
> especially the classpath, given that it knows my dependencies. Is such a
> thing possible and, if so, how? Thanks.

The Execute plugin was created for that. You will find it in mojo-sandbox.

http://mojo.codehaus.org/exec-maven-plugin/introduction.html


  
org.codehaus.mojo
exec-maven-plugin

  
myexecution
package

  exec

  


  java
  
-Dmyproperty=myvalue
-classpath
 
mypackage.MyClass
...
  


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



Re: Unexpected repository downloading behavior (maven 2)

2006-02-02 Thread dan tran
Brad, you need to use deploy:deploy-file to deploy thirdparty artifact to
your internal remote repo
not the install:install-file + some manual step.

http://docs.codehaus.org/display/MAVENUSER/Using+Maven+in+a+corporate+environment

-Dan



On 2/2/06, Brad O'Hearne <[EMAIL PROTECTED]> wrote:
>
> Wendy,
>
> I used the command listed here to install the jar into my local
> repository:
> http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html
>
> After it was installed into my local repository, I copied it up to the
> internal repository that was set up. This jar is a third party library
> of course, so I would not be building this jar myself, and deploying as
> part of a release process. Did I do something wrong?
>
> Brad
>
> Wendy Smoak wrote:
>
> >On 2/2/06, Brad O'Hearne <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >>Thanks for the reply. I don't quite understand -- what pom is it looking
> >>for? And regardless, why isn't it looking for this in my local
> repository?
> >>
> >>
> >
> >The message you posted says it's looking for (among other things):
> >   jboss-common-jdbc-wrapper-3.2.5.pom
> >
> >I would imagine that it *is* looking in your local repository, but the
> >pom is not present, so it goes off trying to find it in all the other
> >repositories.
> >
> >How did that jar get into your repository?  Did you just copy the
> >file, or use either 'mvn deploy' or 'mvn install' to put it there?
> >
> >--
> >Wendy
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Unexpected repository downloading behavior (maven 2)

2006-02-02 Thread Brad O'Hearne

Wendy,

I used the command listed here to install the jar into my local 
repository: 
http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html


After it was installed into my local repository, I copied it up to the 
internal repository that was set up. This jar is a third party library 
of course, so I would not be building this jar myself, and deploying as 
part of a release process. Did I do something wrong?


Brad

Wendy Smoak wrote:


On 2/2/06, Brad O'Hearne <[EMAIL PROTECTED]> wrote:

 


Thanks for the reply. I don't quite understand -- what pom is it looking
for? And regardless, why isn't it looking for this in my local repository?
   



The message you posted says it's looking for (among other things):
  jboss-common-jdbc-wrapper-3.2.5.pom

I would imagine that it *is* looking in your local repository, but the
pom is not present, so it goes off trying to find it in all the other
repositories.

How did that jar get into your repository?  Did you just copy the
file, or use either 'mvn deploy' or 'mvn install' to put it there?

--
Wendy

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

 




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



[m2eclipse] Eclipse WebTools and Maven2 "Publishing Failed"

2006-02-02 Thread John Fallows
I'm trying to use Eclipse 3.2M4, Eclipse WebTools 1.5M4, Maven2 Eclipse
Plugin 0.0.4 and Tomcat 4.1.

I have a WebTools Dynamic Web Project that uses Maven2 to resolve library
dependencies.  When trying to "Debug As -> Debug on Server", the following
error occurs:

Publishing failed
  Resource /M2_REPO/commons-logging/commons-logging/1.0/commons-
logging-1.0.jar does not exist.

It seems as though the "M2_REPO" variable is not being resolved correctly
when the WAR is being constructed for deployment to Tomcat.

Presumably this should resolve to
  C:\Documents and
Settings\john.fallows\.m2\repository/commons-logging/commons-logging/1.0/commons-
logging-1.0.jar

which does exist on the local filesystem.

Note that I have already set the Maven2 Preferences to use "C:\Documents and
Settings\john.fallows\.m2\repository" as the Local Repository Folder value,
enabling compilation to succeed.

Btw, this type of IDE integration is exactly the right direction for Maven2
to be taking.  Combined with automatic generation of all the various flavors
of IDE project files, we are getting very close to having a single source of
truth for both IDE development activities and continuous integration
builds.  Great work!

Kind Regards,
John Fallows.
--
http://apress.com/book/bookDisplay.html?bID=10044
Author: Pro JSF and Ajax: Building Rich Internet Components, Apress


Re: Unexpected repository downloading behavior (maven 2)

2006-02-02 Thread Wendy Smoak
On 2/2/06, Brad O'Hearne <[EMAIL PROTECTED]> wrote:

> Thanks for the reply. I don't quite understand -- what pom is it looking
> for? And regardless, why isn't it looking for this in my local repository?

The message you posted says it's looking for (among other things):
   jboss-common-jdbc-wrapper-3.2.5.pom

I would imagine that it *is* looking in your local repository, but the
pom is not present, so it goes off trying to find it in all the other
repositories.

How did that jar get into your repository?  Did you just copy the
file, or use either 'mvn deploy' or 'mvn install' to put it there?

--
Wendy

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



Re: Unexpected repository downloading behavior (maven 2)

2006-02-02 Thread Brad O'Hearne

Wendy,

Thanks for the reply. I don't quite understand -- what pom is it looking 
for? And regardless, why isn't it looking for this in my local repository?


Brad

Wendy Smoak wrote:


On 2/2/06, Brad O'Hearne <[EMAIL PROTECTED]> wrote:

 


Downloading:
http://10.21.3.66/maven2_repositories/external/jboss/jboss-common-j
dbc-wrapper/3.2.5/jboss-common-jdbc-wrapper-3.2.5.pom
   


...
 


1) First off, this jar is presently in my local repository. Why is maven
trying to download this jar at all? I already have the jar sitting on my
local drive.
   



It's not trying to download the jar, it's looking for the pom.

You can use -DgeneratePom=true with the install plugin.  I'm not sure
if it works with deploy, you may have to write the pom and then use
-DpomFile with the deploy plugin.

--
Wendy

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

 




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



How would i do a build from a subversion tag ?

2006-02-02 Thread Malcolm Wong Ho

An example scenario is that i'm currently working on version 2.0-SNAPSHOP and 
then someone deletes the repository and the application server crashes. What i 
have is a maven release and tagged the source in svn, how would i go about 
doing a build from a certain subversion tag ?


DISCLAIMER:
This message may contain information which is confidential, private or 
privileged in nature. If you are not the intended recipient, you may not 
peruse, use, disseminate, distribute or copy this message or file which is 
attached to this message. If you have received this message in error, please 
notify the sender immediately by e-mail, facsimile or telephone and thereafter 
return and/or destroy the original message. 

Any views of this communication are those of the sender except where the sender 
specifically states them to be those of Faritec (Holdings)  Limited (Faritec) 
and/or  any of its subsidiaries including (but not limited to) Faritec 
Enterprise Solutions (Proprietary) Limited, Faritec Strategic IT Services 
(Proprietary) Limited, Faritec Contracting (Proprietary) Limited, Ebis and/or 
any of its subsidiaries.

Please note that the recipient must scan this e-mail and any attached files for 
viruses and the like. While we do everything possible to protect information 
from viruses, Faritec accepts no liability of whatever nature for any loss, 
liability, damage or expense resulting directly or indirectly from the access 
and/or downloading of any files which are attached to this e-mail message.


Re: Unexpected repository downloading behavior (maven 2)

2006-02-02 Thread Wendy Smoak
On 2/2/06, Brad O'Hearne <[EMAIL PROTECTED]> wrote:

> Downloading:
> http://10.21.3.66/maven2_repositories/external/jboss/jboss-common-j
> dbc-wrapper/3.2.5/jboss-common-jdbc-wrapper-3.2.5.pom
...
> 1) First off, this jar is presently in my local repository. Why is maven
> trying to download this jar at all? I already have the jar sitting on my
> local drive.

It's not trying to download the jar, it's looking for the pom.

You can use -DgeneratePom=true with the install plugin.  I'm not sure
if it works with deploy, you may have to write the pom and then use
-DpomFile with the deploy plugin.

--
Wendy

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



Unexpected repository downloading behavior (maven 2)

2006-02-02 Thread Brad O'Hearne
Hello!  I have an internal repository server set up, that is hosting 3 
internal repositories (internal_released, internal_snapshot, and 
external), and each of these three repositories is configured in my 
project's pom.xml. And of course, I have my local repository. I am 
seeing messages in the output when I run a mvn compile that are 
confusing me. For example, one of my dependencies is a jar that I have 
added to the repository (using instructions given in the maven 2 
documentation), called jboss-common-jdbc-wrapper.jar (or more properly, 
once added to the repository, jboss-common-jdbc-wrapper-3.3.5..jar). 
Here is the output from the mvn command:


Downloading: 
http://10.21.3.66/maven2_repositories/external/jboss/jboss-common-j

dbc-wrapper/3.2.5/jboss-common-jdbc-wrapper-3.2.5.pom
[WARNING] Unable to get resource from repository external 
(http://10.21.3.66/mav

en2_repositories/external)
Downloading: 
http://10.21.3.66/maven2_repositories/internal_released/jboss/jboss

-common-jdbc-wrapper/3.2.5/jboss-common-jdbc-wrapper-3.2.5.pom
[WARNING] Unable to get resource from repository internal_released 
(http://10.21

.3.66/maven2_repositories/internal_released)
Downloading: 
http://repo1.maven.org/maven2/jboss/jboss-common-jdbc-wrapper/3.2.5

/jboss-common-jdbc-wrapper-3.2.5.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org

/maven2)

There are several things confusing me about this:

1) First off, this jar is presently in my local repository. Why is maven 
trying to download this jar at all? I already have the jar sitting on my 
local drive.


2) Why does the first WARNING above occur? This jar sits in my internal 
repository named "external", so why is maven saying that it is unable to 
get the resource from this repository?


3) Since maven is checking the other repositories, why is it not 
checking my snapshot repository? I am guessing this has something to do 
with the version in my dependency declaration for this jar in the 
pom.xml  not containing the "SNAPSHOT" string, but 3.2.5 instead, but 
I'm not sure.


4) Why is maven checking ibiblio? I thought that listing your own 
servers overrode the check to ibiblio?


5) If maven has checked all these different repositories and not found 
the libraryI assume that it eventually finds it in my local repository?


Thanks for the help. I thought the idea of the local repository was to 
prevent the need to download, and I thought that having internal 
repositories set up would alleviate the read to ibiblio. Clarification 
on these questions would really help!


Brad

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



Re: Deploying Pom w/ Dependencies to Remote Repository

2006-02-02 Thread Allan Ramirez

Hi there,

Try this,

Change the packaging to "pom"

mvn deploy:deploy-file -DgroupId=
-DartifactId=
-Dversion=
-Dfile=
-Dpackaging=pom
-DrepositoryId=
-Durl=

-allan

[EMAIL PROTECTED] wrote:


Here's my situation... I've setup an internal proxy where everyone
internal to our organization can download from.  Some of our projects
depend on the JWSDP packages, and for example, if you're using the
JAX-RPC Sun libraries, there's about 10 other libraries it depends on. 
I want to be able to just deploy this pom to the internal repository...



  4.0.0
  javax.xml
  jaxrpc
  1.1.3
  JAXRPC Package
  
Part of the Java Web Services Developer Pack 2.0
  
  

  javax.xml
  jaxrpc-api
  1.1.3


  javax.xml
  jaxrpc-impl
  1.1.3

  ...

This way, developers can just add the following dependency to their
project and get all the jaxrpc libraries.


  javax.xml
  jaxrpc
  1.1.3


However, I haven't found a way to use deploy:deploy-file to just deploy
the Pom w/ Dependencies into the internal repository.  Can someone lend
some insight into a possible solution.  I'm trying to avoid just
copying the structure into the internal repository and I was wondering
if the deploy plugin could do something for me.

Thanks,
Ryan

-
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: deploy snapshot error

2006-02-02 Thread dan tran
i think this problem is fixed in maven-2.0.2 + maven-deploy-plugin 2.0

google Did receive proper ACK: '1' for details

-D


On 2/2/06, Brad O'Hearne <[EMAIL PROTECTED]> wrote:
>
> I have already deployed a 1.0-SNAPSHOT into my repository. I am trying
> to deploy again over this snapshot and am having trouble. The stack
> trace is below, but I think there's a general understanding I need about
> deploying snapshots. Can I repeatedly deploy a snapshot without changing
> the version element in the pom.xml, or deleting the previous deployed
> snapshot from the repository? I guess likewise, for actual deployed
> releases, if I have deployed a version 1.0.0, can I execute "mvn deploy"
> and have it overwrite the previous 1.0.0 version, if the version element
> in the pom.xml goes unchanged?
>
> Thanks for your help!  Stack trace is below:
>
> [ERROR] BUILD ERROR
> [INFO]
> -
> ---
> [INFO] Error deploying artifact: Did receive proper ACK: '1'
>
> [INFO]
> -
> ---
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying
> artifact
> : Did receive proper ACK: '1'
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:555)
>
> Brad
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


deploy snapshot error

2006-02-02 Thread Brad O'Hearne
I have already deployed a 1.0-SNAPSHOT into my repository. I am trying 
to deploy again over this snapshot and am having trouble. The stack 
trace is below, but I think there's a general understanding I need about 
deploying snapshots. Can I repeatedly deploy a snapshot without changing 
the version element in the pom.xml, or deleting the previous deployed 
snapshot from the repository? I guess likewise, for actual deployed 
releases, if I have deployed a version 1.0.0, can I execute "mvn deploy" 
and have it overwrite the previous 1.0.0 version, if the version element 
in the pom.xml goes unchanged?


Thanks for your help!  Stack trace is below:

[ERROR] BUILD ERROR
[INFO] 
-

---
[INFO] Error deploying artifact: Did receive proper ACK: '1'

[INFO] 
-

---
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying 
artifact

: Did receive proper ACK: '1'
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

ultLifecycleExecutor.java:555)

Brad

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



Incorporating Doxia from svn into m2

2006-02-02 Thread Julian Wood

Hi,

There's a bug in doxia which is purportedly fixed, and I want to use  
the fix.


http://jira.codehaus.org/browse/DOXIA-29

It's not fixed in m2.0.2, AFAICT, but I'm not sure which version of  
doxia I am running (seems to be 1.0-alpha-7), so that in itself  
doesn't make sense, since it is supposed to be fixed in 1.0-alpha-6.


In /usr/local/maven-2.0.2/lib I have doxia-sink-api-1.0-alpha-7.jar,  
but I'm not sure if that is the right artifact for the fix.


If I svn checkout doxia, and install all the artifacts into my local  
repository (does doxia work like plugins??):


mvn install -DupdateReleaseInfo=true

I still get the bug. I also tried replacing the built artifact doxia- 
sink-api-1.0-alpha-8-SNAPSHOT.jar in /usr/local/maven-2.0.2/lib, but  
still no go.


So what do I need to do? Or is this still a bug?

A couple more things, 'mvn site' on the svn version of doxia, then  
load up format.html in target/site, click on 'document structure' and  
the bug is still there. Of course that is using my mvn 2.0.2.


If I modify src/main/resources/test/test.apt in doxia-core to have an  
anchor and link in it, then run the tests, it looks like it works,  
except that there is no html output. It looks like it works in the  
xml output, and the other files. I get an empty file for xhtml. So  
I'm still trying to get a test-case up and going. What would normally  
produce test.html, as with using the site plugin? Does it go apt->xml- 
>html using some xsl somewhere?


Still digging,

J

PS. Should this be moved to one of the doxia lists?

--
Julian Wood <[EMAIL PROTECTED]>

Programmer/Analyst
University of Calgary

http://commons.ucalgary.ca


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



Re: Build numbering w/ Maven

2006-02-02 Thread Richard C. L. Li
Such a nice feature, will it happens in Continuum 1.1?  Or I have to 
wait longer?


Regards,
Richard Li

Alex Boisvert wrote:

http://jira.codehaus.org/browse/CONTINUUM-581

Emmanuel Venisse wrote:

  

It isn't possible but can be a good idea.
Please file an issue.

Emmanuel

Alex Boisvert a écrit :



Hi,

I would like to know about the options for sharing the Continuum build
number with my underlying Maven1/2 projects.

What I'm trying to do is generate artifacts with the following naming
convention:

myproject-1.0-123.zip

where 1.0 is the version number defined in Maven (e.g. pom.xml), and 123
is the Continuum build number.  Artifacts could be .zip, .jar, .war,
etc.

So how to I access the Continuum build number from Maven1/2 or Ant?  Is
is passed in some environment variable?

thanks in advance,
alex




  


  




Re: [M2] Distributing archive of source via repository

2006-02-02 Thread Stephen Duncan
Run mvn -DperformRelease=true deploy

-DperformRelease will run javadoc:jar and source:jar along with your
normal build (attached to package phase, I believe)

-Stephen

On 2/2/06, Siegmann Daniel, NY <[EMAIL PROTECTED]> wrote:
> I know the source plugin can generate an archive of a project's source code.
> What must I do to get the deploy plugin to deploy this along with the class
> file jar? What, if any, configuration must be done in the dependant projects
> to get this automatically downloaded?
>
> Any help would be much appreciated.
>
> Thanks,
> --
> Daniel Siegmann
> FJA-US, Inc.
> (212) 840-2618 ext. 125
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Stephen Duncan Jr
www.stephenduncanjr.com

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



Deploying Pom w/ Dependencies to Remote Repository

2006-02-02 Thread coder
Here's my situation... I've setup an internal proxy where everyone
internal to our organization can download from.  Some of our projects
depend on the JWSDP packages, and for example, if you're using the
JAX-RPC Sun libraries, there's about 10 other libraries it depends on. 
I want to be able to just deploy this pom to the internal repository...


   4.0.0
   javax.xml
   jaxrpc
   1.1.3
   JAXRPC Package
   
 Part of the Java Web Services Developer Pack 2.0
   
   
 
   javax.xml
   jaxrpc-api
   1.1.3
 
 
   javax.xml
   jaxrpc-impl
   1.1.3
 
   ...

This way, developers can just add the following dependency to their
project and get all the jaxrpc libraries.

 
   javax.xml
   jaxrpc
   1.1.3
 

However, I haven't found a way to use deploy:deploy-file to just deploy
the Pom w/ Dependencies into the internal repository.  Can someone lend
some insight into a possible solution.  I'm trying to avoid just
copying the structure into the internal repository and I was wondering
if the deploy plugin could do something for me.

Thanks,
Ryan

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



RE: [m2] war plugin and warSourceExcludes not working for dependencies

2006-02-02 Thread Brian E. Fox
It's a bug that is fixed in svn. I've been running a custom built
version for several months that has this fix.

Anyone care to comment on when a war plugin release is going to happen? 

-Original Message-
From: Piotr Bzdyl [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 01, 2006 7:16 AM
To: Maven Users List
Subject: Re: [m2] war plugin and warSourceExcludes not working for
dependencies


> Is it a bug in the maven-war-plugin?
 From plugin sources:

for ( Iterator iter = artifacts.iterator(); iter.hasNext(); )
{
Artifact artifact = (Artifact) iter.next();

// TODO: utilise appropriate methods from project builder
ScopeArtifactFilter filter = new ScopeArtifactFilter(
Artifact.SCOPE_RUNTIME );
if ( !artifact.isOptional() && filter.include( artifact ) )
{
String type = artifact.getType();
if ( "tld".equals( type ) )
{
FileUtils.copyFileToDirectory( artifact.getFile(),
tldDirectory );
}
/* ###
*/
else if ( "jar".equals( type ) || "ejb".equals( type ) 
|| "ejb-client".equals( type ) )
{
FileUtils.copyFileToDirectory( artifact.getFile(),
libDirectory );
}

/* ###
*/

It seems that all dependencies are copied to the WEB-INF/lib - excludes
filter is not used here. Is this a bug or the plugin should work this
way? If this behavior is intended maybe there should be some flag or
other excludes filter for project dependencies? I tried to make all
dependencies provided but then they don't appear in the
manifest.mf Classpath :(

Best regards,
Piotrek

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




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



Re: How to make multi module work in continuum

2006-02-02 Thread Emmanuel Venisse



John Tolentino a écrit :

What are you trying to build? Maven 1, Maven 2 or Ant?

If you're using Maven 2, by default it should build all of the sub 
projects if you build the parent. Just make sure all of the sub projects 
are declared in the parent POM's modules section.


Not exactly.
Continuum create separate projects for parent and modules. Each project have its own build if a 
change is make on it.
By default, the parent build is done with -N (non recursive) options, Continuum don't build 
sub-modules on parent project.




With Maven 1, make the default goal of your parent project call your 
multi-project goal.


Can't answer regarding Ant though. Haven't tried building multi-projects 
through Continuum with Ant yet.


[EMAIL PROTECTED] wrote:


How do i make continuum to build parent and childern ?

is there any documentation or example any where?






Thanks,
Raghurajan G
 









Directory stucture and archetypes

2006-02-02 Thread Michael Masters
Hello everyone,

I was wondering if someone could something up for me. Is there a way to run
two archetypes for the same project? For example, could you run the
maven-archetype-quickstart and maven-archetype-webapp for the same
directory? I've tried to do this but it forces me to use a different
artifactId...which creates to directory structures. I was wondering if I
could have a merge of the two directories.

Also, would this break the standard for the directory structures?

thanks in advance,
Mike


Re: How to make multi module work in continuum

2006-02-02 Thread John Tolentino

What are you trying to build? Maven 1, Maven 2 or Ant?

If you're using Maven 2, by default it should build all of the sub 
projects if you build the parent. Just make sure all of the sub projects 
are declared in the parent POM's modules section.


With Maven 1, make the default goal of your parent project call your 
multi-project goal.


Can't answer regarding Ant though. Haven't tried building multi-projects 
through Continuum with Ant yet.


[EMAIL PROTECTED] wrote:


How do i make continuum to build parent and childern ?

is there any documentation or example any where?






Thanks,
Raghurajan G 

 



RE: Continuum & Maven 2 not using settings.xml

2006-02-02 Thread Brian E. Fox
Copy your settings.xml to \bin\linux\conf 

-Original Message-
From: Christian Mouttet [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 02, 2006 11:47 AM
To: users@maven.apache.org
Subject: Fwd: Continuum & Maven 2 not using settings.xml

no ideas?

--  Weitergeleitete Nachricht  --

Subject: Continuum & Maven 2 not using settings.xml
Date: Montag, 30. Januar 2006 10:46
From: Christian Mouttet
To: users@maven.apache.org

Hello everybody,

on my Linux machine I have jdk-1.5, maven-2.0.1 and continuum-1.0.2  installed. 
With adding any M2-Project I run into trouble: The configuration  file 
settings.xml isn't used by Maven when called by Continuum. I have tried  quite 
a lot with help of Emmanuel - thank's for that again. At last he wrote  that 
"all settings loading is done by maven api"
(http://jira.codehaus.org/browse/CONTINUUM-488).

Here is my scenario:

- user for Continuum

- ~continuum/.profile:
  export ANT_HOME=/opt/ant
  export MAVEN_HOME=/opt/maven-1.0
  export M2_HOME=/opt/maven-2.0.1
  export JAVA_HOME=/opt/jdk1.5.0_02
  export PATH=/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:\
  /bin:$ANT_HOME/bin:$MAVEN_HOME/bin:$M2_HOME/bin:$JAVA_HOME/bin

- ~:
  12290 [Thread-1] INFO  org.apache.maven.scm.manager.ScmManager  -
 Executing: cvs -f -q update -d
  12291 [Thread-1] INFO  org.apache.maven.scm.manager.ScmManager  - Working
  directory: /opt/continuum-1.0.2/bin/linux/../../apps/continuum/
  working-directory/7
  12291 [Thread-1] DEBUG org.apache.maven.scm.manager.ScmManager  - Working
  directory: /opt/continuum-1.0.2/bin/linux/../../apps/continuum/
  working-directory/7
  ...
  12291 [Thread-1] DEBUG org.apache.maven.scm.manager.ScmManager  - Command
  line: cvs -f -q update -d
  13004 [Thread-1] INFO
  org.apache.maven.continuum.execution.ContinuumBuildExecutor:ant  - Resolved
  the executable 'ant' to '/opt/ant/bin/ant'.
  13011 [Thread-1] INFO
  org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven-1  -
  Resolved the executable 'maven' to '/opt/maven-1.0/bin/maven'.
  13202 [Thread-1] DEBUG org.apache.maven.settings.MavenSettingsBuilder  -
  Building Maven global-level settings from:
  '/opt/maven-2.0.1/conf/settings.xml'
  13202 [Thread-1] DEBUG org.apache.maven.settings.MavenSettingsBuilder  -
  Building Maven user-level settings from: '/home/continuum/.m2/settings.xml'
  13451 [Thread-1] ERROR
  org.apache.maven.continuum.execution.maven.m2.MavenBuilderHelper  - Cannot
  build maven project from
 
 /opt/continuum-1.0.2/bin/linux/../../apps/continuum/working-directory/7/pom.
xml. ...
  from the specified remote repositories:
central (http://repo1.maven.org/maven2)
  ...
  Caused by: java.net.UnknownHostException: repo1.maven.org

- DNS for the internet is done by our proxy server.
  This server is configured correctly in settings.xml. Starting mvn from
  command line works properly.


Any other ideas?

Regards
-chris


**
Diese E-Mail wurde auf Viren ueberprueft.
[EMAIL PROTECTED]
**

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

---

-- 

IT2media
GmbH & Co. KG
Geschäftsstelle München


Kontakt:
Fürstenrieder Straße 265, 81377 München
Postfach 70 08 40, 81308 München
Telefon:+49/(0)89/74126-399
Telefax:+49/(0)89/74126-201

mailto:[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: Installing plug-ins manually

2006-02-02 Thread Brian E. Fox
Alex,
I'm still unsure why you need to build cewolf. Maybe you are confusing
the maven install with the install of cewolf?
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 01, 2006 11:22 AM
To: users@maven.apache.org
Subject: Installing plug-ins manually

I have a server that is NOT connected to the outside world.  It is
completely internal use only.
I have a software package that I am trying to install (Cewolf).
Cewolf uses maven in its install.
However when I try to run the install Maven tries to connect to the
outside world to download the resources plug-in.  But since there is not
connection to the outside world, this download fails, and thus so does
the install.
 
Is there any way to manually install this (and possibly others) plug-in?
 
Thanks.
--Alex



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



Re: [m2] Bug in Dependency Resolution?

2006-02-02 Thread Carlos Sanchez
nearest in the graph of dependencies

--a
   |--b
   |   `-- c 1.1
   `--c 1.0

The nearest c from a is 1.0 (depth = 1) while 1.1 has depth = 2

nearest != latest version

On 2/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Thanks for the comment, but very unhelpful. I know
> about that document for a long time ...
>
> I would expect that the nearest dependency is 1.2.13
> and not 1.2.6 ... if not, then please explain.
>
> Chris
>
>
> --- Carlos Sanchez <[EMAIL PROTECTED]> wrote:
>
> > It doesn't work like that
> > Check Dependency mediation in
> >
> http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
> >
> > On 2/2/06, [EMAIL PROTECTED]
> > <[EMAIL PROTECTED]> wrote:
> > > I'm encountering an error with log4j. I have a
> > > transitive dependency on log4j-1.2.13 in my Maven
> > 2
> > > plugin. However, it seems that when I run Maven 2
> > that
> > > Maven 2 resolves into log4j 1.2.6 (possibly
> > because of
> > > another transitive dependency). This results in a
> > > runtime error with my plugin as it can't find
> > > "org/apache/log4j/xml/Log4jEntityResolver" (that
> > class
> > > is not part of log4j 1.2.6). When running debug
> > then I
> > > see the following:
> > >
> > > [DEBUG]   log4j:log4j:jar:1.2.13 (removed -
> > nearer
> > > found: 1.2.6)
> > >
> > > This looks to me like a bug in the dependency
> > > resolution of Maven 2. Seems to think that 1.2.6
> > is a
> > > higher version than 1.2.13?
> > >
> > > Any ideas?
> > >
> > > Thanks,
> > > Chris
> > >
> > >
> > >
> > >
> >
> -
> > > 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: [m2] Bug in Dependency Resolution?

2006-02-02 Thread haginow2001-nabble
Thanks for the comment, but very unhelpful. I know
about that document for a long time ...

I would expect that the nearest dependency is 1.2.13
and not 1.2.6 ... if not, then please explain.

Chris


--- Carlos Sanchez <[EMAIL PROTECTED]> wrote:

> It doesn't work like that
> Check Dependency mediation in
>
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
> 
> On 2/2/06, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> > I'm encountering an error with log4j. I have a
> > transitive dependency on log4j-1.2.13 in my Maven
> 2
> > plugin. However, it seems that when I run Maven 2
> that
> > Maven 2 resolves into log4j 1.2.6 (possibly
> because of
> > another transitive dependency). This results in a
> > runtime error with my plugin as it can't find
> > "org/apache/log4j/xml/Log4jEntityResolver" (that
> class
> > is not part of log4j 1.2.6). When running debug
> then I
> > see the following:
> >
> > [DEBUG]   log4j:log4j:jar:1.2.13 (removed -
> nearer
> > found: 1.2.6)
> >
> > This looks to me like a bug in the dependency
> > resolution of Maven 2. Seems to think that 1.2.6
> is a
> > higher version than 1.2.13?
> >
> > Any ideas?
> >
> > Thanks,
> > Chris
> >
> >
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 


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



Re: How to install sources

2006-02-02 Thread Paolo Perrucci

Hi Erick.

you can use the maven-source-plugin

http://maven.apache.org/plugins/maven-source-plugin/

or use the performRelease property that activate the release-profile 
profile defined in the super POM


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

"mvn -DperformRelease deploy" will install your artifact jar with source and 
javadoc jars.

Bye
Paolo



Erick Dovale ha scritto:


Hi there,
can any one tell how can I install the sources jar of the artifacts in 
the local repository??


thanks..

edovale

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



How to install sources

2006-02-02 Thread Erick Dovale

Hi there,
can any one tell how can I install the sources jar of the artifacts in 
the local repository??


thanks..

edovale

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



Re: clearcase, scm, Could not find Maven project descriptor

2006-02-02 Thread raghurajan . x . gurunathan
Thanks for your reply

I found the prblem and fixed it, its because my pom.xml is not there in my 
working  directory, once i copied my pom its worked fine.

Those who are having problem still, this is how its working for me

its like my working directory is /Raghu/Work

So when continuum checkout it creates a folder under /Raghu/work/10

My project structrue has 
 
   +- - Myview
+ - - MyVOB
+ - - Root
 + - - Module A
  + - - pom.xml
  + - - pom.xml


So when checkout happend its checked out files at 

   /Raghu/work/10/
 + - - MyVOB
  + - - Root
  + - - Module A
   + - - pom.xml
   + - - pom.xml

When i tied it with like this then i got error 
"org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
> Could not find Maven project descriptor"

So i created another pom.xml at 
 
   /Raghu/work/10/
 + - - MyVOB
  + - - Root
  + - - Module A
   + - - pom.xml
   + - - pom.xml
   + - -pom.xml

Then its started working.





Thanks,
Raghurajan G 





Wim Deblauwe <[EMAIL PROTECTED]>
02/02/2006 10:38 AM
Please respond to continuum-users

 
To: continuum-users@maven.apache.org
cc: 
Subject:Re: clearcase, scm, Could not find Maven project 
descriptor


Normally, that should work. If you changed the directory where continuum
looks for the pom.xml to "Root\pom.xml" it should work. I'm not sure if 
you
should use backslash (\) or forward slash (/). Maybe you can give both a
try?

regards,

Wim

2006/2/1, [EMAIL PROTECTED] <
[EMAIL PROTECTED]>:
>
> Hi All,
>
> I'm having this weired problem, Pleas let me know if anyone has solution
> for this
>
> i have project structure has
>  Root
> + - - Module A
> + - - pom.xml
>  + - - pom.xml
>
> in Root>pom.xml i have scm has
>
>   
>
> 
scm|clearcase|MydevView_vu|/Raghu/config_spec.txt
> 
>
> then i created maven 2 project in continuum  and pointed to Root>pom.xml
>
> when i added this its checkedout files as i mentioned in my config_spec 
at
> "working directory"
>
> Then when clicked "Build Now" it did updated my new snapshot view at my
> "working directory" but after updating its failed to continue with the
> following error
>
> org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
> Could not find Maven project descriptor.
> at
>
> 
org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.updateProjectFromCheckOut
> (MavenTwoBuildExecutor.java:111)
> at
>
> 
org.apache.maven.continuum.core.action.UpdateProjectFromWorkingDirectoryContinuumAction.execute
> (UpdateProjectFromWorkingDirectoryContinuumAction.java:62)
> at
> org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(
> DefaultBuildController.java:169)
> at
>
> 
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask
> (BuildProjectTaskExecutor.java:53)
> at
>
> 
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run
> (ThreadedTaskQueueExecutor.java:103)
> at java.lang.Thread.run(Thread.java:534)
>
>
> But when checked at my working directory it has the pom and directory
> structure as shown above (i.e)
>
> C:\continuum-1.0.2\apps\continuum\working-directory\46\
> + Root
> +- - Module A
> +- - pom.xml
> + pom.xml
>
>
> Can any one please tell me what am missing here??
>
>
> Thanks,
> Raghurajan G
>
>




Re: [m2] Bug in Dependency Resolution?

2006-02-02 Thread Carlos Sanchez
It doesn't work like that
Check Dependency mediation in
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

On 2/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I'm encountering an error with log4j. I have a
> transitive dependency on log4j-1.2.13 in my Maven 2
> plugin. However, it seems that when I run Maven 2 that
> Maven 2 resolves into log4j 1.2.6 (possibly because of
> another transitive dependency). This results in a
> runtime error with my plugin as it can't find
> "org/apache/log4j/xml/Log4jEntityResolver" (that class
> is not part of log4j 1.2.6). When running debug then I
> see the following:
>
> [DEBUG]   log4j:log4j:jar:1.2.13 (removed - nearer
> found: 1.2.6)
>
> This looks to me like a bug in the dependency
> resolution of Maven 2. Seems to think that 1.2.6 is a
> higher version than 1.2.13?
>
> Any ideas?
>
> Thanks,
> Chris
>
>
>
> -
> 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: Launch an application from the commandline

2006-02-02 Thread Julian Wood
I did this using antrun, and putting it in a profile. Note that it  
always packages your app first, before running, when attached in this  
way.


>mvn -Dimagemap=true package



run-imagemap-profile


imagemap
true





org.apache.maven.plugins
maven-antrun-plugin


run-imagemap-tester
package


classname="ca.perceptions.gym.view.components.imageMap.ImageMap"  
fork="true" failonerror="true" maxmemory="128m">
refid="maven.runtime.classpath"/>





run













On 2-Feb-06, at 1:15 PM, Darryl L. Pierce wrote:

I would like to be able to run an application from the commandline  
using

Maven. The ideal thing would be for Maven to create the command line,
especially the classpath, given that it knows my dependencies. Is  
such a

thing possible and, if so, how? Thanks.
--
Darryl L. Pierce <[EMAIL PROTECTED]>
Homepage: http://mcpierce.multiply.com/
"McVeigh's lawyer got him the death penalty, which, quite frankly,
I could have done." - Jon Stewart


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



--
Julian Wood <[EMAIL PROTECTED]>

Programmer/Analyst
University of Calgary

http://commons.ucalgary.ca


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



Re: [M2] Distributing archive of source via repository

2006-02-02 Thread Tomislav Stojcevich
Add this to the  section of your pom:

  
org.apache.maven.plugins
maven-source-plugin

  
package

jar

  

  

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



[m2] Bug in Dependency Resolution?

2006-02-02 Thread haginow2001-nabble
I'm encountering an error with log4j. I have a
transitive dependency on log4j-1.2.13 in my Maven 2
plugin. However, it seems that when I run Maven 2 that
Maven 2 resolves into log4j 1.2.6 (possibly because of
another transitive dependency). This results in a
runtime error with my plugin as it can't find
"org/apache/log4j/xml/Log4jEntityResolver" (that class
is not part of log4j 1.2.6). When running debug then I
see the following:

[DEBUG]   log4j:log4j:jar:1.2.13 (removed - nearer
found: 1.2.6)

This looks to me like a bug in the dependency
resolution of Maven 2. Seems to think that 1.2.6 is a
higher version than 1.2.13?

Any ideas?

Thanks,
Chris



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



Launch an application from the commandline

2006-02-02 Thread Darryl L. Pierce
I would like to be able to run an application from the commandline using
Maven. The ideal thing would be for Maven to create the command line,
especially the classpath, given that it knows my dependencies. Is such a
thing possible and, if so, how? Thanks.
-- 
Darryl L. Pierce <[EMAIL PROTECTED]>
Homepage: http://mcpierce.multiply.com/
"McVeigh's lawyer got him the death penalty, which, quite frankly, 
I could have done." - Jon Stewart


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



Filtering resources during assembly

2006-02-02 Thread brian . a . yoffe
I have a POM that creates an assembly (by using the mvn assembly:assembly 
command). Before assembling my directories, I want filtering to occur 
on some set of resources.

I can achieve this if I execute:
mvn resources:resources assembly:assembly

Is there a way to get the resource filtering to occur automatically as 
part of the assembly step so that I can simply execute:
mvn assembly:assembly

My POM is attached below:

Thanks,
Brian Yoffe


--

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";>
  
com.jpmorgan.pat.fi
fixed-income
1.0-SNAPSHOT
  
  4.0.0
  configuration
  pom
  Pat Fixed Income Packaging
  http://maven.apache.org
  

  ${pom.groupId}
  fi-strategies
  ${pom.version}
  runtime

  
  

  
src/main/conf/common
true
  
  
src/main/conf/${env}
true
  


  src/main/conf/${env}/filter_default.properties


   
org.apache.maven.plugins
maven-assembly-plugin

  ${project.build.finalName}-sit
  
 src/main/assembly/conf.xml
 src/main/assembly/bin.xml
  



  


This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates.

Re: [M2] Distributing archive of source via repository

2006-02-02 Thread Michael Böckling
When source:jar is part of the build-lifecycle, the source jar is 
automatically "attached" to the project and deployed. The 
maven-eclipse-plugin has an option 
true, so you have sources in Eclipse 
if you like, don't know if that is what you wanted.


Regards,
   Michael


I know the source plugin can generate an archive of a project's source code.
What must I do to get the deploy plugin to deploy this along with the class
file jar? What, if any, configuration must be done in the dependant projects
to get this automatically downloaded?

Any help would be much appreciated.

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

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



 




--
Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel
P: +41 61 226 99 63 - F: +41 61 226 99 69
[EMAIL PROTECTED]; http://www.giniality.com/



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



Re: Build numbering w/ Maven

2006-02-02 Thread Srepfler Srgjan

Emmanuel Venisse wrote:

It isn't possible but can be a good idea.
Please file an issue.

Emmanuel


I like this idea too.

Srgjan


[M2] Distributing archive of source via repository

2006-02-02 Thread Siegmann Daniel, NY
I know the source plugin can generate an archive of a project's source code.
What must I do to get the deploy plugin to deploy this along with the class
file jar? What, if any, configuration must be done in the dependant projects
to get this automatically downloaded?

Any help would be much appreciated.

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

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



[m2] APT Table Headers

2006-02-02 Thread Subhash Chandran
How to I add a table column headers in APT? The tutorial specifies to add
contents to table cells only.

--
Regards,
Subhash Chandran S

Cross platform OpenSource Java based file encryption software:
http://www.WizTools.org/project/WizCrypt/


Re: [m2] Possible bug?

2006-02-02 Thread Rubén Barroso
I forgot to mention that @ char is in a comment.

2006/2/2, Rubén Barroso <[EMAIL PROTECTED]>:
>
> Hi all!
>
> I've got a resource (a Spring XML contexty file) that needs to be filtered
> before being deployed. I use profiles to filter plenty of properties present
> on it. I've an at character (@) in the middle of the file, and I've found
> out that properties after that comment aren't filtered (properties before
> that comment are). Any ideas?
>
> rb
>


[m2] Possible bug?

2006-02-02 Thread Rubén Barroso
Hi all!

I've got a resource (a Spring XML contexty file) that needs to be filtered
before being deployed. I use profiles to filter plenty of properties present
on it. I've an at character (@) in the middle of the file, and I've found
out that properties after that comment aren't filtered (properties before
that comment are). Any ideas?

rb


Fwd: Continuum & Maven 2 not using settings.xml

2006-02-02 Thread Christian Mouttet
no ideas?

--  Weitergeleitete Nachricht  --

Subject: Continuum & Maven 2 not using settings.xml
Date: Montag, 30. Januar 2006 10:46
From: Christian Mouttet
To: users@maven.apache.org

Hello everybody,

on my Linux machine I have jdk-1.5, maven-2.0.1 and continuum-1.0.2
 installed. With adding any M2-Project I run into trouble: The configuration
 file settings.xml isn't used by Maven when called by Continuum. I have tried
 quite a lot with help of Emmanuel - thank's for that again. At last he wrote
 that "all settings loading is done by maven api"
(http://jira.codehaus.org/browse/CONTINUUM-488).

Here is my scenario:

- user for Continuum

- ~continuum/.profile:
  export ANT_HOME=/opt/ant
  export MAVEN_HOME=/opt/maven-1.0
  export M2_HOME=/opt/maven-2.0.1
  export JAVA_HOME=/opt/jdk1.5.0_02
  export PATH=/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:\
  /bin:$ANT_HOME/bin:$MAVEN_HOME/bin:$M2_HOME/bin:$JAVA_HOME/bin

- ~:
  12290 [Thread-1] INFO  org.apache.maven.scm.manager.ScmManager  -
 Executing: cvs -f -q update -d
  12291 [Thread-1] INFO  org.apache.maven.scm.manager.ScmManager  - Working
  directory: /opt/continuum-1.0.2/bin/linux/../../apps/continuum/
  working-directory/7
  12291 [Thread-1] DEBUG org.apache.maven.scm.manager.ScmManager  - Working
  directory: /opt/continuum-1.0.2/bin/linux/../../apps/continuum/
  working-directory/7
  ...
  12291 [Thread-1] DEBUG org.apache.maven.scm.manager.ScmManager  - Command
  line: cvs -f -q update -d
  13004 [Thread-1] INFO
  org.apache.maven.continuum.execution.ContinuumBuildExecutor:ant  - Resolved
  the executable 'ant' to '/opt/ant/bin/ant'.
  13011 [Thread-1] INFO
  org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven-1  -
  Resolved the executable 'maven' to '/opt/maven-1.0/bin/maven'.
  13202 [Thread-1] DEBUG org.apache.maven.settings.MavenSettingsBuilder  -
  Building Maven global-level settings from:
  '/opt/maven-2.0.1/conf/settings.xml'
  13202 [Thread-1] DEBUG org.apache.maven.settings.MavenSettingsBuilder  -
  Building Maven user-level settings from: '/home/continuum/.m2/settings.xml'
  13451 [Thread-1] ERROR
  org.apache.maven.continuum.execution.maven.m2.MavenBuilderHelper  - Cannot
  build maven project from
 
 /opt/continuum-1.0.2/bin/linux/../../apps/continuum/working-directory/7/pom.
xml. ...
  from the specified remote repositories:
central (http://repo1.maven.org/maven2)
  ...
  Caused by: java.net.UnknownHostException: repo1.maven.org

- DNS for the internet is done by our proxy server.
  This server is configured correctly in settings.xml. Starting mvn from
  command line works properly.


Any other ideas?

Regards
-chris


**
Diese E-Mail wurde auf Viren ueberprueft.
[EMAIL PROTECTED]
**

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

---

-- 

IT2media
GmbH & Co. KG
Geschäftsstelle München


Kontakt:
Fürstenrieder Straße 265, 81377 München
Postfach 70 08 40, 81308 München
Telefon:+49/(0)89/74126-399
Telefax:+49/(0)89/74126-201

mailto:[EMAIL PROTECTED]


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



Re: clearcase, scm, Could not find Maven project descriptor

2006-02-02 Thread Wim Deblauwe
Normally, that should work. If you changed the directory where continuum
looks for the pom.xml to "Root\pom.xml" it should work. I'm not sure if you
should use backslash (\) or forward slash (/). Maybe you can give both a
try?

regards,

Wim

2006/2/1, [EMAIL PROTECTED] <
[EMAIL PROTECTED]>:
>
> Hi All,
>
> I'm having this weired problem, Pleas let me know if anyone has solution
> for this
>
> i have project structure has
>  Root
> + - - Module A
> + - - pom.xml
>  + - - pom.xml
>
> in Root>pom.xml i have scm has
>
>   
>
> 
> scm|clearcase|MydevView_vu|/Raghu/config_spec.txt
> 
>
> then i created maven 2 project in continuum  and pointed to Root>pom.xml
>
> when i added this its checkedout files as i mentioned in my config_spec at
> "working directory"
>
> Then when clicked "Build Now" it did updated my new snapshot view at my
> "working directory" but after updating its failed to continue with the
> following error
>
> org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
> Could not find Maven project descriptor.
> at
>
> org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.updateProjectFromCheckOut
> (MavenTwoBuildExecutor.java:111)
> at
>
> org.apache.maven.continuum.core.action.UpdateProjectFromWorkingDirectoryContinuumAction.execute
> (UpdateProjectFromWorkingDirectoryContinuumAction.java:62)
> at
> org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(
> DefaultBuildController.java:169)
> at
>
> org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask
> (BuildProjectTaskExecutor.java:53)
> at
>
> org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run
> (ThreadedTaskQueueExecutor.java:103)
> at java.lang.Thread.run(Thread.java:534)
>
>
> But when checked at my working directory it has the pom and directory
> structure as shown above (i.e)
>
> C:\continuum-1.0.2\apps\continuum\working-directory\46\
> + Root
> +- - Module A
> +- - pom.xml
> + pom.xml
>
>
> Can any one please tell me what am missing here??
>
>
> Thanks,
> Raghurajan G
>
>


RE: need to build a SAR file not a JAR file

2006-02-02 Thread Ballard, Ken
Sorry for my previous post. Henry's response is more current.

Ken 

-Original Message-
From: Brad O'Hearne [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 02, 2006 12:25 AM
To: Maven Users List
Subject: need to build a SAR file not a JAR file

Hey there,

I'm need to build a SAR file for JBoss deployment, which is essentially the
same as a JAR file, with a different extension (.sar rather than .jar). Can
someone tell me how this can be accomplished?  Thanks!

Brad

-
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: need to build a SAR file not a JAR file

2006-02-02 Thread Ballard, Ken
Brad,

There's a Maven SAR plugin. See:
http://docs.codehaus.org/display/SM/Maven+SAR+plugin. Does this help you?

Thanks,
Ken 

-Original Message-
From: Brad O'Hearne [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 02, 2006 12:25 AM
To: Maven Users List
Subject: need to build a SAR file not a JAR file

Hey there,

I'm need to build a SAR file for JBoss deployment, which is essentially the
same as a JAR file, with a different extension (.sar rather than .jar). Can
someone tell me how this can be accomplished?  Thanks!

Brad

-
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 an internal repository with archetype:create

2006-02-02 Thread Horst-Günther Barzik
1.) I have created an internal repository 

2.) Can deploy an archetype to the repository 

 

If someone else wants to create a project structure using the repository

He needs a reference to that repository (which I guess must be set somehow
in the settings or can use the -DremoteRepositories=).

 

However, I was not able to get the stuff in either case? 

 

How do I have to specify the list?

 

Regards and thanks in advance for support.

 

Günther

 

 



Re: [m2] how do I make the modules use the same version as the parent pom?

2006-02-02 Thread brian . a . yoffe
Does the release plugin update both the parent's version number and the 
child's reference to the parent's version number?

From
Brett Porter <[EMAIL PROTECTED]>
Subject
Re: [m2] how do I make the modules use the same version as the parent pom?
Date
Fri, 23 Dec 2005 00:09:00 GMT
We're working on a cohesive solution in Maven 2.1 that balances out
the principle of least surprise, reproducibility and ease of use.

However, you can use the release plugin with 2.0 to aid in updating
the version after each release.

- Brett

On 12/23/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
> OK, but I still have the version declared in the following tags in each
> module:
>
>
>   com.wamu
>   projects
>   1.0
>
>
> I want to not have to update each module when I increment the version.
>
> This worked fine:
> 
>4.0.0
>com.wamu
>
>projects
>
>
> 

> Thanks
> Mick Knutson
>
> http://www.BASELogic.com
> http://www.MickKnutson.com
>
> MSN Messenger: [EMAIL PROTECTED]
> 

>
> - Original Message -
> From: "Rinku" <[EMAIL PROTECTED]>
> To: "Maven Users List" ; "Mick Knutson"
> <[EMAIL PROTECTED]>
> Sent: Thursday, December 22, 2005 11:20 AM
> Subject: Re: [m2] how do I make the modules use the same version as the
> parent pom?
>
>
> >
> > You can drop the  tag for your module specific pom but you 
will
> > need to have a  setup for your modules but note that you will 
need
> > to specify a  there, something like this :
> >
> > 
> >maven-plugin-parent
> >org.apache.maven.plugins
> >2.0.1
> >  
> >
> > You module should then pick up the version off it if its there's none
> > provided.
> >
> > HTH,
> >
> > Rahul
> >
> >
> > - Original Message -
> > From: "Mick Knutson" <[EMAIL PROTECTED]>
> > To: "Maven Users List" 
> > Sent: Friday, December 23, 2005 8:11 AM
> > Subject: [m2] how do I make the modules use the same version as the 
parent
> > pom?
> >
> >
> > how do I make the modules use the same version as the parent pom?
> >
> >
> > 

> > Thanks
> > Mick Knutson
> >
> > http://www.BASELogic.com
> > http://www.MickKnutson.com
> >
> > MSN Messenger: [EMAIL PROTECTED]
> > 

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

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



Thanks,
Brian Yoffe

This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates



Re: [m202] compilation error in multiproject - dependency not loaded inclasspath? -- user error

2006-02-02 Thread Thomas_Perry






This was a user error.

on the dependency element for servlet-api we had coded jar
instead of jar

Because of this, the servlet-api jar was not added to the compile
classpath, resulting in compile errors.

our fault, and something we will document for our teams.

Thanks
Tom



   
 [EMAIL PROTECTED] 
 am.com
To 
 02/02/2006 09:07  Maven Users List
 AM
cc 
   
 Please respond to Subject 
   "Maven Users[m202] compilation error in 
   List"   multiproject - dependency not   
 <[EMAIL PROTECTED] loadedinclasspath?  
  he.org>  
   
   
   
   
   









hello,

we are running eclipse 3.1.1 and maven2 .0.2 and the maven eclipse plugin
0.0.4

we have a multiproject where a subproject has a dependency on
javax.servlet/servlet-api/2.4

The dependency appears in the Maven2 Dependencies container in eclipse and
the jar is our local repository.

When an install goal is run, a class in the subproject that needs classes
from servlet-api fails
with compilation errors due to missing classes that are present in
servlet-api

When the install goal is run with -X, the servlet-api jar is *not* in the
classpath.

Has anyone seen similar behavior? Any suggestions to correct or debug
further?

Thanks in advance for your help.
Tom




This message is intended for the recipient only and is not meant to be
forwarded or distributed in any other format. This communication is for
informational purposes only.  It is not intended as an offer or
solicitation for the purchase or sale of any financial instrument, or
security, or as an official confirmation of any transaction.  Putnam does
not accept purchase or redemptions of securities, instructions, or
authorizations that are sent via e-mail.   All market prices, data and
other information are not warranted as to completeness or accuracy and are
subject to change without notice.  Any comments or statements made herein
do not necessarily reflect those of Putnam, LLC (DBA Putnam Investments)
and its subsidiaries and affiliates.  If you are not the intended recipient
of this e-mail, please delete the e-mail.

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





 
This message is intended for the recipient only and is not meant to be 
forwarded or distributed in any other format. This communication is for 
informational purposes only.  It is not intended as an offer or solicitation 
for the purchase or sale of any financial instrument, or security, or as an 
official confirmation of any transaction.  Putnam does not accept purchase or 
redemptions of securities, instructions, or authorizations that are sent via 
e-mail.   All market prices, data and other information are not warranted as to 
completeness or accuracy and are subject to change without notice.  Any 
comments or statements made herein do not necessarily reflect those of Putnam, 
LLC (DBA Putnam Investments) and its subsidiaries and affiliates.  If you are 
not the intended recipient of this e-mail, please delete the e-mail.

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



How to skip inherited build goals?

2006-02-02 Thread Michael Böckling

Hi,

is there a way to not execute a goal that was added to the build 
lifecycle in a parent pom?
My issue: by default, all generated Jars are signed, but I don't want 
this for webapps since there are strange performance issues when the 
webapp classes are signed.


Thanks in advance,
   Michael

--
Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel
P: +41 61 226 99 63 - F: +41 61 226 99 69
[EMAIL PROTECTED]; http://www.giniality.com/



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



Build numbering w/ Maven

2006-02-02 Thread Alex Boisvert
Hi,

I would like to know about the options for sharing the Continuum build
number with my underlying Maven1/2 projects.

What I'm trying to do is generate artifacts with the following naming
convention:

myproject-1.0-123.zip

where 1.0 is the version number defined in Maven (e.g. pom.xml), and 123
is the Continuum build number.  Artifacts could be .zip, .jar, .war, etc.

So how to I access the Continuum build number from Maven1/2 or Ant?  Is
is passed in some environment variable?

thanks in advance,
alex



[m202] compilation error in multiproject - dependency not loaded in classpath?

2006-02-02 Thread Thomas_Perry





hello,

we are running eclipse 3.1.1 and maven2 .0.2 and the maven eclipse plugin
0.0.4

we have a multiproject where a subproject has a dependency on
javax.servlet/servlet-api/2.4

The dependency appears in the Maven2 Dependencies container in eclipse and
the jar is our local repository.

When an install goal is run, a class in the subproject that needs classes
from servlet-api fails
with compilation errors due to missing classes that are present in
servlet-api

When the install goal is run with -X, the servlet-api jar is *not* in the
classpath.

Has anyone seen similar behavior? Any suggestions to correct or debug
further?

Thanks in advance for your help.
Tom



 
This message is intended for the recipient only and is not meant to be 
forwarded or distributed in any other format. This communication is for 
informational purposes only.  It is not intended as an offer or solicitation 
for the purchase or sale of any financial instrument, or security, or as an 
official confirmation of any transaction.  Putnam does not accept purchase or 
redemptions of securities, instructions, or authorizations that are sent via 
e-mail.   All market prices, data and other information are not warranted as to 
completeness or accuracy and are subject to change without notice.  Any 
comments or statements made herein do not necessarily reflect those of Putnam, 
LLC (DBA Putnam Investments) and its subsidiaries and affiliates.  If you are 
not the intended recipient of this e-mail, please delete the e-mail.

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



Multi modules project

2006-02-02 Thread Samuel Liard
Hi,

I work in a project cut in a lot of modules. Each
module has a pom.xml, and the modules are dependants
the one between the others.
For Example, 3 module A, B and C.. C is dependant of B
and B is dependant of A.

To day, when I build C, if jar of B is not up to date
with java code, script ask to package B to.

I don't find a good solution with maven to do that.

I use dependency like :

  com.toto
  resource
  1.0
  system
  
   
${basedir}/../MAVEN_RESOURCE/target/resource-1.0.jar
  


It's work to package C... but if B jar is not up to
date (or note package) it not good :( 

What is the best solution with maven ?

Thanks

Samuel

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



RE: [M2] How to only delete .class files ?

2006-02-02 Thread Malcolm Wong Ho

Due to WSAD project directory structure, eg an ejb project has an ejbModule 
that is both the sourceDirectory and outputDirectory.

-Original Message-
From: jerome lacoste [mailto:[EMAIL PROTECTED]
Sent: Thu 2/2/2006 12:54 PM
To: Maven Users List
Subject: Re: [M2] How to only delete .class files ?
 
On 2/2/06, Malcolm Wong Ho <[EMAIL PROTECTED]> wrote:
> How do i remove .class files if the sourceDirectory and outputDirectory are 
> the same ?

Using maven, I don't know... It's not a standard practise. Stick with
the standard.

What do you gain at using the same directory for source and output?


(
On Linux you could do
   find src/main/java -name "*.class" | xargs rm
but I guess you're not on Linux...
)

Jerome

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




DISCLAIMER:
This message may contain information which is confidential, private or 
privileged in nature. If you are not the intended recipient, you may not 
peruse, use, disseminate, distribute or copy this message or file which is 
attached to this message. If you have received this message in error, please 
notify the sender immediately by e-mail, facsimile or telephone and thereafter 
return and/or destroy the original message. 

Any views of this communication are those of the sender except where the sender 
specifically states them to be those of Faritec (Holdings)  Limited (Faritec) 
and/or  any of its subsidiaries including (but not limited to) Faritec 
Enterprise Solutions (Proprietary) Limited, Faritec Strategic IT Services 
(Proprietary) Limited, Faritec Contracting (Proprietary) Limited, Ebis and/or 
any of its subsidiaries.

Please note that the recipient must scan this e-mail and any attached files for 
viruses and the like. While we do everything possible to protect information 
from viruses, Faritec accepts no liability of whatever nature for any loss, 
liability, damage or expense resulting directly or indirectly from the access 
and/or downloading of any files which are attached to this e-mail message.

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

RE: [M2] How to only delete .class files ?

2006-02-02 Thread Giles, Nick
I'd use an ant task like the following:

  
org.apache.maven.plugins
maven-antrun-plugin

  
Delete the class files
generate-sources

  

  

  

  


  run

  

   

Change the directory and phase as appropriate for you.

Nick

-Original Message-
From: Malcolm Wong Ho [mailto:[EMAIL PROTECTED] 
Sent: 02 February 2006 10:49
To: users@maven.apache.org
Subject: [M2] How to only delete .class files ?

How do i remove .class files if the sourceDirectory and outputDirectory
are the same ?

Thank you kindly
 
   This message may contain privileged and/or confidential information.  If 
you have received this e-mail in error or are not the intended recipient, you 
may not use, copy, disseminate or distribute it; do not open any attachments, 
delete it immediately from your system and notify the sender promptly by e-mail 
that you have done so.  Thank you.

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



Re: [M2] How to only delete .class files ?

2006-02-02 Thread jerome lacoste
On 2/2/06, Malcolm Wong Ho <[EMAIL PROTECTED]> wrote:
> How do i remove .class files if the sourceDirectory and outputDirectory are 
> the same ?

Using maven, I don't know... It's not a standard practise. Stick with
the standard.

What do you gain at using the same directory for source and output?


(
On Linux you could do
   find src/main/java -name "*.class" | xargs rm
but I guess you're not on Linux...
)

Jerome

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



[M2] How to only delete .class files ?

2006-02-02 Thread Malcolm Wong Ho
How do i remove .class files if the sourceDirectory and outputDirectory are the 
same ?

Thank you kindly


DISCLAIMER:
This message may contain information which is confidential, private or 
privileged in nature. If you are not the intended recipient, you may not 
peruse, use, disseminate, distribute or copy this message or file which is 
attached to this message. If you have received this message in error, please 
notify the sender immediately by e-mail, facsimile or telephone and thereafter 
return and/or destroy the original message. 

Any views of this communication are those of the sender except where the sender 
specifically states them to be those of Faritec (Holdings)  Limited (Faritec) 
and/or  any of its subsidiaries including (but not limited to) Faritec 
Enterprise Solutions (Proprietary) Limited, Faritec Strategic IT Services 
(Proprietary) Limited, Faritec Contracting (Proprietary) Limited, Ebis and/or 
any of its subsidiaries.

Please note that the recipient must scan this e-mail and any attached files for 
viruses and the like. While we do everything possible to protect information 
from viruses, Faritec accepts no liability of whatever nature for any loss, 
liability, damage or expense resulting directly or indirectly from the access 
and/or downloading of any files which are attached to this e-mail message.


[ANN] FINAL CALL: Java Web User Group / BOF XV / Oracle City of L ondon / Friday 3rd February 2006 @ 19:00

2006-02-02 Thread Pilgrim, Peter

 THIS IS THE FINAL CALL


Dear All

I would like to formally announce that JAVAWUG (Java Web User Group) 
is holding the fifteenth Birds-of-Feather (Meet up) at the 
``Oracle City of London'' offices on Friday, 3rd January 2006.

The meeting will take place in a room with Audio/Visual facilities
between 7-9:30 pm. There will be a series of presentations, Quickies,
inspired by the JavaPolis short presentation format.

The confirmed speakers, in alphabetically order, are:


Duncan Mills
``Java ServerFaces Security''

Emmanuel Okeyere
``RIFE framework''

Peter Pilgrim
``Experiences with AJAX''




Afterwards members can retire to the nearby ``Red Lion'' pub or 
the ``All Bar One'' pub/restaurant for more in depth 
discussion dinner, food and drink ...

The address is:
Oracle City Of London
One South Place
London,
England
EC2M 2RB.

If you would like to attend 

1) Join the JAVAWUG at Google Groups 
http://groups.google.com/group/javawug/manage_members
Send a mail to the list you are attending.
2) Send mail directly to `` duncan dot mills at oracle.com ''
or to me `` peter dot pilgrim at credit-suisse.com ''

Here is some relevant travel information 

By Underground: -

Moorgate: Take the Moorgate East exit, turn right, one block to South 
Place.
Bank: Take the Northern line to Moorgate.
Liverpool Street: Take the Broadgate exit, turn right onto South Place

Map: http://www.oracle.com/global/uk/corporate/locations/citymap.html


The venue has graciously been organised by Duncan Mills of Oracle. 
We all appreciate this generous gift. 

http://www.javawug.com/

http://jroller.com/page/peter_pilgrim

--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse Group - "One Bank",
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497
 peter dot pilgrim at credit-suisse.com 

==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==


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



Re: svn: Error resolving case of

2006-02-02 Thread Alejandro Nicolas Mascarell
Thanks! I'll take a look to them for sure ;)

On 2/1/06, Julian Wood <[EMAIL PROTECTED]> wrote:
> I wrote some docs on this, outlining how you can use SCM in concert
> with maven builds and releases. Maybe there's something in there of
> interest.
>
> http://wiki.ucalgary.ca/page/LearningCommons/Documentation/
> Project_Versioning_-_Best_Practices
>
> The SCM password is actually in your .svn folder in your working copy
> (for subversion), and in your ~/.cvspass for CVS. So once your
> project is successfully checked out, you don't need to specify your
> password anywhere else, AFAIK.
>
> J
>
> On 31-Jan-06, at 7:13 AM, Alejandro Nicolas Mascarell wrote:
>
> > Don't worry. I would like to prepare some docs about the subject
> > (Maven 2
> > and Subversion) for beginners. I'll make you know if  I finally
> > complete it.
> >
> > Another question... where is the SCM user password provided when
> > using SCM
> > url? As from the specification (and checked on
> > svnScmProviderRepository
> > class) the password is not gathered for the URL, as in the case on
> > CVS. I
> > have checked whether the password was taken from settings.xml file
> > but it
> > seems it is not the case.
> >
> > Alex
> >
> > On 1/31/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote:
> >>
> >> I don't think some docs exists somewhere about it, sorry.
> >>
> >> Emmanuel
> >>
> >> Alejandro Nicolas Mascarell a écrit :
> >>> Thanks for your quick answer! ;)
> >>>
> >>> Regarding the space before "-DtabBase", you know... issues of copy &
> >> paste
> >>> from command line. :$
> >>>
> >>> Do you know whether best practices information about Maven 2
> >>> integration
> >>> with SCM exist somewhere?
> >>>
> >>> Regards,
> >>> Alex
> >>>
> >>> On 1/31/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote:
> >>>
>  1- you need a space before "-DtagBase" ;-)
>  2- tagbase is a svn url ant not a maven scm url, so replace your
>  tagBase
>  with
>  svn://localhost/CVS/maven-deployment/tags
> 
>  You can use Nabble to search in ML archives (
>  http://www.nabble.com/forum/Search.jtp?query=maven)
> 
>  Emmanuel
> 
>  Alejandro Nicolas Mascarell a écrit :
> 
> > I would appreciate your help to troubleshoot the following
> > error. I
> 
>  can't
> 
> > figure out why it is not working. I have try in several ways
> > with the
> 
>  same
> 
> > result.
> >
> > Command:
> > mvn release:prepare -
> >
> 
> 
> >> Dproject.scm.developerConnection=scm:svn:svn://localhost/CVS/maven-
> >> deployment/trunk-DtagBase=scm:svn:svn://localhost/CVS/maven-
> >> deployment/tags
> 
> > Result:
> > [INFO] Tagging release with the label 1.0.
> > Provider message:
> > The svn tag command failed.
> > Command output:
> > svn: Error resolving case of
> > 'scm:svn:svn:\localhost\CVS\maven-deployment\tags\1.0'
> >
> > POM.xml fragment:
> >
> >
> >
> >>
>  scm:svn:svn://localhost/CVS/maven-
>  deployment/trunk
> 
> >
> >
> >
> >
> >maven-release-plugin
> >
> >
> > scm:svn:svn://localhost/CVS/maven-deployment/tags > tagBase>
> >
> >
> >
> >
> >
> >
> >
> > Thanks!!!
> >
> > P.S.: is there a way to search in the mailing-list database,
> > appart
> >> from
> > Google? I'm sorry if my question has been previously posted.
> >
> 
> 
>  ---
>  --
>  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]
> >>
> >>
>
> --
> Julian Wood <[EMAIL PROTECTED]>
>
> Programmer/Analyst
> University of Calgary
>
> http://commons.ucalgary.ca
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: [m2] Forking with Surefire

2006-02-02 Thread Ben Gidley
Sorry - ignore that. I have found a solution looking at the surefire code.
The trick is to turn childdelegation off when forking. This means that the
JVM only loads the classes once and it is all good.

e.g.


org.apache.maven.plugins
maven-surefire-plugin

  once
  true
  false


  

  test

  

  
I will submit a patch to the docs to make this clear.

Thanks

Ben


On 2/2/06, Ben Gidley <[EMAIL PROTECTED]> wrote:
>
> Thanks for this - unfortunately even with this setting I am still having
> the same problem it appears to be some interaction between the libraries
> JAXB2 and Surefire is using that even happens when forking is occuring.
>
> I have checked (with -X) and I am definitely running Surefire 1.5.2 which
> is the latest I can see.
>
> The JAXB2 guys think it is likely to be something to do with the way
> surefire is loading classes. Looking at surefire I suspect this could be the
> case as it is using a custom isolated classloader which then loads the
> javax.xml namespace a second time (hence the error).
>
> The percise error is
>
> java.lang.LinkageError: loader constraints violated when linking
> javax/xml/namespace/QName class
> at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.(
> RuntimeBuiltinLeafInfoImpl.java:779)
> at com.sun.xml.bind.v2.model.impl.RuntimeTypeInfoSetImpl.(
> RuntimeTypeInfoSetImpl.java:25)
>
> I am going to investigate - but any hints would be appreciated.
>
> Ben
>
> On 2/2/06, Jason van Zyl <[EMAIL PROTECTED]> wrote:
> >
> > Ben Gidley wrote:
> > > I am having issues with Maven running the unit tests on my project.
> > The main
> > > error is
> >
> > http://maven.apache.org/plugins/maven-surefire-plugin/howto.html
> >
> > For forkMode you can specify "once" or "pertest" which really means per
> > test case. I've added:
> >
> > http://jira.codehaus.org/browse/MSUREFIRE-55
> > and
> > http://jira.codehaus.org/browse/MSUREFIRE-56
> >
> > Sorry about the confusion.
> >
> > > java.lang.LinkageError: loader constraints violated when linking
> > > javax/xml/namespace/QName class
> > > at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl
> > .(
> > > RuntimeBuiltinLeafInfoImpl.java:779)
> > >
> > > Looking at this list I can see a number of people have hit this and
> > the
> > > solution is to fork the JVM for the unit tests. Looking at the
> > surefire
> > > plugin documentation I have added the following to my POM
> > >   
> > > org.apache.maven.plugins 
> > > maven-surefire-plugin
> > > 
> > >   each
> > > 
> > >   
> > >
> > > However this make no difference. I then suspected it may be not in the
> > > released version of the plugin - so I tried using the snapshot by
> > adding
> > > 
> > >   Snapshots
> > >   Snapshots
> > >   http://snapshots.maven.codehaus.org/maven2/ 
> > >
> > >
> > > and forcing the plugin version. This also appears to make no
> > different.
> > >
> > > Looking at the code for the plugin in Subversion for surefire it does
> > appear
> > > it supports forking and this is the way to turn in on. Am I doing
> > something
> > > wrong to make it use the plugin?
> > >
> > > Has anyone got any ideas of how to get round this issue?
> > >
> > > Thanks
> > >
> > > Ben
> > >
> >
> >
> > --
> >
> > jvz.
> >
> > Jason van Zyl
> > jason at maven.org
> > http://maven.apache.org
> >
> > First, the taking in of scattered particulars under one Idea,
> > so that everyone understands what is being talked about ... Second,
> > the separation of the Idea into parts, by dividing it at the joints,
> > as nature directs, not breaking any limb in half as a bad carver might.
> >
> >-- Plato, Phaedrus (Notes on the Synthesis of Form by C. Alexander)
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: Setting up a proxy with maven-proxy

2006-02-02 Thread Tom Joad
For more details , see also

http://docs.codehaus.org/display/MAVENUSER/Using+Maven+in+a+corporate+environment

2006/2/1, Brad O'Hearne <[EMAIL PROTECTED]>:
> Hello,
>
> I would like to set up a remote repository that acts as a proxy to
> iBiblio. I have obtained the Codehaus maven-proxy webapp and wanted
> to experiment with it, but I cannot seem to find any references to
> where to put the configuration file, and what needs to be in the
> configuration file.
>
> Can anyone help me out?
>
> Brad
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: [m2] Forking with Surefire

2006-02-02 Thread Ben Gidley
Thanks for this - unfortunately even with this setting I am still having the
same problem it appears to be some interaction between the libraries JAXB2
and Surefire is using that even happens when forking is occuring.

I have checked (with -X) and I am definitely running Surefire 1.5.2 which is
the latest I can see.

The JAXB2 guys think it is likely to be something to do with the way
surefire is loading classes. Looking at surefire I suspect this could be the
case as it is using a custom isolated classloader which then loads the
javax.xml namespace a second time (hence the error).

The percise error is

java.lang.LinkageError: loader constraints violated when linking
javax/xml/namespace/QName class
at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.(
RuntimeBuiltinLeafInfoImpl.java:779)
at com.sun.xml.bind.v2.model.impl.RuntimeTypeInfoSetImpl.(
RuntimeTypeInfoSetImpl.java:25)

I am going to investigate - but any hints would be appreciated.

Ben

On 2/2/06, Jason van Zyl <[EMAIL PROTECTED]> wrote:
>
> Ben Gidley wrote:
> > I am having issues with Maven running the unit tests on my project. The
> main
> > error is
>
> http://maven.apache.org/plugins/maven-surefire-plugin/howto.html
>
> For forkMode you can specify "once" or "pertest" which really means per
> test case. I've added:
>
> http://jira.codehaus.org/browse/MSUREFIRE-55
> and
> http://jira.codehaus.org/browse/MSUREFIRE-56
>
> Sorry about the confusion.
>
> > java.lang.LinkageError: loader constraints violated when linking
> > javax/xml/namespace/QName class
> > at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl
> .(
> > RuntimeBuiltinLeafInfoImpl.java:779)
> >
> > Looking at this list I can see a number of people have hit this and the
> > solution is to fork the JVM for the unit tests. Looking at the surefire
> > plugin documentation I have added the following to my POM
> >   
> > org.apache.maven.plugins
> > maven-surefire-plugin
> > 
> >   each
> > 
> >   
> >
> > However this make no difference. I then suspected it may be not in the
> > released version of the plugin - so I tried using the snapshot by adding
> > 
> >   Snapshots
> >   Snapshots
> >   http://snapshots.maven.codehaus.org/maven2/
> >
> >
> > and forcing the plugin version. This also appears to make no different.
> >
> > Looking at the code for the plugin in Subversion for surefire it does
> appear
> > it supports forking and this is the way to turn in on. Am I doing
> something
> > wrong to make it use the plugin?
> >
> > Has anyone got any ideas of how to get round this issue?
> >
> > Thanks
> >
> > Ben
> >
>
>
> --
>
> jvz.
>
> Jason van Zyl
> jason at maven.org
> http://maven.apache.org
>
> First, the taking in of scattered particulars under one Idea,
> so that everyone understands what is being talked about ... Second,
> the separation of the Idea into parts, by dividing it at the joints,
> as nature directs, not breaking any limb in half as a bad carver might.
>
>-- Plato, Phaedrus (Notes on the Synthesis of Form by C. Alexander)
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: need to build a SAR file not a JAR file

2006-02-02 Thread Henry S. Isidro

Brad O'Hearne wrote:


Hey there,

I'm need to build a SAR file for JBoss deployment, which is 
essentially the same as a JAR file, with a different extension (.sar 
rather than .jar). Can someone tell me how this can be accomplished?  
Thanks!


Brad

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



There's a SAR plugin in mojo.codehaus --> 
http://mojo.codehaus.org/jboss-sar-maven-plugin/


HTH,
Henry

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