3rd party JARs -- local vs. remote repositories

2010-03-18 Thread Seetamraju Uday Bhaskar Sarma

Hi,

For the following, lets take a simple example of :-
Create a Session Bean that is deployed --by itself-- and not within 
a EAR.
And also, lets assume that the session bean depends on a commercial 
(3rd party) JAR for (say) statistical analysis.


EJB jars always had dependency JARs located under META-INF/lib;
Has this changed?
i.e., should each EJB and all the JARs that it depends on, be packages 
as an EAR?


Thanks for the google link.
I didn't use the keyword "bundle", when I did my searches.

I just googled "maven 3rd party jars" and got a completely new set of links.
Except that all the suggestions fail for me, with the --only-- 
difference that I am using local (~/.m2/repository) instead of a remote 
repository.

Why should that matter?

Thanks again in advance!

Wayne Fay wrote:

Its supposed to have a dependency jar  (ussi.jar) included within it for
deployment, but
the EJB jar created never contains the ussi.jar.   I am using
"compile-scope" dependencies.



Google for "maven ejb jar bundle" gave this link at the top:
http://magnus-k-karlsson.blogspot.com/2009/08/bundle-common-jar-into-ejb-jar-with.html

As always when this question is posted, I have to ask, what Java app
server or EJB container and JVM/JDK are you using? AFAIK few
classloaders support this arrangement of jar-within-jar.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

  




smime.p7s
Description: S/MIME Cryptographic Signature


including dependency jars within EJB jar

2010-03-18 Thread Seetamraju Uday Bhaskar Sarma

Hi All,

I am creating an EJB jar (not EJB-client).
Its supposed to have a dependency jar  (ussi.jar) included within it for 
deployment, but
the EJB jar created never contains the ussi.jar.   I am using 
"compile-scope" dependencies.
If you do have a few minutes, please take a look at the following -- if 
needed, I can send the entire POM as well as contents of JAR file.


The ussi.jar is a simple library, and was put into local 
(~/.m2/repository) using the mvn install command-line.


   mvn install:install-file \
   -Dfile=ussi/dist/ussi.jar \
   -DgroupId=com.uss-infr\
   -DartifactId=ussi\
   -Dversion=1.10\
   -Dpackaging=jar\
   -DgeneratePom=true

1st relevant portion of the POM for EJB project is:
   4.0.0
   org.ASUX.CmdLineClients
   CronJarTemplate
   ejb
   2.1

2nd relevant portion of the POM for EJB project is:
   
   com.uss-infr
   ussi
   1.10
   compile
   false   

   

For compile scope, the build is successful with no warnings or errors.
If I change the scope to "runtime" the built fails (as it should).

# OS name: "linux" version: "2.6.31-20-generic" arch: "amd64" Family: "unix"
# Java version: 1.6.0_18
# Maven version: 2.0.8

Upgrading to Maven 2.2.1 did not make any difference.

Thanks in advance!
Sarma Seetamraju


smime.p7s
Description: S/MIME Cryptographic Signature


moving from maven1 to maven2

2007-07-04 Thread bhaskar
where to place the properties defined in project.properties and  
build.properties of maven1,in maven2

required artifacts missing:xdoclet-plugins:xdoclet-plugin-qtags:jar:${pom.currentVersion}

2006-10-09 Thread bhaskar ramasamy
Hi Maven Users,

Iam getting the following error even after manual installation of missing 
artifacts. Your help will be highly appreciated.

