Re: Intro questions

2005-11-24 Thread Emmanuel Venisse
I'll modify build definitions views and obtain a more specific view for ant projects 
(http://jira.codehaus.org/browse/CONTINUUM-472)


Emmanuel

Jeremy Hughes a écrit :

Leaving the POM filename field empty worked for me.

Jeremy

On 11/18/05, Tomislav Stojcevich [EMAIL PROTECTED] wrote:


The same thing happens to me.  I did select add ant project but when I
go to add the build definition it asks me for the pom.  I tried
specifying the build.xml file for the pom and specifying the ant
target in the goal but that doesn't work.

I am using version 1.0.1.


On 11/15/05, Emmanuel Venisse [EMAIL PROTECTED] wrote:


Where did it asked you? Are you sure you choose Add Ant Project in menu?

Emmanuel

Sergio Bossa a écrit :


Hi all,

I've never used Maven but I want to use Continuum with Ant, do I need
to know something about Maven?
Moreover, adding one of my Ant projects, Continuum asked me for a
Maven pom.xml file: why do I need this, if my project is Ant based?

Thanks,
Regards,

Sergio B.

--
Sergio Bossa (http://sbtourist.blogspot.com)
Author and Lead Developer of:
- Montag (http://montag.sourceforge.net)
- QuickNote (http://quicknote.sourceforge.net)








--
tom










Re: lots of samples - how to structure maven tree??

2005-11-24 Thread Edwin Punzalan

Hi,

Yes, you need to give each package a pom with the corresponding packaging.


Mark Hansen wrote:

I've got lots of sample that need to be packaged into lots of little 
WARs, EARs, etc.


My file tree is set up like

base
  src
java
  samples
chap1
  sec1
MyServlet.java
  sec2
 AotherServlet.java
chap2
  sec1
 HelloWorld.java
  sec2
 GoodbyeWorld.java
  maven.xml
  project.xml


How do I use maven to build separate WARs (or EARs or whatever) for
  chap1/sec1
  chap1/sec2
  chap2/sec1
  chap2/sec2

?

Do I need to restructure like this - with lots of individual maven poms?

base
  chap1
sec1
  maven.xml
  project.xml
  MyServlet.java
sec2
   maven.xml
   project.xml
   AnotherServlet.java

 etc.

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: [m2] Is it possible to prevent warnings from a custom repository

2005-11-24 Thread Matt Raible
It is possible to make ibiblio correct, I'm just looking for a
workaround in the meantime. ;-)

I've been entering invalid POM bugs into JIRA as I see them (20+ so
far). However, there might be times where Maven developers and I don't
agree, and it'd be nice to customize the POMs when that happens. 
Hopefully it won't happen that often.

Matt

On 11/24/05, Wim Deblauwe [EMAIL PROTECTED] wrote:
 Is it not possible to make ibibio correct or do you have special needs for
 your pom that others do not have?

 regards,

 Wim

 2005/11/24, Matt Raible [EMAIL PROTECTED]:
 
  I've established my own repository for overriding POMs in ibiblio.
  This seems to work great, but I still get a warning when M2 can't find
  the JAR in my repo.  It still goes to ibiblio and gets the correct
  one, so I'd like to turn off the warning - especially since I'm only
  overriding a few POMs and JARs.  Developers will end up seeing a whole
  bunch of errors like the following.
 
 
  [artifact:dependencies] Downloading: ojb/db-ojb/1.0.3/db-ojb-1.0.3.pom
  [artifact:dependencies] Transferring 0K
  [artifact:dependencies] Downloading: ojb/db-ojb/1.0.3/db-ojb-1.0.3.jar
  [artifact:dependencies] [WARNING] Unable to get resource from repository
  remote
  (http://static.appfuse.org/repository)
  [artifact:dependencies] Downloading: ojb/db-ojb/1.0.3/db-ojb-1.0.3.jar
  [artifact:dependencies] Transferring 1141K
 
  Is it possible to turn off this warning?
 
  Thanks,
 
  Matt
 
  -
  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 disable transitive dependency?

2005-11-24 Thread Igor Bljahhin
Why not? You will declare all dependencies you need by hands, as you
did it in Maven 1. Thus, your project will be protected from changes
in Acegi's pom in public repository.

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



Re: [m2] Is it possible to prevent warnings from a custom repository

2005-11-24 Thread Carlos Sanchez
I don't think you should go down that path, as you will introduce
confusion for your users. Poms in ibiblio have to be suitable for
everybody, any customization needed can be added  to your own pom as
exclusions, overriding,...

On 11/24/05, Matt Raible [EMAIL PROTECTED] wrote:
 It is possible to make ibiblio correct, I'm just looking for a
 workaround in the meantime. ;-)

 I've been entering invalid POM bugs into JIRA as I see them (20+ so
 far). However, there might be times where Maven developers and I don't
 agree, and it'd be nice to customize the POMs when that happens.
 Hopefully it won't happen that often.

 Matt

 On 11/24/05, Wim Deblauwe [EMAIL PROTECTED] wrote:
  Is it not possible to make ibibio correct or do you have special needs for
  your pom that others do not have?
 
  regards,
 
  Wim
 
  2005/11/24, Matt Raible [EMAIL PROTECTED]:
  
   I've established my own repository for overriding POMs in ibiblio.
   This seems to work great, but I still get a warning when M2 can't find
   the JAR in my repo.  It still goes to ibiblio and gets the correct
   one, so I'd like to turn off the warning - especially since I'm only
   overriding a few POMs and JARs.  Developers will end up seeing a whole
   bunch of errors like the following.
  
  
   [artifact:dependencies] Downloading: ojb/db-ojb/1.0.3/db-ojb-1.0.3.pom
   [artifact:dependencies] Transferring 0K
   [artifact:dependencies] Downloading: ojb/db-ojb/1.0.3/db-ojb-1.0.3.jar
   [artifact:dependencies] [WARNING] Unable to get resource from repository
   remote
   (http://static.appfuse.org/repository)
   [artifact:dependencies] Downloading: ojb/db-ojb/1.0.3/db-ojb-1.0.3.jar
   [artifact:dependencies] Transferring 1141K
  
   Is it possible to turn off this warning?
  
   Thanks,
  
   Matt
  
   -
   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: How to disable transitive dependency?

2005-11-24 Thread Carlos Sanchez
Try your custom made poms in another project and you'll find that they
won't work. Will you create a pom for each jar in each project? no
thanks.

poms in the repo are not supposed to change, we're fixing them now
because there're a lot of errors, but our intention is to stop doing
that after some time. poms as jars have to be inmutable.

On 11/24/05, Igor Bljahhin [EMAIL PROTECTED] wrote:
 Why not? You will declare all dependencies you need by hands, as you
 did it in Maven 1. Thus, your project will be protected from changes
 in Acegi's pom in public repository.

 -
 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: RPM Plugin not cleaning its includes

2005-11-24 Thread Sena Gbeckor-Kove
Hi Bob,

No problem, do you want to tell me where you think the problem is and
I can see if I can fix it for you? Can't promise anything as I won't
havea huge amount of time, but just in case.

Regards

On 23/11/05, Allison, Bob [EMAIL PROTECTED] wrote:
 I found the problem.  Now I just need to figure out a solution.  I'll
 let you know when I get this figured out (probably over the weekend).

 -Original Message-
 From: Sena Gbeckor-Kove [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 23, 2005 11:07
 To: Maven Users List
 Subject: Re: RPM Plugin not cleaning its includes


 Hi Bob,

 We are trying to do the following :

  -- Install ${basedir}/src/main/bin/* at /usr/local/amf/bin
 ${basedir}/src/main/bin/*  -- /usr/local/amf/bin

 -- Install ${basedir}/target/*.jar at /usr/local/amf/plugin/core/lib
 ${basedir}/target/*.jar  -- /usr/local/amf/plugin/core/lib

 We are using the following mappings fragment having looked at your
 suggestions regarding the filename elemnt and still the contents of
 the first mapping turn when copying the contents for the second
 mapping.


 mappings
 mapping
 directory/usr/local/amf/bin/directory
 filemode755/filemode
 usernameroot/username
 groupnamesystem/groupname
 sources
 source
 locationsrc/main/bin/location
 includes
 include*/include
 /includes
 excludes
 excludeCVS/exclude
 excludeCVS/*/exclude
 /excludes
 /source
 /sources
 /mapping
 mapping

 directory/usr/local/amf/plugin/core/lib/directory
 filemode755/filemode
 usernameroot/username
 groupnamesystem/groupname
 sources
 source
 locationtarget/location
 includes
 include*.jar/include
 /includes
 excludes
 excludeCVS/exclude
 excludeCVS/*/exclude
 exclude*/*/exclude
 /excludes
 /source
 /sources
 /mapping

 Any ideas?
 Thanks in advance
 Regards



 On 23/11/05, Allison, Bob [EMAIL PROTECTED] wrote:
  Well, I see a couple problems with your configuration.  As I read the
  two mappings, they should do the following:
 
  -- Install ${basedir}/src/main/bin/* at /usr/local (for example,
  ${basedir}/src/main/bin/myprog will be installed at /usr/local/myprog)
 
  -- Install ${basedir}/target/*.jar at /usr/local (for example,
  ${basedir}/target/myprog.jar will be installed at
 /usr/local/myprog.jar)
 
  You are getting the two mappings muddled because they specify the same
  destination.  You will probably almost never need to specify the
  filename parameter.  Instead, the directory parameters should be
  specified as /usr/local/amf/bin and /usr/local/amf/plugin/core/lib.
 
  -Original Message-
  From: Sena Gbeckor-Kove [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, November 23, 2005 08:38
  To: users@maven.apache.org
  Subject: RPM Plugin not cleaning its includes
 
 
  Hi Bob,
 
  It appears that the RPM plugin cumulatively includes the contents of
  includes when dealing wiith mappings. For example, the following 2
  mappings cause thhe contents of the first  ampping, a bunch of scripts
  from the bin directory, to be copied into the next filename/
  specified amf/plugin/core/lib.
 
  Any ideas would be appreciated.
 
  Regards
 
   mappings
  mapping
  directory/usr/local/directory
  filenameamf/bin/filename
  filemode755/filemode
  usernameroot/username
  groupnamesystem/groupname
  sources
  source
  locationsrc/main/bin/location
  includes
  include*/include
  /includes
  excludes
  

Docbook plugin

2005-11-24 Thread Jose Gonzalez Gomez
Hi there,

I have a preliminary version of a Docbook plugin for Maven2. Here is
my typical use case:

I use to write project documentation (at least requirements) using
Unified Process artifacts (Software requirements specification,
actors specification, glossary, risk list, use case
specifications,...). My main objective is to have a lot of small,
manageable and interlinked documents that form the whole documentation
and that can be easily browsed using an Internet browser. To achieve
this I use Docbook articles with cross references between documents
using olink. In order to transform this documents into a browsable
web, you must supply a olink database to the Docbook stylesheets to
enable external link resolution.

The plugin scans existing Docbook files and automatically generates
the olink database using the standard stylesheets. Once the database
is created, transforms every document (no chunking nor toc) using the
provided database. The only requirement for this to work is to use a
predefined schema to build the name of referenced documents (very
easy).

I know this is a very focused use case and implementation, so I would
like to know if there is interest in this to publish it as open
source, and maybe add more requirements and flexibility to it...

Best regards
Jose

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



Re: [M 1.1b1] Maven-Reports: Encoding Problems

2005-11-24 Thread Gisbert Amm

With the described workaround I face another problem:

In some of our sources there is code to replace non-ASCII characters 
like that:


for(int i=0; i  length; i++) {
char c = input.charAt(i);
switch(c) {
  case 'Ä': builder.append(Ae); break;
  case 'ä': builder.append(ae); break;
  case 'Ö': builder.append(Oe); break;
  case 'ö': builder.append(oe); break;
  case 'Ü': builder.append(Ue); break;
  case 'ü': builder.append(ue); break;
  case 'ß': builder.append(ss); break;
  ...
  default:  builder.append(c);
}

When I set the LANG variable to de_DE.utf8, the compiler finds \ufffd 
instead of Ä,ä,Ö,ö,Ü,Ü,ß and stops with a duplicate case label error.


Is there a way to get around this?

Thanks in advance for your help,
Gisbert Amm


Gisbert Amm wrote:
I finally found something I consider a workaround for the checkstyle 
report (I already use the 3.0-SNAPSHOT of the plugin) and the xdocs:


I'v changed the locale settings on my SuSE 9.1 system like that

export LANG=de_DE.utf8
export LC_CTYPE=de_DE.utf8

(setting of LC_CTYPE was necessary aswell)

and set the following Maven properties:

maven.docs.outputencoding=UTF-8
maven.xdoc.locale.default=de_DE.utf8

Now the German umlauts are displayed correctly within the checkstyle 
report and the documents generated out of the xdocs (like index.xml). 
However, other reports like Javadoc, Source Xref and Test Xref still 
suffer from wrong encoded characters.


Regards,
Gisbert Amm

Lukas Theussl wrote:

On Linux you also have to set the system encoding explicitly,
see 
http://maven.apache.org/maven-1.x/reference/plugins/xdoc/faq.html#problems-unicode 


Arnaud HERITIER wrote:


For checkstyle it fixes only the locale.
It doesn't help for the encoding :-(


-Message d'origine-
De : Lukas Theussl [mailto:[EMAIL PROTECTED] Envoyé : mercredi 16 
novembre 2005 00:03


For the checkstyle plugin this should be fixed in the current 
3.0-SNAPSHOT (see http://jira.codehaus.org/browse/MPCHECKSTYLE-39 ), 
but it might still be a problem for other plugins.


Gisbert, which plugins/reports do you have problems with?


--
Gisbert Amm
Softwareentwickler Infrastruktur

WEB.DE GmbH
Amalienbadstraße 41 · D-76227 Karlsruhe
Tel. +49-721-94329-8530 · Fax +49-721-94329-22
[EMAIL PROTECTED] · http://www.web.de/

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



Re: [m2] Bootstrap Maven Source Code does not build on Linux

2005-11-24 Thread Peter A. Pilgrim

Brett Porter wrote:

You have an old surefire plugin, by the looks of it.

I'll file a bug and look into solving this in the bootstrap, but you
can try this:

rm -rf ~/.m2/repository/org/apache/maven/plugins

Sorry for the confusion.

- Brett

On 11/23/05, Peter A. Pilgrim [EMAIL PROTECTED] wrote:


Brett Porter wrote:


There is a message size limit. Please *just* the output of building
maven-core at the end where it fails.

- Brett




====

This solved the problem partially. The bootstrap still failed,
because the process appeared to installed explicitly
to /home/peterp/maven-2.0.1-SNAPSHOT, when in fact I had
set M2_HOME to a completely different directory.

So I applied Ninjitsu Technique, go with the flow in order
to strike, and it worked.


204]  /home/peterp/maven-2.0.1-SNAPSHOT/bin/mvn
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Maven
[INFO]   Maven Model
[INFO]   Maven Local Settings Model
[INFO]   Maven Repository Metadata Model
[INFO]   Maven Artifact
[INFO]   Maven Artifact Manager
[INFO]   Maven Artifact Test Helper Library
[INFO]   Maven Profile Model
[INFO]   Maven Project Builder
[INFO]   Maven Archiver
[INFO]   Maven Plugin Parameter Documenter API
[INFO]   Maven Reporting
[INFO]   Maven Reporting API
[INFO]   Maven Error Diagnostics
[INFO]   Maven Plugin Registry Model
[INFO]   Maven Plugin API
[INFO]   Maven Plugin Descriptor Model
[INFO]   Maven Monitor
[INFO]   Maven Core
[INFO]   Maven Plugin Tools Base POM
[INFO]   Maven Plugin Tools APIs
[INFO]   Maven Plugin Tools for Java
[INFO]   Maven Plugin Tools for Beanshell
[INFO]   Maven Pluggy Simplistic Plugin Generator
[INFO]   Maven Reporting
[INFO]   Maven Script Support Root
[INFO]   Maven Beanshell Mojo Support
[INFO] 


[ERROR] BUILD FAILURE
[INFO] 


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


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


[INFO] Total time:  1 second
[INFO] Finished at: Thu Nov 24 08:37:09 GMT 2005
[INFO] Final Memory: 2M/4M
[INFO] ---

--
Peter Pilgrim
   __ _ _ _
  / //__  // ___// ___/   +  Serverside Java
 / /___/ // /__ / /__ +  Struts
/ // ___// ___// ___/ +  Expresso Committer
 __/ // /__ / /__ / /__   +  Independent Contractor
/___///////   +  Intrinsic Motivation
On Line Resume
   ||
   \\===  `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''

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



Activate inherited profile by default

2005-11-24 Thread Jörg Schaible
Hi,

I miss/did not find the possibility to activate an inherited profile by default.

Use case:
company-master.pom contains profiles for different types of projects (e.g. 
jars, webapps, documentation, ...). The profiles in the pom master define e.g. 
what kind of reports for such a type of project have to be generated. A pom of 
that type should be able to *add* such a master profile to the list of active 
profiles automatically. How can I do this?

- Jörg

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



Re: [m2] install-file question

2005-11-24 Thread Allan Ramirez
Installation of the file and the pom at the same time is already 
available in the SVN.


You can use zip files as your dependency but using zip for  project's 
packaging? I really dont think so, there is no such packaging as zip.


regards,
-allan


Wim Deblauwe wrote:


Is this fix just for installing the pom along the file?

Should I declare the typezip/type in my dependencies on this zip file or
should Maven read the pom of that file so I don't have to declare the type
explicitly?

regards,

Wim

2005/11/24, Allan Ramirez [EMAIL PROTECTED]:
 


Hi Wim,

This is already fix in the SVN

http://docs.codehaus.org/display/MAVENUSER/FAQs for your reference

Wim Deblauwe wrote:

   


Hi,

I have a zip file that I would need to put in my repository. I used the
 


'mvn
   


install:install-file' goal to do that. This works fine, but I expected
 


that
   


there would be a pom file installed along with my file with the correct
data. Should I file a JIRA request for this or am I experiencing a bug?

I then tried to add a pom manually like this:

myzipfile-1.0.0.0.zip
myzipfile-1.0.0.0.pom:

project
modelVersion4.0.0/modelVersion
groupIdmyzipfile/groupId
artifactIdmyzipfile/artifactId
nameMy Very Own Zipfile/name
version1.0.0.0/version
packagingzip/packaging
/project

When I then have a project with a dependency on this zip file, I add a
dependency tag:

dependency
groupIdmyzipfile/groupId
artifactIdmyzipfile/artifactId
version1.0.0.0/version
/dependency

But Maven searches for a jar file, not a zip!

I then tried to update my dependency to this:

dependency
groupIdmyzipfile/groupId
artifactIdmyzipfile/artifactId
version1.0.0.0/version
packagingzip/packaging
/dependency

But then I get:
Unrecognised tag: 'packaging'

Any help on this is highly appriciated!

regards,

Wim





No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.5/177 - Release Date:
 


11/21/2005
   

 



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


   



 




No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.5/177 - Release Date: 11/21/2005
 



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

Re: [m2] Missing properties in schemaexport

2005-11-24 Thread Rubén Barroso
Could you say me how to install  configure it? I can see it in the
plugin matrix, but I'm not able to find the steps to configure it.

Thanks again.

2005/11/24, Edwin Punzalan [EMAIL PROTECTED]:

 Have you tried using the hibernate plugin directly instead of calling
 ant-run to call hibernate ?


 Rubén Barroso wrote:

 Hello, I've been trying to use hibernate plugin in maven 2, but it
 doesn't work me. I've tried to achieve the same goal (schemaexport)
 with the following code:
 
  plugin
   groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
executions
   execution
   phasepackage/phase
   configuration
  tasks
echodialect: ${hibernate.dialect}/echo
taskdef name=schemaexport
  classname=org.hibernate.tool.hbm2ddl.SchemaExportTask
classpath
path 
  refid=maven.dependency.classpath/
/classpath
/taskdef
mkdir dir=target/schema/
schemaexport
quiet=no
text=no
drop=no
delimiter=;

  output=target/schema/create-tables.sql
fileset dir=target/classes 
  includes=**/*.hbm.xml/
/schemaexport
 
   /tasks
 /configuration
 goals
   goalrun/goal
 /goals
   /execution
 /executions
   /plugin
 
 When I execute 'mvn package', it says me that I must set the property
 'hibernate.dialect'. On the other hand, echo works fine!!! Any
 ideas??
 
 Thanks in advance
 
 -
 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] Missing properties in schemaexport

2005-11-24 Thread Edwin Punzalan


Which one are you using?  hibernate-maven-plugin or 
hibernate3-maven-plugin ?




Rubén Barroso wrote:


Could you say me how to install  configure it? I can see it in the
plugin matrix, but I'm not able to find the steps to configure it.

Thanks again.

2005/11/24, Edwin Punzalan [EMAIL PROTECTED]:
 


Have you tried using the hibernate plugin directly instead of calling
ant-run to call hibernate ?


Rubén Barroso wrote:

   


Hello, I've been trying to use hibernate plugin in maven 2, but it
doesn't work me. I've tried to achieve the same goal (schemaexport)
with the following code:

   plugin
groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-antrun-plugin/artifactId
 executions
execution
phasepackage/phase
configuration
   tasks
 echodialect: ${hibernate.dialect}/echo
 taskdef name=schemaexport
   classname=org.hibernate.tool.hbm2ddl.SchemaExportTask
 classpath
 path 
refid=maven.dependency.classpath/
 /classpath
 /taskdef
 mkdir dir=target/schema/
 schemaexport
 quiet=no
 text=no
 drop=no
 delimiter=;
 output=target/schema/create-tables.sql
 fileset dir=target/classes 
includes=**/*.hbm.xml/
 /schemaexport

/tasks
  /configuration
  goals
goalrun/goal
  /goals
/execution
  /executions
/plugin

When I execute 'mvn package', it says me that I must set the property
'hibernate.dialect'. On the other hand, echo works fine!!! Any
ideas??

Thanks in advance

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




 


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


   



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


 



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



Cannot override read-only parameter: classesDirectory in goal: war:war

2005-11-24 Thread jerry . tao
Dear all:
   I met with a problem when create war package. the war plugin in my
pom.xml is

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

 configuration
  warSourceDirectorysrc/java//warSourceDirectory
  warNamexxx/warName
  warSourceDirectorysrc/webapp/warSourceDirectory
  outputDirectorysrc/target/outputDirectory
  classesDirectorysrc/target/classes/classesDirectory
  webappDirectorysrc/webapp/webappDirectory
/configuration

  /plugin


when mvn package, the error message:
[ERROR] BUILD ERROR
[INFO]
-
---
[INFO] Error configuring: org.apache.maven.plugins:maven-war-plugin.
Reason: ERR
OR: Cannot override read-only parameter: classesDirectory in goal: war:war
[INFO]
-


how to solve this problem?
 Thank you!
Regards
Jerry Tao

___
Hactl..Moving forward with you.

Best Air Cargo Terminal - Asia 2005
Air Cargo Terminal of the Year 2002, 2003  2004

Web: http://www.hactl.com

DISCLAIMER :-
The information contained in this message, including any attachment, is
confidential and may also be privileged. The information is intended only
for the person or entity to which it is addressed. Any review,
re-transmission, copying, storage, distribution or other use or disclosure
of this information by persons or entities other than the intended
recipient is prohibited. If you are not the intended recipient, please
contact the sender immediately by return email and delete this message from
your system. Thank you.



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

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



Re: [m2] Missing properties in schemaexport

2005-11-24 Thread Rubén Barroso
I'm using hibernate 3, so I'd like to use that plugin version (thanks
for your support :D)

2005/11/24, Edwin Punzalan [EMAIL PROTECTED]:

 Which one are you using?  hibernate-maven-plugin or
 hibernate3-maven-plugin ?



 Rubén Barroso wrote:

 Could you say me how to install  configure it? I can see it in the
 plugin matrix, but I'm not able to find the steps to configure it.
 
 Thanks again.
 
 2005/11/24, Edwin Punzalan [EMAIL PROTECTED]:
 
 
 Have you tried using the hibernate plugin directly instead of calling
 ant-run to call hibernate ?
 
 
 Rubén Barroso wrote:
 
 
 
 Hello, I've been trying to use hibernate plugin in maven 2, but it
 doesn't work me. I've tried to achieve the same goal (schemaexport)
 with the following code:
 
 plugin
  groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-antrun-plugin/artifactId
   executions
  execution
  phasepackage/phase
  configuration
 tasks
   echodialect: ${hibernate.dialect}/echo
   taskdef name=schemaexport
 
  classname=org.hibernate.tool.hbm2ddl.SchemaExportTask
   classpath
   path 
  refid=maven.dependency.classpath/
   /classpath
   /taskdef
   mkdir dir=target/schema/
   schemaexport
   quiet=no
   text=no
   drop=no
   delimiter=;
   
  output=target/schema/create-tables.sql
   fileset dir=target/classes 
  includes=**/*.hbm.xml/
   /schemaexport
 
  /tasks
/configuration
goals
  goalrun/goal
/goals
  /execution
/executions
  /plugin
 
 When I execute 'mvn package', it says me that I must set the property
 'hibernate.dialect'. On the other hand, echo works fine!!! Any
 ideas??
 
 Thanks in advance
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

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



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



Re: [m2] abstract tests - depending on tests from other projects

2005-11-24 Thread Wim Deblauwe
Found the answer here:
http://maven.apache.org/guides/mini/guide-attached-tests.html

thank you however you are that wrote that piece of documentation,

regards,

Wim

2005/11/23, Wim Deblauwe [EMAIL PROTECTED]:

 Hi,

 I'm looking at bug http://jira.codehaus.org/browse/MNG-932 and it shows it
 is solved, but where is the documentation to use it? I tried
 http://maven.apache.org/plugins/maven-surefire-plugin/index.html, but
 nothing is there. Anybody got an example of how to do this or a link to some
 documentation?

 regards,

 Wim



RE: [M1] Maven with Websphere Application Developer anyone?

2005-11-24 Thread Weston, Toby
Hey folks,

Looking at this more, when I setup a web project in WSAD/RAD I'll set the
build path to include MAVEN_REPO\foo.jar (extending the MAVEN_REPO variable
which points to my local repository). I then tick the box for foo.jar in the
'Order and Export' window thinking this will export the jar's in the
WEB-INF\lib folder.

It doesn't!

Anyone got any ideas how you can point the dependancies to the local
repository but still export them under WEB-INF\lib? This is important
because when I deploy to the server from within Websphere it doesn't include
the JARs. Nice. Otherwise, I'm forced to copy the JARs in the lib folder and
not take advantage of the local repository. 

Thanks,
Toby

Weston, Toby wrote:
 Thanks,
 
 That's the kind of thing I was thinking, how did you handle
 dependencies for your web apps like the servlet API etc, I'm assuming
 you'd set these up in a local repo (as in copy key JARs from
 Websphere\runtimes\base_v51 or whatever)?   
 
 Cheers,
 Toby
 
 -Original Message-
 From: Dion Gillard [mailto:[EMAIL PROTECTED]
 Sent: 22 November 2005 21:38
 To: Maven Users List
 Subject: Re: [M1] Maven with Websphere Application Developer anyone?
 
 We have several projects using WSAD and Maven 1.x
 
 Developers typically code and test from inside of WSAD and
 CruiseControl handles the continuous integration. 
 
 We stick to WSAD's project structure and customise Maven with
 properties to make them compatible. 
 
 We've got:
 EARs
 WARs
 JARs
 Web Code (goes into WEB-INF/lib of the WAR)
 
 and typically a project to manage integration testing.
 
 HTH,
 
 On 11/23/05, Weston, Toby [EMAIL PROTECTED] wrote:
 Hi Folks,
 
 Is anyone using Maven based structures (in particular J2EE ones like
 webapps) with Websphere Application Developer (WSAD) or Rational
 Application Developer? 
 
 I was just after any horror/success stories and if you can make the
 project structure co-exist in harmony.
 
 Thanks in advance,
 Toby
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 --
 http://www.multitask.com.au/people/dion/
 You are going to let the fear of poverty govern your life and your
 reward will be that you will eat, but you will not live. - George
 Bernard Shaw  
 
 -
 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: [RFC] webstart plugin (m2)

2005-11-24 Thread Geoffrey



jerome lacoste wrote:

The m2 webstart plugin is today usable for small use cases. It could
be improved.

This is a RFC for all (potential) users of the m2 webstart plugin.

Are you a webstart user? Could you describe us your use cases?

* do you deploy webstart on static pages?

Yes, in one use case we just ftp them to a non-java webserver.
In another however, we throw them in a war and deploy that war which 
uses tee jnlp servlet to dynamically insert the $$codebase.

* which JDK do you support?

1.5

* do you use native libraries?

no

* do you localize your jnlp file? If so, at which phase of the delivery?

no

* do you deploy multiple webstart apps at once? (multiple versions
of the same app, multiple jnlp files, ...). What differentiates them?

not yet

* do you want pack200 to work?

initially not, but it might be handy for future releases.
Delta support is another thing for the long run wish list.

* do you want to use the jnlp servlet?

Yes, most definitly.
It's feature to inject the codebase dynamically is every important.

* missing any feature from the current m2 webstart plugin config?
(sending us a jnlp file would be great)
I haven't tested yet, but there were to things annoying in the m1 jnlp 
version:
- If a jar was already signed (for example acegi-security-0.9.0.jar by 
the acegi project leader), it just added our signing.
This might look like the right thing to do, but it should be possible to 
remove the original signing, so the user doesn't haven to accept 2 
signings. Actually java webstart 1.5 has a bug that it can't handle 2 
signings of a jar ... so we are making unsigned version of acegi.
- A war project should be able to depend the result of a jnlp project 
and the war plugin should be able to copy the jnlp in the webapp root or 
a subdirectly (preferable default jnlp subdirectory?). This actually 
means there should be a jnlp type like there is a jar, war, ejb, ear, 
... type...




Look at http://docs.codehaus.org/display/MOJO/Webstart+Plugin for more
information and an updated list of questions.

Thanks for your help!

Cheers,

Jerome


--
With kind regards,
Geoffrey De Smet


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



Re: [RFC] webstart plugin (m2)

2005-11-24 Thread Jose Gonzalez Gomez
2005/11/24, jerome lacoste [EMAIL PROTECTED]:
 The m2 webstart plugin is today usable for small use cases. It could
 be improved.

 This is a RFC for all (potential) users of the m2 webstart plugin.

 Are you a webstart user? Could you describe us your use cases?

 * do you deploy webstart on static pages?
Yes
 * which JDK do you support?
1.5
 * do you use native libraries?
No
 * do you localize your jnlp file? If so, at which phase of the delivery?
No
 * do you deploy multiple webstart apps at once? (multiple versions
 of the same app, multiple jnlp files, ...). What differentiates them?
 * do you want pack200 to work?
Not specially
 * do you want to use the jnlp servlet?
Not specially
 * missing any feature from the current m2 webstart plugin config?
 (sending us a jnlp file would be great)
Haven't tried it yet, I'll give it a shot as soon as I have some spare time

 Look at http://docs.codehaus.org/display/MOJO/Webstart+Plugin for more
 information and an updated list of questions.

 Thanks for your help!

Thanks to you !!

Best regards
Jose

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



Configuring test-jar

2005-11-24 Thread Jörg Schaible
Hello,

accoring to http://maven.apache.org/guides/mini/guide-attached-tests.html it is 
possible to create an artifact from the tests. In my case I do not want to 
include anything, since I have a test kit *and* unit tests and I want to 
include only the test kit. Since the main artifact and the test kit have 
circular dependencies by nature I cannot factor them out into an own project. 
http://maven.apache.org/plugins/maven-jar-plugin/test-jar-mojo.html seems not 
to offer any configuration possibility for this.

- Jörg

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



[m2] finalName not taken into account in install

2005-11-24 Thread Wim Deblauwe
Hi,

when I set finalName/ in my pom.xml, the install plugin does not take this
name into account.

Just for testing I added finalNametest.jar/finalName to the pom.xml of a
custom plugin of mine. When doing 'mvn install', I get this:

[INFO] Installing
Y:\wimd_test_vob\modules\maven-plugins\maven-nmake-plugin\target\test.jar.jar
to C:\Documents and
Settings\WIMD\.m2\repository\com\barcoview\mavenplugin\maven-nmake-plugin\1.0-SNAPSHOT\maven-
nmake-plugin-1.0-SNAPSHOT.jar

I was hoping it would install to the directory it does, but as test.jar.

regards,

Wim


unable to download surefire plugin

2005-11-24 Thread Edwin Punzalan


In case any of you get an error similar to this:

[INFO] Failed to resolve artifact. 
required artifacts missing:  
   maven-surefire-plugin:maven-surefire-plugin:jar:1.4  
   maven-surefire-plugin:surefire-booter:jar:1.4 

for the artifact:  
   org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.0 

from the specified remote repositories:  
   central (http://repo1.maven.org/maven2)



please delete the pom specified below from from your local repository:
   
plugins/org/apache/maven/plugins/maven-surefire-plugin/2.0-alpha-3/maven-surefire-plugin-2.0-alpha-3.pom


so mvn can download the fixed pom.


I apologize for the erroneous pom in advance.



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



Re: [m2] commons-io 1.1 POM invalid

2005-11-24 Thread David Sag

Thanks Paul - I have xposted to that
jira too for completeness.

Kind regards,
Dave Sag 




 

Paul Spencer [EMAIL PROTECTED] wrote
on 23-11-2005 16:29:49:

 David,
 Below is a link to the Maven Evangelism JIRA project.
  http://jira.codehaus.org/browse/MEV
 
 Paul Spencer
 
 David Sag wrote:
  Snap! I just filed a jira issue on this about 20 mts ago - could
not find 
  any special 'evangelism' jira however. I did look for it tho.
  
  http://jira.codehaus.org/browse/MNG-1668
  
  Kind regards,
  Dave Sag 
  
  
  
  
  
  
  Wim Deblauwe [EMAIL PROTECTED] wrote on 23-11-2005
15:33:49:
  
  
 Best is to file in bug in Maven Evangilsm JIRA
 
 2005/11/23, Richard Allen [EMAIL PROTECTED]:
 
 I'm not sure if this is where this problem should be noted,
but the 
  
  POM
  
 for commons-io 1.1 is invalid because the closing dependencies
tag is
 mispelled as /dependecies.
 
 Richard Allen
 
 -
 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]
 


[m2] custom plugin parameters on site?

2005-11-24 Thread Wim Deblauwe
Hi,

The site's of the plugins of Maven have a page with an overview of the goals
and the parameters of the plugin. How is this generated? I looked at
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html to
find this, but I could not find that info there.

regards,

Wim


RE: unable to download surefire plugin

2005-11-24 Thread Jörg Schaible
Edwin Punzalan wrote on Thursday, November 24, 2005 11:19 AM:

 In case any of you get an error similar to this:
 
 [INFO] Failed to resolve artifact.
 required artifacts missing:
 maven-surefire-plugin:maven-surefire-plugin:jar:1.4
 maven-surefire-plugin:surefire-booter:jar:1.4
 
 for the artifact:
 org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.0
 
 from the specified remote repositories:
 central (http://repo1.maven.org/maven2)
 
 
 please delete the pom specified below from from your local repository:
 
 plugins/org/apache/maven/plugins/maven-surefire-plugin/2.0-alp
 ha-3/maven-surefire-plugin-2.0-alpha-3.pom
 
 so mvn can download the fixed pom.
 
 
 I apologize for the erroneous pom in advance.

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

;-)

- Jörg

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



Re: unable to download surefire plugin

2005-11-24 Thread Edwin Punzalan

:D

I know... very handy.  :D


Jörg Schaible wrote:


Edwin Punzalan wrote on Thursday, November 24, 2005 11:19 AM:

 


In case any of you get an error similar to this:

[INFO] Failed to resolve artifact.
required artifacts missing:
   maven-surefire-plugin:maven-surefire-plugin:jar:1.4
   maven-surefire-plugin:surefire-booter:jar:1.4

for the artifact:
   org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.0

from the specified remote repositories:
   central (http://repo1.maven.org/maven2)


please delete the pom specified below from from your local repository:

plugins/org/apache/maven/plugins/maven-surefire-plugin/2.0-alp
ha-3/maven-surefire-plugin-2.0-alpha-3.pom

so mvn can download the fixed pom.


I apologize for the erroneous pom in advance.
   



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

;-)

- Jörg

-
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] maven-war-plugin (questions)

2005-11-24 Thread Olivier Lamy
Hi,
Is there someone else interested by this ?
Or I just to report my hack to in own/company maven-war-plugin ?
Thanks,
- Olivier

-Message d'origine-
De : Olivier Lamy [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 23 novembre 2005 18:17
À : Maven Users List
Objet : [m2] maven-war-plugin (questions)


Hi all,
I have some trouble with the war plugin.
With the following source structure :
src/main/web/css (css files)
src/main/web/scripts (javascritpts files)
src/main/web/jsp (jsp files)
src/main/html (static html content)

With the following configuration :
warSourceDirectory
implementation=java.io.File${basedir}/src/main/web/warSourceDirector
y
webXml${basedir}/src/main/resources/war/web.xml/webXml
webappDirectory
implementation=java.io.File${basedir}/webappdir/OTAStats/webappDirec
tory

The generated webapp is :
${basedir}/webappdir/OTAStats/css (ok)
${basedir}/webappdir/OTAStats/scripts (ok)
${basedir}/webappdir/OTAStats/jsp (not good my index.jsp is not in the
correct directory) ${basedir}/webappdir/OTAStats/html (not good too)

My proposal is to add in the mojo (AbstractWarMojo) :
jspSourceDirectory/jspOutputDirectory and the same for css, scripts and
html.

Note in an other use case, the html content is provided by an other
artifact.

Furthermore, I didn't find any way to add resources (as struts-config
files and so on) in the generated WEB-INF directory. maybe, I didn't
search enough ;-)

If this doesn't exists, I propose to add something :
webInfContentFolders
  webInfContentFolder
implementation=java.io.Filesrc/main/resources/struts/webInfContentFo
lder
  webInfContentFolder
implementation=java.io.Filesrc/main/resources/tiles/webInfContentFol
der
/webInfContentFolders

I have created the issue : http://jira.codehaus.org/browse/MNG-1669
Let me know if this interest some because It's easy to implement and I
can provide a patch.

Thanks,
- Olivier



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 electronique et tous les fichiers joints ainsi que  les
informations contenues dans ce message ( ci apres le message ), sont
confidentiels et destines exclusivement a l'usage de la  personne a
laquelle ils sont adresses. Si vous avez recu ce message par erreur,
merci  de le renvoyer a son emetteur et de le detruire. Toutes
diffusion, publication, totale ou partielle ou divulgation sous quelque
forme que se soit non expressement autorisees de ce message, sont
interdites.
** 


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



When I will be able to try out A Maven 2.x plug-in for the Eclipse IDE

2005-11-24 Thread Miks Rozenbergs

Hello!

I'm looking for options to integrate/synchronize Maven's POM with 
Eclipse project configuration files. Because currently developer would 
need to maintain all dependencies in two places -- using Eclipse UI to 
effectively update .classpath, .project, etc. and using text editor to 
duplicate the same dependency information in Maven's pom.xml.


The Maven 2.x plug-in for the Eclipse IDE project 
(http://jira.codehaus.org/secure/BrowseProject.jspa?id=11093) sounds to 
be something in that direction, but unfortunately I can't find any 
design outline what exactly it's going to do. Where can I get that? or 
may be even hold on some alpha version?


Regards,
Miks Rozenbergs


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



Re: unable to download surefire plugin

2005-11-24 Thread Marcel Schutte
I'm getting this error, but your proposed solution can't be right. I've
cleaned my home/.m2/repository and started all over again with the
steps from the getting started guide. During the mvn test step I get
the error you mention.

When I check home/.m2/repository there is no subdir named plugins.
The surefire plugin is located under
org/apache/maven/plugins/maven-surefire-plugin/2.0/.
The pom for that version references a groupId maven-surefire-plugin and
artifacts maven-surefire-plugin and surefire-booter, both version 1.4.
These are not available on
ibiblio. There are several files with a lastmodified of 24/11/2005.

Regards,
Marcel Schutte

--- Edwin Punzalan [EMAIL PROTECTED] wrote:

 
 In case any of you get an error similar to this:
 
 [INFO] Failed to resolve artifact. 
 required artifacts missing:  
 maven-surefire-plugin:maven-surefire-plugin:jar:1.4  
 maven-surefire-plugin:surefire-booter:jar:1.4 
 
 for the artifact:  
 org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.0 
 
 from the specified remote repositories:  
 central (http://repo1.maven.org/maven2)
 
 
 please delete the pom specified below from from your local
 repository:
 

plugins/org/apache/maven/plugins/maven-surefire-plugin/2.0-alpha-3/maven-surefire-plugin-2.0-alpha-3.pom
 
 so mvn can download the fixed pom.
 
 
 I apologize for the erroneous pom in advance.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




__ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs

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



Re: [m2] delicious bookmarks plugin comments

2005-11-24 Thread Ashley Williams

Hi Brett,

I thought I'd tackle the problem the other way round - provide the  
plugin
so it's there to play with and then maybe uses will become apparent,  
or not.


Just wondering where a good place to put it would be - is there a  
sandbox

for the sandbox??

My usage thoughts are:

* maven creates and deploys website
* website contains bookmarks
* delicious manages those bookmarks

So maybe when you join a project you have access to the project  
delicious
account and the various links are named and tagged in a standard  
maven way.

This would make it easier to find your way around any new project.

- Ashley

On 21 Nov 2005, at 21:59, Brett Porter wrote:


Sounds cool, but also can't think of a use right now :)

Most likely it would take the form of a report, listing bookmarks for
a given tag... will give it some more thought as to whether that might
be useful or not.

- Brett

On 11/22/05, Ashley Williams [EMAIL PROTECTED] wrote:

(hammer looks for nail)

Hi,

Just trying to find out if anybody would find it useful to have a
maven delicious bookmarks plugin. I've created a java module that
allows me to access various delicious functionality at the command
line - originally because I wanted a way to export my Safari
bookmarks, which are several hundred in number - and so thought I'd
wrap it into a maven plugin.

But after racking my brains I realized I couldn't think of a single
reason to mavenize this code - so just wondering if anyone might have
any bright ideas.

Not expecting much, but just wanted to be sure before I possibly
abandon the idea.

Thanks
- Ashley

-
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: use of ArtifactHandler

2005-11-24 Thread Nigel Magnay
I think the component.xml is correct (at end) - it certainly looks the
same as the plexus examples.

My project that uses this plugin works entirely correctly, *unless* it
is a part of a multiproject build, in which case it uses the wrong
extension. I don't know why this would be the case unless I've missed
something?

In same directory:
W:\kms\dev\apps\kmsmvn install
[INFO] Scanning for projects...
[INFO] 

[INFO] Building KMS Application Code
[INFO]task-segment: [install]
[INFO] 

[INFO] [cargo2:uberwar]
[INFO] [install:install]
[INFO] Installing W:\1244 - Knowledge Management System
(KMS)\dev\apps\kms\target\kms-2.0-SNAPSHOT.war to C:\Documents and
Settings\nig
el.magnay\.m2\repository\com\cswgroup\kms\kms\2.0-SNAPSHOT\kms-2.0-SNAPSHOT.war
[INFO] 

[INFO] BUILD SUCCESSFUL
[INFO] 

[INFO] Total time: 1 minute 9 seconds
[INFO] Finished at: Thu Nov 24 11:46:53 GMT 2005
[INFO] Final Memory: 3M/6M
[INFO] 


As a part of a multiproject:

[INFO] 

[INFO] Building KMS Application Code
[INFO]task-segment: [install]
[INFO] 

[INFO] [cargo2:uberwar]
[INFO] [install:install]
[INFO] Installing W:\1244 - Knowledge Management System
(KMS)\dev\apps\kms\target\kms-2.0-SNAPSHOT.war to C:\Documents and
Settings\nig
el.magnay\.m2\repository\com\cswgroup\kms\kms\2.0-SNAPSHOT\kms-2.0-SNAPSHOT.uberwar


Config of plugin:
component-set
  components
component
  roleorg.apache.maven.lifecycle.mapping.LifecycleMapping/role
  role-hintuberwar/role-hint
  
implementationorg.apache.maven.lifecycle.mapping.DefaultLifecycleMapping/implementation
  configuration
phases
  package
org.codehaus.cargo.maven2:cargo-maven2-plugin:uberwar
  /package
  
installorg.apache.maven.plugins:maven-install-plugin:install/install
  
deployorg.apache.maven.plugins:maven-deploy-plugin:deploy/deploy
/phases
  /configuration
/component

component
  roleorg.apache.maven.artifact.handler.ArtifactHandler/role
  role-hintuberwar/role-hint
  
implementationorg.apache.maven.artifact.handler.DefaultArtifactHandler/implementation
  configuration
typeuberwar/type
 extensionwar/extension
packaginguberwar/packaging
  /configuration
/component
  /components
/component-set

On 11/23/05, Brett Porter [EMAIL PROTECTED] wrote:
 I'm losing track of this in all the bits and pieces as to what you really 
 have.

 I'd suggest looking at the Plexus plugin and comparing the
 components.xml to your own:
 http://svn.plexus.codehaus.org/trunk/plexus-maven-plugin/

 HTH,
 Brett

 On 11/24/05, Nigel Magnay [EMAIL PROTECTED] wrote:
  Ah - I have found out why I'm having trouble - my configuration looks like
 
  configuration
  extensionwar/extension
  typeuberwar/type
/configuration
 
  This works correctly when I build the project that uses the plugin.
  However, if the project that uses the plugin is built as a part of a
  multiproject build, it fails, using the (incorrect) extension of
  uberwar again. Also in the trace I get
  [ERROR] Nonexistent component:
  org.apache.maven.lifecycle.mapping.LifecycleMappinguberwar
 
  Which seems to not be correct, because it must have read this mapping
  in order to execute the plugin (which it does, because I can see this
  in the output that it is calling my plugin correctly.
 
  Is this a bug, or is there something else I need to set ?
 
 
  On 11/18/05, Brett Porter [EMAIL PROTECTED] wrote:
   As I said, your type should be uberwar - not war (it needs to match
   the role-hint, as
   stated in the docs).
  
   On 11/18/05, Nigel Magnay [EMAIL PROTECTED] wrote:
I have an 'uberwar' mojo; it's components.xml has a lifecyclemapping
and an artifacthandler definition, both with the role-hint of uberwar.
   
My project that uses this mojo has a pom.xml with
packaginguberwar/packaging
   
The lifecycle is working correctly, my mojo is being called in the
packaging step. It does a getArtifact().setFile() correctly - the
package should be have an extension of .war.
   
The components.xml for the mojo has the configuration that states
extensionwar/extension. However, when the install plugin runs, it
copies artifact.war into the repository as artifact.uberwar
   
Attaching a debugger seems to show that when the installer determines
the 

Re: EJB with Maven2

2005-11-24 Thread Stephane Nicoll
Hi,

We already had this discussion quite a while ago. You need to specify the
type since you could perfectly have an artifiact with the same
group/artifact IDs and a different type.

I agree things would be easier if maven would guess, but less safe as well.

Hope it helpes,
Stéphane

On 11/24/05, Duane Homick [EMAIL PROTECTED] wrote:

 Thanks Henry and Alex for the help.  Based on your suggestions, I was
 able to get this setup and running in JBoss with very few further
 complications.

 However, there was one complication that I had when defining my ear
 project.  I setup a dependency on the ejb-jar project which in turn
 created a dependency on the jar utility project.  However, the
 application.xml file did NOT contain any modules in it.  It wasn't until
 I set the dependency/type to ejb for my dependency on the ejb-jar file
 that it was able to realize it needed to add an ejb-module to my
 application.xml.  Is this a bug?  I figured Maven would be able to
 determine the dependency type itself without needing me to specify the
 type explicitly.

 Other than that, it works like a charm.  Thanks for the help!

 -Original Message-
 From: Henry Isidro [mailto:[EMAIL PROTECTED]
 Sent: November 23, 2005 10:15 PM
 To: Maven Users List
 Subject: Re: EJB with Maven2

 Alexandre Poitras wrote:

 I think he also needs to add manifest entries so the ejb jar can loads
 class from the other jar. If you don't do that your A project won't be
 in your B project class path.
 
 
 
 Yup you're right there...I didn't mention it anymore since you already
 said something about it. Anyway, hope this clears things up.

 Regards,
 Henry

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




--
.::You're welcome ::.


m2:beginner How to get a list of the project src files within a mojo

2005-11-24 Thread karthik gurumurthy
Hi All,

I would like to get access to all the src files (taking into consideration
the includes and excludes) in a mojo.
I typically need a list from which i wish to construct another list of File
Objects.
I mean somethign similar to ant's DirectoryScanner (hopefulyl with all the
excludes and includes considered).

How can i inject it as a Mojo attribute?

Please guide me.

thanks


Re: When I will be able to try out A Maven 2.x plug-in for the Eclipse IDE

2005-11-24 Thread Kees de Kooter
Did you try running the eclipse:eclipse goal? See
http://maven.apache.org/plugins/maven-eclipse-plugin/

I think this does exactly what you want.

cheers,
Kees

On 11/24/05, Miks Rozenbergs [EMAIL PROTECTED] wrote:
 Hello!

 I'm looking for options to integrate/synchronize Maven's POM with
 Eclipse project configuration files. Because currently developer would
 need to maintain all dependencies in two places -- using Eclipse UI to
 effectively update .classpath, .project, etc. and using text editor to
 duplicate the same dependency information in Maven's pom.xml.

 The Maven 2.x plug-in for the Eclipse IDE project
 (http://jira.codehaus.org/secure/BrowseProject.jspa?id=11093) sounds to
 be something in that direction, but unfortunately I can't find any
 design outline what exactly it's going to do. Where can I get that? or
 may be even hold on some alpha version?

 Regards,
 Miks Rozenbergs


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



[m2] Why does DefaultModelInheritanceAssembler ignore relativePath../relativePath or module...module definitions ?

2005-11-24 Thread Christian Schulte

Hi,

I have severe problems with the flat project layout as described at 
http://maven.apache.org/guides/mini/guide-ide-eclipse.html at the end 
of the site. As it seems inheritance is not supporting the relative path 
and modules settings. Somewhere in here


http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/inheritance/DefaultModelInheritanceAssembler.java?view=markup

maven 2 definetely ignores the values of the parent modules 
definitions during building e.g. SCM-URLs. My question is, if there is 
any reason why this is done that way. It seems straightforward to change 
this class so that SCM-URLs and URLs in general would be inherited 
correctly e.g. use the value of the parent's module.../module 
definition instead of just adding the child's artifactID to the end of 
the parent's URLs.


So what is the reason why the values of the modules.../modules are 
ignored completely ? Would it break anything if only this class 
(DefaultModelInheritanceAssembler) would honour the 
modules.../modules definitions of the parent ?


--
Christian


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



Re: unable to download surefire plugin

2005-11-24 Thread Brett Porter
Actually, the instructions were incomplete, you need to remove:

org/apache/maven/plugins/maven-surefire-plugin
and
surefire

from the local repository. The correction was only finally completed a
short time ago.

- Brett

On 11/24/05, Marcel Schutte [EMAIL PROTECTED] wrote:
 I'm getting this error, but your proposed solution can't be right. I've
 cleaned my home/.m2/repository and started all over again with the
 steps from the getting started guide. During the mvn test step I get
 the error you mention.

 When I check home/.m2/repository there is no subdir named plugins.
 The surefire plugin is located under
 org/apache/maven/plugins/maven-surefire-plugin/2.0/.
 The pom for that version references a groupId maven-surefire-plugin and
 artifacts maven-surefire-plugin and surefire-booter, both version 1.4.
 These are not available on
 ibiblio. There are several files with a lastmodified of 24/11/2005.

 Regards,
 Marcel Schutte

 --- Edwin Punzalan [EMAIL PROTECTED] wrote:

 
  In case any of you get an error similar to this:
  
  [INFO] Failed to resolve artifact.
  required artifacts missing:
  maven-surefire-plugin:maven-surefire-plugin:jar:1.4
  maven-surefire-plugin:surefire-booter:jar:1.4
 
  for the artifact:
  org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.0
 
  from the specified remote repositories:
  central (http://repo1.maven.org/maven2)
  
 
  please delete the pom specified below from from your local
  repository:
 
 
 plugins/org/apache/maven/plugins/maven-surefire-plugin/2.0-alpha-3/maven-surefire-plugin-2.0-alpha-3.pom
 
  so mvn can download the fixed pom.
 
 
  I apologize for the erroneous pom in advance.
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 




 __
 Start your day with Yahoo! - Make it your home page!
 http://www.yahoo.com/r/hs

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



[m2] xdoclet for hibernate 3 with JDK 1.5

2005-11-24 Thread Wim Deblauwe
Hi,

anybody got the combination of xdoclet with hibernate 3 and jdk 1.5 working?

I found that the xdoclet-maven-plugin (version alfa2 - seen this from a
post, the website still shows alfa1) supports hibernate 3 (since it uses
XDoclet 1.2.3), but I get errors because of 1.5 specific syntax. I then
found this mail in the archives.

=-=-=-
The problem related to the XDoclet plugin that was producing a nasty
exception when launched was due to the fact that the alpha-1.0 version was
just not working.

This version is the one referenced as example on Codehaus website and is
NOT WORKING for ejbDoclet task (I don't know for other ones).

Anyway, an Alpha-2.0 version has also been released and just changing this
makes the ejbDoclet plugin work.

Also, if you have problems using this plugin with Java 1.5, know that the
XJavadoc version used in this plugin (1.1) doesn't work with Java 1.5
syntax.  You will have to change this dependency to XJavadoc 1.5 in order
to have XDoclet work with this specific syntax.

Hope it will help somebody else,

Jérôme

P.S: Thank you all for the reply sent to me while searching for a solution
=-=-=-=-

However, I could not find XJavadoc version 1.5. Looking at
http://xdoclet.sourceforge.net/xjavadoc/, it shows version 1.1 and not 1.5.

Any hints are welcome.

regards,

Wim
PS: Another remark: the list of dependencies from the xdoclet plugin is very
long! Is that really needed?


Maven proxy

2005-11-24 Thread Cservenak Tamas
Hi,

Id' like to announce an ongoing effort to make a usable caching-proxy
engine useful for corporate (or group) proxying of Maven repositories
(Yes, i'm aware of maven-proxy on Codehaus, but alternatives makes world
beautiful).

We are using this current release in-house already to serve our
artifacts locally, to server commercial and other non-ibilio-compatible
artifacts and to reduce outbound traffic.

Preview downloads and project site can be  found here:
https://is-micro.myip.hu/projects/ismicro-commons/proximity/

Proximity in action (runs on Tomcat 5.5, proxied by Apache 2):
https://is-micro.myip.hu/proximity/


Notes:
1. The licence will be changed from current dummy licence to Apache v2
licence.
2. To test it:

Download SNAPSHOT WAR from here
https://is-micro.myip.hu/projects/ismicro-commons/deploy/proximity/

unpack it, configure it (at least the /WEB-INF/proximity.properties with
valid EXISTING directories), and deploy it.

I would like to hear comments, ideas. Anybody interested? Anybody to
jump in?

Thanks,
Tamas


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

Re: Maven proxy

2005-11-24 Thread dan tran
Please tell me it will work with Tomcat 4.x? ;-)

-D


On 11/24/05, Cservenak Tamas [EMAIL PROTECTED] wrote:

 Hi,

 Id' like to announce an ongoing effort to make a usable caching-proxy
 engine useful for corporate (or group) proxying of Maven repositories
 (Yes, i'm aware of maven-proxy on Codehaus, but alternatives makes world
 beautiful).

 We are using this current release in-house already to serve our
 artifacts locally, to server commercial and other non-ibilio-compatible
 artifacts and to reduce outbound traffic.

 Preview downloads and project site can be  found here:
 https://is-micro.myip.hu/projects/ismicro-commons/proximity/

 Proximity in action (runs on Tomcat 5.5, proxied by Apache 2):
 https://is-micro.myip.hu/proximity/


 Notes:
 1. The licence will be changed from current dummy licence to Apache v2
 licence.
 2. To test it:

 Download SNAPSHOT WAR from here
 https://is-micro.myip.hu/projects/ismicro-commons/deploy/proximity/

 unpack it, configure it (at least the /WEB-INF/proximity.properties with
 valid EXISTING directories), and deploy it.

 I would like to hear comments, ideas. Anybody interested? Anybody to
 jump in?

 Thanks,
 Tamas




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




maven 2.0 groovy tools

2005-11-24 Thread BURGHARD Éric
Hi,

I've just commited a set of tools [1] for maven (plugin, extensions and
archetype) that can ease a migration from ant to maven (thanks to groovy ant
extension) or just help you to write new plugins directly in groovy.

For those who wonder, here is a quick example which use the ant xslt task on
a fileset

+---
def ant = new AntBuilder()

def files = ant.fileScanner {
fileset(dir: srcDir) {
include(name: **/*.xml)
}
}

for (src in files) {
def dst = new File(dstDir, src.name)
ant.xslt(in: src.path, out: dst.path, style: myxsl.path, processor:
trax)
}
+---

The beautifull thing here is that you can add dependency to whatever
processor you want in your pom.xml (saxon8, xalan). Maven handle all
dependencies transparently, ant's task choose the first processor
available, thus the exactly same code (.class) handle a xslt 1.0 or 2.0
transformation (welcome to the jar heaven).

I've added 2 extensions to maven :
 * plexus-compiler-groovyc which allow you to compile your .groovy(s)
transparently with the maven-compiler-plugin (during mvn compile)
 * maven-plugin-tools-javalike which can parse (with some
limitations) .groovy (and .java) to generate your plugin's descriptor (mvn
plugin:descriptor)

One plugin :
 * maven-groovyc-plugin which add a groovyc:compile goal to compile .groovy
(sometime more flexile than plexus-compiler-groovyc). It's a good example of
a native groovy plugin

And one archetype which ease the starting of new groovy plugin projects :
 * maven-archetype-groovymojo

All that stuff is available on a svn repository [1]. Each component had a
quick install documentation (mvn site).

[1] https://tagloo.no-ip.info/svn/public/

Regards.


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



Re: Maven proxy

2005-11-24 Thread Cservenak Tamas




Hi!

Since it relies on Spring's ContextLoaderListener, and it's APIDOC
states "For Servlet 2.2 containers and Servlet 2.3 ones that do not
initalize listeners before servlets, use ContextLoaderServlet [instead
of ContextLoaderListener]", it WOULD work if...

I don't know the answer to the question: Is Tomcat 4.x (2.3 Servlet
spec implementation) initializing listeners before servlets?

If yes, just drop it and use it, it should work. If no, it is a 5
minute job to change Spring config.

Try it out, and if not working, ill' drop a modified one with
ContextLoaderServlet.

tx
~t~

dan tran wrote:

  Please tell me it will work with Tomcat 4.x? ;-)

-D


On 11/24/05, Cservenak Tamas [EMAIL PROTECTED] wrote:
  
  
Hi,

Id' like to announce an ongoing effort to make a usable caching-proxy
engine useful for corporate (or group) proxying of Maven repositories
(Yes, i'm aware of maven-proxy on Codehaus, but alternatives makes world
beautiful).

We are using this current release in-house already to serve our
artifacts locally, to server commercial and other non-ibilio-compatible
artifacts and to reduce outbound traffic.

Preview downloads and project site can be  found here:
https://is-micro.myip.hu/projects/ismicro-commons/proximity/

Proximity in action (runs on Tomcat 5.5, proxied by Apache 2):
https://is-micro.myip.hu/proximity/


Notes:
1. The licence will be changed from current "dummy" licence to Apache v2
licence.
2. To test it:

Download SNAPSHOT WAR from here
https://is-micro.myip.hu/projects/ismicro-commons/deploy/proximity/

unpack it, configure it (at least the /WEB-INF/proximity.properties with
valid EXISTING directories), and deploy it.

I would like to hear comments, ideas. Anybody interested? Anybody to
jump in?

Thanks,
Tamas




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

2005-11-24 Thread Cservenak Tamas




Same APIDOCs, few lines later:

Servlet 2.3 containers known to work with bootstrap listeners are:

 * Apache Tomcat 4.x+
 * Jetty 4.x+
 * Resin 2.1.8+
 * Orion 2.0.2+
 * BEA WebLogic 8.1 SP3 

:) Give it a try Dan!

~t~

dan tran wrote:

  Please tell me it will work with Tomcat 4.x? ;-)

-D


On 11/24/05, Cservenak Tamas [EMAIL PROTECTED] wrote:
  
  
Hi,

Id' like to announce an ongoing effort to make a usable caching-proxy
engine useful for corporate (or group) proxying of Maven repositories
(Yes, i'm aware of maven-proxy on Codehaus, but alternatives makes world
beautiful).

We are using this current release in-house already to serve our
artifacts locally, to server commercial and other non-ibilio-compatible
artifacts and to reduce outbound traffic.

Preview downloads and project site can be  found here:
https://is-micro.myip.hu/projects/ismicro-commons/proximity/

Proximity in action (runs on Tomcat 5.5, proxied by Apache 2):
https://is-micro.myip.hu/proximity/


Notes:
1. The licence will be changed from current "dummy" licence to Apache v2
licence.
2. To test it:

Download SNAPSHOT WAR from here
https://is-micro.myip.hu/projects/ismicro-commons/deploy/proximity/

unpack it, configure it (at least the /WEB-INF/proximity.properties with
valid EXISTING directories), and deploy it.

I would like to hear comments, ideas. Anybody interested? Anybody to
jump in?

Thanks,
Tamas




-
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: RE : [m2] maven-war-plugin (questions)

2005-11-24 Thread Emmanuel Venisse
I'm not sure it's a good idea. You have css, scripts, jsp directories, but other can have too 
velocity templates, webwork, tapestry, ... directories. We can't add all this directories in webapp 
plugin.
Instead of jspSourceDirectory/jspOutputDirectory (and others) declaration in war plugin 
configuration, you can perhaps have this in war plugin configuration :

resources
  resources
directorysrc/main/web/jsp/directory
targetPath${basedir}/webappdir/OTAStats/targetPath
filtering/
includes/
excludes/
  /resources
/resources

With this structure, you'll can map all sort of directories, and it's similar to resources/ in 
build/


WDYT?

Emmanuel


Olivier Lamy a écrit :

Hi,
Is there someone else interested by this ?
Or I just to report my hack to in own/company maven-war-plugin ?
Thanks,
- Olivier

-Message d'origine-
De : Olivier Lamy [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 23 novembre 2005 18:17

À : Maven Users List
Objet : [m2] maven-war-plugin (questions)


Hi all,
I have some trouble with the war plugin.
With the following source structure :
src/main/web/css (css files)
src/main/web/scripts (javascritpts files)
src/main/web/jsp (jsp files)
src/main/html (static html content)

With the following configuration :
warSourceDirectory
implementation=java.io.File${basedir}/src/main/web/warSourceDirector
y
webXml${basedir}/src/main/resources/war/web.xml/webXml
webappDirectory
implementation=java.io.File${basedir}/webappdir/OTAStats/webappDirec
tory

The generated webapp is :
${basedir}/webappdir/OTAStats/css (ok)
${basedir}/webappdir/OTAStats/scripts (ok)
${basedir}/webappdir/OTAStats/jsp (not good my index.jsp is not in the
correct directory) ${basedir}/webappdir/OTAStats/html (not good too)

My proposal is to add in the mojo (AbstractWarMojo) :
jspSourceDirectory/jspOutputDirectory and the same for css, scripts and
html.

Note in an other use case, the html content is provided by an other
artifact.

Furthermore, I didn't find any way to add resources (as struts-config
files and so on) in the generated WEB-INF directory. maybe, I didn't
search enough ;-)

If this doesn't exists, I propose to add something :
webInfContentFolders
  webInfContentFolder
implementation=java.io.Filesrc/main/resources/struts/webInfContentFo
lder
  webInfContentFolder
implementation=java.io.Filesrc/main/resources/tiles/webInfContentFol
der
/webInfContentFolders

I have created the issue : http://jira.codehaus.org/browse/MNG-1669
Let me know if this interest some because It's easy to implement and I
can provide a patch.

Thanks,
- Olivier



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 electronique et tous les fichiers joints ainsi que  les

informations contenues dans ce message ( ci apres le message ), sont
confidentiels et destines exclusivement a l'usage de la  personne a
laquelle ils sont adresses. Si vous avez recu ce message par erreur,
merci  de le renvoyer a son emetteur et de le detruire. Toutes
diffusion, publication, totale ou partielle ou divulgation sous quelque
forme que se soit non expressement autorisees de ce message, sont
interdites.
** 



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



[M2] AntRun plugin executing a goal not bound to a phase ?

2005-11-24 Thread Pete
I'm sure this is a very basic question about using antRun plugin, all
works fine if I
bind the plugin to a phase e.g.

phasegenerate-sources/phase

but how can I define the plugin to be executed on demand like a
Utility goal to update the Database.

I have tried removing the phase and then command :-

mvn antrun:run

but I get
task-segment: [antrun:run]
 
 [antrun:run]
 Executing tasks
 Executed tasks
 

I want a antRun plugin that will be executed during 'integration'
phase, but also defined a second time such that it can be invoked on
its own at will - via a new goal


build
plugins
plugin
artifactIdmaven-antrun-plugin/artifactId
executions
execution
idupdate-db/id
phasegenerate-sources/phase
configuration
tasks
ant 
antfile=build.xml dir=ant target=update-oracle-db
inheritRefs=true/
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin
/plugins
/build

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



[m2] Surefire and Cobertura reports empty

2005-11-24 Thread Rubén Barroso
Anyone knows why are my site surefire and cobertura reports empty? It
seems that they're both executed, but their related reports in the
generated site are empty :S.

Thanks.

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



multi-module project - automatic checkout

2005-11-24 Thread Matthew Vanbiervliet
Hi,

I have a question regarding multi-modules projects with Maven 2.
I have the following multi-module project structure :

Top project
   pom.xml
| module1 (pom.xml)
| module2 ( pom.xml)
| module3 (pom.xml)
 |--module3.1 (
pom.xml)
 |--module3.2 (
pom.xml)
| module4 (pom.xml)


An important requirement is that each module needs to be stored on a
separate cvs module.

What I want to achieve is that anyone who has got the top project's pom.xml
only would be able to build the whole project. That means that it should be
smart enough to first check out (automatically) all submodules in order to
get the sources as well as the pom.xml for each module. And this recursively
(for example, when it's module3's turn to be built, module3.1 and
module3.2would be checked out first, and then built).

Would this be feasable with Maven 2 or do I have to have all the
subprocjects as subdirectories on the same cvs module (the top project's cvs
module) ?

I am currently writing a plugin that, in the 'validate' lifecycle phase,
does the checkout of all modules listed between top project's pom.xml's
modules tag.
However, when executing 'mvn  validate' , Maven fails directly because, at
first, it doesn't find subdirectories (and the pom.xml) corresponding to the
listed modules.

Is there a way to 'hook' a plugin on a parent project and having it executed
before mvn looks at the modules ?

Thank you for your help and ideas.

Matthew


RE : RE : [m2] maven-war-plugin (questions)

2005-11-24 Thread Olivier Lamy
Good idea, I prefer this more general implementation.
I try to provide a patch ASAP.

- Olivier

-Message d'origine-
De : Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 24 novembre 2005 14:30
À : Maven Users List
Objet : Re: RE : [m2] maven-war-plugin (questions)


I'm not sure it's a good idea. You have css, scripts, jsp directories,
but other can have too 
velocity templates, webwork, tapestry, ... directories. We can't add all
this directories in webapp 
plugin.
Instead of jspSourceDirectory/jspOutputDirectory (and others)
declaration in war plugin 
configuration, you can perhaps have this in war plugin configuration :
resources
   resources
 directorysrc/main/web/jsp/directory
 targetPath${basedir}/webappdir/OTAStats/targetPath
 filtering/
 includes/
 excludes/
   /resources
/resources

With this structure, you'll can map all sort of directories, and it's
similar to resources/ in 
build/

WDYT?

Emmanuel


Olivier Lamy a écrit :
 Hi,
 Is there someone else interested by this ?
 Or I just to report my hack to in own/company maven-war-plugin ? 
 Thanks,
 - Olivier
 
 -Message d'origine-
 De : Olivier Lamy [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 23 novembre 2005 18:17
 À : Maven Users List
 Objet : [m2] maven-war-plugin (questions)
 
 
 Hi all,
 I have some trouble with the war plugin.
 With the following source structure :
 src/main/web/css (css files)
 src/main/web/scripts (javascritpts files)
 src/main/web/jsp (jsp files)
 src/main/html (static html content)
 
 With the following configuration :
 warSourceDirectory 
 implementation=java.io.File${basedir}/src/main/web/warSourceDirect
 or
 y
 webXml${basedir}/src/main/resources/war/web.xml/webXml
 webappDirectory 
 implementation=java.io.File${basedir}/webappdir/OTAStats/webappDir
 ec
 tory
 
 The generated webapp is :
 ${basedir}/webappdir/OTAStats/css (ok) 
 ${basedir}/webappdir/OTAStats/scripts (ok) 
 ${basedir}/webappdir/OTAStats/jsp (not good my index.jsp is not in the

 correct directory) ${basedir}/webappdir/OTAStats/html (not good too)
 
 My proposal is to add in the mojo (AbstractWarMojo) : 
 jspSourceDirectory/jspOutputDirectory and the same for css, scripts 
 and html.
 
 Note in an other use case, the html content is provided by an other 
 artifact.
 
 Furthermore, I didn't find any way to add resources (as struts-config 
 files and so on) in the generated WEB-INF directory. maybe, I didn't 
 search enough ;-)
 
 If this doesn't exists, I propose to add something : 
 webInfContentFolders
   webInfContentFolder 
 implementation=java.io.Filesrc/main/resources/struts/webInfContent
 Fo
 lder
   webInfContentFolder 
 implementation=java.io.Filesrc/main/resources/tiles/webInfContentF
 ol
 der
 /webInfContentFolders
 
 I have created the issue : http://jira.codehaus.org/browse/MNG-1669
 Let me know if this interest some because It's easy to implement and I

 can provide a patch.
 
 Thanks,
 - Olivier
 
 
 
 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 electronique et tous les fichiers joints ainsi que  les
 informations contenues dans ce message ( ci apres le message ), sont
 confidentiels et destines exclusivement a l'usage de la  personne a
 laquelle ils sont adresses. Si vous avez recu ce message par erreur,
 merci  de le renvoyer a son emetteur et de le detruire. Toutes
 diffusion, publication, totale ou partielle ou divulgation sous
quelque
 forme que se soit non expressement autorisees de ce message, sont
 interdites.
 **

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


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


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



Re: [m2] Surefire and Cobertura reports empty

2005-11-24 Thread Alexandre Russel

Rubén Barroso a écrit :

Anyone knows why are my site surefire and cobertura reports empty? 


do you have xml file in the sufire-report directory?
Alex

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



Re: MNG-1398: How to obtain an updated version of the maven-javadoc-plugin

2005-11-24 Thread David Sag

I would like it too. We have a
first presentation tomorrow of the maven 2 stuff we have been doing and
it is a little embrarrasing to have no javadocs available.

I know we *could* build it from SVN
but honestly I'd just rather someone send me a zipped up plugin I can just
drop in manually. We don't use SVN at all in here (much as I'd like
to) and I am yet to be able to get SVN to work thru our firewalls.

So if someone has a newer build of the
javadoc plugin could they please email or skype me a zip file and i'll
drop it into my repository manually.

Kind regards,
Dave Sag 




 

Jochen Wiedmann [EMAIL PROTECTED]
wrote on 09-11-2005 12:41:44:

 
 Hi,
 
 sorry for asking the stupid question: I am one of the users who stumbled

 over
 
   MNG-1398: site report generates an 'empty'
target/site/apidocs/index.html
 
 I see that a fixed version of the plugin will be available in Maven

 2.0.1. Very nice. But do I actually have to wait for that version?
Or, 
 do I have to rebuild Maven from SVN?
 
 Regards,
 
 Jochen
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: [m2] Surefire and Cobertura reports empty

2005-11-24 Thread Rubén Barroso
Sure I don't have. Where and how should I create such a file? Or,
better, documentation about it?

Thank you Alex!

2005/11/24, Alexandre Russel [EMAIL PROTECTED]:
 Rubén Barroso a écrit :

 Anyone knows why are my site surefire and cobertura reports empty?
 
 do you have xml file in the sufire-report directory?
 Alex

 -
 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] Missing properties in schemaexport

2005-11-24 Thread Rubén Barroso
Any idea? :S

2005/11/24, Rubén Barroso [EMAIL PROTECTED]:
 I'm using hibernate 3, so I'd like to use that plugin version (thanks
 for your support :D)

 2005/11/24, Edwin Punzalan [EMAIL PROTECTED]:
 
  Which one are you using?  hibernate-maven-plugin or
  hibernate3-maven-plugin ?
 
 
 
  Rubén Barroso wrote:
 
  Could you say me how to install  configure it? I can see it in the
  plugin matrix, but I'm not able to find the steps to configure it.
  
  Thanks again.
  
  2005/11/24, Edwin Punzalan [EMAIL PROTECTED]:
  
  
  Have you tried using the hibernate plugin directly instead of calling
  ant-run to call hibernate ?
  
  
  Rubén Barroso wrote:
  
  
  
  Hello, I've been trying to use hibernate plugin in maven 2, but it
  doesn't work me. I've tried to achieve the same goal (schemaexport)
  with the following code:
  
  plugin
   groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
executions
   execution
   phasepackage/phase
   configuration
  tasks
echodialect: ${hibernate.dialect}/echo
taskdef name=schemaexport
  
   classname=org.hibernate.tool.hbm2ddl.SchemaExportTask
classpath
path 
   refid=maven.dependency.classpath/
/classpath
/taskdef
mkdir dir=target/schema/
schemaexport
quiet=no
text=no
drop=no
delimiter=;

   output=target/schema/create-tables.sql
fileset dir=target/classes 
   includes=**/*.hbm.xml/
/schemaexport
  
   /tasks
 /configuration
 goals
   goalrun/goal
 /goals
   /execution
 /executions
   /plugin
  
  When I execute 'mvn package', it says me that I must set the property
  'hibernate.dialect'. On the other hand, echo works fine!!! Any
  ideas??
  
  Thanks in advance
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



maven-execute-plugin fyi

2005-11-24 Thread Jesse McConnell
I have removed the maven-execute-plugin since the same functionality exists
in the exec-maven-plugin which is also in the mojo sandbox.

cheers,
jesse

--
jesse mcconnell
jesseDOTmcconnellATgmailDOTcom


[M2] How to fire plugin in site generation?

2005-11-24 Thread Jose Gonzalez Gomez
Is there any way to fire the execution of a plugin whenever the site
plugin is executed? I would like to add some dinammically generated
content to the site, but I don't want to use the report mechanism, as
this forces me to use the Sink interface to write content, doesn't it?
Or can I turn my plugin into a report, just ignore the Sink and write
the contect directly to some known location?

TIA, best regards
Jose

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



Re: [M2] How to fire plugin in site generation?

2005-11-24 Thread David Sag

I've just done this actually.

Make it a report and override the isExternalReport()
method to return true;

then you don't need to use the Sink
at all.

Kind regards,
Dave Sag 




 

Jose Gonzalez Gomez [EMAIL PROTECTED]
wrote on 24-11-2005 15:46:55:

 Is there any way to fire the execution of a plugin whenever the site
 plugin is executed? I would like to add some dinammically generated
 content to the site, but I don't want to use the report mechanism,
as
 this forces me to use the Sink interface to write content, doesn't
it?
 Or can I turn my plugin into a report, just ignore the Sink and write
 the contect directly to some known location?
 
 TIA, best regards
 Jose
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: When I will be able to try out A Maven 2.x plug-in for the Eclipse IDE

2005-11-24 Thread Miks Rozenbergs

Kees de Kooter wrote:

Did you try running the eclipse:eclipse goal? See
http://maven.apache.org/plugins/maven-eclipse-plugin/

I think this does exactly what you want.


It doesn't. It generates Eclipse project out of Maven's project. What I 
need is as minumum vice versa -- I do have projects in Eclipse and I 
need to have pom.xml generated and kept up to date, as developers 
continue development in Eclipse.




cheers,
Kees

On 11/24/05, Miks Rozenbergs [EMAIL PROTECTED] wrote:

Hello!

I'm looking for options to integrate/synchronize Maven's POM with
Eclipse project configuration files. Because currently developer would
need to maintain all dependencies in two places -- using Eclipse UI to
effectively update .classpath, .project, etc. and using text editor to
duplicate the same dependency information in Maven's pom.xml.

The Maven 2.x plug-in for the Eclipse IDE project
(http://jira.codehaus.org/secure/BrowseProject.jspa?id=11093) sounds to
be something in that direction, but unfortunately I can't find any
design outline what exactly it's going to do. Where can I get that? or
may be even hold on some alpha version?

Regards,
Miks Rozenbergs


-
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] finalName not taken into account in install

2005-11-24 Thread Jason van Zyl

Wim Deblauwe wrote:

Hi,

when I set finalName/ in my pom.xml, the install plugin does not take this
name into account.

Just for testing I added finalNametest.jar/finalName to the pom.xml of a
custom plugin of mine. When doing 'mvn install', I get this:

[INFO] Installing
Y:\wimd_test_vob\modules\maven-plugins\maven-nmake-plugin\target\test.jar.jar
to C:\Documents and
Settings\WIMD\.m2\repository\com\barcoview\mavenplugin\maven-nmake-plugin\1.0-SNAPSHOT\maven-
nmake-plugin-1.0-SNAPSHOT.jar

I was hoping it would install to the directory it does, but as test.jar.


Can you raise an issue in JIRA?
--

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: [m2] finalName not taken into account in install

2005-11-24 Thread Wim Deblauwe
Done: http://jira.codehaus.org/browse/MNG-1676

Wim

2005/11/24, Jason van Zyl [EMAIL PROTECTED]:

 Wim Deblauwe wrote:
  Hi,
 
  when I set finalName/ in my pom.xml, the install plugin does not take
 this
  name into account.
 
  Just for testing I added finalNametest.jar/finalName to the pom.xmlof a
  custom plugin of mine. When doing 'mvn install', I get this:
 
  [INFO] Installing
 
 Y:\wimd_test_vob\modules\maven-plugins\maven-nmake-plugin\target\test.jar.jar
  to C:\Documents and
 
 Settings\WIMD\.m2\repository\com\barcoview\mavenplugin\maven-nmake-plugin\1.0-SNAPSHOT\maven-
  nmake-plugin-1.0-SNAPSHOT.jar
 
  I was hoping it would install to the directory it does, but as test.jar.

 Can you raise an issue in JIRA?
 --

 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: m2:beginner How to get a list of the project src files within a mojo

2005-11-24 Thread Jason van Zyl

karthik gurumurthy wrote:

Hi All,

I would like to get access to all the src files (taking into consideration
the includes and excludes) in a mojo.
I typically need a list from which i wish to construct another list of File
Objects.
I mean somethign similar to ant's DirectoryScanner (hopefulyl with all the
excludes and includes considered).

How can i inject it as a Mojo attribute?


What do you want to do exactly?

I updated the FAQ to answer your question:

http://docs.codehaus.org/display/MAVENUSER/FAQs

Look for:

How do I get the sources for a project within a Mojo?

--

jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

you are never dedicated to something you have complete confidence in.
No one is fanatically shouting that the sun is going to rise tomorrow.
They know it is going to rise tomorrow. When people are fanatically
dedicated to political or religious faiths or any other kind of
dogmas or goals, it's always because these dogmas or
goals are in doubt.

  -- Robert Pirzig, Zen and the Art of Motorcycle Maintenance

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



Re: maven 2.0 groovy tools

2005-11-24 Thread Jason van Zyl

BURGHARD Éric wrote:

Hi,

I've just commited a set of tools [1] for maven (plugin, extensions and
archetype) that can ease a migration from ant to maven (thanks to groovy ant
extension) or just help you to write new plugins directly in groovy.


Cool, that's awesome!

Maybe we can work to get some of this code in the repositories.

As for the plexus stuff we can set you up an account at Codehaus (if you 
don't already have one) and I can definitely push your archetypes into 
Maven's SVN.


I also see that you have a jelly mojo? Is that working?


For those who wonder, here is a quick example which use the ant xslt task on
a fileset

+---
def ant = new AntBuilder()

def files = ant.fileScanner {
fileset(dir: srcDir) {
include(name: **/*.xml)
}
}

for (src in files) {
def dst = new File(dstDir, src.name)
ant.xslt(in: src.path, out: dst.path, style: myxsl.path, processor:
trax)
}
+---

The beautifull thing here is that you can add dependency to whatever
processor you want in your pom.xml (saxon8, xalan). Maven handle all
dependencies transparently, ant's task choose the first processor
available, thus the exactly same code (.class) handle a xslt 1.0 or 2.0
transformation (welcome to the jar heaven).

I've added 2 extensions to maven :
 * plexus-compiler-groovyc which allow you to compile your .groovy(s)
transparently with the maven-compiler-plugin (during mvn compile)
 * maven-plugin-tools-javalike which can parse (with some
limitations) .groovy (and .java) to generate your plugin's descriptor (mvn
plugin:descriptor)

One plugin :
 * maven-groovyc-plugin which add a groovyc:compile goal to compile .groovy
(sometime more flexile than plexus-compiler-groovyc). It's a good example of
a native groovy plugin

And one archetype which ease the starting of new groovy plugin projects :
 * maven-archetype-groovymojo

All that stuff is available on a svn repository [1]. Each component had a
quick install documentation (mvn site).

[1] https://tagloo.no-ip.info/svn/public/

Regards.


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






--

jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

A party which is not afraid of letting culture,
business, and welfare go to ruin completely can
be omnipotent for a while.

  -- Jakob Burckhardt

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



Re: maven 2.0 groovy tools

2005-11-24 Thread Jason van Zyl

BURGHARD Éric wrote:

Hi,

I've just commited a set of tools [1] for maven (plugin, extensions and
archetype) that can ease a migration from ant to maven (thanks to groovy ant
extension) or just help you to write new plugins directly in groovy.


Very cool. Maybe we can work offline to get some of this code into the 
necessary places so we can integrate it. I'm in IRC now if you want to 
chat: irc.codehaus.org: #maven.


--

jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.

  -- Jacques Ellul, The Technological Society

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



Re: [m2] Best practices with Branching and Versioning using Continuum ...

2005-11-24 Thread Jason van Zyl

Stevenson, Chris wrote:

Dear All,
 
Does anyone have any ideas on the best way to manage branching and

versioning in m2?


We are working on defining our own process so maybe we can share that 
with others. Unfortunately we started this on the dev mailing list so I 
don't have anything to point you at but I'll try and move the points 
into the wiki so I can point you at it.


--

jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

Simplex sigillum veri. (Simplicity is the seal of truth.)

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



[m2] dependency graph

2005-11-24 Thread Wim Deblauwe
Hi,

it would be really cool to have a plugin that shows all the dependencies of
your project in a graph. This graph could be in SVG or png or whatever. Is
there already such a plugin or plans for such a plugin? What graphing
library do you think would be best to implement this kind of thing (must be
open source ofcourse)?

With the maven 2 dependency mechanism, this can't be that hard. Get your
dependencies, then get the dependencies of your dependencies and so on. Put
all that in some kind of model that some library can turn into a nice graph
et voila! :)

regards,

Wim


profile dependency

2005-11-24 Thread Anuerin Diaz
hi,

   our project has a need for different types of assembly, as such i
am creating different profiles for each assembly/configuration.
however this causes me to duplicate some profile configuration. i was
wondering if there is a profile dependency mechanism (or something
planned) wherein on profile inherits from a sibling profile.

   or is this a bad idea? thanks.

ciao!

--

Programming, an artform that fights back

Anuerin G. Diaz
Registered Linux User #246176
Friendly Linux Board @ http://mandrivausers.org/index.php
http://capsule.ramfree17.org , when you absolutely have nothing else
better to do

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



RE: Docbook plugin

2005-11-24 Thread Jeff Jensen
Hi Jose,

Fantastic!  ...if there is interest..., yes there is!  I will need docbook
from Maven in the near future.

And your auto olink db generation sounds great!


-Original Message-
From: Jose Gonzalez Gomez [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 24, 2005 2:38 AM
To: Maven Users List
Subject: Docbook plugin

Hi there,

I have a preliminary version of a Docbook plugin for Maven2. Here is my
typical use case:

I use to write project documentation (at least requirements) using Unified
Process artifacts (Software requirements specification, actors
specification, glossary, risk list, use case specifications,...). My main
objective is to have a lot of small, manageable and interlinked documents
that form the whole documentation and that can be easily browsed using an
Internet browser. To achieve this I use Docbook articles with cross
references between documents using olink. In order to transform this
documents into a browsable web, you must supply a olink database to the
Docbook stylesheets to enable external link resolution.

The plugin scans existing Docbook files and automatically generates the
olink database using the standard stylesheets. Once the database is created,
transforms every document (no chunking nor toc) using the provided database.
The only requirement for this to work is to use a predefined schema to build
the name of referenced documents (very easy).

I know this is a very focused use case and implementation, so I would like
to know if there is interest in this to publish it as open source, and maybe
add more requirements and flexibility to it...

Best regards
Jose

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



Fwd: Design Question

2005-11-24 Thread Gerwin Brunner

Can anybody give me some input on this?

Thanks,
Gerwin

Begin forwarded message:


From: Gerwin Bruner [EMAIL PROTECTED]
Date: November 22, 2005 2:54:07 PM GMT+01:00
To: users@maven.apache.org
Subject: Design Question

Hi,

I've got a client/server app which is communicating via RMI.
The application is using the spring framework.

The server offers the following services/interface:

Agent register(String username);
void unregister(Agent agent);


What is the best way to move this app over to maven?

Do I build 3 projects: Server / Client / Interface (with the POJO's  
like Agent that get transfered)?


Is this a valid thought? Any other suggestions how to address this?

Thanks,
Gerwin




[m2] Properties files

2005-11-24 Thread Oscar Picasso
Hi,
 
 In m1 we could use user specific properties in the pom and these properties 
could be read from some properties files.
 
 What is the similar functionality in m2?
 
 Here is what I have found that is somewhat related
 - you can user -Dsome.property=some.value = It doesn't use a file.
 - setting.xml for user specification configuration = you cannot use it to set 
arbitrary properties for a specific pom.
 - filtering = it allows to set properties to resources but not to poms.
 - using the pom's properties element = the properties are set in the pom 
itself, which is what I want to avoid.
 - same as above, but move all the user specific properties in a parent pom 
that could be customized by each user
 The later approach seems to me the closest to the m1 user specific properties 
files. I would however prefer a simpler properties file instead of an xml (pom) 
file.
 
 I am under the impression that I miss something.
 
 What is the right to do it?
 
 
 Thanks
 
 
 Oscar

-
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

Re: Fwd: Design Question

2005-11-24 Thread Cservenak Tamas
Hi,

You build 5 projects :)

Serioulsy, I usually separate projects like this one into many (maven)
submodules, starting just like he/you offered:

common
server
client

and all three submodules are embedded in one top-level project.

So, a maven project layout:

projectX
  Xcommon (ifaces, common VOs, etc)
src
xdoc
pom.xml
  Xserver (server)
src
xdoc
pom.xml (deps is Xcommon)
  Xclient (client)
src
xdoc
pom.xml (deps is Xcommon)
  xdoc...
  etc...
  pom.xml

Let's suppose that all these POMs are producing JARs.

If you need EAR deployment from projectX, take another projectX-EAR
(even sourceless, or just with EJB descriptors in src) and let it depend
from XServer and it will make you EJB. If you also need WAR, make
another projectX-WAR (same as for EJB). Don't be afraid to divide and
conquer. :)

Even if it seems at first that there is no reason to cut the project in
so many small pieces, later you will discover that it is the right way
to go.

All my collegues that had bad dreams using maven (Maven1) was doing the
_same_ error: trying to build more than one artifact (JAR, WAR, EAR,
etc) from one POM. DO NOT DO IT :)


bye
~t~

Gerwin Brunner wrote:
 Can anybody give me some input on this?

 Thanks,
 Gerwin

 Begin forwarded message:

 From: Gerwin Bruner [EMAIL PROTECTED]
 Date: November 22, 2005 2:54:07 PM GMT+01:00
 To: users@maven.apache.org
 Subject: Design Question

 Hi,

 I've got a client/server app which is communicating via RMI.
 The application is using the spring framework.

 The server offers the following services/interface:

 Agent register(String username);
 void unregister(Agent agent);


 What is the best way to move this app over to maven?

 Do I build 3 projects: Server / Client / Interface (with the POJO's
 like Agent that get transfered)?

 Is this a valid thought? Any other suggestions how to address this?

 Thanks,
 Gerwin




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

Re: Docbook plugin

2005-11-24 Thread Rune Fauske
Hi Jose

We're just looking into using docbook for both integrated help and the
user manual, so a maven docbook plugin would really be appreciated.

--
Rune

On 11/24/05, Jeff Jensen [EMAIL PROTECTED] wrote:
 Hi Jose,

 Fantastic!  ...if there is interest..., yes there is!  I will need docbook
 from Maven in the near future.

 And your auto olink db generation sounds great!


 -Original Message-
 From: Jose Gonzalez Gomez [mailto:[EMAIL PROTECTED]
 Sent: Thursday, November 24, 2005 2:38 AM
 To: Maven Users List
 Subject: Docbook plugin

 Hi there,

 I have a preliminary version of a Docbook plugin for Maven2. Here is my
 typical use case:

 I use to write project documentation (at least requirements) using Unified
 Process artifacts (Software requirements specification, actors
 specification, glossary, risk list, use case specifications,...). My main
 objective is to have a lot of small, manageable and interlinked documents
 that form the whole documentation and that can be easily browsed using an
 Internet browser. To achieve this I use Docbook articles with cross
 references between documents using olink. In order to transform this
 documents into a browsable web, you must supply a olink database to the
 Docbook stylesheets to enable external link resolution.

 The plugin scans existing Docbook files and automatically generates the
 olink database using the standard stylesheets. Once the database is created,
 transforms every document (no chunking nor toc) using the provided database.
 The only requirement for this to work is to use a predefined schema to build
 the name of referenced documents (very easy).

 I know this is a very focused use case and implementation, so I would like
 to know if there is interest in this to publish it as open source, and maybe
 add more requirements and flexibility to it...

 Best regards
 Jose

 -
 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] should xalan have scope=provided?

2005-11-24 Thread Stephen Duncan
Matt,

My approach in that kind of situation is to depend directly on xalan
with scope=provided, rather than doing an exclude.

Not sure if that's ideal.  I have no idea what the criteria should be
for a something like displaytag to declare dependencies as provided
vs. compile.

-Stephen

On 11/23/05, Matt Raible [EMAIL PROTECTED] wrote:
 I've noticed that when including the displaytag (v 1.0), I had to
 exclude xalan if I didn't want it included in my WAR.  Shouldn't xalan
 be scope=provided?

 Thanks,

 Matt

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




--
Stephen Duncan Jr
www.stephenduncanjr.com

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



Re: Docbook plugin

2005-11-24 Thread Emmanuel Venisse

docbook is supported by doxia

Emmanuel

Rune Fauske a écrit :

Hi Jose

We're just looking into using docbook for both integrated help and the
user manual, so a maven docbook plugin would really be appreciated.

--
Rune

On 11/24/05, Jeff Jensen [EMAIL PROTECTED] wrote:


Hi Jose,

Fantastic!  ...if there is interest..., yes there is!  I will need docbook
from Maven in the near future.

And your auto olink db generation sounds great!


-Original Message-
From: Jose Gonzalez Gomez [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 24, 2005 2:38 AM
To: Maven Users List
Subject: Docbook plugin

Hi there,

I have a preliminary version of a Docbook plugin for Maven2. Here is my
typical use case:

I use to write project documentation (at least requirements) using Unified
Process artifacts (Software requirements specification, actors
specification, glossary, risk list, use case specifications,...). My main
objective is to have a lot of small, manageable and interlinked documents
that form the whole documentation and that can be easily browsed using an
Internet browser. To achieve this I use Docbook articles with cross
references between documents using olink. In order to transform this
documents into a browsable web, you must supply a olink database to the
Docbook stylesheets to enable external link resolution.

The plugin scans existing Docbook files and automatically generates the
olink database using the standard stylesheets. Once the database is created,
transforms every document (no chunking nor toc) using the provided database.
The only requirement for this to work is to use a predefined schema to build
the name of referenced documents (very easy).

I know this is a very focused use case and implementation, so I would like
to know if there is interest in this to publish it as open source, and maybe
add more requirements and flexibility to it...

Best regards
Jose

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


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





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







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



Re: maven 2.0 groovy tools

2005-11-24 Thread BURGHARD Éric
Jason van Zyl wrote:

 BURGHARD Éric wrote:
 Hi,
 
 I've just commited a set of tools [1] for maven (plugin, extensions and
 archetype) that can ease a migration from ant to maven (thanks to groovy
 ant extension) or just help you to write new plugins directly in groovy.
 
 Cool, that's awesome!
 
 Maybe we can work to get some of this code in the repositories.
 
 As for the plexus stuff we can set you up an account at Codehaus (if you
 don't already have one) and I can definitely push your archetypes into
 Maven's SVN.
 

That's great. I will be very proud to have a codehaus account :-). I think
it's really better to have that stuff on codehaus svn coz my bandwidth is
dying here.

I must admit that i have 'stollen' the codehaus namespace (org.codehaus) and
sometimes even the maven's one for the extensions, so that stuff should
already fits your repository.

To make things really clean, i think that maven-plugin-tools-javalike must
disappear in favor of a simple maven-plugin-tools-java patch.

For the maven-archetype-groovymojo i've just commited a simpler version,
it's functionnal but not really tested (even if it's quite simple). Just
look at the other thread.

I should definitively take some time for irc. 

Regards.


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



mvn archetype:create seems to not work... did before...

2005-11-24 Thread Peter L. Berghold
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1




OK:  this worked in the morning (I think) but doesn't seem to work
now...  What is going on or what am I having a brain fart over?

- - 8 snip 8 -

 mvn archetype:create -DarchitypeGroupId=agilitystewards.org
- -DarchetypeArtifactId=maven-archetype-webapp -DarchetypeVersion=1.0
- -DgroupId=agilitystewards.org -DartifactId=agilitystewards.org

Yields:

 [INFO] Defaulting package to group ID: agilitystewards.org
 Downloading: 
 http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-archetype-webapp/1.0/maven-archetype-webapp-1.0.jar
 [WARNING] Unable to get resource from repository central 
 (http://repo1.maven.org/maven2)
 [INFO] 
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] Failed to resolve artifact.
  
 GroupId: org.apache.maven.archetypes
 ArtifactId: maven-archetype-webapp
 Version: 1.0
  
 Reason: Unable to download the artifact from any repository
   org.apache.maven.archetypes:maven-archetype-webapp:1.0:jar
  
 from the specified remote repositories:
   central (http://repo1.maven.org/maven2)
  
  
 [INFO] 
 
 [INFO] For more information, run Maven with the -e switch
 [INFO] 
 
 [INFO] Total time: 4 seconds
 [INFO] Finished at: Thu Nov 24 12:43:26 EST 2005
 [INFO] Final Memory: 4M/7M
 [INFO] 
 



Thoughts?




- --

Peter L. Berghold [EMAIL PROTECTED]
Those who fail to learn from history are condemned to repeat it.
AIM: redcowdawgYahoo IM: blue_cowdawg  ICQ: 11455958
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDhfxCUM9/01RIhaARAsKuAJ91OZzzyvVpJRGExxvcWY03qgHBnACfYa82
WcnCPA5cpCmXBQXcV7ROiGg=
=ElRb
-END PGP SIGNATURE-

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

Re: [m2] should xalan have scope=provided?

2005-11-24 Thread Matt Raible
I forwarded the e-mail below to Fabrizio Giustina - Display Tag's Lead
Developer.  Here's his response:

quote
displaytag doesn't use xalan at all, probably it's a transitive
dependency of displaytag dependencies... did you try running mvn with
the -X option too see the dependency path?
/quote

I guess I'll just stick with my exclusion for now.

Matt

On 11/23/05, Carlos Sanchez [EMAIL PROTECTED] wrote:
 Hi Matt,

 I don't think so because not all servers will include it. What
 displaytag use xalan for?

 On 11/23/05, Matt Raible [EMAIL PROTECTED] wrote:
  I've noticed that when including the displaytag (v 1.0), I had to
  exclude xalan if I didn't want it included in my WAR.  Shouldn't xalan
  be scope=provided?
 
  Thanks,
 
  Matt
 
  -
  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]



using jelly scripts in maven 2.0: the archetype approach

2005-11-24 Thread BURGHARD Éric
Hi,

Even if i think jelly is an awfull language, i spent some times to package
an archetype [1] that can help you reusing your maven 1.0 scripts. But i
really encourage using groovy instead, it's less buggued, faster, easier
and much more expressive than jelly (many thanks codehaus, you're
genius ;-).

The idea of this archetype is to package your jelly scripts with some simple
java classes that act as bridges between maven's build cycles and your
scripts.

You have one little .java and one .jelly for each goal you want to package
in the same plugin. The formers are in src/main/java, the laters in
src/main/scripts.

The archetype helps to fire a typical 'one goal' plugin project.

Here is an example to write a simple jelly plugin that bind to the 'test'
goal.

First the .java.

+---
package my.maven;

/**
 * My jelly mojo
 *
 * @goal test
 * @description my jelly mojo
 * @author me
 * @version $Id$
 */
public class MyMojo
extends AbstractMojo
{
}
+---

Yes it's empty. Javadoc annotations help maven to bind your script to a goal
and a phase.

Second the . jelly

+---
j:jelly xmlns:j=jelly:core
plugin groupId: ${project.groupId}
plugin artifactId : ${project.artifactId}
/j:jelly
+---

mvn install, And your done.

As you can see you have access to a project variable (MavenProject) inside
your script. The plugin rely on a little maven-jellyplugin-api [2]

Refer to the archetype documentation for usage (exemple of parametrizable
jelly plugin).

Regards.

[1] https://tagloo.no-ip.info/svn/public/maven-archetype-jellymojo
[2] https://tagloo.no-ip.info/svn/public/maven-jellyplugin-api


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



RE: [m2] Properties files

2005-11-24 Thread mvdp

Hi Oscar,

I faced the same problem. I solved it by using a profile wich has
properties with valus to be configured by the
developer in settings.xml.

See
http://maven.apache.org/guides/introduction/introduction-to-profiles.html

The profile is enabled using
activeProfiles
  activeProfileaProfileName/activeProfile
/activeProfiles

because activationactiveByDefault//activation is not working yet.

Martin

-Oorspronkelijk bericht-
Van: Oscar Picasso [mailto:[EMAIL PROTECTED]
Verzonden: donderdag 24 november 2005 17:44
Aan: users@maven.apache.org
Onderwerp: [m2] Properties files


Hi,

 In m1 we could use user specific properties in the pom and these properties
could be read from some properties files.

 What is the similar functionality in m2?

 Here is what I have found that is somewhat related
 - you can user -Dsome.property=some.value = It doesn't use a file.
 - setting.xml for user specification configuration = you cannot use it to
set arbitrary properties for a specific pom.
 - filtering = it allows to set properties to resources but not to poms.
 - using the pom's properties element = the properties are set in the pom
itself, which is what I want to avoid.
 - same as above, but move all the user specific properties in a parent pom
that could be customized by each user
 The later approach seems to me the closest to the m1 user specific
properties files. I would however prefer a simpler properties file instead
of an xml (pom) file.

 I am under the impression that I miss something.

 What is the right to do it?


 Thanks


 Oscar

-
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.


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



RE: [m2] Properties files

2005-11-24 Thread Oscar Picasso
Thanks for the suggestion.
 
 I still think that there is a lack of properties files specific to a project. 
Or at least I don't know the equivalent in m2.
 
 Using profiles in settings.xml works fine but in my opinion settings.xml 
should be used for settings that could be potentially shared accross projects.
 
 The 'solution' I  have found is to  make my  pom.xml  reference  a  parent  
pom. Something like:
 
 parent
   groupIdorg.jop/groupId
artifactIduser/artifactId
version1.0/version
relativePath../user-pom.xml/relativePath
 /parent
 
 Where user-pom.xml contains user/project specific properties and each 
individual developer is expected to adapt it to his own environment.
 
 I must say that I don't find my solution very nice but it works too.

mvdp [EMAIL PROTECTED] wrote: 
Hi Oscar,

I faced the same problem. I solved it by using a profile wich has
properties with valus to be configured by the
developer in settings.xml.

See
http://maven.apache.org/guides/introduction/introduction-to-profiles.html

The profile is enabled using

  aProfileName


because  is not working yet.

Martin

-Oorspronkelijk bericht-
Van: Oscar Picasso [mailto:[EMAIL PROTECTED]
Verzonden: donderdag 24 november 2005 17:44
Aan: users@maven.apache.org
Onderwerp: [m2] Properties files


Hi,

 In m1 we could use user specific properties in the pom and these properties
could be read from some properties files.

 What is the similar functionality in m2?

 Here is what I have found that is somewhat related
 - you can user -Dsome.property=some.value = It doesn't use a file.
 - setting.xml for user specification configuration = you cannot use it to
set arbitrary properties for a specific pom.
 - filtering = it allows to set properties to resources but not to poms.
 - using the pom's properties element = the properties are set in the pom
itself, which is what I want to avoid.
 - same as above, but move all the user specific properties in a parent pom
that could be customized by each user
 The later approach seems to me the closest to the m1 user specific
properties files. I would however prefer a simpler properties file instead
of an xml (pom) file.

 I am under the impression that I miss something.

 What is the right to do it?


 Thanks


 Oscar

-
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.


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





-
 Yahoo! Personals
 Single? There's someone we'd like you to meet.
Lot's of someone's, actually. Yahoo! Personals

Re: [m2] should xalan have scope=provided?

2005-11-24 Thread Fabrizio Giustina
Hi Matt

On 11/24/05, Matt Raible [EMAIL PROTECTED] wrote:

 I guess I'll just stick with my exclusion for now.

It's pretty easy to find out, try running mvn -X install and look for
xalan in the list that will be printed out during execution. I don't
see xalan included when I add a dependency to displaytag but maybe
that's due to a pom which has been fixed recently in the ibiblio
repository.

fabrizio

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



RE: [m2] Properties files

2005-11-24 Thread Mike Lantink

Did you ever try having the profile set a value in the settings.xml like 
localRepository ? So a developer could set his local repsoitory as part of his 
profile ? 

Michael Lantink
Software Engineer 
(519) 880-2400 ext 2765
www.sandvine.com


-Original Message-
From: mvdp [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 24, 2005 2:25 PM
To: Maven Users List
Subject: RE: [m2] Properties files



Hi Oscar,

I faced the same problem. I solved it by using a profile wich has
properties with valus to be configured by the
developer in settings.xml.

See
http://maven.apache.org/guides/introduction/introduction-to-profiles.html

The profile is enabled using
activeProfiles
  activeProfileaProfileName/activeProfile
/activeProfiles

because activationactiveByDefault//activation is not working yet.

Martin

-Oorspronkelijk bericht-
Van: Oscar Picasso [mailto:[EMAIL PROTECTED]
Verzonden: donderdag 24 november 2005 17:44
Aan: users@maven.apache.org
Onderwerp: [m2] Properties files


Hi,

 In m1 we could use user specific properties in the pom and these properties
could be read from some properties files.

 What is the similar functionality in m2?

 Here is what I have found that is somewhat related
 - you can user -Dsome.property=some.value = It doesn't use a file.
 - setting.xml for user specification configuration = you cannot use it to
set arbitrary properties for a specific pom.
 - filtering = it allows to set properties to resources but not to poms.
 - using the pom's properties element = the properties are set in the pom
itself, which is what I want to avoid.
 - same as above, but move all the user specific properties in a parent pom
that could be customized by each user
 The later approach seems to me the closest to the m1 user specific
properties files. I would however prefer a simpler properties file instead
of an xml (pom) file.

 I am under the impression that I miss something.

 What is the right to do it?


 Thanks


 Oscar

-
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.


-
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: RPM Plugin not cleaning its includes

2005-11-24 Thread Allison, Bob
I think I have the problem with the RPM plugin solved and I updated the
ZIP file[1].  Could you please download the current version, unpack the
ZIP file at the top of your Maven 2 repository, and let me know if this
solves the problem for you?

[1] http://beaver.codehaus.org/~boba/rpm-plugin.zip

-Original Message-
From: Allison, Bob [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 23, 2005 13:36
To: Maven Users List
Subject: RE: RPM Plugin not cleaning its includes


I found the problem.  Now I just need to figure out a solution.  I'll
let you know when I get this figured out (probably over the weekend).

-Original Message-
From: Sena Gbeckor-Kove [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 23, 2005 11:07
To: Maven Users List
Subject: Re: RPM Plugin not cleaning its includes


Hi Bob,

We are trying to do the following :

 -- Install ${basedir}/src/main/bin/* at /usr/local/amf/bin
${basedir}/src/main/bin/*  -- /usr/local/amf/bin

-- Install ${basedir}/target/*.jar at /usr/local/amf/plugin/core/lib
${basedir}/target/*.jar  -- /usr/local/amf/plugin/core/lib

We are using the following mappings fragment having looked at your
suggestions regarding the filename elemnt and still the contents of
the first mapping turn when copying the contents for the second
mapping.


mappings
mapping
directory/usr/local/amf/bin/directory
filemode755/filemode
usernameroot/username
groupnamesystem/groupname
sources
source
locationsrc/main/bin/location
includes
include*/include
/includes
excludes
excludeCVS/exclude
excludeCVS/*/exclude
/excludes
/source
/sources
/mapping
mapping
   
directory/usr/local/amf/plugin/core/lib/directory
filemode755/filemode
usernameroot/username
groupnamesystem/groupname
sources
source
locationtarget/location
includes
include*.jar/include
/includes
excludes
excludeCVS/exclude
excludeCVS/*/exclude
exclude*/*/exclude
/excludes
/source
/sources
/mapping

Any ideas?
Thanks in advance
Regards



On 23/11/05, Allison, Bob [EMAIL PROTECTED] wrote:
 Well, I see a couple problems with your configuration.  As I read the
 two mappings, they should do the following:

 -- Install ${basedir}/src/main/bin/* at /usr/local (for example,
 ${basedir}/src/main/bin/myprog will be installed at /usr/local/myprog)

 -- Install ${basedir}/target/*.jar at /usr/local (for example,
 ${basedir}/target/myprog.jar will be installed at
/usr/local/myprog.jar)

 You are getting the two mappings muddled because they specify the same
 destination.  You will probably almost never need to specify the
 filename parameter.  Instead, the directory parameters should be
 specified as /usr/local/amf/bin and /usr/local/amf/plugin/core/lib.

 -Original Message-
 From: Sena Gbeckor-Kove [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 23, 2005 08:38
 To: users@maven.apache.org
 Subject: RPM Plugin not cleaning its includes


 Hi Bob,

 It appears that the RPM plugin cumulatively includes the contents of
 includes when dealing wiith mappings. For example, the following 2
 mappings cause thhe contents of the first  ampping, a bunch of scripts
 from the bin directory, to be copied into the next filename/
 specified amf/plugin/core/lib.

 Any ideas would be appreciated.

 Regards

  mappings
 mapping
 directory/usr/local/directory
 filenameamf/bin/filename
 filemode755/filemode
 usernameroot/username
 groupnamesystem/groupname
 sources
 source
 locationsrc/main/bin/location
 includes
 

Re: [M 1.1b1] Maven-Reports: Encoding Problems

2005-11-24 Thread Lukas Theussl
For this you probably have to set the maven.compile.encoding option of 
the java plugin.


HTH,
Lukas


Gisbert Amm wrote:

With the described workaround I face another problem:

In some of our sources there is code to replace non-ASCII characters 
like that:


for(int i=0; i  length; i++) {
char c = input.charAt(i);
switch(c) {
  case 'Ä': builder.append(Ae); break;
  case 'ä': builder.append(ae); break;
  case 'Ö': builder.append(Oe); break;
  case 'ö': builder.append(oe); break;
  case 'Ü': builder.append(Ue); break;
  case 'ü': builder.append(ue); break;
  case 'ß': builder.append(ss); break;
  ...
  default:  builder.append(c);
}

When I set the LANG variable to de_DE.utf8, the compiler finds \ufffd 
instead of Ä,ä,Ö,ö,Ü,Ü,ß and stops with a duplicate case label error.


Is there a way to get around this?

Thanks in advance for your help,
Gisbert Amm


Gisbert Amm wrote:

I finally found something I consider a workaround for the checkstyle 
report (I already use the 3.0-SNAPSHOT of the plugin) and the xdocs:


I'v changed the locale settings on my SuSE 9.1 system like that

export LANG=de_DE.utf8
export LC_CTYPE=de_DE.utf8

(setting of LC_CTYPE was necessary aswell)

and set the following Maven properties:

maven.docs.outputencoding=UTF-8
maven.xdoc.locale.default=de_DE.utf8

Now the German umlauts are displayed correctly within the checkstyle 
report and the documents generated out of the xdocs (like index.xml). 
However, other reports like Javadoc, Source Xref and Test Xref still 
suffer from wrong encoded characters.


Regards,
Gisbert Amm

Lukas Theussl wrote:


On Linux you also have to set the system encoding explicitly,
see 
http://maven.apache.org/maven-1.x/reference/plugins/xdoc/faq.html#problems-unicode 


Arnaud HERITIER wrote:


For checkstyle it fixes only the locale.
It doesn't help for the encoding :-(


-Message d'origine-
De : Lukas Theussl [mailto:[EMAIL PROTECTED] Envoyé : mercredi 
16 novembre 2005 00:03


For the checkstyle plugin this should be fixed in the current 
3.0-SNAPSHOT (see http://jira.codehaus.org/browse/MPCHECKSTYLE-39 
), but it might still be a problem for other plugins.


Gisbert, which plugins/reports do you have problems with?





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



Re: [m2] delicious bookmarks plugin preview available

2005-11-24 Thread Ashley Williams
Ok the delicious plugin is now attached to a jira issue and you can  
download it here:

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

---

Briefly to whet your appetite you run it after the site goal in order  
to add the links in the

site to the delicious account configured as a server in settings.xml:

 cd myproj
 mvn site org.codehaus.mojo:delicious-maven-plugin:index

It adds a few keywords automatically such as the artifact id so that  
you can easily

search for links related to your project artifact.

remember it shoutMODIFIES THE DELICIOUS ACCOUNT/shout. check out
the readme file next to the pom.xml. Additionally you can export your  
firefox/safari/netscape
bookmarks to delicious - not documented but the goal is easy to  
figure out.


---

If you think this is a good idea, or want to call lame, then please  
comment - maybe suggest

a better usecase for bringing delicious functionality to maven.

Thanks
- Ashley



On 24 Nov 2005, at 11:37, Ashley Williams wrote:


Hi Brett,

I thought I'd tackle the problem the other way round - provide the  
plugin
so it's there to play with and then maybe uses will become  
apparent, or not.


Just wondering where a good place to put it would be - is there a  
sandbox

for the sandbox??

My usage thoughts are:

* maven creates and deploys website
* website contains bookmarks
* delicious manages those bookmarks

So maybe when you join a project you have access to the project  
delicious
account and the various links are named and tagged in a standard  
maven way.

This would make it easier to find your way around any new project.

- Ashley

On 21 Nov 2005, at 21:59, Brett Porter wrote:


Sounds cool, but also can't think of a use right now :)

Most likely it would take the form of a report, listing bookmarks for
a given tag... will give it some more thought as to whether that  
might

be useful or not.

- Brett

On 11/22/05, Ashley Williams [EMAIL PROTECTED] wrote:

(hammer looks for nail)

Hi,

Just trying to find out if anybody would find it useful to have a
maven delicious bookmarks plugin. I've created a java module that
allows me to access various delicious functionality at the command
line - originally because I wanted a way to export my Safari
bookmarks, which are several hundred in number - and so thought I'd
wrap it into a maven plugin.

But after racking my brains I realized I couldn't think of a single
reason to mavenize this code - so just wondering if anyone might  
have

any bright ideas.

Not expecting much, but just wanted to be sure before I possibly
abandon the idea.

Thanks
- Ashley

 
-

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




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




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




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



Re: [m2] delicious bookmarks plugin preview available

2005-11-24 Thread Jason van Zyl

Ashley Williams wrote:
Ok the delicious plugin is now attached to a jira issue and you can  
download it here:

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


Why don't you put that at the mojo project where you have access? I'd be 
interested in taking a look at it. I'm in the process of trying to slurp 
any and all maven related doco and it would be cool to collect 
everyone's maven links for sharing.


--

jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

We all have problems. How we deal with them is a measure of our worth.

 -- Unknown

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



Re: [m2] should xalan have scope=provided?

2005-11-24 Thread Srepfler Srgjan
I haven't tried it but I believe that display tags wants jstl (further 
more it's strange it requires for jstl 1.0.2 with a groupid 
javax.servlet (?pom wrong?), I use taglibs with jstl 1.2 - could it be 
some sort of compatibility thing between JSP 1.0 and 2.0?), and since 
jstl uses has the xml tags for transformation in needs probably 
something like a jaxp parser. Now, what I'd want to know wasn't xalan 
added to the jdk api's?


Fabrizio Giustina wrote:


Hi Matt

On 11/24/05, Matt Raible [EMAIL PROTECTED] wrote:
 


I guess I'll just stick with my exclusion for now.
   



It's pretty easy to find out, try running mvn -X install and look for
xalan in the list that will be printed out during execution. I don't
see xalan included when I add a dependency to displaytag but maybe
that's due to a pom which has been fixed recently in the ibiblio
repository.

fabrizio

-
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] delicious bookmarks plugin preview available

2005-11-24 Thread Srepfler Srgjan
I don't know what your plugin does but I think it might be more usefull 
in a issue tracking system like jira or trac.


Ashley Williams wrote:

Ok the delicious plugin is now attached to a jira issue and you can  
download it here:

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

---

Briefly to whet your appetite you run it after the site goal in order  
to add the links in the

site to the delicious account configured as a server in settings.xml:

 cd myproj
 mvn site org.codehaus.mojo:delicious-maven-plugin:index

It adds a few keywords automatically such as the artifact id so that  
you can easily

search for links related to your project artifact.

remember it shoutMODIFIES THE DELICIOUS ACCOUNT/shout. check out
the readme file next to the pom.xml. Additionally you can export your  
firefox/safari/netscape
bookmarks to delicious - not documented but the goal is easy to  
figure out.


---

If you think this is a good idea, or want to call lame, then please  
comment - maybe suggest

a better usecase for bringing delicious functionality to maven.

Thanks
- Ashley





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



Re: [m2] delicious bookmarks plugin preview available

2005-11-24 Thread Ashley Williams
Can do that - didn't want to treat the sandbox as a free-for-all just  
because I have access!


On 24 Nov 2005, at 21:42, Jason van Zyl wrote:


Ashley Williams wrote:
Ok the delicious plugin is now attached to a jira issue and you  
can  download it here:

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


Why don't you put that at the mojo project where you have access?  
I'd be interested in taking a look at it. I'm in the process of  
trying to slurp any and all maven related doco and it would be cool  
to collect everyone's maven links for sharing.


--

jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

We all have problems. How we deal with them is a measure of our worth.

 -- Unknown

-
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] delicious bookmarks plugin preview available

2005-11-24 Thread Brett Porter
That's what its for - go play! :)

On 11/25/05, Ashley Williams [EMAIL PROTECTED] wrote:
 Can do that - didn't want to treat the sandbox as a free-for-all just
 because I have access!

 On 24 Nov 2005, at 21:42, Jason van Zyl wrote:

  Ashley Williams wrote:
  Ok the delicious plugin is now attached to a jira issue and you
  can  download it here:
  http://jira.codehaus.org/browse/MNG-1679
 
  Why don't you put that at the mojo project where you have access?
  I'd be interested in taking a look at it. I'm in the process of
  trying to slurp any and all maven related doco and it would be cool
  to collect everyone's maven links for sharing.
 
  --
 
  jvz.
 
  Jason van Zyl
  jason at maven.org
  http://maven.apache.org
 
  We all have problems. How we deal with them is a measure of our worth.
 
   -- Unknown
 
  -
  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] delicious bookmarks plugin preview available

2005-11-24 Thread Ashley Williams

Can you expand on this?

On 24 Nov 2005, at 22:22, Srepfler Srgjan wrote:

I don't know what your plugin does but I think it might be more  
usefull in a issue tracking system like jira or trac.


Ashley Williams wrote:

Ok the delicious plugin is now attached to a jira issue and you  
can  download it here:

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

---

Briefly to whet your appetite you run it after the site goal in  
order  to add the links in the

site to the delicious account configured as a server in settings.xml:

 cd myproj
 mvn site org.codehaus.mojo:delicious-maven-plugin:index

It adds a few keywords automatically such as the artifact id so  
that  you can easily

search for links related to your project artifact.

remember it shoutMODIFIES THE DELICIOUS ACCOUNT/shout. check out
the readme file next to the pom.xml. Additionally you can export  
your  firefox/safari/netscape
bookmarks to delicious - not documented but the goal is easy to   
figure out.


---

If you think this is a good idea, or want to call lame, then  
please  comment - maybe suggest

a better usecase for bringing delicious functionality to maven.

Thanks
- Ashley





-
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: MNG-1398: How to obtain an updated version of the maven-javadoc-plugin

2005-11-24 Thread Brett Porter
http://maven.apache.org/guides/development/guide-testing-development-plugins.html

The latest snapshot is up there.

Cheers,
Brett

On 11/25/05, David Sag [EMAIL PROTECTED] wrote:


 Yeah I have been meaning to sort that out but it's taken  low priority
 over other things here.  Many thanks to those of you who reacted so fast and
 sent me a working plugin tho - now my demo is looking great.

 Kind regards,
 Dave Sag






 Wim Deblauwe [EMAIL PROTECTED] wrote on 24-11-2005 15:14:43:

  Tip to get svn to work through a firewall: use https instead of http. It
  worked for me.
 
  regards,
 
  Wim
 
  2005/11/24, David Sag [EMAIL PROTECTED]:
  
  
   I would like it too.  We have a first presentation tomorrow of the
 maven 2
   stuff we have been doing and it is a little embrarrasing to have no
 javadocs
   available.
  
   I know we *could* build it from SVN but honestly I'd just rather
 someone
   send me a zipped up plugin I can just drop in manually.  We don't use
 SVN at
   all in here (much as I'd like to) and I am yet to be able to get SVN
 to work
   thru our firewalls.
  
   So if someone has a newer build of the javadoc plugin could they
 please
   email or skype me a zip file and i'll drop it into my repository
 manually.
  
   Kind regards,
   Dave Sag
  
  
  
  
  
  
   Jochen Wiedmann [EMAIL PROTECTED] wrote on 09-11-2005
   12:41:44:
  
   
Hi,
   
sorry for asking the stupid question: I am one of the users who
 stumbled
  
over
   
 MNG-1398: site report generates an 'empty'
   target/site/apidocs/index.html
   
I see that a fixed version of the plugin will be available in Maven
2.0.1. Very nice. But do I actually have to wait for that version?
 Or,
do I have to rebuild Maven from SVN?
   
Regards,
   
Jochen
   
   
   
 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
  



Transitive dependency without version conflict

2005-11-24 Thread Alexis Agahi

Hi,

I've developed a basic application bootstrap able to fetch dependency 
with transitivity without version conflict.


For example an application with such dependency :
app-1.0
 +-- depA-1.0
 +-- depB-1.0—depA-2.0
is able to use the depA-1.0 on classloader app-1.0 classloader context 
and depA-2.0 on depB-1.0 classloader context. depA 1.0  2.0 can coexist 
in same application.

This solve many transitive dependency conflicts headaches.

Using this bootstrap code, an application could be lauched with cl
java -jar bootstrap.jar groupId:artefact:version class:method
each dependency required for application run would be loaded recursively 
with strict classloader encapsulation.


I could also easily developpe a maven2 plugin to launch application.

I would like to know if there is any interest for such feature or if it 
already exists.


Regards

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



Re: [m2] Missing properties in schemaexport

2005-11-24 Thread Brett Porter
There is currently no release of it.

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


On 11/25/05, Rubén Barroso [EMAIL PROTECTED] wrote:
 Any idea? :S

 2005/11/24, Rubén Barroso [EMAIL PROTECTED]:
  I'm using hibernate 3, so I'd like to use that plugin version (thanks
  for your support :D)
 
  2005/11/24, Edwin Punzalan [EMAIL PROTECTED]:
  
   Which one are you using?  hibernate-maven-plugin or
   hibernate3-maven-plugin ?
  
  
  
   Rubén Barroso wrote:
  
   Could you say me how to install  configure it? I can see it in the
   plugin matrix, but I'm not able to find the steps to configure it.
   
   Thanks again.
   
   2005/11/24, Edwin Punzalan [EMAIL PROTECTED]:
   
   
   Have you tried using the hibernate plugin directly instead of calling
   ant-run to call hibernate ?
   
   
   Rubén Barroso wrote:
   
   
   
   Hello, I've been trying to use hibernate plugin in maven 2, but it
   doesn't work me. I've tried to achieve the same goal (schemaexport)
   with the following code:
   
   plugin
groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-antrun-plugin/artifactId
 executions
execution
phasepackage/phase
configuration
   tasks
 echodialect: ${hibernate.dialect}/echo
 taskdef name=schemaexport
   
classname=org.hibernate.tool.hbm2ddl.SchemaExportTask
 classpath
 path 
refid=maven.dependency.classpath/
 /classpath
 /taskdef
 mkdir dir=target/schema/
 schemaexport
 quiet=no
 text=no
 drop=no
 delimiter=;
 
output=target/schema/create-tables.sql
 fileset dir=target/classes 
includes=**/*.hbm.xml/
 /schemaexport
   
/tasks
  /configuration
  goals
goalrun/goal
  /goals
/execution
  /executions
/plugin
   
   When I execute 'mvn package', it says me that I must set the property
   'hibernate.dialect'. On the other hand, echo works fine!!! Any
   ideas??
   
   Thanks in advance
   
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
   
   
   
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
   
   
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
   
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 

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



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



Re: use of ArtifactHandler

2005-11-24 Thread Brett Porter
Please file a JIRA on the multi-project vs single project, with some
details, we'll look into it. It could be a bug.

That said, I think some people have been contributing similar
functionality to the war plugin itself - might be worth investigating.

- Brett

On 11/24/05, Nigel Magnay [EMAIL PROTECTED] wrote:
 I think the component.xml is correct (at end) - it certainly looks the
 same as the plexus examples.

 My project that uses this plugin works entirely correctly, *unless* it
 is a part of a multiproject build, in which case it uses the wrong
 extension. I don't know why this would be the case unless I've missed
 something?

 In same directory:
 W:\kms\dev\apps\kmsmvn install
 [INFO] Scanning for projects...
 [INFO] 
 
 [INFO] Building KMS Application Code
 [INFO]task-segment: [install]
 [INFO] 
 
 [INFO] [cargo2:uberwar]
 [INFO] [install:install]
 [INFO] Installing W:\1244 - Knowledge Management System
 (KMS)\dev\apps\kms\target\kms-2.0-SNAPSHOT.war to C:\Documents and
 Settings\nig
 el.magnay\.m2\repository\com\cswgroup\kms\kms\2.0-SNAPSHOT\kms-2.0-SNAPSHOT.war
 [INFO] 
 
 [INFO] BUILD SUCCESSFUL
 [INFO] 
 
 [INFO] Total time: 1 minute 9 seconds
 [INFO] Finished at: Thu Nov 24 11:46:53 GMT 2005
 [INFO] Final Memory: 3M/6M
 [INFO] 
 

 As a part of a multiproject:
 
 [INFO] 
 
 [INFO] Building KMS Application Code
 [INFO]task-segment: [install]
 [INFO] 
 
 [INFO] [cargo2:uberwar]
 [INFO] [install:install]
 [INFO] Installing W:\1244 - Knowledge Management System
 (KMS)\dev\apps\kms\target\kms-2.0-SNAPSHOT.war to C:\Documents and
 Settings\nig
 el.magnay\.m2\repository\com\cswgroup\kms\kms\2.0-SNAPSHOT\kms-2.0-SNAPSHOT.uberwar
 

 Config of plugin:
 component-set
   components
 component
   roleorg.apache.maven.lifecycle.mapping.LifecycleMapping/role
   role-hintuberwar/role-hint
   
 implementationorg.apache.maven.lifecycle.mapping.DefaultLifecycleMapping/implementation
   configuration
 phases
   package
 org.codehaus.cargo.maven2:cargo-maven2-plugin:uberwar
   /package
   
 installorg.apache.maven.plugins:maven-install-plugin:install/install
   
 deployorg.apache.maven.plugins:maven-deploy-plugin:deploy/deploy
 /phases
   /configuration
 /component

 component
   roleorg.apache.maven.artifact.handler.ArtifactHandler/role
   role-hintuberwar/role-hint
   
 implementationorg.apache.maven.artifact.handler.DefaultArtifactHandler/implementation
   configuration
 typeuberwar/type
  extensionwar/extension
 packaginguberwar/packaging
   /configuration
 /component
   /components
 /component-set

 On 11/23/05, Brett Porter [EMAIL PROTECTED] wrote:
  I'm losing track of this in all the bits and pieces as to what you really 
  have.
 
  I'd suggest looking at the Plexus plugin and comparing the
  components.xml to your own:
  http://svn.plexus.codehaus.org/trunk/plexus-maven-plugin/
 
  HTH,
  Brett
 
  On 11/24/05, Nigel Magnay [EMAIL PROTECTED] wrote:
   Ah - I have found out why I'm having trouble - my configuration looks like
  
   configuration
   extensionwar/extension
   typeuberwar/type
 /configuration
  
   This works correctly when I build the project that uses the plugin.
   However, if the project that uses the plugin is built as a part of a
   multiproject build, it fails, using the (incorrect) extension of
   uberwar again. Also in the trace I get
   [ERROR] Nonexistent component:
   org.apache.maven.lifecycle.mapping.LifecycleMappinguberwar
  
   Which seems to not be correct, because it must have read this mapping
   in order to execute the plugin (which it does, because I can see this
   in the output that it is calling my plugin correctly.
  
   Is this a bug, or is there something else I need to set ?
  
  
   On 11/18/05, Brett Porter [EMAIL PROTECTED] wrote:
As I said, your type should be uberwar - not war (it needs to match
the role-hint, as
stated in the docs).
   
On 11/18/05, Nigel Magnay [EMAIL PROTECTED] wrote:
 I have an 'uberwar' mojo; it's components.xml has a lifecyclemapping
 and an artifacthandler definition, both with the role-hint of uberwar.

 My project that uses this mojo has a pom.xml with
 packaginguberwar/packaging

 The lifecycle is working correctly, my mojo is being called in the
 

Re: [m2] dependency graph

2005-11-24 Thread Brett Porter
Yes, its planned. We just have a very long todo list :)

It is quite simple, as the artifact resolver has a listener with nodes
that can be used to get all the information, once a way is provided to
hook into the process.

I think some others have worked on some related experiements (Joakim?)

Cheers,
Brett

On 11/25/05, Wim Deblauwe [EMAIL PROTECTED] wrote:
 Hi,

 it would be really cool to have a plugin that shows all the dependencies of
 your project in a graph. This graph could be in SVG or png or whatever. Is
 there already such a plugin or plans for such a plugin? What graphing
 library do you think would be best to implement this kind of thing (must be
 open source ofcourse)?

 With the maven 2 dependency mechanism, this can't be that hard. Get your
 dependencies, then get the dependencies of your dependencies and so on. Put
 all that in some kind of model that some library can turn into a nice graph
 et voila! :)

 regards,

 Wim



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



Re: mvn archetype:create seems to not work... did before...

2005-11-24 Thread Brett Porter
that archetype version doesn't exist. Try 1.0-alpha-3, or remove it altogether.

- Brett

On 11/25/05, Peter L. Berghold [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1




 OK:  this worked in the morning (I think) but doesn't seem to work
 now...  What is going on or what am I having a brain fart over?

 - - 8 snip 8 -

  mvn archetype:create -DarchitypeGroupId=agilitystewards.org
 - -DarchetypeArtifactId=maven-archetype-webapp -DarchetypeVersion=1.0
 - -DgroupId=agilitystewards.org -DartifactId=agilitystewards.org

 Yields:

  [INFO] Defaulting package to group ID: agilitystewards.org
  Downloading: 
  http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-archetype-webapp/1.0/maven-archetype-webapp-1.0.jar
  [WARNING] Unable to get resource from repository central 
  (http://repo1.maven.org/maven2)
  [INFO] 
  
  [ERROR] BUILD ERROR
  [INFO] 
  
  [INFO] Failed to resolve artifact.
 
  GroupId: org.apache.maven.archetypes
  ArtifactId: maven-archetype-webapp
  Version: 1.0
 
  Reason: Unable to download the artifact from any repository
org.apache.maven.archetypes:maven-archetype-webapp:1.0:jar
 
  from the specified remote repositories:
central (http://repo1.maven.org/maven2)
 
 
  [INFO] 
  
  [INFO] For more information, run Maven with the -e switch
  [INFO] 
  
  [INFO] Total time: 4 seconds
  [INFO] Finished at: Thu Nov 24 12:43:26 EST 2005
  [INFO] Final Memory: 4M/7M
  [INFO] 
  



 Thoughts?




 - --
 
 Peter L. Berghold [EMAIL PROTECTED]
 Those who fail to learn from history are condemned to repeat it.
 AIM: redcowdawgYahoo IM: blue_cowdawg  ICQ: 11455958
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.3 (GNU/Linux)
 Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

 iD8DBQFDhfxCUM9/01RIhaARAsKuAJ91OZzzyvVpJRGExxvcWY03qgHBnACfYa82
 WcnCPA5cpCmXBQXcV7ROiGg=
 =ElRb
 -END PGP SIGNATURE-



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

2005-11-24 Thread Brett Porter
try ${project.artifact.resolvedVersion}

Cheers,
Brett

On 11/22/05, Duane Homick [EMAIL PROTECTED] wrote:
 Is there a way to determine what version of an artifact was deployed after 
 the deploy step runs.  ie. ${project.build.finalName} still contains 
 sample-1.0.0-SNAPSHOT and not the version that was released (ie. 
 sample-1.0.0--20051121.162713-2.jar).  Is there any variable set after the 
 deploy step to help me determine what was just deployed to the remote 
 repository?

 Thanks
 Duane Homick
 Sandvine Inc.

 -
 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] questions about site creation

2005-11-24 Thread Brett Porter
Can you file feature/bugs for both of these?

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

On 11/24/05, - - [EMAIL PROTECTED] wrote:
 1. [m2 2.0] How can i put static html pages without the left menu disappears
 ?
 (if i put statics pages in resources folder, it's ok but the menu
 disappears)
 /apt
 /xdoc
 /fml

 /html   ???
 /xhtml ???

 with maven 1 , it was possible to put html files and do :  html - xdoc -
 html
 same way with m2 ?

 2. Character encoding problem
 i put this in super pom
  plugin
   artifactIdmaven-site-plugin/artifactId
   configuration
 outputEncodingISO-8859-1/outputEncoding
   /configuration
 /plugin
 and ?xml version=1.0 encoding=ISO-8859-1? in my xdoc , and encode
 characters in apt documents with \xHexaValue

 it seems a bug, characters encoding failed.

 Thx

 _
 MSN Hotmail : antivirus et antispam gratuits !
 http://www.imagine-msn.com/hotmail/default.aspx?locale=fr-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: [M2] Xalan and proxy settings

2005-11-24 Thread Brett Porter
I think you need to set the Java system properties (Maven only does
this for the life of its own connection from its settings, then
restores the prior ones).

- Brett

On 11/24/05, Jose Gonzalez Gomez [EMAIL PROTECTED] wrote:
 Is there anybody out there that's using Xalan as a dependency and
 that's getting stylesheets from the Internet through a proxy? I would
 like to do it, but I don't know how to make Xalan to use a proxy or
 even read the proxy information from the Maven settings files.

 TIA, best regards
 Jose

 -
 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] Xalan and proxy settings

2005-11-24 Thread Brett Porter
I should say to access the proxy and other settings from a plugin,
create a variable with the expression:

${settings}

On 11/25/05, Brett Porter [EMAIL PROTECTED] wrote:
 I think you need to set the Java system properties (Maven only does
 this for the life of its own connection from its settings, then
 restores the prior ones).

 - Brett

 On 11/24/05, Jose Gonzalez Gomez [EMAIL PROTECTED] wrote:
  Is there anybody out there that's using Xalan as a dependency and
  that's getting stylesheets from the Internet through a proxy? I would
  like to do it, but I don't know how to make Xalan to use a proxy or
  even read the proxy information from the Maven settings files.
 
  TIA, best regards
  Jose
 
  -
  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] Question about Dependency version rules and a couple suspect logging bugs.

2005-11-24 Thread Brett Porter
I think the reporting of removed then selected was fixed in svn.

1) nearer is correct, the default rule is to use the nearest declared
version (number of transitivie hops to the pom).

2) as above, we'll be introducing more in future (we have newest in
there, but there's no way to enable it in 2.0)

3) yes, I think it is fixed.

On 11/23/05, Paul Spencer [EMAIL PROTECTED] wrote:
 The following message is displayed during the by mvn -X compile.

 [DEBUG] commons-collections:commons-collections:jar:2.1 (removed -
 nearer found: 3.0)
 [DEBUG] commons-collections:commons-collections:jar:2.1 (selected
 for compile)
 1) Should the word be newer instead of nearer in the first debug
 line? Is this a logging bug?

 2) What are the rules around which version is select when their are
 multiple version for an artifact?

 3) The classpath element contains commons-collection 3.0, not 2.1 as
 stated by the second debug line.  Is this a logging bug?

 Paul Spencer

 -
 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] Multiproject and ${user.dir} (was: [jira] Closed: (MNG-1570) Testing from a parent POM fails ...)

2005-11-24 Thread Brett Porter
On 11/23/05, Jörg Schaible [EMAIL PROTECTED] wrote:
  Maven 2.x is not currently
  forking, so relative paths are correctly relative to user.dir.

 Any plans for it? This seems quite essential. For our company this is a 
 show-stopper and as David Jackman explained in his posting it is also 
 essential if you have JNI bindings. I won't be able to convert the project 
 for the swt component of pico/nano too.

Someone took a stab at implementing it and then seems to have
disappeared from the list, so we're hoping to pick it up soon.

- Brett

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



  1   2   >