Re: Support for mojos written in Ant

2005-12-22 Thread Nitko2

Chris, thank you for your answer.
I know about antrun, and I've been using it. But it isn't what I need. I would like to write plugins 
using ant(mojos written in Ant), not execute ant build files.

I can't find anything about that here
http://maven.apache.org/guides/mini/guide-using-ant.html

Filip




Chris Berry wrote:

Hi Filip,
I think your best bet might be to checkout the Plugin from SVN. IMHO, this
is the best way to get the full picture as things are still in flux -- and
the docs will likely not have caught up with the code.  Of course, you'll
need a Subversion Client (I use TortoiseSVN)

AFAIK, this should work::
svn co
https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-antrun-plugin

Some info here::
http://maven.apache.org/guides/mini/guide-using-ant.html

And several posts on this list
Cheers,
-- Chris

On 12/22/05, Nitko2 <[EMAIL PROTECTED]> wrote:


Hi,
John Casey in 2.0.1 announcement mail said that 2.0.1 includes support for
mojos written in Ant. Can
someone point
me to some documentation or JIRA issue or anything that would be useful
info about this.

Thanks,
Filip


-
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] where to download jta-1.0.1b.jar as mave.org timesout?

2005-12-22 Thread Alexandre Poitras
Usually, what I do is just use the geronimo implementations instead of
Sun's one. Unless you use maven-proxy, you will have to reproduce the
installation on every developper desktop working with maven.


On 12/22/05, Yann Le Du <[EMAIL PROTECTED]> wrote:
> My bad,
> jar cvf jta-1.0.1B.jar javax
>
> --
> Yann
>
> 2005/12/22, Yann Le Du <[EMAIL PROTECTED]>:
> >
> > Unzip it to tmp, then create a jar :
> > jar -cvf jta-1.0.1B.jar tmp
> >
> > --
> > Yann
> >
> > 2005/12/22, Mick Knutson <[EMAIL PROTECTED]>:
> > >
> > > it only seems to offer the classes in a zip file, not the jar...
> > >
> > > 
> > >
> > > Thanks
> > > Mick Knutson
> > >
> > > http://www.BASELogic.com
> > > http://www.MickKnutson.com
> > >
> > > MSN Messenger: [EMAIL PROTECTED]
> > >
> > > 
> > >
> > > - Original Message -
> > > From: "dan tran" <[EMAIL PROTECTED] >
> > > To: "Maven Users List" ; "Mick Knutson"
> > > <[EMAIL PROTECTED] >
> > > Sent: Thursday, December 22, 2005 8:43 AM
> > > Subject: Re: [m2] where to download jta-1.0.1b.jar as mave.org timesout?
> > >
> > >
> > > http://java.sun.com/products/jta/
> > >
> > > use that link to download and install it in your local repo or internal
> > > remote repo
> > >
> > > -D
> > >
> > >
> > > On 12/22/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
> > > >
> > > > where to download jta-1.0.1b.jar as mave.org timesout?
> > > >
> > > >
> > > >
> > > > Downloading:
> > > >
> > > http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar
> > > > [INFO]
> > > >
> > > 
> > > > [ERROR] BUILD ERROR
> > > > [INFO]
> > > >
> > > 
> > > > [INFO] Failed to resolve artifact.
> > > >
> > > > Error transferring file
> > > > javax.transaction:jta:jar:1.0.1B
> > > >
> > > > from the specified remote repositories:
> > > > central (http://repo1.maven.org/maven2)
> > > > Path to dependency:
> > > >1) com.wamu.projects:common-jar:jar:1.0
> > > >2) org.springframework:spring-mock:jar:1.2.6
> > > >3) org.springframework:spring-jdbc:jar:1.2.6
> > > >4) org.springframework:spring-dao:jar:1.2.6
> > > >5) javax.transaction:jta:jar:1.0.1B
> > > >
> > > >
> > > >
> > > > Caused by I/O exception: Connection timed out: connect
> > > >
> > > >
> > > >
> > > >
> > > 
> > > > Thanks
> > > > Mick Knutson
> > > >
> > > > http://www.BASELogic.com
> > > > http://www.MickKnutson.com
> > > >
> > > > MSN Messenger: [EMAIL PROTECTED]
> > > >
> > > >
> > > 
> > >
> > > >
> > > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>
>


--
Alexandre Poitras
Québec, Canada

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



Generating correct AspectJ project

2005-12-22 Thread Joe

Hi all,

I would like to generate an aspectj project with maven eclipse plugin.
I have seen the patch attached at MPECLIPSE-76 but I think it was not done for 
1.10 version.


Can you give me the correct patch for 1.10 version or better correct 
MPECLIPSE-76 for version 1.11 ?


Many thanks

Joel

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



Re: Reports: Where are the docs?

2005-12-22 Thread Allan Ramirez

Hi Lee,

Have a look in
http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-HowdoIconvertmy%3Creports%3EfromMaven1toMaven2%3F

just replace the value in  element to the report plugin you 
want to generate

i.e.


  
   
   org.apache.maven.plugins
   maven-javadoc-plugin
   
  
  
   
   org.apache.maven.plugins
   maven-checkstyle-plugin
   
  


junit test report was renamed to surefire report plugin and currently 
hosted at mojo codehaus


  
   
   org.codehaus.mojo
   surefire-report-maven-plugin
   
  

You may also refer to this page for more plugins at codehaus
http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-Whereistheotherplugin%3F

-allan

Lee Meador wrote:


I want to generate interesting reports.

All I have been able to find says that you can get some reports by adding
this


   
   
   org.apache.maven.plugins
   maven-project-info-reports-plugin
   
  


to the POM.

I did that and got a dummy report with nothing interesting in it.

Here are the main topics that look like you put some info somewhere to make
it appear in the site docs. Maybe someone will fill in some doc links or
mention where they go.

Document Description
Continuous Integration
Dependencies
Issue Tracking
Mailing Lists
Project License
Project Team
Source Repository

How do I get things (that I remember from a previous project with Maven 1)
like:

javadoc
checkstyle report
junit test results
lists of recent changes in the source repository

Finally, I am generating an EAR with a WAR (or two) and some EJBs and some
other JAR files in it. All told there are about 10 "parts" each with its own
POM and a parent pom for building the whole thing. It builds and the report
stuff seems to get built for each of the subprojects.

Is the parent going to have stuff consolidated from the children or are
there going to be links in there somewhere? I'm not sure what I'm going to
end up with.

Really, I have searched the archives of this list and almost all I can find
is folks complaining about the surefire report plugin not working. But I
can't even get it to find that plugin in the central repository.

And the docs seem to be missing something that I can't seem to see. I have
site docs but nothing is in them.

-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]

 




No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.3/209 - Release Date: 12/21/2005
 



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

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

2005-12-22 Thread Brett Porter
We're working on a cohesive solution in Maven 2.1 that balances out
the principle of least surprise, reproducibility and ease of use.

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

- Brett

On 12/23/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
> OK, but I still have the version declared in the following tags in each
> module:
>
>
>   com.wamu
>   projects
>   1.0
>
>
> I want to not have to update each module when I increment the version.
>
> This worked fine:
> 
>4.0.0
>com.wamu
>
>projects
>
>
> 
> Thanks
> Mick Knutson
>
> http://www.BASELogic.com
> http://www.MickKnutson.com
>
> MSN Messenger: [EMAIL PROTECTED]
> 
>
> - Original Message -
> From: "Rinku" <[EMAIL PROTECTED]>
> To: "Maven Users List" ; "Mick Knutson"
> <[EMAIL PROTECTED]>
> Sent: Thursday, December 22, 2005 11:20 AM
> Subject: Re: [m2] how do I make the modules use the same version as the
> parent pom?
>
>
> >
> > You can drop the  tag for your module specific pom but you will
> > need to have a  setup for your modules but note that you will need
> > to specify a  there, something like this :
> >
> > 
> >maven-plugin-parent
> >org.apache.maven.plugins
> >2.0.1
> >  
> >
> > You module should then pick up the version off it if its there's none
> > provided.
> >
> > HTH,
> >
> > Rahul
> >
> >
> > - Original Message -
> > From: "Mick Knutson" <[EMAIL PROTECTED]>
> > To: "Maven Users List" 
> > Sent: Friday, December 23, 2005 8:11 AM
> > Subject: [m2] how do I make the modules use the same version as the parent
> > pom?
> >
> >
> > how do I make the modules use the same version as the parent pom?
> >
> >
> > 
> > Thanks
> > Mick Knutson
> >
> > http://www.BASELogic.com
> > http://www.MickKnutson.com
> >
> > MSN Messenger: [EMAIL PROTECTED]
> > 
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



jars in ear level for war

2005-12-22 Thread Kevin Galligan
Is there a way to simply reference jar files in the ear package rather 
than including them directly in the war lib directory?  The ejb plugin 
will add dependent jars to the manifext class-path entry with the 
following config...



maven-ejb-plugin



true


true




Essentially I'd like to do the same with the war.  Just add the 
dependent jars to the manifest instead of the lib dir.


Right now I have the dependent jars set to 'provided', and force the ear 
to include them.  This is ok, except that the war plugin does not 
include these in the class-path (I put in a config similar to above, but 
there's no difference).


Any suggestions on how this should work?

Thanks in advance,
-Kevin

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



Re: Reports: Where are the docs?

2005-12-22 Thread Lee Meador
This is an M2 question.

On 12/22/05, Lee Meador <[EMAIL PROTECTED]> wrote:
>
> I want to generate interesting reports.
>
> All I have been able to find says that you can get some reports by adding
> this
>
> 
> 
> 
>  org.apache.maven.plugins
> maven-project-info-reports-plugin
> 
>
> 
>
> to the POM.
>
> I did that and got a dummy report with nothing interesting in it.
>
> Here are the main topics that look like you put some info somewhere to
> make it appear in the site docs. Maybe someone will fill in some doc links
> or mention where they go.
>
> Document Description
> Continuous Integration
> Dependencies
> Issue Tracking
> Mailing Lists
> Project License
> Project Team
> Source Repository
>
> How do I get things (that I remember from a previous project with Maven 1)
> like:
>
> javadoc
> checkstyle report
> junit test results
> lists of recent changes in the source repository
>
> Finally, I am generating an EAR with a WAR (or two) and some EJBs and some
> other JAR files in it. All told there are about 10 "parts" each with its own
> POM and a parent pom for building the whole thing. It builds and the report
> stuff seems to get built for each of the subprojects.
>
> Is the parent going to have stuff consolidated from the children or are
> there going to be links in there somewhere? I'm not sure what I'm going to
> end up with.
>
> Really, I have searched the archives of this list and almost all I can
> find is folks complaining about the surefire report plugin not working. But
> I can't even get it to find that plugin in the central repository.
>
> And the docs seem to be missing something that I can't seem to see. I have
> site docs but nothing is in them.
>
> -- Lee Meador
> Sent from gmail. My real email address is [EMAIL PROTECTED]




--
-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]


Reports: Where are the docs?

2005-12-22 Thread Lee Meador
I want to generate interesting reports.

All I have been able to find says that you can get some reports by adding
this




org.apache.maven.plugins
maven-project-info-reports-plugin

   


to the POM.

I did that and got a dummy report with nothing interesting in it.

Here are the main topics that look like you put some info somewhere to make
it appear in the site docs. Maybe someone will fill in some doc links or
mention where they go.

Document Description
Continuous Integration
Dependencies
Issue Tracking
Mailing Lists
Project License
Project Team
Source Repository

How do I get things (that I remember from a previous project with Maven 1)
like:

javadoc
checkstyle report
junit test results
lists of recent changes in the source repository

Finally, I am generating an EAR with a WAR (or two) and some EJBs and some
other JAR files in it. All told there are about 10 "parts" each with its own
POM and a parent pom for building the whole thing. It builds and the report
stuff seems to get built for each of the subprojects.

Is the parent going to have stuff consolidated from the children or are
there going to be links in there somewhere? I'm not sure what I'm going to
end up with.

Really, I have searched the archives of this list and almost all I can find
is folks complaining about the surefire report plugin not working. But I
can't even get it to find that plugin in the central repository.

And the docs seem to be missing something that I can't seem to see. I have
site docs but nothing is in them.

-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]


RE: how to copy all dependencies

2005-12-22 Thread Brian E. Fox
Yes. I already have code from another plugin to do that. I can put that
in tonight. 

