Re: Deploying two jars in the same project

2008-09-18 Thread Giancarlo Degani
Hello, maybe you can try using the assembly plugin and the classifier field .
Try to find a mail sent 3 days ago to this mailing list with subject
"Maven and Configuration packages", I think that you have the same
problem...

I hope this can help you.

Giancarlo

2008/9/18 mscarpentier <[EMAIL PROTECTED]>:
>
> Hello there! I'm having some problems to figure out how to manage the
> following situation.
> The project was being packaged with ant, and it uses to create 2 JARs (for
> example zaraza.jar and zaraza-client.jar).
> To begin with, I replace the classpath generation of the ant file with the
> maven-ant-task, and now the dependencies are solved by Maven 2.
> I wanted now to provide the zaraza.jar and the zaraza-client.jar for other
> projects, but I'm being unable to understand how must a pom.xml be in order
> to take care of two different JARs in the same project.
> The zaraza-client.jar is a subset of many classes that are found in the
> zaraza.jar as well, so I don't think that a "separation" would be possible.
> Any idea?
> --
> View this message in context: 
> http://www.nabble.com/Deploying-two-jars-in-the-same-project-tp19557996p19557996.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: wanna deploy jar here, sources there, etc.

2008-07-18 Thread Giancarlo Degani
Maybe you can try with a specific profile for each type of artifact/repository.
Something like this :

4.0.0
  com.mycompany
  multirepo
  jar
  1.0-SNAPSHOT
  multirepo
  

archiva.internal
Internal Release Repository
...


archiva.snapshots
Internal Snapshot Repository
   ...


  
  repo1
  

archiva.internal2
Internal Release Repository
...


archiva.snapshots2
Internal Snapshot Repository
...



  
  


When the repo1 profile is enabled the default repository  (
archiva.internal ) will be replaced by archiva.internal2 as you can
see using mvn help:effective-pom.

Hope this can help.

Best regards

Giancarlo


