Can't find plugins through Archiva

2007-12-12 Thread Shazia Bashir
Hi, im just testing out Archiva to use as a http proxy.

Everything seems to working just find, besides plugins, if i run plugins
goals the plugins cant be found, and i am using the central as a remote
repository: h
http://repo1.maven.org/maven2

mvn clean:
The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not exist or
no valid version could be found

mvn deploy:
The plugin 'org.apache.maven.plugins:maven-deploy-plugin' does not exist or
no valid version could be found

All help appreciated.

Thanx
Shazia


Re: Can't find plugins through Archiva

2007-12-12 Thread Brett Porter
this might be a persisted problem on your client after a previous
failed attempt on Archiva. If you delete org/apache/maven/plugins from
your local repository (~/.m2/repository on the maven machine) and try
again, does it work?

If not - please check the archiva logs for reasons the request might be refused.

- Brett

On 12/12/2007, Shazia Bashir [EMAIL PROTECTED] wrote:
 Hi, im just testing out Archiva to use as a http proxy.

 Everything seems to working just find, besides plugins, if i run plugins
 goals the plugins cant be found, and i am using the central as a remote
 repository: h
 http://repo1.maven.org/maven2

 mvn clean:
 The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not exist or
 no valid version could be found

 mvn deploy:
 The plugin 'org.apache.maven.plugins:maven-deploy-plugin' does not exist or
 no valid version could be found

 All help appreciated.

 Thanx
 Shazia



-- 
Brett Porter
Blog: http://www.devzuz.org/blogs/bporter/


not able to send mail notification of the build

2007-12-12 Thread Pallavi.Satish
Hi all,

I am not able to send mail notification of the build.

I am using continuum1.1 to build my ant project, I have added Notifiers also 
but the mail is not getting delivered even once. I think it is because I have 
not configured SMTP server can anyone tell me what is the solution.

Thanks  regards
Pallavi Satish


Re: Various CI-Projects on the same working copy

2007-12-12 Thread Emmanuel Venisse
It isn't normal to checkout all your repository, I think your scm url
isn't defined correctly.

Emmanuel

 Hi

 Every time I define a new project in a project group Continuum checks
 out all the repository to a directory with the project ID. This takes
 away a lot of space on the disk.
 I'd like to have only one working copy for all my projects in a project
 group. Isn't it possible to force Continuum to use the same directory
 for various projects?

 Regards
 Urs Martin






Re: [c1.1] setting the min and max heap size ?

2007-12-12 Thread Mick Knutson
Perfect!

On Dec 12, 2007 11:52 AM, Emmanuel Venisse [EMAIL PROTECTED] wrote:

 memory parameters (and all other jvm parameters) can be set in the
 wrapper.conf

 Emmanuel

 Mick Knutson a écrit :
  We use the sun sparc 64 run.sh
 
 
  On Dec 10, 2007 1:48 PM, olivier lamy [EMAIL PROTECTED] wrote:
 
  Hi,
  if you launch it with plexus.sh/bat, look at the script and set
  PLEXUS_OPTS
 
  HTH,
  --
  Olivier
 
  2007/12/10, Mick Knutson [EMAIL PROTECTED]:
  I need to increase my min and max heap size for CI. Where can I set
  this?
  --
  Thanks,
  Mick Knutson
 
  http://www.baselogic.com
  http://www.blincmagazine.com
  http://www.djmick.com
  http://www.myspace.com/mickknutson
  http://www.myspace.com/BLiNCMagazine
  http://tahoe.baselogic.com
  ---
 
 
 
 




-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---


Re: Getting a dependency list in a custom plugin

2007-12-12 Thread Jeff MAURY
On 12/12/07, EJ Ciramella [EMAIL PROTECTED] wrote:

 Hello all - I have what seems like a simple question that's got me
 stumped at the moment.

 Is there a way to iterate over the dependencies in a particular project
 inside a custom plugin?

 I keep wanting to do something like:

 ArrayList deps = (ArrayList) proj.getDependencies();
 for(int x = 0; x  deps.size(); x++)
 {
  getLog().info(-- +deps.get(x));
 }

 Just for testing purposes, but at runtime, I keep getting this
 stacktrace:

 java.lang.NoClassDefFoundError: org/apache/maven/project/Model
at org.apache.maven.project.Project.init(Project.java:120)
at com.upromise.maven.helpers.ManiGen.execute(ManiGen.java:20)
at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
 nager.java:420)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
 LifecycleExecutor.java:539)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
 l(DefaultLifecycleExecutor.java:493)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
 ifecycleExecutor.java:463)

 I get the feeling I'm not using the right Project class.


I think you're missing a dependency in your plugin POM so that the classpath
affected to your plugin is not complete.

Jeff


Any suggestions would be really helpful.




-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com


Optional job defined in the parent pom

2007-12-12 Thread greinhart

Hi,

In a multi module project, we can put some jobs (plugin, antrun call,
reports) in parent pom in order to share them.

How can we make it optional for a sub module? I can't managed to do it with
the profile feature.

For instance, we can define a report in a parent, this report will be
generated for all sub modules. But how can we do if a module do not have any
sources (pom artifact) ?

Regards,

Gerald Reinhart  

-- 
View this message in context: 
http://www.nabble.com/Optional-job-defined-in-the-parent-pom-tp14290942s177p14290942.html
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: Multi-modules execution order

2007-12-12 Thread Stephen Connolly
If M is the parent of A and B, then A and B both depend on M,
therefore M must be build first.

If A and B do not use M as their parent, then, AFAIK, A and B are
children so will be built first.

AFAIK, maven will try to build modules in the order they are declared,
unless dependencies override that, so if A depended on B then the
build order would be B A M... if B did not have M as a parent, A
depended on B and has M as a parent, I think the build order should be
B M A but could (at Maven's choice) be M B A.

Think of it as being just like the JVM between synchronization points.
 As long as the outcome is the same, the JVM is free to reorder
operations as it sees fit even if this breaks what you intended...
(I may have got  this example slightly wrong as every developer on
site is reading Java Concurrency in Practice and our copy currently is
at large!)

boolean flag = false;
Integer value = null;
Thread t = new Thread() {
  public void run() {
if (flag) System.out.println(value.toString());
  }
};
value = Integer.valueOf(5);
flag = true;
t.start()

Can validly print out:
* Nothing,
* NullPointerException
* 5

depending on the JVM and the machine you are running on. If this
scares you, read the excellent book Java Concurrency In Practice and
you'll realise everything you thought you knew about multi-threading
is wrong! (I know I did)

-Stephen

On Dec 11, 2007 9:12 AM, Jeff MAURY [EMAIL PROTECTED] wrote:
 Hello,

 I have the following problem:
 A multi module POM (called M) has tow modules A and B.
 If I run Maven on M, then the execution order is A,B and M.

 Now, let assume that M is the parent of A and B.
 The execution order is changed to M,A and B
 This causes me some trouble because I want to run plugins when M is builded
 that need to get stuff from A and B in the local repository.
 Another case is that you want to generated Javadoc with M and A or B cause
 generation of source files : if M is executed before A and B, then the
 Javadoc may be incomplete !!!

 Does everyone has experienced the same problem and is it a Maven bug or a
 Maven feature ?

 Thanks
 Jeff


 --
 La mélancolie c'est communiste
 Tout le monde y a droit de temps en temps
 La mélancolie n'est pas capitaliste
 C'est même gratuit pour les perdants
 La mélancolie c'est pacifiste
 On ne lui rentre jamais dedans
 La mélancolie oh tu sais ça existe
 Elle se prend même avec des gants
 La mélancolie c'est pour les syndicalistes
 Il faut juste sa carte de permanent

 Miossec (2006)

 http://www.jeffmaury.com
 http://riadiscuss.jeffmaury.com


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



Problem with jars after release

2007-12-12 Thread javijava

Hi to all,

I have a strange problem...yesterday i do a mvn release:prepare
  mvn release:perform for 1.0-SNAPSHOT projects
now i have a 1.0 release and 2.0-SNAPSHOT trunk files...
but now when i try to compile the trunk files... maven look for
the 2.0 jars (no exist). And  build fails.

Can someone helpme? thanks

-- 
View this message in context: 
http://www.nabble.com/Problem-with-jars-after-release-tp14291271s177p14291271.html
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: Problem adding a user

2007-12-12 Thread Arnaud Bailly



Hi Arnaud,

This is a known issue in 1.0 (and 1.0-beta-4 as well). I already filed a 
jira for this, and here it is:

http://jira.codehaus.org/browse/MRM-584

The work around is to click 'Resend Validation' in the User Account page 
so a validation email is sent to the user and the user can login to 
Archiva after validating his/her account.

Anyway, you've also mentioned in your email that you couldn't send an 
email? Was this when you've tried with the 'Resend Validation' button?

Hello,
I cannot send an email because the server is not configured for sending
mails: this is a corporate setting with tight secuirty rules so sending mail
requires authoriszation to log in smtp server

Anyway, I find it strange that one needs an email to validate an account.

Reagards
-- 
View this message in context: 
http://www.nabble.com/Problem-adding--a-user-tp14042392p14291236.html
Sent from the archiva-users mailing list archive at Nabble.com.



Re: [m2][c1.1] How to run dashboard in Continuum?

2007-12-12 Thread dvicente

This bug should have been corrected since Continuum 1.0.3.

Have you used the build fresh checkbox ? i think it's used to force
Continuum to execute the goal even if there is no SCM change between 2 goals
?


 

Mick Knutson-4 wrote:
 
 Can I please get a little help on this? I have been looking for 2 days...
 
 
 On Dec 10, 2007 12:44 PM, Mick Knutson [EMAIL PROTECTED] wrote:
 
 I have setup the 3 phases I needed on my project group:
 Goals Arguments Build File Schedule Profile From Build Fresh Default
 Description Type clean site:site -P documentation -e pom.xml Site
 Schedulehttp://rc-sun66e.ut.dentegra.lab:8080/continuum/schedule.action?id=6
 site
 documentation GROUP false true Run clean site:site -P documentation -e
 maven2  [image:
 Build]http://rc-sun66e.ut.dentegra.lab:8080/continuum/buildProject.action?goals=dashboard-report%3Adashboardarguments=-P+documentation+-egroupBuildDefinition=truescheduleId=6buildDefinitionType=maven2defaultBuildDefinition=truefromProjectPage=trueprojectId=81buildDefinitionId=24description=Run+dashboard-report%3Adashboard+-P+documentation+-eprojectGroupId=11buildFile=pom.xmlprofileId=11
  
 [image:
 Edit]http://rc-sun66e.ut.dentegra.lab:8080/continuum/buildDefinition%21input.action?arguments=-P+documentation+-egoals=dashboard-report%3AdashboardprojectId=81buildDefinitionId=24description=Run+dashboard-report%3Adashboard+-P+documentation+-egroupBuildDefinition=trueprojectGroupId=11buildDefinitionType=maven2scheduleId=6defaultBuildDefinition=trueprofileId=11buildFile=pom.xml
  
 [image:
 Delete]http://rc-sun66e.ut.dentegra.lab:8080/continuum/removeGroupBuildDefinition.action?goals=dashboard-report%3Adashboardarguments=-P+documentation+-egroupBuildDefinition=truescheduleId=6buildDefinitionType=maven2defaultBuildDefinition=trueprojectId=81buildDefinitionId=24confirmed=falsedescription=Run+dashboard-report%3Adashboard+-P+documentation+-eprojectGroupId=11buildFile=pom.xmlprofileId=11
 dashboard-report:dashboard -P documentation -e pom.xml Site
 Schedulehttp://rc-sun66e.ut.dentegra.lab:8080/continuum/schedule.action?id=6
 site
 documentation GROUP false false Run dashboard-report:dashboard -P
 documentation -e maven2  [image:
 Build]http://rc-sun66e.ut.dentegra.lab:8080/continuum/buildProject.action?goals=dashboard-report%3Adashboardarguments=-P+documentation+-egroupBuildDefinition=truescheduleId=6buildDefinitionType=maven2defaultBuildDefinition=truefromProjectPage=trueprojectId=81buildDefinitionId=25description=Run+dashboard-report%3Adashboard+-P+documentation+-eprojectGroupId=11buildFile=pom.xmlprofileId=11
  
 [image:
 Edit]http://rc-sun66e.ut.dentegra.lab:8080/continuum/buildDefinition%21input.action?arguments=-P+documentation+-egoals=dashboard-report%3AdashboardprojectId=81buildDefinitionId=25description=Run+dashboard-report%3Adashboard+-P+documentation+-egroupBuildDefinition=trueprojectGroupId=11buildDefinitionType=maven2scheduleId=6defaultBuildDefinition=trueprofileId=11buildFile=pom.xml
  
 [image:
 Delete]http://rc-sun66e.ut.dentegra.lab:8080/continuum/removeGroupBuildDefinition.action?goals=dashboard-report%3Adashboardarguments=-P+documentation+-egroupBuildDefinition=truescheduleId=6buildDefinitionType=maven2defaultBuildDefinition=trueprojectId=81buildDefinitionId=25confirmed=falsedescription=Run+dashboard-report%3Adashboard+-P+documentation+-eprojectGroupId=11buildFile=pom.xmlprofileId=11
 site:site-deploy -P documentation -e pom.xml Site
 Schedulehttp://rc-sun66e.ut.dentegra.lab:8080/continuum/schedule.action?id=6
 site
 documentation GROUP false false Run clean site:site-deploy -P
 documentation -e maven2  [image:
 Build]http://rc-sun66e.ut.dentegra.lab:8080/continuum/buildProject.action?goals=dashboard-report%3Adashboardarguments=-P+documentation+-egroupBuildDefinition=truescheduleId=6buildDefinitionType=maven2defaultBuildDefinition=truefromProjectPage=trueprojectId=81buildDefinitionId=26description=Run+dashboard-report%3Adashboard+-P+documentation+-eprojectGroupId=11buildFile=pom.xmlprofileId=11
  
 [image:
 Edit]http://rc-sun66e.ut.dentegra.lab:8080/continuum/buildDefinition%21input.action?arguments=-P+documentation+-egoals=dashboard-report%3AdashboardprojectId=81buildDefinitionId=26description=Run+dashboard-report%3Adashboard+-P+documentation+-egroupBuildDefinition=trueprojectGroupId=11buildDefinitionType=maven2scheduleId=6defaultBuildDefinition=trueprofileId=11buildFile=pom.xml
  
 [image:
 Delete]http://rc-sun66e.ut.dentegra.lab:8080/continuum/removeGroupBuildDefinition.action?goals=dashboard-report%3Adashboardarguments=-P+documentation+-egroupBuildDefinition=truescheduleId=6buildDefinitionType=maven2defaultBuildDefinition=trueprojectId=81buildDefinitionId=26confirmed=falsedescription=Run+dashboard-report%3Adashboard+-P+documentation+-eprojectGroupId=11buildFile=pom.xmlprofileId=11
 But when I click to run the project, it only does the default. How can I
 have continuum run all three?

 --
 Thanks,
 Mick Knutson

 http://www.baselogic.com
 

Re: Multi-modules execution order

2007-12-12 Thread Jerome Lacoste
On Dec 11, 2007 10:12 AM, Jeff MAURY [EMAIL PROTECTED] wrote:
 Hello,

 I have the following problem:
 A multi module POM (called M) has tow modules A and B.
 If I run Maven on M, then the execution order is A,B and M.

 Now, let assume that M is the parent of A and B.
 The execution order is changed to M,A and B
 This causes me some trouble because I want to run plugins when M is builded
 that need to get stuff from A and B in the local repository.
 Another case is that you want to generated Javadoc with M and A or B cause
 generation of source files : if M is executed before A and B, then the
 Javadoc may be incomplete !!!

 Does everyone has experienced the same problem and is it a Maven bug or a
 Maven feature ?

 Thanks
 Jeff

By making the parent module also contain build operations that depend
on the children, you basically created some sort of dependencies
cycle.

Move the files to build (probably all src/main src/test src/it...)
from M into a new sub-module (called C) and make C depend on A and B.
Keep your parent POM a simple 'aggregator' that doesn't contain
anything to build and just reference all the sub-modules.

Cheers,

Jerome

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



Re: surefire plugin 2.3.1

2007-12-12 Thread Francesco Vivoli

As said, it's still in dev, if you want to get it it's at

http://people.apache.org/repo/m2-snapshot-repository

cheers
Francesco


DJP JEAN-PROST Dominique wrote:
 
 Hello,
 
 I can't find a release for surefire 2.3.1. Judging from jira, it seems
 this version is released, but I can't find it in repo1 as 2.4 version of
 surefire seems to be the current one. Can someone tell me what is the
 status of this release ?
 
 regards,
 dom
 Depuis le 15 octobre, Dexia Sofaxis, Dexia Sofcap, Dexia Sofcah, Dexia DS
 Services, Dexia DS Formation ont mis en place un Service Relations Clients
 (Fax 02 48 48 15 16 - Email [EMAIL PROTECTED])  :
 * Un numéro de téléphone unique pour toutes vos demandes : 02 48 48 15 15
 * Une disponibilité garantie, du lundi au vendredi, sans interruption, de
 8h00 à 18h30.
 * Des spécialistes de l’assurance statutaire à votre écoute, au sein même
 de notre entreprise
 
 Consultez notre site internet http://www.dexia-sofaxis.com
 
 Tous ensemble pour l’environnement : n’imprimer ce courriel que si
 nécessaire.
 
 Dexia Sofaxis disclaimer : http://www.sofaxis.com/disclaimer.html
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
View this message in context: 
http://www.nabble.com/surefire-plugin-2.3.1-tp14270557s177p14291896.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



war-plugin 2.1-alpha-2-SNAPSHOT warSourceExcludes not working

2007-12-12 Thread maarten roosendaal
Hi,

It seems that the option warSourceExcludes for war-plugin 2.1-alpha-2-SNAPSHOT 
is not working. I've been using alpha-1 and that was working fine. Any ideas?

Thanks,
Maarten




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: WTP 2.0 strategy?

2007-12-12 Thread Siarhei Dudzin
Yes, it looks pretty stable (at least the WTP-2 support)

On 12/11/07, Rob Hasselbaum [EMAIL PROTECTED] wrote:

 Yes, I noticed that. Is the snapshot code fairly stable at this point?
 I'm glad to hear it plays nicely with JBoss Tools, too.


 On 12/11/2007 07:13 AM, Siarhei Dudzin wrote:
  maven-eclipse-plugin 2.5-SNAPSHOT does support WTP 2.0 with hot
 deployment
  on servers defined via WTP and even exploded deployment of JBoss Tools
 2.0.
 
  On 12/10/07, Rob Hasselbaum [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I'm trying to use Maven for an Eclipse Europa (WTP 2.0) project. What's
  the best way to do this, given that the Eclipse plugin doesn't support
  WTP 2.0 yet? I tried running the eclipse:eclipse goal anyway and
 managed
  to turn the resulting plain project into a Web App project. But the
  problem I'm facing now is that Eclipse won't deploy any of the
  Maven-managed dependency libraries with the WAR file. In order for that
  to happen, I think they need to be present under the WEB-INF\lib folder
  in the project. Is there any way to do this short of me going into the
  M2 repo and copying them by hand?
 
  Also, since I'm new to Maven, how does the Eclipse project get updated
  if the dependencies change?
 
  Any advice appreciated!
  -Rob
 
 
 
 




Re: Ant basedir

2007-12-12 Thread Luis Roberto P. Paula
 What would you want to use this basedir property for? Maven has a
different mindset for referencing resources within a project than ant.
I'm sure if you describe your use case here someone will show you the
maven way to do things.

I'm using maven to call a ant-build file that is in another directory.

The problem is that there is a lot of relative paths in this ant file.

On Dec 11, 2007 9:43 PM, Gargan, Stephen [EMAIL PROTECTED] wrote:

 What would you want to use this basedir property for? Maven has a
 different mindset for referencing resources within a project than ant.
 I'm sure if you describe your use case here someone will show you the
 maven way to do things.

 Rgds,

 ste

 -Original Message-
 From: Luis Roberto P. Paula [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 11, 2007 11:27 AM
 To: Maven Users List
 Subject: Ant basedir

 Hi,

 How do I set ant basedir from maven?

 I was trying something like that:

 *ant basedir=/tmp/test antfile=build.xml*

 but there is no basedir attribute.

 Thanks,
 Luis

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




Re: war-plugin 2.1-alpha-2-SNAPSHOT warSourceExcludes not working

2007-12-12 Thread Stephane Nicoll
I've been changing something there indeed because it was excluding
stuff in the resulting archive (which was not the expected behavior at
all). I just hope I didn't break something :)

Can you please elaborate because is not working is not especially helpful.

this should only apply to stuff from the src/main/webapp directory. If
you used this to filter the content of the war, it has only worked by
side effect.

Regards,
Stéphane

On Dec 12, 2007 11:19 AM, maarten roosendaal [EMAIL PROTECTED] wrote:
 Hi,

 It seems that the option warSourceExcludes for war-plugin 
 2.1-alpha-2-SNAPSHOT is not working. I've been using alpha-1 and that was 
 working fine. Any ideas?

 Thanks,
 Maarten




   
 
 Looking for last minute shopping deals?
 Find them fast with Yahoo! Search.  
 http://tools.search.yahoo.com/newsearch/category.php?category=shopping



-- 
Large Systems Suck: This rule is 100% transitive. If you build one,
you suck -- S.Yegge

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



Re: war-plugin 2.1-alpha-2-SNAPSHOT warSourceExcludes not working

2007-12-12 Thread maarten roosendaal
This is in relation to the skinny-war. I wanted to exclude all libs from 
WEB-INF\lib for all my WAR's.

This also had to do with transitive dependencies in combination with optional = 
true problem. I want to include only 1 specific jar in the WEB-INF\lib and the 
rest should only be included in the manifest. I saw a path in JIRA but this was 
not working because it was missing a few classes, didn't look into it.

Thanks,
Maarten

- Original Message 
From: Stephane Nicoll [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Wednesday, December 12, 2007 12:49:21 PM
Subject: Re: war-plugin 2.1-alpha-2-SNAPSHOT warSourceExcludes not working


I've been changing something there indeed because it was excluding
stuff in the resulting archive (which was not the expected behavior at
all). I just hope I didn't break something :)

Can you please elaborate because is not working is not especially
 helpful.

this should only apply to stuff from the src/main/webapp directory. If
you used this to filter the content of the war, it has only worked by
side effect.

Regards,
Stéphane

On Dec 12, 2007 11:19 AM, maarten roosendaal [EMAIL PROTECTED]
 wrote:
 Hi,

 It seems that the option warSourceExcludes for war-plugin
 2.1-alpha-2-SNAPSHOT is not working. I've been using alpha-1 and that was 
working
 fine. Any ideas?

 Thanks,
 Maarten




  
 

 Looking for last minute shopping deals?
 Find them fast with Yahoo! Search.
  http://tools.search.yahoo.com/newsearch/category.php?category=shopping



-- 
Large Systems Suck: This rule is 100% transitive. If you build one,
you suck -- S.Yegge

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







  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Directory naming in working-directory

2007-12-12 Thread Ritz, Martin


   Hi Continuum Users,
 
   i've a problem with the continuum 1.1.
   The import and build of my projects works.
 
   But one thing I can't get:
 
   why takes Continuum not the origin name of the directory to checkout 
 (SVN) and build in the working directory.
   In my case Continuum takes numbers for the name of the directories.
   To navigate in these cryptical directories is very confussing.
 
   Is there a possibility to take the directories as they are?
 
   THX
   ---
   kindly regards
   Martin Ritz
 
   BTC AG - Unit Softwaredevelopment
   mailto:[EMAIL PROTECTED]
 


RE: maven-dependency-plugin unpack prior to generate-source AndroMDA

2007-12-12 Thread jeeads

Brian,
 Thanks agian  for the quick response.  I found that
phasevalidate/phase works but it has to implied to the correct pom. 
AndroMDA creates a project with 5 poms, root, app, common, core and mda. 
The mda pom is where I implied the plugin to get it to work.  The calling
order of the poms is important when implying a plugin.

Thanks
Jerry

Brian E Fox wrote:
 
 I'm not familiar with AndroMDA but if it works by unpacking first,
 binding it to validate should be the same. What is the packaging type of
 your project?
 
 -Original Message-
 From: jeeads [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, December 11, 2007 9:06 AM
 To: users@maven.apache.org
 Subject: RE: maven-dependency-plugin unpack prior to generate-source
 AndroMDA
 
 
 Brian,
Thanks for the quick response.  I have tried using Validate in
 the
 phase property but it still creates the source from the templates
 prior to
 unpacking the necessary resources?  If I take the executions node tree
 out
 of the plugin and use mvn dependency:unpack install everything seems to
 work
 just fine.  I would like to just use mvn install do you have any
 suggestions?  Here are the two different plugin's I have tried:
 
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-dependency-plugin/artifactId
   version2.0-alpha-4/version
   executions
   execution
   idunpack/id
   phasevalidate/phase
   goals
   goalunpack/goal
   /goals
   configuration
   artifactItems
   artifactItem
  
 groupIdenterra/groupId
  
 artifactIdenterra-templates/artifactId
  
 version0.0.1-SNAPSHOT/version
   typejar/type
   
 overWritetrue/overWrite
   
 outputDirectory../src/main/resources/outputDirectory
   /artifactItem
   /artifactItems
   /configuration
   /execution
   /executions
   /plugin
 
 
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-dependency-plugin/artifactId
   version2.0-alpha-4/version
   configuration
   artifactItems
   artifactItem
   groupIdenterra/groupId
  
 artifactIdenterra-templates/artifactId
  
 version0.0.1-SNAPSHOT/version
   typejar/type
   overWritetrue/overWrite
   
 outputDirectory../src/main/resources/outputDirectory
   /artifactItem
   /artifactItems
   /configuration
   /plugin
 
 I have been trying these in the main pom.xml
 
 Thanks Jerry
 
 Brian E Fox wrote:
 
 You can use any of the phases listed here:
 http://www.sonatype.com/book/lifecycle.html
 If androMDA uses generate-sources, then you need to use validate.
 
 -Original Message-
 From: jeeads [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, December 11, 2007 4:41 AM
 To: users@maven.apache.org
 Subject: maven-dependency-plugin unpack prior to generate-source
 AndroMDA
 
 
 I would like to configure the maven-dependency-plugin to unpack a
 dependency
 that contains templates I want to override prior to generating the
 source
 code in AndroMDA.  Currently it does the unpacking into the directory
 I
 have
 setup as a mergerLocation in my andromda.xml but the unpacking occurs
 after
 the source is generated so it is being generated by the default
 cartridge
 templates?  Is there a phase I can set that would force the
 unpacking
 to
 occur prior to source generation or should I use a command line entry
 like: 
 mvn dependency:unpack install?  I tried using the
 maven-remote-resources-plugin but it manipulates the .vm files in such
 a
 way
 as to prevent me from using it and it also runs after the source is
 generated?
 
 Thanks
 Jerry
 -- 
 View this message in context:

 http://www.nabble.com/maven-dependency-plugin-unpack-prior-to-generate-s
 ource-AndroMDA-tp14270713s177p14270713.html
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/maven-dependency-plugin-unpack-prior-to-generate-s
 

Re: Error 500 accessing snapshots in repository

2007-12-12 Thread Arnaud Bailly

Hello Brett,
Yes, this is with archiva 1.0.
And yes, it keeps occuring after restart. Do you want me to upload the index
file(s) ?

Regards,

ARnaud

Brett Porter wrote:
 
 I think I saw this occurring but that there were some specific locks
 added to prevent it - is this with Archiva 1.0?
 
 Does it keep occurring after restart? Every time?
 
 If so - perhaps we could capture the index to see what might be the
 problem.
 
 - Brett
 
 On 12/12/2007, Arnaud Bailly [EMAIL PROTECTED] wrote:

 Hello,
 When using the Browse button to navigate through our archiva
 repositories,
 we cannot access snapshots for home deployed artifacts: an error 500 is
 raised in HTTP and we have the following trace in the server:

 12 dÚc. 2007 09:52:29 org.mortbay.jetty.servlet.ServletHandler handle
 ATTENTION:
 /archiva/browse/com.alu.ebg.commons.prod.mvn.plugins/commons-clearca
 e-ucm-plugin/1.0.000-20071210.150338-5:
 java.lang.NullPointerException
 at
 org.apache.lucene.index.IndexModifier.close(IndexModifier.java:486)
 at
 org.apache.maven.archiva.indexer.lucene.LuceneRepositoryContentIndex
 closeQuietly(LuceneRepositoryContentIndex.java:416)
 at
 org.apache.maven.archiva.indexer.lucene.LuceneRepositoryContentIndex
 modifyRecord(LuceneRepositoryContentIndex.java:152)
 at
 org.apache.maven.archiva.consumers.lucene.IndexArtifactConsumer.proc
 ssArchivaArtifact(IndexArtifactConsumer.java:118)
 at
 org.apache.maven.archiva.database.updater.ProcessArchivaArtifactClos
 re.execute(ProcessArchivaArtifactClosure.java:52)
 at
 org.apache.commons.collections.CollectionUtils.forAllDo(CollectionUt
 ls.java:388)
 at
 org.apache.maven.archiva.database.updater.JdoDatabaseUpdater.updateU
 processed(JdoDatabaseUpdater.java:152)
 at
 org.apache.maven.archiva.database.browsing.DefaultRepositoryBrowsing
 selectVersion(DefaultRepositoryBrowsing.java:124)
 at
 org.apache.maven.archiva.web.action.ShowArtifactAction.artifact(Show
 rtifactAction.java:105)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
 java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultA
 tionInvocation.java:358)
 at
 com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(Defa
 ltActionInvocation.java:218)
 at
 com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionI
 vocation.java:192)
 at
 com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doInte
 cept(DefaultWorkflowInterceptor.java:175)
 at
 com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept
 MethodFilterInterceptor.java:86)
 at
 com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionI
 vocation.java:190)
 at
 com.opensymphony.xwork.validator.ValidationInterceptor.doIntercept(V
 lidationInterceptor.java:115)
 at
 com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept
 MethodFilterInterceptor.java:86)
 at
 com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionI
 vocation.java:190)
 at
 org.apache.maven.archiva.web.interceptor.ConfigurationInterceptor.in
 ercept(ConfigurationInterceptor.java:53)
 at
 com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionI
 vocation.java:190)
 at
 org.codehaus.plexus.redback.xwork.interceptor.PolicyEnforcementInter
 eptor.intercept(PolicyEnforcementInterceptor.java:149)
 at
 com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionI
 vocation.java:190)
  . [lot more stack trace]


 I did a repository scan before this.

 Regards,

 Arnaud Bailly
 --
 View this message in context:
 http://www.nabble.com/Error-500-accessing-snapshots-in-repository-tp14291277p14291277.html
 Sent from the archiva-users mailing list archive at Nabble.com.


 
 
 -- 
 Brett Porter
 Blog: http://www.devzuz.org/blogs/bporter/
 
 

