Re: Using maven for JavaScript projects

2007-09-30 Thread Raphaël Piéroni
Hi Nicolas,
Maybe you typoed the URL ?
new one: http://hammerfest.wiki.sourceforge.net/maven-javascript-tools

Raphaël

2007/10/1, nicolas de loof <[EMAIL PROTECTED]>:
>
> I've created a wiki entry
> (http://hammerfest.wiki.sourceforge.net/mavan-javascript-tools)
> to resume the ideas exposed in this thread.
>
> please be nice and don't blame me for my ugly english ;-)
> (any native english reader is welcome to fix my linguistics errors)
>
> Nico
>
> 2007/9/27, Adam Altemus <[EMAIL PROTECTED]>:
> > Hey all,
> >
> > Sorry for coming into this discussion late.  If anyone wants to use
> anything
> > from our JavaScript plugin, feel free to help yourself.  It can be found
> at
> > http://ossi.mobilvox.com/maven-js-plugin or
> > http://sf.net/projects/maven-js-plugin   We're using a modded version of
> > JsMin, which has shown a higher compression ratio than DOJO's
> Shrinksafe.
> >  Also, we put in a few other features to customize the compression and
> what
> > can be done with it.
> >
> > I'd like to contribute more to
> > this but, time "is not on my side" so to speak right now.  This is
> > definitely cool stuff though.
> >
> > Thanks,
> >
> > Adam
> > http://www.mobilvox.com
> >
> > On 9/27/07, Harlan Iverson <[EMAIL PROTECTED]> wrote:
> > >
> > > Yea, definitely alright and encouraged :) The first project is GPL
> soon to
> > > be LGPL, but the POM I'd consider to be whatever Selenium is since I
> > > mostly
> > > took my executions from there; and the second is MIT.
> > >
> > > Harlan
> > >
> > > On 9/27/07, nicolas de loof <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Thanks a lot for those links, i'll take a look tomorow.
> > > >
> > > > Is it ok with you that I pick up code and/or ideas from this
> projects
> > > > ? I didn't found a License notice on the first one. The second one
> is
> > > > MIT-licensed, not sure if I can get code an re-package it under
> apache
> > > > license ?
> > > >
> > > > Nico.
> > > >
> > > > 2007/9/27, Harlan Iverson <[EMAIL PROTECTED]>:
> > > > > It looks like there is a good array of tools coming to light from
> this
> > > > > thread. I, myself, have been tackling the problem of making JS
> library
> > > > > development more like Java development, as far as automated
> running of
> > > > unit
> > > > > tests, documentation, packaging, etc, in recent months.
> > > > >
> > > > > I see a growing demand for a nice tool chain of things like
> jslint,
> > > > > shrinksafe, jsunit + jscoverage, selenium, jsdoc, and dependency
> > > > management.
> > > > > Maybe it's because I just came back to JS after several years with
> a
> > > > bunch
> > > > > of Java development under my belt; but I see all these tools and
> feel
> > > > like
> > > > > they should be integrated. Especially when I make the connection
> > > between
> > > > > web2.0 and people who promote Agile development practice. JS tools
> are
> > > > > hardly in the state to accommodate good Agile, IMO. If integration
> > > were
> > > > > better, it would be a different story.
> > > > >
> > > > > My original approach was to create an Ant script that would
> download
> > > > various
> > > > > things using the  task, and use Maven Antlib for JSUnit,
> Selenium
> > > > and
> > > > > ShrinkSafe dependencies. But now I am getting to the point where I
> > > want
> > > > to
> > > > > break my library into multiple parts (project-core, project-ext,
> > > > > project-ext-gui, etc) and Maven seems like the natural answer. And
> of
> > > > course
> > > > > when Maven comes into the picture, I want to manage my other JS
> > > > dependencies
> > > > > as such.
> > > > >
> > > > > So last night I gave it a shot, and it seems to work well using
> war
> > > > > packaging and their built-in overlay behavior. There are a few
> kinks
> > > to
> > > > work
> > > > > out, and probably Mojos to write, but I think it will work.
> > > > >
> > > > > My immediate need is for JSUnit, which I have hacked into a series
> of
> > > > > executions (see pom link below). I'll definitely be looking at
> some of
> > > > these
> > > > > tools and seeing how I can use them (namely the ShrinkSafe mojo!),
> and
> > > > > hopefully getting a JSUnit mojo out of them at the very least.
> I've
> > > > never
> > > > > written a plugin (beyond hello world), but I'm eager to give it a
> > > shot.
> > > > >
> > > > > I have high hopes that Maven can bring the state of JS development
> up
> > > to
> > > > par
> > > > > with the Agile way that so many web2.0 people want to develop. I'm
> > > > looking
> > > > > forward to hearing more of everyone's great ideas!
> > > > >
> > > > > Harlan
> > > > >
> > > > > ps.
> > > > > Here's my main POM with JSUnit (in-progress proof of concept, by
> no
> > > > means a
> > > > > final product). The executions for JSUnit are basically a copy of
> > > > > Selenium's:
> > > > > http://soashable.googlecode.com/svn/xmpp4js/branches/maven/pom.xml
> > > > >
> > > > > And here's my old Ant script "JSLibBuilder":
> > > > > http://soashable.goo

Re: maven-war-plugin confusion

2007-09-30 Thread Kram

Thanks Wendy,

Sorry for the confusion, but I guess you are right, I may need to use the
assembly plug-in.

I ended up just having a look at the code for the war plug-in and debugging
it. It turns out I needed to specify a webappDirectory element that would
define the actual web app directory for the output:

${project.build.directory}/${project.build.finalName}/webApp

Is what I did.

This worked! I now have the output of the build in the correct locations.

However, I do require the actual .war file to have the same structure as the
output directory. If this is as simple as another config node, then ill keep
using the war plug-in but if its not that simple, I may have to switch to
the assembly plug-in


Wendy Smoak-3 wrote:
> 
> I've read it several times and I'm still not sure I understand the
> problem.  The web.xml file belongs directly in WEB-INF, which sounds
> like exactly where the plugin is putting it, once you tell it where
> the file is.
> 
> Are you trying to get the war plugin to build a .war file that has a
> top level directory called "webApp"?  If so, you might have better
> luck with the Assembly plugin.
> 
> -- 
> Wendy
> 