[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Failed to resolve artifact.
required artifacts missing:
  xdoclet-plugins:xdoclet-plugin-qtags:jar:${pom.currentVersion}
for the artifact:
  xdoclet:maven2-xdoclet2-plugin:maven-plugin:2.0.5-SNAPSHOT
from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  codehaus-legacy (http://dist.codehaus.org),
  codehaus-maven2 (http://dist.codehaus.org),
  apache-snapshots (http://people.apache.org/maven-snapshot-repository/),
  dist.codehaus.org (http://dist.codehaus.org),
  apache (http://cvs.apache.org/repository)


Thanks and Regards,
Bhaskar



required artifacts missing: xdoclet-plugins:xdoclet-plugin-qtags:jar:${pom.currentVersion}

2006-10-07 Thread bhaskar ramasamy
Hi Maven users,

While, Iam running the pom.xml file, Iam getting the following error. In fact I 
have manually downloaded and installed the missed artifacts/jar files using the 
below command.

mvn install:install-file -Dfile= -DgroupId= \
-DartifactId= -Dversion= -Dpackaging=


[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
Downloading: 
http://dist.codehaus.org/xdoclet-plugins/xdoclet-plugin-qtags/${pom.currentVersion}/xdo
clet-plugin-qtags-${pom.currentVersion}.jar
[WARNING] Unable to get resource from repository codehaus-maven2 
(http://dist.codehaus.org)
Downloading: 
http://dist.codehaus.org/xdoclet-plugins/jars/xdoclet-plugin-qtags-${pom.currentVersion
}.jar
[WARNING] Unable to get resource from repository codehaus-legacy 
(http://dist.codehaus.org)
Downloading: 
http://dist.codehaus.org/xdoclet-plugins/jars/xdoclet-plugin-qtags-${pom.currentVersion
}.jar
[WARNING] Unable to get resource from repository dist.codehaus.org 
(http://dist.codehaus.org)
Downloading: 
http://cvs.apache.org/repository/xdoclet-plugins/jars/xdoclet-plugin-qtags-${pom.curren
tVersion}.jar
[WARNING] Unable to get resource from repository apache 
(http://cvs.apache.org/repository)
Downloading: 
http://people.apache.org/maven-snapshot-repository//xdoclet-plugins/xdoclet-plugin-qtag
s/${pom.currentVersion}/xdoclet-plugin-qtags-${pom.currentVersion}.jar
[WARNING] Unable to get resource from repository apache-snapshots 
(http://people.apache.org/maven-sn
apshot-repository/)
Downloading: 
http://repo1.maven.org/maven2/xdoclet-plugins/xdoclet-plugin-qtags/${pom.currentVersion
}/xdoclet-plugin-qtags-${pom.currentVersion}.jar
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Failed to resolve artifact.
required artifacts missing:
  xdoclet-plugins:xdoclet-plugin-qtags:jar:${pom.currentVersion}
for the artifact:
  xdoclet:maven2-xdoclet2-plugin:maven-plugin:2.0.5-SNAPSHOT
from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  codehaus-legacy (http://dist.codehaus.org),
  codehaus-maven2 (http://dist.codehaus.org),
  apache-snapshots (http://people.apache.org/maven-snapshot-repository/),
  dist.codehaus.org (http://dist.codehaus.org),
  apache (http://cvs.apache.org/repository)

I installed the xdoclet-plugin-qtags  & maven2-xdoclet2-plugin manually with 
the specified version.

Your help will be highly appreciated.

Thanks and Regards,
Bhaskar



Re: Fwd: How to include my application.xml and unversioned artifacts

2005-07-27 Thread Bhaskar . Pathak
Sorry Nicolas.
Since i could not find a way mentioned on the site to mark my response such
that they are picked up as part of existing thread i was sending my mails
to you. I reckon the subject line is used for that.
Thanks and regards
Bhaskar pathak
Software Engineer
Xansa India Ltd.


Whilst this email has been checked for all known viruses, recipients should 
undertake their own virus checking as Xansa will not accept any liability 
whatsoever.

This email and any files transmitted with it are confidential and protected by 
client privilege.  It is solely for the use of the intended recipient.
Please delete it and notify the sender if you have received it in
error. Unauthorised use is prohibited.

Any opinions expressed in this email are those of the individual and not
necessarily the organisation.
 Xansa, Registered Office: 420 Thames Valley Park Drive,
 Thames Valley Park, Reading, RG6 1PU, UK.
 Registered in England No.1000954.
 t  +44 (0)8702 416181
 w  www.xansa.com

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



How to include my application.xml and unversioned artifacts

2005-07-26 Thread Bhaskar . Pathak
being new to maven i've started by creating one 'project.xml' per module
without inheritence. My project consists of one ejeb module, one web module
and two java modules. after generating all the articats individually from
command prompt i'm trying to build the ear. However i'm facing a couple of
problems. I'm using maven1.0.2. My problems are...

1. I'm not able to include my own application.xml in the ear no matter
what. Maven generates a message that though it is copying 'applcation .xml'
in the ear folder but it will ignore this file when installing.

2. I've included the ibm specific file in the
ear(**/META-INF/** ). These files refer to the
unversioned artifacts(war, ejb, jars). However the ear has this artifatcs
in their versioned form.

I reckon there are two ways to solve this
1. i find a way to include my own application.xml and the unversioned
artifacts in the ear.
Or
2. I generate the ibm specific file which refer to the versioned artifacts.

However i dont know how to accomplish any of the two. Can any one help me
out.

Regards
Bhaskar Pathak
Software Enginner
Xansa India Ltd.


Whilst this email has been checked for all known viruses, recipients should 
undertake their own virus checking as Xansa will not accept any liability 
whatsoever.

This email and any files transmitted with it are confidential and protected by 
client privilege.  It is solely for the use of the intended recipient.
Please delete it and notify the sender if you have received it in
error. Unauthorised use is prohibited.

Any opinions expressed in this email are those of the individual and not
necessarily the organisation.
 Xansa, Registered Office: 420 Thames Valley Park Drive,
 Thames Valley Park, Reading, RG6 1PU, UK.
 Registered in England No.1000954.
 t  +44 (0)8702 416181
 w  www.xansa.com

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



RE: Modifying download.xml [SOLVED]

2004-12-13 Thread Marthi, Bhaskar
What is the download.xml and how does it work in Maven world?

Bhaskar

-Original Message-
From: Michael Niemaz [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 12, 2004 8:42 AM
To: Maven Users List
Subject: Re: Modifying download.xml [SOLVED]


oops, I meant 'maven.xdoc.distributionType=zip' of course ;-)

Michael Niemaz wrote:

> I solved my initial problem which was to insert the distribution files
> .zip and .tar.gz in the download page.
> Adding the following in the project properties made the trick:
>
>maven.xdoc.distributionType=zip,tar.gz
>
> However, I can not say why it suddenly turned to work because I've 
> been trying
> this for ages and it's only lately that I could see the download page 
> fulfilled
> as excepted. Must have done something somehow ;-)
>
> Still, I don't know how to specify that there might be several formats 
> to download
> such zip and tar.gz
>
> Thanx anyway,
>
> --mike
>
> Michael Niemaz wrote:
>
>> Hi all,
>>Is it possible to ask maven to modify/create/update download.xml
>>so that I could add gzip links.
>>
>> Thanx,
>>
>> --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: Multiproject:site OutOfMemory

2004-06-22 Thread Marthi, Bhaskar
Matt,
How do you force forking VM.  The plugin does not seem to support such an
option.  Can you please elaborate a little more for my benefit?

Thanks,
Bhaskar

> The information contained in this communication may be confidential or
legally privileged and is intended only for the recipient named above. If
the reader of this message is not the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this
communication or its contents is strictly prohibited. If you have received
this communication in error, please immediately advise the sender and delete
the original and any copies from your computer system.
> 


-Original Message-
From: Matt Read [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 22, 2004 5:56 AM
To: 'Maven Users List'
Subject: RE: Multiproject:site OutOfMemory


> > > > 3. I seem to have temporarily resolved my issue by doing
> > > the following
> > > > but my susispicion is that it will come back as my 
> codebase grows.
> > > > a) disabling all JDepend reports (I've had lots of
> > > problems with
> > > > OutOfMemory errors and Jdepend runnning from Ant in the past)
> > > > b) forking the JVM while the Junit tests run
> > > > c) separating removing any other goals from the build
> > > so that I'm
> > > > only running multiproject:site.
> > >
> > > Does turning any of the above back 'on' cause the failure again?
> > 
> > Yes, the failure is reproducable, would it be useful for 
> you to know 
> > exactly which if these options might trigger it?
> 
> Definitely. If it's JDepend helping out, or the junit tests 
> would be useful.
> 

I reversed all my changes and eventually could reproduce the problem only by
switching off forking of the JWebUnit tests. It seems that there's a
substantial memory leak there. I'll look into it further but my builds are
all happy again for now. Thanks all for your help and suggestions.

Matt.



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

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



problem with changelog and file activity plugins

2004-06-10 Thread Marthi, Bhaskar
I am new to Maven.  So, trying to figure my way around in creating the
project site.  I was not able to generate the change log and file activity
from cvs so far.  To give history, i have tried few things so far.  My
repository definition in base project looks like this.


 
scm:cvs:pserver:<>@<>:<>/path/to/repositor
y
 
scm:cvs:pserver:<>@<>:<>/path/to/
repository
http://cvs.apache.org/viewcvs/maven/


I specified my cvs password in ${HOME}/.cvspass file.  When i tried to run
the changelog or file activity, i get the following error message:


Didn't find password for CVSROOT
':pserver::<>@<>:<>/path/to/repository'.
org.netbeans.lib.cvsclient.connection.AuthenticationException: Wrong
Password.
ChangeLog found: 0 entries

Can anyone please help.  Lacking any documentation, its becoming a little
difficult to figure out how to use the multisite to generate all the
information.


Thanks,
Bhaskar

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



question about multi site generation

2004-06-08 Thread Marthi, Bhaskar
I am trying to generate documentation using multi site for multiple
projects.  The problem i am running into is, the generated documentation
from project B is overwriting documentation for project A since the file
names are the same.  I am sure i am missing a property somewhere.  I have
tried all possible combinations without much luck.  Appreciate if any of
Maven guru's can provide some insight.

Thanks,
Bhaskar Marthi



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