Re: Maven 2.0.5 release plans?

2007-02-09 Thread nicolas de loof

About http://jira.codehaus.org/browse/MNG-2794

Maven 2.0.4 uses the nearest strategy to solve dependency conflicts, so
the issue

project depends on A - D-v2
project depends on B - D-v3

has no determinist solution about what version of D will be transitively
used.

Is there some change in resolution strategy with 2.0.5 (
http://docs.codehaus.org/display/MAVENUSER/Improving+Maven2+Dependency+Resolution)
or does this target maven 2.1 ?


Nico.

2007/2/8, franz see [EMAIL PROTECTED]:



Good day,

There are two issues left for 2.0.5. Feel free to speed things up :)

Cheers,
Franz

[1]

http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truemode=hidesorter/order=DESCsorter/field=priorityresolution=-1pid=10500fixfor=12294

Adam Lewis-7 wrote:

 My guess is around the one year anniversary of 2.0.4.



 On 2/6/07, Thierry Lach [EMAIL PROTECTED] wrote:

 Any idea when Maven 2.0.5 will be released?




--
View this message in context:
http://www.nabble.com/Maven-2.0.5-release-plans--tf3181525s177.html#a8869622
Sent from the Maven - Users mailing list archive at Nabble.com.


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




Maven Eclipse Repository

2007-02-09 Thread Jan-Oliver Wuelfing

Good Morning, (well, here at least)

I got this error message:

09.02.07 09:07:53 CET: Unable to read project /wsag4j/pom.xml; 
org.apache.maven.project.ProjectBuildingException: POM 'mss:mss' not 
found in repository: Unable to download the artifact from any repository


  mss:mss:pom:0.0.1

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

But my SVN-repo is on packcs-e0.scai.faunhofer.de/repos/mss/trunk and 
the local repo is in /home/jwuelfin/programs/maven-2.0.4/repo


Why does it not look in any of these locations?

Thank you
 Jan
begin:vcard
fn:Jan Wuelfing
n;quoted-printable:W=C3=BClfing;Jan
org:Fraunhofer Institute for Algorithms and Scientific Computing (SCAI)
adr:;;Schloss Birlinghoven;Sankt Augustin;;53754;GERMANY
email;internet:[EMAIL PROTECTED]
tel;work:+49 (0) 2241 / 14-2138
url:http://www.scai.fraunhofer.de
version:2.1
end:vcard



smime.p7s
Description: S/MIME Cryptographic Signature


What is the default value for resource?

2007-02-09 Thread sam

Hi,
  I am reading
http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html,
There
are some configuration like below:
configuration
   webResources
 resource
   !-- this is relative to the pom.xml directory --
   directoryresource2/directory
  * !-- the list has a default value of ** --
*includes
  include**/*.jpg/include
   includes
 /resource
   /webResources
 /configuration

What does the dafault value mean?I can't understand.


Re: What is the default value for resource?

2007-02-09 Thread Stephane Nicoll

Hi,


On 2/9/07, sam [EMAIL PROTECTED] wrote:

Hi,
   I am reading
http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html,
There
are some configuration like below:
configuration
webResources
  resource
!-- this is relative to the pom.xml directory --
directoryresource2/directory
   * !-- the list has a default value of ** --
*includes
   include**/*.jpg/include
includes
  /resource
/webResources
  /configuration

What does the dafault value mean?I can't understand.


I guess it means that the default include value takes *all* files
(minus the usual excludes such as CVS/svn hidden files, etc).

HTH,

Stéphane





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



Re: Maven-Clearcase

2007-02-09 Thread Kalle Korhonen

What type of integration? Clearcase is what it is, but we use Continuum for
continuous integration builds straight off of Clearcase. I followed the scm
docs to set it up. Once you have scm tags correctly defined, you only need
to have cleartool binary in your path and specify your config spec. There
are some issues, but overall works well enough for us.

Kalle

On 2/7/07, vojjala [EMAIL PROTECTED] wrote:



Hi , I am looking for the documentation or help on integration of Maven
with
Clearcase like how can achive this? It will be great help for our project.

RAM

--
View this message in context:
http://www.nabble.com/Maven-Clearcase-tf3188842s177.html#a8851523
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 2.0.5 release plans?

2007-02-09 Thread franz see

Good day to you, Nico,

May I suggest you leave a comment in the issue as well? :) 

Thanks,
Franz


nicolas de loof-2 wrote:
 
 About http://jira.codehaus.org/browse/MNG-2794
 
 Maven 2.0.4 uses the nearest strategy to solve dependency conflicts, so
 the issue
 
 project depends on A - D-v2
 project depends on B - D-v3
 
 has no determinist solution about what version of D will be transitively
 used.
 
 Is there some change in resolution strategy with 2.0.5 (
 http://docs.codehaus.org/display/MAVENUSER/Improving+Maven2+Dependency+Resolution)
 or does this target maven 2.1 ?
 
 
 Nico.
 
 2007/2/8, franz see [EMAIL PROTECTED]:


 Good day,

 There are two issues left for 2.0.5. Feel free to speed things up :)

 Cheers,
 Franz

 [1]

 http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truemode=hidesorter/order=DESCsorter/field=priorityresolution=-1pid=10500fixfor=12294

 Adam Lewis-7 wrote:
 
  My guess is around the one year anniversary of 2.0.4.
 
 
 
  On 2/6/07, Thierry Lach [EMAIL PROTECTED] wrote:
 
  Any idea when Maven 2.0.5 will be released?
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Maven-2.0.5-release-plans--tf3181525s177.html#a8869622
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/Maven-2.0.5-release-plans--tf3181525s177.html#a8882291
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: What is the default value for resource?

2007-02-09 Thread sam

HI,
   Unfortunately, I am none the wiser for default value,have a look this
below:
configuration
 webResources
   resource
 !-- this is relative to the pom.xml directory --
 directoryresource2//directory
 !-- the list has a default value of ** --
 includes
includeimage2/*.jpg/include
 includes
 !-- there's no default value for this --
 excludes
exclude**/*.jpg/exlude
 /excludes
   /resource
 /webResources
   /configuration
http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html,

2007/2/9, Stephane Nicoll [EMAIL PROTECTED]:


Hi,


On 2/9/07, sam [EMAIL PROTECTED] wrote:
 Hi,
I am reading

http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html
,
 There
 are some configuration like below:
 configuration
 webResources
   resource
 !-- this is relative to the pom.xml directory --
 directoryresource2/directory
