Re: Doubt about how create archetype

2009-11-09 Thread Raphaël Piéroni
Hi Francisco,
Try by creating the project you would like to have and
call "mvn archetype:create-from-project" on it.
You will get the archetype project in target/generated-sources/archetype.
In that directory you will find the
src/main/resources/META-INT/maven/archetype-metadata.xml file that describe
your archetype.
Hope this helps.
Regards,
Raphaël

2009/11/10 Exposito Aguilera, Francisco 

> Any help please?
>
> -Mensaje original-
> De: Exposito Aguilera, Francisco
> Enviado el: viernes, 06 de noviembre de 2009 12:54
> Para: 'Maven Users List'
> Asunto: Doubt about how create archetype
>
> I am trying to create an archetype with this structure:
>
> ProjectName
>src/main/java
>es.test.model
>TestModel.java
>es.test.bean
>TestBean.java
>ResourceBundle_en.properties
>ResourceBundle_es.properties
>Src
>Main
>Webapp
>WEB-INF
>lib
>web.xml
>faces-config.xml
>META-INF
>Index.jsp
>Pom.xml
>
>
>
> My archetype structure is:
>
> Archetype
>Pom.xml
>Src/main/resources
>Archetype-resources
>Src
>Main
>Java
>App.java
>ResourceBundle_en.properties
>ResourceBundle_es.properties
>Webapp
>WEB-INF
>Lib
>Web.xml
>Faces-config.xml
>META-INF
>Index.jsp
>META-INF
>Maven
>Archetype.xml
>
>
> I can do it all but the ResourceBundle files. How can I place them in the
> correct place?
>
> When I create a new project from this archetype, the App.java and both
> ResourceBundle files are generated in the same package. This package is
> created with the groupId and artifactId I write in the creation step.
>
> Thanks in advance.
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


RE: Doubt about how create archetype

2009-11-09 Thread Exposito Aguilera, Francisco
Any help please?

-Mensaje original-
De: Exposito Aguilera, Francisco 
Enviado el: viernes, 06 de noviembre de 2009 12:54
Para: 'Maven Users List'
Asunto: Doubt about how create archetype

I am trying to create an archetype with this structure:

ProjectName
src/main/java
es.test.model
TestModel.java
es.test.bean
TestBean.java
ResourceBundle_en.properties
ResourceBundle_es.properties
Src
Main
Webapp
WEB-INF
lib
web.xml
faces-config.xml
META-INF
Index.jsp
Pom.xml



My archetype structure is:

Archetype
Pom.xml
Src/main/resources
Archetype-resources
Src
Main
Java
App.java
ResourceBundle_en.properties
ResourceBundle_es.properties
Webapp
WEB-INF
Lib
Web.xml
Faces-config.xml
META-INF
Index.jsp
META-INF
Maven
Archetype.xml


I can do it all but the ResourceBundle files. How can I place them in the
correct place?

When I create a new project from this archetype, the App.java and both
ResourceBundle files are generated in the same package. This package is
created with the groupId and artifactId I write in the creation step.

Thanks in advance.




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

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



Re: Suck, cannot build, repository down??

2009-11-09 Thread David C. Hicks
For this very reason, I've set up my builds to only build the full
dependency report when I specify it - normally for nightly and release
builds.  It keeps my development and continuous integration builds short
and sweet.  It's a simple thing to activate a profile for the longer
builds to produce this report when I feel like it's more appropriate.

Just a thought for anyone else who feels like this is a serious problem
for them.


Brian Fox wrote:
> Yes, the dependency report does completely bypass the normal
> repository mechanism and thus Nexus. This needs to be fixed, but noone
> has attempted it yet that I know of.
>
>
>   

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



Re: Suck, cannot build, repository down??

2009-11-09 Thread Brian Fox
Yes, the dependency report does completely bypass the normal
repository mechanism and thus Nexus. This needs to be fixed, but noone
has attempted it yet that I know of.