-Original Message-
From: dan tran [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 22, 2005 6:21 PM
To: Maven Users List
Subject: Re: how to copy all dependencies

we could enhance dependency-maven-plugin at mojo's sandbox to do that
job

-Dan



On 12/22/05, Christopher Cobb <[EMAIL PROTECTED]> wrote:
>
> I want to get a list of all (transitive) dependencies for a project.
>
>
>
> Is there some API somewhere I could hook into?
>
>
>
> I need to copy all those jar files into my lib directory.
>
>
>
>
>
>
> -
> Attention:
> Any views expressed in this message are those of the individual 
> sender, except where the message states otherwise and the sender is 
> authorized to state them to be the views of any such entity. The 
> information contained in this message and or attachments is intended 
> only for the person or entity to which it is addressed and may contain

> confidential and/or privileged material.  If you received this in 
> error, please contact the sender and delete the material from any 
> system and destroy any copies.
>
>



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



Re: how to copy all dependencies

2005-12-22 Thread dan tran
we could enhance dependency-maven-plugin at mojo's sandbox to do that job

-Dan



On 12/22/05, Christopher Cobb <[EMAIL PROTECTED]> wrote:
>
> I want to get a list of all (transitive) dependencies for a project.
>
>
>
> Is there some API somewhere I could hook into?
>
>
>
> I need to copy all those jar files into my lib directory.
>
>
>
>
>
>
> -
> Attention:
> Any views expressed in this message are those of the individual sender,
> except where the message states otherwise and the sender is authorized
> to state them to be the views of any such entity. The information
> contained in this message and or attachments is intended only for the
> person or entity to which it is addressed and may contain confidential
> and/or privileged material.  If you received this in error, please
> contact the sender and delete the material from any system and destroy
> any copies.
>
>


Re: Installation problem

2005-12-22 Thread Allan Ramirez

Hi,

You may refer to the FAQ page,
http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-HowdoIresolvethe%27%3Cpluginname%3Edoesnotexistornovalidversion%27error%3F

Hope this helps

-allan

Abbs, David A wrote:


I am installing maven 2.0.1 on Linux red hat running on a sun machine with java 
1.4.2 installed and configured.

My JAVA_HOME environment is set correctly and the maven install directory added 
to my PATH variable

When I do mvn --version it gives me

Maven version: 2.0.1

Which looks fine.

However when I then try to run

mvn archetype:create -DgroupId=3D3Dcom.mycompany.app = -DartifactId=3D3Dmy-app 
To create myself a project I get this

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central [WARNING] 
repository metadata for: 'org.apache.maven.plugins' could not be retrieved from 
repository: central due to an error: Error transferring file [INFO] Repository 
'central' will be blacklisted [INFO]


[ERROR] BUILD ERROR
[INFO]


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


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


[INFO] Total time: < 1 second
[INFO] Finished at: Thu Dec 22 16:28:52 GMT 2005 [INFO] Final Memory:
1M/2M [INFO]

-


Any help would be very much appreciated

David Abbs


David Abbs
EDS - Court Services Account
UKNMSC
100 Napier Street,
Sheffield, S11 8HD

( Phone:+1-0114 291 1338)
(Mobile: 07765028732)
+ mailto:[EMAIL PROTECTED]



 




No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.3/209 - Release Date: 12/21/2005
 



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

Re: Installation problem

2005-12-22 Thread Lee Meador
It looks like it couldn't get to the repository. Perhaps you have some sort
of proxy or other what-not that restricts access.

Setting up a proxy is explained (sort of) at:

http://maven.apache.org/guides/mini/guide-proxies.html

On 12/22/05, Abbs, David A <[EMAIL PROTECTED]> wrote:
>
> I am installing maven 2.0.1 on Linux red hat running on a sun machine with
> java 1.4.2 installed and configured.
>
> My JAVA_HOME environment is set correctly and the maven install directory
> added to my PATH variable
>
> When I do mvn --version it gives me
>
> Maven version: 2.0.1
>
> Which looks fine.
>
> However when I then try to run
>
> mvn archetype:create -DgroupId=3D3Dcom.mycompany.app =
> -DartifactId=3D3Dmy-app To create myself a project I get this
>
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO] org.apache.maven.plugins: checking for updates from central
> [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be
> retrieved from repository: central due to an error: Error transferring file
> [INFO] Repository 'central' will be blacklisted [INFO]
> 
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> 
> [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does
> not exist or no valid version could be found [INFO]
> 
> 
> [INFO] For more information, run Maven with the -e switch [INFO]
> 
> 
> [INFO] Total time: < 1 second
> [INFO] Finished at: Thu Dec 22 16:28:52 GMT 2005 [INFO] Final Memory:
> 1M/2M [INFO]
> 
> -
>
>
> Any help would be very much appreciated
>
> David Abbs
>
>
> David Abbs
> EDS - Court Services Account
> UKNMSC
> 100 Napier Street,
> Sheffield, S11 8HD
>
> ( Phone:+1-0114 291 1338)
> (Mobile: 07765028732)
> + mailto:[EMAIL PROTECTED]
>
>
>
>


--
-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]


M2 changelog plugin w/ CVS (not SVN)

2005-12-22 Thread Darren Hartford
Hey all,
I'm trying to use the maven-changelog-plugin for Maven2 version
2.0-beta-1 without success against a CVS SCM. Most of the examples I
have seen have been with SVN, and I need this to work with CVS. I'm
using a known SCM connection string that works with the Maven1-version
of changelog plugin.

Of note, the -X debug shows the URL for the lookup:
[DEBUG]   (f) scmUrl =
http://cvs.mycomp.blah/cgi-bin/viewcvs.cgi/MYPROJECT/?root=project1

Any ideas please?

-D

Relevant pom.xml
===

 
scm:cvs:pserver:cvs.mycomp.blah:/cvsroot/project1:MYPROJECT<
/connection>

http://cvs.mycomp.blah/cgi-bin/viewcvs.cgi/MYPROJECT/?root=project1



...


  org.codehaus.mojo
  changelog-maven-plugin
  2.0-beta-1

===

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



Presentation on Maven 2

2005-12-22 Thread Franck de Bruijn
Hi,

I gave a presentation on Maven 2 for the yearly Java conference held within
our company. The slides are available at:
http://www.bloggingaboutjava.org/cms/wordpress/?action=download&file_id=7

The first part tries to give an introduction to Maven, when to use it and by
whom. In the second part it details the main Maven 2 concepts a little bit
more.

Feel free to have a look.

Cheers,
Franck


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



how to copy all dependencies

2005-12-22 Thread Christopher Cobb
I want to get a list of all (transitive) dependencies for a project.

 

Is there some API somewhere I could hook into?

 

I need to copy all those jar files into my lib directory.

 




-
Attention:
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity. The information
contained in this message and or attachments is intended only for the
person or entity to which it is addressed and may contain confidential
and/or privileged material.  If you received this in error, please
contact the sender and delete the material from any system and destroy
any copies.


Re: [m2] maven friendly way to look at an xml file

2005-12-22 Thread Jesse McConnell
yep,

target/generated-sources/modello/org/apache/maven/model/io/xpp3/MavenXpp3Reader.java

On 12/22/05, Raphaël Piéroni <[EMAIL PROTECTED]> wrote:
>
> in the project org.apache.maven:maven-project (or maybe maven-model)
> sources
> you will see that it is wrote using modello and in the generated classes
> you can see
> an xpp3reader.
>
> maybe this class is what you are searching for.
>
> my 2 cents
>
> Raphaël
>
>
>
> Christopher Cobb a écrit :
>
> >I'm writing an m2 plugin.  I would like to examine the contents of an
> >arbitrary pom.xml file.  No, not the one for the current project.  Or one
> >that is one of its dependencies.  I want to look at the one over there.
> >
> >
> >
> >I could certainly use my favorite xml library.  But what is the most
> maven
> >friendly way to look at an xml file, specifically a pom.xml.
> >
> >
> >
> >
> >
> >
> >-
> >Attention:
> >Any views expressed in this message are those of the individual sender,
> >except where the message states otherwise and the sender is authorized
> >to state them to be the views of any such entity. The information
> >contained in this message and or attachments is intended only for the
> >person or entity to which it is addressed and may contain confidential
> >and/or privileged material.  If you received this in error, please
> >contact the sender and delete the material from any system and destroy
> >any copies.
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
jesse mcconnell


Re: [m2] maven friendly way to look at an xml file

2005-12-22 Thread Raphaël Piéroni

in the project org.apache.maven:maven-project (or maybe maven-model) sources
you will see that it is wrote using modello and in the generated classes 
you can see

an xpp3reader.

maybe this class is what you are searching for.

my 2 cents

Raphaël



Christopher Cobb a écrit :


I'm writing an m2 plugin.  I would like to examine the contents of an
arbitrary pom.xml file.  No, not the one for the current project.  Or one
that is one of its dependencies.  I want to look at the one over there.



I could certainly use my favorite xml library.  But what is the most maven
friendly way to look at an xml file, specifically a pom.xml.






-
Attention:
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity. The information
contained in this message and or attachments is intended only for the
person or entity to which it is addressed and may contain confidential
and/or privileged material.  If you received this in error, please
contact the sender and delete the material from any system and destroy
any copies.

 




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



Re: Multi-module wars (was: multi module issues)

2005-12-22 Thread Kevin Galligan

Sorry.  That was confusing.  I had sent the message with the subject
'multi module issues'.

It should've been
"Re: Multi-module wars"

Kevin Galligan wrote:
Just wanted to comment quick on the message from Vincent (I just saw 
this message for the first time...).  I abandoned the xml merging for 
right now.  I was having trouble with the cargo xml merging code.  I 
added some stuff myself, but after the war plugin added the war file 
composition, I just figured for now we would replicate the web.xml data 
manually rather than merge them.


However, I would really like to get the web.xml merging to work.  Is 
there anybody actively working on the web xml merger?  I'm also pretty 
clueless.  What's cargo?  What is that code being used for currently? 
I'd possibly like to work on that, or get somebody in my group to work 
on that, but I'm not sure what the protocol is.


Thanks,
-Kevin


 > -Original Message-
 > From: Richard Allen [mailto:[EMAIL PROTECTED]
 > Sent: mercredi 30 novembre 2005 14:01
 > To: Maven Users List
 > Subject: Re: Multi-module wars

[snip]

 > However, I would like to see the maven-war-plugin support the web.xml
 > merge functionality that Kevin Galligan's hack includes. Maybe you can
 > raise this as a JIRA issue Kevin?

Just a note here for anyone interested in implementing this: there's 
code in
Cargo to merge web.xml files and this library is being improved with 
support

for also merging container-specific deployment descriptors. There are also
generic classes for merging any xml files.

It's in there: http://tinyurl.com/dtwet

Check the org.codehaus.cargo.module.webapp.WebXmlMerger class along with 
the

files in org.codehaus.cargo.module.merge.

Hope it helps,
-Vincent

-
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: Knowing my project's location when building w/ reactor ?

2005-12-22 Thread Grégory Joseph
> The way this problem is resolved for the castor plugin was to extend
> PlexusTestCase and its getBaseDir() method which returns the locations
> of the projects basedir.

Oh thanks Matt. I just checked that method source and it just works,
nice. Where's this basedir property coming from? Set by maven ? Are
there any others which could be of interest ?

g

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



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

2005-12-22 Thread Mick Knutson
OK, but I still have the version declared in the following tags in each 
module:


  
 com.wamu
 projects
 1.0
  

I want to not have to update each module when I increment the version.

This worked fine:

  4.0.0
  com.wamu
  
  projects



Thanks
Mick Knutson

http://www.BASELogic.com
http://www.MickKnutson.com

MSN Messenger: [EMAIL PROTECTED]


- Original Message - 
From: "Rinku" <[EMAIL PROTECTED]>
To: "Maven Users List" ; "Mick Knutson" 
<[EMAIL PROTECTED]>

Sent: Thursday, December 22, 2005 11:20 AM
Subject: Re: [m2] how do I make the modules use the same version as the 
parent pom?





You can drop the  tag for your module specific pom but you will 
need to have a  setup for your modules but note that you will need 
to specify a  there, something like this :



   maven-plugin-parent
   org.apache.maven.plugins
   2.0.1
 

You module should then pick up the version off it if its there's none 
provided.


HTH,

Rahul


- Original Message - 
From: "Mick Knutson" <[EMAIL PROTECTED]>

To: "Maven Users List" 
Sent: Friday, December 23, 2005 8:11 AM
Subject: [m2] how do I make the modules use the same version as the parent 
pom?



how do I make the modules use the same version as the parent pom?



Thanks
Mick Knutson

http://www.BASELogic.com
http://www.MickKnutson.com

MSN Messenger: [EMAIL PROTECTED]



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




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



Re: Knowing my project's location when building w/ reactor ?

2005-12-22 Thread Matt Brozowski


On Dec 21, 2005, at 9:22 PM, Grégory Joseph wrote:


Hi list,

Is there a preferred way, when a project is building with reactor, to
know the location of the project? i.e., if, in a testcase, I do new
File("."), I'll get the path to my root pom's directory, and I'd need
the path to the actual sub-module being tested.


The way this problem is resolved for the castor plugin was to extend  
PlexusTestCase and its getBaseDir() method which returns the locations  
of the projects basedir.





Any tip or idea?

Cheers,

g

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

 
___

Matt Brozowski, OpenNMS Maintainer  Main:   +1 919 812 4984
The OpenNMS Group, Inc. Fax:+1 503 
961 7746
Email: [EMAIL PROTECTED]URL:
http://www.opennms.com


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



[m2]site: How to include some javascript in HTML head

2005-12-22 Thread Guo, Jiaqi

Hi there,

This can be done by adding  tag in each xdoc in maven1.0. What's 
the solution for it in maven2?

I noticed the following code in maven-site.vm within site plugin.

#if ( $decoration.body.head )
 #foreach( $item in $decoration.body.head.getChildren() )
   #if ( $item.name == "script" )
 $item.toUnescapedString()
   #else
 $item.toString()
   #end
 #end
#end

However no matter if addding  tag into site.xml or xdoc, I got no 
luck. So what is the right thing to do?


Thanks in advance.





Regards
Jiaqi

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



[m2] maven friendly way to look at an xml file

2005-12-22 Thread Christopher Cobb
I'm writing an m2 plugin.  I would like to examine the contents of an
arbitrary pom.xml file.  No, not the one for the current project.  Or one
that is one of its dependencies.  I want to look at the one over there.

 

I could certainly use my favorite xml library.  But what is the most maven
friendly way to look at an xml file, specifically a pom.xml.

 




-
Attention:
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity. The information
contained in this message and or attachments is intended only for the
person or entity to which it is addressed and may contain confidential
and/or privileged material.  If you received this in error, please
contact the sender and delete the material from any system and destroy
any copies.


Re: what is used for?

2005-12-22 Thread london

Hi Mick,

If you happen to have the sources from the Maven2 plugin trunk, then have a 
look at the parent POM, it defines 2   - JUnit and 
maven-plugin-api and you don\'t need to redefine them again in your plugin 
poms which extend from the parent.

Note however that the dependencies in this case are under the  
element (and not ).

I hope that was what you were looking for.

Cheers,
Rahul



- Original Message - 
From: \"Mick Knutson\" <[EMAIL PROTECTED]>
To: \"Maven Users List\" ; <[EMAIL PROTECTED]>
Sent: Friday, December 23, 2005 5:25 AM
Subject: Re: [m2] what is  used for?


> That sounds great, but what if I am using multiple sub projects and they 
> all require some standard libs? Is there a way to just declare them in the 
> root pom instead of having to re-declare them in each sub pom?
>
> 
> Thanks
> Mick Knutson
>
> http://www.BASELogic.com
> http://www.MickKnutson.com
>
> MSN Messenger: [EMAIL PROTECTED]
> 
>
> - Original Message - 
> From: \"Jesse McConnell\" <[EMAIL PROTECTED]>
> To: \"Maven Users List\" ; \"Mick Knutson\" 
> <[EMAIL PROTECTED]>
> Sent: Thursday, December 22, 2005 8:18 AM
> Subject: Re: [m2] what is  used for?
>
>
> it lets you set all of the scopes and versions of dependencies in one 
> place,
> and then child poms don\'t need to specify versions in their dependencies,
> they get inherited from the parent pom.
>
> then if you up the version for something, you can update it only in one
> place.
>
>
>
> On 12/22/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
>>
>> what is  used for?
>>
>>
>>
>> 
>> Thanks
>> Mick Knutson
>>
>> http://www.BASELogic.com
>> http://www.MickKnutson.com
>>
>> MSN Messenger: [EMAIL PROTECTED]
>>
>> 
>>
>>
>
>
> --
> jesse mcconnell
>
> -
> 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]



multi module issues

2005-12-22 Thread Kevin Galligan
Just wanted to comment quick on the message from Vincent (I just saw 
this message for the first time...).  I abandoned the xml merging for 
right now.  I was having trouble with the cargo xml merging code.  I 
added some stuff myself, but after the war plugin added the war file 
composition, I just figured for now we would replicate the web.xml data 
manually rather than merge them.


However, I would really like to get the web.xml merging to work.  Is 
there anybody actively working on the web xml merger?  I'm also pretty 
clueless.  What's cargo?  What is that code being used for currently? 
I'd possibly like to work on that, or get somebody in my group to work 
on that, but I'm not sure what the protocol is.


Thanks,
-Kevin


> -Original Message-
> From: Richard Allen [mailto:[EMAIL PROTECTED]
> Sent: mercredi 30 novembre 2005 14:01
> To: Maven Users List
> Subject: Re: Multi-module wars

[snip]

> However, I would like to see the maven-war-plugin support the web.xml
> merge functionality that Kevin Galligan's hack includes. Maybe you can
> raise this as a JIRA issue Kevin?

Just a note here for anyone interested in implementing this: there's code in
Cargo to merge web.xml files and this library is being improved with support
for also merging container-specific deployment descriptors. There are also
generic classes for merging any xml files.

It's in there: http://tinyurl.com/dtwet

Check the org.codehaus.cargo.module.webapp.WebXmlMerger class along with the
files in org.codehaus.cargo.module.merge.

Hope it helps,
-Vincent

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



Re: groupId springframework vs. org.springframework

2005-12-22 Thread Stephen Duncan
I think he's referring to the spring-mock POM.  I think it's
dependencies on spring-web, spring-jdbc, javax.servlet:jsp-api should
probably all be optional as well.  Not certain, as I haven't started
using spring-mock, but those sound optional to me...

-Stephen


On 12/22/05, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> The pom at ibiblio is fine, says that they're optional
> http://www.ibiblio.org/maven2/org/springframework/spring/1.2.6/spring-1.2.6.pom
>
> I've used these dependencies and I only get commons-logging and spring
> jars in the web-inf lib
>
> On 12/22/05, Matt Raible <[EMAIL PROTECTED]> wrote:
> > It's been over 24 hours and ibiblio still gives me cos and quartz for
> > Spring.  Is the synchronization process broken? Here's my current pom:
> >
> > 
> >   org.springframework
> >   spring
> >   1.2.6
> > 
> > 
> >   org.springframework
> >   spring-mock
> >   1.2.6
> >   test
> >   
> > 
> >   org.springframework
> >   spring-jdbc
> > 
> > 
> >   org.springframework
> >   spring-web
> > 
> >   
> > 
> >
> >
> > On 12/21/05, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> > > I've put everything but commons-logging as optional. I think this is
> > > the last change for spring 1.2.6.
> > >
> > > On 12/21/05, Matt Raible <[EMAIL PROTECTED]> wrote:
> > > > On 12/20/05, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> > > > > Hi,
> > > > >
> > > > > Probably it worked because there were no dependencies in them, now
> > > > > that they are maven tries to download them.
> > > >
> > > > The previous poms had dependencies listed as well, except that
> > > > everything was marked optional (true) since commons-logging is the
> > > > only thing you need to run Spring.
> > > >
> > > > >
> > > > > I'm putting them as optional in the spring pom (almost everything
> > > > > should be), but you'll miss a lot of the transitive dependency
> > > > > features. That's why I really encourage the use of the smaller jars.
> > > >
> > > > It appears like there's still a few issues.  Yesterday (Monday), I
> > > > didn't need to have any exclusions on my Spring dependencies.  Now I
> > > > have to have a bunch to get the same results.
> > > >
> > > >
> > > >  org.springframework
> > > >  spring
> > > >  1.2.6
> > > >  
> > > >
> > > >  aopalliance
> > > >  aopalliance
> > > >
> > > >
> > > >  com.servlets
> > > >  cos
> > > >
> > > >
> > > >  quartz
> > > >  quartz
> > > >
> > > >
> > > >  xdoclet
> > > >  xjavadoc
> > > >
> > > >  
> > > >
> > > >
> > > >  org.springframework
> > > >  spring-mock
> > > >  1.2.6
> > > >  test
> > > >  
> > > >
> > > >  org.springframework
> > > >  spring-jdbc
> > > >
> > > >
> > > >  org.springframework
> > > >  spring-web
> > > >
> > > >  
> > > >
> > > >
> > > > Thanks for your help.
> > > >
> > > > Matt
> > > >
> > > > >
> > > > > Regards
> > > > >
> > > > > On 12/20/05, Matt Raible <[EMAIL PROTECTED]> wrote:
> > > > > > Unfortunately, this change seems to have hosed everything.  Using
> > > > > > springframework/spring was working *beautifully* before, and now
> > > > > > neither works.
> > > > > >
> > > > > > required artifacts missing:
> > > > > >   javax.mail:mail:jar:1.3.2
> > > > > >   javax.transaction:jta:jar:1.0.1B
> > > > > >   javax.resource:connector:jar:1.0
> > > > > >   javax.activation:activation:jar:1.0.2
> > > > > >
> > > > > > Is it possible to revert things back to what they were?
> > > > > >
> > > > > > Matt
> > > > > >
> > > > > > On 12/19/05, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> > > > > > > Hi,
> > > > > > >
> > > > > > > I have the poms for org.springframework 1.2.6 ready and will 
> > > > > > > upload them soon.
> > > > > > > The messages you get on springframwork are just warnings because 
> > > > > > > the
> > > > > > > poms don't yet exist, but should work the same as the
> > > > > > > org.springframework ones that have minimalistic poms.
> > > > > > >
> > > > > > > Regards
> > > > > > >
> > > > > > > On 12/19/05, Matt Raible <[EMAIL PROTECTED]> wrote:
> > > > > > > > I like to follow best practices, and it appears that you (the 
> > > > > > > > Maven
> > > > > > > > Team) would prefer we use "org.springframework" for Spring's 
> > > > > > > > groupId,
> > > > > > > > rather than "springframework".
> > > > > > > >
> > > > > > > > If I change my pom.xml setting to use "org.springframework" for 
> > > > > > > > the
> > > > > > > > groupId (for spring and spring-mock (v 1.2.6)), I get the 
> > > > > > > > following
> > > > > > > > warning:
> > > > > > > >
> > > > > > > > [INFO] [resources:resources]
> > > > > > > > [INFO] Using default encoding to copy filtered resources.
> > > > > > > > Downloading: 

Re: [m2]release:prepare requires snapshots ?

2005-12-22 Thread dan tran
It follows maven development process where

  - during development, every one works on snapshots

  - at release time, the snapshost got changed to release version, check
back into SCM, label, and build.
This is where customer can use, including qa, stake holder, etc

  - then the version is increamented with snapshot and check into SCM again.

-Dan


On 12/22/05, Patrick O'shea <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I'm am trying to use the release:prepare goal.
> I can see from the source code that  it is supposed to throw an exception
> if the project being release is not a snapshot.
> Why is this ?
>
>
> Kind regards,
> Patrick O'Shea
>
>
>
>
>


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

2005-12-22 Thread Rinku


You can drop the  tag for your module specific pom but you will 
need to have a  setup for your modules but note that you will need 
to specify a  there, something like this :



   maven-plugin-parent
   org.apache.maven.plugins
   2.0.1
 

You module should then pick up the version off it if its there's none 
provided.


HTH,

Rahul


- Original Message - 
From: "Mick Knutson" <[EMAIL PROTECTED]>

To: "Maven Users List" 
Sent: Friday, December 23, 2005 8:11 AM
Subject: [m2] how do I make the modules use the same version as the parent 
pom?



how do I make the modules use the same version as the parent pom?



Thanks
Mick Knutson

http://www.BASELogic.com
http://www.MickKnutson.com

MSN Messenger: [EMAIL PROTECTED]



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



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

2005-12-22 Thread Mick Knutson
how do I make the modules use the same version as the parent pom?



Thanks
Mick Knutson

http://www.BASELogic.com
http://www.MickKnutson.com

MSN Messenger: [EMAIL PROTECTED]



[m2]release:prepare requires snapshots ?

2005-12-22 Thread Patrick O'shea

Hi,

I'm am trying to use the release:prepare
goal. 
I can see from the source code that
 it is supposed to throw an exception if the project being release
is not a snapshot.
Why is this ?


Kind regards,
Patrick O'Shea 




  

Re: Maven-proxy functional with Maven 2?

2005-12-22 Thread Alexandre Poitras
Yeah I remember having heard that if you don't apply the patches, your
plugins are never upgraded unless you force it (with -U) I think.

On 12/22/05, dan tran <[EMAIL PROTECTED]> wrote:
> my bad, dont see it in jira.  It is something related to
> maven-metadata.xmlnever got updated if it is changed in the external
> repo
>
> jorg, were you the one that send the fix it?
>
> -D
>
>
> On 12/22/05, Dirk Olmes <[EMAIL PROTECTED]> wrote:
> >
> > Dan,
> >
> > > there is one patch you need to apply in order to make work transparently
> > > with maven2.
> > > check out jira
> >
> > Ok, I've taken a look in jira and found patches but to which one are you
> > referring exactly?
> >
> > BTW: the strange ConnectException bug I was seeing was simply a config
> > error. Now that this is fixed, maven-proxy runs fine :-)
> >
> > -dirk
> >
> > --
> > Anyway kids, have fun, play nicely, be good. And remember - if it ain't
> > broke, hit it again.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