-- 
View this message in context: 
http://www.nabble.com/Error-500-accessing-snapshots-in-repository-tp14291277p14295294.html
Sent from the archiva-users mailing list archive at Nabble.com.



Maven and Java 6 Patch 3

2007-12-12 Thread Sachse, Holger
Dear all,


Since I updated to Java 6 Patch I get a Java nullPointer exception in the 
plexus classpath container as soon as I call any Maven goal on command line 
level under Windows XP. Consequently, I get also strange behaviors in m2eclipse 
and Q4E.
I tried it with Maven 2.0.6 until 2.0.8 all the same result.

Going back to Java 1.5 12 no problems.

Did anybody else have this effect?

 

regards 

Holger Sachse

 

Würth Phoenix S.r.l.
Holger Sachse
Via Kravogl 4
I-39100 Bolzano

Direct:+39 0471 56 40 16

Mobile:  +39 335 6 19 24 74
Fax:   +39 0471 56 41 22
E-Mail:   holger.sachse BLOCKED::mailto:[EMAIL PROTECTED] @ mailto:[EMAIL 
PROTECTED] wuerth-phoenix.com mailto:[EMAIL PROTECTED] 
Website: www.wuerth-phoenix.com blocked::http://www.wuerth-phoenix.com/ 




Re: Error 500 accessing snapshots in repository

2007-12-12 Thread Brett Porter
if they aren't too big, that might help - please create a JIRA issue for this.

Cheers,
Brett

On 13/12/2007, Arnaud Bailly [EMAIL PROTECTED] wrote:

 Hello Brett,
 Yes, this is with archiva 1.0.
 And yes, it keeps occuring after restart. Do you want me to upload the index
 file(s) ?

 Regards,

 ARnaud

 Brett Porter wrote:
 
  I think I saw this occurring but that there were some specific locks
  added to prevent it - is this with Archiva 1.0?
 
  Does it keep occurring after restart? Every time?
 
  If so - perhaps we could capture the index to see what might be the
  problem.
 
  - Brett
 
  On 12/12/2007, Arnaud Bailly [EMAIL PROTECTED] wrote:
 
  Hello,
  When using the Browse button to navigate through our archiva
  repositories,
  we cannot access snapshots for home deployed artifacts: an error 500 is
  raised in HTTP and we have the following trace in the server:
 
  12 dÚc. 2007 09:52:29 org.mortbay.jetty.servlet.ServletHandler handle
  ATTENTION:
  /archiva/browse/com.alu.ebg.commons.prod.mvn.plugins/commons-clearca
  e-ucm-plugin/1.0.000-20071210.150338-5:
  java.lang.NullPointerException
  at
  org.apache.lucene.index.IndexModifier.close(IndexModifier.java:486)
  at
  org.apache.maven.archiva.indexer.lucene.LuceneRepositoryContentIndex
  closeQuietly(LuceneRepositoryContentIndex.java:416)
  at
  org.apache.maven.archiva.indexer.lucene.LuceneRepositoryContentIndex
  modifyRecord(LuceneRepositoryContentIndex.java:152)
  at
  org.apache.maven.archiva.consumers.lucene.IndexArtifactConsumer.proc
  ssArchivaArtifact(IndexArtifactConsumer.java:118)
  at
  org.apache.maven.archiva.database.updater.ProcessArchivaArtifactClos
  re.execute(ProcessArchivaArtifactClosure.java:52)
  at
  org.apache.commons.collections.CollectionUtils.forAllDo(CollectionUt
  ls.java:388)
  at
  org.apache.maven.archiva.database.updater.JdoDatabaseUpdater.updateU
  processed(JdoDatabaseUpdater.java:152)
  at
  org.apache.maven.archiva.database.browsing.DefaultRepositoryBrowsing
  selectVersion(DefaultRepositoryBrowsing.java:124)
  at
  org.apache.maven.archiva.web.action.ShowArtifactAction.artifact(Show
  rtifactAction.java:105)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
  java:39)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at
  com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultA
  tionInvocation.java:358)
  at
  com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(Defa
  ltActionInvocation.java:218)
  at
  com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionI
  vocation.java:192)
  at
  com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doInte
  cept(DefaultWorkflowInterceptor.java:175)
  at
  com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept
  MethodFilterInterceptor.java:86)
  at
  com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionI
  vocation.java:190)
  at
  com.opensymphony.xwork.validator.ValidationInterceptor.doIntercept(V
  lidationInterceptor.java:115)
  at
  com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept
  MethodFilterInterceptor.java:86)
  at
  com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionI
  vocation.java:190)
  at
  org.apache.maven.archiva.web.interceptor.ConfigurationInterceptor.in
  ercept(ConfigurationInterceptor.java:53)
  at
  com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionI
  vocation.java:190)
  at
  org.codehaus.plexus.redback.xwork.interceptor.PolicyEnforcementInter
  eptor.intercept(PolicyEnforcementInterceptor.java:149)
  at
  com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionI
  vocation.java:190)
   . [lot more stack trace]
 
 
  I did a repository scan before this.
 
  Regards,
 
  Arnaud Bailly
  --
  View this message in context:
  http://www.nabble.com/Error-500-accessing-snapshots-in-repository-tp14291277p14291277.html
  Sent from the archiva-users mailing list archive at Nabble.com.
 
 
 
 
  --
  Brett Porter
  Blog: http://www.devzuz.org/blogs/bporter/
 
 

 --
 View this message in context: 
 http://www.nabble.com/Error-500-accessing-snapshots-in-repository-tp14291277p14295294.html
 Sent from the archiva-users mailing list archive at Nabble.com.




-- 
Brett Porter
Blog: http://www.devzuz.org/blogs/bporter/


PluginManagement and reporting configuration

2007-12-12 Thread Arnaud Bailly

Hello,
While using the PMD plugin, I ran into an annoying problem, or maybe I
misunderstood something with maven. I want to configure pmd to use Java1.5
so I did:
   build
pluginManagement
plugins
plugin
artifactIdmaven-pmd-plugin/artifactId
configuration
targetJdk1.5/targetJdk
/configuration
/plugin

The configuration is correctly injected in the build plugins, but not in the
reporting plugins. Is this normal ? 

Best regards,

Arnaud Bailly
-- 
View this message in context: 
http://www.nabble.com/PluginManagement-and-reporting-configuration-tp14295439s177p14295439.html
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 Java 6 Patch 3

2007-12-12 Thread Paul Benedict
Provide a stack trace please.

On Dec 12, 2007 7:45 AM, Sachse, Holger [EMAIL PROTECTED]
wrote:

 Dear all,


 Since I updated to Java 6 Patch I get a Java nullPointer exception in the
 plexus classpath container as soon as I call any Maven goal on command line
 level under Windows XP. Consequently, I get also strange behaviors in
 m2eclipse and Q4E.
 I tried it with Maven 2.0.6 until 2.0.8 all the same result.

 Going back to Java 1.5 12 no problems.

 Did anybody else have this effect?



 regards

 Holger Sachse



 Würth Phoenix S.r.l.
 Holger Sachse
 Via Kravogl 4
 I-39100 Bolzano

 Direct:+39 0471 56 40 16

 Mobile:  +39 335 6 19 24 74
 Fax:   +39 0471 56 41 22
 E-Mail:   holger.sachse BLOCKED::mailto:
 [EMAIL PROTECTED] @ mailto:
 [EMAIL PROTECTED] wuerth-phoenix.com mailto:
 [EMAIL PROTECTED]
 Website: www.wuerth-phoenix.com blocked::http://www.wuerth-phoenix.com/





RE : Error when running dashboard-maven-plugin

2007-12-12 Thread Deneux, Christophe

The problem is a bug: http://jira.codehaus.org/browse/MOJO-971
 
___
Christophe DENEUX / Capgemini Sud / Méditerranée
Technical Leader
www.capgemini.com http://www.capgemini.com/ 
Porte de l'Arénas - Entrée B / 455 Promenade des Anglais / 06200 Nice / FRANCE
Join the Collaborative Business Experience
___
Please consider the environment and do not print this email unless absolutely 
necessary. Capgemini encourages environmental awareness.



De: dvicente [mailto:[EMAIL PROTECTED]
Date: jeu. 06/12/2007 10:09
À: users@maven.apache.org
Objet : Re: Error when running dashboard-maven-plugin




Hi,

could you change the Continuum goal as -e -X dashboard-report:persist and
send the whole log as attachment.

moreover, could you detail your config as :
- maven version
- JDK version
- used database and version
- Continuum version

Best regards
David


Deneux, Christophe wrote:


 Hi all,
 
 
 I have the following error when running dashboard-maven-plugin:persist on
 my project into Continuum. That's works fine on the command line.
 
 Can someone help me ?
 The plugin version used is: 1.0-20070907.172709-15
 [INFO]
 
 [ERROR] FATAL ERROR
 [INFO]
 
 [INFO]instance not of expected entity type:
 org.codehaus.mojo.dashboard.report.plugin.beans.JDependReportBean is not
 a: org.codehaus.mojo.dashboard.report.plugin.beans.AbstractReportBean
 [INFO] Trace
 org.hibernate.HibernateException: instance not of expected entity type:
 org.codehaus.mojo.dashboard.report.plugin.beans.JDependReportBean is not
 a: org.codehaus.mojo.dashboard.report.plugin.beans.AbstractReportBean
   at
 org.hibernate.persister.entity.AbstractEntityPersister.getSubclassEntityPersister(AbstractEntityPersister.java:3568)
   at
 org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1347)
   at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:180)
   at
 org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:487)
   at
 org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:84)
   at
 org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
   at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
   at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
   at
 org.hibernate.engine.CascadingAction$1.cascade(CascadingAction.java:218)
   at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
   at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216)
   at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
   at
 org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:296)
   at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:242)
   at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:219)
   at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
   at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
   at org.hibernate.engine.Cascade.cascade(Cascade.java:97)
   at
 org.hibernate.event.def.DefaultSaveOrUpdateEventListener.cascadeOnUpdate(DefaultSaveOrUpdateEventListener.java:332)
   at
 org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performUpdate(DefaultSaveOrUpdateEventListener.java:304)
   at
 org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsDetached(DefaultSaveOrUpdateEventListener.java:217)
   at
 org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)
   at
 org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
   at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
   at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
   at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:495)
   at
 org.codehaus.mojo.dashboard.report.plugin.hibernate.HibernateServiceImpl.saveOrUpdate(HibernateServiceImpl.java:235)
   at
 org.codehaus.mojo.dashboard.report.plugin.DashBoardDBMojo.execute(DashBoardDBMojo.java:80)

 ___
 Christophe DENEUX / Capgemini Sud / Méditerranée
 Technical Leader
 Tel: + 33 4 93 95 55 92 / www.capgemini.com http://www.capgemini.com/
 Porte de l'Arénas - Entrée B / 455 Promenade des Anglais / 06200 Nice /
 FRANCE
 Join the Collaborative Business Experience
 ___
 Please consider 

