Re: use mvn install inside POM.xml

2007-03-12 Thread Neeraj Bisht

There are two solution

1)put that jar manually in the Repository

2) or use ANT task inside the Pom.xml (use copy task of ant)

On 3/12/07, Gregory Kick [EMAIL PROTECTED] wrote:


It doesn't look like it because you can't override artifactId,
groupId, file, etc.

On 3/12/07, sirji [EMAIL PROTECTED] wrote:

 Hi all,

 I have project requirement where we need to install custom jar file
 (generated using another project) into the maven local repository using
mvn
 install command.

 My question is: How can we run mvn install command from POM.xml? Kindly
let
 me know if this is not possible.

 Thanks  regards,

 --
 View this message in context:
http://www.nabble.com/use-mvn-install-inside-POM.xml-tf3388796s177.html#a9432558
 Sent from the Maven - Users mailing list archive at Nabble.com.


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




--
Gregory Kick
[EMAIL PROTECTED]

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




Re: two projects.. invoke install for first project from another

2007-03-12 Thread Neeraj Bisht

use multiproject build to do your task
On 3/11/07, sirji [EMAIL PROTECTED] wrote:



Hi all,

I have two projects, first is JAR project and second is webapp project. I
want to invoke the install goal for the first project from the POM file of
second project and expect it to move into the Lib directory of the webapp.

Kindly let me if this possible.. if yes, then how can I do this.

I was trying ant tasks mentioned at http://maven.apache.org/ant-tasks.html
,
but this isn't working for me. I get following error message:-

Unrecognised tag: 'artifact:install'

My intention is to call invoke of first project from another's POM file.

Any pointer on this will be really helpful.
--
View this message in context:
http://www.nabble.com/two-projects..-invoke-install-for-first-project-from-another-tf3383389s177.html#a9417491
Sent from the Maven - Users mailing list archive at Nabble.com.


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




Re: Building using Maven tool

2007-03-06 Thread Neeraj Bisht

i think you are missing required jar in repository or you have not provided
in your pom

like com.sun.xml.bind.util does not

work on the following  area  in your pom

dependencies

dependencyhttp://maven.apache.org/ref/2.0.3-SNAPSHOT/maven-model/maven.html#class_dependency



 groupId/
 artifactId/
 version/
 type/
 classifier/
 scope/
 systemPath/
 exclusions

exclusionhttp://maven.apache.org/ref/2.0.3-SNAPSHOT/maven-model/maven.html#class_exclusion



 artifactId/
 groupId/
   /exclusion
 /exclusions
 optional/
   /dependency
 /dependencies






On 3/7/07, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:








Hi,

Can anybody of the Maven Users group help me resolve the issue.

I am trying to build a java project with Maven2.And stuck with some
package not found error at compile time.The required package includes
all the jars and libs , even I have kept it inside the project directory
structure ,Maven is not considering it for compilation.So my question
is, can somebody please throw some light on where to specify the lib
classpath for maven execution.For your lookup I am attaching the error
code here, with the hope that Fisheye team will respond with a positive
solution:

D:\sde3.0\workspace\BuildPoc\jaxb\org\cdisc\ns\odm\v1\impl\runtime\Valid
atableOb
ject.java:[10,28] package com.sun.msv.verifier does not exist

D:\sde3.0\workspace\BuildPoc\jaxb\org\w3\_2000\_09\xmldsig_\impl\SPKIDat
aTypeImp
l.java:[15,35] package com.sun.xml.bind.util does not exist

D:\sde3.0\workspace\BuildPoc\jaxb\org\w3\_2000\_09\xmldsig_\impl\SPKIDat
aTypeImp
l.java:[17,38] package com.sun.msv.grammar does not exist

D:\sde3.0\workspace\BuildPoc\jaxb\org\w3\_2000\_09\xmldsig_\impl\SPKIDat
aTypeImp
l.java:[23,35] package com.sun.xml.bind.util does not exist

D:\sde3.0\workspace\BuildPoc\jaxb\org\cdisc\ns\odm\v1\impl\runtime\Unmar
shalling
Context.java:[10,22] package javax.xml.bind does not exist

D:\sde3.0\workspace\BuildPoc\jaxb\org\cdisc\ns\odm\v1\impl\runtime\Unmar
shalling
Context.java:[17,37] package com.sun.xml.bind.unmarshaller does not
exist

D:\sde3.0\workspace\BuildPoc\jaxb\org\cdisc\ns\odm\v1\impl\runtime\XMLSe
rializer
.java:[10,22] package javax.xml.bind does not exist

D:\sde3.0\workspace\BuildPoc\jaxb\org\cdisc\ns\odm\v1\impl\runtime\XMLSe
rializer
.java:[14,24] package com.sun.xml.bind does not exist

D:\sde3.0\workspace\BuildPoc\jaxb\org\cdisc\ns\odm\v1\impl\runtime\XMLSe
rializer
.java:[15,35] package com.sun.xml.bind.marshaller does not exist

D:\sde3.0\workspace\BuildPoc\jaxb\org\cdisc\ns\odm\v1\impl\runtime\XMLSe
rializer
.java:[16,35] package com.sun.xml.bind.serializer does not exist

D:\sde3.0\workspace\BuildPoc\jaxb\org\w3\_2000\_09\xmldsig_\impl\SPKIDat
aTypeImp
l.java:[147,31] package com.sun.msv.verifier does not exist

D:\sde3.0\workspace\BuildPoc\jaxb\org\cdisc\ns\odm\v1\impl\runtime\Valid
atableOb
ject.java:[19,4] cannot find symbol
symbol : class DocumentDeclaration
location: interface org.cdisc.ns.odm.v1.impl.runtime.ValidatableObject

D:\sde3.0\workspace\BuildPoc\jaxb\org\cdisc\ns\odm\v1\impl\runtime\Gramm
arInfo.j
ava:[10,22] package javax.xml.bind does not exist

D:\sde3.0\workspace\BuildPoc\jaxb\org\cdisc\ns\odm\v1\impl\runtime\Unmar
shalling
Context.java:[194,22] cannot find symbol
symbol : class ValidationEvent
location: interface
org.cdisc.ns.odm.v1.impl.runtime.UnmarshallingContext

D:\sde3.0\workspace\BuildPoc\jaxb\org\cdisc\ns\odm\v1\impl\runtime\Unmar
shalling
Context.java:[223,4] cannot find symbol
symbol : class Tracer
location: interface
org.cdisc.ns.odm.v1.impl.runtime.UnmarshallingContext

D:\sde3.0\workspace\BuildPoc\jaxb\org\cdisc\ns\odm\v1\impl\runtime\XMLSe
rializer
.java:[66,22] cannot find symbol
symbol : class ValidationEvent
location: interface org.cdisc.ns.odm.v1.impl.runtime.XMLSerializer

D:\sde3.0\workspace\BuildPoc\jaxb\org\cdisc\ns\odm\v1\impl\runtime\XMLSe
rializer
.java:[66,49] cannot find symbol
symbol : class AbortSerializationException
location: interface org.cdisc.ns.odm.v1.impl.runtime.XMLSerializer

D:\sde3.0\workspace\BuildPoc\jaxb\org\cdisc\ns\odm\v1\impl\runtime\XMLSe
rializer
.java:[176,17] cannot find symbol
symbol : class IdentifiableObject
location: interface org.cdisc.ns.odm.v1.impl.runtime.XMLSerializer

