maven-native-plugin & long command lines and individual files ...

2006-07-31 Thread J. Matthew Pryor
does the native plugin always want files specified individually?
AFAICT I have to do this ...


${generated.native.source.dir}

devices.c
errors.c



${basedir}/src/main/c

avrprog.c
hpl_bootloader.c

etc etc rather than *.c

The end result is that my final link line end up being too long for the
Windows command processor after it has passed each file with a fully
qualified path name to the linker

Error is :

The following character string is too long:
 -mmcu=atmega128 -gstabs
-Wl,-T,C:\projects\linkages\avr\ExeStatic/src/main/conf/avr5_ext.x
-Wl,-Map,ExeStatic.map -Wl,--defsym=__heap_start=0x804000
-Wl,--defsym=__heap_end=0x80-Wl,--section-start=.jumptable=0x1efe8
-o
C:\projects\linkages\avr\ExeStatic\ges\avr\ExeStatic\target\hpl_coreio.objC:\projects\linkages\avr\ExeStatic\target\hpl_debugprot.obj
C:\projects\linkages\avr\ExeStatic\target\hpl_ds1602.obj
C:\projects\linkages\avr\ExeStatic\target\hpl_eeprom.obj
C:\projects\linkages\avr\ExeStatic\target\hpl_flash.obj
C:\projects\linkages\avr\ExeStatic\target\hpl_meminit.objC:\projects\linkages\avr\ExeStatic\target\hpl_misc.obj
C:\projects\linkages\avr\ExeStatic\target\hpl_power.objC:\projects\linkages\avr\ExeStatic\target\hpl_radio.obj
C:\projects\linkages\avr\ExeStatic\target\hpl_radioctl.objC:\projects\linkages\avr\ExeStatic\target\hpl_reset.obj
C:\projects\linkages\avr\ExeStatic\target\hpl_serial.objC:\projects\linkages\avr\ExeStatic\target\hpl_spi.obj
C:\projects\linkages\avr\ExeStatic\target\hpl_timer.obj

[snip]

Is there any way to avoid this, I'd rather not have to beak it up into
separate libraries just to get it to link

Thanks

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



Re: [ANN] Archy - a simple frontend to archetypes

2006-07-31 Thread Brett Porter

Yes (and discussion should be happening on dev@ in the mean time)

On 01/08/06, Don Brown <[EMAIL PROTECTED]> wrote:

Very cool.  Well, with that hard part done, there won't be anything
from Archy worth reusing, but I'll be happy to take a stab at patching
the archetype plugin when the search is ready.  Will it be announced
on this list?

Don

On 7/31/06, Brett Porter <[EMAIL PROTECTED]> wrote:
> The repository manager in Maven SVN indexes any repository, so it's a
> simple Lucene query of: "type:maven-archetype"
>
> If we put an appropriate web front end on that, you could pull down an
> up to date list at any time. The central repository will have that
> available very shortly.
>
> - Brett
>
> On 01/08/06, Don Brown <[EMAIL PROTECTED]> wrote:
> > Sure, making this part of the plugin is a good idea.  However, how
> > would you retrieve a list of all archetypes in all repositories?  The
> > other part fo that is you want that list to be able to be easily
> > changeable by anyone so that it stays up to date.
> >
> > If we can solve that problem, I do like the idea of "mvn
> > archetype:wizard" or something to that effect.
> >
> > Don
> >
> > On 7/30/06, Brett Porter <[EMAIL PROTECTED]> wrote:
> > > Hi Don,
> > >
> > > Thanks for this.
> > >
> > > Would you consider contributing this as a patch to the archetype plugin 
itself?
> > >
> > > BTW, Very shortly there will be a page available that automates
> > > listing all archetypes in the repository that you will be able to use
> > > instead.
> > >
> > > - Brett
> > >
> > > On 29/07/06, Don Brown <[EMAIL PROTECTED]> wrote:
> > > > In a fit of frustration trying to find a list of Maven archetypes, I
> > > > threw together a little command-line frontend to Maven's archetypes
> > > > that makes using them easier.
> > > >
> > > > Archy is a simple, command-line frontend to Maven 2's archetypes. It
> > > > walks you through the process of creating a new project using these
> > > > project templates. This tool was inspired by megg [1].
> > > >
> > > > The list of archetypes comes from two sources:
> > > >
> > > > * An internal XML file that describes the archetype information
> > > > * An external Maven wiki page [2] that lists available archetypes
> > > >
> > > > I hope someone else finds it useful, and for the love of pete, please
> > > > help fill out the list of archetypes in the Maven wiki [2].  Thanks :)
> > > >
> > > > Archy home page: https://www.twdata.org/projects/archy
> > > >
> > > > Don
> > > >
> > > > [1] http://javanicus.com/megg/
> > > > [2] http://docs.codehaus.org/display/MAVENUSER/Archetypes+List
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > --
> > > Apache Maven - http://maven.apache.org
> > > "Better Builds with Maven" book - http://library.mergere.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]
> >
> >
>
>
> --
> Apache Maven - http://maven.apache.org
> "Better Builds with Maven" book - http://library.mergere.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]





--
Apache Maven - http://maven.apache.org
"Better Builds with Maven" book - http://library.mergere.com/

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



Re: [ANN] Archy - a simple frontend to archetypes

2006-07-31 Thread Don Brown

Very cool.  Well, with that hard part done, there won't be anything
from Archy worth reusing, but I'll be happy to take a stab at patching
the archetype plugin when the search is ready.  Will it be announced
on this list?

Don

On 7/31/06, Brett Porter <[EMAIL PROTECTED]> wrote:

The repository manager in Maven SVN indexes any repository, so it's a
simple Lucene query of: "type:maven-archetype"

If we put an appropriate web front end on that, you could pull down an
up to date list at any time. The central repository will have that
available very shortly.

- Brett

On 01/08/06, Don Brown <[EMAIL PROTECTED]> wrote:
> Sure, making this part of the plugin is a good idea.  However, how
> would you retrieve a list of all archetypes in all repositories?  The
> other part fo that is you want that list to be able to be easily
> changeable by anyone so that it stays up to date.
>
> If we can solve that problem, I do like the idea of "mvn
> archetype:wizard" or something to that effect.
>
> Don
>
> On 7/30/06, Brett Porter <[EMAIL PROTECTED]> wrote:
> > Hi Don,
> >
> > Thanks for this.
> >
> > Would you consider contributing this as a patch to the archetype plugin 
itself?
> >
> > BTW, Very shortly there will be a page available that automates
> > listing all archetypes in the repository that you will be able to use
> > instead.
> >
> > - Brett
> >
> > On 29/07/06, Don Brown <[EMAIL PROTECTED]> wrote:
> > > In a fit of frustration trying to find a list of Maven archetypes, I
> > > threw together a little command-line frontend to Maven's archetypes
> > > that makes using them easier.
> > >
> > > Archy is a simple, command-line frontend to Maven 2's archetypes. It
> > > walks you through the process of creating a new project using these
> > > project templates. This tool was inspired by megg [1].
> > >
> > > The list of archetypes comes from two sources:
> > >
> > > * An internal XML file that describes the archetype information
> > > * An external Maven wiki page [2] that lists available archetypes
> > >
> > > I hope someone else finds it useful, and for the love of pete, please
> > > help fill out the list of archetypes in the Maven wiki [2].  Thanks :)
> > >
> > > Archy home page: https://www.twdata.org/projects/archy
> > >
> > > Don
> > >
> > > [1] http://javanicus.com/megg/
> > > [2] http://docs.codehaus.org/display/MAVENUSER/Archetypes+List
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Apache Maven - http://maven.apache.org
> > "Better Builds with Maven" book - http://library.mergere.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]
>
>


--
Apache Maven - http://maven.apache.org
"Better Builds with Maven" book - http://library.mergere.com/

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




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



Maven and Selenium?

2006-07-31 Thread Wendy Smoak

Is anyone using Selenium for functional testing of webapps?  After
hearing about it a while ago, I finally had a chance to see it in
action at a NFJS show last weekend.  Of course, the first order of
business was getting it to work with a Maven build.

Selenium is not in a Maven repository that I could find, so I
installed the zip in my local repository with mvn install:install-file
... -Dpackaging=zip.

I added a profile which uses dependency-maven-plugin to unzip the
Selenium distribution under 'target', and maven-antrun-plugin to copy
both the selenium 'core' directory and my src/test/selenium folder
containing the tests into the webapp.

The pom with the configuration (profile id=selenium) is here:
  http://svn.apache.org/repos/asf/shale/framework/trunk/shale-apps/pom.xml

(That pom also has the Cargo plugin configuration which starts Tomcat
and deploys the app.)

More information on installation and how to run the tests for Shale
Mailreader can be found here:
  http://shale.apache.org/shale-apps/selenium.html

Suggestions and questions are welcome. :)  I didn't find anything in
the archives, but I can't possibly be the first one to do this...

--
Wendy

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



RE: Non-classpath resources filtering?

2006-07-31 Thread Adrian Shum
Thanks a lot for your help.  It works  :)

btw, the reason I want to do this is, I want to have my
application's configuration files put in a normal directory
in file system, and by adding that directory to classpath,
I can change my configurations without extracting them
from the JAR.  In original way that maven handle resources,
configurations are put in JAR which I have to extract them,
modify, and then jar it back.

I am not sure if it is a normal practice.  If not, what is the 
common way to organize configuration files?  I wonder
if everyone is putting all configuration to JAR?

Thanks

-Original Message-
From: Pete Marvin King [mailto:[EMAIL PROTECTED]
Sent: Monday, July 31, 2006 9:50 PM
To: Maven Users List
Subject: Re: Non-classpath resources filtering?



Hello,

I don't know why you want to do this but the work around is to add the
following to your pom :

[...]

  [...]
  
  
  org.apache.maven.plugins
 
maven-resources-plugin
  2.2
  
  
   
  

sourceDir


   
../../destinationDir
true
  
  [...]
   
   [...]
 
 [...]

 you can add as many resource entries as you want.  Hope this helps.


pete marvin


Adrian Shum wrote:
> Dear all,
>
> I am new to Maven and I have tried to find related answer but I failed.
>
> Is it possible to perform non-classpath resources filter?
> My application has its own application configs which I don't want to
> put into the JAR.  Instead I want it be put in a separated directory
> to let users able to change directly (which I think I can achieve
> by using maven-assembly-plugin, right?).  I'd like to use filtering
> to generate config files for different environments.
>
> Seems I can only filter resources under  in POM.
> However, if resources are put there it will be jarred which is not
> I want.
>
> Is there any suggestion if I want to achieve this?  Thanks.
>
> Best regards,
> Alien
>
>
>
> This email is confidential. If you are not the intended recipient, please 
> delete it from your system and notify the sender immediately. Any 
> unauthorized use, disclosure, dissemination or copying of this email is 
> prohibited. Tai Fook Securities Group, its group companies and their content 
> providers ("Parties") shall not be responsible for the accuracy or 
> completeness of this email or its attachment, if any, which could contain 
> virus, be corrupted, destroyed, incomplete, intercepted, lost or arrive late. 
>   The Parites do not accept liability for any damage caused by this email.
>
>
>   


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



This email is confidential. If you are not the intended recipient, please 
delete it from your system and notify the sender immediately. Any unauthorized 
use, disclosure, dissemination or copying of this email is prohibited. Tai Fook 
Securities Group, its group companies and their content providers ("Parties") 
shall not be responsible for the accuracy or completeness of this email or its 
attachment, if any, which could contain virus, be corrupted, destroyed, 
incomplete, intercepted, lost or arrive late.   The Parites do not accept 
liability for any damage caused by this email.


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



m2/eclipse/wtp configuration

2006-07-31 Thread Kev D'Arcy
Hi,

I'm trying to set-up a dynamic web project in eclipse 3.2 using wtp 1.5
and maven. I have everything in my project compiling correctly but the
runtime classpath is missing all the dependencies that are defined
in my pom.xml. Do they need to be defined in the .classpath file as well
as in the pom.xml?

Kev



This document is strictly confidential and is intended for use by
 the addressee unless otherwise indicated.

This email has been scanned by an external Email Security System.

Allied Irish Banks



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



Re: maven2 xdoclet2 plugin

2006-07-31 Thread Grégory Joseph

Marco,

Sorry for the late reply.. Were you able to move on this?
I think your mistake was that you did not declare the
dist.codehaus.org repository as being of
layout:legacy(legacy in your 
declaration)

The XDoclet2 project and plugins are still partly built with m1, which
is why we still deploy everything on the legacy repository.

Let me know if you still need help.

Cheers,

g

On 05/07/06, Marco Mistroni <[EMAIL PROTECTED]> wrote:

hi all,,
  can anyone point me in the right direction for using maven2 xdoclet2
plugin?

i followed this link

http://xdoclet.codehaus.org/Maven2+plugin

to try, i wrote a simple pom.xml like in the example


   4.0.0
   Backend
   jar
   1.0
   Backend
   
  TestJSFAppM2
  TestJSFAppM2
  1.0
   


   
  
   aspectj
   aspectjrt
   1.5.0
 
 
   jasperreports
   jasperreports
   1.2.4
 
 
   commons-digester
   commons-digester
   1.7
 
 
   log4j
   log4j
   1.2.9
 
 
   castor
   castor
   1.0M4
 
 
javax.servlet
   servlet-api
   2.4
 

 
   TestJSFAppM2
   Commons
   1.0
 

   

   
  

  xdoclet
  maven2-xdoclet2-plugin
  

  
  
  org.xdoclet.plugin.web.TaglibPlugin
  
  
  2.0
  ${basedir}/target/xdoclet/META-INF

  
  
   
 
 
   
 
   xdoclet
 
   
 
   



   
   !-- The following two sections should be unnecessary shortly.
surefire-2.2 is due for release yesterday. -->
  

  apache.snapshots
  http://cvs.apache.org/maven-snapshot-repository
  
true
  

  
  
  
 apache.snapshots
 http://cvs.apache.org/maven-snapshot-repository
  
  
  codehaus-plugins
  http://dist.codehaus.org/
  
   true
  
  
  true
  
  



   






when i run mvn:compile   i got following error

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'xdoclet:maven2-xdoclet2-plugin' does not exist or no
valid ve
rsion could be found
[INFO]





and when i run mvn xdoclet:xdoclet i  got this


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


can anyone help me out on how to start? i got plugins working fine for
maven1, btu now i have
moved to maven2 ...

thx and regards
 marco




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



Re: Re: Maven 2 jasper-reports-plugin

2006-07-31 Thread Grégory Joseph

Hi,

(sorry for the late reply)

FYI, there is actually a snapshot, but on this repo:
http://snapshots.repository.codehaus.org
I'm not sure what the difference is with the one you use, but it seems
it's only there :)

Please let me know if you have issues or wishes to be fulfilled with
this plugin.

Cheers,

greg

On 18/07/06, Doug Douglass <[EMAIL PROTECTED]> wrote:

Matt,

Since no one has responded...I haven't used this plugin, but it is in the
Mojo Sandbox, from which we do use other plugins. The following should help
you out with repository access issues:

http://mojo.codehaus.org/using-sandbox-plugins.html

I don't see a snapshot deployed to the above repository, so you'll propbably
have to grab the code from SVN and build locally:

https://svn.mojo.codehaus.org/mojo/trunk/mojo/mojo-sandbox/jasperreports-maven-plugin

HTH,
Doug

On 7/17/06, Matt Campbell <[EMAIL PROTECTED]> wrote:
>
> Could someone that is currently using this plugin give me some information
> on setting it up. Were having problems getting the plugin downloaded.
>
> What repository are you currently using to download the plugin from? The
> mojo plugin repository seems to be missing it.
>
>




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



Re: [ANN] Archy - a simple frontend to archetypes

2006-07-31 Thread Brett Porter

The repository manager in Maven SVN indexes any repository, so it's a
simple Lucene query of: "type:maven-archetype"

If we put an appropriate web front end on that, you could pull down an
up to date list at any time. The central repository will have that
available very shortly.

- Brett

On 01/08/06, Don Brown <[EMAIL PROTECTED]> wrote:

Sure, making this part of the plugin is a good idea.  However, how
would you retrieve a list of all archetypes in all repositories?  The
other part fo that is you want that list to be able to be easily
changeable by anyone so that it stays up to date.

If we can solve that problem, I do like the idea of "mvn
archetype:wizard" or something to that effect.

Don

On 7/30/06, Brett Porter <[EMAIL PROTECTED]> wrote:
> Hi Don,
>
> Thanks for this.
>
> Would you consider contributing this as a patch to the archetype plugin 
itself?
>
> BTW, Very shortly there will be a page available that automates
> listing all archetypes in the repository that you will be able to use
> instead.
>
> - Brett
>
> On 29/07/06, Don Brown <[EMAIL PROTECTED]> wrote:
> > In a fit of frustration trying to find a list of Maven archetypes, I
> > threw together a little command-line frontend to Maven's archetypes
> > that makes using them easier.
> >
> > Archy is a simple, command-line frontend to Maven 2's archetypes. It
> > walks you through the process of creating a new project using these
> > project templates. This tool was inspired by megg [1].
> >
> > The list of archetypes comes from two sources:
> >
> > * An internal XML file that describes the archetype information
> > * An external Maven wiki page [2] that lists available archetypes
> >
> > I hope someone else finds it useful, and for the love of pete, please
> > help fill out the list of archetypes in the Maven wiki [2].  Thanks :)
> >
> > Archy home page: https://www.twdata.org/projects/archy
> >
> > Don
> >
> > [1] http://javanicus.com/megg/
> > [2] http://docs.codehaus.org/display/MAVENUSER/Archetypes+List
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Apache Maven - http://maven.apache.org
> "Better Builds with Maven" book - http://library.mergere.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]