Re: Updating Eclipse project dependencies

2007-12-12 Thread nicolas de loof
You should change the project configuration byusing the maven-eclipse-plugin
options, so that you can safely run eclipse:eclipse at any time.

Nico.

2007/12/12, Rob Hasselbaum [EMAIL PROTECTED]:

 Hi,

 I'm new to Maven and I'm using the eclipse:eclipse goal to generate an
 Eclipse project. Quick question: If the dependencies change, how do I
 update the project? I suppose I can just run eclipse:eclipse again, but
 will that preserve changes that I've made to the project configuration?

 Thanks,
 -Rob



Updating Eclipse project dependencies

2007-12-12 Thread Rob Hasselbaum
Hi,

I'm new to Maven and I'm using the eclipse:eclipse goal to generate an
Eclipse project. Quick question: If the dependencies change, how do I
update the project? I suppose I can just run eclipse:eclipse again, but
will that preserve changes that I've made to the project configuration?

Thanks,
-Rob


RE: Maven and Java 6 Patch 3

2007-12-12 Thread Sachse, Holger
Paul,

Sorry, I forgot to make it yesterday. Now I have the problem that I cannot 
reproduce it.

The problem appeared last week when I updated in one sequence from Maven 2.0.7 
to 2.0.8 and the latest versions of m2eclipse and Q4E in two different 
instances of Eclipse.

After seen the problem I set up from scratch twice Java 6 and Eclipse with the 
plugins and I thought I deleted all possible influences, but it did not work.

In the morning, I installed Java 1.5/ 12 and it went well. After your mail, I 
switched JAVA_HOME back to 6.0.03 and the problem disappeared. Strange!!

It looks like that updating either m2eclipse or Q4E from previous versions 
caused the problem. When I sent the mail, it looked like problem with 6.0.03. 
My guess is, that m2eclipse switch to an internal version of Maven 2.1 caused 
the problem, but I can not prove it.

I have a copy of the situation of yesterday on my private PC at home, when I am 
back from travel I try to get the stack trace. This may last until Monday.

 

regards 

Holger Sachse

 

Würth Phoenix S.r.l.
Holger Sachse
Via Kravogl 4
I-39100 Bolzano

Direct:+39 0471 56 40 16

Mobile:  +39 335 6 19 24 74
Fax:   +39 0471 56 41 22
E-Mail:   [EMAIL PROTECTED]
Website: www.wuerth-phoenix.com

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Benedict
Sent: Wednesday, December 12, 2007 14:47
To: Maven Users List
Subject: Re: Maven and Java 6 Patch 3

Provide a stack trace please.

On Dec 12, 2007 7:45 AM, Sachse, Holger [EMAIL PROTECTED]
wrote:


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



RE: Getting a dependency list in a custom plugin

2007-12-12 Thread EJ Ciramella
Additionally, I've added:

  plugins
  plugin
  dependencies
dependency
  groupIdmaven/groupId
  artifactIdmaven-model/artifactId
  version3.0.1/version
/dependency
  /dependencies



To my pom, but I still am getting 

[INFO] Trace
java.lang.NoClassDefFoundError: org/apache/maven/project/Model

/scratcheshead 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 12, 2007 10:43 AM
To: Maven Users List
Subject: RE: Getting a dependency list in a custom plugin

So, what dependency should I be using to get access to the maven project class? 
 I get the feeling I'm using the wrong one.

I've opted to use:

import org.apache.maven.project.Project;

From:
dependency
  groupIdmaven/groupId
  artifactIdmaven/artifactId
  version1.1-beta-3/version
/dependency

I feel like this is the maven1 version...
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff MAURY
Sent: Wednesday, December 12, 2007 3:21 AM
To: Maven Users List
Subject: Re: Getting a dependency list in a custom plugin

On 12/12/07, EJ Ciramella [EMAIL PROTECTED] wrote:

 Hello all - I have what seems like a simple question that's got me
 stumped at the moment.

 Is there a way to iterate over the dependencies in a particular project
 inside a custom plugin?

 I keep wanting to do something like:

 ArrayList deps = (ArrayList) proj.getDependencies();
 for(int x = 0; x  deps.size(); x++)
 {
  getLog().info(-- +deps.get(x));
 }

 Just for testing purposes, but at runtime, I keep getting this
 stacktrace:

 java.lang.NoClassDefFoundError: org/apache/maven/project/Model
at org.apache.maven.project.Project.init(Project.java:120)
at com.upromise.maven.helpers.ManiGen.execute(ManiGen.java:20)
at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
 nager.java:420)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
 LifecycleExecutor.java:539)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
 l(DefaultLifecycleExecutor.java:493)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
 ifecycleExecutor.java:463)

 I get the feeling I'm not using the right Project class.


I think you're missing a dependency in your plugin POM so that the classpath
affected to your plugin is not complete.

Jeff


Any suggestions would be really helpful.




-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com

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


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



RE: Getting a dependency list in a custom plugin

2007-12-12 Thread EJ Ciramella
So, what dependency should I be using to get access to the maven project class? 
 I get the feeling I'm using the wrong one.

I've opted to use:

import org.apache.maven.project.Project;

From:
dependency
  groupIdmaven/groupId
  artifactIdmaven/artifactId
  version1.1-beta-3/version
/dependency

I feel like this is the maven1 version...
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff MAURY
Sent: Wednesday, December 12, 2007 3:21 AM
To: Maven Users List
Subject: Re: Getting a dependency list in a custom plugin

On 12/12/07, EJ Ciramella [EMAIL PROTECTED] wrote:

 Hello all - I have what seems like a simple question that's got me
 stumped at the moment.

 Is there a way to iterate over the dependencies in a particular project
 inside a custom plugin?

 I keep wanting to do something like:

 ArrayList deps = (ArrayList) proj.getDependencies();
 for(int x = 0; x  deps.size(); x++)
 {
  getLog().info(-- +deps.get(x));
 }

 Just for testing purposes, but at runtime, I keep getting this
 stacktrace:

 java.lang.NoClassDefFoundError: org/apache/maven/project/Model
at org.apache.maven.project.Project.init(Project.java:120)
at com.upromise.maven.helpers.ManiGen.execute(ManiGen.java:20)
at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
 nager.java:420)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
 LifecycleExecutor.java:539)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
 l(DefaultLifecycleExecutor.java:493)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
 ifecycleExecutor.java:463)

 I get the feeling I'm not using the right Project class.


I think you're missing a dependency in your plugin POM so that the classpath
affected to your plugin is not complete.

Jeff


Any suggestions would be really helpful.




-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com

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



Trouble with supplying parameters to mvn archetype:create

2007-12-12 Thread Bohtvaroh

Hello. I'm having trouble with supplying parameters to mvn
archetype:create... My problem is maven only accepts some predefined
parameters like groupId, artifactId, etc but I want to supply my owns like
-DprojectName=myProject to replace templates like ${projectName} in my
archetype's pom. Is this possible?
-- 
View this message in context: 
http://www.nabble.com/Trouble-with-supplying-parameters-to-mvn-archetype%3Acreate-tp14298297s177p14298297.html
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: Getting a dependency list in a custom plugin

2007-12-12 Thread Jeff MAURY
For Maven2, the groupId is org.apache.maven and the version is 2.0.x.

Regards
Jeff



On 12/12/07, EJ Ciramella [EMAIL PROTECTED] wrote:

 Additionally, I've added:

 plugins
  plugin
  dependencies
dependency
  groupIdmaven/groupId
  artifactIdmaven-model/artifactId
  version3.0.1/version
/dependency
  /dependencies
 


 To my pom, but I still am getting

 [INFO] Trace
 java.lang.NoClassDefFoundError: org/apache/maven/project/Model

 /scratcheshead

 -Original Message-
 From: EJ Ciramella [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 12, 2007 10:43 AM
 To: Maven Users List
 Subject: RE: Getting a dependency list in a custom plugin

 So, what dependency should I be using to get access to the maven project
 class?  I get the feeling I'm using the wrong one.

 I've opted to use:

 import org.apache.maven.project.Project;

 From:
dependency
  groupIdmaven/groupId
  artifactIdmaven/artifactId
  version1.1-beta-3/version
/dependency

 I feel like this is the maven1 version...


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff
 MAURY
 Sent: Wednesday, December 12, 2007 3:21 AM
 To: Maven Users List
 Subject: Re: Getting a dependency list in a custom plugin

 On 12/12/07, EJ Ciramella [EMAIL PROTECTED] wrote:
 
  Hello all - I have what seems like a simple question that's got me
  stumped at the moment.
 
  Is there a way to iterate over the dependencies in a particular project
  inside a custom plugin?
 
  I keep wanting to do something like:
 
  ArrayList deps = (ArrayList) proj.getDependencies();
  for(int x = 0; x  deps.size(); x++)
  {
   getLog().info(-- +deps.get(x));
  }
 
  Just for testing purposes, but at runtime, I keep getting this
  stacktrace:
 
  java.lang.NoClassDefFoundError: org/apache/maven/project/Model
 at org.apache.maven.project.Project.init(Project.java:120)
 at com.upromise.maven.helpers.ManiGen.execute(ManiGen.java:20)
 at
  org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
  nager.java:420)
 at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
  LifecycleExecutor.java:539)
 at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
  l(DefaultLifecycleExecutor.java:493)
 at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
  ifecycleExecutor.java:463)
 
  I get the feeling I'm not using the right Project class.


 I think you're missing a dependency in your plugin POM so that the
 classpath
 affected to your plugin is not complete.

 Jeff


 Any suggestions would be really helpful.
 



 --
 La mélancolie c'est communiste
 Tout le monde y a droit de temps en temps
 La mélancolie n'est pas capitaliste
 C'est même gratuit pour les perdants
 La mélancolie c'est pacifiste
 On ne lui rentre jamais dedans
 La mélancolie oh tu sais ça existe
 Elle se prend même avec des gants
 La mélancolie c'est pour les syndicalistes
 Il faut juste sa carte de permanent

 Miossec (2006)

 http://www.jeffmaury.com
 http://riadiscuss.jeffmaury.com

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


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




-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com


WAGON ERROR: Unknown parser type: NETWARE Type: L8

2007-12-12 Thread houzecl

Hi,

We are using wagon ftp for Maven DOWNLOAD (not upload)
the wagon extension we use is wagon-ftp  1.0-beta-2

in order to use it for download we've followed workaround specified at
http://jira.codehaus.org/browse/MNG-2195

unfortunately, whatever the version used we get the following error:
org.apache.commons.net.ftp.parser.ParserInitializationException: Unknown
parser type: NETWARE Type: L8

any idea what's wrong 

Christian-Luc

-- 
View this message in context: 
http://www.nabble.com/WAGON-ERROR%3A-Unknown-parser-type%3A-NETWARE-Type%3A-L8-tp14298287s177p14298287.html
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: Getting a dependency list in a custom plugin

2007-12-12 Thread EJ Ciramella
Yeah, I'm having much better results (they're blank, but in a format that's 
recognizable) using:

dependency
  groupIdorg.apache.maven/groupId
  artifactIdmaven-project/artifactId
  version2.0.4/version
/dependency

But what's weird is I'm seeing this:

snip
MavenProject proj = new MavenProject();
getLog().info(artifact ID here +proj.getArtifactId());
/snip


Yeilds:

artifact ID here empty-project 


I'm guessing I need to do something that gets an instance of the current 
project.  How does one do this from their AbstractMojo based plugin?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff MAURY
Sent: Wednesday, December 12, 2007 11:27 AM
To: Maven Users List
Subject: Re: Getting a dependency list in a custom plugin

For Maven2, the groupId is org.apache.maven and the version is 2.0.x.

Regards
Jeff



On 12/12/07, EJ Ciramella [EMAIL PROTECTED] wrote:

 Additionally, I've added:

 plugins
  plugin
  dependencies
dependency
  groupIdmaven/groupId
  artifactIdmaven-model/artifactId
  version3.0.1/version
/dependency
  /dependencies
 


 To my pom, but I still am getting

 [INFO] Trace
 java.lang.NoClassDefFoundError: org/apache/maven/project/Model

 /scratcheshead

 -Original Message-
 From: EJ Ciramella [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 12, 2007 10:43 AM
 To: Maven Users List
 Subject: RE: Getting a dependency list in a custom plugin

 So, what dependency should I be using to get access to the maven project
 class?  I get the feeling I'm using the wrong one.

 I've opted to use:

 import org.apache.maven.project.Project;

 From:
dependency
  groupIdmaven/groupId
  artifactIdmaven/artifactId
  version1.1-beta-3/version
/dependency

 I feel like this is the maven1 version...


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff
 MAURY
 Sent: Wednesday, December 12, 2007 3:21 AM
 To: Maven Users List
 Subject: Re: Getting a dependency list in a custom plugin

 On 12/12/07, EJ Ciramella [EMAIL PROTECTED] wrote:
 
  Hello all - I have what seems like a simple question that's got me
  stumped at the moment.
 
  Is there a way to iterate over the dependencies in a particular project
  inside a custom plugin?
 
  I keep wanting to do something like:
 
  ArrayList deps = (ArrayList) proj.getDependencies();
  for(int x = 0; x  deps.size(); x++)
  {
   getLog().info(-- +deps.get(x));
  }
 
  Just for testing purposes, but at runtime, I keep getting this
  stacktrace:
 
  java.lang.NoClassDefFoundError: org/apache/maven/project/Model
 at org.apache.maven.project.Project.init(Project.java:120)
 at com.upromise.maven.helpers.ManiGen.execute(ManiGen.java:20)
 at
  org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
  nager.java:420)
 at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
  LifecycleExecutor.java:539)
 at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
  l(DefaultLifecycleExecutor.java:493)
 at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
  ifecycleExecutor.java:463)
 
  I get the feeling I'm not using the right Project class.


 I think you're missing a dependency in your plugin POM so that the
 classpath
 affected to your plugin is not complete.

 Jeff


 Any suggestions would be really helpful.
 



 --
 La mélancolie c'est communiste
 Tout le monde y a droit de temps en temps
 La mélancolie n'est pas capitaliste
 C'est même gratuit pour les perdants
 La mélancolie c'est pacifiste
 On ne lui rentre jamais dedans
 La mélancolie oh tu sais ça existe
 Elle se prend même avec des gants
 La mélancolie c'est pour les syndicalistes
 Il faut juste sa carte de permanent

 Miossec (2006)

 http://www.jeffmaury.com
 http://riadiscuss.jeffmaury.com

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


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




-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com

-
To unsubscribe, e-mail: [EMAIL 

Archiva persitence

2007-12-12 Thread Shazia Bashir
Hi, i have
installed archiva on linux. I have saved new repositories and
configurations, which have gone all wrong.

I want to reset to archiva's default configurations, but not succeding.

i have deleted the whole tomcat installation with archiva.war, but
still my old configuration come up. I installed
the standalone archiva, and it also show my old configuration.
Where are my changes saved ? I have not set up the database.

Thanx.


Re: [m2][c1.1] How to run dashboard in Continuum?

2007-12-12 Thread Lee Meador
You can also log into the Continuum server and delete the files in question
in the file system. When continuum checks for updates it will load
everything anew. You do need to give some thought to whether to remove any
SCM related files.

-- Lee

On Dec 12, 2007 2:21 AM, dvicente [EMAIL PROTECTED] wrote:


 This bug should have been corrected since Continuum 1.0.3.

 Have you used the build fresh checkbox ? i think it's used to force
 Continuum to execute the goal even if there is no SCM change between 2
 goals
 ?




 Mick Knutson-4 wrote:
 
  Can I please get a little help on this? I have been looking for 2
 days...
 
 
  On Dec 10, 2007 12:44 PM, Mick Knutson [EMAIL PROTECTED] wrote:
 
  I have setup the 3 phases I needed on my project group:
  Goals Arguments Build File Schedule Profile From Build Fresh Default
  Description Type clean site:site -P documentation -e pom.xmlSite
  Schedule
 http://rc-sun66e.ut.dentegra.lab:8080/continuum/schedule.action?id=6
  site
  documentation GROUP false true Run clean site:site -P documentation -e
  maven2  [image:
  Build]
 http://rc-sun66e.ut.dentegra.lab:8080/continuum/buildProject.action?goals=dashboard-report%3Adashboardarguments=-P+documentation+-egroupBuildDefinition=truescheduleId=6buildDefinitionType=maven2defaultBuildDefinition=truefromProjectPage=trueprojectId=81buildDefinitionId=24description=Run+dashboard-report%3Adashboard+-P+documentation+-eprojectGroupId=11buildFile=pom.xmlprofileId=11
 
  [image:
  Edit]
 http://rc-sun66e.ut.dentegra.lab:8080/continuum/buildDefinition%21input.action?arguments=-P+documentation+-egoals=dashboard-report%3AdashboardprojectId=81buildDefinitionId=24description=Run+dashboard-report%3Adashboard+-P+documentation+-egroupBuildDefinition=trueprojectGroupId=11buildDefinitionType=maven2scheduleId=6defaultBuildDefinition=trueprofileId=11buildFile=pom.xml
 
  [image:
  Delete]
 http://rc-sun66e.ut.dentegra.lab:8080/continuum/removeGroupBuildDefinition.action?goals=dashboard-report%3Adashboardarguments=-P+documentation+-egroupBuildDefinition=truescheduleId=6buildDefinitionType=maven2defaultBuildDefinition=trueprojectId=81buildDefinitionId=24confirmed=falsedescription=Run+dashboard-report%3Adashboard+-P+documentation+-eprojectGroupId=11buildFile=pom.xmlprofileId=11
 
  dashboard-report:dashboard -P documentation -e pom.xml Site
  Schedule
 http://rc-sun66e.ut.dentegra.lab:8080/continuum/schedule.action?id=6
  site
  documentation GROUP false false Run dashboard-report:dashboard -P
  documentation -e maven2  [image:
  Build]
 http://rc-sun66e.ut.dentegra.lab:8080/continuum/buildProject.action?goals=dashboard-report%3Adashboardarguments=-P+documentation+-egroupBuildDefinition=truescheduleId=6buildDefinitionType=maven2defaultBuildDefinition=truefromProjectPage=trueprojectId=81buildDefinitionId=25description=Run+dashboard-report%3Adashboard+-P+documentation+-eprojectGroupId=11buildFile=pom.xmlprofileId=11
 
  [image:
  Edit]
 http://rc-sun66e.ut.dentegra.lab:8080/continuum/buildDefinition%21input.action?arguments=-P+documentation+-egoals=dashboard-report%3AdashboardprojectId=81buildDefinitionId=25description=Run+dashboard-report%3Adashboard+-P+documentation+-egroupBuildDefinition=trueprojectGroupId=11buildDefinitionType=maven2scheduleId=6defaultBuildDefinition=trueprofileId=11buildFile=pom.xml
 
  [image:
  Delete]
 http://rc-sun66e.ut.dentegra.lab:8080/continuum/removeGroupBuildDefinition.action?goals=dashboard-report%3Adashboardarguments=-P+documentation+-egroupBuildDefinition=truescheduleId=6buildDefinitionType=maven2defaultBuildDefinition=trueprojectId=81buildDefinitionId=25confirmed=falsedescription=Run+dashboard-report%3Adashboard+-P+documentation+-eprojectGroupId=11buildFile=pom.xmlprofileId=11
 
  site:site-deploy -P documentation -e pom.xml Site
  Schedule
 http://rc-sun66e.ut.dentegra.lab:8080/continuum/schedule.action?id=6
  site
  documentation GROUP false false Run clean site:site-deploy -P
  documentation -e maven2  [image:
  Build]
 http://rc-sun66e.ut.dentegra.lab:8080/continuum/buildProject.action?goals=dashboard-report%3Adashboardarguments=-P+documentation+-egroupBuildDefinition=truescheduleId=6buildDefinitionType=maven2defaultBuildDefinition=truefromProjectPage=trueprojectId=81buildDefinitionId=26description=Run+dashboard-report%3Adashboard+-P+documentation+-eprojectGroupId=11buildFile=pom.xmlprofileId=11
 
  [image:
  Edit]
 http://rc-sun66e.ut.dentegra.lab:8080/continuum/buildDefinition%21input.action?arguments=-P+documentation+-egoals=dashboard-report%3AdashboardprojectId=81buildDefinitionId=26description=Run+dashboard-report%3Adashboard+-P+documentation+-egroupBuildDefinition=trueprojectGroupId=11buildDefinitionType=maven2scheduleId=6defaultBuildDefinition=trueprofileId=11buildFile=pom.xml
 
  [image:
  Delete]
 

Re: maven-war-plugin webResources - relative path

2007-12-12 Thread Stephane Nicoll
ah, that's the filtering issue. I don't fully get this one but it's
related to the content of your filters and the interpolation.

If you can reproduce easily file a jira issue with a sample project.

Stéphane

On Dec 11, 2007 12:07 PM, Jan Torben Heuer [EMAIL PROTECTED] wrote:
 Stephane Nicoll wrote:

  Replace 2.0 by 2.0.2.
 
  It's a bug and it has been fixed.

 Sorry, but I still cannot run mvn install from my parent pom.

 Additionally, when I try to run mvn install from the webapps pom I get:


 [INFO] [war:war]
 [INFO] Exploding webapp...
 [INFO] Assembling webapp sas-communication-http in ...
 [INFO] Copy webapp webResources to ...
 [INFO] 
 
 [ERROR] FATAL ERROR
 [INFO] 
 
 [INFO] org.apache.maven.project.MavenProject cannot be cast to
 java.lang.String
 [INFO] 
 
 [INFO] Trace
 java.lang.ClassCastException: org.apache.maven.project.MavenProject cannot
 be cast to java.lang.String
 at
 org.codehaus.plexus.util.InterpolationFilterReader.read(InterpolationFilterReader.java:269)
 at
 org.codehaus.plexus.util.InterpolationFilterReader.read(InterpolationFilterReader.java:162)
 at java.io.Reader.read(Reader.java:123)
 at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:212)
 at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:200)
 at
 org.apache.maven.plugin.war.AbstractWarMojo.copyFilteredFile(AbstractWarMojo.java:921)
 at
 org.apache.maven.plugin.war.AbstractWarMojo.copyResources(AbstractWarMojo.java:415)
 at
 org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.java:518)
 at
 org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(AbstractWarMojo.java:347)
 at
 org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:164)
 at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:130)
 at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 [INFO] 
 
 [INFO] Total time: 8 seconds
 [INFO] Finished at: Tue Dec 11 12:05:18 CET 2007
 [INFO] Final Memory: 7M/14M
 [INFO] 
 


 Is 2.0.2 still beta?


 Jan


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