-- 
View this message in context: 
http://www.nabble.com/maven-war-plugin-confusion-tf4532339s177.html#a12973492
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Using maven for JavaScript projects

2007-09-30 Thread nicolas de loof
I've created a wiki entry
(http://hammerfest.wiki.sourceforge.net/mavan-javascript-tools)
to resume the ideas exposed in this thread.

please be nice and don't blame me for my ugly english ;-)
(any native english reader is welcome to fix my linguistics errors)

Nico

2007/9/27, Adam Altemus <[EMAIL PROTECTED]>:
> Hey all,
>
> Sorry for coming into this discussion late.  If anyone wants to use anything
> from our JavaScript plugin, feel free to help yourself.  It can be found at
> http://ossi.mobilvox.com/maven-js-plugin or
> http://sf.net/projects/maven-js-plugin   We're using a modded version of
> JsMin, which has shown a higher compression ratio than DOJO's Shrinksafe.
>  Also, we put in a few other features to customize the compression and what
> can be done with it.
>
> I'd like to contribute more to
> this but, time "is not on my side" so to speak right now.  This is
> definitely cool stuff though.
>
> Thanks,
>
> Adam
> http://www.mobilvox.com
>
> On 9/27/07, Harlan Iverson <[EMAIL PROTECTED]> wrote:
> >
> > Yea, definitely alright and encouraged :) The first project is GPL soon to
> > be LGPL, but the POM I'd consider to be whatever Selenium is since I
> > mostly
> > took my executions from there; and the second is MIT.
> >
> > Harlan
> >
> > On 9/27/07, nicolas de loof <[EMAIL PROTECTED]> wrote:
> > >
> > > Thanks a lot for those links, i'll take a look tomorow.
> > >
> > > Is it ok with you that I pick up code and/or ideas from this projects
> > > ? I didn't found a License notice on the first one. The second one is
> > > MIT-licensed, not sure if I can get code an re-package it under apache
> > > license ?
> > >
> > > Nico.
> > >
> > > 2007/9/27, Harlan Iverson <[EMAIL PROTECTED]>:
> > > > It looks like there is a good array of tools coming to light from this
> > > > thread. I, myself, have been tackling the problem of making JS library
> > > > development more like Java development, as far as automated running of
> > > unit
> > > > tests, documentation, packaging, etc, in recent months.
> > > >
> > > > I see a growing demand for a nice tool chain of things like jslint,
> > > > shrinksafe, jsunit + jscoverage, selenium, jsdoc, and dependency
> > > management.
> > > > Maybe it's because I just came back to JS after several years with a
> > > bunch
> > > > of Java development under my belt; but I see all these tools and feel
> > > like
> > > > they should be integrated. Especially when I make the connection
> > between
> > > > web2.0 and people who promote Agile development practice. JS tools are
> > > > hardly in the state to accommodate good Agile, IMO. If integration
> > were
> > > > better, it would be a different story.
> > > >
> > > > My original approach was to create an Ant script that would download
> > > various
> > > > things using the  task, and use Maven Antlib for JSUnit, Selenium
> > > and
> > > > ShrinkSafe dependencies. But now I am getting to the point where I
> > want
> > > to
> > > > break my library into multiple parts (project-core, project-ext,
> > > > project-ext-gui, etc) and Maven seems like the natural answer. And of
> > > course
> > > > when Maven comes into the picture, I want to manage my other JS
> > > dependencies
> > > > as such.
> > > >
> > > > So last night I gave it a shot, and it seems to work well using war
> > > > packaging and their built-in overlay behavior. There are a few kinks
> > to
> > > work
> > > > out, and probably Mojos to write, but I think it will work.
> > > >
> > > > My immediate need is for JSUnit, which I have hacked into a series of
> > > > executions (see pom link below). I'll definitely be looking at some of
> > > these
> > > > tools and seeing how I can use them (namely the ShrinkSafe mojo!), and
> > > > hopefully getting a JSUnit mojo out of them at the very least. I've
> > > never
> > > > written a plugin (beyond hello world), but I'm eager to give it a
> > shot.
> > > >
> > > > I have high hopes that Maven can bring the state of JS development up
> > to
> > > par
> > > > with the Agile way that so many web2.0 people want to develop. I'm
> > > looking
> > > > forward to hearing more of everyone's great ideas!
> > > >
> > > > Harlan
> > > >
> > > > ps.
> > > > Here's my main POM with JSUnit (in-progress proof of concept, by no
> > > means a
> > > > final product). The executions for JSUnit are basically a copy of
> > > > Selenium's:
> > > > http://soashable.googlecode.com/svn/xmpp4js/branches/maven/pom.xml
> > > >
> > > > And here's my old Ant script "JSLibBuilder":
> > > > http://soashable.googlecode.com/svn/jslibbuilder/trunk/
> > > >
> > > >
> > > > On 9/27/07, nicolas de loof <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > I myself make test based on scriptaculous and prototype. I'm not
> > > > > developer on this project so this is only a proof-of-concept.
> > > > > Prototype is based on multiple simple js files and requires some
> > > > > packaging, so maven fits naturally. scriptaculous has a dependency
> > on
> > > > > prototype, s

Re: maven-war-plugin confusion

2007-09-30 Thread Wendy Smoak
On 9/30/07, Kram <[EMAIL PROTECTED]> wrote:
>
> Please help me out with this one, its a real pain...

I've read it several times and I'm still not sure I understand the
problem.  The web.xml file belongs directly in WEB-INF, which sounds
like exactly where the plugin is putting it, once you tell it where
the file is.

Are you trying to get the war plugin to build a .war file that has a
top level directory called "webApp"?  If so, you might have better
luck with the Assembly plugin.

-- 
Wendy

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



Re: maven-war-plugin confusion

2007-09-30 Thread Kram

Please help me out with this one, its a real pain...

Thanks to anyone who helps


-- 
View this message in context: 
http://www.nabble.com/maven-war-plugin-confusion-tf4532339s177.html#a12972948
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Maven and eclipse

2007-09-30 Thread Carlos Sanchez
http://mojo.codehaus.org/pde-maven-plugin/

