[M2] Support for non-java sources ?

2005-04-11 Thread Haryon
In Maven 2 POM documentation, it seems that I will only be able to create Java project with Maven. sourceDirectory/ scriptSourceDirectory/ testSourceDirectory/ sourceDirectory points by default to src/main/java. Does it mean that if I want to create non-java project I can't indicate sources in

[M2] Too many things in the POM ?

2005-04-11 Thread Haryon
I have the feeling the POM will carry too many things. After all, POM is in SCM, so it is versionned, it is source related, it can't provide deployment infos, or development platform context, which can change after the release has been done. At the first reading of the POM documentation, I see :

RE: [M2] Too many things in the POM ?

2005-04-11 Thread Vincent Massol
Hi Haryon, I think you make some very valid points. ATM, Maven has mostly focused on instant reports and generating instant view of projects. We now need to integrate history and I know for sure that the m2 team has started working on this. I don't know what the solution will be though. When you

Re: a practical multiproject build

2005-04-11 Thread Bahaa Nasrallah
I have exactly the smae problem, can anybody who knows how to solve this problem reply? thanks, Bahaa On Apr 8, 2005 8:17 PM, Durham David R Jr Contr 805 CSPTS/SCE [EMAIL PROTECTED] wrote: I've been working with multiproject for a couple of days, so while I'm not exactly an expert, I feel

Re: a practical multiproject build

2005-04-11 Thread Simon BRANDHOF
Hello, You can filter the subprojects on which you want to call a goal by adding the following on the root maven.xml : goal name=myGoal maven:reactor basedir=${basedir} includes=*/project.xml postProcessing=false goals=myGoal

Proxy settings and different remote repos

2005-04-11 Thread Guillaume Laforge
Hello, I want to use two different repositories: a company-wide repository, and in second place to fall through to ibiblio if I can't find an artifact in the company repository. The problem comes in when I have to specify my proxy settings: to access my company repo, I don't need to specify my

Re: Proxy settings and different remote repos

2005-04-11 Thread Brett Porter
Unfortunately no. Maven 1.1 does accept proxy exclusions, but not 1.0.2. You can see if httpclient will pick them up via the standard java system property: -Dproxy.nonProxyHosts=*.mycompany.com Another alternative is to set up maven-proxy on your company repo - all your clients can connect to

M2 with Java5

2005-04-11 Thread Mark Hobson
Hi there, Just trying out the alpha release of M2 was wondering if there's any issues with compiling Java5? It doesn't seem to like the new syntax - is there a property I need to set to anywhere? Aside from that it's looking great at the moment - keep up the good work! BTW, is this the

Re: [M2] Too many things in the POM ?

2005-04-11 Thread Brett Porter
On Apr 11, 2005 7:13 PM, Haryon [EMAIL PROTECTED] wrote: I have the feeling the POM will carry too many things. After all, POM is in SCM, so it is versionned, it is source related, it can't provide deployment infos, or development platform context, which can change after the release has been

Re: [M2] Support for non-java sources ?

2005-04-11 Thread Brett Porter
For anything where the type is not enough to figure it out, you would add plugin configuration. eg, when there is an aspectj plugin, you'll probably use this instead of aspectSourceDirectory/: plugin artifactIdmaven-aspectj-plugin/artifactId configuration

RE: Maven 2