-- 
Large Systems Suck: This rule is 100% transitive. If you build one,
you suck -- S.Yegge

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



Re: Defining version in single location?

2007-12-12 Thread Matthew McCullough

I'm in this same position, and have been for a year now. Unless someone can
correct me, I think I'm stuck in a position that I can't use the release
plugin (as much as I love to use it when I can).

1) On this project, the client already has lots of pom files.

2) Sadly, they are so tightly coupled, they really DO have to have the same
version number on every module.  This code is (bad) more tightly coupled
then Tom Cruise and Katie Holmes.  I will try to make it more loosely
coupled as I continue to consult on the project and gain respect.  But
that's a thread for another day.

3) Sometimes we need to rev versions on a branch.  Thus the release plugin
doesn't help because it seems destined to a workflow of
SNAPSHOT-RELEASENUMBERONBRANCH-SNAPSHOT.  What we need is a direct
RELEASENUMBER-NEXTRELEASENUMBER.

4) Sadly, with the ClearCase Remote Client SCM system (yes, it doesn't have
a command line interface Virginia), we can't integrate with the SCM plugins
that Maven offers.  Big sigh...

So, what I'm asking if anyone knows about is:
1) A plugin/means other than a perl script to increment from RELEASEVERSION
to NEXTRELEASEVERSION (e.g. 4.0.1 to 4.0.2) on local files without SCM
plugins getting involved.  I can then use the CCRC GUI to check in the
modified files manually.

-Matthew McCullough
[EMAIL PROTECTED]


Graham Leggett wrote:
 
 Michael McCallum wrote:
 
 so tell management to keep out of the code
 
 I fix problem projects for a living, and one thing I have learned, over 
 and over again, is that management don't keep out of the code.
 
 Leading a project to the light is about 10% technology, and 90% 
 diplomacy, and when your tools don't help with the diplomacy part, you 
 are doomed to fail.
 
 Regards,
 Graham
 --
 
  
 

-- 
View this message in context: 
http://www.nabble.com/Defining-version-in-single-location--tp14275006s177p14299727.html
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: war-plugin 2.1-alpha-2-SNAPSHOT warSourceExcludes not working

2007-12-12 Thread Stephane Nicoll
You shouldn't use that for that. That's exactly what I meant:
warSourceExcludes is used to exclude content in the directory defined
by the warSourceDirectory. The documentation is confusing though.

Now, I don't see any quick solution to your problem so we'll have to
investigate a bit to clarify.

Please file a Jira issue.

Stéphane

On Dec 12, 2007 1:37 PM, maarten roosendaal [EMAIL PROTECTED] wrote:
 This is in relation to the skinny-war. I wanted to exclude all libs from 
 WEB-INF\lib for all my WAR's.

 This also had to do with transitive dependencies in combination with optional 
 = true problem. I want to include only 1 specific jar in the WEB-INF\lib and 
 the rest should only be included in the manifest. I saw a path in JIRA but 
 this was not working because it was missing a few classes, didn't look into 
 it.

 Thanks,
 Maarten


 - Original Message 
 From: Stephane Nicoll [EMAIL PROTECTED]
 To: Maven Users List users@maven.apache.org
 Sent: Wednesday, December 12, 2007 12:49:21 PM
 Subject: Re: war-plugin 2.1-alpha-2-SNAPSHOT warSourceExcludes not working


 I've been changing something there indeed because it was excluding
 stuff in the resulting archive (which was not the expected behavior at
 all). I just hope I didn't break something :)

 Can you please elaborate because is not working is not especially
  helpful.

 this should only apply to stuff from the src/main/webapp directory. If
 you used this to filter the content of the war, it has only worked by
 side effect.

 Regards,
 Stéphane

 On Dec 12, 2007 11:19 AM, maarten roosendaal [EMAIL PROTECTED]
  wrote:
  Hi,
 
  It seems that the option warSourceExcludes for war-plugin
  2.1-alpha-2-SNAPSHOT is not working. I've been using alpha-1 and that was 
 working
  fine. Any ideas?
 
  Thanks,
  Maarten
 
 
 
 
 
  
 
  Looking for last minute shopping deals?
  Find them fast with Yahoo! Search.
   http://tools.search.yahoo.com/newsearch/category.php?category=shopping



 --
 Large Systems Suck: This rule is 100% transitive. If you build one,
 you suck -- S.Yegge

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







   
 
 Never miss a thing.  Make Yahoo your home page.
 http://www.yahoo.com/r/hs



-- 
Large Systems Suck: This rule is 100% transitive. If you build one,
you suck -- S.Yegge

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



maven + eclipse server adapter

2007-12-12 Thread cailie

I have a multi-module POM project that packages three modules: EAR, EJB, and
WAR. To deploy the EAR module, I use the codehaus exec-maven-plugin.

Now, I would like to use the Glassfish V2 Java EE 5 server adapter for
Eclipse and manage the deployment through the IDE.

Not surprisingly, this is not as simple as it is for Eclipse-generated web
projects -- I cannot right-click on the server under the Server view and
add my multi-module project, nor any of its modules. They are not presented
as choices in the Add and Remove Projects wizard.

Ideally, I would like to configure my project using Maven so that it can be
automatically run via the Eclipse server adapter. Anyone have ideas on this?

* I have searched for related posts in this forum, but did not find
anything. If you find something, please let me know.
-- 
View this message in context: 
http://www.nabble.com/maven-%2B-eclipse-server-adapter-tp14300046s177p14300046.html
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: problem with inheritance (maven-site-plugin)

2007-12-12 Thread Dennis Lundberg
Please attach a zip file of your project to JIRA. Your issue sounds very 
much like this one:


http://jira.codehaus.org/browse/MSITE-279

GERODOLLE Anne RD-MAPS-GRE wrote:

Hi everybody,
 
 From what I have read in the documentation, and from some previous 
experiences, I expect that site.xml files are inherited, and that if 
both the parent and child projects contain a site.xml file, the 
resulting site (in the child project) should mix menu definitions found 
in the child site.xml and inherited definitions.
 
However, I observe something very strange. I have built a small project 
with a multimodule parent project, and two children. The parent's 
site.xml defines a menu1 menu, and the child's defines a menu2 menu. 
I wanted to enclose this project as a zip file but had a mail delivery 
problem, so I'm enclosing only the parent's and child's site.xml files.
 
If using the last plugin 2.0-beta-6, and running : mvn clean , then mvn 
site, I see only menu1, it looks like the site.xml from the parent is 
inherited but the child's menu is ignored.
 
if using the previous version 2.0-beta5, I see only menu2, menu1 is 
not inherited from the parent.
 
I'm sure I have already observed the expected behaviour, but it was on a 
more complex example.
 
thank you in advance for your help,
 
Anne





-
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: PluginManagement and reporting configuration

2007-12-12 Thread Dennis Lundberg
Unfortunately build/pluginManagement only works for build plugins 
and not for reporting plugins.


See http://jira.codehaus.org/browse/MNG-1931

Arnaud Bailly wrote:

Hello,
While using the PMD plugin, I ran into an annoying problem, or maybe I
misunderstood something with maven. I want to configure pmd to use Java1.5
so I did:
   build
pluginManagement
plugins
plugin
artifactIdmaven-pmd-plugin/artifactId
configuration
targetJdk1.5/targetJdk
/configuration
/plugin

The configuration is correctly injected in the build plugins, but not in the
reporting plugins. Is this normal ? 


Best regards,

Arnaud Bailly



--
Dennis Lundberg

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



Re: Getting a dependency list in a custom plugin

2007-12-12 Thread Wayne Fay
A few good links for you, EJ:

http://wiki.wsmoak.net/cgi-bin/wiki.pl?Maven/PluginDevelopment
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook

Wayne

On 12/12/07, Jeff MAURY [EMAIL PROTECTED] wrote:
 You must declare a parameter in your Mojo of class Project and use the
 expression ${project}

 Jeff



 On 12/12/07, EJ Ciramella [EMAIL PROTECTED] wrote:
 
  Yeah, I'm having much better results (they're blank, but in a format
  that's recognizable) using:
 
 dependency
   groupIdorg.apache.maven/groupId
   artifactIdmaven-project/artifactId
   version2.0.4/version
 /dependency
 
  But what's weird is I'm seeing this:
 
  snip
 MavenProject proj = new MavenProject();
 getLog().info(artifact ID here +proj.getArtifactId());
  /snip
 
 
  Yeilds:
 
  artifact ID here empty-project
 
 
  I'm guessing I need to do something that gets an instance of the current
  project.  How does one do this from their AbstractMojo based plugin?
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff
  MAURY
  Sent: Wednesday, December 12, 2007 11:27 AM
  To: Maven Users List
  Subject: Re: Getting a dependency list in a custom plugin
 
  For Maven2, the groupId is org.apache.maven and the version is 2.0.x.
 
  Regards
  Jeff
 
 
 
  On 12/12/07, EJ Ciramella [EMAIL PROTECTED] wrote:
  
   Additionally, I've added:
  
   plugins
plugin
dependencies
  dependency
groupIdmaven/groupId
artifactIdmaven-model/artifactId
version3.0.1/version
  /dependency