--
Alexandre Poitras
Québec, Canada

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



facelets libraries

2005-12-22 Thread Alexandre Poitras
Hi

Anyone know why facelets librarie (https://facelets.dev.java.net/) is
not on the central repository? Because of Sun license? Or I just can't
find it?
--
Alexandre Poitras
Québec, Canada

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



Re: Maven-proxy functional with Maven 2?

2005-12-22 Thread dan tran
my bad, dont see it in jira.  It is something related to
maven-metadata.xmlnever got updated if it is changed in the external
repo

jorg, were you the one that send the fix it?

-D


On 12/22/05, Dirk Olmes <[EMAIL PROTECTED]> wrote:
>
> Dan,
>
> > there is one patch you need to apply in order to make work transparently
> > with maven2.
> > check out jira
>
> Ok, I've taken a look in jira and found patches but to which one are you
> referring exactly?
>
> BTW: the strange ConnectException bug I was seeing was simply a config
> error. Now that this is fixed, maven-proxy runs fine :-)
>
> -dirk
>
> --
> Anyway kids, have fun, play nicely, be good. And remember - if it ain't
> broke, hit it again.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: what is used for?

2005-12-22 Thread london

nope, each subproject needs to declare what it uses, but can be seeded
version wise from the parent

On 12/22/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
>
> That sounds great, but what if I am using multiple sub projects and they
> all
> require some standard libs? Is there a way to just declare them in the
> root
> pom instead of having to re-declare them in each sub pom?
>
>
> 
> Thanks
> Mick Knutson
>
> http://www.BASELogic.com
> http://www.MickKnutson.com
>
> MSN Messenger: [EMAIL PROTECTED]
>
> 
>
> - Original Message -
> From: \"Jesse McConnell\" <[EMAIL PROTECTED]>
> To: \"Maven Users List\" ; \"Mick Knutson\"
> <[EMAIL PROTECTED]>
> Sent: Thursday, December 22, 2005 8:18 AM
> Subject: Re: [m2] what is  used for?
>
>
> it lets you set all of the scopes and versions of dependencies in one
> place,
> and then child poms don\'t need to specify versions in their dependencies,
> they get inherited from the parent pom.
>
> then if you up the version for something, you can update it only in one
> place.
>
>
>
> On 12/22/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
> >
> > what is  used for?
> >
> >
> >
> >
> 
> > Thanks
> > Mick Knutson
> >
> > http://www.BASELogic.com
> > http://www.MickKnutson.com
> >
> > MSN Messenger: [EMAIL PROTECTED]
> >
> >
> 
> >
> >
>
>
> --
> jesse mcconnell
>



