Problem with Ajaxanywhere

2006-05-08 Thread Anshuman Srivastava
Hi,
I am using Maven2.0.3.I have a multiple module project and I want ot use
Ajax Anywhere 1.2-RC1.I put the dependecy in my web modue pom.xml file as
below.

   
org.ajaxanywhere
 ajaxanywhere
1.2-RC1
system

C:/workspaces/dms/userlibs/ajax/ajaxanywhere-1.2-RC1.jar
 

But it is throwing error.I tried to change the group ids and artifact id but
still error is coming.Please help

Thanks in advance
Anshuman


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



Re: Probelm with persistence.xml

2006-05-03 Thread Anshuman Srivastava

Hi
Thanks for the solution to both of you.My problem is solved and war file
picked up persistence.xml from META-INF folder.Its working fine.

THanks  a lot again
Anshuman


-- Forwarded message --
From: Wayne Fay < [EMAIL PROTECTED]>
Date: May 2, 2006 10:06 AM
Subject: Re: Probelm with persistence.xml
To: Maven Users List < users@maven.apache.org>

Yes, this is what he's saying. Move the xml file to
src/main/resources/META-INF/ if you want it automatically picked up
and put in META-INF in the resulting jar.

If you don't have a main folder, make one.

This can also be configured in your pom but it is more complicated
than simply moving the file.

Wayne

On 5/2/06, Anshuman Srivastava < [EMAIL PROTECTED]> wrote:

I want that  my WAR file should contain peristence.xml.

>> If you need to automagically get your persistence.xml in the archive,



>>then
>>just put it in src/main/resources/META-INF/persistence.xml and it'll end
>>up in the correct place

My peristence.xml is at root with pom.xml.So <http://pom.xml.so/> do I

need to change the

position of persistence.xml?I do not have any main folder inside src.

ANshuman




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


Re: Probelm with persistence.xml

2006-05-02 Thread Anshuman Srivastava

I want that  my WAR file should contain peristence.xml.


If you need to automagically get your persistence.xml in the archive, >>
then
just put it in src/main/resources/META-INF/persistence.xml and it'll end
up in the correct place


My peristence.xml is at root with pom.xml.So do I need to change the
position of persistence.xml?I do not have any main folder inside src.

ANshuman


On 5/2/06, Kenney Westerhof <[EMAIL PROTECTED]> wrote:


On Tue, 2 May 2006, Anshuman Srivastava wrote:

> Thanks Kenny for your reply.I am not using par.I
am
> using jar as I thought that building jar is
> sufficient for my final deployable war file.

well, that depends. You don't need par, jar works fine too.
For a war, you need packaging war but you already knew that.
If you want to use persistence archives from a WAR you'll need to add
a dependency from the war to the par, and you need to separately deploy
the par (or put it in an ear).

>
> And you are correct that  every ejb module has its own persistence
manager,I
> have 2 persistence.xml in 2 ejb modules.

Ah ok, I misunderstood your mail then.


> Do I need to change packaging as "par" ?Any other changes required i
> pom.xmlfor depenedncy on
> persitsence.xml?I am a first time user of Maven and dont know much about
> EJB.


No you don't need packaging par, since a par is just a jar. The par plugin
is still in the sandbox anyway.

If you need to automagically get your persistence.xml in the archive, then
just put it in src/main/resources/META-INF/persistence.xml and it'll end
up in the correct place.

You don't need a dependency to do that.

-- Kenney