On 10/1/07, Mark Russell <[EMAIL PROTECTED]> wrote:
> I have a second question.  I also have eclipse plugins that I need to run 
> from a maven build.  Is there any support for running
> eclipse via maven. I have an eclipse plugin that collects statistics and I 
> would like to write a maven plugin that has a goal of
>analyze.  this would load up eclipse with all the required plugins run the 
> analysis headlessly then the plugin would process
> the results.
>
> How would everyone suggest I do this.
>
> Thanks for your help
> --
> Mark Russell
> Instantiations, Inc.
> 724-368-3331 (land line)
> http://www.instantiations.com
>
>


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

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



Maven and eclipse

2007-09-30 Thread Mark Russell
I have a second question.  I also have eclipse plugins that I need to run from a maven build.  Is there any support for running 
eclipse via maven. I have an eclipse plugin that collects statistics and I would like to write a maven plugin that has a goal of 
  analyze.  this would load up eclipse with all the required plugins run the analysis headlessly then the plugin would process 
the results.


How would everyone suggest I do this.

Thanks for your help
--
Mark Russell
Instantiations, Inc.
724-368-3331 (land line)
http://www.instantiations.com


smime.p7s
Description: S/MIME Cryptographic Signature


How does a plugin unpack a needed resoure

2007-09-30 Thread Mark Russell
I'm new to maven plugin development.  I have not been able to get an answer to this so is I missed something please point me to 
it. I have  server that needs to be unpacked to the disk to run (it is not tomcat or any app server).  I have a plugin that 
holds the server executables and config.  I would like the user of this plugin to be able to call a goal in this plugin and have 
the server get unpacked to disk and executed.


Please point me to examples of this kind of plugin.

Since I'm new to Maven please feel free to make suggestions on how to do this (even if they are you are going about this 
completely wrong)


Thanks in advance for your help!


--
Mark Russell
Instantiations, Inc.
724-368-3331 (land line)
http://www.instantiations.com


smime.p7s
Description: S/MIME Cryptographic Signature


What is archive-tmp?

2007-09-30 Thread Urroz, Hector (Hector)
Hi all,

I'm building a custom assembly and everything is working just fine.
However, my project target directory contains an directory, archive-tmp,
that has some misc. stuff from src. It doesn't have anything that I
really need, and I'm wondering why its doing there. Did the assembly
plugin not cleanup properly? Anyone have any clues?

Thanks,

Hector Urroz

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



Re: convincing Workplace to use Maven

2007-09-30 Thread Stefan Reuter
Hi,

well it really depends on to whom you want to sell it.
Some ideas:

- easy to generate IDE project files (or use native IDE import/sync with
IDEA 7): estimate the time to setup the environment for a new developer
in the current setup vs. mvn eclipse:eclipse
- don't reinvent the wheel: count the hours you spend maintaining your
ant scripts and tasks vs just using the plugins provided by Maven
- governance: provide a company wide repo with the jars that are
approved to be used
- site: greatly improves inner and inter project communication, helps to
leverage reuse across projects

We've sold it together with subversion ("the successor of cvs") as the
successor of ant.
An additional advantage was to greatly reduce build time: while
previously everything had to be built from scratch, the build process is
much more modular now. Building one module now uses prebuild (SNAPSHOT)
jars of the dependant modules instead of compiling them. Of course that
could also be achieved with ant, but it was easy to attribute that to
Maven :-)

=Stefan

-- 
reuter network consulting
Neusser Str. 110
50760 Koeln
Germany
Telefon: +49 221 1305699-0
Telefax: +49 221 1305699-90
E-Mail:  [EMAIL PROTECTED]
Jabber:  [EMAIL PROTECTED]

Steuernummern 215/5140/1791 USt-IdNr. DE220701760

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



RE: convincing Workplace to use Maven

2007-09-30 Thread Lewandowski, Eric
Hi,

Does your IDE manage third-party dependencies ? Maven do it !

I worked on my project using Jdeveloper and Ant few years ago. All people think 
they used a particular version of commons-lang. But commons-lang was added 
twice in the project... with of course two different versions. Why ? Just 
because Struts package in Jdeveloper include commons-lang... and developers 
added their own version of common-lang in the project.

A such mistake with Maven cannot occurs.

In another project, I need to do theses tasks :
  - remove dependencies because they became obsolete : with Maven, you just 
have to change the pom file and all your project is cleaned.
  - change version of dependencies because of bugs in initially selected 
version : with Maven, just change the pom...

There's a lot of reason the move to Maven.

Good Luck !

Regards !
Eric Lewandowski 