* !-- the list has a default value of ** --
 *includes
include**/*.jpg/include
 includes
   /resource
 /webResources
   /configuration

 What does the dafault value mean?I can't understand.

I guess it means that the default include value takes *all* files
(minus the usual excludes such as CVS/svn hidden files, etc).

HTH,

Stéphane



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




Re: hibernate3-maven-plugin hbm2ddl always try to connect

2007-02-09 Thread Michal Hlavac
Dňa St 7. Február 2007 Johann Reyes napísal:
 Hello Miso

 From where are you trying to create the schema.sql? from hbm.xml files or
 annotated classes?

from hbm.xml

miso


smime.p7s
Description: S/MIME cryptographic signature


Re: Re: Eclipse

2007-02-09 Thread Jan-Oliver Wuelfing

No, this error message turnes up if I start Eclipse

[EMAIL PROTECTED] wrote:
 
  Subject:
  Re: Eclipse
  From:
  Matt Bone [EMAIL PROTECTED]
  Date:
  Thu, 8 Feb 2007 18:00:23 -0600
  To:
  Maven Users List users@maven.apache.org
 
  To:
  Maven Users List users@maven.apache.org
 
 
  Does it give you this error message when you invoke maven from the
  command line?
 
  On 2/8/07, Jan-Oliver Wuelfing
  [EMAIL PROTECTED] wrote:
  Hello to everyone,
 
  I use the Maven 2.0.4 Eclipse Plug-in 0.0.5 and Subclipse 1.0.5 and
  encountered the following error message at start-up of Eclipse 
3.2.1:

 
  08.02.07 11:26:51 CET: [DEBUG] Found 0 components to load on start
  08.02.07 11:26:51 CET: [DEBUG] Building Maven user-level plugin 
registry

  from: '/home/jwuelfin/.m2/plugin-registry.xml'
  08.02.07 11:26:51 CET: Reading /wsag4j/pom.xml
  08.02.07 11:26:51 CET: [DEBUG] Retrieving parent-POM from the 
repository

  for project: wsag4j:wsag4j:pom:0.0.1
  08.02.07 11:26:51 CET: [DEBUG] Trying repository central
  08.02.07 11:26:51 CET: [WARN] Unable to get resource from 
repository

  central (http://repo1.maven.org/maven2)
  08.02.07 11:26:51 CET: Unable to read project /wsag4j/pom.xml;
  org.apache.maven.project.ProjectBuildingException: POM 
'mss:mss' not
  found in repository: Unable to download the artifact from any 
repository

 
 mss:mss:pom:0.0.1
 
  from the specified remote repositories:
 central (http://repo1.maven.org/maven2)
 
  08.02.07 11:26:54 CET: Updated source folders for project wsag4j
 
  Has anyone an idea?
 
  Cheers
Jan
 
 
  
-

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


 

begin:vcard
fn:Jan Wuelfing
n;quoted-printable:W=C3=BClfing;Jan
org:Fraunhofer Institute for Algorithms and Scientific Computing (SCAI)
adr:;;Schloss Birlinghoven;Sankt Augustin;;53754;GERMANY
email;internet:[EMAIL PROTECTED]
tel;work:+49 (0) 2241 / 14-2138
url:http://www.scai.fraunhofer.de
version:2.1
end:vcard



smime.p7s
Description: S/MIME Cryptographic Signature


Re: What is the default value for resource?

2007-02-09 Thread franz see

Good day to you, ??,

The default includes means *all*. Inlcuding the cvs and .whatever files :)
That is unless you specify an include, which would override the default.

Meaning, if you only have

 configuration
  webResources
resource
  !-- this is relative to the pom.xml directory --
  directoryresource2//directory
/resource
  /webResources
/configuration 

Then all of resource2's content would be included. But if you have

 configuration
  webResources
resource
  !-- this is relative to the pom.xml directory --
  directoryresource2//directory
  !-- the list has a default value of ** --
  includes
 includeimage2/*.jpg/include
  includes
/resource
  /webResources
/configuration 

Then only the jpg files under resource2/image2 would be included. So if you
have something like resource2/my.txt and
resource2/whatever-folder/some-other-folder/another.txt, those would not be
included.

But if you have something like 

 configuration
  webResources
resource
  !-- this is relative to the pom.xml directory --
  directoryresource2//directory
  !-- the list has a default value of ** --
  includes
 includeimage2/*.jpg/include
  includes
  !-- there's no default value for this --
  excludes
 exclude**/*.jpg/exlude
  /excludes
/resource
  /webResources
/configuration 

Then *none* from resource2 would be included. Why? Because it's like saying
get all resource2/image2/*.jpg and from those, remove the resource2/**/*.jpg
:) ( note: even if you declare the excludes first, followed by the includes,
the evalution of what resources to be included would still be the same )
...That is why it is said there that exclude has a higher priority.

Regarding the comments, this is relative to the pom.xml directory merely
says that the directory is relative to the base directory ( the directory
containing the pom.xml ). Thus, declaring directoryresource2/directory
is like saying ${basedir}/resource2 ( where ${basedir} is the directory
containing your pom.xml ).

the list has a default value of ** on the other hand is saying that the
default is

includes
  include**/include
/includes

And by default, meaning, that is what it will use if you don't specify one.

And as for there's no default value for this, it's saying that the exclude
tag has no default value. Meaning, if you don't specify any exclude, it will
not remove anything from what you included in the directory :)

Umm..did I answer your question or is there some parts that are still
confusing? :)

Cheers,
Franz


秋秋 wrote:
 
 HI,
 Unfortunately, I am none the wiser for default value,have a look
 this
 below:
  configuration
   webResources
 resource
   !-- this is relative to the pom.xml directory --
   directoryresource2//directory
   !-- the list has a default value of ** --
   includes
  includeimage2/*.jpg/include
   includes
   !-- there's no default value for this --
   excludes
  exclude**/*.jpg/exlude
   /excludes
 /resource
   /webResources
 /configuration
 http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html,
 
 2007/2/9, Stephane Nicoll [EMAIL PROTECTED]:

 Hi,


 On 2/9/07, sam [EMAIL PROTECTED] wrote:
  Hi,
 I am reading
 
 http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html
 ,
  There
  are some configuration like below:
  configuration
  webResources
