Re: Mevenide problem with eclipse 3.1M6

2005-05-06 Thread Martin Jäger
The same problem (display of tabs) here...
Regards Martin
Michael wrote:
I just installed mevenide today on Windows XP Pro with Eclipse 3.1M6
and Java 5.  I used
http://mevenide.codehaus.org/release/eclipse/update/site.xml.
Just to make sure, do you have a proxy server on your network?  If so,
you'll need to set up the proxy in Eclipse.
I haven't had much luck with the plugin unfortunately.  While it
installs no problem and I have menus, I haven't been able to get POM
synchronization working and the registeded editor for POM files
displays every tab in some corrupted view.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Mevenide problem with eclipse 3.1M6

2005-05-06 Thread Thomas Van de Velde
In that case I'd log it in JIRA (I had a similar problem when 3.0 first came 
out; at time they pointed me to the aforementioned link)

On 5/6/05, Martin Jäger [EMAIL PROTECTED] wrote:
 
 The same problem (display of tabs) here...
 
 Regards Martin
 
 
 Michael wrote:
  I just installed mevenide today on Windows XP Pro with Eclipse 3.1M6
  and Java 5. I used
  http://mevenide.codehaus.org/release/eclipse/update/site.xml.
 
  Just to make sure, do you have a proxy server on your network? If so,
  you'll need to set up the proxy in Eclipse.
 
  I haven't had much luck with the plugin unfortunately. While it
  installs no problem and I have menus, I haven't been able to get POM
  synchronization working and the registeded editor for POM files
  displays every tab in some corrupted view.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



RE: [m2] svn access

2005-05-06 Thread Simon Matic Langford
thanks,

I managed to fix it by using https instead of http, then it goes
whistling
straight through the proxy.

simon
 

 -Original Message-
 From: Anatol Pomozov [mailto:[EMAIL PROTECTED] 
 Sent: 05 May 2005 20:29
 To: Maven Users List
 Subject: Re: [m2] svn access
 
 
 Your proxy does not allow PROPFIND http method. Ask your administrator
 to configure proxy server.
 
 On 5/5/05, Simon Matic Langford [EMAIL PROTECTED] wrote:
  hi,
  
  I tried to guess the svn url from the maven 1 instructions and the
  viewcvs link as: 
 http://svn.apache.org/repos/asf/maven/componen ts/trunk
  
  
 but it doesn't seem to work, any ideas?
  
  
 F:\m2-svnsvn co 
 http://svn.apache.org/repos/asf/maven/componen ts/trunk
  
 maven/components/trunk
  svn: PROPFIND request 
 failed on '/repos/asf/maven/components/trunk'
  svn: PROPFIND of '/repos/asf/maven/components/trunk': Could not read
  status line: An existing connection was forcibly closed by 
 the remote
  host.   (http://svn.apache.org)
  
  thanks
  
  simon
  
  The information contained in this e-mail is intended only 
 for the person
  or
  entity to which it is addressed and may contain confidential and/or
  privileged material. If You are not the intended recipient of this
  e-mail,
  the use of this information or any disclosure, copying or 
 distribution
  is
  Prohibited and may be unlawful. If you received this in 
 error, please
  contact the sender and delete the material from any 
 computer. The views
  expressed in this e-mail may not necessarily be the views 
 of The PCMS
  Group
  plc and should not be taken as authority to carry out any 
 instruction
  contained.
  
  
 
 
 -- 
 anatol
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



M2 project descriptor resource element

2005-05-06 Thread Hugo Palma
I'm trying to reference a resource like i did in Maven 1 using the 
resource element like this:

resource
   directorysrc/test/otherResources/directory
   includes
   include*.xml/include
  /includes
/resource
But it seems that in Maven 2 the only child element resource accepts 
is the targetPath element.
What about the source path ? What about the includes and excludes ? I've 
tried doing that Maven 1 way but i get an error from the pom parser.

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


Error parsing project.xml

2005-05-06 Thread Philipp Gasser
Hello everybody,

today I tried to make a java-update (1.4.1 - 1.4.2). With this update i got
some errors within my maven-projects:

org.apache.maven.MavenException: Error parsing project.xml
'C:\CVSData\ddp\common-project.xml'
at
org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:208)
at
org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:232)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:144)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:123)
at
org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:235)
at org.apache.maven.MavenSession.initialize(MavenSession.java:175)
at org.apache.maven.cli.App.doMain(App.java:473)
at org.apache.maven.cli.App.main(App.java:1215)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)



I have got a bigger multiproject.

Maven: Version 1.0
Java Version WORKING: 1.4.1_07
Java Version Produces this ERROR: 1.4.2_08

SubProject - project.xml:
--
?xml version=1.0?
!DOCTYPE project [
  !ENTITY % index SYSTEM file:index.ent %index;
]


project
  extend${basedir}/../../../common-project.xml/extend

  nameconverter API/name

  groupIdddp-id;/groupId
  idconvertor-api-id;/id
  currentVersionconvertor-api-version;/currentVersion
  
  description



Multiproject - commons-project.xml

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE project [
  !ENTITY % index SYSTEM versions.ent %index;
]

project

  pomVersion3/pomVersion



I have no idea how to find the bad situation, within these
project.xml-files.

Any idea???

Thanks
Phil

-- 
+++ Neu: Echte DSL-Flatrates von GMX - Surfen ohne Limits +++
Always online ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

-- 
+++ Neu: Echte DSL-Flatrates von GMX - Surfen ohne Limits +++
Always online ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

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



Re: Error parsing project.xml

2005-05-06 Thread Kenney Westerhof
On Fri, 6 May 2005, Philipp Gasser wrote:

It might have something to do with the ENTITY definition. POMs should be
contained in 1 file, using several files (like entity files) is
discouraged, I believe.

Either don't use entities; (fill in the real values) or try to define
the entities in the project file itself, see if that helps.

Greetings,

Kenney Westerhof

 Hello everybody,

 today I tried to make a java-update (1.4.1 - 1.4.2). With this update i got
 some errors within my maven-projects:

 org.apache.maven.MavenException: Error parsing project.xml
 'C:\CVSData\ddp\common-project.xml'
 at
 org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:208)
 at
 org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:232)
 at org.apache.maven.MavenUtils.getProject(MavenUtils.java:144)
 at org.apache.maven.MavenUtils.getProject(MavenUtils.java:123)
 at
 org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:235)
 at org.apache.maven.MavenSession.initialize(MavenSession.java:175)
 at org.apache.maven.cli.App.doMain(App.java:473)
 at org.apache.maven.cli.App.main(App.java:1215)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at com.werken.forehead.Forehead.run(Forehead.java:551)
 at com.werken.forehead.Forehead.main(Forehead.java:581)



 I have got a bigger multiproject.

 Maven: Version 1.0
 Java Version WORKING: 1.4.1_07
 Java Version Produces this ERROR: 1.4.2_08

 SubProject - project.xml:
 --
 ?xml version=1.0?
 !DOCTYPE project [
   !ENTITY % index SYSTEM file:index.ent %index;
 ]


 project
   extend${basedir}/../../../common-project.xml/extend

   nameconverter API/name

   groupIdddp-id;/groupId
   idconvertor-api-id;/id
   currentVersionconvertor-api-version;/currentVersion

   description
 


 Multiproject - commons-project.xml
 
 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE project [
   !ENTITY % index SYSTEM versions.ent %index;
 ]

 project

   pomVersion3/pomVersion
 


 I have no idea how to find the bad situation, within these
 project.xml-files.

 Any idea???

 Thanks
 Phil

 --
 +++ Neu: Echte DSL-Flatrates von GMX - Surfen ohne Limits +++
 Always online ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

 --
 +++ Neu: Echte DSL-Flatrates von GMX - Surfen ohne Limits +++
 Always online ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

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


--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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



Re: M2 project descriptor resource element

2005-05-06 Thread Brett Porter
On 5/6/05, Hugo Palma [EMAIL PROTECTED] wrote:
 I'm trying to reference a resource like i did in Maven 1 using the
 resource element like this:
 
 resource
 directorysrc/test/otherResources/directory
 includes
 include*.xml/include
/includes
 /resource

nested inside resources / inside build/ this should work.

 But it seems that in Maven 2 the only child element resource accepts
 is the targetPath element.

Where did you get that information from... is there an error in the
docs? targetPath is the only one not allowed in m2 :)

Cheers,
Brett

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