D:\sde3.0\workspace\BuildPoc\jaxb\org\cdisc\ns\odm\v1\impl\runtime\XMLSe
rializer
.java:[189,20] cannot find symbol
symbol : class IdentifiableObject
location: interface org.cdisc.ns.odm.v1.impl.runtime.XMLSerializer

D:\sde3.0\workspace\BuildPoc\jaxb\org\cdisc\ns\odm\v1\impl\runtime\XMLSe
rializer
.java:[209,22] cannot find symbol
symbol : class JAXBObject
location: interface org.cdisc.ns.odm.v1.impl.runtime.XMLSerializer

D:\sde3.0\workspace\BuildPoc\jaxb\org\cdisc\ns\odm\v1\impl\runtime\XMLSe
rializer

Re: Maven 1.x users

2007-02-02 Thread Neeraj Bisht

Many of us using maven 1.0 because it is more stable and we can use as much
as customization using pre and post goal

Regards
Neeraj


On 2/2/07, Build Admin [EMAIL PROTECTED] wrote:


Hi Friends
I am a maven 1.x user. I don't find more users in my side.
If so please mail me. I am having some clarification with Maven 1.1




Re: null project

2007-01-23 Thread Neeraj Bisht

You have not specify the name in the project
nameMaven Quick Start Archetype/name


On 1/24/07, adingfelder [EMAIL PROTECTED] wrote:



when running maven (from within eclipse) I get the following at the start
of
the build

[DEBUG] Building Maven user-level plugin registry from:
'home\.m2\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO]


[INFO] Building Unnamed - common_java:common_java:jar:0.0.1
[INFO]task-segment: [install]
[INFO]


[DEBUG] maven-resources-plugin: resolved to version 2.2 from repository
central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1for
project: null:maven-resources-plugin:maven-plugin:2.2 from the repository.

I noticed 2 interesting things:

[INFO] Building Unnamed  -- why is it unnamed and how do I set a name?