/dependencies
   
  
  
   To my pom, but I still am getting
  
   [INFO] Trace
   java.lang.NoClassDefFoundError: org/apache/maven/project/Model
  
   /scratcheshead
  
   -Original Message-
   From: EJ Ciramella [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, December 12, 2007 10:43 AM
   To: Maven Users List
   Subject: RE: Getting a dependency list in a custom plugin
  
   So, what dependency should I be using to get access to the maven project
   class?  I get the feeling I'm using the wrong one.
  
   I've opted to use:
  
   import org.apache.maven.project.Project;
  
   From:
  dependency
groupIdmaven/groupId
artifactIdmaven/artifactId
version1.1-beta-3/version
  /dependency
  
   I feel like this is the maven1 version...
  
  
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff
   MAURY
   Sent: Wednesday, December 12, 2007 3:21 AM
   To: Maven Users List
   Subject: Re: Getting a dependency list in a custom plugin
  
   On 12/12/07, EJ Ciramella [EMAIL PROTECTED] wrote:
   
Hello all - I have what seems like a simple question that's got me
stumped at the moment.
   
Is there a way to iterate over the dependencies in a particular
  project
inside a custom plugin?
   
I keep wanting to do something like:
   
ArrayList deps = (ArrayList) proj.getDependencies();
for(int x = 0; x  deps.size(); x++)
{
 getLog().info(-- +deps.get(x));
}
   
Just for testing purposes, but at runtime, I keep getting this
stacktrace:
   
java.lang.NoClassDefFoundError: org/apache/maven/project/Model
   at org.apache.maven.project.Project.init(Project.java:120)
   at com.upromise.maven.helpers.ManiGen.execute(ManiGen.java:20)
   at
org.apache.maven.plugin.DefaultPluginManager.executeMojo
  (DefaultPluginMa
nager.java:420)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
  (Default
LifecycleExecutor.java:539)
   at
   
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
l(DefaultLifecycleExecutor.java:493)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
  (DefaultL
ifecycleExecutor.java:463)
   
I get the feeling I'm not using the right Project class.
  
  
   I think you're missing a dependency in your plugin POM so that the
   classpath
   affected to your plugin is not complete.
  
   Jeff
  
  
   Any suggestions would be really helpful.
   
  
  
  
   --
   La mélancolie c'est communiste
   Tout le monde y a droit de temps en temps
   La mélancolie n'est pas capitaliste
   C'est même gratuit pour les perdants
   La mélancolie c'est pacifiste
   On ne lui rentre jamais dedans
   La mélancolie oh tu sais ça existe
   Elle se prend même avec des gants
   La mélancolie c'est pour les syndicalistes
   Il faut juste sa carte de permanent
  
   Miossec (2006)
  
   http://www.jeffmaury.com
   http://riadiscuss.jeffmaury.com
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   

Re: Getting a dependency list in a custom plugin

2007-12-12 Thread Jeff MAURY
You must declare a parameter in your Mojo of class Project and use the
expression ${project}

Jeff



On 12/12/07, EJ Ciramella [EMAIL PROTECTED] wrote:

 Yeah, I'm having much better results (they're blank, but in a format
 that's recognizable) using:

dependency
  groupIdorg.apache.maven/groupId
  artifactIdmaven-project/artifactId
  version2.0.4/version
/dependency

 But what's weird is I'm seeing this:

 snip
MavenProject proj = new MavenProject();
getLog().info(artifact ID here +proj.getArtifactId());
 /snip


 Yeilds:

 artifact ID here empty-project


 I'm guessing I need to do something that gets an instance of the current
 project.  How does one do this from their AbstractMojo based plugin?

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff
 MAURY
 Sent: Wednesday, December 12, 2007 11:27 AM
 To: Maven Users List
 Subject: Re: Getting a dependency list in a custom plugin

 For Maven2, the groupId is org.apache.maven and the version is 2.0.x.

 Regards
 Jeff



 On 12/12/07, EJ Ciramella [EMAIL PROTECTED] wrote:
 
  Additionally, I've added:
 
  plugins
   plugin
   dependencies
 dependency
   groupIdmaven/groupId
   artifactIdmaven-model/artifactId
   version3.0.1/version
 /dependency
   /dependencies
  
 
 
  To my pom, but I still am getting
 
  [INFO] Trace
  java.lang.NoClassDefFoundError: org/apache/maven/project/Model
 
  /scratcheshead
 
  -Original Message-
  From: EJ Ciramella [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, December 12, 2007 10:43 AM
  To: Maven Users List
  Subject: RE: Getting a dependency list in a custom plugin
 
  So, what dependency should I be using to get access to the maven project
  class?  I get the feeling I'm using the wrong one.
 
  I've opted to use:
 
  import org.apache.maven.project.Project;
 
  From:
 dependency
   groupIdmaven/groupId
   artifactIdmaven/artifactId
   version1.1-beta-3/version
 /dependency
 
  I feel like this is the maven1 version...
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff
  MAURY
  Sent: Wednesday, December 12, 2007 3:21 AM
  To: Maven Users List
  Subject: Re: Getting a dependency list in a custom plugin
 
  On 12/12/07, EJ Ciramella [EMAIL PROTECTED] wrote:
  
   Hello all - I have what seems like a simple question that's got me
   stumped at the moment.
  
   Is there a way to iterate over the dependencies in a particular
 project
   inside a custom plugin?
  
   I keep wanting to do something like:
  
   ArrayList deps = (ArrayList) proj.getDependencies();
   for(int x = 0; x  deps.size(); x++)
   {
getLog().info(-- +deps.get(x));
   }
  
   Just for testing purposes, but at runtime, I keep getting this
   stacktrace:
  
   java.lang.NoClassDefFoundError: org/apache/maven/project/Model
  at org.apache.maven.project.Project.init(Project.java:120)
  at com.upromise.maven.helpers.ManiGen.execute(ManiGen.java:20)
  at
   org.apache.maven.plugin.DefaultPluginManager.executeMojo
 (DefaultPluginMa
   nager.java:420)
  at
   org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
 (Default
   LifecycleExecutor.java:539)
  at
  
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
   l(DefaultLifecycleExecutor.java:493)
  at
   org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
 (DefaultL
   ifecycleExecutor.java:463)
  
   I get the feeling I'm not using the right Project class.
 
 
  I think you're missing a dependency in your plugin POM so that the
  classpath
  affected to your plugin is not complete.
 
  Jeff
 
 
  Any suggestions would be really helpful.
  
 
 
 
  --
  La mélancolie c'est communiste
  Tout le monde y a droit de temps en temps
  La mélancolie n'est pas capitaliste
  C'est même gratuit pour les perdants
  La mélancolie c'est pacifiste
  On ne lui rentre jamais dedans
  La mélancolie oh tu sais ça existe
  Elle se prend même avec des gants
  La mélancolie c'est pour les syndicalistes
  Il faut juste sa carte de permanent
 
  Miossec (2006)
 
  http://www.jeffmaury.com
  http://riadiscuss.jeffmaury.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 La mélancolie c'est communiste
 Tout le monde y a droit de temps en temps
 La mélancolie n'est pas capitaliste
 C'est même gratuit pour les perdants
 La mélancolie c'est pacifiste
 On ne lui rentre jamais dedans
 La mélancolie 

RE: Getting a dependency list in a custom plugin

2007-12-12 Thread EJ Ciramella
Thank you very much!

/digesting...
 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 12, 2007 1:28 PM
To: Maven Users List
Subject: Re: Getting a dependency list in a custom plugin

A few good links for you, EJ:

http://wiki.wsmoak.net/cgi-bin/wiki.pl?Maven/PluginDevelopment
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook

Wayne

On 12/12/07, Jeff MAURY [EMAIL PROTECTED] wrote:
 You must declare a parameter in your Mojo of class Project and use the
 expression ${project}

 Jeff



 On 12/12/07, EJ Ciramella [EMAIL PROTECTED] wrote:
 
  Yeah, I'm having much better results (they're blank, but in a format
  that's recognizable) using:
 
 dependency
   groupIdorg.apache.maven/groupId
   artifactIdmaven-project/artifactId
   version2.0.4/version
 /dependency
 
  But what's weird is I'm seeing this:
 
  snip
 MavenProject proj = new MavenProject();
 getLog().info(artifact ID here +proj.getArtifactId());
  /snip
 
 
  Yeilds:
 
  artifact ID here empty-project
 
 
  I'm guessing I need to do something that gets an instance of the current
  project.  How does one do this from their AbstractMojo based plugin?
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff
  MAURY
  Sent: Wednesday, December 12, 2007 11:27 AM
  To: Maven Users List
  Subject: Re: Getting a dependency list in a custom plugin
 
  For Maven2, the groupId is org.apache.maven and the version is 2.0.x.
 
  Regards
  Jeff
 
 
 
  On 12/12/07, EJ Ciramella [EMAIL PROTECTED] wrote:
  
   Additionally, I've added:
  
   plugins
plugin
dependencies
  dependency
groupIdmaven/groupId
artifactIdmaven-model/artifactId
version3.0.1/version
  /dependency
/dependencies
   
  
  
   To my pom, but I still am getting
  
   [INFO] Trace
   java.lang.NoClassDefFoundError: org/apache/maven/project/Model
  
   /scratcheshead
  
   -Original Message-
   From: EJ Ciramella [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, December 12, 2007 10:43 AM
   To: Maven Users List
   Subject: RE: Getting a dependency list in a custom plugin
  
   So, what dependency should I be using to get access to the maven project
   class?  I get the feeling I'm using the wrong one.
  
   I've opted to use:
  
   import org.apache.maven.project.Project;
  
   From:
  dependency
groupIdmaven/groupId
artifactIdmaven/artifactId
version1.1-beta-3/version
  /dependency
  
   I feel like this is the maven1 version...
  
  
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff
   MAURY
   Sent: Wednesday, December 12, 2007 3:21 AM
   To: Maven Users List
   Subject: Re: Getting a dependency list in a custom plugin
  
   On 12/12/07, EJ Ciramella [EMAIL PROTECTED] wrote:
   
Hello all - I have what seems like a simple question that's got me
stumped at the moment.
   
Is there a way to iterate over the dependencies in a particular
  project
inside a custom plugin?
   
I keep wanting to do something like:
   
ArrayList deps = (ArrayList) proj.getDependencies();
for(int x = 0; x  deps.size(); x++)
{
 getLog().info(-- +deps.get(x));
}
   
Just for testing purposes, but at runtime, I keep getting this
stacktrace:
   
java.lang.NoClassDefFoundError: org/apache/maven/project/Model
   at org.apache.maven.project.Project.init(Project.java:120)
   at com.upromise.maven.helpers.ManiGen.execute(ManiGen.java:20)
   at
org.apache.maven.plugin.DefaultPluginManager.executeMojo
  (DefaultPluginMa
nager.java:420)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
  (Default
LifecycleExecutor.java:539)
   at
   
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
l(DefaultLifecycleExecutor.java:493)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
  (DefaultL
ifecycleExecutor.java:463)
   
I get the feeling I'm not using the right Project class.
  
  
   I think you're missing a dependency in your plugin POM so that the
   classpath
   affected to your plugin is not complete.
  
   Jeff
  
  
   Any suggestions would be really helpful.
   
  
  
  
   --
   La mélancolie c'est communiste
   Tout le monde y a droit de temps en temps
   La mélancolie n'est pas capitaliste
   C'est même gratuit pour les perdants
   La mélancolie c'est pacifiste
   On ne lui rentre jamais dedans
   La mélancolie oh tu sais ça existe
   Elle se prend même avec des gants
   La mélancolie c'est pour les syndicalistes
   Il faut juste 

problem with release plugin + perforce

2007-12-12 Thread brewk9

Maven is changing my perforce client spec! It's changing it to the
target\checkout directory of the project I'm building. This directory
doesn't even exist in perforce!

This is happening when I call the release:perform goal with system property
-Dmaven.scm.perforce.clientspec.name=brewke_all.
-- 
View this message in context: 
http://www.nabble.com/problem-with-release-plugin-%2B-perforce-tp14302127s177p14302127.html
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: Getting a dependency list in a custom plugin

2007-12-12 Thread EJ Ciramella
Sorry - but this reply got me up and running in the first two seconds.

Link 3 is worth a million bucks IMHO. 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 12, 2007 2:16 PM
To: Maven Users List
Subject: RE: Getting a dependency list in a custom plugin

Thank you very much!

/digesting...
 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 12, 2007 1:28 PM
To: Maven Users List
Subject: Re: Getting a dependency list in a custom plugin

A few good links for you, EJ:

http://wiki.wsmoak.net/cgi-bin/wiki.pl?Maven/PluginDevelopment
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook

Wayne

On 12/12/07, Jeff MAURY [EMAIL PROTECTED] wrote:
 You must declare a parameter in your Mojo of class Project and use the
 expression ${project}

 Jeff



 On 12/12/07, EJ Ciramella [EMAIL PROTECTED] wrote:
 
  Yeah, I'm having much better results (they're blank, but in a format
  that's recognizable) using:
 
 dependency
   groupIdorg.apache.maven/groupId
   artifactIdmaven-project/artifactId
   version2.0.4/version
 /dependency
 
  But what's weird is I'm seeing this:
 
  snip
 MavenProject proj = new MavenProject();
 getLog().info(artifact ID here +proj.getArtifactId());
  /snip
 
 
  Yeilds:
 
  artifact ID here empty-project
 
 
  I'm guessing I need to do something that gets an instance of the current
  project.  How does one do this from their AbstractMojo based plugin?
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff
  MAURY
  Sent: Wednesday, December 12, 2007 11:27 AM
  To: Maven Users List
  Subject: Re: Getting a dependency list in a custom plugin
 
  For Maven2, the groupId is org.apache.maven and the version is 2.0.x.
 
  Regards
  Jeff
 
 
 
  On 12/12/07, EJ Ciramella [EMAIL PROTECTED] wrote:
  
   Additionally, I've added:
  
   plugins
plugin
dependencies
  dependency
groupIdmaven/groupId
artifactIdmaven-model/artifactId
version3.0.1/version
  /dependency
/dependencies
   
  
  
   To my pom, but I still am getting
  
   [INFO] Trace
   java.lang.NoClassDefFoundError: org/apache/maven/project/Model
  
   /scratcheshead
  
   -Original Message-
   From: EJ Ciramella [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, December 12, 2007 10:43 AM
   To: Maven Users List
   Subject: RE: Getting a dependency list in a custom plugin
  
   So, what dependency should I be using to get access to the maven project
   class?  I get the feeling I'm using the wrong one.
  
   I've opted to use:
  
   import org.apache.maven.project.Project;
  
   From:
  dependency
groupIdmaven/groupId
artifactIdmaven/artifactId
version1.1-beta-3/version
  /dependency
  
   I feel like this is the maven1 version...
  
  
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff
   MAURY
   Sent: Wednesday, December 12, 2007 3:21 AM
   To: Maven Users List
   Subject: Re: Getting a dependency list in a custom plugin
  
   On 12/12/07, EJ Ciramella [EMAIL PROTECTED] wrote:
   
Hello all - I have what seems like a simple question that's got me
stumped at the moment.
   
Is there a way to iterate over the dependencies in a particular
  project
inside a custom plugin?
   
I keep wanting to do something like:
   
ArrayList deps = (ArrayList) proj.getDependencies();
for(int x = 0; x  deps.size(); x++)
{
 getLog().info(-- +deps.get(x));
}
   
Just for testing purposes, but at runtime, I keep getting this
stacktrace:
   
java.lang.NoClassDefFoundError: org/apache/maven/project/Model
   at org.apache.maven.project.Project.init(Project.java:120)
   at com.upromise.maven.helpers.ManiGen.execute(ManiGen.java:20)
   at
org.apache.maven.plugin.DefaultPluginManager.executeMojo
  (DefaultPluginMa
nager.java:420)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
  (Default
LifecycleExecutor.java:539)
   at
   
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
l(DefaultLifecycleExecutor.java:493)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
  (DefaultL
ifecycleExecutor.java:463)
   
I get the feeling I'm not using the right Project class.
  
  
   I think you're missing a dependency in your plugin POM so that the
   classpath
   affected to your plugin is not complete.
  
   Jeff
  
  
   Any suggestions would be really helpful.
   
  
  
  
   --
   La mélancolie c'est communiste
   Tout le monde y a 

Re: Directory naming in working-directory

2007-12-12 Thread Emmanuel Venisse

numbers are project IDs. We don't use the origin name because with it, it won't 
be easy to work with branches if you want to work/build more than one branch.
Actually, it isn't possible to use an other strategy.
Why is it a problem for you?

Emmanuel

Ritz, Martin a écrit :



Hi Continuum Users,

i've a problem with the continuum 1.1.
The import and build of my projects works.

But one thing I can't get:

why takes Continuum not the origin name of the directory to checkout 
(SVN) and build in the working directory.
In my case Continuum takes numbers for the name of the directories.
To navigate in these cryptical directories is very confussing.

Is there a possibility to take the directories as they are?

THX
---
kindly regards
Martin Ritz

BTC AG - Unit Softwaredevelopment
mailto:[EMAIL PROTECTED]





Re: [c1.1] setting the min and max heap size ?

2007-12-12 Thread Emmanuel Venisse

memory parameters (and all other jvm parameters) can be set in the wrapper.conf

Emmanuel

Mick Knutson a écrit :

We use the sun sparc 64 run.sh


On Dec 10, 2007 1:48 PM, olivier lamy [EMAIL PROTECTED] wrote:


Hi,
if you launch it with plexus.sh/bat, look at the script and set
PLEXUS_OPTS

HTH,
--
Olivier

2007/12/10, Mick Knutson [EMAIL PROTECTED]:

I need to increase my min and max heap size for CI. Where can I set

this?

--
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---







Re: Various CI-Projects on the same working copy

2007-12-12 Thread David Roussel

what version control system are you using?

On 12 Dec 2007, at 08:31, Martin Urs (KSFI 313) wrote:

Hi

Every time I define a new project in a project group Continuum checks
out all the repository to a directory with the project ID. This takes
away a lot of space on the disk.
I'd like to have only one working copy for all my projects in a project
group. Isn't it possible to force Continuum to use the same directory
for various projects?

Regards
Urs Martin




setting compiler options for all modules

2007-12-12 Thread Kevin TierOne
Hello,

I'm looking for a way to set compiler options for all of my modules.
My application structure looks something like this.


root/pom.xml
root/app1/pom.xml
root/app2/pom.xml
root/app3/pom.xml

I currently have the following text pasted in the pom files in each
app directory.
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
debugfalse/debug
/configuration
/plugin


Is there a way to set the source, target, and debug parameters
in a single place so they are not copied in all 3 pom files?  Is it
possible to define these parameters in the root/pom.xml?

Thank you.
Kevin

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



Profile actiovation based on JDK

2007-12-12 Thread Thorsten Möller
Hi,

my question is regarding activation of profiles based on the jdk tag. 
Assume that a POM  specifies two profiles, one that should trigger for JDK 
1.5.x and one for JDK 1.6.x. The POM would look like this:
profile
activation
jdk1.5/jdk
/activation
...
/profile

profile
activation
jdk1.6/jdk
/activation
...
/profile



Based on the documentation that is available from the Maven Web site it is 
unclear to me what the exact semantic of the jdk tag is: will it be 
activated for i) all major Versions greather or equal than the one specified 
including sub versions or ii) only for the exact major version and all 
subversions. In other words, will a jdk1.5/jdk trigger only for 1.5.y 
versions or also for 1.6.x, 1.7.x, ...? Provided that the latter one holds 
my question then would be how can I create two profiles -- one for 1.5.x 
and one for 1.6.x -- and make sure that always only one gets activated 
exclusively?



Thanks for yor help,

Thorsten


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



surefire 2.3.1

2007-12-12 Thread DJP JEAN-PROST Dominique
Hello,

I can't find a release for surefire 2.3.1. Judging from jira, it seems this 
version is released, but I can't find it in repo1 as 2.4 version of surefire 
seems to be the current one. Can someone tell me what is the status of this 
release ?

regards,
domDepuis le 15 octobre, Dexia Sofaxis, Dexia Sofcap, Dexia Sofcah, Dexia DS 
Services, Dexia DS Formation ont mis en place un Service Relations Clients (Fax 
02 48 48 15 16 - Email [EMAIL PROTECTED])  :
* Un numéro de téléphone unique pour toutes vos demandes : 02 48 48 15 15
* Une disponibilité garantie, du lundi au vendredi, sans interruption, de 8h00 
à 18h30.
* Des spécialistes de l’assurance statutaire à votre écoute, au sein même de 
notre entreprise

Consultez notre site internet http://www.dexia-sofaxis.com

Tous ensemble pour l’environnement : n’imprimer ce courriel que si nécessaire.

Dexia Sofaxis disclaimer : http://www.sofaxis.com/disclaimer.html

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

license-report

2007-12-12 Thread Hoehmann, Andreas
Hello,

i need a file (LICENSES.TXT) which contains all dependend modules with
there licenses.
Exists a plugin to generate such a license-report for my project? I
use maven 2.

Best regards
Andreas

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



Mojos and JDK5

2007-12-12 Thread Steve Ebersole
I am working on a plugin which uses JDK5 generics.  Attempting to build that 
plugin gives me:

com.thoughtworks.qdox.parser.ParseException: syntax error @[744,56] in 
file:/home/steve/projects/jboss/dev/maven/maven-plugins/trunk/maven-jdocbook-plugin/src/main/java/org/jboss/jgettext/xml/XmlHandlerImpl.java
at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:638)
at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:747)
at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.j
...

That position in the file is method returning a generic collection.

Is JDK5 allowed in writing a plugin?  If so, any idea what I might be doing 
wrong?

-- 
Steve Ebersole

Hibernate Project Lead
http://hibernate.org

Principal Software Engineer
http://redhat.com
http://jboss.org

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



Multi-modules execution order

2007-12-12 Thread Jeff MAURY
Hello,

I have the following problem:
A multi module POM (called M) has tow modules A and B.
If I run Maven on M, then the execution order is A,B and M.

Now, let assume that M is the parent of A and B.
The execution order is changed to M,A and B
This causes me some trouble because I want to run plugins when M is builded
that need to get stuff from A and B in the local repository.
Another case is that you want to generated Javadoc with M and A or B cause
generation of source files : if M is executed before A and B, then the
Javadoc may be incomplete !!!

Does everyone has experienced the same problem and is it a Maven bug or a
Maven feature ?

Thanks
Jeff


-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com


ant task does work with maven 2.0.6 but not with maven 2.0.8

2007-12-12 Thread Martijn van der Laan
Hello
 
In our project, we use an anttask to generate wsdl files from java
classes using axis.
When I run the anttask using maven 2.0.6. it works good, but with maven
2.0.8 I get this error:
 
[INFO] [antrun:run {execution: java2wsdl}]
[INFO] Executing tasks
[mkdir] Created dir:
S:\rijkswaterstaat\erinet\webservice\target\generated-s
ources\main\java
   [delete] Deleting directory
S:\rijkswaterstaat\erinet\webservice\src\main\wsd
l
[mkdir] Created dir:
S:\rijkswaterstaat\erinet\webservice\src\main\wsdl
[axis-java2wsdl] Java2WSDL
nl.enovation.rws.bicsnet.webservice.LocationService
[axis-java2wsdl] java.lang.NoSuchMethodError:
org.apache.axis.encoding.TypeMappi
ngRegistryImpl.doRegisterFromVersion(Ljava/lang/String;)V
[axis-java2wsdl]at
org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask.execu
te(Java2WsdlAntTask.java:203)
[axis-java2wsdl]at
org.apache.tools.ant.UnknownElement.execute(UnknownEl
ement.java:275)
[axis-java2wsdl]at
org.apache.tools.ant.Task.perform(Task.java:364)
[axis-java2wsdl]at
org.apache.tools.ant.Target.execute(Target.java:341)
[axis-java2wsdl]at
org.apache.maven.plugin.antrun.AbstractAntMojo.execut
eTasks(AbstractAntMojo.java:108)
[axis-java2wsdl]at
org.apache.maven.plugin.antrun.AntRunMojo.execute(Ant
RunMojo.java:83)
[axis-java2wsdl]at
org.apache.maven.plugin.DefaultPluginManager.executeM
ojo(DefaultPluginManager.java:447)
[axis-java2wsdl]at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.e
xecuteGoals(DefaultLifecycleExecutor.java:539)
[axis-java2wsdl]at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.e
xecuteGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
[axis-java2wsdl]at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.e
xecuteGoal(DefaultLifecycleExecutor.java:459)
[axis-java2wsdl]at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.e
xecuteGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
[axis-java2wsdl]at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.e
xecuteTaskSegments(DefaultLifecycleExecutor.java:278)
[axis-java2wsdl]at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.e
xecute(DefaultLifecycleExecutor.java:143)
[axis-java2wsdl]at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.
java:333)
[axis-java2wsdl]at
org.apache.maven.DefaultMaven.execute(DefaultMaven.ja
va:126)
[axis-java2wsdl]at
org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
 
[axis-java2wsdl]at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
ethod)
[axis-java2wsdl]at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMet
hodAccessorImpl.java:39)
[axis-java2wsdl]at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Deleg
atingMethodAccessorImpl.java:25)
[axis-java2wsdl]at
java.lang.reflect.Method.invoke(Method.java:585)
[axis-java2wsdl]at
org.codehaus.classworlds.Launcher.launchEnhanced(Laun
cher.java:315)
[axis-java2wsdl]at
org.codehaus.classworlds.Launcher.launch(Launcher.jav
a:255)
[axis-java2wsdl]at
org.codehaus.classworlds.Launcher.mainWithExitCode(La
uncher.java:430)
[axis-java2wsdl]at
org.codehaus.classworlds.Launcher.main(Launcher.java:
375)
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error executing ant tasks
 
Embedded error: Error while running
org.apache.axis.tools.ant.wsdl.Java2WsdlAntT
ask
org.apache.axis.encoding.TypeMappingRegistryImpl.doRegisterFromVersion(L
java/lan
g/String;)V
 
The configuration part of the anttask:
 
 plugin
  artifactIdmaven-antrun-plugin/artifactId
  executions
   execution
  idwsdl2java/id
  phasegenerate-sources/phase
  configuration
tasks
  !-- Cleanup previous generated sources --
  delete dir=../target/generated-sources/main/java/ /
  mkdir dir=../target/generated-sources/main/java /
  taskdef
resource=axis-tasks.properties
classpathref=maven.compile.classpath /
 
  axis-wsdl2java
output=../target/generated-sources/main/java
deployScope=Application serverSide=true verbose=true
all=true
testcase=false url=../src/main/wsdl/LocationService.wsdl
typemappingversion=1.1/
/tasks
sourceRoot../target/generated-sources/main/java/sourceRoot
 
testSourceRoot../target/generated-sources/test/java/testSourceRoot
  /configuration
  goals
goalrun/goal
  /goals
/execution
 
With kind regards,
 
Martijn van der Laan
Software Engineer
 


Mojo accessing to rootDirectory

2007-12-12 Thread Arnaud WEBER

Hello,

I'm actually developping a little plugin and i need to access to the 
root directory of my project as a File or as a String.


i've seen there is a Map called pluginContext in the AbstractMojo Class 
and I guess it should be in. Is it inside? with which key? isn't there a 
more elegant way to find the project root directory?


Thanks
Arnaud

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



Re: Updating Eclipse project dependencies

2007-12-12 Thread Rob Hasselbaum
But there are some project settings that have nothing to do with Maven
such as project-specific Java Code Style settings, for example. Are
those left intact?


On 12/12/2007 10:25 AM, nicolas de loof wrote:
 You should change the project configuration byusing the maven-eclipse-plugin
 options, so that you can safely run eclipse:eclipse at any time.

 Nico.

 2007/12/12, Rob Hasselbaum [EMAIL PROTECTED]:
   
 Hi,

 I'm new to Maven and I'm using the eclipse:eclipse goal to generate an
 Eclipse project. Quick question: If the dependencies change, how do I
 update the project? I suppose I can just run eclipse:eclipse again, but
 will that preserve changes that I've made to the project configuration?

 Thanks,
 -Rob

 

   