Re: Multiproject builds orderring

2005-05-06 Thread Steve Molloy
You could also set a dummy dependency between the 2 projects. Even if
it's not actually used, it will provide your ordering. I know I used it
for multi-level project trees, where I had, for instance, 3 components
part of a core project, another 2 part of UI. So even if the UI project
didn't actually depend on the core one (neither actually had code, just
sub-projects), I had a dependency which ended up deploying an empty jar
to our local repository but made sure that UI was always built after
core...

Steve

On Thu, 2005-05-05 at 21:35 -0700, dan tran wrote:

 I asked for it eh?
 
 Any how, I took a look at the code involved, it is deep in ant's
 DirectoryScanner.
 Using maven.multiproject.includes is not fit.
 
 I settle for some jelly in maven.xml ;-)
 
 Thanks for the offer.
 
 -D
 
 
 
 On 5/5/05, Brett Porter [EMAIL PROTECTED] wrote:
  You can request it :)
  
  If you want to provide a patch for 1.1 I'd be happy to apply it.
  
  - Brett
  
  On 5/6/05, dan tran [EMAIL PROTECTED] wrote:
   actually, it does not have any orderring.  Just the  matter of which
   one shows up first in the directory list ;-)
  
   Can I request this feature?  I am current using multiproejct plugin 
   (reactor) to
   run one of my build systems which does not take advantage of maven's
   dependencies. (sorry, just cant)
  
   The orderring can be specified in maven.multiproject.includes.
  
   -D
  
  
   On 5/5/05, dan tran [EMAIL PROTECTED] wrote:
Thanks Brett, It  runs on the reverse alphabetical order
ie tree2 got called first ;-)
   
-Dan
   
   
On 5/5/05, Brett Porter [EMAIL PROTECTED] wrote:
 currently it is alphabetical.

 - Brett

 On 5/6/05, dan tran [EMAIL PROTECTED] wrote:
  Hello,
 
  I have 2 sub trees,  both does not depend on each other.
 
root/
 
tree1/
 
tree2/
 
  Can I make multiproject to build a specific tree first?
 
  -Dan
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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


Re: M2 project descriptor resource element

2005-05-06 Thread Kenney Westerhof
On Fri, 6 May 2005, Brett Porter wrote:

 On 5/6/05, Hugo Palma [EMAIL PROTECTED] wrote:
  I'm trying to reference a resource like i did in Maven 1 using the
  resource element like this:
 
  resource
  directorysrc/test/otherResources/directory
  includes
  include*.xml/include
 /includes
  /resource

 nested inside resources / inside build/ this should work.

  But it seems that in Maven 2 the only child element resource accepts
  is the targetPath element.

 Where did you get that information from... is there an error in the
 docs? targetPath is the only one not allowed in m2 :)

Not according to Resource.java in maven-model :)

In addition to Brett, here's some more information, extracted from the
sources:

Resource (resource/) has an optional child targetPath/ element;
Resource extends FileSet which adds the directory/ element;
FileSet extends PatternSet which adds includes/ and excludes/ tags;

The includes and excludes are both List's, and are built by nested
include/ and exclude/ tags respectively. Pretty much maven1 style.

so the complete set will be:

project
  ...
  build
  ...
resources
  resource
directorysrc/main/resources/directory
targetPathwhatever//targetPath
includes
  include*.xcfg/include
/includes
excludes
  exclude*.example/exclude
/excludes
  /resource
/resources
  ...
  /build
  ...
/project

This is not clear in
http://maven.apache.org/maven2/project-descriptor.html (could use some
indenting and '/' in the ending tags for clarity, there).


--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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



RE: Error parsing project.xml

2005-05-06 Thread Jörg Schaible
Hi Philipp,

from where did you start Maven? Did you build the complete multi-project or 
only a single subproject?


Philipp Gasser wrote on Friday, May 06, 2005 2:13 PM:

[snip]

 SubProject - project.xml:
 --
 ?xml version=1.0?
 !DOCTYPE project [
   !ENTITY % index SYSTEM file:index.ent %index; ]


What's the content of your index.ent?


 project
   extend${basedir}/../../../common-project.xml/extend
 
   nameconverter API/name
 
   groupIdddp-id;/groupId
   idconvertor-api-id;/id
   currentVersionconvertor-api-version;/currentVersion
 
   description
 
 
 
 Multiproject - commons-project.xml
 
 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE project [
   !ENTITY % index SYSTEM versions.ent %index;
 ]


Why didn't you use fhe file: protocol here for the system entitiy ?


 project
 
   pomVersion3/pomVersion
 
 
 
 I have no idea how to find the bad situation, within these
 project.xml-files. 

[snip]

- Jörg

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



RE: Error parsing project.xml

2005-05-06 Thread Philipp Gasser
 Hi Philipp,
 
 from where did you start Maven? Did you build the complete multi-project
 or only a single subproject?
I've started it from a single subproject.
 
 
 Philipp Gasser wrote on Friday, May 06, 2005 2:13 PM:
 
 [snip]
 
  SubProject - project.xml:
  --
  ?xml version=1.0?
  !DOCTYPE project [
!ENTITY % index SYSTEM file:index.ent %index; ]
 
 
 What's the content of your index.ent?
!ENTITY % versions SYSTEM versions.ent
%versions;

the main version - file.

 
 
  project
extend${basedir}/../../../common-project.xml/extend
  
nameconverter API/name
  
groupIdddp-id;/groupId
idconvertor-api-id;/id
currentVersionconvertor-api-version;/currentVersion
  
description
  
  
  
  Multiproject - commons-project.xml
  
  ?xml version=1.0 encoding=ISO-8859-1?
  !DOCTYPE project [
!ENTITY % index SYSTEM versions.ent %index;
  ]
 
 
 Why didn't you use fhe file: protocol here for the system entitiy ?
 
 
  project
  
pomVersion3/pomVersion
  
  
  
  I have no idea how to find the bad situation, within these
  project.xml-files. 
 
 [snip]
 
 - Jörg
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
+++ Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS +++
GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail

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



Re: M2 project descriptor resource element

2005-05-06 Thread Hugo Palma
Still can't make it work.
I didn't mention in the first post but i'm using the testResources 
element as parent to resource.
So my pom looks like:


build
   testResources
   resources
   resource
   directorysrc/sql/directory
   targetPath${maven.build.dest}/targetPath
   /resource
   /resources
   /testResources
/build
and i've tried:
..
build
   testResources
   resource
   directorysrc/sql/directory
   targetPath${maven.build.dest}/targetPath
   /resource
   /testResources
/build

with no success. The error i get is:
org.apache.maven.reactor.ReactorException: Error processing projects for 
the rea
ctor:
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:117)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:233)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
   at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)

   at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
Caused by: org.apache.maven.project.ProjectBuildingException: Error 
while readin
g model from file 'C:\java\projectos\Digitalis\pom.xml'.
   at 
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default
MavenProjectBuilder.java:470)
   at 
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
le(DefaultMavenProjectBuilder.java:124)
   at 
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
nProjectBuilder.java:117)
   at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:266)
   at 
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:170)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:102)
   ... 9 more
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: 
TEXT must b
e immediately followed by END_TAG and not START_TAG (position: START_TAG 
seen ..
.resources\r\n\t\t\t\tresource... @144:15)
   at 
org.codehaus.plexus.util.xml.pull.MXParser.nextText(MXParser.java:105
9)
   at 
org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseBuild(MavenXpp3Re
ader.java:133)
   at 
org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Re
ader.java:886)
   at 
org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.j
ava:1660)
   at 
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:461)


Thanks for the help
Hugo

Kenney Westerhof wrote:
On Fri, 6 May 2005, Brett Porter wrote:
 

On 5/6/05, Hugo Palma [EMAIL PROTECTED] wrote:
   

I'm trying to reference a resource like i did in Maven 1 using the
resource element like this:
resource
   directorysrc/test/otherResources/directory
   includes
   include*.xml/include
  /includes
/resource
 

nested inside resources / inside build/ this should work.
   

But it seems that in Maven 2 the only child element resource accepts
is the targetPath element.
 

Where did you get that information from... is there an error in the
docs? targetPath is the only one not allowed in m2 :)
   