resource
  !-- this is relative to the pom.xml directory --
  directoryresource2/directory
 * !-- the list has a default value of ** --
  *includes
 include**/*.jpg/include
  includes
/resource
  /webResources
/configuration
 
  What does the dafault value mean?I can't understand.

 I guess it means that the default include value takes *all* files
 (minus the usual excludes such as CVS/svn hidden files, etc).

 HTH,

 Stéphane

 

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


 
 

-- 
View this message in context: 
http://www.nabble.com/What-is-the-default-value-for-resource--tf3199119s177.html#a8882942
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: What plugin does the package life sycle use?

2007-02-09 Thread franz see

Good day,

In addition, you may want to take a look at [1] as well. It explains there
what the lifecycle, phases, and goals are ( In a nutshell, a lifecycle are
made up of phases, and phases are made up of goals ). Furthermore, you can
see at the end the three built-in lifecycles:
1. clean
2. default, and
3. site

Also, you can see there that the goals bounded to the phases depends on what
you put in your pom's packaging section :) ...And the list where they are
bounded are already there :)

Cheers,
Franz

[1] http://docs.codehaus.org/display/MAVENUSER/introduction-to-the-lifecycle


Wendy Smoak-3 wrote:
 
 On 2/8/07, sam [EMAIL PROTECTED] wrote:
 
 What plugin does the package  life sycle  use?
 
 http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
 
 package is a phase in the default lifecycle
 
 Phases don't use plugins, instead plugins are bound to lifecycle phases.
 
 As mentioned, war jar and ear are some plugins that do part of their
 work in the package phase.
 
 -- 
 Wendy
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/What-plugin-does-the-%22package-%22-life-sycle-use--tf3198136s177.html#a8883012
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: plexus compiler issues with annotations

2007-02-09 Thread davis

Hi Eric, thanks for pointing that out.  Unfortunately that is just my typo in
trying to express the post.  The real file does not have that comma.  This
really is an issue with mvn plexus compiler.  It's simple to reproduce, just
try it in a blank new maven project with package-info.java the only file
with an annotation like that (w/o the comma).

I'd file a JIRA issue if I knew how.

I wish there was a fix for this b/c it is really a problem for me.  If
anyone has a fix, let me know.

Regards,
Davis


Eric Redmond wrote:
 
 Remove the last comma before the }) tokens.
 
 Eric
 
 On 2/8/07, David Ford [EMAIL PROTECTED] wrote:

 Hi, I'm doing a hibernate project where we set up a package-info.java
 file that looks like this



 @org.hibernate.annotations.NamedQueries( {



   @org.hibernate.annotations.NamedQuery(name = someQuery, query =
 from User u),

 })

 package some.package;



 The annotation is at the top, the package declaration is at the bottom.



 Unfortunately, plexus-compiler-javac croaks when trying to parse this.
 I just tried 1.6-SNAPSHOT and it still has the problem...



 [parsing started
 C:\SVN\diamond\orm-tracer\src\main\java\com\teleatlas\global\orm\domain\
 package-info.java]

 C:\SVN\diamond\orm-tracer\src\main\java\com\teleatlas\global\orm\domain\
 package-info.java:116: illegal start of expression

 })

 ^



 However, this works fine in Eclipse, and so I tried
 plexus-compiler-eclipse.  With that, I get by the parsing issue above,
 but I get a build failure b/c it cannot seem to find any of my domain
 classes.



 I've yet to find any documentation on how to configure
 plexus-compiler-eclipse.  I tried giving it source1.5/source and
 target1.5/source but still no luck.



 Has anyone else run into this - and have they found a workaround???



 Thx in advance,

 Davis



 PS - can you please cc me on a reply




 
 
 -- 
 Eric Redmond
 http://codehaus.org/~eredmond
 
 

-- 
View this message in context: 
http://www.nabble.com/plexus-compiler-issues-with-annotations-tf3197100s177.html#a8883224
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Remove the version number from the final jar

2007-02-09 Thread bjorn.de.bakker
Hi

First of all, I know this isn't 'very good', but we really need this.  When we 
run mvn install, we want to have a jar in the repository with no version 
attached to the filename.  finalName only influences the naming of the jar in 
the target-folder.  I've looked around on the net, but haven't found a solution 
yet.  The reason why we want to do this, is we want to reference the jar-file 
in our web.xml for a tld.  Otherwise we have to change the web.xml every time 
we have a new version (and it's not very likely that version will increment in 
the future).  Is there a way to configure the jar-plugin or any other thing?

tia



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.


Assembly Plugin 2.2 - fileMode behaviour

2007-02-09 Thread Marnie McCormack

All,

Our project (Qpid) is currently using the Maven assembly plugin snapshot 2.2
.

I'm seeing some odd behaviour around fileMode. We had previously been using
octal values with assembly plugin 2.1, and when we moved to 2.2 those failed
validation. So, I amended them back to decimal values and removed the
fileMode tag for files which we want to use the default of '0644' (taken
from here:
http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html)

However, the setting of fileModes does not seem to be working as I'd expect
it to i.e. they were incorrect. So, I reintroduced the fileMode tag for
these elements and set it to '0644' and built a distribution on windows.
When I build a tar.gz file and unpack it on Solaris the permissions look
like this:

--wr--1 mm py  4293 Feb  6 09:56 virtualhosts.xml
--wr--1 mm py  4284 Jan 24 18:31 config.xml
--wr--1 mm py  2105 Jan 18 09:46 log4j.xml
--wr--1 mm py   973 Nov 28 09:26 qpid-server.conf
--wr--1 mm py   990 Nov 21 16:01 qpid-run.conf
--wr--1 mm py12 Nov 21 16:00 passwd

I've looked in the JIRA (http://jira.codehaus.org/browse/MPA)  codehaus but
think this might be the wrong place to look for bugs ? At any rate, I
couldn't spot anything relating to fileMode.

Are there any known issues or can anyone suggest the root cause ? Looking a
little more, it looks like only the '7' value works correctly.

Thanks  Regards,
Marnie


Dependencies for plugin

2007-02-09 Thread Petr Ferschmann
Hello,

is there a way to specify dependencies for project when running this
plugin? I know there is a support for dependencies for plugin:
plugin
dependency
/dependency
/plugin

But I think this is not what I need. I am developing Seam archetype. I
want to have project without dependency on JBoss microcontainer. 
But when I run it with jetty:run I want it to be run with microcontainer
(so it is in application classpath). 

Is there a way for that? I think it is not because some archetypes uses
profiles for it: mvn jetty:run -PjettyConfig

Thanks.
-- 
Petr Ferschmann

SoftEU s.r.o.
---
Sady Petatricatniku 31
301 00 Plzen
Czech Republic
---
Phone: +420 373 729 300
Fax:   +420 373 729 301
Cell:  +420 775 638 008
E-mail: [EMAIL PROTECTED] 



Re: Remove the version number from the final jar

2007-02-09 Thread Graham Leggett
On Fri, February 9, 2007 12:41 pm, [EMAIL PROTECTED] wrote:

 First of all, I know this isn't 'very good', but we really need this.
 When we run mvn install, we want to have a jar in the repository with no
 version attached to the filename.  finalName only influences the naming of
 the jar in the target-folder.  I've looked around on the net, but haven't
 found a solution yet.  The reason why we want to do this, is we want to
 reference the jar-file in our web.xml for a tld.  Otherwise we have to
 change the web.xml every time we have a new version (and it's not very
 likely that version will increment in the future).

If you are not very likely to have a new version in the future, surely
naming the jar + the version in the web.xml would work for you?

As you say, stripping the version isn't very good indeed.

Regards,
Graham
--



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



Re: Assembly Plugin 2.2 - fileMode behaviour

2007-02-09 Thread Marnie McCormack

All,

Please ignore - apologies.

It transpires that we have reverted to 2.1, so thus need octal file modes
again I guess :-(

Thanks,
Marnie


On 2/9/07, Marnie McCormack [EMAIL PROTECTED] wrote:


All,

Our project (Qpid) is currently using the Maven assembly plugin snapshot
2.2.

I'm seeing some odd behaviour around fileMode. We had previously been
using octal values with assembly plugin 2.1, and when we moved to 2.2those 
failed validation. So, I amended them back to decimal values and
removed the fileMode tag for files which we want to use the default of
'0644' (taken from here:
http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html)

However, the setting of fileModes does not seem to be working as I'd
expect it to i.e. they were incorrect. So, I reintroduced the fileMode tag
for these elements and set it to '0644' and built a distribution on windows.
When I build a tar.gz file and unpack it on Solaris the permissions look
like this:

--wr--1 mm py  4293 Feb  6 09:56 virtualhosts.xml
--wr--1 mm py  4284 Jan 24 18:31 config.xml
--wr--1 mm py  2105 Jan 18 09:46 log4j.xml
--wr--1 mm py   973 Nov 28 09:26 qpid-server.conf
--wr--1 mm py   990 Nov 21 16:01 qpid-run.conf
--wr--1 mm py12 Nov 21 16:00 passwd

I've looked in the JIRA (http://jira.codehaus.org/browse/MPA)  codehaus
but think this might be the wrong place to look for bugs ? At any rate, I
couldn't spot anything relating to fileMode.

Are there any known issues or can anyone suggest the root cause ? Looking
a little more, it looks like only the '7' value works correctly.

Thanks  Regards,
Marnie





RE: Passing version number to install ant task

2007-02-09 Thread Bhatia, Naresh \(IS Consultant\)
 I am using Antlib for Maven 2.0 to install bunch of jar files to my
 local maven repository. Is there any way to specify the version number
 of these jars in my ant task instead of the pom files? The reason I
 ask is that the version nuber is available in my ant script at the
 time of a build, whereas it is not convenient (or elegant) to change
 the version numbers in each one of the POM files during the build.
 
 Here's a sample of how I am invoking the ant task to install a jar:
 
 artifact:install file=${lib.dir}/entities-${build.version}.jar
 pomRefId=entities.pom/
 
 What I would really like is
 
 artifact:install file=${lib.dir}/entities-${build.version}.jar
 pomRefId=entities.pom version=${build.version}/
 
 Thanks.
 Naresh
 
P.S. I posted this yesterday but apparently it never got pushed to the
list. My apologies if you receive this post twice.


[ANN] Maven2 javancss plugin 2.0-beta-2

2007-02-09 Thread jean-laurent de morlhon

The Mojo team is pleased to announce the javancss-maven-plugin
2.0-beta-2 release!

http://mojo.codehaus.org/javancss-maven-plugin/

This plugin allows user to:

- Compute complexity (CCN) and quantity (NCSS) metrics on your code
- Create a report displaying those number.

Here's the release note :

Release Notes - Maven 2.x JavaNCSS Plugin - Version 2.0-beta-2

** Bug
   * [MJNCSS-8] - NullPointerException when report are generated on ... Windows
   * [MJNCSS-10] - Plugin crashes when Java elements have special characters

** Improvement
   * [MJNCSS-2] - javancss-maven-plugin JXR integration
   * [MJNCSS-3] - exclude directory
   * [MJNCSS-4] - JavaNCSS may not fully support 1.5 annotations
   * [MJNCSS-5] - Drop Function and replace by Method where
applicable in reports
   * [MJNCSS-6] - Make plugin documenation standard with docck.

** New Feature
   * [MJNCSS-1] - Create javancss:check mojo

Enjoy!

-The Mojo  team

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



Re: Remove the version number from the final jar

2007-02-09 Thread Wendy Smoak

On 2/9/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


First of all, I know this isn't 'very good', but we really need this.  When we 
run mvn install, we want to have a jar in the repository with no version 
attached to the filename.  finalName only influences the naming of the jar in 
the target-folder.  I've looked around on the net, but haven't found a solution 
yet.  The reason why we want to do this, is we want to reference the jar-file 
in our web.xml for a tld.  Otherwise we have to change the web.xml every time 
we have a new version (and it's not very likely that version will increment in 
the future).  Is there a way to configure the jar-plugin or any other thing?


Can you give an example of what you have in web.xml?  I don't see why
you'd need the jar file name in the taglib element.

In fact, unless you're working with Servlet 2.2/JSP 1.1, you typically
don't need taglib elements at all.  The container will discover tlds
contained in jar files, all you need to do us use the correct uri.

I doubt you can change the filename in the repository, but you can get
Maven to filter properties into web.xml so things match.

Or try renaming the jar after it lands in
target/webappname/WEB-INF/lib, but before it gets packaged.

--
Wendy

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



Re: Remove the version number from the final jar

2007-02-09 Thread Stephane Nicoll

On 2/9/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi

First of all, I know this isn't 'very good', but we really need this.  When we 
run mvn install, we want to have a jar in the repository with no version 
attached to the filename.  finalName only influences the naming of the jar in 
the target-folder.  I've looked around on the net, but haven't found a solution 
yet.  The reason why we want to do this, is we want to reference the jar-file 
in our web.xml for a tld.  Otherwise we have to change the web.xml every time 
we have a new version (and it's not very likely that version will increment in 
the future).  Is there a way to configure the jar-plugin or any other thing?



Why don't you add a token in your web.xml and you filter it with the
version of your dependencies. I know we've been working on a Mojo that
would allow to expose those system properties. If not, it's very easy
to build one.

HTH,
Stéphane


tia



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.



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



SCM and VSS

2007-02-09 Thread Parikh, Pratik P.
Hi Everyone,

Has anyone used Maven and VSS, and if you have then does anyone have any
recommendations? A sample pom.xml would be helpful as well. 

Thanks,
Pratik Parikh 



-
Confidentiality Notice: This e-mail transmission 
may contain confidential or legally privileged 
information that is intended only for the individual 
or entity named in the e-mail address. If you are not 
the intended recipient, you are hereby notified that 
any disclosure, copying, distribution, or reliance 
upon the contents of this e-mail is strictly prohibited. 

If you have received this e-mail transmission in error, 
please reply to the sender, so that we can arrange 
for proper delivery, and then please delete the message 
from your inbox. Thank you.



Re: [mojo-user] [ANN] Maven2 javancss plugin 2.0-beta-2

2007-02-09 Thread takai

Brilliant! Thank you very much!
-- 
View this message in context: 
http://www.nabble.com/-mojo-user---ANN--Maven2-javancss-plugin-2.0-beta-2-tf3200227s177.html#a8886024
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: SCM and VSS

2007-02-09 Thread Bryce Fischer

Yes. Here's my relevant part:

scm
connectionscm:vss|${framework.scm.server}|/source/Factories/${project.artifactId}/connection
/scm

Where ${framework.scm.server} is a property pointing to the folder
where the srcsafe.ini file is located.

On 2/9/07, Parikh, Pratik P. [EMAIL PROTECTED] wrote:

Hi Everyone,

Has anyone used Maven and VSS, and if you have then does anyone have any
recommendations? A sample pom.xml would be helpful as well.

Thanks,
Pratik Parikh



-
Confidentiality Notice: This e-mail transmission
may contain confidential or legally privileged
information that is intended only for the individual
or entity named in the e-mail address. If you are not
the intended recipient, you are hereby notified that
any disclosure, copying, distribution, or reliance
upon the contents of this e-mail is strictly prohibited.

If you have received this e-mail transmission in error,
please reply to the sender, so that we can arrange
for proper delivery, and then please delete the message
from your inbox. Thank you.




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



Maven 2.1 timeline?

2007-02-09 Thread Brian-R . Jackson
Sorry if this has been asked, but any idea when Maven 2.1 will be
release?  I'm running into the site + jxr problem
(http://jira.codehaus.org/browse/MSITE-138) which won't be fixed in the
2.0.x branch.

Regards,
Brian

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.

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

RE: hibernate3-maven-plugin hbm2ddl always try to connect

2007-02-09 Thread Johann Reyes
Hello Miso

Try this:

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdhibernate3-maven-plugin/artifactId
version2.0-SNAPSHOT/version
configuration
components
component
namehbm2ddl/name

implementationconfiguration/implementation
/component
/components
componentProperties
outputfilenameschema.sql/outputfilename
/componentProperties
/configuration
/plugin

Regards

Johann Reyes

-Original Message-
From: Michal Hlavac [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 09, 2007 4:23 AM
To: Maven Users List
Subject: Re: hibernate3-maven-plugin hbm2ddl always try to connect

Dňa St 7. Február 2007 Johann Reyes napísal:
 Hello Miso

 From where are you trying to create the schema.sql? from hbm.xml files or
 annotated classes?

from hbm.xml

miso



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



[m2] plugin development question

2007-02-09 Thread Thorsten Vogel
Good day everyone,



i want to achieve the following in a m2 plugin but i don't know if it is
possible (i am new to m2 but i have used m1 intensively in the past):

1. One plugin/mojo must be executed when the build starts.
2. One plugin/mojo must be executed when the build ends and it needs to
detect if there were build errors.

How would i accomplish this?

Is there a way to register a build lifecycle listener somehow or can i
achieve this with mutiple plugins?



Thank you in advance!
Thorsten


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



[M2] Execute only in the parent POM and some sub-modules ?

2007-02-09 Thread Rémy Sanlaville

Hi,

I wonder if it is possible to execute a plugin only for some sub-modules
from the parent pom ?

I have a multi-modules projects

parent
 |
 |-- module A
 |
 |-- module B
 |
 |-- module C
 |
 |-- module ...
 |
 |-- pom.xml

I want to generate a web site of my project but excluding one or two
modules. It would by nice to
share the reporting section in my parent pom and excluding these modules
when executing mvn site.
But I also want to take into account all the modules for others tasks
(compile, package, install...).

How can I do this ?

Rémy


Re: Deploy a License file

2007-02-09 Thread Jeremy Wortzman
The license file can only go inside that which you deploy.  You cannot 
deploy a license file anymore.


-Jeremy

Behrens, Andrey wrote:

Hallo,

is it possible to deploy a license file?

I have an project with a LICENSE.txt file (like the maven docs told 
me). I have an license block too.


licenses
  license
nameGPL V2/name
urlhttp://www.gnu.org/copyleft/gpl.html/url
distributionrepo/distribution
commentsGNU GENERAL PUBLIC LICENSE/comments
  /license
/licenses

But maven doesn't deploy the license file to the repository. Of course 
the license block will stay in the pom file. But I feel that this 
wouldn't be enough.


Kindly Regards.



Andrey

  



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



Re: Deploy a License file

2007-02-09 Thread Jeremy Wortzman
Oops I just realized I made a critical typo suggesting you could deploy 
the license.txt! You cannot deploy a license file anymore.  We now only 
use license block.


Jeremy Wortzman wrote:
The license file can only go inside that which you deploy.  You cannot 
deploy a license file anymore.


-Jeremy

Behrens, Andrey wrote:

Hallo,

is it possible to deploy a license file?

I have an project with a LICENSE.txt file (like the maven docs told 
me). I have an license block too.


licenses
  license
nameGPL V2/name
urlhttp://www.gnu.org/copyleft/gpl.html/url
distributionrepo/distribution
commentsGNU GENERAL PUBLIC LICENSE/comments
  /license
/licenses

But maven doesn't deploy the license file to the repository. Of 
course the license block will stay in the pom file. But I feel that 
this wouldn't be enough.


Kindly Regards.



Andrey

  



-
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] plugin development question

2007-02-09 Thread Wayne Fay

I have no idea if this is possible with M2 plugins as I haven't done a
whole lot in that area yet. The first one should be relatively easy --
make a mojo and assign it to the validate phase. But I'm not sure you
can assign a mojo to the last phase when you don't know which one
that will be especially when an error occurs. Someone else who knows
more about plugins will hopefully reply with more info here.

So instead, I might suggest using the %HOME%\mavenrc_pre.bat and
%HOME%\mavenrc_post.bat files (assuming you're on Windows) specified
in mvn.bat to do the start/stop process you're looking for. Or if
you're not on Windows, the mvn batch script seems to look for and
execute /etc/mavenrc and $HOME/.mavenrc before calling the Maven java
process. But it does not have a corresponding post call.

Alternatively, I would override the entire mvn batch file stuff with
my own, perhaps call it mymvn, and do the start/stop stuff in mymvn,
and then call the real mvn batch file from there. This seems easiest
to me, especially if you're only developing on one common platform.

Wayne

On 2/9/07, Thorsten Vogel [EMAIL PROTECTED] wrote:

Good day everyone,



i want to achieve the following in a m2 plugin but i don't know if it is
possible (i am new to m2 but i have used m1 intensively in the past):

1. One plugin/mojo must be executed when the build starts.
2. One plugin/mojo must be executed when the build ends and it needs to
detect if there were build errors.

How would i accomplish this?

Is there a way to register a build lifecycle listener somehow or can i
achieve this with mutiple plugins?



Thank you in advance!
Thorsten


-
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: Maven2 Surefire Aspectj LTW Spring Integration Tests Don't Work???

2007-02-09 Thread David J. M. Karlsen

Kaare Nilsen wrote:

On 12/01/07, Terry C Martin [EMAIL PROTECTED] wrote:


I have an application in which I make use of AspectJ 
Load-time-weaving to
inject pojos with services from Spring.  I have some integration 
tests which
test that the pojo is able to be injected and collaborate with the 
injected

service successfully.  These tests run successfully within Eclipse's
environment (I configured Eclipse's Installed JRE setting to set the
-javaagent:/aspectjweaver.jar).  When I back out onto the command prompt
(Windows XP) and set an environment variable: set
MAVEN_OPTS=-javaagent:/aspectjweaver.jar
where /aspectjweaver.jar happens to be on my c:\ drive and run 'mvn 
test' or
any derivatives thereof, the tests run as if there is no weaving 
happening.

I suspect the maven surefire plugin isn't carrying over the javaagent
setting.  Maybe it's spawning a new process that does its own 
thing???  If I

actually run the app on command line through Maven (it's a web app
launchable through the maven Jetty plugin), weaving works, so it 
definitely

points towards there just being a problem with surefire plugin.

I've tried configuring the surefire plugin to fork a new process 
once 

pertest and set the argLine property with my javaagent setting to no
avail.

Has anyone gotten aspectj weaving to work outside of Eclipse within a 
maven

surefire test?


Yupp :)

add this to your build section :

plugin
   artifactIdmaven-surefire-plugin/artifactId
   configuration
   forkModeonce/forkMode
argLine-javaagent:${user.home}/.m2/repository/aspectj/aspectjweaver/1.5.3/aspectjweaver-1.5.3.jar/argLine 


or the more robust:
argLine-javaagent:${localRepository}/aspectj/aspectjweaver/1.5.3/aspectjweaver-1.5.3.jar/argLine 



--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com


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



Site descriptor inheritance?

2007-02-09 Thread Brian-R . Jackson
Is site.xml inherited by child projects?  Is it limited to menus that
are explicitly declared to inherit?  I've got the following site
descriptor and things like bannerLeft, publishDate, version and
breadcrumbs don't appear to be inherited by my child project.  Is doing
a mvn install enough to publish the descriptor locally?

Thanks,
Brian


?xml version=1.0 encoding=ISO-8859-1?
project name=${project.parent.name} | ${project.name}
bannerLeft
srchttp://www.ubs.com/1/live/images/uco24.gif/src
/bannerLeft
publishDate position=right format=MMM d, /
version position=right/
body
breadcrumbs
item name=UBS href=http://www.ubs.com/
item name=${project.name}/
/breadcrumbs

menu ref=parent/
menu ref=modules/
menu ref=reports/
/body
/project

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.

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

Re: Access dependency properties inside pom.

2007-02-09 Thread Marcos Silva Pereira

Hello,

Because I think that is a quite useful enable access to dependency
properties inside pom, I am trying to develop a Maven plugin to set
properties in the following format:

${project.dependencies[groupId:artifactId].version|scope|type}

My mojo code is:

package com.provider.maven.plugins;

import org.apache.maven.artifact.Artifact;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.project.MavenProject;

/**
* @goal properties
* @requiresDependencyResolution
* @requiresProject
*/
public class EnableProjectPropertiesMojo extends AbstractMojo {

