Re: Adding 3rd Party Libs to Central

2008-07-23 Thread Carlos Sanchez
it is possible, see
http://maven.apache.org/guides/mini/guide-central-repository-upload.html

On Tue, Jul 22, 2008 at 9:58 PM, Chad La Joie [EMAIL PROTECTED] wrote:
 This has probably been asked before but I wasn't able to find it.

 Whats the policy regarding people not affiliated with a project (other than
 being users of their libraries) adding those projects artifacts to the
 central repository?

 My project has a number of libs that either don't appear in central or
 haven't been updated in quite some time.  Right now I just keep a separate
 repo with recent version history and use that in the project but I was
 wondering if I should be doing a bit of extra work and getting them in
 central as well.
 --
 SWITCH
 Serving Swiss Universities
 --
 Chad La Joie, Software Engineer, Net Services
 Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland
 phone +41 44 268 15 75, fax +41 44 268 15 68
 [EMAIL PROTECTED], http://www.switch.ch


 -
 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]



License of Maven2

2008-07-23 Thread query
Hi,Can I use Maven2 as project management tool for my commercial application or 
is this tool only for open source projects?Do I need to include the Maven 
license file along with my application?I went through license.txt. But still I 
want to get confirmed with license requirements. Please guide me.

Re: Setting output folders in Eclipse

2008-07-23 Thread Arnaud HERITIER
No

Arnaud

On Wed, Jul 23, 2008 at 3:52 AM, Pierre Thibault [EMAIL PROTECTED]
wrote:

 Hello,

 Is it possible to set the output folders for different source folders when
 creating the Eclipse project with 'mvn eclipse:eclipse'?

 
 Pierre



  __
 Get the name you've always wanted @ymail.com or @rocketmail.com! Go to
 http://ca.promos.yahoo.com/jacko/




-- 
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...


Re: License of Maven2

2008-07-23 Thread David Delbecq

En l'instant précis du 23/07/08 08:20, query s'exprimait en ces termes:

Hi,Can I use Maven2 as project management tool for my commercial application or 
is this tool only for open source projects?Do I need to include the Maven 
license file along with my application?I went through license.txt. But still I 
want to get confirmed with license requirements. Please guide me.
  
As long as you don't distribute maven with your application and maven is 
not required to use your application, licence does not concern to your 
application. The licence rules the use and distribution of maven, not 
was is produced by maven. Otherwise it would be like having to pay 
licence fees to adobe just to distribute a .pdf file made by adobe 
writer :) It would be non-sense. On the other end, be carefull with the 
licences of the libraries you use in your application, those will apply 
to your final product!


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


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



Re: How to use ear plugin? Am I stupid??

2008-07-23 Thread Stefan Seidel


Kent Närling wrote:

I do understand the dependency and packaging concepts, but I failed to get
it working by refering to another artifact even though i ran mvn install
on the dependent artifact. (ok, it only installed it in my local repository,
but that shouldn't matter?)
But this is the way it is supposed to work apparently?

This is the way maven in general works, what did you expect?


So, the EAR packaging is actually just an artifact packaging a bunch of
other artifacts into an EAR package?
Yes. Are you sure you understand what EAR means? See [0]. Again, what 
did you expect?



The documentation for the EAR plugin describes this badly... also, what
packaging types should the referred packages have? I assume jar?
In a normal Enterprise Application, it is common to have at least one 
EJB and one WAR. Thus, the dependent projects should have packaging ejb 
and war, respectively.


IMHO the EAR plugin doc is not perfect, but clear enough iff you know 
what an EAR is and what it is used for.


So actually, to get you started, your EAR pom could look something like 
this:


...
  packagingear/packaging
...
  dependencies
dependency
  ...
  typeejb/type
/dependency
dependency
  ...
  typewar/type
/dependency
...
  /dependencies
...

This should be all that is needed for starters. If you need to configure 
special things the application.xml, you can add:


  build
plugins
  plugin
artifactIdmaven-ear-plugin/artifactId
configuration
  webModule
...
contextRoot/myWebApp/contextRoot
  /webModule
  ...
  jarModule
...
includeInApplicationXmltrue/includeInApplicationXml
  /jarModule
  ...
/configuration
  /plugin
/plugins
  /build

regards,

Stefan

[0] http://en.wikipedia.org/wiki/EAR_(file_format)

--
best regards,

Stefan Seidel
software developer

VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel.+49 (341) 9 60 50 07
fax.+49 (341) 9 60 50 92
mail.   [EMAIL PROTECTED]
web.www.vub.de

HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf

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



Re: Multi Inheritance

2008-07-23 Thread Raffaele

Very good,
thanks to all for your opinions, I believe that I'll experiment the last
one.

Best regards,
Raffaele
-- 
View this message in context: 
http://www.nabble.com/Multi-Inheritance-tp18571365p18606745.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: Setting output folders in Eclipse

2008-07-23 Thread Vedanta Ulises
I assume the output is the *target* directory.
And It is uncommon case :) Usually if you need different output for
different source you create another project for it.
But i do not know what exactly what you want, try using assembly instead

here is the official reference from maven about *assembly* :)
http://maven.apache.org/plugins/maven-assembly-plugin/

On Wed, Jul 23, 2008 at 3:06 PM, Arnaud HERITIER [EMAIL PROTECTED]
wrote:

 No

 Arnaud

 On Wed, Jul 23, 2008 at 3:52 AM, Pierre Thibault [EMAIL PROTECTED]
 wrote:

  Hello,
 
  Is it possible to set the output folders for different source folders
 when
  creating the Eclipse project with 'mvn eclipse:eclipse'?
 
  
  Pierre
 
 
 
   __
  Get the name you've always wanted @ymail.com or @rocketmail.com! Go to
  http://ca.promos.yahoo.com/jacko/
 



 --
 ..
 Arnaud HERITIER
 ..
 OCTO Technology - aheritier AT octo DOT com
 www.octo.com | blog.octo.com
 ..
 ASF - aheritier AT apache DOT org
 www.apache.org | maven.apache.org
 ...




-- 
Vedanta Ulises

-- The Beginning of knowledge is
the discovery of something we do not understand
--Frank Herber(1920-1986)--


Re: How to use ear plugin? Am I stupid??

2008-07-23 Thread Kent Närling
2008/7/23 Stefan Seidel [EMAIL PROTECTED]:


 Kent Närling wrote:

 I do understand the dependency and packaging concepts, but I failed to get
 it working by refering to another artifact even though i ran mvn install
 on the dependent artifact. (ok, it only installed it in my local
 repository,
 but that shouldn't matter?)
 But this is the way it is supposed to work apparently?

 This is the way maven in general works, what did you expect?


My comment was not meant to indicate that this was a stupid way, just a
confirmation that I must have misunderstood it.
Sorry, my bad formulation of words.

I think I see now that I forgot for a moment that it is ONLY pom projects
that can have sub-projects/modules which in combination with the references
to modules in the plugin docs mislead me, sorry for the troll question.

In my head I was imagining an EAR project with the ejb:s, war:s etc being
modules to the parent EAR project, which wouldn't have been entirely
unlogical either? ;-)



 So, the EAR packaging is actually just an artifact packaging a bunch of
 other artifacts into an EAR package?

 Yes. Are you sure you understand what EAR means? See [0]. Again, what did
 you expect?


  The documentation for the EAR plugin describes this badly... also, what
 packaging types should the referred packages have? I assume jar?

 In a normal Enterprise Application, it is common to have at least one EJB
 and one WAR. Thus, the dependent projects should have packaging ejb and war,
 respectively.

 IMHO the EAR plugin doc is not perfect, but clear enough iff you know what
 an EAR is and what it is used for.

 So actually, to get you started, your EAR pom could look something like
 this:

 ...
  packagingear/packaging
 ...
  dependencies
dependency
  ...
  typeejb/type
/dependency
dependency
  ...
  typewar/type
/dependency
...
  /dependencies
 ...

 This should be all that is needed for starters. If you need to configure
 special things the application.xml, you can add:

  build
plugins
  plugin
artifactIdmaven-ear-plugin/artifactId
configuration
  webModule
...
contextRoot/myWebApp/contextRoot
  /webModule
  ...
  jarModule
...
includeInApplicationXmltrue/includeInApplicationXml
  /jarModule
  ...
/configuration
  /plugin
/plugins
  /build

 regards,


Ok, this in combination  with vedanta's example makes this much clearer for
me, thanks!

I think a complete example project scetch (similar to yours above) would be
very valuable in the plugin documentation!

//Kent



 Stefan

 [0] 
 http://en.wikipedia.org/wiki/EAR_(file_format)http://en.wikipedia.org/wiki/EAR_%28file_format%29

 --
 best regards,

 Stefan Seidel
 software developer
 
 VUB Printmedia GmbH
 Chopinstraße 4
 D-04103 Leipzig
 Germany
 tel.+49 (341) 9 60 50 07
 fax.+49 (341) 9 60 50 92
 mail.   [EMAIL PROTECTED]
 web.www.vub.de

 HRB Köln 24015
 UStID DE 122 649 251
 GF Dr. Achim Preuss Neudorf,
 Dr. Christian Preuss Neudorf


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




-- 
Kent Närling

System Architect
SEAMLESS
Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
Phone: +46 8 5648 7800, fax: +46 8 5648 7823
Mobile: +46 70 836 9925
Mail: [EMAIL PROTECTED]
www.seamless.se


Remove inherited config

2008-07-23 Thread Jérôme Waibel

Hi,