-Message d'origine-
De : Marco Mistroni [mailto:[EMAIL PROTECTED] 
Envoyé : dimanche 30 septembre 2007 05:56
À : Maven Users List
Objet : convincing Workplace to use Maven

hello all,
  i am a big fan of maven (i have been using it since approx 3 years..)..
and i'd like to use it @ my work,
where we are still using ant and coding most of the tasks manually..
but i'd need good arguments, as now many IDEs( especially IntelliJ) offer
lot of capabilities such
as code coverage, identifying code smells etc
so, i'd need good arguments for pushing for Maven2 @work

can anyone help me out?

thanks and regards

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



Re: uploading jars to a internal repository using "mvn deploy"

2007-09-30 Thread Tamás Cservenák
Hello,

you could try to use WebDAV (confgure it as build extension in mvn
2.0.7) and point the repo URL to address:

http://devserver1:/px-webapp/dav/inhouse


Hope helps,
~t~

On 9/28/07, owen_moony <[EMAIL PROTECTED]> wrote:
> 
> 
> inhouse
> 
> http://devserver1:/px-webapp/repository/inhouse
> 
> 

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



RE: Improving the documentation of plugins (was maven is hard)

2007-09-30 Thread Jeff Jensen


> -Original Message-
> From: Dennis Lundberg [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 28, 2007 5:41 PM
> To: Maven Users List
> Subject: Re: Improving the documentation of plugins (was maven is hard)

[snip]

> > 5.1 and 5.2 are frustrating because they often have just enough info to
make
> > you think you know enough to use them.
> >
> > For example, there are often "path" options but you don't know where
they
> > path begins. Does it begin in the folder containing the POM that
contains
> > the option itself? Or does it begin in the folder containing the POM
that we
> > are currently building? (Parent or child pom location) Or does it begin
in
> > the folder you were in when you typed "mvn"? What does ".." do when its
at
> > the front of the path? Does the path specified in a parent pom get the
path
> > from the parent to the child pom added to what was specified? The docs
> > should tell, in each case, exactly how that works.
> 
> Good point. Perhaps we could have a general page about how different
> types of options (like File) should be specified, and in your example
> where their root is. The we create an automatic link to that page for
> each such option.

With this type of example, it is the most difficult when there is no
sample/example.  So, no matter how it is accomplished (a link to common
defs, inline, etc.), every option needs defined: description, default value,
and at least a couple of example usages.  The examples, when I have seen
them, have really expressed what the vague description was.




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



Re: convincing Workplace to use Maven

2007-09-30 Thread Tony Ambrozie
This is not a comparison to other options, but from my perspective I would
say standardization of code artifacts and structure, advanced dependency
management, descriptive vs. programmatic builds, enforcement of enterprise
conventions through super pom's, rich plugin ecosystem, project site that
allows open visibility into build and build-related operations (testing
results, code coverage, code quality, etc), integration into enterprise
build and deployment tools.

Tony


On 9/30/07, Marco Mistroni <[EMAIL PROTECTED]> wrote:
>
> hello all,
>   i am a big fan of maven (i have been using it since approx 3 years..)..
> and i'd like to use it @ my work,
> where we are still using ant and coding most of the tasks manually..
> but i'd need good arguments, as now many IDEs( especially IntelliJ) offer
> lot of capabilities such
> as code coverage, identifying code smells etc
> so, i'd need good arguments for pushing for Maven2 @work
>
> can anyone help me out?
>
> thanks and regards
>


Re: convincing Workplace to use Maven

2007-09-30 Thread Daniele De Francesco
Ok, then
that of convincing colleagues, chiefs etc. to switch to maven  seems a
recurring  challenge developers have to face here in Italy.
I use  maven since 2004 (or was 2003, anyway...) , I think that maven is a
great step ahead in code building, integrating,testing, in developing a
project life cycle that fulfills anybody needs...
but from the other side we always find someone not available to see this
great potential; not that they don't have some good reasons, since switching
a (long lived) project to maven it's not easy nor recommendable or fast, in
some realities.
I would convince colleagues by simply saying they won't face dependency
trouble anymore...and that the stack: Maven + Eclipse + CVS (or Subversion)
is an INDUSTRY standard nowadays. Would they use Idea or Netbeans or
whatever? No problem. Maven is much better from the command line (even if
Maven integrations still exist), and doesn't care what is the IDE used.
Sure the need to spend a little time and effort to understand maven basics,
but this effort will pay back...
If it isn't enough, let me know...
greetings

On 9/30/07, Marco Mistroni <[EMAIL PROTECTED]> wrote:
>
> hello all,
>   i am a big fan of maven (i have been using it since approx 3 years..)..
> and i'd like to use it @ my work,
> where we are still using ant and coding most of the tasks manually..
> but i'd need good arguments, as now many IDEs( especially IntelliJ) offer
> lot of capabilities such
> as code coverage, identifying code smells etc
> so, i'd need good arguments for pushing for Maven2 @work
>
> can anyone help me out?
>
> thanks and regards
>


Re: Experiences from a new Continuum user

2007-09-30 Thread olivier lamy
Hi Dennis,
Thanks for try and comments.
Nevertheless, I hope your first experience was nice.
Concerning your comments:
1. We have planned to improve documentation [1]
2. Yep correct (except actually there is an issue with the mvn.bat in 2.0.7[2])
3. Yes actually we don't support adding a project with scm url
4. Yes could be an improvment
5. This happend only at first start.

--
Olivier

[1] http://www.nabble.com/Documentation-Plan-tf4508771.html
[2] http://jira.codehaus.org/browse/MNG-3084

2007/9/30, Dennis Lundberg <[EMAIL PROTECTED]>:
>
> Hi all
>
> Here are some random thoughts on my first experience setting up
> Continuum 1.1-beta-3 on a Windows XP machine. I have followed the guides
> on the Continuum web site.
>
>
> 1. http://maven.apache.org/continuum/guides/getting-started/index.html
>
> Under "Installing Continuum" the start script folder have other names in
> Continuum-1.1-beta-3, for example:
>bin/win32/run.bat  -->  bin/windows-x86-32/run.bat
>
>
> 2.
>
> http://maven.apache.org/continuum/faqs.html#how-does-continuum-detect-a-successful-build
>
> For Maven 2.0.1 and newer this is already in the mvn.bat - no need to
> update anything.
>
>
> 3. Adding a new project
>
> When adding a Maven 2 project I get the error "The specified resource
> cannot be accessed. Please try again later or contact your
> administrator." when entering an svn: URL.
>
> When adding a Maven 2 project I get the error "The specified resource
> isn't a file or the protocol used isn't allowed." when entering an file:
> URL.
>
> Searching the FAQ I found out how to enable the file protocol. But it
> would be nice to present the list of "allowedSchemes" together with
> those error messages.
>
>
> 4. Moving a project between Project Groups
>
> At first I couldn't move a project from one Project Group to another. So
> I ended up deleting it and creating it again in the correct group.
>
> Later I found that this can only be done from the Project Group view.
> This is a bit backwards from a user point of view. I went to the project
> I wanted to move and couldn't find a way to do it there.
>
>
> 5. Errors in the log
>
> After running the start script on a Sun JDK 1.5.0_11 these errors shows
> up in the startup log. For first time users it is scary to see database
> errors showing up on startup. Continuum seems to be running fine though...
>
> jvm 1| 2007-09-30 18:56:30,687 [WrapperSimpleAppMain] INFO
> Continuum:default  - Showing all projects:
> jvm 1| 2007-09-30 18:56:36,859 [WrapperSimpleAppMain] WARN  RDBMS
> - Error initialising derby schema : Schema 'SA'
> does not exist
> jvm 1| ERROR 42Y07: Schema 'SA' does not exist
> jvm 1|  at
> org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
> jvm 1|  at
> org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getSchemaDescriptor
> (Unknown
> Source)
> jvm 1|  at
> org.apache.derby.impl.sql.compile.QueryTreeNode.getSchemaDescriptor
> (Unknown
> Source)
> jvm 1|  at
> org.apache.derby.impl.sql.compile.DDLStatementNode.getSchemaDescriptor
> (Unknown
> Source)
> jvm 1|  at
> org.apache.derby.impl.sql.compile.DropAliasNode.bind(Unknown Source)
> jvm 1|  at
> org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
> jvm 1|  at
> org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
> jvm 1|  at
>
> org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement
> (Unknown
> Source)
> jvm 1|  at
> org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
> jvm 1|  at
> org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
> jvm 1|  at
> org.apache.commons.dbcp.DelegatingStatement.execute(
> DelegatingStatement.java:261)
> jvm 1|  at
> org.jpox.store.rdbms.adapter.DerbyAdapter.initialiseDatastore(
> DerbyAdapter.java:123)
> jvm 1|  at
> org.jpox.store.rdbms.RDBMSManager.initialiseSchema(RDBMSManager.java:731)
> jvm 1|  at
> org.jpox.store.rdbms.RDBMSManager.(RDBMSManager.java:268)
> jvm 1|  at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> jvm 1|  at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(
> NativeConstructorAccessorImpl.java:39)
> jvm 1|  at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> DelegatingConstructorAccessorImpl.java:27)
> jvm 1|  at
> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> jvm 1|  at org.jpox.util.ClassUtils.newInstance(ClassUtils.java
> :73)
> jvm 1|  at
> org.jpox.store.StoreManagerFactory.getStoreManager(
> StoreManagerFactory.java:73)
> jvm 1|  at
> org.jpox.AbstractPersistenceManager.getStoreManager(
> AbstractPersistenceManager.java:295)
> jvm 1|  at
> org.jpox.AbstractPersistenceManager.(AbstractPersistenceManager.java
> :217)
> jvm 1|  at
> org.jpox.PersistenceM

Re: Get commit comments from Subversion

2007-09-30 Thread Dennis Lundberg

Johan Vogelzang wrote:

Hi all,

For our release process I need to get a list of all the commit comments
between two released version's from the Subversion repository.
We use the maven-release-plugin to release modules.
Are there existing plugin's that support this functionality?

Regards,


You should have a look at the changelog plugin:

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

--
Dennis Lundberg

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



Re: Filtering java source files

2007-09-30 Thread Stefano Nichele

Thanks a lot for you hint. I'll try it...

Do you think this is pretty stable ? I mean, in the next plugin version, 
could this change ?


Ste

Michael McCallum wrote:

maven-jar-plugin puts the version into a file

META-INF/maven/groupid/artifactid/pom.properties

have a look... easy to read out...

On Monday 01 October 2007 05:18, Stefano Nichele wrote:
  

Hi All,
is there a way to filter the java source files ? I have a java class
that contains the version of my application and I would like to set that
value automatically to the one contained in the pom.

I tried putting in my java file:

private static final String VERSION = "${project.version}";


and modifying my pom in order to have the java files in the resources:

...
  
src/main/java
true
java
  
...

In this way, under target/generated-sources/java I have my java class
with the right version, but now I have to compile it.
I tried setting the sourceDirectory in the build section:

...
  
target/generated-sources/java

...

but it doesn't work because the compilation is performed before my java
classes are copied in target/generated-sources/java.

Any hint ?

Thanks in advance
Ste

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



  



--
  () Stefano Nichele   [EMAIL PROTECTED]
_.._  Funambol Servers Tech Lead
  ||
  || funambol :: mobile open source :: http://www.funambol.com


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



Experiences from a new Continuum user

2007-09-30 Thread Dennis Lundberg

Hi all

Here are some random thoughts on my first experience setting up 
Continuum 1.1-beta-3 on a Windows XP machine. I have followed the guides 
on the Continuum web site.



1. http://maven.apache.org/continuum/guides/getting-started/index.html

Under "Installing Continuum" the start script folder have other names in 
Continuum-1.1-beta-3, for example:

  bin/win32/run.bat  -->  bin/windows-x86-32/run.bat


2. 
http://maven.apache.org/continuum/faqs.html#how-does-continuum-detect-a-successful-build


For Maven 2.0.1 and newer this is already in the mvn.bat - no need to 
update anything.



3. Adding a new project

When adding a Maven 2 project I get the error "The specified resource 
cannot be accessed. Please try again later or contact your 
administrator." when entering an svn: URL.


When adding a Maven 2 project I get the error "The specified resource 
isn't a file or the protocol used isn't allowed." when entering an file: 
URL.


Searching the FAQ I found out how to enable the file protocol. But it 
would be nice to present the list of "allowedSchemes" together with 
those error messages.



4. Moving a project between Project Groups

At first I couldn't move a project from one Project Group to another. So 
I ended up deleting it and creating it again in the correct group.


Later I found that this can only be done from the Project Group view. 
This is a bit backwards from a user point of view. I went to the project 
I wanted to move and couldn't find a way to do it there.



5. Errors in the log

After running the start script on a Sun JDK 1.5.0_11 these errors shows 
up in the startup log. For first time users it is scary to see database 
errors showing up on startup. Continuum seems to be running fine though...


jvm 1| 2007-09-30 18:56:30,687 [WrapperSimpleAppMain] INFO 
Continuum:default  - Showing all projects:
jvm 1| 2007-09-30 18:56:36,859 [WrapperSimpleAppMain] WARN  RDBMS 
   - Error initialising derby schema : Schema 'SA' 
does not exist

jvm 1| ERROR 42Y07: Schema 'SA' does not exist
jvm 1|  at 
org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
jvm 1|  at 
org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getSchemaDescriptor(Unknown 
Source)
jvm 1|  at 
org.apache.derby.impl.sql.compile.QueryTreeNode.getSchemaDescriptor(Unknown 
Source)
jvm 1|  at 
org.apache.derby.impl.sql.compile.DDLStatementNode.getSchemaDescriptor(Unknown 
Source)
jvm 1|  at 
org.apache.derby.impl.sql.compile.DropAliasNode.bind(Unknown Source)
jvm 1|  at 
org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
jvm 1|  at 
org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
jvm 1|  at 
org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown 
Source)
jvm 1|  at 
org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
jvm 1|  at 
org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
jvm 1|  at 
org.apache.commons.dbcp.DelegatingStatement.execute(DelegatingStatement.java:261)
jvm 1|  at 
org.jpox.store.rdbms.adapter.DerbyAdapter.initialiseDatastore(DerbyAdapter.java:123)
jvm 1|  at 
org.jpox.store.rdbms.RDBMSManager.initialiseSchema(RDBMSManager.java:731)
jvm 1|  at 
org.jpox.store.rdbms.RDBMSManager.(RDBMSManager.java:268)
jvm 1|  at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
jvm 1|  at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
jvm 1|  at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
jvm 1|  at 
java.lang.reflect.Constructor.newInstance(Constructor.java:494)