--
Apache Maven - http://maven.apache.org
"Better Builds with Maven" book - http://library.mergere.com/

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



Re: Howto declare a dependency on a group of modules

2006-07-31 Thread Wayne Fay

I think you're looking for something like this...

EJB Client projects
ejb1 - pom.xml
ejb2 - pom.xml
ejb3 - pom.xml

application-x-ejb-client - pom.xml
ejb1
ejb2
ejb3

app1 - pom.xml
application-x-ejb-client

When starting a new project (app1 above), you only need to declare a
single dependency on application-x-ejb-client project, which will
transitively pull in the ejb1, ejb2, and ejb3 dependencies.

Give this a try and stay flexible to try some other approaches as you
become more comfortable with Maven and fully integrate it into your
development process.

Wayne

On 7/31/06, Barrie Treloar <[EMAIL PROTECTED]> wrote:

> Indeed, DRY is one benefit I want to get and we have several clients.

> > I think it is important to explicit list your dependencies, otherwise
> > you pull in cruft and the kitchen sink unnecessarily.

You didn't respond to this.
Do all clients have the SAME dependency set?
Unless you are talking about a large number of client projects, and
even then, I would still explicitly list the dependencies for each
client.  As the dependencies should be correct for those clients and
not include cruft because it is easier.

> But think of a typical scenario, where client and middleware is
> developed by separate
> teams. You get decoupling of client dependency from client artifact
> naming, versioning and partitioning,
> which is controlled by the middleware team, if you use an
> intermediate 'application-x-ejb-client' project.

You get all this with maven out of the box anyway.
There is no need for an intermediate.
I am failing to follow what you are trying to do.

I'd suggest trying it the hard way and seeing how you go.
I think you will find it won't turn out to be hard or onerous.

Of course you are using maven 2 right?

-
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: Placing war resources

2006-07-31 Thread Laurie Harper

Ah, that would explain it... OK, I'll give that a try.

Thanks,

L.

Pete Marvin King wrote:

Hello,

the targetPath configuration for webResources is only available in maven
war plugin 2.1-SNAPSHOT.
you need to use the latest from the trunk to avail of this feature. 


svn co

https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-war-plugin

cd maven-war-plugin
mvn install



hope that helps,
pete marvin



Laurie Harper wrote:

According to the war-plugin documentation [1], I should be able to
control where webapp resources are copied to using the targetPath
element:

  
org.apache.maven.plugins
maven-war-plugin
2.0

  

  true
  src/main/conf
  WEB-INF/conf

  

  

but targetPath seems to be ignored; the resources end up in the webapp
root, not under WEB-INF. Am I doing something wrong, or is this a bug?
I'm guessing I can work around it by moving everything from
src/main/conf to src/main/conf/WEB-INF/conf, but I'd rather avoid the
redundant paths...

Thanks,

L.

[1]
http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html



-
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: Placing war resources

2006-07-31 Thread Pete Marvin King

Hello,

the targetPath configuration for webResources is only available in maven
war plugin 2.1-SNAPSHOT.
you need to use the latest from the trunk to avail of this feature. 

> svn co
https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-war-plugin
> cd maven-war-plugin
> mvn install


hope that helps,
pete marvin



Laurie Harper wrote:
> According to the war-plugin documentation [1], I should be able to
> control where webapp resources are copied to using the targetPath
> element:
>
>   
> org.apache.maven.plugins
> maven-war-plugin
> 2.0
> 
>   
> 
>   true
>   src/main/conf
>   WEB-INF/conf
> 
>   
> 
>   
>
> but targetPath seems to be ignored; the resources end up in the webapp
> root, not under WEB-INF. Am I doing something wrong, or is this a bug?
> I'm guessing I can work around it by moving everything from
> src/main/conf to src/main/conf/WEB-INF/conf, but I'd rather avoid the
> redundant paths...
>
> Thanks,
>
> L.
>
> [1]
> http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html
>
>
>
> -
> 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]



Aggregate profiles

2006-07-31 Thread Laurie Harper
Is it possible to activate multiple profiles at once, as in 'mvn 
-Pprofile1 -Pprofile2', and have one profile override properties in the 
other? I'm trying to make it easy to enable p6spy, something like


  

  hsql
  
true
  
  
hsqldb
org.hsqldb.jdbcDriver
...
  


  postgres
  
postgresql
org.postgresql.Driver
...
  


  p6spy
  
...P6SpyDriver
  

  

the idea being that you can switch databases with '-Ppostgres' and 
enable P6Spy for either database with, for example, '-Ppostgres -Pp6spy'.


Unfortunately, it seems that Maven only sets the properties defined in 
*one* of the two profiles. Is there a way to get both?


Alternatively, is there another way to conditionally set properties in M2?

L.


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



Placing war resources

2006-07-31 Thread Laurie Harper
According to the war-plugin documentation [1], I should be able to 
control where webapp resources are copied to using the targetPath element:


  
org.apache.maven.plugins
maven-war-plugin
2.0

  

  true
  src/main/conf
  WEB-INF/conf

  

  

but targetPath seems to be ignored; the resources end up in the webapp 
root, not under WEB-INF. Am I doing something wrong, or is this a bug? 
I'm guessing I can work around it by moving everything from 
src/main/conf to src/main/conf/WEB-INF/conf, but I'd rather avoid the 
redundant paths...


Thanks,

L.

[1] 
http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html



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



Re: mvn idea bundles "provided" libraries

2006-07-31 Thread Edwin Punzalan


just do "mvn install -DupdateReleaseInfo=true" on your machine.

Sanjiv Jivan wrote:

Thanks Roald, Edwin.

Can someone provide instructions on how to install this plugin if I 
build it

from SVN?

Thanks,
Sanjiv


On 7/31/06, Edwin Punzalan <[EMAIL PROTECTED]> wrote:


patch applied, thanks.

Btw, I added the unit test for this new feature.


^_^


Roald Bankras wrote:
> I've reported, and tried to fix it in MIDEA-62.
>
> Roald Bankras
> Software Engineer
> JTeam b.v.
>
> -Original Message-
> From: Roald Bankras [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 31, 2006 9:00 AM
> To: Maven Users List
> Subject: RE: mvn idea bundles "provided" libraries
>
> That's a "bug" is the idea plugin. You can configure IDEA to not 
package

the library on compilation.
>
>
> Roald Bankras
> Software Engineer
> JTeam b.v.
>
> -Original Message-
> From: Sanjiv Jivan [mailto:[EMAIL PROTECTED]
> Sent: Saturday, July 29, 2006 7:57 AM
> To: Maven Users List
> Subject: mvn idea bundles "provided" libraries
>
> I have a web module in which the servlet API jar is declared with 
scope

> "provided". When I generate an IDEA project file, "provided" scoped
> libraries are also included as a library to be deployed by the web
module.
> "provided" modules should not be packaged by the web module. I'm using
the
> 2.0 version of the idea plugin. Is there a way to exclude provided
libraries
> from being packaged but present during compile?
>
> Thanks,
> Sanjiv
>
>
>

-
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: mvn idea bundles "provided" libraries

2006-07-31 Thread Sanjiv Jivan

Thanks Roald, Edwin.

Can someone provide instructions on how to install this plugin if I build it
from SVN?

Thanks,
Sanjiv


On 7/31/06, Edwin Punzalan <[EMAIL PROTECTED]> wrote:


patch applied, thanks.

Btw, I added the unit test for this new feature.


^_^


Roald Bankras wrote:
> I've reported, and tried to fix it in MIDEA-62.
>
> Roald Bankras
> Software Engineer
> JTeam b.v.
>
> -Original Message-
> From: Roald Bankras [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 31, 2006 9:00 AM
> To: Maven Users List
> Subject: RE: mvn idea bundles "provided" libraries
>
> That's a "bug" is the idea plugin. You can configure IDEA to not package
the library on compilation.
>
>
> Roald Bankras
> Software Engineer
> JTeam b.v.
>
> -Original Message-
> From: Sanjiv Jivan [mailto:[EMAIL PROTECTED]
> Sent: Saturday, July 29, 2006 7:57 AM
> To: Maven Users List
> Subject: mvn idea bundles "provided" libraries
>
> I have a web module in which the servlet API jar is declared with scope
> "provided". When I generate an IDEA project file, "provided" scoped
> libraries are also included as a library to be deployed by the web
module.
> "provided" modules should not be packaged by the web module. I'm using
the
> 2.0 version of the idea plugin. Is there a way to exclude provided
libraries
> from being packaged but present during compile?
>
> Thanks,
> Sanjiv
>
>
>

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




Re: Generating Cobertura reports using Continuum

2006-07-31 Thread Satish

Piyush, do you have a local repostory setup for maven? I am in the process of
setting up this for
my company, if you have any info., would like to get in touch with you.

my email id: [EMAIL PROTECTED]
-- 
View this message in context: 
http://www.nabble.com/Generating-Cobertura-reports-using-Continuum-tf2026373.html#a5583997
Sent from the Continuum - Users forum at Nabble.com.



Re: Howto declare a dependency on a group of modules

2006-07-31 Thread Barrie Treloar

Indeed, DRY is one benefit I want to get and we have several clients.



> I think it is important to explicit list your dependencies, otherwise
> you pull in cruft and the kitchen sink unnecessarily.


You didn't respond to this.
Do all clients have the SAME dependency set?
Unless you are talking about a large number of client projects, and
even then, I would still explicitly list the dependencies for each
client.  As the dependencies should be correct for those clients and
not include cruft because it is easier.


But think of a typical scenario, where client and middleware is
developed by separate
teams. You get decoupling of client dependency from client artifact
naming, versioning and partitioning,
which is controlled by the middleware team, if you use an
intermediate 'application-x-ejb-client' project.


You get all this with maven out of the box anyway.
There is no need for an intermediate.
I am failing to follow what you are trying to do.

I'd suggest trying it the hard way and seeing how you go.
I think you will find it won't turn out to be hard or onerous.

Of course you are using maven 2 right?

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



Re: pom reference could use better indenting

2006-07-31 Thread Wayne Fay

Anyone (including yourself) is free to create a JIRA user account and
then post new JIRA issues using it.

If this is a real problem for you, I'd suggest you file it yourself.
Only takes a minute.

Wayne

On 7/28/06, cbrevard <[EMAIL PROTECTED]> wrote:


Could someone who is a regular contributor to the m2 project (ie someone who
can create new tickets/issues in the Jira db) please request that the POM
reference at
  http://maven.apache.org/ref/current/maven-model/maven.html

be better indented? The xml takes up a fifth of the possible column width
and is essentially illegible from a structural standpoint.

Yeah, I could copy, paste and reformat it locally, but that defeats the
point of online documentation.
--
View this message in context:
http://www.nabble.com/pom-reference-could-use-better-indenting-tf2018336.html#a5549655
Sent from the Maven - Users forum at Nabble.com.


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




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



Re: problem getting Remote deployment

2006-07-31 Thread Wayne Fay

Are you certain the Maven1 Tomcat plugin v1.2.1 supports remote deployment?

It might only support local deployment. In which case, this would be
expected. I don't use M1 at this point so I'm not positive... But I do
know this is an issue with M2, so many people are using Cargo plugin
for remote deployments.

Wayne

On 7/31/06, neeraj daffodil <[EMAIL PROTECTED]> wrote:

hi
  i am getting problem in deployment we can able to deploy in local
server9i just write one goal and copy the war file in our tomcat webapp
 directory but while in case of remote directory i am unable to do this
since the plugin i got for tomcat deployment it not working (i got it from
codezar site) and  getting error

BUILD FAILED
File.. C:\Documents and
Settings\harvinder.bhutani.HARVINDER\.maven\cache\maven-
tomcat-plugin-1.2.1\plugin.jelly
Element... deploy
Line.. 122
Column 22
org/apache/tools/ant/taskdefs/Redirector
Total time: 24 seconds
Finished at: Mon Jul 31 13:33:39 GMT+05:30 2006

C:\workcruise\Checkout\GWTFrameworkNewTestMaven\framework_gwtMaven\framwork_gwtMaven>

i am useing the tomcate  5.x is if any one have solution than please send me
replay



Regards

Neeraj Singh  Bisht




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



Re: How to include generated-sources directory in compilation?

2006-07-31 Thread Wayne Fay

Maven plugins (generally) automatically add the generated-sources
directory(ies) to the compile root(s).

If you're running an external Ant process to create your sources, then
I'd expect you will need to manually add these directories with the
build-helper plugin, as you suggested.

Wayne


On 7/31/06, Alexis Midon <[EMAIL PROTECTED]> wrote:

Hi all,

during the generate-sources, an ant task generates a source file.
I'd like to know if the source files under generated-sources are automacilly
included is the compilation?
or should I use the build-helper:add-source ?

thanks in advance,

Alexis




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



Re: maven site into Trac?

2006-07-31 Thread Andrew Williams
OK, OK so here it is - you can grab MavenTrac, the Trac plugin for Maven
sites here: http://dev.rectang.com/projects/maventrac/
There are (what I think classify as) comprehensive instructions, but let
me know on the site or on email if you have any troubles using it.
(Quite possible, as it is still early)

Sorry it took a while, but I was working on "TraM" a Trac-Multi wrapper
which you can see in action on that site
(http://dev.rectang.com/projects/). Thought it might interest some folk
here too...

Andy

p.s. why not check out ContinuTrac too ;)
(http://dev.rectang.com/projects/continutrac/)

p.p.s Sorry for the adverts!

On Sun, 2006-07-30 at 14:10 -0700, Josh Long wrote:
> The clamoring masses have it..
> 
> please release it
> 
> On 7/30/06, Srepfler Srgjan <[EMAIL PROTECTED]> wrote:
> > YES!
> > :)
> > Srgjan
> >
> > Andrew Williams wrote:
> > > :)
> > >
> > > I am the dev behind dev.rectang.com and can tell you it is not manually
> > > done :)
> > >
> > > I have a trac plugin that is almost ready for a release that does it
> > > for me.
> > >
> > > step 1) install plugin, tell it where the site is generated to (on the
> > > filesystem)
> > > step 2) set your site to use the maven-trac-skin (or whatever I call it
> > > when it is released) and deploy it into the expected area.
> > >
> > > Shall I announce here when it is ready perhaps?
> > >
> > > Andrew
> > >
> > > Valerio Schiavoni wrote:
> > >> hello everyone,
> > >> any one knows how to 'merge' the maven generated website within Trac, as
> > >> it's done here:
> > >> http://dev.rectang.com/projects/javautil/maven/
> > >>
> > >> i think they did it 'manually'..but maybe not.
> > >>
> > >> thanks,
> > >> valerio
> > >>
> > >
> > >
> > >
> > > -
> > > 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: new user