On Thu, Nov 5, 2009 at 9:56 PM, Stevo Slavić  wrote:
> Using Nexus already. Any advices what needs to be configured (differently)?
> Currently in .m2/settings.xml a nexus repository is configured to be mirror
> of central, while another project specific repository (group) is defined in
> projects aggregator/parent pom.
>
> Nevertheless, dependencies report plugin messes up metadata in my local
> repository. It seems to query directly (not via repository manager) all the
> repositories (project's own and from dependencies) for existence of
> dependencies on them (hanging build, single very small module took about
> 18min to build a site with only project info reports - index, summary,
> dependencies, dependency convergence, dependency management, and plugin
> management reports); temporary workaround was to set
> dependencyLocationsEnabled to false.
>
> Not sure why does dependencies report plugin even use these repositories
> defined in dependencies pom's; I'm guessing because of transitive
> dependencies, as they probably might be resolved from repository defined in
> dependency. Since build of a module wouldn't pass validate phase if
> dependencies weren't resolved, IMO it would be more efficient if
> dependencies report instead of querying repositories again would just reuse
> dependency resolution info, from where given dependency was resolved from,
> assuming these info are available and shareable between dependency plugin
> and dependencies report plugin. If it's not available and/or shareable, then
> maybe dependencies report could just use same strategy to resolve
> dependencies location as dependency plugin uses to resolve dependencies,
> instead of "query all repositories" strategy.
>
> Regards,
> Stevo.
>
> On Thu, Nov 5, 2009 at 8:56 PM, Brian Fox  wrote:
>
>> You need a repository manager.
>>
>> On Thu, Nov 5, 2009 at 4:22 AM, Stevo Slavić  wrote:
>> > I'm experiencing similar issue. maven2-repository.dev.java.netrepository is
>> > not defined in any of my project modules, but it is in project's 3rd
>> party
>> > dependencies. These dependencies were uploaded on central repo with rule,
>> > that dependencies on central aren't allowed to reference external
>> > repositories, not obeyed (create
>> > issuefor this). When I
>> > install project Maven seems to generate these
>> > maven-metadata-%external-repo%.xml files. But if build includes site
>> > generation with maven-project-info-reports-plugin:dependencies:2.1.2
>> report
>> > generation, these metadata files seem to be updated in a way which makes
>> > every next build to fail with "Reason: Error getting POM for...", "Unable
>> to
>> > read local copy of metadata: Cannot read metadata from ..." error
>> messages.
>> >
>> > Regards,
>> > Stevo.
>> >
>> > On Wed, Aug 12, 2009 at 8:03 PM, Brian Fox  wrote:
>> >
>> >> Actually it looks like you're using a bad url to the repository. You
>> >> should instead use:
>> >> http://download.java.net/maven/2
>> >>
>> >> On Wed, Aug 12, 2009 at 1:51 PM, Arrowx7 wrote:
>> >> >
>> >> > Ok I reached something that I feared with maven: unable to get
>> >> dependency.
>> >> >
>> >> > When I try to build my project, i get this:
>> >> >
>> >> > Project ID: org.apache.maven.plugins:maven-site-plugin
>> >> >
>> >> > Reason: Error getting POM for
>> >> 'org.apache.maven.plugins:maven-site-plugin'
>> >> > from the repository: Unable to read local copy of metadata: Cannot
>> read
>> >> > metadata from
>> >> >
>> >>
>> '/home/usr/.m2/repository/org/apache/maven/plugins/maven-site-plugin/maven-metadata-maven2-repository.dev.java.net.xml':
>> >> > end tag name  must match start tag name  from line 7
>> >> (position:
>> >> > TEXT seen ...\n... @9:8)
>> >> >  org.apache.maven.plugins:maven-site-plugin:pom:LATEST
>> >> >
>> >> >  for project org.apache.maven.plugins:maven-site-plugin
>> >> >
>> >> > I checked
>> >> >
>> >>
>> /home/usr/.m2/repository/org/apache/maven/plugins/maven-site-plugin/maven-metadata-maven2-repository.dev.java.net.xml
>> >> > file and it gives me:
>> >> >
>> >> > 
>> >> > 
>> >> > 301 Moved Permanently
>> >> > 
>> >> > Moved Permanently
>> >> > The document has moved
>> >> >
>> >>
>> http://download.java.net/maven/2/org/apache/maven/plugins/maven-site-plugin/maven-metadata.xml
>> >> > here .
>> >> > 
>> >> > Apache Server at maven2-repository.dev.java.net Port
>> >> 443
>> >> > 
>> >> >
>> >> >
>> >> > If I go to the specified link it says "Page cannot be found".  Am I
>> >> > permanently stuck?  I searched my project for maven-site-plugin and
>> did
>> >> not
>> >> > find anything.  Why is it trying to get that anyway?  Is the
>> repository
>> >> down
>> >> > and I can NOT compile until it reopens?  Please advise me how to fix
>> it.
>> >>  I
>> >> > am a maven newbie.  However, I do know 

Re: maven-dependency-plugin:unpack-dependencies doesn't always work

2009-11-09 Thread Brian Fox
Just set overWrite=true

On Mon, Nov 9, 2009 at 4:12 PM, Sony Antony  wrote:
> yes it doesn't work of used more than once.
> I came across it yesterday. I had two execution blocks, unpacking two
> diff jars at two diff phases. only one of them was unpacked and there
> was no error.
> I ended working around it by chanding the second goal to copy. I then
> unjar ed it using antrun.
> --sony
>
> On 11/9/09, Brian Fox  wrote:
>> I would expect an error, I can only suggest attaching a debugger to
>> the plugin and see what's going on.
>>
>> On Mon, Nov 9, 2009 at 9:06 AM, EJ Ciramella 
>> wrote:
>>> Nope - there are no markers created.  Period.
>>> Good thinking though!
>>>
>>> Any other suggestions what may be wrong with this artifact?  It opens just
>>> fine in winzip.
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> For additional commands, e-mail: users-h...@maven.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

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



Re: maven-dependency-plugin:unpack-dependencies doesn't always work

2009-11-09 Thread Sony Antony
yes it doesn't work of used more than once.
I came across it yesterday. I had two execution blocks, unpacking two
diff jars at two diff phases. only one of them was unpacked and there
was no error.
I ended working around it by chanding the second goal to copy. I then
unjar ed it using antrun.
--sony

On 11/9/09, Brian Fox  wrote:
> I would expect an error, I can only suggest attaching a debugger to
> the plugin and see what's going on.
>
> On Mon, Nov 9, 2009 at 9:06 AM, EJ Ciramella 
> wrote:
>> Nope - there are no markers created.  Period.
>> Good thinking though!
>>
>> Any other suggestions what may be wrong with this artifact?  It opens just
>> fine in winzip.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

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



Re: maven-dependency-plugin:unpack-dependencies doesn't always work

2009-11-09 Thread Brian Fox
I would expect an error, I can only suggest attaching a debugger to
the plugin and see what's going on.

On Mon, Nov 9, 2009 at 9:06 AM, EJ Ciramella  wrote:
> Nope - there are no markers created.  Period.
> Good thinking though!
>
> Any other suggestions what may be wrong with this artifact?  It opens just 
> fine in winzip.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

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



Re: m2eclipse

2009-11-09 Thread Brian Fox
Sorry about that, the new page was wrong and I just fixed it. The
correct list is still on codehaus:
user-subscr...@m2eclipse.codehaus.org

On Mon, Nov 9, 2009 at 9:21 AM, Damon Silver  wrote:
> I'm having the same problem.  I've also received messages saying I've
> subscribed but have seen no traffic in the past few weeks.  Could someone
> associated with the list (Jason Van Zyl, maybe) prod the administrators
> there to make sure it's working as expected?
>
> Thanks,
>
> Damon
>
> -Original Message-
> From: Fabricio Lemos [mailto:fabricio.le...@sefaz.ce.gov.br]
> Sent: Monday, November 09, 2009 5:19 AM
> To: Maven Users List
> Subject: Re: m2eclipse
>
> I´m having this same problem while subscribing do m2eclipse mailing list.
>
> maven apache wrote:
>> 2009/11/7 Brian Fox 
>>
>>
>>> On Fri, Nov 6, 2009 at 3:48 AM, maven apache 
>>> wrote:
>>>
 2009/11/6 Olivier Lamy 


> BTW you can use m2e user ml
>
> Have a look here :
>
>>> http://m2eclipse.sonatype.org/project-information.html
>>>
 I have tried, but I can not subscrib to the maillist.


>>> Why not?
>>>
>>>
>> I send subscribe message to "user-subscr...@m2eclipse.sonatype.org",soon I
>> got the information:
>>
> 
> --
>> Delivery to the following recipient failed permanently:
>>
>>     user-subscr...@m2eclipse.sonatype.org
>>
>> Technical details of permanent failure:
>> Google tried to deliver your message, but it was rejected by the recipient
>> domain. We recommend contacting the other email provider for further
>> information about the cause of this error. The error that the other server
>> returned was: 553 553 sorry, that domain isn't in my list of allowed
>> rcpthosts (#5.5.3 - chkuser) (state 14).
>>
>> - Original message -
>> ---
>>
>>
> Thanks,
> --
> Olivier
>
> 2009/11/6 Antonio Petrelli :
>
>> 2009/11/6 maven apache :
>>
>>> Thanks,I have install other plugins such as POM XML Editor 0.9.8,can
>>>
>>> I
>>>
>>> retain them and intall the POM Editor 0.9.9 only?
>>>
>> I don't think so.
>>
>>
>>> If can not do this, how to unintended cleanly the installed maven
>>>
> plugins?
>
>> They should be updated as long as you put the repository in your
>>
>>> Eclipse.
>>>
>> Anyway, if it does not work, to uninstall you should go to:
>> Help - About - Installation Details - Installed Software (tab)
>>
>> Ciao
>> Antonio
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>>
>
> --
> Olivier
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>
>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> For additional commands, e-mail: users-h...@maven.apache.org
>>>
>>>
>>>
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

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



Re: Location of plexus jars..

2009-11-09 Thread Stephen Connolly
2009/11/9 Martin Gainty :
>
> in case anyone is interested plexus-components is a bit of a red-herring
>
> the required Plexus classes are now located in plexus-io
> more importantly plexus is not located in either the repo1.maven.org or 
> people.apache.org repositories
> so you'll need to reconfigure the Plexus plugins to point to svn.codehaus.org 
> as seen here in the pom.xml for plexus-io

Nope that's the scm information

plexus artifacts are pushed to repo1.maven.org when they are released,
and snapshots would be deployed to the codehaus snapshots repository
(http://snapshots.repository.codehaus.org/org/codehaus/plexus/) but
that's only if somebody feels like deploying them

>
> http://maven.apache.org/POM/4.0.0"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
> http://maven.apache.org/xsd/maven-4.0.0.xsd";>
>  4.0.0
>
>  
>    plexus-components
>    org.codehaus.plexus
>    1.1.15
>  
>  org.codehaus.plexus
>  plexus-io
>  1.0-alpha-6-SNAPSHOT
>
>  Plexus IO Components
>
>  
>    
> scm:svn:http://svn.codehaus.org/plexus/plexus-components/trunk/plexus-io
>    
> scm:svn:https://svn.codehaus.org/plexus/plexus-components/trunk/plexus-io
>    
> http://fisheye.codehaus.org/browse/plexus/plexus-components/trunk/plexus-io
>  
>
>  
>    
>      org.codehaus.plexus
>      plexus-utils
>    
>    
>      org.codehaus.plexus
>      plexus-container-default
>      provided
>    
>  
> 
>
> Martin Gainty
> __
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
> sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
> oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich 
> dem Austausch von Informationen und entfaltet keine rechtliche 
> Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen 
> wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
> destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
> l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci 
> est interdite. Ce message sert à l'information seulement et n'aura pas 
> n'importe quel effet légalement obligatoire. Étant donné que les email 
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter 
> aucune responsabilité pour le contenu fourni.
>
>
>
>
> From: mgai...@hotmail.com
> To: users@maven.apache.org
> Subject: RE: Location of plexus jars..
> Date: Mon, 9 Nov 2009 10:54:59 -0500
>
>
>
>
>
>
>
>
> i found the plexus source distro at 
> http://plexus.codehaus.org/source-repository.html
> but when referencing plexus-utils i see a consistent error message of "cannot 
> locate plexus-component-metadata"
> i noticed there is a hardcoded reference to .metadata in 
> org.codehaus.plexus.util.AbstractScanner
> but i cannot locate .metadata in any of the distributions?
>
> any advice on where to locate .metadata?
> thanks,
> Martin Gainty
> __
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
> sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
> oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich 
> dem Austausch von Informationen und entfaltet keine rechtliche 
> Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen 
> wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
> destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
> l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci 
> est interdite. Ce message sert à l'information seulement et n'aura pas 
> n'importe quel effet légalement obligatoire. Étant donné que les email 
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter 
> aucune responsabilité pour le contenu fourni.
>
>
>
>
> From: mgai...@hotmail.com
> To: users@maven.apache.org
> Subject: Location of plexus jars..
> Date: Sat, 7 Nov 2009 20:43:44 -0500
>
>
>
>
>
>
>
>
> cannot locate org.codehaus.plexus.plexus-components-.jar
>
> anyone know where i can locate plexus jars?
> thanks!
> Martin Gainty
> __
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
> sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
> oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich 
> dem Austausch von Informationen und entfaltet keine rechtliche 
> Bindungswirkung. Aufgrund der 

RE: Location of plexus jars..

2009-11-09 Thread Martin Gainty

in case anyone is interested plexus-components is a bit of a red-herring

the required Plexus classes are now located in plexus-io
more importantly plexus is not located in either the repo1.maven.org or 
people.apache.org repositories
so you'll need to reconfigure the Plexus plugins to point to svn.codehaus.org 
as seen here in the pom.xml for plexus-io

http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
  4.0.0

  
plexus-components
org.codehaus.plexus
1.1.15
  
  org.codehaus.plexus
  plexus-io
  1.0-alpha-6-SNAPSHOT

  Plexus IO Components

  

scm:svn:http://svn.codehaus.org/plexus/plexus-components/trunk/plexus-io

scm:svn:https://svn.codehaus.org/plexus/plexus-components/trunk/plexus-io

http://fisheye.codehaus.org/browse/plexus/plexus-components/trunk/plexus-io
  

  

  org.codehaus.plexus
  plexus-utils


  org.codehaus.plexus
  plexus-container-default
  provided

  


Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




From: mgai...@hotmail.com
To: users@maven.apache.org
Subject: RE: Location of plexus jars..
Date: Mon, 9 Nov 2009 10:54:59 -0500








i found the plexus source distro at 
http://plexus.codehaus.org/source-repository.html 
but when referencing plexus-utils i see a consistent error message of "cannot 
locate plexus-component-metadata"
i noticed there is a hardcoded reference to .metadata in 
org.codehaus.plexus.util.AbstractScanner
but i cannot locate .metadata in any of the distributions?

any advice on where to locate .metadata?
thanks,
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




From: mgai...@hotmail.com
To: users@maven.apache.org
Subject: Location of plexus jars..
Date: Sat, 7 Nov 2009 20:43:44 -0500








cannot locate org.codehaus.plexus.plexus-components-.jar

anyone know where i can locate plexus jars?
thanks!
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, 

Re: JNLP webstart-maven-plugin jar version issue

2009-11-09 Thread chicagopooldude

This was happening cause we never were using jnlp download servlet, the
project earlier was just using jnlp files only. 

This use versions of the jar in the jnlp. Configure project to use jnlp jars
which i could not find any where on maven so i added them to my local repo
but you should find them in Java\jdk1.6.0_13\sample\jnlp\servlet\jnlp.jar.

   
com.sun.jnlp
jnlp-servlet
1.0




then add this to web.xml


JnlpDownloadServlet

jnlp.sample.servlet.JnlpDownloadServlet



JnlpDownloadServlet
/yourpattern/*


make sure you have your jnlp and jars and most importantly version.xml file
in application root in such way that /yourparttern will have them and your
are ready to go.


-- 
View this message in context: 
http://old.nabble.com/JNLP-webstart-maven-plugin-jar-version-issue-tp25932257p26273823.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: File system repo

2009-11-09 Thread Jörg Schaible
monkeyden wrote:

> 
> I have several projects which can't be converted over to maven right now,
> mostly because of time constraints.  The artifacts of these projects will
> be
> used in a maven project.  I'd prefer not to install them into my
> repository, so I am trying to create a file system repository which points
> to a
> directory of the current (maven) project.  I have seen this post, which
> was left unanswered.
> 
> http://old.nabble.com/file-system-repo-not-work-ts16355485.html#a16355485
> 
> I have the following repository configured in my pom:
> 
> 
> 
> 
> local jars
> local jars
> file://${basedir}/lib
> 
> 
> 
> 
> I have the following dependencies also:
> 
> 
> 
> com.mycompany
> ProjectNextQuattro
> 1.0
> 
> 
> com.mycompany
> ProjectNextPojos
> 1.0
> 
> 
> and the jars are in ${basedir}/lib/com/mycompany

they should be in ${basedir}/lib/com/mycompany/ProjectNextQuattro/1.0/ (and
${basedir}/lib/com/mycompany/ProjectNextPojos/1.0/) - just in case it was
not obvious.

- Jörg


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



Re: Dependency management question

2009-11-09 Thread David Hoffer
Good idea for sure.

I tried maven v2.2.1 and it had the same problem.  I'm going to try to use A
as my parent for now.  A is more than I want/need as my parent but should
work.

-Dave

On Mon, Nov 9, 2009 at 12:39 PM, Anders Hammar  wrote:

> Ah, and as always. It might help building a very simple project to
> reproduce
> this. Removing all unimportant parts. If it then works, you know it's not a
> Maven bug. If it still doesn't work, you have an example that reproduces
> the
> issue that you can attach to the jira. That increases the likelihood to get
> it fixed.
>
> /Anders
>
> On Mon, Nov 9, 2009 at 20:37, Anders Hammar  wrote:
>
> > Sorry, no. I would investigate why it's looking in central first of all
> > though.
> >
> > /Anders
> >
> >
> > On Mon, Nov 9, 2009 at 20:25, David Hoffer  wrote:
> >
> >> Yes, building project B is just fine...I thought I had a working
> solution
> >> using import scope.  Then other developers in our company tried building
> C
> >> and reported the failure.  What I note in the console error is:
> >>
> >> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
> >> Unable
> >> to download the artifact from any repository
> >>
> >> com.issinc.webtas:webtas-parent:pom:4.0-SNAPSHOT
> >>
> >> from the specified remote repositories:
> >>  central (http://repo1.maven.org/maven2)
> >>
> >> (Where webtas-parent is A.)  If I am to believe this report...its
> looking
> >> in
> >> the wrong repo.  We have our own corporate repo, our settings.xml points
> >> all
> >> requests to our internal URL so it should not look at
> >> http://repo1.maven.org/maven2 directly.
> >>
> >> Any thoughts?
> >>
> >> -Dave
> >>
> >>
> >>
> >>
> >> On Mon, Nov 9, 2009 at 12:19 PM, Anders Hammar 
> wrote:
> >>
> >> > I assume that project B builds just fine?
> >> > Never had import dependency in two levels like you have, so I don't
> know
> >> if
> >> > it's a known bug being fixed. Try Maven 2.2.1 and see, or search jira!
> >> >
> >> > /Anders
> >> >
> >> > On Mon, Nov 9, 2009 at 20:15, David Hoffer 
> wrote:
> >> >
> >> > > I just ran into a problem with the import scope feature.  It does
> not
> >> > > resolve properly.  I.e.
> >> > >
> >> > > Project B uses import scope feature on Project A.
> >> > > Project C uses import scope feature on Project B.
> >> > >
> >> > > Project C cannot build because it says that A does not exist.
> >> > >
> >> > > I'm using maven 2.1.0, has this been fixed in later versions?  Is
> >> there a
> >> > > way to make this work?
> >> > >
> >> > > -Dave
> >> > >
> >> > >
> >> > > On Sat, Nov 7, 2009 at 11:13 AM, Anders Hammar 
> >> > wrote:
> >> > >
> >> > > > Regarding the feature the assimilate plugin gives you, I would do
> >> like
> >> > > this
> >> > > > instead:
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> http://www.sonatype.com/people/2009/10/maven-tips-and-tricks-grouping-dependencies/
> >> > > >
> >> > > > /Anders
> >> > > >
> >> > > > On Sat, Nov 7, 2009 at 19:07, Anders Hammar 
> >> wrote:
> >> > > >
> >> > > > > Yes, it exists in Maven 2.0.9+. Sorry, if the link wasn't clear
> >> > enough.
> >> > > > > Have a look here:
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Importing_Dependencies
> >> > > > >
> >> > > > > The import support is different that what the assimilate gives
> >> you.
> >> > The
> >> > > > one
> >> > > > > described above is for dep management, while the assimilate
> plugin
> >> > are
> >> > > > for
> >> > > > > actual dependencies.
> >> > > > >
> >> > > > > /Anders
> >> > > > >
> >> > > > > On Sat, Nov 7, 2009 at 17:41, David Hoffer 
> >> > wrote:
> >> > > > >
> >> > > > >> That looks good.
> >> > > > >>
> >> > > > >> Just to be clear, in that link it seemed to be a discussion of
> >> what
> >> > to
> >> > > > >> possibly add to maven...are you saying that is in maven now?
>  Btw
> >> I
> >> > > use
> >> > > > >> 2.1.0.
> >> > > > >>
> >> > > > >> Also what do you think about
> >> > > > http://code.google.com/p/assimilate/mentioned
> >> > > > >> in the bottom of this link?
> >> > > > >>
> >> > > > >> -Dave
> >> > > > >>
> >> > > > >> On Sat, Nov 7, 2009 at 9:10 AM, Anders Hammar <
> and...@hammar.net
> >> >
> >> > > > wrote:
> >> > > > >>
> >> > > > >> > Yes, you could use the "import" scope at the top level to
> >> import
> >> > > > >> dependency
> >> > > > >> > management defined in another pom (which could be the ones in
> >> D).
> >> > > > >> >
> >> > >
> http://docs.codehaus.org/display/MAVEN/Importing+Managed+Dependencies
> >> > > > >> >
> >> > > > >> > /Anders
> >> > > > >> >
> >> > > > >> > On Sat, Nov 7, 2009 at 15:42, David Hoffer <
> dhoff...@gmail.com
> >> >
> >> > > > wrote:
> >> > > > >> >
> >> > > > >> > > We have a large maven project where each component (or
> group
> >> of
> >> > > > >> > artifacts)
> >> > > > >> > > each uses dependencyManagement to control what versions are
> >> used
> >> > > and
> >> > > > >> to

Re: How do I get multiproject:install to run jar:install in sub-directories?

2009-11-09 Thread laredotornado

Sadly, the decision to move to maven 2 is beyond my control.  I know the
company has plans for it, but for now this is the hand I was dealt.

If you have any insights into the question posed, I am grateful. - Daev



Wayne Fay wrote:
> 
>> Thanks but I have sadly not yet joined the real world of Maven 2.  I'm
>> using
>> maven 1.1.  Given this, any ideas about my questions?
> 
> You really should/must move to Maven2 asap. There is almost no good
> reason to remain on M1, and the pain of migrating to M2 is pretty
> minor vs the immediate benefits you will gain.
> 
> Wayne
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/How-do-I-get-multiproject%3Ainstall-to-run-jar%3Ainstall-in-sub-directories--tp26230913p26272547.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: system scoped dependencies are attempted to be downloaded

2009-11-09 Thread Anders Hammar
Vote on this:
https://jira.jboss.org/jira/browse/JBPAPP-1935

/Anders

On Mon, Nov 9, 2009 at 20:30, EJ Ciramella  wrote:

> Thanks again - yes - spot on.
>
> We've also recycled some scripts (so ours call the "run" script) so we
> physically need more than just the dependencies.
>
>
> -Original Message-
> From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On
> Behalf Of Anders Hammar
> Sent: Monday, November 09, 2009 2:10 PM
> To: Maven Users List
> Subject: Re: system scoped dependencies are attempted to be downloaded
>
> Ah, you're using JBoss EAP? I have quite some experience from that I we had
> to build our own JBoss EAP repo for a customer. What a pain to get all the
> dependencies right... Never the less, it's the way to go I think.
> It might be of interest for you that there is a JBoss jira for creating an
> EAP repo and the rumor has it there is actually some work going on.
>
> /Anders
>
> On Mon, Nov 9, 2009 at 19:53, EJ Ciramella 
> wrote:
>
> > Well, that's interesting - here's the thing - if you use opensource,
> > community edition version of jboss, then you can depend on the jboss
> > repository.
> >
> > If, however, you depend on the commercial version, patches (to both files
> > and jars) are delivered in a different fashion (from what I can tell).
> >
> > Also, all the services that are available as part of the default server
> > installation example are used in about 20 different projects here.  I'd
> > prefer creating a single artifact that contains both duplicated/shared
> > component configuration AND binaries versus multiple jar installation and
> a
> > secondary artifact for the component configuraiton.
> >
> > Thank you for the feedback though, the real answer to this question seems
> > to be that dependencies are verified during the validate phase and if you
> > bind an "unpack-dependencies" to validate, it binds it to the end of the
> > goal (which is too late for our purposes).
> >
> >
> >
> > -Original Message-
> > From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On
> > Behalf Of Anders Hammar
> > Sent: Monday, November 09, 2009 12:58 PM
> > To: Maven Users List
> > Subject: Re: system scoped dependencies are attempted to be downloaded
> >
> > Don't think it's a bug, it's you using it the wrong way.
> > As I understand you, you have a dependency to some archive which you
> > unpack.
> > In the same project you have a system scope dependency which points at
> some
> > jar that gets unpacked from the dependency above. Don't think that would
> > work and I frankly don't understand what you're doing. That is not the
> > Maven
> > way. You should add the jar (artifact) extracted from the archive to you
> > (corporate) repository instead.
> >
> > /Anders
> >
> > On Mon, Nov 9, 2009 at 18:07, EJ Ciramella 
> > wrote:
> >
> > > Sorry - and thank you!
> > >
> > > Any suggestions or is this (confirmed as a) a bug?
> > >
> > > -Original Message-
> > > From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On
> > > Behalf Of Anders Hammar
> > > Sent: Saturday, November 07, 2009 2:07 AM
> > > To: Maven Users List
> > > Subject: Re: system scoped dependencies are attempted to be downloaded
> > >
> > > Ok. In the future, it would be great if you include this kind of info
> > when
> > > you ask about a problem. You need to provide all info for us to be able
> > to
> > > help.
> > >
> > > /Anders
> > >
> > > On Fri, Nov 6, 2009 at 23:47, EJ Ciramella 
> > > wrote:
> > >
> > > > Yeah, we have a pretty out-of-the-ordinary build process using
> > > > jboss/atg/etc.
> > > >
> > > > Try this - zip up any jar and try to both unpack that AND put that
> jar
> > as
> > > a
> > > > dependency with a system scope.
> > > >
> > > > This won't work.  It will try to resolve the dependency and fail so
> it
> > > > never unpacks the zip.
> > > >
> > > > -Original Message-
> > > > From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com]
> On
> > > > Behalf Of Anders Hammar
> > > > Sent: Friday, November 06, 2009 4:20 PM
> > > > To: Maven Users List
> > > > Subject: Re: system scoped dependencies are attempted to be
> downloaded
> > > >
> > > > Sorry, I don't know.
> > > > I take it your setup is a little bit more complicated than your
> initial
> > > > posts indicated?
> > > >
> > > > /Anders
> > > >
> > > > On Fri, Nov 6, 2009 at 22:12, EJ Ciramella 
> > > > wrote:
> > > >
> > > > > Hmm - here's a question - if the jar I'm looking for exists inside
> a
> > > zip
> > > > > file that needs to be downloaded, unpacked and then and only then
> > will
> > > > > systemPath actually point at a jar - will that fail?
> > > > >
> > > > > When does dependency resolution happen - at the validate stage?  If
> > so,
> > > > the
> > > > > zip won't be downloaded and unpacked by then resulting in a
> > systemPath
> > > > that
> > > > > doesn't exist.
> > > > >
> > > > >
> > > > > -Original Message-
> > > > > From: anders.g.ham...@g

Re: Dependency management question

2009-11-09 Thread Anders Hammar
Ah, and as always. It might help building a very simple project to reproduce
this. Removing all unimportant parts. If it then works, you know it's not a
Maven bug. If it still doesn't work, you have an example that reproduces the
issue that you can attach to the jira. That increases the likelihood to get
it fixed.

/Anders

On Mon, Nov 9, 2009 at 20:37, Anders Hammar  wrote:

> Sorry, no. I would investigate why it's looking in central first of all
> though.
>
> /Anders
>
>
> On Mon, Nov 9, 2009 at 20:25, David Hoffer  wrote:
>
>> Yes, building project B is just fine...I thought I had a working solution
>> using import scope.  Then other developers in our company tried building C
>> and reported the failure.  What I note in the console error is:
>>
>> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
>> Unable
>> to download the artifact from any repository
>>
>> com.issinc.webtas:webtas-parent:pom:4.0-SNAPSHOT
>>
>> from the specified remote repositories:
>>  central (http://repo1.maven.org/maven2)
>>
>> (Where webtas-parent is A.)  If I am to believe this report...its looking
>> in
>> the wrong repo.  We have our own corporate repo, our settings.xml points
>> all
>> requests to our internal URL so it should not look at
>> http://repo1.maven.org/maven2 directly.
>>
>> Any thoughts?
>>
>> -Dave
>>
>>
>>
>>
>> On Mon, Nov 9, 2009 at 12:19 PM, Anders Hammar  wrote:
>>
>> > I assume that project B builds just fine?
>> > Never had import dependency in two levels like you have, so I don't know
>> if
>> > it's a known bug being fixed. Try Maven 2.2.1 and see, or search jira!
>> >
>> > /Anders
>> >
>> > On Mon, Nov 9, 2009 at 20:15, David Hoffer  wrote:
>> >
>> > > I just ran into a problem with the import scope feature.  It does not
>> > > resolve properly.  I.e.
>> > >
>> > > Project B uses import scope feature on Project A.
>> > > Project C uses import scope feature on Project B.
>> > >
>> > > Project C cannot build because it says that A does not exist.
>> > >
>> > > I'm using maven 2.1.0, has this been fixed in later versions?  Is
>> there a
>> > > way to make this work?
>> > >
>> > > -Dave
>> > >
>> > >
>> > > On Sat, Nov 7, 2009 at 11:13 AM, Anders Hammar 
>> > wrote:
>> > >
>> > > > Regarding the feature the assimilate plugin gives you, I would do
>> like
>> > > this
>> > > > instead:
>> > > >
>> > > >
>> > >
>> >
>> http://www.sonatype.com/people/2009/10/maven-tips-and-tricks-grouping-dependencies/
>> > > >
>> > > > /Anders
>> > > >
>> > > > On Sat, Nov 7, 2009 at 19:07, Anders Hammar 
>> wrote:
>> > > >
>> > > > > Yes, it exists in Maven 2.0.9+. Sorry, if the link wasn't clear
>> > enough.
>> > > > > Have a look here:
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Importing_Dependencies
>> > > > >
>> > > > > The import support is different that what the assimilate gives
>> you.
>> > The
>> > > > one
>> > > > > described above is for dep management, while the assimilate plugin
>> > are
>> > > > for
>> > > > > actual dependencies.
>> > > > >
>> > > > > /Anders
>> > > > >
>> > > > > On Sat, Nov 7, 2009 at 17:41, David Hoffer 
>> > wrote:
>> > > > >
>> > > > >> That looks good.
>> > > > >>
>> > > > >> Just to be clear, in that link it seemed to be a discussion of
>> what
>> > to
>> > > > >> possibly add to maven...are you saying that is in maven now?  Btw
>> I
>> > > use
>> > > > >> 2.1.0.
>> > > > >>
>> > > > >> Also what do you think about
>> > > > http://code.google.com/p/assimilate/mentioned
>> > > > >> in the bottom of this link?
>> > > > >>
>> > > > >> -Dave
>> > > > >>
>> > > > >> On Sat, Nov 7, 2009 at 9:10 AM, Anders Hammar > >
>> > > > wrote:
>> > > > >>
>> > > > >> > Yes, you could use the "import" scope at the top level to
>> import
>> > > > >> dependency
>> > > > >> > management defined in another pom (which could be the ones in
>> D).
>> > > > >> >
>> > > http://docs.codehaus.org/display/MAVEN/Importing+Managed+Dependencies
>> > > > >> >
>> > > > >> > /Anders
>> > > > >> >
>> > > > >> > On Sat, Nov 7, 2009 at 15:42, David Hoffer > >
>> > > > wrote:
>> > > > >> >
>> > > > >> > > We have a large maven project where each component (or group
>> of
>> > > > >> > artifacts)
>> > > > >> > > each uses dependencyManagement to control what versions are
>> used
>> > > and
>> > > > >> to
>> > > > >> > > specify exclusions, etc.  At an individual component level
>> this
>> > > > works
>> > > > >> > well.
>> > > > >> > >
>> > > > >> > > You can think of our project as being lots of new
>> > maven/components
>> > > > (A,
>> > > > >> B,
>> > > > >> > > C)
>> > > > >> > > that act as a facade around a legacy component D...so D is at
>> > the
>> > > > >> bottom
>> > > > >> > of
>> > > > >> > > the dependency graph.
>> > > > >> > >
>> > > > >> > > However we really need D's dependency management to be at the
>> > top
>> > > > >> level
>> > > > >> > > too.  That is, lots of changes happen at the legacy comp

Re: Dependency management question

2009-11-09 Thread Anders Hammar
Sorry, no. I would investigate why it's looking in central first of all
though.

/Anders

On Mon, Nov 9, 2009 at 20:25, David Hoffer  wrote:

> Yes, building project B is just fine...I thought I had a working solution
> using import scope.  Then other developers in our company tried building C
> and reported the failure.  What I note in the console error is:
>
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
> Unable
> to download the artifact from any repository
>
> com.issinc.webtas:webtas-parent:pom:4.0-SNAPSHOT
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2)
>
> (Where webtas-parent is A.)  If I am to believe this report...its looking
> in
> the wrong repo.  We have our own corporate repo, our settings.xml points
> all
> requests to our internal URL so it should not look at
> http://repo1.maven.org/maven2 directly.
>
> Any thoughts?
>
> -Dave
>
>
>
>
> On Mon, Nov 9, 2009 at 12:19 PM, Anders Hammar  wrote:
>
> > I assume that project B builds just fine?
> > Never had import dependency in two levels like you have, so I don't know
> if
> > it's a known bug being fixed. Try Maven 2.2.1 and see, or search jira!
> >
> > /Anders
> >
> > On Mon, Nov 9, 2009 at 20:15, David Hoffer  wrote:
> >
> > > I just ran into a problem with the import scope feature.  It does not
> > > resolve properly.  I.e.
> > >
> > > Project B uses import scope feature on Project A.
> > > Project C uses import scope feature on Project B.
> > >
> > > Project C cannot build because it says that A does not exist.
> > >
> > > I'm using maven 2.1.0, has this been fixed in later versions?  Is there
> a
> > > way to make this work?
> > >
> > > -Dave
> > >
> > >
> > > On Sat, Nov 7, 2009 at 11:13 AM, Anders Hammar 
> > wrote:
> > >
> > > > Regarding the feature the assimilate plugin gives you, I would do
> like
> > > this
> > > > instead:
> > > >
> > > >
> > >
> >
> http://www.sonatype.com/people/2009/10/maven-tips-and-tricks-grouping-dependencies/
> > > >
> > > > /Anders
> > > >
> > > > On Sat, Nov 7, 2009 at 19:07, Anders Hammar 
> wrote:
> > > >
> > > > > Yes, it exists in Maven 2.0.9+. Sorry, if the link wasn't clear
> > enough.
> > > > > Have a look here:
> > > > >
> > > > >
> > > >
> > >
> >
> http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Importing_Dependencies
> > > > >
> > > > > The import support is different that what the assimilate gives you.
> > The
> > > > one
> > > > > described above is for dep management, while the assimilate plugin
> > are
> > > > for
> > > > > actual dependencies.
> > > > >
> > > > > /Anders
> > > > >
> > > > > On Sat, Nov 7, 2009 at 17:41, David Hoffer 
> > wrote:
> > > > >
> > > > >> That looks good.
> > > > >>
> > > > >> Just to be clear, in that link it seemed to be a discussion of
> what
> > to
> > > > >> possibly add to maven...are you saying that is in maven now?  Btw
> I
> > > use
> > > > >> 2.1.0.
> > > > >>
> > > > >> Also what do you think about
> > > > http://code.google.com/p/assimilate/mentioned
> > > > >> in the bottom of this link?
> > > > >>
> > > > >> -Dave
> > > > >>
> > > > >> On Sat, Nov 7, 2009 at 9:10 AM, Anders Hammar 
> > > > wrote:
> > > > >>
> > > > >> > Yes, you could use the "import" scope at the top level to import
> > > > >> dependency
> > > > >> > management defined in another pom (which could be the ones in
> D).
> > > > >> >
> > > http://docs.codehaus.org/display/MAVEN/Importing+Managed+Dependencies
> > > > >> >
> > > > >> > /Anders
> > > > >> >
> > > > >> > On Sat, Nov 7, 2009 at 15:42, David Hoffer 
> > > > wrote:
> > > > >> >
> > > > >> > > We have a large maven project where each component (or group
> of
> > > > >> > artifacts)
> > > > >> > > each uses dependencyManagement to control what versions are
> used
> > > and
> > > > >> to
> > > > >> > > specify exclusions, etc.  At an individual component level
> this
> > > > works
> > > > >> > well.
> > > > >> > >
> > > > >> > > You can think of our project as being lots of new
> > maven/components
> > > > (A,
> > > > >> B,
> > > > >> > > C)
> > > > >> > > that act as a facade around a legacy component D...so D is at
> > the
> > > > >> bottom
> > > > >> > of
> > > > >> > > the dependency graph.
> > > > >> > >
> > > > >> > > However we really need D's dependency management to be at the
> > top
> > > > >> level
> > > > >> > > too.  That is, lots of changes happen at the legacy component
> D
> > > and
> > > > we
> > > > >> > > don't
> > > > >> > > want to have to manually track dependency changes there and
> copy
> > > to
> > > > >> the
> > > > >> > top
> > > > >> > > level.
> > > > >> > >
> > > > >> > > Is there a way in maven to say, at the top-level, use D's
> > > > dependencies
> > > > >> > for
> > > > >> > > me too?  If not, how hard would it be to write a plugin that
> > does
> > > > >> this?
> > > > >> > >
> > > > >> >
> > > > >>
> > > > >
> > > > >
> > > >
> > >
> >
>


RE: system scoped dependencies are attempted to be downloaded

2009-11-09 Thread EJ Ciramella
Thanks again - yes - spot on.

We've also recycled some scripts (so ours call the "run" script) so we 
physically need more than just the dependencies.


-Original Message-
From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf Of 
Anders Hammar
Sent: Monday, November 09, 2009 2:10 PM
To: Maven Users List
Subject: Re: system scoped dependencies are attempted to be downloaded

Ah, you're using JBoss EAP? I have quite some experience from that I we had
to build our own JBoss EAP repo for a customer. What a pain to get all the
dependencies right... Never the less, it's the way to go I think.
It might be of interest for you that there is a JBoss jira for creating an
EAP repo and the rumor has it there is actually some work going on.

/Anders

On Mon, Nov 9, 2009 at 19:53, EJ Ciramella  wrote:

> Well, that's interesting - here's the thing - if you use opensource,
> community edition version of jboss, then you can depend on the jboss
> repository.
>
> If, however, you depend on the commercial version, patches (to both files
> and jars) are delivered in a different fashion (from what I can tell).
>
> Also, all the services that are available as part of the default server
> installation example are used in about 20 different projects here.  I'd
> prefer creating a single artifact that contains both duplicated/shared
> component configuration AND binaries versus multiple jar installation and a
> secondary artifact for the component configuraiton.
>
> Thank you for the feedback though, the real answer to this question seems
> to be that dependencies are verified during the validate phase and if you
> bind an "unpack-dependencies" to validate, it binds it to the end of the
> goal (which is too late for our purposes).
>
>
>
> -Original Message-
> From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On
> Behalf Of Anders Hammar
> Sent: Monday, November 09, 2009 12:58 PM
> To: Maven Users List
> Subject: Re: system scoped dependencies are attempted to be downloaded
>
> Don't think it's a bug, it's you using it the wrong way.
> As I understand you, you have a dependency to some archive which you
> unpack.
> In the same project you have a system scope dependency which points at some
> jar that gets unpacked from the dependency above. Don't think that would
> work and I frankly don't understand what you're doing. That is not the
> Maven
> way. You should add the jar (artifact) extracted from the archive to you
> (corporate) repository instead.
>
> /Anders
>
> On Mon, Nov 9, 2009 at 18:07, EJ Ciramella 
> wrote:
>
> > Sorry - and thank you!
> >
> > Any suggestions or is this (confirmed as a) a bug?
> >
> > -Original Message-
> > From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On
> > Behalf Of Anders Hammar
> > Sent: Saturday, November 07, 2009 2:07 AM
> > To: Maven Users List
> > Subject: Re: system scoped dependencies are attempted to be downloaded
> >
> > Ok. In the future, it would be great if you include this kind of info
> when
> > you ask about a problem. You need to provide all info for us to be able
> to
> > help.
> >
> > /Anders
> >
> > On Fri, Nov 6, 2009 at 23:47, EJ Ciramella 
> > wrote:
> >
> > > Yeah, we have a pretty out-of-the-ordinary build process using
> > > jboss/atg/etc.
> > >
> > > Try this - zip up any jar and try to both unpack that AND put that jar
> as
> > a
> > > dependency with a system scope.
> > >
> > > This won't work.  It will try to resolve the dependency and fail so it
> > > never unpacks the zip.
> > >
> > > -Original Message-
> > > From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On
> > > Behalf Of Anders Hammar
> > > Sent: Friday, November 06, 2009 4:20 PM
> > > To: Maven Users List
> > > Subject: Re: system scoped dependencies are attempted to be downloaded
> > >
> > > Sorry, I don't know.
> > > I take it your setup is a little bit more complicated than your initial
> > > posts indicated?
> > >
> > > /Anders
> > >
> > > On Fri, Nov 6, 2009 at 22:12, EJ Ciramella 
> > > wrote:
> > >
> > > > Hmm - here's a question - if the jar I'm looking for exists inside a
> > zip
> > > > file that needs to be downloaded, unpacked and then and only then
> will
> > > > systemPath actually point at a jar - will that fail?
> > > >
> > > > When does dependency resolution happen - at the validate stage?  If
> so,
> > > the
> > > > zip won't be downloaded and unpacked by then resulting in a
> systemPath
> > > that
> > > > doesn't exist.
> > > >
> > > >
> > > > -Original Message-
> > > > From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com]
> On
> > > > Behalf Of Anders Hammar
> > > > Sent: Friday, November 06, 2009 3:41 PM
> > > > To: Maven Users List
> > > > Subject: Re: system scoped dependencies are attempted to be
> downloaded
> > > >
> > > > And you have tried the very simplest project, containing just the
> > > > dependencies section with just this dependency? And no parent pom

Re: How do I get multiproject:install to run jar:install in sub-directories?

2009-11-09 Thread Wayne Fay
> Thanks but I have sadly not yet joined the real world of Maven 2.  I'm using
> maven 1.1.  Given this, any ideas about my questions?

You really should/must move to Maven2 asap. There is almost no good
reason to remain on M1, and the pain of migrating to M2 is pretty
minor vs the immediate benefits you will gain.

Wayne

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



Re: Dependency management question

2009-11-09 Thread David Hoffer
Yes, building project B is just fine...I thought I had a working solution
using import scope.  Then other developers in our company tried building C
and reported the failure.  What I note in the console error is:

Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable
to download the artifact from any repository

com.issinc.webtas:webtas-parent:pom:4.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

(Where webtas-parent is A.)  If I am to believe this report...its looking in
the wrong repo.  We have our own corporate repo, our settings.xml points all
requests to our internal URL so it should not look at
http://repo1.maven.org/maven2 directly.

Any thoughts?

-Dave




On Mon, Nov 9, 2009 at 12:19 PM, Anders Hammar  wrote:

> I assume that project B builds just fine?
> Never had import dependency in two levels like you have, so I don't know if
> it's a known bug being fixed. Try Maven 2.2.1 and see, or search jira!
>
> /Anders
>
> On Mon, Nov 9, 2009 at 20:15, David Hoffer  wrote:
>
> > I just ran into a problem with the import scope feature.  It does not
> > resolve properly.  I.e.
> >
> > Project B uses import scope feature on Project A.
> > Project C uses import scope feature on Project B.
> >
> > Project C cannot build because it says that A does not exist.
> >
> > I'm using maven 2.1.0, has this been fixed in later versions?  Is there a
> > way to make this work?
> >
> > -Dave
> >
> >
> > On Sat, Nov 7, 2009 at 11:13 AM, Anders Hammar 
> wrote:
> >
> > > Regarding the feature the assimilate plugin gives you, I would do like
> > this
> > > instead:
> > >
> > >
> >
> http://www.sonatype.com/people/2009/10/maven-tips-and-tricks-grouping-dependencies/
> > >
> > > /Anders
> > >
> > > On Sat, Nov 7, 2009 at 19:07, Anders Hammar  wrote:
> > >
> > > > Yes, it exists in Maven 2.0.9+. Sorry, if the link wasn't clear
> enough.
> > > > Have a look here:
> > > >
> > > >
> > >
> >
> http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Importing_Dependencies
> > > >
> > > > The import support is different that what the assimilate gives you.
> The
> > > one
> > > > described above is for dep management, while the assimilate plugin
> are
> > > for
> > > > actual dependencies.
> > > >
> > > > /Anders
> > > >
> > > > On Sat, Nov 7, 2009 at 17:41, David Hoffer 
> wrote:
> > > >
> > > >> That looks good.
> > > >>
> > > >> Just to be clear, in that link it seemed to be a discussion of what
> to
> > > >> possibly add to maven...are you saying that is in maven now?  Btw I
> > use
> > > >> 2.1.0.
> > > >>
> > > >> Also what do you think about
> > > http://code.google.com/p/assimilate/mentioned
> > > >> in the bottom of this link?
> > > >>
> > > >> -Dave
> > > >>
> > > >> On Sat, Nov 7, 2009 at 9:10 AM, Anders Hammar 
> > > wrote:
> > > >>
> > > >> > Yes, you could use the "import" scope at the top level to import
> > > >> dependency
> > > >> > management defined in another pom (which could be the ones in D).
> > > >> >
> > http://docs.codehaus.org/display/MAVEN/Importing+Managed+Dependencies
> > > >> >
> > > >> > /Anders
> > > >> >
> > > >> > On Sat, Nov 7, 2009 at 15:42, David Hoffer 
> > > wrote:
> > > >> >
> > > >> > > We have a large maven project where each component (or group of
> > > >> > artifacts)
> > > >> > > each uses dependencyManagement to control what versions are used
> > and
> > > >> to
> > > >> > > specify exclusions, etc.  At an individual component level this
> > > works
> > > >> > well.
> > > >> > >
> > > >> > > You can think of our project as being lots of new
> maven/components
> > > (A,
> > > >> B,
> > > >> > > C)
> > > >> > > that act as a facade around a legacy component D...so D is at
> the
> > > >> bottom
> > > >> > of
> > > >> > > the dependency graph.
> > > >> > >
> > > >> > > However we really need D's dependency management to be at the
> top
> > > >> level
> > > >> > > too.  That is, lots of changes happen at the legacy component D
> > and
> > > we
> > > >> > > don't
> > > >> > > want to have to manually track dependency changes there and copy
> > to
> > > >> the
> > > >> > top
> > > >> > > level.
> > > >> > >
> > > >> > > Is there a way in maven to say, at the top-level, use D's
> > > dependencies
> > > >> > for
> > > >> > > me too?  If not, how hard would it be to write a plugin that
> does
> > > >> this?
> > > >> > >
> > > >> >
> > > >>
> > > >
> > > >
> > >
> >
>


Re: Dependency management question

2009-11-09 Thread Anders Hammar
I assume that project B builds just fine?
Never had import dependency in two levels like you have, so I don't know if
it's a known bug being fixed. Try Maven 2.2.1 and see, or search jira!

/Anders

On Mon, Nov 9, 2009 at 20:15, David Hoffer  wrote:

> I just ran into a problem with the import scope feature.  It does not
> resolve properly.  I.e.
>
> Project B uses import scope feature on Project A.
> Project C uses import scope feature on Project B.
>
> Project C cannot build because it says that A does not exist.
>
> I'm using maven 2.1.0, has this been fixed in later versions?  Is there a
> way to make this work?
>
> -Dave
>
>
> On Sat, Nov 7, 2009 at 11:13 AM, Anders Hammar  wrote:
>
> > Regarding the feature the assimilate plugin gives you, I would do like
> this
> > instead:
> >
> >
> http://www.sonatype.com/people/2009/10/maven-tips-and-tricks-grouping-dependencies/
> >
> > /Anders
> >
> > On Sat, Nov 7, 2009 at 19:07, Anders Hammar  wrote:
> >
> > > Yes, it exists in Maven 2.0.9+. Sorry, if the link wasn't clear enough.
> > > Have a look here:
> > >
> > >
> >
> http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Importing_Dependencies
> > >
> > > The import support is different that what the assimilate gives you. The
> > one
> > > described above is for dep management, while the assimilate plugin are
> > for
> > > actual dependencies.
> > >
> > > /Anders
> > >
> > > On Sat, Nov 7, 2009 at 17:41, David Hoffer  wrote:
> > >
> > >> That looks good.
> > >>
> > >> Just to be clear, in that link it seemed to be a discussion of what to
> > >> possibly add to maven...are you saying that is in maven now?  Btw I
> use
> > >> 2.1.0.
> > >>
> > >> Also what do you think about
> > http://code.google.com/p/assimilate/mentioned
> > >> in the bottom of this link?
> > >>
> > >> -Dave
> > >>
> > >> On Sat, Nov 7, 2009 at 9:10 AM, Anders Hammar 
> > wrote:
> > >>
> > >> > Yes, you could use the "import" scope at the top level to import
> > >> dependency
> > >> > management defined in another pom (which could be the ones in D).
> > >> >
> http://docs.codehaus.org/display/MAVEN/Importing+Managed+Dependencies
> > >> >
> > >> > /Anders
> > >> >
> > >> > On Sat, Nov 7, 2009 at 15:42, David Hoffer 
> > wrote:
> > >> >
> > >> > > We have a large maven project where each component (or group of
> > >> > artifacts)
> > >> > > each uses dependencyManagement to control what versions are used
> and
> > >> to
> > >> > > specify exclusions, etc.  At an individual component level this
> > works
> > >> > well.
> > >> > >
> > >> > > You can think of our project as being lots of new maven/components
> > (A,
> > >> B,
> > >> > > C)
> > >> > > that act as a facade around a legacy component D...so D is at the
> > >> bottom
> > >> > of
> > >> > > the dependency graph.
> > >> > >
> > >> > > However we really need D's dependency management to be at the top
> > >> level
> > >> > > too.  That is, lots of changes happen at the legacy component D
> and
> > we
> > >> > > don't
> > >> > > want to have to manually track dependency changes there and copy
> to
> > >> the
> > >> > top
> > >> > > level.
> > >> > >
> > >> > > Is there a way in maven to say, at the top-level, use D's
> > dependencies
> > >> > for
> > >> > > me too?  If not, how hard would it be to write a plugin that does
> > >> this?
> > >> > >
> > >> >
> > >>
> > >
> > >
> >
>


Re: Dependency management question

2009-11-09 Thread David Hoffer
I just ran into a problem with the import scope feature.  It does not
resolve properly.  I.e.

Project B uses import scope feature on Project A.
Project C uses import scope feature on Project B.

Project C cannot build because it says that A does not exist.

I'm using maven 2.1.0, has this been fixed in later versions?  Is there a
way to make this work?

-Dave


On Sat, Nov 7, 2009 at 11:13 AM, Anders Hammar  wrote:

> Regarding the feature the assimilate plugin gives you, I would do like this
> instead:
>
> http://www.sonatype.com/people/2009/10/maven-tips-and-tricks-grouping-dependencies/
>
> /Anders
>
> On Sat, Nov 7, 2009 at 19:07, Anders Hammar  wrote:
>
> > Yes, it exists in Maven 2.0.9+. Sorry, if the link wasn't clear enough.
> > Have a look here:
> >
> >
> http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Importing_Dependencies
> >
> > The import support is different that what the assimilate gives you. The
> one
> > described above is for dep management, while the assimilate plugin are
> for
> > actual dependencies.
> >
> > /Anders
> >
> > On Sat, Nov 7, 2009 at 17:41, David Hoffer  wrote:
> >
> >> That looks good.
> >>
> >> Just to be clear, in that link it seemed to be a discussion of what to
> >> possibly add to maven...are you saying that is in maven now?  Btw I use
> >> 2.1.0.
> >>
> >> Also what do you think about
> http://code.google.com/p/assimilate/mentioned
> >> in the bottom of this link?
> >>
> >> -Dave
> >>
> >> On Sat, Nov 7, 2009 at 9:10 AM, Anders Hammar 
> wrote:
> >>
> >> > Yes, you could use the "import" scope at the top level to import
> >> dependency
> >> > management defined in another pom (which could be the ones in D).
> >> > http://docs.codehaus.org/display/MAVEN/Importing+Managed+Dependencies
> >> >
> >> > /Anders
> >> >
> >> > On Sat, Nov 7, 2009 at 15:42, David Hoffer 
> wrote:
> >> >
> >> > > We have a large maven project where each component (or group of
> >> > artifacts)
> >> > > each uses dependencyManagement to control what versions are used and
> >> to
> >> > > specify exclusions, etc.  At an individual component level this
> works
> >> > well.
> >> > >
> >> > > You can think of our project as being lots of new maven/components
> (A,
> >> B,
> >> > > C)
> >> > > that act as a facade around a legacy component D...so D is at the
> >> bottom
> >> > of
> >> > > the dependency graph.
> >> > >
> >> > > However we really need D's dependency management to be at the top
> >> level
> >> > > too.  That is, lots of changes happen at the legacy component D and
> we
> >> > > don't
> >> > > want to have to manually track dependency changes there and copy to
> >> the
> >> > top
> >> > > level.
> >> > >
> >> > > Is there a way in maven to say, at the top-level, use D's
> dependencies
> >> > for
> >> > > me too?  If not, how hard would it be to write a plugin that does
> >> this?
> >> > >
> >> >
> >>
> >
> >
>


Re: File system repo

2009-11-09 Thread Wendy Smoak
On Mon, Nov 9, 2009 at 12:00 PM, monkeyden  wrote:

> I have several projects which can't be converted over to maven right now,
> mostly because of time constraints.  The artifacts of these projects will be
> used in a maven project.  I'd prefer not to install them into my repository,
> so I am trying to create a file system repository which points to a
> directory of the current (maven) project.

Looks okay at a quick glance... what problem are you having?

-- 
Wendy

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



Re: system scoped dependencies are attempted to be downloaded

2009-11-09 Thread Anders Hammar
Ah, you're using JBoss EAP? I have quite some experience from that I we had
to build our own JBoss EAP repo for a customer. What a pain to get all the
dependencies right... Never the less, it's the way to go I think.
It might be of interest for you that there is a JBoss jira for creating an
EAP repo and the rumor has it there is actually some work going on.

/Anders

On Mon, Nov 9, 2009 at 19:53, EJ Ciramella  wrote:

> Well, that's interesting - here's the thing - if you use opensource,
> community edition version of jboss, then you can depend on the jboss
> repository.
>
> If, however, you depend on the commercial version, patches (to both files
> and jars) are delivered in a different fashion (from what I can tell).
>
> Also, all the services that are available as part of the default server
> installation example are used in about 20 different projects here.  I'd
> prefer creating a single artifact that contains both duplicated/shared
> component configuration AND binaries versus multiple jar installation and a
> secondary artifact for the component configuraiton.
>
> Thank you for the feedback though, the real answer to this question seems
> to be that dependencies are verified during the validate phase and if you
> bind an "unpack-dependencies" to validate, it binds it to the end of the
> goal (which is too late for our purposes).
>
>
>
> -Original Message-
> From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On
> Behalf Of Anders Hammar
> Sent: Monday, November 09, 2009 12:58 PM
> To: Maven Users List
> Subject: Re: system scoped dependencies are attempted to be downloaded
>
> Don't think it's a bug, it's you using it the wrong way.
> As I understand you, you have a dependency to some archive which you
> unpack.
> In the same project you have a system scope dependency which points at some
> jar that gets unpacked from the dependency above. Don't think that would
> work and I frankly don't understand what you're doing. That is not the
> Maven
> way. You should add the jar (artifact) extracted from the archive to you
> (corporate) repository instead.
>
> /Anders
>
> On Mon, Nov 9, 2009 at 18:07, EJ Ciramella 
> wrote:
>
> > Sorry - and thank you!
> >
> > Any suggestions or is this (confirmed as a) a bug?
> >
> > -Original Message-
> > From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On
> > Behalf Of Anders Hammar
> > Sent: Saturday, November 07, 2009 2:07 AM
> > To: Maven Users List
> > Subject: Re: system scoped dependencies are attempted to be downloaded
> >
> > Ok. In the future, it would be great if you include this kind of info
> when
> > you ask about a problem. You need to provide all info for us to be able
> to
> > help.
> >
> > /Anders
> >
> > On Fri, Nov 6, 2009 at 23:47, EJ Ciramella 
> > wrote:
> >
> > > Yeah, we have a pretty out-of-the-ordinary build process using
> > > jboss/atg/etc.
> > >
> > > Try this - zip up any jar and try to both unpack that AND put that jar
> as
> > a
> > > dependency with a system scope.
> > >
> > > This won't work.  It will try to resolve the dependency and fail so it
> > > never unpacks the zip.
> > >
> > > -Original Message-
> > > From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On
> > > Behalf Of Anders Hammar
> > > Sent: Friday, November 06, 2009 4:20 PM
> > > To: Maven Users List
> > > Subject: Re: system scoped dependencies are attempted to be downloaded
> > >
> > > Sorry, I don't know.
> > > I take it your setup is a little bit more complicated than your initial
> > > posts indicated?
> > >
> > > /Anders
> > >
> > > On Fri, Nov 6, 2009 at 22:12, EJ Ciramella 
> > > wrote:
> > >
> > > > Hmm - here's a question - if the jar I'm looking for exists inside a
> > zip
> > > > file that needs to be downloaded, unpacked and then and only then
> will
> > > > systemPath actually point at a jar - will that fail?
> > > >
> > > > When does dependency resolution happen - at the validate stage?  If
> so,
> > > the
> > > > zip won't be downloaded and unpacked by then resulting in a
> systemPath
> > > that
> > > > doesn't exist.
> > > >
> > > >
> > > > -Original Message-
> > > > From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com]
> On
> > > > Behalf Of Anders Hammar
> > > > Sent: Friday, November 06, 2009 3:41 PM
> > > > To: Maven Users List
> > > > Subject: Re: system scoped dependencies are attempted to be
> downloaded
> > > >
> > > > And you have tried the very simplest project, containing just the
> > > > dependencies section with just this dependency? And no parent pom
> which
> > > > could hide something not obvious. For example, use the quickstart
> > > > archetype.
> > > > Also, have you tried it in a different environment (computer)?
> > > > If that still reproduces the issue, I suggest you create a jira and
> > > attach
> > > > that project.
> > > >
> > > > /Anders
> > > >
> > > > On Fri, Nov 6, 2009 at 21:33, EJ Ciramella 
> > > > wrote:
> > > >
> > > > > We're no

File system repo

2009-11-09 Thread monkeyden

I have several projects which can't be converted over to maven right now,
mostly because of time constraints.  The artifacts of these projects will be
used in a maven project.  I'd prefer not to install them into my repository,
so I am trying to create a file system repository which points to a
directory of the current (maven) project.  I have seen this post, which was
left unanswered.  

http://old.nabble.com/file-system-repo-not-work-ts16355485.html#a16355485

I have the following repository configured in my pom:




local jars
local jars
file://${basedir}/lib




I have the following dependencies also:



com.mycompany
ProjectNextQuattro
1.0


com.mycompany
ProjectNextPojos
1.0


and the jars are in ${basedir}/lib/com/mycompany


Any help is appreicated 
Thanks
-- 
View this message in context: 
http://old.nabble.com/File-system-repo-tp26271810p26271810.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: system scoped dependencies are attempted to be downloaded

2009-11-09 Thread EJ Ciramella
Well, that's interesting - here's the thing - if you use opensource, community 
edition version of jboss, then you can depend on the jboss repository.

If, however, you depend on the commercial version, patches (to both files and 
jars) are delivered in a different fashion (from what I can tell).

Also, all the services that are available as part of the default server 
installation example are used in about 20 different projects here.  I'd prefer 
creating a single artifact that contains both duplicated/shared component 
configuration AND binaries versus multiple jar installation and a secondary 
artifact for the component configuraiton.

Thank you for the feedback though, the real answer to this question seems to be 
that dependencies are verified during the validate phase and if you bind an 
"unpack-dependencies" to validate, it binds it to the end of the goal (which is 
too late for our purposes).



-Original Message-
From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf Of 
Anders Hammar
Sent: Monday, November 09, 2009 12:58 PM
To: Maven Users List
Subject: Re: system scoped dependencies are attempted to be downloaded

Don't think it's a bug, it's you using it the wrong way.
As I understand you, you have a dependency to some archive which you unpack.
In the same project you have a system scope dependency which points at some
jar that gets unpacked from the dependency above. Don't think that would
work and I frankly don't understand what you're doing. That is not the Maven
way. You should add the jar (artifact) extracted from the archive to you
(corporate) repository instead.

/Anders

On Mon, Nov 9, 2009 at 18:07, EJ Ciramella  wrote:

> Sorry - and thank you!
>
> Any suggestions or is this (confirmed as a) a bug?
>
> -Original Message-
> From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On
> Behalf Of Anders Hammar
> Sent: Saturday, November 07, 2009 2:07 AM
> To: Maven Users List
> Subject: Re: system scoped dependencies are attempted to be downloaded
>
> Ok. In the future, it would be great if you include this kind of info when
> you ask about a problem. You need to provide all info for us to be able to
> help.
>
> /Anders
>
> On Fri, Nov 6, 2009 at 23:47, EJ Ciramella 
> wrote:
>
> > Yeah, we have a pretty out-of-the-ordinary build process using
> > jboss/atg/etc.
> >
> > Try this - zip up any jar and try to both unpack that AND put that jar as
> a
> > dependency with a system scope.
> >
> > This won't work.  It will try to resolve the dependency and fail so it
> > never unpacks the zip.
> >
> > -Original Message-
> > From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On
> > Behalf Of Anders Hammar
> > Sent: Friday, November 06, 2009 4:20 PM
> > To: Maven Users List
> > Subject: Re: system scoped dependencies are attempted to be downloaded
> >
> > Sorry, I don't know.
> > I take it your setup is a little bit more complicated than your initial
> > posts indicated?
> >
> > /Anders
> >
> > On Fri, Nov 6, 2009 at 22:12, EJ Ciramella 
> > wrote:
> >
> > > Hmm - here's a question - if the jar I'm looking for exists inside a
> zip
> > > file that needs to be downloaded, unpacked and then and only then will
> > > systemPath actually point at a jar - will that fail?
> > >
> > > When does dependency resolution happen - at the validate stage?  If so,
> > the
> > > zip won't be downloaded and unpacked by then resulting in a systemPath
> > that
> > > doesn't exist.
> > >
> > >
> > > -Original Message-
> > > From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On
> > > Behalf Of Anders Hammar
> > > Sent: Friday, November 06, 2009 3:41 PM
> > > To: Maven Users List
> > > Subject: Re: system scoped dependencies are attempted to be downloaded
> > >
> > > And you have tried the very simplest project, containing just the
> > > dependencies section with just this dependency? And no parent pom which
> > > could hide something not obvious. For example, use the quickstart
> > > archetype.
> > > Also, have you tried it in a different environment (computer)?
> > > If that still reproduces the issue, I suggest you create a jira and
> > attach
> > > that project.
> > >
> > > /Anders
> > >
> > > On Fri, Nov 6, 2009 at 21:33, EJ Ciramella 
> > > wrote:
> > >
> > > > We're not using a version range.  The numbers I'm speaking of below
> is
> > > the
> > > > range of maven 2 versions I tried and had this problem.
> > > >
> > > > -Original Message-
> > > > From: Wayne Fay [mailto:wayne...@gmail.com]
> > > > Sent: Friday, November 06, 2009 3:29 PM
> > > > To: Maven Users List
> > > > Subject: Re: system scoped dependencies are attempted to be
> downloaded
> > > >
> > > > > It's simple - if you have a dependency with a system scope, maven
> > 2.0.9
> > > -
> > > > 2.2.1 tries looking up that dependency in any repos you may have
> > mapped.
> > > > >
> > > > > Shouldn't it just skip that part?
> > > >
> > > > What happens wh

Re: How do I get multiproject:install to run jar:install in sub-directories?

2009-11-09 Thread laredotornado

Below are the contents of my service/project.properties file ...

maven.multiproject.type=javaapp
maven.javaapp.jar.name=${pom.artifactId}-${pom.currentVersion}.jar
maven.javaapp.mainclass=myco.dor.dmv.driver.youthful.AddressFileProcessor
maven.javaapp.type=jar
maven.compile.target=1.5

What is weird is that I intentionally introduced a compile error into one of
the .java files within the service directory, but when I ran
"multiproject:install" from the top level, it did not fail due to a compile
error -- I verified the file was saved correctly.  The compile error was
picked up when I switched to the "service" directory and ran "maven clean"
followed by "maven jar:install".  

So my problem is still that multiproject:install does not seem to be
rebuilding my sub-projects . Below is the output.  Thanks, - Dave



ocho:youthful dalvarado$ maven multiproject:install
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1

build:start:

multiproject:install:
multiproject:projects-init:
[echo] Gathering project list
Starting the reactor...
Our processing order:
myco-dor-dmv-driver-youthful-model
Youthful Driver Monitoring
Youthful Driver Monitoring
myco-dor-dmv-driver-youthful-test
+
| Gathering project list myco-dor-dmv-driver-youthful-model
| Memory: 4M/6M
+
+
| Gathering project list Youthful Driver Monitoring
| Memory: 4M/6M
+
+
| Gathering project list Youthful Driver Monitoring
| Memory: 4M/6M
+
+
| Gathering project list myco-dor-dmv-driver-youthful-test
| Memory: 4M/6M
+

multiproject:goal:
Starting the reactor...
Our processing order:
myco-dor-dmv-driver-youthful-model
Youthful Driver Monitoring
Youthful Driver Monitoring
myco-dor-dmv-driver-youthful-test
+
| Executing multiproject:install-callback myco-dor-dmv-driver-youthful-model
| Memory: 4M/6M
+
build:start:

multiproject:install-callback:
[echo] Running jar:install for myco-dor-dmv-driver-youthful-model
java:prepare-filesystem:

java:init:

java:compile:
[echo] Compiling to
/Users/dalvarado/source/youthful/model/target/classes
[echo] 
==

  WARNING:  maven.compile.target is not set:
using the default value which depends on your JVM

==
  

java:jar-resources:

test:test:
[echo] No tests to run.

jar:jar:

jar:install:
[echo] Installing...
Uploading to
myco.dor.dmv.driver.youthful/jars/myco-dor-dmv-driver-youthful-model-1.4.1.jar: 
 (6K)
Uploading to
myco.dor.dmv.driver.youthful/poms/myco-dor-dmv-driver-youthful-model-1.4.1.pom: 
 (4K)

+
| Executing multiproject:install-callback Youthful Driver Monitoring
| Memory: 7M/9M
+

build:end:

build:start:

multiproject:install-callback:
[echo] Running javaapp:install for Youthful Driver Monitoring
javaapp:prereq:

test:test:
[echo] No tests to run.

javaapp:prepare-filesystem:

javaapp:support-uberjar-bundle:

javaapp:copy-deps:
[echo] Copy dependent JARs into
/Users/dalvarado/source/youthful/service/target/javaapp/lib
[copy] Copying 1 file to
/Users/dalvarado/source/youthful/service/target/javaapp/lib

javaapp:jar-resources:
Copying 5 files to /Users/dalvarado/source/youthful/service/target/javaapp

javaapp:jar:
[unzip] Expanding:
/Users/dalvarado/source/youthful/service/target/javaapp/lib/activation-1.1.jar
into /Users/dalvarado/source/youthful/service/target/javaapp
[move] Moving 1 file to
/Users/dalvarado/source/youthful/service/target/javaapp/META-INF
[unzip] Expanding:
/Users/dalvarado/source/youthful/service/target/javaapp/lib/antlr-2.7.6.jar
into /Users/dalvarado/source/youthful/service/target/javaapp
[unzip] Expanding:
/Users/dalvarado/source/youthful/service/target/javaapp/lib/cglib-nodep-2.2.jar
into /Users/dalvarado/source/youthful/service/target/javaapp
[unzip] Expanding:
/Users/dalvarado/source/youthful/service/target/javaapp/lib/client-1.4.0SP1.jar
into /Users/dalvarado/source/youthful/service/target/javaapp
[unzip] Expanding:
/Users/dalvarado/source/youthful/service/target/javaapp/lib/myco-dor-dmv-driver-matching-model-1.1.jar
into /Users/dalvarado/source/youthful/service/target/javaapp
[unzip] Expanding:
/Users/dalvarado/source/youthful/service/target/javaapp/lib/myco-dor-dmv-driver-youthful-model-1.4.1.jar
into /Users/dalvarado/source/youthful/service/target/javaapp
[unzip] Expanding:
/Users/dalvarado/source/you

Re: system scoped dependencies are attempted to be downloaded

2009-11-09 Thread Anders Hammar
Don't think it's a bug, it's you using it the wrong way.
As I understand you, you have a dependency to some archive which you unpack.
In the same project you have a system scope dependency which points at some
jar that gets unpacked from the dependency above. Don't think that would
work and I frankly don't understand what you're doing. That is not the Maven
way. You should add the jar (artifact) extracted from the archive to you
(corporate) repository instead.

/Anders

On Mon, Nov 9, 2009 at 18:07, EJ Ciramella  wrote:

> Sorry - and thank you!
>
> Any suggestions or is this (confirmed as a) a bug?
>
> -Original Message-
> From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On
> Behalf Of Anders Hammar
> Sent: Saturday, November 07, 2009 2:07 AM
> To: Maven Users List
> Subject: Re: system scoped dependencies are attempted to be downloaded
>
> Ok. In the future, it would be great if you include this kind of info when
> you ask about a problem. You need to provide all info for us to be able to
> help.
>
> /Anders
>
> On Fri, Nov 6, 2009 at 23:47, EJ Ciramella 
> wrote:
>
> > Yeah, we have a pretty out-of-the-ordinary build process using
> > jboss/atg/etc.
> >
> > Try this - zip up any jar and try to both unpack that AND put that jar as
> a
> > dependency with a system scope.
> >
> > This won't work.  It will try to resolve the dependency and fail so it
> > never unpacks the zip.
> >
> > -Original Message-
> > From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On
> > Behalf Of Anders Hammar
> > Sent: Friday, November 06, 2009 4:20 PM
> > To: Maven Users List
> > Subject: Re: system scoped dependencies are attempted to be downloaded
> >
> > Sorry, I don't know.
> > I take it your setup is a little bit more complicated than your initial
> > posts indicated?
> >
> > /Anders
> >
> > On Fri, Nov 6, 2009 at 22:12, EJ Ciramella 
> > wrote:
> >
> > > Hmm - here's a question - if the jar I'm looking for exists inside a
> zip
> > > file that needs to be downloaded, unpacked and then and only then will
> > > systemPath actually point at a jar - will that fail?
> > >
> > > When does dependency resolution happen - at the validate stage?  If so,
> > the
> > > zip won't be downloaded and unpacked by then resulting in a systemPath
> > that
> > > doesn't exist.
> > >
> > >
> > > -Original Message-
> > > From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On
> > > Behalf Of Anders Hammar
> > > Sent: Friday, November 06, 2009 3:41 PM
> > > To: Maven Users List
> > > Subject: Re: system scoped dependencies are attempted to be downloaded
> > >
> > > And you have tried the very simplest project, containing just the
> > > dependencies section with just this dependency? And no parent pom which
> > > could hide something not obvious. For example, use the quickstart
> > > archetype.
> > > Also, have you tried it in a different environment (computer)?
> > > If that still reproduces the issue, I suggest you create a jira and
> > attach
> > > that project.
> > >
> > > /Anders
> > >
> > > On Fri, Nov 6, 2009 at 21:33, EJ Ciramella 
> > > wrote:
> > >
> > > > We're not using a version range.  The numbers I'm speaking of below
> is
> > > the
> > > > range of maven 2 versions I tried and had this problem.
> > > >
> > > > -Original Message-
> > > > From: Wayne Fay [mailto:wayne...@gmail.com]
> > > > Sent: Friday, November 06, 2009 3:29 PM
> > > > To: Maven Users List
> > > > Subject: Re: system scoped dependencies are attempted to be
> downloaded
> > > >
> > > > > It's simple - if you have a dependency with a system scope, maven
> > 2.0.9
> > > -
> > > > 2.2.1 tries looking up that dependency in any repos you may have
> > mapped.
> > > > >
> > > > > Shouldn't it just skip that part?
> > > >
> > > > What happens when you change the version range to a fixed value eg
> > > > >2.1.3< or >[2.1.3] > > > since it does not apply to system scoped artifacts?
> > > >
> > > > Wayne
> > > >
> > > > -
> > > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > > > For additional commands, e-mail: users-h...@maven.apache.org
> > > >
> > > >
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > > For additional commands, e-mail: users-h...@maven.apache.org
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


RE: m2eclipse

2009-11-09 Thread Damon Silver
I'm having the same problem.  I've also received messages saying I've
subscribed but have seen no traffic in the past few weeks.  Could someone
associated with the list (Jason Van Zyl, maybe) prod the administrators
there to make sure it's working as expected?

Thanks,

Damon

-Original Message-
From: Fabricio Lemos [mailto:fabricio.le...@sefaz.ce.gov.br] 
Sent: Monday, November 09, 2009 5:19 AM
To: Maven Users List
Subject: Re: m2eclipse

I´m having this same problem while subscribing do m2eclipse mailing list.

maven apache wrote:
> 2009/11/7 Brian Fox 
>
>   
>> On Fri, Nov 6, 2009 at 3:48 AM, maven apache 
>> wrote:
>> 
>>> 2009/11/6 Olivier Lamy 
>>>
>>>   
 BTW you can use m2e user ml

 Have a look here :
 
>> http://m2eclipse.sonatype.org/project-information.html
>> 
>>> I have tried, but I can not subscrib to the maillist.
>>>
>>>   
>> Why not?
>>
>> 
> I send subscribe message to "user-subscr...@m2eclipse.sonatype.org",soon I
> got the information:
>

--
> Delivery to the following recipient failed permanently:
>
> user-subscr...@m2eclipse.sonatype.org
>
> Technical details of permanent failure:
> Google tried to deliver your message, but it was rejected by the recipient
> domain. We recommend contacting the other email provider for further
> information about the cause of this error. The error that the other server
> returned was: 553 553 sorry, that domain isn't in my list of allowed
> rcpthosts (#5.5.3 - chkuser) (state 14).
>
> - Original message -
> ---
>
>   
 Thanks,
 --
 Olivier

 2009/11/6 Antonio Petrelli :
 
> 2009/11/6 maven apache :
>   
>> Thanks,I have install other plugins such as POM XML Editor 0.9.8,can
>> 
>> I
>> 
>> retain them and intall the POM Editor 0.9.9 only?
>> 
> I don't think so.
>
>   
>> If can not do this, how to unintended cleanly the installed maven
>> 
 plugins?
 
> They should be updated as long as you put the repository in your
>   
>> Eclipse.
>> 
> Anyway, if it does not work, to uninstall you should go to:
> Help - About - Installation Details - Installed Software (tab)
>
> Ciao
> Antonio
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>
>   

 --
 Olivier

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


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

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



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



RE: system scoped dependencies are attempted to be downloaded

2009-11-09 Thread EJ Ciramella
Sorry - and thank you!

Any suggestions or is this (confirmed as a) a bug?

-Original Message-
From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf Of 
Anders Hammar
Sent: Saturday, November 07, 2009 2:07 AM
To: Maven Users List
Subject: Re: system scoped dependencies are attempted to be downloaded

Ok. In the future, it would be great if you include this kind of info when
you ask about a problem. You need to provide all info for us to be able to
help.

/Anders

On Fri, Nov 6, 2009 at 23:47, EJ Ciramella  wrote:

> Yeah, we have a pretty out-of-the-ordinary build process using
> jboss/atg/etc.
>
> Try this - zip up any jar and try to both unpack that AND put that jar as a
> dependency with a system scope.
>
> This won't work.  It will try to resolve the dependency and fail so it
> never unpacks the zip.
>
> -Original Message-
> From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On
> Behalf Of Anders Hammar
> Sent: Friday, November 06, 2009 4:20 PM
> To: Maven Users List
> Subject: Re: system scoped dependencies are attempted to be downloaded
>
> Sorry, I don't know.
> I take it your setup is a little bit more complicated than your initial
> posts indicated?
>
> /Anders
>
> On Fri, Nov 6, 2009 at 22:12, EJ Ciramella 
> wrote:
>
> > Hmm - here's a question - if the jar I'm looking for exists inside a zip
> > file that needs to be downloaded, unpacked and then and only then will
> > systemPath actually point at a jar - will that fail?
> >
> > When does dependency resolution happen - at the validate stage?  If so,
> the
> > zip won't be downloaded and unpacked by then resulting in a systemPath
> that
> > doesn't exist.
> >
> >
> > -Original Message-
> > From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On
> > Behalf Of Anders Hammar
> > Sent: Friday, November 06, 2009 3:41 PM
> > To: Maven Users List
> > Subject: Re: system scoped dependencies are attempted to be downloaded
> >
> > And you have tried the very simplest project, containing just the
> > dependencies section with just this dependency? And no parent pom which
> > could hide something not obvious. For example, use the quickstart
> > archetype.
> > Also, have you tried it in a different environment (computer)?
> > If that still reproduces the issue, I suggest you create a jira and
> attach
> > that project.
> >
> > /Anders
> >
> > On Fri, Nov 6, 2009 at 21:33, EJ Ciramella 
> > wrote:
> >
> > > We're not using a version range.  The numbers I'm speaking of below is
> > the
> > > range of maven 2 versions I tried and had this problem.
> > >
> > > -Original Message-
> > > From: Wayne Fay [mailto:wayne...@gmail.com]
> > > Sent: Friday, November 06, 2009 3:29 PM
> > > To: Maven Users List
> > > Subject: Re: system scoped dependencies are attempted to be downloaded
> > >
> > > > It's simple - if you have a dependency with a system scope, maven
> 2.0.9
> > -
> > > 2.2.1 tries looking up that dependency in any repos you may have
> mapped.
> > > >
> > > > Shouldn't it just skip that part?
> > >
> > > What happens when you change the version range to a fixed value eg
> > > >2.1.3< or >[2.1.3] > > since it does not apply to system scoped artifacts?
> > >
> > > Wayne
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > > For additional commands, e-mail: users-h...@maven.apache.org
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

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



RE: maven-dependency-plugin:unpack-dependencies doesn't always work

2009-11-09 Thread EJ Ciramella
Nope - there are no markers created.  Period.
Good thinking though!

Any other suggestions what may be wrong with this artifact?  It opens just fine 
in winzip.

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



RE: Location of plexus jars..

2009-11-09 Thread Martin Gainty

i found the plexus source distro at 
http://plexus.codehaus.org/source-repository.html 
but when referencing plexus-utils i see a consistent error message of "cannot 
locate plexus-component-metadata"
i noticed there is a hardcoded reference to .metadata in 
org.codehaus.plexus.util.AbstractScanner
but i cannot locate .metadata in any of the distributions?

any advice on where to locate .metadata?
thanks,
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




From: mgai...@hotmail.com
To: users@maven.apache.org
Subject: Location of plexus jars..
Date: Sat, 7 Nov 2009 20:43:44 -0500








cannot locate org.codehaus.plexus.plexus-components-.jar

anyone know where i can locate plexus jars?
thanks!
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.


  
Find the right PC with Windows 7 and Windows Live.  Learn more. 
  
_
Hotmail: Trusted email with Microsoft's powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141664/direct/01/
http://clk.atdmt.com/GBL/go/177141664/direct/01/


Re: How do I get multiproject:install to run jar:install in sub-directories?

2009-11-09 Thread Lukas Theussl


If your sub-projects are of type jar then multiproject:install will run 
jar:install automatically on all configured sub-projects.


See http://maven.apache.org/maven-1.x/plugins/multiproject/goals.html

HTH,
-Lukas


laredotornado wrote:

Hi,

I'm using Maven 1.1.  I have model and service directories within my
project.  How do I configure maven so that when I run "maven
multiproject:install" from the top level, it will run jar:install from
within each of those two directories?  Here is what I have in my top level
project folder for project.properties

maven.test.skip=true
maven.scm.bootstrap.goals=multiproject:deploy

Thanks for any advice, - Dave


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



[Maven_2.1.0/maven-resources_2.4.1] filtering tag and property

2009-11-09 Thread Emmanuel Séguin

Hi

I'm trying to activate resources filtering by using properties in the pom.
I've done several tests but the magic is still not happening ;)

To be absolutely sure of what is happening i've created a brand new empty
webapp with maven archetype.

My webapp tree is : 
/pom.xml
/src/... (usual index.jps and basic web.xml)
/filters/local.properties
/config/toto.txt

Here is the pom.xml :

http://maven ...>
  4.0.0
  com.mycompany.app
  my-webapp
  war
  1.0-SNAPSHOT


   
${basedir}/filters/local.properties
true



my-webapp

${filtering-local-file}



config
${filtering-local-status}




org.apache.maven.plugins
maven-resources-plugin
2.4.1

UTF-8

   




The local.properties file contains :

toto=tata

The toto.txt file contains :

${toto}


So now if I launch a mvn clean compile i get in /target/classes/toto.txt :

${toto}

:confused:

BUT if I change  ${filtering-local-status} for
true in the pom.xml i get   in
/target/classes/toto.txt :

tata
:clap:

Therefore i'm pretty confused whether or not it is possible to use a
property to conditionally launch a filtering resource task.

Thanx in advance

Manu 




-- 
View this message in context: 
http://old.nabble.com/-Maven_2.1.0-maven-resources_2.4.1--filtering-tag-and-property-tp26268107p26268107.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Maven Archetype: run script after creation

2009-11-09 Thread Gajo Csaba
I'm familiar with that plugin, but what I'm asking is completely 
different. I want to create an archetype, and when I create a new 
project based on that archetype, the archetype should invoke an external 
script.


So the archetype would create the basic directory structure and files, 
and when it's all done, a Perl script is executed to do some more work...




Jamie Whitehouse wrote:

You may want to look at the exec-maven-plugin which can execute programs
outside of Maven:
http://mojo.codehaus.org/exec-maven-plugin/ 


-Original Message-
From: Gajo Csaba [mailto:csaba.g...@cosylab.com] 
Sent: Monday, November 09, 2009 5:13 AM

To: Maven Users List
Subject: Maven Archetype: run script after creation

Hello,

I would like to create an archetype with a default directory structure. 
After the directories are created, I'd like the archetype to execute a

Perl script. How can I do this?

Thanks, Csaba




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



---
CONFIDENTIALITY NOTICE: This e-mail and any files attached may contain 
confidential and proprietary information of Alcatel-Lucent and/or its 
affiliated entities. Access by the intended recipient only is authorized. Any 
liability arising from any party acting, or refraining from acting, on any 
information contained in this e-mail is hereby excluded. If you are not the 
intended recipient, please notify the sender immediately, destroy the original 
transmission and its attachments and do not disclose the contents to any other 
person, use it for any purpose, or store or copy the information in any medium. 
Copyright in this e-mail and any attachments belongs to Alcatel-Lucent and/or 
its affiliated entities.


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

  



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



RE: Maven Archetype: run script after creation

2009-11-09 Thread Jamie Whitehouse
You may want to look at the exec-maven-plugin which can execute programs
outside of Maven:
http://mojo.codehaus.org/exec-maven-plugin/ 

-Original Message-
From: Gajo Csaba [mailto:csaba.g...@cosylab.com] 
Sent: Monday, November 09, 2009 5:13 AM
To: Maven Users List
Subject: Maven Archetype: run script after creation

Hello,

I would like to create an archetype with a default directory structure. 
After the directories are created, I'd like the archetype to execute a
Perl script. How can I do this?

Thanks, Csaba




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



---
CONFIDENTIALITY NOTICE: This e-mail and any files attached may contain 
confidential and proprietary information of Alcatel-Lucent and/or its 
affiliated entities. Access by the intended recipient only is authorized. Any 
liability arising from any party acting, or refraining from acting, on any 
information contained in this e-mail is hereby excluded. If you are not the 
intended recipient, please notify the sender immediately, destroy the original 
transmission and its attachments and do not disclose the contents to any other 
person, use it for any purpose, or store or copy the information in any medium. 
Copyright in this e-mail and any attachments belongs to Alcatel-Lucent and/or 
its affiliated entities.


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



[ANN] JBoss Maven Plugin 1.4 Released

2009-11-09 Thread Paul Gier

The Mojo team is pleased to announce the release of the JBoss Maven Plugin
version 1.4.

http://mojo.codehaus.org/jboss-maven-plugin/

Some notable features in this release include improvements to the start-and-wait 
mojo and general improvements to the plugin configuration.  The plugin site has 
also been improved and now provides more docs and examples.


To get this update, simply specify the version in your project's plugin
configuration:

 
   org.codehaus.mojo
   jboss-maven-plugin
   1.4
 

A comprehensive list of changes is attached at the end of this mail.

Regards,

The Mojo team.


Release Notes - Maven 2.x JBoss Plugin - Version 1.4.0


** Bug
* [MJBOSS-23] - jboss:undeploy causes NPE
* [MJBOSS-30] - NullPointerException in UndeployMojo

** Improvement
* [MJBOSS-24] - JBoss plugin should be able to read JBOSS_HOME when using 
JDK < 1.5

* [MJBOSS-25] - Refactor to follow Maven code formatting conventions.
* [MJBOSS-26] - Should be able to override the parameters for the 
startAndWait mojo from the command line.

* [MJBOSS-28] - harddeploy should skip unconfigured POMs without failing
* [MJBOSS-31] - Fix deprecation warnings about using components.
* [MJBOSS-32] - Improve parameter configuration
* [MJBOSS-33] - Improve site documentation
* [MJBOSS-34] - Add a wait period between retries of the JMX Connection 
when using startAndWaitGoal

* [MJBOSS-35] - startAndWait mojo needs a security manager
* [MJBOSS-36] - Mojo goal names should follow standard Maven naming format.

** New Feature
* [MJBOSS-29] - Add exploded deployment support






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



Re: How do I get multiproject:install to run jar:install in sub-directories?

2009-11-09 Thread laredotornado

Thanks but I have sadly not yet joined the real world of Maven 2.  I'm using
maven 1.1.  Given this, any ideas about my questions?

 - Dave



Dan Tran wrote:
> 
> by default maven2 runs in reactor mode ( equivalent of maven 1 multi
> project )
> 
> so what you are looking for is
> 
> mvn deploy -DskipTests=true
> 
> which will traverse to all projects and exececute maven 2 lifecycle
> upto deploy phase
> 
> you may want to fetch a maven 2 projects ( apache, codehaus, etc ) and
> play with
> 
> for example ( http://svn.apache.org/repos/asf/maven/surefire/trunk )
> 
> good luck
> 
> -Dan
> 
> On Fri, Nov 6, 2009 at 2:41 PM, laredotornado 
> wrote:
>>
>> Hi,
>>
>> I'm using Maven 1.1.  I have model and service directories within my
>> project.  How do I configure maven so that when I run "maven
>> multiproject:install" from the top level, it will run jar:install from
>> within each of those two directories?  Here is what I have in my top
>> level
>> project folder for project.properties
>>
>> maven.test.skip=true
>> maven.scm.bootstrap.goals=multiproject:deploy
>>
>> Thanks for any advice, - Dave
>> --
>> View this message in context:
>> http://old.nabble.com/How-do-I-get-multiproject%3Ainstall-to-run-jar%3Ainstall-in-sub-directories--tp26230913p26230913.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/How-do-I-get-multiproject%3Ainstall-to-run-jar%3Ainstall-in-sub-directories--tp26230913p26267247.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Maven archetypes and Velocity

2009-11-09 Thread Gajo Csaba
Looks like I'm doing something very wrong, cause I followed that 
tutorial and it still won't work.

In class com.cosylab.App.java I defined this:

String name = ${xxx};

note that I've also tried doing it like this:

String name = $xxx;

So it's just a simple project. I've created an archetype.properties 
file, which defines


xxx=my specific value

and after that ran mvn archetype-create-from-project, went to 
target/generated-sources/archetype, installed the generated archetype, 
created a new project with it, and still, it remains

String name = ${xxx};
The xxx was not replaced by "my specific value"

So what am I doing wrong?

This is the source code if you're interested, but basically it's just an 
application generated from the quickstart archetype:

http://users.cosylab.com/~cgajo/archt.zip

Thanks, Csaba


Adam Leggett (UPCO) wrote:

I think to define custom filtered properties you need to create an
archetype.properties file:

http://maven.apache.org/plugins/maven-archetype-plugin/examples/create-with-property-file.html

Thanks,

Adam

On Mon, 2009-11-09 at 14:21 +0100, Gajo Csaba wrote:
  

Hello,

I have a very simple question regarding archetypes. I've created my own 
basic archetype, and in archetype-resources/src/main/java/App.java I 
wrote the following:


package $xxx

Installed the archetype, created a new project with it and also added 
the -Dxxx=abc parameter... and it remained $xxx. I was expecting $xxx to 
be replaced with abc. Is this not how it's supposed to work?


Thanks, Csaba




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





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

  



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



Re: Maven archetypes and Velocity

2009-11-09 Thread Adam Leggett (UPCO)
I think to define custom filtered properties you need to create an
archetype.properties file:

http://maven.apache.org/plugins/maven-archetype-plugin/examples/create-with-property-file.html

Thanks,

Adam

On Mon, 2009-11-09 at 14:21 +0100, Gajo Csaba wrote:
> Hello,
> 
> I have a very simple question regarding archetypes. I've created my own 
> basic archetype, and in archetype-resources/src/main/java/App.java I 
> wrote the following:
> 
> package $xxx
> 
> Installed the archetype, created a new project with it and also added 
> the -Dxxx=abc parameter... and it remained $xxx. I was expecting $xxx to 
> be replaced with abc. Is this not how it's supposed to work?
> 
> Thanks, Csaba
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 


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



RE: Specific goal gonfiguration in maven does not work

2009-11-09 Thread Ludwig Magnusson
Orthogonal? You mean that the all have different parameters?
Well I'm using the torque plugin and sad to say that is not the case.
Example: the parameter outputDir exists for several goals even though the
output is not the same at all for the different goals.

I don't think that maven is like ant. I have never used it myself (other
than running tasks someone else has written).

But the answer to the main question is no? If the parameters have the same
name, I can't have different values for different goals?

/Ludwig

-Original Message-
From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] 
Sent: den 9 november 2009 14:17
To: Maven Users List
Subject: Re: Specific goal gonfiguration in maven does not work

2009/11/9 Ludwig Magnusson :
> A new question on this subject.
> If I have several goals for the same plugin that I want special
> configuration for and all are run from the command line, not part of any
> phase. Is that possible?

only if the configuration requirements of each goal are orthogonal...

It sounds like you are thinking that Maven is like ANT.  Maven is not
ANT, drink the KoolAid, it's quite tasty! Bind to the lifecycle
invoking goals directly from the cli is usually not what you want to
do

> Maven complains when I define 2 executions with default-cli since
> two executions can't have the same id.
> /Ludwig
>
> -Original Message-
> From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
> Sent: den 9 november 2009 11:45
> To: Maven Users List
> Subject: Re: Specific goal gonfiguration in maven does not work
>
> 2009/11/9 Ludwig Magnusson :
>> Hi!
>>
>> I am using the torque plugin for maven and  I am trying to set
> goal-specific
>> configurations but when I run the goal. Maven can't find the parameters.
>>
>>
>>
>> When I do a "global" configuration, everything works. Like this:
>>
>>
>>
>> 
>>
>>  org.apache.torque
>>
>>  torque-maven-plugin
>>
>>  4.0-alpha1-SNAPSHOT
>>
>>  
>>
>>    //my configuration
>>
>>  
>>
>> 
>>
>
> The above applies to all executions
>
>>
>>
>> But when I do a goal specific configuration the parameters aren't found.
>> Like this:
>>
>>
>>
>> 
>>
>>  org.apache.torque
>>
>>  torque-maven-plugin
>>
>>  4.0-alpha1-SNAPSHOT
>>
>>  
>>
>>    
>>
>>      my-id
>>
>>      
>>
>>        om
>>
>>      
>>
>>      
>>
>>        //my configuration
>>
>>      
>>
>>    
>>
>>  
>>
>> 
>>
>>
>
> the above binds an execution of om to the lifecycle at the phase
> specified in the @phase annotation on your mojo (which could be
> overridden by an ___ in your execution.
>
> The configuration only applies to this execution.
>
> If you have not got either a @phase on your mojo or a  in your
> execution, then maven will not complain and just never execute this
> goal as part of any lifecycle
>
>>
>> In both cases I run mvn torque:om from the command line.
>>
>
> that is execution directly from the CLI, not as part of the lifecycle,
> so will not be picked up
>
> in maven 2.2.1, there is an execution id assigned to cli invocation of
> IIRC default-cli, and this would achieve what you are after
>
>> I'm not really sure about the id-parameter. I have read the documentation
>> but I'm not sure I get it.
>>
>> /Ludwig
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

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


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



Maven archetypes and Velocity

2009-11-09 Thread Gajo Csaba

Hello,

I have a very simple question regarding archetypes. I've created my own 
basic archetype, and in archetype-resources/src/main/java/App.java I 
wrote the following:


package $xxx

Installed the archetype, created a new project with it and also added 
the -Dxxx=abc parameter... and it remained $xxx. I was expecting $xxx to 
be replaced with abc. Is this not how it's supposed to work?


Thanks, Csaba




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



Re: adding jdbc for ms-sql as dependency from maven

2009-11-09 Thread Stephen Connolly
mvn install:install-file
or
mvn deploy:deploy-file (if you have a repository manager, and you should)

are the correct ways to do this

systemPath is deprecated

2009/11/9 eyal edri :
> Hi,
>
> anyone knows if the jdbc driver is available via maven repository? and
> what's its groupid?
>
> I downloaded the sqljdbc4.jar from Microsoft and set a 'system' dependency,
> is that the only way to do it?
>
>  
>      com.microsoft.sqlserver.jdbc
>      sqljdbc
>      2.0
>      system
>      /usr/java/sqljdbc_2.0/enu/sqljdbc4.jar
>    
>
>
> --
> Eyal Edri
>

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



Re: Exception in thread "main" java.lang.NoClassDefFoundError

2009-11-09 Thread lekkie

Thanks.

That resolved the JDK problem.

I'll post my other questions on the m2eclipse forum.



Anders Hammar wrote:
> 
> This is a question for the m2eclipse user list. But, you need to run
> Eclipse
> with a JDK, not a JRE. You're doing that wrong. What you need to do is
> explained here:
> http://www.jguru.com/forums/view.jsp?EID=1367369
> 
> /Anders
> 
> On Mon, Nov 9, 2009 at 12:49, lekkie  wrote:
> 
>>
>> Hi,
>>
>> I have Eclipse ganymede installed and I downloaded m2eclipse plugin to
>> enable eclipse manage eclipse projects.
>>
>> The download was successfully but I can install projects. It kept saying
>> this:
>>
>> constituent12:
>>
>> file:/C:/Program%20Files/Eclipse/Eclipse%203.4/plugins/org.maven.ide.components.maven_embedder_3.0.0.SNAPSHOT-r811512/jars/plexus-cipher-1.4.jar
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/codehaus/plexus/util/FileUtils
>> at
>>
>> org.apache.cxf.maven_plugin.WsdlOptionLoader.getWsdlFiles(WsdlOptionLoader.java:82)
>> at
>> org.apache.cxf.maven_plugin.WsdlOptionLoader.load(WsdlOptionLoader.java:72)
>> at
>>
>> org.apache.cxf.maven_plugin.WSDL2JavaMojo.getWsdlOptionsFromDir(WSDL2JavaMojo.java:125)
>> at
>> org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:188)
>> at
>>
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:103)
>> at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:477)
>> at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:314)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:199)
>> at
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:460)
>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:334)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:70)
>> 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:597)
>> at
>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>> at
>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>> Caused by: java.lang.ClassNotFoundException:
>> org.codehaus.plexus.util.FileUtils
>> at
>>
>> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
>> at
>>
>> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:215)
>> at
>>
>> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:201)
>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>> ... 19 more
>>
>> I can authoritatively confirm toyou the class in present in that path and
>> that the said file is also present in the jar file.
>>
>> Firstly:
>> It kept saying "Eclipse is running in a JRE, but a JDK is required. Some
>> Maven plugins may not work when importing projects or updating source
>> folders." even though I have changed the settings in
>> "Windows->preferences->java->Installed JRE" to a jdk path.
>>
>> It also complains of "Settings file doesn't exist. Returning null.". I
>> have
>> no settings.xml in my local repository. How to I setup the file, what is
>> the
>> content, I seriously doubt that is the cause of the error.
>>
>> At some point during start up, it comes with this error:
>>
>> \xalan\xalan\2.7.1\xalan-2.7.1.pom error in opening zip file
>>
>> Any suggestion will be appreciated.
>>
>> kr,
>>
>> Lekkie.
>>
>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Exception-in-thread-%22main%22-java.lang.NoClassDefFoundError-tp26265069p26265069.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Exception-in-thread-%22main%22-java.lang.NoClassDefFoundError-tp26265069p26266272.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: m2eclipse

2009-11-09 Thread Fabricio Lemos

I´m having this same problem while subscribing do m2eclipse mailing list.

maven apache wrote:

2009/11/7 Brian Fox 

  

On Fri, Nov 6, 2009 at 3:48 AM, maven apache 
wrote:


2009/11/6 Olivier Lamy 

  

BTW you can use m2e user ml

Have a look here :


http://m2eclipse.sonatype.org/project-information.html


I have tried, but I can not subscrib to the maillist.

  

Why not?



I send subscribe message to "user-subscr...@m2eclipse.sonatype.org",soon I
got the information:
--
Delivery to the following recipient failed permanently:

user-subscr...@m2eclipse.sonatype.org

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient
domain. We recommend contacting the other email provider for further
information about the cause of this error. The error that the other server
returned was: 553 553 sorry, that domain isn't in my list of allowed
rcpthosts (#5.5.3 - chkuser) (state 14).

- Original message -
---

  

Thanks,
--
Olivier

2009/11/6 Antonio Petrelli :


2009/11/6 maven apache :
  

Thanks,I have install other plugins such as POM XML Editor 0.9.8,can


I


retain them and intall the POM Editor 0.9.9 only?


I don't think so.

  

If can not do this, how to unintended cleanly the installed maven


plugins?


They should be updated as long as you put the repository in your
  

Eclipse.


Anyway, if it does not work, to uninstall you should go to:
Help - About - Installation Details - Installed Software (tab)

Ciao
Antonio

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


  


--
Olivier

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




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





  


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



Re: Specific goal gonfiguration in maven does not work

2009-11-09 Thread Stephen Connolly
2009/11/9 Ludwig Magnusson :
> A new question on this subject.
> If I have several goals for the same plugin that I want special
> configuration for and all are run from the command line, not part of any
> phase. Is that possible?

only if the configuration requirements of each goal are orthogonal...

It sounds like you are thinking that Maven is like ANT.  Maven is not
ANT, drink the KoolAid, it's quite tasty! Bind to the lifecycle
invoking goals directly from the cli is usually not what you want to
do

> Maven complains when I define 2 executions with default-cli since
> two executions can't have the same id.
> /Ludwig
>
> -Original Message-
> From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
> Sent: den 9 november 2009 11:45
> To: Maven Users List
> Subject: Re: Specific goal gonfiguration in maven does not work
>
> 2009/11/9 Ludwig Magnusson :
>> Hi!
>>
>> I am using the torque plugin for maven and  I am trying to set
> goal-specific
>> configurations but when I run the goal. Maven can't find the parameters.
>>
>>
>>
>> When I do a "global" configuration, everything works. Like this:
>>
>>
>>
>> 
>>
>>  org.apache.torque
>>
>>  torque-maven-plugin
>>
>>  4.0-alpha1-SNAPSHOT
>>
>>  
>>
>>    //my configuration
>>
>>  
>>
>> 
>>
>
> The above applies to all executions
>
>>
>>
>> But when I do a goal specific configuration the parameters aren't found.
>> Like this:
>>
>>
>>
>> 
>>
>>  org.apache.torque
>>
>>  torque-maven-plugin
>>
>>  4.0-alpha1-SNAPSHOT
>>
>>  
>>
>>    
>>
>>      my-id
>>
>>      
>>
>>        om
>>
>>      
>>
>>      
>>
>>        //my configuration
>>
>>      
>>
>>    
>>
>>  
>>
>> 
>>
>>
>
> the above binds an execution of om to the lifecycle at the phase
> specified in the @phase annotation on your mojo (which could be
> overridden by an ___ in your execution.
>
> The configuration only applies to this execution.
>
> If you have not got either a @phase on your mojo or a  in your
> execution, then maven will not complain and just never execute this
> goal as part of any lifecycle
>
>>
>> In both cases I run mvn torque:om from the command line.
>>
>
> that is execution directly from the CLI, not as part of the lifecycle,
> so will not be picked up
>
> in maven 2.2.1, there is an execution id assigned to cli invocation of
> IIRC default-cli, and this would achieve what you are after
>
>> I'm not really sure about the id-parameter. I have read the documentation
>> but I'm not sure I get it.
>>
>> /Ludwig
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

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



adding jdbc for ms-sql as dependency from maven

2009-11-09 Thread eyal edri
Hi,

anyone knows if the jdbc driver is available via maven repository? and
what's its groupid?

I downloaded the sqljdbc4.jar from Microsoft and set a 'system' dependency,
is that the only way to do it?

 
  com.microsoft.sqlserver.jdbc
  sqljdbc
  2.0
  system
  /usr/java/sqljdbc_2.0/enu/sqljdbc4.jar



-- 
Eyal Edri


RE: Specific goal gonfiguration in maven does not work

2009-11-09 Thread Ludwig Magnusson
A new question on this subject.
If I have several goals for the same plugin that I want special
configuration for and all are run from the command line, not part of any
phase. Is that possible?
Maven complains when I define 2 executions with default-cli since
two executions can't have the same id.
/Ludwig

-Original Message-
From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] 
Sent: den 9 november 2009 11:45
To: Maven Users List
Subject: Re: Specific goal gonfiguration in maven does not work

2009/11/9 Ludwig Magnusson :
> Hi!
>
> I am using the torque plugin for maven and  I am trying to set
goal-specific
> configurations but when I run the goal. Maven can't find the parameters.
>
>
>
> When I do a "global" configuration, everything works. Like this:
>
>
>
> 
>
>  org.apache.torque
>
>  torque-maven-plugin
>
>  4.0-alpha1-SNAPSHOT
>
>  
>
>    //my configuration
>
>  
>
> 
>

The above applies to all executions

>
>
> But when I do a goal specific configuration the parameters aren't found.
> Like this:
>
>
>
> 
>
>  org.apache.torque
>
>  torque-maven-plugin
>
>  4.0-alpha1-SNAPSHOT
>
>  
>
>    
>
>      my-id
>
>      
>
>        om
>
>      
>
>      
>
>        //my configuration
>
>      
>
>    
>
>  
>
> 
>
>

the above binds an execution of om to the lifecycle at the phase
specified in the @phase annotation on your mojo (which could be
overridden by an ___ in your execution.

The configuration only applies to this execution.

If you have not got either a @phase on your mojo or a  in your
execution, then maven will not complain and just never execute this
goal as part of any lifecycle

>
> In both cases I run mvn torque:om from the command line.
>

that is execution directly from the CLI, not as part of the lifecycle,
so will not be picked up

in maven 2.2.1, there is an execution id assigned to cli invocation of
IIRC default-cli, and this would achieve what you are after

> I'm not really sure about the id-parameter. I have read the documentation
> but I'm not sure I get it.
>
> /Ludwig
>
>

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


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



Problem with permissions after archive created

2009-11-09 Thread James Kavanagh
Hi there,

Post build, I'm building a zip file using the assembly plugin and for some 
reason when the archive is unzipped on the target machine all directories have 
777 permissions i.e. drwxrwxrwx.
This only happens on our production build server, on our dev CI server the 
archive is produced correctly i.e. 755 permissions on directories.

For reference the assembly file looks like this:


target-packaged

zip

false



*:core-env


env
false
true




*:data-bridge


target
false
true




*:web-ui


web
false
true





As you can see the assembly unpacks some existing archive dependencies (part of 
a module set) and re-zips them. After examining those dependent files their 
directory permissions are correct i.e. 755 as opposed to 777.

Has anyone seen this problem before and if so is there an easy resolution to it?

Java Version : 1.6.0_06
Maven Version: 2.1.0 (r755702; 2009-03-18 19:10:27+)
OS: "linux" version: "2.6.9-11.elsmp" arch: "i386" Family: "unix"

Cheers,
James




In order to protect our email recipients, Betfair Group use SkyScan from 
MessageLabs to scan all Incoming and Outgoing mail for viruses.



Re: Exception in thread "main" java.lang.NoClassDefFoundError

2009-11-09 Thread Anders Hammar
This is a question for the m2eclipse user list. But, you need to run Eclipse
with a JDK, not a JRE. You're doing that wrong. What you need to do is
explained here:
http://www.jguru.com/forums/view.jsp?EID=1367369

/Anders

On Mon, Nov 9, 2009 at 12:49, lekkie  wrote:

>
> Hi,
>
> I have Eclipse ganymede installed and I downloaded m2eclipse plugin to
> enable eclipse manage eclipse projects.
>
> The download was successfully but I can install projects. It kept saying
> this:
>
> constituent12:
>
> file:/C:/Program%20Files/Eclipse/Eclipse%203.4/plugins/org.maven.ide.components.maven_embedder_3.0.0.SNAPSHOT-r811512/jars/plexus-cipher-1.4.jar
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/codehaus/plexus/util/FileUtils
> at
>
> org.apache.cxf.maven_plugin.WsdlOptionLoader.getWsdlFiles(WsdlOptionLoader.java:82)
> at
> org.apache.cxf.maven_plugin.WsdlOptionLoader.load(WsdlOptionLoader.java:72)
> at
>
> org.apache.cxf.maven_plugin.WSDL2JavaMojo.getWsdlOptionsFromDir(WSDL2JavaMojo.java:125)
> at
> org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:188)
> at
>
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:103)
> at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:477)
> at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:314)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:199)
> at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:460)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:334)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:70)
> 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:597)
> at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: java.lang.ClassNotFoundException:
> org.codehaus.plexus.util.FileUtils
> at
>
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
> at
>
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:215)
> at
>
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:201)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> ... 19 more
>
> I can authoritatively confirm toyou the class in present in that path and
> that the said file is also present in the jar file.
>
> Firstly:
> It kept saying "Eclipse is running in a JRE, but a JDK is required. Some
> Maven plugins may not work when importing projects or updating source
> folders." even though I have changed the settings in
> "Windows->preferences->java->Installed JRE" to a jdk path.
>
> It also complains of "Settings file doesn't exist. Returning null.". I have
> no settings.xml in my local repository. How to I setup the file, what is
> the
> content, I seriously doubt that is the cause of the error.
>
> At some point during start up, it comes with this error:
>
> \xalan\xalan\2.7.1\xalan-2.7.1.pom error in opening zip file
>
> Any suggestion will be appreciated.
>
> kr,
>
> Lekkie.
>
>
>
> --
> View this message in context:
> http://old.nabble.com/Exception-in-thread-%22main%22-java.lang.NoClassDefFoundError-tp26265069p26265069.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Exception in thread "main" java.lang.NoClassDefFoundError

2009-11-09 Thread lekkie

Hi,

I have Eclipse ganymede installed and I downloaded m2eclipse plugin to
enable eclipse manage eclipse projects.

The download was successfully but I can install projects. It kept saying
this:

constituent12:
file:/C:/Program%20Files/Eclipse/Eclipse%203.4/plugins/org.maven.ide.components.maven_embedder_3.0.0.SNAPSHOT-r811512/jars/plexus-cipher-1.4.jar
 
Exception in thread "main" java.lang.NoClassDefFoundError:
org/codehaus/plexus/util/FileUtils
at
org.apache.cxf.maven_plugin.WsdlOptionLoader.getWsdlFiles(WsdlOptionLoader.java:82)
at
org.apache.cxf.maven_plugin.WsdlOptionLoader.load(WsdlOptionLoader.java:72)
at
org.apache.cxf.maven_plugin.WSDL2JavaMojo.getWsdlOptionsFromDir(WSDL2JavaMojo.java:125)
at org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:188)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:103)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:477)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:314)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:199)
at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:460)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:334)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:70)
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:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.ClassNotFoundException:
org.codehaus.plexus.util.FileUtils
at
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:215)
at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:201)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 19 more

I can authoritatively confirm toyou the class in present in that path and
that the said file is also present in the jar file.

Firstly:
It kept saying "Eclipse is running in a JRE, but a JDK is required. Some
Maven plugins may not work when importing projects or updating source
folders." even though I have changed the settings in
"Windows->preferences->java->Installed JRE" to a jdk path.

It also complains of "Settings file doesn't exist. Returning null.". I have
no settings.xml in my local repository. How to I setup the file, what is the
content, I seriously doubt that is the cause of the error.

At some point during start up, it comes with this error:

\xalan\xalan\2.7.1\xalan-2.7.1.pom error in opening zip file

Any suggestion will be appreciated.

kr,

Lekkie.



-- 
View this message in context: 
http://old.nabble.com/Exception-in-thread-%22main%22-java.lang.NoClassDefFoundError-tp26265069p26265069.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Specific goal gonfiguration in maven does not work

2009-11-09 Thread Ludwig Magnusson
Thank you very much.

-Original Message-
From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] 
Sent: den 9 november 2009 11:45
To: Maven Users List
Subject: Re: Specific goal gonfiguration in maven does not work

2009/11/9 Ludwig Magnusson :
> Hi!
>
> I am using the torque plugin for maven and  I am trying to set
goal-specific
> configurations but when I run the goal. Maven can't find the parameters.
>
>
>
> When I do a "global" configuration, everything works. Like this:
>
>
>
> 
>
>  org.apache.torque
>
>  torque-maven-plugin
>
>  4.0-alpha1-SNAPSHOT
>
>  
>
>    //my configuration
>
>  
>
> 
>

The above applies to all executions

>
>
> But when I do a goal specific configuration the parameters aren't found.
> Like this:
>
>
>
> 
>
>  org.apache.torque
>
>  torque-maven-plugin
>
>  4.0-alpha1-SNAPSHOT
>
>  
>
>    
>
>      my-id
>
>      
>
>        om
>
>      
>
>      
>
>        //my configuration
>
>      
>
>    
>
>  
>
> 
>
>

the above binds an execution of om to the lifecycle at the phase
specified in the @phase annotation on your mojo (which could be
overridden by an ___ in your execution.

The configuration only applies to this execution.

If you have not got either a @phase on your mojo or a  in your
execution, then maven will not complain and just never execute this
goal as part of any lifecycle

>
> In both cases I run mvn torque:om from the command line.
>

that is execution directly from the CLI, not as part of the lifecycle,
so will not be picked up

in maven 2.2.1, there is an execution id assigned to cli invocation of
IIRC default-cli, and this would achieve what you are after

> I'm not really sure about the id-parameter. I have read the documentation
> but I'm not sure I get it.
>
> /Ludwig
>
>

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


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



Re: Specific goal gonfiguration in maven does not work

2009-11-09 Thread Stephen Connolly
2009/11/9 Ludwig Magnusson :
> Hi!
>
> I am using the torque plugin for maven and  I am trying to set goal-specific
> configurations but when I run the goal. Maven can't find the parameters.
>
>
>
> When I do a "global" configuration, everything works. Like this:
>
>
>
> 
>
>  org.apache.torque
>
>  torque-maven-plugin
>
>  4.0-alpha1-SNAPSHOT
>
>  
>
>    //my configuration
>
>  
>
> 
>

The above applies to all executions

>
>
> But when I do a goal specific configuration the parameters aren't found.
> Like this:
>
>
>
> 
>
>  org.apache.torque
>
>  torque-maven-plugin
>
>  4.0-alpha1-SNAPSHOT
>
>  
>
>    
>
>      my-id
>
>      
>
>        om
>
>      
>
>      
>
>        //my configuration
>
>      
>
>    
>
>  
>
> 
>
>

the above binds an execution of om to the lifecycle at the phase
specified in the @phase annotation on your mojo (which could be
overridden by an ___ in your execution.

The configuration only applies to this execution.

If you have not got either a @phase on your mojo or a  in your
execution, then maven will not complain and just never execute this
goal as part of any lifecycle

>
> In both cases I run mvn torque:om from the command line.
>

that is execution directly from the CLI, not as part of the lifecycle,
so will not be picked up

in maven 2.2.1, there is an execution id assigned to cli invocation of
IIRC default-cli, and this would achieve what you are after

> I'm not really sure about the id-parameter. I have read the documentation
> but I'm not sure I get it.
>
> /Ludwig
>
>

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



Maven Archetype: run script after creation

2009-11-09 Thread Gajo Csaba

Hello,

I would like to create an archetype with a default directory structure. 
After the directories are created, I'd like the archetype to execute a 
Perl script. How can I do this?


Thanks, Csaba




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



Re: Specific goal gonfiguration in maven does not work

2009-11-09 Thread Anders Hammar
The id param could be anything. It's just your name/id of the binding.

/Anders

On Mon, Nov 9, 2009 at 10:41, Ludwig Magnusson wrote:

> Hi!
>
> I am using the torque plugin for maven and  I am trying to set
> goal-specific
> configurations but when I run the goal. Maven can't find the parameters.
>
>
>
> When I do a "global" configuration, everything works. Like this:
>
>
>
> 
>
>  org.apache.torque
>
>  torque-maven-plugin
>
>  4.0-alpha1-SNAPSHOT
>
>  
>
>//my configuration
>
>  
>
> 
>
>
>
> But when I do a goal specific configuration the parameters aren't found.
> Like this:
>
>
>
> 
>
>  org.apache.torque
>
>  torque-maven-plugin
>
>  4.0-alpha1-SNAPSHOT
>
>  
>
>
>
>  my-id
>
>  
>
>om
>
>  
>
>  
>
>//my configuration
>
>  
>
>
>
>  
>
> 
>
>
>
> In both cases I run mvn torque:om from the command line.
>
> I'm not really sure about the id-parameter. I have read the documentation
> but I'm not sure I get it.
>
> /Ludwig
>
>


Re: problem of dependency jar

2009-11-09 Thread Anders Hammar
On Mon, Nov 9, 2009 at 06:42, maven apache  wrote:

> >
> > Add a dependency to that and it will end up in the lib folder. Create
> > that extra jar artifact with a classifier in the Sa project.
> >
> If so I will have to jars under the  lib,and this two jars own some same
> classes, maybe conflict?
>

You would then only have a dependency to the jar containing the required
classes. Not both jars.


>
> for the classes: use the unpack goal of the dependency plugin. Define the
> > classes you want through the include param.
>
> Which plugin? jar plugin?
>
>
As I wrote, the dependency plugin:
http://maven.apache.org/plugins/maven-dependency-plugin/

/Anders


Specific goal gonfiguration in maven does not work

2009-11-09 Thread Ludwig Magnusson
Hi!

I am using the torque plugin for maven and  I am trying to set goal-specific
configurations but when I run the goal. Maven can't find the parameters.

 

When I do a "global" configuration, everything works. Like this:

 



  org.apache.torque

  torque-maven-plugin

  4.0-alpha1-SNAPSHOT

  

//my configuration

  



 

But when I do a goal specific configuration the parameters aren't found.
Like this:

 



  org.apache.torque

  torque-maven-plugin

  4.0-alpha1-SNAPSHOT

  



  my-id 

  

om

  

  

//my configuration

  



  



 

In both cases I run mvn torque:om from the command line.

I'm not really sure about the id-parameter. I have read the documentation
but I'm not sure I get it.

/Ludwig



Re: deploy rpm to rpm repository using maven + mojo rpm plugin

2009-11-09 Thread Stephen Connolly
And that snippet is all I can copy and paste under OS license ;-)

2009/11/9 Stephen Connolly :
> In case you hadn't guessed, I have code for similar ... though it's
> not deploying rpms to an rpm repository, rather deploying a custom
> deployable to a propriatory server ;-)
>
> 2009/11/9 Dan Tran :
>> Stephen, i just typed faster then you in 2 seconds :-)
>>
>> On Mon, Nov 9, 2009 at 12:59 AM, Stephen Connolly
>>  wrote:
>>> It is not that difficult to write your own maven plugin to achieve this.
>>>
>>> You'll probably want to depend on JSch.
>>>
>>> File transfer via SCP/SFTP is easy with JSch, and then you can execute
>>> the "make" command to re-index the repository... although you probably
>>> would prefer to skip the "make" and instead invoke "createrepo"
>>> directly...
>>>
>>> -Stephen
>>>
>>> P.S.
>>> You'll probably need something like the following dependencies:
>>>    
>>>      org.apache.maven
>>>      maven-project
>>>      2.0.6
>>>    
>>>
>>>    
>>>      org.apache.maven
>>>      maven-plugin-api
>>>      2.0.6
>>>    
>>>
>>>    
>>>      org.codehaus.plexus
>>>      plexus-utils
>>>      1.5.1
>>>    
>>>
>>>    
>>>      com.jcraft
>>>      jsch
>>>      0.1.42
>>>    
>>>
>>> As well as these two functions (or equivalent):
>>>
>>>    /*
>>>     * Licensed to the Apache Software Foundation (ASF) under one
>>>     * or more contributor license agreements.  See the NOTICE file
>>>     * distributed with this work for additional information
>>>     * regarding copyright ownership.  The ASF licenses this file
>>>     * to you under the Apache License, Version 2.0 (the
>>>     * "License"); you may not use this file except in compliance
>>>     * with the License.  You may obtain a copy of the License at
>>>     *
>>>     *     http://www.apache.org/licenses/LICENSE-2.0
>>>     *
>>>     * Unless required by applicable law or agreed to in writing,
>>>     * software distributed under the License is distributed on an
>>>     * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
>>>     * KIND, either express or implied.  See the License for the
>>>     * specific language governing permissions and limitations
>>>     * under the License.
>>>     */
>>>    import com.jcraft.jsch.ChannelExec;
>>>    import com.jcraft.jsch.ChannelSftp;
>>>    import com.jcraft.jsch.JSchException;
>>>    import com.jcraft.jsch.Session;
>>>    import com.jcraft.jsch.SftpException;
>>>    import org.apache.maven.plugin.logging.Log;
>>>    import org.codehaus.plexus.util.IOUtil;
>>>    import org.codehaus.plexus.util.StringUtils;
>>>
>>>    public static void put( Session session, File source, String
>>> destination, int mode, final Log log )
>>>        throws JSchException, SftpException
>>>    {
>>>        ChannelSftp channel = null;
>>>        try
>>>        {
>>>            channel = (ChannelSftp) session.openChannel( "sftp" );
>>>            channel.connect();
>>>            log.info( "Uploading " + source + " to sftp://"; +
>>> session.getUserName() + "@" + session.getHost() + ":"
>>>                + session.getPort() + destination );
>>>            channel.put( source.getAbsolutePath(), destination, mode );
>>>            channel.quit();
>>>        }
>>>        finally
>>>        {
>>>            if ( channel != null )
>>>            {
>>>                channel.disconnect();
>>>            }
>>>        }
>>>    }
>>>
>>>    public static void createrepo( Session session, String workingDir )
>>>        throws JSchException, IOException, InterruptedException
>>>    {
>>>        GobblingInputStream stdout = null;
>>>        GobblingInputStream stderr = null;
>>>        ChannelExec channel = null;
>>>        try
>>>        {
>>>            channel = (ChannelExec) session.openChannel( "exec" );
>>>            channel.setCommand( "ch " + workingDir + " && createrepo" );
>>>            stdout = new GobblingInputStream( channel.getInputStream() );
>>>            stderr = new GobblingInputStream( channel.getErrStream() );
>>>            channel.setInputStream( null );
>>>            channel.connect();
>>>            stdout.awaitClosed();
>>>            stderr.awaitClosed();
>>>            while ( !channel.isClosed() )
>>>            {
>>>                Thread.sleep( 50 );
>>>            }
>>>            if ( channel.getExitStatus() != 0 )
>>>            {
>>>                throw new IOException(
>>>                    "Could not update yum repository
>>> metadata\nSTDOUT:\n" + IOUtil.toString( stdout ) + "\nSTDERR:\n"
>>>                        + IOUtil.toString( stderr ) + "\nEXIT-CODE:" +
>>> channel.getExitStatus() );
>>>            }
>>>        }
>>>        finally
>>>        {
>>>            if ( channel != null )
>>>            {
>>>                channel.disconnect();
>>>            }
>>>            IOUtil.close( stdout );
>>>            IOUtil.close( stderr );
>>>        }
>>>    }
>>>
>>> When you're done, give it back to the community, e.g. donate your
>>> plugin to mojo or some other maven plugin 

Re: deploy rpm to rpm repository using maven + mojo rpm plugin

2009-11-09 Thread Stephen Connolly
In case you hadn't guessed, I have code for similar ... though it's
not deploying rpms to an rpm repository, rather deploying a custom
deployable to a propriatory server ;-)

2009/11/9 Dan Tran :
> Stephen, i just typed faster then you in 2 seconds :-)
>
> On Mon, Nov 9, 2009 at 12:59 AM, Stephen Connolly
>  wrote:
>> It is not that difficult to write your own maven plugin to achieve this.
>>
>> You'll probably want to depend on JSch.
>>
>> File transfer via SCP/SFTP is easy with JSch, and then you can execute
>> the "make" command to re-index the repository... although you probably
>> would prefer to skip the "make" and instead invoke "createrepo"
>> directly...
>>
>> -Stephen
>>
>> P.S.
>> You'll probably need something like the following dependencies:
>>    
>>      org.apache.maven
>>      maven-project
>>      2.0.6
>>    
>>
>>    
>>      org.apache.maven
>>      maven-plugin-api
>>      2.0.6
>>    
>>
>>    
>>      org.codehaus.plexus
>>      plexus-utils
>>      1.5.1
>>    
>>
>>    
>>      com.jcraft
>>      jsch
>>      0.1.42
>>    
>>
>> As well as these two functions (or equivalent):
>>
>>    /*
>>     * Licensed to the Apache Software Foundation (ASF) under one
>>     * or more contributor license agreements.  See the NOTICE file
>>     * distributed with this work for additional information
>>     * regarding copyright ownership.  The ASF licenses this file
>>     * to you under the Apache License, Version 2.0 (the
>>     * "License"); you may not use this file except in compliance
>>     * with the License.  You may obtain a copy of the License at
>>     *
>>     *     http://www.apache.org/licenses/LICENSE-2.0
>>     *
>>     * Unless required by applicable law or agreed to in writing,
>>     * software distributed under the License is distributed on an
>>     * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
>>     * KIND, either express or implied.  See the License for the
>>     * specific language governing permissions and limitations
>>     * under the License.
>>     */
>>    import com.jcraft.jsch.ChannelExec;
>>    import com.jcraft.jsch.ChannelSftp;
>>    import com.jcraft.jsch.JSchException;
>>    import com.jcraft.jsch.Session;
>>    import com.jcraft.jsch.SftpException;
>>    import org.apache.maven.plugin.logging.Log;
>>    import org.codehaus.plexus.util.IOUtil;
>>    import org.codehaus.plexus.util.StringUtils;
>>
>>    public static void put( Session session, File source, String
>> destination, int mode, final Log log )
>>        throws JSchException, SftpException
>>    {
>>        ChannelSftp channel = null;
>>        try
>>        {
>>            channel = (ChannelSftp) session.openChannel( "sftp" );
>>            channel.connect();
>>            log.info( "Uploading " + source + " to sftp://"; +
>> session.getUserName() + "@" + session.getHost() + ":"
>>                + session.getPort() + destination );
>>            channel.put( source.getAbsolutePath(), destination, mode );
>>            channel.quit();
>>        }
>>        finally
>>        {
>>            if ( channel != null )
>>            {
>>                channel.disconnect();
>>            }
>>        }
>>    }
>>
>>    public static void createrepo( Session session, String workingDir )
>>        throws JSchException, IOException, InterruptedException
>>    {
>>        GobblingInputStream stdout = null;
>>        GobblingInputStream stderr = null;
>>        ChannelExec channel = null;
>>        try
>>        {
>>            channel = (ChannelExec) session.openChannel( "exec" );
>>            channel.setCommand( "ch " + workingDir + " && createrepo" );
>>            stdout = new GobblingInputStream( channel.getInputStream() );
>>            stderr = new GobblingInputStream( channel.getErrStream() );
>>            channel.setInputStream( null );
>>            channel.connect();
>>            stdout.awaitClosed();
>>            stderr.awaitClosed();
>>            while ( !channel.isClosed() )
>>            {
>>                Thread.sleep( 50 );
>>            }
>>            if ( channel.getExitStatus() != 0 )
>>            {
>>                throw new IOException(
>>                    "Could not update yum repository
>> metadata\nSTDOUT:\n" + IOUtil.toString( stdout ) + "\nSTDERR:\n"
>>                        + IOUtil.toString( stderr ) + "\nEXIT-CODE:" +
>> channel.getExitStatus() );
>>            }
>>        }
>>        finally
>>        {
>>            if ( channel != null )
>>            {
>>                channel.disconnect();
>>            }
>>            IOUtil.close( stdout );
>>            IOUtil.close( stderr );
>>        }
>>    }
>>
>> When you're done, give it back to the community, e.g. donate your
>> plugin to mojo or some other maven plugin project hosting
>>
>> 2009/11/6 eyal edri :
>>> Hi guys,
>>>
>>> i'm just starting to play around with maven as a candidate for our whole
>>> build/deploy system for java applications.
>>>
>>> we're been programming so far using Perl,  packa

Re: deploy rpm to rpm repository using maven + mojo rpm plugin

2009-11-09 Thread eyal edri
Thanks for the detailed answer!

i'll look into it and let you know the progress.

Cheers,

Eyal.

On Mon, Nov 9, 2009 at 10:59 AM, Stephen Connolly <
stephen.alan.conno...@gmail.com> wrote:

> It is not that difficult to write your own maven plugin to achieve this.
>
> You'll probably want to depend on JSch.
>
> File transfer via SCP/SFTP is easy with JSch, and then you can execute
> the "make" command to re-index the repository... although you probably
> would prefer to skip the "make" and instead invoke "createrepo"
> directly...
>
> -Stephen
>
> P.S.
> You'll probably need something like the following dependencies:
>
>  org.apache.maven
>  maven-project
>  2.0.6
>
>
>
>  org.apache.maven
>  maven-plugin-api
>  2.0.6
>
>
>
>  org.codehaus.plexus
>  plexus-utils
>  1.5.1
>
>
>
>  com.jcraft
>  jsch
>  0.1.42
>
>
> As well as these two functions (or equivalent):
>
>/*
> * Licensed to the Apache Software Foundation (ASF) under one
> * or more contributor license agreements.  See the NOTICE file
> * distributed with this work for additional information
> * regarding copyright ownership.  The ASF licenses this file
> * to you under the Apache License, Version 2.0 (the
> * "License"); you may not use this file except in compliance
> * with the License.  You may obtain a copy of the License at
> *
> * http://www.apache.org/licenses/LICENSE-2.0
> *
> * Unless required by applicable law or agreed to in writing,
> * software distributed under the License is distributed on an
> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> * KIND, either express or implied.  See the License for the
> * specific language governing permissions and limitations
> * under the License.
> */
>import com.jcraft.jsch.ChannelExec;
>import com.jcraft.jsch.ChannelSftp;
>import com.jcraft.jsch.JSchException;
>import com.jcraft.jsch.Session;
>import com.jcraft.jsch.SftpException;
>import org.apache.maven.plugin.logging.Log;
>import org.codehaus.plexus.util.IOUtil;
>import org.codehaus.plexus.util.StringUtils;
>
>public static void put( Session session, File source, String
> destination, int mode, final Log log )
>throws JSchException, SftpException
>{
>ChannelSftp channel = null;
>try
>{
>channel = (ChannelSftp) session.openChannel( "sftp" );
>channel.connect();
>log.info( "Uploading " + source + " to sftp://"; +
> session.getUserName() + "@" + session.getHost() + ":"
>+ session.getPort() + destination );
>channel.put( source.getAbsolutePath(), destination, mode );
>channel.quit();
>}
>finally
>{
>if ( channel != null )
>{
>channel.disconnect();
>}
>}
>}
>
>public static void createrepo( Session session, String workingDir )
>throws JSchException, IOException, InterruptedException
>{
>GobblingInputStream stdout = null;
>GobblingInputStream stderr = null;
>ChannelExec channel = null;
>try
>{
>channel = (ChannelExec) session.openChannel( "exec" );
>channel.setCommand( "ch " + workingDir + " && createrepo" );
>stdout = new GobblingInputStream( channel.getInputStream() );
>stderr = new GobblingInputStream( channel.getErrStream() );
>channel.setInputStream( null );
>channel.connect();
>stdout.awaitClosed();
>stderr.awaitClosed();
>while ( !channel.isClosed() )
>{
>Thread.sleep( 50 );
>}
>if ( channel.getExitStatus() != 0 )
>{
>throw new IOException(
>"Could not update yum repository
> metadata\nSTDOUT:\n" + IOUtil.toString( stdout ) + "\nSTDERR:\n"
>+ IOUtil.toString( stderr ) + "\nEXIT-CODE:" +
> channel.getExitStatus() );
>}
>}
>finally
>{
>if ( channel != null )
>{
>channel.disconnect();
>}
>IOUtil.close( stdout );
>IOUtil.close( stderr );
>}
>}
>
> When you're done, give it back to the community, e.g. donate your
> plugin to mojo or some other maven plugin project hosting
>
> 2009/11/6 eyal edri :
> > Hi guys,
> >
> > i'm just starting to play around with maven as a candidate for our whole
> > build/deploy system for java applications.
> >
> > we're been programming so far using Perl,  packaging with Rpm on Fedora
> and
> > Deploying it though a local yum repository.
> >
> >
> > We still haven't decided if we could ditch the yum/rpm idea all together
> and
> > swith to mvn repository,
> > but in case we won't,
> >
> > Do you know* i**f there is 

Re: deploy rpm to rpm repository using maven + mojo rpm plugin

2009-11-09 Thread Dan Tran
Stephen, i just typed faster then you in 2 seconds :-)

