Re: Experience with maven-proxy.rb

2006-01-10 Thread Jason Dillon
FYI, I have been testing out Proximity today... And I noticed that it can get 
quite slow with many repositories listed. 

I also ran into some strange missing dependencies... That would go away and 
come back every other build or so. 

Might be better to let Maven 2 handle aggregation... 

Dunno. 

--jason



 

-Original Message-
From: Pablo Muñiz García
To: Maven Users List
Sent: Tue Jan 10 12:23:11 2006
Subject: Re: Experience with maven-proxy.rb


Thanks Jason,

Proximity was in the queue. I'll see if I can install it sucessfully.

Greetings, Pablo.

Jason Dillon wrote:

>I just got Proximity setup yesterday and so far I'm happy with it. Works for 
>m1 and m2... And is much easier to style IMO. 
>
>Sorry no URL... But google for "proximity maven" and you'll find it. 
>
>For the record I've never heard of maven-proxy.rb so I can't say how they 
>compair. 
>
>--jason
>
>
>
> 
>
>-Original Message-
>From: Pablo Muñiz García
>To: Maven Users List
>Sent: Tue Jan 10 11:58:06 2006
>Subject: Experience with maven-proxy.rb
>
>Hi all!
>
>Lately I've been trying to find an alternative to codehaus
>maven-proxy that work with maven 2. After some "Googling" maven-proxy.rb
>(an script wirtten in Ruby) appeared. I've followed instructions
>detailed in the script, but I haven't been able to get it work under Apache.
>Anyone has experience on working with this project? Any success story?
>Maybe an alternative?
>
>Thanks in advance!!
>
>Greetings, Pablo.
>
>-
>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]

N�zfj|��֜�g���azފ{^�ם~�z�v���笝��v�z)ڝٚ��'��\��+���u�ݢ�(���z{bjX�~��jب���z���X�i�^��*.jaz)�zw^v�����zf��*.j��z���z-���u��v+,zh�jب�جب��ܢ���
��zfj|��֜�g���az���+,\���bn+^tZ���q��y�a��(�k��ƭ�뢺ey���b+azǧu�ڷ�y��v�M(�n�w�j)Z��,�fk&򶋜��&jwiz��'^��^���("��\֧��)ʇڟ'�j)Z�֧ʚ���.��^��N��*.~ܢ�^��b�

Re: [m2] outputDirectory

2006-01-10 Thread Henry Isidro

Dmitry Beransky wrote:

worked like a charm!  I ended up putting the following into the 
profile section:



   ${java.io.tmpDir}/maven/${pom.artifactId}


now the settings file is portalble among different platforms.  Very 
cool, indeed.



Thanks
Dmitry


I was thinking in the lines of using profiles in settings.xml or 
profiles.xml where you specify a property which would be used in the 
pom, ie:


- inside profiles.xml (which resides only in the system that is used):


  myProfile
  
c:\test\target
  



- inside pom.xml (which is portable):


  ${myoutput}




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


Glad to hear it worked!

Regards,
Henry

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



Re: [m2] Using variables from parent pom.xml - like version etc.

2006-01-10 Thread John Casey

There are two requirements for versioning in this case:

1. The parent POM has to have a valid  element (no expressions 
here).


2. Each child POM must specify a  element that refers to the 
parent POM explicitly, including the version declared in the parent POM 
(again, no expressions here).


Once you've done that, you can leave off the child  elements, 
and the parent's version will be used.


HTH,

John

Sanjay Choudhary wrote:

Thanks for taking time to reply.

Let me ask my question in different way

Parent Project  currentversion 4.0

project 1 -  extends parent project
project 2 -  extends parent project
project 3 -  extends parent project and depends on project 1 and project 2
..
..
project 35 - extends parent project


Parent project  + project1..35 make an Application.

Life cycle of the parent project + child project's is same as application.
Let us say current version of the application 4.0.

In maven 1.0.2 , we used to define tag  4.0in
parent project.xml Then in child projects, for example child project 3, that
is dependendent on project 1 and project 2,
We define dependency as

project1
${pom.currentVersion}

 project2
${pom.currentVersion}

Now if we hv. to release version 4.1 then all we need to do is change the
parent project.xml - currentVersion attribute.  We don't need to change all
the 35 projects for the version.

My question is how can a similar behavior achieved in M2.

Thanks,
Sanjay









On 1/10/06, Napoleon Esmundo Ramirez <[EMAIL PROTECTED]> wrote:

Hello,

I just checked your pom's.  Your parent pom seems to be okay.  But I think
your second pom isn't.  When declaring parent projects in child projects
(modules) you should explicitly define the version. Try setting it with
1.0-8, and let's see what happens.

I hope it works this time. :)

Cheers!
Nap

On 1/11/06, Allan Ramirez <[EMAIL PROTECTED]> wrote:

Hi there,

Try to use the  element.




http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

Regards,
-allan

Sanjay Choudhary wrote:


I tried using ${project.version} but got the following error


[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: POM '
org.emember:org_kp_eme
mber' not found in repository:

 org.kp.emember:org_kp_emember:pom:${project.version}




http://maven.apache.org/POM/4.0.0";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  4.0.0
  
org.emember
org_emember
CAN I USE VERSION VARIABLE FROM POM?  
  





On 1/10/06, Napoleon Esmundo Ramirez <[EMAIL PROTECTED]> wrote:



Hello,

Please try ${project.version}.

Cheers!
Nap

On 1/11/06, Sanjay Choudhary <[EMAIL PROTECTED]> wrote:



I have parent  pom.xml as below

http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
 4.0.0
 org.emember
 org_emember
 pom
 1.0-8
 Maven Quick Start Archetype
 http://maven.apache.org
 
 



Then I have pom.xml for each module
http://maven.apache.org/POM/4.0.0";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  4.0.0
  
org.emember
org_emember
CAN I USE VERSION VARIABLE FROM POM?  
  
  org.kp.emember
  kporgcommon
  jar
  CAN I USE VERSION VARIABLE FROM POM?  

in maven 1.0.2 we were able to use ${pom.currentVersion} but in maven



2.0.



${pom.version} doesn't work.  In my build I don't want to update 35
pom.xmls.
With maven 1.0.2, our scripts update parent pom and that was

available



in



all the child projects.  Please advice how we can use the variable

from

parent POM in M2 or if there is a alternate solution.

-Sanjay












No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.17/226 - Release Date:

1/10/2006





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








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



Re: [m2] outputDirectory

2006-01-10 Thread Dmitry Beransky
worked like a charm!  I ended up putting the following into the profile 
section:



   ${java.io.tmpDir}/maven/${pom.artifactId}


now the settings file is portalble among different platforms.  Very cool, 
indeed.



Thanks
Dmitry


I was thinking in the lines of using profiles in settings.xml or profiles.xml 
where you specify a property which would be used in the pom, ie:


- inside profiles.xml (which resides only in the system that is used):


  myProfile
  
c:\test\target
  



- inside pom.xml (which is portable):


  ${myoutput}



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



Re: [m2] possible to invoke multiple goals for a single lifecycle phase?

2006-01-10 Thread Maria Odea Ching

Hi Chris,

It's possible to invoke multiple goals for a single phase in the lifecycle.
You must bind your mojos to the specific phase first, then configure the 
plugin

in your pom as shown below so that when you execute the phase, it would
also run the goal(s) you specified

pom.xml:
...

  sample
  sample-plugin
  
 
  package

  ...
  
goal1
goal2
  

  

...


For more info on the lifecycle, see 
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html


Thanks,
Odea



[EMAIL PROTECTED] wrote:


Is it possible to invoke multiple goals for a single
phase in the lifecycle? E.g. I'd like to execute
multiple goals for 'package'. If it is not possible,
should I simply customize the lifecycle and add
phases?

Thanks,
Chris

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

 




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



Re: [m2] Using variables from parent pom.xml - like version etc.

2006-01-10 Thread Sanjay Choudhary
Thanks for taking time to reply.

Let me ask my question in different way

Parent Project  currentversion 4.0

project 1 -  extends parent project
project 2 -  extends parent project
project 3 -  extends parent project and depends on project 1 and project 2
..
..
project 35 - extends parent project


Parent project  + project1..35 make an Application.

Life cycle of the parent project + child project's is same as application.
Let us say current version of the application 4.0.

In maven 1.0.2 , we used to define tag  4.0in
parent project.xml Then in child projects, for example child project 3, that
is dependendent on project 1 and project 2,
We define dependency as

project1
${pom.currentVersion}

 project2
${pom.currentVersion}

Now if we hv. to release version 4.1 then all we need to do is change the
parent project.xml - currentVersion attribute.  We don't need to change all
the 35 projects for the version.

My question is how can a similar behavior achieved in M2.

Thanks,
Sanjay









On 1/10/06, Napoleon Esmundo Ramirez <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I just checked your pom's.  Your parent pom seems to be okay.  But I think
> your second pom isn't.  When declaring parent projects in child projects
> (modules) you should explicitly define the version. Try setting it with
> 1.0-8, and let's see what happens.
>
> I hope it works this time. :)
>
> Cheers!
> Nap
>
> On 1/11/06, Allan Ramirez <[EMAIL PROTECTED]> wrote:
> >
> > Hi there,
> >
> > Try to use the  element.
> >
> >
> >
> http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
> >
> > Regards,
> > -allan
> >
> > Sanjay Choudhary wrote:
> >
> > >I tried using ${project.version} but got the following error
> > >
> > >
> > >[INFO] Trace
> > >org.apache.maven.reactor.MavenExecutionException: POM '
> > >org.emember:org_kp_eme
> > >mber' not found in repository:
> > >
> > >  org.kp.emember:org_kp_emember:pom:${project.version}
> > >
> > >
> > >
> > >>http://maven.apache.org/POM/4.0.0";
> > >>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > >>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > >>http://maven.apache.org/maven-v4_0_0.xsd";>
> > >>   4.0.0
> > >>   
> > >>org.emember
> > >>org_emember
> > >>CAN I USE VERSION VARIABLE FROM POM?  
> > >>   
> > >>
> > >>
> > >
> > >
> > >
> > >On 1/10/06, Napoleon Esmundo Ramirez <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >>Hello,
> > >>
> > >>Please try ${project.version}.
> > >>
> > >>Cheers!
> > >>Nap
> > >>
> > >>On 1/11/06, Sanjay Choudhary <[EMAIL PROTECTED]> wrote:
> > >>
> > >>
> > >>>I have parent  pom.xml as below
> > >>>
> > >>>http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
> > >>>http://www.w3.org/2001/XMLSchema-instance";
> > >>>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > >>>http://maven.apache.org/maven-v4_0_0.xsd";>
> > >>>  4.0.0
> > >>>  org.emember
> > >>>  org_emember
> > >>>  pom
> > >>>  1.0-8
> > >>>  Maven Quick Start Archetype
> > >>>  http://maven.apache.org
> > >>>  
> > >>>  
> > >>>
> > >>>
> > >>>
> > >>>Then I have pom.xml for each module
> > >>>http://maven.apache.org/POM/4.0.0";
> > >>>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > >>>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > >>>http://maven.apache.org/maven-v4_0_0.xsd";>
> > >>>   4.0.0
> > >>>   
> > >>>org.emember
> > >>>org_emember
> > >>>CAN I USE VERSION VARIABLE FROM POM?  
> > >>>   
> > >>>   org.kp.emember
> > >>>   kporgcommon
> > >>>   jar
> > >>>   CAN I USE VERSION VARIABLE FROM POM?  
> > >>>
> > >>>in maven 1.0.2 we were able to use ${pom.currentVersion} but in maven
> > >>>
> > >>>
> > >>2.0.
> > >>
> > >>
> > >>>${pom.version} doesn't work.  In my build I don't want to update 35
> > >>>pom.xmls.
> > >>>With maven 1.0.2, our scripts update parent pom and that was
> available
> > >>>
> > >>>
> > >>in
> > >>
> > >>
> > >>>all the child projects.  Please advice how we can use the variable
> from
> > >>>parent POM in M2 or if there is a alternate solution.
> > >>>
> > >>>-Sanjay
> > >>>
> > >>>
> > >>>
> > >>>
> > >>
> > >>
> > >
> > >
> > >
> >
> >
> > >
> > >No virus found in this incoming message.
> > >Checked by AVG Free Edition.
> > >Version: 7.1.371 / Virus Database: 267.14.17/226 - Release Date:
> > 1/10/2006
> > >
> > >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


RE: [m2 dependency plugin] updated dependency not copied

2006-01-10 Thread Brian E. Fox
This is because the dependency plugin looks for the existing file before
copying over. We originally had the ability to force an overwrite but
took it out before release. The reasoning was that artifacts should be
non-mutatable in the repo. Ie if we get v1 copied, we shouldn't copy v1
again. This probably doesn't fly well for snapshots though. We could
possibly look for snapshots and always overwrite them, or maybe try
something else. Anyone have suggestions? There are several new features
in the svn version 1.1, I could get this added before the next release.

The work around is to do a clean first.

-Original Message-
From: Christopher Cobb [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 10, 2006 10:31 AM
To: 'Maven Users List'
Subject: [m2 dependency plugin] updated dependency not copied

P1 depends on P2 which depends upon P3.  P1 uses the dependency plug in
and P2.jar and P3.jar are successfully copied into P1's target tree.

 

Now P3 changes and a new file (different size, different timestamp) is
installed in the local repository.

 

When P1 is built, the new version of P3.jar is not copied over the
existing version.

 

I briefly saw some similar traffic about the dependency plug in but I'm
not sure if covered exactly this case so I thought I would mention it.

 

 




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


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



Re: [m2] child-level transitive dependency builds?

2006-01-10 Thread Edwin Punzalan


This is definitely an enhancement request.

Although, I have to say, when you did some changes on P4, you should be 
building it anyway, right? Because you'll need to run the tests, etc. 
and make sure that everything's still fine. 

And when you build P4, you can just type "mvn install" and that would 
update your local repository.  So that when you do try to build P1, mvn 
will get the latest jar in your local repo.


Just my two cents. ^_^



Christopher Cobb wrote:


Is it expected/preferred that (all?) builds are normally be done from the
top level?  It doesn't seem that this works very well for situations where I
have a specific plugin which should only be used for certain children.  Even
if I configure the plugin at the top level, it may not make sense/not work
to invoke it on all the children.  So I have been changing into the
appropriate child directories to invoke some plugins, which leads to also
doing iterative builds in those child directories.



If it is expected that we will occasionally/frequently change into child
project to invoke parts of the build (like I do now), then it seems like
child-level builds should do transitive build dependency resolution.  So if
I am doing a build in P1, and P1 has some dependencies on P4, and something
in P4 has changed, then P4 should also get built/installed when I am
building P1.  It seems like this could be done by adding something like a
 tag within each  for which you would
like build-time transitive dependency resolution.  Or, I suppose it could
also be figured out by navigating to the parent pom and examining the
children.  Then you could figure out which dependencies are actually
"project siblings" and should be "transitively built".



It looks like sometimes/frequently you need to do child-level builds, and
you may want/need dependent "project siblings" to be build when you do so.  




Is there a way to handle this now?  Is this an enhancement request?








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

 



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



Re: [m2] outputDirectory

2006-01-10 Thread Henry Isidro

Rinku wrote:



I don't see an  specified under  element for 
 in the pom descriptor.


http://maven.apache.org/maven-model/maven.html

Not sure if its an 'error of omission' in online docs or if a 
 does (or does not) supports overriding the build > 
outputDirectory? You might want to give it a shot though - I'd be 
interested to know the result as well :-)


TIA,

Rahul

I was thinking in the lines of using profiles in settings.xml or 
profiles.xml where you specify a property which would be used in the 
pom, ie:


- inside profiles.xml (which resides only in the system that is used):

 
   myProfile
   
 c:\test\target
   
 


- inside pom.xml (which is portable):


   ${myoutput}


Regards,
Henry



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



Re: [m2] assembly: How do I set the base directory for creating the zip

2006-01-10 Thread Edwin Punzalan


The assembly plugin by default saves the packages to your 
project.build.directory folder or



 ...
 
   path-here
 ...
You can have assembly plugin use a different setting by setting the 
plugin parameter  to your desired directory



More info about the assembly plugin can be found here: 
http://maven.apache.org/plugins/maven-assembly-plugin/introduction.html





[EMAIL PROTECTED] wrote:


How can I set the base directory from which the zip file should be created when 
using the assembly plugin?