   private static final String DEPENDENCY_PREFIX = project.dependencies;

   /**
* Instancia do projeto.
*
* @parameter default-value=${project}
* @required
* @readonly
*/
   private MavenProject project;

   public void execute() throws MojoExecutionException {

   for (Object object : project.getArtifacts()) {

   Artifact artifact = (Artifact) object;

   String artifactIdentification = DEPENDENCY_PREFIX + [
   + artifact.getGroupId() + : + artifact.getArtifactId()
   + ].;

   getLog().debug(
   Setting properties for ' + artifactIdentification +
');

   String version = artifactIdentification + artifact.getVersion();
   String scope = artifactIdentification + artifact.getScope();
   String type = artifactIdentification + artifact.getType();

   System.setProperty(version, artifact.getVersion());
   System.setProperty(scope, artifact.getScope());
   System.setProperty(type, artifact.getType());

   }

   }
}

And I have configure it in the build life cycle using:

plugin
   groupIdcom.provider.maven.plugins/groupId
   artifactIdmaven-properties-plugin/artifactId
   version1.0/version
   executions
   execution
   phaseinitialize/phase
   goals
   goalproperties/goal
   /goals
   /execution
   /executions
/plugin

But properties still not accessible in my pom. Some ideas what is wrong?

ps.: I've used ${project} instead of ${project.artifacts} because I plan to
extends this mojo later.

On 2/8/07, dawn.angelito [EMAIL PROTECTED] wrote:



Hi Marcos,

Instead of doing that, try this:

dependencies
  dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version${property.name}/version
  /dependency
/dependencies

property.name3.8.1/property.name

Declare the version as a property then use that in your dependency.

Hope this helps.

Dawn



Marcos Silva Pereira wrote:

 How can I access dependency information inside the pom.xml? I would like
 to
 do something like the following:

 property.name${project.dependencies
[junit:junit].version}/property.name

 In other words, how can I get the version from a dependency?

 Thanks...

 --
 Marcos Silva Pereira
 recife - pe
 [EMAIL PROTECTED]
 skype: marcos.silva.pereira
 http://blastemica.blogspot.com



--
View this message in context:
http://www.nabble.com/Access-dependency-properties-inside-pom.-tf3189482s177.html#a8860434
Sent from the Maven - Users mailing list archive at Nabble.com.


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





--
Marcos Silva Pereira
recife - pe
[EMAIL PROTECTED]
skype: marcos.silva.pereira
http://blastemica.blogspot.com


RE: Passing version number to install ant task

2007-02-09 Thread Bhatia, Naresh \(IS Consultant\)
Answering my own question :-).

I solved the issue by calling maven directly from ant. Here's my ant
target:

target name=install-file
java classname=org.codehaus.classworlds.Launcher fork=true
failonerror=true
classpath
pathelement
location=${env.M2_HOME}/core/boot/classworlds-1.1.jar/
/classpath
jvmarg
value=-Dclassworlds.conf=${env.M2_HOME}/bin/m2.conf/
jvmarg value=-Dmaven.home=${env.M2_HOME}/
arg value=install:install-file/
arg value=-Dfile=${file}/
arg value=-DgroupId=${groupId}/
arg value=-DartifactId=${artifactId}/
arg value=-Dpackaging=${packaging}/
arg value=-Dversion=${version}/
arg value=-DgeneratePom=true/
arg value=-DcreateChecksum=true/
/java
/target