On Mon, Nov 9, 2009 at 12:59 AM, Stephen Connolly
 wrote:
> It is not that difficult to write your own maven plugin to achieve this.
>
> You'll probably want to depend on JSch.
>
> File transfer via SCP/SFTP is easy with JSch, and then you can execute
> the "make" command to re-index the repository... although you probably
> would prefer to skip the "make" and instead invoke "createrepo"
> directly...
>
> -Stephen
>
> P.S.
> You'll probably need something like the following dependencies:
>    
>      org.apache.maven
>      maven-project
>      2.0.6
>    
>
>    
>      org.apache.maven
>      maven-plugin-api
>      2.0.6
>    
>
>    
>      org.codehaus.plexus
>      plexus-utils
>      1.5.1
>    
>
>    
>      com.jcraft
>      jsch
>      0.1.42
>    
>
> As well as these two functions (or equivalent):
>
>    /*
>     * Licensed to the Apache Software Foundation (ASF) under one
>     * or more contributor license agreements.  See the NOTICE file
>     * distributed with this work for additional information
>     * regarding copyright ownership.  The ASF licenses this file
>     * to you under the Apache License, Version 2.0 (the
>     * "License"); you may not use this file except in compliance
>     * with the License.  You may obtain a copy of the License at
>     *
>     *     http://www.apache.org/licenses/LICENSE-2.0
>     *
>     * Unless required by applicable law or agreed to in writing,
>     * software distributed under the License is distributed on an
>     * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
>     * KIND, either express or implied.  See the License for the
>     * specific language governing permissions and limitations
>     * under the License.
>     */
>    import com.jcraft.jsch.ChannelExec;
>    import com.jcraft.jsch.ChannelSftp;
>    import com.jcraft.jsch.JSchException;
>    import com.jcraft.jsch.Session;
>    import com.jcraft.jsch.SftpException;
>    import org.apache.maven.plugin.logging.Log;
>    import org.codehaus.plexus.util.IOUtil;
>    import org.codehaus.plexus.util.StringUtils;
>
>    public static void put( Session session, File source, String
> destination, int mode, final Log log )
>        throws JSchException, SftpException
>    {
>        ChannelSftp channel = null;
>        try
>        {
>            channel = (ChannelSftp) session.openChannel( "sftp" );
>            channel.connect();
>            log.info( "Uploading " + source + " to sftp://"; +
> session.getUserName() + "@" + session.getHost() + ":"
>                + session.getPort() + destination );
>            channel.put( source.getAbsolutePath(), destination, mode );
>            channel.quit();
>        }
>        finally
>        {
>            if ( channel != null )
>            {
>                channel.disconnect();
>            }
>        }
>    }
>
>    public static void createrepo( Session session, String workingDir )
>        throws JSchException, IOException, InterruptedException
>    {
>        GobblingInputStream stdout = null;
>        GobblingInputStream stderr = null;
>        ChannelExec channel = null;
>        try
>        {
>            channel = (ChannelExec) session.openChannel( "exec" );
>            channel.setCommand( "ch " + workingDir + " && createrepo" );
>            stdout = new GobblingInputStream( channel.getInputStream() );
>            stderr = new GobblingInputStream( channel.getErrStream() );
>            channel.setInputStream( null );
>            channel.connect();
>            stdout.awaitClosed();
>            stderr.awaitClosed();
>            while ( !channel.isClosed() )
>            {
>                Thread.sleep( 50 );
>            }
>            if ( channel.getExitStatus() != 0 )
>            {
>                throw new IOException(
>                    "Could not update yum repository
> metadata\nSTDOUT:\n" + IOUtil.toString( stdout ) + "\nSTDERR:\n"
>                        + IOUtil.toString( stderr ) + "\nEXIT-CODE:" +
> channel.getExitStatus() );
>            }
>        }
>        finally
>        {
>            if ( channel != null )
>            {
>                channel.disconnect();
>            }
>            IOUtil.close( stdout );
>            IOUtil.close( stderr );
>        }
>    }
>
> When you're done, give it back to the community, e.g. donate your
> plugin to mojo or some other maven plugin project hosting
>
> 2009/11/6 eyal edri :
>> Hi guys,
>>
>> i'm just starting to play around with maven as a candidate for our whole
>> build/deploy system for java applications.
>>
>> we're been programming so far using Perl,  packaging with Rpm on Fedora and
>> Deploying it though a local yum repository.
>>
>>
>> We still haven't decided if we could ditch the yum/rpm idea all together and
>> swith to mvn repository,
>> but in case we won't,
>>
>> Do you know* i**f there is a way to config mvn to upload the rpm (using
>> SCP?) to the yum repository* after
>> it finishe