My descriptor looks like:


   
   zip
   
   
   
   target/mhave
   
   xdocs/**
   
   
   


My plugin config looks like:

   
   
   org.apache.maven.plugins
   maven-assembly-plugin
   
   
   
src/main/assembly/mhave-commons-assembly.xml
   
   target/assembly/work
   target/releases/
   
   

   

I want to use "target/mhave" as base directory for the zip archive.

Chris



 



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



Re: [m2] outputDirectory

2006-01-10 Thread Rinku


Yep, that would address a specific scenario where Compiler plugin is 
being invoked.


But, what happens if user wants the  set for more than 
just the compiler plugin ? ;-)


My understanding from M1 was that all the plugins derived the build 
output directory value from 'maven.build.dir' property - How does this 
work with M2 ? Any idea?


Cheers,

Rahul

Napoleon Esmundo Ramirez wrote:

Hello,

According to the schema (http://maven.apache.org/maven-v4_0_0.xsd),
 is indeed not defined in the  section.  But I
think, by configuring the compiler plugin, you can set the path in 
under the  section of .

Cheers!
Nap


On 1/11/06, Rinku <[EMAIL PROTECTED]> wrote:
  

I don't see an  specified under  element for
 in the pom descriptor.

http://maven.apache.org/maven-model/maven.html

Not sure if its an 'error of omission' in online docs or if a 
does (or does not) supports overriding the build > outputDirectory? You
might want to give it a shot though - I'd be interested to know the
result as well :-)

TIA,

Rahul



Henry Isidro wrote:


Dmitry Beransky wrote:

  

Hi,

I'm trying to migrate for the first time one of my projects to
Maven2.  In Maven 1, I used to have the following line in the user
level configuration file:

   maven.build.dir=c:/temp/maven/${pom.artifactId}

this was for Windows-based workstations; on a server, the build
directory would be set to a different pattern.

How do I achieve a similar effect with Maven 2?

Please note that I don't want to specify the output directory inside
a pom file, as this directory may changed with the system on which
the project is compiled.

Thanks
Dmitry


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




Have you tried using profiles?

  

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


Regards,
Henry

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


  

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





  



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



Re: [m2] outputDirectory

2006-01-10 Thread Napoleon Esmundo Ramirez
Hello,

According to the schema (http://maven.apache.org/maven-v4_0_0.xsd),
 is indeed not defined in the  section.  But I
think, by configuring the compiler plugin, you can set the path in 
under the  section of .

Cheers!
Nap


On 1/11/06, Rinku <[EMAIL PROTECTED]> wrote:
>
>
> I don't see an  specified under  element for
>  in the pom descriptor.
>
> http://maven.apache.org/maven-model/maven.html
>
> Not sure if its an 'error of omission' in online docs or if a 
> does (or does not) supports overriding the build > outputDirectory? You
> might want to give it a shot though - I'd be interested to know the
> result as well :-)
>
> TIA,
>
> Rahul
>
>
>
> Henry Isidro wrote:
> > Dmitry Beransky wrote:
> >
> >> Hi,
> >>
> >> I'm trying to migrate for the first time one of my projects to
> >> Maven2.  In Maven 1, I used to have the following line in the user
> >> level configuration file:
> >>
> >>maven.build.dir=c:/temp/maven/${pom.artifactId}
> >>
> >> this was for Windows-based workstations; on a server, the build
> >> directory would be set to a different pattern.
> >>
> >> How do I achieve a similar effect with Maven 2?
> >>
> >> Please note that I don't want to specify the output directory inside
> >> a pom file, as this directory may changed with the system on which
> >> the project is compiled.
> >>
> >> Thanks
> >> Dmitry
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> > Have you tried using profiles?
> >
> http://maven.apache.org/guides/introduction/introduction-to-profiles.html
> >
> > Regards,
> > Henry
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Need help with ibiblio problems

2006-01-10 Thread Brett Porter
fixed. Not sure why it was working for other jars before with a
leading slash, but it is now working for them all.

- Brett

On 1/11/06, Brett Porter <[EMAIL PROTECTED]> wrote:
> That's quite odd. The rule is there, but is not being picked up. I'll
> continue investigating.
>
> - Brett
>
> On 1/11/06, Helck, Christopher <[EMAIL PROTECTED]> wrote:
> > I have issues
> >
> > If I browse to http://www.ibiblio.org/maven/jaxen/jars/ I can see my jar
> > file. If I click on it I get a 404 error. If I click the other jar files
> > on the page they seem ok.
> >
> > I'm not sure which jaxen file you special cased.
> >
> > Thanks,
> > Christopher
> >
> > -Original Message-
> > From: Brett Porter [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, January 10, 2006 4:51 PM
> > To: Maven Users List
> > Subject: Re: Need help with ibiblio problems
> >
> >
> > The changes should be transparent. jaxen was one of the JARs I had
> > special cased, but it was for a version of 1.0-FCS.
> >
> > This should be fixed now. Please let us know if there are any other
> > issues.
> >
> > - Brett
> >
> >
> > On 1/11/06, Helck, Christopher <[EMAIL PROTECTED]> wrote:
> > > What's happened to ibiblio/maven? Maven is unable to download
> > > jaxen-1.0-FCS-full.jar. Yet when I browse to the ibiblio it seems to
> > > be there and other jars download ok.
> > >
> > > I gather there is a restructuring of ibiblio going on for maven 2. Is
> > > this the issue? Is there a description of the changes anywhere?
> > >
> > > Thanks,
> > > C. Helck
> > >
> > >
> > > Thank you for being part of it.
> > >
> > > The information contained in this e-mail is confidential. This e-mail
> > > is intended only for the stated addressee.  If you are not an
> > > addressee, you must not disclose, copy, circulate or in any other way
> > > use or rely on the information contained in this e-mail. if you have
> > > received this e-mail in error, please inform us immediately and delete
> >
> > > it and all copies from your system.
> > >
> > > EBS Dealing Resources International Limited. Registered address: 10
> > > Paternoster Square, London EC4M 7DY, United Kingdom. Registered number
> >
> > > 2669861.
> > >
> > > EBS Dealing Resources, Inc, registered in Delaware. Address: 535
> > > Madison Avenue, 24th Floor, New York, NY 10022, USA, and One upper
> > > Pond road, Building F - Floor 3, Parsippany, NJ 07054, USA.
> > >
> > > EBS Dealing Resources Japan Limited, a Japanese Corporation. Address:
> > > Asteer Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku,  Tokyo
> > > 104-0033, Japan.
> > >
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

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



Re: [m2] outputDirectory

2006-01-10 Thread Rinku


I don't see an  specified under  element for 
 in the pom descriptor.


http://maven.apache.org/maven-model/maven.html

Not sure if its an 'error of omission' in online docs or if a  
does (or does not) supports overriding the build > outputDirectory? You 
might want to give it a shot though - I'd be interested to know the 
result as well :-)


TIA,

Rahul



Henry Isidro wrote:

Dmitry Beransky wrote:


Hi,

I'm trying to migrate for the first time one of my projects to 
Maven2.  In Maven 1, I used to have the following line in the user 
level configuration file:


   maven.build.dir=c:/temp/maven/${pom.artifactId}

this was for Windows-based workstations; on a server, the build 
directory would be set to a different pattern.


How do I achieve a similar effect with Maven 2?

Please note that I don't want to specify the output directory inside 
a pom file, as this directory may changed with the system on which 
the project is compiled.


Thanks
Dmitry


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



Have you tried using profiles?
http://maven.apache.org/guides/introduction/introduction-to-profiles.html

Regards,
Henry

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





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



Re: [m2] not sure if I am able to connect through my proxy

2006-01-10 Thread Alexandre Poitras
I think it's because you have included http in your host entry. Try "
app-proxy.warnu.net" instead.

On 1/10/06, Mick Knutson <[EMAIL PROTECTED]> wrote:
>
> Here is my settings.xml:
>
>   
> 
> 
>   defaultWamuNetProxy
>   true
>   http
>   *
>   *
>   http://app-proxy.wamu.net
>   8080
>   *.wamu.net
> 
>
>   
>
> Here is the error I get:
> =
> [INFO] Searching repository for plugin with prefix: 'idea'.
> [INFO] artifact org.apache.maven.plugins:maven-idea-plugin: checking for
> updates from central
> [WARNING] repository metadata for: 'artifact
> org.apache.maven.plugins:maven-idea-plugin' could not be retrieved from
> repository: central due to an err
> or: Error transferring file
> [INFO] Repository 'central' will be blacklisted
>
>
> Here is my plugin ref in my parent pom.xml
> ==
> 
> 
>
> 
> org.apache.maven.plugins
> maven-idea-plugin
> 
> yoursos
> 
> 
>
>
>
> Any help to verify the connection? It is the same proxt as my web browser
> and there does not seem to be any issues.
>
>
>
>
> ---
> Thank You
> Mick Knutson
>
> Sr. Java/J2EE Consultant
> BASE logic, inc.
> (415) 648-1804 (S.F., CA)
> http://www.BASELogic.com
>
> Washington Mutual (WAMU) (Emeryville, California)
> ---
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Alexandre Poitras
Québec, Canada


Re: [m2] outputDirectory

2006-01-10 Thread Henry Isidro

Dmitry Beransky wrote:


Hi,

I'm trying to migrate for the first time one of my projects to 
Maven2.  In Maven 1, I used to have the following line in the user 
level configuration file:


   maven.build.dir=c:/temp/maven/${pom.artifactId}

this was for Windows-based workstations; on a server, the build 
directory would be set to a different pattern.


How do I achieve a similar effect with Maven 2?

Please note that I don't want to specify the output directory inside a 
pom file, as this directory may changed with the system on which the 
project is compiled.


Thanks
Dmitry


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



Have you tried using profiles?
http://maven.apache.org/guides/introduction/introduction-to-profiles.html

Regards,
Henry

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



[m2] outputDirectory

2006-01-10 Thread Dmitry Beransky

Hi,

I'm trying to migrate for the first time one of my projects to Maven2.  In 
Maven 1, I used to have the following line in the user level configuration 
file:


   maven.build.dir=c:/temp/maven/${pom.artifactId}

this was for Windows-based workstations; on a server, the build directory 
would be set to a different pattern.


How do I achieve a similar effect with Maven 2?

Please note that I don't want to specify the output directory inside a pom 
file, as this directory may changed with the system on which the project is 
compiled.


Thanks
Dmitry


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



Re: [m2] Possible to create a zip/tar that includes my ear, and other misc resources

2006-01-10 Thread Brett Porter
By set of resources, you mean the ear + some more?

You can either have another project that depends on the ear and
includes the resources, or do it from within the ear project itself.

- Brett

On 1/11/06, Mick Knutson <[EMAIL PROTECTED]> wrote:
> This looks like what I want, but I have a question about my project:
> I am using modules to break up my project, but my final product is an ear.
>
> Now what I want to use this assembly plugin for is to add a set of resources
> to a tar file. Where would I put this directory of resources as they are not
> really part of any of my modules?
>
>
> ---
> Thank You
> Mick Knutson
>
> Sr. Java/J2EE Consultant
> BASE logic, inc.
> (415) 648-1804 (S.F., CA)
> http://www.BASELogic.com
>
> Washington Mutual (WAMU) (Emeryville, California)
> ---
>
>
>
>
>
> >From: dan tran <[EMAIL PROTECTED]>
> >Reply-To: "Maven Users List" 
> >To: Maven Users List 
> >Subject: Re: [m2] Possible to create a zip/tar that includes my ear, and
> >other misc resources
> >Date: Tue, 10 Jan 2006 12:55:47 -0800
> >
> >maven-assembly-plugin
> >
> >-D
> >
> >
> >On 1/10/06, Mick Knutson <[EMAIL PROTECTED]> wrote:
> > >
> > > Is it Possible to create a zip/tar that includes my ear, and other misc
> > > resources?
> > >
> > >
> > >
> > > ---
> > > Thank You
> > > Mick Knutson
> > >
> > > Sr. Java/J2EE Consultant
> > > BASE logic, inc.
> > > (415) 648-1804 (S.F., CA)
> > > http://www.BASELogic.com
> > >
> > > Washington Mutual (WAMU) (Emeryville, California)
> > > ---
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: [m2] Maven2 building Eclipse plugins, features, and update si tes

2006-01-10 Thread Treloar, Barrie (SAPOL)
> Eclipse does provide some ant tasks, but they require that Eclipse is
> running.  They have a way to run in headless mode, but you need to use a
> script that invokes Eclipse, and then tell Eclipse to run its antRunner
> process.  As far as I can tell, there is no way to have ant run these
> Eclipse tasks without running ant from Eclipse (which we clearly can't
> do if we need to run ant from maven).
> 
> Since I got no other replies, I assume that somehow, no one has done
> this before, so I need to dig into it.  I have gotten to the following
> stopping point, and I need help.  An Eclipse plugin consists of a JAR
> that contains 3 classes of items:
> 
> 1. Another jar with the actual code.
> 2. The plugin.xml file
> 3. 0 or more JAR dependencies for the plugin.
> 
> Maven builds item 1 without a problem, and we've hacked up a Mojo to
> update item 2.  Then we have a separate ant goal that runs from Maven to
> copy all 3 to the target directory, then zip it all up.  The problem is
> that we need to add a second artifact to the build once this ant step is
> complete, because we need both the original jar (for other project build
> dependencies) and the new jar (for the later Eclipse feature build that
> I need to write).

Are you saying that you have gotten Maven to compile the eclipse plugin as
well.  Or are you still using Ant Tasks?

In the last few weeks I've seen a few requests for Maven/Eclipse plugin or
RCP support.

Any chance you are able to share the work you have started?

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



Re: [m2] APT question

2006-01-10 Thread Brett Porter
That will make it bold. It's actually not part of the spec, but I
added it anyway in confluence style. With the snapshot you can do:

|| header 1 || header 2 || header 3 ||

I'll add it to the docs.

- Brett

On 1/11/06, Allan Ramirez <[EMAIL PROTECTED]> wrote:
> Hi John,
>
> I'm not  sure if this is what you are looking for.
>
> Try adding <> on your table.
>
> *+--  *--+
> <>| <> | <>
> *+---*--+
> cell1   | cell1 |  cell3
> *+---*--+
>
> -allan
>
> John Wells wrote:
>
> >How do I get the top line of a table to be "headers" for that column
> >(for example, when explaining what the goals of a plugin are?)
> >
> >I can't seem to figure out from the APT document how this is done???
> >
> >John Wells (Aziz)
> >[EMAIL PROTECTED]
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: [m2] Using variables from parent pom.xml - like version etc.

2006-01-10 Thread Allan Ramirez
Oops. Sorry, I thought you were referring to the versions of the 
dependency.. Please disregard my answer. :)


Allan Ramirez wrote:


Hi there,

Try to use the  element.

http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html 



Regards,
-allan

Sanjay Choudhary wrote:


I tried using ${project.version} but got the following error


[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: POM '
org.emember:org_kp_eme
mber' not found in repository:

 org.kp.emember:org_kp_emember:pom:${project.version}

 


http://maven.apache.org/POM/4.0.0";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  4.0.0
  
org.emember
org_emember
CAN I USE VERSION VARIABLE FROM POM?  
  
  





On 1/10/06, Napoleon Esmundo Ramirez <[EMAIL PROTECTED]> wrote:
 


Hello,

Please try ${project.version}.

Cheers!
Nap

On 1/11/06, Sanjay Choudhary <[EMAIL PROTECTED]> wrote:
  


I have parent  pom.xml as below

http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
 4.0.0
 org.emember
 org_emember
 pom
 1.0-8
 Maven Quick Start Archetype
 http://maven.apache.org
 
 



Then I have pom.xml for each module
http://maven.apache.org/POM/4.0.0";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  4.0.0
  
org.emember
org_emember
CAN I USE VERSION VARIABLE FROM POM?  
  
  org.kp.emember
  kporgcommon
  jar
  CAN I USE VERSION VARIABLE FROM POM?  

in maven 1.0.2 we were able to use ${pom.currentVersion} but in maven



2.0.
  


${pom.version} doesn't work.  In my build I don't want to update 35
pom.xmls.
With maven 1.0.2, our scripts update parent pom and that was available



in
  

all the child projects.  Please advice how we can use the variable 
from

parent POM in M2 or if there is a alternate solution.

-Sanjay





  



 




No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.17/226 - Release Date: 
1/10/2006
 





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



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.17/226 - Release Date: 1/10/2006
 



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

Re: [m2] Using variables from parent pom.xml - like version etc.

2006-01-10 Thread Napoleon Esmundo Ramirez
Hello,

I just checked your pom's.  Your parent pom seems to be okay.  But I think
your second pom isn't.  When declaring parent projects in child projects
(modules) you should explicitly define the version. Try setting it with
1.0-8, and let's see what happens.

I hope it works this time. :)

Cheers!
Nap

On 1/11/06, Allan Ramirez <[EMAIL PROTECTED]> wrote:
>
> Hi there,
>
> Try to use the  element.
>
>
> http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
>
> Regards,
> -allan
>
> Sanjay Choudhary wrote:
>
> >I tried using ${project.version} but got the following error
> >
> >
> >[INFO] Trace
> >org.apache.maven.reactor.MavenExecutionException: POM '
> >org.emember:org_kp_eme
> >mber' not found in repository:
> >
> >  org.kp.emember:org_kp_emember:pom:${project.version}
> >
> >
> >
> >>http://maven.apache.org/POM/4.0.0";
> >>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >>http://maven.apache.org/maven-v4_0_0.xsd";>
> >>   4.0.0
> >>   
> >>org.emember
> >>org_emember
> >>CAN I USE VERSION VARIABLE FROM POM?  
> >>   
> >>
> >>
> >
> >
> >
> >On 1/10/06, Napoleon Esmundo Ramirez <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Hello,
> >>
> >>Please try ${project.version}.
> >>
> >>Cheers!
> >>Nap
> >>
> >>On 1/11/06, Sanjay Choudhary <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>>I have parent  pom.xml as below
> >>>
> >>>http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
> >>>http://www.w3.org/2001/XMLSchema-instance";
> >>>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >>>http://maven.apache.org/maven-v4_0_0.xsd";>
> >>>  4.0.0
> >>>  org.emember
> >>>  org_emember
> >>>  pom
> >>>  1.0-8
> >>>  Maven Quick Start Archetype
> >>>  http://maven.apache.org
> >>>  
> >>>  
> >>>
> >>>
> >>>
> >>>Then I have pom.xml for each module
> >>>http://maven.apache.org/POM/4.0.0";
> >>>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >>>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >>>http://maven.apache.org/maven-v4_0_0.xsd";>
> >>>   4.0.0
> >>>   
> >>>org.emember
> >>>org_emember
> >>>CAN I USE VERSION VARIABLE FROM POM?  
> >>>   
> >>>   org.kp.emember
> >>>   kporgcommon
> >>>   jar
> >>>   CAN I USE VERSION VARIABLE FROM POM?  
> >>>
> >>>in maven 1.0.2 we were able to use ${pom.currentVersion} but in maven
> >>>
> >>>
> >>2.0.
> >>
> >>
> >>>${pom.version} doesn't work.  In my build I don't want to update 35
> >>>pom.xmls.
> >>>With maven 1.0.2, our scripts update parent pom and that was available
> >>>
> >>>
> >>in
> >>
> >>
> >>>all the child projects.  Please advice how we can use the variable from
> >>>parent POM in M2 or if there is a alternate solution.
> >>>
> >>>-Sanjay
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >
> >
> >
> >
> >
> >No virus found in this incoming message.
> >Checked by AVG Free Edition.
> >Version: 7.1.371 / Virus Database: 267.14.17/226 - Release Date:
> 1/10/2006
> >
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [m2] Using variables from parent pom.xml - like version etc.

2006-01-10 Thread Allan Ramirez

Hi there,

Try to use the  element.

http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

Regards,
-allan

Sanjay Choudhary wrote:


I tried using ${project.version} but got the following error


[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: POM '
org.emember:org_kp_eme
mber' not found in repository:

 org.kp.emember:org_kp_emember:pom:${project.version}

 


http://maven.apache.org/POM/4.0.0";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  4.0.0
  
org.emember
org_emember
CAN I USE VERSION VARIABLE FROM POM?  
  
   





On 1/10/06, Napoleon Esmundo Ramirez <[EMAIL PROTECTED]> wrote:
 


Hello,

Please try ${project.version}.

Cheers!
Nap

On 1/11/06, Sanjay Choudhary <[EMAIL PROTECTED]> wrote:
   


I have parent  pom.xml as below

http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
 4.0.0
 org.emember
 org_emember
 pom
 1.0-8
 Maven Quick Start Archetype
 http://maven.apache.org
 
 



Then I have pom.xml for each module
http://maven.apache.org/POM/4.0.0";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  4.0.0
  
org.emember
org_emember
CAN I USE VERSION VARIABLE FROM POM?  
  
  org.kp.emember
  kporgcommon
  jar
  CAN I USE VERSION VARIABLE FROM POM?  

in maven 1.0.2 we were able to use ${pom.currentVersion} but in maven
 


2.0.
   


${pom.version} doesn't work.  In my build I don't want to update 35
pom.xmls.
With maven 1.0.2, our scripts update parent pom and that was available
 


in
   


all the child projects.  Please advice how we can use the variable from
parent POM in M2 or if there is a alternate solution.

-Sanjay


 

   



 




No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.17/226 - Release Date: 1/10/2006
 



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

Re: Passing dependencies to Maven 2.0 plugin

2006-01-10 Thread Napoleon Esmundo Ramirez
Hello,

The dependencies of a project may be passed to a plugin by declaring it as
an annotation.  For example, in your case, you could do:

/**
 * The project dependencies.
 * @parameter expression="${project.dependencies}"

 */
private List dependencies;



The List will hold the project's dependencies (class Dependency) from which
you can access the scope using Dependency.getScope().

I hope it helps.


Cheers!
Nap

On 1/11/06, Steve Kuo <[EMAIL PROTECTED] > wrote:
>
> I have a need to iterate through the dependencies in pom.xml.  I created
> a plugin and tried to passed ${dependencies} in pom.xml as a parameter
> to the plugin.  Unfortunately, ${dependencies} is passed in as a String
> instead of a List of objects.  How does one do that?  Also, is there a
> way to print out the scope for each dependency?  I like to use it to
> remove jars used only in testing.
>
> Below is a portion of pom.xml and the mvn package run.
>
> {pom.xml}
>
>   
> ehcomponents
> maven-classpath-plugin
> 
>   ${dependencies}
> 
> 
>   
> package
> 
>   classpath
> 
>   
> 
>   
>
> {output of mvn package}
>
> [INFO] [jar:jar]
> [INFO] Building jar: /home/skuo/sandbox/mvnApp/mvnJar/target/mvnJar-1.0-
> SNAPSHOT.jar
> [INFO] [classpath:classpath {execution: default}]
> [INFO] Generating classpath.sh
> [INFO] dependencies: [Dependency {groupId=junit, artifactId=junit,
> version=3.8.1, type=jar}, Dependency {groupId=mx4j, artifactId=mx4j,
> version=3.0.1, type=jar}]
>
>
> --
> Steve Kuo
> eHarmony
> 300 N. Lake Ave., Suite 
> Pasadena, CA 91101
> [EMAIL PROTECTED]
> 626.795.4814, x-1021
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [m2] Using variables from parent pom.xml - like version etc.

2006-01-10 Thread Sanjay Choudhary
I tried using ${project.version} but got the following error


