Re: Unable to build archiva trunk

2008-04-09 Thread Roland Klein

after i fxed the version in plugin-registry.xml all works now. thanks

-- 
View this message in context: 
http://www.nabble.com/Unable-to-build-archiva-trunk-tp16578624p16580682.html
Sent from the archiva-users mailing list archive at Nabble.com.



organization name in archiva

2008-04-09 Thread Benoit Decherf

Hi,

Why don't you show the organization name in the link of the organization ?
For example, in the component org.apache.maven:maven, The organization 
field show a link with name 98. It should be : Apache Software 
Foundation


Benoit


M2 project won't look in 'restricted' repository for artifacts

2008-04-09 Thread Julian Dunn
Hi again,

Sorry if this has been asked before, I'm not a Java developer but I'm
trying to help our folks use Archiva.

I have 2 repositories set up called internal (the default that comes
with Archiva) and restricted (one I have set up to host Sun restricted
license JARs and so on)

However, I cannot get M2 projects to try to consult this repo for
restricted license JARs. I have, in ~/.m2/settings.xml, the following:

settings
  mirrors
mirror
  idarchiva.default/id
  urlhttp://archiva.nm.cbc.ca/archiva/repository/internal//url
  mirrorOf*/mirrorOf
/mirror
mirror
  idarchiva.restricted/id
 
urlhttp://archiva.nm.cbc.ca/archiva/repository/restricted//url
  mirrorOfrestricted/mirrorOf
/mirror
  /mirrors
/settings

But the build fails like this:

Downloading:
http://archiva.nm.cbc.ca/archiva/repository/internal//flexjson/flexjson/1.6/flexjson-1.6.jar
Downloading:
http://archiva.nm.cbc.ca/archiva/repository/internal//javax/transaction/jta/1.1B/jta-1.1B.jar
Downloading:
http://archiva.nm.cbc.ca/archiva/repository/internal//javax/jms/jms/1.1/jms-1.1.jar
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.


What's wrong? Obviously, I have already uploaded those artifacts to
Archiva, just in the restricted repo, not internal.

- Julian


Deploying a modified plugin to an in-house repository

2008-04-09 Thread Joshua ChaitinPollak
So I just made a modification to the exec-maven-plugin and now I'm  
trying to share that with the rest of my company be deploying it to  
our shared repository (Artifactory) with this command:


mvn org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy-file \
-DgroupId=org.codehaus.mojo -DartifactId=exec-maven- 
plugin \

-Dversion=1.1-beta-2-SNAPSHOT -Dpackaging=maven-plugin \
-Dfile=/Users/pardsbane/src/exec-maven-plugin/target/exec- 
maven-plugin-1.1-beta-2-SNAPSHOT.jar \

-DrepositoryId=3rdp-snapshots 
-Durl=http://mravinjak:8081/artifactory/repo/[EMAIL PROTECTED]

But I'm getting this error:

[INFO] Error deploying artifact: Failed to transfer file: http://mravinjak:8081/artifactory/repo/3rdp-snapshots/org/codehaus/mojo/exec-maven-plugin/1.1-beta-2-SNAPSHOT/exec-maven-plugin-1.1-beta-2-20080409.060704-1.jar 
. Return code is: 400


Which I suspect is because of the -Dpackaging=maven-plugin, but when I  
tried -Dpackaging=jar, Maven wasn't able to find this version of the  
plugin.


Am I doing something wrong?

--
Joshua ChaitinPollak | Software Engineer
Kiva Systems, Inc., 225 Wildwood Ave, Woburn, MA 01970








RE: Adding a Main-Class to a jar-with-dependencies jar?

2008-04-09 Thread MATHUS Baptiste
Hi,

Having a look in the assembly plugin documentation: 
http://maven.apache.org/plugins/maven-assembly-plugin/usage.html 
Then Advanced Config/Creating an Executable Jar, wouldn't it help?

Excerpt:
 plugin
artifactIdmaven-assembly-plugin/artifactId
configuration
  [...]
  archive
manifest
  mainClassorg.sample.App/mainClass
/manifest
  /archive
/configuration
[...]
  /plugin