Re: deploy rpm to rpm repository using maven + mojo rpm plugin

2009-11-09 Thread Stephen Connolly
It is not that difficult to write your own maven plugin to achieve this.

You'll probably want to depend on JSch.

File transfer via SCP/SFTP is easy with JSch, and then you can execute
the "make" command to re-index the repository... although you probably
would prefer to skip the "make" and instead invoke "createrepo"
directly...

-Stephen

P.S.
You'll probably need something like the following dependencies:

  org.apache.maven
  maven-project
  2.0.6



  org.apache.maven
  maven-plugin-api
  2.0.6



  org.codehaus.plexus
  plexus-utils
  1.5.1



  com.jcraft
  jsch
  0.1.42


As well as these two functions (or equivalent):

/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
import com.jcraft.jsch.ChannelExec;
import com.jcraft.jsch.ChannelSftp;
import com.jcraft.jsch.JSchException;
import com.jcraft.jsch.Session;
import com.jcraft.jsch.SftpException;
import org.apache.maven.plugin.logging.Log;
import org.codehaus.plexus.util.IOUtil;
import org.codehaus.plexus.util.StringUtils;

public static void put( Session session, File source, String
destination, int mode, final Log log )
throws JSchException, SftpException
{
ChannelSftp channel = null;
try
{
channel = (ChannelSftp) session.openChannel( "sftp" );
channel.connect();
log.info( "Uploading " + source + " to sftp://"; +
session.getUserName() + "@" + session.getHost() + ":"
+ session.getPort() + destination );
channel.put( source.getAbsolutePath(), destination, mode );
channel.quit();
}
finally
{
if ( channel != null )
{
channel.disconnect();
}
}
}