>
> Anshuman
>
>
> On 5/2/06, Kenney Westerhof <[EMAIL PROTECTED]> wrote:
> >
> > On Tue, 2 May 2006, Anshuman Srivastava wrote:
> >
> > Hi,
> >
> > Every ejb module has its own persistence manager, so you really need
> > 2 persistence.xml files (unless I'm wrong..)
> >
> > I've got one in src/main/par/META-INF/persistence.xml - you're using
the
> > par, right?
> >
> > -- Kenney
> >
> > > Hi
> > >
> > > I have a multi module project.My problem is that 2 of my ejb modules

> > have
> > > the depedency upon peristence.xml, which is at the same location as
> > pom.xml.
> > >
> > > How to define the dependency in pom.xml for peristence.xml ??
> > >
> > > My persistence.xml is like--
> > >
> > > 
> > >
> > > 
> > >
> > >   org.hibernate.ejb.HibernatePersistence
> > 
> > >   java:/OracleDS
> > >   com.dms.dao.RepositoryDAO 
> > >   
> > >> > value="org.hibernate.dialect.SQLServerDialect" />
> > >> value="none" />
> > >> />
> > >   
> > >   
> > >
> > > 
> > >
> > > Pleasehelp.
> > >
> > > Thanks in advance
> > > Anshuman
> > >
> > >
> > >
-
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> > --
> > Kenney Westerhof
> > http://www.neonics.com
> > GPG public key: http://www.gods.nl/~forge/kenneyw.key
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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




Re: Probelm with persistence.xml

2006-05-02 Thread Anshuman Srivastava

Thanks Kenny for your reply.I am not using par.I am
using jar as I thought that building jar is
sufficient for my final deployable war file.

And you are correct that  every ejb module has its own persistence manager,I
have 2 persistence.xml in 2 ejb modules.

Do I need to change packaging as "par" ?Any other changes required i
pom.xmlfor depenedncy on
persitsence.xml?I am a first time user of Maven and dont know much about
EJB.

Anshuman


On 5/2/06, Kenney Westerhof <[EMAIL PROTECTED]> wrote:


On Tue, 2 May 2006, Anshuman Srivastava wrote:

Hi,

Every ejb module has its own persistence manager, so you really need
2 persistence.xml files (unless I'm wrong..)

I've got one in src/main/par/META-INF/persistence.xml - you're using the
par, right?

-- Kenney

> Hi
>
> I have a multi module project.My problem is that 2 of my ejb modules
have
> the depedency upon peristence.xml, which is at the same location as
pom.xml.
>
> How to define the dependency in pom.xml for peristence.xml??
>
> My persistence.xml is like--
>
> 
>
> 
>
>   org.hibernate.ejb.HibernatePersistence

>   java:/OracleDS
>   com.dms.dao.RepositoryDAO 
>   
>value="org.hibernate.dialect.SQLServerDialect" />
>   
>   
>   
>   
>
> 
>
> Pleasehelp.
>
> Thanks in advance
> Anshuman
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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




Probelm with persistence.xml

2006-05-02 Thread Anshuman Srivastava
Hi

I have a multi module project.My problem is that 2 of my ejb modules have
the depedency upon peristence.xml, which is at the same location as pom.xml.

How to define the dependency in pom.xml for peristence.xml??

My persistence.xml is like--




 
org.hibernate.ejb.HibernatePersistence
java:/OracleDS
com.dms.dao.RepositoryDAO









Pleasehelp.

Thanks in advance
Anshuman


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



Re: Maven2BookIsOut

2006-04-28 Thread Anshuman Srivastava
Hi Jai,
try this

http://www.theserverside.com/news/thread.tss?thread_id=40126
Anshuman


On 4/28/06, Sharma, Jaikumar <[EMAIL PROTECTED]> wrote:
>
> Tried to access the book, but got the following :
>403 - Forbidden
>
> Is this not for everyone to download ?
> Regards, Jaikumar
>
>
> -Original Message-
> From: Rob Dickens [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 28, 2006 3:23 PM
> To: Maven Users List
> Subject: Maven2BookIsOut
>
>
> http://mavenbook.xwiki.com/xwiki/bin/view/Main/Maven2BookIsOut
>
> Many thanks for this!
>
> Rob
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> - - - - - - - DISCLAIMER- - - - - - - -
> Unless indicated otherwise, the information contained in this message is
> privileged and confidential, and is intended only for the use of the
> addressee(s) named above and others who have been specifically authorized
> to
> receive it. If you are not the intended recipient, you are hereby notified
> that any dissemination, distribution or copying of this message and/or
> attachments is strictly prohibited. The company accepts no liability for
> any
> damage caused by any virus transmitted by this email. Furthermore, the
> company does not warrant a proper and complete transmission of this
> information, nor does it accept liablility for any delays. If you have
> received this message in error, please contact the sender and delete the
> message. Thank you.
>
>


Re: Deployment of war file using JBOSS

2006-04-27 Thread Anshuman Srivastava
Hi Vincent
Thanks for your concern.My problem is that I have already installed
jboss-4.0.4 so I dont need to install it from a zip file.Where do I need to
put this entry --

 
  
  
jboss4x
c:/boss-4.0.4
  

 
  
local

  
active.DMS
DMS
war

  


  

  
  
I tried to put it after ,before , between  and
 but everytime it is giving me error that -"Reason: Parse error
reading POM. Reason: Unrecognised tag: 'configuration' (position: START_TAG
seen ...\r\n\t ... @163:18)"

I believe that i need to put some plugin entry for jboss-4.0.4and
distribution management section for deployment.

What should be the POM entry for copying the file, start jboss and stop it.

Thanks
Anshuman


On 4/27/06, Vincent Massol <[EMAIL PROTECTED]> wrote:
>
> Hi Anshuman,
>
> > -Original Message-
> > From: Anshuman Srivastava [mailto:[EMAIL PROTECTED]
> > Sent: jeudi 27 avril 2006 15:09
> > To: Maven Users List
> > Subject: Re: Deployment of war file using JBOSS
> >
> > Hi
> > Please tell me the exact link on http://cargo.codehaus.org/ fro
> deploying
> > the war file on Jboss 4.0.4 using Maven 2.0.3 as there are lots of links
> > there and I am confused which one to be used.
>
> It would be nice to understand why you are confused as this is not good
> and
> I'd like to improve the site as much as possible. Let us know and also
> please do not hesitate to use the Cargo mailing list
> (http://archive.codehaus.org/cargo/) as Cargo is not a project hosted by
> the
> Maven team.
>
> As you're using Maven2, the direct link is
> http://cargo.codehaus.org/Maven2+plugin
>
> Now if you want to see Cargo's capabilities for JBoss 4.x, see
> http://cargo.codehaus.org/JBoss+4.x
>
> Hope it helps,
> -Vincent
>
> > On 4/26/06, Serge Emmanuel Pagop <[EMAIL PROTECTED]> wrote:
> > >
> > > Cargo is a good tool that u can use to do this task: checks this link
> > > http://cargo.codehaus.org/
> > >
> > > On 4/26/06, Anshuman Srivastava <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Hi
> > > >
> > > > I am using maven2.0.3. When I created a war file,it iscreated in
> > > > c:\projectRoot\Child2\Child2.war.  I want to deploy it in jboss4.0.4
> > in
> > > > C:\boss-4.0.4\server\default\deploy by using "maven package". Is
> there
> > > any
> > > > way to do it by pom.xml?
> > > >
> > > > Thanks
> > > > Anshuman
> > > >
> > > >
> > >
> > >
> > > --
> > > ---
> > >
> > > Serge Emmanuel Pagop
> > > Java EE Consultant and Trainer
> > >
> > > E-Mail: [EMAIL PROTECTED]
> > > Skype-Name: sisepago
> > > Cell : +49-172-8552687
> > >
> > >
>
>
>
>
>
>
>
> ___
> Faites de Yahoo! votre page d'accueil sur le web pour retrouver
> directement vos services préférés : vérifiez vos nouveaux mails, lancez vos
> recherches et suivez l'actualité en temps réel.
> Rendez-vous sur http://fr.yahoo.com/set
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Deployment of war file using JBOSS

2006-04-27 Thread Anshuman Srivastava
Hi
Please tell me the exact link on http://cargo.codehaus.org/ fro deploying
the war file on Jboss 4.0.4 using Maven 2.0.3 as there are lots of links
there and I am confused which one to be used.

PLease help me.

Thanks
Anshuman



On 4/26/06, Serge Emmanuel Pagop <[EMAIL PROTECTED]> wrote:
>
> Cargo is a good tool that u can use to do this task: checks this link
> http://cargo.codehaus.org/
>
> On 4/26/06, Anshuman Srivastava <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> >
> > I am using maven2.0.3. When I created a war file,it iscreated in
> > c:\projectRoot\Child2\Child2.war.  I want to deploy it in jboss4.0.4 in
> > C:\boss-4.0.4\server\default\deploy by using "maven package". Is there
> any
> > way to do it by pom.xml?
> >
> > Thanks
> > Anshuman
> >
> >
>
>
> --
> ---
>
> Serge Emmanuel Pagop
> Java EE Consultant and Trainer
>
> E-Mail: [EMAIL PROTECTED]
> Skype-Name: sisepago
> Cell : +49-172-8552687
>
>


Re: Deployment of war file using JBOSS

2006-04-27 Thread Anshuman Srivastava
hi
thanks for your reply but there are lots of things on cargo so i am not able
to understand which one i should use for deploying the war file in
jboss4.0.4 using maven2.

Any help would be great.

Thanks
Anshuman


On 4/26/06, Serge Emmanuel Pagop <[EMAIL PROTECTED]> wrote:
>
> Cargo is a good tool that u can use to do this task: checks this link
> http://cargo.codehaus.org/
>
> On 4/26/06, Anshuman Srivastava <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> >
> > I am using maven2.0.3. When I created a war file,it iscreated in
> > c:\projectRoot\Child2\Child2.war.  I want to deploy it in jboss4.0.4 in
> > C:\boss-4.0.4\server\default\deploy by using "maven package". Is there
> any
> > way to do it by pom.xml?
> >
> > Thanks
> > Anshuman
> >
> >
>
>
> --
> ---
>
> Serge Emmanuel Pagop
> Java EE Consultant and Trainer
>
> E-Mail: [EMAIL PROTECTED]
> Skype-Name: sisepago
> Cell : +49-172-8552687
>
>


Re: Updated : Maven2 plugin to be used inside Eclipse 3.1.1 IDE -- where to get ?

2006-04-27 Thread Anshuman Srivastava
Hi
I am also in search of same plugin.What I know is that there is one plugin
for maven 1 but not for maven2.If anybody knows about plugin for maven2
please tell.

Thanks
Anshuman


On 4/27/06, Sharma, Jaikumar <[EMAIL PROTECTED]> wrote:
>
>Dear Maven Users,
>
>
> Where to get a plugin -- which can be used in Eclipse 3.1.1 to build  or
> see
> what could be done like Ant inside eclipse. At least, It is a bit
> confusing
> for me at the website  :
>
>maven-eclipse-plugin ?
>maven-eclipse-plugin-plugin ?
>
> Both have different purposes ?
>
> Thanks for your help!
>
> Regards, Jaikumar
>
>
> - - - - - - - DISCLAIMER- - - - - - - -
> Unless indicated otherwise, the information contained in this message is
> privileged and confidential, and is intended only for the use of the
> addressee(s) named above and others who have been specifically authorized
> to
> receive it. If you are not the intended recipient, you are hereby notified
> that any dissemination, distribution or copying of this message and/or
> attachments is strictly prohibited. The company accepts no liability for
> any
> damage caused by any virus transmitted by this email. Furthermore, the
> company does not warrant a proper and complete transmission of this
> information, nor does it accept liability for any delays. If you have
> received this message in error, please contact the sender and delete the
> message. Thank you.
>
>


Deployment of war file using JBOSS

2006-04-26 Thread Anshuman Srivastava
Hi

I am using maven2.0.3. When I created a war file,it iscreated in
c:\projectRoot\Child2\Child2.war.  I want to deploy it in jboss4.0.4 in
C:\boss-4.0.4\server\default\deploy by using "maven package". Is there any
way to do it by pom.xml?

Thanks
Anshuman


Plugin for Maven

2006-04-25 Thread Anshuman Srivastava
Hi,
I am using maven2.0.3 and fairly new to Maven.

Anyone please tell me that using Maven Plugin is same as adding the
information in dependency section of pom.xml like --


   javax.servlet
  servlet-api
   2.3
   provided
  
.
If its not the same then what is the difference between plugins and these
dependencies?

Thanks
Anshuman


Re: [M2] : How to resolve package level dependencies

2006-04-25 Thread Anshuman Srivastava
Hi Jai
i think you have to make an entry in pom.xml of project C for project D like
this--


 A.D
 D
 1.0
 
Try it and let me know.

Anshuman

On 4/25/06, Sharma, Jaikumar <[EMAIL PROTECTED]> wrote:
>
> I have folder structure of the project :
>
>
> |--Project   A
> |  |-sub-project B
> |  |
> |  ||---sub-sub project C
> |  ||---pom.xml
> |  ||--sub-sub project D
> |  ||---pom.xml
> |  |-pom.xml
> |--pom.xml
>
>
> In this scanario, packages access is defined in the classes, when I
> compile
> sub-sub project C, it says package does not exist (which is already there
> sub-sub project D)
>
> How to define dependency for this ?
>
> Thanks!
>
> Regards, Jaikumar
>
>
> BM__MailAutoSig_
>
>
>
> Jaikumar Sharma
>
> Sr.Software Development Engineer
>
>
>
> Barco Control Rooms
>
> A-5, Sector - 5,
>
> Noida. India 201 301.
>
> Tel +91 120-2421-651 to 659  Ext.313
>
> Fax+91 120 2421 691
>
>  http://www.barco.com
>
>  mailto:[EMAIL PROTECTED]
>
> _
>
>
> - - - - - - - DISCLAIMER- - - - - - - -
> Unless indicated otherwise, the information contained in this message is
> privileged and confidential, and is intended only for the use of the
> addressee(s) named above and others who have been specifically authorized
> to
> receive it. If you are not the intended recipient, you are hereby notified
> that any dissemination, distribution or copying of this message and/or
> attachments is strictly prohibited. The company accepts no liability for
> any
> damage caused by any virus transmitted by this email. Furthermore, the
> company does not warrant a proper and complete transmission of this
> information, nor does it accept liability for any delays. If you have
> received this message in error, please contact the sender and delete the
> message. Thank you.
>
>


Re: Impossible to start working with Maven

2006-04-25 Thread Anshuman Srivastava
Hi,

I faced this problem also in starting.You need to setup the proxi settings
in conf\settings.xml. I am writing a sample entry for my proxy.You have to
change it according to ur settings.

  
 
  1001
  true
  http
  anshumans
  momentum
  192.168.1.2
  3128
  localhost



 Tell me if your problem is solved.

Anshuman



On 4/25/06, Gianfranco Oldani <[EMAIL PROTECTED]> wrote:
>
> Hello,
> I have done the Maven setup and trying to compile my first project I
> cannot
> get out of this error (here is the command and the trace qfter launching
> with the -e option):
>
> Thanks for any help.
>
> D:\projects\maven_demo>mvn -e compile
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
>
> 
> [INFO] Building Maven Demo 2.0
> [INFO]task-segment: [compile]
> [INFO]
>
> 
> [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking
> for updates from central
> [WARNING] repository metadata for: 'artifact
> org.apache.maven.plugins:maven-resources-plugin' could not be retrieved
> from
> repository
> [INFO] Repository 'central' will be blacklisted
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does
> not
> exist or no valid version could be found
> [INFO]
> 
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
> 'org.apache.maven.plugins:maven-resources-plugin' does not exist
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
> DefaultLifecycleExecutor.java:1281)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(
> DefaultLifecycleExecutor.java:1517)
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging
> (DefaultLifecycleExecutor.java:1011)
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings
> (DefaultLifecycleExecutor.java:975)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
> DefaultLifecycleExecutor.java:453)
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> (DefaultLifecycleExecutor.java:306)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:273)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> DefaultLifecycleExecutor.java:140)
>at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> :39)
>at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>at java.lang.reflect.Method.invoke(Method.java:585)
>at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
> The plugin 'org.apache.maven.plugins:maven-resources-plug
>at
>
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion
> (DefaultPluginVersionManager.java:225)
>at
>
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion
> (DefaultPluginVersionManager.java:87)
>at
> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(
> DefaultPluginManager.java:158)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
> DefaultLifecycleExecutor.java:1252)
>... 18 more
>
> Gianfranco OLDANI
> Mob: +79602726351
>
> _
> Sentez vous chez vous sur la page d'accueil MSN  en personnalisant le
> contenu! http://fr.ch.msn.com/default.aspx?dc=true
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Dependencies Options