Re: Continuum not able to handle the parent-child hierarchy

2007-12-12 Thread Emmanuel Venisse

Post your logs when you select R1 and R2 for building

Emmanuel

Hemant Malik a écrit :

Hi,
I am using Continuum 1.1 deployed on tomcat 5.5. The problem I am facing is
that Continuum after checking out is not able to handle the parent-child
relationships in the project structure.

For instance if there is a Maven Project R1 which has a child R2 ( inside
the pom of R1 i have mentioned about R2 in dependencyManagement tag and
module tag. And in R2's pom i have mentioned about R1 in the parent tag,
but the problem is when I select R1 and R2 for building, R2 fails, telling
that not able to download R1 from any repository.
When I give only R1 for build it doesn't take R2 on its own for building
like *mvn install* command takes on its own from command line.

It would be really great if someone can guide on the same.

Thanking in anticipation.

Regards,
Hemant Malik



Re: war-plugin 2.1-alpha-2-SNAPSHOT warSourceExcludes not working

2007-12-12 Thread olivier lamy
Hi,
Normally, it should be fixed see http://jira.codehaus.org/browse/MWAR-62.

Have you try with building the plugin from sources (I'm not sure the
deployed snapshot is up to date) ?

If you can reproduce the issue can you add a sample project to the issue
MWAR-62 and reopen it ?

Thanks,
--
Olivier

2007/12/12, maarten roosendaal [EMAIL PROTECTED]:

 Hi,

 It seems that the option warSourceExcludes for war-plugin
 2.1-alpha-2-SNAPSHOT is not working. I've been using alpha-1 and that was
 working fine. Any ideas?

 Thanks,
 Maarten





   
 
 Looking for last minute shopping deals?
 Find them fast with Yahoo! Search.
 http://tools.search.yahoo.com/newsearch/category.php?category=shopping


Re: continuum 1.1 and guest user

2007-12-12 Thread deckrider
Thanks for the clue!

Somehow because I didn't see 'guest' in the 1.1 version, I thought I
first had to login as 'guest', but didn't know the password.

Now I see that although it doesn't show me logged in as guest, I still
have guest permissions.

On Dec 8, 2007 9:04 AM, Wendy Smoak [EMAIL PROTECTED] wrote:

 On Dec 6, 2007 3:22 PM, deckrider+mvn [EMAIL PROTECTED] wrote:
  I would like to just have 1-2 admins and everyone else can be guest
  for continuum 1.1.
 
  This seemed possible in continuum 1.0, but I must be missing some step
  to know how to do it with continuum 1.1.  After I log in the first
  time to set up admin, I'm still not understanding how to log in so as
  to become guest (as well as how to give guest more privs).

 Log in as admin, then click the Users button at the left, choose the
 guest user, and grant it the roles you want it to have.

 Guest is the unauthenticated user, so you don't log in to become
 guest.  For example, if you make the guest user a global project
 developer, then anyone with access to the server will be able to add
 projects, kick off builds, etc.  Is that what you want?

 --
 Wendy




-- 
ASCII ribbon campaign:
()  against HTML email
/\  against Microsoft attachments
Information:  http://www.expita.com/nomime.html


Re: release of maven jar plugin 2.2 in the near future ?

2007-12-12 Thread olivier lamy
Hi,
Done.
The first thing to release here is maven-invoker-plugin (and maven-invoker).

--
Olivier

2007/12/9, Dennis Lundberg [EMAIL PROTECTED]:

 We should also add http://jira.codehaus.org/browse/MJAR-30 to the
 release, since patches has been applied for it.

 Jerome Lacoste wrote:
  On Dec 6, 2007 1:44 AM, Jerome Lacoste [EMAIL PROTECTED] wrote:
 
  Hei,
 
  The latest maven jar plugin release was in August 2006. Is there any
 plan
  to make a release this year ? :)
 
  http://jira.codehaus.org/browse/MJAR/fixforversion/12878
 
  I see 5 issues still targeted for 2.2 (among which 2 MJAR-78, MJAR-84
 have
  a patch).
 
 
  Olivier made some fixes and there are now only 2 remaining issues (that
  sound like new features to me).
 
  http://jira.codehaus.org/browse/MJAR/fixforversion/12878
 
  Olivier, is your plan to fix the 2 remaining issues then call for a
 release
  ? If so, I can allocate some time tomorrow for them.
 
  If not, what will be the release plans for the plugin ?
 
  Cheers,
 
  Jerome
 


 --
 Dennis Lundberg

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




Re: license-report

2007-12-12 Thread olivier lamy
Hi,
Have a look at the maven-remote-resources-plugin and how it's used for the
maven build to License and Notice files.

--
Olivier

2007/12/10, Hoehmann, Andreas [EMAIL PROTECTED]:

 Hello,

 i need a file (LICENSES.TXT) which contains all dependend modules with
 there licenses.
 Exists a plugin to generate such a license-report for my project? I
 use maven 2.

 Best regards
 Andreas

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




Ant tasks to deploy a jar

2007-12-12 Thread Paul Gier
Has anyone successfully deployed a jar file to a maven repository using the 
artifact:deploy ant task?  I tried using this task with both maven 2.0.6 and 
maven 2.0.8, and it would only deploy the pom files and not the jar.


I ended up using ant exec/ and just calling mvn deploy:deploy-file.  I'm 
wondering if I'm just missing something?  Or if this is broken I will create a 
jira issue.


Also if anyone has other suggestions about the easiest way to deploy ant built 
jars into a maven repo I would appreciate your ideas.


Thanks!

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



RE: Ant basedir

2007-12-12 Thread Gargan, Stephen
Luis,

It's these relative paths that are going to be your biggest problem
changing your build. As was mentioned in an earlier part of the thread,
it helps to think of ant as being procedural and maven object oriented.
Ant is very procedural and it suffers from many of the same problems as
procedural languages. 

Think of one build file including another via a relative path being like
one C header including another with a relative path. Over time these
relative includes cause the system to become hopelessly interdependent
and brittle, and a labyrinth to navigate and understand. Your build is
completely dependent on the build file system layout and to reusing or
restructuring any portion of it becomes a nightmare.

Maven's approach is more OO; modularizing sections of the build into
artifacts and sharing these with other sections of build independently
of location in the build tree. It is this location independence that is
key.  

Reaching out of one project to use something in another is like breaking
a classes' encapsulation by calling a private member variable, it
shouldn't be done. A Relative path is an implicit dependency, having one
ultimately ties you to the path target. Maven has excellent dependency
management; you want it to be handling dependencies for you. Your goal
is to modularize these build sections into maven artifacts and let maven
worry about who's using them and where they can be found. This way you
rid yourself of the tyranny of these relative paths, and where a project
lives in the build tree is no longer important.

So how then do you get started migrating? Tackling any large Ant project
It's a sure guarantee that if you start at the root of your build tree
(or root build.xml) and work down you will tie yourself in knots and
never get anywhere. The easiest thing will be for you to start with the
leaves on your build tree and work backwards. But what constitutes a
leaf and where are they found?

You will most probably have sections of your build that only rely on
third party jars. Typically these are utils and other library packages
that are widely used at higher levels. These are the easiest to start
with so break them out into your first maven project(s). 

Once you have these base library artifacts you now have useable
dependencies that are independent of their location in the build tree,
congratulations ;) You can start on mavenizing other parts of the build
tree that depend on your newly mavenized projects. Don't worry too much
about project inheritance and the like this early, this is something
that will reveal itself as you progress, and your main concern initially
is just to tame the build. Once everything is mavenized you will have a
much better idea of what the ugly parts of the build are and how the
hierarchy can be refactored into something more maintainable.

Along the way, you will no doubt have to move some classes out of
packages where the do not belong, but this is all part of bringing you
build under control. Buy in from development might be required to make
this happen but often it is glaringly obvious that classes are placed
where they shouldn't be. Bad modularization and architecture in the
source will bleed into the build and cause the same problems there as it
does in the code. Don't be afraid to bring this to people's attention. 

Where its not so obvious, or where you have confusing cycles, you can
create a project with the sole purpose of breaking the dependency until
such a time as the whole build is under control and you can discuss the
proper way for them to be addressed and refactored away.

Also keep in mind the OO analogy, that moving from maven to ant is
similar to porting a procedural app to an object oriented language.
There were things that made sense in the procedural world that don't
belong in an OO app. Change what you see needs to change.

Believe me, once you have everything mavenized, your life maintaining
the build will be much easier. Anyhow I hope this helps you get started,
shout if you have any questions.

Rgds,

ste


-Original Message-
From: Luis Roberto P. Paula [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 12, 2007 3:48 AM
To: Maven Users List
Subject: Re: Ant basedir

 What would you want to use this basedir property for? Maven has a
different mindset for referencing resources within a project than ant.
I'm sure if you describe your use case here someone will show you the
maven way to do things.

I'm using maven to call a ant-build file that is in another directory.

The problem is that there is a lot of relative paths in this ant file.

On Dec 11, 2007 9:43 PM, Gargan, Stephen [EMAIL PROTECTED] wrote:

 What would you want to use this basedir property for? Maven has a
 different mindset for referencing resources within a project than ant.
 I'm sure if you describe your use case here someone will show you the
 maven way to do things.

 Rgds,

 ste

 -Original Message-
 From: Luis Roberto P. Paula [mailto:[EMAIL 

Re: PluginManagement and reporting configuration

2007-12-12 Thread Insitu
Dennis Lundberg [EMAIL PROTECTED] writes:

 Unfortunately build/pluginManagement only works for build plugins
 and not for reporting plugins.

 See http://jira.codehaus.org/browse/MNG-1931


Thanks Dennis for your quick answer. The issue is quite old indeed :)
and I should have ran into it earlier. 

Regards,
-- 
Arnaud Bailly, PhD
OQube - Software Engineering
http://www.oqube.com


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



Re: Defining version in single location?

2007-12-12 Thread Michael McCallum
I was thinking... management has got to the point where they bring in someone 
to fix a problem project... is this not the perfect situation to give them a 
best practice which they will be open too?

On Wed, 12 Dec 2007 10:11:40 Graham Leggett wrote:
 Michael McCallum wrote:
  so tell management to keep out of the code

 I fix problem projects for a living, and one thing I have learned, over
 and over again, is that management don't keep out of the code.

 Leading a project to the light is about 10% technology, and 90%
 diplomacy, and when your tools don't help with the diplomacy part, you
 are doomed to fail.

 Regards,
 Graham
 --



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

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



Re: OverConstrainedVersionException

2007-12-12 Thread Michael McCallum
3.3.0-xxx is less than 3.3.0

try [3.2.9,4)

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

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



RE: Getting a dependency list in a custom plugin

2007-12-12 Thread EJ Ciramella
So maybe I got ahead of myself a bit, I'm having a bit of trouble with the 
Dependency portion:

In my class, I have this - 

/** @parameter expression=${project.dependencies} */
private Dependency dependencies;

But when I run, I get this:

Cause: Cannot assign configuration entry 'dependencies' to 'class 
org.apache.maven.model.Dependency' from '${project.dependencies}', which is of 
type class java.
util.ArrayList

So my understanding is that ${project.dependencies} is really an ArrayList, but 
when I try something like this:

/** @parameter expression=${project.dependencies} */
private ArrayList dependencies;

And:

  for(int x = 0; x  dependencies.size(); x++)
  {
  if 
(artifact.getGroupId().equals(((Dependency)dependencies.get(x)).getGroupId()) 
 
artifact.getArtifactId().equals(((Dependency)dependencies.get(x)).getArtifactId()))
 
  {
  getLog().info(artifact.getFile().getPath());
  }
  }


I get:


[INFO] null
[INFO] 
[INFO] Trace
java.lang.NullPointerException
at com.upromise.maven.helpers.ManiGen.execute(ManiGen.java:33)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:420)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

With a bit more research, the artifacts are null.  This returns nothing:

Set artifacts = mavenProject.getDependencyArtifacts();

What should I be doing instead?




 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 12, 2007 2:22 PM
To: Maven Users List
Subject: RE: Getting a dependency list in a custom plugin

Sorry - but this reply got me up and running in the first two seconds.

Link 3 is worth a million bucks IMHO. 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 12, 2007 2:16 PM
To: Maven Users List
Subject: RE: Getting a dependency list in a custom plugin

Thank you very much!

/digesting...
 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 12, 2007 1:28 PM
To: Maven Users List
Subject: Re: Getting a dependency list in a custom plugin

A few good links for you, EJ:

http://wiki.wsmoak.net/cgi-bin/wiki.pl?Maven/PluginDevelopment
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook

Wayne

On 12/12/07, Jeff MAURY [EMAIL PROTECTED] wrote:
 You must declare a parameter in your Mojo of class Project and use the
 expression ${project}

 Jeff



 On 12/12/07, EJ Ciramella [EMAIL PROTECTED] wrote:
 
  Yeah, I'm having much better results (they're blank, but in a format
  that's recognizable) using:
 
 dependency
   groupIdorg.apache.maven/groupId
   artifactIdmaven-project/artifactId
   version2.0.4/version
 /dependency
 
  But what's weird is I'm seeing this:
 
  snip
 MavenProject proj = new MavenProject();
 getLog().info(artifact ID here +proj.getArtifactId());
  /snip
 
 
  Yeilds:
 
  artifact ID here empty-project
 
 
  I'm guessing I need to do something that gets an instance of the current
  project.  How does one do this from their AbstractMojo based plugin?
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff
  MAURY
  Sent: Wednesday, December 12, 2007 11:27 AM
  

Re: Maven and Java 6 Patch 3

2007-12-12 Thread Michael McCallum
one thing to be careful with eclipse and maven is that you DO NOT share output 
directories. Eclipse instruments classes for its own use which will give very 
odd errors when building and testing from maven.

On Thu, 13 Dec 2007 04:46:20 Sachse, Holger wrote:
 Paul,

 Sorry, I forgot to make it yesterday. Now I have the problem that I cannot
 reproduce it.

 The problem appeared last week when I updated in one sequence from Maven
 2.0.7 to 2.0.8 and the latest versions of m2eclipse and Q4E in two
 different instances of Eclipse.

 After seen the problem I set up from scratch twice Java 6 and Eclipse with
 the plugins and I thought I deleted all possible influences, but it did not
 work.

 In the morning, I installed Java 1.5/ 12 and it went well. After your mail,
 I switched JAVA_HOME back to 6.0.03 and the problem disappeared. Strange!!

 It looks like that updating either m2eclipse or Q4E from previous versions
 caused the problem. When I sent the mail, it looked like problem with
 6.0.03. My guess is, that m2eclipse switch to an internal version of Maven
 2.1 caused the problem, but I can not prove it.

 I have a copy of the situation of yesterday on my private PC at home, when
 I am back from travel I try to get the stack trace. This may last until
 Monday.



 regards

 Holger Sachse



 Würth Phoenix S.r.l.
 Holger Sachse
 Via Kravogl 4
 I-39100 Bolzano

 Direct:+39 0471 56 40 16

 Mobile:  +39 335 6 19 24 74
 Fax:   +39 0471 56 41 22
 E-Mail:   [EMAIL PROTECTED]
 Website: www.wuerth-phoenix.com

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Paul Benedict Sent: Wednesday, December 12, 2007 14:47
 To: Maven Users List
 Subject: Re: Maven and Java 6 Patch 3

 Provide a stack trace please.

 On Dec 12, 2007 7:45 AM, Sachse, Holger [EMAIL PROTECTED]
 wrote:


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



Pre-release Testing Best Practices?

2007-12-12 Thread Eric Minick
I'm looking at doing some releases using the maven release plugin. Our 
environment is a set of pretty typical in house development projects for 
some web-apps. So we have things like dev, qa and production 
environments for deployment and frequent releases.


We don't want to cut a release before doing QA on it. So an ideal 
scenario is to put a snapshot build into QA, and get it approved. Once 
approved, we would want to release that code, verify that dependency 
changes didn't break things with regression tests, then move on to 
staging and production.


A natural concern here is that there are likely more changes to the 
mainline code base that come in during testing and we would not want to 
release those. Getting the code that went into the tested build out of 
source control at release time is not a problem though.


I have two questions:

1) Are there common \ recommended strategies for dealing with this type 
of scenerio?
2) If I just pull the old code out and run a release, is the SVN label 
(copy) command a local copy (which would only include the files in my 
release space) or a remote copy (which would include my newly checked in 
pom as well as any changes committed since we went to QA)?


Thanks,

Eric

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



Re: Pre-release Testing Best Practices?

2007-12-12 Thread Michael McCallum
The most common misconception IMO is that a maven release == a release...

I consider a Release to an environment to be a well understood collection of 
tags of artifacts thats reproducible. An artifact should have an independent 
release cycle.

all you need to do is manage the deployables i.e. what exactly ends up in your 
war. You can do that in the pom for the war project. That way you have the 
power to go forwards and backwards or whatever in the actual war that gets 
deployed. The contents does not need to be linear over time.

On Thu, 13 Dec 2007 11:25:19 Eric Minick wrote:
 I'm looking at doing some releases using the maven release plugin. Our
 environment is a set of pretty typical in house development projects for
 some web-apps. So we have things like dev, qa and production
 environments for deployment and frequent releases.

 We don't want to cut a release before doing QA on it. So an ideal
 scenario is to put a snapshot build into QA, and get it approved. Once
 approved, we would want to release that code, verify that dependency
 changes didn't break things with regression tests, then move on to
 staging and production.

 A natural concern here is that there are likely more changes to the
 mainline code base that come in during testing and we would not want to
 release those. Getting the code that went into the tested build out of
 source control at release time is not a problem though.

 I have two questions:

 1) Are there common \ recommended strategies for dealing with this type
 of scenerio?
 2) If I just pull the old code out and run a release, is the SVN label
 (copy) command a local copy (which would only include the files in my
 release space) or a remote copy (which would include my newly checked in
 pom as well as any changes committed since we went to QA)?

 Thanks,

 Eric

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



eclipse projects + multiple modules

2007-12-12 Thread cailie

I have a parent project (POM packaging) with that has 3 modules: EJB, WAR,
and EAR

So the folder structure is like this:

POM Project Folder
  -- EAR Project Folder
  -- EJB Project Folder
  -- WAR Project Folder

I am using Eclipse, and I would like to import the parent project, and have
it recognized by Eclipse as one big happy Java project. Right now, if I edit
any of the Java files from within the parent project, I get the usual This
compilation unit is not on the build path of a Java project. My workaround
is to open up the EJB and WAR modules as separate Java projects.

Does anybody have advice on how to configure this multi-module project such
that Eclipse recognizes it as a Java project?






-- 
View this message in context: 
http://www.nabble.com/eclipse-projects-%2B-multiple-modules-tp14305809s177p14305809.html
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: Pre-release Testing Best Practices?

2007-12-12 Thread Eric Minick
I tend to agree, and this is the first time we've really sought to do Maven
releases on deployable artifacts. But to have traceability for what went
into my artifact it seems that I'd at least want to ensure that my build ran
through a release:prepare dry run before being deployed to production.
Otherwise, there could be snapshot jars inside my ear - which limits
reproduceability / traceability.

If I'm doing release:prepare dry runs, there's value (tagging / site
deployments / pom incrementation) in running the rest of the release
process. So I do think I want to run the release. The problem here is that
you end up with a second artifact that needs to be retested at some level.
The alternative is to guess that an untested codebase is ready for release
and cut a release to give to QA. That's simpler, but I would expect several
maven releases per actual production deployment.

I'll admit that I'm mostly an Ant guy who dabbles in maven, make, rake, etc,
so most of these challenges are a bit new for me.

-- Eric