Naresh 

-Original Message-
From: Bhatia, Naresh (IS Consultant) 
Sent: Friday, February 09, 2007 7:31 AM
To: users@maven.apache.org
Subject: RE: Passing version number to install ant task

 I am using Antlib for Maven 2.0 to install bunch of jar files to my 
 local maven repository. Is there any way to specify the version number

 of these jars in my ant task instead of the pom files? The reason I 
 ask is that the version nuber is available in my ant script at the 
 time of a build, whereas it is not convenient (or elegant) to change 
 the version numbers in each one of the POM files during the build.
 
 Here's a sample of how I am invoking the ant task to install a jar:
 
 artifact:install file=${lib.dir}/entities-${build.version}.jar
 pomRefId=entities.pom/
 
 What I would really like is
 
 artifact:install file=${lib.dir}/entities-${build.version}.jar
 pomRefId=entities.pom version=${build.version}/
 
 Thanks.
 Naresh
 
P.S. I posted this yesterday but apparently it never got pushed to the
list. My apologies if you receive this post twice.

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



maven-site-plugin | stage | empty index.html for cobertura, jxr

2007-02-09 Thread Brian-R . Jackson
When I run mvn site:stage on my project, it doesn't properly stage some
of the reports.  Has anyone staged the jxr or cobertura reports
successfully?  Instead I get an empty index.html.  Does anyone have a
workaround?