jvm 1|  at org.jpox.util.ClassUtils.newInstance(ClassUtils.java:73)
jvm 1|  at 
org.jpox.store.StoreManagerFactory.getStoreManager(StoreManagerFactory.java:73)
jvm 1|  at 
org.jpox.AbstractPersistenceManager.getStoreManager(AbstractPersistenceManager.java:295)
jvm 1|  at 
org.jpox.AbstractPersistenceManager.(AbstractPersistenceManager.java:217)
jvm 1|  at 
org.jpox.PersistenceManagerImpl.(PersistenceManagerImpl.java:42)
jvm 1|  at 
org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:178)
jvm 1|  at 
org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:153)
jvm 1|  at 
org.apache.maven.continuum.store.JdoContinuumStore.getPersistenceManager(JdoContinuumStore.java:1667)
jvm 1|  at 
org.apache.maven.continuum.store.JdoContinuumStore.getPersistenceManager(JdoContinuumStore.java:1662)
jvm 1|  at 
org.apache.maven.continuum.store.JdoContinuumStore.getAllObjectsDetached(JdoContinuumStore.java:1555)
jvm 1|  at 
org.apache.maven.continuum.store.JdoContinuumStore.g

Get commit comments from Subversion

2007-09-30 Thread Johan Vogelzang
Hi all,