2006-04-25 Thread Anshuman Srivastava
If we do not use the "system" dependecies then how can we resolve the
dependency on ejb3.0 which is not available on
http://www.ibiblio.org/maven2/. This was my problem so i used ejb3 jars
distributed by jboss.Is there any other way?

pom.xml---

 jboss.ejb3
 ejb3-persistence
3.0
system
C:/boss-4.0.4/server/default/deploy/ejb3.deployer/ejb3-
persistence.jar
 
 
jboss.ejb3
 ejb3-management
3.0
system
C:/boss-4.0.4/docs/examples/jmx/ejb-management.jar

 
 
jboss-ejb3x
 ejb3x
3.0
system
C:/boss-4.0.4/server/default/deploy/ejb3.deployer/jboss-
ejb3x.jar
 
 
jboss-annotations-ejb3
 annotations-ejb3
3.0
system
 C:/boss-4.0.4/server/default/deploy/ejb3.deployer/jboss-
annotations-ejb3.jar
 


On 4/25/06, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
>
> Well you can use *system* dependencies but you loose tons of
> advantages. Instead, maybe you should just populate your local
> repository using the install plugin and -o to run mvn offline.
>
> On 4/24/06, Brandon Goodin <[EMAIL PROTECTED]> wrote:
> > Is it a requirement that i use the remote repository for jars? Is
> > there a way to reference jars that are distributed with the code when
> > checked out from the code repository?
> >
> > Brandon
> >
> > -
> > 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: EJB3.0 plugin

