test\resources dependency issue

2006-08-18 Thread Kapil Gupta\(CT\)
Hi,

I have a multi module project with two modules A and B (depends on A).
Can I use a resource (XML) file which is available in test\resources
folder of module A while running test cases of module B? I receive
FileNotFoundException on loading the XML from module B. I tried to use
test scope instead of default compile while setting dependency on A in
the pom of module B but without any luck. The problem goes away if I
copy the resource file in the target\classes folder of module A instead
of target\test-classes? 

Does it mean that target\test-classes folder is not added in classpath
while building a multi-module project?

Thanks

Kapil



elaborate test case results?

2006-08-07 Thread Kapil Gupta\(CT\)
Hi,

 

Using test phase am able to execute my test cases and maven gives me
result of how many and which test case failed or resulted in error. 

Is there any way so Maven can tell me at which line the test case failed
or cause of failure like in Eclipse?

Thanks,

Kapil

CONFIDENTIALITY NOTICE
This e-mail transmission and any documents, files, or previous e-mail
messages appended or attached to it, may contain information that is
confidential or legally privileged. If you are not the intended
recipient, or a person responsible for delivering it to the intended
recipient, you are hereby notified that you must not read this
transmission and that any disclosure, copying, printing, distribution,
or use of the information contained or attached to this transmission is
STRICTLY PROHIBITED. If you have received this transmission in error,
please immediately notify the sender by telephone +91.172.229.9450 or
return e-mail message [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]>  and delete the original
transmission, its attachments, and any copies without reading or saving
in any manner. Thank you.

 



Resolving Source code dependency among modules?

2006-08-07 Thread Kapil Gupta\(CT\)
Hi,

 

I have a multi-module (Spring based) project and there is a case where
module A is generating source code of module B and module B generates
source code of module C. The reason behind this is that I have separated
interfaces of my application in module A and using a perl script to
generate remote implementations (which internally call local
implementation) in module B. Module B again uses perl scripts to
generate iiop stubs in module C and Soap adapters in module D. All
modules are in parallel i.e. under same parent directory.

 

Am able to compile and package everything if I use a parent pom to build
all these modules and specify scm tag there only instead of in each
child pom.

But in that case I can't build modules individually as there is no SCM
tag specified in child modules. Even on specifying scm tag in each
module, I can't generate source code of module B from Module A as they
are in parallel directories.

 

Is there any way I can refer to module B from module A? Is there any
other way to tackle this kind of situation?

 

Thanks,

 

Kapil

 

CONFIDENTIALITY NOTICE
This e-mail transmission and any documents, files, or previous e-mail
messages appended or attached to it, may contain information that is
confidential or legally privileged. If you are not the intended
recipient, or a person responsible for delivering it to the intended
recipient, you are hereby notified that you must not read this
transmission and that any disclosure, copying, printing, distribution,
or use of the information contained or attached to this transmission is
STRICTLY PROHIBITED. If you have received this transmission in error,
please immediately notify the sender by telephone +91.172.229.9450 or
return e-mail message [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]>  and delete the original
transmission, its attachments, and any copies without reading or saving
in any manner. Thank you.

 



code obfuscation plugin?

2006-08-02 Thread Kapil Gupta\(CT\)
Hi,

I would like to obfuscate my java code after compiling. Is there any
Maven plugin available that does this?

Thanks,

Kapil



RE: Dependencies not getting resolved even after install

2006-07-30 Thread Kapil Gupta\(CT\)
Thanks for your explanation Wayne.

I had to install commons-logging-api because its pom is not available at
maven central repository though its jar for version 1.1 is available.

Regards,
Kapil

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 29, 2006 8:50 PM
To: Maven Users List
Subject: Re: Dependencies not getting resolved even after install

Maven uses poms to tell it information about an artifact -- its
version, dependencies, etc. So Maven "always" needs a pom for all
artifacts.

Installing a third-party artifact with install-file will *only* copy
the jar file to the proper directory in your local Maven repo. Then
when you run Maven the next time and reference that jar, Maven will
look at the poms in its local repo, see that it does not have a pom
for the artifact, and go out to the Internet to find it. It does this
*before* it even looks to see if it has the jar in its repo. Only once
it resolves all the poms for all direct and transitional dependencies
does Maven start looking at the jars themselves in the repo, to decide
what else needs to be downloaded etc.