2006-07-31 Thread Wayne Fay

I strongly agree. Your proxy problems are not Maven's fault...

Just be glad someone has written code which enables Maven to work over
your proxy... otherwise you'd have to hack the open source code
yourself. ;-)

Wayne

On 7/31/06, Chen, Tim <[EMAIL PROTECTED]> wrote:

But the proxy is your company proxy.
Shouldn't you blame your company for not trusting their employees
without the use of a proxy vs maven?

PS. This is all sent from behind my company's proxy where it's probably
being flagged for dissention.
PPS. Hi network guys.


-Original Message-
From: Barnes, Mike [mailto:[EMAIL PROTECTED]
Sent: Monday, July 31, 2006 2:51 PM
To: Maven Users List
Subject: RE: new user

I have finally figured it out, someone gave me the ip address and port
to the proxy server and now everything works find. I still would have
liked to been able to download everything in one shot and be up and
running without worrying about the proxy server issue but oh..well

Thanks
For everyone's help.

-Original Message-
From: James Richards [mailto:[EMAIL PROTECTED]
Sent: Monday, July 31, 2006 2:47 PM
To: Maven Users List; Maven Users List
Subject: RE: new user

I'm not sure if this will help at all but in a few cases where a plugin
download failed, I re-ran the same plugin invocation and it succeeded.
I'm assuming Maven downloads certain dependencies and then fails to load
the next dependencies because of the newly downloaded ones.

Hope that helps,

James



-Original Message-
From: Alex Turner [mailto:[EMAIL PROTECTED]
Sent: Mon 7/31/2006 2:39 PM
To: Maven Users List
Subject: Re: new user

So far my experience is that the central repository is horribly broken
and does not work.  Set up a mirror as described in

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

That worked for me

Alex

On 7/31/06, Barnes, Mike <[EMAIL PROTECTED]> wrote:
>
> I just finished downloading maven 2 and am now trying to create a new
> project using the example described on the getting started page. I am
> able to execute mvn -version with no problems, however when I attempt
to
> execute
>
>
>
> mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
>
>
>
> I get the following error:
>
>
>
> [INFO] Scanning for projects...
>
> [INFO] Searching repository for plugin with prefix: 'archetype'.
>
> [INFO] org.apache.maven.plugins: checking for updates from central
>
> [WARNING] repository metadata for: 'org.apache.maven.plugins' could
not
> be retri
>
> eved from repository: central due to an error: Error transferring file
>
> [INFO] Repository 'central' will be blacklisted
>
> [INFO]
>

>
> [ERROR] BUILD ERROR
>
> [INFO]
>

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

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

>
> [INFO] Total time: 22 seconds
>
> [INFO] Finished at: Mon Jul 31 12:51:57 EDT 2006
>
> [INFO] Final Memory: 1M/2M
>
> [INFO]
>

>
>
>
> Based on the above message I would have expected the archtype plugin
to
> already be downloaded. BTW, I am behind a firewall which uses a policy

> file (not sure how to configure this in the proxy section)
>
>
>
>
>
> Thanks for any help.
>
>
>
>
>
> 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]




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



Re: Maven2 command line reference

2006-07-31 Thread Tomasz Pik

On 7/31/06, jan_bar <[EMAIL PROTECTED]> wrote:

Hi,

I searched maven site and even used Google, but I cannot find any
documentation about maven command line switches. For instance "mvn -N
install", what is the meaning of the -N?


you may get some base info with 'mvn --help':

$ mvn --help
usage: mvn [options] [] []

Options:
[...]
-N,--non-recursiveDo not recurse into sub-projects
[...]

So mvn -N install won't look into sub-projects and will install
only top project.

HTH,
Tomek

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



RE: Maven2 command line reference

2006-07-31 Thread Mike Perham
"mvn --help"? 

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of jan_bar
Sent: Monday, July 31, 2006 2:10 PM
To: users@maven.apache.org
Subject: Maven2 command line reference

Hi,

I searched maven site and even used Google, but I cannot find any
documentation about maven command line switches. For instance "mvn -N
install", what is the meaning of the -N?

Thanks, Jan




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



Maven2 command line reference

2006-07-31 Thread jan_bar
Hi,

I searched maven site and even used Google, but I cannot find any
documentation about maven command line switches. For instance "mvn -N
install", what is the meaning of the -N?

Thanks, Jan




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



RE: new user

2006-07-31 Thread Chen, Tim
But the proxy is your company proxy.
Shouldn't you blame your company for not trusting their employees
without the use of a proxy vs maven?

PS. This is all sent from behind my company's proxy where it's probably
being flagged for dissention.
PPS. Hi network guys.
 

-Original Message-
From: Barnes, Mike [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 31, 2006 2:51 PM
To: Maven Users List
Subject: RE: new user

I have finally figured it out, someone gave me the ip address and port
to the proxy server and now everything works find. I still would have
liked to been able to download everything in one shot and be up and
running without worrying about the proxy server issue but oh..well

Thanks
For everyone's help.

-Original Message-
From: James Richards [mailto:[EMAIL PROTECTED]
Sent: Monday, July 31, 2006 2:47 PM
To: Maven Users List; Maven Users List
Subject: RE: new user

I'm not sure if this will help at all but in a few cases where a plugin
download failed, I re-ran the same plugin invocation and it succeeded.
I'm assuming Maven downloads certain dependencies and then fails to load
the next dependencies because of the newly downloaded ones.

Hope that helps,

James



-Original Message-
From: Alex Turner [mailto:[EMAIL PROTECTED]
Sent: Mon 7/31/2006 2:39 PM
To: Maven Users List
Subject: Re: new user
 
So far my experience is that the central repository is horribly broken
and does not work.  Set up a mirror as described in

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

That worked for me

Alex

On 7/31/06, Barnes, Mike <[EMAIL PROTECTED]> wrote:
>
> I just finished downloading maven 2 and am now trying to create a new 
> project using the example described on the getting started page. I am 
> able to execute mvn -version with no problems, however when I attempt
to
> execute
>
>
>
> mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
>
>
>
> I get the following error:
>
>
>
> [INFO] Scanning for projects...
>
> [INFO] Searching repository for plugin with prefix: 'archetype'.
>
> [INFO] org.apache.maven.plugins: checking for updates from central
>
> [WARNING] repository metadata for: 'org.apache.maven.plugins' could
not
> be retri
>
> eved from repository: central due to an error: Error transferring file
>
> [INFO] Repository 'central' will be blacklisted
>
> [INFO]
>

>
> [ERROR] BUILD ERROR
>
> [INFO]
>

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

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

>
> [INFO] Total time: 22 seconds
>
> [INFO] Finished at: Mon Jul 31 12:51:57 EDT 2006
>
> [INFO] Final Memory: 1M/2M
>
> [INFO]
>

>
>
>
> Based on the above message I would have expected the archtype plugin
to
> already be downloaded. BTW, I am behind a firewall which uses a policy

> file (not sure how to configure this in the proxy section)
>
>
>
>
>
> Thanks for any help.
>
>
>
>
>
> 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: new user

2006-07-31 Thread Barnes, Mike
I have finally figured it out, someone gave me the ip address and port
to the proxy server and now everything works find. I still would have
liked to been able to download everything in one shot and be up and
running without worrying about the proxy server issue but oh..well

Thanks
For everyone's help.

-Original Message-
From: James Richards [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 31, 2006 2:47 PM
To: Maven Users List; Maven Users List
Subject: RE: new user

I'm not sure if this will help at all but in a few cases where a plugin
download failed, I re-ran the same plugin invocation and it succeeded.
I'm assuming Maven downloads certain dependencies and then fails to load
the next dependencies because of the newly downloaded ones.

Hope that helps,

James



-Original Message-
From: Alex Turner [mailto:[EMAIL PROTECTED]
Sent: Mon 7/31/2006 2:39 PM
To: Maven Users List
Subject: Re: new user
 
So far my experience is that the central repository is horribly broken
and
does not work.  Set up a mirror as described in

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

That worked for me

Alex

On 7/31/06, Barnes, Mike <[EMAIL PROTECTED]> wrote:
>
> I just finished downloading maven 2 and am now trying to create a new
> project using the example described on the getting started page. I am
> able to execute mvn -version with no problems, however when I attempt
to
> execute
>
>
>
> mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
>
>
>
> I get the following error:
>
>
>
> [INFO] Scanning for projects...
>
> [INFO] Searching repository for plugin with prefix: 'archetype'.
>
> [INFO] org.apache.maven.plugins: checking for updates from central
>
> [WARNING] repository metadata for: 'org.apache.maven.plugins' could
not
> be retri
>
> eved from repository: central due to an error: Error transferring file
>
> [INFO] Repository 'central' will be blacklisted
>
> [INFO]
>

>
> [ERROR] BUILD ERROR
>
> [INFO]
>

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

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

>
> [INFO] Total time: 22 seconds
>
> [INFO] Finished at: Mon Jul 31 12:51:57 EDT 2006
>
> [INFO] Final Memory: 1M/2M
>
> [INFO]
>

>
>
>
> Based on the above message I would have expected the archtype plugin
to
> already be downloaded. BTW, I am behind a firewall which uses a policy
> file (not sure how to configure this in the proxy section)
>
>
>
>
>
> Thanks for any help.
>
>
>
>
>
> Mike
>
>
>


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



RE: new user

2006-07-31 Thread James Richards
I'm not sure if this will help at all but in a few cases where a plugin 
download failed, I re-ran the same plugin invocation and it succeeded.  I'm 
assuming Maven downloads certain dependencies and then fails to load the next 
dependencies because of the newly downloaded ones.

Hope that helps,

James



-Original Message-
From: Alex Turner [mailto:[EMAIL PROTECTED]
Sent: Mon 7/31/2006 2:39 PM
To: Maven Users List
Subject: Re: new user
 
So far my experience is that the central repository is horribly broken and
does not work.  Set up a mirror as described in

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

That worked for me

Alex

On 7/31/06, Barnes, Mike <[EMAIL PROTECTED]> wrote:
>
> I just finished downloading maven 2 and am now trying to create a new
> project using the example described on the getting started page. I am
> able to execute mvn -version with no problems, however when I attempt to
> execute
>
>
>
> mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
>
>
>
> I get the following error:
>
>
>
> [INFO] Scanning for projects...
>
> [INFO] Searching repository for plugin with prefix: 'archetype'.
>
> [INFO] org.apache.maven.plugins: checking for updates from central
>
> [WARNING] repository metadata for: 'org.apache.maven.plugins' could not
> be retri
>
> eved from repository: central due to an error: Error transferring file
>
> [INFO] Repository 'central' will be blacklisted
>
> [INFO]
> 
>
> [ERROR] BUILD ERROR
>
> [INFO]
> 
>
> [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does
> not exi
>
> st or no valid version could be found
>
> [INFO]
> 
>
> [INFO] For more information, run Maven with the -e switch
>
> [INFO]
> 
>
> [INFO] Total time: 22 seconds
>
> [INFO] Finished at: Mon Jul 31 12:51:57 EDT 2006
>
> [INFO] Final Memory: 1M/2M
>
> [INFO]
> 
>
>
>
> Based on the above message I would have expected the archtype plugin to
> already be downloaded. BTW, I am behind a firewall which uses a policy
> file (not sure how to configure this in the proxy section)
>
>
>
>
>
> Thanks for any help.
>
>
>
>
>
> Mike
>
>
>



Re: new user

2006-07-31 Thread Alex Turner

So far my experience is that the central repository is horribly broken and
does not work.  Set up a mirror as described in

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

That worked for me

Alex

On 7/31/06, Barnes, Mike <[EMAIL PROTECTED]> wrote:


I just finished downloading maven 2 and am now trying to create a new
project using the example described on the getting started page. I am
able to execute mvn -version with no problems, however when I attempt to
execute



mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app



I get the following error:



[INFO] Scanning for projects...

[INFO] Searching repository for plugin with prefix: 'archetype'.

[INFO] org.apache.maven.plugins: checking for updates from central

[WARNING] repository metadata for: 'org.apache.maven.plugins' could not
be retri

eved from repository: central due to an error: Error transferring file

[INFO] Repository 'central' will be blacklisted

[INFO]


[ERROR] BUILD ERROR

[INFO]


[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does
not exi

st or no valid version could be found

[INFO]


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

[INFO]


[INFO] Total time: 22 seconds

[INFO] Finished at: Mon Jul 31 12:51:57 EDT 2006

[INFO] Final Memory: 1M/2M

[INFO]




Based on the above message I would have expected the archtype plugin to
already be downloaded. BTW, I am behind a firewall which uses a policy
file (not sure how to configure this in the proxy section)





Thanks for any help.





Mike





Re: WAR dependency in a WAR project (M2) does not compile

2006-07-31 Thread Wayne Fay

I believe the WAR plugin allows you to overlay one War over another. I
have seen this discussed on this list recently but don't know any
details myself, so you'll need to search the list at Nabble for
"overlay" to find more info.

Wayne

On 7/31/06, Mike Perham <[EMAIL PROTECTED]> wrote:

No, JARs are the standard way to share code.  You can't share code in a
WAR or EAR.  Move the common code into a JAR module.

-Original Message-
From: Martin Goldhahn [mailto:[EMAIL PROTECTED]
Sent: Monday, July 31, 2006 10:43 AM
To: users@maven.apache.org
Subject: WAR dependency in a WAR project (M2) does not compile

Hi!
I have a pom that contains a dependency of type war (lets call it
dep:dep:war). The dep:dep:war contains classes that I need for
compilation in my project. When I run the goal compile the dep:dep:war
is downloaded but not included in the compiler plugin's classpath. Am I
missing something here?

Martin

-
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: new user

2006-07-31 Thread Matilda Robert
Hi,

Try doing the following in the command line:

mvn archetype:create –DarchetypeArtifactId=maven-archetype-webapp 
–DgroupId=top.level.java.package –DartifactId=dirName

top.level.java.package should be name_of_package

dirName should be application_name

Please note:   I tried to run the above cmd and the error read “Unable to 
determine the release version.  Try downloading the file manually from the 
project website.” 
   *Note if you get the above error make sure that the spacing is 
correct.  There is only a space between the webapp and the -Dgroup and the 
package and -Dartifact commands. 

Hopefully this helps,

Matilda



-Original Message-
From: Barnes, Mike [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 31, 2006 12:54 PM
To: users@maven.apache.org
Subject: new user

I just finished downloading maven 2 and am now trying to create a new
project using the example described on the getting started page. I am
able to execute mvn -version with no problems, however when I attempt to
execute 

 

mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app

 

I get the following error:

 

[INFO] Scanning for projects...

[INFO] Searching repository for plugin with prefix: 'archetype'.

[INFO] org.apache.maven.plugins: checking for updates from central

[WARNING] repository metadata for: 'org.apache.maven.plugins' could not
be retri

eved from repository: central due to an error: Error transferring file

[INFO] Repository 'central' will be blacklisted

[INFO]


[ERROR] BUILD ERROR

[INFO]


[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does
not exi

st or no valid version could be found

[INFO]


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

[INFO]


[INFO] Total time: 22 seconds

[INFO] Finished at: Mon Jul 31 12:51:57 EDT 2006

[INFO] Final Memory: 1M/2M

[INFO]


 

Based on the above message I would have expected the archtype plugin to
already be downloaded. BTW, I am behind a firewall which uses a policy
file (not sure how to configure this in the proxy section)

 

 

Thanks for any help.

 

 

Mike



-
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: new user

2006-07-31 Thread Barnes, Mike
I guess that I was expecting that a new install would not need to get
anything from the outside. I would have expected that over time this
would be an issue but not the first time I use the application.

Thanks

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 31, 2006 1:31 PM
To: Maven Users List
Subject: Re: new user

The problem is entirely related to your proxy situation. I have no
idea how to resolve this "policy file" proxy firewall, unfortunately.

Perhaps someone else has experienced this and knows what to do?

Arguably, until you get this proxy situation figured out, you can
always manually download the jars and poms and install them in your m2
user directory... But that sounds like a lot of work to me.

Wayne

On 7/31/06, Barnes, Mike <[EMAIL PROTECTED]> wrote:
> I just finished downloading maven 2 and am now trying to create a new
> project using the example described on the getting started page. I am
> able to execute mvn -version with no problems, however when I attempt
to
> execute
>
>
>
> mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
>
>
>
> I get the following error:
>
>
>
> [INFO] Scanning for projects...
>
> [INFO] Searching repository for plugin with prefix: 'archetype'.
>
> [INFO] org.apache.maven.plugins: checking for updates from central
>
> [WARNING] repository metadata for: 'org.apache.maven.plugins' could
not
> be retri
>
> eved from repository: central due to an error: Error transferring file
>
> [INFO] Repository 'central' will be blacklisted
>
> [INFO]
>

>
> [ERROR] BUILD ERROR
>
> [INFO]
>

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

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

>
> [INFO] Total time: 22 seconds
>
> [INFO] Finished at: Mon Jul 31 12:51:57 EDT 2006
>
> [INFO] Final Memory: 1M/2M
>
> [INFO]
>

>
>
>
> Based on the above message I would have expected the archtype plugin
to
> already be downloaded. BTW, I am behind a firewall which uses a policy
> file (not sure how to configure this in the proxy section)
>
>
>
>
>
> Thanks for any help.
>
>
>
>
>
> 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: new user

2006-07-31 Thread Wayne Fay

The problem is entirely related to your proxy situation. I have no
idea how to resolve this "policy file" proxy firewall, unfortunately.

Perhaps someone else has experienced this and knows what to do?

Arguably, until you get this proxy situation figured out, you can
always manually download the jars and poms and install them in your m2
user directory... But that sounds like a lot of work to me.

Wayne

On 7/31/06, Barnes, Mike <[EMAIL PROTECTED]> wrote:

I just finished downloading maven 2 and am now trying to create a new
project using the example described on the getting started page. I am
able to execute mvn -version with no problems, however when I attempt to
execute



mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app



I get the following error:



[INFO] Scanning for projects...

[INFO] Searching repository for plugin with prefix: 'archetype'.

[INFO] org.apache.maven.plugins: checking for updates from central

[WARNING] repository metadata for: 'org.apache.maven.plugins' could not
be retri

eved from repository: central due to an error: Error transferring file

[INFO] Repository 'central' will be blacklisted

[INFO]


[ERROR] BUILD ERROR

[INFO]


[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does
not exi

st or no valid version could be found

[INFO]


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

[INFO]


[INFO] Total time: 22 seconds

[INFO] Finished at: Mon Jul 31 12:51:57 EDT 2006

[INFO] Final Memory: 1M/2M

[INFO]




Based on the above message I would have expected the archtype plugin to
already be downloaded. BTW, I am behind a firewall which uses a policy
file (not sure how to configure this in the proxy section)





Thanks for any help.





Mike





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



RE: internal repository

2006-07-31 Thread Matilda Robert
Hi,

This worked for me so hopefully it works for you.  Insert the following in
your pom.xml file; it should look something like the following 



the-name-of-your-repository-here
name again
the url of your repository here



This code is inserted after your scm fields.

In your settings.xml file you should correlate your username and password
plus make that your name and url is the same.  

These are some of the websites that helped me:

http://docs.codehaus.org/display/HAUSMATES/Maven+Guide

http://maven.apache.org/ant-tasks.html

Also, google helps me a lot when I am looking for maven 2.0 help; keep in
mind that blogs and other maven user groups have helpful hints and ideas.


Matilda

-Original Message-
From: Stefan Magnus Landrø [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 31, 2006 10:10 AM
To: Maven Users List
Subject: Re: internal repository

Please see the Better build with maven book - online and free.

"sharmishta.kaul" <[EMAIL PROTECTED]> skrev 31.07.2006 
14:26:27:

> Could anyone please provide me examples to create my internal 
> repository. I have not worked in maven before
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
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: new user

2006-07-31 Thread korebantic

Maven requires access to a remote repository. If your firewall
prevents this you'll need to setup a local one. Information for this
can be found spread around the maven documentation and "Better Builds
with Maven" guide.

Can you get me out of my two year contract? =)

On 7/31/06, Barnes, Mike <[EMAIL PROTECTED]> wrote:

I just finished downloading maven 2 and am now trying to create a new
project using the example described on the getting started page. I am
able to execute mvn -version with no problems, however when I attempt to
execute



mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app



I get the following error:



[INFO] Scanning for projects...

[INFO] Searching repository for plugin with prefix: 'archetype'.

[INFO] org.apache.maven.plugins: checking for updates from central

[WARNING] repository metadata for: 'org.apache.maven.plugins' could not
be retri

eved from repository: central due to an error: Error transferring file

[INFO] Repository 'central' will be blacklisted

[INFO]


[ERROR] BUILD ERROR

[INFO]


[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does
not exi

st or no valid version could be found

[INFO]


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

[INFO]


[INFO] Total time: 22 seconds

[INFO] Finished at: Mon Jul 31 12:51:57 EDT 2006

[INFO] Final Memory: 1M/2M

[INFO]




Based on the above message I would have expected the archtype plugin to
already be downloaded. BTW, I am behind a firewall which uses a policy
file (not sure how to configure this in the proxy section)





Thanks for any help.





Mike





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



One sub module randomly appears twice after adding a parent multi-module 1.0.3

2006-07-31 Thread Johnson, Jonathan
One sub module randomly appears twice after adding a parent multi-module
to continuum 1.0.3.

I have a parent maven 2 pom with 16 sub-modules.  If I reset the
database ( by removing the database directory) and add my parent pom.xml
all the modules will be added correctly except one random module will be
added twice.  I tried this three times and a different module in the
list is duplicated once.  This also happens after a fresh install of
version 1.0.3.

If I run a "Build All" one of the duplicate modules builds, while the
other remains with a "New" status. When attempting to remove the
duplicate module with the "New" status I get

ognl.MethodFailedException: Method "removeProject" failed for object
[EMAIL PROTECTED]
[javax.jdo.JDOUserException: One or more instances could not be deleted
NestedThrowables:
javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM
BUILDDEFINITION WHERE ID = ?
NestedThrowables:
SQL Exception: DELETE on table 'BUILDDEFINITION' caused a violation of
foreign key constraint 'PROJECT_BUILP8_FK2' for key (10).  The statement
has been rolled back.]
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:796)
at
ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61)
at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819)
at ognl.ASTMethod.getValueBody(ASTMethod.java:75)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
at ognl.SimpleNode.getValue(SimpleNode.java:210)
at ognl.Ognl.getValue(Ognl.java:333)
at ognl.Ognl.getValue(Ognl.java:378)
at ognl.Ognl.getValue(Ognl.java:357)
at
org.codehaus.plexus.formica.action.DeleteEntity.uponSuccessfulValidation
(DeleteEntity.java:57)
at
org.codehaus.plexus.formica.action.DeleteEntity.execute(DeleteEntity.jav
a:47)
at
org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve
.java:68)
at
org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipe
line.java:70)
at org.codehaus.plexus.summit.Summit.doGet(Summit.java:54)
at org.codehaus.plexus.summit.Summit.doPost(Summit.java:108)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH
andler.java:294)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon
text.java:525)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at
org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218
)
at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331)
at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)
/-- Encapsulated exception \
javax.jdo.JDOUserException: One or more instances could not be deleted
at
org.jpox.AbstractPersistenceManager.deletePersistentAll(AbstractPersiste
nceManager.java:1438)
at
org.jpox.store.rdbms.scostore.ElementContainerStore.clear(ElementContain
erStore.java:595)
at
org.jpox.store.mapping.CollectionMapping.preDelete(CollectionMapping.jav
a:304)
at
org.jpox.store.mapping.CollectionMapping.deleteDependent(CollectionMappi
ng.java:332)
at
org.jpox.store.rdbms.table.ClassTable.deleteDependent(ClassTable.java:22
80)
at
org.jpox.store.StoreManager.deleteDependent(StoreManager.java:838)
at
org.jpox.state.StateManagerImpl.deletePersistent(StateManagerImpl.java:4
049)
at
org.jpox.AbstractPersistenceManager.internalDeletePersistent(AbstractPer
sistenceManager.java:1391)
at
org.jpox.AbstractPersistenceManager.deletePersistent(AbstractPersistence
Manager.java:1402)
at
org.codehaus.plexus.jdo.PlexusJdoUtils.removeObject(PlexusJdoUtils.java:
53)
at
org.apache.maven.continuum.store.JdoContinuumStore.removeObject(JdoConti
nuumStore.java:969)
at
org.apache.maven.continuum.store.JdoContinuumStore.removeProject(JdoCont
inuumStore.java:901)
at
org.apache.maven.continuum.DefaultContinuum.removeProject(DefaultContinu
um.java:328)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Me

JUICe libs (Swing app-framework, etc.) now available from m2 repository

2006-07-31 Thread Rob Dickens

Dear list,

Please see http://jroller.com/page/malformed? 
entry=instructions_for_maven_2_users for further details.


Best regards,

Rob


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



Multiple modules with gobal developers list and sub-module notifiers list

2006-07-31 Thread Johnson, Jonathan
I have not been able to get continuum to send emails when the build
fails. 

On this page 

http://today.java.net/pub/a/today/2006/05/30/continuous-integration-with
-continuum.html

it indicates that one can put in a developers id (and not their email
address) in the address element for the continuum address but I suspect
this does not work with developers defined in the parent pom.xml and a
ciManagement section defined in the sub-modules.

Can someone confirm this?

I have a parent/top-level pom.xml with a section like this...



jjohnson
Jonathan Johnson
[EMAIL PROTECTED]
454 Life Sciences
http://www.454.com

Developer
Administrator

-5



In my maven 2 sub modules I have ciManagement sections like this.


Continuum
http://mymachine:8080/continuum


mail

jjohnson

true
true
false
true




Thanks 

- Jonathan

LEGAL NOTICE:
Unless expressly stated otherwise, this message is confidential and may be 
privileged. It is intended for the addressee(s) only. Access to this e-mail by 
anyone else is unauthorized. If you are not an addressee, any disclosure or 
copying of the contents or any action taken (or not taken) in reliance on it is 
unauthorized and may be unlawful. If you are not an addressee, please inform 
the sender immediately.




new user

2006-07-31 Thread Barnes, Mike
I just finished downloading maven 2 and am now trying to create a new
project using the example described on the getting started page. I am
able to execute mvn -version with no problems, however when I attempt to
execute 

 

mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app

 

I get the following error:

 

[INFO] Scanning for projects...

[INFO] Searching repository for plugin with prefix: 'archetype'.

[INFO] org.apache.maven.plugins: checking for updates from central

[WARNING] repository metadata for: 'org.apache.maven.plugins' could not
be retri

eved from repository: central due to an error: Error transferring file

[INFO] Repository 'central' will be blacklisted

[INFO]


[ERROR] BUILD ERROR

[INFO]


[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does
not exi

st or no valid version could be found

[INFO]


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

[INFO]


[INFO] Total time: 22 seconds

[INFO] Finished at: Mon Jul 31 12:51:57 EDT 2006

[INFO] Final Memory: 1M/2M

[INFO]


 

Based on the above message I would have expected the archtype plugin to
already be downloaded. BTW, I am behind a firewall which uses a policy
file (not sure how to configure this in the proxy section)

 

 

Thanks for any help.

 

 

Mike



RE: Generating Cobertura reports using Continuum

2006-07-31 Thread Piyush Kumar Nahata


Hi all,
   My previous solution works fine, if there is only a single project
with no sub-modules. If there are modules in the parent pom, then the
report is not generated in the target folder of the parent pom folder
rather, it is generated in the target folders of each individual
modules. Is there anyway to get this report in the parent folder, so
that, to view the reports, a user does not have to open every individual
module.

My folder structure looks something like this...

   Application
|
|-- Parent POM.xml  
  |
|-- Module1
|  |
|  |-- Module1 POM.xml
|
|-- Module2 
|  |
|  |-- Module2 POM.xml
|  

Would be glad, if anyone helps me in this regard.
Thanks in advance...

Regards,
Piyush Kumar Nahata,
Software Engineer,
Cell no - 9840783583

-Original Message-
From: Piyush Kumar Nahata
Sent: Monday, July 31, 2006 8:38 PM
To: 'continuum-users@maven.apache.org'
Subject: RE: Generating Cobertura reports using Continuum


Hi all,
Thanks for the reply. I was able to figure out how to do that
For those like me who are new to Continuum, to perform additional goals
like generating Cobertura reports using continuum, this can be done
using the Continuum UI.

Steps to add additional goals using Continuum UI


1. Login as an Administrator
2. It is assumed that you have already added the required project to
continuum and it is listed on the UI.
3. Click on the link corresponding to the name of the project(Under the
heading 'Name').
4. In the page that is displayed, there would be various headings
displayed such as
  a. Continuum Project
  b. Build Definitions  
  c. Notifiers
  d. Dependencies
  e. Developers
   Under the Build Definitions header, the default goals defined would
be clean and install.
   Edit this (using the button on the right side corner), and add the
goal cobertura:cobertura 5. Click on Submit and then 'Force Build' using
the button 'Build Now'
6. This would lead to the cobertura reports also being generated, the
next time the build is fired.

Happy Reporting




Regards,
Piyush Kumar Nahata,
Software Engineer,
Cell no - 9840783583

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 31, 2006 7:26 PM
To: continuum-users@maven.apache.org; continuum-users@maven.apache.org
Subject: RE: Generating Cobertura reports using Continuum

Try a mvn site:site on your cmd line to see the maven generated site,
including your cobertura report. Inside of continuum, I find it more
useful to set yourself up to use the mvn site-deploy goal. There is a
site guide on the maven website with more information about
using/deploying maven generated sites which would probably be a better
source of information.

Thanks,
Baron


-Original Message-
From: Piyush Kumar Nahata [mailto:[EMAIL PROTECTED]
Sent: Mon 7/31/2006 4:15 AM
To: continuum-users@maven.apache.org
Subject: Generating Cobertura reports using Continuum




Hi all,
   I'm just 2 days old in Continuum. I want to run the Cobertura reports
after the checkout has been done by Continuum. I tried specifying the
goals in  -->  -->  --> , but am not
able to see any resulting folder named site where the reports are
generally saved. I'm able to generate the reports if I give 'mvn
cobertura:cobertura' on the command prompt.
   Would be glad if someone is able to help me in this regard.
   For your reference here is the snapshot of my pom.xml

Thanks in advance...


   POM.XML


  4.0.0
  maven-plugins
  maven-cobertura-plugin
  Cobertura Plug-in
  1.0-SNAPSHOT

  Maven Plugin for Cobertura
  http://maven-plugins.sourceforge.net/maven-cobertura-plugin
  2005

  
target
target/classes
target/test-classes
src/main/java
src/test/java

  
org.codehaus.mojo
cobertura-maven-plugin

  

  cobertura

  

  

  

  

  
org.codehaus.mojo
cobertura-maven-plugin
  

  


  

  cobertura
  cobertura
  1.8


  oro
  oro
  2.0.8


  asm
  asm
  2.0


  log4j
  log4j
  1.2.8


  urbanophile
  java-getopt
  1.0.9


  javancss
  javancss
  21.41


  javancss
  ccl
  21.41


  junit
  junit
  3.8.1
  jar
  
  

  
  
  scm:svn:file:///D:/Sample Repository/Sample2/trunk
  
  
  scm:svn:file:///D:/Sample Repository/Sample2/trunk
  
  




Regards,
Piyush Kumar Nahata,
Software Engineer.


--

Re: [ANN] Archy - a simple frontend to archetypes

2006-07-31 Thread Don Brown

Sure, making this part of the plugin is a good idea.  However, how
would you retrieve a list of all archetypes in all repositories?  The
other part fo that is you want that list to be able to be easily
changeable by anyone so that it stays up to date.

If we can solve that problem, I do like the idea of "mvn
archetype:wizard" or something to that effect.

Don

On 7/30/06, Brett Porter <[EMAIL PROTECTED]> wrote:

Hi Don,

Thanks for this.

Would you consider contributing this as a patch to the archetype plugin itself?

BTW, Very shortly there will be a page available that automates
listing all archetypes in the repository that you will be able to use
instead.

- Brett

On 29/07/06, Don Brown <[EMAIL PROTECTED]> wrote:
> In a fit of frustration trying to find a list of Maven archetypes, I
> threw together a little command-line frontend to Maven's archetypes
> that makes using them easier.
>
> Archy is a simple, command-line frontend to Maven 2's archetypes. It
> walks you through the process of creating a new project using these
> project templates. This tool was inspired by megg [1].
>
> The list of archetypes comes from two sources:
>
> * An internal XML file that describes the archetype information
> * An external Maven wiki page [2] that lists available archetypes
>
> I hope someone else finds it useful, and for the love of pete, please
> help fill out the list of archetypes in the Maven wiki [2].  Thanks :)
>
> Archy home page: https://www.twdata.org/projects/archy
>
> Don
>
> [1] http://javanicus.com/megg/
> [2] http://docs.codehaus.org/display/MAVENUSER/Archetypes+List
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Apache Maven - http://maven.apache.org
"Better Builds with Maven" book - http://library.mergere.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: test-classes in War

2006-07-31 Thread David J. M. Karlsen

devillina wrote:

Hi, is there a way to include the test classes in the war?
thx


See http://maven.apache.org/guides/mini/guide-attached-tests.html.
You can then depend on this artifact in your war.

Or you simply include your tests in the main source tree (and not in the 
test/java directory).


I do the first, and package this in a war which uses JunitEE to run the 
tests and display the results.


David


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

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



RE: WAR dependency in a WAR project (M2) does not compile

2006-07-31 Thread Mike Perham
No, JARs are the standard way to share code.  You can't share code in a
WAR or EAR.  Move the common code into a JAR module.

-Original Message-
From: Martin Goldhahn [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 31, 2006 10:43 AM
To: users@maven.apache.org
Subject: WAR dependency in a WAR project (M2) does not compile

Hi!
I have a pom that contains a dependency of type war (lets call it
dep:dep:war). The dep:dep:war contains classes that I need for
compilation in my project. When I run the goal compile the dep:dep:war
is downloaded but not included in the compiler plugin's classpath. Am I
missing something here?

Martin

-
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] Generating PDF from XDOC using Maven 2.0.4?!

2006-07-31 Thread Wendy Smoak

On 7/31/06, Siegfried Goeschl <[EMAIL PROTECTED]> wrote:


finally I have a chance to setup a M2 project but I miss a crucial thing
- how to generate a PDF from user-supplied XDOC like in M1?


It's still in the sandbox, but take a look at Doxia's book formatting,
which can do PDF:

  http://maven.apache.org/doxia/ -> http://maven.apache.org/doxia/book/

--
Wendy

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



WAR dependency in a WAR project (M2) does not compile

2006-07-31 Thread Martin Goldhahn
Hi!
I have a pom that contains a dependency of type war (lets call it
dep:dep:war). The dep:dep:war contains classes that I need for
compilation in my project. When I run the goal compile the dep:dep:war
is downloaded but not included in the compiler plugin's classpath. Am I
missing something here?

Martin

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



Re: [m2] Generating PDF from XDOC using Maven 2.0.4?!

2006-07-31 Thread Wayne Fay

No such plugin currently exists for M2 that I'm aware of. Only for M1.

Wayne

On 7/31/06, Siegfried Goeschl <[EMAIL PROTECTED]> wrote:

Hi folks,

finally I have a chance to setup a M2 project but I miss a crucial thing
- how to generate a PDF from user-supplied XDOC like in M1?

Thanks in advance

Siegfried Goeschl


-
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: mvn idea bundles "provided" libraries

2006-07-31 Thread Edwin Punzalan

patch applied, thanks.

Btw, I added the unit test for this new feature.


^_^


Roald Bankras wrote:

I've reported, and tried to fix it in MIDEA-62.

Roald Bankras
Software Engineer
JTeam b.v.

-Original Message-
From: Roald Bankras [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 31, 2006 9:00 AM

To: Maven Users List
Subject: RE: mvn idea bundles "provided" libraries

That’s a “bug” is the idea plugin. You can configure IDEA to not package the library on compilation. 



Roald Bankras
Software Engineer
JTeam b.v.

-Original Message-
From: Sanjiv Jivan [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 29, 2006 7:57 AM

To: Maven Users List
Subject: mvn idea bundles "provided" libraries

I have a web module in which the servlet API jar is declared with scope
"provided". When I generate an IDEA project file, "provided" scoped
libraries are also included as a library to be deployed by the web module.
"provided" modules should not be packaged by the web module. I'm using the
2.0 version of the idea plugin. Is there a way to exclude provided libraries
from being packaged but present during compile?

Thanks,
Sanjiv


  


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



test-classes in War

2006-07-31 Thread devillina

Hi, is there a way to include the test classes in the war?
thx
-- 
View this message in context: 
http://www.nabble.com/test-classes-in-War-tf2028156.html#a5577745
Sent from the Maven - Users forum at Nabble.com.


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



[m2] Generating PDF from XDOC using Maven 2.0.4?!

2006-07-31 Thread Siegfried Goeschl

Hi folks,

finally I have a chance to setup a M2 project but I miss a crucial thing 
- how to generate a PDF from user-supplied XDOC like in M1?


Thanks in advance

Siegfried Goeschl


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



How to include generated-sources directory in compilation?

2006-07-31 Thread Alexis Midon

Hi all,

during the generate-sources, an ant task generates a source file.
I'd like to know if the source files under generated-sources are automacilly
included is the compilation?
or should I use the build-helper:add-source ?

thanks in advance,

Alexis


RE: Generating Cobertura reports using Continuum

2006-07-31 Thread Piyush Kumar Nahata


Hi all,
Thanks for the reply. I was able to figure out how to do that
For those like me who are new to Continuum, to perform additional goals
like generating Cobertura reports using continuum, this can be done
using the Continuum UI.

Steps to add additional goals using Continuum UI


1. Login as an Administrator
2. It is assumed that you have already added the required project to
continuum and it is listed on the UI.
3. Click on the link corresponding to the name of the project(Under the
heading 'Name').
4. In the page that is displayed, there would be various headings
displayed such as
  a. Continuum Project
  b. Build Definitions  
  c. Notifiers
  d. Dependencies
  e. Developers
   Under the Build Definitions header, the default goals defined would
be clean and install.
   Edit this (using the button on the right side corner), and add the
goal cobertura:cobertura
5. Click on Submit and then 'Force Build' using the button 'Build Now'
6. This would lead to the cobertura reports also being generated, the
next time the build is fired.

Happy Reporting




Regards,
Piyush Kumar Nahata,
Software Engineer,
Cell no - 9840783583

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 31, 2006 7:26 PM
To: continuum-users@maven.apache.org; continuum-users@maven.apache.org
Subject: RE: Generating Cobertura reports using Continuum

Try a mvn site:site on your cmd line to see the maven generated site,
including your cobertura report. Inside of continuum, I find it more
useful to set yourself up to use the mvn site-deploy goal. There is a
site guide on the maven website with more information about
using/deploying maven generated sites which would probably be a better
source of information.

Thanks,
Baron


-Original Message-
From: Piyush Kumar Nahata [mailto:[EMAIL PROTECTED]
Sent: Mon 7/31/2006 4:15 AM
To: continuum-users@maven.apache.org
Subject: Generating Cobertura reports using Continuum




Hi all,
   I'm just 2 days old in Continuum. I want to run the Cobertura reports
after the checkout has been done by Continuum. I tried specifying the
goals in  -->  -->  --> , but am not
able to see any resulting folder named site where the reports are
generally saved. I'm able to generate the reports if I give 'mvn
cobertura:cobertura' on the command prompt.
   Would be glad if someone is able to help me in this regard.
   For your reference here is the snapshot of my pom.xml

Thanks in advance...


   POM.XML


  4.0.0
  maven-plugins
  maven-cobertura-plugin
  Cobertura Plug-in
  1.0-SNAPSHOT

  Maven Plugin for Cobertura
  http://maven-plugins.sourceforge.net/maven-cobertura-plugin
  2005

  
target
target/classes
target/test-classes
src/main/java
src/test/java

  
org.codehaus.mojo
cobertura-maven-plugin

  

  cobertura

  

  

  

  

  
org.codehaus.mojo
cobertura-maven-plugin
  

  


  

  cobertura
  cobertura
  1.8


  oro
  oro
  2.0.8


  asm
  asm
  2.0


  log4j
  log4j
  1.2.8


  urbanophile
  java-getopt
  1.0.9


  javancss
  javancss
  21.41


  javancss
  ccl
  21.41


  junit
  junit
  3.8.1
  jar
  
  

  
  
  scm:svn:file:///D:/Sample Repository/Sample2/trunk
  
  
  scm:svn:file:///D:/Sample Repository/Sample2/trunk
  
  




Regards,
Piyush Kumar Nahata,
Software Engineer.



-
This message, including any attachments, contains confidential
information intended for a specific individual and purpose, and is
intended for the addressee only. Any unauthorized disclosure, use,
dissemination, copying, or distribution of this message or any of its
attachments or the information contained in this e-mail, or the taking
of any action based on it, is strictly prohibited. If you are not the
intended recipient, please notify the sender immediately by return
e-mail and delete this message.


-
This message, including any attachments, contains confidential information 
intended for a specific individual and purpose, and is intended for the 
addressee only. Any unauthorized disclosure, use, dissemination, copying, or 
distribution of this message or any of its attachments or the information 
contained in this e-mail, or the taking of any action based on it, is strictly 
prohibited. If you are not the intended recipient, please notify the sender 
immediately by return e-mail and delete this message.


Re: Using version ranges for building an EAR

2006-07-31 Thread Wayne Fay

I've run into bugs in the handling of version ranges in Maven myself.

Here's one I filed in JIRA:
http://jira.codehaus.org/browse/MNG-2210

I'd file this as a bug and hope it gets fixed in a future M2 release.

Wayne

On 7/31/06, Heiko Wolf <[EMAIL PROTECTED]> wrote:

Hi, I have a little problem with my depencies. I try to build an EAR, which
works without problems. I have defined an additional repository on a local
file server. If I try to define a depency with an intervall version like [
1.0, 2.0), then maven checks only the repository on the fileserver for
versions, but not my local files in ~/.m2/repository/ ! If I define the
depency with a normal version like 1.3, without providing a range,
everything works fine, maven takes the artifact out of my ~/.m2-directory.

I try to catch this issue by looking at debug output provided with the -X
parameter, but I didn't find any usefull. Maven does not try to access local
files in ~/.m2/.

To make it more concrete: Using a version range like [ 1.0,2.0), maven does
not find a suitable version, because it looks only on the repository on my
file server, but there is no suitable on this repository. Then I use 1.3 as
version, and maven finds the artifact in my ~/.m2/-directory. But why maven
didn't find it using the version range?

If the repository on the file server provides a version like 1.2.1, then
maven finds it. The provided version range seems to work in this case, if I
only want to get the newest version from the remote repository. But it
ignores local versions in ~/.m2/

Thanks,

Heiko




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



Perforce-continuum-maven related issues

2006-07-31 Thread Yuan, Bill
Please help me on the following questions:

(1) What changes we need to make in the Maven "project.xml"

(2) On Continuum Web Interface, what's the format of the M1 POM URL
which we use to add our Maven 1.x project.

If possible, could you please also include sample project.xml & M1 POM
URL which I can refer to.


Thanks, 

- Bill



Re: Plugin configuration with properties from settings.xml

2006-07-31 Thread Olivier Catteau

Yes I have looked at "better builds with maven".

The plugin is used to initialize a database. It reads directory to create
tables, constraints, ..., it drop each objects of the DB and so on. Each
developer has his own DB schema so his own settings to access this schema.
So it seems good to store these properties in settings.xml, isn't it ?
But when plexus injects these properties in my mojo, it doesn't resolve
them.
Is it the good method to store the properties in the settings.xml ? Do I
need to use filtering and properties file ?




2006/7/31, Stefan Magnus Landrø <[EMAIL PROTECTED]>:


You have to add databaseServer as a property in your plugin. What kind of
mojo is it? Have you had a look at better builds with maven?

"Olivier Catteau" <[EMAIL PROTECTED]> skrev 31.07.2006 15:58:01:

> Hi,
> I would like to be able to configure my plugin with properties that are
> stored in the settings.xml.
> Here is a piece of my settings.xml :
>
> 
> ...
> 
> 
> database-developer
> 
> 
> !database
> 
> 
> 
> ad_daf1
> 34105
> 
> 
> 
> ...
> 
>
>
> Here is a pom to test my plugin :
>
> 
> POM For test
> 
> 
> 
> maven-antrun-plugin
> 
> 
> compile
> 
> 
> databaseServer :
> ${databaseServer}
>  
>
> 
> 
> run
> 
> 
> 
> 
> 
> ...
> ...
> 
> ${databaseServer}
> ${databasePort}
> 
> 
> 
> 
> 
>
> If I execute my plugin, the ant task resolve the property
${databaseServer}.
> But, in my mojo, I inject these properties and  ${databaseServer} isn't
> resolved, so my attribute databaseServer equals "${databaseServer}".
> How can I do to resolve these properties in my mojo ? Do I need to
> explicitely use something like the plexus ExpressionEvaluator to resolve
> them (a piece of code may help me) ?
>
> Thanks
>
> Olivier




Re: Plugin configuration with properties from settings.xml

2006-07-31 Thread Stefan Magnus Landrø
You have to add databaseServer as a property in your plugin. What kind of 
mojo is it? Have you had a look at better builds with maven?

"Olivier Catteau" <[EMAIL PROTECTED]> skrev 31.07.2006 15:58:01:

> Hi,
> I would like to be able to configure my plugin with properties that are
> stored in the settings.xml.
> Here is a piece of my settings.xml :
> 
> 
> ...
> 
> 
> database-developer
> 
> 
> !database
> 
> 
> 
> ad_daf1
> 34105
> 
> 
> 
> ...
> 
> 
> 
> Here is a pom to test my plugin :
> 
> 
> POM For test
> 
> 
> 
> maven-antrun-plugin
> 
> 
> compile
> 
> 
> databaseServer :
> ${databaseServer}
>  
> 
> 
> 
> run
> 
> 
> 
> 
> 
> ...
> ...
> 
> ${databaseServer}
> ${databasePort}
> 
> 
> 
> 
> 
> 
> If I execute my plugin, the ant task resolve the property 
${databaseServer}.
> But, in my mojo, I inject these properties and  ${databaseServer} isn't
> resolved, so my attribute databaseServer equals "${databaseServer}".
> How can I do to resolve these properties in my mojo ? Do I need to
> explicitely use something like the plexus ExpressionEvaluator to resolve
> them (a piece of code may help me) ?
> 
> Thanks
> 
> Olivier


Re: internal repository

2006-07-31 Thread Stefan Magnus Landrø
Please see the Better build with maven book - online and free.

"sharmishta.kaul" <[EMAIL PROTECTED]> skrev 31.07.2006 
14:26:27:

> Could anyone please provide me examples to create my internal 
> repository. I have not worked in maven before
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

Plugin configuration with properties from settings.xml

2006-07-31 Thread Olivier Catteau

Hi,
I would like to be able to configure my plugin with properties that are
stored in the settings.xml.
Here is a piece of my settings.xml :


...
   
   
   database-developer
   
   
   !database
   
   
   
   ad_daf1
   34105
   
   
   
...



Here is a pom to test my plugin :


   POM For test
   
   
   
   maven-antrun-plugin
   
   
   compile
   
   
   databaseServer :
${databaseServer}


   
   
   run
   
   
   
   
   
   ...
   ...
   
   ${databaseServer}
   ${databasePort}
   
   
   
   


If I execute my plugin, the ant task resolve the property ${databaseServer}.
But, in my mojo, I inject these properties and  ${databaseServer} isn't
resolved, so my attribute databaseServer equals "${databaseServer}".
How can I do to resolve these properties in my mojo ? Do I need to
explicitely use something like the plexus ExpressionEvaluator to resolve
them (a piece of code may help me) ?

Thanks

Olivier


RE: Generating Cobertura reports using Continuum

2006-07-31 Thread Baron.Reznik
Try a mvn site:site on your cmd line to see the maven generated site, including 
your cobertura report. Inside of continuum, I find it more useful to set 
yourself up to use the mvn site-deploy goal. There is a site guide on the maven 
website with more information about using/deploying maven generated sites which 
would probably be a better source of information.

Thanks,
Baron


-Original Message-
From: Piyush Kumar Nahata [mailto:[EMAIL PROTECTED]
Sent: Mon 7/31/2006 4:15 AM
To: continuum-users@maven.apache.org
Subject: Generating Cobertura reports using Continuum
 



Hi all,
   I'm just 2 days old in Continuum. I want to run the Cobertura reports
after the checkout has been done by Continuum. I tried specifying the
goals in  -->  -->  --> , but am not
able to see any resulting folder named site where the reports are
generally saved. I'm able to generate the reports if I give 'mvn
cobertura:cobertura' on the command prompt.
   Would be glad if someone is able to help me in this regard.
   For your reference here is the snapshot of my pom.xml

Thanks in advance... 


   POM.XML


  4.0.0
  maven-plugins
  maven-cobertura-plugin
  Cobertura Plug-in
  1.0-SNAPSHOT

  Maven Plugin for Cobertura
  http://maven-plugins.sourceforge.net/maven-cobertura-plugin
  2005

  
target
target/classes
target/test-classes
src/main/java
src/test/java

  
org.codehaus.mojo
cobertura-maven-plugin

  

  cobertura

  

  

  

  

  
org.codehaus.mojo
cobertura-maven-plugin
  

  
 

  

  cobertura
  cobertura
  1.8


  oro
  oro
  2.0.8


  asm
  asm
  2.0


  log4j
  log4j
  1.2.8


  urbanophile
  java-getopt
  1.0.9


  javancss
  javancss
  21.41


  javancss
  ccl
  21.41


  junit
  junit
  3.8.1
  jar
  
  

  
  
  scm:svn:file:///D:/Sample Repository/Sample2/trunk
  
  
  scm:svn:file:///D:/Sample Repository/Sample2/trunk
  
  




Regards,
Piyush Kumar Nahata,
Software Engineer.


-
This message, including any attachments, contains confidential information 
intended for a specific individual and purpose, and is intended for the 
addressee only. Any unauthorized disclosure, use, dissemination, copying, or 
distribution of this message or any of its attachments or the information 
contained in this e-mail, or the taking of any action based on it, is strictly 
prohibited. If you are not the intended recipient, please notify the sender 
immediately by return e-mail and delete this message.



Re: How do I create documentation?

2006-07-31 Thread Edwin Punzalan

To generate the site, use "mvn site"

hope that helps


^_^


Stefan Sayk wrote:

Hi all,
 
I've a little probelm generating the maven site sources (src/site). If I try

it I always get the following Errror:
 
C:\say\Workspace\OSIS>mvn archetype:create -DgroupId=de.sayk.osis

-DartifactId=O
SIS -DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-a
rchetype-site
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
-
---
[INFO] Building OSIS (open school information system)
[INFO]task-segment: [archetype:create] (aggregator-style)
[INFO]
-
---
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] **
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File:
org\apache\velocity\runtime\defaults\velocity.pr
operties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.
resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClassLo
aderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.
ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in
any
resource loader.
[INFO] Velocimacro : error using  VM library template VM_global_library.vm :
org
.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'V
M_global_library.vm'
[INFO] Velocimacro :  VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates
 
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may

NOT
replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be
glob
al in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: de.sayk.osis
[INFO]
-
---
[INFO] Using following parameters for creating Archetype:
maven-archetype-site:R
ELEASE
[INFO]
-
---
[INFO] Parameter: groupId, Value: de.sayk.osis
[INFO] Parameter: packageName, Value: de.sayk.osis
[INFO] Parameter: basedir, Value: C:\say\Workspace\OSIS
[INFO] Parameter: package, Value: de.sayk.osis
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: artifactId, Value: OSIS
[INFO]
-
---
[ERROR] BUILD ERROR
[INFO]
-
---
[INFO] Error creating from archetype
 
Embedded error: Unable to add module to the current project as it is not of

pack
aging type 'pom'
[INFO]
-
---
[INFO] For more information, run Maven with the -e switch
[INFO]
-
---
[INFO] Total time: 2 seconds
[INFO] Finished at: Sat Jul 29 13:42:56 GMT+01:00 2006
[INFO] Final Memory: 4M/8M
[INFO]
-
---
 
C:\say\Workspace\OSIS>
 
 
Thanks,
 
Stefan


  


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



Re: Non-classpath resources filtering?

2006-07-31 Thread Pete Marvin King

Hello,

I don't know why you want to do this but the work around is to add the
following to your pom :

[...]

  [...]
  
  
  org.apache.maven.plugins
 
maven-resources-plugin
  2.2
  
  
   
  

sourceDir


   
../../destinationDir
true
  
  [...]
   
   [...]
 
 [...]

 you can add as many resource entries as you want.  Hope this helps.


pete marvin


Adrian Shum wrote:
> Dear all,
>
> I am new to Maven and I have tried to find related answer but I failed.
>
> Is it possible to perform non-classpath resources filter?
> My application has its own application configs which I don't want to
> put into the JAR.  Instead I want it be put in a separated directory
> to let users able to change directly (which I think I can achieve
> by using maven-assembly-plugin, right?).  I'd like to use filtering
> to generate config files for different environments.
>
> Seems I can only filter resources under  in POM.
> However, if resources are put there it will be jarred which is not
> I want.
>
> Is there any suggestion if I want to achieve this?  Thanks.
>
> Best regards,
> Alien
>
>
>
> This email is confidential. If you are not the intended recipient, please 
> delete it from your system and notify the sender immediately. Any 
> unauthorized use, disclosure, dissemination or copying of this email is 
> prohibited. Tai Fook Securities Group, its group companies and their content 
> providers ("Parties") shall not be responsible for the accuracy or 
> completeness of this email or its attachment, if any, which could contain 
> virus, be corrupted, destroyed, incomplete, intercepted, lost or arrive late. 
>   The Parites do not accept liability for any damage caused by this email.
>
>
>   


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



Asymmetric parentship

2006-07-31 Thread Jochen Wiedmann

Hi,

I am considering how to implement a real integration test for a
plugin. The test harness is good for some purposes, but sometimes it
is insufficient. This applies, in particular, when testing the
dependencies, which are introduced by the plugin.

Here's my idea: I create the following projects:


  foo-Parent

foo   => dependency of =>  foo-Test

foo-Parent would refer foo and foo-Test as modules. However, only
foo-Test would name foo-Parent as its parent, but foo wouldn't. (The
idea is, that I wouldn't want force people to download yet another
pom.)

Would that be working? Recommendable? Bad? Whatever?


Regards,

Jochen

--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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



internal repository

2006-07-31 Thread sharmishta.kaul
Could anyone please provide me examples to create my internal repository. I 
have not worked in maven before

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

Re: [for newbie] ClearCase configuration

2006-07-31 Thread MySelf

Thanks for your help ^_^

for my clearcase, it's an LT one (i'm in a training periode and i've juste
discovered the maven universe and also the UCM one..)

I put the clearcase-settings.xml in my home directory, and i also add (in
the xml) the followings:
true

and the only thing that changed is the time 4 sec (for 0sec before)

the hole error message is:

Provider message: The cleartool command failed.
Command output: 
---
cleartool: Error: Unrecognized command option: "-vws".
Usage: mkview [-snapshot] [-tag snapshot-view-tag]
  [-tcomment tag-comment] [-tmode text-mode]
  [-ptime] [-stream stream-selector]
  [-stgloc view-stgloc-name]
  snapshot-view-pname
---





Wim Deblauwe wrote:
> 
> Hi,
> 
> see below
> 
> 2006/7/31, MySelf <[EMAIL PROTECTED]>:
>>
>>
>> Hi,
>> I have some problems with the configuration of Continuum for ClearCase,
>> in
>> the web site it is said that we have to create a "clearcase-settings.xml"
>> and placing it in a .scm subdirectory of the home directory, i created
>> one
>> i
>> put into it these informations:
>>
>>
>> 
>> E:\vuesCC
>> false
>> 
>>
>>
>>
>>
>> but i don't know where is the home directory
> 
> 
> Your home directory on windows is c:\documents and settings\.
> 
> Also i'd like to know if i have to add a dependency in my pom for the
>> maven-scm plugin.
> 
> 
> No,  that is not needed
> 
> Looking for a solution, i placed my xml file in
>> %CONTINUUMHOME%\bin\win32\conf\.scm and i had this error:
>>
>>
>> Provider mesasge: The cleartool command failed
>> command output:
>>
>> cleartool :  Error :  Unrecognized command option: "-vws"
> 
> 
> What type of clearcase are you using? Base, UCM, LT, ...?
> 
> Anyone can help me with these problems??
>>
>> (I think that the best solution to don't have as many questions about the
>> configuration is to give examples -as it is done with maven2 in the
>> better
>> builds with maven book-)
>> --
>> View this message in context:
>> http://www.nabble.com/-for-newbie--ClearCase-configuration-tf2026205.html#a5571837
>> Sent from the Continuum - Users forum at Nabble.com.
>>
>>
> 
> 
-- 
View this message in context: 
http://www.nabble.com/-for-newbie--ClearCase-configuration-tf2026205.html#a5574734
Sent from the Continuum - Users forum at Nabble.com.



Re: [for newbie] ClearCase configuration

2006-07-31 Thread MySelf

Thanks for your help ^_^ 

for my clearcase, it's an LT one (i'm in a training periode and i've juste
discovered the maven universe and also the UCM one..)
-- 
View this message in context: 
http://www.nabble.com/-for-newbie--ClearCase-configuration-tf2026205.html#a5574647
Sent from the Continuum - Users forum at Nabble.com.



Re: Howto declare a dependency on a group of modules

2006-07-31 Thread Roland Förther


Am 31.07.2006 um 13:13 schrieb Barrie Treloar:


It would be nice for convenience
to have
a kind of maven project, which for example could be called
'application-x-ejb-client',
that bundles the dependencies for a client and might help deliver
them all
by providing a single dependency declaration on application-x-ejb- 
client

in thw web client's POM.


I'm not doing web development.
I have no notion of how many ejb-clients you would normally have.

Unless you can get some regular expression magic to help import things
you would need to declare your dependencies in your
"application-x-ejb-client" project and these exact ones would be
needed in your client as well.  Whether you declare them in
application-x-ejb-client or in your client pom they still need to be
declared.  The only benefit I could see would be if you had more than
one client and by creating this extra project you can apply DRY (don't
repeat yourself). Otherwise I can't see any benefit.


Indeed, DRY is one benefit I want to get and we have several clients.
But think of a typical scenario, where client and middleware is  
developed by separate
teams. You get decoupling of client dependency from client artifact  
naming, versioning and partitioning,
which is controlled by the middleware team, if you use an  
intermediate 'application-x-ejb-client' project.


-

Roland




I think it is important to explicit list your dependencies, otherwise
you pull in cruft and the kitchen sink unnecessarily.

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



__
Roland Förther  100world.com AG
[EMAIL PROTECTED]www.100world.com




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



Re: Ad: Re: Howto declare a dependency on a group of modules

2006-07-31 Thread Roland Förther

Hi,

Am 31.07.2006 um 12:40 schrieb Stefan Magnus Landrø:


We've done something similar. We use project of type pom that declares
dependencies to things that several of our projects need.

So, create a project with all the EJB dependencies, and include it  
as a

standard dependency. The transitive-dependency mechanism in maven will
take care of the rest.

Stefan



Many thanks! That helps.

A note:

One should not forget to set the dependency type to the bundling  
project as POM (...pomotherwise maven tries to resolve a none existing JAR artifact for the  
bundling project.


- Roland


Roland Förther <[EMAIL PROTECTED]> skrev 31.07.2006  
12:33:04:



Hi,

On 31.07.2006 at 11:42, Barrie Treloar wrote:


On 7/31/06, Roland Förther <[EMAIL PROTECTED]> wrote:

Hi,

is it possible to specify a dependency on several modules
by a single dependency declaration (e.g. by a dependency on a  
parent

pom)?


You might want to explain more of what you are trying to do.


Ok, let me describe, what I'm trying to do. Think of a web client,
which acts on a J2EE middleware using many ejb client JARs.
Each ejb client JAR is an artifact generated by a maven project with
type 'ejb'.
These ejb projects do not depend on each other and are part
of what we call a middleware application.

In the web client's POM I have to make a dependency declaration
on each ejb client jar separately. It would be nice for convenience
to have
a kind of maven project, which for example could be called
'application-x-ejb-client',
that bundles the dependencies for a client and might help deliver
them all
by providing a single dependency declaration on application-x-ejb- 
client

in thw web client's POM.




Also you might want to make sure the terminology you use is correct.
It took me a while to work it out and I can't guarantee I'm 100%
correct.

A module is just a way to make building your application easier from
the command line.
It has zero effect on dependencies since in order to be a parent
module and have modules your project must be of type pom, which is
doesn't compile anything. (You do get pom.xml inheritance but  
that is
not the same as dependencies).  Through the use of modules you  
can run
a single maven command at the parent level and it will also be  
run on

all the modules.

A dependency is where your artifact requires the other artifact. And
with Maven 2 this is now transitive.  So if artifact A depends on
artifact B, and artifact B depends on C, then artifact A will
automatically pull in C through B.  You can have dependencies  
without

having a module.


I agree.



HTH

 
-

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



Thanks,

Roland

__
Roland Förther  100world.com AG
[EMAIL PROTECTED]www.100world.com




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



__
Roland Förther  100world.com AG
[EMAIL PROTECTED]www.100world.com




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



maven-fitnesse-plugin

2006-07-31 Thread arvind.pal
hi 
i hav a problem to install maven-fitnesse-plugin
error:- not a valid file
  and clear me that how can i run fitnesse tests through maven

thanks in advance

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

Re: Howto declare a dependency on a group of modules

2006-07-31 Thread Barrie Treloar

It would be nice for convenience
to have
a kind of maven project, which for example could be called
'application-x-ejb-client',
that bundles the dependencies for a client and might help deliver
them all
by providing a single dependency declaration on application-x-ejb-client
in thw web client's POM.


I'm not doing web development.
I have no notion of how many ejb-clients you would normally have.

Unless you can get some regular expression magic to help import things
you would need to declare your dependencies in your
"application-x-ejb-client" project and these exact ones would be
needed in your client as well.  Whether you declare them in
application-x-ejb-client or in your client pom they still need to be
declared.  The only benefit I could see would be if you had more than
one client and by creating this extra project you can apply DRY (don't
repeat yourself). Otherwise I can't see any benefit.

I think it is important to explicit list your dependencies, otherwise
you pull in cruft and the kitchen sink unnecessarily.

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



Re: [m1.1] artifactId or id?

2006-07-31 Thread Trygve Laugstøl

Arnaud HERITIER wrote:

If my memory is good...

If Id is a simple name, id is used as a shotcut if groupId=artifactId thus
groupId=id and artifactId=id
If id is a compound name id=foo:bar, maven must understand that groupId=foo
and artifact=bar.

Id should be deprecated and is just here to maintain the backward
compatibility.


 was deprecated like 3 years ago, well before we even started on 
Maven 2.


--
Trygve

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



Non-classpath resources filtering?

2006-07-31 Thread Adrian Shum
Dear all,

I am new to Maven and I have tried to find related answer but I failed.

Is it possible to perform non-classpath resources filter?
My application has its own application configs which I don't want to
put into the JAR.  Instead I want it be put in a separated directory
to let users able to change directly (which I think I can achieve
by using maven-assembly-plugin, right?).  I'd like to use filtering
to generate config files for different environments.

Seems I can only filter resources under  in POM.
However, if resources are put there it will be jarred which is not
I want.

Is there any suggestion if I want to achieve this?  Thanks.

Best regards,
Alien



This email is confidential. If you are not the intended recipient, please 
delete it from your system and notify the sender immediately. Any unauthorized 
use, disclosure, dissemination or copying of this email is prohibited. Tai Fook 
Securities Group, its group companies and their content providers ("Parties") 
shall not be responsible for the accuracy or completeness of this email or its 
attachment, if any, which could contain virus, be corrupted, destroyed, 
incomplete, intercepted, lost or arrive late.   The Parites do not accept 
liability for any damage caused by this email.



Ad: Re: Howto declare a dependency on a group of modules

2006-07-31 Thread Stefan Magnus Landrø
We've done something similar. We use project of type pom that declares 
dependencies to things that several of our projects need.

So, create a project with all the EJB dependencies, and include it as a 
standard dependency. The transitive-dependency mechanism in maven will 
take care of the rest.

Stefan

Roland Förther <[EMAIL PROTECTED]> skrev 31.07.2006 12:33:04:

> Hi,
> 
> On 31.07.2006 at 11:42, Barrie Treloar wrote:
> 
> > On 7/31/06, Roland Förther <[EMAIL PROTECTED]> wrote:
> >> Hi,
> >>
> >> is it possible to specify a dependency on several modules
> >> by a single dependency declaration (e.g. by a dependency on a parent
> >> pom)?
> >
> > You might want to explain more of what you are trying to do.
> 
> Ok, let me describe, what I'm trying to do. Think of a web client,
> which acts on a J2EE middleware using many ejb client JARs.
> Each ejb client JAR is an artifact generated by a maven project with 
> type 'ejb'.
> These ejb projects do not depend on each other and are part
> of what we call a middleware application.
> 
> In the web client's POM I have to make a dependency declaration
> on each ejb client jar separately. It would be nice for convenience 
> to have
> a kind of maven project, which for example could be called 
> 'application-x-ejb-client',
> that bundles the dependencies for a client and might help deliver 
> them all
> by providing a single dependency declaration on application-x-ejb-client
> in thw web client's POM.
> 
> 
> >
> > Also you might want to make sure the terminology you use is correct.
> > It took me a while to work it out and I can't guarantee I'm 100% 
> > correct.
> >
> > A module is just a way to make building your application easier from
> > the command line.
> > It has zero effect on dependencies since in order to be a parent
> > module and have modules your project must be of type pom, which is
> > doesn't compile anything. (You do get pom.xml inheritance but that is
> > not the same as dependencies).  Through the use of modules you can run
> > a single maven command at the parent level and it will also be run on
> > all the modules.
> >
> > A dependency is where your artifact requires the other artifact. And
> > with Maven 2 this is now transitive.  So if artifact A depends on
> > artifact B, and artifact B depends on C, then artifact A will
> > automatically pull in C through B.  You can have dependencies without
> > having a module.
> 
> I agree.
> 
> >
> > HTH
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> Thanks,
> 
> Roland
> 
> __
> Roland Förther  100world.com AG
> [EMAIL PROTECTED]www.100world.com
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


problem in uploading to internal repository

2006-07-31 Thread sharmishta.kaul
I'm using maven1.0. I've not created special plugins for this. manually logging 
to the given url takes me nowhere. however if I use http protocol, the manual 
login is successful but maven gives the exception Unable to connect to 
'http:/localhost:8080/MavenRepository'. I've not worked in maven before so I 
may be missing something. Please help

i'm usin the following code in project.properties
>maven.repo.list=R1
>maven.repo.R1= scp://localhost:8080/MavenRepository
>maven.repo.R1.directory=c:/repository
>
> when I give the cmd maven jar:deploy
> I get the following exception
>
> jar:deploy:
> [echo] maven.repo.list is set - using artifact deploy mode
> Will deploy to 1 repository(ies): R1
> Deploying to repository: R1
> java.net.UnknownHostException: /localhost:8080/MavenRepository
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
> at java.net.Socket.connect(Socket.java:507)
> at java.net.Socket.connect(Socket.java:457)
> at java.net.Socket.(Socket.java:365)
> at java.net.Socket.(Socket.java:178)
> at com.jcraft.jsch.Session.connect(Unknown Source)
> at org.apache.maven.deploy.deployers.GenericSshDeployer.init(
> GenericSshDeployer.java:181)
> at org.apache.maven.deploy.deployers.ScpDeployer.init(
> ScpDeployer.java:103)
> at org.apache.maven.deploy.DeployTool.deploy(DeployTool.java:134)
> at
> org.apache.maven.artifact.deployer.DefaultArtifactDeployer.doDeploy
> (DefaultArtifactDeplo
> at
> org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy
> (DefaultArtifactDeploye
> at
> org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy
> (DefaultArtifactDeploye
> at org.apache.maven.artifact.deployer.DeployBean.deploy(
> DeployBean.java:144)
> 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.apache.commons.jelly.impl.DynamicBeanTag.doTag(
> DynamicBeanTag.java:230)
> at org.apache.commons.jelly.impl.StaticTagScript.run(
> StaticTagScript.java:145)
> at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java
> :135)
> at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java
> :233)
> at org.apache.commons.jelly.tags.core.OtherwiseTag.doTag(
> OtherwiseTag.java:87)
> at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
> at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java
> :135)
> at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java
> :233)
> at org.apache.commons.jelly.tags.core.ChooseTag.doTag(
> ChooseTag.java:84)
> at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
> at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java
> :135)
> at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java
> :125)
> at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
> at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java
> :135)
> at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(
> MavenGoalTag.java:79)
> at
> org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction
> (MavenGoalTa
> at com.werken.werkz.Goal.fire(Goal.java:639)
> at com.werken.werkz.Goal.attain(Goal.java:575)
> at org.apache.maven.plugin.PluginManager.attainGoals(
> PluginManager.java:671)
> at org.apache.maven.MavenSession.attainGoals(MavenSession.java
> :263)
> at org.apache.maven.cli.App.doMain(App.java:488)
> at org.apache.maven.cli.App.main(App.java:1239)
> 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 com.werken.forehead.Forehead.run(Forehead.java:551)
> at com.werken.forehead.Forehead.main(Forehead.java:581)
> Failed to deploy to: R1 Reason: Cannot connect. Reason: Session.connect:
> java.net.UnknownHostExcept
>
> BUILD FAILED
> File.. C:\Documents and Settings\Administrator\.maven\cache\maven-
> artifact-plugin-1.4.1\plugin.
> Element... artifact:artifact-deploy
> Line.. 94
> Column 13
> Unable to deploy to any repositories
> Total time: 2 minutes 32 seconds
> Finished at: Mon Jul 31 11:00:55 GMT+05:30 2000
>
> 
>
>
>

-
To unsubscr

Re: Howto declare a dependency on a group of modules

2006-07-31 Thread Roland Förther

Hi,

On 31.07.2006 at 11:42, Barrie Treloar wrote:


On 7/31/06, Roland Förther <[EMAIL PROTECTED]> wrote:

Hi,

is it possible to specify a dependency on several modules
by a single dependency declaration (e.g. by a dependency on a parent
pom)?


You might want to explain more of what you are trying to do.


Ok, let me describe, what I'm trying to do. Think of a web client,
which acts on a J2EE middleware using many ejb client JARs.
Each ejb client JAR is an artifact generated by a maven project with  
type 'ejb'.

These ejb projects do not depend on each other and are part
of what we call a middleware application.

In the web client's POM I have to make a dependency declaration
on each ejb client jar separately. It would be nice for convenience  
to have
a kind of maven project, which for example could be called  
'application-x-ejb-client',
that bundles the dependencies for a client and might help deliver  
them all

by providing a single dependency declaration on application-x-ejb-client
in thw web client's POM.




Also you might want to make sure the terminology you use is correct.
It took me a while to work it out and I can't guarantee I'm 100%  
correct.


A module is just a way to make building your application easier from
the command line.
It has zero effect on dependencies since in order to be a parent
module and have modules your project must be of type pom, which is
doesn't compile anything. (You do get pom.xml inheritance but that is
not the same as dependencies).  Through the use of modules you can run
a single maven command at the parent level and it will also be run on
all the modules.

A dependency is where your artifact requires the other artifact. And
with Maven 2 this is now transitive.  So if artifact A depends on
artifact B, and artifact B depends on C, then artifact A will
automatically pull in C through B.  You can have dependencies without
having a module.


I agree.



HTH

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



Thanks,

Roland

__
Roland Förther  100world.com AG
[EMAIL PROTECTED]www.100world.com




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



Re: Re: Howto declare a dependency on a group of modules

2006-07-31 Thread Stefan Magnus Landrø
Have a look at transitive dependencies too (see Better builds with maven 
for more details).

HTH

"Barrie Treloar" <[EMAIL PROTECTED]> skrev 31.07.2006 11:42:46:

> On 7/31/06, Roland Förther <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > is it possible to specify a dependency on several modules
> > by a single dependency declaration (e.g. by a dependency on a parent
> > pom)?
> 
> You might want to explain more of what you are trying to do.
> 
> Also you might want to make sure the terminology you use is correct.
> It took me a while to work it out and I can't guarantee I'm 100% 
correct.
> 
> A module is just a way to make building your application easier from
> the command line.
> It has zero effect on dependencies since in order to be a parent
> module and have modules your project must be of type pom, which is
> doesn't compile anything. (You do get pom.xml inheritance but that is
> not the same as dependencies).  Through the use of modules you can run
> a single maven command at the parent level and it will also be run on
> all the modules.
> 
> A dependency is where your artifact requires the other artifact. And
> with Maven 2 this is now transitive.  So if artifact A depends on
> artifact B, and artifact B depends on C, then artifact A will
> automatically pull in C through B.  You can have dependencies without
> having a module.
> 
> HTH
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