2006-04-24 Thread Anshuman Srivastava
Hi Subash

Still I am facing the problem.It is asking me to install ejb3.jar and
install it manually.I have jboss4.0.3 and I tried to install by --

C:\workspaces\active>mvn install:install-file -DgroupId=javax.persistence-Darti
factId=ejb -Dversion=3.0 -Dpackaging=jar -Dfile=C:\jboss-
4.0.3\server\default\de
ploy\ejb3.deployer\ejb3-persistence.jar.

But while compiling it gives me error that --package javax.ejb does not
exist.

Thanks
Anshuman


On 4/21/06, Subhash Chandran <[EMAIL PROTECTED]> wrote:
>
> I don't know if we have any plugin as such. But for dependency
> (persistence)
> u may use:
>
> http://www.ibiblio.org/maven2/javax/persistence/
>
> The actual jar u need to have in the local repository:
>
> http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html
>
> I don't know about the SessionBean interface in EJB3.
>
> Regards,
> Subhash.
>
> On 4/21/06, Anshuman Srivastava <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> > Could anyone please tell me where can i find ejb3.0 plugin for Maven2.
> As
> > the folder http://www.ibiblio.org/maven2/ejb/ejb/3.0/ is empty.
> >
> > Thanks
> > Anshuman
> >
> >
>
>
> --
> Regards,
> Subhash Chandran S
>
> Cross platform OpenSource Java based file encryption software:
> http://www.WizTools.org/project/WizCrypt/
>
>