public static void createrepo( Session session, String workingDir )
throws JSchException, IOException, InterruptedException
{
GobblingInputStream stdout = null;
GobblingInputStream stderr = null;
ChannelExec channel = null;
try
{
channel = (ChannelExec) session.openChannel( "exec" );
channel.setCommand( "ch " + workingDir + " && createrepo" );
stdout = new GobblingInputStream( channel.getInputStream() );
stderr = new GobblingInputStream( channel.getErrStream() );
channel.setInputStream( null );
channel.connect();
stdout.awaitClosed();
stderr.awaitClosed();
while ( !channel.isClosed() )
{
Thread.sleep( 50 );
}
if ( channel.getExitStatus() != 0 )
{
throw new IOException(
"Could not update yum repository
metadata\nSTDOUT:\n" + IOUtil.toString( stdout ) + "\nSTDERR:\n"
+ IOUtil.toString( stderr ) + "\nEXIT-CODE:" +
channel.getExitStatus() );
}
}
finally
{
if ( channel != null )
{
channel.disconnect();
}
IOUtil.close( stdout );
IOUtil.close( stderr );
}
}

When you're done, give it back to the community, e.g. donate your
plugin to mojo or some other maven plugin project hosting

2009/11/6 eyal edri :
> Hi guys,
>
> i'm just starting to play around with maven as a candidate for our whole
> build/deploy system for java applications.
>
> we're been programming so far using Perl,  packaging with Rpm on Fedora and
> Deploying it though a local yum repository.
>
>
> We still haven't decided if we could ditch the yum/rpm idea all together and
> swith to mvn repository,
> but in case we won't,
>
> Do you know* i**f there is a way to config mvn to upload the rpm (using
> SCP?) to the yum repository* after
> it finished building the RPM (today we use a build system based on make
> files and in the end it scp's the rpm to the repository and run make there
> to update the list of rpms).
>
> thank you.
>
> --
> Eyal Edri
>