Thanks,
Brian

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.

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

AW: [m2] plugin development question

2007-02-09 Thread Thorsten Vogel
Thank you Wayne, the information you shared helped me to accomplish what i
wanted! 
I modified the mvn.bat file to call some scripts i created. That was pretty
easy!

Thanks,
Thorsten

PS. As a side-effect, I also found a way to indicate maven build
success/failure with my Dell XPS Laptop integrated LEDs, which is totally
awesome :-D

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von
Wayne Fay
Gesendet: Freitag, 9. Februar 2007 19:15
An: Maven Users List
Betreff: Re: [m2] plugin development question

I have no idea if this is possible with M2 plugins as I haven't done a whole
lot in that area yet. The first one should be relatively easy -- make a mojo
and assign it to the validate phase. But I'm not sure you can assign a mojo
to the last phase when you don't know which one that will be especially
when an error occurs. Someone else who knows more about plugins will
hopefully reply with more info here.

So instead, I might suggest using the %HOME%\mavenrc_pre.bat and
%HOME%\mavenrc_post.bat files (assuming you're on Windows) specified in
mvn.bat to do the start/stop process you're looking for. Or if you're not on
Windows, the mvn batch script seems to look for and execute /etc/mavenrc
and $HOME/.mavenrc before calling the Maven java process. But it does not
have a corresponding post call.

Alternatively, I would override the entire mvn batch file stuff with my own,
perhaps call it mymvn, and do the start/stop stuff in mymvn, and then call
the real mvn batch file from there. This seems easiest to me, especially if
you're only developing on one common platform.

Wayne

On 2/9/07, Thorsten Vogel [EMAIL PROTECTED] wrote:
 Good day everyone,



 i want to achieve the following in a m2 plugin but i don't know if it 
 is possible (i am new to m2 but i have used m1 intensively in the past):

 1. One plugin/mojo must be executed when the build starts.
 2. One plugin/mojo must be executed when the build ends and it needs 
 to detect if there were build errors.

 How would i accomplish this?

 Is there a way to register a build lifecycle listener somehow or can i 
 achieve this with mutiple plugins?



 Thank you in advance!
 Thorsten


 -
 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] plugin development question

2007-02-09 Thread Wayne Fay

Of course, if you adjusted the mvn.bat file, your changes will not
work when M2.0.5 is released which is why I suggested you use the
mavenrc_*.bat files instead. Assuming your changes were pretty
minimal, it will be easy to apply those changes to future mvn.bat
files, so no big deal.

I'm glad to help. ;-)  The LED effects sound cool...

Wayne

On 2/9/07, Thorsten Vogel [EMAIL PROTECTED] wrote:

Thank you Wayne, the information you shared helped me to accomplish what i
wanted!
I modified the mvn.bat file to call some scripts i created. That was pretty
easy!

Thanks,
Thorsten

PS. As a side-effect, I also found a way to indicate maven build
success/failure with my Dell XPS Laptop integrated LEDs, which is totally
awesome :-D

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von
Wayne Fay
Gesendet: Freitag, 9. Februar 2007 19:15
An: Maven Users List
Betreff: Re: [m2] plugin development question

I have no idea if this is possible with M2 plugins as I haven't done a whole
lot in that area yet. The first one should be relatively easy -- make a mojo
and assign it to the validate phase. But I'm not sure you can assign a mojo
to the last phase when you don't know which one that will be especially
when an error occurs. Someone else who knows more about plugins will
hopefully reply with more info here.