I'm having a project with some 15 or so modules. All those modules have 
a  manifest file which is provided by the developers. So I put some 
config for the jar plugin in the parent pom to include that manifest for 
all modules:


plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
configuration
 archive
  manifestFilepath/to/MANIFEST.MF/manifestFile
 /archive
/configuration
/plugin

OK, this is working, so far, so good. Now I have one other modul which 
doesn't have a manifest file. Maven complains about the missing manifest 
which is configured in the parent. How can I unset the manifestFile 
configuration so the jar-plugin will go back to it's default behaviour 
and create one?


My naive approach was this plugin configuration in the module's pom:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
configuration
 archive
  manifestFile /
 /archive
/configuration
/plugin

which I thought might the the plugin make forget the manifestFile config 
from the parent, but that doesn't work.


What would be the correct solution for this problem?

Jerome


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



Design suggestion needed to restructure the build process with Maven

2008-07-23 Thread munlubb

Hello,

  I has been evaluating Maven to start using it to replace our existing Ant
build scripts. To give you a background:

- My work is such that I have multiple projects that I do for multiple
customers but the nature of the project is mostly the same. I basically
customize a base product of a particular company and integrate or modify the
base code.

- The folder structure is such that I have a project lets say:

---PROJECT1
|
 Module1
 |
  New Java/EJB classes
 |
  New JSPs and war components
 |
 -Module2 (similar structure)
 |
 -MAIN MODULE
|
- Modifications to the base product Java classes
|
- Modifications to the base product JSPs 
   |
   --Promoted JSPs and Java classes from modules
above.


- Currently, my ant build scripts, promote the JSPs and compiled java
classes from ALL the modules in to the MAIN MODULE where everything
(including the JSPs and Java classes of the MAIN Module and the promoted
ones) are packaged into One EAR file.

- I would like to get a suggestion or a best way to migrate to the Maven
structure so that there are minimal changes to the folder structure and I am
able to accomplish my task of creating one customized EAR file.

Can you please guide me for the best practise to follow to help me migrate
to Maven 2.

Thanks
Shilpa

-- 
View this message in context: 
http://www.nabble.com/Design-suggestion-needed-to-restructure-the-build-process-with-Maven-tp18607238p18607238.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]



[ANN] Maven Plugin Testing 1.2 Released

2008-07-23 Thread Vincent Siveton
The Maven team is pleased to announce the release of the Maven Plugin
Testing, version 1.2

The Maven Plugin Testing contains the necessary modules to be able to
test Maven Plugins.

http://maven.apache.org/plugin-testing/

Note: This release changes the groupId for the artifacts.

You can specify the version in your project's dependency
configuration, for instance:

dependency
  groupIdorg.apache.maven.plugin-testing/groupId
  artifactIdmaven-plugin-testing-harness/artifactId
  version1.2/version
  scopetest/scope
/dependency

Enjoy,

-The Maven team

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



AspectJ in Maven2

2008-07-23 Thread Ilya Ermolov

My project contains aspect library but it isn't compiles by Maven.

I have following declaration:
plugin
artifactIdmaven-compiler-plugin/artifactId
version2.0.2/version
configuration
forktrue/fork
source1.5/source
target1.5/target
/configuration
/plugin
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdaspectj-maven-plugin/artifactId
executions
execution
goals
goalcompile/goal
/goals
/execution
/executions
/plugin

but Maven show me some errors like:
C:\workspace\exception-handling\src\ru\vtsft\exceptions\ExceptionHandling.aj:211:0::0
Syntax error, parameterized types are only available if source level is 5.0
error at private static ThreadLocalStackJoinPoint traceStack = new
hreadLocalStackJoinPoint() {

Eclipse compiles this code without errors. I'm going crazy %]
-- 
View this message in context: 
http://www.nabble.com/AspectJ-in-Maven2-tp18608731p18608731.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: Setting output folders in Eclipse

2008-07-23 Thread Pierre Thibault
Yes, the output directory is the target directory. Eclipse call them them 
'output folders' while maven call them 'target directories'. I have two target 
directories in my project: target/classes and target/test-classes. This is the 
convention made by Maven. But in Eclipse, I have to set them manually to follow 
the convention. Each source directory can have its own destination folder in 
Eclipse. This is where class files will go. No need to create another project.


Pierre



- Original Message 
From: Vedanta Ulises [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Wednesday, July 23, 2008 5:17:07 AM
Subject: Re: Setting output folders in Eclipse

I assume the output is the *target* directory.
And It is uncommon case :) Usually if you need different output for
different source you create another project for it.
But i do not know what exactly what you want, try using assembly instead

here is the official reference from maven about *assembly* :)
http://maven.apache.org/plugins/maven-assembly-plugin/

On Wed, Jul 23, 2008 at 3:06 PM, Arnaud HERITIER [EMAIL PROTECTED]
wrote:

 No

 Arnaud

 On Wed, Jul 23, 2008 at 3:52 AM, Pierre Thibault [EMAIL PROTECTED]
 wrote:

  Hello,
 
  Is it possible to set the output folders for different source folders
 when
  creating the Eclipse project with 'mvn eclipse:eclipse'?
 
  
  Pierre
 
 
 
   __
  Get the name you've always wanted @ymail.com or @rocketmail.com! Go to
  http://ca.promos.yahoo.com/jacko/
 



 --
 ..
 Arnaud HERITIER
 ..
 OCTO Technology - aheritier AT octo DOT com
 www.octo.com | blog.octo.com
 ..
 ASF - aheritier AT apache DOT org
 www.apache.org | maven.apache.org
 ...




-- 
Vedanta Ulises

-- The Beginning of knowledge is
the discovery of something we do not understand
--Frank Herber(1920-1986)--



  __
Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! 
Canada Messenger at http://ca.beta.messenger.yahoo.com/

RE: AspectJ in Maven2

2008-07-23 Thread nicklist
Try to add the source parameter to your aspectj plugin. [1]

[1] http://mojo.codehaus.org/aspectj-maven-plugin/compile-mojo.html#source

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