-
To u

Re: deploy rpm to rpm repository using maven + mojo rpm plugin

2009-11-09 Thread Dan Tran
I may want to try using wagon-maven-plugin to ship your rpm to a
location at your yum server.  note wagon plugin knows about scp but
not yum infrastructure

On Fri, Nov 6, 2009 at 2:36 PM, eyal edri  wrote:
> Hi guys,
>
> i'm just starting to play around with maven as a candidate for our whole
> build/deploy system for java applications.
>
> we're been programming so far using Perl,  packaging with Rpm on Fedora and
> Deploying it though a local yum repository.
>
>
> We still haven't decided if we could ditch the yum/rpm idea all together and
> swith to mvn repository,
> but in case we won't,
>
> Do you know* i**f there is a way to config mvn to upload the rpm (using
> SCP?) to the yum repository* after
> it finished building the RPM (today we use a build system based on make
> files and in the end it scp's the rpm to the repository and run make there
> to update the list of rpms).
>
> thank you.
>
> --
> Eyal Edri
>

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



[ANN] Maven JAXB 2.1 Plugin 1.3 Released

2009-11-09 Thread Robert Scholte

The Mojo team is pleased to announce the release of the JAXB 2.1 Plugin, 
version 1.3.


 

This plugin is able to create the object graph from XSDs or DTDs based on the 
JAXB 2.1 implementation.