[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1for
project: null: -- why is it null and how do I correct this?

Thoughts?

Cheers,

Andy Dingfelder


--
View this message in context:
http://www.nabble.com/null-project-tf3077755s177.html#a8550790
Sent from the Maven - Users mailing list archive at Nabble.com.


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




Maven in .NET

2007-01-22 Thread Neeraj Bisht

Hi all
  i have been using maven 1.0.2  for java build and deployment in
jboss server .

my question  is that, Is any build tool like maven available to build .net
project  and deployment

or there is version available of maven for .net


Regards  Thanks
Neeraj


Fwd: Maven in .NET

2007-01-22 Thread Neeraj Bisht

-- Forwarded message --
From: Neeraj Bisht [EMAIL PROTECTED]
Date: Jan 23, 2007 10:07 AM
Subject: Maven in .NET
To: Maven Users List users@maven.apache.org

Hi all
  i have been using maven 1.0.2  for java build and deployment in
jboss server .

my question  is that, Is any build tool like maven available to build .net
project  and deployment

or there is version available of maven for .net


Regards  Thanks
Neeraj


Re: Alternative to maven

2007-01-21 Thread Neeraj Bisht

There is maven plugin available for maven 1.0.x and for maven 2.0.X  in
eclipse ID might be its help you ,it is free

Regards
Neeraj


On 1/22/07, Rahamim, Zvi (Zvi) [EMAIL PROTECTED] wrote:


Hi,
A month ago I started looking for a solution for building different kind
of projects.
I have to say that I find maven a great solution.
What I want to know is:
1. If there is a different solution (not Ant)
2. If there is a GUI for maven: for example, when you double click on a
pom.xml it will open a dialog that enables you select build parameters
(that might be different than the ones in pom.xml), e.g.:
   a. Select the dependencies version from the versions on the
repositories
   b. In jar project select whether or not to create a source jar/
javadoc jar / select the jdk to compile...
3. If there is a project version management (that will show information
about my deployed repository - such as which projects are exist, what
are the versions for a project...)

If you know of such, even commercial, please let me know.
Thanks!

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




Re: Setting up a Internal Maven Repo

2007-01-15 Thread Neeraj Bisht

Hi go for this link

http://maven.apache.org/maven-1.x/reference/internal-repositories.html
it will help you

Regards
Neeraj


On 1/16/07, CHHAJED, Amit, GBM [EMAIL PROTECTED] wrote:


Hi,

I was looking for a links which will help me in setting up a Internal
Maven
repository and things that I need to take care while setting the same. Any
help / links / suggestions would be appreciated.

Thanks,
Amit Chhajed
Senior Developer
GBM | Royal Bank Of Scotland
Desk: +91-124-4336400 Ext : 6753


***
The Royal Bank of Scotland plc. Registered in Scotland No 90312.
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.
Authorised and regulated by the Financial Services Authority

This e-mail message is confidential and for use by the
addressee only. If the message is received by anyone other
than the addressee, please return the message to the sender
by replying to it and then delete the message from your
computer. Internet e-mails are not necessarily secure. The
Royal Bank of Scotland plc does not accept responsibility for
changes made to this message after it was sent.

Whilst all reasonable care has been taken to avoid the
transmission of viruses, it is the responsibility of the recipient to
ensure that the onward transmission, opening or use of this
message and any attachments will not adversely affect its
systems or data. No responsibility is accepted by The
Royal Bank of Scotland plc in this regard and the recipient should carry
out such virus and other checks as it considers appropriate.
Visit our websites at:
www.rbs.com
www.rbsgc.com
www.rbsmarkets.com

***

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




Re: gwt maven 2

2007-01-12 Thread Neeraj Bisht

i think you have not included the .xml file the jar or war project

use tag   include*.xml /include

in your pom


By  the way maven 1.0.2 plugin is quite god and powerfull (we are  using gwt
plugin in maven 1.0.2

Regards
Neeraj


On 1/12/07, Maruf Aytekin [EMAIL PROTECTED] wrote:


I have a gwt project and I am trying to buil dit with maven 2. I checked
out maven-googlewebtoolkit2-plugin from
|http://gw-maven.googlecode.com/svn/trunk/ |and built it and installed
it and dependencies to .m2 local repository.

I have added this plugin in the pom as follows:

build
plugins
  plugin
 groupIdcom.totsp.gwt.maven/groupId
 artifactIdmaven-googlewebtoolkit2-plugin/artifactId
 configuration


googleWebToolkitOutputDirectory${basedir}/target/webapp/googleWebToolkitOutputDirectory

googleWebToolkitCompileTargetcom.mycompany.myapp.customer.Hello
/googleWebToolkitCompileTarget
   googleWebToolkitHomeC:\gwt/googleWebToolkitHome
   sourceDirectories
 param${basedir}/src/main/java//param
   /sourceDirectories
 /configuration
 dependencies
   dependency
 groupIdcom.google.gwt/groupId
 artifactIdgwt-dev-windows/artifactId
 version1.3/version
   /dependency
   dependency
 groupIdcom.google.gwt/groupId
 artifactIdgwt-user/artifactId
 version1.3/version
   /dependency
  /dependencies
 /plugin
/plugins
  /build
I ran mvn googlewebtoolkit2:compile and it compiled fine. classpath is
as follows in the eclipse:

classpath
classpathentry kind=src path=src/main/java/
classpathentry kind=src path=src/main/resources/
classpathentry kind=src path=src/test/java
output=target/test-classes/
classpathentry kind=output path=target/classes/
classpathentry kind=con
path=org.eclipse.jdt.launching.JRE_CONTAINER/
/classpath

When I try to run it as gwt project it cannot find
com.mycompany.myapp.customer.Hello.gwt.xml. I am not sure how to set
directory structure. Currently I have orginized directory structure as
maven 2 directory structure. Hello.gwt.xml is located at:
${basedir}/src/main/java/com/mycompany/myapp/customer/

Did anyone use maven 2 to compile and deploy a gwt project? If you
someone can provide more information or sample on this I 'd really
appreceate it. I couldn't find much information on the web about this.

Many Thanks,

Maruf


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




Re: could not find build.properties

2007-01-10 Thread Neeraj Bisht

Actully you do not need to use build.properties file for maven ,but if you
need to use build.proerties
for maven then put it in ${userhome}


On 1/10/07, Neeraj Sehgal [EMAIL PROTECTED] wrote:


hi! i m facing a problem. actually i m trying to install pluto 1.0.1 from
the link

http://hnsp.inf-bb.uni-jena.de/pluto/gettingstarted

this says that u need a build.properties file. i was unable to locate this
file in my directories.
pl tell me where this file will be? in MAVEN or in PLUTO.


Cheers,

Neeraj Sehgal
L N T Infotech (Oracle SBU).
Bangalore.

__



Re: Multi project Feature

2007-01-10 Thread Neeraj Bisht

use maven 1.0.2 insted of maven 2.0 and use multiproject plugin ,in maven
1.0.2 you can customise the structure in pre and post goal

On 1/10/07, Marouane Amraoui [EMAIL PROTECTED] wrote:




Hi,



I have 4 eclipse project :



MYPROJECT_Appli  :  business layer : as jar file package

MYPROJECT_Web   :  gui layer : as war file package

MYPROJECT_Test   : test project

MYPROJECT_Workspace : conf files (build.xml), and libs



The final outpout of my project is :  myproject.ear. I use for that an ant
build to generate ear





I want to keep this structure directory and use maven , how can I use so ?



Thx in advance.





---

Merouane AMRAOUI
Consultant Expert
Division Développement
Email.: [EMAIL PROTECTED]

Gsm  .: 065 19 60 99
Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70
OMNIDATA , 74 Bv AbdelMoumen







Re: cargo plugin to deploy on geronimo

2006-12-15 Thread Neeraj Bisht

go for apache site and read the plugin properties

On 12/15/06, Vinita Joshi [EMAIL PROTECTED] wrote:


I am having hard time configuring pom.xml to deploy code
on geronimo. Does anybody know any tutorial or any
document on this?
Regards,
Vinita

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




Re: Error in running mvn

2006-12-05 Thread Neeraj Bisht

you have not set java_home or maven home

On 12/6/06, Dheeraj Agrawal [EMAIL PROTECTED] wrote:


Hi,

I just downloaded the bin tar ball for maven.
Extracted it and now trying to run it.
But I am getting the following error.

[EMAIL PROTECTED]:~/maven-2.0/bin$ ./mvn
Exception in thread main java.lang.NoClassDefFoundError:
org/codehaus/classworlds/Launcher


I had installed this earlier also but never got such an error.

Thanks
dheeraj




Re: How to ignore certain files in the source tree

2006-12-04 Thread Neeraj Bisht

use exclude inside the resource tag for the file which you not needed

and in resource directory use the src\main\java

it is worked in maven 1.x

but not sure about in maven 2.x

i think it will work on it also


Regards
Neeraj


On 12/5/06, Christian Goetze [EMAIL PROTECTED] wrote:


Wendy Smoak wrote:

 On 12/4/06, Christian Goetze [EMAIL PROTECTED] wrote:

  Where are the files located, and what type of files are they?

 They are . files generated by the build system into which I'm
 embedding maven. They contain additional metadata about the files and I
 do not have the option of moving them around. They will appear wherever
 source files exist, and they seem to end up in the jars generated by
the
 packaging.


 If they are under src/main/java, it's odd that they're getting
 included.  IME only .java files from there get compiled, everything
 else is ignored.  (For example, if you have .properties files stored
 with your source code, you have to add a resource to pick them up.)

You're right - the file ended up included via a filtered resource, and
my exclude didn't immediately do the job because I didn't say mvn
clean...
... which leads me to another gripe about maven, namely that
incremental builds are not very robust ... but I know quite well that
this is a very hard problem (hence the metadata files of the embedding
build system etc... )
--
cg

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




Webspear plugin for maven 1.0.2

2006-12-01 Thread Neeraj Bisht

hi all
i am able to build all the artifact through maven 1..0.2 but
now the time of deployment ,and we are planing to do deployment in webspare
portale can any one suggest me from where i can found the plugin of webspare
for maven1.0.2
 on googling i found plugin for tomcat  and JBoss but not found any plugin
regarding the webspare

on link i followed but it really not helpfull

The link is as follow

http://www-128.ibm.com/developerworks/websphere/library/techarticles/0503_boog/0503_boog.html?ca=dgr-lnxw09Maven

Regards
Neeraj singh Bisht


Re: [M2] A good guide to Multi-Module Assemblies?

2006-11-30 Thread Neeraj Bisht

hi
go to apache site in plugin sectio you  will find the relevent
information


On 12/1/06, Mick Knutson [EMAIL PROTECTED] wrote:


What is the issue?

There is this:
http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html

And it seems to work pretty well for me. If I knew what issue you where
having after this page, I can help...




On 11/30/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Hi

 Has any one got a reference to a multi-module assemblies?
 An article, a page, or a blog spot. TIA

 --
 Peter Pilgrim
 UBS Investment Bank,
 PTS Portal / IT FIRC OPS LDN,
 100 Liverpool Street, London EC2M 2RH, United Kingdom
 +44 (0) 20 75 75692
 :: Java EE / E-Commerce / Enterprise Integration / Development ::

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

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

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


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




--

Thanks

DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson




change the local repository in maven 1.x

2006-11-14 Thread Neeraj Bisht

hi
   we are using GWT ,and we build our GWT project with maven 1.x ,now
google release new jar and this time the jar path should not contain any
spaces in between the path
but we all know that maven build the repository at
$(userhome}/.maven/repositort

and  userhome contain spaces like c:/document and seeting/   (by default
maven genrate the local repository at this location)

now i need to change the local repository to the place where there is no
space in path

like c:/mavenrepository

in maven 2.x i know we can do it by seeting.xml how we can do in maven
1.xplease any body tell me with example

Regards
Neeraj


out of memory problem in maven 1.x

2006-11-14 Thread Neeraj Bisht

hi
   we are  compiling  our gwt source with maven 1.x but now our  project
is  become heaver and on compiling through maven it give out of memory
problem

is there any way by which we increash the memory of maven 1.x

Thanks

Regards
Neeraj


Re: change the local repository in maven 1.x

2006-11-14 Thread Neeraj Bisht

thank it works

On 11/15/06, Arnaud HERITIER [EMAIL PROTECTED] wrote:


in your project or user settings you define the property
maven.repo.local=c:/somewherelese

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

Arnaud



On 11/14/06, Neeraj Bisht [EMAIL PROTECTED] wrote:

 hi
 we are using GWT ,and we build our GWT project with maven 1.x ,now
 google release new jar and this time the jar path should not contain any
 spaces in between the path
 but we all know that maven build the repository at
 $(userhome}/.maven/repositort

 and  userhome contain spaces like c:/document and seeting/   (by
 default
 maven genrate the local repository at this location)

 now i need to change the local repository to the place where there is no
 space in path

 like c:/mavenrepository

 in maven 2.x i know we can do it by seeting.xml how we can do in maven
 1.xplease any body tell me with example

 Regards
 Neeraj






Re: Ant tasks in Maven

2006-10-16 Thread Neeraj Bisht

use ant task at worst case ,if you able to write the plugin then write it
and
remove the ant task
 As far as my knowledge ant task will be there in maven 2.0 as last as
maven will be there


On 10/17/06, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED]
wrote:


Is using Ant tasks in Maven going to be supported as long as Maven 2 is
supported?  I am using some Ant tasks in Maven 2 and I want to make sure
that I am doing the right thing.  Thanks.


This message (including any attachments) contains confidential information
intended for a specific individual and purpose, and is protected by law.  If
you are not the intended recipient, you should delete this message.


Any disclosure, copying, or distribution of this message, or the taking of
any action based on it, is strictly prohibited. [v.E.1]




need all dependency at compile time

2006-10-11 Thread Neeraj Bisht

hi all
 i want to collect all jar file at one place  from my
pom.xmldependency ,i write one plugin for that but in that plugin i am
unable to
define the path of lib
how i can achieve this ,i do not know

we are migrating our project from maven 1.x  to maven 2.0.4

we have done that work in maven 1.x by useing this task as one of the
preGoal and writing our logic in jelly
but here in maven 2.x i am unable

please if any body have any content regarding this please send

i also refrence this

http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide

but not got any properites regarding to my use
Regards
Neeraj


cruise control in maven 2.x

2006-10-10 Thread Neeraj Bisht

hi all
i had already cofigure cruise control with maven 1.X but now we are
shifting to maven 2.X
i searched in the google and did not find any plugin
 is there any cruise control plugin available for maven 2.x

i also came to know on googling that * Continuum  is also an alternative of
cruise controll*
*so any one please give me advise which one i will use with maven 2.0.4*
**
*Regards*
*Neeraj*


jar and war together

2006-10-09 Thread Neeraj Bisht

hi all
i want to install jar and war from one pom but how i can achieve
this i do not know
i tried and able to made the jar and war from single pom but able only to
install one
,either jar or war
 can any one tell  me how  i can install or deploy both jar and war
Regards
Neeraj


har plugin

2006-10-09 Thread Neeraj Bisht

hi all
can any one tell be there is any plugin for packing my project
in har file as like of jar  ,
Regards
Neeraj


Re: jar and war together

2006-10-09 Thread Neeraj Bisht

hi Ronny
 i tried both way and not able to install the jar or war
actully it is installing jar but which is it installing is also wrong
while at installing it show following message

Installing
D:\data\localcvs\ABHIWORK\sample\Release\DAK\module\war\target\dakwar-
1.0-SNAPSHOT.war to C:\Documents and
Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwoods\framework\dakwar\1.0-SNAPSHOT\dakwar-
1.0-SNAPSHOT.jar

On 10/9/06, Naess, Ronny [EMAIL PROTECTED] wrote:


Sorry, I do not have the answer for why this is not working. Maybe you
could try it the other way around?
Change your pom to hav packaging to war, and specify maven-jar-plugin
instead.

We have more than one pom with packaging set to jar and at same time
using maven-jar-plugin spesifying test-jar goal and both jars installs
correct to our repository.

-Ronny

-Opprinnelig melding-
Fra: neeraj daffodil [mailto:[EMAIL PROTECTED]
Sendt: 9. oktober 2006 09:40
Til: Maven Users List
Emne: Re: jar and war together

i have simple pom which contain only one source and of this source i
want to make war and jar

means
1)  i have one source and genrate jar and war of same source

my pom is like

project
modelVersion4.0.0/modelVersion
groupIdcom.daffodilwoods.framework/groupId
artifactIddakwar/artifactId
version 1.0-SNAPSHOT/version
packagingjar/packaging  !-- gunrate jar for my project --
dependencies
dependency

..
/dependency
dependencies


plugin !-- genrate war of same project --
groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-war-plugin/artifactId
   executions
 execution
   phaseinstall/phase
   configuration
   echohi i am configuring the WarSourceDirectory.. /echo
/configuration
   goals
 goalwar/goal
   /goals
 /execution
   /executions
 /plugin
  /plugins

  defaultGoalpackage/defaultGoal
/build

/project



i am able to genrate dakwar-1.0-SNAPSHOT.jar and

dakwar-1.0-SNAPSHOT.war but only able to install dakwar-1.0-SNAPSHOT.jar

in my local repository but i need both jar and war to be install in my
local repository

i am doing these operation on one source

how i can achieve this please tell

Regards

Neeraj





On 10/9/06, Naess, Ronny  [EMAIL PROTECTED] wrote:

 Do you have one pom with one war artifact and one jar dependency, or
 do you have one parent pom (maven 2) with two modules/artifacts?

 I guess you want your jar in [war]/WEB-INF/lib when deployed to
server?
 The jar artifact should be included into lib if spesified as a
 dependency. The war plugin is responsible for collecting all artifact
 dependencies, classes and resources of the web application and
 packaging them into a web application archive.

 With install, do you mean install into appserver or do you mean maven
 install aka uploading to local repository? If you meant install to
 appserver take a look at Cargo,
 http://cargo.codehaus.org/Maven2+plugin,
 if the latter look at
 http://maven.apache.org/plugins/maven-install-plugin/ in short just
 run 'mvn install'. I guess it was the first you were after? :-)

 -Ronny

 -Opprinnelig melding-
 Fra: Neeraj Bisht [mailto: [EMAIL PROTECTED]
 Sendt: 9. oktober 2006 08:40
 Til: users@maven.apache.org
 Emne: jar and war together

 hi all
 i want to install jar and war from one pom but how i can
 achieve this i do not know i tried and able to made the jar and war
 from single pom but able only to install one ,either jar or war can
 any one tell  me how  i can install or deploy both jar and war Regards

 Neeraj




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




!DSPAM:4529fcd7162322988016950!

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




Re: jar and war together

2006-10-09 Thread Neeraj Bisht

yes inside jar , i  seen war content



On 10/9/06, Naess, Ronny [EMAIL PROTECTED] wrote:


What, it says it installes the war to the jar? Is it replacing/moving
it? Seems like strange behavior.

Is it only the jar and now war inside C:\Documents and
Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwoods\fr
amework\dakwar\1.0-SNAPSHOT\

If only the jar, if you look iside that jar, is it the war content you
see?

-Ronny

-Opprinnelig melding-
Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED]
Sendt: 9. oktober 2006 11:52
Til: Maven Users List
Emne: Re: jar and war together