Not according to Resource.java in maven-model :)
In addition to Brett, here's some more information, extracted from the
sources:
Resource (resource/) has an optional child targetPath/ element;
Resource extends FileSet which adds the directory/ element;
FileSet extends PatternSet which adds includes/ and excludes/ tags;
The includes and excludes are both List's, and are built by nested
include/ and exclude/ tags respectively. Pretty much maven1 style.
so the complete set will be:
project
 ...
 build
 ...
   resources
 resource
   directorysrc/main/resources/directory
targetPathwhatever//targetPath
includes
  include*.xcfg/include
/includes
excludes
  exclude*.example/exclude
/excludes
 /resource
   /resources
 ...
 /build
 ...
/project
This is not clear in
http://maven.apache.org/maven2/project-descriptor.html (could use some
indenting and '/' in the ending tags for clarity, there).
--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: M2 project descriptor resource element

2005-05-06 Thread Kenney Westerhof
On Fri, 6 May 2005, Hugo Palma wrote:

 Still can't make it work.
 I didn't mention in the first post but i'm using the testResources
 element as parent to resource.
 So my pom looks like:

 
 build
 testResources
 resources
 resource
 directorysrc/sql/directory
 targetPath${maven.build.dest}/targetPath
 /resource
 /resources
 /testResources
 /build

That's the wrong one..


 and i've tried:
 ..
 build
 testResources
 resource
 directorysrc/sql/directory
 targetPath${maven.build.dest}/targetPath
 /resource
 /testResources
 /build

This seems correct. The stacktrace below however is for the first
configuration. What error do you get when you use the latter
configuration?


-- Kenney



 with no success. The error i get is:

 org.apache.maven.reactor.ReactorException: Error processing projects for
 the rea
 ctor:
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:117)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:233)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
 at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)

 at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
 Caused by: org.apache.maven.project.ProjectBuildingException: Error
 while readin
 g model from file 'C:\java\projectos\Digitalis\pom.xml'.
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default
 MavenProjectBuilder.java:470)
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
 le(DefaultMavenProjectBuilder.java:124)
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
 nProjectBuilder.java:117)
 at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:266)
 at
 org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:170)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:102)
 ... 9 more
 Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException:
 TEXT must b
 e immediately followed by END_TAG and not START_TAG (position: START_TAG
 seen ..
 .resources\r\n\t\t\t\tresource... @144:15)
 at
 org.codehaus.plexus.util.xml.pull.MXParser.nextText(MXParser.java:105
 9)
 at
 org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseBuild(MavenXpp3Re
 ader.java:133)
 at
 org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Re
 ader.java:886)
 at
 org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.j
 ava:1660)
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:461)



 Thanks for the help

 Hugo



 Kenney Westerhof wrote:

 On Fri, 6 May 2005, Brett Porter wrote:
 
 
 
 On 5/6/05, Hugo Palma [EMAIL PROTECTED] wrote:
 
 
 I'm trying to reference a resource like i did in Maven 1 using the
 resource element like this:
 
 resource
 directorysrc/test/otherResources/directory
 includes
 include*.xml/include
/includes
 /resource
 
 
 nested inside resources / inside build/ this should work.
 
 
 
 But it seems that in Maven 2 the only child element resource accepts
 is the targetPath element.
 
 
 Where did you get that information from... is there an error in the
 docs? targetPath is the only one not allowed in m2 :)
 
 
 
 Not according to Resource.java in maven-model :)
 
 In addition to Brett, here's some more information, extracted from the
 sources:
 
 Resource (resource/) has an optional child targetPath/ element;
 Resource extends FileSet which adds the directory/ element;
 FileSet extends PatternSet which adds includes/ and excludes/ tags;
 
 The includes and excludes are both List's, and are built by nested
 include/ and exclude/ tags respectively. Pretty much maven1 style.
 
 so the complete set will be:
 
 project
   ...
   build
   ...
 resources
   resource
 directorysrc/main/resources/directory
  targetPathwhatever//targetPath
  includes
include*.xcfg/include
  /includes
  excludes
exclude*.example/exclude
  /excludes
   /resource
 /resources
   ...
   /build
   ...
 /project
 
 This is not clear in
 http://maven.apache.org/maven2/project-descriptor.html (could use some
 indenting and '/' in the ending tags for clarity, there).
 
 
 --
 Kenney Westerhof
 

[M1] eclipse plugin: how to download sources?

2005-05-06 Thread Ralph Pöllath
Hi,
I just noticed that the eclipse plugin will add sourcepath-entries to  
the generated .classpath file for zip files found in the local repo  
(e.g.  ~/.maven/repository/springframework/src//spring-1.1.5.zip).

Now how do I get them in place? I wouldn't mind dropping them into my  
own remote repository, but I can't get them to be downloaded.

Cheers,
-Ralph.

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


Re: M2 project descriptor resource element

2005-05-06 Thread Emmanuel Venisse
The child of testResources is testResource and not resource

Emmanuel

- Original Message - 
From: Hugo Palma [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Friday, May 06, 2005 3:08 PM
Subject: Re: M2 project descriptor resource element


 Still can't make it work.
 I didn't mention in the first post but i'm using the testResources
 element as parent to resource.
 So my pom looks like:

 
 build
 testResources
 resources
 resource
 directorysrc/sql/directory
 targetPath${maven.build.dest}/targetPath
 /resource
 /resources
 /testResources
 /build

 and i've tried:
 ..
 build
 testResources
 resource
 directorysrc/sql/directory
 targetPath${maven.build.dest}/targetPath
 /resource
 /testResources
 /build



 with no success. The error i get is:

 org.apache.maven.reactor.ReactorException: Error processing projects for
 the rea
 ctor:
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:117)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:233)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
 at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)

 at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
 Caused by: org.apache.maven.project.ProjectBuildingException: Error
 while readin
 g model from file 'C:\java\projectos\Digitalis\pom.xml'.
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default
 MavenProjectBuilder.java:470)
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
 le(DefaultMavenProjectBuilder.java:124)
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
 nProjectBuilder.java:117)
 at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:266)
 at
 org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:170)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:102)
 ... 9 more
 Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException:
 TEXT must b
 e immediately followed by END_TAG and not START_TAG (position: START_TAG
 seen ..
 .resources\r\n\t\t\t\tresource... @144:15)
 at
 org.codehaus.plexus.util.xml.pull.MXParser.nextText(MXParser.java:105
 9)
 at
 org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseBuild(MavenXpp3Re
 ader.java:133)
 at
 org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Re
 ader.java:886)
 at
 org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.j
 ava:1660)
 at

org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenPr
ojectBuilder.java:461)



 Thanks for the help

 Hugo



 Kenney Westerhof wrote:

 On Fri, 6 May 2005, Brett Porter wrote:
 
 
 
 On 5/6/05, Hugo Palma [EMAIL PROTECTED] wrote:
 
 
 I'm trying to reference a resource like i did in Maven 1 using the
 resource element like this:
 
 resource
 directorysrc/test/otherResources/directory
 includes
 include*.xml/include
/includes
 /resource
 
 
 nested inside resources / inside build/ this should work.
 
 
 
 But it seems that in Maven 2 the only child element resource accepts
 is the targetPath element.
 
 
 Where did you get that information from... is there an error in the
 docs? targetPath is the only one not allowed in m2 :)
 
 
 
 Not according to Resource.java in maven-model :)
 
 In addition to Brett, here's some more information, extracted from the
 sources:
 
 Resource (resource/) has an optional child targetPath/ element;
 Resource extends FileSet which adds the directory/ element;
 FileSet extends PatternSet which adds includes/ and excludes/ tags;
 
 The includes and excludes are both List's, and are built by nested
 include/ and exclude/ tags respectively. Pretty much maven1 style.
 
 so the complete set will be:
 
 project
   ...
   build
   ...
 resources
   resource
 directorysrc/main/resources/directory
  targetPathwhatever//targetPath
  includes
include*.xcfg/include
  /includes
  excludes
exclude*.example/exclude
  /excludes
   /resource
 /resources
   ...
   /build
   ...
 /project
 
 This is not clear in
 http://maven.apache.org/maven2/project-descriptor.html (could use some
 indenting and '/' in the ending tags for clarity, there).
 
 
 --
 Kenney 

Re: M2 project descriptor resource element

2005-05-06 Thread Brett Porter
The second one is closer. It should actually be
testResourcestestResource.../testResource/testResources

Sorry for the bad doco - I will get it polished up shortly.

targetPath/ is relative, so what you have here is not appropriate,
and is not needed regardless (the base it is copied to is the
destination directory).

Cheers,
Brett