Re: EJB3.0 plugin

2006-04-21 Thread Anshuman Srivastava
Hi Subash
thanks a lot for ur reply.

i will try it out on Monday and let u know.

Thanks again
Anshuman



On 4/21/06, Subhash Chandran <[EMAIL PROTECTED]> wrote:
>
> I don't know if we have any plugin as such. But for dependency
> (persistence)
> u may use:
>
> http://www.ibiblio.org/maven2/javax/persistence/
>
> The actual jar u need to have in the local repository:
>
> http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html
>
> I don't know about the SessionBean interface in EJB3.
>
> Regards,
> Subhash.
>
> On 4/21/06, Anshuman Srivastava <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> > Could anyone please tell me where can i find ejb3.0 plugin for Maven2.
> As
> > the folder http://www.ibiblio.org/maven2/ejb/ejb/3.0/ is empty.
> >
> > Thanks
> > Anshuman
> >
> >
>
>
> --
> Regards,
> Subhash Chandran S
>
> Cross platform OpenSource Java based file encryption software:
> http://www.WizTools.org/project/WizCrypt/
>
>


EJB3.0 plugin

2006-04-21 Thread Anshuman Srivastava
Hi
Could anyone please tell me where can i find ejb3.0 plugin for Maven2. As
the folder http://www.ibiblio.org/maven2/ejb/ejb/3.0/ is empty.