For our release process I need to get a list of all the commit comments
between two released version's from the Subversion repository.
We use the maven-release-plugin to release modules.
Are there existing plugin's that support this functionality?

Regards,
-- 
Johan Vogelzang


Release plugin: bind custom plugin to a phase within release:perform

2007-09-30 Thread Johan Vogelzang
Hi all,

How can I bind a goal of a plugin to a phase of the maven-release-plugin?

I tried the following but that didn't work...


...

org.mycompany.plugins
maven-myplugin-plugin
0.1-SNAPSHOT

  
rewrite-poms-for-release

  issue-list

  

  
...


Regards,
-- 
Johan Vogelzang


Re: Filtering java source files

2007-09-30 Thread Michael McCallum
maven-jar-plugin puts the version into a file

META-INF/maven/groupid/artifactid/pom.properties

have a look... easy to read out...

On Monday 01 October 2007 05:18, Stefano Nichele wrote:
> Hi All,
> is there a way to filter the java source files ? I have a java class
> that contains the version of my application and I would like to set that
> value automatically to the one contained in the pom.
>
> I tried putting in my java file:
>
> private static final String VERSION = "${project.version}";
>
>
> and modifying my pom in order to have the java files in the resources:
>
> ...
>   
> src/main/java
> true
> java
>   
> ...
>
> In this way, under target/generated-sources/java I have my java class
> with the right version, but now I have to compile it.
> I tried setting the sourceDirectory in the build section:
>
> ...
>   
> target/generated-sources/java
> 
> ...
>
> but it doesn't work because the compilation is performed before my java
> classes are copied in target/generated-sources/java.
>
> Any hint ?
>
> Thanks in advance
> Ste
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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

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



Re: Filtering java source files

2007-09-30 Thread Stefano Nichele
You are right...I checked the maven lifecycle and re-doing my tests, my 
first idea works ! I don't know why it didn't work,

probably I did a lot of confusion during my attempts.

Thanks a lot
ste

Tomislav Stojcevich wrote:

Ah, I see what you are trying to do now.  Although according to the
maven lifecycle the resources should get processed before the compile.
 http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
 so it should be working.

I think you can get your end result by manually binding the resource
plugin to the generate sources phase but it seems like a lot of extra
work just to get a version in the file.

Does your SCM tool provide keyword substitution upon commit?  You
might be able to have it inject the file's scm version.  It won't be
the same as your maven project version but if you have everything
tagged in your SCM tool you should be able to map it back to a
specific tag.

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


  



--
  () Stefano Nichele   [EMAIL PROTECTED]
_.._  Funambol Servers Tech Lead
  ||
  || funambol :: mobile open source :: http://www.funambol.com


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



Optional Mojo Execution?

2007-09-30 Thread Manos Batsis


Suppose i bundle several mojos under one plugin artifactId, how can i 
make their execution optional? In other words, I only want to run a 
specific mojo when there is an execution element is present for it's 
goal in the plugin configuration.


Many thanks,

Manos

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



Re: Filtering java source files

2007-09-30 Thread Tomislav Stojcevich
Ah, I see what you are trying to do now.  Although according to the
maven lifecycle the resources should get processed before the compile.
 http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
 so it should be working.

I think you can get your end result by manually binding the resource
plugin to the generate sources phase but it seems like a lot of extra
work just to get a version in the file.

Does your SCM tool provide keyword substitution upon commit?  You
might be able to have it inject the file's scm version.  It won't be
the same as your maven project version but if you have everything
tagged in your SCM tool you should be able to map it back to a
specific tag.

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



Re: indiscriminate dependencies ...

2007-09-30 Thread Tomislav Stojcevich
http://jira.codehaus.org/browse/MNG-1977

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



Re: Filtering java source files

2007-09-30 Thread Stefano Nichele
Yes, this was my first implementation, but it is really easy to update a 
jar file (in a production environment for instance) without increasing 
the version in the properties file so I would like to put the version in 
the source code.



Tomislav Stojcevich wrote:

Why don't you just put your version in a standard properties file
using maven's resource filtering (like you are trying to do with the
java file) and have your class read it from there?

-
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: indiscriminate dependencies ...

2007-09-30 Thread Patrick Moore
on a related note ... is there a global exclusions ability? currently you
have to track down every use of the dependency in order to exclude it. For
me the classic case of this is junit. We don't use junit but every jar that
we include seems to have a dependency to junit... which completely clutters
the pom.

On 9/30/07, Tomislav Stojcevich <[EMAIL PROTECTED]> wrote:
>
> i'm unaware of any plugins to prohibit unused deps but the dependency
> plugin has an analyze goal can give you a report showing dependencies
> that are declared and unused that I find useful when cleaning
> dependencies.
>
> mvn dependency:analyze
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Filtering java source files

2007-09-30 Thread Tomislav Stojcevich
Why don't you just put your version in a standard properties file
using maven's resource filtering (like you are trying to do with the
java file) and have your class read it from there?

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



Re: indiscriminate dependencies ...

2007-09-30 Thread Tomislav Stojcevich
i'm unaware of any plugins to prohibit unused deps but the dependency
plugin has an analyze goal can give you a report showing dependencies
that are declared and unused that I find useful when cleaning
dependencies.

mvn dependency:analyze

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



[ANN] Maven JS Tools Plugin v0.1

2007-09-30 Thread Manos Batsis



Following the recent threads on JavaScript tools for Maven, we are 
pleased to announce the 0.1 release of our Maven JS Tools Plugin.



Tools currently supported: JSDoc Toolkit, JSLint


License: Apache License v2


More info:
http://dev.abiss.gr/mvn-jstools
http://sourceforge.net/projects/mvn-jstools/


Feedback is welcome. Enjoy!

Cheers,

Manos

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



Filtering java source files

2007-09-30 Thread Stefano Nichele

Hi All,
is there a way to filter the java source files ? I have a java class 
that contains the version of my application and I would like to set that 
value automatically to the one contained in the pom.


I tried putting in my java file:

   private static final String VERSION = "${project.version}";


and modifying my pom in order to have the java files in the resources:

...
 
   src/main/java
   true
   java
 
...

In this way, under target/generated-sources/java I have my java class 
with the right version, but now I have to compile it.

I tried setting the sourceDirectory in the build section:

...
 
   target/generated-sources/java
   
...

but it doesn't work because the compilation is performed before my java 
classes are copied in target/generated-sources/java.


Any hint ?

Thanks in advance
Ste

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



Re: Why Maven is Hard?

2007-09-30 Thread Dennis Lundberg

Tim Kettler wrote:

Dennis Lundberg schrieb:
[...]

Well, the plugin that had documentation preceeding the currently
released plugin was maven-dependency-plugin a way back.  I was trying
to use the analysis goal, which the documentation showed but the
plugin didn't have.  And also there were some  parameters in
copy-dependencies that were in the online docs, but not in the
released plugin.


This has been a source of confusion and frustration for users before. 


And I think it still is.

What we have done to improve the situation is to add support for 
@since annotations for mojo classes and parameters. If these 
annotations are added in the source code for a plugin, and they should 
be, the generated documentation for goals and parameters shows this.


With this I think, you just try to medicate a symptom instead of healing 
the root cause (to speak in medical terms).


Agreed. This was a soothing "pill" to ease the pain somewhat. It hasn't 
cured the patient completely though. This pill has been used in other 
places like the Ant documentation as well, which has been brought up as 
something to look up to.


The root cause is imho that the current plugin documentation is not what 
the useres expect it to be. When a user sees in the plugin index the 
entry for the dependency plugin with the version stated as 2.0-alpha-4 
and then clicks on the link to the plugins documentaion she expects to 
read the documentation for *exactly* that version and not for some 
unreleased features.


As Wendy said, there has been some work done on this, but it's not 
finished yet.


The dependency-plugin has a good example of this, where the class 
(goal) is available since 2.0-alpha-3 and a couple of parameters since 
2.0-alpha-5:


http://maven.apache.org/plugins/maven-dependency-plugin/analyze-mojo.html


This is hopefully outdated information, and has been fixed a long time
back.  However I avoid doing "mvn -U", since I'm still on 2.0.4 (see
above). 


Thanks




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





--
Dennis Lundberg

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



Re: Why Maven is Hard?

2007-09-30 Thread Tim Kettler

Dennis Lundberg schrieb:
[...]

Well, the plugin that had documentation preceeding the currently
released plugin was maven-dependency-plugin a way back.  I was trying
to use the analysis goal, which the documentation showed but the
plugin didn't have.  And also there were some  parameters in
copy-dependencies that were in the online docs, but not in the
released plugin.


This has been a source of confusion and frustration for users before. 


And I think it still is.

What we have done to improve the situation is to add support for @since 
annotations for mojo classes and parameters. If these annotations are 
added in the source code for a plugin, and they should be, the generated 
documentation for goals and parameters shows this.


With this I think, you just try to medicate a symptom instead of healing 
the root cause (to speak in medical terms).


The root cause is imho that the current plugin documentation is not what 
the useres expect it to be. When a user sees in the plugin index the 
entry for the dependency plugin with the version stated as 2.0-alpha-4 
and then clicks on the link to the plugins documentaion she expects to 
read the documentation for *exactly* that version and not for some 
unreleased features.


The dependency-plugin has a good example of this, where the class (goal) 
is available since 2.0-alpha-3 and a couple of parameters since 
2.0-alpha-5:


http://maven.apache.org/plugins/maven-dependency-plugin/analyze-mojo.html


This is hopefully outdated information, and has been fixed a long time
back.  However I avoid doing "mvn -U", since I'm still on 2.0.4 (see
above). 


Thanks




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



Re: Why Maven is Hard?

2007-09-30 Thread Wendy Smoak
On 9/30/07, Steinar Bang <[EMAIL PROTECTED]> wrote:

> Well, the plugin that had documentation preceeding the currently
> released plugin was maven-dependency-plugin a way back.  I was trying
> to use the analysis goal, which the documentation showed but the
> plugin didn't have.  And also there were some  parameters in
> copy-dependencies that were in the online docs, but not in the
> released plugin.