Thus, when installing third-party artifacts, you should use
generatePom unless you already have a pom for the artifact which you
will copy to the local repo. Maven will generate an "empty" pom for
the file and it will not bother looking out on the Internet for it the
next time you reference the artifact.

Finally, I have to wonder why you're installing commons-logging-api
manually into your local repo. Isn't that already available in the
Central repo? (Perhaps not version 1.1, I don't know...)

Wayne

On 7/29/06, Kapil Gupta(CT) <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have installed my thirdparty jar files in maven local repository
using
> install:install-file goal.
>
> While compiling my module, I receive following errors
>
> [ERROR] BUILD ERROR
>
> [INFO]
>

>
> [INFO] Error building POM (may not be this project's POM).
>
>
>
>
>
> Project ID: commons-logging:commons-logging-api
>
>
>
> Reason: Error getting POM for 'commons-logging:commons-logging-api'
from
> the repository: Error transferring file
>
>  commons-logging:commons-logging-api:pom:1.1 from the specified remote
> repositories:  central (http://repo1.maven.org/maven2)
>
>
>
> The error goes if I Install my jar using -DgeneratePom=true
>
>
>
> As per the documentation, generatedPom flag is optional then why I
have
> to install jars using this flag?
>
>
>
> Thanks,
>
> Kapil
>
>
>

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



Dependencies not getting resolved even after install

2006-07-29 Thread Kapil Gupta\(CT\)
Hi,

I have installed my thirdparty jar files in maven local repository using
install:install-file goal. 

While compiling my module, I receive following errors

[ERROR] BUILD ERROR

[INFO]


[INFO] Error building POM (may not be this project's POM).

 

 

Project ID: commons-logging:commons-logging-api

 

Reason: Error getting POM for 'commons-logging:commons-logging-api' from
the repository: Error transferring file

  commons-logging:commons-logging-api:pom:1.1 from the specified remote
repositories:  central (http://repo1.maven.org/maven2)

 

The error goes if I Install my jar using -DgeneratePom=true

 

As per the documentation, generatedPom flag is optional then why I have
to install jars using this flag?

 

Thanks,

Kapil



Site generation for single module in multi module project

2006-07-28 Thread Kapil Gupta\(CT\)
Hi,

I have a multi module project with a parent pom. There are lots of sub
modules and one such module contains all the interfaces of the
application.

After building my project through continuum, the site command on parent
pom generates javadocs for each module. But I would like to generate
javadocs for only one module that contains interfaces. I have not set
the reporting tag in any other module still site is generated for each
module.

Is there any way to specify site generation for one module only?

Thanks,

Kapil



How to copy jars from local repository?

2006-07-24 Thread Kapil Gupta\(CT\)
Hi,

 

Am using Maven to build my multi module application which is based on
Spring framework. 

To run the application, I place my modules jar files and dependency jars
in a folder and use a batch file to include all the jars present in that
folder in classpath and run the main class.

 

While building my project through Maven, I would also like to create
output folder and put the jar in that folder. As of now, the jars are
installed in the Maven local repository. 

 

Is there any way so that I can specify in my pom.xml to copy my module
jars, resources and their dependencies from the local repository to a
folder to run the application?

 

Thanks,

Kapil



Configuring build process on cvs checkin?

2006-07-21 Thread Kapil Gupta\(CT\)
Hi,

 

Can I configure Continuum to build project and send mail only if there
are any code changes (cvs commits)?

 

Right now, it sends mail either always or on state change but I would
like it to build my project and send mail only when there is change in
source code

 

Thanks,

 

Kapil

 



How to create variable in pom file?

2006-07-18 Thread Kapil Gupta\(CT\)
Hi,

Is it possible to create an environment variable in a pom file? I want
to create a variable in parent pom which can be accessed in child pom
files.

Thanks & Regards,

Kapil

 

 



RE: extracting zip file?

2006-07-17 Thread Kapil Gupta\(CT\)
Thanks for your reply Adam.
Actually I want to extract tomcat server which is saved in zip format in
my cvs repository and then copy my war file in the tomcat webapps
directory.

Regards,
Kapil

-Original Message-
From: Adam Leggett [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 17, 2006 7:12 PM
To: Maven Users List
Subject: RE: extracting zip file?

Im not aware of a dedicated zip/unzip plugin.

You could try the dependency plugin (dependency:unpack)
http://mojo.codehaus.org/dependency-maven-plugin/ if the zip is listed
as a dependency and this fits with what you want.

Otherwise I'd suggest binding an execution of the maven-antrun-plugin to
an appropriate phase and use a little ant to get the job done. Or write
your own plugin of course.

Adam

-Original Message-
From: Kapil Gupta(CT) [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 17, 2006 2:26 PM
To: users@maven.apache.org
Subject: extracting zip file?


Hi,

Is there any way to extract zip file thru a pom file?

Thanks,

Kapil

 



===
The contents of this email are intended for the named addresses and may 
contain confidential and/or privileged material. If received in error, 
please contact UPCO head office on +44(0)113 201 0600 and then delete 
the entire mail from your system. Unauthorised review, distribution, 
disclosure or other use of information could constitute a breach of 
confidence. Your co-operation in this matter is greatly appreciated.

Every effort has been taken to ensure that this email and any 
attachments are virus-free. However, UPCO does not make any warranty 
to this effect, and is not liable for any damage done by an infected 
email message or attachment. UPCO recommends that all emails and 
attachments are checked before opening.

All views or opinions expressed in this electronic message and its 
attachements are those of the sender and do not necessarily reflect 
the views and opinions of The Ultimate People Company Ltd.

===



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



extracting zip file?

2006-07-17 Thread Kapil Gupta\(CT\)
Hi,

Is there any way to extract zip file thru a pom file?

Thanks,

Kapil

 



Building multi modules individually and Copying artifacts

2006-07-17 Thread Kapil Gupta\(CT\)
Hi,

Am using tomcat to run my application which is build on spring
framework. My application consists of several modules with some
dependencies on each other.

Lets say module A is independent, module B depends on A and module C
depends on A.

I wanted my build process to generate and copy all the jars files in the
lib directory of my tomcat web app. What would be right way to do this?

I would also like to build my modules individually instead of having a
parent pom which does all the processing.

Thanks,

Kapil



#CVS.lock error on building project

2006-07-10 Thread Kapil Gupta\(CT\)
Hi
I am facing this error while trying to build my project. The error does
not appears on deleting the project from working directory and building
it again.
My scm tag contains entry to my project directory in CVS.
 
Provider message: The cvs command failed.
Command output: 

---
cvs update: failed to create lock directory for `/export/cvsrnd'
(/export/cvsrnd/#cvs.lock): Permission denied
cvs update: failed to obtain dir lock in repository `/export/cvsrnd'
cvs [update aborted]: read lock failed - giving up


Regards,

Kapil Gupta
Tech Lead - R&D

Core Technologies - Enterprise



Quark Media House India Pvt. Ltd.

A-45, Phase VIII-B, Industrial Area
Mohali - 160059, Punjab, India
Phone: +91.172.229.9420
Fax: +91.172.223.7414
[EMAIL PROTECTED]  
www.quark.com 

 

CONFIDENTIALITY NOTICE
This e-mail transmission and any documents, files, or previous e-mail
messages appended or attached to it, may contain information that is
confidential or legally privileged. If you are not the intended
recipient, or a person responsible for delivering it to the intended
recipient, you are hereby notified that you must not read this
transmission and that any disclosure, copying, printing, distribution,
or use of the information contained or attached to this transmission is
STRICTLY PROHIBITED. If you have received this transmission in error,
please immediately notify the sender by telephone +91.172.229.9420 or
return e-mail message [EMAIL PROTECTED] and delete the original
transmission, its attachments, and any copies without reading or saving
in any manner. Thank you.

 


RE: How to specify diff name to pom file

2006-07-10 Thread Kapil Gupta\(CT\)
Ok. Thanks for your quick reply.
Thanks & Regards,
Kapil 

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: 10 July 2006 15:48
To: continuum-users@maven.apache.org
Subject: Re: How to specify diff name to pom file

ok, I understand now :)

It's a bug. We take the current url and we substring it with 
"/pom.xml".length() Please file an issue and we'll fix it in the next version.

Emmanuel

Kapil Gupta(CT) a écrit :
> My my_custom_pom.xml is in E:\Shared\Development folder and the 
> Common\Common module is in E:\Shared\Development\Common\Common folder 
> and it contains pom.xml
> 
> -Original Message-
> From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
> Sent: 10 July 2006 15:19
> To: continuum-users@maven.apache.org
> Subject: Re: How to specify diff name to pom file
> 
>  >> 5512622 [SocketListener0-0] INFO  
> org.apache.maven.continuum.Continuum
>  >> - Could not download
>  >> file:/E:/Shared/Development/my_custom/Common/Common/pom.xml:
>  >> E:\Shared\Development\my_custom\Common\Common\pom.xml (The system  >> 
> cannot find the path specified)  >>  >> See that it truncated last four 
> characters from the parent pom name.
> 
> I don't see where it is truncated. your my_custom_pom.xml is under 
> E:\Shared\Development\my_custom\ right?
> 
> What is the correct url to use for your module?
> 
> Emmanuel
> 
> Kapil Gupta(CT) a écrit :
>> Emmanuel, my parent pom name is my_custom_pom.xml and it contains path to 
>> common\common\pom.xml.
>> I have to use the custom name for my parent pom as there are other parent 
>> pom files for building different modules.
>>
>> Regards,
>> Kapil
>>
>> -Original Message-
>> From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
>> Sent: 10 July 2006 14:03
>> To: continuum-users@maven.apache.org
>> Subject: Re: How to specify diff name to pom file
>>
>> If I understand correctly, the pom under Common/Common is in 
>> my_custom_pom.xml. It isn't supported by continuum.
>>
>> When you Continuum try to find all sub-modules poms, it generate the 
>> path to it with module name and pom.xml
>>
>> Why don't you use pom.xml?
>>
>> Emmanuel
>>
>> Kapil Gupta(CT) a écrit :
>>> Hi Emmanuel,
>>>
>>> My parent pom contains following sub module entry.
>>>
>>> 
>>> Common/Common
>>> 
>>>
>>> I received the following error while uploading pom named 
>>> my_custom_pom.xml
>>>
>>> 5512622 [SocketListener0-0] INFO
>>> org.apache.maven.continuum.Continuum
>>> - Could not download
>>> file:/E:/Shared/Development/my_custom/Common/Common/pom.xml: 
>>> E:\Shared\Development\my_custom\Common\Common\pom.xml (The system 
>>> cannot find the path specified)
>>>
>>> See that it truncated last four characters from the parent pom name.
>>>
>>> Regards,
>>>
>>> Kapil
>>> -Original Message-
>>> From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
>>> Sent: 10 July 2006 13:45
>>> To: continuum-users@maven.apache.org
>>> Subject: Re: How to specify diff name to pom file
>>>
>>> Hmm, strange.
>>>
>>> Can you send your logs about it?
>>>
>>> Emmanuel
>>>
>>> Kapil Gupta(CT) a écrit :
>>>> Hi,
>>>> Can I specify a different name to my parent pom file, say 
>>>> "my_custom_pom_file.xml". When I tried to use this name, continuum 
>>>> was looking for sub modules in the my_custom_pom folder. It works 
>>>> only if the pom file name is of only 3 characters.
>>>>  
>>>>
>>>> Regards,
>>>>
>>>> Kapil Gupta
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
> 
> 
> 
> 



RE: How to specify diff name to pom file

2006-07-10 Thread Kapil Gupta\(CT\)
My my_custom_pom.xml is in E:\Shared\Development folder and the Common\Common 
module is in E:\Shared\Development\Common\Common folder and it contains pom.xml

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: 10 July 2006 15:19
To: continuum-users@maven.apache.org
Subject: Re: How to specify diff name to pom file

 >> 5512622 [SocketListener0-0] INFO  org.apache.maven.continuum.Continuum
 >> - Could not download
 >> file:/E:/Shared/Development/my_custom/Common/Common/pom.xml:
 >> E:\Shared\Development\my_custom\Common\Common\pom.xml (The system  >> 
 >> cannot find the path specified)  >>  >> See that it truncated last four 
 >> characters from the parent pom name.

I don't see where it is truncated. your my_custom_pom.xml is under 
E:\Shared\Development\my_custom\ right?

What is the correct url to use for your module?

Emmanuel

Kapil Gupta(CT) a écrit :
> Emmanuel, my parent pom name is my_custom_pom.xml and it contains path to 
> common\common\pom.xml.
> I have to use the custom name for my parent pom as there are other parent pom 
> files for building different modules.
> 
> Regards,
> Kapil
> 
> -Original Message-
> From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
> Sent: 10 July 2006 14:03
> To: continuum-users@maven.apache.org
> Subject: Re: How to specify diff name to pom file
> 
> If I understand correctly, the pom under Common/Common is in 
> my_custom_pom.xml. It isn't supported by continuum.
> 
> When you Continuum try to find all sub-modules poms, it generate the 
> path to it with module name and pom.xml
> 
> Why don't you use pom.xml?
> 
> Emmanuel
> 
> Kapil Gupta(CT) a écrit :
>> Hi Emmanuel,
>>
>> My parent pom contains following sub module entry.
>>
>> 
>>  Common/Common
>> 
>>
>> I received the following error while uploading pom named 
>> my_custom_pom.xml
>>
>> 5512622 [SocketListener0-0] INFO  
>> org.apache.maven.continuum.Continuum
>> - Could not download
>> file:/E:/Shared/Development/my_custom/Common/Common/pom.xml: 
>> E:\Shared\Development\my_custom\Common\Common\pom.xml (The system 
>> cannot find the path specified)
>>
>> See that it truncated last four characters from the parent pom name.
>>
>> Regards,
>>
>> Kapil
>> -----Original Message-
>> From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
>> Sent: 10 July 2006 13:45
>> To: continuum-users@maven.apache.org
>> Subject: Re: How to specify diff name to pom file
>>
>> Hmm, strange.
>>
>> Can you send your logs about it?
>>
>> Emmanuel
>>
>> Kapil Gupta(CT) a écrit :
>>> Hi,
>>> Can I specify a different name to my parent pom file, say 
>>> "my_custom_pom_file.xml". When I tried to use this name, continuum 
>>> was looking for sub modules in the my_custom_pom folder. It works 
>>> only if the pom file name is of only 3 characters.
>>>  
>>>
>>> Regards,
>>>
>>> Kapil Gupta
>>>
>>>
>>>
>>
>>
>>
> 
> 
> 
> 



RE: How to specify diff name to pom file

2006-07-10 Thread Kapil Gupta\(CT\)
Hi Emmanuel,

My parent pom contains following sub module entry.


Common/Common


I received the following error while uploading pom named my_custom_pom.xml

5512622 [SocketListener0-0] INFO  org.apache.maven.continuum.Continuum  - Could 
not download file:/E:/Shared/Development/my_custom/Common/Common/pom.xml: 
E:\Shared\Development\my_custom\Common\Common\pom.xml (The system cannot find 
the path specified) 

See that it truncated last four characters from the parent pom name.

Regards,

Kapil
-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: 10 July 2006 13:45
To: continuum-users@maven.apache.org
Subject: Re: How to specify diff name to pom file

Hmm, strange.

Can you send your logs about it?

Emmanuel

Kapil Gupta(CT) a écrit :
> Hi,
> Can I specify a different name to my parent pom file, say 
> "my_custom_pom_file.xml". When I tried to use this name, continuum was 
> looking for sub modules in the my_custom_pom folder. It works only if 
> the pom file name is of only 3 characters.
>  
> 
> Regards,
> 
> Kapil Gupta
> 
> 
> 



How to specify diff name to pom file

2006-07-10 Thread Kapil Gupta\(CT\)
Hi,
Can I specify a different name to my parent pom file, say
"my_custom_pom_file.xml". When I tried to use this name, continuum was
looking for sub modules in the my_custom_pom folder. It works only if
the pom file name is of only 3 characters.
 

Regards,

Kapil Gupta