RE: War packaged in ear. How to exclude shared jars

2009-09-16 Thread Bryan Loofbourrow

>>I don't think it's possible to do this automatically - that would
require the war project to be aware that it was going to be included in
the ear project. There is a way to do manually. See
http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.ht
ml (or using the provided scope as you mention).<<

This is a longstanding issue in Maven. Barend Garvelink made a page
about it here:
http://docs.codehaus.org/display/MAVENUSER/Solving+the+Skinny+Wars+probl
em

While I would prefer a more automatic solution from Maven (this is
discussed extensively on the page), I do think my preferred approach is
better than what's described on the official skinny wars page,
especially the portion that begins "Now the painful part." To quote my
comment at the bottom of Barend Garvelink's page:

(open self-quote)Here's what I do currently. For me, a skinny war is two
projects. The war project itself, and a pom project that contains all of
the dependencies. In the war project, I use warSourceIncludes (note that
this is broken in the alpha-2 plugin: MWAR-182) to specify the
(generally quite small) set of jars that must be packaged in the war,
along with an extensive list of extensions for non-jars. I make the war
project dependent on the dependency project.

Then, in the ear, I add dependencies on both the war and the dependency
project.(close self-quote)

Better than duplicating all of the dependencies, I think. 

-- Bryan

-Original Message-
From: Edelson, Justin [mailto:justin.edel...@mtvstaff.com] 
Sent: Wednesday, September 16, 2009 3:54 PM
To: Maven Users List
Subject: RE: War packaged in ear. How to exclude shared jars

I don't think it's possible to do this automatically - that would
require the war project to be aware that it was going to be included in
the ear project. There is a way to do manually. See
http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.ht
ml (or using the provided scope as you mention).
 
Justin



From: David Weintraub [mailto:qazw...@gmail.com]
Sent: Wed 9/16/2009 6:17 PM
To: Maven Users List
Subject: War packaged in ear. How to exclude shared jars



We have multiple modules in this configuration:


aim
core
web*
war*
aimwebservices*
projects
ear**
adinventory
base
jar
hibernate-har
ui

*Builds a warfile and not a jar
** Builds the earfile that contains everything.


Our module aim/web is dependent upon aim/core and that is dependent upon
springframework:core. When we build, the aim.war file gets a copy of the
springframework:core jarfile. However, this file is also in the "ear"
project where an ear that contains all the jars and wars are packaged.

Our developers don't want the aim:web warfile to contain the
springframework:core jarfile since it is already in the overall earfile.
We
know we can specifically mention the dependency on springframework:core,
then give its type as provided, but I am looking at an overall strategy:
If
a warfile will contain a jarfile that is already in the ear, we don't
want
it packaged in our warfile. Is that possible?


--
David Weintraub
qazw...@gmail.com



This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp

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



[ANN] Maven XML Plugin 1.0-beta-3 released

2009-09-16 Thread Olivier Lamy
The Mojo team is pleased to announce the release of the Maven XML
Plugin, version 1.0-beta-3.

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

You should specify the version in your project's plugin configuration:


 org.codehaus.mojo
 xml-maven-plugin
 1.0-beta-3


Changes are available here [1]

Have Fun,
--
The Mojo team

[1] http://mojo.codehaus.org/xml-maven-plugin/changes-report.html#a1.0-beta-3

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



RE: War packaged in ear. How to exclude shared jars

2009-09-16 Thread Edelson, Justin
I don't think it's possible to do this automatically - that would require the 
war project to be aware that it was going to be included in the ear project. 
There is a way to do manually. See 
http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html (or 
using the provided scope as you mention).
 
Justin



From: David Weintraub [mailto:qazw...@gmail.com]
Sent: Wed 9/16/2009 6:17 PM
To: Maven Users List
Subject: War packaged in ear. How to exclude shared jars



We have multiple modules in this configuration:


aim
core
web*
war*
aimwebservices*
projects
ear**
adinventory
base
jar
hibernate-har
ui

*Builds a warfile and not a jar
** Builds the earfile that contains everything.


Our module aim/web is dependent upon aim/core and that is dependent upon
springframework:core. When we build, the aim.war file gets a copy of the
springframework:core jarfile. However, this file is also in the "ear"
project where an ear that contains all the jars and wars are packaged.

Our developers don't want the aim:web warfile to contain the
springframework:core jarfile since it is already in the overall earfile. We
know we can specifically mention the dependency on springframework:core,
then give its type as provided, but I am looking at an overall strategy: If
a warfile will contain a jarfile that is already in the ear, we don't want
it packaged in our warfile. Is that possible?


--
David Weintraub
qazw...@gmail.com




War packaged in ear. How to exclude shared jars

2009-09-16 Thread David Weintraub
We have multiple modules in this configuration:


aim
core
web*
war*
aimwebservices*
projects
ear**
adinventory
base
jar
hibernate-har
ui

*Builds a warfile and not a jar
** Builds the earfile that contains everything.


Our module aim/web is dependent upon aim/core and that is dependent upon
springframework:core. When we build, the aim.war file gets a copy of the
springframework:core jarfile. However, this file is also in the "ear"
project where an ear that contains all the jars and wars are packaged.

Our developers don't want the aim:web warfile to contain the
springframework:core jarfile since it is already in the overall earfile. We
know we can specifically mention the dependency on springframework:core,
then give its type as provided, but I am looking at an overall strategy: If
a warfile will contain a jarfile that is already in the ear, we don't want
it packaged in our warfile. Is that possible?


-- 
David Weintraub
qazw...@gmail.com


filtering resources in a war

2009-09-16 Thread Manuel Grau


Hi all,

I'm trying to filter some jsp files in my war project. The jsp file  
I'm tyring to filter is located in src/main/webapp/WEB-INF/includes/ 
header.jsp. This is my pom.xml maven-war-plugin configuration:



maven-war-plugin

true

../../pom.dev.propertiesfilter>





src/main/webappdirectory>

true