--
jesse mcconnell
jesseDOTmcconnellATgmailDOTcom


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



[m2] m1 -> m2 surefire problem

2005-12-22 Thread Chris Berry
Greetings,
I am converting an m1 project to m2. Unfortunately I am getting different
behavior in the test phase of the build. In m1, of course, it all runs fine.
But under m2 (i.e. surefire) when my test accesses the Internet, it is has
Proxy issues and fails, and when I work around that; it has Redirection
issues. What is troublesome is that this same code runs without issue under
m1. I have gone to great lengths to insure that I am using the exact same
set of dependencies in both m1 & m2 (CLasspath is the same, etc.)  I'm
pretty convinced that this is a surefire problem. I've tried setting
 to true, but that doesn't help. Does anyone have any idea why
surefire would be giving me different results??
Thanks,
-- Chris


Re: [m2] what is used for?

2005-12-22 Thread Rinku

Hi Mick,

If you happen to have the sources from the Maven2 plugin trunk, then have a 
look at the parent POM, it defines 2   - JUnit and 
maven-plugin-api and you don't need to redefine them again in your plugin 
poms which extend from the parent.


Note however that the dependencies in this case are under the  
element (and not ).


I hope that was what you were looking for.

Cheers,
Rahul



- Original Message - 
From: "Mick Knutson" <[EMAIL PROTECTED]>

To: "Maven Users List" ; <[EMAIL PROTECTED]>
Sent: Friday, December 23, 2005 5:25 AM
Subject: Re: [m2] what is  used for?


That sounds great, but what if I am using multiple sub projects and they 
all require some standard libs? Is there a way to just declare them in the 
root pom instead of having to re-declare them in each sub pom?



Thanks
Mick Knutson

http://www.BASELogic.com
http://www.MickKnutson.com

MSN Messenger: [EMAIL PROTECTED]


- Original Message - 
From: "Jesse McConnell" <[EMAIL PROTECTED]>
To: "Maven Users List" ; "Mick Knutson" 
<[EMAIL PROTECTED]>

Sent: Thursday, December 22, 2005 8:18 AM
Subject: Re: [m2] what is  used for?


it lets you set all of the scopes and versions of dependencies in one 
place,

and then child poms don't need to specify versions in their dependencies,
they get inherited from the parent pom.

then if you up the version for something, you can update it only in one
place.



On 12/22/05, Mick Knutson <[EMAIL PROTECTED]> wrote:


what is  used for?




Thanks
Mick Knutson

http://www.BASELogic.com
http://www.MickKnutson.com

MSN Messenger: [EMAIL PROTECTED]







--
jesse mcconnell

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



classpath size limit

2005-12-22 Thread Marc Dugger
Has anyone run into problems with the size of the classpath on the
command line?  How do I get around it?  Thanks.

My vitals:

Executing M2 with jdk1.4.2_10
Compiling with jdk1.3.1_15


  true
  true
  C:\Java\jdk1.3.1_15\bin\javac.exe
  1.3
  
...
  


Marc Dugger
[EMAIL PROTECTED]


6% real estate sales commission? Not likely.
Learn why at http://tinyurl.com/dvkbu






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



Creating build schedules for branches by connecting to Derby and issuing SQL- Is this madness?

2005-12-22 Thread Stevenson, Chris
Gents,
 
I'm not sure how hair brained this is but I was wondering if anyone thought
it would be feasible/desireable to write an m2 plugin which can create the
branch builds for a set of projects in continuum by connecting to the
database (JDBC) and duplicating the records but altering the SCM info (and
name) using straight SQL. 
 
For example I have a project 
 
scm:svn:http://server/trunk/projectA 
 
which when I do a release I'd like to tag/branch off and then set up
continuum to build off this branch as well as build of the trunk. 
 
Is it a good idea to go straight to the db to do this or is there a better
method that someone could suggest?
 
This issus is a major bug bear for us in my project and could save us 2-3
man days per month. Was thinking that there are probably others that have
the same issue?
 
Thanks,
 
Chris
 
 

Chris Stevenson

Dresdner Kleinwort Wasserstein 


  

 --



The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express
written permission of the sender. If you are not the intended recipient, please
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender. 3167




Re: Support for mojos written in Ant

2005-12-22 Thread Chris Berry
Hi Filip,
I think your best bet might be to checkout the Plugin from SVN. IMHO, this
is the best way to get the full picture as things are still in flux -- and
the docs will likely not have caught up with the code.  Of course, you'll
need a Subversion Client (I use TortoiseSVN)

AFAIK, this should work::
svn co
https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-antrun-plugin

Some info here::
http://maven.apache.org/guides/mini/guide-using-ant.html

And several posts on this list
Cheers,
-- Chris

On 12/22/05, Nitko2 <[EMAIL PROTECTED]> wrote:
>
> Hi,
> John Casey in 2.0.1 announcement mail said that 2.0.1 includes support for
> mojos written in Ant. Can
> someone point
> me to some documentation or JIRA issue or anything that would be useful
> info about this.
>
> Thanks,
> Filip
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Maven-proxy functional with Maven 2?

2005-12-22 Thread Dirk Olmes
Dan,

> there is one patch you need to apply in order to make work transparently
> with maven2.
> check out jira

Ok, I've taken a look in jira and found patches but to which one are you
referring exactly?

BTW: the strange ConnectException bug I was seeing was simply a config
error. Now that this is fixed, maven-proxy runs fine :-)

-dirk

-- 
Anyway kids, have fun, play nicely, be good. And remember - if it ain't
broke, hit it again.


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



Re: groupId springframework vs. org.springframework

2005-12-22 Thread Carlos Sanchez
springframework just points to org.springframework and you should
update your pom

On 12/22/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
> I am using just springframework, not org.springframework and it seems to
> work for me.
>
> 
> Thanks
> Mick Knutson
>
> http://www.BASELogic.com
> http://www.MickKnutson.com
>
> MSN Messenger: [EMAIL PROTECTED]
> 
>
> - Original Message -
> From: "Matt Raible" <[EMAIL PROTECTED]>
> To: "Carlos Sanchez" <[EMAIL PROTECTED]>
> Cc: "Maven Users List" 
> Sent: Thursday, December 22, 2005 8:41 AM
> Subject: Re: groupId springframework vs. org.springframework
>
>
> It's been over 24 hours and ibiblio still gives me cos and quartz for
> Spring.  Is the synchronization process broken? Here's my current pom:
>
> 
>   org.springframework
>   spring
>   1.2.6
> 
> 
>   org.springframework
>   spring-mock
>   1.2.6
>   test
>   
> 
>   org.springframework
>   spring-jdbc
> 
> 
>   org.springframework
>   spring-web
> 
>   
> 
>
>
> On 12/21/05, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> > I've put everything but commons-logging as optional. I think this is
> > the last change for spring 1.2.6.
> >
> > On 12/21/05, Matt Raible <[EMAIL PROTECTED]> wrote:
> > > On 12/20/05, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >
> > > > Probably it worked because there were no dependencies in them, now
> > > > that they are maven tries to download them.
> > >
> > > The previous poms had dependencies listed as well, except that
> > > everything was marked optional (true) since commons-logging is the
> > > only thing you need to run Spring.
> > >
> > > >
> > > > I'm putting them as optional in the spring pom (almost everything
> > > > should be), but you'll miss a lot of the transitive dependency
> > > > features. That's why I really encourage the use of the smaller jars.
> > >
> > > It appears like there's still a few issues.  Yesterday (Monday), I
> > > didn't need to have any exclusions on my Spring dependencies.  Now I
> > > have to have a bunch to get the same results.
> > >
> > >
> > >  org.springframework
> > >  spring
> > >  1.2.6
> > >  
> > >
> > >  aopalliance
> > >  aopalliance
> > >
> > >
> > >  com.servlets
> > >  cos
> > >
> > >
> > >  quartz
> > >  quartz
> > >
> > >
> > >  xdoclet
> > >  xjavadoc
> > >
> > >  
> > >
> > >
> > >  org.springframework
> > >  spring-mock
> > >  1.2.6
> > >  test
> > >  
> > >
> > >  org.springframework
> > >  spring-jdbc
> > >
> > >
> > >  org.springframework
> > >  spring-web
> > >
> > >  
> > >
> > >
> > > Thanks for your help.
> > >
> > > Matt
> > >
> > > >
> > > > Regards
> > > >
> > > > On 12/20/05, Matt Raible <[EMAIL PROTECTED]> wrote:
> > > > > Unfortunately, this change seems to have hosed everything.  Using
> > > > > springframework/spring was working *beautifully* before, and now
> > > > > neither works.
> > > > >
> > > > > required artifacts missing:
> > > > >   javax.mail:mail:jar:1.3.2
> > > > >   javax.transaction:jta:jar:1.0.1B
> > > > >   javax.resource:connector:jar:1.0
> > > > >   javax.activation:activation:jar:1.0.2
> > > > >
> > > > > Is it possible to revert things back to what they were?
> > > > >
> > > > > Matt
> > > > >
> > > > > On 12/19/05, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> > > > > > Hi,
> > > > > >
> > > > > > I have the poms for org.springframework 1.2.6 ready and will
> > > > > > upload them soon.
> > > > > > The messages you get on springframwork are just warnings because
> > > > > > the
> > > > > > poms don't yet exist, but should work the same as the
> > > > > > org.springframework ones that have minimalistic poms.
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > > On 12/19/05, Matt Raible <[EMAIL PROTECTED]> wrote:
> > > > > > > I like to follow best practices, and it appears that you (the
> > > > > > > Maven
> > > > > > > Team) would prefer we use "org.springframework" for Spring's
> > > > > > > groupId,
> > > > > > > rather than "springframework".
> > > > > > >
> > > > > > > If I change my pom.xml setting to use "org.springframework" for
> > > > > > > the
> > > > > > > groupId (for spring and spring-mock (v 1.2.6)), I get the
> > > > > > > following
> > > > > > > warning:
> > > > > > >
> > > > > > > [INFO] [resources:resources]
> > > > > > > [INFO] Using default encoding to copy filtered resources.
> > > > > > > Downloading:
> > > > > > > http://repo1.maven.org/maven2/org/springframework/spring-mock/1.2.6
> > > > > > > /spring-mock-1.2.6.pom
> > > > > > > [W

Re: [m2] Installation settings (defaults.properties)

2005-12-22 Thread Yann Le Du
Hi Alex,

Check settings.xml in ${M2_HOME}/conf

Happy holidays,

--
Yann


2005/12/22, Mayorgaadame, Alex < [EMAIL PROTECTED]>:
>
> Hello all and happy holidays,
>
> In the "Guide to Configuring Maven"
> http://maven.apache.org/guides/mini/guide-configuring-maven.html it's
> mentioned that there are an "Installation" level configuration for Maven 2
> but there's not information regarding in how to use it. I would like to have
> something similar to a defaults.properties in Maven 2. Where should I put
> the settings.xml so the settings on it get used by every project/user that
> uses a given Maven 2 install?
>
> Hope I made sense.
>
> Thanks and regards,
> Alex
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: groupId springframework vs. org.springframework

2005-12-22 Thread Carlos Sanchez
The pom at ibiblio is fine, says that they're optional
http://www.ibiblio.org/maven2/org/springframework/spring/1.2.6/spring-1.2.6.pom

I've used these dependencies and I only get commons-logging and spring
jars in the web-inf lib

On 12/22/05, Matt Raible <[EMAIL PROTECTED]> wrote:
> It's been over 24 hours and ibiblio still gives me cos and quartz for
> Spring.  Is the synchronization process broken? Here's my current pom:
>
> 
>   org.springframework
>   spring
>   1.2.6
> 
> 
>   org.springframework
>   spring-mock
>   1.2.6
>   test
>   
> 
>   org.springframework
>   spring-jdbc
> 
> 
>   org.springframework
>   spring-web
> 
>   
> 
>
>
> On 12/21/05, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> > I've put everything but commons-logging as optional. I think this is
> > the last change for spring 1.2.6.
> >
> > On 12/21/05, Matt Raible <[EMAIL PROTECTED]> wrote:
> > > On 12/20/05, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >
> > > > Probably it worked because there were no dependencies in them, now
> > > > that they are maven tries to download them.
> > >
> > > The previous poms had dependencies listed as well, except that
> > > everything was marked optional (true) since commons-logging is the
> > > only thing you need to run Spring.
> > >
> > > >
> > > > I'm putting them as optional in the spring pom (almost everything
> > > > should be), but you'll miss a lot of the transitive dependency
> > > > features. That's why I really encourage the use of the smaller jars.
> > >
> > > It appears like there's still a few issues.  Yesterday (Monday), I
> > > didn't need to have any exclusions on my Spring dependencies.  Now I
> > > have to have a bunch to get the same results.
> > >
> > >
> > >  org.springframework
> > >  spring
> > >  1.2.6
> > >  
> > >
> > >  aopalliance
> > >  aopalliance
> > >
> > >
> > >  com.servlets
> > >  cos
> > >
> > >
> > >  quartz
> > >  quartz
> > >
> > >
> > >  xdoclet
> > >  xjavadoc
> > >
> > >  
> > >
> > >
> > >  org.springframework
> > >  spring-mock
> > >  1.2.6
> > >  test
> > >  
> > >
> > >  org.springframework
> > >  spring-jdbc
> > >
> > >
> > >  org.springframework
> > >  spring-web
> > >
> > >  
> > >
> > >
> > > Thanks for your help.
> > >
> > > Matt
> > >
> > > >
> > > > Regards
> > > >
> > > > On 12/20/05, Matt Raible <[EMAIL PROTECTED]> wrote:
> > > > > Unfortunately, this change seems to have hosed everything.  Using
> > > > > springframework/spring was working *beautifully* before, and now
> > > > > neither works.
> > > > >
> > > > > required artifacts missing:
> > > > >   javax.mail:mail:jar:1.3.2
> > > > >   javax.transaction:jta:jar:1.0.1B
> > > > >   javax.resource:connector:jar:1.0
> > > > >   javax.activation:activation:jar:1.0.2
> > > > >
> > > > > Is it possible to revert things back to what they were?
> > > > >
> > > > > Matt
> > > > >
> > > > > On 12/19/05, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> > > > > > Hi,
> > > > > >
> > > > > > I have the poms for org.springframework 1.2.6 ready and will upload 
> > > > > > them soon.
> > > > > > The messages you get on springframwork are just warnings because the
> > > > > > poms don't yet exist, but should work the same as the
> > > > > > org.springframework ones that have minimalistic poms.
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > > On 12/19/05, Matt Raible <[EMAIL PROTECTED]> wrote:
> > > > > > > I like to follow best practices, and it appears that you (the 
> > > > > > > Maven
> > > > > > > Team) would prefer we use "org.springframework" for Spring's 
> > > > > > > groupId,
> > > > > > > rather than "springframework".
> > > > > > >
> > > > > > > If I change my pom.xml setting to use "org.springframework" for 
> > > > > > > the
> > > > > > > groupId (for spring and spring-mock (v 1.2.6)), I get the 
> > > > > > > following
> > > > > > > warning:
> > > > > > >
> > > > > > > [INFO] [resources:resources]
> > > > > > > [INFO] Using default encoding to copy filtered resources.
> > > > > > > Downloading: 
> > > > > > > http://repo1.maven.org/maven2/org/springframework/spring-mock/1.2.6
> > > > > > > /spring-mock-1.2.6.pom
> > > > > > > [WARNING] Unable to get resource from repository central 
> > > > > > > (http://repo1.maven.org
> > > > > > > /maven2)
> > > > > > > Downloading: 
> > > > > > > http://repo1.maven.org/maven2/org/springframework/spring/1.2.6/spri
> > > > > > > ng-1.2.6.pom
> > > > > > > [WARNING] Unable to get resource from repository central 
> > > > > > > (http://repo1.maven.org
> > > > > > > /maven2)
> > > > > > >
> > > > > > > If I change my groupId to be "springframework", I don't get any
> > > > > >

