Re: How do I use release:perform to deploy artifacts other than jar files?

2007-06-13 Thread Antonio Petrelli

2007/6/13, Danny MacMillan <[EMAIL PROTECTED]>:


Now I want to create a release.  I was able to successfully run
release:prepare and release:perform, but it deployed into the repository
just the jar file, when what I want to deploy is the zip file.  Is that
possible?




Sure, see:
http://maven.apache.org/plugins/maven-assembly-plugin/usage.html
and go to the paragraph "Building an Assembly as Part of the Build
Lifecycle".
See also this working example (Tiles):
http://svn.apache.org/repos/asf/tiles/framework/trunk/assembly/pom.xml

HTH
Antonio


RE: Overriding properties in a dependency's pom.xml

2007-06-13 Thread Jörg Schaible
Hi Dan,

mojavelinux wrote on Thursday, June 14, 2007 2:11 AM:

> Damn, I just bumped in to this problem only to find that there is
> still no solution.  I am trying to do a very similar thing.  When one
> of my libraries depends on hibernate, for example, I am using
> properties in the deployed pom file to specify which version should
> be used by default if a person where to use my jar file in their
> project.  However, if they don't want that version of hibernate, they
> theoretically would set the same property in their own pom.xml file. 
> Only, just as Matt has pointed out, the dependency pom is taking
> precedence over the user's pom.xml.  This behavior makes absolutely
> no sense, especially since it is possible to achieve this override
> from the commandline.  The perfectly logical order would be:
> dependency pom -> user pom -> commandline flag. 
> 
> Here is some XML to demonstrate what I am doing:
> 
> some-cool-library.pom
> 
> 
> org.hibernate
> hibernate
> ${hibernate.version}
> 
> 
> 3.2.1.ga
> 
> 
> user's pom.xml
> 
> 
> 3.2.4.sp1
> 
> 
> result: no dice.

Don't use a property! Your users can overwrite the Hibernate version with an 
own dependencyManagement section easily.

- Jörg

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



Re: Maven assembly plugin question

2007-06-13 Thread Wendy Smoak

On 6/13/07, Kannan Ekanath <[EMAIL PROTECTED]> wrote:


Thanks, I seem to get it. While doing a mvn assembly:assembly it is showing
me a "myapp.zip" however, when I do a

"mvn install" i assumed this file will be stored in the .m2\repo it is still
showing as package-0.3-SNAPSHOT.zip and not myapp.zip(myapp.zip gets copied
into the m2\repo as package-0.3-SNAPSHOT.zip).

Can I install it as myapp.zip? (We have scripts picking up the zip for daily
deployment)


The finalName element only affects the file in the target directory.
The repository has a specific structure, files will always be deployed
as artifactId-version-classifier.

If you have a script picking up the file out of the repository, then
have the script do the rename as well.  Or you could bind another
plugin to the deploy phase to transfer the file to where it needs to
go.

--
Wendy

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



Re: Maven assembly plugin question

2007-06-13 Thread Kannan Ekanath

Hi,
Thanks, I seem to get it. While doing a mvn assembly:assembly it is showing
me a "myapp.zip" however, when I do a

"mvn install" i assumed this file will be stored in the .m2\repo it is still
showing as package-0.3-SNAPSHOT.zip and not myapp.zip(myapp.zip gets copied
into the m2\repo as package-0.3-SNAPSHOT.zip).

Can I install it as myapp.zip? (We have scripts picking up the zip for daily
deployment)

Thanks,
Kannan

On 6/14/07, Wendy Smoak <[EMAIL PROTECTED]> wrote:


On 6/13/07, Kannan Ekanath <[EMAIL PROTECTED]> wrote:

> "mvn -Dproject.build.finalName=my-installer-0.3-SNAPSHOT clean
> assembly:assembly" but it still creates the zip file with the name "
> package-0.3-SNAPSHOT". Can someone tell me if there is something i am
> missing?

Try setting  in pom.xml, not on the command line.

--
Wendy

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





--
Regards,
Kannan Ekanath


Re: [MOJO] What s the dependency including MavenProject class ?

2007-06-13 Thread Napoleon Esmundo C. Ramirez

Hello Alexandre,

To help you fiddle with it, MavenProject is located in
org.apache.maven:maven-project.  Just check out the latest release. :)

Cheers!
Nap

On 6/14/07, Maria Odea Ching <[EMAIL PROTECTED]> wrote:


That's already included in Maven core.. you can find it inside the uber
jar in your $M2_HOME/lib.

-Deng

Alexandre Touret wrote:
> Hello,
> I m currently programming a mojo plugin.
> I d like to use the MavenProject class as described in the book
> "Better builds with maven". I created the project with a simple plugin
> archetype generation.
> However, the class MavenProject is not present in the dependencies and
> I didn t figure out where is the package including this class.
>
> Could you give me the corresponding library ?
>
> Thanks in advance
>
> Regards,
> Alexandre
>
>
>
> -
> 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 assembly plugin question

2007-06-13 Thread Wendy Smoak

On 6/13/07, Kannan Ekanath <[EMAIL PROTECTED]> wrote:


"mvn -Dproject.build.finalName=my-installer-0.3-SNAPSHOT clean
assembly:assembly" but it still creates the zip file with the name "
package-0.3-SNAPSHOT". Can someone tell me if there is something i am
missing?


Try setting  in pom.xml, not on the command line.

--
Wendy

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



Maven assembly plugin question

2007-06-13 Thread Kannan Ekanath

Maven version: 2.0.4
Maven assembly plugin version: 2.2 (current version)

I assume that maven plugin related questions are supposed to be asked in the
main maven mailling list. Kindly let me know if that isnot the case.

I have got an assembly plugin to work from
http://maven.apache.org/plugins/maven-assembly-plugin/assembly-mojo.html,
However I have trouble getting the finalName field, I have a project called
"package" under "SVN_ROOT" and when i run "mvn assembly:assembly" I am
getting a zip file called " package-0.3-SNAPSHOT" where 0.3-SNAPSHOT is my
current version. However I want the final zip file to be named something
like "my-installer-0.3-SNAPSHOT", i tried

"mvn -Dproject.build.finalName=my-installer-0.3-SNAPSHOT clean
assembly:assembly" but it still creates the zip file with the name "
package-0.3-SNAPSHOT". Can someone tell me if there is something i am
missing?

--
Regards,
Kannan Ekanath

--
Regards,
Kannan Ekanath


Re: [m2] anyone tried to run Eclipse plugin test with pde:test?

2007-06-13 Thread Adrian Herscu

Yes.
I have managed to tell the compiler to skip the tests classes and this 
way to make the build "succeed".
After playing with it few hours I understood that I must supply a 
test.xml file (though I still don't know how to invoke the test 
through). But even, if I will supply such test.xml it will not run 
because the compiler can't compile the tests.
I still do not understand why the maven compiler and surefire plugins 
are called... If I have to supply my own test.xml file then I can do 
there whatever I need, including compilation and of course testing!

Adrian.

Dan Tran wrote:

is this related to pde-maven-plugin?

-D


On 6/13/07, Adrian Herscu <[EMAIL PROTECTED]> wrote:


Hi all,

I have my tests in a src/test/java folder and launching them from the
IDE works just fine.