On 12/12/07, Michael McCallum [EMAIL PROTECTED] wrote:

 The most common misconception IMO is that a maven release == a release...

 I consider a Release to an environment to be a well understood collection
 of
 tags of artifacts thats reproducible. An artifact should have an
 independent
 release cycle.

 all you need to do is manage the deployables i.e. what exactly ends up in
 your
 war. You can do that in the pom for the war project. That way you have the
 power to go forwards and backwards or whatever in the actual war that gets
 deployed. The contents does not need to be linear over time.

 On Thu, 13 Dec 2007 11:25:19 Eric Minick wrote:
  I'm looking at doing some releases using the maven release plugin. Our
  environment is a set of pretty typical in house development projects for
  some web-apps. So we have things like dev, qa and production
  environments for deployment and frequent releases.
 
  We don't want to cut a release before doing QA on it. So an ideal
  scenario is to put a snapshot build into QA, and get it approved. Once
  approved, we would want to release that code, verify that dependency
  changes didn't break things with regression tests, then move on to
  staging and production.
 
  A natural concern here is that there are likely more changes to the
  mainline code base that come in during testing and we would not want to
  release those. Getting the code that went into the tested build out of
  source control at release time is not a problem though.
 
  I have two questions:
 
  1) Are there common \ recommended strategies for dealing with this type
  of scenerio?
  2) If I just pull the old code out and run a release, is the SVN label
  (copy) command a local copy (which would only include the files in my
  release space) or a remote copy (which would include my newly checked in
  pom as well as any changes committed since we went to QA)?
 
  Thanks,
 
  Eric
 
  -
  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]




problem with release plugin adding release-pom.xml to perforce

2007-12-12 Thread brewk9

I am using -DgenerateReleasePoms=true. When I run release:prepare, maven
creates and adds the release-pom.xml to perforce. Then, when I run
release:perform, maven deletes release-pom.xml from perforce. Then, when I
run release:prepare for a subsequent release, maven fails to readd
release-pom.xml to perforce and gives this error 'Unknown input:
//pem_rd/portal/development/code/mainbea10/maven-jee-shared-lib-plugin/release-pom.xml
- can't add (already opened for edit)' which comes directly from perforce.
It seems that maven is trying to add the file when it should be editing it.

Is this a bug? Anyone else using perforce + generateReleasePoms=true
successfully?
-- 
View this message in context: 
http://www.nabble.com/problem-with-release-plugin-adding-release-pom.xml-to-perforce-tp14305957s177p14305957.html
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: Pre-release Testing Best Practices?

2007-12-12 Thread Michael McCallum
we average about 10 releases before something makes is fit for production

On Thu, 13 Dec 2007 11:53:48 Eric Minick wrote:
 I tend to agree, and this is the first time we've really sought to do Maven
 releases on deployable artifacts. But to have traceability for what went
 into my artifact it seems that I'd at least want to ensure that my build
 ran through a release:prepare dry run before being deployed to production.
 Otherwise, there could be snapshot jars inside my ear - which limits
 reproduceability / traceability.

 If I'm doing release:prepare dry runs, there's value (tagging / site
 deployments / pom incrementation) in running the rest of the release
 process. So I do think I want to run the release. The problem here is that
 you end up with a second artifact that needs to be retested at some level.
 The alternative is to guess that an untested codebase is ready for release
 and cut a release to give to QA. That's simpler, but I would expect several
 maven releases per actual production deployment.

 I'll admit that I'm mostly an Ant guy who dabbles in maven, make, rake,
 etc, so most of these challenges are a bit new for me.

 -- Eric

 On 12/12/07, Michael McCallum [EMAIL PROTECTED] wrote:
  The most common misconception IMO is that a maven release == a release...
 
  I consider a Release to an environment to be a well understood collection
  of
  tags of artifacts thats reproducible. An artifact should have an
  independent
  release cycle.
 
  all you need to do is manage the deployables i.e. what exactly ends up in
  your
  war. You can do that in the pom for the war project. That way you have
  the power to go forwards and backwards or whatever in the actual war that
  gets deployed. The contents does not need to be linear over time.
 
  On Thu, 13 Dec 2007 11:25:19 Eric Minick wrote:
   I'm looking at doing some releases using the maven release plugin. Our
   environment is a set of pretty typical in house development projects
   for some web-apps. So we have things like dev, qa and production
   environments for deployment and frequent releases.
  
   We don't want to cut a release before doing QA on it. So an ideal
   scenario is to put a snapshot build into QA, and get it approved. Once
   approved, we would want to release that code, verify that dependency
   changes didn't break things with regression tests, then move on to
   staging and production.
  
   A natural concern here is that there are likely more changes to the
   mainline code base that come in during testing and we would not want to
   release those. Getting the code that went into the tested build out of
   source control at release time is not a problem though.
  
   I have two questions:
  
   1) Are there common \ recommended strategies for dealing with this type
   of scenerio?
   2) If I just pull the old code out and run a release, is the SVN label
   (copy) command a local copy (which would only include the files in my
   release space) or a remote copy (which would include my newly checked
   in pom as well as any changes committed since we went to QA)?
  
   Thanks,
  
   Eric
  
   -
   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]



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

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



Re: Pre-release Testing Best Practices?

2007-12-12 Thread Michael McCallum
Perhaps i'll restate that... we average about 10 releases of a deployable 
before its production worth, we have _many_ more artifacts tagged and 
released before that.

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



RE: Getting a dependency list in a custom plugin

2007-12-12 Thread EJ Ciramella
With a little more consideration, I don't really want every dependency 
(obviously, who'd want a junit jar in their war file if they could help it).

So here's a more conceptual question, what's the best way to allow one set of 
dependencies but let the end user configure which items get line entries in 
this manifest file?

Like a dependencyset in an assembly descriptor:

dependencySet
  outputFileNameMapping/outputFileNameMapping
  useStrictFilteringfalse/useStrictFiltering
  outputDirectory/someoutputplace/outputDirectory
  unpacktrue/unpack
  unpackOptions
 includes
   includesomeincludes/include
 /includes
  /unpackOptions
  includes
 includegroup:artifacid:type:version/include (where version can 
be * or blank I think)
  /includes
/dependencySet 

Any thoughts?


-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 12, 2007 5:10 PM
To: Maven Users List
Subject: RE: Getting a dependency list in a custom plugin

So maybe I got ahead of myself a bit, I'm having a bit of trouble with the 
Dependency portion:

In my class, I have this - 

/** @parameter expression=${project.dependencies} */
private Dependency dependencies;

But when I run, I get this:

Cause: Cannot assign configuration entry 'dependencies' to 'class 
org.apache.maven.model.Dependency' from '${project.dependencies}', which is of 
type class java.
util.ArrayList

So my understanding is that ${project.dependencies} is really an ArrayList, but 
when I try something like this:

/** @parameter expression=${project.dependencies} */
private ArrayList dependencies;

And:

  for(int x = 0; x  dependencies.size(); x++)
  {
  if 
(artifact.getGroupId().equals(((Dependency)dependencies.get(x)).getGroupId()) 
 
artifact.getArtifactId().equals(((Dependency)dependencies.get(x)).getArtifactId()))
 
  {
  getLog().info(artifact.getFile().getPath());
  }
  }


I get:


[INFO] null
[INFO] 
[INFO] Trace
java.lang.NullPointerException
at com.upromise.maven.helpers.ManiGen.execute(ManiGen.java:33)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:420)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

With a bit more research, the artifacts are null.  This returns nothing:

Set artifacts = mavenProject.getDependencyArtifacts();

What should I be doing instead?




 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 12, 2007 2:22 PM
To: Maven Users List
Subject: RE: Getting a dependency list in a custom plugin

Sorry - but this reply got me up and running in the first two seconds.

Link 3 is worth a million bucks IMHO. 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 12, 2007 2:16 PM
To: Maven Users List
Subject: RE: Getting a dependency list in a custom plugin

Thank you very much!

/digesting...
 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 12, 2007 1:28 PM
To: Maven Users List
Subject: Re: Getting a dependency list in a custom plugin

A few good links for you, EJ:

http://wiki.wsmoak.net/cgi-bin/wiki.pl?Maven/PluginDevelopment

Re: maven + eclipse server adapter

2007-12-12 Thread Arnaud HERITIER
Did you generated your eclipse settings with the WTP option of the eclipse
plugin ?
It should activate the support required to deploy your artifacts in the
application server

Arnaud

On Dec 12, 2007 6:37 PM, cailie [EMAIL PROTECTED] wrote:


 I have a multi-module POM project that packages three modules: EAR, EJB,
 and
 WAR. To deploy the EAR module, I use the codehaus exec-maven-plugin.

 Now, I would like to use the Glassfish V2 Java EE 5 server adapter for
 Eclipse and manage the deployment through the IDE.

 Not surprisingly, this is not as simple as it is for Eclipse-generated web
 projects -- I cannot right-click on the server under the Server view and
 add my multi-module project, nor any of its modules. They are not
 presented
 as choices in the Add and Remove Projects wizard.

 Ideally, I would like to configure my project using Maven so that it can
 be
 automatically run via the Eclipse server adapter. Anyone have ideas on
 this?

 * I have searched for related posts in this forum, but did not find
 anything. If you find something, please let me know.
 --
 View this message in context:
 http://www.nabble.com/maven-%2B-eclipse-server-adapter-tp14300046s177p14300046.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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




-- 
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...


Re: Archiva persitence

2007-12-12 Thread Brett Porter
See also: 
http://maven.apache.org/archiva/docs/1.0/adminguide/configuration-files.html

On 13/12/2007, Wendy Smoak [EMAIL PROTECTED] wrote:
 On Dec 12, 2007 9:52 AM, Shazia Bashir [EMAIL PROTECTED] wrote:

  Where are my changes saved ? I have not set up the database.

 Look (in your home directory) for ~/.m2/archiva.xml (and possibly an
 'archiva' directory there as well.)

 --
 Wendy



-- 
Brett Porter
Blog: http://www.devzuz.org/blogs/bporter/


Re: Updating Eclipse project dependencies

2007-12-12 Thread Arnaud HERITIER
By default the eclipse plugin keeps your additionnal settings. You lost them
only if you call eclipse:clean
If it's not the case, you can open an issue.

Arnaud

On Dec 12, 2007 9:24 PM, Rob Hasselbaum [EMAIL PROTECTED] wrote:

 But there are some project settings that have nothing to do with Maven
 such as project-specific Java Code Style settings, for example. Are
 those left intact?


 On 12/12/2007 10:25 AM, nicolas de loof wrote:
  You should change the project configuration byusing the
 maven-eclipse-plugin
  options, so that you can safely run eclipse:eclipse at any time.
 
  Nico.
 
  2007/12/12, Rob Hasselbaum [EMAIL PROTECTED]:
 
  Hi,
 
  I'm new to Maven and I'm using the eclipse:eclipse goal to generate an
  Eclipse project. Quick question: If the dependencies change, how do I
  update the project? I suppose I can just run eclipse:eclipse again, but
  will that preserve changes that I've made to the project configuration?
 
  Thanks,
  -Rob
 
 
 
 




-- 
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...


Re: state of maven support for Google Web Toolkit ?

2007-12-12 Thread Bob Allison
I thought about doing that, but I wasn't sure about adding another plugin to 
do about the same thing.  Should we just let Google maintain the plugin for 
their toolkit?


Since there is already a gwt-maven-plugin in the Mojo sandbox and a 
maven-googlewebtoolkit-plugin at Google, do you have a suggestion as to what 
to call my version?


- Original Message - 
From: nicolas de loof [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Wednesday, December 12, 2007 2:43 AM
Subject: Re: state of maven support for Google Web Toolkit ?



What about submitting your plugin to the Mojo project ?

Nico.

2007/12/12, Bob Allison [EMAIL PROTECTED]:


I have built a version that I use which supports both running the
development shell from Maven and compiling as part of the normal build
process.  I think there are a least two other plugins in Codehaus.

I haven't used the plugins at Codehaus because last time I looked they 
did

not support the development shell.  I had not seen the plugin produced by
Google before, so I have not used it.  One thing the Google plugin does
that
I don't is to build the template project (doesn't seem very useful to put
a
bunch of configuration in the POM for a one-time event).

I use my plugin on an almost daily basis for development.  If anyone is
interested, I can probably post it somewhere for people to access.

- Original Message -
From: nicolas de loof [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Tuesday, December 11, 2007 8:49 AM
Subject: state of maven support for Google Web Toolkit ?


 Thanks to google, I've found
 http://codehaus.org/~shinobu/gwt-maven-plugin/and
 http://code.google.com/p/gwt-maven/

 What is the status of supporting GWT compiler in maven builds ?

 Nico.




-
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: eclipse projects + multiple modules

2007-12-12 Thread cailie

Thanks for your response... actually, I've got the parent project open too --
for a total of 4 projects open in Eclipse.


Arnaud HERITIER wrote:
 
 It's not possible, I think.
 Eclipse doesn't support the logic of modules.
 You'll have 3 projects in eclipse.
 The problem is that you'll not have the parent pom.
 
 Arnaud
 
 On Dec 12, 2007 11:46 PM, cailie [EMAIL PROTECTED] wrote:
 

 I have a parent project (POM packaging) with that has 3 modules: EJB,
 WAR,
 and EAR

 So the folder structure is like this:

 POM Project Folder
  -- EAR Project Folder
  -- EJB Project Folder
  -- WAR Project Folder

 I am using Eclipse, and I would like to import the parent project, and
 have
 it recognized by Eclipse as one big happy Java project. Right now, if I
 edit
 any of the Java files from within the parent project, I get the usual
 This
 compilation unit is not on the build path of a Java project. My
 workaround
 is to open up the EJB and WAR modules as separate Java projects.

 Does anybody have advice on how to configure this multi-module project
 such
 that Eclipse recognizes it as a Java project?






 --
 View this message in context:
 http://www.nabble.com/eclipse-projects-%2B-multiple-modules-tp14305809s177p14305809.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 
 -- 
 ..
 Arnaud HERITIER
 ..
 OCTO Technology - aheritier AT octo DOT com
 www.octo.com | blog.octo.com
 ..
 ASF - aheritier AT apache DOT org
 www.apache.org | maven.apache.org
 ...
 
 

-- 
View this message in context: 
http://www.nabble.com/eclipse-projects-%2B-multiple-modules-tp14305809s177p14306661.html
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: eclipse projects + multiple modules

2007-12-12 Thread Arnaud HERITIER
I thought it was impossible to open in eclipse a project and a subproject
(eclipse checks that it's not in an existing project path when it import a
new one).
If it's possible, it's cool

Arnaud

On Dec 13, 2007 12:37 AM, cailie [EMAIL PROTECTED] wrote:


 Thanks for your response... actually, I've got the parent project open too
 --
 for a total of 4 projects open in Eclipse.


 Arnaud HERITIER wrote:
 
  It's not possible, I think.
  Eclipse doesn't support the logic of modules.
  You'll have 3 projects in eclipse.
  The problem is that you'll not have the parent pom.
 
  Arnaud
 
  On Dec 12, 2007 11:46 PM, cailie [EMAIL PROTECTED] wrote:
 
 
  I have a parent project (POM packaging) with that has 3 modules: EJB,
  WAR,
  and EAR
 
  So the folder structure is like this:
 
  POM Project Folder
   -- EAR Project Folder
   -- EJB Project Folder
   -- WAR Project Folder
 
  I am using Eclipse, and I would like to import the parent project, and
  have
  it recognized by Eclipse as one big happy Java project. Right now, if I
  edit
  any of the Java files from within the parent project, I get the usual
  This
  compilation unit is not on the build path of a Java project. My
  workaround
  is to open up the EJB and WAR modules as separate Java projects.
 
  Does anybody have advice on how to configure this multi-module project
  such
  that Eclipse recognizes it as a Java project?
 
 
 
 
 
 
  --
  View this message in context:
 
 http://www.nabble.com/eclipse-projects-%2B-multiple-modules-tp14305809s177p14305809.html
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  ..
  Arnaud HERITIER
  ..
  OCTO Technology - aheritier AT octo DOT com
  www.octo.com | blog.octo.com
  ..
  ASF - aheritier AT apache DOT org
  www.apache.org | maven.apache.org
  ...
 
 

 --
 View this message in context:
 http://www.nabble.com/eclipse-projects-%2B-multiple-modules-tp14305809s177p14306661.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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




-- 
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...


FTP deployment not working but not giving errors

2007-12-12 Thread lightbulb432

I'm executing mvn deploy and get the debug output at the bottom of this
message (see the latter portion of that debug output). There's no exception,
but the file isn't getting put into the repository. In my pom I have
following:

distributionManagement
snapshotRepository
iddeploy-repository/id
urlftp://rootOfRemoteMavenRepo/url


build
extensions
extension
groupIdorg.apache.maven.wagon/groupId
artifactIdwagon-ftp/artifactId
version1.0-beta-2/version
...

In settings.xml I have the following:

settings
servers
server
iddeploy-repository/url
usernamemavenftpuser/username
passwordmaven/password
/server
/servers
/settings

[DEBUG] Mojo: deploy has config:
null
[DEBUG] In verifyVersionedPlugin for:
org.apache.maven.plugins:maven-deploy-plugin
[DEBUG]
org.apache.maven.plugins:maven-deploy-plugin:maven-plugin:2.3:runtime
(selected for runtime)
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for
runtime)
[DEBUG]   org.apache.maven:maven-core:jar:2.0:runtime (selected for runtime)
[DEBUG] org.apache.maven:maven-settings:jar:2.0:runtime (selected for
runtime)
[DEBUG]   org.apache.maven:maven-model:jar:2.0:runtime (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected
for runtime)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected
for runtime)
[DEBUG]  
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
(selected for runtime)
[DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected
for runtime)
[DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5:runtime
(selected for runtime)
[DEBUG]  
org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime (selected
for runtime)
[DEBUG]
org.apache.maven:maven-plugin-parameter-documenter:jar:2.0:runtime (selected
for runtime)
[DEBUG]
org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5:runtime
(selected for runtime)
[DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0:runtime
(selected for runtime)
[DEBUG]   doxia:doxia-sink-api:jar:1.0-alpha-4:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected for
runtime)
[DEBUG]
org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime (selected
for runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
(selected for runtime)
[DEBUG]   junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG]   classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0:runtime
(selected for runtime)
[DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0:runtime
(selected for runtime)
[DEBUG] org.apache.maven:maven-project:jar:2.0:runtime (selected for
runtime)
[DEBUG]   org.apache.maven:maven-artifact-manager:jar:2.0:runtime
(selected for runtime)
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0:runtime (selected
for runtime)
[DEBUG] commons-cli:commons-cli:jar:1.0:runtime (selected for runtime)
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0:runtime
(selected for runtime)
[DEBUG]
org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:runtime
(selected for runtime)
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0:runtime
(selected for runtime)
[DEBUG] org.apache.maven:maven-monitor:jar:2.0:runtime (selected for
runtime)
[DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5:runtime
(selected for runtime)
[DEBUG]   com.jcraft:jsch:jar:0.1.23:runtime (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for
runtime)
[DEBUG]   org.apache.maven:maven-project:jar:2.0:runtime (selected for
runtime)
[DEBUG]   org.apache.maven:maven-artifact-manager:jar:2.0:runtime (selected
for runtime)
[DEBUG]   org.apache.maven:maven-artifact:jar:2.0:runtime (selected for
runtime)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed -
nearer found: 1.1)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for
runtime)
[DEBUG] Using the following artifacts for classpath of:
org.apache.maven.plugins:maven-deploy-plugin:maven-plugin:2.3:

[]
[DEBUG] Realm already exists for:
org.apache.maven.plugins:maven-deploy-plugin. Skipping addition...
[DEBUG] Looking up mojo
org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy in realm

Re: eclipse projects + multiple modules

2007-12-12 Thread Arnaud HERITIER
It's not possible, I think.
Eclipse doesn't support the logic of modules.
You'll have 3 projects in eclipse.
The problem is that you'll not have the parent pom.

Arnaud

On Dec 12, 2007 11:46 PM, cailie [EMAIL PROTECTED] wrote:


 I have a parent project (POM packaging) with that has 3 modules: EJB, WAR,
 and EAR

 So the folder structure is like this:

 POM Project Folder
  -- EAR Project Folder
  -- EJB Project Folder
  -- WAR Project Folder

 I am using Eclipse, and I would like to import the parent project, and
 have
 it recognized by Eclipse as one big happy Java project. Right now, if I
 edit
 any of the Java files from within the parent project, I get the usual
 This
 compilation unit is not on the build path of a Java project. My
 workaround
 is to open up the EJB and WAR modules as separate Java projects.

 Does anybody have advice on how to configure this multi-module project
 such
 that Eclipse recognizes it as a Java project?






 --
 View this message in context:
 http://www.nabble.com/eclipse-projects-%2B-multiple-modules-tp14305809s177p14305809.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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




-- 
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...


Where is dependency for netscape.javascript.JSObject?

2007-12-12 Thread Vahid Pazirandeh

I want to call javascript code from within my Java applet. It seems like
netscape.javascript.JSObject is the way to go:

http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/java_js.html

1. Do the maven repositories have this plugin? Or would I have to use my own
plugin.jar file sitting in my JDK?

2. Since it seems like the Java plugin JRE has the JSObject available, I
don't want to include the dependency into my package. Would I just use the
following in my POM to compile against the classes, but spare it from being
included in my package?

 dependency 
 groupId foo  /groupId 
 artifactId bar /artifactId 
 scope compile /scope 
 /dependency 

Thanks everyone!

-Vahid Pazirandeh
-- 
View this message in context: 
http://www.nabble.com/Where-is-dependency-for-netscape.javascript.JSObject--tp14307388s177p14307388.html
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: Getting a dependency list in a custom plugin

2007-12-12 Thread Wayne Fay
Sounds like you're re-inventing the scope concept (compile, provided,
test, etc)... What exactly are you trying to do here?