hi Ronny
 i tried both way and not able to install the jar or war actully it
is installing jar but which is it installing is also wrong while at
installing it show following message

Installing
D:\data\localcvs\ABHIWORK\sample\Release\DAK\module\war\target\dakwar-
1.0-SNAPSHOT.war to C:\Documents and
Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwoods\fr
amework\dakwar\1.0-SNAPSHOT\dakwar-
1.0-SNAPSHOT.jar

On 10/9/06, Naess, Ronny [EMAIL PROTECTED] wrote:

 Sorry, I do not have the answer for why this is not working. Maybe you

 could try it the other way around?
 Change your pom to hav packaging to war, and specify maven-jar-plugin
 instead.

 We have more than one pom with packaging set to jar and at same time
 using maven-jar-plugin spesifying test-jar goal and both jars installs

 correct to our repository.

 -Ronny

 -Opprinnelig melding-
 Fra: neeraj daffodil [mailto:[EMAIL PROTECTED]
 Sendt: 9. oktober 2006 09:40
 Til: Maven Users List
 Emne: Re: jar and war together

 i have simple pom which contain only one source and of this source i
 want to make war and jar

 means
 1)  i have one source and genrate jar and war of same source

 my pom is like

 project
 modelVersion4.0.0/modelVersion
 groupIdcom.daffodilwoods.framework/groupId
 artifactIddakwar/artifactId
 version 1.0-SNAPSHOT/version
 packagingjar/packaging  !-- gunrate jar for my project --
 dependencies
 dependency

 ..
 /dependency
 dependencies


 plugin !-- genrate war of same project --
 groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