Tried to run them using maven install and the compiler cannot find the
application classes (from src/main/java) :-(

Tried to move the test classes into src/main/java just to make them
compile and got this:

[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [pde:test]
[INFO] [install:install]

...still no tests are run :-(

Adrian.


-
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: [POLL] maven-enforcer-plugin rules

2007-06-13 Thread ehsavoie

Hi Brain,
I have some documentation from my old Mojo so I may be able to extract some
of it and then translate it in english. I'll try to send a page about it
today. 
I am not a beanshell expert either ;o), this was my first and only use.
Emmanuel




Brian E. Fox wrote:
> 
> Hi Emmanuel,
> I added this to the rules and deployed a snapshot and updated site,
> thanks for sending that along. 
> 
> I managed to do some interesting stuff in the expression. I'd like to
> figure out and add to the site docs:
> 1. how to call the helper and get things from there to evaluate.
> 2. possibly how to include a beanshell script and execute it.
> 
> Since I'm new to beanshell, I'll have to tinker with it some more but I
> can see lots of potential here.
> 
> --Brian
> 
> -Original Message-
> From: ehsavoie [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 13, 2007 11:34 AM
> To: users@maven.apache.org
> Subject: RE: [POLL] maven-enforcer-plugin rules
> 
> 
> Brian,
> I have sent you by mail the beanshell-rule with a simple test.
> If you have any question or problem feel free to ask bu i am in European
> Time ;o).
> Emmanuel
> 
> 
> Brian E. Fox wrote:
>> 
>> Yes of course, can't you read my mind? ;-)
>> 
>> -Original Message-
>> From: Jerome Lacoste [mailto:[EMAIL PROTECTED] 
>> Sent: Wednesday, June 13, 2007 3:44 AM
>> To: Maven Users List
>> Subject: Re: [POLL] maven-enforcer-plugin rules
>> 
>> On 6/12/07, Brian E. Fox <[EMAIL PROTECTED]> wrote:
>>> I don't see why it could be rolled into a new rule. Call it the
>>> beanshell rule or something.
>> 
>> you meant "I don't see why it couldn't be rolled into a new rule",
> right
>> ?
>> 
>> :)
>> 
>> J
>> 
>> -
>> 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]
>> 
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/-POLL--maven-enforcer-plugin-rules-tf3905191s177.h
> tml#a11102188
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-POLL--maven-enforcer-plugin-rules-tf3905191s177.html#a4045
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: What ** means ?

2007-06-13 Thread Johan Iskandar
>maven.multiproject.includes=**/project.xml
I think it means all project.xml files in all directories that has
project.xml that's relative to base directory.

>maven.multiproject.excludes=**/*-root/**/project.xml,**/target/**
I think it means all project.xml files in all directories relative to
base directory that has directories with "-root" postfix.




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



Re: [MOJO] What s the dependency including MavenProject class ?

2007-06-13 Thread Maria Odea Ching
That's already included in Maven core.. you can find it inside the uber 
jar in your $M2_HOME/lib.


-Deng

Alexandre Touret wrote:

Hello,
I m currently programming a mojo plugin.
I d like to use the MavenProject class as described in the book 
"Better builds with maven". I created the project with a simple plugin 
archetype generation.
However, the class MavenProject is not present in the dependencies and 
I didn t figure out where is the package including this class.


Could you give me the corresponding library ?

Thanks in advance

Regards,
Alexandre



-
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: [POLL] maven-enforcer-plugin rules

2007-06-13 Thread Brian E. Fox
Hi Emmanuel,
I added this to the rules and deployed a snapshot and updated site,
thanks for sending that along. 

I managed to do some interesting stuff in the expression. I'd like to
figure out and add to the site docs:
1. how to call the helper and get things from there to evaluate.
2. possibly how to include a beanshell script and execute it.

Since I'm new to beanshell, I'll have to tinker with it some more but I
can see lots of potential here.

--Brian

-Original Message-
From: ehsavoie [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 13, 2007 11:34 AM
To: users@maven.apache.org
Subject: RE: [POLL] maven-enforcer-plugin rules


Brian,
I have sent you by mail the beanshell-rule with a simple test.
If you have any question or problem feel free to ask bu i am in European
Time ;o).
Emmanuel


Brian E. Fox wrote:
> 
> Yes of course, can't you read my mind? ;-)
> 
> -Original Message-
> From: Jerome Lacoste [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 13, 2007 3:44 AM
> To: Maven Users List
> Subject: Re: [POLL] maven-enforcer-plugin rules
> 
> On 6/12/07, Brian E. Fox <[EMAIL PROTECTED]> wrote:
>> I don't see why it could be rolled into a new rule. Call it the
>> beanshell rule or something.
> 
> you meant "I don't see why it couldn't be rolled into a new rule",
right
> ?
> 
> :)
> 
> J
> 
> -
> 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]
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/-POLL--maven-enforcer-plugin-rules-tf3905191s177.h
tml#a11102188
Sent from the Maven - Users mailing list archive at Nabble.com.


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


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



Re: best location of parent pom in multi-module builds / subversion

2007-06-13 Thread Olivier Dehon

That's a possibility indeed, but the disk space issue is by far less
important than the ability to build an individual subproject on demand
from continuum!

Ideally, continuum should be aware of the project/modules structure
and use the module subdirectory checked out with the parent as its
working directory, and not create a separate one.

-Olivier

Wendy Smoak wrote:

On 6/13/07, Olivier Dehon <[EMAIL PROTECTED]> wrote:


I used to use the 2nd layout you describe because it made sense as the
continuous integration engine that I use (continuum) checks out every
project in separate subdirectories for each subproject.
That way it didn't checkout all the subprojects alongside the parent
POM just to build the parent...

I later had to change that layout and take the diskspace hit of moving
to the 1st layout you describe, because the release plugin will not
work otherwise.


This might help to get the disk space back:  remove the
--non-recursive switch from the build definition on the parent, and
delete all the separate child modules.  (That should be an option when
you add a project...)




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



Re: Problems converting to maven due to issues with assembly plugin

2007-06-13 Thread Mike Cumings

For the archive's record, this appears to be caused by:

http://jira.codehaus.org/browse/PLXCOMP-68

I've updated MASSEMBLY-64 with the necessary info and submitted
patches for both issues.  If any committers are reading this, I'd
appreciate it if I could get some help pushing these through! :)

Enjoy,

Mike

On 6/12/07, Mike Cumings <[EMAIL PROTECTED]> wrote:

Hello,

I'm in the process of trying to convert a few projects from ant build
scripts to Maven2.  In the process, I've run into quite a few issues
with the assembly plugin.  I started by running into:

http://jira.codehaus.org/browse/MASSEMBLY-213 and/or
http://jira.codehaus.org/browse/MASSEMBLY-64

which is allowing jar security files through to the assembled artifact.
This breaks jar execution when Java attempts to validate the jar
contents.  One of the workarounds described (fall back to 2.1 release)
didn't work as I was missing all but one of the dependencies in the
assembled artifact.  The other workaround (add excludes entries into
assembly descriptor) doesn't appear to work either as a result of:

http://jira.codehaus.org/browse/MASSEMBLY-195

I can manually work around this with the antrun plugin and a chunk
of manual target definitions, but the signed artifacts being included in
the assembly are used in many other projects as well, meaning that
I'd need to replicate this ant hack many times over.  I tried creating
an intermediate artifact that all the projects depend on but ran into
yet more problems with the reactor trying to use the intermediate
artifacts "classes" directory (which is empty) versus the intermediate
jar artifact when using it to compile another project's source.  This
appears to only happen if multiple modules are run together, which is
my normal mode of  operation.

Am I missing something obvious here?  I wouldn't think that this
would be such a rare and/or difficult operation..

--
Mike Cumings




--
Mike Cumings

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



Re: Overriding properties in a dependency's pom.xml

2007-06-13 Thread mojavelinux

Damn, I just bumped in to this problem only to find that there is still no
solution.  I am trying to do a very similar thing.  When one of my libraries
depends on hibernate, for example, I am using properties in the deployed pom
file to specify which version should be used by default if a person where to
use my jar file in their project.  However, if they don't want that version
of hibernate, they theoretically would set the same property in their own
pom.xml file.  Only, just as Matt has pointed out, the dependency pom is
taking precedence over the user's pom.xml.  This behavior makes absolutely
no sense, especially since it is possible to achieve this override from the
commandline.  The perfectly logical order would be: dependency pom -> user
pom -> commandline flag.

Here is some XML to demonstrate what I am doing:

some-cool-library.pom


org.hibernate
hibernate
${hibernate.version}


3.2.1.ga


user's pom.xml


3.2.4.sp1


result: no dice.

/dan


mraible wrote:
> 
> Bump.
> 
> I'd really, really like the ability to override the property of a
> dependency in a project's pom.xml.  Can anyone answer if this is currently
> possible - for example using the  feature?  If it's
> not possible, is it possible to write a plugin to do this or is everything
> locked down in Maven's core?
> 
> This feature is essential to the AppFuse project if we want to allow
> multiple persistent frameworks for users.  Requiring folks to use a -D
> parameter (or modifying MAVEN_OPTS) is quite unmaintainable.
> 
> Thanks,
> 
> Matt
> 
> 
> mraible wrote:
>> 
>> I've entered an enhancement request for this at:
>> 
>> http://jira.codehaus.org/browse/MNG-2757
>> 
>> Maven Developers: how hard would it be to allow property overriding?  It
>> seems like a natural thing to want to do.
>> 
>> Thanks,
>> 
>> Matt
>> 
>> 
>> Larry Meadors-2 wrote:
>>> 
>>> On 1/4/07, mraible <[EMAIL PROTECTED]> wrote:
 Is Maven like Ant in that properties are immutable?  If so, can I hook
 into
 the lifecycle sooner and set this dao.framework property from the local
 pom.xml?
>>> 
>>> I was thinking the same thing - it sure is acting like that is the case,
>>> no?
>>> 
>>> Larry
>>> 
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Overriding-properties-in-a-dependency%27s-pom.xml-tf2921218s177.html#a1409
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: Install/deploy a project with a single file

2007-06-13 Thread Eric Redmond

Looks like you need to create a custom extension:

http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

Eric

On 6/12/07, Rahamim, Zvi (Zvi) <[EMAIL PROTECTED]> wrote:


Thank you all for your answers,
Some comments:
1. The single file is used by different projects, this is the reason I
want it to be in a separate project.
2. I don't want it to be packaged, but I want it to be as is.
Zvi

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 10, 2007 9:50 PM
To: Maven Users List
Subject: Re: Install/deploy a project with a single file

On 6/10/07, Rahamim, Zvi (Zvi) <[EMAIL PROTECTED]> wrote:

> I have a project with only a single xml file.
> What should I define in the pom.xml file so that it will be installed
> and deployed?

If you really want that file to be "the artifact" then I suppose you'd
have to invent a new packaging type and a plugin for it.  See
'Specifying a New Packaging', here:
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycl
e.html

But... what problem are you trying to solve here?  Making that xml file
available to be included in various other modules, or... ?  Often
telling us what you're trying to accomplish will get you better answers
than asking how to implement whatever solution you've arrived at on your
own.

--
Wendy

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

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





--
Eric Redmond
http://www.sonatype.com


Re: best location of parent pom in multi-module builds / subversion

2007-06-13 Thread Wendy Smoak

On 6/13/07, Olivier Dehon <[EMAIL PROTECTED]> wrote:


I used to use the 2nd layout you describe because it made sense as the
continuous integration engine that I use (continuum) checks out every
project in separate subdirectories for each subproject.
That way it didn't checkout all the subprojects alongside the parent
POM just to build the parent...

I later had to change that layout and take the diskspace hit of moving
to the 1st layout you describe, because the release plugin will not
work otherwise.


This might help to get the disk space back:  remove the
--non-recursive switch from the build definition on the parent, and
delete all the separate child modules.  (That should be an option when
you add a project...)

--
Wendy

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



Re: best location of parent pom in multi-module builds / subversion

2007-06-13 Thread Olivier Dehon

Hi,

I used to use the 2nd layout you describe because it made sense as the
continuous integration engine that I use (continuum) checks out every
project in separate subdirectories for each subproject.
That way it didn't checkout all the subprojects alongside the parent
POM just to build the parent...

I later had to change that layout and take the diskspace hit of moving
to the 1st layout you describe, because the release plugin will not
work otherwise.

I hope this helps.

-Olivier

ossi petz wrote:

hallo

this might be obvious for everyone. but well - i could not find clear 
recommendations on how to do this the best way.


i have a multi-module build:

parent pom.xml
 - module-1
 - module-2
 - module-3

the modules are stored in a subversion repository:
http://repos/trunk/module-1
http://repos/trunk/module-2
http://repos/trunk/module-3

currently the parent pom is at
http://repos/trunk/pom.xml

to ease working with the parent pom in eclipse (allow working like 
other projects), i moved the parent pom into an own module: 
parent-module which is stored beside the other modules in subversion:

http://repos/trunk/module-1
http://repos/trunk/module-2
http://repos/trunk/module-3
http://repos/trunk/module-parent

but i dont want to copy the parent pom everytime to /trunk/pom.xml
and in future we may have additional parent poms for that location.

using a continous integration server and let it point to the parent 
pom seems only to work if the directory structure is normalized 
(parent pom and its modules in the same folder)



so: can the parent pom be stored just 'somewhere', and reference the 
modules with a relatvive path? same for the modules?


will a continuous integration server be able to understand that if i 
point it to http://repos/trunk/module-parent (so the modules are not 
directly in subdirectories)?


and will such relative module settups conflict with the release steps? 
or does that not matter at all?



any feedback would be welcome :)
regards

ossi


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



multimodule project build, maven assembly plugin

2007-06-13 Thread Francois Fernandes


Hi list,

and again a problem using the maven-assembly-plugin. I've got a  
multimodule build with a custom assembly descriptor I would like to  
execute the assembly plugin when the install phase is beeing executed.
Unfortunately this doesn't work as expected. The assembly is beeing  
defined and attached to the lifecycle in the parent pom. When invoking the  
install phase the parent is processed and the assembly:attach is called  
immediately after the install of the parent pom. That means that the  
submodules (which I'm referencing in the assembly descriptor) haven't been  
invoked. I've attached the resulting error to the bottom of this mail.


Thx for any help

The Parent POM:

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";>

  4.0.0
  my.group
  parent
  pom
  1.0-SNAPSHOT
  parent
  
  client
  shared
  server
  

  

  
maven-assembly-plugin
false

  
build-distribution
install

  attached


  
dist.xml
  

  

  

  



This is the resulting output:

[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   parent
[INFO]   shared
[INFO]   client
[INFO]   server
[INFO]  


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


[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing C:\temp\parent\pom.xml to  
...\home\.m2\repository\my\group\parent\1.0-SNAPSHOT\parent-1.0-SNAPSHOT.pom

[INFO] [assembly:attached {execution: build-distribution}]
[INFO] Reading assembly descriptor: C:\temp\parent\dist.xml
[INFO]  


[ERROR] BUILD ERROR
[INFO]  

[INFO] Failed to create assembly: Artifact:  
my.group:server:jar:1.0-SNAPSHOT
(included by module) does not have an artifact with a file. Please ensure  
the

package phase is run before the assembly is generated.

[INFO]  


[INFO] For more information, run Maven with the -e switch
[INFO]  


[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Jun 14 01:15:57 CEST 2007
[INFO] Final Memory: 7M/14M
[INFO]  




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



Re: best location of parent pom in multi-module builds / subversion

2007-06-13 Thread Evan Toliopoulos

Hey Ossi,

I have a similar structure for one of our projects.

In the parent pom you can specify a relative path for the module:

   
   ../module-1
   ../module-2
   ../module-3
   

Enjoy!
Evan

ossi petz wrote:

hallo

this might be obvious for everyone. but well - i could not find clear 
recommendations on how to do this the best way.


i have a multi-module build:

parent pom.xml
 - module-1
 - module-2
 - module-3

the modules are stored in a subversion repository:
http://repos/trunk/module-1
http://repos/trunk/module-2
http://repos/trunk/module-3

currently the parent pom is at
http://repos/trunk/pom.xml

to ease working with the parent pom in eclipse (allow working like 
other projects), i moved the parent pom into an own module: 
parent-module which is stored beside the other modules in subversion:

http://repos/trunk/module-1
http://repos/trunk/module-2
http://repos/trunk/module-3
http://repos/trunk/module-parent

but i dont want to copy the parent pom everytime to /trunk/pom.xml
and in future we may have additional parent poms for that location.

using a continous integration server and let it point to the parent 
pom seems only to work if the directory structure is normalized 
(parent pom and its modules in the same folder)



so: can the parent pom be stored just 'somewhere', and reference the 
modules with a relatvive path? same for the modules?


will a continuous integration server be able to understand that if i 
point it to http://repos/trunk/module-parent (so the modules are not 
directly in subdirectories)?


and will such relative module settups conflict with the release steps? 
or does that not matter at all?



any feedback would be welcome :)
regards

ossi


-
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: Anyone used the NAR plugin for native code ?

2007-06-13 Thread Mark Donszelmann

Hi Arne,

On Jun 13, 2007, at 2:51 AM, Arne Styve wrote:


Hi,

I'm currently looking into the NAR plugin from the FreeHEP site
(http://java.freehep.org/freehep-nar-plugin/), and have some questions
regarding the use of this plugin.
I'm building a JNI-library from a Java class, on a x86-Windows  
platform.


Currently I have two issues:

1. When I use Microsoft C++ compiler and linker (msvc), I can build my
project from the Visual Studio 2005 commandline window, but not  
from any
command window, neither from within the Netbeans (v5.5.1) IDE I'm  
using.

Any ideas why ?



The command window is the IDE or something else.

I guess neither Visual Studio nor Netbeans knows how to integrate the  
nar lifecycle

needed to compile native components.

2. When I use the g++ compiler, the NAR-plugin doesn't seem to find  
the

C++ source file to compile. I get "0 total files to be compiled":

[INFO] [freehep-nar:nar-javah]
[INFO] Running javah compiler on 1 classes...
[INFO] [freehep-nar:nar-compile]
[INFO] Project base dir set to: C:\Documents and
Settings\asty\Skrivebord\linemodel
[INFO] 0 total files to be compiled.
[INFO] Starting link (3.4.4 -shared -lstdc++ -shared-libgcc)
[INFO] gcc -shared -o liblinemodel-1.0-SNAPSHOT.so -lstdc++
-shared-libgcc
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]


Files are searched in src/main, but maybe you have them with some  
strange extension?





Finally, my C++ implementation of the JNI library is dependent on a
third party DLL (or LIB) not found in any repository. Where in the
directorystructure should I place this DLL (or LIB) for the C++ linker
to find it and include it ?


You need to (hand)-wrap it into a nar file and put it in your  
repository.
I have been thinking on how to automate this. A lot of people seem to  
have

libs without sources and just want to depend on them.

Will post a few examples on the site in the coming week.

Regards
Mark




Regards
Arne



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



package.html resources not read

2007-06-13 Thread Adam Hardy
I moved my package.html files from the src/main/java directory where they worked 
fine into the src/main/javadoc directory, and now the maven-javadoc-plugin 
ignores them.


I can see from debug -X that javadocDirectory is passed with the correct 
setting.

I worked my way through a few errors to get this far and it seems very strange 
that no-one else is suffering from this problem - unless of course my ability to 
search the mailing list properly has evaporated.


This is my config:




org.apache.maven.plugins
maven-javadoc-plugin


http://java.sun.com/j2ee/1.4/docs/api
http://java.sun.com/j2se/1.5.0/docs/api

1.5

${basedir}/src/main/java;${basedir}/src/test/java





Uncommenting the  tag doesn't help.

This is using either 2.2 or 2.3-SNAPSHOT, using JDK 1.5.0_12 and maven 2.0.6.

Does anybody else see this? Or recognise a stupid error? Thanks!

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



Re: [m2] anyone tried to run Eclipse plugin test with pde:test?

2007-06-13 Thread Dan Tran

is this related to pde-maven-plugin?

-D


On 6/13/07, Adrian Herscu <[EMAIL PROTECTED]> wrote:


Hi all,

I have my tests in a src/test/java folder and launching them from the
IDE works just fine.

Tried to run them using maven install and the compiler cannot find the
application classes (from src/main/java) :-(

Tried to move the test classes into src/main/java just to make them
compile and got this:

[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [pde:test]
[INFO] [install:install]

...still no tests are run :-(

Adrian.


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




Re: Mail on release

2007-06-13 Thread Steven Rowe
Hey Y.,

gc134728 wrote:
> If i perform a release using the maven release plugin can automate it to send
> a mail to a developers list?  and I like to have different mailing lists some
> projects need to inform everybode on release and some project just by a select
> number of people. 

I use the maven-changes-plugin for this - works great:


  ...
  
...

  maven-release-plugin
  
...
deploy site-deploy changes:announcement-generate
changes:announcement-mail
  


  maven-changes-plugin
  
mailserver.example.com
25

  [EMAIL PROTECTED]

  

...
  
  ...


Steve

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



Re: Mail on release

2007-06-13 Thread Alexander Sack

Wow, I was going to feel bad about it...but I was going to suggest using the
antrun plugin to just email what you need, etc.  Not as graceful but will do
the trick and pretty maintainable.

-aps

On 6/13/07, Wayne Fay <[EMAIL PROTECTED]> wrote:


IMO, this is more along the lines of something you would expect from a
continuous integration server environment ie Continuum, Cruise
Control, etc.

Could you rig something with Antrun plugin or Exec plugin to send an
email as part of the release process? Sure.
Is this standard built-in M2 behavior? Not that I'm aware of.

Wayne

On 6/13/07, gc134728 <[EMAIL PROTECTED]> wrote:
> Hey maven users,
>
> If i perform a release using the maven release plugin can automate it to
send
> a mail to a developers list?  and I like to have different mailing lists
some
> projects need to inform everybode on release and some project just by a
select
> number of people.
>
> All my projects (artifacts) inherite from one single pom.
>
> Thanks for the help.
>
> Y. Van Steen
> ---
> http://www.scarlet.be/
>
>
> -
> 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]





--
"What lies behind us and what lies in front of us is of little concern to
what lies within us." -Ralph Waldo Emerson


Re: Mail on release

2007-06-13 Thread Wayne Fay

IMO, this is more along the lines of something you would expect from a
continuous integration server environment ie Continuum, Cruise
Control, etc.

Could you rig something with Antrun plugin or Exec plugin to send an
email as part of the release process? Sure.
Is this standard built-in M2 behavior? Not that I'm aware of.

Wayne

On 6/13/07, gc134728 <[EMAIL PROTECTED]> wrote:

Hey maven users,

If i perform a release using the maven release plugin can automate it to send
a mail to a developers list?  and I like to have different mailing lists some
projects need to inform everybode on release and some project just by a select
number of people.

All my projects (artifacts) inherite from one single pom.

Thanks for the help.

Y. Van Steen
---
http://www.scarlet.be/


-
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: Ant task executing twice

2007-06-13 Thread Siegfried Goeschl

Hi Jeff,

this is/was a bug we encountered in 2.0.4 and my colleague just fixed 
over the evening by patching the Maven libs ... :-(


If this is still an issue I will remind him to sent a patch next week

Cheers,

Siegfried Goeschl

Jeff Mutonho wrote:

I have an ant task that is suppose to run in the "process-resources"
phase.The configuration is :


  maven-antrun-plugin
   
   
   process-resources

 
 
 
  

 
 
 
 
  run
 

   
  


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



How do I use release:perform to deploy artifacts other than jar files?

2007-06-13 Thread Danny MacMillan

Hi,

My project is a utility program comprised of Java source files that are 
compiled into a jar, plus other ancillary files (configuration files, 
batch files, etc.).  I use the assembly plugin to produce a zip file 
containing all files relevant to the project, including the compiled Jar 
file.  That works great.


Now I want to create a release.  I was able to successfully run 
release:prepare and release:perform, but it deployed into the repository 
just the jar file, when what I want to deploy is the zip file.  Is that 
possible?


The project will never be a dependency of any other project.  I want to 
deploy it so I have a centrally maintained and archived copy of the 
exact version I will be deploying to the client.  The release plugin 
seems to be the best way to do it because it keeps the version numbers 
in sync with the repository tags, etc.  Not to mention that the maven 
repository seems like a "safe" place to put it (my IT environment is ... 
interesting).


I would really appreciate any guidance.

--
Danny MacMillan

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



Mail on release

2007-06-13 Thread gc134728
Hey maven users,

If i perform a release using the maven release plugin can automate it to send
a mail to a developers list?  and I like to have different mailing lists some
projects need to inform everybode on release and some project just by a select
number of people.

All my projects (artifacts) inherite from one single pom.

Thanks for the help.

Y. Van Steen
---
http://www.scarlet.be/


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



Re: issue with cobertura / maven2 plugin build

2007-06-13 Thread Bill Brown

Greetings:  

even when I force the build to use the 2.0 version of the plugin, I get the
same build error: 

...
ERROR] project-execute : com.eb:eb:war:1.0.0.0-SNAPSHOT (  task-segment:
[cobertura:cobertura] )
Diagnosis: Error configuring: org.codehaus.mojo:cobertura-maven-plugin.
Reason: Unable to parse the created DOM for plugin configuration
FATAL ERROR: Error executing Maven for a project
[ERROR] reactor-execute : C:\Documents and Settings\eb\My
Documents\workspace\eb
Diagnosis: Error configuring: org.codehaus.mojo:cobertura-maven-plugin.
Reason: Unable to parse the created DOM for plugin configuration
FATAL ERROR: Error executing Maven for a project
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to configure plugin parameters for:
org.codehaus.mojo:cobertura-maven-plugin:2.0

on the command line, specify: '-Dcheck=VALUE'

Cause: Class name which was explicitly given in configuration using
'implementation' attribute:
'org.codehaus.mojo.cobertura.configuration.ConfigCheck' cannot be loaded
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 6 seconds
[INFO] Finished at: Wed Jun 13 12:19:03 CDT 2007
[INFO] Final Memory: 5M/22M
[INFO]

[INFO] Error for project: eb(during cobertura:cobertura)
[INFO]

[INFO] Failed to configure plugin parameters for:
org.codehaus.mojo:cobertura-maven-plugin:2.0

on the command line, specify: '-Dcheck=VALUE'

Cause: Class name which was explicitly given in configuration using
'implementation' attribute:
'org.codehaus.mojo.cobertura.configuration.ConfigCheck' cannot be loaded
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[ERROR] reactor-execute : C:\Documents and Settings\eb\My
Documents\workspace\eb
FATAL ERROR: Error executing Maven for a project
[INFO] BUILD ERRORS
[INFO]

[INFO] Total time: 6 seconds
[INFO] Finished at: Wed Jun 13 12:19:03 CDT 2007
[INFO] Final Memory: 5M/22M
[INFO]



could this possibly be a classloading issue.  Also I'm using maven 2.0.6

Thanks for your help.



Wayne Fay wrote:
> 
> org.codehaus.mojo:cobertura-maven-plugin:2.1 << means that Maven is
> still using version 2.1, despite you having configured a dependency on
> the 2.0 version.
> 
> Specify the version number in the  section. Also, perhaps try
> [2.0] to "lock down" the version.
> 
> Wayne
> 
> On 6/13/07, Bill Brown <[EMAIL PROTECTED]> wrote:
>>
>> Greetings:
>>
>> I'm using jdk 1.5
>> cobertura 1.7
>> cobertura-maven-plugin 2.0 (because of the 2.1 100% complete) error
>>
>> I am using these 2 dependencies.
>> 
>> org.codehaus.mojo
>> cobertura-maven-plugin
>> 2.0
>> 
>> 
>> cobertura
>> cobertura
>> 1.7
>> 
>>
>> I am using this build plugin:
>> 
>> org.codehaus.mojo
>> cobertura-maven-plugin
>> 
>>   
>> 
>>   clean
>> 
>>   
>> 
>> 
>>
>> I am using this reporting plugin:
>> 
>> 
>>   
>> org.codehaus.mojo
>> cobertura-maven-plugin
>> 2.0
>>   
>>   
>> 
>>
>> When I run the mvn cobertura:cobertura target I get the following error:
>>
>> [INFO] Scanning for projects...
>> [INFO] Searching repository for plugin with prefix: 'cobertura'.
>> [INFO] org.apache.maven.plugins: checking for updates from com.eb
>> [INFO] org.codehaus.mojo: checking for updates from com.eb
>> [INFO] artifact org.codehaus.mojo:cobertura-maven-plugin: checking for
>> updates from com.eb
>> [INFO]
>> 
>> [INFO] Building eb
>> [INFO]task-segment: [clean, cobertura:cobertura]
>> [INFO]
>> 
>> [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for
>> updates from com.eb
>> [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking
>> for
>> updates from com.eb
>> [INFO] clean:clean
>> [INFO] Deleting directory C:\Documents and Settings\eb\My
>> Documents\workspace\eb\target
>> [INFO] Deleting directory C:\Documents and Settings\eb\My
>> Documents\workspace\eb\target\classes
>> [INFO] Deleting directory C:\Documents and Settings\eb\My
>> Documents\workspace\eb\target\test-classes
>> [

Re: Suppressing "Downloading logs..."

2007-06-13 Thread Wayne Fay

Currently, there is no way to suppress these logging statements.
Perhaps this will be available in Maven 2.1.x.

Wayne

On 6/13/07, Yaakov Chaikin <[EMAIL PROTECTED]> wrote:

Hi,

Is there a way to suppress all the "Downloading..." statements in
maven? Even in quiet mode, these statements show up.

I just want to be able to see all the goals being executed without
seeing the mess of downloading this or that cluttering the output.

Thanks,
Yaakov.

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



scm:checkout mojo problem

2007-06-13 Thread Gonzalo Vásquez Sáez

The goal doesn't seem to consider the scmVersion & scmType parameters, I'm
using CVS as repository, and I'm using "tag" as scmType, but whenever I do a
checkout it just gets me the latest release of every file, not the
corresponding to the specified version in the scmVersion parameter.

Any ideas or experience with this mojo?


Suppressing "Downloading logs..."

2007-06-13 Thread Yaakov Chaikin

Hi,

Is there a way to suppress all the "Downloading..." statements in
maven? Even in quiet mode, these statements show up.

I just want to be able to see all the goals being executed without
seeing the mess of downloading this or that cluttering the output.

Thanks,
Yaakov.

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



Re: issue with cobertura / maven2 plugin build

2007-06-13 Thread Wayne Fay

org.codehaus.mojo:cobertura-maven-plugin:2.1 << means that Maven is
still using version 2.1, despite you having configured a dependency on
the 2.0 version.

Specify the version number in the  section. Also, perhaps try
[2.0] to "lock down" the version.

Wayne

On 6/13/07, Bill Brown <[EMAIL PROTECTED]> wrote:


Greetings:

I'm using jdk 1.5
cobertura 1.7
cobertura-maven-plugin 2.0 (because of the 2.1 100% complete) error

I am using these 2 dependencies.

org.codehaus.mojo
cobertura-maven-plugin
2.0


cobertura
cobertura
1.7


I am using this build plugin:

org.codehaus.mojo
cobertura-maven-plugin

  

  clean

  



I am using this reporting plugin:


  
org.codehaus.mojo
cobertura-maven-plugin
2.0
  
  


When I run the mvn cobertura:cobertura target I get the following error:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'cobertura'.
[INFO] org.apache.maven.plugins: checking for updates from com.eb
[INFO] org.codehaus.mojo: checking for updates from com.eb
[INFO] artifact org.codehaus.mojo:cobertura-maven-plugin: checking for
updates from com.eb
[INFO]

[INFO] Building eb
[INFO]task-segment: [clean, cobertura:cobertura]
[INFO]

[INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for
updates from com.eb
[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking for
updates from com.eb
[INFO] clean:clean
[INFO] Deleting directory C:\Documents and Settings\eb\My
Documents\workspace\eb\target
[INFO] Deleting directory C:\Documents and Settings\eb\My
Documents\workspace\eb\target\classes
[INFO] Deleting directory C:\Documents and Settings\eb\My
Documents\workspace\eb\target\test-classes
[ERROR] project-execute : com.eb:eb:war:1.0.0.0-SNAPSHOT (  task-segment:
[clean, cobertura:cobertura] )
Diagnosis: Error configuring: org.codehaus.mojo:cobertura-maven-plugin.
Reason: Unable to parse the created DOM for plugin configuration
FATAL ERROR: Error executing Maven for a project
[ERROR] reactor-execute : C:\Documents and Settings\eb\My
Documents\workspace\eb
Diagnosis: Error configuring: org.codehaus.mojo:cobertura-maven-plugin.
Reason: Unable to parse the created DOM for plugin configuration
FATAL ERROR: Error executing Maven for a project
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to configure plugin parameters for:
org.codehaus.mojo:cobertura-maven-plugin:2.1

on the command line, specify: '-Dcheck=VALUE'

Cause: Class name which was explicitly given in configuration using
'implementation' attribute:
'org.codehaus.mojo.cobertura.configuration.ConfigCheck' cannot be loaded
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 1 second
[INFO] Finished at: Wed Jun 13 09:49:06 CDT 2007
[INFO] Final Memory: 3M/6M
[INFO]

[INFO] Error for project: eb (during clean)
[INFO]

[INFO] Failed to configure plugin parameters for:
org.codehaus.mojo:cobertura-maven-plugin:2.1

on the command line, specify: '-Dcheck=VALUE'

Cause: Class name which was explicitly given in configuration using
'implementation' attribute:
'org.codehaus.mojo.cobertura.configuration.ConfigCheck' cannot be loaded
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[ERROR] reactor-execute : C:\Documents and Settings\eb\My
Documents\workspace\eb
FATAL ERROR: Error executing Maven for a project
[INFO] BUILD ERRORS
[INFO]

[INFO] Total time: 1 second
[INFO] Finished at: Wed Jun 13 09:49:06 CDT 2007
[INFO] Final Memory: 3M/6M
[INFO]


Does anyone here know how to fix this?
Thanks.
Bill.

--
View this message in context: 
http://www.nabble.com/issue-with-cobertura---maven2--plugin-build-tf3915408s177.html#a11101878
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: What ** means ?

2007-06-13 Thread Gonzalo Vásquez Sáez

It's a Wildcard use in filename pattern expressions, much more generic than
a simple asterisc.

if you have a file in /var/run/process.pid,

the *.pid would not find it, but **/*.pid would!

On 13/06/07, Ha <[EMAIL PROTECTED]> wrote:



Could you please explain what ** means, example:

maven.multiproject.includes=**/project.xml
maven.multiproject.excludes=**/*-root/**/project.xml,**/target/**

Many thanks,
Nguyen
--
View this message in context:
http://www.nabble.com/What-**-means---tf3915932s177.html#a11103403
Sent from the Maven - Users mailing list archive at Nabble.com.


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




What ** means ?

2007-06-13 Thread Ha

Could you please explain what ** means, example:

maven.multiproject.includes=**/project.xml
maven.multiproject.excludes=**/*-root/**/project.xml,**/target/**

Many thanks,
Nguyen
-- 
View this message in context: 
http://www.nabble.com/What-**-means---tf3915932s177.html#a11103403
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: used to be A getting started user behind proxy under win xp problem?

2007-06-13 Thread Wayne Fay

As Wendy said in the other thread...


... and after you do that, add -U on the command line to force
Maven to check for updates.

The default update policy is once per day, and as far as Maven
is concerned, it already checked today, even though it failed.


Wayne

On 6/13/07, Johan Iskandar <[EMAIL PROTECTED]> wrote:


...
  

  true
  http
  www-proxy.ag-it.com
  8080
  agit

  
...

Sorry these lines should have been

...
  

  true
  http
  www-proxy.corporate.com
  8080
  corporate

  
...

:D

I don't know what was wrong with my first settings.xml but when I used
the settings from hibernate site and ran this line, it somehow worked..
:) don't know why..
mvn archetype:create -DgroupId=mavenbook -DartifactId=my-app -U -X -e

I'm terribly sure it wasn't the proxy settings..:-/



-
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: used to be A getting started user behind proxy under win xp problem?

2007-06-13 Thread Johan Iskandar

...
  

  true
  http
  www-proxy.ag-it.com
  8080
  agit

  
...

Sorry these lines should have been

...
  

  true
  http
  www-proxy.corporate.com
  8080
  corporate

  
...

:D

I don't know what was wrong with my first settings.xml but when I used
the settings from hibernate site and ran this line, it somehow worked..
:) don't know why..
mvn archetype:create -DgroupId=mavenbook -DartifactId=my-app -U -X -e

I'm terribly sure it wasn't the proxy settings..:-/



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



AW: Lifecycle Question

2007-06-13 Thread Jens Hohl
Thanks for answers.

For me that not working. If you try to make your CC System more complex
I ran into this problem. Compile works only until I add the
War module to my parent POM. Hmm, maven should stop there I think as
It cannot compile anything just package the installed jar (but there are no 
fresh ones at least). May it is now clearer what I mean.

- jens 

-Ursprüngliche Nachricht-
Von: Jo Vandermeeren [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 13. Juni 2007 17:26
An: Maven Users List
Betreff: Re: Lifecycle Question

On 6/13/07, Wendy Smoak <[EMAIL PROTECTED]> wrote:
>
> On 6/13/07, Jo Vandermeeren <[EMAIL PROTECTED]> wrote:
> > Are the compiled artifacts of the other modules installed in your local
> > repository?  Otherwise, the war module won't find them.
>
> I don't think this is true.  Clear your local repository and try 'mvn
> package on a multimodule build with inter-dependent modules.  It works
> for me.



Hi Wendy,

I have tried it, and you are absolutely right.
Sorry for the confusion..

Cheers
Jo


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



best location of parent pom in multi-module builds / subversion

2007-06-13 Thread ossi petz

hallo

this might be obvious for everyone. but well - i could not find clear 
recommendations on how to do this the best way.


i have a multi-module build:

parent pom.xml
 - module-1
 - module-2
 - module-3

the modules are stored in a subversion repository:
http://repos/trunk/module-1
http://repos/trunk/module-2
http://repos/trunk/module-3

currently the parent pom is at
http://repos/trunk/pom.xml

to ease working with the parent pom in eclipse (allow working like other 
projects), i moved the parent pom into an own module: parent-module 
which is stored beside the other modules in subversion:

http://repos/trunk/module-1
http://repos/trunk/module-2
http://repos/trunk/module-3
http://repos/trunk/module-parent

but i dont want to copy the parent pom everytime to /trunk/pom.xml
and in future we may have additional parent poms for that location.

using a continous integration server and let it point to the parent pom 
seems only to work if the directory structure is normalized (parent pom 
and its modules in the same folder)



so: can the parent pom be stored just 'somewhere', and reference the 
modules with a relatvive path? same for the modules?


will a continuous integration server be able to understand that if i 
point it to http://repos/trunk/module-parent (so the modules are not 
directly in subdirectories)?


and will such relative module settups conflict with the release steps? 
or does that not matter at all?



any feedback would be welcome :)
regards

ossi


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



[m2] anyone tried to run Eclipse plugin test with pde:test?

2007-06-13 Thread Adrian Herscu

Hi all,

I have my tests in a src/test/java folder and launching them from the 
IDE works just fine.


Tried to run them using maven install and the compiler cannot find the 
application classes (from src/main/java) :-(


Tried to move the test classes into src/main/java just to make them 
compile and got this:


[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [pde:test]
[INFO] [install:install]

...still no tests are run :-(

Adrian.


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



Re: Lifecycle Question

2007-06-13 Thread Jo Vandermeeren

On 6/13/07, Wendy Smoak <[EMAIL PROTECTED]> wrote:


On 6/13/07, Jo Vandermeeren <[EMAIL PROTECTED]> wrote:
> Are the compiled artifacts of the other modules installed in your local
> repository?  Otherwise, the war module won't find them.

I don't think this is true.  Clear your local repository and try 'mvn
package on a multimodule build with inter-dependent modules.  It works
for me.




Hi Wendy,

I have tried it, and you are absolutely right.
Sorry for the confusion..

Cheers
Jo


RE: A getting started user behind proxy under win xp problem?

2007-06-13 Thread Johan Iskandar
The funny thing is when I used my new settings (below) the thing
actually downloaded things.. I dunno if this is the correct behaviour..
I've taken this new setting from here and added the previous proxy and
localrepo tags:
http://www.hibernate.org/422.html

I created a new blank directory in F:\m2ws (this time my repo is in
F:\m2repo, I'm using different machine but the environment settings
should be the same with the previous threads)
And then ran these two commands:
mvn clean install
mvn eclipse:eclipse

the output is at the end of this post..

so getting back to my previous question,
it's shouldn't be a proxy/connection error.. was it an archetype
thing..?

any help or hint/link would do me real good..

thanks
johan

===
The new settings:

F:\m2repo
  

  true
  http
  www-proxy.ag-it.com
  8080
  agit

  



standard-extra-repos

true



jboss
http://repository.jboss.com/maven2

true


false



jboss-snapshot
http://snapshots.jboss.org/maven2

true


true





jboss-plugins
http://repository.jboss.com/maven2

true


false



jboss-snapshot-plugins
http://snapshots.jboss.org/maven2

true


true







===
The new logs:
F:\m2ws>mvn clean install
[INFO] Scanning for projects...
[INFO]


[INFO] Building Maven Default Project
[INFO]task-segment: [clean, install]
[INFO]


[INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking
for updates from central
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugi
n/2.1.1/maven-cle
an-plugin-2.1.1.pom
1K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/3/m
aven-plugins-3.po
m
6K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/maven-parent/4/maven-pare
nt-4.pom
9K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom
3K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugi
n/2.1.1/maven-cle
an-plugin-2.1.1.jar
6K downloaded
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Cannot execute mojo: clean. It requires a project with an
existing pom.xml, but the build is no
t using one.
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 22 seconds
[INFO] Finished at: Wed Jun 13 22:35:46 GMT+07:00 2007
[INFO] Final Memory: 1M/2M
[INFO]


F:\m2ws>mvn eclipse:eclipse
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'eclipse'.
[INFO] artifact org.apache.maven.plugins:maven-eclipse-plugin: checking
for updates from central
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-eclipse-plu
gin/2.3/maven-ecl
ipse-plugin-2.3.pom
4K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/7/m
aven-plugins-7.po
m
13K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-surrogate-pa
rent/5/maven-plug
in-surrogate-parent-5.pom
10K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-eclipse-plu
gin/2.3/maven-ecl
ipse-plugin-2.3.jar
107K downloaded
[INFO]


[INFO] Building Maven Default Project
[INFO]task-segment: [eclipse:eclipse]
[INFO]


[INFO] Preparing eclipse:eclipse
[INFO] No goals needed for project - skipping
[INFO]
--

RE: [POLL] maven-enforcer-plugin rules

2007-06-13 Thread ehsavoie

Brian,
I have sent you by mail the beanshell-rule with a simple test.
If you have any question or problem feel free to ask bu i am in European
Time ;o).
Emmanuel


Brian E. Fox wrote:
> 
> Yes of course, can't you read my mind? ;-)
> 
> -Original Message-
> From: Jerome Lacoste [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 13, 2007 3:44 AM
> To: Maven Users List
> Subject: Re: [POLL] maven-enforcer-plugin rules
> 
> On 6/12/07, Brian E. Fox <[EMAIL PROTECTED]> wrote:
>> I don't see why it could be rolled into a new rule. Call it the
>> beanshell rule or something.
> 
> you meant "I don't see why it couldn't be rolled into a new rule", right
> ?
> 
> :)
> 
> J
> 
> -
> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-POLL--maven-enforcer-plugin-rules-tf3905191s177.html#a11102188
Sent from the Maven - Users mailing list archive at Nabble.com.


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



issue with cobertura / maven2 plugin build

2007-06-13 Thread Bill Brown

Greetings:  

I'm using jdk 1.5
cobertura 1.7
cobertura-maven-plugin 2.0 (because of the 2.1 100% complete) error

I am using these 2 dependencies.

org.codehaus.mojo
cobertura-maven-plugin
2.0


cobertura
cobertura
1.7


I am using this build plugin:

org.codehaus.mojo
cobertura-maven-plugin

  

  clean

  

 

I am using this reporting plugin:


  
org.codehaus.mojo
cobertura-maven-plugin
2.0
  
  


When I run the mvn cobertura:cobertura target I get the following error:  

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'cobertura'.
[INFO] org.apache.maven.plugins: checking for updates from com.eb
[INFO] org.codehaus.mojo: checking for updates from com.eb
[INFO] artifact org.codehaus.mojo:cobertura-maven-plugin: checking for
updates from com.eb
[INFO]

[INFO] Building eb
[INFO]task-segment: [clean, cobertura:cobertura]
[INFO]

[INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for
updates from com.eb
[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking for
updates from com.eb
[INFO] clean:clean
[INFO] Deleting directory C:\Documents and Settings\eb\My
Documents\workspace\eb\target
[INFO] Deleting directory C:\Documents and Settings\eb\My
Documents\workspace\eb\target\classes
[INFO] Deleting directory C:\Documents and Settings\eb\My
Documents\workspace\eb\target\test-classes
[ERROR] project-execute : com.eb:eb:war:1.0.0.0-SNAPSHOT (  task-segment:
[clean, cobertura:cobertura] )
Diagnosis: Error configuring: org.codehaus.mojo:cobertura-maven-plugin.
Reason: Unable to parse the created DOM for plugin configuration
FATAL ERROR: Error executing Maven for a project
[ERROR] reactor-execute : C:\Documents and Settings\eb\My
Documents\workspace\eb
Diagnosis: Error configuring: org.codehaus.mojo:cobertura-maven-plugin.
Reason: Unable to parse the created DOM for plugin configuration
FATAL ERROR: Error executing Maven for a project
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to configure plugin parameters for:
org.codehaus.mojo:cobertura-maven-plugin:2.1

on the command line, specify: '-Dcheck=VALUE'

Cause: Class name which was explicitly given in configuration using
'implementation' attribute:
'org.codehaus.mojo.cobertura.configuration.ConfigCheck' cannot be loaded
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 1 second
[INFO] Finished at: Wed Jun 13 09:49:06 CDT 2007
[INFO] Final Memory: 3M/6M
[INFO]

[INFO] Error for project: eb (during clean)
[INFO]

[INFO] Failed to configure plugin parameters for:
org.codehaus.mojo:cobertura-maven-plugin:2.1

on the command line, specify: '-Dcheck=VALUE'

Cause: Class name which was explicitly given in configuration using
'implementation' attribute:
'org.codehaus.mojo.cobertura.configuration.ConfigCheck' cannot be loaded
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[ERROR] reactor-execute : C:\Documents and Settings\eb\My
Documents\workspace\eb
FATAL ERROR: Error executing Maven for a project
[INFO] BUILD ERRORS
[INFO]

[INFO] Total time: 1 second
[INFO] Finished at: Wed Jun 13 09:49:06 CDT 2007
[INFO] Final Memory: 3M/6M
[INFO]


Does anyone here know how to fix this?  
Thanks.
Bill.

-- 
View this message in context: 
http://www.nabble.com/issue-with-cobertura---maven2--plugin-build-tf3915408s177.html#a11101878
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: A getting started user behind proxy under win xp problem?

2007-06-13 Thread Wendy Smoak

On 6/13/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote:



Did you configure the proxy?

http://maven.apache.org/guides/mini/guide-proxies.html


... and after you do that, add -U on the command line to force Maven
to check for updates.

The default update policy is once per day, and as far as Maven is
concerned, it already checked today, even though it failed.

--
Wendy

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



RE: A getting started user behind proxy under win xp problem?

2007-06-13 Thread Johan Iskandar
Yes already,

Here's my settings..

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

  

  true
  http
  www-proxy.corporate.com
  8080
corporate
   
  

  

  ibiblio.org
  http://mirrors.ibiblio.org/pub/mirrors/maven2
  central
  


  lsu.edu
  http://ibiblio.lsu.edu/main/pub/packages/maven2
  central
  
 

  sateh.com
  http://maven.sateh.com/repository
  central
  



  dotsrc.org
  http://mirrors.dotsrc.org/maven2
  central
  


  sunsite.dk
  http://mirrors.sunsite.dk/maven2
  central
  


  skynet.be
  http://maven2.mirrors.skynet.be/pub/maven2
  central
  


  cica.es
  http://ftp.cica.es/mirrors/maven2
  central
  


  redv.com
  http://mirrors.redv.com/maven2
  central
  


 

  ibiblio.net
  http://www.ibiblio.net/pub/packages/maven2
  central
  


  ggi-project.org
  http://ftp.ggi-project.org/pub/packages/maven2
  central
  

  


-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 13, 2007 10:02 PM
To: Maven Users List
Subject: Re: A getting started user behind proxy under win xp problem?

2007/6/13, Johan Iskandar <[EMAIL PROTECTED]>:
>
> I'am using maven 2.0.6 from win xp behind my corporate firewall



Did you configure the proxy?

http://maven.apache.org/guides/mini/guide-proxies.html

Antonio



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



[MOJO] What s the dependency including MavenProject class ?

2007-06-13 Thread Alexandre Touret

Hello,
I m currently programming a mojo plugin.
I d like to use the MavenProject class as described in the book "Better 
builds with maven". I created the project with a simple plugin archetype 
generation.
However, the class MavenProject is not present in the dependencies and I 
didn t figure out where is the package including this class.


Could you give me the corresponding library ?

Thanks in advance

Regards,
Alexandre



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



Re: Lifecycle Question

2007-06-13 Thread Wendy Smoak

On 6/13/07, Jo Vandermeeren <[EMAIL PROTECTED]> wrote:


Are the compiled artifacts of the other modules installed in your local
repository?  Otherwise, the war module won't find them.


I don't think this is true.  Clear your local repository and try 'mvn
package on a multimodule build with inter-dependent modules.  It works
for me.

(There are some problem cases, such as including an applet in a
webapp, where you do need the jar in the local repo and will have to
install first, but not normally.)

--
Wendy

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



Re: maven-scm-plugin verbose

2007-06-13 Thread Emmanuel Venisse

you can use the mvn "-X" parameter.

Jeff Mutonho a écrit :

Is there some undocumented feature/way  to make maven-scm-plugin more
verbose during checkout and checkin?






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



Re: A getting started user behind proxy under win xp problem?

2007-06-13 Thread Antonio Petrelli

2007/6/13, Johan Iskandar <[EMAIL PROTECTED]>:


I'am using maven 2.0.6 from win xp behind my corporate firewall




Did you configure the proxy?

http://maven.apache.org/guides/mini/guide-proxies.html

Antonio


Re: Lifecycle Question

2007-06-13 Thread Jo Vandermeeren

On 6/13/07, Jens Hohl <[EMAIL PROTECTED]> wrote:


Is that correct ? The war simply have to compile small amount of code
against already compiled sourcecode from other modules.



Are the compiled artifacts of the other modules installed in your local
repository?
Otherwise, the war module won't find them.

Cheers
Jo


A getting started user behind proxy under win xp problem?

2007-06-13 Thread Johan Iskandar
Hi all,

 

I'am using maven 2.0.6 from win xp behind my corporate firewall

I'm trying to execute the line

mvn archetype:create -DgroupId=mavenbook -DartifactId=my-app

 

I have searched a lot of places, but I've given up..

 

Help is much appreciated here. Thanks.

 

Best regards,

johan

 

ps.

Here is the error message:

D:\temp\killerapp>mvn archetype:create -DgroupId=mavenbook
-DartifactId=my-app -U -X -e

+ Error stacktraces are turned on.

Maven version: 2.0.6

[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
and Settings\Administrator\.m2\plugin-registry.xml'

[DEBUG] Building Maven global-level plugin registry from:
'C:\prgr\maven-2.0.6\bin\..\conf\plugin-registry.xml'

[INFO] Scanning for projects...

[DEBUG] Adding managed depedendencies for
com.training.killerapp:killerapp

[DEBUG]   com.training.killerapp:killerapp-model:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-api:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-core:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-store-memory:jar:1.0-SNAPSHOT

[DEBUG]
com.training.killerapp:killerapp-store-xstream:jar:1.0-SNAPSHOT

[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-18

[DEBUG] Adding managed depedendencies for unknown:killerapp-model

[DEBUG]   com.training.killerapp:killerapp-model:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-api:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-core:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-store-memory:jar:1.0-SNAPSHOT

[DEBUG]
com.training.killerapp:killerapp-store-xstream:jar:1.0-SNAPSHOT

[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-18

[DEBUG] Adding managed depedendencies for unknown:killerapp-api

[DEBUG]   com.training.killerapp:killerapp-model:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-api:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-core:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-store-memory:jar:1.0-SNAPSHOT

[DEBUG]
com.training.killerapp:killerapp-store-xstream:jar:1.0-SNAPSHOT

[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-18

[DEBUG] Adding managed depedendencies for unknown:killerapp-core

[DEBUG]   com.training.killerapp:killerapp-model:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-api:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-core:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-store-memory:jar:1.0-SNAPSHOT

[DEBUG]
com.training.killerapp:killerapp-store-xstream:jar:1.0-SNAPSHOT

[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-18

[DEBUG] Adding managed depedendencies for unknown:killerapp-stores

[DEBUG]   com.training.killerapp:killerapp-model:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-api:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-core:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-store-memory:jar:1.0-SNAPSHOT

[DEBUG]
com.training.killerapp:killerapp-store-xstream:jar:1.0-SNAPSHOT

[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-18

[DEBUG] Adding managed depedendencies for unknown:killerapp-store-memory

[DEBUG]   com.training.killerapp:killerapp-model:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-api:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-core:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-store-memory:jar:1.0-SNAPSHOT

[DEBUG]
com.training.killerapp:killerapp-store-xstream:jar:1.0-SNAPSHOT

[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-18

[DEBUG] Adding managed depedendencies for
unknown:killerapp-store-xstream

[DEBUG]   com.training.killerapp:killerapp-model:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-api:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-core:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-store-memory:jar:1.0-SNAPSHOT

[DEBUG]
com.training.killerapp:killerapp-store-xstream:jar:1.0-SNAPSHOT

[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-18

[DEBUG] Adding managed depedendencies for unknown:killerapp-cli

[DEBUG]   com.training.killerapp:killerapp-model:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-api:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-core:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-store-memory:jar:1.0-SNAPSHOT

[DEBUG]
com.training.killerapp:killerapp-store-xstream:jar:1.0-SNAPSHOT

[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-18

[DEBUG] Adding managed depedendencies for unknown:killerapp-war

[DEBUG]   com.training.killerapp:killerapp-model:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-api:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-core:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-store-memory:jar:1.0-SNAPSHOT

[DEBUG]
com.tr

Re: Comprehensive list of packaging types?

2007-06-13 Thread Wendy Smoak

On 6/13/07, Greg Thompson <[EMAIL PROTECTED]> wrote:


I ask partly out of curiosity, and partly because I have an ant-based
"project" that generates a set of documents .  If I were to mavenize
this, I imagine that the bundle of documents would be installed/deployed
so that it would be available to other projects (which may create
assemblies containing the documents along with bits and pieces of other
projects/modules).  So what would I set the packaging to for this
document project?


Without seeing it, my suggestion is to use pom packaging, and use the
assembly plugin to create a zip file of the docs.

Here's the Struts 1.x assembly module, which builds the release
distributions including source and docs:
http://svn.apache.org/repos/asf/struts/struts1/trunk/assembly/pom.xml

--
Wendy

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



Re: Comprehensive list of packaging types?

2007-06-13 Thread Greg Thompson

Steven Rowe wrote:

There's a bigger list (though perhaps a bit dated) here:




Thanks, Steven.  None of the options on that list sound right for my 
needs (a non-Java project generating a bundle of documentation).  I'm 
not going to need to write my own plugin for something so simple, am I?

--
-Greg

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



Re: Lifecycle Question

2007-06-13 Thread Wendy Smoak

On 6/13/07, Jens Hohl <[EMAIL PROTECTED]> wrote:


when i only compile my multiproject which also contains an war module I
get an error when the WAR is module ist compiled that there are missing
dependencies.

Is that correct ? The war simply have to compile small amount of code
against already compiled sourcecode from other modules.


Did you list those dependencies on the war module's pom?

In order to help, we need to see the pom and the error message.

--
Wendy

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



Re: Lifecycle Question

2007-06-13 Thread Steven Rowe
Hi Jens,

Jens Hohl wrote:
> when i only compile my multiproject which also contains an war module I
> get an error when the WAR is module ist compiled that there are missing
> dependencies.
> 
> Is that correct ? The war simply have to compile small amount of code
> against already compiled sourcecode from other modules.

Did you try to run "mvn install"?  This places the depended-on artifacts
in your local repository and makes them available to further modules.

Steve

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



Re: Comprehensive list of packaging types?

2007-06-13 Thread Steven Rowe
Hi Greg,

Greg Thompson wrote:
> Is there a complete list of packaging types?

There's a bigger list (though perhaps a bit dated) here:



Steve

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



Re: AW: remote/home interfaces not creating up..

2007-06-13 Thread Wayne Fay

How were you generating them before in ant, if not using xdoclet?

Wayne

On 6/13/07, Kiran Kodlady <[EMAIL PROTECTED]> wrote:


Thanks for response..
but i am into migration of existing ant scripts to Maven scripts. So Using
xdoclet i all classes is not achievable..
Could u suggest me any alternative step for creating home/remote interfaces


Thanks,

Kiran Kodlady

Jens Hohl wrote:
>
> For this you should use XDoclet!
>
> - Jens
>
> -Ursprüngliche Nachricht-
> Von: Kiran Kodlady [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 12. Juni 2007 10:55
> An: users@maven.apache.org
> Betreff: remote/home interfaces not creating up..
>
>
> Hello all,
>
>
> When i ran "mvn ejb:ejb"  its just packages my class files into jar
> without creating any remote/home interfaces!!! my understanding on this
> plugin is it should create those interfaces am i wrong?
>
> If not could u plz sugest me what needs to be done to solve this err...
>
> Thanks,
>
> Kiran Kodlady
> --
> View this message in context:
> 
http://www.nabble.com/remote-home-interfaces-not-creating-up..-tf3906377s177.html#a11075309
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context: 
http://www.nabble.com/remote-home-interfaces-not-creating-up..-tf3906377s177.html#a11094869
Sent from the Maven - Users mailing list archive at Nabble.com.


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




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



maven-scm-plugin verbose

2007-06-13 Thread Jeff Mutonho

Is there some undocumented feature/way  to make maven-scm-plugin more
verbose during checkout and checkin?



--

"Don't take the name of root in vain."

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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



Adjust source-repository.html?

2007-06-13 Thread Wim Deblauwe

Hi,

Is there a way to adjust the source-repository.html page that gets generated
by maven-site-plugin? I would like to add a link to the fisheye instance on
that page. Is this possible?

regards,

Wim

--
Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
Blog: http://www.jroller.com/page/Fester


Re: xfire plugin question

2007-06-13 Thread Andrius Šabanas

Krystan Honour wrote:
Having now looked at this in a little more detail I realise that the 
package

being specified is that for the generated clients etc.

Thanks very much



BTW, if you need your generated schema classes to be in a specific 
package, then this depends on the binding type you use. I use JAXB2, so 
I have a bindings.xjb file:





http://java.sun.com/xml/ns/jaxb";
  xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
  node="/xsd:schema">


  

  



Unfortunately, the current 1.0-SNAPSHOT version does not have the 
necessary  configuration parameter (and some others), 
although it exists in XFire wsgen Ant task (which is wrapped by Maven 
plugin). I have built a customized version of the plugin that contains 
externalBindings parameter, but, being lazy as I am, I have not 
submitted the patch to Mojo JIRA yet... :-) So if there is interest, 
maybe I could do it...


Andrius


--
Andrius Šabanas
Pivot Capital Management UAB
Email: [EMAIL PROTECTED]
Phone: +370 5 2122563
http://www.pivotcapital.com

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



Re: Build schedule for only when subversion has changed

2007-06-13 Thread Cameron Jones

Thanks for the feedback everyone, much appreciated.

So, having a build triggered only by scm changes is currently not a
feature. Cool, but would be good. Emmanuel - from what i understand
from your post do you mean that continuum currently should not be
building a scheduled build if there are no modifications in the
repository? This isn't what i've been experiencing but is the
behaviour i'm looking for. I'm using version 1.0.3, has anyone else
seen this happen?

Thanks,
Cam

On 6/13/07, Emmanuel Venisse <[EMAIL PROTECTED]> wrote:

Continuum works like that by default

Emmanuel

Cameron Jones a écrit :
> Hey groupies,
>
> Quick question, and possibly a stupid one, but is there any way of
> specifying a build schedule which only fires when there have been
> changes in subversion aka an option i've used before in luntbuild and
> cruise control. this would be really useful for me as its a very small
> dev team and even nightly builds are unnecessary.
>
> Conversely from that, is it possible to configure a build schedule so
> that it doesn't fire if there have been no changes to subversion, ie a
> nightly build that will not re-build if everything is still the same?
>
> Thanks,
> Cam
>
>
>




Re: xfire plugin question

2007-06-13 Thread Krystan Honour

Thanks very much.

I soon realised that I didn't actually need to do this in this instance but
this is very helpful, thanks very much.


On 13/06/07, Andrius Šabanas <[EMAIL PROTECTED]> wrote:


Krystan Honour wrote:
> Hi there,
>
> I am writing a build file and in it I wish to generate webservice stubs
> using wsgen for xfire.
> I have two wsdl files I wish to generate from each of which I wish to
> specify a seperate package for.  I can however see no concrete way to
map
> invididual sets to different namespaces.
>
> My current config looks like this:
>
>
>>  
>> org.codehaus.mojo
>> xfire-maven-plugin
>> 1.0-SNAPSHOT
>> 
>> 
>> generate-sources
>> 
>> wsgen
>> 
>> 
>> 
>>
>> 
>> foo.bar
>> bar.foo
>>
>> 
>> 
>> 
>> ${project.build.directory
>> }/generated-sources/xfire
>> 
>>
>> ${basedir}/src/main/wsdl/service1.wsdl
>>
>> ${basedir}/src/main/wsdl/service2.wsdl
>> 
>> 
>> 
>>
> I was wondering if this is the correct way to do this, especially the
>  declarations.
>
>
> Regards
>
> Krys
>


Hello,

Try something like this - I did a quick test, and it seems to work nicely:



  org.codehaus.mojo
  xfire-maven-plugin
  1.0-SNAPSHOT

  
  
...
...
  

  


  
  exec1
  generate-sources
  
wsgen
  

  
  
foo.bar

  ${project.basedir}/src/main/wsdl/service1.wsdl


  




  
  exec2
  generate-sources
  
wsgen
  

  
  
baz.quux

  ${project.basedir}/src/main/wsdl/service2.wsdl


  


  




cheers,

Andrius

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




Re: Disabling Continnum URL

2007-06-13 Thread Napoleon Esmundo C. Ramirez

Hello Ashwin,

AFAIK, Continuum only wraps the ant project (wraps executing the project,
etc) and it doesn't look into the information in build.xml, so you still
need to provide the SCM url.

Cheers!
Nap

On 6/13/07, Ashwin E <[EMAIL PROTECTED]> wrote:



I'm using Ant with Continuum. I already have a CVS url specified in the
Ant
Build.xml, now I dont want to specify the url in Continuum. Can this be
done? is there anyway to prevent this happenning?
--
View this message in context:
http://www.nabble.com/Disabling-Continnum-URL-tf3913919.html#a11097070
Sent from the Continuum - Users mailing list archive at Nabble.com.




xfire plugin question

2007-06-13 Thread Krystan Honour

Having now looked at this in a little more detail I realise that the package
being specified is that for the generated clients etc.

Thanks very much


Re: xfire plugin question

2007-06-13 Thread Andrius Šabanas

Krystan Honour wrote:

Hi there,

I am writing a build file and in it I wish to generate webservice stubs
using wsgen for xfire.
I have two wsdl files I wish to generate from each of which I wish to
specify a seperate package for.  I can however see no concrete way to map
invididual sets to different namespaces.

My current config looks like this:



 
org.codehaus.mojo
xfire-maven-plugin
1.0-SNAPSHOT


generate-sources

wsgen





foo.bar
bar.foo




${project.build.directory
}/generated-sources/xfire

   
${basedir}/src/main/wsdl/service1.wsdl
   
${basedir}/src/main/wsdl/service2.wsdl






I was wondering if this is the correct way to do this, especially the
 declarations.


Regards

Krys




Hello,

Try something like this - I did a quick test, and it seems to work nicely:



  org.codehaus.mojo
  xfire-maven-plugin
  1.0-SNAPSHOT

  
  
...
...
  

  


  
  exec1
  generate-sources
  
wsgen
  

  
  
foo.bar

  ${project.basedir}/src/main/wsdl/service1.wsdl


  




  
  exec2
  generate-sources
  
wsgen
  

  
  
baz.quux

  ${project.basedir}/src/main/wsdl/service2.wsdl


  


  




cheers,

Andrius

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



Lifecycle Question

2007-06-13 Thread Jens Hohl
Hello,

 

when i only compile my multiproject which also contains an war module I
get an error when the WAR is module ist compiled that there are missing
dependencies.

Is that correct ? The war simply have to compile small amount of code
against already compiled sourcecode from other modules.

 

- jens 

 



Comprehensive list of packaging types?

2007-06-13 Thread Greg Thompson
Is there a complete list of packaging types?  I see a short list on 
http://maven.apache.org/plugins/index.html, but I imagine that there are 
other plugins that provide other kinds of packaging.


Is there a simple way to grep through the plugins in a repository to see 
what packaging they provide?


I ask partly out of curiosity, and partly because I have an ant-based 
"project" that generates a set of documents .  If I were to mavenize 
this, I imagine that the bundle of documents would be installed/deployed 
so that it would be available to other projects (which may create 
assemblies containing the documents along with bits and pieces of other 
projects/modules).  So what would I set the packaging to for this 
document project?

--
-Greg

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



Re: Unable to download artifact from internal repository

2007-06-13 Thread Jan Lisse

Hi Maria,

no they do match, i just forgot to change the id in both locations of my 
posting ;)

But i found the cause of my problem to be a SSLHandshakeException, because
the server sends a selfsigned certificate. After inserting the server 
certificate in the jdk's keystore
everything works fine now! It was trial and error because in the maven 
stacktrace the

root cause with the SSLHandshakeException was cut off...||

regards,
jan

Maria Odea Ching schrieb:

Hi,

Your repository id and server id does not match so maven couldn't get 
the username and password for the internal repository :)


-Deng

Jan Lisse wrote:

Hi,

In my pom.xml i have configured an internal repository to be used by 
maven:



   
 mycompany
 internal maven repository
 https://repo.mycompany.com/m2repo
   
 

and in my settings.xml i have configured the server information:



 neofonie
 user
 password
   


When building a project website with mvn site:site, maven tries to 
download a custom jar
with skin files. This jar resides on the internal repository. But 
maven somehow fails in downloading

the jar file. From the debug log:

Downloading: 
https://repo.mycompany.com/m2repo/com/mycompany/mycompany-maven-skin/1.0

/mycompany-maven-skin-1.0.jar
[DEBUG] Unable to get resource 
'com.mycompany:mycompany-maven-skin:jar:1.0' from re

pository mycompany (https://repo.mycompany.com/m2repo)

Manually downloading the jar file from the url works fine however. 
Running maven with -X or -e
options didn't show more information about what is going wrong. I 
would be glad for any help!


Regards,
Jan


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





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




--

Jan Lisse
F&E

neofonie GmbH
Robert-Koch-Platz 4
10115 Berlin
fon: +49.30 24627 533
fax: +49.30 24627 120

Handelsregister
Berlin-Charlottenburg: HRB 67460

Geschaeftsfuehrung
Helmut Hoffer von Ankershoffen
Nurhan Yildirim




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



Re: Unable to download artifact from internal repository

2007-06-13 Thread Maria Odea Ching

Hi,

Your repository id and server id does not match so maven couldn't get 
the username and password for the internal repository :)


-Deng

Jan Lisse wrote:

Hi,

In my pom.xml i have configured an internal repository to be used by 
maven:



   
 mycompany
 internal maven repository
 https://repo.mycompany.com/m2repo
   
 

and in my settings.xml i have configured the server information:



 neofonie
 user
 password
   


When building a project website with mvn site:site, maven tries to 
download a custom jar
with skin files. This jar resides on the internal repository. But 
maven somehow fails in downloading

the jar file. From the debug log:

Downloading: 
https://repo.mycompany.com/m2repo/com/mycompany/mycompany-maven-skin/1.0

/mycompany-maven-skin-1.0.jar
[DEBUG] Unable to get resource 
'com.mycompany:mycompany-maven-skin:jar:1.0' from re

pository mycompany (https://repo.mycompany.com/m2repo)

Manually downloading the jar file from the url works fine however. 
Running maven with -X or -e
options didn't show more information about what is going wrong. I 
would be glad for any help!


Regards,
Jan


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





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



RE: [POLL] maven-enforcer-plugin rules

2007-06-13 Thread Brian E. Fox
You declare the parameter as a variable in your rule impl and then
specify it in your plugin config. It works basically the same as for a
plugin.

-Original Message-
From: ehsavoie [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 13, 2007 5:30 AM
To: users@maven.apache.org
Subject: RE: [POLL] maven-enforcer-plugin rules


How do you pass a parameter to a rule ?
This way I should be able to provide it to you ;o)


Brian E. Fox wrote:
> 
> Sure, send it along.
> 
> --Brian 
> 
> -Original Message-
> From: ehsavoie [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 12, 2007 10:01 AM
> To: users@maven.apache.org
> Subject: Re: [POLL] maven-enforcer-plugin rules
> 
> 
> Hi,
> While the rule system provded is good for complex rules, I have found
> easier to build an enforcer like plugin using java expressions as
rules
> that are evaluated at runtime using beanshell.
> I have not enough time to port it to your rule system but i can send
it
> to you if you feel interested. 
> It gives an easy way to produce simple rules.
> Emmanuel
> 
> 
> Brian E. Fox wrote:
>> 
>> The maven-enforcer-plugin jira project has been suspiciously 
>> quiet...not that I'm complaining.  I'm curious how many people are 
>> using it, which rules are being used,  and if any custom rules have 
>> been created (and what they do).
>> 
>>  
>> 
>> If you have a custom rule that you want to share, please create an 
>> issue at http://jira.codehaus.org/browse/MENFORCER
>> 
>>  
>> 
>>  
>> 
>> Thanks.
>> 
>>  
>> 
>> --Brian
>> 
>> 
>> 
> 
> --
> View this message in context:
>
http://www.nabble.com/-POLL--maven-enforcer-plugin-rules-tf3905191s177.h
> tml#a11079340
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/-POLL--maven-enforcer-plugin-rules-tf3905191s177.h
tml#a11095917
Sent from the Maven - Users mailing list archive at Nabble.com.


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


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



RE: [POLL] maven-enforcer-plugin rules

2007-06-13 Thread Brian E. Fox
Yes of course, can't you read my mind? ;-)

-Original Message-
From: Jerome Lacoste [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 13, 2007 3:44 AM
To: Maven Users List
Subject: Re: [POLL] maven-enforcer-plugin rules

On 6/12/07, Brian E. Fox <[EMAIL PROTECTED]> wrote:
> I don't see why it could be rolled into a new rule. Call it the
> beanshell rule or something.

you meant "I don't see why it couldn't be rolled into a new rule", right
?

:)

J

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



redirection error

2007-06-13 Thread kpn

Hello,

I installed archiva-1.0-alpha-1 on SuSE 10.1 (2.6.16.27-0.9-default).
I run Archiva Standalone like this
archiva-1.0-alpha-1/bin/linux-x86-32> ./run.sh console

and use Firefox 2.0.0.2

I can create Admin user. But after pressing the "Create Admin" Button
attached error occures.

http://www.nabble.com/file/p11097491/redirection_error.jpg 

The URL is: http://localhost:8080/archiva/admin/addRepository!input.action

It is german and means something like: 
Error: redirection error
website redirects request in this way, that it can never resolved

Console output is:
jvm 1| 6425571 [SocketListener0-1] INFO
com.opensymphony.xwork.interceptor.Interceptor:configurationInterceptor - No
repositories exist - forwarding to repository configuration page
jvm 1| 6425583 [SocketListener0-0] INFO
com.opensymphony.xwork.interceptor.Interceptor:configurationInterceptor - No
repositories exist - forwarding to repository configuration page



If i try with IE  7, no error occures, but the browser tries to load the
requested page endless.

Thanks


-- 
View this message in context: 
http://www.nabble.com/redirection-error-tf3914068.html#a11097491
Sent from the archiva-users mailing list archive at Nabble.com.



Re: Using profiles in a webapp

2007-06-13 Thread Arnaud Bailly
aemm <[EMAIL PROTECTED]> writes:

> Hi! I'm a newbie in the utilization of Maven. 
>
> I'm developing a webapp (with Spring) and I want to include profiles in my
> app. This profiles will change de jdbc connection settings depending on
> which profile I select.
>
> Let's explain my problem.
>
> I have jdbc.properties in ${project.root}\src\main\webapp\WEB-INF,
> and looks

You need to configure the maven-war-plugin to do filtering and files
in src/main/webapp are not filtered. 

http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html

BTW, this is not profile-specfic.
HTH
-- 
OQube < software engineering \ génie logiciel >
Arnaud Bailly, Dr.
\web> http://www.oqube.com


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



Unable to download artifact from internal repository

2007-06-13 Thread Jan Lisse

Hi,

In my pom.xml i have configured an internal repository to be used by maven:


   
 mycompany
 internal maven repository
 https://repo.mycompany.com/m2repo
   
 

and in my settings.xml i have configured the server information:



 neofonie
 user
 password
   


When building a project website with mvn site:site, maven tries to 
download a custom jar
with skin files. This jar resides on the internal repository. But maven 
somehow fails in downloading

the jar file. From the debug log:

Downloading: 
https://repo.mycompany.com/m2repo/com/mycompany/mycompany-maven-skin/1.0

/mycompany-maven-skin-1.0.jar
[DEBUG] Unable to get resource 
'com.mycompany:mycompany-maven-skin:jar:1.0' from re

pository mycompany (https://repo.mycompany.com/m2repo)

Manually downloading the jar file from the url works fine however. 
Running maven with -X or -e
options didn't show more information about what is going wrong. I would 
be glad for any help!


Regards,
Jan


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



xfire plugin question

2007-06-13 Thread Krystan Honour

Hi there,

I am writing a build file and in it I wish to generate webservice stubs
using wsgen for xfire.
I have two wsdl files I wish to generate from each of which I wish to
specify a seperate package for.  I can however see no concrete way to map
invididual sets to different namespaces.

My current config looks like this:



 
org.codehaus.mojo
xfire-maven-plugin
1.0-SNAPSHOT


generate-sources

wsgen





foo.bar
bar.foo




${project.build.directory
}/generated-sources/xfire

   ${basedir}/src/main/wsdl/service1.wsdl
   ${basedir}/src/main/wsdl/service2.wsdl





I was wondering if this is the correct way to do this, especially the
 declarations.


Regards

Krys


Anyone used the NAR plugin for native code ?

2007-06-13 Thread Arne Styve
Hi,
 
I'm currently looking into the NAR plugin from the FreeHEP site
(http://java.freehep.org/freehep-nar-plugin/), and have some questions
regarding the use of this plugin.
I'm building a JNI-library from a Java class, on a x86-Windows platform.
 
Currently I have two issues:
 
1. When I use Microsoft C++ compiler and linker (msvc), I can build my
project from the Visual Studio 2005 commandline window, but not from any
command window, neither from within the Netbeans (v5.5.1) IDE I'm using.
Any ideas why ?
 
2. When I use the g++ compiler, the NAR-plugin doesn't seem to find the
C++ source file to compile. I get "0 total files to be compiled":
 
[INFO] [freehep-nar:nar-javah]
[INFO] Running javah compiler on 1 classes...
[INFO] [freehep-nar:nar-compile]
[INFO] Project base dir set to: C:\Documents and
Settings\asty\Skrivebord\linemodel
[INFO] 0 total files to be compiled.
[INFO] Starting link (3.4.4 -shared -lstdc++ -shared-libgcc)
[INFO] gcc -shared -o liblinemodel-1.0-SNAPSHOT.so -lstdc++
-shared-libgcc
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
 
 
Finally, my C++ implementation of the JNI library is dependent on a
third party DLL (or LIB) not found in any repository. Where in the
directorystructure should I place this DLL (or LIB) for the C++ linker
to find it and include it ?
 
Regards
Arne


Re: maven release:perform error finding maven-javadoc-plugin

2007-06-13 Thread Thorsten Heit
Hi,

> Thank you for the reply.
> 
> But I do not have reference to it in any of the other pom files of my
> application.
> 
> In case there is an implicit reference- how would I identify it? 

Have you tried "mvn -e -X ..."? Perhaps this will already give you the answer 
where the snapshot version is referenced...


> If identified, how can I force it use the correct version?

You can configure the plugin version to use in your pom.xml. Example:


  

  
org.apache.maven.plugins
maven-javadoc-plugin
2.2

  
attach-source

  jar

  

  

  



HTH

Thorsten

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



RE: [POLL] maven-enforcer-plugin rules

2007-06-13 Thread ehsavoie

How do you pass a parameter to a rule ?
This way I should be able to provide it to you ;o)


Brian E. Fox wrote:
> 
> Sure, send it along.
> 
> --Brian 
> 
> -Original Message-
> From: ehsavoie [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 12, 2007 10:01 AM
> To: users@maven.apache.org
> Subject: Re: [POLL] maven-enforcer-plugin rules
> 
> 
> Hi,
> While the rule system provded is good for complex rules, I have found
> easier to build an enforcer like plugin using java expressions as rules
> that are evaluated at runtime using beanshell.
> I have not enough time to port it to your rule system but i can send it
> to you if you feel interested. 
> It gives an easy way to produce simple rules.
> Emmanuel
> 
> 
> Brian E. Fox wrote:
>> 
>> The maven-enforcer-plugin jira project has been suspiciously 
>> quiet...not that I'm complaining.  I'm curious how many people are 
>> using it, which rules are being used,  and if any custom rules have 
>> been created (and what they do).
>> 
>>  
>> 
>> If you have a custom rule that you want to share, please create an 
>> issue at http://jira.codehaus.org/browse/MENFORCER
>> 
>>  
>> 
>>  
>> 
>> Thanks.
>> 
>>  
>> 
>> --Brian
>> 
>> 
>> 
> 
> --
> View this message in context:
> http://www.nabble.com/-POLL--maven-enforcer-plugin-rules-tf3905191s177.h
> tml#a11079340
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-POLL--maven-enforcer-plugin-rules-tf3905191s177.html#a11095917
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Ant task executing twice

2007-06-13 Thread Jeff Mutonho

I have an ant task that is suppose to run in the "process-resources"
phase.The configuration is :


  maven-antrun-plugin
   
   
   process-resources

 
 
 
  

 
 
 
 
  run
 

   
  
--

When I run "mvn install"  , the output shows the ant task executing
twice as seen below :

---
[INFO] Building Portal :: Functional Tests
[INFO]task-segment: [install]
[INFO] 
---
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
[copy] Copying 1 file to D:\CONTINUUM-BUILDS\continuum\working-directory\8
\portal-functional-tests\target\checkout
[INFO] Executed tasks
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
[copy] Copying 1 file to D:\CONTINUUM-BUILDS\continuum\working-directory\8
\portal-functional-tests\target\checkout
[INFO] Executed tasks
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing D:\CONTINUUM-BUILDS\continuum\working-directory\86\portal-fu
ctional-tests\pom.xml to D:\Documents and Settings\mutonhj\.m2\repository\za\co\
pragmaticus\portal\portal-functional-tests\1.0.0\portal-functional-tests-1.0.0.pom

[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 3 seconds
[INFO] Finished at: Wed Jun 13 11:15:15 CAT 2007
[INFO] Final Memory: 5M/508M






"Don't take the name of root in vain."

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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



Re: New User

2007-06-13 Thread Vanja Petreski

Hi,

http://maven.apache.org/
http://www.mergere.com/m2book_download.jsp
http://www.sonatype.com/book/index.html
http://en.wikipedia.org/wiki/XML
http://www.google.com

Vanja


On 6/13/07, Choudhary, Jay <[EMAIL PROTECTED]> wrote:


Dear All

I am new user of Maven and CruiseControl, I would appreciate if any one
could help me in understanding how Maven works and is configured. I don
not have very good knowledge of xml scripting

Regards
-Jay

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




Using profiles in a webapp

2007-06-13 Thread aemm

Hi! I'm a newbie in the utilization of Maven. 

I'm developing a webapp (with Spring) and I want to include profiles in my
app. This profiles will change de jdbc connection settings depending on
which profile I select.

Let's explain my problem.

I have jdbc.properties in ${project.root}\src\main\webapp\WEB-INF, and looks
like that

-
jdbc.driverClassName=oracle.jdbc.driver.OracleDriver
jdbc.url=${jdbc.url}
jdbc.username=${jdbc.username}
jdbc.password=${jdbc.password}

hibernate.dialect=${jdbc.dialect}
-

When I deploy the application (make de war file with the "package" option)
the profile don't convert the labels in this file to the corresponding
values.

Anybody can help me?

Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/Using-profiles-in-a-webapp-tf3913491s177.html#a11095685
Sent from the Maven - Users mailing list archive at Nabble.com.


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



AW: won't build compile java 5 sources ...

2007-06-13 Thread Jens Hohl
Try it like this:




org.apache.maven.plugins
maven-compiler-plugin

1.5
1.5
128m
512m   


Yourproject
Yourproject

  





-Ursprüngliche Nachricht-
Von: Giovanni Azua [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 12. Juni 2007 22:53
An: users@maven.apache.org
Betreff: won't build compile java 5 sources ...

Hi,

 

I have the following pom.xml snippet:

 



 java/

 java-test/

  

 

But the code does not compile because it is set to

-source 1.3 instead of -source 1.5 I cant find where to set this? 

Help! 

 

Such detail that will make the code compile in 1.5 is 

impossible to find in the current documentation?

 

TIA,

 

Regards,

Giovanni 

 



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



New User

2007-06-13 Thread Choudhary, Jay
Dear All

I am new user of Maven and CruiseControl, I would appreciate if any one
could help me in understanding how Maven works and is configured. I don
not have very good knowledge of xml scripting

Regards
-Jay

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



Re: AW: remote/home interfaces not creating up..

2007-06-13 Thread Kiran Kodlady

Thanks for response..
but i am into migration of existing ant scripts to Maven scripts. So Using
xdoclet i all classes is not achievable..
Could u suggest me any alternative step for creating home/remote interfaces


Thanks,

Kiran Kodlady

Jens Hohl wrote:
> 
> For this you should use XDoclet!
> 
> - Jens 
> 
> -Ursprüngliche Nachricht-
> Von: Kiran Kodlady [mailto:[EMAIL PROTECTED] 
> Gesendet: Dienstag, 12. Juni 2007 10:55
> An: users@maven.apache.org
> Betreff: remote/home interfaces not creating up..
> 
> 
> Hello all,
> 
> 
> When i ran "mvn ejb:ejb"  its just packages my class files into jar 
> without creating any remote/home interfaces!!! my understanding on this 
> plugin is it should create those interfaces am i wrong?
> 
> If not could u plz sugest me what needs to be done to solve this err...
> 
> Thanks,
> 
> Kiran Kodlady
> -- 
> View this message in context:
> http://www.nabble.com/remote-home-interfaces-not-creating-up..-tf3906377s177.html#a11075309
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/remote-home-interfaces-not-creating-up..-tf3906377s177.html#a11094869
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: Passing a maven profile to Continuum

2007-06-13 Thread Jeff Mutonho

On 6/13/07, Emmanuel Venisse <[EMAIL PROTECTED]> wrote:

The continuum ML is [EMAIL PROTECTED]


Thanks. I noticed immediately after sending :)



Edit the build definition of your project
Checnge the golas list by adding your profile: "clean install site-deploy 
-Pprofile_id"

Where is declared your profiles?


The declared profiles are  in my projects top level pom.xml file




Jeff Mutonho a écrit :
> I'm posting this to both the maven and continuum forum.
> How do I specify  a maven profile to continuum  , using continuum's
> project configuration.
> Currently my Goals are specified as "clean install site-deploy"   , in
> the continuum project configuration.
>
>
>
>


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





--

"Don't take the name of root in vain."

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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



Re: [M2] Adding 3rd party files to repository

2007-06-13 Thread Maria Odea Ching

You can use 'install:install-file' for adding these jars in your local repo:
http://maven.apache.org/plugins/maven-install-plugin/usage.html

For adding them in your corporate internal repo, you can use 
'deploy:deploy-file' instead:

http://maven.apache.org/plugins/maven-deploy-plugin/usage.html

-Deng

Orford, Ian wrote:

Are there any utilities that I can use to add 3rd party jars to our
corporate internal repository, or even my local repository?

At the moment, I accomplish this by adding it to a legacy maven1 repo
since no pom.xml is required. I'm looking for a way to add this to a
maven 2 repo such that it creates a default no-dependency pom and the
md5/sha1 files.

Thanks in advance,
Ian Orford.


--
This e-mail is confidential and the information contained in it may be 
privileged.  It should not be read, copied or used by anyone other than the 
intended recipient.  If you have received it in error, please contact the 
sender immediately by telephoning +44 (0)20 7623 8000 or by return email, and 
delete the e-mail and do not disclose its contents to any person.  We believe, 
but do not warrant, that this e-mail and any attachments are virus free, but 
you must take full responsibility for virus checking.  Please refer to 
http://www.dresdnerkleinwort.com/disc/email/ and read our e-mail disclaimer 
statement and monitoring policy.

Dresdner Kleinwort is the trading name of the investment banking division of 
Dresdner Bank AG, and operates through Dresdner Bank AG, Dresdner Kleinwort 
Limited, Dresdner Kleinwort Securities Limited and their affiliated or 
associated companies.  Dresdner Bank AG is a company incorporated in Germany 
with limited liability and registered in England (registered no. FC007638, 
place of business 30 Gresham Street, London EC2V 7PG), and is authorised by the 
German Federal Financial Supervisory Authority and by the Financial Services 
Authority ('FSA') and regulated by the FSA for the conduct of designated 
business in the UK.  Dresdner Kleinwort Limited is a company incorporated in 
England (registered no. 551334, registered office 30 Gresham Street, London 
EC2V 7PG), and is authorised and regulated by the FSA.  Dresdner Kleinwort 
Securities Limited is a company incorporated in England (registered no. 
1767419, registered office 30 Gresham Street, London EC2V 7PG), and is 
authorised and regulated by the FSA.


  




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



Re: Passing a maven profile to Continuum

2007-06-13 Thread Emmanuel Venisse

The continuum ML is [EMAIL PROTECTED]

Edit the build definition of your project
Checnge the golas list by adding your profile: "clean install site-deploy 
-Pprofile_id"

Where is declared your profiles?

Emmanuel

Jeff Mutonho a écrit :

I'm posting this to both the maven and continuum forum.
How do I specify  a maven profile to continuum  , using continuum's
project configuration.
Currently my Goals are specified as "clean install site-deploy"   , in
the continuum project configuration.







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



Passing a maven profile to Continuum

2007-06-13 Thread Jeff Mutonho

I'm posting this to both the maven and continuum forum.
How do I specify  a maven profile to continuum  , using continuum's
project configuration.
Currently my Goals are specified as "clean install site-deploy"   , in
the continuum project configuration.




--

"Don't take the name of root in vain."

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042


Passing a maven profile to Continuum

2007-06-13 Thread Jeff Mutonho

I'm posting this to both the maven and continuum forum.
How do I specify  a maven profile to continuum  , using continuum's
project configuration.
Currently my Goals are specified as "clean install site-deploy"   , in
the continuum project configuration.




--

"Don't take the name of root in vain."

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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



[M2] Adding 3rd party files to repository

2007-06-13 Thread Orford, Ian
Are there any utilities that I can use to add 3rd party jars to our
corporate internal repository, or even my local repository?

At the moment, I accomplish this by adding it to a legacy maven1 repo
since no pom.xml is required. I'm looking for a way to add this to a
maven 2 repo such that it creates a default no-dependency pom and the
md5/sha1 files.

Thanks in advance,
Ian Orford.


--
This e-mail is confidential and the information contained in it may be 
privileged.  It should not be read, copied or used by anyone other than the 
intended recipient.  If you have received it in error, please contact the 
sender immediately by telephoning +44 (0)20 7623 8000 or by return email, and 
delete the e-mail and do not disclose its contents to any person.  We believe, 
but do not warrant, that this e-mail and any attachments are virus free, but 
you must take full responsibility for virus checking.  Please refer to 
http://www.dresdnerkleinwort.com/disc/email/ and read our e-mail disclaimer 
statement and monitoring policy.

Dresdner Kleinwort is the trading name of the investment banking division of 
Dresdner Bank AG, and operates through Dresdner Bank AG, Dresdner Kleinwort 
Limited, Dresdner Kleinwort Securities Limited and their affiliated or 
associated companies.  Dresdner Bank AG is a company incorporated in Germany 
with limited liability and registered in England (registered no. FC007638, 
place of business 30 Gresham Street, London EC2V 7PG), and is authorised by the 
German Federal Financial Supervisory Authority and by the Financial Services 
Authority ('FSA') and regulated by the FSA for the conduct of designated 
business in the UK.  Dresdner Kleinwort Limited is a company incorporated in 
England (registered no. 551334, registered office 30 Gresham Street, London 
EC2V 7PG), and is authorised and regulated by the FSA.  Dresdner Kleinwort 
Securities Limited is a company incorporated in England (registered no. 
1767419, registered office 30 Gresham Street, London EC2V 7PG), and is 
authorised and regulated by the FSA.



Re: Build schedule for only when subversion has changed

2007-06-13 Thread Emmanuel Venisse

Continuum works like that by default

Emmanuel

Cameron Jones a écrit :

Hey groupies,

Quick question, and possibly a stupid one, but is there any way of
specifying a build schedule which only fires when there have been
changes in subversion aka an option i've used before in luntbuild and
cruise control. this would be really useful for me as its a very small
dev team and even nightly builds are unnecessary.

Conversely from that, is it possible to configure a build schedule so
that it doesn't fire if there have been no changes to subversion, ie a
nightly build that will not re-build if everything is still the same?

Thanks,
Cam







Re: [POLL] maven-enforcer-plugin rules

2007-06-13 Thread Jerome Lacoste

On 6/12/07, Brian E. Fox <[EMAIL PROTECTED]> wrote:

I don't see why it could be rolled into a new rule. Call it the
beanshell rule or something.


you meant "I don't see why it couldn't be rolled into a new rule", right ?

:)

J

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



Re: Continuum ignores global settings.xml when you add a m2 project

2007-06-13 Thread Emmanuel Venisse

Continuum use the one under ~/.m2/ and an other under the continuum install dir 
(the path is printed in logs)

When Continuum profiles will be there, we'll look at the one under maven/conf/

Emmanuel

Wendy Smoak a écrit :

On the build server, I added repositories to maven/conf/settings.xml
and did *not* have ~/.m2/settings.xml for the user running Continuum.
(It's 1.1, not sure of the exact revision.)

When I tried to add a project to Continuum, it complained that the
parent was not available.  Looking in the logs, it only checked
central, not any of the (internal) repos I had added to the global
settings file.

Once I copied it to ~/.m2/settings.xml, Continuum was happy.

Is there a reason Continuum should ignore the global settings file in
$M2_HOME/conf ?





RE: Inteference between multiple plugins with extensions

2007-06-13 Thread Peter Nilsson
Renaming the packagings that conflict is probably the short-term workaround we 
will have to use. I like your way of setting all lifecycle mappings in a new 
project and not specify the existing plugins as extensions. That way I don't 
have to modify any third party plugins.

When browsing around JIRA I find multiple issues that seem the address the same 
or a similar problem, eg http://jira.codehaus.org/browse/MNG-1949
So I guess it is a well known issue.

Peter

-Original Message-
From: Tom Huybrechts [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 12, 2007 5:15 PM
To: Maven Users List
Subject: Re: Inteference between multiple plugins with extensions

I've had a problem using different extension plugins that contribute a
lifecycle in one multi-module project. My workaround has been to copy
the contents of the components.xml for each lifecycle I need into a
single separate maven-lifecycle-plugin. I only specify this plugin as
an extension, and that fixes it for me.

If you have the same packaging name mapped several times, you might
need to give it different names.

Tom

On 6/12/07, Peter Nilsson <[EMAIL PROTECTED]> wrote:
> Hi,
>
> We are using Maven 2.0.6 to build both Java, C++ and C#.
> C++ is built with the help of maven-native-plugin and C# with NMaven.
>
> Our project tree has the following structure:
>
>Top
>   Cpp
>  Project_A
>  Project_B
>   CS
>  Project_C
>  Project_D
>
> The problem we encounter is that while C# and C++ builds work fine on their 
> own it will fail if the same build command tries to build both C++ and C#.
> Ie, running "mvn install" in project "Cpp" or "CS" works but not doing it in 
> project "Top".
>
> One hypothesis we have is that the components.xml files in the 
> maven-native-plugin and NMaven plugins map the same packaging but to 
> different goals and for some reason these mappings interfere with each other 
> even though the plugins are not being used in the same project.
> Project_A and Project_B in the example above only use the maven-native-plugin 
> while Project_C and Project_D only use NMaven plugins.
>
> Can anybody confirm that the declared lifecycle mappings (in components.xml) 
> for one plugin can have effect outside of the projects where this plugin is 
> being used?
>
> If this is the case, is this a known bug? Is there any workaround?
>
> TIA,
>
> Peter
>
>
>
> 
> This e-mail is confidential and may contain legally privileged information. 
> It is intended only for the addressees. If you have received this e-mail in 
> error, kindly notify us immediately by telephone or e-mail and delete the 
> message from your system.
>

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