[m2] Installation settings (defaults.properties)

2005-12-22 Thread Mayorgaadame, Alex
Hello all and happy holidays,

In the "Guide to Configuring Maven" 
http://maven.apache.org/guides/mini/guide-configuring-maven.html it's mentioned 
that there are an "Installation" level configuration for Maven 2 but there's 
not information regarding in how to use it. I would like to have something 
similar to a defaults.properties in Maven 2. Where should I put the 
settings.xml so the settings on it get used by every project/user that uses a 
given Maven 2 install?

Hope I made sense.

Thanks and regards,
Alex

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



Re: Maven-proxy functional with Maven 2?

2005-12-22 Thread Konstantin Shaposhnikov
Hello Alex,

On 12/22/05, Mayorgaadame, Alex <[EMAIL PROTECTED]> wrote:
> Hello all and Merry Christmas to everyone,
>
> Anyone knows what have been the fate of http://maven-proxy.codehaus.org I 
> hadn't see any changes on it for a long time. I've used it with Maven 1 and 
> would like to know if it "just work" with Maven 2 or maybe a similar 
> tool/plug-in/component for Maven 2.

I have recently discovered alternative to maven-proxy:
https://is-micro.myip.hu/projects/ismicro-commons/proximity/

You can give it a try.

regards,
Konstantin


Re: [m2] where to download jta-1.0.1b.jar as mave.org timesout?

2005-12-22 Thread Yann Le Du
My bad,
jar cvf jta-1.0.1B.jar javax

--
Yann

2005/12/22, Yann Le Du <[EMAIL PROTECTED]>:
>
> Unzip it to tmp, then create a jar :
> jar -cvf jta-1.0.1B.jar tmp
>
> --
> Yann
>
> 2005/12/22, Mick Knutson <[EMAIL PROTECTED]>:
> >
> > it only seems to offer the classes in a zip file, not the jar...
> >
> > 
> >
> > Thanks
> > Mick Knutson
> >
> > http://www.BASELogic.com
> > http://www.MickKnutson.com
> >
> > MSN Messenger: [EMAIL PROTECTED]
> >
> > 
> >
> > - Original Message -
> > From: "dan tran" <[EMAIL PROTECTED] >
> > To: "Maven Users List" ; "Mick Knutson"
> > <[EMAIL PROTECTED] >
> > Sent: Thursday, December 22, 2005 8:43 AM
> > Subject: Re: [m2] where to download jta-1.0.1b.jar as mave.org timesout?
> >
> >
> > http://java.sun.com/products/jta/
> >
> > use that link to download and install it in your local repo or internal
> > remote repo
> >
> > -D
> >
> >
> > On 12/22/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
> > >
> > > where to download jta-1.0.1b.jar as mave.org timesout?
> > >
> > >
> > >
> > > Downloading:
> > >
> > http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar
> > > [INFO]
> > >
> > 
> > > [ERROR] BUILD ERROR
> > > [INFO]
> > >
> > 
> > > [INFO] Failed to resolve artifact.
> > >
> > > Error transferring file
> > > javax.transaction:jta:jar:1.0.1B
> > >
> > > from the specified remote repositories:
> > > central (http://repo1.maven.org/maven2)
> > > Path to dependency:
> > >1) com.wamu.projects:common-jar:jar:1.0
> > >2) org.springframework:spring-mock:jar:1.2.6
> > >3) org.springframework:spring-jdbc:jar:1.2.6
> > >4) org.springframework:spring-dao:jar:1.2.6
> > >5) javax.transaction:jta:jar:1.0.1B
> > >
> > >
> > >
> > > Caused by I/O exception: Connection timed out: connect
> > >
> > >
> > >
> > >
> > 
> > > Thanks
> > > Mick Knutson
> > >
> > > http://www.BASELogic.com
> > > http://www.MickKnutson.com
> > >
> > > MSN Messenger: [EMAIL PROTECTED]
> > >
> > >
> > 
> >
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: [m2] where to download jta-1.0.1b.jar as mave.org timesout?

2005-12-22 Thread Yann Le Du
Unzip it to tmp, then create a jar :
jar -cvf jta-1.0.1B.jar tmp

--
Yann

2005/12/22, Mick Knutson <[EMAIL PROTECTED]>:
>
> it only seems to offer the classes in a zip file, not the jar...
>
>
> 
> Thanks
> Mick Knutson
>
> http://www.BASELogic.com
> http://www.MickKnutson.com
>
> MSN Messenger: [EMAIL PROTECTED]
>
> 
>
> - Original Message -
> From: "dan tran" <[EMAIL PROTECTED]>
> To: "Maven Users List" ; "Mick Knutson"
> <[EMAIL PROTECTED]>
> Sent: Thursday, December 22, 2005 8:43 AM
> Subject: Re: [m2] where to download jta-1.0.1b.jar as mave.org timesout?
>
>
> http://java.sun.com/products/jta/
>
> use that link to download and install it in your local repo or internal
> remote repo
>
> -D
>
>
> On 12/22/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
> >
> > where to download jta-1.0.1b.jar as mave.org timesout?
> >
> >
> >
> > Downloading:
> >
> http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar
> > [INFO]
> >
> 
> > [ERROR] BUILD ERROR
> > [INFO]
> >
> 
> > [INFO] Failed to resolve artifact.
> >
> > Error transferring file
> > javax.transaction:jta:jar:1.0.1B
> >
> > from the specified remote repositories:
> > central (http://repo1.maven.org/maven2)
> > Path to dependency:
> >1) com.wamu.projects:common-jar:jar:1.0
> >2) org.springframework:spring-mock:jar:1.2.6
> >3) org.springframework:spring-jdbc:jar:1.2.6
> >4) org.springframework:spring-dao:jar:1.2.6
> >5) javax.transaction:jta:jar:1.0.1B
> >
> >
> >
> > Caused by I/O exception: Connection timed out: connect
> >
> >
> >
> >
> 
> > Thanks
> > Mick Knutson
> >
> > http://www.BASELogic.com
> > http://www.MickKnutson.com
> >
> > MSN Messenger: [EMAIL PROTECTED]
> >
> >
> 
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [m2] where to download jta-1.0.1b.jar as mave.org timesout?

2005-12-22 Thread Mick Knutson

it only seems to offer the classes in a zip file, not the jar...


Thanks
Mick Knutson

http://www.BASELogic.com
http://www.MickKnutson.com

MSN Messenger: [EMAIL PROTECTED]


- Original Message - 
From: "dan tran" <[EMAIL PROTECTED]>
To: "Maven Users List" ; "Mick Knutson" 
<[EMAIL PROTECTED]>

Sent: Thursday, December 22, 2005 8:43 AM
Subject: Re: [m2] where to download jta-1.0.1b.jar as mave.org timesout?


http://java.sun.com/products/jta/

use that link to download and install it in your local repo or internal
remote repo

-D


On 12/22/05, Mick Knutson <[EMAIL PROTECTED]> wrote:


where to download jta-1.0.1b.jar as mave.org timesout?



Downloading:
http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

Error transferring file
javax.transaction:jta:jar:1.0.1B

from the specified remote repositories:
central (http://repo1.maven.org/maven2)
Path to dependency:
   1) com.wamu.projects:common-jar:jar:1.0
   2) org.springframework:spring-mock:jar:1.2.6
   3) org.springframework:spring-jdbc:jar:1.2.6
   4) org.springframework:spring-dao:jar:1.2.6
   5) javax.transaction:jta:jar:1.0.1B



Caused by I/O exception: Connection timed out: connect




Thanks
Mick Knutson

http://www.BASELogic.com
http://www.MickKnutson.com

MSN Messenger: [EMAIL PROTECTED]






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



Re: [m2] what is used for?

2005-12-22 Thread Jesse McConnell
nope, each subproject needs to declare what it uses, but can be seeded
version wise from the parent

On 12/22/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
>
> That sounds great, but what if I am using multiple sub projects and they
> all
> require some standard libs? Is there a way to just declare them in the
> root
> pom instead of having to re-declare them in each sub pom?
>
>
> 
> Thanks
> Mick Knutson
>
> http://www.BASELogic.com
> http://www.MickKnutson.com
>
> MSN Messenger: [EMAIL PROTECTED]
>
> 
>
> - Original Message -
> From: "Jesse McConnell" <[EMAIL PROTECTED]>
> To: "Maven Users List" ; "Mick Knutson"
> <[EMAIL PROTECTED]>
> Sent: Thursday, December 22, 2005 8:18 AM
> Subject: Re: [m2] what is  used for?
>
>
> it lets you set all of the scopes and versions of dependencies in one
> place,
> and then child poms don't need to specify versions in their dependencies,
> they get inherited from the parent pom.
>
> then if you up the version for something, you can update it only in one
> place.
>
>
>
> On 12/22/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
> >
> > what is  used for?
> >
> >
> >
> >
> 
> > Thanks
> > Mick Knutson
> >
> > http://www.BASELogic.com
> > http://www.MickKnutson.com
> >
> > MSN Messenger: [EMAIL PROTECTED]
> >
> >
> 
> >
> >
>
>
> --
> jesse mcconnell
>



--
jesse mcconnell
jesseDOTmcconnellATgmailDOTcom


Re: [m2] where to download jta-1.0.1b.jar as mave.org timesout?

2005-12-22 Thread Yann Le Du
BTW, you can often find the download URL in the POM :
http://www.ibiblio.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.pom
(downloadUrl)

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

--
Yann