On 5/6/05, Hugo Palma [EMAIL PROTECTED] wrote:
 Still can't make it work.
 I didn't mention in the first post but i'm using the testResources
 element as parent to resource.
 So my pom looks like:
 
 
 build
 testResources
 resources
 resource
 directorysrc/sql/directory
 targetPath${maven.build.dest}/targetPath
 /resource
 /resources
 /testResources
 /build
 
 and i've tried:
 ..
 build
 testResources
 resource
 directorysrc/sql/directory
 targetPath${maven.build.dest}/targetPath
 /resource
 /testResources
 /build
 
 with no success. The error i get is:
 
 org.apache.maven.reactor.ReactorException: Error processing projects for
 the rea
 ctor:
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:117)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:233)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
 at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
 
 at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
 Caused by: org.apache.maven.project.ProjectBuildingException: Error
 while readin
 g model from file 'C:\java\projectos\Digitalis\pom.xml'.
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default
 MavenProjectBuilder.java:470)
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
 le(DefaultMavenProjectBuilder.java:124)
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
 nProjectBuilder.java:117)
 at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:266)
 at
 org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:170)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:102)
 ... 9 more
 Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException:
 TEXT must b
 e immediately followed by END_TAG and not START_TAG (position: START_TAG
 seen ..
 .resources\r\n\t\t\t\tresource... @144:15)
 at
 org.codehaus.plexus.util.xml.pull.MXParser.nextText(MXParser.java:105
 9)
 at
 org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseBuild(MavenXpp3Re
 ader.java:133)
 at
 org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Re
 ader.java:886)
 at
 org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.j
 ava:1660)
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:461)
 
 Thanks for the help
 
 Hugo
 
 
 Kenney Westerhof wrote:
 
 On Fri, 6 May 2005, Brett Porter wrote:
 
 
 
 On 5/6/05, Hugo Palma [EMAIL PROTECTED] wrote:
 
 
 I'm trying to reference a resource like i did in Maven 1 using the
 resource element like this:
 
 resource
 directorysrc/test/otherResources/directory
 includes
 include*.xml/include
/includes
 /resource
 
 
 nested inside resources / inside build/ this should work.
 
 
 
 But it seems that in Maven 2 the only child element resource accepts
 is the targetPath element.
 
 
 Where did you get that information from... is there an error in the
 docs? targetPath is the only one not allowed in m2 :)
 
 
 
 Not according to Resource.java in maven-model :)
 
 In addition to Brett, here's some more information, extracted from the
 sources:
 
 Resource (resource/) has an optional child targetPath/ element;
 Resource extends FileSet which adds the directory/ element;
 FileSet extends PatternSet which adds includes/ and excludes/ tags;
 
 The includes and excludes are both List's, and are built by nested
 include/ and exclude/ tags respectively. Pretty much maven1 style.
 
 so the complete set will be:
 
 project
   ...
   build
   ...
 resources
   resource
 directorysrc/main/resources/directory
targetPathwhatever//targetPath
includes
  include*.xcfg/include
/includes
excludes
  exclude*.example/exclude
/excludes
   /resource
 /resources
   ...
   /build
   ...
 /project
 
 This is not 

RE: [M1] eclipse plugin: how to download sources?

2005-05-06 Thread David Jackman
I didn't know that.  Do you know if there's also a way for it to figure out a 
JavaDoc reference (either downloading a zip or some other way)? 

-Original Message-
From: Ralph Pöllath [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 06, 2005 7:07 AM
To: Maven Users List
Subject: [M1] eclipse plugin: how to download sources?

Hi,

I just noticed that the eclipse plugin will add sourcepath-entries to the 
generated .classpath file for zip files found in the local repo (e.g.  
~/.maven/repository/springframework/src//spring-1.1.5.zip).

Now how do I get them in place? I wouldn't mind dropping them into my own 
remote repository, but I can't get them to be downloaded.

Cheers,
-Ralph.




-
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: Error parsing project.xml

2005-05-06 Thread Jörg Schaible
Hi Philipp,

you have to create proper references for your system entities. Relative paths 
are not resolved from the location of the including XML, but from your current 
working directory, while those paths within an entity file are resolved 
accoring its location. This is not how it should be with XML, but how it works 
in Maven ;-)

Philipp Gasser wrote on Friday, May 06, 2005 3:01 PM:

 Hi Philipp,
 
 from where did you start Maven? Did you build the complete
 multi-project
 or only a single subproject?
 I've started it from a single subproject.
 
 
 Philipp Gasser wrote on Friday, May 06, 2005 2:13 PM:
 
 [snip]
 
 SubProject - project.xml:
 --
 ?xml version=1.0?
 !DOCTYPE project [
   !ENTITY % index SYSTEM file:index.ent %index; ]
 
 
 What's the content of your index.ent?
 !ENTITY % versions SYSTEM versions.ent
 %versions;
 
 the main version - file.

This should be

!ENTITY % versions SYSTEM file:../../../versions.ent  %versions;

assuming you have located your version.ent at the same position as your 
commons-project.xml and this index.ent is located next to your POM of the 
subproject.

[snip]

 
 Multiproject - commons-project.xml
 
 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE project [
   !ENTITY % index SYSTEM versions.ent %index;
 ]


This has to be also:

!DOCTYPE project [
  !ENTITY % index SYSTEM file:index.ent %index;
]


and you'll need a index.ent next to your commons-project.xml containing:

!ENTITY % versions SYSTEM file:versions.ent  %versions;

[snip]

- Jörg

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



Re: M2 project descriptor resource element

2005-05-06 Thread Hugo Palma
It works now.
Thanks for the help.
Hugo

Brett Porter wrote:
The second one is closer. It should actually be
testResourcestestResource.../testResource/testResources
Sorry for the bad doco - I will get it polished up shortly.
targetPath/ is relative, so what you have here is not appropriate,
and is not needed regardless (the base it is copied to is the
destination directory).
Cheers,
Brett
On 5/6/05, Hugo Palma [EMAIL PROTECTED] wrote:
 

Still can't make it work.
I didn't mention in the first post but i'm using the testResources
element as parent to resource.
So my pom looks like:

build
   testResources
   resources
   resource
   directorysrc/sql/directory
   targetPath${maven.build.dest}/targetPath
   /resource
   /resources
   /testResources
/build
and i've tried:
..
build
   testResources
   resource
   directorysrc/sql/directory
   targetPath${maven.build.dest}/targetPath
   /resource
   /testResources
/build
with no success. The error i get is:
org.apache.maven.reactor.ReactorException: Error processing projects for
the rea
ctor:
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:117)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:233)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
   at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
   at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
Caused by: org.apache.maven.project.ProjectBuildingException: Error
while readin
g model from file 'C:\java\projectos\Digitalis\pom.xml'.
   at
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default
MavenProjectBuilder.java:470)
   at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
le(DefaultMavenProjectBuilder.java:124)
   at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
nProjectBuilder.java:117)
   at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:266)
   at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:170)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:102)
   ... 9 more
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException:
TEXT must b
e immediately followed by END_TAG and not START_TAG (position: START_TAG
seen ..
.resources\r\n\t\t\t\tresource... @144:15)
   at
org.codehaus.plexus.util.xml.pull.MXParser.nextText(MXParser.java:105
9)
   at
org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseBuild(MavenXpp3Re
ader.java:133)
   at
org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Re
ader.java:886)
   at
org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.j
ava:1660)
   at
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:461)
Thanks for the help
Hugo
Kenney Westerhof wrote:
   

On Fri, 6 May 2005, Brett Porter wrote:

 

On 5/6/05, Hugo Palma [EMAIL PROTECTED] wrote:
   

I'm trying to reference a resource like i did in Maven 1 using the
resource element like this:
resource
  directorysrc/test/otherResources/directory
  includes
  include*.xml/include
 /includes
/resource
 

nested inside resources / inside build/ this should work.

   

But it seems that in Maven 2 the only child element resource accepts
is the targetPath element.
 

Where did you get that information from... is there an error in the
docs? targetPath is the only one not allowed in m2 :)
   

Not according to Resource.java in maven-model :)
In addition to Brett, here's some more information, extracted from the
sources:
Resource (resource/) has an optional child targetPath/ element;
Resource extends FileSet which adds the directory/ element;
FileSet extends PatternSet which adds includes/ and excludes/ tags;
The includes and excludes are both List's, and are built by nested
include/ and exclude/ tags respectively. Pretty much maven1 style.
so the complete set will be:
project
...
build
...
  resources
