Re: cannot use a samba share as managed repository

2007-03-20 Thread Joakim Erdfelt
The \\computername\sharedfolder\resource syntax is UNC.
http://en.wikipedia.org/wiki/Uniform_Naming_Convention

Java has terribly inconsistent support for UNC.
(mostly due to slash escaping bugs)
It's far more reliable to mount your share, and reference it via the
mount point.

- Joakim

nicolas de loof wrote:
 Hello,

 I'd like my managed repository to be stored on a file server. I can
 acces it
 using a smb share : \\servfichier\Maven_Repository\public
 The URL file:/servfichier/Maven_Repository/public/ works well to
 acces
 it

 When I configure Archiva using this path, the artifact request fails
 in the
 DAVRepository class.
 The constructor of this class builds an URI from the File. From
 \\servfichier\Maven_Repository\public as a File, the URI is
 file:/servfichier/Maven_Repository/public/ that is invalid.

 This URI is built using the JRE File class and it's toURI() and
 normalize()
 methods. So I don't know if I missunderstood the use of windows-share
 under
 Java.

 All this relates to class from it.could.webdav, so maybe this is not the
 best place to ask for this...




Linux build Windows build asynchron

2007-03-20 Thread Christian Clauss
Hello everybody,

 

I'm trying to do an asynchron build process. I have to build my files on a
Linux environment and on a Windows environment. Actually these two build
processes run one and then the other. I copy the files via the ant scp-task
to the Linux machine and start the build process by running a shell script.
When finished are the files copied back to Windows using the ant scp-task
again. Subsequently the build process on the Windows environment is started.
The code is written in C++ so it's necessary that it is compiled on both
environments.

My question: is it possible in Maven2 that the build process on a Linux
environment is started and at the same time the Windows build is started?
After one of the two builds has finished, Maven2 has to wait for the other
process to finish and then continue. Is this possible to realise?

 

Thanks a lot for your endeavours to assist.

 

Christian



cannot use a samba share as managed repository

2007-03-20 Thread nicolas de loof

Hello,

I'd like my managed repository to be stored on a file server. I can acces it
using a smb share : \\servfichier\Maven_Repository\public
The URL file:/servfichier/Maven_Repository/public/ works well to acces
it

When I configure Archiva using this path, the artifact request fails in the
DAVRepository class.
The constructor of this class builds an URI from the File. From
\\servfichier\Maven_Repository\public as a File, the URI is
file:/servfichier/Maven_Repository/public/ that is invalid.

This URI is built using the JRE File class and it's toURI() and normalize()
methods. So I don't know if I missunderstood the use of windows-share under
Java.

All this relates to class from it.could.webdav, so maybe this is not the
best place to ask for this...


Re: Maven2 and JUnit4

2007-03-20 Thread Tom Huybrechts

Are you sure you are using the latest surefire ?
Can you run with -X ?

Tom

On 3/20/07, Marcos Silva Pereira [EMAIL PROTECTED] wrote:

Ok, I now that this is a so much frequent question, but I can't find a neat
thread about this issue. I already have take a look at surefire plugin doc
and JIRA without success. In surefire how
tohttp://maven.apache.org/plugins/maven-surefire-plugin/howto.htmlyou
can see this statement:

Which providers are available is controlled simply by the inclusion of the
appropriate dependencies (ie, junit:junit for JUnit, org.testng:testng
4.7+for TestNG). Since this is required to compile the test classes
anyway, no
additional configuration is required.

JUnit 4 is configured in the following way:

dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version4.2/version
scopetest/scope
/dependency

But I catch some test failures when my tests except some exception:

@Test(expected = IllegalStateException.class)
public final void testSomethingBah() throws Exception {
...
}

So, how I can configure Maven/Surefire to correctly run JUnit 4 tests?

Kind Regards,

--
Marcos Silva Pereira
recife - pe
[EMAIL PROTECTED]
skype: marcos.silva.pereira
http://blastemica.blogspot.com



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



Re: [m2] Handling special characters in localized site report

2007-03-20 Thread Thorsten Heit

Hi Dennis,

There are known problems setting the output encoding in the site- 
plugin.


  http://jira.codehaus.org/browse/MSITE-19


Thanks for the hint, I'll watch this.
Any news on this topic? The issue is quite old (almost 1.5 years now)...


Thorsten


PGP.sig
Description: Signierter Teil der Nachricht


RE: site plugin fails

2007-03-20 Thread Tilman.Rossmy
ok thanks, yes somehow the following repository sneaked in to the master
pom:
  
  pluginRepository
idmavenSnapshots/id
nameMaven Snapshots/name
snapshots
enabledtrue/enabled
updatePolicynever/updatePolicy
checksumPolicywarn/checksumPolicy
/snapshots
 
urlhttp://people.apache.org/repo/m2-snapshot-repository/url
layoutdefault/layout
/pluginRepository 

uncommenting that did the job. So the lesson is to avoid snapshot
versions if possible, I guess

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 19, 2007 8:49 PM
To: Maven Users List
Subject: Re: site plugin fails

Seems like you're pointing to the snapshot repo for some of your
artifacts. Remove that from your pom.

Also, lock down your artifact versions using pluginManagement and
dependencyManagement in parent poms with versions declared as
version[1.2.3]/version.

Wayne

On 3/19/07, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 Hi!
 This morning I out of the blue the site plugin fails with this 
 exception

 [INFO]
 --
 --
 [ERROR] BUILD ERROR
 [INFO]
 --
 -- [INFO] Internal error in the plugin manager executing goal
 'org.apache.maven.plugins:maven-site-plugin:2.0-SNAPSHOT:site': Unable

 to find the mojo 
 'org.apache.maven.plugins:maven-site-plugin:2.0-SNAPSHOT:site' in the 
 plugin 'org.apache.maven.plugins:maven-site-plugin'
 org/apache/maven/doxia/module/xhtml/decoration/render/RenderingContext

 When I left work on Friday everything was working alright, and nobody 
 has touched the system since. Apart from this specific failure, how 
 can I prevent that from happening, e.g. freeze a working system?

 Tilman Rossmy
 MC-TO-CPT-POA-IMD
 Swisscom Mobile
 Waldeggstrasse 51
 3097  Liebefeld  BE
 Phone: +41795932871



-
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: Cannot remove project (due to notifier)

2007-03-20 Thread David Roussel

 I am unable to remove a project because of a FK constraint in the DB on
 the notifiers.

See Re: troubles removing projects on 15 March 2007 on this very same
mailing list.

 Is there anyway I can get around this without having to poke around in
 the DB?

Possibly not.


War plugin question

2007-03-20 Thread Steve Vangasse
My application uses a war file that is shared by multiple contexts
within Tomcat. I'm using the Maven2 War plugin to build the war file. At
present the generated class files and the jar files used by the
application are put inside the war file's WEB-INF/lib and
WEB-INF/classes directories. I would like to be able to decrease the
memory footprint by putting these files into Tomcat's shared/lib and
shared/classes directories. Does anyone know of a way that this can be
done?
 
Thanks,

Steve Vangasse

 


Module names change in Continuum

2007-03-20 Thread Ronald Pieterse
I just ran into a problem that needs solving really quickly. maybe 
someone has encountered it before and knows what to do. The situation is 
as follows:
I have a project which contains a number of subprojects but they are on 
the same physical level as the parent project, like so:


/- parent
- submodule1
- submodule2
/
In the parent pom I refer to the submodules like so:

/modules
   module../submodule1/module
   module../submodule2/module
   module../submodule3/module
   ...
/modules

/However by Continuum these module names are transformed into project 
ids which are numbers so this relative reference does not work anymore. 
The message I get is:
/Could not find the model file 
'/usr/local/continuum-1.0.3/apps/continuum/working-directory/138/../submodule1/pom.xml'./


The name 'submodule1' is replaced by a number too.
Is there a way to fix this? Maybe a setting to maintain the module 
names? I need this pretty fast, really hope someone can help me.


Ronald


maven-compiler-plugin doesn't compile according to configuration

2007-03-20 Thread Rahamim, Zvi \(Zvi\)
Hi,
I've configured my pom.xml to use jdk 1.4.2, but it compiles with
another JDK.
Here is the maven-compiler-plugin configuration that I use:

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
version2.0.2/version
configuration
  executableC:/jdk1.4.2/bin/javac/executable
  compilerVersion1.4/compilerVersion
  forktrue/fork
  source1.4/source
  target1.4/target
/configuration
  /plugin


Can you tell me what is wrong?
Thanks!

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



Re: maven question

2007-03-20 Thread Valerio Schiavoni

Hello Don,

a possible solution is to define a profile in your root/pom.xml where  
you declare the submodule you want to 'isolate' somehow.


Something like:

project

profile
idbuild-proj1-sub/id
modules
modulesub/module
  /modules
/profile
/profiles
/project

once the profile is activated (-Pbuild-proj1-sub from command line,  
only to mention one option), you'll change the module hierarchy so  
that it will take into account only the submodule you want to build.




Il giorno 09/mar/07, alle ore 18:35, Don Hill ha scritto:

I am working on a project that has many subprojects, from the root  
is there
a way to compile/install just a targeted subproject. I want to be  
able to

build/install proj1/sub

root/pom.xml

proj1/pom.xml
proj1/sub/pom.xml





--
Valerio Schiavoni
http://jroller.com/page/vschiavoni





How to use JunitEE in M2?

2007-03-20 Thread JesseLiu
Hi there,
I have not found a plugin for JunitEE, Is there any plugin for JUnitEE? Can 
anyone give me a sample pom.xml?

Thanks


Jesse

more than one profile active at the same time

2007-03-20 Thread Valerio Schiavoni

Hello everyone,
i want to two have more than 1 profile active by default. So to each
of the profiles in my pom I added:

activation
activeByDefaulttrue/activeByDefault
/activation

to be sure that each of the profiles are 'activated', i tested it with:

mvn help:active-profiles

the output is quite reassuring:

[INFO] [help:active-profiles]
[INFO]
Active Profiles for Project
'org.objectweb.fractal:julia-integrationtests-conf:jar:2.5.1-SNAPSHOT':

The following profiles are active:

- nooptimization (source: pom)
- merge-controllers (source: pom)
- merge-controllers-and-interceptors (source: pom)
- merge-everything (source: pom)