2005-04-11 Thread Ilyevsky, Leonid (Equity Trading)
Thanks. It worked for me. My case is simple though: I created an empty project, made it eclipse project using your plugin, and then imported it into eclipse. -Original Message- From: John Casey [mailto:[EMAIL PROTECTED] Sent: Friday, April 08, 2005 6:31 PM To: Maven Users List Subject:

Re: reactor

2005-04-11 Thread Simon BRANDHOF
You must define the maven namespace into the root node of maven.xml : project xmlns:maven=jelly:maven Cheers, Simon http://www.xp-swiss.org On Apr 11, 2005 4:20 PM, Bahaa Nasrallah [EMAIL PROTECTED] wrote: hi, in my maven.xml i have goal name=buildAll maven:reactor

Re: reactor

2005-04-11 Thread Brett Porter
project xmlns:maven=jelly:maven ... is required at the top. On Apr 12, 2005 12:20 AM, Bahaa Nasrallah [EMAIL PROTECTED] wrote: hi, in my maven.xml i have goal name=buildAll maven:reactor includes=**/project.xml excludes= banner=Building

[M2] plugins language?

2005-04-11 Thread Yura Ivanov
Hi, I have a question Why will maven 2.0 use only java for writing plugins? I used maven 1.x enough long time, and always there were no enough documentation about using it and many useful thing I was looking in plugins scr. So it was very good place to dig if I had questions. My opinion that it

Re: [M2] plugins language?

2005-04-11 Thread Emmanuel Venisse
Yura Ivanov said: Hi, I have a question Why will maven 2.0 use only java for writing plugins? I used maven 1.x enough long time, and always there were no enough documentation about using it and many useful thing I was looking in plugins scr. So it was very good place to dig if I had

Re: [M2] plugins language?

2005-04-11 Thread Brett Porter
While marmalade is our preferred option for those wanting to port m1 plugins or use ant tasks, java and beanshell will be the preferred options otherwise. Beanshell support is scheduled for alpha-2. /me goes to write a FAQ entry. Cheers, Brett On Apr 12, 2005 1:25 AM, Emmanuel Venisse [EMAIL

[M2] 'Getting Started' guide fails in current state

2005-04-11 Thread Aaron Bell
Hello, If you work through the current 'Getting Started' page for Maven 2, the last step (multiple modules) fails at the install goal. This is because a WAR with a non-default name cannot be installed in the repository. 1. The example given to create a WAR uses a 'plugins' element in the

Re: [M2] 'Getting Started' guide fails in current state

2005-04-11 Thread Brett Porter
On Apr 12, 2005 1:31 AM, Aaron Bell [EMAIL PROTECTED] wrote: Hello, If you work through the current 'Getting Started' page for Maven 2, the last step (multiple modules) fails at the install goal. This is because a WAR with a non-default name cannot be installed in the repository. Good

Re: [M2] plugins language?

2005-04-11 Thread Siegfried Goeschl
Hi Brett, I think Jason van Zyl wrote he would touch Groovy not even with a polestick Is there any Groovy support planned? I use Beanshell and Groovy but Groovy is much more powerful in doing things quickly while Beanshell is easier to grasp Cheers, Siegfried Goeschl Brett Porter wrote:

Re: [M2] plugins language?

2005-04-11 Thread Brett Porter
We will allow the use of Groovy - and virtually any other scripting language someone can commit a small amount of time to implementing a factory for, if there is demand. We would recommend waiting for Groovy to have a 1.0 release so the API (and language!) is stable. What we will not be doing is

Generate manifest classpath entry?

2005-04-11 Thread Wim Deblauwe
Hi, is it possible to generate a Class-Path entry in the generated manifest file that includes all dependend jars? See http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#Main%20Attributes for more info regards, Wim - To

Re: [M2] plugins language?

2005-04-11 Thread Yuriy Ivanov
but What lang will be used for core plugins? - Original Message - From: Emmanuel Venisse [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Monday, April 11, 2005 6:25 PM Subject: Re: [M2] plugins language? Yura Ivanov said: Hi, I have a question Why will maven

Re: Maven 2.0 Technology Preview release

2005-04-11 Thread Brett Porter
Please, don't cross-post to multiple lists. http://maven.apache.org/maven2/maven1.html#m1-future http://maven.apache.org/maven2/about.html#release-schedule (there is currently an August target for 2.0 final) - Brett On Apr 12, 2005 1:58 AM, David Jackman [EMAIL PROTECTED] wrote: Some docs on

RE: Maven 2.0 Technology Preview release

2005-04-11 Thread David Jackman
Some docs on the Maven site talk about version 1.1. Is an interim 1.1 release still planned, or is everything looking forward to 2.0? Is there a projected release date for 2.0 at this time? -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Friday, April 08, 2005

RE: [M2] plugins language?

2005-04-11 Thread Vincent Massol
-Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: lundi 11 avril 2005 17:53 To: Maven Users List; [EMAIL PROTECTED] Subject: Re: [M2] plugins language? We will allow the use of Groovy - and virtually any other scripting language someone can commit a small

RE: [M2] plugins language?

2005-04-11 Thread Ilyevsky, Leonid (Equity Trading)
My next build problem, see below. The commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom indeed is not there. [EMAIL PROTECTED] /home/lilyevsk/workspace/lex $ m2 install [INFO] [INFO] Building null

Re: [M2] plugins language?

2005-04-11 Thread Brett Porter
Will that factory need to be included in the Maven code or could it sit, say, in the groovy code itself and M2 be easily configured to use it? I believe it's a plexus component and it needs to be registered in plexus. Yes, it could be in groovy, or a groovy library. There is already an example

Another build problem

2005-04-11 Thread Ilyevsky, Leonid (Equity Trading)
My next build problem, see below. It is looking for commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom And it is not there. [EMAIL PROTECTED] /home/lilyevsk/workspace/lex $ m2 install [INFO] [INFO]

Re: 'maven.repo.local' not honored by all

2005-04-11 Thread Jamie Bisotti
Anyone??? On Apr 8, 2005 3:12 PM, Jamie Bisotti [EMAIL PROTECTED] wrote: In my project.properties file, I set maven.repo.local=C:\blah\repository. I then proceeded to blow away %HOMEDRIVE%%HOMEPATH%\.maven\repository. Then I ran maven java:compile. I see where it downloads my project;s

Re: Generate manifest classpath entry?

2005-04-11 Thread Eric Giguere
Yes it is Take a look at the jar plugin properties: http://maven.apache.org/reference/plugins/jar/properties.html In short, you must set the property: maven.jar.manifest.classpath.add=true And in your project.xml, in each dependency, add the following property: properties

Re: Another build problem

2005-04-11 Thread Brett Porter
It is probably because this file: http://www.ibiblio.org/maven/commons-logging/poms/commons-logging-1.0.4.pom was published with the wrong version, so the conversion tool was unable to convert. I have corrected it, and hopefully within 4 hours it will have propogated to ibiblio. You should report

Re: 'maven.repo.local' not honored by all

2005-04-11 Thread Brett Porter
This should work, and I've never seen this happen. Please file it in JIRA for further investigation. - Brett On Apr 12, 2005 2:16 AM, Jamie Bisotti [EMAIL PROTECTED] wrote: Anyone??? On Apr 8, 2005 3:12 PM, Jamie Bisotti [EMAIL PROTECTED] wrote: In my project.properties file, I set

REPOST: variable expansion in xdoc's?

2005-04-11 Thread Mike Traum
I'm reposting this because it seems very basic but have not yet seen a way to do this. I hope someone has a solution. Thanks, Mike --- Mike Traum [EMAIL PROTECTED] wrote: I'm trying to obtain some of my pom variables in my user xdocs. I've been looking through all of the xdoc code and I

Dependencies' Licenses list

2005-04-11 Thread Diego Ballve
Hello, Is there a plugin for listing all the licenses used by a maven project dependencies (and all their dependencies recursively)? I could not find anything like that among the listed plugins.. Does anybody know anything about it? What I'd like to do is, for instance, to have dependencies.html

Re: Dependencies' Licenses list

2005-04-11 Thread Brett Porter
Nothing at present, though we have thought of doing some work in this area. Theoretically, you should not have to drill down because the libraries should be license in such a way that that is all you have to accept, but it can get complicated. (eg, if foo uses bar and bar is GPL, foo has to be

Re: REPOST: variable expansion in xdoc's?

2005-04-11 Thread Jörg Schaible
Eric Giguere wrote: Hello This link was posted releated to variable values in the navigation.xml. Maybe this will also work in other xdoc documents..? Check it out: http://cvs.apache.org/viewcvs.cgi/maven-plugins/pdf/src/plugin-test/xdocs/navigation.xml?rev=1.2view=markup Hope it helps

RE: a practical multiproject build

2005-04-11 Thread Durham David R Jr Contr 805 CSPTS/SCE
You can filter the subprojects on which you want to call a goal by adding the following on the root maven.xml : goal name=myGoal maven:reactor basedir=${basedir} includes=*/project.xml postProcessing=false goals=myGoal

Re: Dependencies' Licenses list

2005-04-11 Thread Diego Ballve
Thanks Brett, Yes, libreries should respect dependency libraries' licenses, but since whoever distributes them at last is the one to blame, I need to be sure they are ok. The compiled list would help that task, now performed lib by lib. GPL is one of the cases - and a description would be needed

Re: 'maven.repo.local' not honored by all

2005-04-11 Thread Mark Lowe
If its useful I've got the same thing happening on OSX.. I symlink to a setup script that sets the varibles as I like them and its not digging.. #maven setup script. export M2_HOME=/Developer/Java/Maven2 export PATH=$M2_HOME/bin:$PATH export JAVA_HOME=/Library/Java/Home export

Parsing POMs (Maven 1.x) API - tips?

2005-04-11 Thread Arik Kfir
Hi, I need to parse a POM to read its properties and data. Currently I am opening a MavenSession to do this and it works good. There are drawbacks, however: 1. If the file changes, I need to reopen a MavenSession to have the POM updated 2. Performance-wise What would be the best way to do

Re: [M2] plugins language?

2005-04-11 Thread Mark Lowe
On Apr 11, 2005 6:04 PM, Brett Porter [EMAIL PROTECTED] wrote: Java. Thats my sort of talk.. Talk of beanshell and groovy makes me nauseous. The instructions to check out the source code give the cvs details, is this the head version or is there a svn repository? I'm not fussy which I've just

Re: Parsing POMs (Maven 1.x) API - tips?

2005-04-11 Thread Milos Kleint
http://cvs.mevenide.codehaus.org/mevenide-config/src/java/org/mevenide/context/ package over the mevenide. by giving it a directory with pom it loads the project.xml and properties files. IQueryContext con = new DefaultQueryContext(directory); Project proj =

Re: Parsing POMs (Maven 1.x) API - tips?

2005-04-11 Thread Arik Kfir
Milos Kleint wrote: by giving it a directory with pom it loads the project.xml and properties files. IQueryContext con = new DefaultQueryContext(directory); Project proj = con.getPOMContext().getFinalProject(); 10x milos - sounds great. Does it implement the parsing by

Re: Parsing POMs (Maven 1.x) API - tips?

2005-04-11 Thread Milos Kleint
On Apr 11, 2005 9:57 PM, Arik Kfir [EMAIL PROTECTED] wrote: Milos Kleint wrote: by giving it a directory with pom it loads the project.xml and properties files. IQueryContext con = new DefaultQueryContext(directory); Project proj = con.getPOMContext().getFinalProject(); 10x

Maven2 maven.jar properties

2005-04-11 Thread Ilyevsky, Leonid (Equity Trading)
In maven2, how do I specify the classpath, main class for the manifest? How I specify a manifest file to include? If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print,

Re: 'maven.repo.local' not honored by all

2005-04-11 Thread Jamie Bisotti
I'm seeing the problem on Windows XP SP2, with Maven 1.0.2; haven't even looked at Maven 2 yet. Jamie On Apr 11, 2005 2:36 PM, Mark Lowe [EMAIL PROTECTED] wrote: If its useful I've got the same thing happening on OSX.. I symlink to a setup script that sets the varibles as I like them and

[Test Goal - Junit] Where have SystemOut and SystemErr gone ?

2005-04-11 Thread Cyrille Le Clerc
Hello, When I run my test goal with MyTest.java, I can not find in TEST-MyTest.xml the output of SystemOut and SystemErr. Instead, I have empty elements system-out![CDATA[]]/system-out system-err![CDATA[]]/system-err . I try to play with junit task parameters without success.

possible to specify JAVA_HOME?

2005-04-11 Thread Chris DeJong
I'm building several project with maven, some of which build with a JAVA_HOME set to 1.4, some with 1.5 (aka Java5). So far, I can't get the 1.4 projects to build with a 1.5 JAVA_HOME, even if I set maven.compile.executable and maven.compile.source to 1.4. The build fails on our xjc task.

Re: possible to specify JAVA_HOME?

2005-04-11 Thread Arik Kfir
I also had a problem with java1.5+maven - what I did is modify the maven installation - I don't remember exactly what I did, but I know my "MAVEN_HOME/lib/endorsed" dir is empty, and I remember modifying the maven.bat file to NOT add the "-Djavax.xml.parser." and

Re: possible to specify JAVA_HOME?

2005-04-11 Thread Mark Lowe
Use a shell script or batch file so you dont need to mess with maven's scripts, this makes things easier when upgrading maven also.. On windows your cursed with no symlinking but its still workable. Mark On Apr 11, 2005 11:36 PM, Arik Kfir [EMAIL PROTECTED] wrote: I also had a problem with

[Jelly custom tag] Ant FileSet in a custom tag body

2005-04-11 Thread Cyrille Le Clerc
Hello, I needed a kind of test:test goal that can be called in maven.xml specifying the FileSet of involved Junit test cases (test:test relies on maven.test.reportsDirectory). To reach this need, I developped my own tag and I would like to pass the fileset as the body of the tag (see

Re: 'maven.repo.local' not honored by all

2005-04-11 Thread Mark Lowe
I've never found this a problem with maven 1.* on any platform. How do you set %HOMEDRIVE% ? and (excuse the dumb question) what happens when you type echo %HOMEDRIVE% Mark On Apr 11, 2005 9:26 PM, Jamie Bisotti [EMAIL PROTECTED] wrote: I'm seeing the problem on Windows XP SP2, with Maven

Re: REPOST: variable expansion in xdoc's?

2005-04-11 Thread Mike Traum
Thanks for responding. Hopefully, this will be possible soon. I just submitted a patch which makes this possible. Here's the issue: http://jira.codehaus.org/browse/MPXDOC-140 mike --- Jörg Schaible [EMAIL PROTECTED] wrote: Eric Giguere wrote: Hello This link was posted releated to

Deploy

2005-04-11 Thread Ilyevsky, Leonid (Equity Trading)
John, How about deployment? Can I specify deploymentRepository ?See exception below. Thanks! Leonid [EMAIL PROTECTED] /home/lilyevsk/workspace/lex $ m2 deploy:deploy [INFO] [INFO] Building null [INFO]

Re: [M2] plugins language?

2005-04-11 Thread Brett Porter
It's in CVS, but only for a short time. I'll make sure the site stays up to date this time :) Cheers, Brett On Apr 12, 2005 4:42 AM, Mark Lowe [EMAIL PROTECTED] wrote: On Apr 11, 2005 6:04 PM, Brett Porter [EMAIL PROTECTED] wrote: Java. Thats my sort of talk.. Talk of beanshell and groovy

Re: Deploy

2005-04-11 Thread Brett Porter
yes, distributionManagement repository idmy-deploy-repo/id urlscp://dist.mycompany.com/path/to/deploy/url /repository /distributionManagement We currently support file and SCP deployments. FTP should work if you add the wagon-ftp 1.0-alpha-2 JAR to your project. Username and

Re: Maven2 maven.jar properties

2005-04-11 Thread Brett Porter
For the JAR plugin: configuration archive manifestFile.../manifestFile (not required to include the latter) manifest mainClass.../mainClass /manifest /archive /configuration see: manifest element:

[M1] Multiproject Frustration #1 - 'Clean' loads dependencies! Huh?

2005-04-11 Thread Trudy Cool
Hi Folks, I'm just getting started with Maven and not sure when the behaviour I expect is the behaviour intended by the authors. Either of the following commands fails the same way... maven -o -Dgoal=clean multiproject:goal or maven -o multiproject:clean Both result in :

Re: [M1] Multiproject Frustration #1 - 'Clean' loads dependencies! Huh?

2005-04-11 Thread Brett Porter
you must clean and install at the same time, unfortunately - this is a known limitation in the Maven 1.x architecture. - Brett On Apr 12, 2005 9:12 AM, Trudy Cool [EMAIL PROTECTED] wrote: Hi Folks, I'm just getting started with Maven and not sure when the behaviour I expect is the behaviour

Re: [M1] Multiproject Frustration #1 - 'Clean' loads dependencies! Huh?

2005-04-11 Thread Trudy Cool
Dear Brett you must clean and install at the same time, unfortunately - this is a known limitation in the Maven 1.x architecture. Yeesh! Sorry! I hadn't seen that, or don't remember seeing it. Thanks for the speedy reply! TC __ Yahoo!