2005/12/22, dan tran <[EMAIL PROTECTED]>:
>
> http://java.sun.com/products/jta/
>
> use that link to download and install it in your local repo or internal
> remote repo
>
> -D
>
>
> On 12/22/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
> >
> > where to download jta-1.0.1b.jar as mave.org timesout?
> >
> >
> >
> > Downloading:
> >
> http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar
> > [INFO]
> >
> 
> > [ERROR] BUILD ERROR
> > [INFO]
> >
> 
> > [INFO] Failed to resolve artifact.
> >
> > Error transferring file
> > javax.transaction:jta:jar:1.0.1B
> >
> > from the specified remote repositories:
> > central (http://repo1.maven.org/maven2)
> > Path to dependency:
> >1) com.wamu.projects:common-jar:jar:1.0
> >2) org.springframework:spring-mock:jar:1.2.6
> >3) org.springframework:spring-jdbc:jar:1.2.6
> >4) org.springframework:spring-dao:jar:1.2.6
> >5) javax.transaction:jta:jar:1.0.1B
> >
> >
> >
> > Caused by I/O exception: Connection timed out: connect
> >
> >
> >
> >
> 
> > Thanks
> > Mick Knutson
> >
> > http://www.BASELogic.com
> > http://www.MickKnutson.com
> >
> > MSN Messenger: [EMAIL PROTECTED]
> >
> >
> 
> >
> >
>
>


Re: [m2] where to download jta-1.0.1b.jar as mave.org timesout?

2005-12-22 Thread Ralph Pöllath

On 22.12.2005, at 17:32, Mick Knutson wrote:

where to download jta-1.0.1b.jar as mave.org timesout?


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

Cheers,
-Ralph.


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



Re: groupId springframework vs. org.springframework

2005-12-22 Thread Mick Knutson
I am using just springframework, not org.springframework and it seems to 
work for me.



Thanks
Mick Knutson

http://www.BASELogic.com
http://www.MickKnutson.com

MSN Messenger: [EMAIL PROTECTED]


- Original Message - 
From: "Matt Raible" <[EMAIL PROTECTED]>

To: "Carlos Sanchez" <[EMAIL PROTECTED]>
Cc: "Maven Users List" 
Sent: Thursday, December 22, 2005 8:41 AM
Subject: Re: groupId springframework vs. org.springframework


It's been over 24 hours and ibiblio still gives me cos and quartz for
Spring.  Is the synchronization process broken? Here's my current pom:

   
 org.springframework
 spring
 1.2.6
   
   
 org.springframework
 spring-mock
 1.2.6
 test
 
   
 org.springframework
 spring-jdbc
   
   
 org.springframework
 spring-web
   
 
   


On 12/21/05, Carlos Sanchez <[EMAIL PROTECTED]> wrote:

I've put everything but commons-logging as optional. I think this is
the last change for spring 1.2.6.

On 12/21/05, Matt Raible <[EMAIL PROTECTED]> wrote:
> On 12/20/05, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Probably it worked because there were no dependencies in them, now
> > that they are maven tries to download them.
>
> The previous poms had dependencies listed as well, except that
> everything was marked optional (true) since commons-logging is the
> only thing you need to run Spring.
>
> >
> > I'm putting them as optional in the spring pom (almost everything
> > should be), but you'll miss a lot of the transitive dependency
> > features. That's why I really encourage the use of the smaller jars.
>
> It appears like there's still a few issues.  Yesterday (Monday), I
> didn't need to have any exclusions on my Spring dependencies.  Now I
> have to have a bunch to get the same results.
>
>
>  org.springframework
>  spring
>  1.2.6
>  
>
>  aopalliance
>  aopalliance
>
>
>  com.servlets
>  cos
>
>
>  quartz
>  quartz
>
>
>  xdoclet
>  xjavadoc
>
>  
>
>
>  org.springframework
>  spring-mock
>  1.2.6
>  test
>  
>
>  org.springframework
>  spring-jdbc
>
>
>  org.springframework
>  spring-web
>
>  
>
>
> Thanks for your help.
>
> Matt
>
> >
> > Regards
> >
> > On 12/20/05, Matt Raible <[EMAIL PROTECTED]> wrote:
> > > Unfortunately, this change seems to have hosed everything.  Using
> > > springframework/spring was working *beautifully* before, and now
> > > neither works.
> > >
> > > required artifacts missing:
> > >   javax.mail:mail:jar:1.3.2
> > >   javax.transaction:jta:jar:1.0.1B
> > >   javax.resource:connector:jar:1.0
> > >   javax.activation:activation:jar:1.0.2
> > >
> > > Is it possible to revert things back to what they were?
> > >
> > > Matt
> > >
> > > On 12/19/05, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >
> > > > I have the poms for org.springframework 1.2.6 ready and will 
> > > > upload them soon.
> > > > The messages you get on springframwork are just warnings because 
> > > > the

> > > > poms don't yet exist, but should work the same as the
> > > > org.springframework ones that have minimalistic poms.
> > > >
> > > > Regards
> > > >
> > > > On 12/19/05, Matt Raible <[EMAIL PROTECTED]> wrote:
> > > > > I like to follow best practices, and it appears that you (the 
> > > > > Maven
> > > > > Team) would prefer we use "org.springframework" for Spring's 
> > > > > groupId,

> > > > > rather than "springframework".
> > > > >
> > > > > If I change my pom.xml setting to use "org.springframework" for 
> > > > > the
> > > > > groupId (for spring and spring-mock (v 1.2.6)), I get the 
> > > > > following

> > > > > warning:
> > > > >
> > > > > [INFO] [resources:resources]
> > > > > [INFO] Using default encoding to copy filtered resources.
> > > > > Downloading: 
> > > > > http://repo1.maven.org/maven2/org/springframework/spring-mock/1.2.6

> > > > > /spring-mock-1.2.6.pom
> > > > > [WARNING] Unable to get resource from repository central 
> > > > > (http://repo1.maven.org

> > > > > /maven2)
> > > > > Downloading: 
> > > > > http://repo1.maven.org/maven2/org/springframework/spring/1.2.6/spri

> > > > > ng-1.2.6.pom
> > > > > [WARNING] Unable to get resource from repository central 
> > > > > (http://repo1.maven.org

> > > > > /maven2)
> > > > >
> > > > > If I change my groupId to be "springframework", I don't get any
> > > > > warnings.  It seems like org.springframework is not as 
> > > > > up-to-date as
> > > > > springframework, especially since its directories are missing 
> > > > > *.pom

> > > > > files.
> > > > >
> > > > > Any ideas?
> > > > >
> > > > > T

Re: Maven-proxy functional with Maven 2?

2005-12-22 Thread Carlos Sanchez
There will be an improved version in january I believe. Don't be
afraid about the SNAPSHOT version, it works fine.

On 12/22/05, Mayorgaadame, Alex <[EMAIL PROTECTED]> wrote:
> Any time frame for a 1.0 release or at least 0.2?
>
> Alex
>
> -Original Message-
> From: Jörg Schaible [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 22, 2005 2:56 AM
> To: Maven Users List
> Subject: RE: Maven-proxy functional with Maven 2?
>
>
> dan tran wrote on Thursday, December 22, 2005 1:42 AM:
>
> > there is one patch you need to apply in order to make work
> > transparently with maven2.
> > check out jira
>
> Just to make it clear: You have to apply the patch to the CVS version ... :)
>
> - 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]
>
>

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



Re: [m2] where to download jta-1.0.1b.jar as mave.org timesout?

2005-12-22 Thread dan tran
http://java.sun.com/products/jta/

use that link to download and install it in your local repo or internal
remote repo

-D


On 12/22/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
>
> where to download jta-1.0.1b.jar as mave.org timesout?
>
>
>
> Downloading:
> http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Failed to resolve artifact.
>
> Error transferring file
> javax.transaction:jta:jar:1.0.1B
>
> from the specified remote repositories:
> central (http://repo1.maven.org/maven2)
> Path to dependency:
>1) com.wamu.projects:common-jar:jar:1.0
>2) org.springframework:spring-mock:jar:1.2.6
>3) org.springframework:spring-jdbc:jar:1.2.6
>4) org.springframework:spring-dao:jar:1.2.6
>5) javax.transaction:jta:jar:1.0.1B
>
>
>
> Caused by I/O exception: Connection timed out: connect
>
>
>
> 
> Thanks
> Mick Knutson
>
> http://www.BASELogic.com
> http://www.MickKnutson.com
>
> MSN Messenger: [EMAIL PROTECTED]
>
> 
>
>


Re: Maven-proxy functional with Maven 2?

2005-12-22 Thread Carlos Sanchez
What patch are you talking about? I'm using it and works fine

On 12/22/05, Jörg Schaible <[EMAIL PROTECTED]> wrote:
> dan tran wrote on Thursday, December 22, 2005 1:42 AM:
>
> > there is one patch you need to apply in order to make work
> > transparently with maven2.
> > check out jira
>
> Just to make it clear: You have to apply the patch to the CVS version ... :)
>
> - 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: groupId springframework vs. org.springframework

2005-12-22 Thread Matt Raible
It's been over 24 hours and ibiblio still gives me cos and quartz for
Spring.  Is the synchronization process broken? Here's my current pom:


  org.springframework
  spring
  1.2.6


  org.springframework
  spring-mock
  1.2.6
  test
  

  org.springframework
  spring-jdbc


  org.springframework
  spring-web

  



On 12/21/05, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> I've put everything but commons-logging as optional. I think this is
> the last change for spring 1.2.6.
>
> On 12/21/05, Matt Raible <[EMAIL PROTECTED]> wrote:
> > On 12/20/05, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > Probably it worked because there were no dependencies in them, now
> > > that they are maven tries to download them.
> >
> > The previous poms had dependencies listed as well, except that
> > everything was marked optional (true) since commons-logging is the
> > only thing you need to run Spring.
> >
> > >
> > > I'm putting them as optional in the spring pom (almost everything
> > > should be), but you'll miss a lot of the transitive dependency
> > > features. That's why I really encourage the use of the smaller jars.
> >
> > It appears like there's still a few issues.  Yesterday (Monday), I
> > didn't need to have any exclusions on my Spring dependencies.  Now I
> > have to have a bunch to get the same results.
> >
> >
> >  org.springframework
> >  spring
> >  1.2.6
> >  
> >
> >  aopalliance
> >  aopalliance
> >
> >
> >  com.servlets
> >  cos
> >
> >
> >  quartz
> >  quartz
> >
> >
> >  xdoclet
> >  xjavadoc
> >
> >  
> >
> >
> >  org.springframework
> >  spring-mock
> >  1.2.6
> >  test
> >  
> >
> >  org.springframework
> >  spring-jdbc
> >
> >
> >  org.springframework
> >  spring-web
> >
> >  
> >
> >
> > Thanks for your help.
> >
> > Matt
> >
> > >
> > > Regards
> > >
> > > On 12/20/05, Matt Raible <[EMAIL PROTECTED]> wrote:
> > > > Unfortunately, this change seems to have hosed everything.  Using
> > > > springframework/spring was working *beautifully* before, and now
> > > > neither works.
> > > >
> > > > required artifacts missing:
> > > >   javax.mail:mail:jar:1.3.2
> > > >   javax.transaction:jta:jar:1.0.1B
> > > >   javax.resource:connector:jar:1.0
> > > >   javax.activation:activation:jar:1.0.2
> > > >
> > > > Is it possible to revert things back to what they were?
> > > >
> > > > Matt
> > > >
> > > > On 12/19/05, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> > > > > Hi,
> > > > >
> > > > > I have the poms for org.springframework 1.2.6 ready and will upload 
> > > > > them soon.
> > > > > The messages you get on springframwork are just warnings because the
> > > > > poms don't yet exist, but should work the same as the
> > > > > org.springframework ones that have minimalistic poms.
> > > > >
> > > > > Regards
> > > > >
> > > > > On 12/19/05, Matt Raible <[EMAIL PROTECTED]> wrote:
> > > > > > I like to follow best practices, and it appears that you (the Maven
> > > > > > Team) would prefer we use "org.springframework" for Spring's 
> > > > > > groupId,
> > > > > > rather than "springframework".
> > > > > >
> > > > > > If I change my pom.xml setting to use "org.springframework" for the
> > > > > > groupId (for spring and spring-mock (v 1.2.6)), I get the following
> > > > > > warning:
> > > > > >
> > > > > > [INFO] [resources:resources]
> > > > > > [INFO] Using default encoding to copy filtered resources.
> > > > > > Downloading: 
> > > > > > http://repo1.maven.org/maven2/org/springframework/spring-mock/1.2.6
> > > > > > /spring-mock-1.2.6.pom
> > > > > > [WARNING] Unable to get resource from repository central 
> > > > > > (http://repo1.maven.org
> > > > > > /maven2)
> > > > > > Downloading: 
> > > > > > http://repo1.maven.org/maven2/org/springframework/spring/1.2.6/spri
> > > > > > ng-1.2.6.pom
> > > > > > [WARNING] Unable to get resource from repository central 
> > > > > > (http://repo1.maven.org
> > > > > > /maven2)
> > > > > >
> > > > > > If I change my groupId to be "springframework", I don't get any
> > > > > > warnings.  It seems like org.springframework is not as up-to-date as
> > > > > > springframework, especially since its directories are missing *.pom
> > > > > > files.
> > > > > >
> > > > > > Any ideas?
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Matt
> > > > > >
> > > > > > -
> > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

-
To unsubscribe, e-mail:

[m2] Referencing unversioned jars in a Maven 1 repo?