Cheers

 -Message d'origine-
 De : Mark Derricutt [mailto:[EMAIL PROTECTED] 
 Envoyé : mercredi 9 avril 2008 07:14
 À : Maven Users List
 Objet : Adding a Main-Class to a jar-with-dependencies jar?
 
 Hey all,
 
 http://docs.codehaus.org/pages/viewpage.action?pageId=72602 
 shows how to set the Main-Class for a .jar file using the 
 maven-jar-plugin and thats fine, but I was wondering if this 
 could also be applied to the jar being made from the assembly 
 plugin somehow?
 
 Do I need to make a custom assembly descriptor for this?
 
 Thanks,
 Mark
 
 --
 It is easier to optimize correct code than to correct 
 optimized code. -- Bill Harlan
 

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



dependencySet:excludes/includes is broken in 2.2-beta-2

2008-04-09 Thread Robin Roos
Hi Folks
 
* Maven 2.0.8 with Assembly Plugin 2.2-beta-2 and JDK 1.5.0_14 on
Windows *
 
I have many .jar dependencies and a handfull of .so dependencies.  Each
of my .so dependencies has a classifier, e.g. solaris.  I intend my
assembly to put all .jar dependencies into lib/ and all .so dependencies
into nativelib/classifier/, e.g. nativelib/solaris/.
 
The following is the dependency set for outputDirectory=lib/
 
dependencySet
outputDirectory/lib/outputDirectory
excludes
!--exclude*:*:so:solaris/exclude--

/excludes
/dependencySet
 
Note that excludes is empty since exclude is commented out.  Note
that includes is absent.
 
As given, all my dependencies are put out into lib/ (including those
with type=so classifier=solaris since the exclusion is commented out).
 
If I uncomment the exclude element then none of my dependencies go to
lib/ when using 2.2-beta-2.  With 2.2-beta-1 I get my expected
behaviour; .jars all go only to lib/.
 
I suspect that the colon-delimited exclude format 
 
   groupId:artifactId:type:classifier
 
in my case
 
*:*:so:solaris
 
which I thought meant 
 
groupId = anything AND artifactId = anything AND type = so AND
classifier = solaris
 
is actually being interpreted as
 
groupId = anything OR artifactId = anything OR type = so OR
classifier = solaris
 
Naturally group = anything will match all artifacts and, since the
expression is OR-based, everything gets excluded.
 
Now this is just an hypothesis for now.  But it's the only theory I can
come up with that would explain not only the above behaviour, but also
the fact that with include*:*:so:solaris/include in a different
dependencySet all of my dependencies go to nativelib/solaris/ when using
2.2-beta-2.  Once again, with 2.2-beta-1, only those dependencies with
type=so and classifier=solaris go to nativelib/solaris/.
 
For completeness, here is my dependencySet for
outputDirectory=nativelib/solaris/
 
dependencySet
outputDirectory/nativelib/solaris/outputDirectory
includes
include*:*:so:solaris/include
/includes
/dependencySet
 
Clarification would be greatly appreciated.
 
Kind regards, Robin.
 

_
Before acting on this e mail or opening any attachment please read the 
disclaimer which can be accessed at 
http://www.investec.com/EmailDisclaimer/UKEmailDisclaimer.htm
Investec Bank (UK) Limited is authorised and regulated by the Financial 
Services Authority.
_

_
This e-mail has been scanned for viruses by MCI's Internet Managed Scanning 
Services - powered by MessageLabs. For further information visit 
http://www.mci.com

Investec Bank (UK) Limited
Registered office: 2 Gresham Street, London, EC2V 7QP Company No: 00489604 
Incorporated in England and Wales

maven-buildnumber-plugin / revision number last changed rev number

2008-04-09 Thread DCVer

Hi all. I use maven-buildnumber-plugin to retrieve svn revision number of the
local working copy. But I noticed, that it isn't configured in a way I would
like to.

E.g. when I have tags directory in svn repository containing few
subdirectories (let's say 1.0 1.1 and 1.2). 1.0 was tagged at revision 1000,
1.1 at revision 1100, 1.2 at revision 1200. Parent tags directory has
revision number = 1200, because it is the highest rev number of all
subdirectories.

I would like to retrieve rev number = 1000, when I check out 1.0 directory,
not 1200, what the maven-buildnumber-plugin actually does in standard
configuration. In other words I would like to retrieve last changed rev
number - not revision number (see output of the 'svn info' command:
...
Revision: 1200
...
Last Changed Rev: 1000
...)

Hope it isn't as difficult as it seems to me :)
-- 
View this message in context: 
http://www.nabble.com/maven-buildnumber-plugin---revision-number---last-changed-rev-number-tp16583306s177p16583306.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: dependencySet:excludes/includes is broken in 2.2-beta-2

2008-04-09 Thread Robin Roos
After looking at sourcecode and referencing ASSEMBLY-180 and MNG-2621 I
have fixed my problem by changing

*:*:so:solaris

To

*:so:solaris

I don't understand why this would work, or would be chosen above a more
explicit patern match algorithm.  But it works.  If anyone can explain
the wildcard strategy I'd like to understand it better but for now I can
move our project to 2.2-beta-2 instead of staying on 2.2-beta-1.

Kind regards, Robin.

 

-Original Message-
From: Robin Roos 
Sent: 09 April 2008 10:05
To: Maven Users List
Subject: dependencySet:excludes/includes is broken in 2.2-beta-2

Hi Folks
 
* Maven 2.0.8 with Assembly Plugin 2.2-beta-2 and JDK 1.5.0_14 on
Windows *
 
I have many .jar dependencies and a handfull of .so dependencies.  Each
of my .so dependencies has a classifier, e.g. solaris.  I intend my
assembly to put all .jar dependencies into lib/ and all .so dependencies
into nativelib/classifier/, e.g. nativelib/solaris/.
 
The following is the dependency set for outputDirectory=lib/
 
dependencySet
outputDirectory/lib/outputDirectory
excludes
!--exclude*:*:so:solaris/exclude--

/excludes
/dependencySet
 
Note that excludes is empty since exclude is commented out.  Note
that includes is absent.
 
As given, all my dependencies are put out into lib/ (including those
with type=so classifier=solaris since the exclusion is commented out).
 
If I uncomment the exclude element then none of my dependencies go to
lib/ when using 2.2-beta-2.  With 2.2-beta-1 I get my expected
behaviour; .jars all go only to lib/.
 
I suspect that the colon-delimited exclude format 
 
   groupId:artifactId:type:classifier
 
in my case
 
*:*:so:solaris
 
which I thought meant 
 
groupId = anything AND artifactId = anything AND type = so AND
classifier = solaris
 
is actually being interpreted as
 
groupId = anything OR artifactId = anything OR type = so OR
classifier = solaris
 
Naturally group = anything will match all artifacts and, since the
expression is OR-based, everything gets excluded.
 
Now this is just an hypothesis for now.  But it's the only theory I can
come up with that would explain not only the above behaviour, but also
the fact that with include*:*:so:solaris/include in a different
dependencySet all of my dependencies go to nativelib/solaris/ when using
2.2-beta-2.  Once again, with 2.2-beta-1, only those dependencies with
type=so and classifier=solaris go to nativelib/solaris/.
 
For completeness, here is my dependencySet for
outputDirectory=nativelib/solaris/
 
dependencySet
outputDirectory/nativelib/solaris/outputDirectory
includes
include*:*:so:solaris/include
/includes
/dependencySet
 
Clarification would be greatly appreciated.
 
Kind regards, Robin.
 

_
Before acting on this e mail or opening any attachment please read the
disclaimer which can be accessed at
http://www.investec.com/EmailDisclaimer/UKEmailDisclaimer.htm
Investec Bank (UK) Limited is authorised and regulated by the Financial
Services Authority.
_

_
This e-mail has been scanned for viruses by MCI's Internet Managed
Scanning Services - powered by MessageLabs. For further information
visit http://www.mci.com

Investec Bank (UK) Limited
Registered office: 2 Gresham Street, London, EC2V 7QP Company No:
00489604 Incorporated in England and Wales

_
This e-mail has been scanned for viruses by Verizon Business Internet
Managed Scanning Services - powered by MessageLabs. For further
information visit http://www.verizonbusiness.com/uk

_
Before acting on this e mail or opening any attachment please read the 
disclaimer which can be accessed at 
http://www.investec.com/EmailDisclaimer/UKEmailDisclaimer.htm
Investec Bank (UK) Limited is authorised and regulated by the Financial 
Services Authority.
_

_
This e-mail has been scanned for viruses by MCI's Internet Managed Scanning 
Services - powered by MessageLabs. For further information visit 
http://www.mci.com

Investec Bank (UK) Limited
Registered office: 2 Gresham Street, London, EC2V 7QP Company No: 00489604 
Incorporated in England and Wales

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



System.out and System.err in surefire

2008-04-09 Thread David Delbecq

Hello,

in the past (maven1), when i ran unit test, everything from stdout / 
stderr was redirected to the report txt file, making it easy to follow 
test progress when the test were makig lots of noise. After upgrading to 
maven2, the  stderr seems properly redirect to report file, but not 
stdout. How can i configure surefire so that it colelct also System.out 
to the report file? It annoying cause my test are very verbose about 
their process (this information is used only to get details of failed 
tests).


Thanks

--
David Delbecq
Institut Royal Météorologique
Ext:557


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



Re: Adding a Main-Class to a jar-with-dependencies jar?

2008-04-09 Thread Mark Derricutt
Correct - not sure how I missed that earlier.

Thanks,
Mark

On Wed, Apr 9, 2008 at 8:23 PM, MATHUS Baptiste [EMAIL PROTECTED] wrote:

 Hi,

 Having a look in the assembly plugin documentation:
 http://maven.apache.org/plugins/maven-assembly-plugin/usage.html
 Then Advanced Config/Creating an Executable Jar, wouldn't it help?



-- 
It is easier to optimize correct code than to correct optimized code. --
Bill Harlan


Multiple CPUs

2008-04-09 Thread Benedikt Thelen
Hi there, i am sort of a maven newbee,
At our workplce we have a quite big Coccon project in developenet and we use
maven to build it. Building takes usually 5-6 minutes which is quite a
while. I noticed using gkrellm and htop that maven only uses one of the two
processors (Levono Thinkpad with intel core Duo) in my notebook.
Question: Is there a way to tell maven to use both CPU's while building? I
searched gooogle a lot but i didn't find anything.

Greetings Benedikt Thelen


Re: Multiple CPUs

2008-04-09 Thread ben short
I'd think that the build process is single threaded, with exception to
the surefire plugin which can be forked.

On Wed, Apr 9, 2008 at 12:21 PM, Benedikt Thelen [EMAIL PROTECTED] wrote:
 Hi there, i am sort of a maven newbee,
  At our workplce we have a quite big Coccon project in developenet and we use
  maven to build it. Building takes usually 5-6 minutes which is quite a
  while. I noticed using gkrellm and htop that maven only uses one of the two
  processors (Levono Thinkpad with intel core Duo) in my notebook.
  Question: Is there a way to tell maven to use both CPU's while building? I
  searched gooogle a lot but i didn't find anything.

  Greetings Benedikt Thelen


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



Re: Multiple CPUs

2008-04-09 Thread Benedikt Thelen
if possible is there a wat to split up the source to make diffrent jobs who
could be run separately?


On Wed, Apr 9, 2008 at 1:24 PM, ben short [EMAIL PROTECTED] wrote:

 I'd think that the build process is single threaded, with exception to
 the surefire plugin which can be forked.

 On Wed, Apr 9, 2008 at 12:21 PM, Benedikt Thelen [EMAIL PROTECTED]
 wrote:
  Hi there, i am sort of a maven newbee,
   At our workplce we have a quite big Coccon project in developenet and
 we use
   maven to build it. Building takes usually 5-6 minutes which is quite a
   while. I noticed using gkrellm and htop that maven only uses one of the
 two
   processors (Levono Thinkpad with intel core Duo) in my notebook.
   Question: Is there a way to tell maven to use both CPU's while
 building? I
   searched gooogle a lot but i didn't find anything.
 
   Greetings Benedikt Thelen
 

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




Re: Multiple CPUs

2008-04-09 Thread Manos Batsis

Benedikt Thelen wrote:

Hi there, i am sort of a maven newbee,
At our workplce we have a quite big Coccon project in developenet and we use
maven to build it. Building takes usually 5-6 minutes which is quite a
while. I noticed using gkrellm and htop that maven only uses one of the two
processors (Levono Thinkpad with intel core Duo) in my notebook.
Question: Is there a way to tell maven to use both CPU's while building? I
searched gooogle a lot but i didn't find anything.


In case you are using antrun, we've used the Parallel container task 
in certain build targets. Trying to use it doesn't always make sense though.


[1] http://ant.apache.org/manual/CoreTasks/parallel.html

Cheers,

Manos

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



Invalid POM - Ignored for artifact resolution - Bug ?

2008-04-09 Thread Salvador Diaz

Hello all,

This is my first message in the mailing list so please bear with me if I 
lack clarity or I infringe any rule.


So the problem I'm having is that I'm getting this message when running 
mvn eclipse:eclipse on my project (we have one core project and several 
others depending on that one):


[WARNING] POM for 
'myproject:com.mycompany.core:pom:0.21.0SNAPSHOT:compile' is invalid. It 
will be ignored for artifact resolution. Reason: Failed to validate POM 
for project ${myproject.groupId}:com.mycompany.core at Artifact 
[myproject:com.mycompany.core:pom:0.21.0SNAPSHOT:compile]


the variable ${myproject.groupId} is defined in my ~/.m2/settings.xml 
and it is used in several poms throughout our projects like this:


For the pom in the core project:
...
  groupId${myproject.groupId}/groupId
  artifactIdcom.mycompany.core/artifactId
  version${myproject.version}/version
...

For the pom in other projects depending on the core project:
...
dependencies
  dependency
  groupId${myproject.groupId}/groupId
  artifactIdcom.mycompany.core/artifactId
  version${myproject.version}/version
  /dependency
...

Now when I run mvn install on the core project the jar gets installed in 
my local repository and the pom still references those variables so when 
I run mvn eclipse:eclipse on one of the projects depending on the core 
project I get the error above and the dependency resolution doesn't 
work. The problem is (I think) that the variable ${myproject.groupId} is 
resolved when it is declared in a pom.xml in one of my projects but it 
isn't resolved when it is declared in a *.pom in the repository. Is this 
the expected behavior? If so, how can I force maven to replace the 
variable with its value when installing the jar into the repository ?


Many thanks to everyone, I hope I was clear enough.




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



Updating the Version and Properties in a POM file using ANT

2008-04-09 Thread Thomas Tardy
Hello,

is there a convenient way to update the version and properties of a
pom file using ANT?

I can't use the maven release plugin to do this.

Thanks for your help!

Regards,
Thomas

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



Re: Add Custom Pages

2008-04-09 Thread Maria Odea Ching
Hi Doron,

I haven't really experimented doing this, but maybe you could try updating
the jsp files in your Archiva.. for the menu part,
you need to edit the WEB-INF/jsp/decorators/default.jsp file. Please take
note of the Redback permissions
in the page. You could probably add just an a href=.. for your page in
the Find section as that does not have
any Redback permissions associated with it.

For more suggestions, you can just send an email to this list or file a jira
in http://jira.codehaus.org/browse/MRM

Thanks,
Deng

On Mon, Apr 7, 2008 at 10:38 PM, Doron Solomon [EMAIL PROTECTED]
wrote:

 Hi,

 I'm wondering if there's a way to add custom pages to archiva, including
 adding links to such pages in the left-side menu.  The pages don't
 necessarily need any functionality, just to be able to display
 information to users (e.g. help, about pages).  If this is possible, how
 is it done?  If it's not possible, is there somewhere where I can
 suggest adding such functionality as a future improvement?

 Thanks,
 Doron



Remote file copy

2008-04-09 Thread robert . egan
I have a need to implement Maven style deploy functionality (copy files to 
multiple remote servers as defined in an xml file on the source machine). 
Attempts to find something using google have been unsuccessful, mostly due 
to the generality of the query. What other Apache projects might be best 
suited for this task?


Thanks
Robert Egan


This email message and any attachments may contain confidential, 
proprietary or non-public information.  The information is intended solely 
for the designated recipient(s).  If an addressing or transmission error 
has misdirected this email, please notify the sender immediately and 
destroy this email.  Any review, dissemination, use or reliance upon this 
information by unintended recipients is prohibited.  Any opinions 
expressed in this email are those of the author personally.

Re: Multiple CPUs

2008-04-09 Thread Nino Saturnino Martinez Vazquez Wael

Is'nt this just a java setting, you could pass on to the jvm?:


-XX:+UseParallelGC
-XX:+ParallelGCThreads=2

http://www.md.pp.ru/~eu/jdk6options.html

Benedikt Thelen wrote:

if possible is there a wat to split up the source to make diffrent jobs who
could be run separately?


On Wed, Apr 9, 2008 at 1:24 PM, ben short [EMAIL PROTECTED] wrote:

  

I'd think that the build process is single threaded, with exception to
the surefire plugin which can be forked.

On Wed, Apr 9, 2008 at 12:21 PM, Benedikt Thelen [EMAIL PROTECTED]
wrote:


Hi there, i am sort of a maven newbee,
 At our workplce we have a quite big Coccon project in developenet and
  

we use


 maven to build it. Building takes usually 5-6 minutes which is quite a
 while. I noticed using gkrellm and htop that maven only uses one of the
  

two


 processors (Levono Thinkpad with intel core Duo) in my notebook.
 Question: Is there a way to tell maven to use both CPU's while
  

building? I


 searched gooogle a lot but i didn't find anything.

 Greetings Benedikt Thelen

  

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





  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



RE: Multiple CPUs

2008-04-09 Thread hermod.opstvedt
Hi

The GC = Garbage Collection. It will help a bit.

Hermod

-Original Message-
From: Nino Saturnino Martinez Vazquez Wael
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 09, 2008 2:06 PM
To: Maven Users List
Subject: Re: Multiple CPUs


Is'nt this just a java setting, you could pass on to the jvm?:


-XX:+UseParallelGC
-XX:+ParallelGCThreads=2

http://www.md.pp.ru/~eu/jdk6options.html

Benedikt Thelen wrote:
 if possible is there a wat to split up the source to make diffrent 
 jobs who could be run separately?


 On Wed, Apr 9, 2008 at 1:24 PM, ben short [EMAIL PROTECTED] 
 wrote:

   
 I'd think that the build process is single threaded, with exception 
 to the surefire plugin which can be forked.

 On Wed, Apr 9, 2008 at 12:21 PM, Benedikt Thelen [EMAIL PROTECTED]
 wrote:
 
 Hi there, i am sort of a maven newbee,
  At our workplce we have a quite big Coccon project in developenet 
 and
   
 we use
 
  maven to build it. Building takes usually 5-6 minutes which is 
 quite a  while. I noticed using gkrellm and htop that maven only 
 uses one of the
   
 two
 
  processors (Levono Thinkpad with intel core Duo) in my notebook.
  Question: Is there a way to tell maven to use both CPU's while
   
 building? I
 
  searched gooogle a lot but i didn't find anything.

  Greetings Benedikt Thelen

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


 

   

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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



Re: Multiple CPUs

2008-04-09 Thread ben short
You could structure your project in to a multi module project. For
instance an api, implimentation and utils module. then if you only
make changes to the utils module you can just rebuild that module
which should save some time.

On Wed, Apr 9, 2008 at 1:12 PM,  [EMAIL PROTECTED] wrote:
 Hi

  The GC = Garbage Collection. It will help a bit.

  Hermod



  -Original Message-
  From: Nino Saturnino Martinez Vazquez Wael
  [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, April 09, 2008 2:06 PM
  To: Maven Users List
  Subject: Re: Multiple CPUs


  Is'nt this just a java setting, you could pass on to the jvm?:


  -XX:+UseParallelGC
  -XX:+ParallelGCThreads=2

  http://www.md.pp.ru/~eu/jdk6options.html

  Benedikt Thelen wrote:
   if possible is there a wat to split up the source to make diffrent
   jobs who could be run separately?
  
  
   On Wed, Apr 9, 2008 at 1:24 PM, ben short [EMAIL PROTECTED]
   wrote:
  
  
   I'd think that the build process is single threaded, with exception
   to the surefire plugin which can be forked.
  
   On Wed, Apr 9, 2008 at 12:21 PM, Benedikt Thelen [EMAIL PROTECTED]
   wrote:
  
   Hi there, i am sort of a maven newbee,
At our workplce we have a quite big Coccon project in developenet
   and
  
   we use
  
maven to build it. Building takes usually 5-6 minutes which is
   quite a  while. I noticed using gkrellm and htop that maven only
   uses one of the
  
   two
  
processors (Levono Thinkpad with intel core Duo) in my notebook.
Question: Is there a way to tell maven to use both CPU's while
  
   building? I
  
searched gooogle a lot but i didn't find anything.
  
Greetings Benedikt Thelen
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
  

  --
  -Wicket for love

  Nino Martinez Wael
  Java Specialist @ Jayway DK
  http://www.jayway.dk
  +45 2936 7684


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

  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

  This email with attachments is solely for the use of the individual or
  entity to whom it is addressed. Please also be aware that the DnB NOR Group
  cannot accept any payment orders or other legally binding correspondence with
  customers as a part of an email.

  This email message has been virus checked by the anti virus programs used
  in the DnB NOR Group.

  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *




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



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



RE: Multiple CPUs

2008-04-09 Thread Martin Gainty

Agreed-
With Hotspot
I have been able to boost performance by implementing ConcurrentMarkSweep GC
JAVA_OPTS=XX:+UseConcMarkSweepGC 
http://java.sun.com/docs/hotspot/gc1.4.2/faq.html
TakkMartin __Disclaimer and 
confidentiality noteEverything in this e-mail and any attachments relates to 
the official business of Sender. This transmission is of a confidential nature 
and Sender does not endorse distribution to any party other than intended 
recipient. Sender does not necessarily endorse content contained within this 
transmission. Subject: RE: Multiple CPUs Date: Wed, 9 Apr 2008 14:12:58 
+0200 Wrom: 
BDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPR
twoprocessors (Levono Thinkpad with intel core Duo) in my 
notebook.  Question: Is there a way to tell maven to use both CPU's while 
   building? Isearched gooogle a lot but i didn't find 
anything.   Greetings Benedikt Thelen 
-  To 
unsubscribe, e-mail: [EMAIL PROTECTED]  For additional commands, e-mail: 
[EMAIL PROTECTED] --  -Wicket for love  Nino Martinez 
Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684   
- To 
unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL 
PROTECTED]  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
* * * * *  This email with attachments is solely for the use of the 
individual or entity to whom it is addressed. Please also be aware that the 
DnB NOR Group cannot accept any payment orders or other legally binding 
correspondence with customers as a part of an email.   This email message 
has been virus checked by the anti virus programs used in the DnB NOR Group. 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  - To 
unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL 
PROTECTED] 
_
Use video conversation to talk face-to-face with Windows Live Messenger.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_042008

licenses report

2008-04-09 Thread Jan Torben Heuer
How can I define my project's license and how can I generate a report of all
dependencies includeing their license? (plain text or html preferred)

Jan


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



How can I set the order of repository?

2008-04-09 Thread youhaodeyi

Maven will try to download the dependencies from remote repository then local
repository. I want Maven to check local repository first then remote
repository. How can I do this?
-- 
View this message in context: 
http://www.nabble.com/How-can-I-set-the-order-of-repository--tp16585354s177p16585354.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: licenses report

2008-04-09 Thread Bernhard David
Hi,

the first part I can answer - im our pom, we just put

licenses
   license
  nameLGPL version 2.1/name
urlhttp://www.gnu.org/licenses/lgpl.txt/url
   /license
/licenses 


David

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jan Torben Heuer
 Sent: 09 April 2008 14:57
 To: users@maven.apache.org
 Subject: licenses report
 
 How can I define my project's license and how can I generate 
 a report of all
 dependencies includeing their license? (plain text or html preferred)
 
 Jan
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



Expanding ... into null

2008-04-09 Thread Selber, Heiko (NSN - DE/Berlin)
Hello,

I have a problem with an artifact that is downloaded from a local repository 
server, but is not expanded. So when its contents are accessed, they are not 
found.

Apparently, there is a problem with a null pointer. The console says this:

[INFO] Expanding: 
c:\.m2\repository\com\company\project\activemq-cpp\2.1.3_02\activemq-cpp-2.1.3_02-win32.zip
 into null

I would have expected something like expanding ... into 
c:\.m2\repository\.unpacked-modules\activemq-cpp-2.1.3_02-win32

There is more of the console output at the end.

I am entirely unsure about the reason. What disturbs me is that the expansion 
works sporadically. I'd have preferred a reproducible error.

I googled a similar problem reported on this list a while ago, which was solved 
by cleaning first. But it happens for me also when I execute 'mvn clean 
install'.

Could the problem be related to the fact that the target in question is a 
Visual C++ compilation? But I'd assume that expanding a dependency is 
independent of the type of the target, right?

Can anybody enlighten me?

Thanks in advance,

Heiko

PS: I use Maven 2.0.8 on Windows XP.

 pom.xml extract 

dependency
groupIdcom.company.project/groupId
artifactIdactivemq-cpp/artifactId
classifier${operating-system}/classifier
version${activemq-version}/version
typezip/type
scopecompile/scope
/dependency 



 extract of console output 

[INFO] 
[INFO] Building [...]
[INFO]task-segment: [clean, install]
[INFO] 
[INFO] [clean:clean]
[INFO] Deleting directory C:\src\myproject\trunk\core-cpp\subproject\target
Downloading: 
http://localrepo.intra.net/maven-proxy/repository/release/com/company/project/activemq-cpp/2.1.3_02/activemq-cpp-2.1.3_02.pom
3K downloaded
Downloading: 
http://localrepo.intra.net/maven-proxy/repository/release/com/company/project/activemq-cpp/2.1.3_02/activemq-cpp-2.1.3_02-win32.zip
1636K downloaded
[INFO] [antrun:run {execution: clean}]
[INFO] Executing tasks
 [echo] Build script state: clean

clean:

 [exec] Microsoft (R) Development Environment,  Version 7.10.6030.
 [exec] Copyright (C) Microsoft Corp 1984-2001. Alle Rechte vorbehalten.
 [exec] -- Bereinigen gestartet: Projekt: subproject, Konfiguration: 
Release Win32 --

 [exec] Die Zwischen- und Ausgabedateien f?r das Projekt subproject mit 
der Konfiguration Release|Win32 werden gelöscht.
 [exec]


 [exec] -- Fertig --

 [exec] Bereinigigung: 1 erfolgreich, 0 fehlgeschlagen, 0 ?bersprungen
 [exec]

[INFO] Executed tasks
[INFO] [dependency:unpack-dependencies {execution: unpack-dependencies}]
[INFO] Expanding: 
c:\.m2\repository\com\company\project\activemq-cpp\2.1.3_02\activemq-cpp-2.1.3_02-win32.zip
 into null
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [antrun:run {execution: nones}]
[INFO] Executing tasks

compile.sequential:

 [exec] Microsoft (R) Development Environment,  Version 7.10.6030.
 [exec] Copyright (C) Microsoft Corp 1984-2001. Alle Rechte vorbehalten.
 [exec] -- Erstellen gestartet: Projekt: subproject, Konfiguration: 
Release Win32 --

 [exec] Kompilieren...
 [exec] build.cpp
 [exec] 
src\main\cpp\com\company\project\core\ams\activemq\jms\Message.h(20) : fatal 
error C1083: Include-Datei kann nicht geöffnet werden: 'cms/Message.h': No such 
file or directory
 [exec]
 [exec] Das Build-Protokoll wurde unter 
file://C:\src\myproject\trunk\core-cpp\subproject\target\obj\Release\vs2003\BuildLog.htm
 gespeichert.
 [exec] subproject - 1 Fehler, 0 Warnung(en)


 [exec] -- Fertig --

 [exec] Erstellen: 0 erfolgreich, 1 fehlgeschlagen, 0 ?bersprungen
 [exec]

[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line:
C:\src\myproject\trunk\build\build.xml:97: exec returned: 1
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 4 minutes 26 seconds
[INFO] Finished at: Fri Apr 04 12:24:31 CEST 2008
[INFO] Final Memory: 67M/124M
[INFO] 



Why does Maven always download dependency?

2008-04-09 Thread youhaodeyi

I have successfully download the dependency jars from remote repository when
I first compile my source code. But Maven always tries to download these
jars whenever I compile. Why?
-- 
View this message in context: 
http://www.nabble.com/Why-does-Maven-always-download-dependency--tp16585771s177p16585771.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: How can I set the order of repository?

2008-04-09 Thread nicklist
This is configurable for each repository for releases and snapshots. Take a 
look at [1] and the updatePolicy.

Hth,

Nick S.

[1] http://maven.apache.org/ref/2.0.7/maven-model/maven.html#class_releases



-Original Message-
From: youhaodeyi [mailto:[EMAIL PROTECTED]
Sent: Wed 4/9/2008 14:59
To: users@maven.apache.org
Subject: How can I set the order of repository?
 

Maven will try to download the dependencies from remote repository then local
repository. I want Maven to check local repository first then remote
repository. How can I do this?
-- 
View this message in context: 
http://www.nabble.com/How-can-I-set-the-order-of-repository--tp16585354s177p16585354.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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




Re: Multiple CPUs

2008-04-09 Thread VELO
Well, may be the best way to do that is add support to maven run modules on
parallel not sure how to, but if maven run two modules at same time, on
a dual core machine, means a big gain, i believe.


VELO

On Wed, Apr 9, 2008 at 8:21 AM, Benedikt Thelen [EMAIL PROTECTED] wrote:

 Hi there, i am sort of a maven newbee,
 At our workplce we have a quite big Coccon project in developenet and we
 use
 maven to build it. Building takes usually 5-6 minutes which is quite a
 while. I noticed using gkrellm and htop that maven only uses one of the
 two
 processors (Levono Thinkpad with intel core Duo) in my notebook.
 Question: Is there a way to tell maven to use both CPU's while building? I
 searched gooogle a lot but i didn't find anything.

 Greetings Benedikt Thelen



Re: Why does Maven always download dependency?

2008-04-09 Thread VELO
What is dependency's version?

If is something ending with  -SNAPSHOT  will check for new.


VELO

On Wed, Apr 9, 2008 at 10:38 AM, youhaodeyi [EMAIL PROTECTED] wrote:


 I have successfully download the dependency jars from remote repository
 when
 I first compile my source code. But Maven always tries to download these
 jars whenever I compile. Why?
 --
 View this message in context:
 http://www.nabble.com/Why-does-Maven-always-download-dependency--tp16585771s177p16585771.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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




RE: Why does Maven always download dependency?

2008-04-09 Thread nicklist
If I read [1] correctly, Maven will even by default try to update releases.

Hth,

Nick S.

[1] http://maven.apache.org/ref/2.0.8/maven-model/maven.html#class_releases


-Original Message-
From: VELO [mailto:[EMAIL PROTECTED]
Sent: Wed 4/9/2008 15:52
To: Maven Users List
Subject: Re: Why does Maven always download dependency?
 
What is dependency's version?

If is something ending with  -SNAPSHOT  will check for new.


VELO

On Wed, Apr 9, 2008 at 10:38 AM, youhaodeyi [EMAIL PROTECTED] wrote:


 I have successfully download the dependency jars from remote repository
 when
 I first compile my source code. But Maven always tries to download these
 jars whenever I compile. Why?
 --
 View this message in context:
 http://www.nabble.com/Why-does-Maven-always-download-dependency--tp16585771s177p16585771.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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





Re: Multiple CPUs

2008-04-09 Thread Nino Saturnino Martinez Vazquez Wael
Hmm, but isnt it a problem if modules depend on each other? if module a 
depends on module b...


And I think that if implemented it should be scalable to xxx cpus.. I 
guess module a would have to wait for module b or something..


VELO wrote:

Well, may be the best way to do that is add support to maven run modules on
parallel not sure how to, but if maven run two modules at same time, on
a dual core machine, means a big gain, i believe.


VELO

On Wed, Apr 9, 2008 at 8:21 AM, Benedikt Thelen [EMAIL PROTECTED] wrote:

  

Hi there, i am sort of a maven newbee,
At our workplce we have a quite big Coccon project in developenet and we
use
maven to build it. Building takes usually 5-6 minutes which is quite a
while. I noticed using gkrellm and htop that maven only uses one of the
two
processors (Levono Thinkpad with intel core Duo) in my notebook.
Question: Is there a way to tell maven to use both CPU's while building? I
searched gooogle a lot but i didn't find anything.

Greetings Benedikt Thelen




  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



WAR Overlay includes

2008-04-09 Thread António Mota
Hello:

I'm trying to do some war overlay but I can't seem to include just the files
I want using the include tag on the overlay. In this case I only want's
under WEB-INF, but what I get is everything that's
inside the war.

   overlay
 groupIdbirt-runtime/groupId
 artifactIdruntime/artifactId
 includes
includeWEB-INF/**/include
  /includes
   /overlay

and

 dependency
groupIdbirt-runtime/groupId
artifactIdruntime/artifactId
typewar/type
scoperuntime/scope
version${birtVersion}/version
/dependency

The only way I cen get what I want is to use

dependentWarIncludesWEB-INF/**/dependentWarIncludes

but what if I have two different overlays with different includes?


Thanks all.

-- 
Melhores cumprimentos / Beir beannacht / Best regards

António Manuel dos Santos Mota

mobile PT: +351919623568 (deprecated)
mobile IE: +353(0)877718363
mail: [EMAIL PROTECTED]
skype: amsmota
msn: [EMAIL PROTECTED]
linkedin: www.linkedin.com/in/amsmota


jarsigner plugin?

2008-04-09 Thread /U


Is there a jarsinger plugin available for Maven 2.0.8?

Regards

/Ur
-- 
View this message in context: 
http://www.nabble.com/jarsigner-plugin--tp16586202s177p16586202.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Renaming an artifact...

2008-04-09 Thread Christian Edward Gruber

Hey,

I was looking for examples of the following, or instructions.  I  
have a plugin (maven-flex2-plugin) that really should be called (maven- 
flex-plugin), since it can run flex2 or flex3.  I'd like to rename the  
artifactId, but somehow have the original there redirecting to the new  
artifact.  I seem to recall there was some metadata that I could use  
to do this, but cannot for the life of me find an example.  Any clues?


Christian.


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



Re: jarsigner plugin?

2008-04-09 Thread Olivier Lamy
Hi,
The jar plugin can do it for you.
http://maven.apache.org/plugins/maven-jar-plugin/sign-mojo.html

--
Olivier

2008/4/9, /U [EMAIL PROTECTED]:


  Is there a jarsinger plugin available for Maven 2.0.8?

  Regards

  /Ur

 --
  View this message in context: 
 http://www.nabble.com/jarsigner-plugin--tp16586202s177p16586202.html
  Sent from the Maven - Users mailing list archive at Nabble.com.


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



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



How to submit a bug

2008-04-09 Thread John Wu
I'm Maven 2 user, and I believe that I found an issue with Maven 2.0.8,
how can I submit it somewhere?

 

Thanks,

 

 

John Wu


IMPORTANT NOTICE:

If you have received this message in error, please notify the sender 
immediately and erase the original from your email system. This message is 
intended only for the use of the individual(s) or entity to which it is 
addressed and may contain information that is privileged, confidential or 
exempt from disclosure under applicable law. If the reader of this message is 
not the intended recipient, or the employee or agent responsible for delivering 
the message to the intended recipient, you are hereby notified that any 
dissemination, distribution or copying of this communication is strictly 
prohibited. If this message has been received in error, please contact the 
sender and delete all copies. Like other forms of communication, e-mail 
communications may be vulnerable to interception by unauthorized parties. If 
you do not wish us to communicate with you by e-mail, please notify us at your 
earliest convenience. In the absence of such notification, your consent is 
assumed. Should you choose to allow us to communicate by e-mail, we will not 
take any additional security measures (such as encryption) unless specifically 
requested.

RE: How to submit a bug

2008-04-09 Thread nicklist
Start by explaining the problem and the expected / actual result on the user 
list. If it really is a bug, a lot of dev'ers are also reading there and will 
redirect you to the jira system[1] and tell you which component it affects. The 
dev list is more for the developers to communicate.

Hth,

Nick S.

[1] http://jira.codehaus.org/


-Original Message-
From: John Wu [mailto:[EMAIL PROTECTED]
Sent: Wed 4/9/2008 16:59
To: users@maven.apache.org; [EMAIL PROTECTED]
Subject: How to submit a bug
 
I'm Maven 2 user, and I believe that I found an issue with Maven 2.0.8,
how can I submit it somewhere?

 

Thanks,

 

 

John Wu


IMPORTANT NOTICE:

If you have received this message in error, please notify the sender 
immediately and erase the original from your email system. This message is 
intended only for the use of the individual(s) or entity to which it is 
addressed and may contain information that is privileged, confidential or 
exempt from disclosure under applicable law. If the reader of this message is 
not the intended recipient, or the employee or agent responsible for delivering 
the message to the intended recipient, you are hereby notified that any 
dissemination, distribution or copying of this communication is strictly 
prohibited. If this message has been received in error, please contact the 
sender and delete all copies. Like other forms of communication, e-mail 
communications may be vulnerable to interception by unauthorized parties. If 
you do not wish us to communicate with you by e-mail, please notify us at your 
earliest convenience. In the absence of such notification, your consent is 
assumed. Should you choose to allow us to communicate by e-mail, we will not 
take any additional security measures (such as encryption) unless specifically 
requested.



Re: Renaming an artifact...

2008-04-09 Thread Wendy Smoak
On Wed, Apr 9, 2008 at 3:46 PM, Christian Edward Gruber
[EMAIL PROTECTED] wrote:
 I was looking for examples of the following, or instructions.  I have a
 plugin (maven-flex2-plugin) that really should be called
 (maven-flex-plugin), since it can run flex2 or flex3.  I'd like to rename
 the artifactId, but somehow have the original there redirecting to the new
 artifact.  I seem to recall there was some metadata that I could use to do
 this, but cannot for the life of me find an example.  Any clues?

You may be thinking of relocation [1] ,but so far I've only seen it
used for changing groupIds.

[1] http://maven.apache.org/guides/mini/guide-relocation.html

-- 
Wendy

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



RE: Renaming an artifact...

2008-04-09 Thread Brian E. Fox
You can relocate any part of the signature...however it does _not_ work
for plugins.

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 09, 2008 11:22 AM
To: Maven Users List
Subject: Re: Renaming an artifact...

On Wed, Apr 9, 2008 at 3:46 PM, Christian Edward Gruber
[EMAIL PROTECTED] wrote:
 I was looking for examples of the following, or instructions.  I
have a
 plugin (maven-flex2-plugin) that really should be called
 (maven-flex-plugin), since it can run flex2 or flex3.  I'd like to
rename
 the artifactId, but somehow have the original there redirecting to the
new
 artifact.  I seem to recall there was some metadata that I could use
to do
 this, but cannot for the life of me find an example.  Any clues?

You may be thinking of relocation [1] ,but so far I've only seen it
used for changing groupIds.

[1] http://maven.apache.org/guides/mini/guide-relocation.html

-- 
Wendy

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


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



RE: Renaming an artifact...

2008-04-09 Thread MATHUS Baptiste

 -Message d'origine-
 De : Wendy Smoak [mailto:[EMAIL PROTECTED] 
 Envoyé : mercredi 9 avril 2008 17:22
 You may be thinking of relocation [1] ,but so far I've only 
 seen it used for changing groupIds.
 
 [1] http://maven.apache.org/guides/mini/guide-relocation.html

FWIW: I already used this guide to relocate an artifact whom I'm changed 
groupId, artifactId AND version. 
It worked very well.

Cheers.

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



Re: Multiple CPUs

2008-04-09 Thread Martin von Gagern

VELO wrote:

Well, may be the best way to do that is add support to maven run modules on
parallel not sure how to, but if maven run two modules at same time, on
a dual core machine, means a big gain, i believe.


I guess you'd have to do this in independent processes, i.e. foce new 
maven instances, as some plugins modify static resources like 
currentLocale during their execution.


Greetings,
 Martin von Gagern



signature.asc
Description: OpenPGP digital signature


Re: Multiple CPUs

2008-04-09 Thread Benedikt Thelen
Hmm splitting up the modules isn't that easy in this case, I hoped there was
an option similar to -j X in GNU make.
Allthough the splittung up and compiling of modules parallel is probably the
best approach.
Thanks For the Help

Benedikt Thelen




On Wed, Apr 9, 2008 at 5:48 PM, Martin von Gagern [EMAIL PROTECTED]
wrote:

 VELO wrote:

  Well, may be the best way to do that is add support to maven run modules
  on
  parallel not sure how to, but if maven run two modules at same time,
  on
  a dual core machine, means a big gain, i believe.
 

 I guess you'd have to do this in independent processes, i.e. foce new
 maven instances, as some plugins modify static resources like currentLocale
 during their execution.

 Greetings,
  Martin von Gagern




Re: maven-buildnumber-plugin / revision number last changed rev number

2008-04-09 Thread Dirk Olmes

DCVer wrote:

Hi all. I use maven-buildnumber-plugin to retrieve svn revision number of the
local working copy. But I noticed, that it isn't configured in a way I would
like to.

E.g. when I have tags directory in svn repository containing few
subdirectories (let's say 1.0 1.1 and 1.2). 1.0 was tagged at revision 1000,
1.1 at revision 1100, 1.2 at revision 1200. Parent tags directory has
revision number = 1200, because it is the highest rev number of all
subdirectories.

I would like to retrieve rev number = 1000, when I check out 1.0 directory,
not 1200, what the maven-buildnumber-plugin actually does in standard
configuration. In other words I would like to retrieve last changed rev
number - not revision number (see output of the 'svn info' command:
...
Revision: 1200
...
Last Changed Rev: 1000
...)

Hope it isn't as difficult as it seems to me :)


Last time I checked it used Maven's scm framework. Have fun extending 
this ... :-)


-dirk

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



Re: Multiple CPUs

2008-04-09 Thread VELO
Lets imagine a 10 modules application.

I don't believe each module will always depend from the predecessor (10
depends 9, 9 depends 8, 8 depends)

Is commons see 10 depends 1, 2 and 3.  9 depends 1, 2.  8 depends 7, and so
go on.

Probably some modules need to be compiled in sequence.  Others can be on
parallel.  So maven look to the machine, 4 cores, let me see, 4 cores,
compile module 1... compile module 2... now compile module 3, 4 and 5.

I think maven dependencies mechanism is able to define who can be compiled
in parallel and who need to be compiled in series.

And can exist a parameter to force series work.


Well, just a idea.



VELO

On Wed, Apr 9, 2008 at 11:08 AM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

 Hmm, but isnt it a problem if modules depend on each other? if module a
 depends on module b...

 And I think that if implemented it should be scalable to xxx cpus.. I
 guess module a would have to wait for module b or something..


 VELO wrote:

  Well, may be the best way to do that is add support to maven run modules
  on
  parallel not sure how to, but if maven run two modules at same time,
  on
  a dual core machine, means a big gain, i believe.
 
 
  VELO
 
  On Wed, Apr 9, 2008 at 8:21 AM, Benedikt Thelen [EMAIL PROTECTED]
  wrote:
 
 
 
   Hi there, i am sort of a maven newbee,
   At our workplce we have a quite big Coccon project in developenet and
   we
   use
   maven to build it. Building takes usually 5-6 minutes which is quite a
   while. I noticed using gkrellm and htop that maven only uses one of
   the
   two
   processors (Levono Thinkpad with intel core Duo) in my notebook.
   Question: Is there a way to tell maven to use both CPU's while
   building? I
   searched gooogle a lot but i didn't find anything.
  
   Greetings Benedikt Thelen
  
  
  
 
 
 

 --
 -Wicket for love

 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


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




RE: modify existing plugin dependencies [#MNG-2972] - workaround available?

2008-04-09 Thread Brian E. Fox
2.0.9 has been staged and voted on. We are just looking into one thing before 
letting it into the wild.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 09, 2008 1:07 PM
To: users@maven.apache.org
Subject: modify existing plugin dependencies [#MNG-2972] - workaround available?

Hi, 

I need to use jaxws-maven-plugin with jaxb-impl-2.1.3 instead of the 
original dependency of the plugin
So i configured:

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdjaxws-maven-plugin/artifactId
version1.8/version 
dependency
groupIdcom.sun.xml.bind/groupId
artifactIdjaxb-impl/artifactId
version[2.1.3,)/version
scoperuntime/scope
/dependency

but I couldn´t get that to work

[DEBUG] 
com.sun.tools.xjc.maven2:maven-jaxb-plugin:maven-plugin:1.1:runtime 
(selected for runtime)
[DEBUG]   javax.xml.bind:jaxb-api:jar:2.1:runtime (selected for runtime)
[DEBUG] javax.xml.stream:stax-api:jar:1.0-2:runtime (selected for 
runtime)
[DEBUG] javax.activation:activation:jar:1.1:runtime (selected for 
runtime)
[DEBUG]   com.sun.xml.bind:jaxb-xjc:jar:2.0.2:runtime (selected for 
runtime)
[DEBUG]   com.sun.xml.bind:jaxb-xjc:jar:2.1.3:runtime (removed - nearer 
found: 2.0.2)
[DEBUG]   ant:ant:jar:1.6.5:runtime (selected for runtime)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for 
runtime)

is there any workaround available for [#MNG-2972] ?
When will Maven2.0.9 be available where this issue might be fixed?


Thanx, Torsten

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



modify existing plugin dependencies [#MNG-2972] - workaround available?

2008-04-09 Thread torsten . reinhard
Hi, 

I need to use jaxws-maven-plugin with jaxb-impl-2.1.3 instead of the 
original dependency of the plugin
So i configured:

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdjaxws-maven-plugin/artifactId
version1.8/version 
dependency
groupIdcom.sun.xml.bind/groupId
artifactIdjaxb-impl/artifactId
version[2.1.3,)/version
scoperuntime/scope
/dependency

but I couldn´t get that to work

[DEBUG] 
com.sun.tools.xjc.maven2:maven-jaxb-plugin:maven-plugin:1.1:runtime 
(selected for runtime)
[DEBUG]   javax.xml.bind:jaxb-api:jar:2.1:runtime (selected for runtime)
[DEBUG] javax.xml.stream:stax-api:jar:1.0-2:runtime (selected for 
runtime)
[DEBUG] javax.activation:activation:jar:1.1:runtime (selected for 
runtime)
[DEBUG]   com.sun.xml.bind:jaxb-xjc:jar:2.0.2:runtime (selected for 
runtime)
[DEBUG]   com.sun.xml.bind:jaxb-xjc:jar:2.1.3:runtime (removed - nearer 
found: 2.0.2)
[DEBUG]   ant:ant:jar:1.6.5:runtime (selected for runtime)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for 
runtime)

is there any workaround available for [#MNG-2972] ?
When will Maven2.0.9 be available where this issue might be fixed?


Thanx, Torsten

Re: Repository not working problem

2008-04-09 Thread Ralf Fischer
On Tue, Apr 8, 2008 at 3:55 PM, Java Programmer [EMAIL PROTECTED] wrote:
 Hello,
  How to setup timeout for rarely not working repository, or how to set
  to skip fetching poms from such repositories?
  I have problem because sometime when developing one of repo is out,
  and our build waits for it very long period of time - it consider only
  checking if newer version is available, we got fetched sooner right
  version for us - how to skip this checking?

Hi,

$ mvn -help

usage: mvn [options] [goal(s)] [phase(s)]

Options:
snip /
-o,--offline  Work offline
snip /

... assuming you have all dependencies/plugins already populated in
your local repository.

Cheers,
-Ralf

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



Re: licenses report

2008-04-09 Thread Kalle Korhonen
The answer to the second part is use 2.1-SNAPSHOT version of
project-info-reports-plugin. It's dependency report lists the licenses (see
http://commons.apache.org/logging/dependencies.html for example). There are
no open issues left for 2.1 release (
http://jira.codehaus.org/browse/MPIR/fixforversion/12621), but it's not
available yet. I don't know if there's something holding up the release or
just that nobody has taken the action to release it.

Kalle


On Wed, Apr 9, 2008 at 6:06 AM, Bernhard David [EMAIL PROTECTED]
wrote:

 Hi,

 the first part I can answer - im our pom, we just put

 licenses
   license
  nameLGPL version 2.1/name
urlhttp://www.gnu.org/licenses/lgpl.txt/url
   /license
 /licenses


 David

  -Original Message-
  From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jan Torben Heuer
  Sent: 09 April 2008 14:57
  To: users@maven.apache.org
  Subject: licenses report
 
  How can I define my project's license and how can I generate
  a report of all
  dependencies includeing their license? (plain text or html preferred)
 
  Jan
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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




Re: classloader testing

2008-04-09 Thread Jason Nerothin
Using profiles did the trick and got me over the hump with the first round
of testing, but now I find myself in the following situation:

The ClassLoader I ended up writing extends URLClassLoader so that it can
dynamically load class files from the same jar that contains it by
programatically scanning relevant packages for certain types of interesting
classes, the names of which should not in principle need to be known at
compile-time. So far, so good.

But since the Tests I need to run against that ClassLoader depend upon the
pre-existence of the jar file that contains it, I've had to disable the test
to get the jar artifact, then go back and test against the re-enabled test
code from within my IDE.

Can I do some assembly pre-packaging (or something?) by adding executions to
something like test-compile? Or do a test-disabled package step before
running tests before packaging?

It's all somewhat circular, I realize, but the only other way I can think to
deal with it is to pull my project apart into two...

JPN


On Mon, Apr 7, 2008 at 2:21 PM, Andreas Guther 
[EMAIL PROTECTED] wrote:

 Did you try to use different profiles?

 Andreas


 -Original Message-
 From: Jason Nerothin [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 07, 2008 12:14 PM
 To: users@maven.apache.org
 Subject: classloader testing

 I've written a basic ClassLoader and can test it to my satisfaction by
 flipping the attribute for project/src/main/java to test source (in
 my
 IDE) so that the test-configured ClassLoader  can get to the classes I
 need
 to test. Later on, I use my IDE to set it back to plain old source
 when
 all of my project/src/test/java tests have been passed. When I want to
 run
 the method than needs the ClassLoader, I fire up my class containing
 main(...), and everything works appropriately.

 The question is, how do I configure my pom to do a similar thing so that
 I'm
 not dependent upon my IDE at package-time?

 JPN

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




maven webstart

2008-04-09 Thread Dmitry Beransky
Hi,

I'm aware of the webstart plugin, but what I can't figure out if it's
possible to use maven to do the end-to-end automated deployment of an
app.  In other words, can maven build, package, and deploy to tomcat a
webstart application?

Thanks
Dmitry

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



Re: Deploying a modified plugin to an in-house repository

2008-04-09 Thread Joshua ChaitinPollak
I'm still having trouble with deploying my modified exec-maven-plugin.  
If I run this slightly different command line:


mvn org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy \
  
-DaltDeploymentRepository=plugins-snapshots::default::http://mravinjak:8081/artifactory/repo/plugins-snapshots

I get:

[INFO]  


[ERROR] BUILD ERROR
[INFO]  

[INFO] Error deploying artifact: Failed to transfer file: http://mravinjak:8081/artifactory/repo/plugins-snapshots/org/codehaus/mojo/exec-maven-plugin/1.1-beta-2-SNAPSHOT/exec-maven-plugin-1.1-beta-2-SNAPSHOT.jar 
. Return code is: 400


Is there anything I can do?

-Josh


On Apr 9, 2008, at 2:11 AM, Joshua ChaitinPollak wrote:

So I just made a modification to the exec-maven-plugin and now I'm  
trying to share that with the rest of my company be deploying it to  
our shared repository (Artifactory) with this command:


mvn org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy-file \
   -DgroupId=org.codehaus.mojo -DartifactId=exec-maven- 
plugin \

   -Dversion=1.1-beta-2-SNAPSHOT -Dpackaging=maven-plugin \
   -Dfile=/Users/pardsbane/src/exec-maven-plugin/target/exec- 
maven-plugin-1.1-beta-2-SNAPSHOT.jar \

   -DrepositoryId=3rdp-snapshots 
-Durl=http://mravinjak:8081/artifactory/repo/[EMAIL PROTECTED]

But I'm getting this error:

[INFO] Error deploying artifact: Failed to transfer file: http://mravinjak:8081/artifactory/repo/3rdp-snapshots/org/codehaus/mojo/exec-maven-plugin/1.1-beta-2-SNAPSHOT/exec-maven-plugin-1.1-beta-2-20080409.060704-1.jar 
. Return code is: 400


Which I suspect is because of the -Dpackaging=maven-plugin, but when  
I tried -Dpackaging=jar, Maven wasn't able to find this version of  
the plugin.


Am I doing something wrong?

--
Joshua ChaitinPollak | Software Engineer
Kiva Systems, Inc., 225 Wildwood Ave, Woburn, MA 01970








--
Joshua ChaitinPollak | Software Engineer
Kiva Systems, Inc., 225 Wildwood Ave, Woburn, MA 01970








manifest.mf maven2

2008-04-09 Thread Urooj Khan
hi everyone...

i am in the process of converting a project from maven 1 to maven 2.

i have a three projects within one big project..

i figured just mvn one:convert on each project.xml would do the trick.. but
its actually an extremely huge task..

so i'm starting bottom up and i've been able to complete one of the
sub-modules to convert to maven2.

now the problem i'm having is because of the manifest.mf file...

when i compare the war files generated by maven 1 and maven 2.. the only
difference i see is the manifest.mf file...

now i cant figure out how maven2 is generating this manifest.mf file so that
i can fiddle with it and try to get the right output

thanks in advance!

-- 
Urooj Khan


assembly plugin dependency set multiple instances of jars

2008-04-09 Thread tadamski

I'm using maven-2.0.8, I have an assembly descriptor used for assembling a
multi-module project.  When the dependencySet is processing, I end up with
multiple instances of the jars in the specified output directory.  The
section of my assemblyDescriptor.xml I believe in question is the following:

moduleSets
moduleSet
includeSubModulesfalse/includeSubModules
binaries
dependencySets
dependencySet

outputDirectorylib/outputDirectory
unpackfalse/unpack
scoperuntime/scope
/dependencySet
/dependencySets
outputDirectorylib/outputDirectory
unpackfalse/unpack
/binaries
/moduleSet
/moduleSets

I have a main Module and seven submodules, I get the following message seven
consecutive times right before the project is zipped up.

[Info] Processing DependencySet (output=lib)
Then maven goes on and attempts to build Maven project for Artifact...each
time

Any insight would be very appreciative.
-- 
View this message in context: 
http://www.nabble.com/assembly-plugin-dependency-set-multiple-instances-of-jars-tp16595574s177p16595574.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



WAR Overlay includes

2008-04-09 Thread António Mota
Hello:

I'm trying to do some war overlay but I can't seem to include just the files
I want using the include tag on the overlay. In this case I only want's
under WEB-INF, but what I get is everything that's
inside the war.

   overlay
 groupIdbirt-runtime/groupId
 artifactIdruntime/artifactId
 includes
includeWEB-INF/**/include
  /includes
   /overlay

and

 dependency
groupIdbirt-runtime/groupId
artifactIdruntime/artifactId
typewar/type
scoperuntime/scope
version${birtVersion}/version
/dependency

The only way I cen get what I want is to use

dependentWarIncludesWEB-INF/**/dependentWarIncludes

but what if I have two different overlays with different includes?


Thanks all.

-- 
Melhores cumprimentos / Beir beannacht / Best regards

António Manuel dos Santos Mota

mobile PT: +351919623568 (deprecated)
mobile IE: +353(0)877718363
mail: [EMAIL PROTECTED]
skype: amsmota
msn: [EMAIL PROTECTED]
linkedin: www.linkedin.com/in/amsmota

-- 
Melhores cumprimentos / Beir beannacht / Best regards

António Manuel dos Santos Mota

mobile PT: +351919623568 (deprecated)
mobile IE: +353(0)877718363
mail: [EMAIL PROTECTED]
skype: amsmota
msn: [EMAIL PROTECTED]
linkedin: www.linkedin.com/in/amsmota


filtering resources - switching whole files

2008-04-09 Thread Jan Zelenka
Hi,
I have different config files for various build targets (dev, test, prod), 
but I cannot use standard resource filtering because whole portions of the 
files are diferrent, not just simple strings. In Ant I have a copy of the 
file for each target and just copy/rename them during build. What would be 
the best way to do this in maven? Preferably using profiles to choose 
targets.

Thank you,
Jan
 

Re: manifest.mf maven2

2008-04-09 Thread Wendy Smoak
On Wed, Apr 9, 2008 at 9:25 PM, Urooj Khan [EMAIL PROTECTED] wrote:

  now i cant figure out how maven2 is generating this manifest.mf file so that
  i can fiddle with it and try to get the right output

Start here:  
http://maven.apache.org/plugins/maven-jar-plugin/examples/manifest-customization.html

(... and if necessary, follow the link to the Archiver Reference.)

-- 
Wendy

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



Re: Deploying a modified plugin to an in-house repository

2008-04-09 Thread Nick Stolwijk

Doesn't deploying to archiva require the webdav wagon instead of http wagon?

Return code 400 means:
The request could not be understood by the server due to malformed 
syntax. The client SHOULD NOT repeat the request without modifications.


Take a look at the deploy to archiva page at the archiva documentation [1]

Hth,

Nick S.

[1] http://maven.apache.org/archiva/docs/1.0.2/userguide/deploy.html

Joshua ChaitinPollak wrote:
I'm still having trouble with deploying my modified exec-maven-plugin. 
If I run this slightly different command line:


mvn org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy \
  
-DaltDeploymentRepository=plugins-snapshots::default::http://mravinjak:8081/artifactory/repo/plugins-snapshots 



I get:

[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] Error deploying artifact: Failed to transfer file: 
http://mravinjak:8081/artifactory/repo/plugins-snapshots/org/codehaus/mojo/exec-maven-plugin/1.1-beta-2-SNAPSHOT/exec-maven-plugin-1.1-beta-2-SNAPSHOT.jar. 
Return code is: 400


Is there anything I can do?

-Josh


On Apr 9, 2008, at 2:11 AM, Joshua ChaitinPollak wrote:

So I just made a modification to the exec-maven-plugin and now I'm 
trying to share that with the rest of my company be deploying it to 
our shared repository (Artifactory) with this command:


mvn org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy-file \
   -DgroupId=org.codehaus.mojo -DartifactId=exec-maven-plugin \
   -Dversion=1.1-beta-2-SNAPSHOT -Dpackaging=maven-plugin \
   
-Dfile=/Users/pardsbane/src/exec-maven-plugin/target/exec-maven-plugin-1.1-beta-2-SNAPSHOT.jar 
\
   -DrepositoryId=3rdp-snapshots 
-Durl=http://mravinjak:8081/artifactory/repo/[EMAIL PROTECTED]


But I'm getting this error:

[INFO] Error deploying artifact: Failed to transfer file: 
http://mravinjak:8081/artifactory/repo/3rdp-snapshots/org/codehaus/mojo/exec-maven-plugin/1.1-beta-2-SNAPSHOT/exec-maven-plugin-1.1-beta-2-20080409.060704-1.jar. 
Return code is: 400


Which I suspect is because of the -Dpackaging=maven-plugin, but when 
I tried -Dpackaging=jar, Maven wasn't able to find this version of 
the plugin.


Am I doing something wrong?

--
Joshua ChaitinPollak | Software Engineer
Kiva Systems, Inc., 225 Wildwood Ave, Woburn, MA 01970










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



Re: filtering resources - switching whole files

2008-04-09 Thread Nick Stolwijk
For different config files I often do it with an include. I.e. spring 
configuration for production, test, dev, make a main 
applicationContext.xml which includes database-${environment}.xml. Now 
you can switch config files between builds. (Or at runtime, if you don't 
filter.


Hth,

Nick S.

Jan Zelenka wrote:

Hi,
I have different config files for various build targets (dev, test, prod), 
but I cannot use standard resource filtering because whole portions of the 
files are diferrent, not just simple strings. In Ant I have a copy of the 
file for each target and just copy/rename them during build. What would be 
the best way to do this in maven? Preferably using profiles to choose 
targets.


Thank you,
Jan
 
  


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



Re: Remote file copy

2008-04-09 Thread Luke Daley


On 09/04/2008, at 9:46 PM, [EMAIL PROTECTED] wrote:

I have a need to implement Maven style deploy functionality (copy  
files to
multiple remote servers as defined in an xml file on the source  
machine).
Attempts to find something using google have been unsuccessful,  
mostly due
to the generality of the query. What other Apache projects might be  
best

suited for this task?


http://docs.atlassian.com/maven-upload-plugin/1.1/usage.html

Might do what you need.

LD.

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



Re: Multiple CPUs

2008-04-09 Thread Barrie Treloar
On Wed, Apr 9, 2008 at 8:51 PM, Benedikt Thelen [EMAIL PROTECTED] wrote:
 Hi there, i am sort of a maven newbee,
  At our workplce we have a quite big Coccon project in developenet and we use
  maven to build it. Building takes usually 5-6 minutes which is quite a
  while. I noticed using gkrellm and htop that maven only uses one of the two
  processors (Levono Thinkpad with intel core Duo) in my notebook.
  Question: Is there a way to tell maven to use both CPU's while building? I
  searched gooogle a lot but i didn't find anything.

If you are building your entire system, including unit tests, in under
10 minutes that should be good enough.

6 minutes is fine.  It gives you time to stretch your legs, go to the
loo, grab a drink.

The alternatives are:

* manually select which modules to build, (i.e only the ones you
changed) - generally it is faster to run it at the project root than
cd around typing mvn commands

* setup your IDE to use direct project references instead of
~/.m2/repository references - then you can develop without running
maven at all   You only run maven just prior to committing the
changes back, which is much less often and you can afford the waste of
6 minutes.

* turn off plugins for development and make sure they are on for
continuous development. e.g. you may not need to run checkstyle as
your IDE is already checking this.


The main problem you would have with a multi-cpu build would be
understanding the console output. Since maven isn't threaded already
the output would be interwoven and impossible to understand.

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



Maven 2 Bug? Not Processing Children

2008-04-09 Thread Chris_Graham
Following Nick's suggestion to how to report a bug:

On this issue:

http://www.nabble.com/Class-Path-Test-Problem.-tt16556171s177.html

I have solved the problem.

If the consolidated pom has a scope in it, it fails to resolve it's child 
dependencies.

Consider this from a top level pom:

dependency
groupIdcom.ibm.db2.jcc/groupId
artifactIdlibrary/artifactId
versionV8-FP15/version
typepom/type
scopetest/scope
/dependency

This is what works:

?xml version=1.0 encoding=UTF-8?
project xmlns=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/maven-v4_0_0.xsd;
modelVersion4.0.0/modelVersion
groupIdcom.ibm.db2.jcc/groupId
artifactIdlibrary/artifactId
versionV8-FP15/version
packagingpom/packaging
nameMaster POM for the DB2 Universal Drivers from V8 FP15./name
descriptionPOM was created from install:install-file/description
dependencies
dependency
groupIdcom.ibm.db2.jcc/groupId
artifactIddb2jcc/artifactId
versionV8-FP15/version
/dependency
dependency
groupIdcom.ibm.db2.jcc/groupId
artifactIddb2jcc_license_cisuz/artifactId
versionV8-FP15/version
/dependency
dependency
groupIdcom.ibm.db2.jcc/groupId
artifactIddb2jcc_license_cu/artifactId
versionV8-FP15/version
/dependency
/dependencies
/project

If I add a scope of anything to each dependency, it fails to resolve 
it's children.

I consider this a bug.

If you are depending on a pom of type pom and the scope attribute is not 
needed (it should be specified in the top level dependency definition), 
then it should be ignored. At the very least it should not cease 
processing it's children.

This is the broken one, for reference:

?xml version=1.0 encoding=UTF-8?
project xmlns=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/maven-v4_0_0.xsd;
modelVersion4.0.0/modelVersion
groupIdcom.ibm.db2.jcc/groupId
artifactIdlibrary/artifactId
versionV8-FP15/version
packagingpom/packaging
nameMaster POM for the DB2 Universal Drivers from V8 FP15./name
descriptionPOM was created from install:install-file/description
dependencies
dependency
groupIdcom.ibm.db2.jcc/groupId
artifactIddb2jcc/artifactId
versionV8-FP15/version
scoperuntime/scope
/dependency
dependency
groupIdcom.ibm.db2.jcc/groupId
artifactIddb2jcc_license_cisuz/artifactId
versionV8-FP15/version
scoperuntime/scope
/dependency
dependency
groupIdcom.ibm.db2.jcc/groupId
artifactIddb2jcc_license_cu/artifactId
versionV8-FP15/version
scoperuntime/scope
/dependency
/dependencies
/project

-Chris


**
CAUTION - This message is intended for the addressee named above. It may 
contain privileged or confidential information. 

If you are not the intended recipient of this message you must: 
- Not use, copy, distribute or disclose it to anyone other than the addressee;
- Notify the sender via return email; and
- Delete the message (and any related attachments) from your computer 
immediately.

Internet emails are not necessarily secure. Australian Associated Motors 
Insurers Limited ABN 92 004 791 744 (AAMI), and its related entities, do not 
accept responsibility for changes made to this message after it was sent.

Unless otherwise stated, views expressed within this email are the author's own 
and do not represent those of AAMI.
**

RE: Deploying a modified plugin to an in-house repository

2008-04-09 Thread Brian E. Fox
The url was an artifactory one...

-Original Message-
From: Nick Stolwijk [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 09, 2008 6:05 PM
To: Maven Users List
Subject: Re: Deploying a modified plugin to an in-house repository

Doesn't deploying to archiva require the webdav wagon instead of http
wagon?

Return code 400 means:
The request could not be understood by the server due to malformed 
syntax. The client SHOULD NOT repeat the request without modifications.

Take a look at the deploy to archiva page at the archiva documentation
[1]

Hth,

Nick S.

[1] http://maven.apache.org/archiva/docs/1.0.2/userguide/deploy.html

Joshua ChaitinPollak wrote:
 I'm still having trouble with deploying my modified exec-maven-plugin.

 If I run this slightly different command line:

 mvn org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy \
   

-DaltDeploymentRepository=plugins-snapshots::default::http://mravinjak:8
081/artifactory/repo/plugins-snapshots 


 I get:

 [INFO] 


 [ERROR] BUILD ERROR
 [INFO] 


 [INFO] Error deploying artifact: Failed to transfer file: 

http://mravinjak:8081/artifactory/repo/plugins-snapshots/org/codehaus/mo
jo/exec-maven-plugin/1.1-beta-2-SNAPSHOT/exec-maven-plugin-1.1-beta-2-SN
APSHOT.jar. 
 Return code is: 400

 Is there anything I can do?

 -Josh


 On Apr 9, 2008, at 2:11 AM, Joshua ChaitinPollak wrote:

 So I just made a modification to the exec-maven-plugin and now I'm 
 trying to share that with the rest of my company be deploying it to 
 our shared repository (Artifactory) with this command:

 mvn org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy-file \
-DgroupId=org.codehaus.mojo -DartifactId=exec-maven-plugin
\
-Dversion=1.1-beta-2-SNAPSHOT -Dpackaging=maven-plugin \


-Dfile=/Users/pardsbane/src/exec-maven-plugin/target/exec-maven-plugin-1
.1-beta-2-SNAPSHOT.jar 
 \
-DrepositoryId=3rdp-snapshots 
 -Durl=http://mravinjak:8081/artifactory/repo/[EMAIL PROTECTED]

 But I'm getting this error:

 [INFO] Error deploying artifact: Failed to transfer file: 

http://mravinjak:8081/artifactory/repo/3rdp-snapshots/org/codehaus/mojo/
exec-maven-plugin/1.1-beta-2-SNAPSHOT/exec-maven-plugin-1.1-beta-2-20080
409.060704-1.jar. 
 Return code is: 400

 Which I suspect is because of the -Dpackaging=maven-plugin, but when 
 I tried -Dpackaging=jar, Maven wasn't able to find this version of 
 the plugin.

 Am I doing something wrong?

 -- 
 Joshua ChaitinPollak | Software Engineer
 Kiva Systems, Inc., 225 Wildwood Ave, Woburn, MA 01970








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


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



webapp - some customization in the build

2008-04-09 Thread marc.dumontier
Hi

 

I have a few questions about what the best approach is to accomplish the
following

 

I have a plugin based web application which currently is built using
ant. The plugin includes JSPs which are copied over into the build which
makes up the WAR file. It's really a set of skins...so that based on the
build profile I have, I decide which set of jsps to copy over.

 

How would this be accomplished using the webapp archetype as a base in
maven 2? And what would be the best practice for this type of setup.

 

 

Thanks,

Marc

 

 



The same SNAPSHOT artifact in two remote repositories

2008-04-09 Thread Seva Popov
Hi,

I noticed that Maven checks every configured repository according to the
order of the repositories specified in the pom before downloading.  But
I am not sure how it determines which one to download and if it is
deterministic or not. 

Say, I have the same SNAPSHOT artifacts (same artifactId, groupId,
version) in two different remote repositories.

So, will Maven always download the SNAPSHOT from the remote repository
that contains one that is newer or will it download the SNAPSHOT from
the first repository (according to the lookup order) that contains the
SNAPSHOT artifact?

Thanks,
Seva


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



binding a plugin to a lifecycle goal

2008-04-09 Thread EJ Ciramella
I've written a few maven plugins now, most of the type that should be
called explicitly.
 
I have a new one however, that I'd like to be part of the regular
lifecycle.
 
I have this in my mojo:
 
/**
 * description
 * @goal assemble
 * @phase process-resources
 */
 
but when I run mvn process-resources it doesn't execute my plugin.
 
What am I doing wrong?


Where do I put document in Maven project?

2008-04-09 Thread youhaodeyi

This link lists all the Maven directories:

http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html

but I didn't find a place to hole project document.
-- 
View this message in context: 
http://www.nabble.com/Where-do-I-put-document-in-Maven-project--tp16599702s177p16599702.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: binding a plugin to a lifecycle goal

2008-04-09 Thread Olivier Dehon
You need to add an execution in your POM like:

build
  plugins
plugin
  artifactIdmaven-whatever-plugin/artifactId
  executions
goals
  goalassemble/goal
/goals
  /executions
/plugin
  /plugins
/build

The fact that you specified the @phase in your mojo will attach the
execution automatically to the process-resources phase.

-Olivier

On Wed, 2008-04-09 at 21:09 -0400, EJ Ciramella wrote:
 I've written a few maven plugins now, most of the type that should be
 called explicitly.
  
 I have a new one however, that I'd like to be part of the regular
 lifecycle.
  
 I have this in my mojo:
  
 /**
  * description
  * @goal assemble
  * @phase process-resources
  */
  
 but when I run mvn process-resources it doesn't execute my plugin.
  
 What am I doing wrong?


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



RE: binding a plugin to a lifecycle goal

2008-04-09 Thread EJ Ciramella
I _just_ realized that.

But I've looked at the resources plugin - you don't have to bind that.

Is this just the way hand-rolled plugins work? 

-Original Message-
From: Olivier Dehon [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 09, 2008 9:21 PM
To: Maven Users List
Subject: Re: binding a plugin to a lifecycle goal

You need to add an execution in your POM like:

build
  plugins
plugin
  artifactIdmaven-whatever-plugin/artifactId
  executions
goals
  goalassemble/goal
/goals
  /executions
/plugin
  /plugins
/build

The fact that you specified the @phase in your mojo will attach the
execution automatically to the process-resources phase.

-Olivier

On Wed, 2008-04-09 at 21:09 -0400, EJ Ciramella wrote:
 I've written a few maven plugins now, most of the type that should be
 called explicitly.
  
 I have a new one however, that I'd like to be part of the regular
 lifecycle.
  
 I have this in my mojo:
  
 /**
  * description
  * @goal assemble
  * @phase process-resources
  */
  
 but when I run mvn process-resources it doesn't execute my plugin.
  
 What am I doing wrong?


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


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



[m2] XFire, SoapUI andTestNG integration anyone?

2008-04-09 Thread Mick Knutson
I have XFire working with my WAR deployed to Tomcat. Then I can get SoapUI
test deployed webservices. But I can not get TestNG to actually work in my
integration tests within Maven.
I have tried generating wsgen client, and tried SpringRemoting but nothing
except soapUI works. I want to include this into my Maven build process..


-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.linkedin.com/in/mickknutson
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---


Re: Where do I put document in Maven project?

2008-04-09 Thread Maria Odea Ching
You can put your project documentation in src/site and it would get included
when you generate the site for your project.
Please note that your documents should be written in APT format and when you
run 'mvn site', their corresponding html files
will automatically be generated. Other project documentations such as
javadocs, project info reports, etc. will also be generated.

Please take a look at the following links for more details:

http://maven.apache.org/guides/mini/guide-site.html
http://maven.apache.org/doxia/references/apt-format.html

Thanks,
Deng

On Thu, Apr 10, 2008 at 9:04 AM, youhaodeyi [EMAIL PROTECTED] wrote:


 This link lists all the Maven directories:


 http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html

 but I didn't find a place to hole project document.
 --
 View this message in context:
 http://www.nabble.com/Where-do-I-put-document-in-Maven-project--tp16599702s177p16599702.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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




Any way to send email with build and test report?

2008-04-09 Thread urir

Hi,
I am using maven2 for building and testing a multi-project that consists
from several sub projects.

Is there a way (some plugin maybe) so at the end of the main project build
and test maven will send an email with all the results for all the tests?
some statistcs maybe?

Thanks,
Uri.

-- 
View this message in context: 
http://www.nabble.com/Any-way-to-send-email-with-build-and-test-report--tp16602269s177p16602269.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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