Wayne

On 12/12/07, EJ Ciramella [EMAIL PROTECTED] wrote:
 With a little more consideration, I don't really want every dependency 
 (obviously, who'd want a junit jar in their war file if they could help it).

 So here's a more conceptual question, what's the best way to allow one set of 
 dependencies but let the end user configure which items get line entries in 
 this manifest file?

 Like a dependencyset in an assembly descriptor:

dependencySet
  outputFileNameMapping/outputFileNameMapping
  useStrictFilteringfalse/useStrictFiltering
  outputDirectory/someoutputplace/outputDirectory
  unpacktrue/unpack
  unpackOptions
 includes
   includesomeincludes/include
 /includes
  /unpackOptions
  includes
 includegroup:artifacid:type:version/include (where version 
 can be * or blank I think)
  /includes
/dependencySet

 Any thoughts?


 -Original Message-
 From: EJ Ciramella [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 12, 2007 5:10 PM
 To: Maven Users List
 Subject: RE: Getting a dependency list in a custom plugin

 So maybe I got ahead of myself a bit, I'm having a bit of trouble with the 
 Dependency portion:

 In my class, I have this -

/** @parameter expression=${project.dependencies} */
private Dependency dependencies;

 But when I run, I get this:

 Cause: Cannot assign configuration entry 'dependencies' to 'class 
 org.apache.maven.model.Dependency' from '${project.dependencies}', which is 
 of type class java.
 util.ArrayList

 So my understanding is that ${project.dependencies} is really an ArrayList, 
 but when I try something like this:

/** @parameter expression=${project.dependencies} */
private ArrayList dependencies;

 And:

  for(int x = 0; x  dependencies.size(); x++)
  {
  if 
 (artifact.getGroupId().equals(((Dependency)dependencies.get(x)).getGroupId()) 
  
 artifact.getArtifactId().equals(((Dependency)dependencies.get(x)).getArtifactId()))
  {
  getLog().info(artifact.getFile().getPath());
  }
  }


 I get:


 [INFO] null
 [INFO] 
 
 [INFO] Trace
 java.lang.NullPointerException
at com.upromise.maven.helpers.ManiGen.execute(ManiGen.java:33)
at 
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:420)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at 
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

 With a bit more research, the artifacts are null.  This returns nothing:

 Set artifacts = mavenProject.getDependencyArtifacts();

 What should I be doing instead?






 -Original Message-
 From: EJ Ciramella [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 12, 2007 2:22 PM
 To: Maven Users List
 Subject: RE: Getting a dependency list in a custom plugin

 Sorry - but this reply got me up and running in the first two seconds.

 Link 3 is worth a million bucks IMHO.

 -Original Message-
 From: EJ Ciramella [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 12, 2007 2:16 PM
 To: Maven Users List
 Subject: RE: Getting a dependency list in a custom plugin

 Thank you very much!

 /digesting...


 -Original Message-
 From: Wayne Fay [mailto:[EMAIL PROTECTED]
 Sent: 

Re: eclipse projects + multiple modules

2007-12-12 Thread Siarhei Dudzin
I think it's possible with m2eclipse plugin but you wont be able to use WTP
then

Siarhei

On 12/12/07, cailie [EMAIL PROTECTED] wrote:


 I have a parent project (POM packaging) with that has 3 modules: EJB, WAR,
 and EAR

 So the folder structure is like this:

 POM Project Folder
   -- EAR Project Folder
   -- EJB Project Folder
   -- WAR Project Folder

 I am using Eclipse, and I would like to import the parent project, and
 have
 it recognized by Eclipse as one big happy Java project. Right now, if I
 edit
 any of the Java files from within the parent project, I get the usual
 This
 compilation unit is not on the build path of a Java project. My
 workaround
 is to open up the EJB and WAR modules as separate Java projects.

 Does anybody have advice on how to configure this multi-module project
 such
 that Eclipse recognizes it as a Java project?






 --
 View this message in context:
 http://www.nabble.com/eclipse-projects-%2B-multiple-modules-tp14305809s177p14305809.html
 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: Getting a dependency list in a custom plugin

2007-12-12 Thread EJ Ciramella
So we're using ATG here, and part of assembling an ATG install is providing a 
classpath in the manifest file.

We have lots of dependencies for compiling (with either compile or nothing 
depending on who added the dependency), but many of these aren't needed for 
runtime because ATG jars included as part of the config-path setup provide them 
during runtime.  What I want to do is be able to pick and choose from what's 
being used for our compile classpath, but I don't want everything. 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 12, 2007 7:39 PM
To: Maven Users List
Subject: Re: Getting a dependency list in a custom plugin

Sounds like you're re-inventing the scope concept (compile, provided,
test, etc)... What exactly are you trying to do here?

Wayne

On 12/12/07, EJ Ciramella [EMAIL PROTECTED] wrote:
 With a little more consideration, I don't really want every dependency 
 (obviously, who'd want a junit jar in their war file if they could help it).

 So here's a more conceptual question, what's the best way to allow one set of 
 dependencies but let the end user configure which items get line entries in 
 this manifest file?

 Like a dependencyset in an assembly descriptor:

dependencySet
  outputFileNameMapping/outputFileNameMapping
  useStrictFilteringfalse/useStrictFiltering
  outputDirectory/someoutputplace/outputDirectory
  unpacktrue/unpack
  unpackOptions
 includes
   includesomeincludes/include
 /includes
  /unpackOptions
  includes
 includegroup:artifacid:type:version/include (where version 
 can be * or blank I think)
  /includes
/dependencySet

 Any thoughts?


 -Original Message-
 From: EJ Ciramella [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 12, 2007 5:10 PM
 To: Maven Users List
 Subject: RE: Getting a dependency list in a custom plugin

 So maybe I got ahead of myself a bit, I'm having a bit of trouble with the 
 Dependency portion:

 In my class, I have this -

/** @parameter expression=${project.dependencies} */
private Dependency dependencies;

 But when I run, I get this:

 Cause: Cannot assign configuration entry 'dependencies' to 'class 
 org.apache.maven.model.Dependency' from '${project.dependencies}', which is 
 of type class java.
 util.ArrayList

 So my understanding is that ${project.dependencies} is really an ArrayList, 
 but when I try something like this:

/** @parameter expression=${project.dependencies} */
private ArrayList dependencies;

 And:

  for(int x = 0; x  dependencies.size(); x++)
  {
  if 
 (artifact.getGroupId().equals(((Dependency)dependencies.get(x)).getGroupId()) 
  
 artifact.getArtifactId().equals(((Dependency)dependencies.get(x)).getArtifactId()))
  {
  getLog().info(artifact.getFile().getPath());
  }
  }


 I get:


 [INFO] null
 [INFO] 
 
 [INFO] Trace
 java.lang.NullPointerException
at com.upromise.maven.helpers.ManiGen.execute(ManiGen.java:33)
at 
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:420)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at 
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

 With a bit more research, the artifacts are null.  This returns nothing:

 Set artifacts = 

Re: maven + eclipse server adapter

2007-12-12 Thread cailie

Good point I tried that and received the following:


Unsupported WTP version: 2.0. This plugin currently supports only the
following versions: 1.0 1.5 R7 none.


I am using Eclipse Europa, so that includes WTP 2.0. So I tried to see if
specifying 1.5 or R7 would work. It didn't  it looked like it might
work, but then deployment failed with a weird error:


Could not publish to the server.
index=0, size=0


There is no problem with my EAR file -- it deploys fine with the Glassfish
asadmin tool.



Arnaud HERITIER wrote:
 
 Did you generated your eclipse settings with the WTP option of the eclipse
 plugin ?
 It should activate the support required to deploy your artifacts in the
 application server
 
 Arnaud
 
 On Dec 12, 2007 6:37 PM, cailie [EMAIL PROTECTED] wrote:
 

 I have a multi-module POM project that packages three modules: EAR, EJB,
 and
 WAR. To deploy the EAR module, I use the codehaus exec-maven-plugin.

 Now, I would like to use the Glassfish V2 Java EE 5 server adapter for
 Eclipse and manage the deployment through the IDE.

 Not surprisingly, this is not as simple as it is for Eclipse-generated
 web
 projects -- I cannot right-click on the server under the Server view
 and
 add my multi-module project, nor any of its modules. They are not
 presented
 as choices in the Add and Remove Projects wizard.

 Ideally, I would like to configure my project using Maven so that it can
 be
 automatically run via the Eclipse server adapter. Anyone have ideas on
 this?

 * I have searched for related posts in this forum, but did not find
 anything. If you find something, please let me know.
 --
 View this message in context:
 http://www.nabble.com/maven-%2B-eclipse-server-adapter-tp14300046s177p14300046.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 
 -- 
 ..
 Arnaud HERITIER
 ..
 OCTO Technology - aheritier AT octo DOT com
 www.octo.com | blog.octo.com
 ..
 ASF - aheritier AT apache DOT org
 www.apache.org | maven.apache.org
 ...
 
 

-- 
View this message in context: 
http://www.nabble.com/maven-%2B-eclipse-server-adapter-tp14300046s177p14307863.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



[m2] filters.property file does not filter project properties all the sudden

2007-12-12 Thread Mick Knutson
I have entries like this in my filters.properties files:

c2.calculateCOBTotal.service.url=http://rc-sun66e:/orabpel/dap_c2/CalculateCOBTotal/
*${project.version}*

and when it gets filtered during the build, I still end up with

location=http://rc-sun66e:/orabpel/dap_c2/GetMTVIds*/${project.version
}*/


Am I missing something? I thought project properties where always available
in the filters.
-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---


Re: [m2] filters.property file does not filter project properties all the sudden

2007-12-12 Thread Mick Knutson
I actually think I have additional issues...

This problem is inside an ant script that uses a filters file.



I have an ant pluging:

plugin
artifactIdmaven-antrun-plugin/artifactId
executions

execution
idbpelc/id
phaseprocess-classes/phase
configuration
tasks
ant
antfile=${projectRoot}/tools/build-tools/src/main/resources/bpel/common-
build.xml
 inheritRefs=true
property name=env.BPEL_HOME
value=${bpel.home}/
property name=rev value=${
project.version}/
property name=projectRoot
value=${projectRoot}/
*property name=filtersfile
value=${projectRoot}/src/main/filters/filter-${env}.properties/*
target name=compile/
/ant
/tasks
/configuration
goals
goalrun/goal
/goals
/execution

Where Ant needs to use the filters file as well.
Is there a way to tell the ant plugin to pre-filter this filter?



On Dec 12, 2007 6:30 PM, Mick Knutson [EMAIL PROTECTED] wrote:

 I have entries like this in my filters.properties files:


 c2.calculateCOBTotal.service.url=http://rc-sun66e:/orabpel/dap_c2/CalculateCOBTotal/
 *${project.version}*

 and when it gets filtered during the build, I still end up with

 location=http://rc-sun66e:/orabpel/dap_c2/GetMTVIds*/${
 project.version}*/


 Am I missing something? I thought project properties where always
 available in the filters.
 --
 Thanks,
 Mick Knutson

 http://www.baselogic.com
 http://www.blincmagazine.com
 http://www.djmick.com
 http://www.myspace.com/mickknutson
 http://www.myspace.com/BLiNCMagazine
 http://tahoe.baselogic.com
 ---




-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---


RE: Where is dependency for netscape.javascript.JSObject?

2007-12-12 Thread Gargan, Stephen
You could add the plugin jar to your localrepo using the install
command. You can see usage for the install plugin here.

http://maven.apache.org/plugins/maven-install-plugin/usage.html

Easiest thing to do will be to specify what you want your dependency to
be called  (I'm sure the java groupid is frowned on but you're only
using it internally right ;) so pick whatever groupid you like)

dependency
  groupId java /groupId
  artifactId java-plugin/artifactId
  version jre-1.5.0_09 /version
  scopeprovided/scope
/dependency

No run a build and the dependency will fail to resolve and mvn will very
kindly spit out the command line you need to install it locally. 

i.e.

mvn install:install-file -DgroupId=java.plugin -DartifactId=plugin \
  -Dversion=jre-1.5.0_09 -Dpackaging=jar
-Dfile=/path/to/plugin.jar



You use the scope of 'provided' to stop it being packaged up.

Rgds,

ste


-Original Message-
From: Vahid Pazirandeh [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 12, 2007 4:33 PM
To: users@maven.apache.org
Subject: Where is dependency for netscape.javascript.JSObject?


I want to call javascript code from within my Java applet. It seems like
netscape.javascript.JSObject is the way to go:

http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/java_js
.html

1. Do the maven repositories have this plugin? Or would I have to use my
own
plugin.jar file sitting in my JDK?

2. Since it seems like the Java plugin JRE has the JSObject available, I
don't want to include the dependency into my package. Would I just use
the
following in my POM to compile against the classes, but spare it from
being
included in my package?

 dependency 
 groupId foo  /groupId 
 artifactId bar /artifactId 
 scope compile /scope 
 /dependency 

Thanks everyone!

-Vahid Pazirandeh
-- 
View this message in context:
http://www.nabble.com/Where-is-dependency-for-netscape.javascript.JSObje
ct--tp14307388s177p14307388.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


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



maven non proxy settings

2007-12-12 Thread arunkumar_0205

Hi, 

i have a broad band internet connection in my home, i have two login one for
my system and one for my internet access.  In this case wht is the proxy
setting i need to give in my setting.xml file.  or not proxy setting
required.  please clarify
-- 
View this message in context: 
http://www.nabble.com/maven-non-proxy-settings-tp14310331s177p14310331.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



[ANN] cobertura-maven-plugin 2.2

2007-12-12 Thread Arnaud HERITIER
The Mojo team is pleased to annouce the release of the cobertura plugin v2.2
.
This release fix some important bugs over the cobertura plugin v2.1 which
was almost unusable for 1 year.

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

The list of changes is :

** Bug
* [MCOBERTURA-37] - Error in documentation for exclude, include and
ignore
* [MCOBERTURA-61] - HTML report shows all 100% but cobertura:check shows
correct coverage - only in 2.1, works in 2.0
* [MCOBERTURA-63] - empty index.html when site is staged.
* [MCOBERTURA-68] - Update maven-cobertura-plugin to use cobertura-1.9
* [MCOBERTURA-71] - Couldn't find 'cobertura' artifact in plugin
dependencies
* [MCOBERTURA-77] - Test failures after upgrade to Cobertura 1.9

** Improvement
* [MCOBERTURA-57] - Workaround for cobertura.ser location
* [MCOBERTURA-60] - Cobertura Plugin: need ability to produce both HTML
and XML report in one go.

Enjoy it.

Cheers,

..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...


Re: [ANN] cobertura-maven-plugin 2.2

2007-12-12 Thread Kalle Korhonen
Superb, many thanks! I know lots of people have been waiting for this one!

Kalle


On 12/12/07, Arnaud HERITIER [EMAIL PROTECTED] wrote:

 The Mojo team is pleased to annouce the release of the cobertura plugin
 v2.2
 .
 This release fix some important bugs over the cobertura plugin v2.1 which
 was almost unusable for 1 year.

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

 The list of changes is :

 ** Bug
 * [MCOBERTURA-37] - Error in documentation for exclude, include and
 ignore
 * [MCOBERTURA-61] - HTML report shows all 100% but cobertura:check
 shows
 correct coverage - only in 2.1, works in 2.0
 * [MCOBERTURA-63] - empty index.html when site is staged.
 * [MCOBERTURA-68] - Update maven-cobertura-plugin to use cobertura-1.9
 * [MCOBERTURA-71] - Couldn't find 'cobertura' artifact in plugin
 dependencies
 * [MCOBERTURA-77] - Test failures after upgrade to Cobertura 1.9

 ** Improvement
 * [MCOBERTURA-57] - Workaround for cobertura.ser location
 * [MCOBERTURA-60] - Cobertura Plugin: need ability to produce both
 HTML
 and XML report in one go.

 Enjoy it.

 Cheers,

 ..
 Arnaud HERITIER
 ..
 OCTO Technology - aheritier AT octo DOT com
 www.octo.com | blog.octo.com
 ..
 ASF - aheritier AT apache DOT org
 www.apache.org | maven.apache.org
 ...



Re: maven + eclipse server adapter

2007-12-12 Thread Arnaud HERITIER
We are actually working on the support for WTP 2.0.
It's available in the current 2.5-SNAPSHOT.
If if we don't discover an important issue, I'll release it between Xmas and
the new year's day.
To use it you have to add in your settings a new profile :
profile
  idapache.snapshots/id
  repositories
repository
  releases
enabledfalse/enabled
  /releases
  snapshots/
  idapache.snapshots/id
  nameMaven Snapshots/name
  urlhttp://people.apache.org/maven-snapshot-repository/url
/repository
  /repositories
  pluginRepositories
pluginRepository
  releases
enabledfalse/enabled
  /releases
  snapshots/
  idapache.plugin.snapshots/id
  nameMaven Plugin Snapshots/name
  urlhttp://people.apache.org/maven-snapshot-repository/url
/pluginRepository
  /pluginRepositories
/profile

And then you can use it with :
mvn 
org.apache.maven.plugins:maven-eclipse-plugin:2.5-SNAPSHOT:eclipse-Dwtpversion=
2.0 -Papache.snapshots

Arnaud

On Dec 13, 2007 2:16 AM, cailie [EMAIL PROTECTED] wrote:


 Good point I tried that and received the following:


 Unsupported WTP version: 2.0. This plugin currently supports only the
 following versions: 1.0 1.5 R7 none.


 I am using Eclipse Europa, so that includes WTP 2.0. So I tried to see if
 specifying 1.5 or R7 would work. It didn't  it looked like it might
 work, but then deployment failed with a weird error:


 Could not publish to the server.
 index=0, size=0


 There is no problem with my EAR file -- it deploys fine with the Glassfish
 asadmin tool.



 Arnaud HERITIER wrote:
 
  Did you generated your eclipse settings with the WTP option of the
 eclipse
  plugin ?
  It should activate the support required to deploy your artifacts in the
  application server
 
  Arnaud
 
  On Dec 12, 2007 6:37 PM, cailie [EMAIL PROTECTED] wrote:
 
 
  I have a multi-module POM project that packages three modules: EAR,
 EJB,
  and
  WAR. To deploy the EAR module, I use the codehaus exec-maven-plugin.
 
  Now, I would like to use the Glassfish V2 Java EE 5 server adapter for
  Eclipse and manage the deployment through the IDE.
 
  Not surprisingly, this is not as simple as it is for Eclipse-generated
  web
  projects -- I cannot right-click on the server under the Server view
  and
  add my multi-module project, nor any of its modules. They are not
  presented
  as choices in the Add and Remove Projects wizard.
 
  Ideally, I would like to configure my project using Maven so that it
 can
  be
  automatically run via the Eclipse server adapter. Anyone have ideas on
  this?
 
  * I have searched for related posts in this forum, but did not find
  anything. If you find something, please let me know.
  --
  View this message in context:
 
 http://www.nabble.com/maven-%2B-eclipse-server-adapter-tp14300046s177p14300046.html
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  ..
  Arnaud HERITIER
  ..
  OCTO Technology - aheritier AT octo DOT com
  www.octo.com | blog.octo.com
  ..
  ASF - aheritier AT apache DOT org
  www.apache.org | maven.apache.org
  ...
 
 

 --
 View this message in context:
 http://www.nabble.com/maven-%2B-eclipse-server-adapter-tp14300046s177p14307863.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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




-- 
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...


  1   2   >