2005-12-22 Thread Matthew Beermann
I'm upgrading my projects to Maven 2, and there are a few cases where I need to 
referenced unversioned jars in [someone else's] Maven 1 repository. Adding a 
reference to a "legacy" repo is straightforward enough, but what about the 
unversioned part?
   
  I realize that unversioned artifacts are a Very Bad Thing within the Maven 
paradigm, but I really don't have much choice in this case...
   
  --Matthew

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

RE: Maven-proxy functional with Maven 2?

2005-12-22 Thread Mayorgaadame, Alex
Any time frame for a 1.0 release or at least 0.2?

Alex

-Original Message-
From: Jörg Schaible [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 22, 2005 2:56 AM
To: Maven Users List
Subject: RE: Maven-proxy functional with Maven 2?


dan tran wrote on Thursday, December 22, 2005 1:42 AM:

> there is one patch you need to apply in order to make work
> transparently with maven2.
> check out jira

Just to make it clear: You have to apply the patch to the CVS version ... :)

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



[m2] where to download jta-1.0.1b.jar as mave.org timesout?

2005-12-22 Thread Mick Knutson
where to download jta-1.0.1b.jar as mave.org timesout?



Downloading: 
http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar
[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Failed to resolve artifact.

Error transferring file
  javax.transaction:jta:jar:1.0.1B

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)
Path to dependency:
1) com.wamu.projects:common-jar:jar:1.0
2) org.springframework:spring-mock:jar:1.2.6
3) org.springframework:spring-jdbc:jar:1.2.6
4) org.springframework:spring-dao:jar:1.2.6
5) javax.transaction:jta:jar:1.0.1B



Caused by I/O exception: Connection timed out: connect



Thanks
Mick Knutson

http://www.BASELogic.com
http://www.MickKnutson.com

MSN Messenger: [EMAIL PROTECTED]



Installation problem

2005-12-22 Thread Abbs, David A
I am installing maven 2.0.1 on Linux red hat running on a sun machine with java 
1.4.2 installed and configured.

My JAVA_HOME environment is set correctly and the maven install directory added 
to my PATH variable

When I do mvn --version it gives me

Maven version: 2.0.1

Which looks fine.

However when I then try to run

mvn archetype:create -DgroupId=3D3Dcom.mycompany.app = -DartifactId=3D3Dmy-app 
To create myself a project I get this

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central [WARNING] 
repository metadata for: 'org.apache.maven.plugins' could not be retrieved from 
repository: central due to an error: Error transferring file [INFO] Repository 
'central' will be blacklisted [INFO]


[ERROR] BUILD ERROR
[INFO]


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


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


[INFO] Total time: < 1 second
[INFO] Finished at: Thu Dec 22 16:28:52 GMT 2005 [INFO] Final Memory:
1M/2M [INFO]

-


Any help would be very much appreciated

David Abbs


David Abbs
EDS - Court Services Account
UKNMSC
100 Napier Street,
Sheffield, S11 8HD
 
( Phone:+1-0114 291 1338)
(Mobile: 07765028732)
+ mailto:[EMAIL PROTECTED]




Re: Can I exclude a package from the generated jar file?

2005-12-22 Thread dan tran
you can configure maven-compiler-plugin to exclude your unwanted packages or
files to be compiled in the first place.  But you will not be able to
prevent javac  to compile those files
if they are
referenced by other packages within the source tree.  To prevent that, you
will need to use
antrun plugin ( or write your own custom plugin), bind it to compile phase,
and remove unwanted
classes in ${project.build.directory}/classes

If possible, just move those pacakges/files to another source tree to be
come another project.

-D


On 12/22/05, Gisbert Amm <[EMAIL PROTECTED]> wrote:
>
> maven.jar.excludes for Maven 1
> (http://maven.apache.org/maven-1.x/reference/plugins/jar/properties.html)
>
> For Maven 2 I don't know (yet).
>
> -Gisbert
>
> Alexander Hars wrote:
> > Hi,
> >
> > I am trying to exclude some packages of my source tree from the
> > automatically generated jar file. Is that possible?
> >
> > For example, if I have the following source tree
> >
> > +- src/|
> >   +- main/
> >  +- java/
> > +- com/
> >+- mycompany/
> >   +- package1/
> >   |   +- ...   |
> >   +- package2/
> >   |   +- ...   |
> >   +- package3/
> >   |   +- ...   |
> >
> >
> > Is there a way to exclude all files from package3 or a specific file
> > from package3 in my jar file?
> > Thanks,
> >
> > -Alexander
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> --
> 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] what is used for?

2005-12-22 Thread Mick Knutson
That sounds great, but what if I am using multiple sub projects and they all 
require some standard libs? Is there a way to just declare them in the root 
pom instead of having to re-declare them in each sub pom?



Thanks
Mick Knutson

http://www.BASELogic.com
http://www.MickKnutson.com

MSN Messenger: [EMAIL PROTECTED]


- Original Message - 
From: "Jesse McConnell" <[EMAIL PROTECTED]>
To: "Maven Users List" ; "Mick Knutson" 
<[EMAIL PROTECTED]>

Sent: Thursday, December 22, 2005 8:18 AM
Subject: Re: [m2] what is  used for?


it lets you set all of the scopes and versions of dependencies in one place,
and then child poms don't need to specify versions in their dependencies,
they get inherited from the parent pom.

then if you up the version for something, you can update it only in one
place.



On 12/22/05, Mick Knutson <[EMAIL PROTECTED]> wrote:


what is  used for?




Thanks
Mick Knutson

http://www.BASELogic.com
http://www.MickKnutson.com

MSN Messenger: [EMAIL PROTECTED]







--
jesse mcconnell

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



Re: [m2] what is used for?

2005-12-22 Thread Jesse McConnell
it lets you set all of the scopes and versions of dependencies in one place,
and then child poms don't need to specify versions in their dependencies,
they get inherited from the parent pom.

then if you up the version for something, you can update it only in one
place.



On 12/22/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
>
> what is  used for?
>
>
>
> 
> Thanks
> Mick Knutson
>
> http://www.BASELogic.com
> http://www.MickKnutson.com
>
> MSN Messenger: [EMAIL PROTECTED]
>
> 
>
>


--
jesse mcconnell


[m2] what is used for?

2005-12-22 Thread Mick Knutson
what is  used for?



Thanks
Mick Knutson

http://www.BASELogic.com
http://www.MickKnutson.com

MSN Messenger: [EMAIL PROTECTED]



Re: Dependency version inheritance

2005-12-22 Thread Michael Böckling
Ok, forget this. Just realized that the M2 POM features also a 
properties-section, so my problem can be solved °-°
And as for the parent-pom issues, I think that can't be solved except 
using the Snapshot mechanism.




Hi folks,

I'd like to know if it is possible - as a POM - to inherit my own 
version.
Let's say I have a parent POM with some entries in the 
dependencyManagement section. This section also contains the default 
versions of all my child-POMs, because there are inter-dependencies 
that I want to define in a central place (its not a multi-module 
build, its more a "package" of projects that I want to bundle using 
this parent POM).
Now, when I release a new version of a child-project, I have to change 
the version information in the POM of the child as well as the in the 
dependencyManagement section of my parent POM. Is there a way to 
simplify this?
Also, after the parent POM has changed, I naturally have to change its 
version number and then do the same in the child-projects to pick up 
the new version. In Maven1, this could be solved using a properties 
file in the parent poject that would define the various versions in 
one single place, but in M2 I can't think of a solution...


Thanks for any input,
   Michael




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



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



Re: Resources in parent pom

2005-12-22 Thread Yann Le Du
Hi Filip,

Do you have any extra resource declared in child pom ?

http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-DoesaPOMinherititsresources%3F


--
Yann

2005/12/22, Nitko2 <[EMAIL PROTECTED]>:
>
> Hi,
>
> I have a parent pom with declared resources in it, but it doesn't get
> propagated in child pom. Is it
>   supposed to work like that or is it a bug?
>
> Thanks,
> Filip
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


Support for mojos written in Ant

2005-12-22 Thread Nitko2

Hi,
John Casey in 2.0.1 announcement mail said that 2.0.1 includes support for mojos written in Ant. Can 
someone point

me to some documentation or JIRA issue or anything that would be useful info 
about this.

Thanks,
Filip


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



Dependency version inheritance

2005-12-22 Thread Michael Böckling

Hi folks,

I'd like to know if it is possible - as a POM - to inherit my own version.
Let's say I have a parent POM with some entries in the 
dependencyManagement section. This section also contains the default 
versions of all my child-POMs, because there are inter-dependencies that 
I want to define in a central place (its not a multi-module build, its 
more a "package" of projects that I want to bundle using this parent POM).
Now, when I release a new version of a child-project, I have to change 
the version information in the POM of the child as well as the in the 
dependencyManagement section of my parent POM. Is there a way to 
simplify this?
Also, after the parent POM has changed, I naturally have to change its 
version number and then do the same in the child-projects to pick up the 
new version. In Maven1, this could be solved using a properties file in 
the parent poject that would define the various versions in one single 
place, but in M2 I can't think of a solution...


Thanks for any input,
   Michael

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



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



Re: Can I exclude a package from the generated jar file?

2005-12-22 Thread Gisbert Amm
maven.jar.excludes for Maven 1 
(http://maven.apache.org/maven-1.x/reference/plugins/jar/properties.html)


For Maven 2 I don't know (yet).

-Gisbert

Alexander Hars wrote:

Hi,

I am trying to exclude some packages of my source tree from the 
automatically generated jar file. Is that possible?


For example, if I have the following source tree

+- src/|
  +- main/
 +- java/
+- com/
   +- mycompany/
  +- package1/
  |   +- ...   |
  +- package2/
  |   +- ...   |
  +- package3/
  |   +- ...   |


Is there a way to exclude all files from package3 or a specific file 
from package3 in my jar file?

Thanks,

-Alexander

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



--
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 : Including Libraries Maven 2

2005-12-22 Thread Olivier Lamy
Have a look :
http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html
And include jars in the dependencies.

-Message d'origine-
De : Alexandre Russel [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 22 décembre 2005 13:34
À : Maven Users List
Objet : Re: Including Libraries Maven 2



You could try to add true in the properties of 
your dependencies.
Alex

>Hi, guys, im using maven 2, but i have a little problem...
>
>Im working with a java project, not web enabled, just a java project,
>but i cant do that maven include the external libraries that my project

>needs...i try with bundleDir, bundleFileName... Here is the structure 
>of my project..like you see, i have a lib directory, with 2 .jar that i

>need to be delivered with the jar generated by maven.
>
>my_project
>   src
>  com
> net
>Service.java   
>   conf
>   service.xml
>
>Local libraries
> usr
>local
> lib
>commons.jar
>connector.jar
>
>But when i run 
>   mvn package
>
>Maven generate the my_project.jar but doesnt include the
>lib directory...i want that maven include /usr/local/lib/commons.jar
>and /usr/local/lib/connector.jar
>
>
>Well, i hope some body help me...
>
>Thanks
>
>__
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around 
>http://mail.yahoo.com
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>


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



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


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



Resources in parent pom

2005-12-22 Thread Nitko2

Hi,

I have a parent pom with declared resources in it, but it doesn't get propagated in child pom. Is it 
 supposed to work like that or is it a bug?


Thanks,
Filip



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



Can I exclude a package from the generated jar file?

2005-12-22 Thread Alexander Hars

Hi,

I am trying to exclude some packages of my source tree from the 
automatically generated jar file. Is that possible?


For example, if I have the following source tree

+- src/  
  |

  +- main/
 +- java/
+- com/
   +- mycompany/
  +- package1/
  |   +- ... 
  |

  +- package2/
  |   +- ... 
  |

  +- package3/
  |   +- ... 
  |



Is there a way to exclude all files from package3 or a specific file from package3 in my jar file? 


Thanks,

-Alexander

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



Re: ejb3 plugin

2005-12-22 Thread Alexandre Russel

answering my own question:
add true .
for more info: 
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html



Hi,
I downloaded and built the maven-ejb3-plugin. Trying to make a simple 
ejb3 I got the following error.

What should I change for it to work?
thanks.


+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] 
 


[INFO] Building Maven Quick Start Archetype
[INFO]task-segment: [install]
[INFO] 
 

[ERROR] Nonexistent component: 
org.apache.maven.lifecycle.mapping.LifecycleMappingejb3
[INFO] 
 


[ERROR] BUILD ERROR
[INFO] 
 


[INFO] Cannot find lifecycle mapping for packaging: 'ejb3'.
Component descriptor cannot be found in the component repository: 
org.apache.maven.lifecycle.mapping.LifecycleMappingejb3.
[INFO] 
 


[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Cannot find 
lifecycle mapping for packaging: 'ejb3'.
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.findMappingsForLifecycle(DefaultLifecycleExecutor.java:945) 

   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:879) 

   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:862) 

   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:447) 

   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301) 

   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268) 

   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137) 


   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

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


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

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

   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: 
org.codehaus.plexus.component.repository.exception.ComponentLookupException: 
Component descriptor cannot be found in the component repository: 
org.apache.maven.lifecycle.mapping.LifecycleMappingejb3.
   at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:319) 

   at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:436) 

   at 
org.apache.maven.execution.MavenSession.lookup(MavenSession.java:120)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.findMappingsForLifecycle(DefaultLifecycleExecutor.java:938) 


   ... 17 more
[INFO] 
 


[INFO] Total time: < 1 second
[INFO] Finished at: Thu Dec 22 13:11:48 CET 2005
[INFO] Final Memory: 1M/2M
[INFO] 
 




-
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: Including Libraries Maven 2

2005-12-22 Thread Alexandre Russel


You could try to add true in the properties of 
your dependencies.

Alex


Hi, guys, im using maven 2, but i have a little problem...

Im working with a java project, not web enabled, just a java
project, but i cant do that maven include the external libraries
that my project needs...i try with bundleDir, bundleFileName...
Here is the structure of my project..like you see, i have a
lib directory, with 2 .jar that i need to be delivered with
the jar generated by maven.