The experiment with publishing the latest plugin docs and marking new
things "since x.x.x" admittedly hasn't gone too well.

There's some configuration in the latest plugin parent pom that will
allow us to easily publish snapshot docs under a different url, as
well as archive the docs for each released version.  Once that release
happens and I have some spare time I'll pick up that project again...

-- 
Wendy

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



indiscriminate dependencies ...

2007-09-30 Thread Giovanni Azua
Hi all,

I get very frustrated when I would like to quickly build some project X and
I see maven downloading half internet just because one of the developers of
project X thought that some of the dependencies might be needed at some
point but not now. 

This also happens when you develop project A that depend on B but then
someday you don't depend on B anymore and you forget getting rid of the
dependency entry B in A's pom.xml

I know it is not Maven's fault. It is just that maven makes it very easy to
depend on anything. Is there any way perhaps some fancy plugin that will
prevent maven from downloading every little single dependency but only those
actually used by the project X ... kind of lazy dependency resolution, so
developers suggest but do not command what dependencies are required by the
build ...

You get the idea.

regards,
Giovanni



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



Re: Why Maven is Hard?

2007-09-30 Thread Dennis Lundberg

Steinar Bang wrote:

Dennis Lundberg <[EMAIL PROTECTED]>:



Thanks for your input Steinar.



But this isn't at all helpful. Because is to vague. In order for us
(the Maven devs) to fix things we need you (the Maven users) to let us
know *exactly* what is wrong. Please give us concrete examples, then
we can fix them.


Two things have locked us to 2.0.4:
 - a bug in maven proper (I think) where maven will ungzip a tar.gz
   or tgz file it downloads, before dropping it in the local maven
   repo, still with the same name, which breaks when an attempt is
   made at using the file
 - our use of  gave maven 2.0.5 a nullpointer exception, and
   still breaks with error messages I don't understand, and haven't
   had time to look closer at, on 2.0.7


If you can't find issues for these problems in JIRA, please create new 
ones. Add the stack trace to the issue, by running 'mvn -e ...'



The profile problem is the reason I haven't been able to verify that
we have the unpack issue on 2.0.7, which is why I haven't reported it
as a bug.

Trying to find out about the two above have been _major_ time
wasters.  We have spent days trying to track down what has been
happening with the first one, and have spent days trying to understand
 enought to fix the second one.

So I guess  should definitely be classified as _hard_.


Of course this does not really apply when documentation is totally missing.


Well, the plugin that had documentation preceeding the currently
released plugin was maven-dependency-plugin a way back.  I was trying
to use the analysis goal, which the documentation showed but the
plugin didn't have.  And also there were some  parameters in
copy-dependencies that were in the online docs, but not in the
released plugin.


This has been a source of confusion and frustration for users before. 
What we have done to improve the situation is to add support for @since 
annotations for mojo classes and parameters. If these annotations are 
added in the source code for a plugin, and they should be, the generated 
 documentation for goals and parameters shows this.


The dependency-plugin has a good example of this, where the class (goal) 
is available since 2.0-alpha-3 and a couple of parameters since 2.0-alpha-5:


http://maven.apache.org/plugins/maven-dependency-plugin/analyze-mojo.html


This is hopefully outdated information, and has been fixed a long time
back.  However I avoid doing "mvn -U", since I'm still on 2.0.4 (see
above). 


Thanks

--
Dennis Lundberg

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



convincing Workplace to use Maven

2007-09-30 Thread Marco Mistroni
hello all,
  i am a big fan of maven (i have been using it since approx 3 years..)..
and i'd like to use it @ my work,
where we are still using ant and coding most of the tasks manually..
but i'd need good arguments, as now many IDEs( especially IntelliJ) offer
lot of capabilities such
as code coverage, identifying code smells etc
so, i'd need good arguments for pushing for Maven2 @work

can anyone help me out?

thanks and regards


How to handle aqua laf.jar?

2007-09-30 Thread Wim Deblauwe
Hi,

I'm trying to get jide-oss project in the repository on dev.java.net. The
people of jidesoft have done this, but for Windows users, it does not work.
The jide-oss pom has only 1 dependency:


  aqua
  aqua
  5.0
  system
  ${basedir}/libs/laf.jar


Maven complains with:

Validation Errors:
[DEBUG] For dependency Dependency {groupId=aqua, artifactId=aqua, version=
5.0, type=jar}: system-scoped dependency must specify an absolute path
systemPath.
[DEBUG]

I tried adding true, but that gives the same problem. I
also tried  in my pom, but that did not help either.

What is the best way to solve this?

regards,

Wim


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


Re: Why Maven is Hard?

2007-09-30 Thread Steinar Bang
> Dennis Lundberg <[EMAIL PROTECTED]>:

> Thanks for your input Steinar.

> But this isn't at all helpful. Because is to vague. In order for us
> (the Maven devs) to fix things we need you (the Maven users) to let us
> know *exactly* what is wrong. Please give us concrete examples, then
> we can fix them.

Two things have locked us to 2.0.4:
 - a bug in maven proper (I think) where maven will ungzip a tar.gz
   or tgz file it downloads, before dropping it in the local maven
   repo, still with the same name, which breaks when an attempt is
   made at using the file
 - our use of  gave maven 2.0.5 a nullpointer exception, and
   still breaks with error messages I don't understand, and haven't
   had time to look closer at, on 2.0.7

The profile problem is the reason I haven't been able to verify that
we have the unpack issue on 2.0.7, which is why I haven't reported it
as a bug.

Trying to find out about the two above have been _major_ time
wasters.  We have spent days trying to track down what has been
happening with the first one, and have spent days trying to understand
 enought to fix the second one.

So I guess  should definitely be classified as _hard_.

> Of course this does not really apply when documentation is totally missing.

Well, the plugin that had documentation preceeding the currently
released plugin was maven-dependency-plugin a way back.  I was trying
to use the analysis goal, which the documentation showed but the
plugin didn't have.  And also there were some  parameters in
copy-dependencies that were in the online docs, but not in the
released plugin.

This is hopefully outdated information, and has been fixed a long time
back.  However I avoid doing "mvn -U", since I'm still on 2.0.4 (see
above). 


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