**/*







But, when I package the war, the file has not been filtered. Any  
idea about what is happening?


Thanks.

--
"Computer science is not about computers any more than astronomy is  
about telescopes." E.W. Dijkstra (1930-2002)




RE: Porpuse of src/main/config

2009-09-16 Thread Chris Helck
Here's my understanding...

In maven1, files in 'config' were packaged into the jar file. At some
point it was decided that 'resources' was a better name than 'config',
so now 'config' is just another directory that Maven doesn't do anything
with.

In general Maven doesn't know how you're going to deploy your package,
so it doesn't know what to do with directories like: config, etc, bin,
and so on. So you need to figure this out and come up with your own
convention. Plugin's like assemble (assembly?) can help a lot. I often
use it to create a tar ball that unpacks into a directory something
like:

  app/
bin # all files have execute
etc # User configurable files
jars# all dependencies
logs# where app writes logs.

Basically my bin and etc directories under src/main get copied into the
tar ball.

Hope this helps.
C. Helck



 

-Original Message-
From: Jean-Louis MONTEIRO [mailto:jean-louis.monte...@atosorigin.com] 
Sent: Wednesday, September 16, 2009 12:06 PM
To: users@maven.apache.org
Subject: Re: Porpuse of src/main/config




Geoffrey Wiseman wrote:
> 
> On Fri, Aug 1, 2008 at 11:00 AM, DOMINGUEZ Felipe < 
> felipe.doming...@eurocontrol.int> wrote:
> 
>> I am new to Maven, and I am a bit confuse about the porpuse of 
>> directory src/main/config porpuse
>>
>> I have been looking for information about it but it does not seems to

>> be much.
>>
>> I initially thought that in directory src/main/resources I could put 
>> any static resource used by the jar file and in src/main/config I 
>> could put any configuration file that needs to be customised before 
>> the jar file is used. For example in the config file I would add the 
>> hibernate.cfg.xml file, since the DB connection information needs to 
>> be modify by the person who will use the jar file.
>>
>> placing hibernage.cfg.xml in the resources files is not good, since 
>> this file will be added to the jar file, so the person who will use 
>> the jar file will have to extract it to be able to modify its 
>> properties. So initially I thought that src/main/config  was for this

>> porpuse, but all files that I put in congif directory are ignored.
>>
>> Can any body clarify the usage of src/main/config  and what is maven 
>> approach for using configuration files such as hibernate.cfg.xml or 
>> other config files that need to be modified on the live environment?
>>
> 
> What about this?
> http://maven.apache.org/guides/introduction/introduction-to-the-standa
> rd-directory-layout.html
> 
> --
> Geoffrey Wiseman
> 
> 
Hi Geoffrey,

it's not clear at all.
Can you please explicitly give us the difference between
src/main/resources and src/main/config ?
I guess src/main/resources goes to target package (jar, war, ...). And
from my understanding, src/main/config is not part of the classpath and
is used only for build (configuration files used to build, ...).

Thanks for your help.
Regards,
Jean-Louis
--
View this message in context:
http://www.nabble.com/Porpuse-of-src-main-config-tp18776348p25475583.htm
l
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


**
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the "Information") is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 ("ICAP") or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**



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



Re: Porpuse of src/main/config

2009-09-16 Thread Jean-Louis MONTEIRO



Geoffrey Wiseman wrote:
> 
> On Fri, Aug 1, 2008 at 11:00 AM, DOMINGUEZ Felipe <
> felipe.doming...@eurocontrol.int> wrote:
> 
>> I am new to Maven, and I am a bit confuse about the porpuse of directory
>> src/main/config porpuse
>>
>> I have been looking for information about it but it does not seems to be
>> much.
>>
>> I initially thought that in directory src/main/resources I could put any
>> static resource used by the jar file and in src/main/config I could put
>> any configuration file that needs to be customised before the jar file
>> is used. For example in the config file I would add the
>> hibernate.cfg.xml file, since the DB connection information needs to be
>> modify by the person who will use the jar file.
>>
>> placing hibernage.cfg.xml in the resources files is not good, since this
>> file will be added to the jar file, so the person who will use the jar
>> file will have to extract it to be able to modify its properties. So
>> initially I thought that src/main/config  was for this porpuse, but all
>> files that I put in congif directory are ignored.
>>
>> Can any body clarify the usage of src/main/config  and what is maven
>> approach for using configuration files such as hibernate.cfg.xml or
>> other config files that need to be modified on the live environment?
>>
> 
> What about this?
> http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
> 
> -- 
> Geoffrey Wiseman
> 
> 
Hi Geoffrey,

it's not clear at all.
Can you please explicitly give us the difference between src/main/resources
and src/main/config ?
I guess src/main/resources goes to target package (jar, war, ...). And from
my understanding, src/main/config is not part of the classpath and is used
only for build (configuration files used to build, ...).

Thanks for your help.
Regards,
Jean-Louis
-- 
View this message in context: 
http://www.nabble.com/Porpuse-of-src-main-config-tp18776348p25475583.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



maven-javadoc-plugin javadoc aggregate

2009-09-16 Thread Martin Scholl

Hi,

I'm trying to use the javadoc:aggregate goal to generate a complete  
API overview of a multi module project. This project contains some sub- 
projects that are "normal jar projects" and there are some others that  
use custom packaging types like "aar" or "mar". If I run the  
javadoc:aggregate goal those custom packaging projects won't be  
recognised as a java-code-containing project. However, if I run the  
javadoc:javadoc goal these projects are processed, too.


Is there a way to make the aggregate goal process custom packaging  
projects?


Cheers,

Martin

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



RE: AW: How to specify a plugin version from the command line?

2009-09-16 Thread Martin Gainty

try [1.0,2.0) 
 
version 1.0 <= x < 2.0 inclusive 

http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution#DependencyMediationandConflictResolution-DependencyVersionRanges

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: eric.le...@ipi.ch
> To: users@maven.apache.org
> Date: Wed, 16 Sep 2009 17:25:33 +0200
> Subject: AW: How to specify a plugin version from the command line?
> 
> Hi Martin
> 
> Thanks, that works.
> 
> However, it's not really elegant  ;-)
> 
> Is there a way to nail the plugin versions somewhere in the configuration? If 
> possible with version ranges, like [2.3)
> 
> Best regards,
> Eric 
> 
> > -Ursprüngliche Nachricht-
> > Von: Martin Gainty [mailto:mgai...@hotmail.com] 
> > Gesendet: Mittwoch, 16. September 2009 17:21
> > An: users@maven.apache.org
> > Betreff: RE: How to specify a plugin version from the command line?
> > 
> > 
> > Eric
> > 
> > did you try running mvn with groupId:artifactId:version:goal 
> > at command line e.g.
> > mvn 
> > PlugIngroupID:PlugInartifactID:PlugInversion:goalhttp://maven.
> > apache.org/guides/plugin/guide-java-plugin-development.html
> > 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: eric.le...@ipi.ch
> > > To: users@maven.apache.org
> > > Date: Wed, 16 Sep 2009 17:11:46 +0200
> > > Subject: How to specify a plugin version from the command line?
> > > 
> > > Hi
> > > 
> > > I'm setting the exact versions for all Maven plugins in our 
> > company-wide parent POM.
> > > However, that doesn't help when I'm using the command line.
> > > So how can I force Maven to use a certain version of a plugin?
> > > 
> > > Best regards,
> > > Eric
> > > 
> > -
> > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > > For additional commands, e-mail: users-h...@maven.apache.org
> > > 
> > 
> > _
> > Hotmail: Free, trusted and rich email service.
> > http://clk.atdmt.com/GBL/go/171222984/direct/01/
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 

_
Ready for Fall shows? Use Bing to find helpful ratings and reviews on digital 
tv's.
http://www.bing.com/shopping/search?q=digital+tv's&form=MSHNCB&publ=WLHMTAG&crea=TEXT_MSHNCB_Vertical_Shopping_DigitalTVs_1x1

RE: Failing to Fetch Snapshots with Every Build - How to disable undesired Behaviour

2009-09-16 Thread Edelson, Justin
See http://maven.apache.org/repository-management.html



From: Quintin Beukes [mailto:quin...@skywalk.co.za]
Sent: Wed 9/16/2009 11:20 AM
To: Maven Users List
Subject: Re: Failing to Fetch Snapshots with Every Build - How to disable 
undesired Behaviour



Sounds good.

How does it help you to "hit the internet" less often?

Q

On Wed, Sep 16, 2009 at 4:48 PM, Todd Thiessen  wrote:
> BTW. Are you using a repository manager? This would keep you from having to 
> hit the internet often and improve download speeds.
>
> ---
> Todd Thiessen
>
>
>> -Original Message-
>> From: Quintin Beukes [mailto:quin...@skywalk.co.za]
>> Sent: Wednesday, September 16, 2009 10:41 AM
>> To: Maven Users List
>> Subject: Re: Failing to Fetch Snapshots with Every Build -
>> How to disable undesired Behaviour
>>
>> Nuking it?!?! You mean delete all 1GB of it and start over?
>> Or can I just delete the SNAPSHOT directory and rebuild it?
>>
>> Q
>>
>> On Wed, Sep 16, 2009 at 4:37 PM, Todd Thiessen
>>  wrote:
>> > Perhaps the metadata is corrupt. Have you tried nuking your local?
>> >
>> > If that doesn't work, perhaps there is corruption on the
>> java.net side
>> >
>> > ---
>> > Todd Thiessen
>> >
>> >
>> >> -Original Message-
>> >> From: Quintin Beukes [mailto:quin...@skywalk.co.za]
>> >> Sent: Wednesday, September 16, 2009 10:31 AM
>> >> To: Maven Users List
>> >> Subject: Re: Failing to Fetch Snapshots with Every Build - How to
>> >> disable undesired Behaviour
>> >>
>> >> Could it be because it's a snapshot, the file isn't there,
>> and since
>> >> it keeps NOT being found it never marks it as updated, and
>> thus keeps
>> >> trying.
>> >>
>> >> Q
>> >>
>> >> On Wed, Sep 16, 2009 at 4:27 PM, Quintin Beukes
>> >>  wrote:
>> >> > No. I even tried to disable checking for updates. It keeps
>> >> doing this
>> >> > with every build. The exact same set of files.
>> >> >
>> >> > Q
>> >> >
>> >> > On Wed, Sep 16, 2009 at 2:37 PM, Edelson, Justin
>> >> >  wrote:
>> >> >> By default, Maven will only check for updated snapshots
>> >> once per day.
>> >> >> Are you overriding this in the settings.xml file?
>> >> >>
>> >> >> Justin
>> >> >>
>> >> >> On Sep 16, 2009, at 4:09 AM, "Quintin Beukes"
>> >>  wrote:
>> >> >>
>> >> >>> Everytime I build I get the following (and a couple of others,
>> >> >>> including JARs, but all for the same project, ie.
>> >> >>> openejb-3.1.2-SNAPSHOT).
>> >> >>>
>> >> >>> [resources:resources]
>> >> >>> [WARNING] Using platform encoding (UTF-8 actually) to
>> >> copy filtered
>> >> >>> resources, i.e. build is platform dependent!
>> >> >>> Copying 5 resources
>> >> >>> Downloading:
>> >> >>>
>> >>
>> http://download.java.net/maven/2/org/apache/openejb/openejb-client/3
>> >> >>> .1.2-SNAPSHOT/openejb-client-3.1.2-SNAPSHOT.pom
>> >> >>> Unable to find resource
>> >> >>> 'org.apache.openejb:openejb-client:pom:3.1.2-SNAPSHOT' in
>> >> repository
>> >> >>> java.net2 (http://download.java.net/maven/2)
>> >> >>> Downloading:
>> >> >>>
>> >>
>> http://download.java.net/maven/2/org/apache/openejb/server/3.1.2-SNA
>> >> >>> PSHOT/server-3.1.2-SNAPSHOT.pom Unable to find resource
>> >> >>> 'org.apache.openejb:server:pom:3.1.2-SNAPSHOT'
>> >> >>> in repository java.net2 (http://download.java.net/maven/2)
>> >> >>> Downloading:
>> >> >>>
>> >>
>> http://download.java.net/maven/2/org/apache/openejb/openejb/3.1.2-SN
>> >> >>> APSHOT/openejb-3.1.2-SNAPSHOT.pom Unable to find resource
>> >> >>> 'org.apache.openejb:openejb:pom:3.1.2-SNAPSHOT' in repository
>> >> >>> java.net2 (http://download.java.net/maven/2)
>> >> >>> snapshot
>> org.apache.openejb:openejb-core:3.1.2-SNAPSHOT: checking
>> >> >>> for updates from java.net2
>> >> >>> Downloading:
>> >> >>>
>> >>
>> http://download.java.net/maven/2/org/apache/openejb/openejb-core/3.1
>> >> >>> .2-SNAPSHOT/openejb-core-3.1.2-SNAPSHOT.pom
>> >> >>> Unable to find resource
>> >> >>> 'org.apache.openejb:openejb-core:pom:3.1.2-SNAPSHOT' in
>> >> >>> repository
>> >> >>> java.net2 (http://download.java.net/maven/2)
>> >> >>> Downloading:
>> >> >>>
>> >>
>> http://download.java.net/maven/2/org/apache/openejb/container/3.1.2-
>> >> >>> SNAPSHOT/container-3.1.2-SNAPSHOT.pom
>> >> >>> Unable to find resource
>> >> >>> 'org.apache.openejb:container:pom:3.1.2-SNAPSHOT' in repository
>> >> >>> java.net2 (http://download.java.net/maven/2)
>> >> >>> [compiler:compile]
>> >> >>>
>> >> >>> I HAVE these files in my repository, as can be seen with
>> >> the following ls:
>> >> >>> quin...@quintin-desktop 3.1.2-SNAPSHOT $ ls -l
>> >> >>>
>> ~/.m2/repository/org/apache/openejb/openejb-core/3.1.2-SNAPSHOT/
>> >> >>> total 2916
>> >> >>> -rw-r--r-- 1 quintin quintin 366 2009-09-10 16:39
>> >> >>> maven-metadata-apache.snapshots.xml
>> >> >>> -rw-r--r-- 1 quintin quintin  41 2009-09-10 16:39
>> >> >>> maven-metadata-apache.snapshots.xml.sha1
>> >> >>> -rw-r--r-- 1 quintin quintin 178 2009-09-10 16:39
>> >> >>> maven-metadata-codehaus.snapshots.

AW: How to specify a plugin version from the command line?

2009-09-16 Thread Lewis, Eric
Hi Martin

Thanks, that works.

However, it's not really elegant  ;-)

Is there a way to nail the plugin versions somewhere in the configuration? If 
possible with version ranges, like [2.3)

Best regards,
Eric 

> -Ursprüngliche Nachricht-
> Von: Martin Gainty [mailto:mgai...@hotmail.com] 
> Gesendet: Mittwoch, 16. September 2009 17:21
> An: users@maven.apache.org
> Betreff: RE: How to specify a plugin version from the command line?
> 
> 
> Eric
> 
> did you try running mvn with groupId:artifactId:version:goal 
> at command line e.g.
> mvn 
> PlugIngroupID:PlugInartifactID:PlugInversion:goalhttp://maven.
> apache.org/guides/plugin/guide-java-plugin-development.html
> 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: eric.le...@ipi.ch
> > To: users@maven.apache.org
> > Date: Wed, 16 Sep 2009 17:11:46 +0200
> > Subject: How to specify a plugin version from the command line?
> > 
> > Hi
> > 
> > I'm setting the exact versions for all Maven plugins in our 
> company-wide parent POM.
> > However, that doesn't help when I'm using the command line.
> > So how can I force Maven to use a certain version of a plugin?
> > 
> > Best regards,
> > Eric
> > 
> -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> > 
> 
> _
> Hotmail: Free, trusted and rich email service.
> http://clk.atdmt.com/GBL/go/171222984/direct/01/
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: How to specify a plugin version from the command line?

2009-09-16 Thread Martin Gainty

Eric

did you try running mvn with groupId:artifactId:version:goal at command line 
e.g.
mvn 
PlugIngroupID:PlugInartifactID:PlugInversion:goalhttp://maven.apache.org/guides/plugin/guide-java-plugin-development.html
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: eric.le...@ipi.ch
> To: users@maven.apache.org
> Date: Wed, 16 Sep 2009 17:11:46 +0200
> Subject: How to specify a plugin version from the command line?
> 
> Hi
> 
> I'm setting the exact versions for all Maven plugins in our company-wide 
> parent POM.
> However, that doesn't help when I'm using the command line.
> So how can I force Maven to use a certain version of a plugin?
> 
> Best regards,
> Eric
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 

_
Hotmail: Free, trusted and rich email service.
http://clk.atdmt.com/GBL/go/171222984/direct/01/

Re: NSIS with maven and exe artifacts.

2009-09-16 Thread Julien Graglia
Le mercredi 16 septembre 2009 à 10:24 -0400, Ken Liu a écrit :
> Julien -
> 
> When you did this, did you encounter a problem where test dependencies (e.g.
> Junit) were also copied?

no, I just have to add the "provided" dependencySet to retreive all the
need artifacts.
I'am using mvn 2.2.1 and assembly 2.2-beta-4

> 
> Ken
> 
> On Tue, Sep 15, 2009 at 2:20 AM, Julien Graglia wrote:
> 
> > Le lundi 14 septembre 2009 à 16:17 -0400, James Russo a écrit :
> > > Hello Julien,
> > >
> > > In your ncsetup.nsi, how do you reference the artifacts to be
> > > included with the .exe build?
> > My installer artifact is of type pom and depends of my war. Then I use
> > the assembly plugin to retrieve dependencies and output them in folders.
> > Ex :
> >
> >
> >
> >libs
> >provided
> >
> >xxx:*
> >
> >
> > 
> >
> >libs
> >
> >:*
> >
> >
> > 
> >
> >webapps
> >
> >
> > ${artifact.artifactId}.${artifact.extension}
> >runtime
> >
> > > Julien Graglia
> > NetCeler
> >
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
-- 
Julien Graglia
NetCeler
Tel.: +33 4 92 57 12 12Fax: +33 4 92 57 12 62
www.netceler.com-jgrag...@netceler.com


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



Re: Failing to Fetch Snapshots with Every Build - How to disable undesired Behaviour

2009-09-16 Thread Quintin Beukes
Sounds good.

How does it help you to "hit the internet" less often?

Q

On Wed, Sep 16, 2009 at 4:48 PM, Todd Thiessen  wrote:
> BTW. Are you using a repository manager? This would keep you from having to 
> hit the internet often and improve download speeds.
>
> ---
> Todd Thiessen
>
>
>> -Original Message-
>> From: Quintin Beukes [mailto:quin...@skywalk.co.za]
>> Sent: Wednesday, September 16, 2009 10:41 AM
>> To: Maven Users List
>> Subject: Re: Failing to Fetch Snapshots with Every Build -
>> How to disable undesired Behaviour
>>
>> Nuking it?!?! You mean delete all 1GB of it and start over?
>> Or can I just delete the SNAPSHOT directory and rebuild it?
>>
>> Q
>>
>> On Wed, Sep 16, 2009 at 4:37 PM, Todd Thiessen
>>  wrote:
>> > Perhaps the metadata is corrupt. Have you tried nuking your local?
>> >
>> > If that doesn't work, perhaps there is corruption on the
>> java.net side
>> >
>> > ---
>> > Todd Thiessen
>> >
>> >
>> >> -Original Message-
>> >> From: Quintin Beukes [mailto:quin...@skywalk.co.za]
>> >> Sent: Wednesday, September 16, 2009 10:31 AM
>> >> To: Maven Users List
>> >> Subject: Re: Failing to Fetch Snapshots with Every Build - How to
>> >> disable undesired Behaviour
>> >>
>> >> Could it be because it's a snapshot, the file isn't there,
>> and since
>> >> it keeps NOT being found it never marks it as updated, and
>> thus keeps
>> >> trying.
>> >>
>> >> Q
>> >>
>> >> On Wed, Sep 16, 2009 at 4:27 PM, Quintin Beukes
>> >>  wrote:
>> >> > No. I even tried to disable checking for updates. It keeps
>> >> doing this
>> >> > with every build. The exact same set of files.
>> >> >
>> >> > Q
>> >> >
>> >> > On Wed, Sep 16, 2009 at 2:37 PM, Edelson, Justin
>> >> >  wrote:
>> >> >> By default, Maven will only check for updated snapshots
>> >> once per day.
>> >> >> Are you overriding this in the settings.xml file?
>> >> >>
>> >> >> Justin
>> >> >>
>> >> >> On Sep 16, 2009, at 4:09 AM, "Quintin Beukes"
>> >>  wrote:
>> >> >>
>> >> >>> Everytime I build I get the following (and a couple of others,
>> >> >>> including JARs, but all for the same project, ie.
>> >> >>> openejb-3.1.2-SNAPSHOT).
>> >> >>>
>> >> >>> [resources:resources]
>> >> >>> [WARNING] Using platform encoding (UTF-8 actually) to
>> >> copy filtered
>> >> >>> resources, i.e. build is platform dependent!
>> >> >>> Copying 5 resources
>> >> >>> Downloading:
>> >> >>>
>> >>
>> http://download.java.net/maven/2/org/apache/openejb/openejb-client/3
>> >> >>> .1.2-SNAPSHOT/openejb-client-3.1.2-SNAPSHOT.pom
>> >> >>> Unable to find resource
>> >> >>> 'org.apache.openejb:openejb-client:pom:3.1.2-SNAPSHOT' in
>> >> repository
>> >> >>> java.net2 (http://download.java.net/maven/2)
>> >> >>> Downloading:
>> >> >>>
>> >>
>> http://download.java.net/maven/2/org/apache/openejb/server/3.1.2-SNA
>> >> >>> PSHOT/server-3.1.2-SNAPSHOT.pom Unable to find resource
>> >> >>> 'org.apache.openejb:server:pom:3.1.2-SNAPSHOT'
>> >> >>> in repository java.net2 (http://download.java.net/maven/2)
>> >> >>> Downloading:
>> >> >>>
>> >>
>> http://download.java.net/maven/2/org/apache/openejb/openejb/3.1.2-SN
>> >> >>> APSHOT/openejb-3.1.2-SNAPSHOT.pom Unable to find resource
>> >> >>> 'org.apache.openejb:openejb:pom:3.1.2-SNAPSHOT' in repository
>> >> >>> java.net2 (http://download.java.net/maven/2)
>> >> >>> snapshot
>> org.apache.openejb:openejb-core:3.1.2-SNAPSHOT: checking
>> >> >>> for updates from java.net2
>> >> >>> Downloading:
>> >> >>>
>> >>
>> http://download.java.net/maven/2/org/apache/openejb/openejb-core/3.1
>> >> >>> .2-SNAPSHOT/openejb-core-3.1.2-SNAPSHOT.pom
>> >> >>> Unable to find resource
>> >> >>> 'org.apache.openejb:openejb-core:pom:3.1.2-SNAPSHOT' in
>> >> >>> repository
>> >> >>> java.net2 (http://download.java.net/maven/2)
>> >> >>> Downloading:
>> >> >>>
>> >>
>> http://download.java.net/maven/2/org/apache/openejb/container/3.1.2-
>> >> >>> SNAPSHOT/container-3.1.2-SNAPSHOT.pom
>> >> >>> Unable to find resource
>> >> >>> 'org.apache.openejb:container:pom:3.1.2-SNAPSHOT' in repository
>> >> >>> java.net2 (http://download.java.net/maven/2)
>> >> >>> [compiler:compile]
>> >> >>>
>> >> >>> I HAVE these files in my repository, as can be seen with
>> >> the following ls:
>> >> >>> quin...@quintin-desktop 3.1.2-SNAPSHOT $ ls -l
>> >> >>>
>> ~/.m2/repository/org/apache/openejb/openejb-core/3.1.2-SNAPSHOT/
>> >> >>> total 2916
>> >> >>> -rw-r--r-- 1 quintin quintin     366 2009-09-10 16:39
>> >> >>> maven-metadata-apache.snapshots.xml
>> >> >>> -rw-r--r-- 1 quintin quintin      41 2009-09-10 16:39
>> >> >>> maven-metadata-apache.snapshots.xml.sha1
>> >> >>> -rw-r--r-- 1 quintin quintin     178 2009-09-10 16:39
>> >> >>> maven-metadata-codehaus.snapshots.xml
>> >> >>> -rw-r--r-- 1 quintin quintin     178 2009-09-16 10:04
>> >> >>> maven-metadata-java.net2.xml
>> >> >>> -rw-r--r-- 1 quintin quintin 1453091 2009-09-10 16:41
>> >> >>> openejb-core-3.1.2-20090827.210255-8.jar
>> >> >>> -rw-r--r-- 1 quintin quintin      40 2009-09-10 16:41
>> >

How to specify a plugin version from the command line?

2009-09-16 Thread Lewis, Eric
Hi

I'm setting the exact versions for all Maven plugins in our company-wide parent 
POM.
However, that doesn't help when I'm using the command line.
So how can I force Maven to use a certain version of a plugin?

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



RE: Failing to Fetch Snapshots with Every Build - How to disable undesired Behaviour

2009-09-16 Thread Todd Thiessen
BTW. Are you using a repository manager? This would keep you from having to hit 
the internet often and improve download speeds.

---
Todd Thiessen
 

> -Original Message-
> From: Quintin Beukes [mailto:quin...@skywalk.co.za] 
> Sent: Wednesday, September 16, 2009 10:41 AM
> To: Maven Users List
> Subject: Re: Failing to Fetch Snapshots with Every Build - 
> How to disable undesired Behaviour
> 
> Nuking it?!?! You mean delete all 1GB of it and start over? 
> Or can I just delete the SNAPSHOT directory and rebuild it?
> 
> Q
> 
> On Wed, Sep 16, 2009 at 4:37 PM, Todd Thiessen 
>  wrote:
> > Perhaps the metadata is corrupt. Have you tried nuking your local?
> >
> > If that doesn't work, perhaps there is corruption on the 
> java.net side
> >
> > ---
> > Todd Thiessen
> >
> >
> >> -Original Message-
> >> From: Quintin Beukes [mailto:quin...@skywalk.co.za]
> >> Sent: Wednesday, September 16, 2009 10:31 AM
> >> To: Maven Users List
> >> Subject: Re: Failing to Fetch Snapshots with Every Build - How to 
> >> disable undesired Behaviour
> >>
> >> Could it be because it's a snapshot, the file isn't there, 
> and since 
> >> it keeps NOT being found it never marks it as updated, and 
> thus keeps 
> >> trying.
> >>
> >> Q
> >>
> >> On Wed, Sep 16, 2009 at 4:27 PM, Quintin Beukes 
> >>  wrote:
> >> > No. I even tried to disable checking for updates. It keeps
> >> doing this
> >> > with every build. The exact same set of files.
> >> >
> >> > Q
> >> >
> >> > On Wed, Sep 16, 2009 at 2:37 PM, Edelson, Justin 
> >> >  wrote:
> >> >> By default, Maven will only check for updated snapshots
> >> once per day.
> >> >> Are you overriding this in the settings.xml file?
> >> >>
> >> >> Justin
> >> >>
> >> >> On Sep 16, 2009, at 4:09 AM, "Quintin Beukes"
> >>  wrote:
> >> >>
> >> >>> Everytime I build I get the following (and a couple of others, 
> >> >>> including JARs, but all for the same project, ie.
> >> >>> openejb-3.1.2-SNAPSHOT).
> >> >>>
> >> >>> [resources:resources]
> >> >>> [WARNING] Using platform encoding (UTF-8 actually) to
> >> copy filtered
> >> >>> resources, i.e. build is platform dependent!
> >> >>> Copying 5 resources
> >> >>> Downloading:
> >> >>>
> >> 
> http://download.java.net/maven/2/org/apache/openejb/openejb-client/3
> >> >>> .1.2-SNAPSHOT/openejb-client-3.1.2-SNAPSHOT.pom
> >> >>> Unable to find resource
> >> >>> 'org.apache.openejb:openejb-client:pom:3.1.2-SNAPSHOT' in
> >> repository
> >> >>> java.net2 (http://download.java.net/maven/2)
> >> >>> Downloading:
> >> >>>
> >> 
> http://download.java.net/maven/2/org/apache/openejb/server/3.1.2-SNA
> >> >>> PSHOT/server-3.1.2-SNAPSHOT.pom Unable to find resource 
> >> >>> 'org.apache.openejb:server:pom:3.1.2-SNAPSHOT'
> >> >>> in repository java.net2 (http://download.java.net/maven/2)
> >> >>> Downloading:
> >> >>>
> >> 
> http://download.java.net/maven/2/org/apache/openejb/openejb/3.1.2-SN
> >> >>> APSHOT/openejb-3.1.2-SNAPSHOT.pom Unable to find resource 
> >> >>> 'org.apache.openejb:openejb:pom:3.1.2-SNAPSHOT' in repository
> >> >>> java.net2 (http://download.java.net/maven/2)
> >> >>> snapshot 
> org.apache.openejb:openejb-core:3.1.2-SNAPSHOT: checking 
> >> >>> for updates from java.net2
> >> >>> Downloading:
> >> >>>
> >> 
> http://download.java.net/maven/2/org/apache/openejb/openejb-core/3.1
> >> >>> .2-SNAPSHOT/openejb-core-3.1.2-SNAPSHOT.pom
> >> >>> Unable to find resource
> >> >>> 'org.apache.openejb:openejb-core:pom:3.1.2-SNAPSHOT' in 
> >> >>> repository
> >> >>> java.net2 (http://download.java.net/maven/2)
> >> >>> Downloading:
> >> >>>
> >> 
> http://download.java.net/maven/2/org/apache/openejb/container/3.1.2-
> >> >>> SNAPSHOT/container-3.1.2-SNAPSHOT.pom
> >> >>> Unable to find resource
> >> >>> 'org.apache.openejb:container:pom:3.1.2-SNAPSHOT' in repository
> >> >>> java.net2 (http://download.java.net/maven/2)
> >> >>> [compiler:compile]
> >> >>>
> >> >>> I HAVE these files in my repository, as can be seen with
> >> the following ls:
> >> >>> quin...@quintin-desktop 3.1.2-SNAPSHOT $ ls -l 
> >> >>> 
> ~/.m2/repository/org/apache/openejb/openejb-core/3.1.2-SNAPSHOT/
> >> >>> total 2916
> >> >>> -rw-r--r-- 1 quintin quintin     366 2009-09-10 16:39 
> >> >>> maven-metadata-apache.snapshots.xml
> >> >>> -rw-r--r-- 1 quintin quintin      41 2009-09-10 16:39
> >> >>> maven-metadata-apache.snapshots.xml.sha1
> >> >>> -rw-r--r-- 1 quintin quintin     178 2009-09-10 16:39 
> >> >>> maven-metadata-codehaus.snapshots.xml
> >> >>> -rw-r--r-- 1 quintin quintin     178 2009-09-16 10:04 
> >> >>> maven-metadata-java.net2.xml
> >> >>> -rw-r--r-- 1 quintin quintin 1453091 2009-09-10 16:41 
> >> >>> openejb-core-3.1.2-20090827.210255-8.jar
> >> >>> -rw-r--r-- 1 quintin quintin      40 2009-09-10 16:41
> >> >>> openejb-core-3.1.2-20090827.210255-8.jar.sha1
> >> >>> -rw-r--r-- 1 quintin quintin   14528 2009-09-10 16:39 
> >> >>> openejb-core-3.1.2-20090827.210255-8.pom
> >> >>> -rw-r--r-- 1 quintin quintin      40 2009-09-10 16:39
> >> >

Re: dependency:tree

2009-09-16 Thread Wayne Fay
> Out of curiosity, is there a way to only display the module and its
> conflicts versus the entire tree?

Hacking on Maven plugins is generally pretty simple. I'd encourage you
to take the source code, modify it to fit your needs (add a parameter
or something to enable this specific functionality), and then
contribute the results back for inclusion in a future version of the
plugin.

Wayne

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



RE: Failing to Fetch Snapshots with Every Build - How to disable undesired Behaviour

2009-09-16 Thread Todd Thiessen
1 Gig? My goodness and I though my local was big at about 100 meg ;-). Seems 
strange yours is s big. I delete my local fairly often actually.

In your case though, just delete the folder in question. Maven should then 
download all files it needs and files should be clean.

---
Todd Thiessen
 

> -Original Message-
> From: Quintin Beukes [mailto:quin...@skywalk.co.za] 
> Sent: Wednesday, September 16, 2009 10:41 AM
> To: Maven Users List
> Subject: Re: Failing to Fetch Snapshots with Every Build - 
> How to disable undesired Behaviour
> 
> Nuking it?!?! You mean delete all 1GB of it and start over? 
> Or can I just delete the SNAPSHOT directory and rebuild it?
> 
> Q
> 
> On Wed, Sep 16, 2009 at 4:37 PM, Todd Thiessen 
>  wrote:
> > Perhaps the metadata is corrupt. Have you tried nuking your local?
> >
> > If that doesn't work, perhaps there is corruption on the 
> java.net side
> >
> > ---
> > Todd Thiessen
> >
> >
> >> -Original Message-
> >> From: Quintin Beukes [mailto:quin...@skywalk.co.za]
> >> Sent: Wednesday, September 16, 2009 10:31 AM
> >> To: Maven Users List
> >> Subject: Re: Failing to Fetch Snapshots with Every Build - How to 
> >> disable undesired Behaviour
> >>
> >> Could it be because it's a snapshot, the file isn't there, 
> and since 
> >> it keeps NOT being found it never marks it as updated, and 
> thus keeps 
> >> trying.
> >>
> >> Q
> >>
> >> On Wed, Sep 16, 2009 at 4:27 PM, Quintin Beukes 
> >>  wrote:
> >> > No. I even tried to disable checking for updates. It keeps
> >> doing this
> >> > with every build. The exact same set of files.
> >> >
> >> > Q
> >> >
> >> > On Wed, Sep 16, 2009 at 2:37 PM, Edelson, Justin 
> >> >  wrote:
> >> >> By default, Maven will only check for updated snapshots
> >> once per day.
> >> >> Are you overriding this in the settings.xml file?
> >> >>
> >> >> Justin
> >> >>
> >> >> On Sep 16, 2009, at 4:09 AM, "Quintin Beukes"
> >>  wrote:
> >> >>
> >> >>> Everytime I build I get the following (and a couple of others, 
> >> >>> including JARs, but all for the same project, ie.
> >> >>> openejb-3.1.2-SNAPSHOT).
> >> >>>
> >> >>> [resources:resources]
> >> >>> [WARNING] Using platform encoding (UTF-8 actually) to
> >> copy filtered
> >> >>> resources, i.e. build is platform dependent!
> >> >>> Copying 5 resources
> >> >>> Downloading:
> >> >>>
> >> 
> http://download.java.net/maven/2/org/apache/openejb/openejb-client/3
> >> >>> .1.2-SNAPSHOT/openejb-client-3.1.2-SNAPSHOT.pom
> >> >>> Unable to find resource
> >> >>> 'org.apache.openejb:openejb-client:pom:3.1.2-SNAPSHOT' in
> >> repository
> >> >>> java.net2 (http://download.java.net/maven/2)
> >> >>> Downloading:
> >> >>>
> >> 
> http://download.java.net/maven/2/org/apache/openejb/server/3.1.2-SNA
> >> >>> PSHOT/server-3.1.2-SNAPSHOT.pom Unable to find resource 
> >> >>> 'org.apache.openejb:server:pom:3.1.2-SNAPSHOT'
> >> >>> in repository java.net2 (http://download.java.net/maven/2)
> >> >>> Downloading:
> >> >>>
> >> 
> http://download.java.net/maven/2/org/apache/openejb/openejb/3.1.2-SN
> >> >>> APSHOT/openejb-3.1.2-SNAPSHOT.pom Unable to find resource 
> >> >>> 'org.apache.openejb:openejb:pom:3.1.2-SNAPSHOT' in repository
> >> >>> java.net2 (http://download.java.net/maven/2)
> >> >>> snapshot 
> org.apache.openejb:openejb-core:3.1.2-SNAPSHOT: checking 
> >> >>> for updates from java.net2
> >> >>> Downloading:
> >> >>>
> >> 
> http://download.java.net/maven/2/org/apache/openejb/openejb-core/3.1
> >> >>> .2-SNAPSHOT/openejb-core-3.1.2-SNAPSHOT.pom
> >> >>> Unable to find resource
> >> >>> 'org.apache.openejb:openejb-core:pom:3.1.2-SNAPSHOT' in 
> >> >>> repository
> >> >>> java.net2 (http://download.java.net/maven/2)
> >> >>> Downloading:
> >> >>>
> >> 
> http://download.java.net/maven/2/org/apache/openejb/container/3.1.2-
> >> >>> SNAPSHOT/container-3.1.2-SNAPSHOT.pom
> >> >>> Unable to find resource
> >> >>> 'org.apache.openejb:container:pom:3.1.2-SNAPSHOT' in repository
> >> >>> java.net2 (http://download.java.net/maven/2)
> >> >>> [compiler:compile]
> >> >>>
> >> >>> I HAVE these files in my repository, as can be seen with
> >> the following ls:
> >> >>> quin...@quintin-desktop 3.1.2-SNAPSHOT $ ls -l 
> >> >>> 
> ~/.m2/repository/org/apache/openejb/openejb-core/3.1.2-SNAPSHOT/
> >> >>> total 2916
> >> >>> -rw-r--r-- 1 quintin quintin     366 2009-09-10 16:39 
> >> >>> maven-metadata-apache.snapshots.xml
> >> >>> -rw-r--r-- 1 quintin quintin      41 2009-09-10 16:39
> >> >>> maven-metadata-apache.snapshots.xml.sha1
> >> >>> -rw-r--r-- 1 quintin quintin     178 2009-09-10 16:39 
> >> >>> maven-metadata-codehaus.snapshots.xml
> >> >>> -rw-r--r-- 1 quintin quintin     178 2009-09-16 10:04 
> >> >>> maven-metadata-java.net2.xml
> >> >>> -rw-r--r-- 1 quintin quintin 1453091 2009-09-10 16:41 
> >> >>> openejb-core-3.1.2-20090827.210255-8.jar
> >> >>> -rw-r--r-- 1 quintin quintin      40 2009-09-10 16:41
> >> >>> openejb-core-3.1.2-20090827.210255-8.jar.sha1
> >> >>> -rw-r--r-- 1 quintin qui

RE: Failing to Fetch Snapshots with Every Build - How to disable undesired Behaviour

2009-09-16 Thread Edelson, Justin
One thing that does looks odd is that there's no maven-metadata-local.xml in 
the directory listing below. How did the JAR and POM files get into your local 
repository? It also looks weird to have a mix of timestamped and 
non-timestamped snapshots, but I'm not sure that's a problem.
 
Justin



From: Quintin Beukes [mailto:quin...@skywalk.co.za]
Sent: Wed 9/16/2009 10:31 AM
To: Maven Users List
Subject: Re: Failing to Fetch Snapshots with Every Build - How to disable 
undesired Behaviour



Could it be because it's a snapshot, the file isn't there, and since
it keeps NOT being found it never marks it as updated, and thus keeps
trying.

Q

On Wed, Sep 16, 2009 at 4:27 PM, Quintin Beukes  wrote:
> No. I even tried to disable checking for updates. It keeps doing this
> with every build. The exact same set of files.
>
> Q
>
> On Wed, Sep 16, 2009 at 2:37 PM, Edelson, Justin
>  wrote:
>> By default, Maven will only check for updated snapshots once per day. Are
>> you overriding this in the settings.xml file?
>>
>> Justin
>>
>> On Sep 16, 2009, at 4:09 AM, "Quintin Beukes"  wrote:
>>
>>> Everytime I build I get the following (and a couple of others,
>>> including JARs, but all for the same project, ie.
>>> openejb-3.1.2-SNAPSHOT).
>>>
>>> [resources:resources]
>>> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
>>> resources, i.e. build is platform dependent!
>>> Copying 5 resources
>>> Downloading:
>>> http://download.java.net/maven/2/org/apache/openejb/openejb-client/3.1.2-SNAPSHOT/openejb-client-3.1.2-SNAPSHOT.pom
>>> Unable to find resource
>>> 'org.apache.openejb:openejb-client:pom:3.1.2-SNAPSHOT' in repository
>>> java.net2 (http://download.java.net/maven/2)
>>> Downloading:
>>> http://download.java.net/maven/2/org/apache/openejb/server/3.1.2-SNAPSHOT/server-3.1.2-SNAPSHOT.pom
>>> Unable to find resource 'org.apache.openejb:server:pom:3.1.2-SNAPSHOT'
>>> in repository java.net2 (http://download.java.net/maven/2)
>>> Downloading:
>>> http://download.java.net/maven/2/org/apache/openejb/openejb/3.1.2-SNAPSHOT/openejb-3.1.2-SNAPSHOT.pom
>>> Unable to find resource
>>> 'org.apache.openejb:openejb:pom:3.1.2-SNAPSHOT' in repository
>>> java.net2 (http://download.java.net/maven/2)
>>> snapshot org.apache.openejb:openejb-core:3.1.2-SNAPSHOT: checking for
>>> updates from java.net2
>>> Downloading:
>>> http://download.java.net/maven/2/org/apache/openejb/openejb-core/3.1.2-SNAPSHOT/openejb-core-3.1.2-SNAPSHOT.pom
>>> Unable to find resource
>>> 'org.apache.openejb:openejb-core:pom:3.1.2-SNAPSHOT' in repository
>>> java.net2 (http://download.java.net/maven/2)
>>> Downloading:
>>> http://download.java.net/maven/2/org/apache/openejb/container/3.1.2-SNAPSHOT/container-3.1.2-SNAPSHOT.pom
>>> Unable to find resource
>>> 'org.apache.openejb:container:pom:3.1.2-SNAPSHOT' in repository
>>> java.net2 (http://download.java.net/maven/2)
>>> [compiler:compile]
>>>
>>> I HAVE these files in my repository, as can be seen with the following ls:
>>> quin...@quintin-desktop 3.1.2-SNAPSHOT $ ls -l
>>> ~/.m2/repository/org/apache/openejb/openejb-core/3.1.2-SNAPSHOT/
>>> total 2916
>>> -rw-r--r-- 1 quintin quintin 366 2009-09-10 16:39
>>> maven-metadata-apache.snapshots.xml
>>> -rw-r--r-- 1 quintin quintin  41 2009-09-10 16:39
>>> maven-metadata-apache.snapshots.xml.sha1
>>> -rw-r--r-- 1 quintin quintin 178 2009-09-10 16:39
>>> maven-metadata-codehaus.snapshots.xml
>>> -rw-r--r-- 1 quintin quintin 178 2009-09-16 10:04
>>> maven-metadata-java.net2.xml
>>> -rw-r--r-- 1 quintin quintin 1453091 2009-09-10 16:41
>>> openejb-core-3.1.2-20090827.210255-8.jar
>>> -rw-r--r-- 1 quintin quintin  40 2009-09-10 16:41
>>> openejb-core-3.1.2-20090827.210255-8.jar.sha1
>>> -rw-r--r-- 1 quintin quintin   14528 2009-09-10 16:39
>>> openejb-core-3.1.2-20090827.210255-8.pom
>>> -rw-r--r-- 1 quintin quintin  40 2009-09-10 16:39
>>> openejb-core-3.1.2-20090827.210255-8.pom.sha1
>>> -rw-r--r-- 1 quintin quintin 1453091 2009-09-10 16:41
>>> openejb-core-3.1.2-SNAPSHOT.jar
>>> -rw-r--r-- 1 quintin quintin 104 2009-09-15 15:56
>>> openejb-core-3.1.2-SNAPSHOT-javadoc.jar.lastUpdated
>>> -rw-r--r-- 1 quintin quintin   14528 2009-09-10 16:39
>>> openejb-core-3.1.2-SNAPSHOT.pom
>>> -rw-r--r-- 1 quintin quintin 104 2009-09-15 15:57
>>> openejb-core-3.1.2-SNAPSHOT-sources.jar.lastUpdated
>>> -rw-r--r-- 1 quintin quintin 145 2009-09-16 10:03
>>> resolver-status.properties
>>>
>>> How can I disable this? I don't want to run in offline mode, because I
>>> want legitimate dependency fetches to occur. The biggest hassle is
>>> that it does this with every build, every clean, every test. And this
>>> makes my tests run longer. When I run in offline mode it finished
>>> execution in as little as 3 seconds, depending on what has to happen.
>>> But with these fetches it's a minimum of 30 seconds everytime.
>>>
>>> Thanks,
>>> --
>>> Quintin Beukes
>>>
>>> --

Re: Failing to Fetch Snapshots with Every Build - How to disable undesired Behaviour

2009-09-16 Thread Quintin Beukes
Nuking it?!?! You mean delete all 1GB of it and start over? Or can I
just delete the SNAPSHOT directory and rebuild it?

Q

On Wed, Sep 16, 2009 at 4:37 PM, Todd Thiessen  wrote:
> Perhaps the metadata is corrupt. Have you tried nuking your local?
>
> If that doesn't work, perhaps there is corruption on the java.net side
>
> ---
> Todd Thiessen
>
>
>> -Original Message-
>> From: Quintin Beukes [mailto:quin...@skywalk.co.za]
>> Sent: Wednesday, September 16, 2009 10:31 AM
>> To: Maven Users List
>> Subject: Re: Failing to Fetch Snapshots with Every Build -
>> How to disable undesired Behaviour
>>
>> Could it be because it's a snapshot, the file isn't there,
>> and since it keeps NOT being found it never marks it as
>> updated, and thus keeps trying.
>>
>> Q
>>
>> On Wed, Sep 16, 2009 at 4:27 PM, Quintin Beukes
>>  wrote:
>> > No. I even tried to disable checking for updates. It keeps
>> doing this
>> > with every build. The exact same set of files.
>> >
>> > Q
>> >
>> > On Wed, Sep 16, 2009 at 2:37 PM, Edelson, Justin
>> >  wrote:
>> >> By default, Maven will only check for updated snapshots
>> once per day.
>> >> Are you overriding this in the settings.xml file?
>> >>
>> >> Justin
>> >>
>> >> On Sep 16, 2009, at 4:09 AM, "Quintin Beukes"
>>  wrote:
>> >>
>> >>> Everytime I build I get the following (and a couple of others,
>> >>> including JARs, but all for the same project, ie.
>> >>> openejb-3.1.2-SNAPSHOT).
>> >>>
>> >>> [resources:resources]
>> >>> [WARNING] Using platform encoding (UTF-8 actually) to
>> copy filtered
>> >>> resources, i.e. build is platform dependent!
>> >>> Copying 5 resources
>> >>> Downloading:
>> >>>
>> http://download.java.net/maven/2/org/apache/openejb/openejb-client/3
>> >>> .1.2-SNAPSHOT/openejb-client-3.1.2-SNAPSHOT.pom
>> >>> Unable to find resource
>> >>> 'org.apache.openejb:openejb-client:pom:3.1.2-SNAPSHOT' in
>> repository
>> >>> java.net2 (http://download.java.net/maven/2)
>> >>> Downloading:
>> >>>
>> http://download.java.net/maven/2/org/apache/openejb/server/3.1.2-SNA
>> >>> PSHOT/server-3.1.2-SNAPSHOT.pom Unable to find resource
>> >>> 'org.apache.openejb:server:pom:3.1.2-SNAPSHOT'
>> >>> in repository java.net2 (http://download.java.net/maven/2)
>> >>> Downloading:
>> >>>
>> http://download.java.net/maven/2/org/apache/openejb/openejb/3.1.2-SN
>> >>> APSHOT/openejb-3.1.2-SNAPSHOT.pom
>> >>> Unable to find resource
>> >>> 'org.apache.openejb:openejb:pom:3.1.2-SNAPSHOT' in repository
>> >>> java.net2 (http://download.java.net/maven/2)
>> >>> snapshot org.apache.openejb:openejb-core:3.1.2-SNAPSHOT: checking
>> >>> for updates from java.net2
>> >>> Downloading:
>> >>>
>> http://download.java.net/maven/2/org/apache/openejb/openejb-core/3.1
>> >>> .2-SNAPSHOT/openejb-core-3.1.2-SNAPSHOT.pom
>> >>> Unable to find resource
>> >>> 'org.apache.openejb:openejb-core:pom:3.1.2-SNAPSHOT' in repository
>> >>> java.net2 (http://download.java.net/maven/2)
>> >>> Downloading:
>> >>>
>> http://download.java.net/maven/2/org/apache/openejb/container/3.1.2-
>> >>> SNAPSHOT/container-3.1.2-SNAPSHOT.pom
>> >>> Unable to find resource
>> >>> 'org.apache.openejb:container:pom:3.1.2-SNAPSHOT' in repository
>> >>> java.net2 (http://download.java.net/maven/2)
>> >>> [compiler:compile]
>> >>>
>> >>> I HAVE these files in my repository, as can be seen with
>> the following ls:
>> >>> quin...@quintin-desktop 3.1.2-SNAPSHOT $ ls -l
>> >>> ~/.m2/repository/org/apache/openejb/openejb-core/3.1.2-SNAPSHOT/
>> >>> total 2916
>> >>> -rw-r--r-- 1 quintin quintin     366 2009-09-10 16:39
>> >>> maven-metadata-apache.snapshots.xml
>> >>> -rw-r--r-- 1 quintin quintin      41 2009-09-10 16:39
>> >>> maven-metadata-apache.snapshots.xml.sha1
>> >>> -rw-r--r-- 1 quintin quintin     178 2009-09-10 16:39
>> >>> maven-metadata-codehaus.snapshots.xml
>> >>> -rw-r--r-- 1 quintin quintin     178 2009-09-16 10:04
>> >>> maven-metadata-java.net2.xml
>> >>> -rw-r--r-- 1 quintin quintin 1453091 2009-09-10 16:41
>> >>> openejb-core-3.1.2-20090827.210255-8.jar
>> >>> -rw-r--r-- 1 quintin quintin      40 2009-09-10 16:41
>> >>> openejb-core-3.1.2-20090827.210255-8.jar.sha1
>> >>> -rw-r--r-- 1 quintin quintin   14528 2009-09-10 16:39
>> >>> openejb-core-3.1.2-20090827.210255-8.pom
>> >>> -rw-r--r-- 1 quintin quintin      40 2009-09-10 16:39
>> >>> openejb-core-3.1.2-20090827.210255-8.pom.sha1
>> >>> -rw-r--r-- 1 quintin quintin 1453091 2009-09-10 16:41
>> >>> openejb-core-3.1.2-SNAPSHOT.jar
>> >>> -rw-r--r-- 1 quintin quintin     104 2009-09-15 15:56
>> >>> openejb-core-3.1.2-SNAPSHOT-javadoc.jar.lastUpdated
>> >>> -rw-r--r-- 1 quintin quintin   14528 2009-09-10 16:39
>> >>> openejb-core-3.1.2-SNAPSHOT.pom
>> >>> -rw-r--r-- 1 quintin quintin     104 2009-09-15 15:57
>> >>> openejb-core-3.1.2-SNAPSHOT-sources.jar.lastUpdated
>> >>> -rw-r--r-- 1 quintin quintin     145 2009-09-16 10:03
>> >>> resolver-status.properties
>> >>>
>> >>> How can I disable this? I don't want to run in offline
>> mode, because
>> >>> I want leg

RE: Failing to Fetch Snapshots with Every Build - How to disable undesired Behaviour

2009-09-16 Thread Todd Thiessen
Perhaps the metadata is corrupt. Have you tried nuking your local?

If that doesn't work, perhaps there is corruption on the java.net side

---
Todd Thiessen
 

> -Original Message-
> From: Quintin Beukes [mailto:quin...@skywalk.co.za] 
> Sent: Wednesday, September 16, 2009 10:31 AM
> To: Maven Users List
> Subject: Re: Failing to Fetch Snapshots with Every Build - 
> How to disable undesired Behaviour
> 
> Could it be because it's a snapshot, the file isn't there, 
> and since it keeps NOT being found it never marks it as 
> updated, and thus keeps trying.
> 
> Q
> 
> On Wed, Sep 16, 2009 at 4:27 PM, Quintin Beukes 
>  wrote:
> > No. I even tried to disable checking for updates. It keeps 
> doing this 
> > with every build. The exact same set of files.
> >
> > Q
> >
> > On Wed, Sep 16, 2009 at 2:37 PM, Edelson, Justin 
> >  wrote:
> >> By default, Maven will only check for updated snapshots 
> once per day. 
> >> Are you overriding this in the settings.xml file?
> >>
> >> Justin
> >>
> >> On Sep 16, 2009, at 4:09 AM, "Quintin Beukes" 
>  wrote:
> >>
> >>> Everytime I build I get the following (and a couple of others, 
> >>> including JARs, but all for the same project, ie.
> >>> openejb-3.1.2-SNAPSHOT).
> >>>
> >>> [resources:resources]
> >>> [WARNING] Using platform encoding (UTF-8 actually) to 
> copy filtered 
> >>> resources, i.e. build is platform dependent!
> >>> Copying 5 resources
> >>> Downloading:
> >>> 
> http://download.java.net/maven/2/org/apache/openejb/openejb-client/3
> >>> .1.2-SNAPSHOT/openejb-client-3.1.2-SNAPSHOT.pom
> >>> Unable to find resource
> >>> 'org.apache.openejb:openejb-client:pom:3.1.2-SNAPSHOT' in 
> repository
> >>> java.net2 (http://download.java.net/maven/2)
> >>> Downloading:
> >>> 
> http://download.java.net/maven/2/org/apache/openejb/server/3.1.2-SNA
> >>> PSHOT/server-3.1.2-SNAPSHOT.pom Unable to find resource 
> >>> 'org.apache.openejb:server:pom:3.1.2-SNAPSHOT'
> >>> in repository java.net2 (http://download.java.net/maven/2)
> >>> Downloading:
> >>> 
> http://download.java.net/maven/2/org/apache/openejb/openejb/3.1.2-SN
> >>> APSHOT/openejb-3.1.2-SNAPSHOT.pom
> >>> Unable to find resource
> >>> 'org.apache.openejb:openejb:pom:3.1.2-SNAPSHOT' in repository
> >>> java.net2 (http://download.java.net/maven/2)
> >>> snapshot org.apache.openejb:openejb-core:3.1.2-SNAPSHOT: checking 
> >>> for updates from java.net2
> >>> Downloading:
> >>> 
> http://download.java.net/maven/2/org/apache/openejb/openejb-core/3.1
> >>> .2-SNAPSHOT/openejb-core-3.1.2-SNAPSHOT.pom
> >>> Unable to find resource
> >>> 'org.apache.openejb:openejb-core:pom:3.1.2-SNAPSHOT' in repository
> >>> java.net2 (http://download.java.net/maven/2)
> >>> Downloading:
> >>> 
> http://download.java.net/maven/2/org/apache/openejb/container/3.1.2-
> >>> SNAPSHOT/container-3.1.2-SNAPSHOT.pom
> >>> Unable to find resource
> >>> 'org.apache.openejb:container:pom:3.1.2-SNAPSHOT' in repository
> >>> java.net2 (http://download.java.net/maven/2)
> >>> [compiler:compile]
> >>>
> >>> I HAVE these files in my repository, as can be seen with 
> the following ls:
> >>> quin...@quintin-desktop 3.1.2-SNAPSHOT $ ls -l 
> >>> ~/.m2/repository/org/apache/openejb/openejb-core/3.1.2-SNAPSHOT/
> >>> total 2916
> >>> -rw-r--r-- 1 quintin quintin     366 2009-09-10 16:39 
> >>> maven-metadata-apache.snapshots.xml
> >>> -rw-r--r-- 1 quintin quintin      41 2009-09-10 16:39
> >>> maven-metadata-apache.snapshots.xml.sha1
> >>> -rw-r--r-- 1 quintin quintin     178 2009-09-10 16:39 
> >>> maven-metadata-codehaus.snapshots.xml
> >>> -rw-r--r-- 1 quintin quintin     178 2009-09-16 10:04 
> >>> maven-metadata-java.net2.xml
> >>> -rw-r--r-- 1 quintin quintin 1453091 2009-09-10 16:41 
> >>> openejb-core-3.1.2-20090827.210255-8.jar
> >>> -rw-r--r-- 1 quintin quintin      40 2009-09-10 16:41
> >>> openejb-core-3.1.2-20090827.210255-8.jar.sha1
> >>> -rw-r--r-- 1 quintin quintin   14528 2009-09-10 16:39 
> >>> openejb-core-3.1.2-20090827.210255-8.pom
> >>> -rw-r--r-- 1 quintin quintin      40 2009-09-10 16:39
> >>> openejb-core-3.1.2-20090827.210255-8.pom.sha1
> >>> -rw-r--r-- 1 quintin quintin 1453091 2009-09-10 16:41 
> >>> openejb-core-3.1.2-SNAPSHOT.jar
> >>> -rw-r--r-- 1 quintin quintin     104 2009-09-15 15:56 
> >>> openejb-core-3.1.2-SNAPSHOT-javadoc.jar.lastUpdated
> >>> -rw-r--r-- 1 quintin quintin   14528 2009-09-10 16:39 
> >>> openejb-core-3.1.2-SNAPSHOT.pom
> >>> -rw-r--r-- 1 quintin quintin     104 2009-09-15 15:57 
> >>> openejb-core-3.1.2-SNAPSHOT-sources.jar.lastUpdated
> >>> -rw-r--r-- 1 quintin quintin     145 2009-09-16 10:03 
> >>> resolver-status.properties
> >>>
> >>> How can I disable this? I don't want to run in offline 
> mode, because 
> >>> I want legitimate dependency fetches to occur. The 
> biggest hassle is 
> >>> that it does this with every build, every clean, every test. And 
> >>> this makes my tests run longer. When I run in offline mode it 
> >>> finished execution in as little as 3 seconds, depending 

Re: Failing to Fetch Snapshots with Every Build - How to disable undesired Behaviour

2009-09-16 Thread Quintin Beukes
Could it be because it's a snapshot, the file isn't there, and since
it keeps NOT being found it never marks it as updated, and thus keeps
trying.

Q

On Wed, Sep 16, 2009 at 4:27 PM, Quintin Beukes  wrote:
> No. I even tried to disable checking for updates. It keeps doing this
> with every build. The exact same set of files.
>
> Q
>
> On Wed, Sep 16, 2009 at 2:37 PM, Edelson, Justin
>  wrote:
>> By default, Maven will only check for updated snapshots once per day. Are
>> you overriding this in the settings.xml file?
>>
>> Justin
>>
>> On Sep 16, 2009, at 4:09 AM, "Quintin Beukes"  wrote:
>>
>>> Everytime I build I get the following (and a couple of others,
>>> including JARs, but all for the same project, ie.
>>> openejb-3.1.2-SNAPSHOT).
>>>
>>> [resources:resources]
>>> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
>>> resources, i.e. build is platform dependent!
>>> Copying 5 resources
>>> Downloading:
>>> http://download.java.net/maven/2/org/apache/openejb/openejb-client/3.1.2-SNAPSHOT/openejb-client-3.1.2-SNAPSHOT.pom
>>> Unable to find resource
>>> 'org.apache.openejb:openejb-client:pom:3.1.2-SNAPSHOT' in repository
>>> java.net2 (http://download.java.net/maven/2)
>>> Downloading:
>>> http://download.java.net/maven/2/org/apache/openejb/server/3.1.2-SNAPSHOT/server-3.1.2-SNAPSHOT.pom
>>> Unable to find resource 'org.apache.openejb:server:pom:3.1.2-SNAPSHOT'
>>> in repository java.net2 (http://download.java.net/maven/2)
>>> Downloading:
>>> http://download.java.net/maven/2/org/apache/openejb/openejb/3.1.2-SNAPSHOT/openejb-3.1.2-SNAPSHOT.pom
>>> Unable to find resource
>>> 'org.apache.openejb:openejb:pom:3.1.2-SNAPSHOT' in repository
>>> java.net2 (http://download.java.net/maven/2)
>>> snapshot org.apache.openejb:openejb-core:3.1.2-SNAPSHOT: checking for
>>> updates from java.net2
>>> Downloading:
>>> http://download.java.net/maven/2/org/apache/openejb/openejb-core/3.1.2-SNAPSHOT/openejb-core-3.1.2-SNAPSHOT.pom
>>> Unable to find resource
>>> 'org.apache.openejb:openejb-core:pom:3.1.2-SNAPSHOT' in repository
>>> java.net2 (http://download.java.net/maven/2)
>>> Downloading:
>>> http://download.java.net/maven/2/org/apache/openejb/container/3.1.2-SNAPSHOT/container-3.1.2-SNAPSHOT.pom
>>> Unable to find resource
>>> 'org.apache.openejb:container:pom:3.1.2-SNAPSHOT' in repository
>>> java.net2 (http://download.java.net/maven/2)
>>> [compiler:compile]
>>>
>>> I HAVE these files in my repository, as can be seen with the following ls:
>>> quin...@quintin-desktop 3.1.2-SNAPSHOT $ ls -l
>>> ~/.m2/repository/org/apache/openejb/openejb-core/3.1.2-SNAPSHOT/
>>> total 2916
>>> -rw-r--r-- 1 quintin quintin     366 2009-09-10 16:39
>>> maven-metadata-apache.snapshots.xml
>>> -rw-r--r-- 1 quintin quintin      41 2009-09-10 16:39
>>> maven-metadata-apache.snapshots.xml.sha1
>>> -rw-r--r-- 1 quintin quintin     178 2009-09-10 16:39
>>> maven-metadata-codehaus.snapshots.xml
>>> -rw-r--r-- 1 quintin quintin     178 2009-09-16 10:04
>>> maven-metadata-java.net2.xml
>>> -rw-r--r-- 1 quintin quintin 1453091 2009-09-10 16:41
>>> openejb-core-3.1.2-20090827.210255-8.jar
>>> -rw-r--r-- 1 quintin quintin      40 2009-09-10 16:41
>>> openejb-core-3.1.2-20090827.210255-8.jar.sha1
>>> -rw-r--r-- 1 quintin quintin   14528 2009-09-10 16:39
>>> openejb-core-3.1.2-20090827.210255-8.pom
>>> -rw-r--r-- 1 quintin quintin      40 2009-09-10 16:39
>>> openejb-core-3.1.2-20090827.210255-8.pom.sha1
>>> -rw-r--r-- 1 quintin quintin 1453091 2009-09-10 16:41
>>> openejb-core-3.1.2-SNAPSHOT.jar
>>> -rw-r--r-- 1 quintin quintin     104 2009-09-15 15:56
>>> openejb-core-3.1.2-SNAPSHOT-javadoc.jar.lastUpdated
>>> -rw-r--r-- 1 quintin quintin   14528 2009-09-10 16:39
>>> openejb-core-3.1.2-SNAPSHOT.pom
>>> -rw-r--r-- 1 quintin quintin     104 2009-09-15 15:57
>>> openejb-core-3.1.2-SNAPSHOT-sources.jar.lastUpdated
>>> -rw-r--r-- 1 quintin quintin     145 2009-09-16 10:03
>>> resolver-status.properties
>>>
>>> How can I disable this? I don't want to run in offline mode, because I
>>> want legitimate dependency fetches to occur. The biggest hassle is
>>> that it does this with every build, every clean, every test. And this
>>> makes my tests run longer. When I run in offline mode it finished
>>> execution in as little as 3 seconds, depending on what has to happen.
>>> But with these fetches it's a minimum of 30 seconds everytime.
>>>
>>> Thanks,
>>> --
>>> Quintin Beukes
>>>
>>> -
>>> 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
>>
>>
>
>
>
> --
> Quintin Beukes
>



-- 
Quintin Beukes

-
To unsubscribe, e-mail: users-u

Re: Failing to Fetch Snapshots with Every Build - How to disable undesired Behaviour

2009-09-16 Thread Quintin Beukes
No. I even tried to disable checking for updates. It keeps doing this
with every build. The exact same set of files.

Q

On Wed, Sep 16, 2009 at 2:37 PM, Edelson, Justin
 wrote:
> By default, Maven will only check for updated snapshots once per day. Are
> you overriding this in the settings.xml file?
>
> Justin
>
> On Sep 16, 2009, at 4:09 AM, "Quintin Beukes"  wrote:
>
>> Everytime I build I get the following (and a couple of others,
>> including JARs, but all for the same project, ie.
>> openejb-3.1.2-SNAPSHOT).
>>
>> [resources:resources]
>> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
>> resources, i.e. build is platform dependent!
>> Copying 5 resources
>> Downloading:
>> http://download.java.net/maven/2/org/apache/openejb/openejb-client/3.1.2-SNAPSHOT/openejb-client-3.1.2-SNAPSHOT.pom
>> Unable to find resource
>> 'org.apache.openejb:openejb-client:pom:3.1.2-SNAPSHOT' in repository
>> java.net2 (http://download.java.net/maven/2)
>> Downloading:
>> http://download.java.net/maven/2/org/apache/openejb/server/3.1.2-SNAPSHOT/server-3.1.2-SNAPSHOT.pom
>> Unable to find resource 'org.apache.openejb:server:pom:3.1.2-SNAPSHOT'
>> in repository java.net2 (http://download.java.net/maven/2)
>> Downloading:
>> http://download.java.net/maven/2/org/apache/openejb/openejb/3.1.2-SNAPSHOT/openejb-3.1.2-SNAPSHOT.pom
>> Unable to find resource
>> 'org.apache.openejb:openejb:pom:3.1.2-SNAPSHOT' in repository
>> java.net2 (http://download.java.net/maven/2)
>> snapshot org.apache.openejb:openejb-core:3.1.2-SNAPSHOT: checking for
>> updates from java.net2
>> Downloading:
>> http://download.java.net/maven/2/org/apache/openejb/openejb-core/3.1.2-SNAPSHOT/openejb-core-3.1.2-SNAPSHOT.pom
>> Unable to find resource
>> 'org.apache.openejb:openejb-core:pom:3.1.2-SNAPSHOT' in repository
>> java.net2 (http://download.java.net/maven/2)
>> Downloading:
>> http://download.java.net/maven/2/org/apache/openejb/container/3.1.2-SNAPSHOT/container-3.1.2-SNAPSHOT.pom
>> Unable to find resource
>> 'org.apache.openejb:container:pom:3.1.2-SNAPSHOT' in repository
>> java.net2 (http://download.java.net/maven/2)
>> [compiler:compile]
>>
>> I HAVE these files in my repository, as can be seen with the following ls:
>> quin...@quintin-desktop 3.1.2-SNAPSHOT $ ls -l
>> ~/.m2/repository/org/apache/openejb/openejb-core/3.1.2-SNAPSHOT/
>> total 2916
>> -rw-r--r-- 1 quintin quintin     366 2009-09-10 16:39
>> maven-metadata-apache.snapshots.xml
>> -rw-r--r-- 1 quintin quintin      41 2009-09-10 16:39
>> maven-metadata-apache.snapshots.xml.sha1
>> -rw-r--r-- 1 quintin quintin     178 2009-09-10 16:39
>> maven-metadata-codehaus.snapshots.xml
>> -rw-r--r-- 1 quintin quintin     178 2009-09-16 10:04
>> maven-metadata-java.net2.xml
>> -rw-r--r-- 1 quintin quintin 1453091 2009-09-10 16:41
>> openejb-core-3.1.2-20090827.210255-8.jar
>> -rw-r--r-- 1 quintin quintin      40 2009-09-10 16:41
>> openejb-core-3.1.2-20090827.210255-8.jar.sha1
>> -rw-r--r-- 1 quintin quintin   14528 2009-09-10 16:39
>> openejb-core-3.1.2-20090827.210255-8.pom
>> -rw-r--r-- 1 quintin quintin      40 2009-09-10 16:39
>> openejb-core-3.1.2-20090827.210255-8.pom.sha1
>> -rw-r--r-- 1 quintin quintin 1453091 2009-09-10 16:41
>> openejb-core-3.1.2-SNAPSHOT.jar
>> -rw-r--r-- 1 quintin quintin     104 2009-09-15 15:56
>> openejb-core-3.1.2-SNAPSHOT-javadoc.jar.lastUpdated
>> -rw-r--r-- 1 quintin quintin   14528 2009-09-10 16:39
>> openejb-core-3.1.2-SNAPSHOT.pom
>> -rw-r--r-- 1 quintin quintin     104 2009-09-15 15:57
>> openejb-core-3.1.2-SNAPSHOT-sources.jar.lastUpdated
>> -rw-r--r-- 1 quintin quintin     145 2009-09-16 10:03
>> resolver-status.properties
>>
>> How can I disable this? I don't want to run in offline mode, because I
>> want legitimate dependency fetches to occur. The biggest hassle is
>> that it does this with every build, every clean, every test. And this
>> makes my tests run longer. When I run in offline mode it finished
>> execution in as little as 3 seconds, depending on what has to happen.
>> But with these fetches it's a minimum of 30 seconds everytime.
>>
>> Thanks,
>> --
>> Quintin Beukes
>>
>> -
>> 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
>
>



-- 
Quintin Beukes

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



Re: NSIS with maven and exe artifacts.

2009-09-16 Thread Ken Liu
Julien -

When you did this, did you encounter a problem where test dependencies (e.g.
Junit) were also copied?

Ken

On Tue, Sep 15, 2009 at 2:20 AM, Julien Graglia wrote:

> Le lundi 14 septembre 2009 à 16:17 -0400, James Russo a écrit :
> > Hello Julien,
> >
> > In your ncsetup.nsi, how do you reference the artifacts to be
> > included with the .exe build?
> My installer artifact is of type pom and depends of my war. Then I use
> the assembly plugin to retrieve dependencies and output them in folders.
> Ex :
>
>
>
>libs
>provided
>
>xxx:*
>
>
> 
>
>libs
>
>:*
>
>
> 
>
>webapps
>
>
> ${artifact.artifactId}.${artifact.extension}
>runtime
>
> Julien Graglia
> NetCeler
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: NSIS with maven and exe artifacts.

2009-09-16 Thread Ken Liu
I was using antrun before but realized that the maven-exec plugin is better
because maven is executing nsis directly instead of via an ant build.xml.

Ken

On Mon, Sep 14, 2009 at 10:55 AM, James Russo  wrote:

> Will check those out. Thanks Stephen.
>
> -jr
>
>
> Stephen Connolly wrote:
>
>> try antrun to package and then build-helper to attach the generated
>> artifact to the reactor
>>
>> 2009/9/14 James Russo :
>>
>>
>>> Hello,
>>>I have a module where I would like to take the artifacts producted by
>>> a
>>> few other modules and combine them into an .EXE using NSIS. I see that
>>> there
>>> is a nsis for maven 1.x, but I don't see anything for 2.x? Anyone done
>>> this
>>> before care to explain how they accomplished it?
>>>
>>> Basically would like to have everything I need for NSIS in this module
>>> (other files, readme,  configuration, etc) and then have it grab
>>> dependencies from other modules include it in NSIS and generate EXE.
>>> Ultimately I'd like to deploy this .exe to archiva.
>>>
>>> thanks,
>>>
>>> -jr
>>>
>>> -
>>> 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
>
>


Generate pdf from confluence page during build?

2009-09-16 Thread Wim Deblauwe
Hi,

I want to export a confluence page (or pages if possible) when I do a maven
build. Currently, the pdf export is checked into SVN, but we have to
remember to manually update the file each time something has changed to
Confluence. It would be great if we could automate this.

is there anybody who already tried this or knows how to do it?

regards,

Wim


Re: Failing to Fetch Snapshots with Every Build - How to disable undesired Behaviour

2009-09-16 Thread Edelson, Justin
By default, Maven will only check for updated snapshots once per day.  
Are you overriding this in the settings.xml file?


Justin

On Sep 16, 2009, at 4:09 AM, "Quintin Beukes"   
wrote:



Everytime I build I get the following (and a couple of others,
including JARs, but all for the same project, ie.
openejb-3.1.2-SNAPSHOT).

[resources:resources]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
Copying 5 resources
Downloading: 
http://download.java.net/maven/2/org/apache/openejb/openejb-client/3.1.2-SNAPSHOT/openejb-client-3.1.2-SNAPSHOT.pom
Unable to find resource
'org.apache.openejb:openejb-client:pom:3.1.2-SNAPSHOT' in repository
java.net2 (http://download.java.net/maven/2)
Downloading: 
http://download.java.net/maven/2/org/apache/openejb/server/3.1.2-SNAPSHOT/server-3.1.2-SNAPSHOT.pom
Unable to find resource 'org.apache.openejb:server:pom:3.1.2-SNAPSHOT'
in repository java.net2 (http://download.java.net/maven/2)
Downloading: 
http://download.java.net/maven/2/org/apache/openejb/openejb/3.1.2-SNAPSHOT/openejb-3.1.2-SNAPSHOT.pom
Unable to find resource
'org.apache.openejb:openejb:pom:3.1.2-SNAPSHOT' in repository
java.net2 (http://download.java.net/maven/2)
snapshot org.apache.openejb:openejb-core:3.1.2-SNAPSHOT: checking for
updates from java.net2
Downloading: 
http://download.java.net/maven/2/org/apache/openejb/openejb-core/3.1.2-SNAPSHOT/openejb-core-3.1.2-SNAPSHOT.pom
Unable to find resource
'org.apache.openejb:openejb-core:pom:3.1.2-SNAPSHOT' in repository
java.net2 (http://download.java.net/maven/2)
Downloading: 
http://download.java.net/maven/2/org/apache/openejb/container/3.1.2-SNAPSHOT/container-3.1.2-SNAPSHOT.pom
Unable to find resource
'org.apache.openejb:container:pom:3.1.2-SNAPSHOT' in repository
java.net2 (http://download.java.net/maven/2)
[compiler:compile]

I HAVE these files in my repository, as can be seen with the  
following ls:

quin...@quintin-desktop 3.1.2-SNAPSHOT $ ls -l
~/.m2/repository/org/apache/openejb/openejb-core/3.1.2-SNAPSHOT/
total 2916
-rw-r--r-- 1 quintin quintin 366 2009-09-10 16:39
maven-metadata-apache.snapshots.xml
-rw-r--r-- 1 quintin quintin  41 2009-09-10 16:39
maven-metadata-apache.snapshots.xml.sha1
-rw-r--r-- 1 quintin quintin 178 2009-09-10 16:39
maven-metadata-codehaus.snapshots.xml
-rw-r--r-- 1 quintin quintin 178 2009-09-16 10:04
maven-metadata-java.net2.xml
-rw-r--r-- 1 quintin quintin 1453091 2009-09-10 16:41
openejb-core-3.1.2-20090827.210255-8.jar
-rw-r--r-- 1 quintin quintin  40 2009-09-10 16:41
openejb-core-3.1.2-20090827.210255-8.jar.sha1
-rw-r--r-- 1 quintin quintin   14528 2009-09-10 16:39
openejb-core-3.1.2-20090827.210255-8.pom
-rw-r--r-- 1 quintin quintin  40 2009-09-10 16:39
openejb-core-3.1.2-20090827.210255-8.pom.sha1
-rw-r--r-- 1 quintin quintin 1453091 2009-09-10 16:41
openejb-core-3.1.2-SNAPSHOT.jar
-rw-r--r-- 1 quintin quintin 104 2009-09-15 15:56
openejb-core-3.1.2-SNAPSHOT-javadoc.jar.lastUpdated
-rw-r--r-- 1 quintin quintin   14528 2009-09-10 16:39
openejb-core-3.1.2-SNAPSHOT.pom
-rw-r--r-- 1 quintin quintin 104 2009-09-15 15:57
openejb-core-3.1.2-SNAPSHOT-sources.jar.lastUpdated
-rw-r--r-- 1 quintin quintin 145 2009-09-16 10:03 resolver- 
status.properties


How can I disable this? I don't want to run in offline mode, because I
want legitimate dependency fetches to occur. The biggest hassle is
that it does this with every build, every clean, every test. And this
makes my tests run longer. When I run in offline mode it finished
execution in as little as 3 seconds, depending on what has to happen.
But with these fetches it's a minimum of 30 seconds everytime.

Thanks,
--
Quintin Beukes

-
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: cargo:deploy fails to find artifact when run on parent project.

2009-09-16 Thread James Russo
Thanks! Will do.  I still really haven't wrapped my head around what all 
is possible with profiles, etc.


-jr

Anders Hammar wrote:

Yes. Was that a trick question? :-)
You just define that in the plugins element of the profile. I believe there
is something similar in the release profile that exists in the super pom.
Have a look at that or google.

/Anders

On Tue, Sep 15, 2009 at 22:40, James Russo  wrote:

  

Thanks. I found and read it. In my situation I really am doing it to just
allow hudson to deploy it to the local "development" instance for others to
test against. So that we always have a snapshot up and running we can poke
at..

What I have done is just added the cargo:deploy to the webapp pom and then
just linked that goal to the deploy phase. so, now in hudson I go deploy and
when it gets
to that module (the webapp), it simply does the right thing and deploys it.

Is there any way to include/exclude a plugin by specifying a profile? ex:
can I have a hudson profile which attaches the cargo:deploy to the deploy
phase so when calling deploy without that profile activated it won't attempt
the cargo deploy?

-jr


Anders Hammar wrote:



There was a similar thread (however for glassfish) today. Have a look at
my
answer there about having a separate project for the deployment to
glassfish/tomcat.

/Anders

On Tue, Sep 15, 2009 at 21:18, James Russo  wrote:



  

Hello,

 I'm likely just not going this the right way.. Have a project with 5
modules or so, one of which is a war. I'd like to be able to use
cargo:deploy on the parent project and have it work to deploy the war.
The
problem is that it stops at my first module saying "artifact xyz isn't a
dependency of common".. Which is true.

The reason for this is I'd like to have hudson automatically deploy (via
maven) the latest war to tomcat.  Seems like tomcat:deploy automatically
skips modules where the artifact is not "war", not sure how I could
achieve
the same thing using cargo.

-jr

-
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: One pom file generating 2 artifacts

2009-09-16 Thread Alexander Vaysberg

Hi,

yes look in jar plugin: - 
http://maven.apache.org/plugins/maven-jar-plugin/usage.html.
It is in "How to create an additional attached jar artifact from the 
project".


Valentin Jacquemin schrieb:

Hi all,

Is it possible to use one pom file that generates 2 artifacts?
I have one pom taking care of creating an ejb artifact but I'd like to
produce also a jar library containing every interfaces declaration of my ejb
to be able to include it in my war file How can I do that?


Thanks in advance,


Valentin Jacquemin

  



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



Re: One pom file generating 2 artifacts

2009-09-16 Thread Anders Hammar
You can use classifier for that. However, I very seldom recommend using one
project to produce several artifacts (other than sources and javadoc jars,
and such).
The main reason is that you still only have one pom. This means that you
will have the same dependencies for all artifacts, which screws up the
dependency "magic" of Maven. The user of your artifacts will not enjoy the
full beauty of it.
My advice, go with two projects. One projects is for the api and the other
is for the impl. The way, in my opinion, to modularize today.

/Anders

On Wed, Sep 16, 2009 at 11:49, Valentin Jacquemin wrote:

> Hi all,
>
> Is it possible to use one pom file that generates 2 artifacts?
> I have one pom taking care of creating an ejb artifact but I'd like to
> produce also a jar library containing every interfaces declaration of my
> ejb
> to be able to include it in my war file How can I do that?
>
>
> Thanks in advance,
>
>
> Valentin Jacquemin
>


Re: One pom file generating 2 artifacts

2009-09-16 Thread Aleksey Didik

Hello,

maven-ejb-plugin has possibility to create client jar with all what you 
need.


http://maven.apache.org/plugins/maven-ejb-plugin/examples/generating-ejb-client.html

If you want to create more then one artifact from one module, read about 
maven-assembly-plugin 
http://maven.apache.org/plugins/maven-assembly-plugin/index.html


Best regards,
Aleksey Didik


Valentin Jacquemin пишет:

Hi all,

Is it possible to use one pom file that generates 2 artifacts?
I have one pom taking care of creating an ejb artifact but I'd like to
produce also a jar library containing every interfaces declaration of my ejb
to be able to include it in my war file How can I do that?


Thanks in advance,


Valentin Jacquemin

  


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



One pom file generating 2 artifacts

2009-09-16 Thread Valentin Jacquemin
Hi all,

Is it possible to use one pom file that generates 2 artifacts?
I have one pom taking care of creating an ejb artifact but I'd like to
produce also a jar library containing every interfaces declaration of my ejb
to be able to include it in my war file How can I do that?


Thanks in advance,


Valentin Jacquemin


Re: No primary artifact to install ?

2009-09-16 Thread Wim Deblauwe
It seems the problem was not related to assembly, but to flex mojos. Thank
you for your help.

regards,

Wim

2009/9/16 Aleksey Didik 

> Hi,
> because you use _aseembly:single_ instead of _assembly:assembly_.
>
> Documentation of maven-assembly-plugin, goal single :
>
>  Assemble an application bundle or distribution from an assembly
>>> descriptor. This goal is suitable either for binding to the lifecycle or
>>> calling directly from the command line (provided all >> required files are
>>> available before the build starts, or are produced by another goal specified
>>> before this one on the command line).
>>>
>>
>
> Change _single_ to  _assembly_ and try again.
>
>
>
> Best regards,
>
> Aleksey Didik
>
>
>
>
> Wim Deblauwe ?:
>
>  Hi,
>>
>> I have a maven project with 'swf' packaging. I also have the assembly
>> plugin
>> configured as follows:
>>
>>  
>>  org.apache.maven.plugins
>>  maven-assembly-plugin
>>   
>> 
>>   assembly
>>   
>>  single
>>   
>>   package
>>   
>>
>>
>> src/main/assembly/descriptor.xml
>>
>>
>>   
>> 
>>  
>>
>> When I do a 'mvn clean install', the swf is not generated and I see the
>> following info message:
>>
>> [INFO] [install:install {execution: default-install}]
>> [INFO] No primary artifact to install, installing attached artifacts
>> instead.
>>
>> Why is my swf no longer being installed?
>>
>> regards,
>>
>> Wim
>>
>>
>>
>


Re: No primary artifact to install ?

2009-09-16 Thread Aleksey Didik

Hi,
because you use _aseembly:single_ instead of _assembly:assembly_.

Documentation of maven-assembly-plugin, goal single :


Assemble an application bundle or distribution from an assembly descriptor. This goal 
is suitable either for binding to the lifecycle or calling directly from the command 
line (provided all >> required files are available before the build starts, or 
are produced by another goal specified before this one on the command line).



Change _single_ to  _assembly_ and try again.



Best regards,

Aleksey Didik




Wim Deblauwe ?:

Hi,

I have a maven project with 'swf' packaging. I also have the assembly plugin
configured as follows:

 
  org.apache.maven.plugins
  maven-assembly-plugin
   
 
   assembly
   
  single
   
   package
   


src/main/assembly/descriptor.xml


   
 
 

When I do a 'mvn clean install', the swf is not generated and I see the
following info message:

[INFO] [install:install {execution: default-install}]
[INFO] No primary artifact to install, installing attached artifacts
instead.

Why is my swf no longer being installed?

regards,

Wim

  


No primary artifact to install ?

2009-09-16 Thread Wim Deblauwe
Hi,

I have a maven project with 'swf' packaging. I also have the assembly plugin
configured as follows:

 
  org.apache.maven.plugins
  maven-assembly-plugin
   
 
   assembly
   
  single
   
   package
   


src/main/assembly/descriptor.xml


   
 
 

When I do a 'mvn clean install', the swf is not generated and I see the
following info message:

[INFO] [install:install {execution: default-install}]
[INFO] No primary artifact to install, installing attached artifacts
instead.

Why is my swf no longer being installed?

regards,

Wim


Failing to Fetch Snapshots with Every Build - How to disable undesired Behaviour

2009-09-16 Thread Quintin Beukes
Everytime I build I get the following (and a couple of others,
including JARs, but all for the same project, ie.
openejb-3.1.2-SNAPSHOT).

[resources:resources]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
Copying 5 resources
Downloading: 
http://download.java.net/maven/2/org/apache/openejb/openejb-client/3.1.2-SNAPSHOT/openejb-client-3.1.2-SNAPSHOT.pom
Unable to find resource
'org.apache.openejb:openejb-client:pom:3.1.2-SNAPSHOT' in repository
java.net2 (http://download.java.net/maven/2)
Downloading: 
http://download.java.net/maven/2/org/apache/openejb/server/3.1.2-SNAPSHOT/server-3.1.2-SNAPSHOT.pom
Unable to find resource 'org.apache.openejb:server:pom:3.1.2-SNAPSHOT'
in repository java.net2 (http://download.java.net/maven/2)
Downloading: 
http://download.java.net/maven/2/org/apache/openejb/openejb/3.1.2-SNAPSHOT/openejb-3.1.2-SNAPSHOT.pom
Unable to find resource
'org.apache.openejb:openejb:pom:3.1.2-SNAPSHOT' in repository
java.net2 (http://download.java.net/maven/2)
snapshot org.apache.openejb:openejb-core:3.1.2-SNAPSHOT: checking for
updates from java.net2
Downloading: 
http://download.java.net/maven/2/org/apache/openejb/openejb-core/3.1.2-SNAPSHOT/openejb-core-3.1.2-SNAPSHOT.pom
Unable to find resource
'org.apache.openejb:openejb-core:pom:3.1.2-SNAPSHOT' in repository
java.net2 (http://download.java.net/maven/2)
Downloading: 
http://download.java.net/maven/2/org/apache/openejb/container/3.1.2-SNAPSHOT/container-3.1.2-SNAPSHOT.pom
Unable to find resource
'org.apache.openejb:container:pom:3.1.2-SNAPSHOT' in repository
java.net2 (http://download.java.net/maven/2)
[compiler:compile]

I HAVE these files in my repository, as can be seen with the following ls:
quin...@quintin-desktop 3.1.2-SNAPSHOT $ ls -l
~/.m2/repository/org/apache/openejb/openejb-core/3.1.2-SNAPSHOT/
total 2916
-rw-r--r-- 1 quintin quintin 366 2009-09-10 16:39
maven-metadata-apache.snapshots.xml
-rw-r--r-- 1 quintin quintin  41 2009-09-10 16:39
maven-metadata-apache.snapshots.xml.sha1
-rw-r--r-- 1 quintin quintin 178 2009-09-10 16:39
maven-metadata-codehaus.snapshots.xml
-rw-r--r-- 1 quintin quintin 178 2009-09-16 10:04
maven-metadata-java.net2.xml
-rw-r--r-- 1 quintin quintin 1453091 2009-09-10 16:41
openejb-core-3.1.2-20090827.210255-8.jar
-rw-r--r-- 1 quintin quintin  40 2009-09-10 16:41
openejb-core-3.1.2-20090827.210255-8.jar.sha1
-rw-r--r-- 1 quintin quintin   14528 2009-09-10 16:39
openejb-core-3.1.2-20090827.210255-8.pom
-rw-r--r-- 1 quintin quintin  40 2009-09-10 16:39
openejb-core-3.1.2-20090827.210255-8.pom.sha1
-rw-r--r-- 1 quintin quintin 1453091 2009-09-10 16:41
openejb-core-3.1.2-SNAPSHOT.jar
-rw-r--r-- 1 quintin quintin 104 2009-09-15 15:56
openejb-core-3.1.2-SNAPSHOT-javadoc.jar.lastUpdated
-rw-r--r-- 1 quintin quintin   14528 2009-09-10 16:39
openejb-core-3.1.2-SNAPSHOT.pom
-rw-r--r-- 1 quintin quintin 104 2009-09-15 15:57
openejb-core-3.1.2-SNAPSHOT-sources.jar.lastUpdated
-rw-r--r-- 1 quintin quintin 145 2009-09-16 10:03 resolver-status.properties

How can I disable this? I don't want to run in offline mode, because I
want legitimate dependency fetches to occur. The biggest hassle is
that it does this with every build, every clean, every test. And this
makes my tests run longer. When I run in offline mode it finished
execution in as little as 3 seconds, depending on what has to happen.
But with these fetches it's a minimum of 30 seconds everytime.

Thanks,
-- 
Quintin Beukes

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