my_project
  src
 com
net
   Service.java   
  conf

  service.xml

Local libraries
usr
   local
lib
   commons.jar
   connector.jar

But when i run 
  mvn package 


Maven generate the my_project.jar but doesnt include the
lib directory...i want that maven include /usr/local/lib/commons.jar and
/usr/local/lib/connector.jar


Well, i hope some body help me...

Thanks

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


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


 




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



Including Libraries Maven 2

2005-12-22 Thread Gaston Coco
Hi, guys, im using maven 2, but i have a little problem...

Im working with a java project, not web enabled, just a java
project, but i cant do that maven include the external libraries
that my project needs...i try with bundleDir, bundleFileName...
Here is the structure of my project..like you see, i have a
lib directory, with 2 .jar that i need to be delivered with
the jar generated by maven.

my_project
   src
  com
 net
Service.java   
   conf
   service.xml

Local libraries
 usr
local
 lib
commons.jar
connector.jar

But when i run 
   mvn package 

Maven generate the my_project.jar but doesnt include the
lib directory...i want that maven include /usr/local/lib/commons.jar and
/usr/local/lib/connector.jar


Well, i hope some body help me...

Thanks

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

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



ejb3 plugin

2005-12-22 Thread Alexandre Russel

Hi,
I downloaded and built the maven-ejb3-plugin. Trying to make a simple 
ejb3 I got the following error.

What should I change for it to work?
thanks.


+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] 


[INFO] Building Maven Quick Start Archetype
[INFO]task-segment: [install]
[INFO] 

[ERROR] Nonexistent component: 
org.apache.maven.lifecycle.mapping.LifecycleMappingejb3
[INFO] 


[ERROR] BUILD ERROR
[INFO] 


[INFO] Cannot find lifecycle mapping for packaging: 'ejb3'.
Component descriptor cannot be found in the component repository: 
org.apache.maven.lifecycle.mapping.LifecycleMappingejb3.
[INFO] 


[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Cannot find 
lifecycle mapping for packaging: 'ejb3'.
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.findMappingsForLifecycle(DefaultLifecycleExecutor.java:945)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:879)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:862)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:447)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)

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

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

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

   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: 
org.codehaus.plexus.component.repository.exception.ComponentLookupException: 
Component descriptor cannot be found in the component repository: 
org.apache.maven.lifecycle.mapping.LifecycleMappingejb3.
   at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:319)
   at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:436)
   at 
org.apache.maven.execution.MavenSession.lookup(MavenSession.java:120)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.findMappingsForLifecycle(DefaultLifecycleExecutor.java:938)

   ... 17 more
[INFO] 


[INFO] Total time: < 1 second
[INFO] Finished at: Thu Dec 22 13:11:48 CET 2005
[INFO] Final Memory: 1M/2M
[INFO] 




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



RE: [m2] C# plugin - anyone interested in taking a look?

2005-12-22 Thread Stevenson, Chris
Hi Srgjan,

The plugin is for m2. At the moment it only *supports* (its still in alpha
really) compiling with MS Framework 1.1.x and Mono 1.1.9.2. It contains a
plugin which can generate the Visual Studio 2003 project file from the pom. 

I'd like to offer msbuild support (with dotnet 2.0), do you know where I
could get a sample of the format? I'm also looking at supporting
sharpdevelop and monodevelop depending on peoples feedback.

If you are keen to get MSBuild support could you add a requirement here:

http://www.javaforge.com/proj/tracker.do?proj_id=429

Thanks,

Chris


-Original Message-
From: Srepfler Srgjan [mailto:[EMAIL PROTECTED] 
Sent: 21 December 2005 14:24
To: Maven Users List
Subject: Re: [m2] C# plugin - anyone interested in taking a look?

Is this plugin 1.x or 2.x based? Will it support the new msbuild xml format?
Thanks and keep up the good work.

Srgjan


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



The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express 
written permission of the sender. If you are not the intended recipient, please 
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender. 3166



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



Re: [m2] missing-plugin-plugin blocking BUG fixed but not yet released

2005-12-22 Thread Jurgen De Landsheer




I have seen that the same problem occurs in the plugin maven-pmd-plugin
the latest version on ibilio is 2.0-alpha-2 but does not have a default
bundle
snapshot 2.0-alpha-3-SNAPSHOT does fix this but version 2.0-alpha-3 is
not released yet. Where can I see when this well be released?


Jurgen De Landsheer wrote:
Hello all,
  
  
I run the site report today and suddenly it went wrong site generation
stopped (blocker) because of a missing
  
resource bundle (nl language). It took me a while to find out where the
problem was because the stacktrace
  
didn't show me in wich plugin end because yesterday it went ok. The
problem is that de default resource bundle
  
doesn't exists in de ibilio jar (2.0) but it does in the source from
the 2.0.1-SNAPSHOT.
  
  
Please release this new version!
  
Do I need to day anythinig else, tell me.
  
And vote for this.
  
  
greetings
  
  
  
/*
  
  
[INFO]

  
[ERROR] FATAL ERROR
  
[INFO]

  
[INFO] Can't find bundle for base name plugin-report, locale nl_BE
  
[INFO]

  
[DEBUG] Trace
  
java.util.MissingResourceException: Can't find bundle for base name
plugin-report, locale nl_BE
  
   at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:837)
  
   at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:806)
  
   at java.util.ResourceBundle.getBundle(ResourceBundle.java:700)
  
   at
org.apache.maven.plugin.plugin.PluginReport.getBundle(PluginReport.java:200)
  
   at
org.apache.maven.plugin.plugin.PluginReport.getName(PluginReport.java:169)
  
   at
org.apache.maven.plugins.site.ReportComparator.compare(ReportComparator.java:40)
  
   at java.util.Arrays.mergeSort(Arrays.java:1284)
  
   at java.util.Arrays.sort(Arrays.java:1223)
  
   at java.util.Collections.sort(Collections.java:159)
  
   at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:240)
  
   at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432)
  
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
  
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
  
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
  
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
  
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
  
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
  
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
  
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
  
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
  
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  
   at java.lang.reflect.Method.invoke(Method.java:585)
  
   at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
  
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
  
   at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
  
   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
  
[INFO]

  
[INFO] Total time: 14 seconds
  
[INFO] Finished at: Thu Dec 22 08:56:51 CET 2005
  
[INFO] Final Memory: 11M/20M
  
[INFO]

  
  
  
  

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



-- 


met vriendelijke groeten




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

Re: [m2] production ready? any experience?

2005-12-22 Thread Rinku

Hi Alexander,

Regards creation of a project tree with empty directories, I am assuming you 
are using an archetype to create a project structure. The way I get around 
it - I usually include an empty 'empty.txt' in my archetype resources as 
placeholders to ensure that the empty directories are created. Once you 
start with development these can be removed or ignored by builds.


I know not a very sophesticated way but works :-)

HTH,

Rahul



- Original Message - 
From: "Alexander Hars" <[EMAIL PROTECTED]>

To: "Maven Users List" 
Sent: Thursday, December 22, 2005 9:06 AM
Subject: Re: [m2] production ready? any experience?


In my opinion, Maven2 is great and has clear immediate benefits - even if 
it can not do everything that may be needed for everyone.


However, there are many small problems. I have found that whatever I start 
in Maven that is not 100% standard, I run into problems that cost me 
hours. Basic things often don't work as expected, and some simple things 
are not supported at all (sorry, I don't want to be negative, and I really 
like Maven, but this is simply my experience with Maven so far).  For 
example,
- if you want to use Maven to create a project tree, your tree can not 
include empty directories. But at the start of the project, most project 
trees  have some empty directories. Why isn't it possible in Maven?
- it is not possible to use the assembly plugin to simply copy files into 
some target directory structure that is not version dependent.
- I tried running the javadoc plugin. My package-info.java files were 
ignored. So I was not able to use Maven there.
- filters only work on resources and source files. Why can't I specify 
that they work on any directory?
- I need to customize the build life-cycle/artifact types, because some of 
my projects are not standard. This looks quite complicated and needs to be 
simplified.
- It is not clear which POM properties you can use where. For example, 
the  POM has a description element and I would expect that I could include 
that easily in my generated web site. But I have not found a way to 
incorporate it into a .apt page. In addition, the description is used for 
generating the jar manifest - but the jar plugin will crash when linefeeds 
are included in the description element. That should not be the case.


These are just a few of my really little problems. And maybe there are 
ways in the mean time to solve some of  them. But each of these problems 
takes time and unfortunately there is a significant lack in documentation. 
I find myself browsing the source code and JIRA much too often.


Overall the question whether Maven is production ready is difficult to 
answer. Maven brings you a lot important concepts for improving the build 
process; it pays off to get started working with it. But I would switch 
larger teams and projects over to Maven only after going through a gradual 
learning process. In my opinion, any team would benefit from having 
someone get acquainted with Maven. That person would gradually infuse the 
team with Maven concepts. E.g. set up a repository, standardize the 
directory structure, standardize pieces of the build process. Then, when 
the person is sure that Maven supports everything that is necessary, the 
whole project can switch over. For some projects, Maven is ready now, for 
others it may take a little more time.


But eventually Maven will be the way to go.

-Alexander

Nitko2 wrote:

The issue doesn't need to be a blocker to slow down someone. The problem 
is in a number of issues.
And from user point it isn't important is it a core or plugin issue. I 
tried to move from maven 1 to maven 2. I started from the scratch and 
whatever I touch I found either a bug or lack of complete documentation 
or some strange design-programming decisions.

So for me it was a kind of slalom between non-blocker issues.
At first I tried to compensate with ant scripts, but now I imported maven 
into eclipse and use code as documentation. Of course I tried to run 
maven inside eclipse with embedder, but I just bumped to another problem.
Anyway things started moving for me when I imported maven code into 
eclipse so I can see what plugins are doing, and I can change them if I 
found some behaviour buggy or illogical (at least illogical to me).


I just done a search in JIRA and it showed(all statuses) 127 bugs, 37 
improvements for 2.x versions. Many of those bugs are manifested in 
different ways.


So, I use maven 2 because I really like the concept, but it isn't 
production ready, or at least it wasn't when I started using it(a month 
before 2.0).


That's my opinion.




Brett Porter wrote:


I think some heavy clarifications need to be put on this.

If you are moving from Ant, or starting a new project, there is every
chance Maven 2 is ready for production use for you.

I feel this is entirely about the plugins. There are a bunch of
plugins written for Maven 1.x (many outside of the Maven project),
that

[m2] missing-plugin-plugin blocking BUG fixed but not yet released

2005-12-22 Thread Jurgen De Landsheer

Hello all,

I run the site report today and suddenly it went wrong site generation 
stopped (blocker) because of a missing
resource bundle (nl language). It took me a while to find out where the 
problem was because the stacktrace
didn't show me in wich plugin end because yesterday it went ok. The 
problem is that de default resource bundle
doesn't exists in de ibilio jar (2.0) but it does in the source from the 
2.0.1-SNAPSHOT.


Please release this new version!
Do I need to day anythinig else, tell me.
And vote for this.

greetings


/*

[INFO] 


[ERROR] FATAL ERROR
[INFO] 


[INFO] Can't find bundle for base name plugin-report, locale nl_BE
[INFO] 


[DEBUG] Trace
java.util.MissingResourceException: Can't find bundle for base name 
plugin-report, locale nl_BE
   at 
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:837)

   at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:806)
   at java.util.ResourceBundle.getBundle(ResourceBundle.java:700)
   at 
org.apache.maven.plugin.plugin.PluginReport.getBundle(PluginReport.java:200)
   at 
org.apache.maven.plugin.plugin.PluginReport.getName(PluginReport.java:169)
   at 
org.apache.maven.plugins.site.ReportComparator.compare(ReportComparator.java:40)

   at java.util.Arrays.mergeSort(Arrays.java:1284)
   at java.util.Arrays.sort(Arrays.java:1223)
   at java.util.Collections.sort(Collections.java:159)
   at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:240)
   at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)

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

   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] 


[INFO] Total time: 14 seconds
[INFO] Finished at: Thu Dec 22 08:56:51 CET 2005
[INFO] Final Memory: 11M/20M
[INFO] 
 




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

RE : [m2] where to put common javescript and ui tools

2005-12-22 Thread Olivier Lamy
Hi,
I have provided a patch [1] which implements a zip packaging and made
some improve on the war plugin.
My use case was the following : I need to separate the html content (in
production it's deployed in a http server) from the war content (in
production it's deployed in a appserver).
In developpemnent phase, I need to deploy the the two in the same app
server (because I don't want to install all servers in my pachine).
With the proposed patch you can :
- made an artifact (zip packaging) which contains all
html/javascripts/images contents. As it's an artifact, you can share it
with others.
- include/unzip this artifact to the webapp directory in the war plugin.

As I don't have response concerning this, I have made my own company war
packaging/plugin to use it.

Try the patch (which include a simple use case) and push a comment or a
vote.

HTH,

- Olivier


[1] http://jira.codehaus.org/browse/MNG-1683

-Message d'origine-
De : Mick Knutson [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 22 décembre 2005 02:06
À : Maven Users List
Objet : [m2] where to put common javescript and ui tools


I have common JavaScript tools, images and other common
elements/resources that I want to reuse in various projects. How should
I store this in m2?





Thanks
Mick Knutson

http://www.BASELogic.com
http://www.MickKnutson.com

MSN Messenger: [EMAIL PROTECTED]





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


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