-Original Message-
From: Ilya Ermolov [mailto:[EMAIL PROTECTED]
Sent: Wed 7/23/2008 13:30
To: users@maven.apache.org
Subject: AspectJ in Maven2
 

My project contains aspect library but it isn't compiles by Maven.

I have following declaration:
plugin
artifactIdmaven-compiler-plugin/artifactId
version2.0.2/version
configuration
forktrue/fork
source1.5/source
target1.5/target
/configuration
/plugin
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdaspectj-maven-plugin/artifactId
executions
execution
goals
goalcompile/goal
/goals
/execution
/executions
/plugin

but Maven show me some errors like:
C:\workspace\exception-handling\src\ru\vtsft\exceptions\ExceptionHandling.aj:211:0::0
Syntax error, parameterized types are only available if source level is 5.0
error at private static ThreadLocalStackJoinPoint traceStack = new
hreadLocalStackJoinPoint() {

Eclipse compiles this code without errors. I'm going crazy %]
-- 
View this message in context: 
http://www.nabble.com/AspectJ-in-Maven2-tp18608731p18608731.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: AspectJ in Maven2

2008-07-23 Thread Pierre Thibault
Hello Ilya,

I'm using AspectJ too. I have this in the dependency section of my pom:

dependency
groupIdorg.aspectj/groupId
artifactIdaspectjrt/artifactId
version1.5.4/version
/dependency


The plugin section is like this:

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdaspectj-maven-plugin/artifactId
version1.0/version
executions
execution
goals
goalcompile/goal
goaltest-compile/goal
/goals
/execution
/executions
configuration
complianceLevel1.5/complianceLevel
/configuration
/plugin

Hope it helps.


Pierre


- Original Message 
From: Ilya Ermolov [EMAIL PROTECTED]
To: users@maven.apache.org
Sent: Wednesday, July 23, 2008 7:30:55 AM
Subject: AspectJ in Maven2


My project contains aspect library but it isn't compiles by Maven.

I have following declaration:
plugin
artifactIdmaven-compiler-plugin/artifactId
version2.0.2/version
configuration
forktrue/fork
source1.5/source
target1.5/target
/configuration
/plugin
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdaspectj-maven-plugin/artifactId
executions
execution
goals
goalcompile/goal
/goals
/execution
/executions
/plugin

but Maven show me some errors like:
C:\workspace\exception-handling\src\ru\vtsft\exceptions\ExceptionHandling.aj:211:0::0
Syntax error, parameterized types are only available if source level is 5.0
error at private static ThreadLocalStackJoinPoint traceStack = new
hreadLocalStackJoinPoint() {

Eclipse compiles this code without errors. I'm going crazy %]
-- 
View this message in context: 
http://www.nabble.com/AspectJ-in-Maven2-tp18608731p18608731.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]


  __
Ask a question on any topic and get answers from real people. Go to Yahoo! 
Answers and share what you know at http://ca.answers.yahoo.com

Re: AspectJ in Maven2

2008-07-23 Thread Ilya Ermolov

Big thanks! I missed property 'source' :-[ 
I'm stupid :)))
-- 
View this message in context: 
http://www.nabble.com/AspectJ-in-Maven2-tp18608731p18609277.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]



[VOTE] Release dashboard-maven-plugin 1.0.0-beta-1

2008-07-23 Thread david vicente
Hi all,

I would like to perform the first release of the Dashboard Maven Plugin.

The new version will be http://2.2.2./1.0.0-beta-1 as the same last
deployed SNAPSHOT  timestamped : 1.0-20080721.144534-21

The vote is open for 72 hours.

+1 [ ]
 0 [ ]
-1 [ ]

My +1
==

For the first release, i must modify the goal prefix used in the command
line or Continuum goals :

as described in dashboard documentation :
http://mojo.codehaus.org/dashboard-maven-plugin/

you must add this in your pom.xml or settings.xml to use properly the
dashboard plugin:

pluginRepositories
pluginRepository
idCodehaus Snapshots/id
url http://snapshots.repository.codehaus.org//url
/pluginRepository
/pluginRepositories

But even if this configuration is well done, Maven doesn't recognize the
mvn dashboard-report:dashboard command.

and to work fine, you must run mvn
org.codehaus.mojo:dashboard-maven-plugin:1.0-SNAPSHOT:dashboard
command instead of mvn dashboard-report:dashboard.

See :

http://www.nabble.com/Make-a-Codehaus-plugin-works-on-a-local-configuration-tf4297606s177.html
or
http://www.nabble.com/Multimodule-code-coverage-report-tf4511339s177.html
or
http://jira.codehaus.org/browse/MOJO-899

In the project's beginning, i decided to modify the goal prefix to
dashboard-report instead of the default's one by adding in the pom.xml of
the dashboard plugin :

...
build

plugins
plugin
  artifactIdmaven-plugin-plugin/artifactId
  configuration
  goalPrefixdashboard-report/goalPrefix
  /configuration
/plugin
...
/plugins
...
/build


I think it's The Maven resolution problem of dashboard-report.

Maven does not resolve properly the plugin prefix.

it's for that : mvn dashboard-report:dashboard doesn't work correctly.

i will delete this goalPrefix and let the default's one which works fine.

After that, you will have to modify the goal prefix in your command line or
Continuum goals to use the dashboard report :

from dashboard-report:dashboard to dashboard:dashboard
or
from dashboard-report:persist to dashboard:persist


Best Regards

David Vicente


Re: Remove inherited config

2008-07-23 Thread Tobias Gierke

Hi,

Ignore my previous comment - the inherited/ element only works the 
other way (parent - child) around.


 snip ---
*inherited*: true or false, whether or not this plugin configuration 
should apply to POMs which inherit from this one.

--- snip ---

Regards,

Tobias

Hi,

I'm having a project with some 15 or so modules. All those modules 
have a  manifest file which is provided by the developers. So I put 
some config for the jar plugin in the parent pom to include that 
manifest for all modules:


plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
configuration
 archive
  manifestFilepath/to/MANIFEST.MF/manifestFile
 /archive
/configuration
/plugin

OK, this is working, so far, so good. Now I have one other modul which 
doesn't have a manifest file. Maven complains about the missing 
manifest which is configured in the parent. How can I unset the 
manifestFile configuration so the jar-plugin will go back to it's 
default behaviour and create one?


My naive approach was this plugin configuration in the module's pom:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
configuration
 archive
  manifestFile /
 /archive
/configuration
/plugin

which I thought might the the plugin make forget the manifestFile 
config from the parent, but that doesn't work.


What would be the correct solution for this problem?

Jerome


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






Re: Remove inherited config

2008-07-23 Thread Tobias Gierke

Hi,

Hi,

I'm having a project with some 15 or so modules. All those modules 
have a  manifest file which is provided by the developers. So I put 
some config for the jar plugin in the parent pom to include that 
manifest for all modules:


plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
configuration
 archive
  manifestFilepath/to/MANIFEST.MF/manifestFile
 /archive
/configuration
/plugin

OK, this is working, so far, so good. Now I have one other modul which 
doesn't have a manifest file. Maven complains about the missing 
manifest which is configured in the parent. How can I unset the 
manifestFile configuration so the jar-plugin will go back to it's 
default behaviour and create one?


My naive approach was this plugin configuration in the module's pom:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
configuration
 archive
  manifestFile /
 /archive
/configuration
/plugin

which I thought might the the plugin make forget the manifestFile 
config from the parent, but that doesn't work.

According to http://maven.apache.org/pom.html , something like

 build
   plugins
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-jar-plugin/artifactId
   inheritedfalse/inherited
/plugin
   ...

might work ( I didn't check it though).

Regards,

Tobias




What would be the correct solution for this problem?

Jerome


-
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: Setting output folders in Eclipse

2008-07-23 Thread Siarhei Dudzin
Hi Pierre,

Assuming you use maven-eclipse-project you should have the following
settings in your .classpath generated automagically:

classpathentry kind=src path=src/main/java/
classpathentry kind=src path=src/test/java *
output=target/test-classes*/
classpathentry kind=output *path=target/classes*/


As you see the output directory for the test classes is separate. Does that
not work for you?

Regards,
Siarhei

On Wed, Jul 23, 2008 at 1:55 PM, Pierre Thibault [EMAIL PROTECTED]
wrote:

 Yes, the output directory is the target directory. Eclipse call them them
 'output folders' while maven call them 'target directories'. I have two
 target directories in my project: target/classes and target/test-classes.
 This is the convention made by Maven. But in Eclipse, I have to set them
 manually to follow the convention. Each source directory can have its own
 destination folder in Eclipse. This is where class files will go. No need to
 create another project.

 
 Pierre



 - Original Message 
 From: Vedanta Ulises [EMAIL PROTECTED]
 To: Maven Users List users@maven.apache.org
 Sent: Wednesday, July 23, 2008 5:17:07 AM
 Subject: Re: Setting output folders in Eclipse

 I assume the output is the *target* directory.
 And It is uncommon case :) Usually if you need different output for
 different source you create another project for it.
 But i do not know what exactly what you want, try using assembly instead

 here is the official reference from maven about *assembly* :)
 http://maven.apache.org/plugins/maven-assembly-plugin/

 On Wed, Jul 23, 2008 at 3:06 PM, Arnaud HERITIER [EMAIL PROTECTED]
 wrote:

  No
 
  Arnaud
 
  On Wed, Jul 23, 2008 at 3:52 AM, Pierre Thibault [EMAIL PROTECTED]
  wrote:
 
   Hello,
  
   Is it possible to set the output folders for different source folders
  when
   creating the Eclipse project with 'mvn eclipse:eclipse'?
  
   
   Pierre
  
  
  
__
   Get the name you've always wanted @ymail.com or @rocketmail.com! Go to
   http://ca.promos.yahoo.com/jacko/
  
 
 
 
  --
  ..
  Arnaud HERITIER
  ..
  OCTO Technology - aheritier AT octo DOT com
  www.octo.com | blog.octo.com
  ..
  ASF - aheritier AT apache DOT org
  www.apache.org | maven.apache.org
  ...
 



 --
 Vedanta Ulises

 -- The Beginning of knowledge is
 the discovery of something we do not understand
 --Frank Herber(1920-1986)--



   __
 Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo!
 Canada Messenger at http://ca.beta.messenger.yahoo.com/



Re: AspectJ in Maven2

2008-07-23 Thread nicolas de loof
Not related to Ilya issue, but isn't the verbose and showWeaveInfo options
supposed to log something ?
I get my classes weaved (as a decompile confirms) but nothing on the console
:'-(




2008/7/23 Ilya Ermolov [EMAIL PROTECTED]:


 Big thanks! I missed property 'source' :-[
 I'm stupid :)))
 --
 View this message in context:
 http://www.nabble.com/AspectJ-in-Maven2-tp18608731p18609277.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: Remove inherited config

2008-07-23 Thread Stefan Seidel

Hi,

I'm afraid this isn't easy. I could find the JIRA entry for that, but 
overriding/disabling plugins/executions/configurations is somewhat 
tricky/impossible. Have a look at 
http://jira.codehaus.org/browse/MNG-3193 - I used phase none to 
disable plugin execution. In your case, it's not possible because you 
use the builtin execution, which cannot be overridden. So I guess it's 
down to one of:

 - solving by different inheritance levels
 - writing a MANIFEST.MF to include it
 - having a dummy MANIFEST.MF, and adding another execution of the jar 
plugin in order to build the correct MANIFEST.MF

 - filing an issue in JIRA

Stefan

Jérôme Waibel wrote:

Hi,

I'm having a project with some 15 or so modules. All those modules have 
a  manifest file which is provided by the developers. So I put some 
config for the jar plugin in the parent pom to include that manifest for 
all modules:


plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
configuration
 archive
  manifestFilepath/to/MANIFEST.MF/manifestFile
 /archive
/configuration
/plugin

OK, this is working, so far, so good. Now I have one other modul which 
doesn't have a manifest file. Maven complains about the missing manifest 
which is configured in the parent. How can I unset the manifestFile 
configuration so the jar-plugin will go back to it's default behaviour 
and create one?


My naive approach was this plugin configuration in the module's pom:




plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
configuration
 archive
  manifestFile /
 /archive
/configuration
/plugin

which I thought might the the plugin make forget the manifestFile config 
from the parent, but that doesn't work.


What would be the correct solution for this problem?

Jerome


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




--
best regards,

Stefan Seidel
software developer

VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel.+49 (341) 9 60 50 07
fax.+49 (341) 9 60 50 92
mail.   [EMAIL PROTECTED]
web.www.vub.de

HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf

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



RE: AspectJ in Maven2

2008-07-23 Thread nicklist
I have taken a look at the source and I'm wondering how property injection 
works with maven? Is it calling the setVerbose method or does it set the 
verbose parameter through reflection?

If it does the first it should work, if it does the second it doesn't work. 
Could you try running with debug mode? 

This piece of code:

getLog().debug( Starting compiling aspects );
if ( getLog().isDebugEnabled() )
{
String command = Running : ajc ;
Iterator iter = ajcOptions.iterator();
while ( iter.hasNext() )
{
command += ( iter.next() +   );
}
getLog().debug( command );
}

Indicates that on debug level the AspectJ compiler options are printed. Do you 
see the options: -verbose and -showWeaveInfo?

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



-Original Message-
From: [EMAIL PROTECTED] on behalf of nicolas de loof
Sent: Wed 7/23/2008 14:13
To: Maven Users List
Subject: Re: AspectJ in Maven2
 
Not related to Ilya issue, but isn't the verbose and showWeaveInfo options
supposed to log something ?
I get my classes weaved (as a decompile confirms) but nothing on the console
:'-(




2008/7/23 Ilya Ermolov [EMAIL PROTECTED]:


 Big thanks! I missed property 'source' :-[
 I'm stupid :)))
 --
 View this message in context:
 http://www.nabble.com/AspectJ-in-Maven2-tp18608731p18609277.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: AspectJ in Maven2

2008-07-23 Thread nicolas de loof
I also wondered how this works, but the ajc arguments are saved in a file
that is valid with all options.

It seems plexus injects parameters using public setters, and the code lloks
very strange as the attribute are not used to store the value but to declare
the parameter (strange design).

I'll download AJC and test the same options from command line...




2008/7/23 [EMAIL PROTECTED]:

 I have taken a look at the source and I'm wondering how property injection
 works with maven? Is it calling the setVerbose method or does it set the
 verbose parameter through reflection?

 If it does the first it should work, if it does the second it doesn't work.
 Could you try running with debug mode?

 This piece of code:

getLog().debug( Starting compiling aspects );
if ( getLog().isDebugEnabled() )
{
String command = Running : ajc ;
Iterator iter = ajcOptions.iterator();
while ( iter.hasNext() )
{
command += ( iter.next() +   );
}
getLog().debug( command );
}

 Indicates that on debug level the AspectJ compiler options are printed. Do
 you see the options: -verbose and -showWeaveInfo?

 Hth,

 Nick Stolwijk
 ~Java Developer~

 Iprofs BV.
 Claus Sluterweg 125
 2012 WS Haarlem
 www.iprofs.nl



 -Original Message-
 From: [EMAIL PROTECTED] on behalf of nicolas de loof
 Sent: Wed 7/23/2008 14:13
 To: Maven Users List
 Subject: Re: AspectJ in Maven2

 Not related to Ilya issue, but isn't the verbose and showWeaveInfo options
 supposed to log something ?
 I get my classes weaved (as a decompile confirms) but nothing on the
 console
 :'-(




 2008/7/23 Ilya Ermolov [EMAIL PROTECTED]:

 
  Big thanks! I missed property 'source' :-[
  I'm stupid :)))
  --
  View this message in context:
  http://www.nabble.com/AspectJ-in-Maven2-tp18608731p18609277.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: AspectJ in Maven2

2008-07-23 Thread nicolas de loof
I've fixed this and deployed a snapshot.

2008/7/23 nicolas de loof [EMAIL PROTECTED]:

 It seems maven uses the ajc MessageHandler API to get logs. The
 implementation uses maven log to output messages, but matches ajc
 IMessage.WEAVEINFO to maven debug, so is not diplayed on console if maven
 doesn't run in debug.


 2008/7/23 nicolas de loof [EMAIL PROTECTED]:

 I also wondered how this works, but the ajc arguments are saved in a file
 that is valid with all options.

 It seems plexus injects parameters using public setters, and the code
 lloks very strange as the attribute are not used to store the value but to
 declare the parameter (strange design).

 I'll download AJC and test the same options from command line...




 2008/7/23 [EMAIL PROTECTED]:

 I have taken a look at the source and I'm wondering how property injection
 works with maven? Is it calling the setVerbose method or does it set the
 verbose parameter through reflection?

 If it does the first it should work, if it does the second it doesn't
 work. Could you try running with debug mode?

 This piece of code:

getLog().debug( Starting compiling aspects );
if ( getLog().isDebugEnabled() )
{
String command = Running : ajc ;
Iterator iter = ajcOptions.iterator();
while ( iter.hasNext() )
{
command += ( iter.next() +   );
}
getLog().debug( command );
}

 Indicates that on debug level the AspectJ compiler options are printed.
 Do you see the options: -verbose and -showWeaveInfo?

 Hth,

 Nick Stolwijk
 ~Java Developer~

 Iprofs BV.
 Claus Sluterweg 125
 2012 WS Haarlem
 www.iprofs.nl



 -Original Message-
 From: [EMAIL PROTECTED] on behalf of nicolas de loof
 Sent: Wed 7/23/2008 14:13
 To: Maven Users List
 Subject: Re: AspectJ in Maven2

 Not related to Ilya issue, but isn't the verbose and showWeaveInfo
 options
 supposed to log something ?
 I get my classes weaved (as a decompile confirms) but nothing on the
 console
 :'-(




 2008/7/23 Ilya Ermolov [EMAIL PROTECTED]:

 
  Big thanks! I missed property 'source' :-[
  I'm stupid :)))
  --
  View this message in context:
  http://www.nabble.com/AspectJ-in-Maven2-tp18608731p18609277.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: Setting output folders in Eclipse

2008-07-23 Thread Pierre Thibault
Hello Siarhei,

This is working very well for me but, it is incomplete. I have other source 
folders because I'm using Groovy and AspectJ too. I can add the source folders 
for these other languages but I cannot set the output directories for these 
sources from my pom so I have to manually set them in Eclipse. This is what I 
am trying to avoid.


Pierre



- Original Message 
From: Siarhei Dudzin [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Wednesday, July 23, 2008 8:12:05 AM
Subject: Re: Setting output folders in Eclipse

Hi Pierre,

Assuming you use maven-eclipse-project you should have the following
settings in your .classpath generated automagically:

classpathentry kind=src path=src/main/java/
classpathentry kind=src path=src/test/java *
output=target/test-classes*/
classpathentry kind=output *path=target/classes*/


As you see the output directory for the test classes is separate. Does that
not work for you?

Regards,
Siarhei

On Wed, Jul 23, 2008 at 1:55 PM, Pierre Thibault [EMAIL PROTECTED]
wrote:

 Yes, the output directory is the target directory. Eclipse call them them
 'output folders' while maven call them 'target directories'. I have two
 target directories in my project: target/classes and target/test-classes.
 This is the convention made by Maven. But in Eclipse, I have to set them
 manually to follow the convention. Each source directory can have its own
 destination folder in Eclipse. This is where class files will go. No need to
 create another project.

 
 Pierre



 - Original Message 
 From: Vedanta Ulises [EMAIL PROTECTED]
 To: Maven Users List users@maven.apache.org
 Sent: Wednesday, July 23, 2008 5:17:07 AM
 Subject: Re: Setting output folders in Eclipse

 I assume the output is the *target* directory.
 And It is uncommon case :) Usually if you need different output for
 different source you create another project for it.
 But i do not know what exactly what you want, try using assembly instead

 here is the official reference from maven about *assembly* :)
 http://maven.apache.org/plugins/maven-assembly-plugin/

 On Wed, Jul 23, 2008 at 3:06 PM, Arnaud HERITIER [EMAIL PROTECTED]
 wrote:

  No
 
  Arnaud
 
  On Wed, Jul 23, 2008 at 3:52 AM, Pierre Thibault [EMAIL PROTECTED]
  wrote:
 
   Hello,
  
   Is it possible to set the output folders for different source folders
  when
   creating the Eclipse project with 'mvn eclipse:eclipse'?
  
   
   Pierre
  
  
  
__
   Get the name you've always wanted @ymail.com or @rocketmail.com! Go to
   http://ca.promos.yahoo.com/jacko/
  
 
 
 
  --
  ..
  Arnaud HERITIER
  ..
  OCTO Technology - aheritier AT octo DOT com
  www.octo.com | blog.octo.com
  ..
  ASF - aheritier AT apache DOT org
  www.apache.org | maven.apache.org
  ...
 



 --
 Vedanta Ulises

 -- The Beginning of knowledge is
 the discovery of something we do not understand
 --Frank Herber(1920-1986)--



   __
 Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo!
 Canada Messenger at http://ca.beta.messenger.yahoo.com/




  __
Get a sneak peak at messages with a handy reading pane with All new Yahoo! 
Mail: http://ca.promos.yahoo.com/newmail/overview2/

gmaven plugin vs. script classloading

2008-07-23 Thread Kallin Nagelberg
I wrote a groovy plugin a while back, and am now trying to convert it to a
simple script as it is only used by one artifact and it makes more sense to
keep it with the artifact in question rather than as a separate artifact.

The artifact that uses the script, artifact A, depends on some classes in
artifact B.

I have B setup as a dependency of A, and indeed the script can find classes
from B and use them.

However, when something from B invokes a third party library that tries to
load a class from B I get a java.lang.ClassNotFoundException: .
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at
org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
at
org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:204)



This is really strange because it doesn't happen when the script is instead
a groovy plugin. There is no change other than that where I used to invoke a
custom plugin, I invoke a groovy script.
50 points for whoever can figure this one out!


AspectJ class folders

2008-07-23 Thread Pierre Thibault
Hello,


It is possible to ask the AspectJ plugin weave class folders? I see no way to 
do that.


Pierre


  __
Ask a question on any topic and get answers from real people. Go to Yahoo! 
Answers and share what you know at http://ca.answers.yahoo.com

Is is possible to start maven in Eclipse?

2008-07-23 Thread thomas2004

I use maven1 and Eclipse 3.3.x.

Now when I compile a project or run other maven commands, I have to open
Command Prompt and enter the maven command.

I wonder if one can simple run maven command in Eclipse directly, such as
right click the project and choose run maven command in the context menu.



-- 
View this message in context: 
http://www.nabble.com/Is-is-possible-to-start-maven-in-Eclipse--tp18614085p18614085.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: gmaven plugin vs. script classloading

2008-07-23 Thread Kallin Nagelberg
The class calling the library is calling it from a static context.
Just before the library call I obtained the calling class's classloader,
which has the following URLS:

[file:/D:/myartifact/generated/target/classes/,
file:/C:/mavenrepo_artifactory/org/freemarker/freemarker/2.3.13/freemarker-2.3.13.jar,

file:/C:/mavenrepo_artifactory/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar,
file:/C:/mavenrepo_artifactory/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar,
file:/C:/mavenrepo_artifactory/xpp3/xpp3/1.1.4c/xpp3-1.1.4c.jar,
file:/C:/mavenrepo_artifactory/log4j/log4j/1.2.15/log4j-1.2.15.jar,
file:/C:/mavenrepo_artifactory/javax/mail/mail/1.4/mail-1.4.jar,
file:/C:/mavenrepo_artifactory/javax/activation/activation/1.1/activation-1.1.jar,
file:/C:/mavenrepo_artifactory/javax/jms/jms/1.1/jms-1.1.jar,
file:/C:/mavenrepo_artifactory/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar,

file:/C:/mavenrepo_artifactory/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar,
file:/C:/mavenrepo_artifactory/asm/asm/3.0_RC1/asm-3.0_RC1.jar,
file:/C:/mavenrepo_artifactory/org/springframework/spring/2.5.5/spring-2.5.5.jar,
file:/C:/mavenrepo_artifactory/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar,

file:/C:/mavenrepo_artifactory/commons-digester/commons-digester/1.8/commons-digester-1.8.jar,

file:/C:/mavenrepo_artifactory/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar,

file:/C:/mavenrepo_artifactory/mysql/mysql-connector-java/3.1.12/mysql-connector-java-3.1.12.jar,

file:/C:/mavenrepo_artifactory/commons-lang/commons-lang/2.4/commons-lang-2.4.jar,
file:/C:/mavenrepo_artifactory/random/bossa/0.8.0/bossa-0.8.0.jar,
file:/C:/mavenrepo_artifactory/random/concurrent/1.0/concurrent-1.0.jar,
file:/C:/mavenrepo_artifactory/random/db-ojb/1.0/db-ojb-1.0.jar,
file:/C:/mavenrepo_artifactory/random/glue/1.0/glue-1.0.jar,



When I look at the urls available to the library's classloader, just before
the classnotfound exception, I see the following:


[file:/C:/mavenrepo_artifactory/org/codehaus/groovy/maven/gmaven-plugin/1.0-rc-2/gmaven-plugin-1.0-rc-2.jar,

file:/C:/mavenrepo_artifactory/org/codehaus/groovy/maven/runtime/gmaven-runtime-api/1.0-rc-2/gmaven-runtime-api-1.0-rc-2.jar,

file:/C:/mavenrepo_artifactory/org/codehaus/groovy/maven/feature/gmaven-feature-api/1.0-rc-2/gmaven-feature-api-1.0-rc-2.jar,

file:/C:/mavenrepo_artifactory/org/codehaus/groovy/maven/runtime/gmaven-runtime-loader/1.0-rc-2/gmaven-runtime-loader-1.0-rc-2.jar,
file:/C:/mavenrepo_artifactory/org/slf4j/slf4j-api/1.5.0/slf4j-api-1.5.0.jar,

file:/C:/mavenrepo_artifactory/org/codehaus/groovy/maven/feature/gmaven-feature-support/1.0-rc-2/gmaven-feature-support-1.0-rc-2.jar,
file:/C:/mavenrepo_artifactory/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar,

file:/C:/mavenrepo_artifactory/commons-lang/commons-lang/2.3/commons-lang-2.3.jar,

file:/C:/mavenrepo_artifactory/org/codehaus/groovy/maven/support/slf4j-gossip/1.0-rc-2/slf4j-gossip-1.0-rc-2.jar,
file:/C:/mavenrepo_artifactory/jline/jline/0.9.94/jline-0.9.94.jar,
file:/C:/mavenrepo_artifactory/junit/junit/3.8.2/junit-3.8.2.jar,
file:/C:/mavenrepo_artifactory/org/codehaus/groovy/maven/runtime/gmaven-runtime-support/1.0-rc-2/gmaven-runtime-support-1.0-rc-2.jar,
file:/C:/mavenrepo_artifactory/org/codehaus/groovy/maven/gmaven-common/1.0-rc-2/gmaven-common-1.0-rc-2.jar,
file:/C:/mavenrepo_artifactory/com/thoughtworks/qdox/qdox/1.6.3/qdox-1.6.3.jar,
file:/C:/mavenrepo_artifactory/org/apache/maven/shared/file-management/1.1/file-management-1.1.jar,
file:/C:/mavenrepo_artifactory/org/apache/maven/shared/maven-shared-io/1.0/maven-shared-io-1.0.jar,
file:/C:/mavenrepo_artifactory/org/apache/maven/reporting/maven-reporting-impl/
2.0.4.1/maven-reporting-impl-2.0.4.1.jar,
file:/C:/mavenrepo_artifactory/commons-validator/commons-validator/1.2.0/commons-validator-1.2.0.jar,
file:/C:/mavenrepo_artifactory/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar,

file:/C:/mavenrepo_artifactory/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar,

file:/C:/mavenrepo_artifactory/commons-digester/commons-digester/1.6/commons-digester-1.6.jar,

file:/C:/mavenrepo_artifactory/commons-collections/commons-collections/3.2/commons-collections-3.2.jar,

file:/C:/mavenrepo_artifactory/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar,

file:/C:/mavenrepo_artifactory/oro/oro/2.0.8/oro-2.0.8.jar,
file:/C:/mavenrepo_artifactory/org/apache/maven/doxia/doxia-core/1.0-alpha-10/doxia-core-1.0-alpha-10.jar,

file:/C:/mavenrepo_artifactory/org/apache/maven/doxia/doxia-site-renderer/1.0-alpha-10/doxia-site-renderer-1.0-alpha-10.jar,

file:/C:/mavenrepo_artifactory/org/codehaus/plexus/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar,

file:/C:/mavenrepo_artifactory/org/codehaus/plexus/plexus-velocity/1.1.7/plexus-velocity-1.1.7.jar,
file:/C:/mavenrepo_artifactory/org/apache/velocity/velocity/1.5/velocity-1.5.jar,

Re: Is is possible to run maven command in Eclipse?

2008-07-23 Thread Gopal Patwa

you might want to try this 

http://maven.apache.org/eclipse-plugin.html

http://m2eclipse.codehaus.org/

-Gopal


thomas2004 wrote:
 
 I use maven1 and Eclipse 3.3.x.
 
 Now when I compile a project or run other maven commands, I have to open
 Command Prompt and enter the maven command.
 
 I wonder if one can simple run maven command in Eclipse directly, such as
 right click the project and choose run maven command in the context
 menu.
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Is-is-possible-to-run-maven-command-in-Eclipse--tp18614085p18614498.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: Is is possible to run maven command in Eclipse?

2008-07-23 Thread thomas2004

It seems it use maven2. But I use maven1.




Gopal Patwa wrote:
 
 you might want to try this 
 
 http://maven.apache.org/eclipse-plugin.html
 
 http://m2eclipse.codehaus.org/
 
 -Gopal
 
 
 thomas2004 wrote:
 
 I use maven1 and Eclipse 3.3.x.
 
 Now when I compile a project or run other maven commands, I have to open
 Command Prompt and enter the maven command.
 
 I wonder if one can simple run maven command in Eclipse directly, such as
 right click the project and choose run maven command in the context
 menu.
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Is-is-possible-to-run-maven-command-in-Eclipse--tp18614085p18614637.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: Is is possible to start maven in Eclipse?

2008-07-23 Thread Pierre Thibault
You can define an external tool. Go in the Eclipse tool bar just at the right 
of the play button and choose 'External tool configuration'. Just create the 
command and make it appears in the menu.


Pierre



- Original Message 
From: thomas2004 [EMAIL PROTECTED]
To: users@maven.apache.org
Sent: Wednesday, July 23, 2008 11:55:15 AM
Subject: Is is possible to start maven in Eclipse?


I use maven1 and Eclipse 3.3.x.

Now when I compile a project or run other maven commands, I have to open
Command Prompt and enter the maven command.

I wonder if one can simple run maven command in Eclipse directly, such as
right click the project and choose run maven command in the context menu.



-- 
View this message in context: 
http://www.nabble.com/Is-is-possible-to-start-maven-in-Eclipse--tp18614085p18614085.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]


  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now at
http://ca.toolbar.yahoo.com.

mirrors in settings.xml [Virus checked]

2008-07-23 Thread Wolfgang . Schrecker

Hi experts,

I run an archiva proxy, which takes care of 'internal' as well as
'snapshots'.
when I configure my mirror in settings, I use

mirror
  iddeployment.webdav/id
  urlhttp://MYSERVERLOCATION/archiva/repository/internal/url
  mirrorOf*/mirrorOf
/mirror

what is the configuration to use also SNAPSHOTS and internal ?

any pointers ?



mit freundlichen Grüßen/best regards

Wolfgang Schrecker

Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird dieser
allumfassend, so muß der Inhalt ganz verloren gehen.
from G. Frege: Die Grundlagen der Arithmetik S. 40



 --
--

Atos Worldline Processing GmbH
Hahnstrasse 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
mailto:[EMAIL PROTECTED]
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417
 
--

Atos Worldline Processing GmbH
Hahnstraße 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
Fax :
mailto: [EMAIL PROTECTED]
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417


* * * * * * * * L E G A LD I S C L A I M E R * * * * * * * *
This e-mail is destined for the above mentioned recipient. In case you
received this e-mail by accident, we would appreciate it if you could
contact the sender and delete all copies stored on your computer.
Please be aware that the security and confidentiality of electronic data
transmitted by e-mail is not completely guaranteed and that data may be seen,
copied, downloaded or changed by third persons during transmission.
Atos Origin accepts no liability for the security and confidentiality of
data and documents sent by e-mail. Please make sure that all important
messages will be confirmed in writing by means of a telefax or a letter.
* * * * * * * * L E G A LD I S C L A I M E R * * * * * * * *


Justin Fung is out of the office

2008-07-23 Thread justin_fung

I will be out of the office starting  23/07/2008 and will not return until
24/07/2008.

I will be checking email sporadically and will not be checking voicemail.

For WMS/SIS/IAM/GWIS-related production support issues, please contact Dan
Hou at (604) 643-6673.

For GWIS-related project issues, please contact Joanne C Cheung at (604)
699-3441.

If this e-mail is of an urgent nature requiring immediate escalation,
please contact Phileas Fung at (604) 623-4683.



***
This email may contain confidential information, and is intended only for the 
named recipient and may be privileged. Distribution or copying of this email by 
anyone other than the named recipient is prohibited. If you are not the named 
recipient, please notify us immediately and permanently destroy this email and 
all copies of it. Internet email is not private, secure, or reliable.  No 
member of the HSBC Group is liable for any errors or omissions in the content 
or transmission of this email. Any opinions contained in this email are solely 
those of the author and, unless clearly indicated otherwise in writing, are not 
endorsed by any member of the HSBC Group.
***
Ce courriel peut renfermer des renseignements confidentiels et privilégiés et 
s'adresse au destinataire désigné seulement.   La distribution ou la copie de 
ce courriel par toute personne autre que le destinataire désigné est interdite. 
 Si vous n'êtes pas le destinataire désigné, veuillez nous en aviser 
immédiatement et détruire de façon permanente ce courriel ainsi que toute copie 
de celui-ci. La transmission de courriel par Internet ne constitue pas un mode 
de transmission confidentiel, sécuritaire ou fiable. Aucun membre du Groupe 
HSBC ne sera responsable des erreurs ou des omissions relatives au contenu ou à 
la transmission de ce courriel.  L'auteur de ce courriel est seul responsable 
des opinions émises dans ce courriel, lesquelles, à moins  d'un avis contraire 
fourni par écrit, ne sont pas endossées par aucun membre du Groupe HSBC.
***

SAVE PAPER - THINK BEFORE YOU PRINT!

ÉCONOMISEZ LE PAPIER – PENSEZ-Y À DEUX FOIS AVANT D'IMPRIMER!


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



Justin Fung is out of the office

2008-07-23 Thread justin_fung

I will be out of the office starting  23/07/2008 and will not return until
24/07/2008.

I will be checking email sporadically and will not be checking voicemail.

For WMS/SIS/IAM/GWIS-related production support issues, please contact Dan
Hou at (604) 643-6673.

For GWIS-related project issues, please contact Joanne C Cheung at (604)
699-3441.

If this e-mail is of an urgent nature requiring immediate escalation,
please contact Phileas Fung at (604) 623-4683.



***
This email may contain confidential information, and is intended only for the 
named recipient and may be privileged. Distribution or copying of this email by 
anyone other than the named recipient is prohibited. If you are not the named 
recipient, please notify us immediately and permanently destroy this email and 
all copies of it. Internet email is not private, secure, or reliable.  No 
member of the HSBC Group is liable for any errors or omissions in the content 
or transmission of this email. Any opinions contained in this email are solely 
those of the author and, unless clearly indicated otherwise in writing, are not 
endorsed by any member of the HSBC Group.
***
Ce courriel peut renfermer des renseignements confidentiels et privilégiés et 
s'adresse au destinataire désigné seulement.   La distribution ou la copie de 
ce courriel par toute personne autre que le destinataire désigné est interdite. 
 Si vous n'êtes pas le destinataire désigné, veuillez nous en aviser 
immédiatement et détruire de façon permanente ce courriel ainsi que toute copie 
de celui-ci. La transmission de courriel par Internet ne constitue pas un mode 
de transmission confidentiel, sécuritaire ou fiable. Aucun membre du Groupe 
HSBC ne sera responsable des erreurs ou des omissions relatives au contenu ou à 
la transmission de ce courriel.  L'auteur de ce courriel est seul responsable 
des opinions émises dans ce courriel, lesquelles, à moins  d'un avis contraire 
fourni par écrit, ne sont pas endossées par aucun membre du Groupe HSBC.
***

SAVE PAPER - THINK BEFORE YOU PRINT!

ÉCONOMISEZ LE PAPIER – PENSEZ-Y À DEUX FOIS AVANT D'IMPRIMER!


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



Multimodule Reporting Plugs - M2

2008-07-23 Thread Morgovsky, Alexander (US - Glen Mills)
Hi.  Could someone please point me to a list of actual working
multimodule site plugins for site-2.0-beta-7 plugin?  

I only have the following working:

 

Change Log

Developer Activity

File Activity

JavaNCSS Report

 

Thanks. 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]


Versions of plugins used ...

2008-07-23 Thread Julien Stern

Hi list,

I have a project with a top-level pom and with modules.

Maven uses different versions of plugins if I run mvn from the top level 
or directly within the modules.


I tried with 2.0.7, 2.0.8 and 2.0.9.

I assume that this behavior is because different modules use different 
versions of plugins and that a global compilation can use only one 
plugin version... Is that the case? Or is there a way to use different 
versions of plugins in different modules?


Thanks in advance.

--
Julien

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



3 things not working in the maven Ear plugin 2.3.1 with maven 2.0.9

2008-07-23 Thread Scott Ryan
I have discovered some issues with the latest ear plugin and was
wondering if anyone was having similar issues or had a fix.  It looks
like the last release of the plugin was some time ago.

 

1.  Context root does not seem to be getting set in the application
xml
2.  BundleFileName does not appear to be working
3.  Module definitions are placed in a random order within the
application XML.

 

Here is a sample of my pom for the ear definition

 

build

plugins

  plugin

artifactIdmaven-ear-plugin/artifactId

configuration

  finalNameedsweb/finalName

  defaultLibBundleDir/lib/defaultLibBundleDir

  webModule

artifactIdedsweb-war/artifactId

contextRoot/edsweb/contextRoot

  /webModule

  ejb3Module

artifactIdjboss-seam/artifactId

bundleFileNamejboss-seam.jar/bundleFileName

  /ejb3Module

  ejb3Module

artifactIdedsweb-ejb/artifactId

bundleFileNameedsweb-ejb.jar/bundleFileName

  /ejb3Module

  ejb3Module

artifactIdedsrpt-ejb/artifactId

bundleFileNameedsrpt-ejb.jar/bundleFileName

  /ejb3Module

  ejb3Module

artifactIdedsdata-ejb/artifactId

bundleFileNameedsdata-ejb.jar/bundleFileName

  /ejb3Module

  ejb3Module

artifactIdedsbusiness-ejb/artifactId

bundleFileNameedsbusiness-ejb.jar/bundleFileName

  /ejb3Module

  jarModule

artifactIdjboss-el/artifactId

  /jarModule

/configuration

  /plugin

/plugins

  /build

 

When I run the mvn ear command the artifacts in the directory still have
the version number appended to them as is the case in the application
xml despite the bundleFileName parameter.  The context root is set to
the default (edsweb-war)  rather that what I set.  Also the ordering of
the modules in the application.xml seems rather random and it is very
important that I am able to control the loading order of these modules.
If they are not loaded in the proper order they will not work.

 

Any input would be appreciated.

  

Scott Ryan

Consultant/Java Developer

Cell: 303 263-3044

 



RE : Versions of plugins used ...

2008-07-23 Thread Thomas Darbois
The best way to avoid that problem is to use a parent pom that define 
pluginmanagement  so that each plugin used is clearly defined for your modules.

You need that all the pom inherit in some way from this parent pom.

Tomas

De : Julien Stern [EMAIL PROTECTED]
Date d'envoi : mercredi 23 juillet 2008 19:51
À : Maven Users List
Objet : Versions of plugins used ...

Hi list,

I have a project with a top-level pom and with modules.

Maven uses different versions of plugins if I run mvn from the top level
or directly within the modules.

I tried with 2.0.7, 2.0.8 and 2.0.9.

I assume that this behavior is because different modules use different
versions of plugins and that a global compilation can use only one
plugin version... Is that the case? Or is there a way to use different
versions of plugins in different modules?

Thanks in advance.

--
Julien

-
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: Versions of plugins used ...

2008-07-23 Thread Michael McCallum
On Thu, 24 Jul 2008 07:15:48 Thomas Darbois wrote:
 The best way to avoid that problem is to use a parent pom that define
 pluginmanagement  so that each plugin used is clearly defined for your
 modules.
Thats not necessarily the best way! Its one way.

Does the new pom import dependency apply to plugin management as well, if so 
that might be more appropriate.

-- 
Michael McCallum
Enterprise Engineer
mailto:[EMAIL PROTECTED]

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



Should I use Maven in multi-lang project and how

2008-07-23 Thread cbonar
Hi

I'm coming to the list in order to have the opinion of experimented maven users
on the way to use Maven on my project.

It is a project which provides a javascript library to enhance web forms. It has
a server-side API in different languages : PHP, Java, Python, ASP, ...

I'm searching for a uniform way to distribute the project :
  - in a snapshot archive containing all of the binaries (most of which are in
fact sources, since they're scripts)
  - in an individual package for each programming language (one needs only to
download the one for the appropriate language)

As a matter of fact, API will also be distributed in other ways (PEAR for PHP,
compressed javascript, ...), and I'll probably use CruiseControl on top of
Maven.

I've started to (re)organize it in a parent project and one subproject
(module/) for each language.
- Do you think Maven is adequate there ?

I've also a problem : I made a few icons : for the web site and for use by the
Javascript API.
- Where do you think I shall put those pictures : they could form a project by
themselves, but it's going to be a lot of projects... If I put it in the parent
project, will its modules be able to access those icons ?


Thanks for taking time to answer (any clue appreciated),

cbonar

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



RE: 3 things not working in the maven Ear plugin 2.3.1 with maven 2.0.9

2008-07-23 Thread Dhruva Reddy
I run the EAR plugin 2.3.1 and maven 2.0.9.  The webModules element
needs to be wrapped in the modules element, like this:
 
build
plugins
plugin
...
configuration
...
modules
webModule
artifactIdedsweb-war/artifactId
contextRoot/edsweb/contextRoot
/webModule
/modules
/configuration
/plugin
/plugins
/build

Dhruva

-Original Message-
From: Scott Ryan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 23, 2008 2:42 PM
To: users@maven.apache.org
Subject: 3 things not working in the maven Ear plugin 2.3.1 with maven
2.0.9

I have discovered some issues with the latest ear plugin and was
wondering if anyone was having similar issues or had a fix.  It looks
like the last release of the plugin was some time ago.

 

1.  Context root does not seem to be getting set in the application
xml
2.  BundleFileName does not appear to be working
3.  Module definitions are placed in a random order within the
application XML.

 

Here is a sample of my pom for the ear definition

 

build

plugins

  plugin

artifactIdmaven-ear-plugin/artifactId

configuration

  finalNameedsweb/finalName

  defaultLibBundleDir/lib/defaultLibBundleDir

  webModule

artifactIdedsweb-war/artifactId

contextRoot/edsweb/contextRoot

  /webModule

  ejb3Module

artifactIdjboss-seam/artifactId

bundleFileNamejboss-seam.jar/bundleFileName

  /ejb3Module

  ejb3Module

artifactIdedsweb-ejb/artifactId

bundleFileNameedsweb-ejb.jar/bundleFileName

  /ejb3Module

  ejb3Module

artifactIdedsrpt-ejb/artifactId

bundleFileNameedsrpt-ejb.jar/bundleFileName

  /ejb3Module

  ejb3Module

artifactIdedsdata-ejb/artifactId

bundleFileNameedsdata-ejb.jar/bundleFileName

  /ejb3Module

  ejb3Module

artifactIdedsbusiness-ejb/artifactId

bundleFileNameedsbusiness-ejb.jar/bundleFileName

  /ejb3Module

  jarModule

artifactIdjboss-el/artifactId

  /jarModule

/configuration

  /plugin

/plugins

  /build

 

When I run the mvn ear command the artifacts in the directory still have
the version number appended to them as is the case in the application
xml despite the bundleFileName parameter.  The context root is set to
the default (edsweb-war)  rather that what I set.  Also the ordering of
the modules in the application.xml seems rather random and it is very
important that I am able to control the loading order of these modules.
If they are not loaded in the proper order they will not work.

 

Any input would be appreciated.

  

Scott Ryan

Consultant/Java Developer

Cell: 303 263-3044

 


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



problems with the help plugin

2008-07-23 Thread EJ Ciramella
I keep encountering the following error - any suggestions?

 

help:effective-pom [FATAL ERROR]
org.apache.maven.plugins.help.EffectivePomMojo#execute() caused a
linkage error (java.lang.NoClassDefFoundError) and may be out-of-date.
Check the realms:
FATAL ERROR] Plugin realm =
app0.child-container[org.apache.maven.plugins:maven-help-plugin urls[0]
=
file:/e:/work/m2/repository/org/apache/maven/plugins/maven-help-plugin/2
.1-SNAPSHOT/maven-help-plugin-2.1-SNAPSHOT.jar
urls[1] =
file:/e:/work/m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-
utils-1.1.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/c:/maven-2.0.9/bin/../lib/maven-2.0.9-uber.jar
urls[1] = file:/c:/maven-2.0.9/bin/../lib/maven-ant-tasks-2.0.9.jar
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] org/codehaus/plexus/util/WriterFactory
[INFO]

[INFO] Trace
java.lang.NoClassDefFoundError: org/codehaus/plexus/util/WriterFactory
at
org.apache.maven.plugins.help.EffectivePomMojo.execute(EffectivePomMojo.
java:111)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:558)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
l(DefaultLifecycleExecutor.java:512)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:482)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:227)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]

[INFO] Total time: 19 seconds
[INFO] Finished at: Wed Jul 23 16:19:14 EDT 2008
[INFO] Final Memory: 12M/27M
[INFO]




RE: How to use an archetype I installed locally

2008-07-23 Thread Archambault, Daniel
Thanks Raphaël. I misread part of your previous email ... using my archetypes 
deployed on a remote repository works fine now.

Many thanks,
Daniel

-Original Message-
From: Raphaël Piéroni [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 23, 2008 11:19 AM
To: Archambault, Daniel
Subject: Re: How to use an archetype I installed locally

easy!
crawl only crawl the filesystem.
you have to be on the machine to run crawl.

Raphaël

2008/7/23 Archambault, Daniel [EMAIL PROTECTED]:
 Hi Raphaël,

 We use nexus. When I use crawl as you mentioned below I get the following 
 FileNotFoundException. Somehow crawl seems to pre-pend my current working dir 
 to the path I specify in the repository argument. And, although the command 
 output shows BUILD SUCCESSFUL as status there is no archetype-catalog.xml 
 file that gets created in the remote repository. Could you please let know 
 what I'm doing wrong?

 Many thanks,
 Daniel

 C:\dan_tmp\catalogmvn archetype:crawl 
 -Drepository=http://yul115347l01.clients.
 nasa.cpwr.corp:8081/nexus/content/repositories/releases
 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'archetype'.
 [INFO] 
 --
 --
 [INFO] Building Maven Default Project
 [INFO]task-segment: [archetype:crawl] (aggregator-style)
 [INFO] 
 --
 --
 [INFO] [archetype:crawl]
 repository 
 C:\dan_tmp\catalog\http:\yul115347l01.clients.nasa.cpwr.corp:8081\nex
 us\content\repositories\releases
 catalogFile null
 [WARNING] File is not a directory
 [WARNING] Catalog can not be writen to 
 C:\dan_tmp\catalog\http:\yul115347l01.cli
 ents.nasa.cpwr.corp:8081\nexus\content\repositories\releases\archetype
 -catalog.x
 ml
 java.io.FileNotFoundException: 
 C:\dan_tmp\catalog\http:\yul115347l01.clients.nas
 a.cpwr.corp:8081\nexus\content\repositories\releases\archetype-catalog
 .xml (The filename, directory name, or volume label syntax is incorrect)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.init(FileOutputStream.java:179)
at java.io.FileOutputStream.init(FileOutputStream.java:131)
at java.io.FileWriter.init(FileWriter.java:73)
at 
 org.apache.maven.archetype.repositorycrawler.DefaultRepositoryCrawler
 .writeCatalog(DefaultRepositoryCrawler.java:170)
at 
 org.apache.maven.archetype.mojos.CrawlRepositoryMojo.execute(CrawlRep
 ositoryMojo.java:77)
at 
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
 nManager.java:451)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
 ultLifecycleExecutor.java:558)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
 Goal(DefaultLifecycleExecutor.java:512)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
 ltLifecycleExecutor.java:482)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
 dleFailures(DefaultLifecycleExecutor.java:330)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
 ts(DefaultLifecycleExecutor.java:227)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
 fecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at 
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 [INFO] 
 --
 --
 [INFO] BUILD SUCCESSFUL
 [INFO] 
 --
 --
 [INFO] Total time: 3 seconds
 [INFO] Finished at: Wed Jul 23 10:49:08 EDT 2008 [INFO] Final Memory: 
 6M/11M [INFO] 
 --
 --

 C:\dan_tmp\catalog

 -Original Message-
 From: Raphaël Piéroni [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 23, 2008 9:59 AM
 To: Archambault, Daniel
 Subject: Re: How to use an archetype I installed locally

 Hi Daniel,

 The archetype plugin doesn't currently update any remote catalog when 
 deploying.

 The best you can do is to create an archetype catalog by yourself.
 It is an XML file. Just try to 

recommend project stucture for java w/jni, win32 and linux natives

2008-07-23 Thread NoMojoMofo


I have a project that has these artifacts:

- Windows .dll compiled with MSVC 2005 project
- Linux .so compiled with Netbeans C make file
- jar of classes used through the JNI invocation api from both native libs
above.


Is there currently a best practices to compile all of these through maven2 ? 

-- 
View this message in context: 
http://www.nabble.com/recommend-project-stucture-for-java-w-jni%2C-win32-and-linux-natives-tp18619875p18619875.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]



How to use mvn scm:checkout using revision number

2008-07-23 Thread logachandru . x . rajamanickam
Hi,

On a command prompt using maven scm:checkout, how do we checkout the 
source code from a specific revison number on the branch of a Subversion 
repository? 

I tried the below mentioned command and got the latest(or HEAD) from that 
branch instead from the exact revision number of that branch. Would 
require someone's assistance on this. Please help me in resolving this 
issue.

mvn scm:checkout -DconnectionUrl=scm:svn:
file:app/svn/repos/branches/one -DscmRevision=2289 
-DscmVersionType=revision -DcheckoutDirectory=sample


Thanks  Regards,
Logu Rajamanickam

-
This communication is for informational purposes only. It is not
intended as an offer or solicitation for the purchase or sale of
any financial instrument or as an official confirmation of any
transaction. All market prices, data and other information are not
warranted as to completeness or accuracy and are subject to change
without notice. Any comments or statements made herein do not
necessarily reflect those of JPMorgan Chase  Co., its subsidiaries
and affiliates.

This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase 
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.

Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to UK legal entities.

Re: Versions of plugins used ...

2008-07-23 Thread Julien Stern
On Thu, Jul 24, 2008 at 07:31:47AM +1200, Michael McCallum wrote:
 On Thu, 24 Jul 2008 07:15:48 Thomas Darbois wrote:
  The best way to avoid that problem is to use a parent pom that define
  pluginmanagement  so that each plugin used is clearly defined for your
  modules.
 Thats not necessarily the best way! Its one way.

Thomas, Michael,

thanks for your answers.
I understand the interest of pluginManagement, unfortunately
I have some exotic needs here:

one of the module requires the assembly plugin version 2.1
one other module requires version 2.2-beta-1
and one other module requires version 2.2-beta-2

Indeed, they are some bugs in 2.1 that makes it unusable in some
situations. These bugs have been fixed in 2.2-beta-1, but some
regression (regarding interpolation) have been introduced.
These regressions have been fixed in 2.2-beta-2, but some new
regressions (regarding file duplications) have been introduced.

Because we are using the assembly plugin in 3 different contexts
and because all three versions have different bugs, we need to use
all three different versions in the three modules.

Would you know a way to do this?

Regards,

--
Julien


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



Re: Versions of plugins used ...

2008-07-23 Thread Michael McCallum
On Thu, 24 Jul 2008 07:31:47 Michael McCallum wrote:
 On Thu, 24 Jul 2008 07:15:48 Thomas Darbois wrote:
  The best way to avoid that problem is to use a parent pom that define
The problem with parent poms is that they are versioned resources but people 
make use of the 'ignore the version just use the ../../pom.xml' parent with 
modules and inheritance. You end up using the parent on trunk/head. As a 
result you have no consistency.

if you release your entire source tree each time then you ensure consistency 
but you lose all of the power of having prebuilt artifacts esp for larger 
teams.

One key factor that people seem to forget is that when you composite 
dependencies each of those dependencies can have a different inheritance 
hierachy...

for a very simple contrived example...
parent 1 and 2 and 3 are released over time

a :: parent 3
 - b
 - d

b :: parent 2
 - e
 - c

c :: parent 1

d :: parent 2

e :: parent 2

now if you resolve your dependencies for 'a' you get

a (parent 3)
 - b (parent 2)
- e (parent 2)
- c (parent 1)
 - d (parent 2)

if order for b, e, c and d to be consistent you have to honour their 
inheritance...

i'll leave all the implications to the unfortunate reader ;-)

-- 
Michael McCallum
Enterprise Engineer
mailto:[EMAIL PROTECTED]

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



[m2] can I have a module use 2 different filter.properties ?

2008-07-23 Thread Mick Knutson
I have a filter.properties and an application.properties that i want my
module to use when filtering certain resources. is this possible?
---
Thank You…

Mick Knutson
BASE Logic, inc.
(415) 354-4215

Website: http://baselogic.com
Blog: http://baselogic.com/blog
BLiNC Magazine: http://blincmagazine.com
Linked IN: http://linkedin.com/in/mickknutson
DJ Mick: http://djmick.com
MySpace: http://myspace.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com


Re: [m2] can I have a module use 2 different filter.properties ?

2008-07-23 Thread Mick Knutson
What it seems I am looking for is a way to have 1 filter for resources, and
another filter for test resources.
---
Thank You…

Mick Knutson
BASE Logic, inc.
(415) 354-4215

Website: http://baselogic.com
Blog: http://baselogic.com/blog
BLiNC Magazine: http://blincmagazine.com
Linked IN: http://linkedin.com/in/mickknutson
DJ Mick: http://djmick.com
MySpace: http://myspace.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com


On Wed, Jul 23, 2008 at 4:41 PM, Mick Knutson [EMAIL PROTECTED] wrote:

 I have a filter.properties and an application.properties that i want my
 module to use when filtering certain resources. is this possible?
 ---
 Thank You…

 Mick Knutson
 BASE Logic, inc.
 (415) 354-4215

 Website: http://baselogic.com
 Blog: http://baselogic.com/blog
 BLiNC Magazine: http://blincmagazine.com
 Linked IN: http://linkedin.com/in/mickknutson
 DJ Mick: http://djmick.com
 MySpace: http://myspace.com/mickknutson
 Vacation Rental: http://tahoe.baselogic.com



Re: Versions of plugins used ...

2008-07-23 Thread Michael McCallum
yes don't use modules... just release each artifact independently...


-- 
Michael McCallum
Enterprise Engineer
mailto:[EMAIL PROTECTED]

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



Maven prebuild postbuild hyperjaxb3

2008-07-23 Thread alkatal

hi i m unsing hyperjaxb3 with maven2. Unfortunately it is overwrighting a
file : persistence.xml.
I tried to use ant plugin in order to first copy the persistence.xml to
persistence_old.xml and the copy that one back to persistence.xml.
[code]
 plugin
artifactIdmaven-antrun-plugin/artifactId
executions
execution
idcopy-persistence/id
phaseprocess-sources/phase
configuration
tasks
echo message=Copying file/
copy
file=src/main/resources/persistence.xml
tofile=src/main/java/META-INF/persistence_old.xml/
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin
[/code]

same for the copy back. Unfortunately the 2 copies are done first. Is there
any way to define an order of execution of the plugins.

thnks for yr help
-- 
View this message in context: 
http://www.nabble.com/Maven-prebuild-postbuild-hyperjaxb3-tp18623905p18623905.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]



Adding project dependencies and generated classes to classpath of my plugin

2008-07-23 Thread jaxzin

I'm writing a plugin to precompile templates for a language similar to JSP. 
The plugin needs the dependencies and compiled classes of the project its
running in.  Does anyone have an example of how to add the containing
project's dependencies and target/classes directory to the classpath of the
plugin?
-- 
View this message in context: 
http://www.nabble.com/Adding-project-dependencies-and-generated-classes-to-classpath-of-my-plugin-tp18624435p18624435.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]



Excludes... Someone please help!

2008-07-23 Thread Yaakov Chaikin
Hi,

I am trying to use the assemble:assemble plugin and have tried to use
excludes using 2.1 version of the plugin and 2.2-beta-2 version of
the plugin with filesets, but neither of them work. Can someone please
take a look at this and tell me what I am doing wrong?

The first version of the descriptor with plugin version 2.1 was this:


moduleSets
moduleSet
includes
includeFES:AnnotationGrouping/include
includeFES:Common/include
includeFES:Workflow/include
/includes
sources
outputDirectory${artifactId}/outputDirectory
excludes
exclude.project/exclude
exclude.classpath/exclude
exclude.settings/exclude
/excludes
/sources
/moduleSet
/moduleSets
..
..

The 2nd version of the descriptor, following the new 2.2 plugin
version schema, I tried to use filesets:
..
..
moduleSets
moduleSet
includes
includeFES:AnnotationGrouping/include
includeFES:Common/include
includeFES:ConceptCleaning/include
includeFES:ConceptExtraction/include
includeFES:DocumentSegmentation/include
includeFES:DocumentSummarization/include
includeFES:DomainModel/include
includeFES:Emissary/include
includeFES:EntityNormalization/include
includeFES:FeatureExtraction/include
includeFES:NamedEntityAnnotator/include
includeFES:PartOfSpeechAnnotator/include
includeFES:Persistence/include
includeFES:TokenAnnotator/include
includeFES:Workflow/include
/includes
sources
fileSets
fileSet
excludes
exclude.project/exclude
exclude.classpath/exclude
exclude.settings/exclude
/excludes
/fileSet
/fileSets
outputDirectory${artifactId}/outputDirectory
/sources
/moduleSet
/moduleSets


However, in both cases, the .classpath, .project and the .settings
folder is still included in my ZIP... How do I get rid of them???

Thanks,
Yaakov.

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



Re: recommend project stucture for java w/jni, win32 and linux natives

2008-07-23 Thread Dan Tran
3 options:

nar-maven-plugin
native-maven-plugin
jade-maven-plugin


-D


On Wed, Jul 23, 2008 at 2:52 PM, NoMojoMofo [EMAIL PROTECTED] wrote:


 I have a project that has these artifacts:

 - Windows .dll compiled with MSVC 2005 project
 - Linux .so compiled with Netbeans C make file
 - jar of classes used through the JNI invocation api from both native libs
 above.


 Is there currently a best practices to compile all of these through maven2 ?

 --
 View this message in context: 
 http://www.nabble.com/recommend-project-stucture-for-java-w-jni%2C-win32-and-linux-natives-tp18619875p18619875.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]