Thanks
Anshuman


Dependency on other folders in project

2006-04-20 Thread Anshuman Srivastava
-- Forwarded message --
From: Anshuman Srivastava <[EMAIL PROTECTED]>
Date: Apr 20, 2006 5:18 PM
Subject: Dependency on other folders in project
To: [EMAIL PROTECTED]

  Hi



I have a project with following structure--



Active---

   --0.props

   --0.userlibs

--1.lib.framework

--1.lib.junitframework

--1.lib.services

--2.webapp. MembershipModule

--3.ejb. AddressEnterpriseBean

--3.ejb. MembershipModuleBean

--3.ejb. MenuEnterpriseBean

--8.jar.customtags



I have to create MembershipModule.war for webapp folder but it has
dependency on 3.ejb.MembershipModuleBean & 8.jar.customtags.



3.ejb.MembershipModuleBean has dependency on 1.lib.framework &
1.lib.services.



8.jar.customtags has dependency on 1.lib.framework, 1.lib.services & 3.ejb.
MenuEnterpriseBean.



What should I do for creating *MembershipModule.war??*

* *

Please help…



Thanks in Advance

Anshuman


Re: Problem in creating j2ee folder structure

2006-04-17 Thread Anshuman Srivastava
Hi Alex,

Thanks a lot for your reply.I tried this but still some error is coming. I
am pasting the full console messages below.