resource
  directorysrc/main/resources/directory
 targetPathwhatever//targetPath
 includes
   include*.xcfg/include
 /includes
 excludes
   exclude*.example/exclude
 /excludes
/resource
  /resources
...
/build
...
/project
This is not clear in
http://maven.apache.org/maven2/project-descriptor.html (could use some
indenting and '/' in the ending tags for clarity, there).
--
Kenney 

RE: [M1] eclipse plugin: how to download sources?

2005-05-06 Thread Stéphane Nicoll
This has not been added to the plugin itself and I wonder why. 

See http://jira.codehaus.org/browse/MPECLIPSE-60 for a patch (it does not 
handle snapshot!)

Cheers,
Stéphane

-Original Message-
From: Ralph Pöllath [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 06, 2005 3:07 PM
To: Maven Users List
Subject: [M1] eclipse plugin: how to download sources?


Hi,

I just noticed that the eclipse plugin will add sourcepath-entries to  
the generated .classpath file for zip files found in the local repo  
(e.g.  ~/.maven/repository/springframework/src//spring-1.1.5.zip).

Now how do I get them in place? I wouldn't mind dropping them into my  
own remote repository, but I can't get them to be downloaded.

Cheers,
-Ralph.




-
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: [M1] eclipse plugin: how to download sources?

2005-05-06 Thread Ralph Pöllath
On 06.05.2005, at 15:36, David Jackman wrote:
I didn't know that.  Do you know if there's also a way for it to  
figure out a JavaDoc reference (either downloading a zip or some  
other way)?
I've never seen this documented, but found it in the source:
http://cvs.apache.org/viewcvs.cgi/maven/maven-1/plugins/trunk/eclipse/ 
plugin.jelly?root=Apache-SVNrev=126755view=markup

JavaDoc references seem not to be supported, but could be added using  
the very same mechanism, I guess.

I just noticed that the eclipse plugin will add sourcepath-entries  
to the generated .classpath file for zip files found in the local  
repo (e.g.  ~/.maven/repository/springframework/src// 
spring-1.1.5.zip).

Now how do I get them in place? I wouldn't mind dropping them into  
my own remote repository, but I can't get them to be downloaded.
Cheers,
-Ralph.

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


Jmeter/perf testing through Maven?

2005-05-06 Thread Darren Hartford
Hey all,
*Got unit tests with Junit/maven-test.
*Got functional tests with Cactus/maven-cactus.
*?How does one do performance tests?

I'm just beginning to go down the road of perf tests, so I do plead some
ignorance.  I'm looking into Jmeter, but it seems strongly oriented
towards GUI-run, while my environment is trying to stick with continuous
integration via Maven/CruiseControl.  The projects are mostly
container-based, either servlets in Tomcat or Jetty (or
jboss-embedded-tomcat), or EJB's  WebServices on Jboss, Jonas, and
possibly Geronimo.  Looking for any maven-plugin projects for perf
testing, or at least Ant-supported to be called via Maven.

Any recommendations?
-D

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



RE: Jmeter/perf testing through Maven?

2005-05-06 Thread Ryan Sonnek
check out junitperf (http://www.clarkware.com/software/JUnitPerf.html).
it extends junit, so it runs well with maven/continuous integration.

-Original Message-
From: Darren Hartford [mailto:[EMAIL PROTECTED]
Sent: Friday, May 06, 2005 9:09 AM
To: Maven Users List
Subject: Jmeter/perf testing through Maven?


Hey all,
*Got unit tests with Junit/maven-test.
*Got functional tests with Cactus/maven-cactus.
*?How does one do performance tests?

I'm just beginning to go down the road of perf tests, so I do plead some
ignorance.  I'm looking into Jmeter, but it seems strongly oriented
towards GUI-run, while my environment is trying to stick with continuous
integration via Maven/CruiseControl.  The projects are mostly
container-based, either servlets in Tomcat or Jetty (or
jboss-embedded-tomcat), or EJB's  WebServices on Jboss, Jonas, and
possibly Geronimo.  Looking for any maven-plugin projects for perf
testing, or at least Ant-supported to be called via Maven.

Any recommendations?
-D

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


smime.p7s
Description: S/MIME cryptographic signature


[m2] m2 repos pom's

2005-05-06 Thread Mark Hobson
Hi there,

I was wondering who's responsible for the m2 pom's in the maven2
repository?  There's an error in a commons-jxpath dependency:

http://www.ibiblio.org/maven2/commons-jxpath/commons-jxpath/1.2/commons-jxpath-1.2.pom

dependency
  groupIdant-optional/groupId
  artifactIdant-optional/artifactId
  version1.5.1/version
/dependency

Should be:

dependency
  groupIdant/groupId
  artifactIdant-optional/artifactId
  version1.5.1/version
/dependency

But there's no pom.xml or v4 project.xml in the commons-jxpath source
repository - is this created manually?

Cheers,

Mark

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



RE: [M1] eclipse plugin: how to download sources?

2005-05-06 Thread Stéphane Nicoll


-Original Message-
From: Ralph Pöllath [mailto:[EMAIL PROTECTED] 


On 06.05.2005, at 15:36, David Jackman wrote:
 I didn't know that.  Do you know if there's also a way for it to
 figure out a JavaDoc reference (either downloading a zip or some  
 other way)?

 I've never seen this documented, 

Well, check the home page: http://maven.apache.org/reference/plugins/eclipse/ 
see 'Source Code Integration w/ Eclipse'

Cheers,
Stéphane

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



RE: Multi-language projects

2005-05-06 Thread Smith, Thad
This looks great since we have to use Visual C++ (or at least the
Microsoft SDK) to compile our C code. I haven't found anything about
this in the documentation, but can your plugin be configured to produce
a dll?

Regards,

Thad Smith

-Original Message-
From: Donszelmann, Mark [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 05, 2005 11:57 AM
To: Maven Users List
Subject: RE: Multi-language projects

Hi

we started with the native plugin for C and C++ and extended it for
Fortran and 
use cross-platform libraries (nar files) and include packages. 

Have a look at:

http://java.freehep.org/freehep-nar-plugin

for maven 1.0.2 for now.

Regards
Mark Donszelmann 

-Original Message-
From: Smith, Thad [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 05, 2005 9:08 AM
To: Maven Users List
Subject: Multi-language projects

Hi,

I'm new to Maven and am looking at it to unify the build processes for
all of the internal products my group supports. We have several J2EE
projects that we're working on which makes Maven a good fit. But we also
have several non-Java projects and what's worse is that some of our J2EE
projects have other languages intertwined such as Perl and C and even
some proprietary languages.

I'm looking for two things...First, is anyone else out there using Maven
to successfully manage non-java projects like this? If so, do you have
any experiences/best practices that you can share?

Secondly, Are there any plugins out there to do Perl validation or C
compilation? My intuition is no since I can't find them on any of the
Maven plugin pages. I wanted to make sure before I go writing my own.

Regards,

Thad Smith
Senior Software Engineer
Electric Reliability Council of Texas


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


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




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



RE: Jmeter/perf testing through Maven?

2005-05-06 Thread Smith, Thad
If you prefer JMeter, it does have the ability to replay a test via the
command line, which can be easily kicked off from a custom goal using an
exec tag. If not, JUnitPerf is a great tool.

Regards,

Thad Smith

-Original Message-
From: Ryan Sonnek [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 06, 2005 9:13 AM
To: Maven Users List
Subject: RE: Jmeter/perf testing through Maven?

check out junitperf (http://www.clarkware.com/software/JUnitPerf.html).
it extends junit, so it runs well with maven/continuous integration.

-Original Message-
From: Darren Hartford [mailto:[EMAIL PROTECTED]
Sent: Friday, May 06, 2005 9:09 AM
To: Maven Users List
Subject: Jmeter/perf testing through Maven?


Hey all,
*Got unit tests with Junit/maven-test.
*Got functional tests with Cactus/maven-cactus.
*?How does one do performance tests?

I'm just beginning to go down the road of perf tests, so I do plead some
ignorance.  I'm looking into Jmeter, but it seems strongly oriented
towards GUI-run, while my environment is trying to stick with continuous
integration via Maven/CruiseControl.  The projects are mostly
container-based, either servlets in Tomcat or Jetty (or
jboss-embedded-tomcat), or EJB's  WebServices on Jboss, Jonas, and
possibly Geronimo.  Looking for any maven-plugin projects for perf
testing, or at least Ant-supported to be called via Maven.

Any recommendations?
-D

-
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: [m2] m2 repos pom's

2005-05-06 Thread Brett Porter
Looks like a bug in our conversion script.

Filed in JIRA, manually fixed in repository - should propogate to
Ibiblio shortly.

- Brett

On 5/7/05, Mark Hobson [EMAIL PROTECTED] wrote:
 Hi there,
 
 I was wondering who's responsible for the m2 pom's in the maven2
 repository?  There's an error in a commons-jxpath dependency:
 
 http://www.ibiblio.org/maven2/commons-jxpath/commons-jxpath/1.2/commons-jxpath-1.2.pom
 
 dependency
   groupIdant-optional/groupId
   artifactIdant-optional/artifactId
   version1.5.1/version
 /dependency
 
 Should be:
 
 dependency
   groupIdant/groupId
   artifactIdant-optional/artifactId
   version1.5.1/version
 /dependency
 
 But there's no pom.xml or v4 project.xml in the commons-jxpath source
 repository - is this created manually?
 
 Cheers,
 
 Mark
 
 -
 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: [m2] m2 repos pom's

2005-05-06 Thread Mark Hobson
Great thanks.

Mark

On 5/6/05, Brett Porter [EMAIL PROTECTED] wrote:
 Looks like a bug in our conversion script.
 
 Filed in JIRA, manually fixed in repository - should propogate to
 Ibiblio shortly.
 
 - Brett
 
 On 5/7/05, Mark Hobson [EMAIL PROTECTED] wrote:
  Hi there,
 
  I was wondering who's responsible for the m2 pom's in the maven2
  repository?  There's an error in a commons-jxpath dependency:
 
  http://www.ibiblio.org/maven2/commons-jxpath/commons-jxpath/1.2/commons-jxpath-1.2.pom
 
  dependency
groupIdant-optional/groupId
artifactIdant-optional/artifactId
version1.5.1/version
  /dependency
 
  Should be:
 
  dependency
groupIdant/groupId
artifactIdant-optional/artifactId
version1.5.1/version
  /dependency
 
  But there's no pom.xml or v4 project.xml in the commons-jxpath source
  repository - is this created manually?
 
  Cheers,
 
  Mark
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



[m2] bootstrap build from scratch

2005-05-06 Thread Simon Matic Langford
hi,

I'm trying to do a bootstrap build from latest svn code, and I've
followed the contents of the Readme, and it don't seem to be working:

F:\m2-svnmd m2-latest

F:\m2-svnmd m2-latest\bin

F:\m2-svnset M2_HOME=f:\m2-svn\m2-latest

F:\m2-svnset PATH=%M2_HOME%\bin;%PATH%

F:\m2-svncd maven\components\trunk

F:\m2-svn\maven\components\trunkm2-bootstrap-all.bat
1 file(s) copied.
Exception in thread main java.lang.NullPointerException
at MBoot.run(MBoot.java:157)
at MBoot.main(MBoot.java:117)
Rebuilding maven2 plugins

ERROR: M2_HOME is set to an invalid directory.
M2_HOME = f:\m2-svn\m2-latest
Please set the M2_HOME variable in your environment to match the
location of the Maven installation

Running integration tests
Exception in thread main java.lang.NoClassDefFoundError:
org/apache/maven/it/Verifier

my maven.properties has the following:

F:\m2-svn\maven\components\trunkcat C:\Documents and
Settings\langfors\.m2\maven.properties
maven.repo.local=c:/Documents and Settings/langfors/.m2/repository

any ideas? apart from the null pointers and errors, it seems to complain
about the location of M2_HOME, yet the readme says to set this to where
you want m2 to be installed.


thanks

simon



The information contained in this e-mail is intended only for the person
or
entity to which it is addressed and may contain confidential and/or
privileged material. If You are not the intended recipient of this
e-mail,
the use of this information or any disclosure, copying or distribution
is
Prohibited and may be unlawful. If you received this in error, please
contact the sender and delete the material from any computer. The views
expressed in this e-mail may not necessarily be the views of The PCMS
Group
plc and should not be taken as authority to carry out any instruction
contained.
 



SVN support?

2005-05-06 Thread Smith, Thad
I've read in several places that Maven 1 (I'm on 1.0.2) only supports
CVS, and that SVN support was going to be added in Maven 2. But then I
read through the SCM plugin documentation
(http://maven.apache.org/reference/plugins/scm/scmurl.html) and it
states that it supports SVN. Is this really the case?

Regards,

Thad Smith


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



Re: [m2] m2 repos pom's

2005-05-06 Thread Vincent Siveton
Please lets have a look to this link
http://jira.codehaus.org/browse/MEV

Vincent

2005/5/6, Mark Hobson [EMAIL PROTECTED]:
 Hi there,
 
 I was wondering who's responsible for the m2 pom's in the maven2
 repository?  There's an error in a commons-jxpath dependency:
 
 http://www.ibiblio.org/maven2/commons-jxpath/commons-jxpath/1.2/commons-jxpath-1.2.pom
 
 dependency
  groupIdant-optional/groupId
  artifactIdant-optional/artifactId
  version1.5.1/version
 /dependency
 
 Should be:
 
 dependency
  groupIdant/groupId
  artifactIdant-optional/artifactId
  version1.5.1/version
 /dependency
 
 But there's no pom.xml or v4 project.xml in the commons-jxpath source
 repository - is this created manually?
 
 Cheers,
 
 Mark
 
 -
 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: [m2] m2 repos pom's

2005-05-06 Thread Mark Hobson
Thanks for that.  Before I add an issue there regarding nanocontainer
dependency scopes, can anyone explain where ${picocontainer.version}
is evaluated from here?:

http://www.ibiblio.org/maven2/nanocontainer/nanocontainer/1.0-beta-4/nanocontainer-1.0-beta-4.pom

It seems to be resolved as the nanocontainer pom version, which is
obviously not as intended.

Cheers,

Mark

On 5/6/05, Vincent Siveton [EMAIL PROTECTED] wrote:
 Please lets have a look to this link
 http://jira.codehaus.org/browse/MEV
 
 Vincent
 
 2005/5/6, Mark Hobson [EMAIL PROTECTED]:
  Hi there,
 
  I was wondering who's responsible for the m2 pom's in the maven2
  repository?  There's an error in a commons-jxpath dependency:
 
  http://www.ibiblio.org/maven2/commons-jxpath/commons-jxpath/1.2/commons-jxpath-1.2.pom
 
  dependency
   groupIdant-optional/groupId
   artifactIdant-optional/artifactId
   version1.5.1/version
  /dependency
 
  Should be:
 
  dependency
   groupIdant/groupId
   artifactIdant-optional/artifactId
   version1.5.1/version
  /dependency
 
  But there's no pom.xml or v4 project.xml in the commons-jxpath source
  repository - is this created manually?
 
  Cheers,
 
  Mark
 
  -
  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: SVN support?

2005-05-06 Thread Brett Porter
Thad,

Yes, there is support in Maven 1.x through the downloadable SCM 1.5
beta plugin (that the docs reference). There has also been support in
changelog for some time.

I'll get my act together and release some of this Real Soon Now.

- Brett

On 5/7/05, Smith, Thad [EMAIL PROTECTED] wrote:
 I've read in several places that Maven 1 (I'm on 1.0.2) only supports
 CVS, and that SVN support was going to be added in Maven 2. But then I
 read through the SCM plugin documentation
 (http://maven.apache.org/reference/plugins/scm/scmurl.html) and it
 states that it supports SVN. Is this really the case?
 
 Regards,
 
 Thad Smith
 
 -
 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: [m2] bootstrap build from scratch

2005-05-06 Thread Simon Matic Langford
hi,

this didn't seem to do much, so I did some digging in the code and found
I was missing this from settings.xml:


profiles
  profile
activetrue/active
localRepositoryc:/Documents and
Settings/langfors/.m2/repository/localRepository
  /profile
/profiles

alpha-1 didn't require this, might be handy to put into the readme?

simon
 

 -Original Message-
 From: Kenney Westerhof [mailto:[EMAIL PROTECTED] 
 Sent: 06 May 2005 15:56
 To: Maven Users List
 Subject: Re: [m2] bootstrap build from scratch
 
 
 On Fri, 6 May 2005, Simon Matic Langford wrote:
 
 Try using forward slashes for M2_HOME, or leave that 
 environment variable
 empty. M2 will then be built in target/ somewhere.
 
 (btw, are there any directories/files created in %M2_HOME% ?)
 
 Further, maven.properties is not required to exist; and if you must
 specify the local repository, try to use the path without 
 spaces (use a
 dos box and dir /x to get the shortname for the C:\Documents 
 and Settings\
 directory (probably DOCUME~1).
 
 Success!
 
 -- Kenney
 
 
  hi,
 
  I'm trying to do a bootstrap build from latest svn code, and I've
  followed the contents of the Readme, and it don't seem to 
 be working:
 
  F:\m2-svnmd m2-latest
 
  F:\m2-svnmd m2-latest\bin
 
  F:\m2-svnset M2_HOME=f:\m2-svn\m2-latest
 
  F:\m2-svnset PATH=%M2_HOME%\bin;%PATH%
 
  F:\m2-svncd maven\components\trunk
 
  F:\m2-svn\maven\components\trunkm2-bootstrap-all.bat
  1 file(s) copied.
  Exception in thread main java.lang.NullPointerException
  at MBoot.run(MBoot.java:157)
  at MBoot.main(MBoot.java:117)
  Rebuilding maven2 plugins
 
  ERROR: M2_HOME is set to an invalid directory.
  M2_HOME = f:\m2-svn\m2-latest
  Please set the M2_HOME variable in your environment to match the
  location of the Maven installation
 
  Running integration tests
  Exception in thread main java.lang.NoClassDefFoundError:
  org/apache/maven/it/Verifier
 
  my maven.properties has the following:
 
  F:\m2-svn\maven\components\trunkcat C:\Documents and
  Settings\langfors\.m2\maven.properties
  maven.repo.local=c:/Documents and Settings/langfors/.m2/repository
 
  any ideas? apart from the null pointers and errors, it 
 seems to complain
  about the location of M2_HOME, yet the readme says to set 
 this to where
  you want m2 to be installed.
 
 
  thanks
 
  simon
 
 
 
  The information contained in this e-mail is intended only 
 for the person
  or
  entity to which it is addressed and may contain confidential and/or
  privileged material. If You are not the intended recipient of this
  e-mail,
  the use of this information or any disclosure, copying or 
 distribution
  is
  Prohibited and may be unlawful. If you received this in 
 error, please
  contact the sender and delete the material from any 
 computer. The views
  expressed in this e-mail may not necessarily be the views 
 of The PCMS
  Group
  plc and should not be taken as authority to carry out any 
 instruction
  contained.
 
 
 
 
 --
 Kenney Westerhof
 http://www.neonics.com
 GPG public key: http://www.gods.nl/~forge/kenneyw.key
 
 -
 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: Multi-language projects

2005-05-06 Thread Donszelmann, Mark
If you set 

[arch.[os.[linker.]freehep.nar.outtype to shared

it will produce a dll/so, but I have not tested this very well.

I also still need to decide what to do with the fact that
Linux/Unix can use the same name for .a and .so libs, since you
link with one or the other, while Windows cannot use the same
name for .lib/.dll since you always need to link to the .lib
(adapter for the .dll). 

Is there any convention for this on Windows?


Regards,

Mark

-Original Message-
From: Smith, Thad [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 06, 2005 7:43 AM
To: Maven Users List
Subject: RE: Multi-language projects

This looks great since we have to use Visual C++ (or at least the Microsoft 
SDK) to compile our C code. I haven't found anything about this in the 
documentation, but can your plugin be configured to produce a dll?

Regards,

Thad Smith

-Original Message-
From: Donszelmann, Mark [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 05, 2005 11:57 AM
To: Maven Users List
Subject: RE: Multi-language projects

Hi

we started with the native plugin for C and C++ and extended it for Fortran and 
use cross-platform libraries (nar files) and include packages. 

Have a look at:

http://java.freehep.org/freehep-nar-plugin

for maven 1.0.2 for now.

Regards
Mark Donszelmann 

-Original Message-
From: Smith, Thad [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 05, 2005 9:08 AM
To: Maven Users List
Subject: Multi-language projects

Hi,

I'm new to Maven and am looking at it to unify the build processes for all of 
the internal products my group supports. We have several J2EE projects that 
we're working on which makes Maven a good fit. But we also have several 
non-Java projects and what's worse is that some of our J2EE projects have other 
languages intertwined such as Perl and C and even some proprietary languages.

I'm looking for two things...First, is anyone else out there using Maven to 
successfully manage non-java projects like this? If so, do you have any 
experiences/best practices that you can share?

Secondly, Are there any plugins out there to do Perl validation or C 
compilation? My intuition is no since I can't find them on any of the Maven 
plugin pages. I wanted to make sure before I go writing my own.

Regards,

Thad Smith
Senior Software Engineer
Electric Reliability Council of Texas


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


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




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


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



Re: [m2] bootstrap build from scratch

2005-05-06 Thread Brett Porter
It's not required... there was a bug in MBoot I just fixed.

- Brett

On 5/7/05, Simon Matic Langford [EMAIL PROTECTED] wrote:
 hi,
 
 this didn't seem to do much, so I did some digging in the code and found
 I was missing this from settings.xml:
 
 profiles
   profile
 activetrue/active
 localRepositoryc:/Documents and
 Settings/langfors/.m2/repository/localRepository
   /profile
 /profiles
 
 alpha-1 didn't require this, might be handy to put into the readme?
 
 simon
 
 
  -Original Message-
  From: Kenney Westerhof [mailto:[EMAIL PROTECTED]
  Sent: 06 May 2005 15:56
  To: Maven Users List
  Subject: Re: [m2] bootstrap build from scratch
 
 
  On Fri, 6 May 2005, Simon Matic Langford wrote:
 
  Try using forward slashes for M2_HOME, or leave that
  environment variable
  empty. M2 will then be built in target/ somewhere.
 
  (btw, are there any directories/files created in %M2_HOME% ?)
 
  Further, maven.properties is not required to exist; and if you must
  specify the local repository, try to use the path without
  spaces (use a
  dos box and dir /x to get the shortname for the C:\Documents
  and Settings\
  directory (probably DOCUME~1).
 
  Success!
 
  -- Kenney
 
 
   hi,
  
   I'm trying to do a bootstrap build from latest svn code, and I've
   followed the contents of the Readme, and it don't seem to
  be working:
  
   F:\m2-svnmd m2-latest
  
   F:\m2-svnmd m2-latest\bin
  
   F:\m2-svnset M2_HOME=f:\m2-svn\m2-latest
  
   F:\m2-svnset PATH=%M2_HOME%\bin;%PATH%
  
   F:\m2-svncd maven\components\trunk
  
   F:\m2-svn\maven\components\trunkm2-bootstrap-all.bat
   1 file(s) copied.
   Exception in thread main java.lang.NullPointerException
   at MBoot.run(MBoot.java:157)
   at MBoot.main(MBoot.java:117)
   Rebuilding maven2 plugins
  
   ERROR: M2_HOME is set to an invalid directory.
   M2_HOME = f:\m2-svn\m2-latest
   Please set the M2_HOME variable in your environment to match the
   location of the Maven installation
  
   Running integration tests
   Exception in thread main java.lang.NoClassDefFoundError:
   org/apache/maven/it/Verifier
  
   my maven.properties has the following:
  
   F:\m2-svn\maven\components\trunkcat C:\Documents and
   Settings\langfors\.m2\maven.properties
   maven.repo.local=c:/Documents and Settings/langfors/.m2/repository
  
   any ideas? apart from the null pointers and errors, it
  seems to complain
   about the location of M2_HOME, yet the readme says to set
  this to where
   you want m2 to be installed.
  
  
   thanks
  
   simon
  
  
  
   The information contained in this e-mail is intended only
  for the person
   or
   entity to which it is addressed and may contain confidential and/or
   privileged material. If You are not the intended recipient of this
   e-mail,
   the use of this information or any disclosure, copying or
  distribution
   is
   Prohibited and may be unlawful. If you received this in
  error, please
   contact the sender and delete the material from any
  computer. The views
   expressed in this e-mail may not necessarily be the views
  of The PCMS
   Group
   plc and should not be taken as authority to carry out any
  instruction
   contained.
  
  
  
 
  --
  Kenney Westerhof
  http://www.neonics.com
  GPG public key: http://www.gods.nl/~forge/kenneyw.key
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: Multiproject builds orderring

2005-05-06 Thread dan tran
Steve, it is much better then maven.xml;)

Thanks

-D

On 5/6/05, Steve Molloy [EMAIL PROTECTED] wrote:
 You could also set a dummy dependency between the 2 projects. Even if
 it's not actually used, it will provide your ordering. I know I used it
 for multi-level project trees, where I had, for instance, 3 components
 part of a core project, another 2 part of UI. So even if the UI project
 didn't actually depend on the core one (neither actually had code, just
 sub-projects), I had a dependency which ended up deploying an empty jar
 to our local repository but made sure that UI was always built after
 core...
 
 Steve
 
 On Thu, 2005-05-05 at 21:35 -0700, dan tran wrote:
 
  I asked for it eh?
 
  Any how, I took a look at the code involved, it is deep in ant's
  DirectoryScanner.
  Using maven.multiproject.includes is not fit.
 
  I settle for some jelly in maven.xml ;-)
 
  Thanks for the offer.
 
  -D
 
 
 
  On 5/5/05, Brett Porter [EMAIL PROTECTED] wrote:
   You can request it :)
  
   If you want to provide a patch for 1.1 I'd be happy to apply it.
  
   - Brett
  
   On 5/6/05, dan tran [EMAIL PROTECTED] wrote:
actually, it does not have any orderring.  Just the  matter of which
one shows up first in the directory list ;-)
   
Can I request this feature?  I am current using multiproejct plugin 
(reactor) to
run one of my build systems which does not take advantage of maven's
dependencies. (sorry, just cant)
   
The orderring can be specified in maven.multiproject.includes.
   
-D
   
   
On 5/5/05, dan tran [EMAIL PROTECTED] wrote:
 Thanks Brett, It  runs on the reverse alphabetical order
 ie tree2 got called first ;-)

 -Dan


 On 5/5/05, Brett Porter [EMAIL PROTECTED] wrote:
  currently it is alphabetical.
 
  - Brett
 
  On 5/6/05, dan tran [EMAIL PROTECTED] wrote:
   Hello,
  
   I have 2 sub trees,  both does not depend on each other.
  
 root/
  
 tree1/
  
 tree2/
  
   Can I make multiproject to build a specific tree first?
  
   -Dan
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 

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


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



Re: Multiproject builds orderring

2005-05-06 Thread dan tran
Steve, it is much better then maven.xml;)

Thanks

-D

On 5/6/05, Steve Molloy [EMAIL PROTECTED] wrote:
 You could also set a dummy dependency between the 2 projects. Even if
 it's not actually used, it will provide your ordering. I know I used it
 for multi-level project trees, where I had, for instance, 3 components
 part of a core project, another 2 part of UI. So even if the UI project
 didn't actually depend on the core one (neither actually had code, just
 sub-projects), I had a dependency which ended up deploying an empty jar
 to our local repository but made sure that UI was always built after
 core...
 
 Steve
 
 On Thu, 2005-05-05 at 21:35 -0700, dan tran wrote:
 
  I asked for it eh?
 
  Any how, I took a look at the code involved, it is deep in ant's
  DirectoryScanner.
  Using maven.multiproject.includes is not fit.
 
  I settle for some jelly in maven.xml ;-)
 
  Thanks for the offer.
 
  -D
 
 
 
  On 5/5/05, Brett Porter [EMAIL PROTECTED] wrote:
   You can request it :)
  
   If you want to provide a patch for 1.1 I'd be happy to apply it.
  
   - Brett
  
   On 5/6/05, dan tran [EMAIL PROTECTED] wrote:
actually, it does not have any orderring.  Just the  matter of which
one shows up first in the directory list ;-)
   
Can I request this feature?  I am current using multiproejct plugin 
(reactor) to
run one of my build systems which does not take advantage of maven's
dependencies. (sorry, just cant)
   
The orderring can be specified in maven.multiproject.includes.
   
-D
   
   
On 5/5/05, dan tran [EMAIL PROTECTED] wrote:
 Thanks Brett, It  runs on the reverse alphabetical order
 ie tree2 got called first ;-)

 -Dan


 On 5/5/05, Brett Porter [EMAIL PROTECTED] wrote:
  currently it is alphabetical.
 
  - Brett
 
  On 5/6/05, dan tran [EMAIL PROTECTED] wrote:
   Hello,
  
   I have 2 sub trees,  both does not depend on each other.
  
 root/
  
 tree1/
  
 tree2/
  
   Can I make multiproject to build a specific tree first?
  
   -Dan
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 

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


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



RE: Two artifacts for one project

2005-05-06 Thread Tran, Khiet
Thanks guys, I come to the conclusion that splitting the project as Maven
recommends is the easiest solution. I wanted to preserve the compatibility
with our scripts but it is not worth it.
Khiet.

-Original Message-
From: Thomas Van de Velde [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 05, 2005 3:43 PM
To: Maven Users List
Subject: Re: Two artifacts for one project


Khiet,
 If you really do not want to change your source folders to seperate the ejb

code from your library code, you'll have to play around with the following 
properties:
maven.ejb.includes
maven.ejb.excludes
maven.jar.excludes
maven.jar.includes
 But as Steve already mentioned, this is not the recommended approach to 
build an EJB or JAR. I'd seperate both, each with its own project.xml. You 
can then use a reactor if you decide to have both source folders in the same

project. But you could also create two seperate projects each with its own 
project.xml at the root. (which is something you are forced to do if you use

WSAD and want to continue to use its J2EE plugins)
 Did you take a look at the Genapp plugin? You can run it with the complex 
template for an example of the first option.
 Thomas

 On 5/5/05, Tran, Khiet [EMAIL PROTECTED] wrote: 
 
 Yes, and following Thomas' recommendations, I opened ejb:install and 
 it
 uses
 artifact:install exactly as I do.
 The difference between ejb:ejb/ejb:ejb-client and our custom ant-task is
 that I need both artifacts into my ear. I cannot get both (ejb/jar) into 
 my
 ear through dependency, which is not needed for ejb:ejb produced artifact.
 
 
 -Original Message-
 From: dan tran [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 05, 2005 3:06 PM
 To: Maven Users List
 Subject: Re: Two artifacts for one project
 
 Khiet, did you use custom ant tasks to build your jar and jeb?
 
 -D
 
 On 5/5/05, Steve Molloy [EMAIL PROTECTED] wrote:
  Better yet, you should split your code in 2 projects, one for 
  component, and one for EJB which depends on the first one.
 
  Steve
 
  On Thu, 2005-05-05 at 19:36 +0200, Thomas Van de Velde wrote:
 
   You should call ejb:install and jar:install. artifact:install is a 
   lower-level goal that should not be used directly. When you call 
   ejb:install, your ejb will be installed in an ejbs folder. When 
   you call jar:install, your jar is copied to a jars folder. You can 
   now use them as a dependency by setting typeejb/type or 
   typejar/type (The latter can be left out as by default 
   dependencies resolve to jar. Thomas On 5/5/05, Tran, Khiet 
   [EMAIL PROTECTED] wrote:
   
Hi everyone,
   
We have a legacy directory structure of components that I want 
to convert to maven. The context I have is that for some 
components (maven project), a custom ant-task generates two 
different jars for it. root/
|component
project.xml
|target/
|-componentEjb-version.jar -component-version.jar
   
So for installing these into the repository, I am using the 
artifact:install goal with 2 different types: jar  ejb, which 
installs 2 separate jars into the local repository. But I cannot 
retrieve one of the two jar as
 both
uses
the same pom.
   
My question is, is it possible for me to specify a different pom 
then the current one ${pom} when using the goal 
artifact:install? And if I am using the same pom for both 
artifacts of different types, how do I refer to both as 
dependencies. I've tried it but it does not work.
   
Thanks, Khiet.
   
   
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



MODULE_DIR in Idea plugin

2005-05-06 Thread David Jackman
Does anyone know about the MODULE_DIR path macro in IntelliJ IDEA?  Does
the Maven IDEA plugin create this macro?  If I use the IDEA plugin to
create multiple IntelliJ projects from independent Maven projects, what
will happen (will they all reference the same MODULE_DIR macro)?  Is
there any way to specify the path macro name to use when creating the
IntelliJ projects?
 
Forgive my ignorance--I'm not really an IntelliJ user myself. This came
up when one of our developers got up and going with one of our Maven
projects.
 
Thanks,
..David..