With this release it's also possible create a schemafile for sources.

 

See the plugin's site for more details:

http://mojo.codehaus.org/jaxb2-maven-plugin

 

To use the updated plugin in your projects, you need to add the 
following snippet to the plugins or plugin management section of your POM:


org.codehaus.mojo
jaxb2-maven-plugin
1.3

...




 

 

Release Notes - Maven 2.x JAXB 2.1 Plugin - Version 1.3 
Bug 

[MJAXB-2] - cowardly refuses to write to a non-existent directory exception 
when there are many executions of the plugin 
[MJAXB-17] - Filter out directories when collecting schema and binding files 
[MJAXB-28] - Plugin site shows incorrect issue tracking URL 
Improvement 

[MJAXB-13] - add generated date to staleFile 
[MJAXB-14] - Support generation from DTDs 
[MJAXB-15] - jaxb2-maven-plugin: support for URLs 
[MJAXB-16] - Update dependencies to JAXB 2.1.11 
[MJAXB-18] - Use Plexus FileUtils.copyURLToFile(URL, File) instead of 
hand-written code 
[MJAXB-19] - Use StringBuilder instead of StringBuffer to avoid unnecessary 
synchronization 
[MJAXB-21] - Show system ID in error output if public ID is unavailable 
New Feature 

[MJAXB-11] - Add schemagen goal 
 

 

Enjoy,
 
-The Mojo team
  
_
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

deploy rpm to rpm repository using maven + mojo rpm plugin

2009-11-09 Thread eyal edri
Hi guys,

i'm just starting to play around with maven as a candidate for our whole
build/deploy system for java applications.

we're been programming so far using Perl,  packaging with Rpm on Fedora and
Deploying it though a local yum repository.


We still haven't decided if we could ditch the yum/rpm idea all together and
swith to mvn repository,
but in case we won't,

Do you know* i**f there is a way to config mvn to upload the rpm (using
SCP?) to the yum repository* after
it finished building the RPM (today we use a build system based on make
files and in the end it scp's the rpm to the repository and run make there
to update the list of rpms).

thank you.

-- 
Eyal Edri