executions
  execution
phaseinstall/phase
configuration
echohi i am configuring the WarSourceDirectory.. /echo
 /configuration
goals
  goalwar/goal
/goals
  /execution
/executions
  /plugin
   /plugins

   defaultGoalpackage/defaultGoal
 /build

 /project



 i am able to genrate dakwar-1.0-SNAPSHOT.jar and

 dakwar-1.0-SNAPSHOT.war but only able to install
 dakwar-1.0-SNAPSHOT.jar

 in my local repository but i need both jar and war to be install in my

 local repository

 i am doing these operation on one source

 how i can achieve this please tell

 Regards

 Neeraj





 On 10/9/06, Naess, Ronny  [EMAIL PROTECTED] wrote:
 
  Do you have one pom with one war artifact and one jar dependency, or

  do you have one parent pom (maven 2) with two modules/artifacts?
 
  I guess you want your jar in [war]/WEB-INF/lib when deployed to
 server?
  The jar artifact should be included into lib if spesified as a
  dependency. The war plugin is responsible for collecting all
  artifact dependencies, classes and resources of the web application
  and packaging them into a web application archive.
 
  With install, do you mean install into appserver or do you mean
  maven install aka uploading to local repository? If you meant
  install to appserver take a look at Cargo,
  http://cargo.codehaus.org/Maven2+plugin,
  if the latter look at
  http://maven.apache.org/plugins/maven-install-plugin/ in short just
  run 'mvn install'. I guess it was the first you were after? :-)
 
  -Ronny
 
  -Opprinnelig melding-
  Fra: Neeraj Bisht [mailto: [EMAIL PROTECTED]
  Sendt: 9. oktober 2006 08:40
  Til: users@maven.apache.org
  Emne: jar and war together
 
  hi all
  i want to install jar and war from one pom but how i can
  achieve this i do not know i tried and able to made the jar and war
  from single pom but able only to install one ,either jar or war can
  any one tell  me how  i can install or deploy both jar and war
  Regards

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




!DSPAM:452a1d98252891709321452!

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




Re: jar and war together

2006-10-09 Thread Neeraj Bisht

at what extend i understand his thought i tried but get the same result as
it was

On 10/9/06, Naess, Ronny [EMAIL PROTECTED] wrote:


Did you take a look at what Mark Struberg wrote?

-Ronny

-Opprinnelig melding-
Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED]
Sendt: 9. oktober 2006 13:19
Til: Maven Users List
Emne: Re: jar and war together

yes inside jar , i  seen war content



On 10/9/06, Naess, Ronny [EMAIL PROTECTED] wrote:

 What, it says it installes the war to the jar? Is it replacing/moving
 it? Seems like strange behavior.

 Is it only the jar and now war inside C:\Documents and
 Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwoods\
 fr
 amework\dakwar\1.0-SNAPSHOT\

 If only the jar, if you look iside that jar, is it the war content you

 see?

 -Ronny

 -Opprinnelig melding-
 Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED]
 Sendt: 9. oktober 2006 11:52
 Til: Maven Users List
 Emne: Re: jar and war together

 hi Ronny
  i tried both way and not able to install the jar or war actully
 it is installing jar but which is it installing is also wrong while at

 installing it show following message

 Installing
 D:\data\localcvs\ABHIWORK\sample\Release\DAK\module\war\target\dakwar-
 1.0-SNAPSHOT.war to C:\Documents and
 Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwoods\
 fr
 amework\dakwar\1.0-SNAPSHOT\dakwar-
 1.0-SNAPSHOT.jar

 On 10/9/06, Naess, Ronny [EMAIL PROTECTED] wrote:
 
  Sorry, I do not have the answer for why this is not working. Maybe
  you

  could try it the other way around?
  Change your pom to hav packaging to war, and specify
  maven-jar-plugin instead.
 
  We have more than one pom with packaging set to jar and at same time

  using maven-jar-plugin spesifying test-jar goal and both jars
  installs

  correct to our repository.
 
  -Ronny
 
  -Opprinnelig melding-
  Fra: neeraj daffodil [mailto:[EMAIL PROTECTED]
  Sendt: 9. oktober 2006 09:40
  Til: Maven Users List
  Emne: Re: jar and war together
 
  i have simple pom which contain only one source and of this source i

  want to make war and jar
 
  means
  1)  i have one source and genrate jar and war of same source
 
  my pom is like
 
  project
  modelVersion4.0.0/modelVersion
  groupIdcom.daffodilwoods.framework/groupId
  artifactIddakwar/artifactId
  version 1.0-SNAPSHOT/version
  packagingjar/packaging  !-- gunrate jar for my project --
  dependencies
  dependency
 
  ..
  /dependency
  dependencies
 
 
  plugin !-- genrate war of same project --
  groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-war-plugin/artifactId
 executions
   execution
 phaseinstall/phase
 configuration
 echohi i am configuring the WarSourceDirectory..
/echo
  /configuration
 goals
   goalwar/goal
 /goals
   /execution
 /executions
   /plugin
/plugins
 