[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: POM '
org.emember:org_kp_eme
mber' not found in repository:

  org.kp.emember:org_kp_emember:pom:${project.version}

> http://maven.apache.org/POM/4.0.0";
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>4.0.0
>
> org.emember
> org_emember
> CAN I USE VERSION VARIABLE FROM POM?  
>



On 1/10/06, Napoleon Esmundo Ramirez <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> Please try ${project.version}.
>
> Cheers!
> Nap
>
> On 1/11/06, Sanjay Choudhary <[EMAIL PROTECTED]> wrote:
> >
> > I have parent  pom.xml as below
> >
> > http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
> > http://www.w3.org/2001/XMLSchema-instance";
> >   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd";>
> >   4.0.0
> >   org.emember
> >   org_emember
> >   pom
> >   1.0-8
> >   Maven Quick Start Archetype
> >   http://maven.apache.org
> >   
> >   
> > 
> >
> >
> > Then I have pom.xml for each module
> > http://maven.apache.org/POM/4.0.0";
> >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd";>
> >4.0.0
> >
> > org.emember
> > org_emember
> > CAN I USE VERSION VARIABLE FROM POM?  
> >
> >org.kp.emember
> >kporgcommon
> >jar
> >CAN I USE VERSION VARIABLE FROM POM?  
> >
> > in maven 1.0.2 we were able to use ${pom.currentVersion} but in maven
> 2.0.
> > ${pom.version} doesn't work.  In my build I don't want to update 35
> > pom.xmls.
> > With maven 1.0.2, our scripts update parent pom and that was available
> in
> > all the child projects.  Please advice how we can use the variable from
> > parent POM in M2 or if there is a alternate solution.
> >
> > -Sanjay
> >
> >
>
>


Re: [m2] Using variables from parent pom.xml - like version etc.

2006-01-10 Thread Napoleon Esmundo Ramirez
Hello,

Please try ${project.version}.

Cheers!
Nap

On 1/11/06, Sanjay Choudhary <[EMAIL PROTECTED]> wrote:
>
> I have parent  pom.xml as below
>
> http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance";
>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>   4.0.0
>   org.emember
>   org_emember
>   pom
>   1.0-8
>   Maven Quick Start Archetype
>   http://maven.apache.org
>   
>   
> 
>
>
> Then I have pom.xml for each module
> http://maven.apache.org/POM/4.0.0";
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>4.0.0
>
> org.emember
> org_emember
> CAN I USE VERSION VARIABLE FROM POM?  
>
>org.kp.emember
>kporgcommon
>jar
>CAN I USE VERSION VARIABLE FROM POM?  
>
> in maven 1.0.2 we were able to use ${pom.currentVersion} but in maven 2.0.
> ${pom.version} doesn't work.  In my build I don't want to update 35
> pom.xmls.
> With maven 1.0.2, our scripts update parent pom and that was available in
> all the child projects.  Please advice how we can use the variable from
> parent POM in M2 or if there is a alternate solution.
>
> -Sanjay
>
>


[m2] Using variables from parent pom.xml - like version etc.

2006-01-10 Thread Sanjay Choudhary
I have parent  pom.xml as below

http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  4.0.0
  org.emember
  org_emember
  pom
  1.0-8
  Maven Quick Start Archetype
  http://maven.apache.org
  
  



Then I have pom.xml for each module
http://maven.apache.org/POM/4.0.0";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
   4.0.0
   
 org.emember
 org_emember
 CAN I USE VERSION VARIABLE FROM POM?  
   
   org.kp.emember
   kporgcommon
   jar
   CAN I USE VERSION VARIABLE FROM POM?  

in maven 1.0.2 we were able to use ${pom.currentVersion} but in maven 2.0.
${pom.version} doesn't work.  In my build I don't want to update 35 pom.xmls.
With maven 1.0.2, our scripts update parent pom and that was available in
all the child projects.  Please advice how we can use the variable from
parent POM in M2 or if there is a alternate solution.

-Sanjay


Passing dependencies to Maven 2.0 plugin

2006-01-10 Thread Steve Kuo
I have a need to iterate through the dependencies in pom.xml.  I created
a plugin and tried to passed ${dependencies} in pom.xml as a parameter
to the plugin.  Unfortunately, ${dependencies} is passed in as a String
instead of a List of objects.  How does one do that?  Also, is there a
way to print out the scope for each dependency?  I like to use it to
remove jars used only in testing.

Below is a portion of pom.xml and the mvn package run.

{pom.xml}

  
ehcomponents
maven-classpath-plugin

  ${dependencies}


  
package

  classpath

  

  

{output of mvn package}

[INFO] [jar:jar]
[INFO] Building jar: /home/skuo/sandbox/mvnApp/mvnJar/target/mvnJar-1.0-
SNAPSHOT.jar
[INFO] [classpath:classpath {execution: default}]
[INFO] Generating classpath.sh
[INFO] dependencies: [Dependency {groupId=junit, artifactId=junit,
version=3.8.1, type=jar}, Dependency {groupId=mx4j, artifactId=mx4j,
version=3.0.1, type=jar}]


-- 
Steve Kuo
eHarmony
300 N. Lake Ave., Suite 
Pasadena, CA 91101
[EMAIL PROTECTED]
626.795.4814, x-1021


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



Re: [m2] APT question

2006-01-10 Thread Allan Ramirez

Hi John,

I'm not  sure if this is what you are looking for.

Try adding <> on your table.

*+--  *--+
<>| <> | <>
*+---*--+
cell1   | cell1 |  cell3
*+---*--+

-allan

John Wells wrote:


How do I get the top line of a table to be "headers" for that column
(for example, when explaining what the goals of a plugin are?)

I can't seem to figure out from the APT document how this is done???

John Wells (Aziz)
[EMAIL PROTECTED]

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



 



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

Re: Not possible to add multiple test resources

2006-01-10 Thread Allan Ramirez

Here is the link for the model

http://maven.apache.org/maven-model/maven.html

-allan

Bengt-Erik Fröberg wrote:


Hi again!
I’ve developed a taste for this mailing list…

Is it really true that this is not possible!?


  src/test/resources
  src/main/webapp/WEB-INF


M2 chokes on it... kinda' takes the greatness out of XML, don't you think?

I need to add another directory to the test classpath how do I do?
(Beginning to REALLY look forward to a comprehensive Maven2 book)

Regards,

/B-E




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



 



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

Re: [m2] junit-test-reports with surefire-report:report

2006-01-10 Thread Brett Porter
The regular surefire text reports are fine. The problem is related to
generating HTML reports which has not received the attention it
deserves.

- Brett

On 1/11/06, Jens Zastrow <[EMAIL PROTECTED]> wrote:
> Some idea when this fill be fixed?
> Running unit-tests as simple as possible - like >mvn test - is an important 
> aspect why i use maven1/2,
> so its a little bit difficult to understand why even such elementary things 
> like the test-report-generation does not
> work without "hacking" maven 2.0.1. :-(
>
> - Jens
>
> -Original Message-
> From: Brett Porter [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 10, 2006 2:37 PM
> To: Maven Users List
> Subject: Re: [m2] junit-test-reports with surefire-report:report
>
> It's actually a bug in hte surefire report plugin, which has already been 
> filed. It should be setting this variable automatically.
>
> - Brett
>
> On 1/11/06, Piotr Bzdyl <[EMAIL PROTECTED]> wrote:
> > Hello,
> > > [INFO]
> > > 
> > > 
> > > [ERROR] BUILD ERROR
> > > [INFO]
> > > 
> > > 
> > > [INFO] There are some test failure.
> > >
> > > Because of some failed junit-tests the whole maven build fails,
> > > withour generating any Site or report as should be!?
> > > Only if there are no junit-errors/failures the site and report is 
> > > generated.
> > >
> > > I guess that i´am doing something definitly wrong
> > > Help needed.
> > >
> > Check:
> > http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html,
> > parameter |testFailureIgnore.
> >
> > Best regards,
> > Piotrek
> > |
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: [m2] junit-test-reports with surefire-report:report

2006-01-10 Thread Brett Porter
http://jira.codehaus.org/browse/MOJO-107

On 1/11/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
> Brett,
>
> I failed to find the issue in JIRA. Which one is it ?
>
> Thx,
> --
> Yann
>
> 2006/1/10, Jens Zastrow <[EMAIL PROTECTED]>:
> >
> > Some idea when this fill be fixed?
> > Running unit-tests as simple as possible - like >mvn test - is an
> > important aspect why i use maven1/2,
> > so its a little bit difficult to understand why even such elementary
> > things like the test-report-generation does not
> > work without "hacking" maven 2.0.1. :-(
> >
> > - Jens
> >
> > -Original Message-
> > From: Brett Porter [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, January 10, 2006 2:37 PM
> > To: Maven Users List
> > Subject: Re: [m2] junit-test-reports with surefire-report:report
> >
> > It's actually a bug in hte surefire report plugin, which has already been
> > filed. It should be setting this variable automatically.
> >
> > - Brett
> >
> > On 1/11/06, Piotr Bzdyl <[EMAIL PROTECTED]> wrote:
> > > Hello,
> > > > [INFO]
> > > > 
> > > > 
> > > > [ERROR] BUILD ERROR
> > > > [INFO]
> > > > 
> > > > 
> > > > [INFO] There are some test failure.
> > > >
> > > > Because of some failed junit-tests the whole maven build fails,
> > > > withour generating any Site or report as should be!?
> > > > Only if there are no junit-errors/failures the site and report is
> > generated.
> > > >
> > > > I guess that i´am doing something definitly wrong
> > > > Help needed.
> > > >
> > > Check:
> > > http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html,
> > > parameter |testFailureIgnore.
> > >
> > > Best regards,
> > > Piotrek
> > > |
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>

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



Re: Tomcat plugin?

2006-01-10 Thread Brett Porter
A full release, with active developers. Mark is actually active, but
on holidays. I'm meeting with him in Sydney this week :)

BTW, if you are interested working with Mark to move it to the Tomcat
itself, that would be great to give it a wider community of people
able to look after it. I think plugins will always be most successful
with the projects they relate to.

- Brett

On 1/11/06, Yoav Shapira <[EMAIL PROTECTED]> wrote:
> Hi Vincent,
> Great, thank you ;)
>
> What would it take for the MOJO one to get out of the sandbox?  Or is
> that a question better asked on the MOJO list?
>
> Yoav
>
> On 1/10/06, Vincent Massol <[EMAIL PROTECTED]> wrote:
> > Hi Yoav,
> >
> > It's there: http://mojo.codehaus.org/tomcat-maven-plugin/. It's on the mojo
> > plugin page but in the sandbox section.
> >
> > BTW you could also use the Cargo m2 plugin... ;-)
> > (http://cargo.codehaus.org/Maven2+plugin)
> >
> > -Vincent
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> > > Yoav Shapira
> > > Sent: mardi 10 janvier 2006 16:26
> > > To: users@maven.apache.org
> > > Subject: Tomcat plugin?
> > >
> > > Howdy,
> > > I can't seem to find Mike Hobson's Tomcat plugin for M2 ;(  It's on
> > > the plugin matrix at
> > > http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Matrix but no link
> > > there, and I see the relevant JIRA issue (MOJO-23,
> > > http://jira.codehaus.org/browse/MOJO-23) where the patches are marked
> > > as applied and the issue closed.  But I don't see a link on the maven
> > > plugins page (http://maven.apache.org/plugins/index.html) or on the
> > > mojo plugin page (http://mojo.codehaus.org/).  What am I missing?
> > > Thanks ;)
> > >
> > > --
> > > Yoav Shapira
> > > System Design and Management Fellow
> > > MIT Sloan School of Management
> > > Cambridge, MA, USA
> > > [EMAIL PROTECTED] / www.yoavshapira.com
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> >
> >
> > ___
> > Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs 
> > exceptionnels pour appeler la France et l'international.
> > Téléchargez sur http://fr.messenger.yahoo.com
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Yoav Shapira
> System Design and Management Fellow
> MIT Sloan School of Management
> Cambridge, MA, USA
> [EMAIL PROTECTED] / www.yoavshapira.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: Need help with ibiblio problems

2006-01-10 Thread Brett Porter
That's quite odd. The rule is there, but is not being picked up. I'll
continue investigating.

- Brett

On 1/11/06, Helck, Christopher <[EMAIL PROTECTED]> wrote:
> I have issues
>
> If I browse to http://www.ibiblio.org/maven/jaxen/jars/ I can see my jar
> file. If I click on it I get a 404 error. If I click the other jar files
> on the page they seem ok.
>
> I'm not sure which jaxen file you special cased.
>
> Thanks,
> Christopher
>
> -Original Message-
> From: Brett Porter [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 10, 2006 4:51 PM
> To: Maven Users List
> Subject: Re: Need help with ibiblio problems
>
>
> The changes should be transparent. jaxen was one of the JARs I had
> special cased, but it was for a version of 1.0-FCS.
>
> This should be fixed now. Please let us know if there are any other
> issues.
>
> - Brett
>
>
> On 1/11/06, Helck, Christopher <[EMAIL PROTECTED]> wrote:
> > What's happened to ibiblio/maven? Maven is unable to download
> > jaxen-1.0-FCS-full.jar. Yet when I browse to the ibiblio it seems to
> > be there and other jars download ok.
> >
> > I gather there is a restructuring of ibiblio going on for maven 2. Is
> > this the issue? Is there a description of the changes anywhere?
> >
> > Thanks,
> > C. Helck
> >
> >
> > Thank you for being part of it.
> >
> > The information contained in this e-mail is confidential. This e-mail
> > is intended only for the stated addressee.  If you are not an
> > addressee, you must not disclose, copy, circulate or in any other way
> > use or rely on the information contained in this e-mail. if you have
> > received this e-mail in error, please inform us immediately and delete
>
> > it and all copies from your system.
> >
> > EBS Dealing Resources International Limited. Registered address: 10
> > Paternoster Square, London EC4M 7DY, United Kingdom. Registered number
>
> > 2669861.
> >
> > EBS Dealing Resources, Inc, registered in Delaware. Address: 535
> > Madison Avenue, 24th Floor, New York, NY 10022, USA, and One upper
> > Pond road, Building F - Floor 3, Parsippany, NJ 07054, USA.
> >
> > EBS Dealing Resources Japan Limited, a Japanese Corporation. Address:
> > Asteer Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku,  Tokyo
> > 104-0033, Japan.
> >
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Overwriting a goal in subproject

2006-01-10 Thread Henry Isidro

Dixit, Sandeep (ProSource Solutions) wrote:


How would that allow selective on and off? Wouldn't it set one value for
all (parent and child projects)?

Thanks,
Sandeep

 

Yup, sorry about that, I didn't fully understand your question. Have you 
tried overriding the property in the child pom?


- Henry

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



Re: accessing environment variable in settings.xml or pom.xml

2006-01-10 Thread John Casey
Sorry to top-reply, but I'd like to address the original question. Maven 
2.0.1 and later should support OS-shell environment variable references 
from settings.xml and pom.xml using the following syntax:


If you would use "echo $HOME" in your shell script, you would use 
${env.HOME} in your pom.xml to reference the same value.


Cheers,

John

Tom Joad wrote:

Hello,
I would like to know if it is possible to access unix or windows environment
variables
in settings.xml or pom.xml and how to do it.
regards,

Tom



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



Re: [m2] jetty6 doesn't get downloaded

2006-01-10 Thread Brett Porter
pluginManagement is applied to plugins already found: as part of the
lifecycle, or in another build > plugins element. build > plugins
downloads and introduces the plugin and its dependencies.

For a prefix (jetty6) to be known, one of the following must be true:
a) the plugin is in one of th eplugin groups in settings.xml, which
defaults to o.a.m.plugins and o.c.mojo
b) the plugin must be introduced, either by the lifecycle or build > plugins

- Brett

On 1/11/06, Rinku <[EMAIL PROTECTED]> wrote:
>
> I think it was specified in  when I looked at it this
> morning.
>
> Curious now - how we could avoid changes to settings.xml ? Brett, can
> you please explain a bit more how this (plug-in resolution) works
> without changes to settings.xml, and what is/are the situations suited
> to make changes to settings.xml?
>
> Thanks!
>
> Rahul
>
>
> Brett Porter wrote:
> > The plugin group isn't required if you have it in the POM. I am using
> > the Jetty6 plugin without the plugin repository or settings.xml
> > changes.
> >
> > Where is the plugin specified in your build? Is it in  or
> >  ?
> >
> > - Brett
> >
> > On 1/11/06, Srepfler Srgjan <[EMAIL PROTECTED]> wrote:
> >
> >> Srepfler Srgjan wrote:
> >>
> >>
> >>> I've resolved the issue by adding to the settings.xml:
> >>> 
> >>> 
> >>>  org.mortbay.jetty
> >>> 
> >>> 
> >>> thanks to rinku on irc
> >>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >> Isn't this kind of behavior a bug?
> >> |pluginGroups| List of groupIds to search for a plugin when that plugin
> >> groupId is not explicitly provided.
> >> as I explicitly stated the groupId I see no reason why I had to specify
> >> this element, what do you guys think?
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: [m2] Maven2 building Eclipse plugins, features, and update sites

2006-01-10 Thread Brett Porter
Hi Jim,

Sorry I hadn't answered your other Q's yet, but this is what I meant.
There is an assembly:attached goal in the next release of the assembly
plugin that will enable you to do what javadoc and sources do. In the
mean time, you need to use assembly:assembly install to generate and
install both, or use a custom plugin that just creates the one.

The name can be changed with finalName configuration to the assembly
plugin. Note it only impacts the target/ generated file - it is still
installed in the repository with --
as the name.

- Brett

On 1/11/06, Jim Babka <[EMAIL PROTECTED]> wrote:
> So, I've been told separately that it is possible to have a project
> generate multiple artifacts, because the sources and javadoc plugins do
> just that.  The questions are (a) are they full artifacts that can be
> depended upon by other projects, and (b) can someone point me at the
> source code that does this?  I see that there's an addAttachedArtifact
> method on MavenProject - is that what I need to use?
>
> Jim Babka
> Senior Software Engineer
> Main: (512) 334 3200
> Direct: (512) 334 3237
> Email: [EMAIL PROTECTED]
>
> Webify Solutions
> Enabling the On Demand Enterprise(tm)
> www.webifysolutions.com
>
> -Original Message-
> From: Jim Babka
> Sent: Monday, January 09, 2006 7:27 PM
> To: Maven Users List
> Subject: RE: [m2] Maven2 building Eclipse plugins, features, and update
> sites
>
> First of all, how do you tell the assembly plugin what name to give to
> the JAR it creates?  Second, how do you get that jar to be an artifact
> that gets put into the repository?
>
> I may be misunderstanding something here, so please bear with me.  I
> believe that the file names of any artifacts generated by a project are
> fixed to be "{artifactId}-{version}", where artifactId and version come
> from the POM file - is this correct?  If so, then the only thing you can
> do to create multiple artifacts is to have different file extensions for
> each - is that correct?  If these are both correct, then you see my
> dilemma - I need the same project (i.e. the same pom.xml) to generate
> two artifacts: a JAR, and a JAR of JARs.
>
> I would love to be mistaken here - am I?
>
> Jim Babka
> Senior Software Engineer
> Main: (512) 334 3200
> Direct: (512) 334 3237
> Email: [EMAIL PROTECTED]
>
> Webify Solutions
> Enabling the On Demand Enterprise(tm)
> www.webifysolutions.com
>
> -Original Message-
> From: Brett Porter [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 09, 2006 7:05 PM
> To: Maven Users List
> Subject: Re: [m2] Maven2 building Eclipse plugins, features, and update
> sites
>
> Those docs definitely look half-done. The latter parts are just pastes
> of the defaults. Documentation is high on the list for the next
> assembly plugin release.
>
> The assembly produced would have to have a different name to the
> original JAR which you are packaging up. The version would be the
> same, the name would just be different.
>
> However, you can create another plugin that does the custom behaviour
> and only produces one jar. I think that's what the felix osgi plugin
> does.
>
> - Brett
>
> On 1/10/06, Jim Babka <[EMAIL PROTECTED]> wrote:
> > Thanks for getting back to me.
> >
> > I looked at assemblies, but quickly got stuck there as well.  What
> does
> > the assembly plugin do about a version number?  Does it use the
> version
> > number for the project?  Since that is the same as the version number
> > for the JAR, I would have do come up with a different name, right?
> But
> > I can't do that because the name is fixed by the project I'm in,
> > correct?  So how can it possibly generate a second artifact with the
> > same name from within the same project?
> >
> > Is there any better documentation on the assembly plugin than
> > http://maven.apache.org/guides/mini/guide-assemblies.html?  The
> examples
> > there (which is pretty much all there is right now) show  and
> >  tags, but I can't see how the former would have
> > anything to do with the file generated (since there are multiple), and
> > the latter makes it appear as though assemblies do not generate
> > artifacts (since there's only one place for an artifact to go - the
> > repository).
> >
> > Jim Babka
> > Senior Software Engineer
> > Main: (512) 334 3200
> > Direct: (512) 334 3237
> > Email: [EMAIL PROTECTED]
> >
> > Webify Solutions
> > Enabling the On Demand Enterprise(tm)
> > www.webifysolutions.com
> >
> > -Original Message-
> > From: Brett Porter [mailto:[EMAIL PROTECTED]
> > Sent: Monday, January 09, 2006 6:11 PM
> > To: Maven Users List
> > Subject: Re: [m2] Maven2 building Eclipse plugins, features, and
> update
> > sites
> >
> > Hi Jim,
> >
> > Sorry for not replying sooner. I've not done this, and I'm not sur eif
> > anyone else has, but we have certainly discussed it in the past.
> > Members of the pde-build-dev team were here at one point. We'd
> > appreciate any feedback you have on it.
> >
> > Some pointers:
> > - the asse

Re: [m2] Jetty 6 Plugin does not recognize custom webapp source directory

2006-01-10 Thread Brett Porter
Hi Matt,

Check out the Jetty docs:
http://jetty.mortbay.org/jetty6/maven-plugin/howto.html

You can configure the web resources path. Unfortunately, we haven't
enabled a mechanism for the war plugin to share its configuration.

- Brett

On 1/11/06, Matt Raible <[EMAIL PROTECTED]> wrote:
> I decided to try Brett's Jetty 6 HowTo this morning:
>
> http://blogs.codehaus.org/people/brett/archives/001306_developing_with_jetty_where_have_you_been_all_my_life.html
>
> Unfortunately, it doesn't seem to work with my custom webapp source
> directory.  Here's my pom.xml:
>
>   
> maven-war-plugin
> 
>   web
> 
>   
>   
> org.mortbay.jetty
> maven-jetty6-plugin
> 
> 10
> /
> 
>   
>
> [INFO] [jetty6:run]
> [INFO] Configuring Jetty for project: Equinox
> [INFO] 
> -
> ---
> [ERROR] BUILD ERROR
> [INFO] 
> -
> ---
> [INFO] Webapp source directory C:\Source\equinox\src\main\webapp does not 
> exist
> [INFO] 
> -
> ---
> [INFO] For more information, run Maven with the -e switch
> [INFO] 
> -
> ---
> [INFO] Total time: 3 minutes 25 seconds
> [INFO] Finished at: Tue Jan 10 07:40:45 MST 2006
> [INFO] Final Memory: 4M/8M
> [INFO] 
> -
>
> Matt
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: [m2] copy contents of maven.runtime.classpath for packaging

2006-01-10 Thread Yann Le Du
Hi Darren,

Maybe you can use http://mojo.codehaus.org/dependency-maven-plugin/ in a
phase before the one where you run your ant-run ?

HTH,
--
Yann

2006/1/10, Darren Hartford <[EMAIL PROTECTED]>:
>
> Hey all,
> I have an ant-run task that helps to package a jar in a specific way.  I
> would like to include all the runtime libs defined in the pom.xml into
> the /lib location (flattened) of the jar.
>
> How can I do this?  When I make references to maven.runtime.classpath in
> build.xml, it's a  type construct and I can not use  on
> it...
>
> Thanky,
> -D
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: [M2] profiles use case: compilation based off of jdk version

2006-01-10 Thread Ruel Loehr
I'll follow up on this with a method which worked for me (although still
not the best solution:

The basis for this is a particular project with a src tree in the
following fashion:

/src
 /orgfoo.java
 /org.others.java
/src15  
 /org.foo.java


Depending on the jdk being used, the appropriate foo.java will be
included in the compilation
Using profiles, I am able to force two separate compilation stages, one
which happens in all cases, the other which only transpires when jdk15
is used.  This was achieved in a similar fashion as show below with one
caveat.

The only issue here is that compiler plugin does not allow the source or
output directories to be configured on the fly.  In my particular case,
when building with a 1.5 jdk I need to change the source and output
directories. To workaround this I had to make a copy of the compiler
plugin and change these fields to be configurable.   

http://jira.codehaus.org/browse/MCOMPILER-13  

POM SNIPPET:



Ruel Loehr
JBoss QA
 

-Original Message-
From: Ruel Loehr [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 10, 2006 12:06 PM
To: Maven Users List
Subject: [M2] profiles use case: compilation based off of jdk version

I have a use case which I am trying to flesh out, but so far I can 
Only come up with "kludgy" solutions.   Perhaps someone else has a
better idea of how to accomplish this.

For a particular project I wish to build it differently based upon the
jdk version which is used.

Use Case:

Java14:   
  1)  Compile all source in default source folder and output to
targets/classes.  The source and target options should be set to "1.4".

Java15:
  1)  Compile all source in default source folder and output to
targets/classes.  The source and target options should be set to "1.4".
  2)  Compile all source in /java15 source folder and output to
targets/classes15.   The source and target options should be set to
"1.5".

>From my standpoint, two compilations need to take place.  The first
(java14) would take place in the standard fashion, as it always need to
happen.  The second (java15) would be housed with a jdk15 activated
profile.   Experimentation shows that by defining the compiler plugin
(snippet below) within a profile will not kick it off (if compilation
has already occurred.


Are there any ideas on how this might be achieved?





  
 jdk15
 
 
1.5
 
 
 


org.apache.maven.plugins
maven-compiler-plugin

1.5
1.5


  
  
 
   
  
   


Ruel Loehr
JBoss QA
 

-
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: Need help with ibiblio problems

2006-01-10 Thread Helck, Christopher
I have issues

If I browse to http://www.ibiblio.org/maven/jaxen/jars/ I can see my jar
file. If I click on it I get a 404 error. If I click the other jar files
on the page they seem ok.

I'm not sure which jaxen file you special cased.

Thanks,
Christopher

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 10, 2006 4:51 PM
To: Maven Users List
Subject: Re: Need help with ibiblio problems


The changes should be transparent. jaxen was one of the JARs I had
special cased, but it was for a version of 1.0-FCS.

This should be fixed now. Please let us know if there are any other
issues.

- Brett


On 1/11/06, Helck, Christopher <[EMAIL PROTECTED]> wrote:
> What's happened to ibiblio/maven? Maven is unable to download 
> jaxen-1.0-FCS-full.jar. Yet when I browse to the ibiblio it seems to 
> be there and other jars download ok.
>
> I gather there is a restructuring of ibiblio going on for maven 2. Is 
> this the issue? Is there a description of the changes anywhere?
>
> Thanks,
> C. Helck
>
>
> Thank you for being part of it.
>
> The information contained in this e-mail is confidential. This e-mail 
> is intended only for the stated addressee.  If you are not an 
> addressee, you must not disclose, copy, circulate or in any other way 
> use or rely on the information contained in this e-mail. if you have 
> received this e-mail in error, please inform us immediately and delete

> it and all copies from your system.
>
> EBS Dealing Resources International Limited. Registered address: 10 
> Paternoster Square, London EC4M 7DY, United Kingdom. Registered number

> 2669861.
>
> EBS Dealing Resources, Inc, registered in Delaware. Address: 535 
> Madison Avenue, 24th Floor, New York, NY 10022, USA, and One upper 
> Pond road, Building F - Floor 3, Parsippany, NJ 07054, USA.
>
> EBS Dealing Resources Japan Limited, a Japanese Corporation. Address: 
> Asteer Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku,  Tokyo 
> 104-0033, Japan.
>
>
>

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


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



[m2] copy contents of maven.runtime.classpath for packaging

2006-01-10 Thread Darren Hartford
Hey all,
I have an ant-run task that helps to package a jar in a specific way.  I
would like to include all the runtime libs defined in the pom.xml into
the /lib location (flattened) of the jar.

How can I do this?  When I make references to maven.runtime.classpath in
build.xml, it's a  type construct and I can not use  on
it...

Thanky,
-D

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



Re: [m2] Possible to create a zip/tar that includes my ear, and other misc resources

2006-01-10 Thread dan tran
what about http://maven.apache.org/plugins/maven-ear-plugin/?

-D


On 1/10/06, Mick Knutson <[EMAIL PROTECTED]> wrote:
>
> This looks like what I want, but I have a question about my project:
> I am using modules to break up my project, but my final product is an ear.
>
> Now what I want to use this assembly plugin for is to add a set of
> resources
> to a tar file. Where would I put this directory of resources as they are
> not
> really part of any of my modules?
>
>
> ---
> Thank You
> Mick Knutson
>
> Sr. Java/J2EE Consultant
> BASE logic, inc.
> (415) 648-1804 (S.F., CA)
> http://www.BASELogic.com
>
> Washington Mutual (WAMU) (Emeryville, California)
> ---
>
>
>
>
>
> >From: dan tran <[EMAIL PROTECTED]>
> >Reply-To: "Maven Users List" 
> >To: Maven Users List 
> >Subject: Re: [m2] Possible to create a zip/tar that includes my ear, and
> >other misc resources
> >Date: Tue, 10 Jan 2006 12:55:47 -0800
> >
> >maven-assembly-plugin
> >
> >-D
> >
> >
> >On 1/10/06, Mick Knutson <[EMAIL PROTECTED]> wrote:
> > >
> > > Is it Possible to create a zip/tar that includes my ear, and other
> misc
> > > resources?
> > >
> > >
> > >
> > > ---
> > > Thank You
> > > Mick Knutson
> > >
> > > Sr. Java/J2EE Consultant
> > > BASE logic, inc.
> > > (415) 648-1804 (S.F., CA)
> > > http://www.BASELogic.com
> > >
> > > Washington Mutual (WAMU) (Emeryville, California)
> > > ---
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [m2] jetty6 doesn't get downloaded

2006-01-10 Thread Rinku


I think it was specified in  when I looked at it this 
morning.


Curious now - how we could avoid changes to settings.xml ? Brett, can 
you please explain a bit more how this (plug-in resolution) works 
without changes to settings.xml, and what is/are the situations suited 
to make changes to settings.xml?


Thanks!

Rahul


Brett Porter wrote:

The plugin group isn't required if you have it in the POM. I am using
the Jetty6 plugin without the plugin repository or settings.xml
changes.

Where is the plugin specified in your build? Is it in  or
 ?

- Brett

On 1/11/06, Srepfler Srgjan <[EMAIL PROTECTED]> wrote:
  

Srepfler Srgjan wrote:



I've resolved the issue by adding to the settings.xml:


 org.mortbay.jetty


thanks to rinku on irc

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


  

Isn't this kind of behavior a bug?
|pluginGroups| List of groupIds to search for a plugin when that plugin
groupId is not explicitly provided.
as I explicitly stated the groupId I see no reason why I had to specify
this element, what do you guys think?

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





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


  



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



Re: [m2] Possible to create a zip/tar that includes my ear, and other misc resources

2006-01-10 Thread Mick Knutson

This looks like what I want, but I have a question about my project:
I am using modules to break up my project, but my final product is an ear.

Now what I want to use this assembly plugin for is to add a set of resources 
to a tar file. Where would I put this directory of resources as they are not 
really part of any of my modules?



---
Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

Washington Mutual (WAMU) (Emeryville, California)
---






From: dan tran <[EMAIL PROTECTED]>
Reply-To: "Maven Users List" 
To: Maven Users List 
Subject: Re: [m2] Possible to create a zip/tar that includes my ear, and 
other misc resources

Date: Tue, 10 Jan 2006 12:55:47 -0800

maven-assembly-plugin

-D


On 1/10/06, Mick Knutson <[EMAIL PROTECTED]> wrote:
>
> Is it Possible to create a zip/tar that includes my ear, and other misc
> resources?
>
>
>
> ---
> Thank You
> Mick Knutson
>
> Sr. Java/J2EE Consultant
> BASE logic, inc.
> (415) 648-1804 (S.F., CA)
> http://www.BASELogic.com
>
> Washington Mutual (WAMU) (Emeryville, California)
> ---
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




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



[m2] Maven 2 and Eclipse RCP

2006-01-10 Thread Rinku

Hi everyone,

Is anyone on this list developing Eclipse RCP apps with Maven 2? Are 
there any resources available for it?


Appreciate any pointer/links to resources.

Cheers,

Rahul

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



Re: Need help with ibiblio problems

2006-01-10 Thread Brett Porter
The changes should be transparent. jaxen was one of the JARs I had
special cased, but it was for a version of 1.0-FCS.

This should be fixed now. Please let us know if there are any other issues.

- Brett


On 1/11/06, Helck, Christopher <[EMAIL PROTECTED]> wrote:
> What's happened to ibiblio/maven? Maven is unable to download
> jaxen-1.0-FCS-full.jar. Yet when I browse to the ibiblio it seems to be
> there and other jars download ok.
>
> I gather there is a restructuring of ibiblio going on for maven 2. Is
> this the issue? Is there a description of the changes anywhere?
>
> Thanks,
> C. Helck
>
>
> Thank you for being part of it.
>
> The information contained in this e-mail is confidential. This e-mail is 
> intended only for the stated addressee.  If you are not an addressee, you 
> must not disclose, copy, circulate or in any other way use or rely on the 
> information contained in this e-mail. if you have received this e-mail in 
> error, please inform us immediately and delete it and all copies from your 
> system.
>
> EBS Dealing Resources International Limited. Registered address: 10 
> Paternoster Square, London EC4M 7DY, United Kingdom. Registered number 
> 2669861.
>
> EBS Dealing Resources, Inc, registered in Delaware. Address: 535 Madison 
> Avenue, 24th Floor, New York, NY 10022, USA, and One upper Pond road, 
> Building F - Floor 3, Parsippany, NJ 07054, USA.
>
> EBS Dealing Resources Japan Limited, a Japanese Corporation. Address: Asteer 
> Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku,  Tokyo 104-0033, Japan.
>
>
>

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



Re: Need help with ibiblio problems

2006-01-10 Thread haginow2001-nabble
I'm constantly having timeouts and download errors with iBiblio. I recommend to 
use a mirror instead.

Chris

"Helck, Christopher" <[EMAIL PROTECTED]> wrote: What's happened to 
ibiblio/maven? Maven is unable to download
jaxen-1.0-FCS-full.jar. Yet when I browse to the ibiblio it seems to be
there and other jars download ok.

I gather there is a restructuring of ibiblio going on for maven 2. Is
this the issue? Is there a description of the changes anywhere?

Thanks,
C. Helck

 
Thank you for being part of it.
 
The information contained in this e-mail is confidential. This e-mail is 
intended only for the stated addressee.  If you are not an addressee, you must 
not disclose, copy, circulate or in any other way use or rely on the 
information contained in this e-mail. if you have received this e-mail in 
error, please inform us immediately and delete it and all copies from your 
system.

EBS Dealing Resources International Limited. Registered address: 10 Paternoster 
Square, London EC4M 7DY, United Kingdom. Registered number 2669861.

EBS Dealing Resources, Inc, registered in Delaware. Address: 535 Madison 
Avenue, 24th Floor, New York, NY 10022, USA, and One upper Pond road, Building 
F - Floor 3, Parsippany, NJ 07054, USA.

EBS Dealing Resources Japan Limited, a Japanese Corporation. Address: Asteer 
Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku,  Tokyo 104-0033, Japan.





Need help with ibiblio problems

2006-01-10 Thread Helck, Christopher
What's happened to ibiblio/maven? Maven is unable to download
jaxen-1.0-FCS-full.jar. Yet when I browse to the ibiblio it seems to be
there and other jars download ok.

I gather there is a restructuring of ibiblio going on for maven 2. Is
this the issue? Is there a description of the changes anywhere?

Thanks,
C. Helck

 
Thank you for being part of it.
 
The information contained in this e-mail is confidential. This e-mail is 
intended only for the stated addressee.  If you are not an addressee, you must 
not disclose, copy, circulate or in any other way use or rely on the 
information contained in this e-mail. if you have received this e-mail in 
error, please inform us immediately and delete it and all copies from your 
system.

EBS Dealing Resources International Limited. Registered address: 10 Paternoster 
Square, London EC4M 7DY, United Kingdom. Registered number 2669861.

EBS Dealing Resources, Inc, registered in Delaware. Address: 535 Madison 
Avenue, 24th Floor, New York, NY 10022, USA, and One upper Pond road, Building 
F - Floor 3, Parsippany, NJ 07054, USA.

EBS Dealing Resources Japan Limited, a Japanese Corporation. Address: Asteer 
Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku,  Tokyo 104-0033, Japan.



Re: [m2] jetty6 doesn't get downloaded

2006-01-10 Thread Srepfler Srgjan
It was my mistake, I've declared the plugin under 
build>pluginManagement>plugins>plugin

instead it should go to build>plugins>plugin

cheers

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



[m2] assembly: How do I set the base directory for creating the zip

2006-01-10 Thread haginow2001-nabble
How can I set the base directory from which the zip file should be created when 
using the assembly plugin?

My descriptor looks like:



zip



target/mhave

xdocs/**





My plugin config looks like:



org.apache.maven.plugins
maven-assembly-plugin



src/main/assembly/mhave-commons-assembly.xml

target/assembly/work
target/releases/





I want to use "target/mhave" as base directory for the zip archive.

Chris




Re: [m2] jetty6 doesn't get downloaded

2006-01-10 Thread Brett Porter
The plugin group isn't required if you have it in the POM. I am using
the Jetty6 plugin without the plugin repository or settings.xml
changes.

Where is the plugin specified in your build? Is it in  or
 ?

- Brett

On 1/11/06, Srepfler Srgjan <[EMAIL PROTECTED]> wrote:
> Srepfler Srgjan wrote:
>
> > I've resolved the issue by adding to the settings.xml:
> > 
> > 
> >  org.mortbay.jetty
> > 
> > 
> > thanks to rinku on irc
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> Isn't this kind of behavior a bug?
> |pluginGroups| List of groupIds to search for a plugin when that plugin
> groupId is not explicitly provided.
> as I explicitly stated the groupId I see no reason why I had to specify
> this element, what do you guys think?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



[m2] Strange javadoc error

2006-01-10 Thread Mick Knutson




I get this only when I run site, but I compile fine:

[INFO] Error during report generation

Embedded error: Exit code: 1 - 
C:/opt/local/yoursos/projects/common-jar/src/main/java/com/baselogic/BaseObject.java:3: 
package org.apache.commons.lang

.builder does not exist
import org.apache.commons.lang.builder.EqualsBuilder;
  ^

Why would I get this running mvn site, but not mvn compile?


---
Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

Washington Mutual (WAMU) (Emeryville, California)
---



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



RE: [M2] Integration tests location

2006-01-10 Thread Vincent Massol


> -Original Message-
> From: Alexandre Poitras [mailto:[EMAIL PROTECTED]
> Sent: mardi 10 janvier 2006 21:12
> To: Maven Users List
> Subject: [M2] Integration tests location
> 
> Hi,
> 
> I was just wondering where I should put my integration tests if I want to
> keep them separate from my unit tests wich are of course under
> /src/test/java. Any idea?

This is being discussed, see
http://docs.codehaus.org/display/MAVEN/best+practices+-+testing+strategies

Feel free to participate to the discussion.

Thanks
-Vincent






___ 
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs 
exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com

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



Re: [m2] Possible to create a zip/tar that includes my ear, and other misc resources

2006-01-10 Thread dan tran
maven-assembly-plugin

-D


On 1/10/06, Mick Knutson <[EMAIL PROTECTED]> wrote:
>
> Is it Possible to create a zip/tar that includes my ear, and other misc
> resources?
>
>
>
> ---
> Thank You
> Mick Knutson
>
> Sr. Java/J2EE Consultant
> BASE logic, inc.
> (415) 648-1804 (S.F., CA)
> http://www.BASELogic.com
>
> Washington Mutual (WAMU) (Emeryville, California)
> ---
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [m2] jetty6 doesn't get downloaded

2006-01-10 Thread Srepfler Srgjan

Srepfler Srgjan wrote:


I've resolved the issue by adding to the settings.xml:


 org.mortbay.jetty


thanks to rinku on irc

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



Isn't this kind of behavior a bug?
|pluginGroups| List of groupIds to search for a plugin when that plugin 
groupId is not explicitly provided.
as I explicitly stated the groupId I see no reason why I had to specify 
this element, what do you guys think?


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



Re: Experience with maven-proxy.rb

2006-01-10 Thread Pablo Muñiz García

Thanks Jason,

Proximity was in the queue. I'll see if I can install it sucessfully.

Greetings, Pablo.

Jason Dillon wrote:

>I just got Proximity setup yesterday and so far I'm happy with it. Works for 
>m1 and m2... And is much easier to style IMO. 
>
>Sorry no URL... But google for "proximity maven" and you'll find it. 
>
>For the record I've never heard of maven-proxy.rb so I can't say how they 
>compair. 
>
>--jason
>
>
>
> 
>
>-Original Message-
>From: Pablo Muñiz García
>To: Maven Users List
>Sent: Tue Jan 10 11:58:06 2006
>Subject: Experience with maven-proxy.rb
>
>Hi all!
>
>Lately I've been trying to find an alternative to codehaus
>maven-proxy that work with maven 2. After some "Googling" maven-proxy.rb
>(an script wirtten in Ruby) appeared. I've followed instructions
>detailed in the script, but I haven't been able to get it work under Apache.
>Anyone has experience on working with this project? Any success story?
>Maybe an alternative?
>
>Thanks in advance!!
>
>Greetings, Pablo.
>
>-
>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: NullPointerException while running mvn site:site

2006-01-10 Thread Dixit, Sandeep (ProSource Solutions)
Yes, upgrading maven-project-info-reports-plugin resolved the NPE error.

Thanks,
Sandeep

-Original Message-
From: Hervé BOUTEMY [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 10, 2006 2:50 PM
To: Maven Users List
Subject: Re: NullPointerException while running mvn site:site

as requested, you installed maven-plugin-plugin : good

but I made a stupid mistake : what you needed was 
maven-project-info-reports-plugin instead (it's another plugin, placed at the 
same directory level as maven-plugin-plugin)

then you'll have to do the same commands with it : svn checkout, then mvn 
install

Le Mardi 10 Janvier 2006 20:00, Dixit, Sandeep (ProSource Solutions) a écrit :
> I am not clear on this... From this url, I got the code and then used mvn
> install. Do I need to do anything else? I thought mvn install should put
> the latest plug-in in my local repository.
>
> Thanks,
> Sandeep
>
> -Original Message-
> From: Hervé BOUTEMY [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 10, 2006 1:57 PM
> To: Maven Users List
> Subject: Re: NullPointerException while running mvn site:site
>
> whoops, why did I ask you to recompile maven-plugin-plugin since you're in
> trouble with maven-project-info-reports-plugin ?
>
> please try again with maven-project-info-reports-plugin...
>
> and yes, as you saw, plugins have moved since they have been published the
> last time : you're looking at the right place.
>
> Le Mardi 10 Janvier 2006 16:27, Dixit, Sandeep (ProSource Solutions) a 
écrit :
> > I was able to locate maven-plugin-plugin at this url below:
> > http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-plugin-plugin
> >/
> >
> > Is this the right place? If it is, I am still getting NPE during mvn site
> > (after installing maven-plugin-plugin by running mvn install in the
> > maven-plugin-plugin dir.)
> >
> > Please advise.
> >
> > Thanks,
> > Sandeep
> >
> > -Original Message-
> > From: Dixit, Sandeep (ProSource Solutions)
> > [mailto:[EMAIL PROTECTED] Sent: Tuesday,
> > January 10, 2006 9:51 AM
> > To: Maven Users List
> > Subject: RE: NullPointerException while running mvn site:site
> >
> > I am getting the following error while accessing the code:
> >
> > C:\sd\maven_svn\maven_plugin>c:\subversion\bin\svn checkout
> > http://svn.apache.org/repos/asf/maven/components/trunk/maven-plugins/mave
> >n- plugin-plugin maven-plugin-plugin
> >
> > svn: URL
> > 'http://svn.apache.org/repos/asf/maven/components/trunk/maven-plugins/mav
> >en -plugin-plugin' doesn't exist
> >
> > Has the url changed?
> >
> > Thanks,
> > Sandeep
> >
> > -Original Message-
> > From: Hervé BOUTEMY [mailto:[EMAIL PROTECTED]
> > Sent: Friday, January 06, 2006 1:55 PM
> > To: Maven Users List
> > Subject: Re: NullPointerException while running mvn site:site
> >
> > yes, you'll need to compile and install the plugin.
> > It's the classical way :
> >
> > 1. extract the plugin sources
> > as explained in
> > http://maven.apache.org/plugins/maven-plugin-plugin/source-repository.htm
> >l just run the following command :
> > svn checkout
> > http://svn.apache.org/repos/asf/maven/components/trunk/maven-plugins/mave
> >n- plugin-plugin maven-plugin-plugin
> >
> > 2. compile and install the plug-in :
> > simply run : mvn install
> > for more information, just see "Guide to developing Java Plugins"
> > http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
> >
> > Le Vendredi 06 Janvier 2006 19:41, Dixit, Sandeep (ProSource Solutions) a
> >
> > écrit :
> > > I added this tag in my POMs. Still the error persists.
> > >
> > > Your wrote :
> > > >>> I built and installed the plugin locally, and it works nicely
> > >
> > > I don't have source on my machine. I am using Maven 2.0.1 (bin dist).
> > > How do I go about getting this update?
> > >
> > > Thanks,
> > > Sandeep
> > >
> > > -Original Message-
> > > From: Hervé BOUTEMY [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, January 06, 2006 1:31 PM
> > > To: Maven Users List
> > > Subject: Re: NullPointerException while running mvn site:site
> > >
> > > I don't have any  tag for the plug-in : it is declared in
> > > its simplest form in my pom :
> > >   
> > > 
> > >   
> > > org.apache.maven.plugins
> > > maven-project-info-reports-plugin
> > >   
> > > 
> > >   
> > >
> > > or I did not understand what you are asking for...
> > >
> > > Le Vendredi 06 Janvier 2006 13:51, Dixit, Sandeep (ProSource Solutions)
> > > a
> > >
> > > écrit :
> > > > Could you please send me your  tag for the plug-in?
> > > >
> > > > Thanks,
> > > > Sandeep
> > > >
> > > > -Original Message-
> > > > From: Hervé BOUTEMY [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, January 05, 2006 3:07 PM
> > > > To: Maven Users List
> > > > Subject: Re: NullPointerException while running mvn site:site
> > > >
> > > > I confirm : svn has a fix (modified since the patch from MNG-1455)
> > > > I built and installed the plugin locally, and it works nic

Re: Experience with maven-proxy.rb

2006-01-10 Thread Jason Dillon
I just got Proximity setup yesterday and so far I'm happy with it. Works for m1 
and m2... And is much easier to style IMO. 

Sorry no URL... But google for "proximity maven" and you'll find it. 

For the record I've never heard of maven-proxy.rb so I can't say how they 
compair. 

--jason



 

-Original Message-
From: Pablo Muñiz García
To: Maven Users List
Sent: Tue Jan 10 11:58:06 2006
Subject: Experience with maven-proxy.rb

Hi all!

Lately I've been trying to find an alternative to codehaus
maven-proxy that work with maven 2. After some "Googling" maven-proxy.rb
(an script wirtten in Ruby) appeared. I've followed instructions
detailed in the script, but I haven't been able to get it work under Apache.
Anyone has experience on working with this project? Any success story?
Maybe an alternative?

Thanks in advance!!

Greetings, Pablo.

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



[M2] Integration tests location

2006-01-10 Thread Alexandre Poitras
Hi,

I was just wondering where I should put my integration tests if I want to
keep them separate from my unit tests wich are of course under
/src/test/java. Any idea?

Thank!

--
Alexandre Poitras
Québec, Canada


[m2] Possible to create a zip/tar that includes my ear, and other misc resources

2006-01-10 Thread Mick Knutson
Is it Possible to create a zip/tar that includes my ear, and other misc 
resources?




---
Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

Washington Mutual (WAMU) (Emeryville, California)
---



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



Experience with maven-proxy.rb

2006-01-10 Thread Pablo Muñiz García
Hi all!

Lately I've been trying to find an alternative to codehaus
maven-proxy that work with maven 2. After some "Googling" maven-proxy.rb
(an script wirtten in Ruby) appeared. I've followed instructions
detailed in the script, but I haven't been able to get it work under Apache.
Anyone has experience on working with this project? Any success story?
Maybe an alternative?

Thanks in advance!!

Greetings, Pablo.

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



Re: [m2] jetty6 doesn't get downloaded

2006-01-10 Thread Srepfler Srgjan

I've resolved the issue by adding to the settings.xml:


 org.mortbay.jetty


thanks to rinku on irc

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



Re: NullPointerException while running mvn site:site

2006-01-10 Thread Hervé BOUTEMY
as requested, you installed maven-plugin-plugin : good

but I made a stupid mistake : what you needed was 
maven-project-info-reports-plugin instead (it's another plugin, placed at the 
same directory level as maven-plugin-plugin)

then you'll have to do the same commands with it : svn checkout, then mvn 
install

Le Mardi 10 Janvier 2006 20:00, Dixit, Sandeep (ProSource Solutions) a écrit :
> I am not clear on this... From this url, I got the code and then used mvn
> install. Do I need to do anything else? I thought mvn install should put
> the latest plug-in in my local repository.
>
> Thanks,
> Sandeep
>
> -Original Message-
> From: Hervé BOUTEMY [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 10, 2006 1:57 PM
> To: Maven Users List
> Subject: Re: NullPointerException while running mvn site:site
>
> whoops, why did I ask you to recompile maven-plugin-plugin since you're in
> trouble with maven-project-info-reports-plugin ?
>
> please try again with maven-project-info-reports-plugin...
>
> and yes, as you saw, plugins have moved since they have been published the
> last time : you're looking at the right place.
>
> Le Mardi 10 Janvier 2006 16:27, Dixit, Sandeep (ProSource Solutions) a 
écrit :
> > I was able to locate maven-plugin-plugin at this url below:
> > http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-plugin-plugin
> >/
> >
> > Is this the right place? If it is, I am still getting NPE during mvn site
> > (after installing maven-plugin-plugin by running mvn install in the
> > maven-plugin-plugin dir.)
> >
> > Please advise.
> >
> > Thanks,
> > Sandeep
> >
> > -Original Message-
> > From: Dixit, Sandeep (ProSource Solutions)
> > [mailto:[EMAIL PROTECTED] Sent: Tuesday,
> > January 10, 2006 9:51 AM
> > To: Maven Users List
> > Subject: RE: NullPointerException while running mvn site:site
> >
> > I am getting the following error while accessing the code:
> >
> > C:\sd\maven_svn\maven_plugin>c:\subversion\bin\svn checkout
> > http://svn.apache.org/repos/asf/maven/components/trunk/maven-plugins/mave
> >n- plugin-plugin maven-plugin-plugin
> >
> > svn: URL
> > 'http://svn.apache.org/repos/asf/maven/components/trunk/maven-plugins/mav
> >en -plugin-plugin' doesn't exist
> >
> > Has the url changed?
> >
> > Thanks,
> > Sandeep
> >
> > -Original Message-
> > From: Hervé BOUTEMY [mailto:[EMAIL PROTECTED]
> > Sent: Friday, January 06, 2006 1:55 PM
> > To: Maven Users List
> > Subject: Re: NullPointerException while running mvn site:site
> >
> > yes, you'll need to compile and install the plugin.
> > It's the classical way :
> >
> > 1. extract the plugin sources
> > as explained in
> > http://maven.apache.org/plugins/maven-plugin-plugin/source-repository.htm
> >l just run the following command :
> > svn checkout
> > http://svn.apache.org/repos/asf/maven/components/trunk/maven-plugins/mave
> >n- plugin-plugin maven-plugin-plugin
> >
> > 2. compile and install the plug-in :
> > simply run : mvn install
> > for more information, just see "Guide to developing Java Plugins"
> > http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
> >
> > Le Vendredi 06 Janvier 2006 19:41, Dixit, Sandeep (ProSource Solutions) a
> >
> > écrit :
> > > I added this tag in my POMs. Still the error persists.
> > >
> > > Your wrote :
> > > >>> I built and installed the plugin locally, and it works nicely
> > >
> > > I don't have source on my machine. I am using Maven 2.0.1 (bin dist).
> > > How do I go about getting this update?
> > >
> > > Thanks,
> > > Sandeep
> > >
> > > -Original Message-
> > > From: Hervé BOUTEMY [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, January 06, 2006 1:31 PM
> > > To: Maven Users List
> > > Subject: Re: NullPointerException while running mvn site:site
> > >
> > > I don't have any  tag for the plug-in : it is declared in
> > > its simplest form in my pom :
> > >   
> > > 
> > >   
> > > org.apache.maven.plugins
> > > maven-project-info-reports-plugin
> > >   
> > > 
> > >   
> > >
> > > or I did not understand what you are asking for...
> > >
> > > Le Vendredi 06 Janvier 2006 13:51, Dixit, Sandeep (ProSource Solutions)
> > > a
> > >
> > > écrit :
> > > > Could you please send me your  tag for the plug-in?
> > > >
> > > > Thanks,
> > > > Sandeep
> > > >
> > > > -Original Message-
> > > > From: Hervé BOUTEMY [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, January 05, 2006 3:07 PM
> > > > To: Maven Users List
> > > > Subject: Re: NullPointerException while running mvn site:site
> > > >
> > > > I confirm : svn has a fix (modified since the patch from MNG-1455)
> > > > I built and installed the plugin locally, and it works nicely
> > > >
> > > > Le Jeudi 05 Janvier 2006 09:04, Bernd Bohmann a écrit :
> > > > > Hello,
> > > > >
> > > > > see http://jira.codehaus.org/browse/MNG-1455 but the patch was
> > > > > reverted.
> > > > >
> > > > > I think the maven-project-info-reports-plugin in the svn has a fix
> > > 

RE: forced build exception

2006-01-10 Thread Michael Fiedler
Sorry, that is important.

Continuum 1.0.2 on W2K, sp4, 1.7 GHz, 1 GB RAM

Michael

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 10, 2006 12:24 PM
To: continuum-users@maven.apache.org
Subject: Re: forced build exception

What is your continuum version?

Michael Fiedler a écrit :
> Fyi.  This build is for a maven2 plug-in used by other modules in the
> build.
>  
> javax.jdo.JDODataStoreException: Insert request failed: INSERT INTO
> PROJECTDEPENDENCY (PROJECTDEPENDENCY_ID,ARTIFACT_ID,VERSION,GROUP_ID)
> VALUES (?,?,?,?)
> at
> org.jpox.store.rdbms.request.InsertRequest.execute(InsertRequest.java:32
> 9)
> at
> org.jpox.store.rdbms.table.ClassTable.insert(ClassTable.java:1774)
> at org.jpox.store.StoreManager.insert(StoreManager.java:721)
> at
> org.jpox.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.
> java:3066)
> at
> org.jpox.state.StateManagerImpl.makePersistent(StateManagerImpl.java:303
> 9)
> at
> org.jpox.state.StateManagerImpl.attachCopy(StateManagerImpl.java:3452)
> at
> org.jpox.AbstractPersistenceManager.attachCopy(AbstractPersistenceManage
> r.java:1644)
> at org.jpox.sco.List.attachCopy(List.java:326)
> at
> org.jpox.state.AttachFieldManager.storeObjectField(AttachFieldManager.ja
> va:107)
> at
> org.jpox.state.StateManagerImpl.providedObjectField(StateManagerImpl.jav
> a:2394)
> at
> org.apache.maven.continuum.model.project.Project.jdoProvideField(Project
> .java)
> at
> org.apache.maven.continuum.model.project.Project.jdoProvideFields(Projec
> t.java)
> at
> org.jpox.state.StateManagerImpl.provideFields(StateManagerImpl.java:2732
> )
> at
> org.jpox.state.StateManagerImpl.internalAttachCopy(StateManagerImpl.java
> :3518)
> at
> org.jpox.state.StateManagerImpl.attachCopy(StateManagerImpl.java:3446)
> at
> org.jpox.AbstractPersistenceManager.attachCopy(AbstractPersistenceManage
> r.java:1644)
> at
> org.jpox.AbstractPersistenceManager.attachCopy(AbstractPersistenceManage
> r.java:1660)
> at
> org.apache.maven.continuum.store.JdoContinuumStore.updateObject(JdoConti
> nuumStore.java:679)
> at
> org.apache.maven.continuum.store.JdoContinuumStore.updateProject(JdoCont
> inuumStore.java:841)
> at
> org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.exe
> cute(ExecuteBuilderContinuumAction.java:94)
> at
> org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(
> DefaultBuildController.java:171)
> at
> org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.exec
> uteTask(BuildProjectTaskExecutor.java:53)
> at
> org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Execut
> orRunnable.run(ThreadedTaskQueueExecutor.java:103)
> at java.lang.Thread.run(Thread.java:595)
> NestedThrowablesStackTrace:
> ERROR 40001: A lock could not be obtained due to a deadlock, cycle of
> locks and waiters is:
> Lock : ROW, PROJECTDEPENDENCY, (390,37)
>   Waiting XID : {2309691, X} , SA, INSERT INTO PROJECTDEPENDENCY
> (PROJECTDEPENDENCY_ID,ARTIFACT_ID,VERSION,GROUP_ID) VALUES (?,?,?,?)
>   Granted XID : {2309595, X} 
> Lock : ROW, PROJECT, (2,35)
>   Waiting XID : {2309595, S} , SA, UPDATE PROJECTDEPENDENCY SET
> DEPENDENCIES_ID_OWN = ?,DEPENDENCIESINTEGER_IDX = ? WHERE
> PROJECTDEPENDENCY_ID = ?
>   Granted XID : {2309691, X} 
> . The selected victim is XID : 2309691.
> at
> org.apache.derby.iapi.error.StandardException.newException(Unknown
> Source)
> at
> org.apache.derby.impl.services.locks.Deadlock.buildException(Unknown
> Source)
> at
> org.apache.derby.impl.services.locks.LockSet.lockObject(Unknown Source)
> at
> org.apache.derby.impl.services.locks.SinglePool.lockAnObject(Unknown
> Source)
> at
> org.apache.derby.impl.services.locks.SinglePool.lockObject(Unknown
> Source)
> at
> org.apache.derby.impl.store.raw.xact.RowLocking3.lockRecordForWrite(Unkn
> own Source)
> at
> org.apache.derby.impl.store.access.heap.HeapController.lockRow(Unknown
> Source)
> at
> org.apache.derby.impl.store.access.heap.HeapController.lockRow(Unknown
> Source)
> at
> org.apache.derby.impl.store.access.btree.index.B2IRowLocking3.lockRowOnP
> age(Unknown Source)
> at
> org.apache.derby.impl.store.access.btree.index.B2IRowLocking3.lockNonSca
> nRowOnPage(Unknown Source)
> at
> org.apache.derby.impl.store.access.btree.BTreeController.doIns(Unknown
> Source)
> at
> org.apache.derby.impl.store.access.btree.BTreeController.insert(Unknown
> Source)
> at
> org.apache.derby.impl.store.access.btree.index.B2IController.insert(Unkn
> own Source)
> at
> org.apache.derby.impl.sql.execute.IndexChanger.insertAndCheckDups(Unknow
> n Source)
> at
> org.apache.derby.impl.sql.execute.IndexChanger.doInsert(Unknown Source)
>

unit testing MOJOs

2006-01-10 Thread Michael Fiedler
Hi,

 

   I would like to unit test my MOJO (Maven2 plugin).  I could add a
setter for each private instance variable, but I would like to have them
injected (like when they run).  What is the recommended way to unit test
MOJOs?

 

 

public class Instr extends AbstractMojo {

/**

 * The artifact id

 * @parameter expression="${project.artifactId}"

 */

private String artifactId;

 

/**

 * The version

 * @parameter expression="${project.version}"

 */

private String version;

 

/**

 * The version

 * @parameter expression="${project.build.outputDirectory}"

 */

private String outputDir;

...

 

 

public class InstrTest {

...

public final void testExecute() {

try {

instr.execute();

} catch (MojoExecutionException e) {

Assert.fail("Not expecting a
MojoExecutionException", e);

} catch (MojoFailureException e) {

Assert.fail("Not expecting a
MojoFailureException", e);

}

}

...

 

Thank you, Michael

 



RE: NullPointerException while running mvn site:site

2006-01-10 Thread Dixit, Sandeep (ProSource Solutions)
I am not clear on this... From this url, I got the code and then used mvn 
install. Do I need to do anything else? I thought mvn install should put the 
latest plug-in in my local repository. 

Thanks,
Sandeep

-Original Message-
From: Hervé BOUTEMY [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 10, 2006 1:57 PM
To: Maven Users List
Subject: Re: NullPointerException while running mvn site:site

whoops, why did I ask you to recompile maven-plugin-plugin since you're in 
trouble with maven-project-info-reports-plugin ?

please try again with maven-project-info-reports-plugin...

and yes, as you saw, plugins have moved since they have been published the 
last time : you're looking at the right place.

Le Mardi 10 Janvier 2006 16:27, Dixit, Sandeep (ProSource Solutions) a écrit :
> I was able to locate maven-plugin-plugin at this url below:
> http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-plugin-plugin/
>
> Is this the right place? If it is, I am still getting NPE during mvn site
> (after installing maven-plugin-plugin by running mvn install in the
> maven-plugin-plugin dir.)
>
> Please advise.
>
> Thanks,
> Sandeep
>
> -Original Message-
> From: Dixit, Sandeep (ProSource Solutions)
> [mailto:[EMAIL PROTECTED] Sent: Tuesday, January
> 10, 2006 9:51 AM
> To: Maven Users List
> Subject: RE: NullPointerException while running mvn site:site
>
> I am getting the following error while accessing the code:
>
> C:\sd\maven_svn\maven_plugin>c:\subversion\bin\svn checkout
> http://svn.apache.org/repos/asf/maven/components/trunk/maven-plugins/maven-
>plugin-plugin maven-plugin-plugin
>
> svn: URL
> 'http://svn.apache.org/repos/asf/maven/components/trunk/maven-plugins/maven
>-plugin-plugin' doesn't exist
>
> Has the url changed?
>
> Thanks,
> Sandeep
>
> -Original Message-
> From: Hervé BOUTEMY [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 06, 2006 1:55 PM
> To: Maven Users List
> Subject: Re: NullPointerException while running mvn site:site
>
> yes, you'll need to compile and install the plugin.
> It's the classical way :
>
> 1. extract the plugin sources
> as explained in
> http://maven.apache.org/plugins/maven-plugin-plugin/source-repository.html
> just run the following command :
> svn checkout
> http://svn.apache.org/repos/asf/maven/components/trunk/maven-plugins/maven-
>plugin-plugin maven-plugin-plugin
>
> 2. compile and install the plug-in :
> simply run : mvn install
> for more information, just see "Guide to developing Java Plugins"
> http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
>
> Le Vendredi 06 Janvier 2006 19:41, Dixit, Sandeep (ProSource Solutions) a
>
> écrit :
> > I added this tag in my POMs. Still the error persists.
> >
> > Your wrote :
> > >>> I built and installed the plugin locally, and it works nicely
> >
> > I don't have source on my machine. I am using Maven 2.0.1 (bin dist). How
> > do I go about getting this update?
> >
> > Thanks,
> > Sandeep
> >
> > -Original Message-
> > From: Hervé BOUTEMY [mailto:[EMAIL PROTECTED]
> > Sent: Friday, January 06, 2006 1:31 PM
> > To: Maven Users List
> > Subject: Re: NullPointerException while running mvn site:site
> >
> > I don't have any  tag for the plug-in : it is declared in its
> > simplest form in my pom :
> >   
> > 
> >   
> > org.apache.maven.plugins
> > maven-project-info-reports-plugin
> >   
> > 
> >   
> >
> > or I did not understand what you are asking for...
> >
> > Le Vendredi 06 Janvier 2006 13:51, Dixit, Sandeep (ProSource Solutions) a
> >
> > écrit :
> > > Could you please send me your  tag for the plug-in?
> > >
> > > Thanks,
> > > Sandeep
> > >
> > > -Original Message-
> > > From: Hervé BOUTEMY [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, January 05, 2006 3:07 PM
> > > To: Maven Users List
> > > Subject: Re: NullPointerException while running mvn site:site
> > >
> > > I confirm : svn has a fix (modified since the patch from MNG-1455)
> > > I built and installed the plugin locally, and it works nicely
> > >
> > > Le Jeudi 05 Janvier 2006 09:04, Bernd Bohmann a écrit :
> > > > Hello,
> > > >
> > > > see http://jira.codehaus.org/browse/MNG-1455 but the patch was
> > > > reverted.
> > > >
> > > > I think the maven-project-info-reports-plugin in the svn has a fix
> > > > for it. Maybe a SNAPSHOT version is available.
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > > ---
> > >-- --  ***National City made the following annotations
> > > ---
> > >-- --  This communication is a confidential and
> > > proprietary business communication.  It is intended solely for the use
> > > of the designated recipient(s

[m2] not sure if I am able to connect through my proxy

2006-01-10 Thread Mick Knutson

Here is my settings.xml:

 
   
   
 defaultWamuNetProxy
 true
 http
 *
 *
 http://app-proxy.wamu.net
 8080
 *.wamu.net
   

 

Here is the error I get:
=
[INFO] Searching repository for plugin with prefix: 'idea'.
[INFO] artifact org.apache.maven.plugins:maven-idea-plugin: checking for 
updates from central
[WARNING] repository metadata for: 'artifact 
org.apache.maven.plugins:maven-idea-plugin' could not be retrieved from 
repository: central due to an err

or: Error transferring file
[INFO] Repository 'central' will be blacklisted


Here is my plugin ref in my parent pom.xml
==
   
   

   
   org.apache.maven.plugins
   maven-idea-plugin
   
   yoursos
   
   



Any help to verify the connection? It is the same proxt as my web browser 
and there does not seem to be any issues.





---
Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

Washington Mutual (WAMU) (Emeryville, California)
---



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



Re: NullPointerException while running mvn site:site

2006-01-10 Thread Hervé BOUTEMY
whoops, why did I ask you to recompile maven-plugin-plugin since you're in 
trouble with maven-project-info-reports-plugin ?

please try again with maven-project-info-reports-plugin...

and yes, as you saw, plugins have moved since they have been published the 
last time : you're looking at the right place.

Le Mardi 10 Janvier 2006 16:27, Dixit, Sandeep (ProSource Solutions) a écrit :
> I was able to locate maven-plugin-plugin at this url below:
> http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-plugin-plugin/
>
> Is this the right place? If it is, I am still getting NPE during mvn site
> (after installing maven-plugin-plugin by running mvn install in the
> maven-plugin-plugin dir.)
>
> Please advise.
>
> Thanks,
> Sandeep
>
> -Original Message-
> From: Dixit, Sandeep (ProSource Solutions)
> [mailto:[EMAIL PROTECTED] Sent: Tuesday, January
> 10, 2006 9:51 AM
> To: Maven Users List
> Subject: RE: NullPointerException while running mvn site:site
>
> I am getting the following error while accessing the code:
>
> C:\sd\maven_svn\maven_plugin>c:\subversion\bin\svn checkout
> http://svn.apache.org/repos/asf/maven/components/trunk/maven-plugins/maven-
>plugin-plugin maven-plugin-plugin
>
> svn: URL
> 'http://svn.apache.org/repos/asf/maven/components/trunk/maven-plugins/maven
>-plugin-plugin' doesn't exist
>
> Has the url changed?
>
> Thanks,
> Sandeep
>
> -Original Message-
> From: Hervé BOUTEMY [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 06, 2006 1:55 PM
> To: Maven Users List
> Subject: Re: NullPointerException while running mvn site:site
>
> yes, you'll need to compile and install the plugin.
> It's the classical way :
>
> 1. extract the plugin sources
> as explained in
> http://maven.apache.org/plugins/maven-plugin-plugin/source-repository.html
> just run the following command :
> svn checkout
> http://svn.apache.org/repos/asf/maven/components/trunk/maven-plugins/maven-
>plugin-plugin maven-plugin-plugin
>
> 2. compile and install the plug-in :
> simply run : mvn install
> for more information, just see "Guide to developing Java Plugins"
> http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
>
> Le Vendredi 06 Janvier 2006 19:41, Dixit, Sandeep (ProSource Solutions) a
>
> écrit :
> > I added this tag in my POMs. Still the error persists.
> >
> > Your wrote :
> > >>> I built and installed the plugin locally, and it works nicely
> >
> > I don't have source on my machine. I am using Maven 2.0.1 (bin dist). How
> > do I go about getting this update?
> >
> > Thanks,
> > Sandeep
> >
> > -Original Message-
> > From: Hervé BOUTEMY [mailto:[EMAIL PROTECTED]
> > Sent: Friday, January 06, 2006 1:31 PM
> > To: Maven Users List
> > Subject: Re: NullPointerException while running mvn site:site
> >
> > I don't have any  tag for the plug-in : it is declared in its
> > simplest form in my pom :
> >   
> > 
> >   
> > org.apache.maven.plugins
> > maven-project-info-reports-plugin
> >   
> > 
> >   
> >
> > or I did not understand what you are asking for...
> >
> > Le Vendredi 06 Janvier 2006 13:51, Dixit, Sandeep (ProSource Solutions) a
> >
> > écrit :
> > > Could you please send me your  tag for the plug-in?
> > >
> > > Thanks,
> > > Sandeep
> > >
> > > -Original Message-
> > > From: Hervé BOUTEMY [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, January 05, 2006 3:07 PM
> > > To: Maven Users List
> > > Subject: Re: NullPointerException while running mvn site:site
> > >
> > > I confirm : svn has a fix (modified since the patch from MNG-1455)
> > > I built and installed the plugin locally, and it works nicely
> > >
> > > Le Jeudi 05 Janvier 2006 09:04, Bernd Bohmann a écrit :
> > > > Hello,
> > > >
> > > > see http://jira.codehaus.org/browse/MNG-1455 but the patch was
> > > > reverted.
> > > >
> > > > I think the maven-project-info-reports-plugin in the svn has a fix
> > > > for it. Maybe a SNAPSHOT version is available.
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > > ---
> > >-- --  ***National City made the following annotations
> > > ---
> > >-- --  This communication is a confidential and
> > > proprietary business communication.  It is intended solely for the use
> > > of the designated recipient(s).  If this communication is received in
> > > error, please contact the sender and delete this communication.
> > > ===
> > >== == 
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>

Re: Doing a CVS checkout from within a Maven 1.0 script

2006-01-10 Thread dan tran
define a maven goal:



.




http://maven.apache.org/maven-1.x/reference/plugins/scm/properties.html


But I may want to get scm:bootstrap to drive your build


maven scm:bootstrap -Dmave.scm.=.

-D


On 1/10/06, Michael Thomsen <[EMAIL PROTECTED]> wrote:
>
> Could you point me to any examples of this plugin? I've defined my
> repository in the project.xml, now how do I define a place in
> maven.xml to perform the CVS update? If you could show me any example
> project.xml/maven.xml files that'd be great.
>
> Thanks,
>
> Mike
>
> On 1/9/06, dan tran <[EMAIL PROTECTED]> wrote:
> > use maven-scm-plugin
> >
> > -D
> >
> >
> > On 1/9/06, Michael Thomsen <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi,
> > >
> > > I am looking for some information on how to perform a CVS checkout
> > > from within a Maven script. This is part of an automated build system
> > > that I am putting together and I would like to know if there is any
> > > functionality available that would allow the Maven script to do an
> > > automated CVS checkout before it does the nightly build.
> > >
> > > Thanks,
> > >
> > > Mike
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [m2] Deploying 3 Party Jar to Maven-Proxy

2006-01-10 Thread dan tran
btw http://www.ibiblio.org/maven2/plugins/ is wrong

it is http://www.ibiblio.org/maven2


On 1/10/06, dan tran <[EMAIL PROTECTED]> wrote:
>
> glad it works for you.
>
> and no you dont need to specify maven central plugin repo.  Just add your
> maven-proxy entry in
> your pluginRepository in your root pom.  Or in your settings.xml as part
> of default profile.
>
> -D
>
>
>  On 1/10/06, Man-Chi Leung <[EMAIL PROTECTED]> wrote:
> >
> > hi Dan,
> >
> > Thanks so much. !! everything works fine now. I am so excited today!
> >
> > M2+Maven-Proxy are what I have been dreaming to have for long. Cool!
> >
> > I cannot wait to develop my next project based on this environment!
> >
> > frankly, I was nearly given up on maven-proxy some time ago but I
> > came back for a try after your previous reply!
> >
> > thanks man. I love M2
> >
> > btw, one quick question:
> > do I need to specify repository for plugin URL in maven-proxy?
> > http://www.ibiblio.org/maven2/plugins/
> >
> > ~manchi
> >
> >
> > On Jan 10, 2006, at 2:18 AM, dan tran wrote:
> >
> > > http://maven.apache.org/guides/mini/guide-deploy-ssh-external.html
> > >
> > > there are plenty of examples looking at the root poms of existing
> > > projects
> > >
> > > -D
> > >
> > >
> > > On 1/9/06, Man-Chi Leung <[EMAIL PROTECTED]> wrote:
> > >>
> > >> hi Dan,
> > >>
> > >> thanks, it is great! deploy:deploy-file  is working fine!  I am able
> > >> to deploy third party jar to my maven-proxy 's repository
> > >>
> > >> now, pls kindly guide me thru the next problem:
> > >>
> > >> how to deploy a snapshot plugin (e.g. maven-deploy-plugin)  to my
> > >> maven-proxy's repository?
> > >>
> > >> what is the configuration required?
> > >>
> > >> ---
> > >> I added the following in maven-deploy-plugin's pom.xml
> > >> ---
> > >> 
> > >> 
> > >> my-repository
> > >>  scpexe://my_domain/maven-proxy/target/repo
> > 
> > >> 
> > >> 
> > >>
> > >>
> > >> ---
> > >> I added the following in  ~/.m2/setting.xml
> > >> ---
> > >>   
> > >> 
> > >>   my-repository
> > >>   myname
> > >>   
> > >> 
> > >>   
> > >>
> > >> ---
> > >> $cd /maven-deploy-plugin
> > >> $mvn deploy
> > >> ---
> > >> [WARNING] repository metadata for: 'snapshot
> > >> org.apache.maven.plugins:maven-deploy-plugin:2.1-SNAPSHOT' could not
> > >> be retrieved from repository: snapshots due to an error: Exit code: 1
> > >> - Host key verification failed.
> > >>
> > >> [INFO] Repository 'snapshots' will be blacklisted
> > >> Uploading: scpexe://repo1.maven.org/home/projects/maven/repository-
> > >> staging/snapshots/maven2/org/apache/maven/plugins/maven-deploy-
> > >> plugin/
> > >> 2.1-SNAPSHOT/maven-deploy-plugin-2.1-20060109.091301-4.jar
> > >> [INFO]
> > >> -
> > >> ---
> > >> 
> > >> [ERROR] BUILD ERROR
> > >> [INFO]
> > >> -
> > >> ---
> > >> 
> > >> [INFO] Error deploying artifact: Error executing command for transfer
> >
> > >>
> > >> Exit code 255 - Host key verification failed.
> > >>
> > >> it seems that it is NOT deploying to my-repository at all. it is
> > >> uploading to "snapshots" at repo1.maven.org. how can i change that?
> > >>
> > >> pls help!
> > >>
> > >> ~manchi
> > >>
> > >>
> > >> On Jan 9, 2006, at 1:41 PM, Allan Ramirez wrote:
> > >>
> > >>> Hi there,
> > >>>
> > >>> Copy your wagon-ssh-external jar to your %M2_HOME%/lib.
> > >>>
> > >>> Hope this works.
> > >>>
> > >>> -allan
> > >>>
> > >>> Man-Chi Leung wrote:
> > >>>
> >  hi Dan,
> > 
> >  thx for advice.
> > 
> >  according to your email: I checked out maven-deploy-plugin from svn
> >  $svn co https://svn.apache.org/repos/asf/maven/plugins/trunk/
> >  maven- deploy-plugin maven-deploy-plugin
> >  $mvn install<---ok!
> > 
> > 
> >  $more ~/.m2/settings.xml
> >    
> >  
> >    my-repository
> >    myname
> >    
> >  
> >    
> > 
> > 
> >  $cd ~/Java/junitperf-1.9.1/lib
> >  $mvn deploy:deploy-file -U -DgroupId=com.clarkware.junitperf -
> >  DartifactId=junitperf -Dversion= 1.9.1 -Dpackaging=jar -
> >  Dfile=junitperf-1.9.1.jar -DrepositoryId=my-repository -
> >  Durl=scpexe:// mydomain/export/home/myname/maven-proxy/target/repo
> > 
> >  [INFO] [deploy:deploy-file]
> >  [INFO]
> >  ---
> >  --
> >  --- 
> >  [ERROR] BUILD ERROR
> >  [INFO]
> >  ---
> >  --
> >  --- --

Re: [m2] Deploying 3 Party Jar to Maven-Proxy

2006-01-10 Thread dan tran
glad it works for you.

and no you dont need to specify maven central plugin repo.  Just add your
maven-proxy entry in
your pluginRepository in your root pom.  Or in your settings.xml as part
of default profile.

-D


On 1/10/06, Man-Chi Leung <[EMAIL PROTECTED]> wrote:
>
> hi Dan,
>
> Thanks so much. !! everything works fine now. I am so excited today!
>
> M2+Maven-Proxy are what I have been dreaming to have for long. Cool!
>
> I cannot wait to develop my next project based on this environment!
>
> frankly, I was nearly given up on maven-proxy some time ago but I
> came back for a try after your previous reply!
>
> thanks man. I love M2
>
> btw, one quick question:
> do I need to specify repository for plugin URL in maven-proxy?
> http://www.ibiblio.org/maven2/plugins/
>
> ~manchi
>
>
> On Jan 10, 2006, at 2:18 AM, dan tran wrote:
>
> > http://maven.apache.org/guides/mini/guide-deploy-ssh-external.html
> >
> > there are plenty of examples looking at the root poms of existing
> > projects
> >
> > -D
> >
> >
> > On 1/9/06, Man-Chi Leung <[EMAIL PROTECTED]> wrote:
> >>
> >> hi Dan,
> >>
> >> thanks, it is great! deploy:deploy-file  is working fine!  I am able
> >> to deploy third party jar to my maven-proxy 's repository
> >>
> >> now, pls kindly guide me thru the next problem:
> >>
> >> how to deploy a snapshot plugin (e.g. maven-deploy-plugin)  to my
> >> maven-proxy's repository?
> >>
> >> what is the configuration required?
> >>
> >> ---
> >> I added the following in maven-deploy-plugin's pom.xml
> >> ---
> >> 
> >> 
> >> my-repository
> >> scpexe://my_domain/maven-proxy/target/repo
> >> 
> >> 
> >>
> >>
> >> ---
> >> I added the following in  ~/.m2/setting.xml
> >> ---
> >>   
> >> 
> >>   my-repository
> >>   myname
> >>   
> >> 
> >>   
> >>
> >> ---
> >> $cd /maven-deploy-plugin
> >> $mvn deploy
> >> ---
> >> [WARNING] repository metadata for: 'snapshot
> >> org.apache.maven.plugins:maven-deploy-plugin:2.1-SNAPSHOT' could not
> >> be retrieved from repository: snapshots due to an error: Exit code: 1
> >> - Host key verification failed.
> >>
> >> [INFO] Repository 'snapshots' will be blacklisted
> >> Uploading: scpexe://repo1.maven.org/home/projects/maven/repository-
> >> staging/snapshots/maven2/org/apache/maven/plugins/maven-deploy-
> >> plugin/
> >> 2.1-SNAPSHOT/maven-deploy-plugin-2.1-20060109.091301-4.jar
> >> [INFO]
> >> -
> >> ---
> >> 
> >> [ERROR] BUILD ERROR
> >> [INFO]
> >> -
> >> ---
> >> 
> >> [INFO] Error deploying artifact: Error executing command for transfer
> >>
> >> Exit code 255 - Host key verification failed.
> >>
> >> it seems that it is NOT deploying to my-repository at all. it is
> >> uploading to "snapshots" at repo1.maven.org. how can i change that?
> >>
> >> pls help!
> >>
> >> ~manchi
> >>
> >>
> >> On Jan 9, 2006, at 1:41 PM, Allan Ramirez wrote:
> >>
> >>> Hi there,
> >>>
> >>> Copy your wagon-ssh-external jar to your %M2_HOME%/lib.
> >>>
> >>> Hope this works.
> >>>
> >>> -allan
> >>>
> >>> Man-Chi Leung wrote:
> >>>
>  hi Dan,
> 
>  thx for advice.
> 
>  according to your email: I checked out maven-deploy-plugin from svn
>  $svn co https://svn.apache.org/repos/asf/maven/plugins/trunk/
>  maven- deploy-plugin maven-deploy-plugin
>  $mvn install<---ok!
> 
> 
>  $more ~/.m2/settings.xml
>    
>  
>    my-repository
>    myname
>    
>  
>    
> 
> 
>  $cd ~/Java/junitperf-1.9.1/lib
>  $mvn deploy:deploy-file -U -DgroupId=com.clarkware.junitperf -
>  DartifactId=junitperf -Dversion=1.9.1 -Dpackaging=jar -
>  Dfile=junitperf-1.9.1.jar -DrepositoryId=my-repository -
>  Durl=scpexe:// mydomain/export/home/myname/maven-proxy/target/repo
> 
>  [INFO] [deploy:deploy-file]
>  [INFO]
>  ---
>  --
>  --- 
>  [ERROR] BUILD ERROR
>  [INFO]
>  ---
>  --
>  --- 
>  [INFO] Error deploying artifact: Unsupported Protocol: 'scpexe':
>  Cannot find wagon which supports the requested protocol: scpexe
>  Component descriptor cannot be found in the component repository:
>  org.apache.maven.wagon.Wagonscpexe.
> 
>  do u know what was the problem?
> 
>  ~manchi
> 
> 
>  On Jan 4, 2006, at 3:15 PM, dan tran wrote:
> 
> > you definitely want to use deploy:file-deploy to do it, using

Re: Not possible to add multiple test resources

2006-01-10 Thread Doug Douglass
I'm not using m2 in production yet, but with m1 you would define another 
resource (testResource in your case), one directory per resource. I 
don't think this model has changed.


In other words:


 
   src/test/resources
 
 
   src/main/webapp/WEB-INF
 




Perhaps check the POM model.

Doug

Bengt-Erik Fröberg wrote:


Hi again!
I’ve developed a taste for this mailing list…

Is it really true that this is not possible!?


  src/test/resources
  src/main/webapp/WEB-INF


M2 chokes on it... kinda' takes the greatness out of XML, don't you think?

I need to add another directory to the test classpath how do I do?
(Beginning to REALLY look forward to a comprehensive Maven2 book)

Regards,

/B-E




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

 



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



Re: [m2] Deploying 3 Party Jar to Maven-Proxy

2006-01-10 Thread Man-Chi Leung

hi Dan,

Thanks so much. !! everything works fine now. I am so excited today!

M2+Maven-Proxy are what I have been dreaming to have for long. Cool!

I cannot wait to develop my next project based on this environment!

frankly, I was nearly given up on maven-proxy some time ago but I  
came back for a try after your previous reply!


thanks man. I love M2

btw, one quick question:
do I need to specify repository for plugin URL in maven-proxy?
http://www.ibiblio.org/maven2/plugins/

~manchi


On Jan 10, 2006, at 2:18 AM, dan tran wrote:


http://maven.apache.org/guides/mini/guide-deploy-ssh-external.html

there are plenty of examples looking at the root poms of existing  
projects


-D


On 1/9/06, Man-Chi Leung <[EMAIL PROTECTED]> wrote:


hi Dan,

thanks, it is great! deploy:deploy-file  is working fine!  I am able
to deploy third party jar to my maven-proxy 's repository

now, pls kindly guide me thru the next problem:

how to deploy a snapshot plugin (e.g. maven-deploy-plugin)  to my
maven-proxy's repository?

what is the configuration required?

---
I added the following in maven-deploy-plugin's pom.xml
---


my-repository
scpexe://my_domain/maven-proxy/target/repo




---
I added the following in  ~/.m2/setting.xml
---
  

  my-repository
  myname
  

  

---
$cd /maven-deploy-plugin
$mvn deploy
---
[WARNING] repository metadata for: 'snapshot
org.apache.maven.plugins:maven-deploy-plugin:2.1-SNAPSHOT' could not
be retrieved from repository: snapshots due to an error: Exit code: 1
- Host key verification failed.

[INFO] Repository 'snapshots' will be blacklisted
Uploading: scpexe://repo1.maven.org/home/projects/maven/repository-
staging/snapshots/maven2/org/apache/maven/plugins/maven-deploy- 
plugin/

2.1-SNAPSHOT/maven-deploy-plugin-2.1-20060109.091301-4.jar
[INFO]
- 
---


[ERROR] BUILD ERROR
[INFO]
- 
---


[INFO] Error deploying artifact: Error executing command for transfer

Exit code 255 - Host key verification failed.

it seems that it is NOT deploying to my-repository at all. it is
uploading to "snapshots" at repo1.maven.org. how can i change that?

pls help!

~manchi


On Jan 9, 2006, at 1:41 PM, Allan Ramirez wrote:


Hi there,

Copy your wagon-ssh-external jar to your %M2_HOME%/lib.

Hope this works.

-allan

Man-Chi Leung wrote:


hi Dan,

thx for advice.

according to your email: I checked out maven-deploy-plugin from svn
$svn co https://svn.apache.org/repos/asf/maven/plugins/trunk/
maven- deploy-plugin maven-deploy-plugin
$mvn install<---ok!


$more ~/.m2/settings.xml
  

  my-repository
  myname
  

  


$cd ~/Java/junitperf-1.9.1/lib
$mvn deploy:deploy-file -U -DgroupId=com.clarkware.junitperf -
DartifactId=junitperf -Dversion=1.9.1 -Dpackaging=jar -
Dfile=junitperf-1.9.1.jar -DrepositoryId=my-repository -
Durl=scpexe:// mydomain/export/home/myname/maven-proxy/target/repo

[INFO] [deploy:deploy-file]
[INFO]
--- 
--

--- 
[ERROR] BUILD ERROR
[INFO]
--- 
--

--- 
[INFO] Error deploying artifact: Unsupported Protocol: 'scpexe':
Cannot find wagon which supports the requested protocol: scpexe
Component descriptor cannot be found in the component repository:
org.apache.maven.wagon.Wagonscpexe.

do u know what was the problem?

~manchi


On Jan 4, 2006, at 3:15 PM, dan tran wrote:


you definitely want to use deploy:file-deploy to do it, using
install:install-file your maven-proxy host does
not deploy all meta data files.

Also, you need to configure your maven-proxy as your mirrow.   
using

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

You also need to configure a default profile in your
settings.xml  to point
plugin repository to your maven-proxy host

Hope this helps.

-Dan



On 1/4/06, dan tran <[EMAIL PROTECTED]> wrote:



You seem to have 2 separate problems maven-proxy's configuration
and
deploy:deploy-file.

Let's try to get your deploy:deploy-file working first.

What problem do you have right now?

-D


 On 1/4/06, Man-Chi Leung <[EMAIL PROTECTED]> wrote:



since there is a problem doing remote jar deployment.
now, what I can do is to login to my maven-proxy server, and
perform
jar installation locally !


Should I do this


ON My Maven-Proxy

there are 2 types of library that I need to put in my local
maven- proxy.


* firstly, I also install maven 2.0.1 on my maven-proxy  
serve

Re: Exception with Maven under MacOS X 10.4

2006-01-10 Thread Man-Chi Leung

I am running PB with 10.4 too but I do not have problem like yours

my java -version:
java version "1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-64)
Java HotSpot(TM) Client VM (build 1.5.0_05-43, mixed mode, sharing)

I am  able to execute this without a problem
$ mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app

another suggestion:
u may checkout maven 2.1-SNAPSHOT and give a try

~manchi

On Jan 11, 2006, at 12:22 AM, Romain Rouvoy wrote:

I updated my environment to remove dots, spaces and carriage  
returns but the exception is still raised:

$ export
declare -x ANT_HOME="/Users/rouvoy/Developer/ant"
declare -x HOME="/Users/rouvoy"
declare -x JAVA_HOME="/Users/rouvoy/Developer/java"
declare -x M2_HOME="/Users/rouvoy/Developer/maven"
declare -x MAVEN_HOME="/Users/rouvoy/Developer/maven"
declare -x PATH="/Users/rouvoy/Developer/maven/bin:/Users/rouvoy/ 
Developer/ant/bin:/Users/rouvoy/Developer/java/bin:/usr/local/bin:/ 
usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/teTeX/bin/ 
powerpc-apple-darwin-current"


At the following address (http://jira.codehaus.org/browse/ 
MNG-1819), I found this comment:

Comment by Julien Dubois [17/Dec/05 10:08 AM]
This is also a bug on Mac OS X.

I tried to clean up my environement variables as said in this  
thread (no dots, no carriage returns, no spaces), without any  
success.
But the bug is considered as closed. Thus anyone can explain me how  
to make it run ?


Romain


Le 10 janv. 06 à 15:53, Romain Rouvoy a écrit :

Hi,

Recently, I installed Maven 2.0.1 on my PowerBook running MacOS X  
10.4 but I encountered some troubles :-/.


I use the J2SDK 5.0 provided by Apple.

$ java -version
java version "1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-83)
Java HotSpot(TM) Client VM (build 1.5.0_05-48, mixed mode, sharing)


Environment variable seems to be ok (according to maven  
documentation):

$ export
declare -x ANT_HOME="/Users/rouvoy/Developer/apache-ant-1.6.5"
declare -x JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/ 
Versions/1.5/Home"

declare -x M2_HOME="/Users/rouvoy/Developer/maven-2.0.1"
declare -x MAVEN_HOME="/Users/rouvoy/Developer/maven-2.0.1"
declare -x PATH="/Users/rouvoy/Developer/maven-2.0.1/bin:/Users/ 
rouvoy/Developer/apache-ant-1.6.5/bin:/System/Library/Frameworks/ 
JavaVM.framework/Versions/1.5/Home/bin:/usr/local/bin:/usr/local/ 
bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/teTeX/bin/powerpc- 
apple-darwin-current"

declare -x SHELL="/bin/bash"


Displaying maven version raises no exception:

$ mvn --version
Maven version: 2.0.1


But, executing a basic command fails :-( (executing a simple "mvn"  
command fails also):
$ mvn archetype:create -DgroupId=com.mycompany.app - 
DartifactId=my-app
[WARNING] Failed to initialize environment variable resolver.  
Skipping environment substitution in settings.

[INFO] Scanning for projects...
[INFO]  
 


[ERROR] FATAL ERROR
[INFO]  
 


[INFO] String index out of range: -1
[INFO]  
 


[INFO] Trace
java.lang.StringIndexOutOfBoundsException: String index out of  
range: -1

at java.lang.String.substring(String.java:1768)
at  
org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars 
(CommandLineUtils.java:188)
at  
org.codehaus.plexus.util.interpolation.EnvarBasedValueSource.( 
EnvarBasedValueSource.java:16)
at  
org.apache.maven.project.interpolation.RegexBasedModelInterpolator.i 
nterpolate(RegexBasedModelInterpolator.java:86)
at  
org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLo 
gic(DefaultMavenProjectBuilder.java:725)
at  
org.apache.maven.project.DefaultMavenProjectBuilder.buildStandaloneS 
uperProject(DefaultMavenProjectBuilder.java:1334)
at org.apache.maven.DefaultMaven.getSuperProject 
(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.doExecute 
(DefaultMaven.java:281)
at org.apache.maven.DefaultMaven.execute 
(DefaultMaven.java:115)

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

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

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]  
---

[m2] APT question

2006-01-10 Thread John Wells

How do I get the top line of a table to be "headers" for that column
(for example, when explaining what the goals of a plugin are?)

I can't seem to figure out from the APT document how this is done???

John Wells (Aziz)
[EMAIL PROTECTED]

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



Re: forced build exception

2006-01-10 Thread Emmanuel Venisse

What is your continuum version?

Michael Fiedler a écrit :

Fyi.  This build is for a maven2 plug-in used by other modules in the
build.
 
javax.jdo.JDODataStoreException: Insert request failed: INSERT INTO

PROJECTDEPENDENCY (PROJECTDEPENDENCY_ID,ARTIFACT_ID,VERSION,GROUP_ID)
VALUES (?,?,?,?)
at
org.jpox.store.rdbms.request.InsertRequest.execute(InsertRequest.java:32
9)
at
org.jpox.store.rdbms.table.ClassTable.insert(ClassTable.java:1774)
at org.jpox.store.StoreManager.insert(StoreManager.java:721)
at
org.jpox.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.
java:3066)
at
org.jpox.state.StateManagerImpl.makePersistent(StateManagerImpl.java:303
9)
at
org.jpox.state.StateManagerImpl.attachCopy(StateManagerImpl.java:3452)
at
org.jpox.AbstractPersistenceManager.attachCopy(AbstractPersistenceManage
r.java:1644)
at org.jpox.sco.List.attachCopy(List.java:326)
at
org.jpox.state.AttachFieldManager.storeObjectField(AttachFieldManager.ja
va:107)
at
org.jpox.state.StateManagerImpl.providedObjectField(StateManagerImpl.jav
a:2394)
at
org.apache.maven.continuum.model.project.Project.jdoProvideField(Project
.java)
at
org.apache.maven.continuum.model.project.Project.jdoProvideFields(Projec
t.java)
at
org.jpox.state.StateManagerImpl.provideFields(StateManagerImpl.java:2732
)
at
org.jpox.state.StateManagerImpl.internalAttachCopy(StateManagerImpl.java
:3518)
at
org.jpox.state.StateManagerImpl.attachCopy(StateManagerImpl.java:3446)
at
org.jpox.AbstractPersistenceManager.attachCopy(AbstractPersistenceManage
r.java:1644)
at
org.jpox.AbstractPersistenceManager.attachCopy(AbstractPersistenceManage
r.java:1660)
at
org.apache.maven.continuum.store.JdoContinuumStore.updateObject(JdoConti
nuumStore.java:679)
at
org.apache.maven.continuum.store.JdoContinuumStore.updateProject(JdoCont
inuumStore.java:841)
at
org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.exe
cute(ExecuteBuilderContinuumAction.java:94)
at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(
DefaultBuildController.java:171)
at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.exec
uteTask(BuildProjectTaskExecutor.java:53)
at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Execut
orRunnable.run(ThreadedTaskQueueExecutor.java:103)
at java.lang.Thread.run(Thread.java:595)
NestedThrowablesStackTrace:
ERROR 40001: A lock could not be obtained due to a deadlock, cycle of
locks and waiters is:
Lock : ROW, PROJECTDEPENDENCY, (390,37)
  Waiting XID : {2309691, X} , SA, INSERT INTO PROJECTDEPENDENCY
(PROJECTDEPENDENCY_ID,ARTIFACT_ID,VERSION,GROUP_ID) VALUES (?,?,?,?)
  Granted XID : {2309595, X} 
Lock : ROW, PROJECT, (2,35)

  Waiting XID : {2309595, S} , SA, UPDATE PROJECTDEPENDENCY SET
DEPENDENCIES_ID_OWN = ?,DEPENDENCIESINTEGER_IDX = ? WHERE
PROJECTDEPENDENCY_ID = ?
  Granted XID : {2309691, X} 
. The selected victim is XID : 2309691.

at
org.apache.derby.iapi.error.StandardException.newException(Unknown
Source)
at
org.apache.derby.impl.services.locks.Deadlock.buildException(Unknown
Source)
at
org.apache.derby.impl.services.locks.LockSet.lockObject(Unknown Source)
at
org.apache.derby.impl.services.locks.SinglePool.lockAnObject(Unknown
Source)
at
org.apache.derby.impl.services.locks.SinglePool.lockObject(Unknown
Source)
at
org.apache.derby.impl.store.raw.xact.RowLocking3.lockRecordForWrite(Unkn
own Source)
at
org.apache.derby.impl.store.access.heap.HeapController.lockRow(Unknown
Source)
at
org.apache.derby.impl.store.access.heap.HeapController.lockRow(Unknown
Source)
at
org.apache.derby.impl.store.access.btree.index.B2IRowLocking3.lockRowOnP
age(Unknown Source)
at
org.apache.derby.impl.store.access.btree.index.B2IRowLocking3.lockNonSca
nRowOnPage(Unknown Source)
at
org.apache.derby.impl.store.access.btree.BTreeController.doIns(Unknown
Source)
at
org.apache.derby.impl.store.access.btree.BTreeController.insert(Unknown
Source)
at
org.apache.derby.impl.store.access.btree.index.B2IController.insert(Unkn
own Source)
at
org.apache.derby.impl.sql.execute.IndexChanger.insertAndCheckDups(Unknow
n Source)
at
org.apache.derby.impl.sql.execute.IndexChanger.doInsert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insert(Unknown
Source)
at
org.apache.derby.impl.sql.execute.IndexSetChanger.insert(Unknown Source)
at
org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(Unknown
Source)
at
org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unkno
wn Source)
at
org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)
at
org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown
Source)

RE: [m2] Using array types in mojo configuration

2006-01-10 Thread John Wells
It seems the trick I was missing is the following:

1.  Make the variable in the Java file be plural (end in "s").
2.  Then use the singular multiple times wrapped in the plural tag value

This really should be documented somewhere.  All the documentation says
today is that you can use multiple tag names, so I assumed it was
something like this:

value1
value2

Instead it is


  value1
  value2


Thanks for the help.

John Wells (Aziz)
[EMAIL PROTECTED]


-Original Message-
From: dan tran [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 10, 2006 11:36 AM
To: Maven Users List
Subject: Re: [m2] Using array types in mojo configuration

since you have OsgiManifest and Paths are at the same level it should be
like this


   
   .  your down bean's attribute here
  

  
 one
 two
  



-D

On 1/10/06, John Wells <[EMAIL PROTECTED]> wrote:
>
> Lets say I have a mojo with something like this:
>
> /**
> * @parameter
> */
> private OsgiManifest osgiManifest;
>
> Furthermore, lets say in osgiManifest I have the following:
>
> /**
> * @parameter
> */
> private String path[];
>
> public void setPath(String[] paths) { this.path = path; }
> public String[] getPath() { return path; }
>
> How do I represent the [] parameter in the pom file using this plugin.
> This does not work:
>
> 
> 
>one
>two
> 
> 
>
> Any help is appreciated.
>
> John Wells (Aziz)
> [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Trouble in generating source files

2006-01-10 Thread Karthik V
Ohh.. makes sense now.. thank u so much.


On 1/10/06, Allison, Bob <[EMAIL PROTECTED]> wrote:
>
> For an example, let's say you have a Java source at
> src/main/java/com/junk/JunkBean.java
>
> For it to compile correctly, it needs to have a "package com.junk;" in
> it, right?
>
> When XDoclet walks the source starting at "src/main", it find a source
> file that identifies itself as being in package "com.junk" but it finds
> the source in package "java.com.junk".  Since the two don't match,
> XDoclet assumes that there is a serious problem with the source file and
> ignores it.
>
> -Original Message-
> From: Karthik V [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 10, 2006 12:48
> To: Maven Users List
> Subject: Re: Trouble in generating source files
>
>
> weird, but i found the answer myself ...  changed the line
> 
>
> to
> 
>
> and it worked. What I dont understand is, why doesnt the line
> 
>
> search inside the main folder and locate the source files? Does it
> really
> make a difference when I add the subfolder "java" when I use **/** ?
>
>
>
> On 1/10/06, Karthik V <[EMAIL PROTECTED]> wrote:
> >
> > Below is a snippet from my m2 project pom. I used this fine in m1 (in
> the
> > form of project.properties) and generated source using xdoclet. But
> now, I
> > dont get a single java file, though I get some required xml files.
> >
> >
> > generate-sources
> > 
> >  xdoclet
> > 
> > 
> > 
> >   > ejbSpec="2.0"
> > excludedtags="@version,@author"
> > addedtags="@xdoclet-generated at ${TODAY}"
> > destdir="target/gen-src">
> >
> > 
> > 
> > 
> >
> > 
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> >
> >
> > The output goes like this -
> >
> >
> > [INFO] [xdoclet:xdoclet {execution: default}]
> > [INFO] Initializing DocletTasks!!!
> > [INFO] Executing tasks
> > INFO:Some classes refer to other classes that were not found among
> the
> > sources or on the classpath.
> >  (Perhaps the referred class doesn't exist? Hasn't been
> generated
> > yet?)
> >  The referring classes do not import any fully qualified
> classes
> > matching these classes.
> >  However, since no packages are imported, xjavadoc has assumed
> > that the referred classes
> >  belong to the same package as the referring class. The
> classes
> > are:
> >
> >
> > (this goes on with some lines like)
> > C:\src\main\java\abc\def\pojo\ABC.java --> RequestObject qualified to
> > abc.def.pojo.RequestObject
> >
> >
> > [INFO] Executed tasks
> > [INFO] [resources:resources]
> > [INFO] Using default encoding to copy filtered resources.
> >
> >
> > Then it goes on to the compiler:compile task, breaking the build.
> >
> > Can some one help?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Dependency and POM's with 3rd party Jars in maven 2

2006-01-10 Thread dan tran
did you use deploy:deploy-file ( still in SVN) to deploy your artifacts to
your internal remote repository?

did you add your internal repository entry into your root pom?

-D



On 1/10/06, Todd Nine <[EMAIL PROTECTED]> wrote:
>
> I am having some trouble managing an internal repository usilizing
> maven2.  Below is an outline of what I would like to do.
>
> 1. Import 20 3rd party jars for the datalex program into our internal
> repository
> 2. Set up a dependency so that pom of the main datalex jar will
> contain all of its required jars.
>
> I can install the artifacts locally using
>
> mvn install:install-file
>
> However, when I can't copy my local group datalex to our internal
> repository, the clients will not download the jars.  How can I get the
> jars into our local repository with a valid POM file, and how can I
> create the transitive dependencies among 3rd party jars?
>
> Thanks,
> Todd
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


[M2] profiles use case: compilation based off of jdk version

2006-01-10 Thread Ruel Loehr
I have a use case which I am trying to flesh out, but so far I can 
Only come up with "kludgy" solutions.   Perhaps someone else has a
better idea of how to accomplish this.

For a particular project I wish to build it differently based upon the
jdk version which is used.

Use Case:

Java14:   
  1)  Compile all source in default source folder and output to
targets/classes.  The source and target options should be set to "1.4".

Java15:
  1)  Compile all source in default source folder and output to
targets/classes.  The source and target options should be set to "1.4".
  2)  Compile all source in /java15 source folder and output to
targets/classes15.   The source and target options should be set to
"1.5".

>From my standpoint, two compilations need to take place.  The first
(java14) would take place in the standard fashion, as it always need to
happen.  The second (java15) would be housed with a jdk15 activated
profile.   Experimentation shows that by defining the compiler plugin
(snippet below) within a profile will not kick it off (if compilation
has already occurred.


Are there any ideas on how this might be achieved?





  
 jdk15
 
 
1.5
 
 
 


org.apache.maven.plugins
maven-compiler-plugin

1.5
1.5


  
  
 
   
  
   


Ruel Loehr
JBoss QA
 

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



Re: [m2] junit-test-reports with surefire-report:report

2006-01-10 Thread Yann Le Du
Brett,

I failed to find the issue in JIRA. Which one is it ?

Thx,
--
Yann

2006/1/10, Jens Zastrow <[EMAIL PROTECTED]>:
>
> Some idea when this fill be fixed?
> Running unit-tests as simple as possible - like >mvn test - is an
> important aspect why i use maven1/2,
> so its a little bit difficult to understand why even such elementary
> things like the test-report-generation does not
> work without "hacking" maven 2.0.1. :-(
>
> - Jens
>
> -Original Message-
> From: Brett Porter [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 10, 2006 2:37 PM
> To: Maven Users List
> Subject: Re: [m2] junit-test-reports with surefire-report:report
>
> It's actually a bug in hte surefire report plugin, which has already been
> filed. It should be setting this variable automatically.
>
> - Brett
>
> On 1/11/06, Piotr Bzdyl <[EMAIL PROTECTED]> wrote:
> > Hello,
> > > [INFO]
> > > 
> > > 
> > > [ERROR] BUILD ERROR
> > > [INFO]
> > > 
> > > 
> > > [INFO] There are some test failure.
> > >
> > > Because of some failed junit-tests the whole maven build fails,
> > > withour generating any Site or report as should be!?
> > > Only if there are no junit-errors/failures the site and report is
> generated.
> > >
> > > I guess that i´am doing something definitly wrong
> > > Help needed.
> > >
> > Check:
> > http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html,
> > parameter |testFailureIgnore.
> >
> > Best regards,
> > Piotrek
> > |
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: Trouble in generating source files

2006-01-10 Thread Allison, Bob
For an example, let's say you have a Java source at
src/main/java/com/junk/JunkBean.java

For it to compile correctly, it needs to have a "package com.junk;" in
it, right?

When XDoclet walks the source starting at "src/main", it find a source
file that identifies itself as being in package "com.junk" but it finds
the source in package "java.com.junk".  Since the two don't match,
XDoclet assumes that there is a serious problem with the source file and
ignores it.

-Original Message-
From: Karthik V [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 10, 2006 12:48
To: Maven Users List
Subject: Re: Trouble in generating source files


weird, but i found the answer myself ...  changed the line


to


and it worked. What I dont understand is, why doesnt the line


search inside the main folder and locate the source files? Does it
really
make a difference when I add the subfolder "java" when I use **/** ?



On 1/10/06, Karthik V <[EMAIL PROTECTED]> wrote:
>
> Below is a snippet from my m2 project pom. I used this fine in m1 (in
the
> form of project.properties) and generated source using xdoclet. But
now, I
> dont get a single java file, though I get some required xml files.
>
>
> generate-sources
> 
>  xdoclet
> 
> 
> 
>   ejbSpec="2.0"
> excludedtags="@version,@author"
> addedtags="@xdoclet-generated at ${TODAY}"
> destdir="target/gen-src">
>
> 
> 
> 
>
> 
>
> 
> 
> 
> 
> 
> 
> 
>
>
>
> The output goes like this -
>
>
> [INFO] [xdoclet:xdoclet {execution: default}]
> [INFO] Initializing DocletTasks!!!
> [INFO] Executing tasks
> INFO:Some classes refer to other classes that were not found among
the
> sources or on the classpath.
>  (Perhaps the referred class doesn't exist? Hasn't been
generated
> yet?)
>  The referring classes do not import any fully qualified
classes
> matching these classes.
>  However, since no packages are imported, xjavadoc has assumed
> that the referred classes
>  belong to the same package as the referring class. The
classes
> are:
>
>
> (this goes on with some lines like)
> C:\src\main\java\abc\def\pojo\ABC.java --> RequestObject qualified to
> abc.def.pojo.RequestObject
>
>
> [INFO] Executed tasks
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
>
>
> Then it goes on to the compiler:compile task, breaking the build.
>
> Can some one help?

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



Re: [m2] jetty6 doesn't get downloaded

2006-01-10 Thread Srepfler Srgjan

Ralph Pöllath wrote:


On 10.01.2006, at 16:56, Srepfler Srgjan wrote:


I'm having problems in using jetty, I've declared it in the pom:

   
   org.mortbay.jetty
   maven-jetty6-plugin
   1.0
   
  10
  /jspArt
   
   

and have added the montbay repo to settings.xml
however the plugin that it searches is  
org.apache.maven.plugins:maven-jetty6-plugin, what might be the  
problem?

I use maven 2.0.1



Did you add the mortbay repo as a pluginRepository?

I used to have the followinng in my POM, and it worked:



mortbay-repo
mortbay-repo
http://www.mortbay.org/maven2/snapshot



I'm not currently using it anymore, so I can't make any guarantees.

Cheers,
-Ralph.


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



Yes, it's in settings.xml
I think it's not that the repos or artifacts are not there but the 
artifact itself is wrongly identified 
(org.apache.maven.plugins:maven-jetty6-plugin which is clearly a wrong 
groupid)
I've tried the latest maven snapshot from zones and the problem is still 
there.

Also I tried it with a clean webapp made from the web archetype.

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



Re: M2 - add custom classpath to plugin compiler:compile

2006-01-10 Thread Stephen Duncan
Well, generally I'd prefer to put the jars into a shared internal m2
repository, and then just refer to them with provided scope as I
mentioned.  This allows your pom and build to be shared more easily.

I haven't used system scope or systemPath personally.  But I assume it
works like this:


  thegroup
  theartifact
  theversion
  system
  /path/to/websphere/lib/file


with preferably using some shared property to reference the path to
where websphere is installled, or something.  But, again, I wouldn't
use system scope, I would put the jars into a shared repository and
use provided scope.

-Stephen




On 1/10/06, Sanjay Choudhary <[EMAIL PROTECTED]> wrote:
> Provided is similar to system.  For system we have  , how do I
> specify the path for
> provided?  Or Will  I need to copy the files to maven m2 repository?
>
> It will be helpful if someone can provide me with a dependency block from
> their pom.xml.
>
> Thanks,
> Sanjay
>
>
> On 1/10/06, Stephen Duncan <[EMAIL PROTECTED]> wrote:
> >
> > The standard way to do this is to depend on those jars with
> > provided
> >
> > -Stephen
> >
> > On 1/10/06, Sanjay Choudhary <[EMAIL PROTECTED]> wrote:
> > > Hi All,
> > >
> > > We have several JARS that are present in Websphere Lib folder.  In my
> > > previous project we copied all these jars in maven local repository (we
> > were
> > > using maven 1.0.2).   Then defined each dependency in project.xml (was
> > very
> > > tedious :-(   )
> > >
> > > In M2, is there a way to set the classpath while performing
> > compile?  Don't
> > > need these entries in the Manifest.
> > >
> > > When we used Ant , we used to set the classpath, which used to include
> > all
> > > the jars in Websphere Lib folder. Need something similar.
> > >
> > > Thanks,
> > > Sanjay
> > >
> > >
> >
> >
> > --
> > Stephen Duncan Jr
> > www.stephenduncanjr.com
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


--
Stephen Duncan Jr
www.stephenduncanjr.com

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



Not possible to add multiple test resources

2006-01-10 Thread Bengt-Erik Fröberg
Hi again!
I’ve developed a taste for this mailing list…

Is it really true that this is not possible!?


   src/test/resources
   src/main/webapp/WEB-INF


M2 chokes on it... kinda' takes the greatness out of XML, don't you think?

I need to add another directory to the test classpath how do I do?
(Beginning to REALLY look forward to a comprehensive Maven2 book)

Regards,

/B-E




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



Re: Trouble in generating source files

2006-01-10 Thread Karthik V
weird, but i found the answer myself ...  changed the line


to


and it worked. What I dont understand is, why doesnt the line


search inside the main folder and locate the source files? Does it really
make a difference when I add the subfolder "java" when I use **/** ?



On 1/10/06, Karthik V <[EMAIL PROTECTED]> wrote:
>
> Below is a snippet from my m2 project pom. I used this fine in m1 (in the
> form of project.properties) and generated source using xdoclet. But now, I
> dont get a single java file, though I get some required xml files.
>
>
> generate-sources
> 
>  xdoclet
> 
> 
> 
>   ejbSpec="2.0"
> excludedtags="@version,@author"
> addedtags="@xdoclet-generated at ${TODAY}"
> destdir="target/gen-src">
>
> 
> 
> 
>
> 
>
> 
> 
> 
> 
> 
> 
> 
>
>
>
> The output goes like this -
>
>
> [INFO] [xdoclet:xdoclet {execution: default}]
> [INFO] Initializing DocletTasks!!!
> [INFO] Executing tasks
> INFO:Some classes refer to other classes that were not found among the
> sources or on the classpath.
>  (Perhaps the referred class doesn't exist? Hasn't been generated
> yet?)
>  The referring classes do not import any fully qualified classes
> matching these classes.
>  However, since no packages are imported, xjavadoc has assumed
> that the referred classes
>  belong to the same package as the referring class. The classes
> are:
>
>
> (this goes on with some lines like)
> C:\src\main\java\abc\def\pojo\ABC.java --> RequestObject qualified to
> abc.def.pojo.RequestObject
>
>
> [INFO] Executed tasks
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
>
>
> Then it goes on to the compiler:compile task, breaking the build.
>
> Can some one help?


forced build exception

2006-01-10 Thread Michael Fiedler
Fyi.  This build is for a maven2 plug-in used by other modules in the
build.
 
javax.jdo.JDODataStoreException: Insert request failed: INSERT INTO
PROJECTDEPENDENCY (PROJECTDEPENDENCY_ID,ARTIFACT_ID,VERSION,GROUP_ID)
VALUES (?,?,?,?)
at
org.jpox.store.rdbms.request.InsertRequest.execute(InsertRequest.java:32
9)
at
org.jpox.store.rdbms.table.ClassTable.insert(ClassTable.java:1774)
at org.jpox.store.StoreManager.insert(StoreManager.java:721)
at
org.jpox.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.
java:3066)
at
org.jpox.state.StateManagerImpl.makePersistent(StateManagerImpl.java:303
9)
at
org.jpox.state.StateManagerImpl.attachCopy(StateManagerImpl.java:3452)
at
org.jpox.AbstractPersistenceManager.attachCopy(AbstractPersistenceManage
r.java:1644)
at org.jpox.sco.List.attachCopy(List.java:326)
at
org.jpox.state.AttachFieldManager.storeObjectField(AttachFieldManager.ja
va:107)
at
org.jpox.state.StateManagerImpl.providedObjectField(StateManagerImpl.jav
a:2394)
at
org.apache.maven.continuum.model.project.Project.jdoProvideField(Project
.java)
at
org.apache.maven.continuum.model.project.Project.jdoProvideFields(Projec
t.java)
at
org.jpox.state.StateManagerImpl.provideFields(StateManagerImpl.java:2732
)
at
org.jpox.state.StateManagerImpl.internalAttachCopy(StateManagerImpl.java
:3518)
at
org.jpox.state.StateManagerImpl.attachCopy(StateManagerImpl.java:3446)
at
org.jpox.AbstractPersistenceManager.attachCopy(AbstractPersistenceManage
r.java:1644)
at
org.jpox.AbstractPersistenceManager.attachCopy(AbstractPersistenceManage
r.java:1660)
at
org.apache.maven.continuum.store.JdoContinuumStore.updateObject(JdoConti
nuumStore.java:679)
at
org.apache.maven.continuum.store.JdoContinuumStore.updateProject(JdoCont
inuumStore.java:841)
at
org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.exe
cute(ExecuteBuilderContinuumAction.java:94)
at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(
DefaultBuildController.java:171)
at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.exec
uteTask(BuildProjectTaskExecutor.java:53)
at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Execut
orRunnable.run(ThreadedTaskQueueExecutor.java:103)
at java.lang.Thread.run(Thread.java:595)
NestedThrowablesStackTrace:
ERROR 40001: A lock could not be obtained due to a deadlock, cycle of
locks and waiters is:
Lock : ROW, PROJECTDEPENDENCY, (390,37)
  Waiting XID : {2309691, X} , SA, INSERT INTO PROJECTDEPENDENCY
(PROJECTDEPENDENCY_ID,ARTIFACT_ID,VERSION,GROUP_ID) VALUES (?,?,?,?)
  Granted XID : {2309595, X} 
Lock : ROW, PROJECT, (2,35)
  Waiting XID : {2309595, S} , SA, UPDATE PROJECTDEPENDENCY SET
DEPENDENCIES_ID_OWN = ?,DEPENDENCIESINTEGER_IDX = ? WHERE
PROJECTDEPENDENCY_ID = ?
  Granted XID : {2309691, X} 
. The selected victim is XID : 2309691.
at
org.apache.derby.iapi.error.StandardException.newException(Unknown
Source)
at
org.apache.derby.impl.services.locks.Deadlock.buildException(Unknown
Source)
at
org.apache.derby.impl.services.locks.LockSet.lockObject(Unknown Source)
at
org.apache.derby.impl.services.locks.SinglePool.lockAnObject(Unknown
Source)
at
org.apache.derby.impl.services.locks.SinglePool.lockObject(Unknown
Source)
at
org.apache.derby.impl.store.raw.xact.RowLocking3.lockRecordForWrite(Unkn
own Source)
at
org.apache.derby.impl.store.access.heap.HeapController.lockRow(Unknown
Source)
at
org.apache.derby.impl.store.access.heap.HeapController.lockRow(Unknown
Source)
at
org.apache.derby.impl.store.access.btree.index.B2IRowLocking3.lockRowOnP
age(Unknown Source)
at
org.apache.derby.impl.store.access.btree.index.B2IRowLocking3.lockNonSca
nRowOnPage(Unknown Source)
at
org.apache.derby.impl.store.access.btree.BTreeController.doIns(Unknown
Source)
at
org.apache.derby.impl.store.access.btree.BTreeController.insert(Unknown
Source)
at
org.apache.derby.impl.store.access.btree.index.B2IController.insert(Unkn
own Source)
at
org.apache.derby.impl.sql.execute.IndexChanger.insertAndCheckDups(Unknow
n Source)
at
org.apache.derby.impl.sql.execute.IndexChanger.doInsert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insert(Unknown
Source)
at
org.apache.derby.impl.sql.execute.IndexSetChanger.insert(Unknown Source)
at
org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(Unknown
Source)
at
org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unkno
wn Source)
at
org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)
at
org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown
Source)
at
org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Un

Re: Embedded error: Could not create task or type of type: scriptdef.

2006-01-10 Thread Yann Le Du
Hi Hassan,

If this is not the case, try and move your  to  :
~  
~
~  maven-antrun-plugin
~  ...
~  
~
~  bsf
~  bsf
~  2.3.0
~
~...

--
Yann

2006/1/10, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> Hi
>
> I'm trying to use a non-standard Ant task (scriptdef), and it's giving me
> this error:
> Embedded error: Could not create task or type of type: scriptdef.
>
> The dependency jar is in my pom:
> 
> bsf
> bsf
> 2.3.0
> 
>
>
> Any help is highly highly appreciated.
> Thanks
> Haz
>


Dependency and POM's with 3rd party Jars in maven 2

2006-01-10 Thread Todd Nine
I am having some trouble managing an internal repository usilizing
maven2.  Below is an outline of what I would like to do.

1. Import 20 3rd party jars for the datalex program into our internal repository
2. Set up a dependency so that pom of the main datalex jar will
contain all of its required jars.

I can install the artifacts locally using

mvn install:install-file

However, when I can't copy my local group datalex to our internal
repository, the clients will not download the jars.  How can I get the
jars into our local repository with a valid POM file, and how can I
create the transitive dependencies among 3rd party jars?

Thanks,
Todd

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



Re: [m2] jetty6 doesn't get downloaded

2006-01-10 Thread Ralph Pöllath

On 10.01.2006, at 16:56, Srepfler Srgjan wrote:

I'm having problems in using jetty, I've declared it in the pom:

   
   org.mortbay.jetty
   maven-jetty6-plugin
   1.0
   
  10
  /jspArt
   
   

and have added the montbay repo to settings.xml
however the plugin that it searches is  
org.apache.maven.plugins:maven-jetty6-plugin, what might be the  
problem?

I use maven 2.0.1


Did you add the mortbay repo as a pluginRepository?

I used to have the followinng in my POM, and it worked:



mortbay-repo
mortbay-repo
http://www.mortbay.org/maven2/snapshot



I'm not currently using it anymore, so I can't make any guarantees.

Cheers,
-Ralph.


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



Problem with C# and M2

2006-01-10 Thread Stevenson, Chris
Gents,
 
I wanted to address this to you directly as is a bit of a difficult problem
which I'd really like to solve. Its currently blocking my finishing touches
to the dotnet support for maven whcih I'd really like to get out and
working.
 
I've filed a bug   already about
this but I was hoping that if I emailed you guys perhaps with a couple of
pointers I could create a fix myself?
 
The problem I'm having is that when I have an artifact with a dependency in
its pom of type "system" which also has a more than two full stops in the
name. The example I 'm using is for the C# plugin stuff but I am convinced
that it would do this for everything with more than two full stops in the
name.
 
ex
 
   
 System
 Remoting
 1.1
 dotnet-library
 system
 ${dotnet.home}/System.Runtime.Remoting.dll

 
 
When I compile this project I have no problems. However if I reference this
project (and its pom) from another project then m2 will try and load this
dll through transitive dependencies, I get an error message like this:
 
[INFO] Using default encoding to copy filtered resources.
[DEBUG] com.javaforge.maven-csharp:Maverick:dotnet-library:1.2.0.0 (selected
for null)
[DEBUG]   System:System.Web:dotnet-library:1.1 (selected for system)
[DEBUG]   System:System:dotnet-library:1.1 (selected for system)
[DEBUG]   System:System.Data:dotnet-library:1.1 (selected for system)
[DEBUG]   System:System.Xml:dotnet-library:1.1 (selected for system)
[DEBUG]
System:System.Runtime.Serialization.Formatters.Soap:dotnet-library:1.1
(selected for system)
[DEBUG]   nunit:nunit.console:dotnet-exe:2.2 (selected for test)
[DEBUG]   com.javaforge.maven-csharp:log4net:dotnet-library:1.2.9-beta
(selected for compile)
[DEBUG] System:System.Web:dotnet-library:1.1 (selected for system)
[DEBUG] System:System:dotnet-library:1.1 (selected for system)
[DEBUG] System:System.Data:dotnet-library:1.1 (selected for system)
[DEBUG] System:System.Xml:dotnet-library:1.1 (selected for system)
[DEBUG] System:Remoting:dotnet-library:1.1 (selected for system)
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.
 
GroupId: System
ArtifactId: Remoting
Version: 1.1
 
Reason: System artifact: System:Remoting:dotnet-library:1.1 not found in
path: ${dotnet.home}\System.Runtime.Remoting.dll
  System:Remoting:1.1:dotnet-library
 
The default artifact resolver throws an error saying it cannot find the
artifact. My guess is that this is because it is trying to package-ise the
artifact Id so instead of looking in
${dotnet.home}\System.Runtime.Remoting.dll It is actually looking in
${dotnet.home}\System\Runtime.Remoting.dll. 
 
Where I'm struggling really is a place to start, would it be possible for me
to specify my own ArtifactResolver that I could tell it not too package-ise
the file names? If so does anyone have any idea how I could do that, can I
tell plexus in my components.xml to load a different ArtifactResolver?
 
I don't mind doing all the legwork to get it fixed, just if anyone could
give me an idea of how to start that would be superb. That would mean that I
could get the C# up onto ibiblio and people using it. I've already fleshed
out the docco   and am working on adding
more. 
 
Any help massively appreciated,
 
Chris
 
 

Chris Stevenson

Dresdner Kleinwort Wasserstein 


  

 --



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




Re: [m2] Using array types in mojo configuration

2006-01-10 Thread dan tran
since you have OsgiManifest and Paths are at the same level it should be
like this


   
   .  your down bean's attribute here
  

  
 one
 two
  



-D

On 1/10/06, John Wells <[EMAIL PROTECTED]> wrote:
>
> Lets say I have a mojo with something like this:
>
> /**
> * @parameter
> */
> private OsgiManifest osgiManifest;
>
> Furthermore, lets say in osgiManifest I have the following:
>
> /**
> * @parameter
> */
> private String path[];
>
> public void setPath(String[] paths) { this.path = path; }
> public String[] getPath() { return path; }
>
> How do I represent the [] parameter in the pom file using this plugin.
> This does not work:
>
> 
> 
>one
>two
> 
> 
>
> Any help is appreciated.
>
> John Wells (Aziz)
> [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Maven 2 and Ant classpath issue

2006-01-10 Thread hassan . h . sajjad
Hi Chris

Had my first go at the lists, but hasn't been very lucky there :(

I first tried this:




It didn't work, so now I'm directly embedding my ant script inside the 
pom.xml. Which is:

 





.setNewProperty(attributes.get("property"),
.get("value").toLowerCase());




gw.name=${gw.name}

gw.name.lc=${gw.name.lc}

filtering...









filetering complete.




The ant script is tested and works well standalone. 

Much appreciate your help.

Hassan












Chris Berry <[EMAIL PROTECTED]>
10/01/2006 15:37
Please respond to "Maven Users List"

 
To: Maven Users List 
cc: 
Subject:Re: Maven 2 and Ant classpath issue


Hassan,
Please search the list archives -- this has been covered many times
recently.
If that doesn't answer your question, then please post the POM snippet 
that
shows the ant call. (You may have forgotten inheritRefs="true")
Cheers,
-- Chris

On 1/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
>
> Hi
>
> I'm using Maven 2.0.1 and trying to use a non-standard Ant task
> (scriptdef), in my pom.xml. It's giving me
> this error:
> Embedded error: Could not create task or type of type: scriptdef.
>
> Looks like the Maven classpath is not being used by Ant...
>
> Just to confirm, I have the required dependency jar in my pom.xml:
> 
> bsf
> bsf
> 2.3.0
> 
>
>
>
> Your help is highly highly appreciated.
> Thanks
> Haz
>




Re: Exception with Maven under MacOS X 10.4

2006-01-10 Thread Romain Rouvoy
I updated my environment to remove dots, spaces and carriage returns  
but the exception is still raised:

$ export
declare -x ANT_HOME="/Users/rouvoy/Developer/ant"
declare -x HOME="/Users/rouvoy"
declare -x JAVA_HOME="/Users/rouvoy/Developer/java"
declare -x M2_HOME="/Users/rouvoy/Developer/maven"
declare -x MAVEN_HOME="/Users/rouvoy/Developer/maven"
declare -x PATH="/Users/rouvoy/Developer/maven/bin:/Users/rouvoy/ 
Developer/ant/bin:/Users/rouvoy/Developer/java/bin:/usr/local/bin:/ 
usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/teTeX/bin/ 
powerpc-apple-darwin-current"


At the following address (http://jira.codehaus.org/browse/MNG-1819),  
I found this comment:

Comment by Julien Dubois [17/Dec/05 10:08 AM]
This is also a bug on Mac OS X.

I tried to clean up my environement variables as said in this  
thread (no dots, no carriage returns, no spaces), without any success.
But the bug is considered as closed. Thus anyone can explain me how  
to make it run ?


Romain


Le 10 janv. 06 à 15:53, Romain Rouvoy a écrit :

Hi,

Recently, I installed Maven 2.0.1 on my PowerBook running MacOS X  
10.4 but I encountered some troubles :-/.


I use the J2SDK 5.0 provided by Apple.

$ java -version
java version "1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-83)
Java HotSpot(TM) Client VM (build 1.5.0_05-48, mixed mode, sharing)


Environment variable seems to be ok (according to maven  
documentation):

$ export
declare -x ANT_HOME="/Users/rouvoy/Developer/apache-ant-1.6.5"
declare -x JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/ 
Versions/1.5/Home"

declare -x M2_HOME="/Users/rouvoy/Developer/maven-2.0.1"
declare -x MAVEN_HOME="/Users/rouvoy/Developer/maven-2.0.1"
declare -x PATH="/Users/rouvoy/Developer/maven-2.0.1/bin:/Users/ 
rouvoy/Developer/apache-ant-1.6.5/bin:/System/Library/Frameworks/ 
JavaVM.framework/Versions/1.5/Home/bin:/usr/local/bin:/usr/local/ 
bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/teTeX/bin/powerpc- 
apple-darwin-current"

declare -x SHELL="/bin/bash"


Displaying maven version raises no exception:

$ mvn --version
Maven version: 2.0.1


But, executing a basic command fails :-( (executing a simple "mvn"  
command fails also):
$ mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my- 
app
[WARNING] Failed to initialize environment variable resolver.  
Skipping environment substitution in settings.

[INFO] Scanning for projects...
[INFO]  
- 
---

[ERROR] FATAL ERROR
[INFO]  
- 
---

[INFO] String index out of range: -1
[INFO]  
- 
---

[INFO] Trace
java.lang.StringIndexOutOfBoundsException: String index out of  
range: -1

at java.lang.String.substring(String.java:1768)
at  
org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars 
(CommandLineUtils.java:188)
at  
org.codehaus.plexus.util.interpolation.EnvarBasedValueSource. 
(EnvarBasedValueSource.java:16)
at  
org.apache.maven.project.interpolation.RegexBasedModelInterpolator.in 
terpolate(RegexBasedModelInterpolator.java:86)
at  
org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLog 
ic(DefaultMavenProjectBuilder.java:725)
at  
org.apache.maven.project.DefaultMavenProjectBuilder.buildStandaloneSu 
perProject(DefaultMavenProjectBuilder.java:1334)
at org.apache.maven.DefaultMaven.getSuperProject 
(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.doExecute 
(DefaultMaven.java:281)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java: 
115)

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

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

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]  
- 
---

[INFO] Total time: < 1 second
[INFO] Finished at: Tue Jan 10 15:44:34 CET 2006
[INFO] Final Memory: 1M/2M
[INFO]  
- 
---


The exception is not very explicit for me ;-)

Any suggestion ? :o)


[m2] RE: Trying to write a java packaging mojo but...

2006-01-10 Thread John Wells
Sorry this was a stupid user error.  Turned out I had the plugin defined
twice in my build section, and the first one seems to be the one that
wins (and of course, I had been modifying the second one).

I basically have this working now, but I still have a problem with array
properties in the referenced object.  I'll address that in another mail.

Again, sorry for my confusion here.

John Wells (Aziz)
[EMAIL PROTECTED]


-Original Message-
From: John Wells 
Sent: Tuesday, January 10, 2006 10:17 AM
To: 'Maven Users List'
Subject: Trying to write a java packaging mojo but...

I have a simple packaging mojo (that extends AbstractMojo).  It is
attempting to override the "package" phase with something that does
special stuff with the manifest file. (Later, it will also do something
with the IT phase).


My mojo file has something like this:

/**
 * @parameter
 * @required
 */
private OsgiManifest osgiManifest;

Inside the OsgiManifest.java file is the following:

/**
 * @parameter
 */
private String name;

...

public void setName(String name) { this.name = name; }
public String getName() { return name; }

Now, inside the pom of another project that uses this new packaging I
put:


  ...
  

  Foo

  


However, I get an error:

[INFO] One or more required plugin parameters are invalid/missing for
'osgi-bund
ler:osgi-bundle'

[0] inside the definition for plugin: 'maven-osgi-bundler-plugin'specify
the fol
lowing:


  ...
  VALUE
.


What magic thing am I getting wrong?  I *have* a osgiManifest element
inside the configuration for the plugin.  I've put the configuration
inside an execution with the proper phase and goals, but that doesn't
work either.  I've put other properties inside the configuration (simple
ones - Strings etc) which *do* get filled in (which seems to tell me I
am putting the "configuration" element in the correct place.

Furthermore, if instead I use something like this:

/**
 * @parameter expression="${com.bea.core.maven2.plugins.OsgiManifest}"
 */
private OsgiManifest osgiManifest;

Then the osgiManifest is properly initialized, but it does *not* pick up
any parameters from the pom file of the project using the packaging.

Any help, as always, is appreciated.

John Wells (Aziz)
[EMAIL PROTECTED]

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



[m2] Using array types in mojo configuration

2006-01-10 Thread John Wells
Lets say I have a mojo with something like this:

/**
 * @parameter
 */
private OsgiManifest osgiManifest;

Furthermore, lets say in osgiManifest I have the following:

/**
 * @parameter
 */
private String path[];

public void setPath(String[] paths) { this.path = path; }
public String[] getPath() { return path; }

How do I represent the [] parameter in the pom file using this plugin.
This does not work:


  
one
two
  


Any help is appreciated.

John Wells (Aziz)
[EMAIL PROTECTED]

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



Trouble in generating source files

2006-01-10 Thread Karthik V
Below is a snippet from my m2 project pom. I used this fine in m1 (in the
form of project.properties) and generated source using xdoclet. But now, I
dont get a single java file, though I get some required xml files.

   
generate-sources

 xdoclet



 














   


The output goes like this -


[INFO] [xdoclet:xdoclet {execution: default}]
[INFO] Initializing DocletTasks!!!
[INFO] Executing tasks
INFO:Some classes refer to other classes that were not found among the
sources or on the classpath.
 (Perhaps the referred class doesn't exist? Hasn't been generated
yet?)
 The referring classes do not import any fully qualified classes
matching these classes.
 However, since no packages are imported, xjavadoc has assumed that
the referred classes
 belong to the same package as the referring class. The classes are:


(this goes on with some lines like)
C:\src\main\java\abc\def\pojo\ABC.java --> RequestObject qualified to
abc.def.pojo.RequestObject


[INFO] Executed tasks
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.


Then it goes on to the compiler:compile task, breaking the build.

Can some one help?


[m2] child-level transitive dependency builds?

2006-01-10 Thread Christopher Cobb
Is it expected/preferred that (all?) builds are normally be done from the
top level?  It doesn't seem that this works very well for situations where I
have a specific plugin which should only be used for certain children.  Even
if I configure the plugin at the top level, it may not make sense/not work
to invoke it on all the children.  So I have been changing into the
appropriate child directories to invoke some plugins, which leads to also
doing iterative builds in those child directories.

 

If it is expected that we will occasionally/frequently change into child
project to invoke parts of the build (like I do now), then it seems like
child-level builds should do transitive build dependency resolution.  So if
I am doing a build in P1, and P1 has some dependencies on P4, and something
in P4 has changed, then P4 should also get built/installed when I am
building P1.  It seems like this could be done by adding something like a
 tag within each  for which you would
like build-time transitive dependency resolution.  Or, I suppose it could
also be figured out by navigating to the parent pom and examining the
children.  Then you could figure out which dependencies are actually
"project siblings" and should be "transitively built".

 

It looks like sometimes/frequently you need to do child-level builds, and
you may want/need dependent "project siblings" to be build when you do so.  

 

Is there a way to handle this now?  Is this an enhancement request?

 

 




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


  1   2   >