I changed my local repository and changed the local repository path in
settings.xml.My local repository resides in C:\maven-2.0.3\repository.

Warm Regards,
Anshuman

C:\>mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp
-Dar
chetypeArtifactId=maven-archetype-j2ee -Pmyprofile
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
-
---
[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:create] (aggregator-style)
[INFO]
-
---
[INFO] Setting property: classpath.resource.loader.class => '
org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] **
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File:
org\apache\velocity\runtime\defaults\velocity.pr
operties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.
resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClassLo
aderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.
ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in
any
resource loader.
[INFO] Velocimacro : error using  VM library template VM_global_library.vm :
org
.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'V
M_global_library.vm'
[INFO] Velocimacro :  VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates

[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may
NOT
replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be
glob
al in scope if allowed.
[INFO] Velocimacro : messages on  : VM system will output logging messages
[INFO] Velocimacro : autoload off  : VM system will not automatically reload
glo
bal library macros
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: com.mycompany.app
[INFO]

*[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.*

*GroupId: org.apache.maven.archetypes
ArtifactId: maven-archetype-j2ee
Version: RELEASE*

*Reason: Unable to determine the release version*

*Try downloading the file manually from the project website.*

*Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven.archetypes-DartifactId=
maven-archetype-j2ee \
-Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file*


*  org.apache.maven.archetypes:maven-archetype-j2ee:jar:RELEASE*

* *

[INFO]

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

[INFO] Total time: 1 second
[INFO] Finished at: Tue Apr 18 10:47:24 GMT+05:30 2006
[INFO] Final Memory: 3M/7M
[INFO]



On 4/17/06, alex_mayorga <[EMAIL PROTECTED]> wrote:
>
>
> Anshuman,
>
> The archetype you're chasing:
>
> http://svn.apache.org/maven-snapshot-repository/org/apache/maven/archetypes/maven-archetype-j2ee/
>
> Please add this to you settings.xml:
>
> 
>   
> myprofile
> 
>   
> apache-svn
> Apache SVN
> http://svn.apache.org/maven-snapshot-repository/
>   
> 
>   
> 
>
> Then fire up this command using that new profile:
>
> mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp
> -DarchetypeArtifactId=maven-archetype-j2ee -Pmyprofile
>
> Let me know if that fixes your issue.
>
> Relevant informa

Problem in creating j2ee folder structure

2006-04-17 Thread Anshuman Srivastava
Hi
I am using Maven 2.0.3. I want to create j2ee folder structre like maven
creates for web-app by the command line --

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

Is there any command like above for creating j2ee folder structure?

Thanks
Anshuman