So instead, I might suggest using the %HOME%\mavenrc_pre.bat and
%HOME%\mavenrc_post.bat files (assuming you're on Windows) specified in
mvn.bat to do the start/stop process you're looking for. Or if you're not on
Windows, the mvn batch script seems to look for and execute /etc/mavenrc
and $HOME/.mavenrc before calling the Maven java process. But it does not
have a corresponding post call.

Alternatively, I would override the entire mvn batch file stuff with my own,
perhaps call it mymvn, and do the start/stop stuff in mymvn, and then call
the real mvn batch file from there. This seems easiest to me, especially if
you're only developing on one common platform.

Wayne

On 2/9/07, Thorsten Vogel [EMAIL PROTECTED] wrote:
 Good day everyone,



 i want to achieve the following in a m2 plugin but i don't know if it
 is possible (i am new to m2 but i have used m1 intensively in the past):

 1. One plugin/mojo must be executed when the build starts.
 2. One plugin/mojo must be executed when the build ends and it needs
 to detect if there were build errors.

 How would i accomplish this?

 Is there a way to register a build lifecycle listener somehow or can i
 achieve this with mutiple plugins?



 Thank you in advance!
 Thorsten


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



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


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




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



How to stop a hung build

2007-02-09 Thread Enrique Gaona


Hi,
I have a build that terminated after 17 mins due to an error, but continuum
still thinks the project is still building.   The elapse time is now
showing over 2 hours and continues to increment even though the build only
ran for 17mins.  Is there a way I can reset the DB?  I've tried restarting
continuum to no avail.Any help is very much appreciated.


Enrique


Two questions on maven-plugin-testing-harness

2007-02-09 Thread Jochen Wiedmann

Hi,

I am currently trying to use the maven-plugin-testing-harness for
testing a report plugin. Two questions came up so far:

1.) When I run the test, I receive the following exception:

   java.lang.NullPointerExceptionjava.lang.NullPointerException
 at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:100)
 at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:63)
 at 
org.codehaus.mojo.rat.RatReportMojo.getSkinArtifactFile(RatReportMojo
.java:124)
 at org.codehaus.mojo.rat.RatReportMojo.execute(RatReportMojo.java:209)
 at 
org.codehaus.mojo.rat.RatCheckMojoTest.testIt3(RatCheckMojoTest.java:
178)

   The exception is caused by the fact, that I need to provide a parameter

   /**
* @parameter default-value=${localRepository}
* @required
* @readonly
*/
   private ArtifactRepository localRepository;

   How do I creare this parameter? I suppose, it's an instance of
DefaultArtifactRepository,
   but how do I configure it?

2.) My test POM currently contains the following section:

   build
 plugins
   plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdrat-maven-plugin/artifactId
 version0.1-SNAPSHOT/version
 configuration/
   /plugin
 /plugins
   /build
   reporting
 plugins
   plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdrat-maven-plugin/artifactId
 version0.1-SNAPSHOT/version
 configuration/
   /plugin
 /plugins
   /reporting

 It seems, that the build section is required, although I would want to use the
 reporting section only, as in the actual POM which uses my report. Is that
 possible?


Thanks,

Jochen


--
How fast can a year go? As fast as your childs first year.

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



Re: [m2] install-file createChecksum does not work

2007-02-09 Thread jiangshachina

Dear Franz,
I got it, thanks!

a cup of Java, cheers!
Sha Jiang


franz see wrote:
 
 Good day,
 
 The createChecksum parameter/expression is available only to the
 2.2-SNAPSHOT of maven-install-pluign ( which you can build from [1], or
 checkout from [2] ). 
 
 As for the release of 2.2...there are only 2 issues left for it ( see [3]
 )..feel free to speed things up :) 
 
 Cheers,
 Franz
 
 [1]
 http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-install-plugin
 [2] http://people.apache.org/maven-snapshot-repository
 [3]
 http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truemode=hidesorter/order=DESCsorter/field=priorityresolution=-1pid=11136fixfor=12256
 
 jiangshachina wrote:
 
 Hello,
 I have the same problem.
 I'm using Maven2.0.4 and the version of my maven-install-plugin is 2.1.
 
 Factly, if I deploy an artifact to remote repository, 
 the checksum files will be created and stored at remote repository.
 But the checksum files still don't exist in local repository.
 What's wrong with the matter? 
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 Maria Odea Ching-2 wrote:
 
 Hi Naresh,
 
 What version of the install plugin are you using?
 I've tried to build the plugin from source and installed it locally then 
 I did mvn install:install-file with
 createChecksum=true and it worked out fine. The checksums were created 
 in my local repo.
 Maybe you just need to update your install plugin :-)
 
 Hope this helps
 
 Thanks,
 Deng
 
 Bhatia, Naresh (IS Consultant) wrote:
 
It seems that the createChecksum parameter of install:install-file does
not work at all. I have set -DcreateChecksum=true and no checksums are
generated. Can someone please confirm this?

Thanks.
Naresh

  

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

-- 
View this message in context: 
http://www.nabble.com/install-file-createChecksum-does-not-work-tf3193451s177.html#a8896315
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: giving -Dpde=true to eclipse:eclipse doesn't work

2007-02-09 Thread Steinar Bang
 Steinar Bang [EMAIL PROTECTED]:

 Platform: Intel Pentium M, Ubuntu Dapper,
 Sun Java 2 SDK 1.6.0_06,
 maven 2.0.4,
 maven-eclipse-plugin 2.3

 I'm trying to use -Dpde=true to give modules plugin nature, ie.
   mvn eclipse:eclipse -Dpde=true
 but that doesn't seem to work.

That's because it should have been
mvn eclipse:eclipse -Declipse.pde=true

 Ie. there is no plugin nature in .project, and .classpath still refers
 to files directly in the local maven repository.

After the parameter name correction the .project and .classpath looks
correct.  But no jars are copied to a project local directory, like
the documentation says it should be.
http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html

 I noticed this bug
   http://jira.codehaus.org/browse/MECLIPSE-195

On a side note: that's probably not my bug/problem, because with 2.3 I
do get requiredPlugins set in classpath.


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



Re: How to build offline??

2007-02-09 Thread Arnaud Bailly
Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco) [EMAIL PROTECTED] 
writes:

 Hi, all.
  
Hi,
Maybe trying with mvn -X -o could give some more informations.


-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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