Re: Howto declare a dependency on a group of modules

2006-07-31 Thread Barrie Treloar

On 7/31/06, Roland Förther <[EMAIL PROTECTED]> wrote:

Hi,

is it possible to specify a dependency on several modules
by a single dependency declaration (e.g. by a dependency on a parent
pom)?


You might want to explain more of what you are trying to do.

Also you might want to make sure the terminology you use is correct.
It took me a while to work it out and I can't guarantee I'm 100% correct.

A module is just a way to make building your application easier from
the command line.
It has zero effect on dependencies since in order to be a parent
module and have modules your project must be of type pom, which is
doesn't compile anything. (You do get pom.xml inheritance but that is
not the same as dependencies).  Through the use of modules you can run
a single maven command at the parent level and it will also be run on
all the modules.

A dependency is where your artifact requires the other artifact. And
with Maven 2 this is now transitive.  So if artifact A depends on
artifact B, and artifact B depends on C, then artifact A will
automatically pull in C through B.  You can have dependencies without
having a module.

HTH

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



Fwd: problem in uploading to internal repository

2006-07-31 Thread Arnaud HERITIER

I didn't notice that you emailed me directly.
Please, contact me on the maven users mailing list.

cheers

arnaud

-- Forwarded message --
From: Arnaud HERITIER <[EMAIL PROTECTED]>
Date: Jul 31, 2006 11:36 AM
Subject: Re: problem in uploading to internal repository
To: "sharmishta. kaul" <[EMAIL PROTECTED]>