2008/7/17 Ing. Lorenzo Bigagli <[EMAIL PROTECTED]>:
> Dear all,
>
> our policy requires different artifacts (jars, sources, javadocs, etc.) to
> be deployed to possibly different repos.
> I guess this is possible through deploy:deploy-file, but I would actually
> like to encode such policy in profiles, so that everything is more
> streamlined and easy for the programmers.
>
> For example, I'd like to have a profile that deploy:
> - the jar to repo A, along with the javadocs
> - the sources to repo B
>
> Anybody can provide me with an example of how such a profile would look
> like?
> Would such an arrangement be compatible with using the release plugin for
> deployment?
>
> Hope you can help, thanks,
>  LB
>
> --
> Ing. Lorenzo Bigagli
> Ordine degli Ingegneri della Provincia di Prato
> Sez. A, n.552
>
> i: Via Enrico Mayer 5, 59100 Prato (PO), Italia
> c: +39 335 8078555
> f: +39 0574 602524
> m: [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: How do I deploy my jar in my remote repository?

2008-06-30 Thread Giancarlo Degani
The id value is not important, you have to match the id tag defined
into your pom with an id tag defined in the server section of your
settings.xml.
This is an example:
pom.xml
   
archiva.acme.internal
Internal Release Repository
dav:http://A/archiva/repository/internal/


settings.xml


archiva.acme.internal
A
A


Best regards

Giancarlo

2008/6/30 buters <[EMAIL PROTECTED]>:
>
> Hi,
>
> here it is explained:
> http://maven.apache.org/guides/getting-started/index.html#How_do_I_deploy_my_jar_in_my_remote_repository
>
> I don't only understand here one thing. How can I assign my remote
> repository an id?
>
> Thanks beforehand,
> regards, buters
> --
> View this message in context: 
> http://www.nabble.com/How-do-I-deploy-my-jar-in-my-remote-repository--tp18200809p18200809.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Suggestion for artifact parametrization

2008-06-24 Thread Giancarlo Degani
Hello,
I'm trying to package some web applications into a single ear but I've
got a problem with the configuration.
The ear is made by two web application, this web apps require a
configuration which depend on the deployment environment (
development, test and production ), so I have to change some
parameters into the web.xml descriptor depending on the target
environment.

A possible solution could be to  define a specific artifact for each
environment, using the filter feature to set the parameters into the
web.xml, so the ear for the production environment will be made using
the 2 war for the same environment and so on.. .
But this way seem too complex.
I'm looking for a more simple or elegant solution.
Can anyone give me a suggestion please ?

Thanks in advance.

Giancarlo

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



Re: How can I deploy parent module without deploying sub modules?

2008-06-17 Thread Giancarlo Degani
Have you tried with the command  mvn -N deploy ?

Giancarlo

2008/6/17, youhaodeyi <[EMAIL PROTECTED]>:
>
>  I want to deploy my parent module to the remote repository but not its child
>  modules. How can I do this?
>
> --
>  View this message in context: 
> http://www.nabble.com/How-can-I-deploy-parent-module-without-deploying-sub-modules--tp17881951p17881951.html
>  Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-20 Thread Giancarlo Degani
  [X ] Our team uses HTTP to retrieve our artifacts

Best regards.

Giancarlo

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



Re: The Maven team needs help from translators

2007-11-26 Thread Giancarlo Degani
Hi,
I will try to help with the italian translations.

Giancarlo

2007/11/24, Dennis Lundberg <[EMAIL PROTECTED]>:
> Hi all
>
> We are preparing the next release of the
> maven-project-info-reports-plugin. The current localizations are lacking
>   translations for lots of resources. We need your help improving this.
>
> Have a look at this report, and see if you are skilled in any of the
> listed languages:
>
>
> http://people.apache.org/~dennisl/maven-project-info-reports-plugin/l10n-status.html
>
> If so please create a patch and attach it to this issue in JIRA:
>
>http://jira.codehaus.org/browse/MPIR-34
>
> Make sure you use unicode escape sequences for non-ascii characters. You
> can see how this is done in the current localizations.
>
> For more info on internationalization/localization in Maven plugins, see
> this page:
>
>http://maven.apache.org/plugins/maven-site-plugin/i18n.html
>
>
> If you have any questions about this, please don't hesitate to ask here
> on the list.
>
>
> "Thanks for your cooperation"
>
> --
> Dennis Lundberg
>
> -
> 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: add dependency (newbie question) ?

2007-11-14 Thread Giancarlo Degani
I think that the following link  can help you:
http://maven.apache.org/guides/getting-started/index.html#How_do_I_use_external_dependencies

Giancarlo

2007/11/14, Nicola Benaglia <[EMAIL PROTECTED]>:
> Hi !
> This is my first partecipation at this mailing listand obviously
> with a very simple question.
> I need to add a postgres jdbc dependency to maven.
>
> Googling I found these lines to add to pom.xml:
>
> 
>   postgresql
>   postgresql
>   8.1-407.jdbc3
>   http://www.postgresql.org/
> 
>
> It worked, but I'd like to know what to write as groupID, artifactID, ... ?
> Could you please help me or point me to the documentation explaining it?
>
> Thank you,
> Nicola
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: new to maven

2007-10-25 Thread Giancarlo Degani
hi,
you can try with the eclipse plugin:
http://maven.apache.org/plugins/maven-eclipse-plugin/

Giancarlo

2007/10/25, Ian Godman <[EMAIL PROTECTED]>:
> Hi
>
> I am new to Maven 2. I have been converting an application consisting of 4 
> eclipse projects, 3 producing library jars the the final one running the 
> application.
>
> I have got to the stage where every thing now compiles and the 3 jar files 
> are deployed in my repository (I am using artifactory).
>
> My application also compiles.
>
> My issues is that despite a lot of reading I still can not work out how to 
> run my application!
>
> There are external jars required, these are set as dependencies in the POM.
>
> What I would like to achieve is to be able to run the application from within 
> the eclipse debug environment. To do this I need to get not only the 
> generated jar files but also the library jars and the XML configuration files 
> on the class path. Ideally also in a directory so that I can copy it and run 
> the application on another machine.
>
> I am sure this is not difficult to do but at this moment in time I am unable 
> to work it out.
>
>
> Ian
>
>
>
>
>
>   ___
> Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  
> http://uk.promotions.yahoo.com/forgood/environment.html

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



Re: Howto use libraries which are not in the repository?

2007-10-12 Thread Giancarlo Degani
Hi,
you shoul read this:
http://maven.apache.org/general.html#importing-jars

Giancarlo

2007/10/12, Vanja Petreski <[EMAIL PROTECTED]>:
> Install them either in the local or inhouse repository and use it :)
>
> Vanja
>
> On 10/12/07, Thai Dang Vu <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > How can I use libraries which are not in the repository but in my hard
> > disk?
> >
> > Regards.
> >
> >
> > NOTICE: This message (including any attachments) from Momentum Systems,
> > Inc. contains information that is PRIVILEGED and CONFIDENTIAL.  If you are
> > not an intended recipient, you are hereby notified that any dissemination of
> > this message is strictly prohibited.  If you have received this message in
> > error, please do not read, copy or forward this message.  Please permanently
> > delete all copies and any attachments and notify the sender immediately by
> > reply email or by calling our Office at 703.740.9300.
> >
> > -
> > 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: Using Maven for EJB Deployment with RAD

2007-08-29 Thread Giancarlo Degani
Hi,
you can set that properties in the build section of your pom:

  
../src
../test

See http://maven.apache.org/general.html#dir-struct

Greetings

Giancarlo

2007/8/29, Hemant Ved <[EMAIL PROTECTED]>:
> Hi
>
> Maven expects the Source code in src/main/java , however RAD expects all the
> ejb java files to be present in ejbModule.
> Can I change the directory structure in Maven from src/main/java  to
> ejbModule? If yes, can anyone guide me on how can i do that?
>
>
> Thanks and Regards
> Hemant Ved
>

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