each profile configure surefire to be executed with some properties.
The problem is that only the last profile declared in the pom is
actually 'executed' (that is: if I comment 'merge-everything', then
merge-controllers-and-interceptors' is the one to be actived).

Is this a known issue ? I couldn't find any JIRA for it.

Did i misunderstand the semantic of 'active-by-default' ?

thank,
valerio
--
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni

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



Master - Child POM

2007-03-20 Thread Xander

Hi everyone,

I created several projects with maven. To make some default company stuff
general, i created a master pom, which contains settings about repositories
and issue management and so on.

This system works great as long as i have the master pom in my local
repository (stored on my computer). When i clean my local repository the sub
project isn't able to find the master pom in my company's repository, even
when i add that company repository to my settings.xml file. Maven tries to
locate the Master pom only on my mirror of central-repository.

Any help would be appriciated.

 - Xander


Attachments:
--
master pom contains:
--
repositories
repository
idAP400 Local/id
urlhttp://sv006.ap400.lan/maven-repos/url
/repository
/repositories
--
child pom contains:
--
parent
groupIdnl.ap400/groupId
artifactIdmaster/artifactId
version1.0/version
/parent

--
settings.xml contains:
--
mirrors
mirror
idAP400 Internal/id
urlhttp://sv006.ap400.lan/maven-repos//url
/mirror
mirror
idskynet.be/id
urlhttp://maven2.mirrors.skynet.be/pub/maven2/url
mirrorOfcentral/mirrorOf
/mirror
/mirrors
-- 
View this message in context: 
http://www.nabble.com/Master--%3E-Child-POM-tf3432285s177.html#a9568171
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: War plugin question

2007-03-20 Thread Rémy Sanlaville

Hi Steve,

Look at the provided scope for yours dependencies.
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

HTH,

Rémy


2007/3/20, Steve Vangasse [EMAIL PROTECTED]:


My application uses a war file that is shared by multiple contexts
within Tomcat. I'm using the Maven2 War plugin to build the war file. At
present the generated class files and the jar files used by the
application are put inside the war file's WEB-INF/lib and
WEB-INF/classes directories. I would like to be able to decrease the
memory footprint by putting these files into Tomcat's shared/lib and
shared/classes directories. Does anyone know of a way that this can be
done?

Thanks,

Steve Vangasse





Re: Master - Child POM

2007-03-20 Thread Thorsten Heit
Hi,

 --
 settings.xml contains:
 --
   mirrors
   mirror
   idAP400 Internal/id
   urlhttp://sv006.ap400.lan/maven-repos//url
   /mirror

If that's your local repository should should put that in a repositories 
section, not in mirrors:

profiles
  profile
repositories
  repository
idAP400 Internal/id
urlhttp://sv006.ap400.lan/maven-repos//url
snapshots
  enabled{true or false, depending on your settings}/enabled
/snapshots
releases
  enabled{true or false, depending on your settings}/enabled
/releases
  /repository
/repositories
...
  /profile
/profiles


HTH

Thorsten

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



RE: War plugin question

2007-03-20 Thread Steve Vangasse
I actually have 2 webapps shared across multiple contexts that share a common 
library. When this library is built I've made an ant plugin that copies the 
library jar and all it's dependencies to Tomcat's common/lib directory. So I'm 
already using the provided scope for some jars used by the webapps that are in 
Tomcat's common/lib.

Each webapp then has it's own dependencies (struts, jsf etc.) built straight 
into it's WEB-INF/lib directory and it's class files to WEB-INF/classes. This 
works fine but get's tight on memory when more and more contexts are running 
due to the webapp class loader.

I'm really looking for a way to build any compile scoped jars straight into 
Tomcat's shared/lib along with the generated class files to shared/classes.

Something like a destination directory setting in the war plugin would do the 
trick but I couldn't find one. Any ideas?

Thanks again,

Steve Vangasse



-Original Message-
From: Rémy Sanlaville [mailto:[EMAIL PROTECTED] 
Sent: 20 March 2007 09:56
To: Maven Users List
Subject: Re: War plugin question

Hi Steve,

Look at the provided scope for yours dependencies.
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

HTH,

Rémy


2007/3/20, Steve Vangasse [EMAIL PROTECTED]:

 My application uses a war file that is shared by multiple contexts 
 within Tomcat. I'm using the Maven2 War plugin to build the war file. 
 At present the generated class files and the jar files used by the 
 application are put inside the war file's WEB-INF/lib and 
 WEB-INF/classes directories. I would like to be able to decrease the 
 memory footprint by putting these files into Tomcat's shared/lib and 
 shared/classes directories. Does anyone know of a way that this can be 
 done?

 Thanks,

 Steve Vangasse




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



Re: Re: [m204] Help getting Maven to run with JDeveloper 10.x please...???

2007-03-20 Thread Matthias Wessendorf

Hello,

the JDEV plugin from Trinidad has been released as 1.0.0-incubating

http://people.apache.org/repo/m2-incubating-repository/org/apache/myfaces/trinidadbuild/maven-jdev-plugin/1.0.0-incubating/

I would agree that it makes sense to bring it to maven plugins project.
Still interested ?

Greetings,
Matthias

On 8/24/06, Brett Porter [EMAIL PROTECTED] wrote:

This was donated with the intention of bringing it to Maven. If you
both are interested, we're looking for people who can contribute to
it.

- Brett

On 24/08/06, Alexandre Poitras [EMAIL PROTECTED] wrote:
 There is a Maven plugin available in the myfaces trinidad project. You
 have to build it yourself but work great.

 On 8/22/06, Mick Knutson [EMAIL PROTECTED] wrote:
  I am trying to add my maven application to JDeveloper workspace. Can anyone
  help me? When I import the ear file into JDeveloper, it just does not look
  the same?
 
 
  ---
  Thanks
 
  DJ MICK
  http://www.djmick.com
  http://www.myspace.com/mickknutson
 
 

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




--
Apache Maven - http://maven.apache.org
Better Builds with Maven book - http://library.mergere.com/

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





--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

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



Re: cannot use a samba share as managed repository

2007-03-20 Thread Robert Dale

You should mount the share locally.  Java does not have built-in
support for accessing smb shares.

--
Robert Dale


On 3/20/07, nicolas de loof [EMAIL PROTECTED] wrote:

Hello,

I'd like my managed repository to be stored on a file server. I can acces it
using a smb share : \\servfichier\Maven_Repository\public
The URL file:/servfichier/Maven_Repository/public/ works well to acces
it

When I configure Archiva using this path, the artifact request fails in the
DAVRepository class.
The constructor of this class builds an URI from the File. From
\\servfichier\Maven_Repository\public as a File, the URI is
file:/servfichier/Maven_Repository/public/ that is invalid.

This URI is built using the JRE File class and it's toURI() and normalize()
methods. So I don't know if I missunderstood the use of windows-share under
Java.

All this relates to class from it.could.webdav, so maybe this is not the
best place to ask for this...



unlock account

2007-03-20 Thread Tilman.Rossmy
One of our developers has tried 3 times to enter the continuum webapp
with a wrong password, now the admin account is locked. How can I unlock
it? 



RE: unlock account

2007-03-20 Thread Doug Tanner
I would imagine that a restart of the service would do it.

Doug Tanner


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 20, 2007 7:53 AM
To: continuum-users@maven.apache.org
Subject: unlock account

One of our developers has tried 3 times to enter the continuum webapp
with a wrong password, now the admin account is locked. How can I unlock
it? 




BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is intended 
only for the individual or entity to which it is addressed and may contain 
information that is confidential and protected by law. Unauthorized review, 
use, disclosure, or dissemination of this communication or its contents in any 
way is prohibited and may be unlawful. If you are not the intended recipient or 
a person responsible for delivering this message to an intended recipient, 
please notify the original sender immediately by e-mail or telephone, return 
the original message to the original sender or to [EMAIL PROTECTED], and 
destroy all copies or derivations of the original message. Thank you.  
(BFeComNote Rev. 08/01/2005)
***


RE: unlock account

2007-03-20 Thread Tilman.Rossmy
no that's not the case, I guess I have to access the database...

-Original Message-
From: Doug Tanner [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 20, 2007 12:55 PM
To: continuum-users@maven.apache.org
Subject: RE: unlock account

I would imagine that a restart of the service would do it.

Doug Tanner


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 20, 2007 7:53 AM
To: continuum-users@maven.apache.org
Subject: unlock account

One of our developers has tried 3 times to enter the continuum webapp
with a wrong password, now the admin account is locked. How can I unlock
it? 





BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is
intended only for the individual or entity to which it is addressed and
may contain information that is confidential and protected by law.
Unauthorized review, use, disclosure, or dissemination of this
communication or its contents in any way is prohibited and may be
unlawful. If you are not the intended recipient or a person responsible
for delivering this message to an intended recipient, please notify the
original sender immediately by e-mail or telephone, return the original
message to the original sender or to [EMAIL PROTECTED], and
destroy all copies or derivations of the original message. Thank you.
(BFeComNote Rev. 08/01/2005)

***


Surefire plugin

2007-03-20 Thread hermod.opstvedt
Hi

My builds which have worked unchanged, have stopped working with a missing 
plugin:   

org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.3.1-20070302.212423-2

Its not on ibiblio  nor on people.apache.org - So where is it?

Hermod


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

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: unlock account

2007-03-20 Thread Emmanuel Venisse

You don't have latest snapshot. In latest snapshot, admin accounts are unlocked 
at startup

Emmanuel

[EMAIL PROTECTED] a écrit :

no that's not the case, I guess I have to access the database...

-Original Message-
From: Doug Tanner [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 20, 2007 12:55 PM

To: continuum-users@maven.apache.org
Subject: RE: unlock account

I would imagine that a restart of the service would do it.

Doug Tanner


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 20, 2007 7:53 AM
To: continuum-users@maven.apache.org
Subject: unlock account

One of our developers has tried 3 times to enter the continuum webapp
with a wrong password, now the admin account is locked. How can I unlock
it? 






BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is
intended only for the individual or entity to which it is addressed and
may contain information that is confidential and protected by law.
Unauthorized review, use, disclosure, or dissemination of this
communication or its contents in any way is prohibited and may be
unlawful. If you are not the intended recipient or a person responsible
for delivering this message to an intended recipient, please notify the
original sender immediately by e-mail or telephone, return the original
message to the original sender or to [EMAIL PROTECTED], and
destroy all copies or derivations of the original message. Thank you.
(BFeComNote Rev. 08/01/2005)

***







Re: Surefire plugin

2007-03-20 Thread Valerio Schiavoni

can you try with
mvn -o

if it was working before, it should work like that.

then it means that you're dependending on a snapshot version of that
plugin, which was not available when maven checks for updates...or so
it should.

On 3/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi

My builds which have worked unchanged, have stopped working with a missing 
plugin:

org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.3.1-20070302.212423-2

Its not on ibiblio  nor on people.apache.org - So where is it?

Hermod


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

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]





--
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni

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



Re: maven-compiler-plugin doesn't compile according to configuration

2007-03-20 Thread Thorsten Heit
Hi,

   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-compiler-plugin/artifactId
 version2.0.2/version
 configuration
   executableC:/jdk1.4.2/bin/javac/executable

Shouldn't the above be ...javac.exe?


HTH

Thorsten

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



Re: Maven/eclipse project import problem

2007-03-20 Thread Thorsten Heit
Hi Phill,

 Problem:
 Damn thing picks 1.5.0.11 JDK instead of j2ee install even though the j2ee
 is
 java_home. No JDK on path.
 Try deleting or adding new JDK or even tools.jar and after rebuild eclipse
 removes it from library reference.
 Another side effect is the project does not actually compile the code
 either.
 Copies my resources to the correct spot but that is it. PDE exception of
 errors
 during build

Have you checked which JRE your Eclipse installation is using as the default 
JRE? Perhaps the IDE is using a different one as you're using in the command 
line...?

(Window - Preferences - Java - Installed JREs)


Cheers

Thorsten

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



RE: Surefire plugin

2007-03-20 Thread hermod.opstvedt
Hi

Nope, it is a dependency from some other plugin that is already downloaded. 
What strikes me is that the surefire plugin is no longer in the maven-plugins 
SVN either (otherwise I could have build it)

Hermod

-Original Message-
From: Valerio Schiavoni [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 20, 2007 1:57 PM
To: Maven Users List
Subject: Re: Surefire plugin


can you try with
mvn -o

if it was working before, it should work like that.

then it means that you're dependending on a snapshot version of that
plugin, which was not available when maven checks for updates...or so
it should.

On 3/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi

 My builds which have worked unchanged, have stopped working with a missing 
 plugin:

 org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.3.1-20070302.212423-2

 Its not on ibiblio  nor on people.apache.org - So where is it?

 Hermod


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

 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]




-- 
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni

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



Ignore module if missing

2007-03-20 Thread Jean-Luc Wasmer

Hi,

I would like to disable some modules if their folder is missing instead 
of failing.

How can I do this?


Jean-Luc

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



RE: unlock account

2007-03-20 Thread Tilman.Rossmy
allright,thanx, for those who don't want to get the latest snapshot and are 
courageous enough to access continuum users database:
update  jdouser set locked = 'N' 

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 20, 2007 1:49 PM
To: continuum-users@maven.apache.org
Subject: Re: unlock account

You don't have latest snapshot. In latest snapshot, admin accounts are unlocked 
at startup

Emmanuel

[EMAIL PROTECTED] a écrit :
 no that's not the case, I guess I have to access the database...
 
 -Original Message-
 From: Doug Tanner [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 20, 2007 12:55 PM
 To: continuum-users@maven.apache.org
 Subject: RE: unlock account
 
 I would imagine that a restart of the service would do it.
 
 Doug Tanner
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 20, 2007 7:53 AM
 To: continuum-users@maven.apache.org
 Subject: unlock account
 
 One of our developers has tried 3 times to enter the continuum webapp 
 with a wrong password, now the admin account is locked. How can I 
 unlock it?
 
 
 
 **
 **
 
 BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is 
 intended only for the individual or entity to which it is addressed 
 and may contain information that is confidential and protected by law.
 Unauthorized review, use, disclosure, or dissemination of this 
 communication or its contents in any way is prohibited and may be 
 unlawful. If you are not the intended recipient or a person 
 responsible for delivering this message to an intended recipient, 
 please notify the original sender immediately by e-mail or telephone, 
 return the original message to the original sender or to 
 [EMAIL PROTECTED], and destroy all copies or derivations of the original 
 message. Thank you.
 (BFeComNote Rev. 08/01/2005)
 **
 **
 ***
 
 
 



RE: Surefire plugin

2007-03-20 Thread hermod.opstvedt
Found it on ibiblio

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 20, 2007 2:07 PM
To: users@maven.apache.org
Subject: RE: Surefire plugin


Hi

Nope, it is a dependency from some other plugin that is already downloaded. 
What strikes me is that the surefire plugin is no longer in the maven-plugins 
SVN either (otherwise I could have build it)

Hermod

-Original Message-
From: Valerio Schiavoni [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 20, 2007 1:57 PM
To: Maven Users List
Subject: Re: Surefire plugin


can you try with
mvn -o

if it was working before, it should work like that.

then it means that you're dependending on a snapshot version of that
plugin, which was not available when maven checks for updates...or so
it should.

On 3/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi

 My builds which have worked unchanged, have stopped working with a missing 
 plugin:

 org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.3.1-20070302.212423-2

 Its not on ibiblio  nor on people.apache.org - So where is it?

 Hermod


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

 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]




-- 
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni

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


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



Re: Master - Child POM

2007-03-20 Thread Xander

Hi Thorsten,

that fixed my problem...

Greetz Xander



Thorsten Heit-3 wrote:
 
 Hi,
 
 --
 settings.xml contains:
 --
  mirrors
  mirror
  idAP400 Internal/id
  urlhttp://sv006.ap400.lan/maven-repos//url
  /mirror
 
 If that's your local repository should should put that in a repositories
 section, not in mirrors:
 
 profiles
   profile
 repositories
   repository
 idAP400 Internal/id
 urlhttp://sv006.ap400.lan/maven-repos//url
 snapshots
   enabled{true or false, depending on your settings}/enabled
 /snapshots
 releases
   enabled{true or false, depending on your settings}/enabled
 /releases
   /repository
 /repositories
 ...
   /profile
 /profiles
 
 
 HTH
 
 Thorsten
 

-- 
View this message in context: 
http://www.nabble.com/Master--%3E-Child-POM-tf3432285s177.html#a9572171
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: maven-compiler-plugin doesn't compile according to configuration

2007-03-20 Thread Rahamim, Zvi \(Zvi\)
No, it doesn't help.
It seems that it takes the java according to the env variable JAVA_HOME 

-Original Message-
From: Thorsten Heit [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 20, 2007 2:59 PM
To: Maven Users List
Subject: Re: maven-compiler-plugin doesn't compile according to
configuration

Hi,

   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-compiler-plugin/artifactId
 version2.0.2/version
 configuration
   executableC:/jdk1.4.2/bin/javac/executable

Shouldn't the above be ...javac.exe?


HTH

Thorsten

-
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: Maven/eclipse project import problem

2007-03-20 Thread Phill Moran
Thanks for the reply. It is using the j2ee jre. In fact I removed to others from
Eclipse (not from system)

Still puzzled 

-Original Message-
From: Thorsten Heit [mailto:[EMAIL PROTECTED] 
Sent: March 20, 2007 8:05 AM
To: Maven Users List
Subject: Re: Maven/eclipse project import problem

Hi Phill,

 Problem:
 Damn thing picks 1.5.0.11 JDK instead of j2ee install even though the 
 j2ee is java_home. No JDK on path.
 Try deleting or adding new JDK or even tools.jar and after rebuild 
 eclipse removes it from library reference.
 Another side effect is the project does not actually compile the code 
 either.
 Copies my resources to the correct spot but that is it. PDE exception 
 of errors during build

Have you checked which JRE your Eclipse installation is using as the default
JRE? Perhaps the IDE is using a different one as you're using in the command
line...?

(Window - Preferences - Java - Installed JREs)


Cheers

Thorsten

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



which version of Ant bundled with Maven 2.0.5?

2007-03-20 Thread Mark Hansen
Which version of Ant is bundled wtih Maven 2.0.5 and how can I determine 
that?  Thanks.


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



Re: Ignore module if missing

2007-03-20 Thread Thierry Lach

I think this will work Define each module in a profile, then activate it
if the pom exists, something like this:

profile
 idmodule1-build/id
 activation
   file
 existsmodule1/pom.xml/exists
   /file
 /activation
 modules
   modulemodule1/modules
 /modules
/profile



On 3/20/07, Jean-Luc Wasmer [EMAIL PROTECTED] wrote:


Hi,

I would like to disable some modules if their folder is missing instead
of failing.
How can I do this?


Jean-Luc

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




Re: which version of Ant bundled with Maven 2.0.5?

2007-03-20 Thread Armin Ehrenfels

Hi Mark,

take a look at org/apache/maven/plugins/maven-antrun-plugin/[version] in 
your local repository. There, you will find a .pom file which contains 
all dependencies. As you can see, versions 1.0 and 1.1 both depend on 
Ant-1.6.5.


HTH

Armin

Mark Hansen wrote:

Which version of Ant is bundled wtih Maven 2.0.5 and how can I 
determine that?  Thanks.


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



Version of Ant supported by Antrun Plugin?

2007-03-20 Thread Mark Hansen
More specifically, what version of Ant is used by the Antrun plugin?  I 
need some features of Ant 1.7.0 for some tasks that are called from 
inside the POM.  It seems that the supported feature set is from Ant 1.6.5.


 Original Message 
Subject:which version of Ant bundled with Maven 2.0.5?
Date:   Tue, 20 Mar 2007 10:03:14 -0400
From:   Mark Hansen [EMAIL PROTECTED]
Reply-To:   Maven Users List users@maven.apache.org
To: Maven Users List users@maven.apache.org



Which version of Ant is bundled wtih Maven 2.0.5 and how can I determine 
that?  Thanks.


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



maven2 xdoclet2 plugin

2007-03-20 Thread nicolas de loof

the xdoclet2 project has a maven2 plugin (
http://xdoclet.codehaus.org/Maven2+plugin)
Codehaus dist repository contains version 2.0.5 (
http://dist.codehaus.org/xdoclet/maven-plugins/)
AFAIK codehaus is expected to be synch to repo1.
Why isn't this plugin available on repo1.maven.org ?

Nico.


Re: which version of Ant bundled with Maven 2.0.5?

2007-03-20 Thread Dan Tran

wonder if we can override the version thru the
build.plugins.plugin.dependencies declaration

-D


On 3/20/07, Armin Ehrenfels [EMAIL PROTECTED] wrote:


Hi Mark,

take a look at org/apache/maven/plugins/maven-antrun-plugin/[version] in
your local repository. There, you will find a .pom file which contains
all dependencies. As you can see, versions 1.0 and 1.1 both depend on
Ant-1.6.5.

HTH

Armin

Mark Hansen wrote:

 Which version of Ant is bundled wtih Maven 2.0.5 and how can I
 determine that?  Thanks.

 -
 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: Snapshot overload

2007-03-20 Thread Thorsten Heit
Hi Tommy,

 I've not seen any instance where more than a few snapshot builds are
 actually needed to be maintained, but I'm concerned that deleting old
 snapshots will leave the repository metadata in a state that doesn't
 reflect the reality.
 
 Can anyone comment on this? Is it really safe to roll old snapshots
 off the disk, keeping just a few for the not-uncommon case of
 incompatible API change?

Perhaps you should have a look at Artifactory (artifactory.sf.net). As far as I 
have seen it during my usage it only caches the latest version of snapshots 
deployed to the repository.

Ok, this doesn't prevent the user-local cache from growing so your users should 
sometime simply clean their cache. But at least this helps you to save some 
disk space on your proxy.


Cheers

Thorsten

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



Transitive dependencies of artifacts with classifiers

2007-03-20 Thread Paul Gier
How are transitive dependencies handled when the artifacts have a
non-default classifier?  For example, I have the following dependency
tree:
A - B
B - C

Now let's say I want to build a jdk1.4 version of A.  So I depend on
B-jdk14.jar (B with jdk14 classifier), and B-jdk14.jar depends on
C-jdk14.jar.  

Is it possible to include the C-jdk14 dependency through B?

Thanks!


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



JAR Plugin / GPG Plugin

2007-03-20 Thread Matthias Wessendorf

Hi,

not sure what the source of the issue is, but I have the following jars:
-binary jar (project-xxx.jar)
-javadoc-jar  (project-xxx-javadoc.jar)
-source-jar (project-xxx-source.jar)
-test-jar (project-xxx-tests.jar)

I am running something like
mvn install source:jar javadoc:jar -Psign-artifacts -Dpassphrase=foobar

inside one of these modules I have the following for JAR-Plguin:
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-jar-plugin/artifactId
   configuration
archive
  manifest

addDefaultSpecificationEntriestrue/addDefaultSpecificationEntries

addDefaultImplementationEntriestrue/addDefaultImplementationEntries
  /manifest
/archive
  /configuration
   executions
 execution
   goals
 goaltest-jar/goal
   /goals
 /execution
   /executions
 /plugin


Ok, the big fun here is, that all JARs are signed (.asc file) but not
the -tests.jar :-)
Anyone seen this before ?

Thx,
Matthias


--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

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



Re: JAR Plugin / GPG Plugin

2007-03-20 Thread Matthias Wessendorf

ok...

looks like gpg 1.0-alpha-3 fixed it.

sorry for the quick shot

On 3/20/07, Matthias Wessendorf [EMAIL PROTECTED] wrote:

Hi,

not sure what the source of the issue is, but I have the following jars:
-binary jar (project-xxx.jar)
-javadoc-jar  (project-xxx-javadoc.jar)
-source-jar (project-xxx-source.jar)
-test-jar (project-xxx-tests.jar)

I am running something like
mvn install source:jar javadoc:jar -Psign-artifacts -Dpassphrase=foobar

inside one of these modules I have the following for JAR-Plguin:
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
configuration
 archive
   manifest
 
addDefaultSpecificationEntriestrue/addDefaultSpecificationEntries
 
addDefaultImplementationEntriestrue/addDefaultImplementationEntries
   /manifest
 /archive
   /configuration
executions
  execution
goals
  goaltest-jar/goal
/goals
  /execution
/executions
  /plugin


Ok, the big fun here is, that all JARs are signed (.asc file) but not
the -tests.jar :-)
Anyone seen this before ?

Thx,
Matthias


--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com




--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

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



Maven

2007-03-20 Thread ALACHARI SALAH
Hello, 

I inherited beautiful CD which contains the source code of a project builds
with Maven2, the project is to constitute several sub-projects, in each
project there are the files maven.xml and projet.xml. I would like to know
which is the procedure to rebuild this project knowing that I installed
Maven and the plugin maven for eclipse. 

Thank you in advance

 



Re: Maven

2007-03-20 Thread Wayne Fay

Files such as maven.xml and project.xml indicate this is in fact a
Maven1 project, not Maven2 as you assumed.

So you will need to download and install Maven1 instead:
http://maven.apache.org/maven-1.x/

Wayne

On 3/20/07, ALACHARI SALAH [EMAIL PROTECTED] wrote:

Hello,

I inherited beautiful CD which contains the source code of a project builds
with Maven2, the project is to constitute several sub-projects, in each
project there are the files maven.xml and projet.xml. I would like to know
which is the procedure to rebuild this project knowing that I installed
Maven and the plugin maven for eclipse.

Thank you in advance






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



RE: Transitive dependencies of artifacts with classifiers

2007-03-20 Thread Jörg Schaible
Paul Gier wrote on Tuesday, March 20, 2007 4:40 PM:

 How are transitive dependencies handled when the artifacts have a
 non-default classifier?  For example, I have the following dependency
 tree: A - B
 B - C
 
 Now let's say I want to build a jdk1.4 version of A.  So I depend on
 B-jdk14.jar (B with jdk14 classifier), and B-jdk14.jar depends on
 C-jdk14.jar. 
 
 Is it possible to include the C-jdk14 dependency through B?
 
 Thanks!

This won't work by default. While you can add a dep with a classifier, it is 
simply added to all others in the dep list. So the only chance you have is to 
use profiles for the different JDK versions where you explicitly add those deps 
in each component and a profile for the default with the artifacts without 
classifier (for your default JDK). If you have more than one of the same 
artifact with different (or none) classifier in your dep list - its pure chance 
which one is taken by the compiler.

- Jörg

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



Re: Ignore module if missing

2007-03-20 Thread Jean-Luc Wasmer
That doesn't seem to work: the module never gets built (even when I 
don't have an activation section).


Jean-Luc


Thierry Lach wrote:
I think this will work Define each module in a profile, then 
activate it

if the pom exists, something like this:

profile
 idmodule1-build/id
 activation
   file
 existsmodule1/pom.xml/exists
   /file
 /activation
 modules
   modulemodule1/modules
 /modules
/profile



On 3/20/07, Jean-Luc Wasmer [EMAIL PROTECTED] wrote:


Hi,

I would like to disable some modules if their folder is missing instead
of failing.
How can I do this?


Jean-Luc 


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



Re: Linux build Windows build asynchron

2007-03-20 Thread Wayne Fay

Look for a Continuous Integration server available for both Windows
and Linux that can compile your code etc on both environments.
Depending on your SCM, you might be able to wire things up so both
builds are automatically started any time code is checked in, or just
do a hourly/nightly build etc.

Wayne

On 3/20/07, Christian Clauss [EMAIL PROTECTED] wrote:

Hello everybody,



I'm trying to do an asynchron build process. I have to build my files on a
Linux environment and on a Windows environment. Actually these two build
processes run one and then the other. I copy the files via the ant scp-task
to the Linux machine and start the build process by running a shell script.
When finished are the files copied back to Windows using the ant scp-task
again. Subsequently the build process on the Windows environment is started.
The code is written in C++ so it's necessary that it is compiled on both
environments.

My question: is it possible in Maven2 that the build process on a Linux
environment is started and at the same time the Windows build is started?
After one of the two builds has finished, Maven2 has to wait for the other
process to finish and then continue. Is this possible to realise?



Thanks a lot for your endeavours to assist.



Christian




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



Re: Ignore module if missing

2007-03-20 Thread Thierry Lach

Then you're probably doing something wrong.  Here's a simple test case.

parent pom...

?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
 groupIdorg.example/groupId
 artifactIdexample-parent/artifactId
 packagingpom/packaging
 nameExample parent/name
 version0.0.1-SNAPSHOT/version
 modules
   modulemodule1/module
 /modules
 profiles
   profile
 idmodule2-build/id
 activation
   file
 existsmodule2/pom.xml/exists
   /file
 /activation
 modules
   modulemodule2/module
 /modules
   /profile
 /profiles
/project

module1 pom

?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;
 parent
   artifactIdexample-parent/artifactId
   groupIdorg.example/groupId
   version0.0.1-SNAPSHOT/version
 /parent
 modelVersion4.0.0/modelVersion
 groupIdorg.example/groupId
 artifactIdmodule1/artifactId
 packagingpom/packaging
 version0.0.1-SNAPSHOT/version
 nameExample module1/name
/project


module2 pom

?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;
 parent
   artifactIdexample-parent/artifactId
   groupIdorg.example/groupId
   version0.0.1-SNAPSHOT/version
 /parent
 modelVersion4.0.0/modelVersion
 groupIdorg.example/groupId
 artifactIdmodule2/artifactId
 packagingpom/packaging
 version0.0.1-SNAPSHOT/version
 nameExample module2/name
/project


execution

C:\src\modulesmvn install
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Example parent
[INFO]   Example module1
[INFO]   Example module2
[INFO]

[INFO] Building Example parent
[INFO]task-segment: [install]
[INFO]

[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing C:\src\modules\pom.xml to c:\Documents and
Settings\lacht\.m2\repository\org\example\example-parent\0.0.1-SNAPSHOT
\example-parent-0.0.1-SNAPSHOT.pom
[INFO]

[INFO] Building Example module1
[INFO]task-segment: [install]
[INFO]

[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing C:\src\modules\module1\pom.xml to c:\Documents and
Settings\lacht\.m2\repository\org\example\module1\0.0.1-SNAPSHOT\module1-
0.0.1-SNAPSHOT.pom
[INFO]

[INFO] Building Example module2
[INFO]task-segment: [install]
[INFO]

[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing C:\src\modules\module2\pom.xml to c:\Documents and
Settings\lacht\.m2\repository\org\example\module2\0.0.1-SNAPSHOT\module2-
0.0.1-SNAPSHOT.pom
[INFO]
[INFO]
[INFO]

[INFO] Reactor Summary:
[INFO]

[INFO] Example parent  SUCCESS [
1.765s]
[INFO] Example module1 ... SUCCESS [
0.015s]
[INFO] Example module2 ... SUCCESS [
0.016s]
[INFO]

[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Mar 20 14:16:11 EDT 2007
[INFO] Final Memory: 3M/7M
[INFO]


C:\src\modules

and with module2 missing

C:\src\modulesrename module2 module3

C:\src\modulesmvn install
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Example parent
[INFO]   Example module1
[INFO]

[INFO] Building Example parent
[INFO]task-segment: [install]
[INFO]

[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing C:\src\modules\pom.xml to c:\Documents and
Settings\lacht\.m2\repository\org\example\example-parent\0.0.1-SNAPSHOT
\example-parent-0.0.1-SNAPSHOT.pom
[INFO]

Changing the log level of a plugin

2007-03-20 Thread Rahamim, Zvi \(Zvi\)
How can I configure the logger of a plugin class?
for example  I want org.apache.maven.plugin.AbstractCompilerMojo that
the logger debug print will be invoked (e.g. getLog().debug( Using
compiler ' + compilerId + '. );)
Thanks!

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



weird error from maven-dependency plugin...

2007-03-20 Thread EJ Ciramella
 
So I've hit another wall trying to maintain my own internal repository.
I'd like to use the dependency plugin, but after installing it, I get
this message:
 
(what is this trying to indicate?)
 
[INFO] Building jar:
E:\work\up-svcs\lty\proj\LTY-P39\frontoffice\ltyApp\emailApp\target\
emailApp.jar
-
this realm =
app0.child-container[org.apache.maven.plugins:maven-dependency-plugin]
urls[0] =
file:/E:/work/m2/Repository/org/apache/maven/plugins/maven-dependency-pl
ugin/2.0-alpha-2/maven-dependency-plugin-2.0-alpha-2.jar
Number of imports: 0
 

this realm = plexus.core.maven
urls[0] = file:/E:/buildtools/maven-2.0.5/bin/../lib/commons-cli-1.0.jar
urls[1] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/doxia-sink-api-1.0-alpha-7.ja
r
urls[2] = file:/E:/buildtools/maven-2.0.5/bin/../lib/jsch-0.1.27.jar
urls[3] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/jtidy-4aug2000r7-dev.jar
urls[4] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-artifact-2.0.5.jar
urls[5] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-artifact-manager-2.0.5.
jar
urls[6] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-core-2.0.5-javadoc.jar
urls[7] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-core-2.0.5.jar
urls[8] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-error-diagnostics-2.0.5
.jar
urls[9] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-model-2.0.5.jar
urls[10] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-monitor-2.0.5.jar
urls[11] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-plugin-api-2.0.5.jar
urls[12] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-plugin-descriptor-2.0.5
.jar
urls[13] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-plugin-parameter-docume
nter-2.0.5.jar
urls[14] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-plugin-registry-2.0.5.j
ar
urls[15] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-profile-2.0.5.jar
urls[16] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-project-2.0.5.jar
urls[17] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-reporting-api-2.0.5.jar
urls[18] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-repository-metadata-2.0
.5.jar
urls[19] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-settings-2.0.5.jar
urls[20] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/plexus-interactivity-api-1.0-
alpha-4.jar
urls[21] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/wagon-file-1.0-beta-2.jar
urls[22] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/wagon-http-lightweight-1.0-be
ta-2.jar
urls[23] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/wagon-http-shared-1.0-beta-2.
jar
urls[24] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/wagon-provider-api-1.0-beta-2
.jar
urls[25] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/wagon-ssh-1.0-beta-2.jar
urls[26] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/wagon-ssh-common-1.0-beta-2.j
ar
urls[27] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/wagon-ssh-external-1.0-beta-2
.jar
urls[28] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/xml-apis-1.0.b2.jar
Number of imports: 0
 

this realm = plexus.core
urls[0] =
file:/E:/buildtools/maven-2.0.5/bin/../core/plexus-container-default-1.0
-alpha-9.jar
urls[1] =
file:/E:/buildtools/maven-2.0.5/bin/../core/plexus-utils-1.1.jar
Number of imports: 0
-
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-2:copy':
Unable to find the mojo 'o
rg.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-2:copy' in the
plugin 'org.apache.maven.plugins:maven-dependency-plugin'
org/codehaus/plexus/archiver/ArchiverException


RE: weird error from maven-dependency plugin...

2007-03-20 Thread Brian E. Fox
Seems like it can't properly load the plugin. I would try clearing
org/codehaus and org/apache/maven/plugins from your repo and see if that
solves it. (I'm guessing a local metadata issue) 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 20, 2007 3:36 PM
To: users@maven.apache.org
Subject: weird error from maven-dependency plugin...

 
So I've hit another wall trying to maintain my own internal repository.
I'd like to use the dependency plugin, but after installing it, I get
this message:
 
(what is this trying to indicate?)
 
[INFO] Building jar:
E:\work\up-svcs\lty\proj\LTY-P39\frontoffice\ltyApp\emailApp\target\
emailApp.jar
-
this realm =
app0.child-container[org.apache.maven.plugins:maven-dependency-plugin]
urls[0] =
file:/E:/work/m2/Repository/org/apache/maven/plugins/maven-dependency-pl
ugin/2.0-alpha-2/maven-dependency-plugin-2.0-alpha-2.jar
Number of imports: 0
 

this realm = plexus.core.maven
urls[0] = file:/E:/buildtools/maven-2.0.5/bin/../lib/commons-cli-1.0.jar
urls[1] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/doxia-sink-api-1.0-alpha-7.ja
r
urls[2] = file:/E:/buildtools/maven-2.0.5/bin/../lib/jsch-0.1.27.jar
urls[3] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/jtidy-4aug2000r7-dev.jar
urls[4] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-artifact-2.0.5.jar
urls[5] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-artifact-manager-2.0.5.
jar
urls[6] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-core-2.0.5-javadoc.jar
urls[7] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-core-2.0.5.jar
urls[8] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-error-diagnostics-2.0.5
.jar
urls[9] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-model-2.0.5.jar
urls[10] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-monitor-2.0.5.jar
urls[11] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-plugin-api-2.0.5.jar
urls[12] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-plugin-descriptor-2.0.5
.jar
urls[13] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-plugin-parameter-docume
nter-2.0.5.jar
urls[14] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-plugin-registry-2.0.5.j
ar
urls[15] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-profile-2.0.5.jar
urls[16] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-project-2.0.5.jar
urls[17] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-reporting-api-2.0.5.jar
urls[18] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-repository-metadata-2.0
.5.jar
urls[19] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-settings-2.0.5.jar
urls[20] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/plexus-interactivity-api-1.0-
alpha-4.jar
urls[21] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/wagon-file-1.0-beta-2.jar
urls[22] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/wagon-http-lightweight-1.0-be
ta-2.jar
urls[23] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/wagon-http-shared-1.0-beta-2.
jar
urls[24] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/wagon-provider-api-1.0-beta-2
.jar
urls[25] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/wagon-ssh-1.0-beta-2.jar
urls[26] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/wagon-ssh-common-1.0-beta-2.j
ar
urls[27] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/wagon-ssh-external-1.0-beta-2
.jar
urls[28] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/xml-apis-1.0.b2.jar
Number of imports: 0
 

this realm = plexus.core
urls[0] =
file:/E:/buildtools/maven-2.0.5/bin/../core/plexus-container-default-1.0
-alpha-9.jar
urls[1] =
file:/E:/buildtools/maven-2.0.5/bin/../core/plexus-utils-1.1.jar
Number of imports: 0
-
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-2:copy':
Unable to find the mojo 'o
rg.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-2:copy' in the
plugin 'org.apache.maven.plugins:maven-dependency-plugin'
org/codehaus/plexus/archiver/ArchiverException

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



mvn dependency:unpack

2007-03-20 Thread muhwas
hi,

Can somebody please explain me how mvn
dependency:unpack works because i am trying to run
tuscany-incubating-M2 samples. when i run mvn
dependency:unpack i am getting 

[INFO]

[INFO] One or more required plugin parameters are
invalid/missing for 'dependen
y:unpack'

[0] inside the definition for plugin:
'maven-dependency-plugin'specify the foll
wing:

configuration
  ...
  artifactItemsVALUE/artifactItems
/configuration.


I found on the list that i have to include 

plugin
  groupIdorg.apache.maven.plugins/groupId
 
artifactIdmaven-dependency-plugin/artifactId
  version2.0-alpha-1/version
  executions
execution
  idunpack/id
  phasepackage/phase
  goals
goalunpack/goal
  /goals
  configuration
 artifactItems
  artifactItem
  groupIdmyModule/groupId
artifactIdmyArtifactId/artifactId
   version1.0-SNAPSHOT/version
typejar/type
  overWritefalse/overWrite
 
outputDirectory${project.build.directory}/outputDirectory
 /artifactItem
/artifactItems
  /configuration
/execution
  /executions
/plugin

in the plugins section in pom.xml file. but i what
to know how do i know what plug-ins to unpack?

regards,
muhwas

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



Re: War plugin question

2007-03-20 Thread Kalle Korhonen

Re-design your applications so that common classes are in a jar, and include
the jars your want to share in your war with scope provided. Then, use the
assembly plugin to deploy the provided jars to shared/lib. We use a similar
approach and it works well.

Kalle


On 3/20/07, Steve Vangasse [EMAIL PROTECTED] wrote:


I actually have 2 webapps shared across multiple contexts that share a
common library. When this library is built I've made an ant plugin that
copies the library jar and all it's dependencies to Tomcat's common/lib
directory. So I'm already using the provided scope for some jars used by the
webapps that are in Tomcat's common/lib.

Each webapp then has it's own dependencies (struts, jsf etc.) built
straight into it's WEB-INF/lib directory and it's class files to
WEB-INF/classes. This works fine but get's tight on memory when more and
more contexts are running due to the webapp class loader.

I'm really looking for a way to build any compile scoped jars straight
into Tomcat's shared/lib along with the generated class files to
shared/classes.

Something like a destination directory setting in the war plugin would
do the trick but I couldn't find one. Any ideas?

Thanks again,

Steve Vangasse



-Original Message-
From: Rémy Sanlaville [mailto:[EMAIL PROTECTED]
Sent: 20 March 2007 09:56
To: Maven Users List
Subject: Re: War plugin question

Hi Steve,

Look at the provided scope for yours dependencies.

http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

HTH,

Rémy


2007/3/20, Steve Vangasse [EMAIL PROTECTED]:

 My application uses a war file that is shared by multiple contexts
 within Tomcat. I'm using the Maven2 War plugin to build the war file.
 At present the generated class files and the jar files used by the
 application are put inside the war file's WEB-INF/lib and
 WEB-INF/classes directories. I would like to be able to decrease the
 memory footprint by putting these files into Tomcat's shared/lib and
 shared/classes directories. Does anyone know of a way that this can be
 done?

 Thanks,

 Steve Vangasse




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




RE: mvn dependency:unpack

2007-03-20 Thread Brian E. Fox
I recently enhanced the plugin page to cover this specifically:
http://maven.apache.org/plugins/maven-dependency-plugin/faq.html

-Original Message-
From: muhwas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 20, 2007 4:09 PM
To: users@maven.apache.org
Subject: mvn dependency:unpack

hi,

Can somebody please explain me how mvn
dependency:unpack works because i am trying to run
tuscany-incubating-M2 samples. when i run mvn
dependency:unpack i am getting 

[INFO]

[INFO] One or more required plugin parameters are
invalid/missing for 'dependen
y:unpack'

[0] inside the definition for plugin:
'maven-dependency-plugin'specify the foll
wing:

configuration
  ...
  artifactItemsVALUE/artifactItems
/configuration.


I found on the list that i have to include 

plugin
  groupIdorg.apache.maven.plugins/groupId
 
artifactIdmaven-dependency-plugin/artifactId
  version2.0-alpha-1/version
  executions
execution
  idunpack/id
  phasepackage/phase
  goals
goalunpack/goal
  /goals
  configuration
 artifactItems
  artifactItem
  groupIdmyModule/groupId
artifactIdmyArtifactId/artifactId
   version1.0-SNAPSHOT/version
typejar/type
  overWritefalse/overWrite
 
outputDirectory${project.build.directory}/outputDirectory
 /artifactItem
/artifactItems
  /configuration
/execution
  /executions
/plugin

in the plugins section in pom.xml file. but i what
to know how do i know what plug-ins to unpack?

regards,
muhwas

-
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: mvn dependency:unpack

2007-03-20 Thread muhwas
thank you for your reply but i am still getting same
eror. could you please let me know what i am doing
wrong.

thanks


--- Brian E. Fox [EMAIL PROTECTED] wrote:

 I recently enhanced the plugin page to cover this
 specifically:

http://maven.apache.org/plugins/maven-dependency-plugin/faq.html
 
 -Original Message-
 From: muhwas [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 20, 2007 4:09 PM
 To: users@maven.apache.org
 Subject: mvn dependency:unpack
 
 hi,
 
 Can somebody please explain me how mvn
 dependency:unpack works because i am trying to run
 tuscany-incubating-M2 samples. when i run mvn
 dependency:unpack i am getting 
 
 [INFO]


 [INFO] One or more required plugin parameters are
 invalid/missing for 'dependen
 y:unpack'
 
 [0] inside the definition for plugin:
 'maven-dependency-plugin'specify the foll
 wing:
 
 configuration
   ...
   artifactItemsVALUE/artifactItems
 /configuration.
 
 
 I found on the list that i have to include 
 
 plugin

 groupIdorg.apache.maven.plugins/groupId

 artifactIdmaven-dependency-plugin/artifactId
 version2.0-alpha-1/version
 executions
   execution
 idunpack/id
 phasepackage/phase
 goals
   goalunpack/goal
 /goals
 configuration
artifactItems
 artifactItem
 groupIdmyModule/groupId
   artifactIdmyArtifactId/artifactId
  version1.0-SNAPSHOT/version
   typejar/type
 overWritefalse/overWrite


outputDirectory${project.build.directory}/outputDirectory
/artifactItem
   /artifactItems
 /configuration
   /execution
 /executions
   /plugin
 
 in the plugins section in pom.xml file. but i what
 to know how do i know what plug-ins to unpack?
 
 regards,
 muhwas
 

-
 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]
 
 
?xml version=1.0 encoding=UTF-8?
!--
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * License); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
--
project
parent
groupIdorg.apache.tuscany.sca.samples/groupId
artifactIdparent/artifactId
version1.0-incubator-M2/version
/parent
modelVersion4.0.0/modelVersion
artifactIdsample-helloworldwsclient/artifactId
packagingjar/packaging
nameTuscany HelloWorld Web Service Client Sample/name
descriptionA sample client for a HelloWorld Web Service./description

dependencies

dependency
groupIdcommonj/groupId
artifactIdsdo-api-r2.0.1/artifactId
version${sdoVersion}/version
scopecompile/scope
/dependency
dependency
groupIdorg.osoa/groupId
artifactIdsca-api-r0.95/artifactId
version${scaVersion}/version
scopeprovided/scope
/dependency
dependency
groupIdorg.apache.tuscany.sca.kernel/groupId
artifactIdtuscany-api/artifactId
version${scaImplVersion}/version
scopeprovided/scope 
/dependency
dependency
groupIdorg.apache.tuscany.sca.kernel/groupId
artifactIdcore/artifactId
version${scaImplVersion}/version
scopeprovided/scope
/dependency
dependency
groupIdorg.apache.tuscany.sca.services.bindings/groupId
artifactIdaxis2/artifactId
version${scaImplVersion}/version
scopeprovided/scope
/dependency

dependency
groupIdorg.apache.tuscany.sca/groupId
artifactIdtest/artifactId
   

Re: Ignore module if missing - possible bug?

2007-03-20 Thread Jean-Luc Wasmer

I think I know why it didn't work: I was not in the project's directory.

I don't call mvn myself but it's done from a shell script which is done 
in a different directory (with the -f option).


Here's your example run:
1- in the project directory... everything works fine
2- outside the project directory... the profile doesn't get activated


macb-003:~/Development/test/parent jl$ mvn install
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Example parent
[INFO]   Example module1
[INFO]   Example module2
[INFO] 


[INFO] Building Example parent
[INFO]task-segment: [install]
[INFO] 


[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing /Users/jl/Development/test/parent/pom.xml to 
/Users/jl/.m2/repository/org/example/example-parent/0.0.1-SNAPSHOT/example-parent-0.0.1-SNAPSHOT.pom
[INFO] 


[INFO] Building Example module1
[INFO]task-segment: [install]
[INFO] 


[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing /Users/jl/Development/test/parent/module1/pom.xml to 
/Users/jl/.m2/repository/org/example/module1/0.0.1-SNAPSHOT/module1-0.0.1-SNAPSHOT.pom
[INFO] 


[INFO] Building Example module2
[INFO]task-segment: [install]
[INFO] 


[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing /Users/jl/Development/test/parent/module2/pom.xml to 
/Users/jl/.m2/repository/org/example/module2/0.0.1-SNAPSHOT/module2-0.0.1-SNAPSHOT.pom

[INFO]
[INFO]
[INFO] 


[INFO] Reactor Summary:
[INFO] 

[INFO] Example parent  SUCCESS 
[1.734s]
[INFO] Example module1 ... SUCCESS 
[0.007s]
[INFO] Example module2 ... SUCCESS 
[0.016s]
[INFO] 

[INFO] 


[INFO] BUILD SUCCESSFUL
[INFO] 


[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Mar 20 17:30:49 EDT 2007
[INFO] Final Memory: 3M/7M
[INFO] 



macb-003:~/Development/test/parent jl$ cd ..

macb-003:~/Development/test jl$ mvn -f parent/pom.xml install
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Example parent
[INFO]   Example module1
[INFO] 


[INFO] Building Example parent
[INFO]task-segment: [install]
[INFO] 


[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing /Users/jl/Development/test/parent/pom.xml to 
/Users/jl/.m2/repository/org/example/example-parent/0.0.1-SNAPSHOT/example-parent-0.0.1-SNAPSHOT.pom
[INFO] 


[INFO] Building Example module1
[INFO]task-segment: [install]
[INFO] 


[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing /Users/jl/Development/test/parent/module1/pom.xml to 
/Users/jl/.m2/repository/org/example/module1/0.0.1-SNAPSHOT/module1-0.0.1-SNAPSHOT.pom

[INFO]
[INFO]
[INFO] 


[INFO] Reactor Summary:
[INFO] 

[INFO] Example parent  SUCCESS 
[1.593s]
[INFO] Example module1 ... SUCCESS 
[0.012s]
[INFO] 

[INFO] 


[INFO] BUILD SUCCESSFUL
[INFO] 


[INFO] Total time: 1 second
[INFO] Finished at: Tue Mar 20 17:31:06 EDT 2007
[INFO] Final Memory: 3M/7M
[INFO] 





Jean-Luc





Thierry Lach wrote:

Then you're probably doing something wrong.  Here's a simple test case.

(...)

On 3/20/07, Jean-Luc Wasmer [EMAIL PROTECTED] wrote:


That doesn't seem to work: the module never gets built (even when I
don't 

Re: mvn dependency:unpack

2007-03-20 Thread Wayne Fay

Realistically, you should look for support like this directly from the
providers of the tuscany-incubating-M2 samples package. I assume that
would be the Tuscany project?

Wayne

On 3/20/07, muhwas [EMAIL PROTECTED] wrote:

thank you for your reply but i am still getting same
eror. could you please let me know what i am doing
wrong.

thanks


--- Brian E. Fox [EMAIL PROTECTED] wrote:

 I recently enhanced the plugin page to cover this
 specifically:

http://maven.apache.org/plugins/maven-dependency-plugin/faq.html

 -Original Message-
 From: muhwas [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 20, 2007 4:09 PM
 To: users@maven.apache.org
 Subject: mvn dependency:unpack

 hi,

 Can somebody please explain me how mvn
 dependency:unpack works because i am trying to run
 tuscany-incubating-M2 samples. when i run mvn
 dependency:unpack i am getting

 [INFO]


 [INFO] One or more required plugin parameters are
 invalid/missing for 'dependen
 y:unpack'

 [0] inside the definition for plugin:
 'maven-dependency-plugin'specify the foll
 wing:

 configuration
   ...
   artifactItemsVALUE/artifactItems
 /configuration.


 I found on the list that i have to include

 plugin

 groupIdorg.apache.maven.plugins/groupId

 artifactIdmaven-dependency-plugin/artifactId
 version2.0-alpha-1/version
 executions
   execution
 idunpack/id
 phasepackage/phase
 goals
   goalunpack/goal
 /goals
 configuration
artifactItems
 artifactItem
 groupIdmyModule/groupId
   artifactIdmyArtifactId/artifactId
  version1.0-SNAPSHOT/version
   typejar/type
 overWritefalse/overWrite


outputDirectory${project.build.directory}/outputDirectory
/artifactItem
   /artifactItems
 /configuration
   /execution
 /executions
   /plugin

 in the plugins section in pom.xml file. but i what
 to know how do i know what plug-ins to unpack?

 regards,
 muhwas


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



-
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: weird error from maven-dependency plugin...

2007-03-20 Thread EJ Ciramella
I'm guessing it is a metadata module problem within our repository.

I hate doing this kind of management - completely stinks.  We're so
hopelessly out of date.

Most developers are running maven 2.0.5 yet we don't even have all the
core parts for 2.0.4 in our repository.

I'm sure that's why we have all kinds of build weirdness. 

-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 20, 2007 3:37 PM
To: Maven Users List
Subject: RE: weird error from maven-dependency plugin...

Seems like it can't properly load the plugin. I would try clearing
org/codehaus and org/apache/maven/plugins from your repo and see if that
solves it. (I'm guessing a local metadata issue) 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 20, 2007 3:36 PM
To: users@maven.apache.org
Subject: weird error from maven-dependency plugin...

 
So I've hit another wall trying to maintain my own internal repository.
I'd like to use the dependency plugin, but after installing it, I get
this message:
 
(what is this trying to indicate?)
 
[INFO] Building jar:
E:\work\up-svcs\lty\proj\LTY-P39\frontoffice\ltyApp\emailApp\target\
emailApp.jar
-
this realm =
app0.child-container[org.apache.maven.plugins:maven-dependency-plugin]
urls[0] =
file:/E:/work/m2/Repository/org/apache/maven/plugins/maven-dependency-pl
ugin/2.0-alpha-2/maven-dependency-plugin-2.0-alpha-2.jar
Number of imports: 0
 

this realm = plexus.core.maven
urls[0] = file:/E:/buildtools/maven-2.0.5/bin/../lib/commons-cli-1.0.jar
urls[1] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/doxia-sink-api-1.0-alpha-7.ja
r
urls[2] = file:/E:/buildtools/maven-2.0.5/bin/../lib/jsch-0.1.27.jar
urls[3] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/jtidy-4aug2000r7-dev.jar
urls[4] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-artifact-2.0.5.jar
urls[5] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-artifact-manager-2.0.5.
jar
urls[6] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-core-2.0.5-javadoc.jar
urls[7] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-core-2.0.5.jar
urls[8] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-error-diagnostics-2.0.5
.jar
urls[9] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-model-2.0.5.jar
urls[10] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-monitor-2.0.5.jar
urls[11] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-plugin-api-2.0.5.jar
urls[12] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-plugin-descriptor-2.0.5
.jar
urls[13] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-plugin-parameter-docume
nter-2.0.5.jar
urls[14] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-plugin-registry-2.0.5.j
ar
urls[15] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-profile-2.0.5.jar
urls[16] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-project-2.0.5.jar
urls[17] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-reporting-api-2.0.5.jar
urls[18] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-repository-metadata-2.0
.5.jar
urls[19] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/maven-settings-2.0.5.jar
urls[20] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/plexus-interactivity-api-1.0-
alpha-4.jar
urls[21] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/wagon-file-1.0-beta-2.jar
urls[22] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/wagon-http-lightweight-1.0-be
ta-2.jar
urls[23] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/wagon-http-shared-1.0-beta-2.
jar
urls[24] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/wagon-provider-api-1.0-beta-2
.jar
urls[25] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/wagon-ssh-1.0-beta-2.jar
urls[26] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/wagon-ssh-common-1.0-beta-2.j
ar
urls[27] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/wagon-ssh-external-1.0-beta-2
.jar
urls[28] =
file:/E:/buildtools/maven-2.0.5/bin/../lib/xml-apis-1.0.b2.jar
Number of imports: 0
 

this realm = plexus.core
urls[0] =
file:/E:/buildtools/maven-2.0.5/bin/../core/plexus-container-default-1.0
-alpha-9.jar
urls[1] =
file:/E:/buildtools/maven-2.0.5/bin/../core/plexus-utils-1.1.jar
Number of imports: 0
-
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-2:copy':
Unable to find the mojo 'o
rg.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-2:copy' in the
plugin 'org.apache.maven.plugins:maven-dependency-plugin'
org/codehaus/plexus/archiver/ArchiverException

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


-
To 

Profile activation by file bug on windows????? (was: Ignore module if missing - possible bug?)

2007-03-20 Thread Thierry Lach

That might be because the activation is based on a relative pathname.  But I
tried to use the following

file${basedir}/module2/pom.xml/file

and it doesn't work as expected.

Running mvn help:effective-pom gives the following


Effective POM for project 'org.example:example-parent:pom:0.0.1-SNAPSHOT'

?xml version=1.0 encoding=UTF-8?project
 modelVersion4.0.0/modelVersion
 groupIdorg.example/groupId
 artifactIdexample-parent/artifactId
 packagingpom/packaging
 nameExample parent/name
 version0.0.1-SNAPSHOT/version
 build
   sourceDirectoryC:\src\modules\src\main\java/sourceDirectory
   scriptSourceDirectorysrc/main/scripts/scriptSourceDirectory
   testSourceDirectoryC:\src\modules\src\test\java/testSourceDirectory
   outputDirectoryC:\src\modules\target\classes/outputDirectory

testOutputDirectoryC:\src\modules\target\test-classes/testOutputDirectory
   resources
 resource
   directoryC:\src\modules\src\main\resources/directory
 /resource
   /resources
   testResources
 testResource
   directoryC:\src\modules\src\test\resources/directory
 /testResource
   /testResources
   directoryC:\src\modules\target/directory
   finalNameexample-parent-0.0.1-SNAPSHOT/finalName
   plugins
 plugin
   artifactIdmaven-help-plugin/artifactId
   version2.0.1/version
 /plugin
   /plugins
 /build
 profiles
   profile
 idmodule2-build/id
 activation
   file
 existsC:\src\modules/module2/pom.xml/exists
   /file
 /activation
 modules
   modulemodule2/module
 /modules
   /profile
 /profiles
 modules
   modulemodule1/module
 /modules
 repositories
   repository
 snapshots
   enabledfalse/enabled
 /snapshots
 idcentral/id
 nameMaven Repository Switchboard/name
 urlhttp://repo1.maven.org/maven2/url
   /repository
 /repositories
 pluginRepositories
   pluginRepository
 releases
   updatePolicynever/updatePolicy
 /releases
 snapshots
   enabledfalse/enabled
 /snapshots
 idcentral/id
 nameMaven Plugin Repository/name
 urlhttp://repo1.maven.org/maven2/url
   /pluginRepository
 /pluginRepositories
 reporting
   outputDirectorytarget/site/outputDirectory
 /reporting
/project


but if I change the line in the parent pom to be

fileC:/src/modules/module2/pom.xml/file

it works.


On 3/20/07, Jean-Luc Wasmer [EMAIL PROTECTED] wrote:


I think I know why it didn't work: I was not in the project's directory.

I don't call mvn myself but it's done from a shell script which is done
in a different directory (with the -f option).

Here's your example run:
1- in the project directory... everything works fine
2- outside the project directory... the profile doesn't get activated


macb-003:~/Development/test/parent jl$ mvn install
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Example parent
[INFO]   Example module1
[INFO]   Example module2
[INFO]


[INFO] Building Example parent
[INFO]task-segment: [install]
[INFO]


[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing /Users/jl/Development/test/parent/pom.xml to

/Users/jl/.m2/repository/org/example/example-parent/0.0.1-SNAPSHOT/example-
parent-0.0.1-SNAPSHOT.pom
[INFO]


[INFO] Building Example module1
[INFO]task-segment: [install]
[INFO]


[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing /Users/jl/Development/test/parent/module1/pom.xml to
/Users/jl/.m2/repository/org/example/module1/0.0.1-SNAPSHOT/module1-
0.0.1-SNAPSHOT.pom
[INFO]


[INFO] Building Example module2
[INFO]task-segment: [install]
[INFO]


[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing /Users/jl/Development/test/parent/module2/pom.xml to
/Users/jl/.m2/repository/org/example/module2/0.0.1-SNAPSHOT/module2-
0.0.1-SNAPSHOT.pom
[INFO]
[INFO]
[INFO]

[INFO] Reactor Summary:
[INFO]

[INFO] Example parent  SUCCESS
[1.734s]
[INFO] Example module1 ... SUCCESS
[0.007s]
[INFO] Example module2 ... SUCCESS
[0.016s]
[INFO]

RE: mvn dependency:unpack

2007-03-20 Thread Brian E. Fox
The problem is exactly as the faq describes. Perhaps I need to clarify
some more in the faq... When you invoke a plugin from the cli that has
configuration in the pom, that configuration must _not_ be contained
inside an executions tag. I really think we need to look at changing
that because it causes lots of user confusion (this is a maven thing,
not a dependency plugin thing). Take a look at the second example on the
usage page:

If you intend to configure this mojo for execution on the command line
using:

mvn dependency:copy

you must not put the configuration inside the executions tag. Your
configuration should look like this:

project
  [...]
  build
   plugins
 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId
configuration
  artifactItems
artifactItem
  groupId[ groupId ]/groupId
  artifactId[ artifactId ]/artifactId
  version[ version ]/version
  type[ packaging ]/type
  overWrite[ true or false ]/overWrite
  outputDirectory[ output directory ]/outputDirectory
  destFileName[ filename ]/destFileName
/artifactItem
  /artifactItems
  !-- other configurations here --
/configuration
  /plugin
/plugins
  /build
  [...]
/project 

-Original Message-
From: muhwas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 20, 2007 5:18 PM
To: Maven Users List; Brian E. Fox
Subject: RE: mvn dependency:unpack

thank you for your reply but i am still getting same eror. could you
please let me know what i am doing wrong.

thanks


--- Brian E. Fox [EMAIL PROTECTED] wrote:

 I recently enhanced the plugin page to cover this
 specifically:

http://maven.apache.org/plugins/maven-dependency-plugin/faq.html
 
 -Original Message-
 From: muhwas [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 20, 2007 4:09 PM
 To: users@maven.apache.org
 Subject: mvn dependency:unpack
 
 hi,
 
 Can somebody please explain me how mvn dependency:unpack works 
 because i am trying to run
 tuscany-incubating-M2 samples. when i run mvn dependency:unpack i am

 getting
 
 [INFO]


 [INFO] One or more required plugin parameters are invalid/missing for 
 'dependen y:unpack'
 
 [0] inside the definition for plugin:
 'maven-dependency-plugin'specify the foll
 wing:
 
 configuration
   ...
   artifactItemsVALUE/artifactItems
 /configuration.
 
 
 I found on the list that i have to include
 
 plugin

 groupIdorg.apache.maven.plugins/groupId

 artifactIdmaven-dependency-plugin/artifactId
 version2.0-alpha-1/version
 executions
   execution
 idunpack/id
 phasepackage/phase
 goals
   goalunpack/goal
 /goals
 configuration
artifactItems
 artifactItem
 groupIdmyModule/groupId
   artifactIdmyArtifactId/artifactId
  version1.0-SNAPSHOT/version
   typejar/type
 overWritefalse/overWrite


outputDirectory${project.build.directory}/outputDirectory
/artifactItem
   /artifactItems
 /configuration
   /execution
 /executions
   /plugin
 
 in the plugins section in pom.xml file. but i what to know how do i 
 know what plug-ins to unpack?
 
 regards,
 muhwas
 

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

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



Re: Profile activation by file bug on windows?????

2007-03-20 Thread Jean-Luc Wasmer

Thierry Lach wrote:
That might be because the activation is based on a relative pathname.  
But I

tried to use the following

file${basedir}/module2/pom.xml/file

and it doesn't work as expected. 


Using ${basedir} on OSX doesn't either. The profiles don't get activated 
(is that what you get on Windows?).


When I check the output of mvn help:effective-pom, I see the correct 
paths (eg I can use them in shell commands).

So it's not just a Windows issue.


Jean-Luc

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



Re: Linux build Windows build asynchron

2007-03-20 Thread Jerome Lacoste

On 3/20/07, Christian Clauss [EMAIL PROTECTED] wrote:


Hello everybody,



I'm trying to do an asynchron build process. I have to build my files on a
Linux environment and on a Windows environment. Actually these two build
processes run one and then the other. I copy the files via the ant
scp-task
to the Linux machine and start the build process by running a shell
script.
When finished are the files copied back to Windows using the ant scp-task
again. Subsequently the build process on the Windows environment is
started.
The code is written in C++ so it's necessary that it is compiled on both
environments.

My question: is it possible in Maven2 that the build process on a Linux
environment is started and at the same time the Windows build is started?
After one of the two builds has finished, Maven2 has to wait for the other
process to finish and then continue. Is this possible to realise?



Thanks a lot for your endeavours to assist.




As Wayne said, I think you should be able to achieve this using a CI server.

I think the CruiseControl (http://cruisecontrol.sf.net) distributed
extension might help. There are perhaps other open source CI servers that
support distributed builds,

Jerome


Issue with SNAPSHOT grand-parent POM

2007-03-20 Thread Olivier Dehon

Hi,

Today, I came across a weird behavior  (bug?) from Maven 2.0.4 and 
snapshot grand-parent POM:


pom A has pom B as its parent, and pom B has pom C as its parent. All 3 
POMs are deployed

as SNAPHOT versions.
Now if I change and deploy pom C, the changes are not picked up and 
copied to my local repository

when the project defined by pom A is built.

This works with one generation (that is, if I change and deploy pom B, 
the changes are picked up

and the new pom B gets copied to my local repository when pom A is built).

Is that the expected behavior or is it a bug?

Thanks in advance for your advice.

-Olivier

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



Re: mvn dependency:unpack

2007-03-20 Thread Wayne Fay

I think the primary problem is that muhwas is, in all likelihood, very
new to Maven and so all the information you provide on the FAQ will
probably be mostly insufficient to help him fix this issue. He simply
lacks the base level of Maven knowledge to make the correct decisions
about what goes in artifactItems and what does not.

So, I think bouncing this support request over to the appropriate
party is probably more reasonable. Someone in the Tuscany project (who
created this pom in the first place) is probably the one who should
fix the problem.

Wayne

On 3/20/07, Brian E. Fox [EMAIL PROTECTED] wrote:

The problem is exactly as the faq describes. Perhaps I need to clarify
some more in the faq... When you invoke a plugin from the cli that has
configuration in the pom, that configuration must _not_ be contained
inside an executions tag. I really think we need to look at changing
that because it causes lots of user confusion (this is a maven thing,
not a dependency plugin thing). Take a look at the second example on the
usage page:

If you intend to configure this mojo for execution on the command line
using:

mvn dependency:copy

you must not put the configuration inside the executions tag. Your
configuration should look like this:

project
  [...]
  build
   plugins
 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId
configuration
  artifactItems
artifactItem
  groupId[ groupId ]/groupId
  artifactId[ artifactId ]/artifactId
  version[ version ]/version
  type[ packaging ]/type
  overWrite[ true or false ]/overWrite
  outputDirectory[ output directory ]/outputDirectory
  destFileName[ filename ]/destFileName
/artifactItem
  /artifactItems
  !-- other configurations here --
/configuration
  /plugin
/plugins
  /build
  [...]
/project

-Original Message-
From: muhwas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 20, 2007 5:18 PM
To: Maven Users List; Brian E. Fox
Subject: RE: mvn dependency:unpack

thank you for your reply but i am still getting same eror. could you
please let me know what i am doing wrong.

thanks


--- Brian E. Fox [EMAIL PROTECTED] wrote:

 I recently enhanced the plugin page to cover this
 specifically:

http://maven.apache.org/plugins/maven-dependency-plugin/faq.html

 -Original Message-
 From: muhwas [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 20, 2007 4:09 PM
 To: users@maven.apache.org
 Subject: mvn dependency:unpack

 hi,

 Can somebody please explain me how mvn dependency:unpack works
 because i am trying to run
 tuscany-incubating-M2 samples. when i run mvn dependency:unpack i am

 getting

 [INFO]


 [INFO] One or more required plugin parameters are invalid/missing for
 'dependen y:unpack'

 [0] inside the definition for plugin:
 'maven-dependency-plugin'specify the foll
 wing:

 configuration
   ...
   artifactItemsVALUE/artifactItems
 /configuration.


 I found on the list that i have to include

 plugin

 groupIdorg.apache.maven.plugins/groupId

 artifactIdmaven-dependency-plugin/artifactId
 version2.0-alpha-1/version
 executions
   execution
 idunpack/id
 phasepackage/phase
 goals
   goalunpack/goal
 /goals
 configuration
artifactItems
 artifactItem
 groupIdmyModule/groupId
   artifactIdmyArtifactId/artifactId
  version1.0-SNAPSHOT/version
   typejar/type
 overWritefalse/overWrite


outputDirectory${project.build.directory}/outputDirectory
/artifactItem
   /artifactItems
 /configuration
   /execution
 /executions
   /plugin

 in the plugins section in pom.xml file. but i what to know how do i
 know what plug-ins to unpack?

 regards,
 muhwas


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



-
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: mvn dependency:unpack

2007-03-20 Thread Brian E. Fox
Wayne, 
I think you could be right. It's also possible though that the pom isn't
intended to be run using 'mvn dependency:unpack' (I haven't looked at
their site) because the pom is setup correctly to unpack during the
package phase. I know this issue is a tricky one because the first time
someone reported it, it took me quite a while to track it down. That's
why I wrote the faq entry but maybe it's not clear enough. I'll have to
look at it some more to see if I can present a more clear answer.

--Brian

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 20, 2007 9:13 PM
To: Maven Users List
Subject: Re: mvn dependency:unpack

I think the primary problem is that muhwas is, in all likelihood, very
new to Maven and so all the information you provide on the FAQ will
probably be mostly insufficient to help him fix this issue. He simply
lacks the base level of Maven knowledge to make the correct decisions
about what goes in artifactItems and what does not.

So, I think bouncing this support request over to the appropriate
party is probably more reasonable. Someone in the Tuscany project (who
created this pom in the first place) is probably the one who should
fix the problem.

Wayne

On 3/20/07, Brian E. Fox [EMAIL PROTECTED] wrote:
 The problem is exactly as the faq describes. Perhaps I need to clarify
 some more in the faq... When you invoke a plugin from the cli that has
 configuration in the pom, that configuration must _not_ be contained
 inside an executions tag. I really think we need to look at changing
 that because it causes lots of user confusion (this is a maven thing,
 not a dependency plugin thing). Take a look at the second example on
the
 usage page:

 If you intend to configure this mojo for execution on the command line
 using:

 mvn dependency:copy

 you must not put the configuration inside the executions tag. Your
 configuration should look like this:

 project
   [...]
   build
plugins
  plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-dependency-plugin/artifactId
 configuration
   artifactItems
 artifactItem
   groupId[ groupId ]/groupId
   artifactId[ artifactId ]/artifactId
   version[ version ]/version
   type[ packaging ]/type
   overWrite[ true or false ]/overWrite
   outputDirectory[ output directory ]/outputDirectory
   destFileName[ filename ]/destFileName
 /artifactItem
   /artifactItems
   !-- other configurations here --
 /configuration
   /plugin
 /plugins
   /build
   [...]
 /project

 -Original Message-
 From: muhwas [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 20, 2007 5:18 PM
 To: Maven Users List; Brian E. Fox
 Subject: RE: mvn dependency:unpack

 thank you for your reply but i am still getting same eror. could you
 please let me know what i am doing wrong.

 thanks


 --- Brian E. Fox [EMAIL PROTECTED] wrote:

  I recently enhanced the plugin page to cover this
  specifically:
 
 http://maven.apache.org/plugins/maven-dependency-plugin/faq.html
 
  -Original Message-
  From: muhwas [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 20, 2007 4:09 PM
  To: users@maven.apache.org
  Subject: mvn dependency:unpack
 
  hi,
 
  Can somebody please explain me how mvn dependency:unpack works
  because i am trying to run
  tuscany-incubating-M2 samples. when i run mvn dependency:unpack i
am

  getting
 
  [INFO]
 


  [INFO] One or more required plugin parameters are invalid/missing
for
  'dependen y:unpack'
 
  [0] inside the definition for plugin:
  'maven-dependency-plugin'specify the foll
  wing:
 
  configuration
...
artifactItemsVALUE/artifactItems
  /configuration.
 
 
  I found on the list that i have to include
 
  plugin
 
  groupIdorg.apache.maven.plugins/groupId
 
  artifactIdmaven-dependency-plugin/artifactId
  version2.0-alpha-1/version
  executions
execution
  idunpack/id
  phasepackage/phase
  goals
goalunpack/goal
  /goals
  configuration
 artifactItems
  artifactItem
  groupIdmyModule/groupId
artifactIdmyArtifactId/artifactId
   version1.0-SNAPSHOT/version
typejar/type
  overWritefalse/overWrite
 
 
 outputDirectory${project.build.directory}/outputDirectory
 /artifactItem
/artifactItems
  /configuration
/execution
  /executions
/plugin
 
  in the plugins 

How to invoke a plugin from within a plugin?

2007-03-20 Thread James CE Johnson
To be fair, my question is based on an implementation I have in mind for a
more abstract problem. If you will indulge me a moment I'll describe that
issue and maybe you will tell me my implementation is all wrong...

Consider the hypothetical project:
  myProject
  myProject/appserver
  myProject/database
  myProject/webapp

Let's assume I have created a plugin (org.tragus:appserver-plugin) which I
can specify in myProject/appserver/pom.xml. Further assume that if I do that
I then have a goal (org.tragus:appserver-plugin:configure-appserver) which
will configure my running appserver in some way (e.g. -- create connection
pools and datasources and such).

Similarly, pretend that I have a plugin (org.tragus:database-plugin) with a
goal (...:update-schema) which will bring my live schema up-to-date with
whatever recent changes I've made. This would, of course, be used by
myProject/database.

Finally, myProject/webapp may use org.tragus:appserver-plugin:deploy-war to
deploy a war to the running appserver.

These are all hypothetical plugins -- I know there exist some which already
do some of these things.

My question is this:
How can I invoke mvn at 'myProject' such that it will recurse into each
subproject and invoke the appropriate update my live environment goal for
each one? That is, how can I invoke mvn at the top-level and have it fire
org.tragus:appserver-plugin:configure-appserver within appserver,
org.tragus:database-plugin:update-schema within database and
org.tragus:appserver-plugin:deploy-war within webapp?

FWIW I've been using maven 1 since the 0.4 days and long ago solved this
with a pile of jelly-script there. I just can't seem to wrap my head around
the m2 way of solving this.

Now to the question in my subject line... It seems to me that if there was a
maven-plugin-invoker-plugin which would invoke a property-specified plugin
name my problem would be solved. I would simply set the
plugin-to-execute-property appropriately in each subproject's pom.xml and
then fire maven-plugin-invoker-plugin from the top level. Trouble is... I
cannot find a maven-plugin-invoker-plugin :-(

So, can anyone comment on my problem(s)? Am I missing something obvious and
making the whole thing harder than it really is?

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



RE: mvn dependency:unpack

2007-03-20 Thread muhwas
Hi Brain,

I am trying to run Tuscany samples. I am following
their instructions. According to instruction they said
go to sample directory and run mvn and when built
successfully run mvn dependency:unpack. This will
create target\distribution folder and copy tuscany run
time enviornment. But when i am running mvn
dependency:unpack and getting error.

[0] inside the definition for plugin:
 'maven-dependency-plugin'specify the foll
 wing:

 configuration
   ...
   artifactItemsVALUE/artifactItems
 /configuration.

They didn't specify any thing what to put in
articactsItems. I also posted this question on tuscany
mailing list but no response so i thought may be i can
get help from maven list.

thank you,
muhwas

--- Brian E. Fox [EMAIL PROTECTED] wrote:

 Wayne, 
 I think you could be right. It's also possible
 though that the pom isn't
 intended to be run using 'mvn dependency:unpack' (I
 haven't looked at
 their site) because the pom is setup correctly to
 unpack during the
 package phase. I know this issue is a tricky one
 because the first time
 someone reported it, it took me quite a while to
 track it down. That's
 why I wrote the faq entry but maybe it's not clear
 enough. I'll have to
 look at it some more to see if I can present a more
 clear answer.
 
 --Brian
 
 -Original Message-
 From: Wayne Fay [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 20, 2007 9:13 PM
 To: Maven Users List
 Subject: Re: mvn dependency:unpack
 
 I think the primary problem is that muhwas is, in
 all likelihood, very
 new to Maven and so all the information you provide
 on the FAQ will
 probably be mostly insufficient to help him fix this
 issue. He simply
 lacks the base level of Maven knowledge to make the
 correct decisions
 about what goes in artifactItems and what does not.
 
 So, I think bouncing this support request over to
 the appropriate
 party is probably more reasonable. Someone in the
 Tuscany project (who
 created this pom in the first place) is probably the
 one who should
 fix the problem.
 
 Wayne
 
 On 3/20/07, Brian E. Fox [EMAIL PROTECTED]
 wrote:
  The problem is exactly as the faq describes.
 Perhaps I need to clarify
  some more in the faq... When you invoke a plugin
 from the cli that has
  configuration in the pom, that configuration must
 _not_ be contained
  inside an executions tag. I really think we need
 to look at changing
  that because it causes lots of user confusion
 (this is a maven thing,
  not a dependency plugin thing). Take a look at the
 second example on
 the
  usage page:
 
  If you intend to configure this mojo for execution
 on the command line
  using:
 
  mvn dependency:copy
 
  you must not put the configuration inside the
 executions tag. Your
  configuration should look like this:
 
  project
[...]
build
 plugins
   plugin
 
 groupIdorg.apache.maven.plugins/groupId
 
 artifactIdmaven-dependency-plugin/artifactId
  configuration
artifactItems
  artifactItem
groupId[ groupId ]/groupId
artifactId[ artifactId
 ]/artifactId
version[ version ]/version
type[ packaging ]/type
overWrite[ true or false
 ]/overWrite
outputDirectory[ output directory
 ]/outputDirectory
destFileName[ filename
 ]/destFileName
  /artifactItem
/artifactItems
!-- other configurations here --
  /configuration
/plugin
  /plugins
/build
[...]
  /project
 
  -Original Message-
  From: muhwas [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 20, 2007 5:18 PM
  To: Maven Users List; Brian E. Fox
  Subject: RE: mvn dependency:unpack
 
  thank you for your reply but i am still getting
 same eror. could you
  please let me know what i am doing wrong.
 
  thanks
 
 
  --- Brian E. Fox [EMAIL PROTECTED]
 wrote:
 
   I recently enhanced the plugin page to cover
 this
   specifically:
  
 

http://maven.apache.org/plugins/maven-dependency-plugin/faq.html
  
   -Original Message-
   From: muhwas [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, March 20, 2007 4:09 PM
   To: users@maven.apache.org
   Subject: mvn dependency:unpack
  
   hi,
  
   Can somebody please explain me how mvn
 dependency:unpack works
   because i am trying to run
   tuscany-incubating-M2 samples. when i run mvn
 dependency:unpack i
 am
 
   getting
  
   [INFO]
  
 


   [INFO] One or more required plugin parameters
 are invalid/missing
 for
   'dependen y:unpack'
  
   [0] inside the definition for plugin:
   'maven-dependency-plugin'specify the foll
   wing:
  
   configuration
 ...
 artifactItemsVALUE/artifactItems
   /configuration.
  
  
   I found on the list that i have to include
  
   plugin
  
   groupIdorg.apache.maven.plugins/groupId
  
   artifactIdmaven-dependency-plugin/artifactId
   

RE: mvn dependency:unpack

2007-03-20 Thread Brian E. Fox
Thanks for the info Muhwas. Perhaps you can post the link to the faq (or
even the usage page where it's laid out) to them so they know how to fix
it. If you want to make it work for yourself, just remove the
executionsexecution/execution/executions tags from the
dependency plugin config and leave behind all the configuration
contents. Or you could just find the artifact in your local repo and
unpack it yourself ;-)

-Original Message-
From: muhwas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 20, 2007 11:29 PM
To: Maven Users List
Subject: RE: mvn dependency:unpack

Hi Brain,

I am trying to run Tuscany samples. I am following
their instructions. According to instruction they said
go to sample directory and run mvn and when built
successfully run mvn dependency:unpack. This will
create target\distribution folder and copy tuscany run
time enviornment. But when i am running mvn
dependency:unpack and getting error.

[0] inside the definition for plugin:
 'maven-dependency-plugin'specify the foll
 wing:

 configuration
   ...
   artifactItemsVALUE/artifactItems
 /configuration.

They didn't specify any thing what to put in
articactsItems. I also posted this question on tuscany
mailing list but no response so i thought may be i can
get help from maven list.

thank you,
muhwas

--- Brian E. Fox [EMAIL PROTECTED] wrote:

 Wayne, 
 I think you could be right. It's also possible
 though that the pom isn't
 intended to be run using 'mvn dependency:unpack' (I
 haven't looked at
 their site) because the pom is setup correctly to
 unpack during the
 package phase. I know this issue is a tricky one
 because the first time
 someone reported it, it took me quite a while to
 track it down. That's
 why I wrote the faq entry but maybe it's not clear
 enough. I'll have to
 look at it some more to see if I can present a more
 clear answer.
 
 --Brian
 
 -Original Message-
 From: Wayne Fay [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 20, 2007 9:13 PM
 To: Maven Users List
 Subject: Re: mvn dependency:unpack
 
 I think the primary problem is that muhwas is, in
 all likelihood, very
 new to Maven and so all the information you provide
 on the FAQ will
 probably be mostly insufficient to help him fix this
 issue. He simply
 lacks the base level of Maven knowledge to make the
 correct decisions
 about what goes in artifactItems and what does not.
 
 So, I think bouncing this support request over to
 the appropriate
 party is probably more reasonable. Someone in the
 Tuscany project (who
 created this pom in the first place) is probably the
 one who should
 fix the problem.
 
 Wayne
 
 On 3/20/07, Brian E. Fox [EMAIL PROTECTED]
 wrote:
  The problem is exactly as the faq describes.
 Perhaps I need to clarify
  some more in the faq... When you invoke a plugin
 from the cli that has
  configuration in the pom, that configuration must
 _not_ be contained
  inside an executions tag. I really think we need
 to look at changing
  that because it causes lots of user confusion
 (this is a maven thing,
  not a dependency plugin thing). Take a look at the
 second example on
 the
  usage page:
 
  If you intend to configure this mojo for execution
 on the command line
  using:
 
  mvn dependency:copy
 
  you must not put the configuration inside the
 executions tag. Your
  configuration should look like this:
 
  project
[...]
build
 plugins
   plugin
 
 groupIdorg.apache.maven.plugins/groupId
 
 artifactIdmaven-dependency-plugin/artifactId
  configuration
artifactItems
  artifactItem
groupId[ groupId ]/groupId
artifactId[ artifactId
 ]/artifactId
version[ version ]/version
type[ packaging ]/type
overWrite[ true or false
 ]/overWrite
outputDirectory[ output directory
 ]/outputDirectory
destFileName[ filename
 ]/destFileName
  /artifactItem
/artifactItems
!-- other configurations here --
  /configuration
/plugin
  /plugins
/build
[...]
  /project
 
  -Original Message-
  From: muhwas [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 20, 2007 5:18 PM
  To: Maven Users List; Brian E. Fox
  Subject: RE: mvn dependency:unpack
 
  thank you for your reply but i am still getting
 same eror. could you
  please let me know what i am doing wrong.
 
  thanks
 
 
  --- Brian E. Fox [EMAIL PROTECTED]
 wrote:
 
   I recently enhanced the plugin page to cover
 this
   specifically:
  
 

http://maven.apache.org/plugins/maven-dependency-plugin/faq.html
  
   -Original Message-
   From: muhwas [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, March 20, 2007 4:09 PM
   To: users@maven.apache.org
   Subject: mvn dependency:unpack
  
   hi,
  
   Can somebody please explain me how mvn
 dependency:unpack works
   because i am trying to run
   tuscany-incubating-M2 samples. when i run mvn
 

[ANN] Maven Dependency Plugin 2.0-alpha-3 Released

2007-03-20 Thread Brian Fox

The Maven team is pleased to announce the release of the Maven
Dependency Plugin, version 2.0-alpha-3

http://maven.apache.org/plugins/maven-dependency-plugin/

The dependency plugin provides the capability to manipulate artifacts.
It can copy and/or unpack artifacts from local or remote repositories
to a specified location.

This release adds 2 new goals only:

dependency:analyze : this executes the maven-dependency-analyzer
shared component to look for problems with dependencies. This is an
initial release of the analyzer and there are 2 known issues: MDEP-72
and MDEP-73 (trouble with pom projects and projects with non jar
dependencies like zip files).


dependency:analyze-dep-mgt : this compares the resolved dependencies
with the dependencyManagement section to identify mismatches. This is
intended to help users identify where transitive dependencies are
conflicting with dependencyManagement ahead of the 2.0.6 release. (See
http://maven.apache.org/plugins/maven-dependency-plugin/analyze-mojo.html
for more information). It will also be useful to find out where
projects are explicitly overriding dependencyManagement.

- The Maven Team

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