Which maven and artifact plugin are you using ?
Are you sure that you have to use the port 8080 to do the copy using scp ?
did you try to manually logon on this host with ssh ?

Arnaud


On 7/31/06, sharmishta.kaul <[EMAIL PROTECTED]> wrote:


i'm usin the following code in project.properties
   maven.repo.list=R1
   maven.repo.R1= scp://localhost:8080/MavenRepository
   maven.repo.R1.directory=c:/repository

when I give the cmd maven jar:deploy
I get the following exception

jar:deploy:
[echo] maven.repo.list is set - using artifact deploy mode
Will deploy to 1 repository(ies): R1
Deploying to repository: R1
java.net.UnknownHostException : /localhost:8080/MavenRepository
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
at java.net.Socket.connect(Socket.java :507)
at java.net.Socket.connect(Socket.java:457)
at java.net.Socket.(Socket.java:365)
at java.net.Socket.(Socket.java:178)
at com.jcraft.jsch.Session.connect (Unknown Source)
at org.apache.maven.deploy.deployers.GenericSshDeployer.init(
GenericSshDeployer.java:181)
at org.apache.maven.deploy.deployers.ScpDeployer.init(
ScpDeployer.java:103)
at org.apache.maven.deploy.DeployTool.deploy (DeployTool.java:134)
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.doDeploy
(DefaultArtifactDeplo
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeploye

at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy
(DefaultArtifactDeploye
at org.apache.maven.artifact.deployer.DeployBean.deploy(
DeployBean.java:144)
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.apache.commons.jelly.impl.DynamicBeanTag.doTag(
DynamicBeanTag.java:230)
at org.apache.commons.jelly.impl.StaticTagScript.run(
StaticTagScript.java :145)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java
:135)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java
:233)
at org.apache.commons.jelly.tags.core.OtherwiseTag.doTag (
OtherwiseTag.java:87)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java
:135)
at org.apache.commons.jelly.TagSupport.invokeBody (TagSupport.java
:233)
at org.apache.commons.jelly.tags.core.ChooseTag.doTag(
ChooseTag.java:84)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run (ScriptBlock.java
:135)
at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java
:125)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run (ScriptBlock.java
:135)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(
MavenGoalTag.java:79)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction
(MavenGoalTa
at com.werken.werkz.Goal.fire(Goal.java:639)
at com.werken.werkz.Goal.attain(Goal.java:575)
at org.apache.maven.plugin.PluginManager.attainGoals(
PluginManager.java:671)
at org.apache.maven.MavenSession.attainGoals (MavenSession.java
:263)
at org.apache.maven.cli.App.doMain(App.java:488)
at org.apache.maven.cli.App.main(App.java:1239)
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 com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
Failed to deploy to: R1 Reason: Cannot connect. Reason: Session.connect :
java.net.UnknownHostExcept

BUILD FAILED
File.. C:\Documents and Settings\Administrator\.maven\cache\maven-
artifact-plugin-1.4.1\plugin.
Element... artifact:artifact-deploy
Line.. 94
Column 13
Unable to deploy to any repositories
Total time: 2 minutes 32 seconds
Finished at: Mon Jul 31 11:00:55 GMT+05:30 2000

please tell me what changes should I make so that up

Using mvn to download jars to local repository (without pom/project)

2006-07-31 Thread Jan Galinski

Hi,

on a server, I want to use mvn (2.0.4) to manage a central jar repository.
Even non maven applications should benifit from this, beacause there
will be be on common repository from where to link commons, db-drivers
etc. Its not going to be a real mirror, merely an "on demand" storage
folder.

So my question is:  How can I (using the mvn cli) just download and
store a jar from the central repo to my local repo without creating a
fake project and a pom?



mvn download  -package=mysql -file=driver -version=3.10


Seems to be rather simple, but its hard to search for (maven,
download, jar, repository ... gives me anything but an answer to my
problem).

Any hint, sytnax, cli-line appreciated

thanks
Jan

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



Generating Cobertura reports using Continuum

2006-07-31 Thread Piyush Kumar Nahata


Hi all,
   I'm just 2 days old in Continuum. I want to run the Cobertura reports
after the checkout has been done by Continuum. I tried specifying the
goals in  -->  -->  --> , but am not
able to see any resulting folder named site where the reports are
generally saved. I'm able to generate the reports if I give 'mvn
cobertura:cobertura' on the command prompt.
   Would be glad if someone is able to help me in this regard.
   For your reference here is the snapshot of my pom.xml

Thanks in advance... 

   POM.XML


  4.0.0
  maven-plugins
  maven-cobertura-plugin
  Cobertura Plug-in
  1.0-SNAPSHOT

  Maven Plugin for Cobertura
  http://maven-plugins.sourceforge.net/maven-cobertura-plugin
  2005

  
target
target/classes
target/test-classes
src/main/java
src/test/java

  
org.codehaus.mojo
cobertura-maven-plugin

  

  cobertura

  

  

  

  

  
org.codehaus.mojo
cobertura-maven-plugin
  

  
 
  

  cobertura
  cobertura
  1.8


  oro
  oro
  2.0.8


  asm
  asm
  2.0


  log4j
  log4j
  1.2.8


  urbanophile
  java-getopt
  1.0.9


  javancss
  javancss
  21.41


  javancss
  ccl
  21.41


  junit
  junit
  3.8.1
  jar
  
  

  
  
  scm:svn:file:///D:/Sample Repository/Sample2/trunk
  
  
  scm:svn:file:///D:/Sample Repository/Sample2/trunk
  
  




Regards,
Piyush Kumar Nahata,
Software Engineer.


-
This message, including any attachments, contains confidential information 
intended for a specific individual and purpose, and is intended for the 
addressee only. Any unauthorized disclosure, use, dissemination, copying, or 
distribution of this message or any of its attachments or the information 
contained in this e-mail, or the taking of any action based on it, is strictly 
prohibited. If you are not the intended recipient, please notify the sender 
immediately by return e-mail and delete this message.


Howto declare a dependency on a group of modules

2006-07-31 Thread Roland Förther

Hi,

is it possible to specify a dependency on several modules
by a single dependency declaration (e.g. by a dependency on a parent  
pom)?



Thanks,

Roland

__
Roland Förther  100world.com AG
[EMAIL PROTECTED]www.100world.com




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



RE: mvn idea bundles "provided" libraries

2006-07-31 Thread Roald Bankras
I've reported, and tried to fix it in MIDEA-62.

Roald Bankras
Software Engineer
JTeam b.v.

-Original Message-
From: Roald Bankras [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 31, 2006 9:00 AM
To: Maven Users List
Subject: RE: mvn idea bundles "provided" libraries

That’s a “bug” is the idea plugin. You can configure IDEA to not package the 
library on compilation. 


Roald Bankras
Software Engineer
JTeam b.v.

-Original Message-
From: Sanjiv Jivan [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 29, 2006 7:57 AM
To: Maven Users List
Subject: mvn idea bundles "provided" libraries

I have a web module in which the servlet API jar is declared with scope
"provided". When I generate an IDEA project file, "provided" scoped
libraries are also included as a library to be deployed by the web module.
"provided" modules should not be packaged by the web module. I'm using the
2.0 version of the idea plugin. Is there a way to exclude provided libraries
from being packaged but present during compile?

Thanks,
Sanjiv


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.5/403 - Release Date: 7/28/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.5/403 - Release Date: 7/28/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.394 / Virus Database: 268.10.5/403 - Release Date: 7/28/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.5/403 - Release Date: 7/28/2006
 

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



Re: [m1.1] artifactId or id?

2006-07-31 Thread Arnaud HERITIER

If my memory is good...

If Id is a simple name, id is used as a shotcut if groupId=artifactId thus
groupId=id and artifactId=id
If id is a compound name id=foo:bar, maven must understand that groupId=foo
and artifact=bar.

Id should be deprecated and is just here to maintain the backward
compatibility.

Open the issue, we'll take a look at it (it will be resolved for the RC1 if
we can't do it for the beta 3).

Arnaud

On 7/31/06, Daniel Beland <[EMAIL PROTECTED]> wrote:


I am using the build of 2006-07-23. Whenever I do jar:install or
jar:deploy
or war:install or war:deploy it does it.
Same thing for struts-module plugin or other custom plugins I developed.

It seems to come directly from the maven code as it is common to all
plugins
I've tried.

If I have the following code in the POM:

  id
  group
  artifact
  2.11-beta2


Here is the trace:


__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1-beta-3-SNAPSHOT

build:start:

java:prepare-filesystem:

java:compile:
xdoclet:hibernatedoclet:

fix-foreign-keys:

[echo] Compiling to c:\eclipse\workspace\DBInterface/target/classes
[echo]
==

  WARNING:  maven.compile.target is not set:
using the default value which depends on your JVM

==


java:jar-resources:
copy-hbm-files:


test:test:

jar:jar:

jar:install:
[echo] Installing...
Uploading to group/jars/id-2.11-beta2.jar:
 (467K)
Uploading to group/poms/id-2.11-beta2.pom:
 (16K)
BUILD SUCCESSFUL
Total time   : 12 seconds
Finished at  : Monday, July 31, 2006 10:02:49 BST AM

I'll open a bug in jira

On 7/29/06, Lukas Theussl <[EMAIL PROTECTED]> wrote:
>
> Where did you read that in maven 1.1  is used instead of
> ? It should be just the other way round, we have replaced
>  by the combination . However, there are
> probably still some inconsistencies (see eg [1]), so it would be good to
> know where you ran into problems with this?
>
> Cheers,
> -Lukas
>
> [1] http://jira.codehaus.org/browse/MAVEN-1704
>
>
> Daniel Beland wrote:
> > Hi,
> >
> >
> > in maven 1.0.2, when I install or deploy an artifact, it is put in the
> >  directory under s and the artifact is named
> > .
> >
> > Now in maven 1.1, the artifact is named  instead of .
I
> was
> > not using this tag previously I think Mevenide defaults it to
> > : so obviously it causes problems because it is
not
> > named as before and it is not deployed at all (I think the colon is
not
> > supported in the file name).
> >
> >
> > On the web site it says this:
> > id  The short name of the project. This value is used when naming
> > jarsand
> > distribution
> > files .
> > groupId The short name of the project group. This value is used to
> > group all jars
> > for a project in one directory. For more info look at the user
> > guide.
> >  artifactId  The short name of the project. This value is used in
> > conjunction with groupId when naming
> > jarsand
> > distribution
> > files .
> >
> > I don't mind updating all my project files, I just want to make sure
it
> is
> > the expected behaviour from now on before I do it?
> >
> >
> > Thanks,
> > Daniel
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




Re: [m1.1] artifactId or id?

2006-07-31 Thread Daniel Beland

I am using the build of 2006-07-23. Whenever I do jar:install or jar:deploy
or war:install or war:deploy it does it.
Same thing for struts-module plugin or other custom plugins I developed.

It seems to come directly from the maven code as it is common to all plugins
I've tried.

If I have the following code in the POM:

 id
 group
 artifact
 2.11-beta2


Here is the trace:


__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1-beta-3-SNAPSHOT

build:start:

java:prepare-filesystem:

java:compile:
xdoclet:hibernatedoclet:

fix-foreign-keys:

   [echo] Compiling to c:\eclipse\workspace\DBInterface/target/classes
   [echo]
==

 WARNING:  maven.compile.target is not set:
   using the default value which depends on your JVM

==


java:jar-resources:
copy-hbm-files:


test:test:

jar:jar:

jar:install:
   [echo] Installing...
Uploading to group/jars/id-2.11-beta2.jar:
 (467K)
Uploading to group/poms/id-2.11-beta2.pom:
 (16K)
BUILD SUCCESSFUL
Total time   : 12 seconds
Finished at  : Monday, July 31, 2006 10:02:49 BST AM

I'll open a bug in jira

On 7/29/06, Lukas Theussl <[EMAIL PROTECTED]> wrote:


Where did you read that in maven 1.1  is used instead of
? It should be just the other way round, we have replaced
 by the combination . However, there are
probably still some inconsistencies (see eg [1]), so it would be good to
know where you ran into problems with this?

Cheers,
-Lukas

[1] http://jira.codehaus.org/browse/MAVEN-1704


Daniel Beland wrote:
> Hi,
>
>
> in maven 1.0.2, when I install or deploy an artifact, it is put in the
>  directory under s and the artifact is named
> .
>
> Now in maven 1.1, the artifact is named  instead of . I
was
> not using this tag previously I think Mevenide defaults it to
> : so obviously it causes problems because it is not
> named as before and it is not deployed at all (I think the colon is not
> supported in the file name).
>
>
> On the web site it says this:
> id  The short name of the project. This value is used when naming
> jarsand
> distribution
> files .
> groupId The short name of the project group. This value is used to
> group all jars
> for a project in one directory. For more info look at the user
> guide.
>  artifactId  The short name of the project. This value is used in
> conjunction with groupId when naming
> jarsand
> distribution
> files .
>
> I don't mind updating all my project files, I just want to make sure it
is
> the expected behaviour from now on before I do it?
>
>
> Thanks,
> Daniel
>

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




[for newbie] ClearCase configuration

2006-07-31 Thread MySelf

Hi,
I have some problems with the configuration of Continuum for ClearCase, in
the web site it is said that we have to create a "clearcase-settings.xml"
and placing it in a .scm subdirectory of the home directory, i created one i
put into it these informations:



E:\vuesCC
false





but i don't know where is the home directory
Also i'd like to know if i have to add a dependency in my pom for the
maven-scm plugin.


Looking for a solution, i placed my xml file in  
%CONTINUUMHOME%\bin\win32\conf\.scm and i had this error:


Provider mesasge: The cleartool command failed
command output:

cleartool :  Error :  Unrecognized command option: "-vws"



Anyone can help me with these problems??

(I think that the best solution to don't have as many questions about the
configuration is to give examples -as it is done with maven2 in the better
builds with maven book-)
-- 
View this message in context: 
http://www.nabble.com/-for-newbie--ClearCase-configuration-tf2026205.html#a5571837
Sent from the Continuum - Users forum at Nabble.com.



problem getting Remote deployment

2006-07-31 Thread neeraj daffodil

hi
 i am getting problem in deployment we can able to deploy in local
server9i just write one goal and copy the war file in our tomcat webapp
directory but while in case of remote directory i am unable to do this
since the plugin i got for tomcat deployment it not working (i got it from
codezar site) and  getting error

BUILD FAILED
File.. C:\Documents and
Settings\harvinder.bhutani.HARVINDER\.maven\cache\maven-
tomcat-plugin-1.2.1\plugin.jelly
Element... deploy
Line.. 122
Column 22
org/apache/tools/ant/taskdefs/Redirector
Total time: 24 seconds
Finished at: Mon Jul 31 13:33:39 GMT+05:30 2006

C:\workcruise\Checkout\GWTFrameworkNewTestMaven\framework_gwtMaven\framwork_gwtMaven>

i am useing the tomcate  5.x is if any one have solution than please send me
replay



Regards

Neeraj Singh  Bisht


Using version ranges for building an EAR

2006-07-31 Thread Heiko Wolf

Hi, I have a little problem with my depencies. I try to build an EAR, which
works without problems. I have defined an additional repository on a local
file server. If I try to define a depency with an intervall version like [
1.0, 2.0), then maven checks only the repository on the fileserver for
versions, but not my local files in ~/.m2/repository/ ! If I define the
depency with a normal version like 1.3, without providing a range,
everything works fine, maven takes the artifact out of my ~/.m2-directory.

I try to catch this issue by looking at debug output provided with the -X
parameter, but I didn't find any usefull. Maven does not try to access local
files in ~/.m2/.

To make it more concrete: Using a version range like [ 1.0,2.0), maven does
not find a suitable version, because it looks only on the repository on my
file server, but there is no suitable on this repository. Then I use 1.3 as
version, and maven finds the artifact in my ~/.m2/-directory. But why maven
didn't find it using the version range?

If the repository on the file server provides a version like 1.2.1, then
maven finds it. The provided version range seems to work in this case, if I
only want to get the newest version from the remote repository. But it
ignores local versions in ~/.m2/

Thanks,

Heiko