defaultGoalpackage/defaultGoal
  /build
 
  /project
 
 
 
  i am able to genrate dakwar-1.0-SNAPSHOT.jar and
 
  dakwar-1.0-SNAPSHOT.war but only able to install
  dakwar-1.0-SNAPSHOT.jar
 
  in my local repository but i need both jar and war to be install in
  my

  local repository
 
  i am doing these operation on one source
 
  how i can achieve this please tell
 
  Regards
 
  Neeraj
 
 
 
 
 
  On 10/9/06, Naess, Ronny  [EMAIL PROTECTED] wrote:
  
   Do you have one pom with one war artifact and one jar dependency,
   or

   do you have one parent pom (maven 2) with two modules/artifacts?
  
   I guess you want your jar in [war]/WEB-INF/lib when deployed to
  server?
   The jar artifact should be included into lib if spesified as a
   dependency. The war plugin is responsible for collecting all
   artifact dependencies, classes and resources of the web
   application and packaging them into a web application archive.
  
   With install, do you mean install into appserver or do you mean
   maven install aka uploading to local repository? If you meant
   install to appserver take a look at Cargo,
   http://cargo.codehaus.org/Maven2+plugin,
   if the latter look at
   http://maven.apache.org/plugins/maven-install-plugin/ in short
   just run 'mvn install'. I guess it was the first you were after?
   :-)
  
   -Ronny
  
   -Opprinnelig melding-
   Fra: Neeraj Bisht [mailto: [EMAIL PROTECTED]
   Sendt: 9. oktober 2006 08:40
   Til: users@maven.apache.org
   Emne: jar and war together
  
   hi all
   i want to install jar and war from one pom but how i can
   achieve this i do not know i tried and able to made the jar and
   war from single pom but able only to install one ,either jar or
   war can any one tell  me how  i can install or deploy both jar and

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

War without lib and classes maven 2.0.4

2006-10-07 Thread Neeraj Bisht

hi all
i want the war file without lib and classes for this i write ant
task and merze in my pom
the ant task as follow
 plugin
groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-antrun-plugin/artifactId
   executions
 execution
   phasepackage/phase
   configuration
 tasks

 delete failonerror=false includeemptydirs=true
 fileset dir=${project.build.dir}/${project.artifactId}/WEB-INF/classes
 /fileset
 fileset dir=${project.build.dir}/${project.artifactId}/WEB-INF/lib
 /fileset
 /delete


   /tasks
   /configuration
   goals
 goalrun/goal
   /goals
 /execution
   /executions
 /plugin

it is working but i am unable to define the phase ,i mean at which phase  i
will call this plugin run goal so that i will get the war without lib and
classes

if any one have alternative solution or know  right phase  is most welcome


Regards
Neeraj


Re: Maven WAR/EAR projects and the WebSphere test server

2006-10-06 Thread Neeraj Bisht

in jaboss you have to need hibernateservice.xml and mysql-ds.xml file
i am using the multiproject pom and deploy ear in jboss

no ideya in webspere

On 10/7/06, Marco Mistroni [EMAIL PROTECTED] wrote:


Hello,
not sure if it can help but i have just completed to move a WAS project to
jboss using maven.
yes you'd need to play around maven2 when you have to build your artifacts
(suchca sgetting sources from JavaSource rather than src/main/java) and i
had problems witn resources ..
but if you need to deploy to certain places on WSAS, i thihnk it's enough
to
specify
outputDirectory for your ear (and war i guess)


hth
marco

On 10/6/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Hello,

 I'm wondering if anybody has experience setting up a war/ear project in
a
 multimodule pom and then having this run on WebSphere Application
 Developer's Test Server environment.

 Did you have to fiddle around with any of the settings? I know WSAD
 expects code in the web module to be in a certain place (JavaSource for
 java files and WebContent for web/jsp/properties/lib files - which
 contradicts Maven's /src/main/java/ and /src/main/webapp/ ), and
likewise
 for the EAR project.

 Many thanks in advance!

 -j

 ---
 Justin Fung
 [EMAIL PROTECTED]
 Consultant, Business Systems
 IT Banking Systems, e-Business
 HSBC Bank Canada
 http://www.hsbc.ca
 p: (604) 643-6605
 f: (604) 643-6727

 ***
 This email may contain confidential information, and is intended only
for
 the named recipient and may be privileged. Distribution or copying of
this
 email by anyone other than the named recipient is prohibited. If you are
not
 the named recipient, please notify us immediately and permanently
destroy
 this email and all copies of it. Internet email is not private, secure,
or
 reliable.  No member of the HSBC Group is liable for any errors or
omissions
 in the content or transmission of this email. Any opinions contained in
this
 email are solely those of the author and, unless clearly indicated
otherwise
 in writing, are not endorsed by any member of the HSBC Group.
 ***
 Ce courriel peut renfermer des renseignements confidentiels et
privilégiés
 et s'adresse au destinataire désigné seulement.   La distribution ou la
 copie de ce courriel par toute personne autre que le destinataire
désigné
 est interdite.  Si vous n'êtes pas le destinataire désigné, veuillez
nous en
 aviser immédiatement et détruire de façon permanente ce courriel ainsi
que
 toute copie de celui-ci. La transmission de courriel par Internet ne
 constitue pas un mode de transmission confidentiel, sécuritaire ou
fiable.
 Aucun membre du Groupe HSBC ne sera responsable des erreurs ou des
omissions
 relatives au contenu ou à la transmission de ce courriel.  L'auteur de
ce
 courriel est seul responsable des opinions émises dans ce courriel,
 lesquelles, à moins  d'un avis contraire fourni par écrit, ne sont pas
 endossées par aucun membre du Groupe HSBC.
 ***

 SAVE PAPER - THINK BEFORE YOU PRINT!

 ÉCONOMISEZ LE PAPIER – PENSEZ-Y À DEUX FOIS AVANT D'IMPRIMER!







Re: ANT in maven 2.X

2006-10-05 Thread Neeraj Bisht

hi Marco
   Thanks for your replay now i am able to run the ant task in
maven 2.0.4

Regards
Neeraj

On 10/5/06, Marco Mistroni [EMAIL PROTECTED] wrote:


Hello,
try this


plugin
   artifactIdmaven-antrun-plugin/artifactId
executions
  execution
phasegenerate-sources/phase
configuration
  tasks
echo message=Properties Configured
--/

  /tasks
/configuration
goals
  goalrun/goal
/goals
  /execution
/executions
/plugin


this will run before anybuilds  (generate-sources phase). if you see the
echo message, then your ant is running just fine
it should be enough for you to run mvn generate:sources  or mnv compile or
mvn test... you should be able tos ee echo string

hth
marco




Multiproject run V/S Individual run

2006-10-05 Thread Neeraj Bisht

hi all
   i am using maven 2.0.4
 i used multiproject environment ,in this one project is dependent
on other like wise .,these project work fine if i run all together
from parent pom but when  i run any one project it go for downloading the
dependency of dependent project
i am unable to understand why this is happening because that dependency is
present in my local repository

Regards
Neeraj


Re: [m2] Exclude resources from Jar?

2006-10-05 Thread Neeraj Bisht

hi
   just use excludes
  exclude /eclude
   /exclude

tag in resource to exclude any resource

Regards
Neeraj


On 10/6/06, Ian Brandt [EMAIL PROTECTED] wrote:



Hi,


http://maven.apache.org/guides/getting-started/index.html#How%20do%20add%20resources%20to%20my%20JAR?

nicely explains how to include resources in a Jar.  Is there a way
exclude them?

I have a couple .properties files that I'd like to have available in
my distribution assembly outside of the Jar, so they can be modified
by the end user without repacking.  I do still want them copied and
filtered into my target/classes directory, so they'll be available on
the classpath during debugging, which appears to rule out
resourceexcludes.  (I'm open to alternative strategies.)  Instead
of being packed in the Jar I'd like to copy them to the ./lib dir of
my distribution assembly.

Thanks,

Ian

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




ANT in maven 2.X

2006-10-04 Thread Neeraj Bisht

hi all
  i want to include ant task in my pom (maven 2.0.4 ) but how i can
proceed , i do not know
i did googling and find some link on apache site
http://maven.apache.org/plugins/maven-antrun-plugin/usage.html
but here it is not clear and i tried i did not get any error and also i am
unable to run ant task
i did not get the echo command please if any one have good link or eg please
send me

pluginManagement
  plugins
   plugin
   artifactIdmaven-antrun-plugin/artifactId
   executions
 execution
   phasepackage/phase
   configuration
 tasks
ant
   echohi this is runing ant task/ant:echo
/ant
   copy file=${maven.build.dir}/${pom.artifactId}-${
pom.currentVersion}.jar tofile=${user.home}/.m2/repository/${pom.groupId
}/hars/${pom.artifactId}-${pom.currentVersion}.har/

 /tasks
   /configuration
   goals
 goalrun/goal
   /goals
 /execution
   /executions
 /plugin
/plugins

/pluginManagement

both echo and copy command are not working and maven 2.0.4 show build
succesful

Regards

Neeraj


Re: ANT in maven 2.X

2006-10-04 Thread Neeraj Bisht

hi  Macro
Actuly  ${maven.build.dir}/${pom.artifactId}-${ pom.currentVersion}.jar
this is working fine in maven 1.X and it will give you the location of your
target folder and give the name of your jar file like
 src
  target(${maven.build.dir}/)
 my-1.0.jar(${pom.artifactId}-${ pom.currentVersion}.jar)

yes i am using multiproject

i have used maven 1.x now our company moving to maven 2.x but converting our
project.xml to pom.xml have difficulty and i am not able to call ant task in
my pom

can you please sen me some pom eg where ant are called

Thanks in advances
Neeraj

On 10/4/06, Marco Mistroni [EMAIL PROTECTED] wrote:


Hello,
maven2 will result in an error if the execution of your ant task fails..
try to use this in your pom.xml, you'll see that maven will error out

taskdef name=webdoclet classname=xdoclet.modules.web.WebDocletTask/
webdoclet destdir=./

if you havent imported proper dependencies and defined the classpath, ant
wont be able to execute your task and  maven will error out =(like' cannot
find clas sblah blah blah)

again, try to echo

${maven.build.dir}/${pom.artifactId}-${ pom.currentVersion}.jar

do you have a multiproject?
can you tell the structure of your project?

ant task might be executing from a different directory that you might
think

hth
marco


On 10/4/06, neeraj daffodil [EMAIL PROTECTED] wrote:

 hi Wayne
Thanks for your link
 Actully i am not geeting any ant error ,maven should have to give the
 error
 if we are wrong
 yes you are right that i have wrong syntex
 but still maven show build succesfully i am not able to understand why
 this
 is happening
 and still in delima how i call ant task in my pom

 Regards
 Neeraj



 On 10/4/06, Wayne Fay [EMAIL PROTECTED] wrote:
 
  First off, your XML is not well-formed. echo.../ant:echo doesn't
  look like valid XML, so I'm not surprised its not working right for
  you. Also you enclosed the echo/ node inside an ant node but then
  the copy/ node was outside it. So you need to make the XML proper
  before proceeding. Follow the examples online or search this mailing
  list for tons of Antrun plugin examples.
 
  Second, you might want to specify copy ... verbose=true which
  might provide additional information from Ant when it is doing the
  file copy. I'm not using copy/ right now personally so no
  guarantees, but that is what the Ant Copy task webpage says:
  http://ant.apache.org/manual/CoreTasks/copy.html
 
  Wayne
 
  On 10/4/06, Marco Mistroni [EMAIL PROTECTED] wrote:
   hello,
 check what is the actual value of ${maven.build.dir}/${
 pom.artifactId
  }-${
   pom.currentVersion}.jar by echoing...
  
   maven will result in a success regardless the outcome of copy (pls
  anyone
   correct me if i m mwrong, but i have experienced same behaviour)..
  
   hth
marco.
  
  
  
   On 10/4/06, Neeraj Bisht [EMAIL PROTECTED] wrote:
   
hi all
   i want to include ant task in my pom (maven 2.0.4 ) but
 how
  i
can
proceed , i do not know
i did googling and find some link on apache site
http://maven.apache.org/plugins/maven-antrun-plugin/usage.html
but here it is not clear and i tried i did not get any error and
 also
  i am
unable to run ant task
i did not get the echo command please if any one have good link or
 eg
please
send me
   
pluginManagement
   plugins
plugin
artifactIdmaven-antrun-plugin/artifactId
executions
  execution
phasepackage/phase
configuration
  tasks
 ant
echohi this is runing ant task/ant:echo
/ant
copy file=${maven.build.dir}/${pom.artifactId}-${
pom.currentVersion}.jar tofile=${user.home}/.m2/repository/${
  pom.groupId
}/hars/${pom.artifactId}-${pom.currentVersion}.har/
   
  /tasks
/configuration
goals
  goalrun/goal
/goals
  /execution
/executions
  /plugin
/plugins
   
/pluginManagement
   
both echo and copy command are not working and maven 2.0.4 show
 build
succesful
   
Regards
   
Neeraj
   
   
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 






Re: Is there any instructional book for Maven-1?

2006-10-03 Thread Neeraj Bisht

hi
  Actully ,there is no such document available in which u will get whole
maven 1.0.2 but if u search in google u will find the relevent matterial

Regards
Neeraj


On 10/3/06, Evi [EMAIL PROTECTED] wrote:


Hello!

I do have the the book Better Builds with Maven 2, but have to use
Maven-1.0.2 (as JetSpeed2 does not work wit Maven2 as far as I know). Is
there any older version of the Better Builds with Maven that can be used
to understand Maven-1?

Thanks in advance for suggestions,

Evi


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




Re: help to find link for maven 1.0.2

2006-09-30 Thread Neeraj Bisht

hi dan
Thanks for your information provided to me ,
do know some good free book on maven 1.0.2

Regards
Neeraj


On 9/30/06, dan tran [EMAIL PROTECTED] wrote:


that book never commercially materialized, and perhaps the author
decided to take it off line too

-D


On 9/29/06, Neeraj Bisht [EMAIL PROTECTED] wrote:

 hi all
 i have come to know that there is online book for maven 1.0.2 at
 the following site
http://www.milindparikh.com/
 but when i gone through this site it show 504 error ,mens no page was
 display
 can any one tell me where i found this link or if this link is changed
 then
 what is the new link or if you know any free online book for maven
 1.0.2then please remined

 Regards
 Neeraj






Multiproject Rector

2006-09-30 Thread Neeraj Bisht

hi all
  i am unable to get answer of my Question regarding maven 1.0.2
  i want to know that while building the multiple project
through reactor in maven 1.0.2 ,
is build on the bases of dependency  based on each othere or its build in
the sorted order

Regards
Neeraj


Re: clean plugin

2006-09-30 Thread Neeraj Bisht

This is possible in maven 1.0.2 but not no, is it posible in maven2.0

On 9/30/06, Yann Albou [EMAIL PROTECTED] wrote:


In our project we use symbolic links under windows (using a tools that
simulates what is possible under unix/linux ;-)
http://www.sysinternals.com/Utilities/Junction.html).
Those symbolic links points on the target directory.
So removing the target directory remove also the symbolic link...

It would be very useful for us to have this little feature.
Yann.


dan tran wrote:
 dont think it is possible.

 What is the point of removing every thing inside but not the directory?

 -D


 On 9/29/06, Yann Albou [EMAIL PROTECTED] wrote:

 Hi,

 When running mvn clean, Is it posible to not remove the directory
 target but only what is inside ?

 Yann.




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




Re: [M2] Where to place servlet code in a WAR project?

2006-09-30 Thread Neeraj Bisht

put your servlet class inside src/main/java and check your pom
On 9/30/06, Owen Jacobson [EMAIL PROTECTED] wrote:


On 9/29/06, Max Cooper [EMAIL PROTECTED] wrote:
 Justin,

 I am not sure where the imported_classes directory is coming from.
 That is not the normal behavior for Maven.

 Normally, the setup you describe would result in the sources from
 src/main/java being compiled into WEB-INF/classes inside the war file.
 However, be aware that I *DON'T* mean src/main/webapp/WEB-INF/classes.
 All the files produced during the build (including .class files) end up
 inside the target dir.

 Search your pom.xml file for the string imported_classes. Perhaps you
 adapted your pom.xml from another project and inherited an unwanted
setting.

Agreed.  Examine the pom and all parent poms to see if one of them is
reconfiguring either the javac plugin or the war plugin.

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




Re: Excluding depencencies inherited from parent

2006-09-30 Thread Neeraj Bisht

yes it is possible by giving the scope of dependeny as a runtime

On 9/30/06, Tom Hurley [EMAIL PROTECTED] wrote:


Hi:

Is it possible to exclude dependencies inherited from a parent pom in a
child's pom.

I have a multi level project where each project inherits dependencies from
its parent. However in one of the children, one of its dependencies is
causing some problems with one of the inherited dependencies. Is it
possible
to exclude this?

Any help would be greatly appreciated.

Thanks,

Tom.


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




Re: plugin development

2006-09-29 Thread Neeraj Bisht

hi all
  i am still in puzle why reactor taking the project in sorted
order rather than the dependency ,
 can any one guide me where i am wrong or it is bug of reactor to take the
project in sorted order (in multiproject env)

Regards
Neeraj


On 9/29/06, Neeraj Bisht [EMAIL PROTECTED] wrote:


hi Geoffrey
 Thanks for your kind support
can you tell me one think also ,actully i am working in maven 1.0.2 but
the reactor is not working accordingly i.e it take the building of
multiproject in sorted order but not one there dependency and frome googling
i came to know that in maven 2.0 it is possible but on going through the
link which you have provided i found that number of task we will not be able
to do in maven 2.0
   so please ,if you have the similler link regarding maven 1.0.2  then
send me

Regards
Neeraj


 On 9/28/06, Geoffrey De Smet [EMAIL PROTECTED] wrote:

 Go to mergere.com and download the free maven2 book.
 Currently it's the best documentation I know.

 Neeraj Bisht wrote, On 2006-09-28 2:29 PM:
  hi all
   Can any one please tell me or can give some link of tutorial
 where
  i can study
how i can make plugin in maven 2.0
  i study from the following site
 
 http://maven.apache.org/guides/introduction/introduction-to-plugins.html
 
  but not able to understand
 
  Regards
  Neeraj Singh Bisht
 

 --
 With kind regards,
 Geoffrey De Smet


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





help to find link for maven 1.0.2

2006-09-29 Thread Neeraj Bisht

hi all
i have come to know that there is online book for maven 1.0.2 at
the following site
   http://www.milindparikh.com/
but when i gone through this site it show 504 error ,mens no page was
display
can any one tell me where i found this link or if this link is changed then
what is the new link or if you know any free online book for maven
1.0.2then please remined

Regards
Neeraj


plugin development

2006-09-28 Thread Neeraj Bisht

hi all
 Can any one please tell me or can give some link of tutorial where
i can study
  how i can make plugin in maven 2.0
i study from the following site
http://maven.apache.org/guides/introduction/introduction-to-plugins.html

but not able to understand

Regards
Neeraj Singh Bisht


Re: plugin development

2006-09-28 Thread Neeraj Bisht

hi Geoffrey
Thanks for your kind support
can you tell me one think also ,actully i am working in maven 1.0.2 but the
reactor is not working accordingly i.e it take the building of multiproject
in sorted order but not one there dependency and frome googling i came to
know that in maven 2.0 it is possible but on going through the link which
you have provided i found that number of task we will not be able to do in
maven 2.0
  so please ,if you have the similler link regarding maven 1.0.2  then send
me

Regards
Neeraj


On 9/28/06, Geoffrey De Smet [EMAIL PROTECTED] wrote:


Go to mergere.com and download the free maven2 book.
Currently it's the best documentation I know.

Neeraj Bisht wrote, On 2006-09-28 2:29 PM:
 hi all
  Can any one please tell me or can give some link of tutorial
where
 i can study
   how i can make plugin in maven 2.0
 i study from the following site
 http://maven.apache.org/guides/introduction/introduction-to-plugins.html

 but not able to understand

 Regards
 Neeraj Singh Bisht


--
With kind regards,
Geoffrey De Smet


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




multiproject amazing

2006-09-26 Thread Neeraj Bisht

hi all
i am using the multiroject and each project is dependent on each
other while runing the multiproject goal the build started in shorted oder
,but in maven site i come to know that thr build will take place on the
bases of dependency but in my case it is not working
 can any one  help me where i am wrong or which property i am forget to
specify

Regards
Neeraj


multiproject structure

2006-09-21 Thread Neeraj Bisht

Hello all,

Please help to get out of the following confusions:

I am having many projects which may be dependent on each other or not.But we
need to make one ear having all the archives file made of all projects.
In one project, we can have one jar,jar+war,jar+war+har,or some other
application specific archives like if har not supported by other applciation
servers.
These all projects are different cvs modules in the following structure but
with no maven files(also we can't place file there) and
test contains the testcases for all sub projects(object/services/UI) of one
project/CVS module.

Following is the structure:

Project1
  src
   objects(har)
 java
 resource

   services(jar)
 java
 resource

   UI(war)
 java
 resource
 webapps

  test

So two problems:
1)Is it possible that we place our maven scripts somewhere at our system and
projects are somewhere else,
 Can maven build all subprojects,make war,har,jar etc from that location
and then package all of them to make ear?
2)Now i want ot run the testcases after building the project,not after
making war/har/jar.I know if we place test in subproject thjen before making
any archive it will run the testcases
but ours is different case.Our testcases are in Main project not in
different subprojects,so how can we achieve it?

Regards
Neeraj


Propose structure for multiproject

2006-09-20 Thread Neeraj Bisht

Hello all,

Please help to get out of the following confusions:

I am having many projects which may be dependent on each other or not.But we
need to make one ear having all the archives file made of all projects.
In one project, we can have one jar,jar+war,jar+war+har,or some other
application specific archives like if har not supported by other applciation
servers.
These all projects are different cvs modules in the following structure but
with no maven files(also we can't place file there) and
test contains the testcases for all sub projects(object/services/UI) of one
project/CVS module.

Following is the structure:

Project1
  src
   objects(har)
 java
 resource

   services(jar)
 java
 resource

   UI(war)
 java
 resource
 webapps

  test


So two problems:
1)Is it possible that we place our maven scripts somewhere at our system and
projects are somewhere else,
 Can maven build all subprojects,make war,har,jar etc from that location
and then package all of them to make ear?
2)Now i want ot run the testcases after building the project,not after
making war/har/jar.I know if we place test in subproject thjen before making
any archive it will run the testcases
but ours is different case.Our testcases are in Main project not in
different subprojects,so how can we achieve it?


Cruise controll cvs problem

2006-08-06 Thread neeraj bisht

hi
i am not able to update or take out the check out from the cvs ,actuly
i am able to configur the cruise control to my project but i am not able to
syncronize it with cvs
  when i did any commit i am not getting any buid process
so any one tell me where i am wrong or what extr properties i have to set

Regards
Neeraj Singh Bisht