composite build w/maven continuum

2005-12-05 Thread Edwin Park
Hi, This is partly a maven question and partly a continuum one. I have a multi-project build where one of the components is made up of several different projects. This is represented in maven2 as a parent project and several child projects. However, when I distribute this component I would like

Re: composite build w/maven continuum

2005-12-05 Thread dan tran
Edwin, how about introduce another project which will uses maven-assembly-plugin to combine those components into one single jar, send use a custom plugin to deploy the big jar. ( I can send you the mojo, which i call deployable-assembly-maven-plugin). However, there is the problem, the big jar

Re: Convert eclipse projects into maven?

2005-12-05 Thread Anuerin Diaz
On 12/5/05, li pan [EMAIL PROTECTED] wrote: That is, I have to do it manually? most probably yes. like i said it is going to be a paradigm shift so you will need to invest some effort. it is the same like migrating from a make system to an Ant system. ciao! BTW, what does ciao! in your post

Re: Preventing some tests from compiling

2005-12-05 Thread Nik Gonzalez
Hi Benedict, plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration testExcludes testExclude

Re: [M2] maven svn

2005-12-05 Thread Emmanuel Venisse
Volker Hartmann a écrit : Hi, I've problems using the release plugin. I'm not very familar with svn so I'm not sure how to create the repository and how to declare it in pom.xml. I tried to find a complete HowTo but without any success!? I always got the following error: *svn*: Cannot

Re: [m2] Executing the assembly plugin with different configurations

2005-12-05 Thread Yossi Shaul
I run the command mvn deploy (for some reason mvn install doesn#8217;t activate the plugin, compile and package cause it to run infinitely). When I put the configuration node directly under the plugin node it doesn#8217;t complain but then the plugin executes only once. Did you try running it

[m2] Adding .properties files to the wars that i build

2005-12-05 Thread [EMAIL PROTECTED]
Hi I am trying to add *.properties files that reside in the java package structure of my project to the war's that I build. ex. java spring controller classes = com/fundamo/accountUser/web/controller resources (properties files) = com/fundamo/accountUser/web/resources I tried the

Re: surefire forking

2005-12-05 Thread Jérôme BERNARD
I did using forkMode=once. On a windows box, it fails because the command-line is too long (there are too many dependencies..). On a UNIX box, I do have a different error: Embedded error: Error while executing forked tests. -classpath: not found Regards, Jérôme. 2005/12/4, Jason van Zyl [EMAIL

[m2] Deplyoment into different repository ?

2005-12-05 Thread Christian Schulte
Hi, I want to deploy some aritfacts into our internal development repository. Currently I have to edit every POM to point the distributionMnagement-Section to the correct repository. Is it possible to deploy without changing the pom ? E.g. I need to provide current snapshots of maven 2 and

Re: [m2] Avoiding duplicate jar files in a generated ear file ?

2005-12-05 Thread Christian Schulte
Christian Schulte schrieb: Hi, when I build an ear file with maven 2 it happens that because of transitive dependencies I get e.g. two struts.jar files in the generated file. What is the recommended way of managing transitive dependencies ? Say I have a dependency which itself has a

Re: M2 Kodo Plugin

2005-12-05 Thread stéphane bouchet
Hi, I actually manage this plugin , and it is hosted on sourceforge. I am not currently working with M2, so feel free to take the m1 code and modify it to do a M2 plugin ! Stéphane Brian E. Fox a écrit : Anyone have an M2 Kodo plugin? We currently use Ant to do it, but I was thinking about

[m2] howto turn arbitrary files into artifacts and reuse them in other projects

2005-12-05 Thread John Allen
Hi, Anyone know how I might access arbitrary files maintained by one project in another project without having the 'source' project available? Are there any ways of providing this kind of arbitrary file/artifact packaging, distribution and unpacking functionality? Note the files i wish to

[m2] Downloading source-code jar files ?

2005-12-05 Thread Christian Schulte
Hi, how do I make maven fetch e.g. junit-3.8.1-sources.jar so that this file gets copied into the local repository ? I tried putting a dependency to it in the root pom like this dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version

RE: [m2] Avoiding duplicate jar files in a generated ear file ?

2005-12-05 Thread Jörg Schaible
Christian Schulte wrote on Monday, December 05, 2005 12:13 PM: Christian Schulte schrieb: Hi, when I build an ear file with maven 2 it happens that because of transitive dependencies I get e.g. two struts.jar files in the generated file. What is the recommended way of managing transitive

Re: Preventing some tests from compiling

2005-12-05 Thread Benedict Heal
Brilliant. Thanks so much. Should I have been able to find this in any documentation? Benedict Nik Gonzalez wrote: Hi Benedict, plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId

New Member - Perhaps an old problem

2005-12-05 Thread Jonathan Brazil
Hello All, I'm a new member of the list and as such I may be presenting a solution to an old problem - please forgive me if so. However, after a lot of searching I could not find a solution to my problem and such thought it might be interesting to publish my solution. The problem arose

RE: M2 Kodo Plugin

2005-12-05 Thread Brian E. Fox
I took at quick look the other day. Isn't most of the M1 plugin in Jelly? I was thinking of looking at the ant plugin to get some java code. -Original Message- From: stéphane bouchet [mailto:[EMAIL PROTECTED] Sent: Monday, December 05, 2005 6:15 AM To: Maven Users List Subject: Re: M2

RE: [m2] howto turn arbitrary files into artifacts and reuse them in other projects

2005-12-05 Thread Brian E. Fox
I have a plugin that can do the copying or exploding. Assuming you can build and deploy, this might complete the cycle. -Original Message- From: John Allen [mailto:[EMAIL PROTECTED] Sent: Monday, December 05, 2005 6:26 AM To: users@maven.apache.org Subject: [m2] howto turn arbitrary

Re: [m2] Adding .properties files to the wars that i build

2005-12-05 Thread Doug Douglass
Koos, First, two things: 1) You say you're trying to add the resources, but never describe what the problem is. I presume that the resources you defined are not being copied to your webapp/war. 2) It is a suggested Maven practice to place resources to be bundled in your artifact (war

Re: M2 Kodo Plugin

2005-12-05 Thread stéphane bouchet
Yes, the m1 plugin is only written in jelly.But I am not a devlopper of Kodo, so i cannot have access to the source code of the ant task... I only use the java code to enhance and create the schema. Look at the solarmatric's docs . Stéphane Brian E. Fox a écrit : I took at quick look the

Including tld's in my jar file

2005-12-05 Thread Jakob Vad Nielsen
Hi, I try to use maven for building a jar package. When building with ant I include all the tld-files in the project into META-INF with the ant target: metainf dir=${tlddir} include name=*.tld/ /metainf Maven only includes the class files from the project. Is there a way to make maven 1.x

Re: [M2] maven svn

2005-12-05 Thread Volker Hartmann
Hi Emmanuel! You must define the tagBase directory like this : mvn -DtagBase=file:///[pathToSVNRepos]/tags/ release:prepare You got it! :-) Thank you for your help. Regards, Volker What I've done: svnadmin create [pathToSVNRepos]/myFirstProject Maven has the following structure.

M2 : Dynamically adding system JARs into Maven build classpath.

2005-12-05 Thread Matthew Wheaton
Hi all, In Maven 1.x, I could get a list of the jars in my version control repository, and dynamically add them to the Maven build path using an ant task. What's important to note, is that I have all my dependency jars in a few, KNOWN directories. I would like to be able to include all those

[m2] site:deploy hangs?

2005-12-05 Thread Mike Perham
I'm seeing behavior where small deploys seem to work fine but larger ones (1MB+) seem to fail every time. I'm using an scp: url to a Linux Fedora Core 4 server. Here's the debug output. Is this a known issue in Wagon or jsch? [DEBUG] Configuring mojo

How to turn filtering on with images in the resource folder?

2005-12-05 Thread Jochen Wiedmann
Hi, I have recently turned on filtering for my resources folder. Worked fine, until I started the application: It turned out, that images are filtered too, becoming corrupt. (Funnily, this was on Windows only. Everything worked fine on Linux.) Two questions: - Can anyone explain the

Re: Including tld's in my jar file

2005-12-05 Thread Doug Douglass
Jakob, Presuming your TLDs are in src/main/tld, you can add the following to your POM build section: resources resource directorysrc/main/tld/directory targetPathMETA-INF/targetPath /resource /resources See http://maven.apache.org/maven-1.x/using/resources.html for more info

RE: How to turn filtering on with images in the resource folder?

2005-12-05 Thread Brian E. Fox
I have my projects setup so only filtered (property) resources go in /resources. Everything else is in webapp/img , etc. I honestly never even thought about putting everything into resources. -Original Message- From: Jochen Wiedmann [mailto:[EMAIL PROTECTED] Sent: Monday, December 05,

Re: M2 : Dynamically adding system JARs into Maven build classpath.

2005-12-05 Thread Martin van den Bemt
1) Do what you are doing now. 2) Create on dependencies.xml (project.xml style) with ALL artifacts and dependencies. (problem is that it will not download anything, in my case it was a solution :) 3) Do something like this in a goal : u:available file=${basedir}/dependencies.xml

Re: M2 : Dynamically adding system JARs into Maven build classpath.

2005-12-05 Thread Martin van den Bemt
Shit :) Your question was about maven 2... Sorry for the noice.. Mvgr, Martin Martin van den Bemt wrote: 1) Do what you are doing now. 2) Create on dependencies.xml (project.xml style) with ALL artifacts and dependencies. (problem is that it will not download anything, in my case it was a

Re: How to turn filtering on with images in the resource folder?

2005-12-05 Thread Doug Douglass
Jochen, Here's a couple suggestions: 1) Put you images in a separate resource directory (e.g., src/main/image) and add another resource stanza to your POM with filteringfalse/filtering 2) Add an excludes stanza to your existing resource and exclude all common image extension, then add

[m2] xdoclet and xref incompatability

2005-12-05 Thread Mike Perham
I have a project which runs the xdoclet-maven-plugin and the jxr-maven-plugin report. The xdoclet plugin is adding a source directory to the project at runtime which the jxr plugin is reporting does not exist. I'm running mvn install site:site and it looks like the generated-sources directory is

Re: M2 : Dynamically adding system JARs into Maven build classpath.

2005-12-05 Thread Jeff Jensen
Yes, we do the same thing. How to solve changed with M2. Now, use scopesystem/scope and systemPath. I think this JIRA discusses what your issue is. Brett described the un-recommended workaround. http://jira.codehaus.org/browse/MNG-1471 I look forward to reading your comments on this... :-)

Re: [m2] Need some direction for my first Maven steps

2005-12-05 Thread Alexandre Poitras
Also, you should take a look at Maven-Proxy. This way the jars will be downloaded one time for the whole enterprise instead of being downloaded for every single developpers. I have set Maven Proxy and my corporation central repository at the same location to avoid having Maven looking on central

Re: M2 : Dynamically adding system JARs into Maven build classpath.

2005-12-05 Thread Matthew Wheaton
Jeff, I added a comment to that issue. If they take systemPath away, as he says, then that'll break me again, for sure. I'm really contemplating NOT using M2. In any case, my workaround to make it truly dynamic, is my build.bat file first calls an ANT script that compiles a DependencyBuilder

RE: maven2 deploy using wagon-ftp

2005-12-05 Thread Michael Fiedler
Thank you for the suggestion. I also getting this error while using alpha-5. Michael -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: Friday, December 02, 2005 6:58 PM To: Maven Users List Subject: RE: maven2 deploy using wagon-ftp You want alpha-5, I had crashes

M2 - control order of inheritence

2005-12-05 Thread Brian E. Fox
I need to filter for all projects in this specific order: default.values user.default.values user.[app].values This is because when multiple filters are used, the last one wins. This will allow developers to override values either on a global basis or per project (or not at all). Since this

compile time check

2005-12-05 Thread Michael Fiedler
I have the following structure where JAR2 depends on JAR1. Parent |- pom.xml | |- JAR1 | |- pom.xml | | |- JAR2 | |- pom.xml The JAR1 and JAR2 projects are developed concurrently, and pom.xml of JAR2 lists JAR1 as a dependency. The parent pom.xml lists JAR1 and JAR2 as modules. All

Re: [M1] preparing release of checkstyle plugin 3.0 with support for java 1.5

2005-12-05 Thread Josh
Works fine for me with Maven 1.1-beta-1 and Maven plugin plugin 1.6. Finally no more parse errors for source files with Java generics, hooray :-) Evidently the new plugin includes unit tests in its reports... is there a property to disable this feature?

RE: maven2 deploy using wagon-ftp

2005-12-05 Thread Mordo, Aviran (EXP N-NANNATEK)
Where can I get alpha-5 version? What is the url? -Original Message- From: Michael Fiedler [mailto:[EMAIL PROTECTED] Sent: Monday, December 05, 2005 1:37 PM To: Maven Users List Subject: RE: maven2 deploy using wagon-ftp Thank you for the suggestion. I also getting this error while

Is there a way to get Maven to report the number of compile errors found?

2005-12-05 Thread Frank Russo

Re: surefire forking

2005-12-05 Thread Miodrag Glumac
I had the same problem. I got the latest code and uncommented the following line in SurefirePlugin.java: // surefireBooter.setJvm( jvm ); This appeared to fix the problem. Stephen Cowx wrote: Hi I get the same error on linux. If I remove the forkModeonce/forkMode the build works. If

RE: maven2 deploy using wagon-ftp

2005-12-05 Thread Michael Fiedler
in your pom.xml file: build extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-ftp/artifactId version1.0-alpha-5/version -Original Message- From: Mordo, Aviran (EXP N-NANNATEK) [mailto:[EMAIL PROTECTED] Sent: Monday, December

Re: M2 : Dynamically adding system JARs into Maven build classpath.

2005-12-05 Thread Matthew Wheaton
All good points Jeff, I'm going to give M2 a try with my workaround, but if even one other thing gets in my way, I'll be reverting my build to Maven 1.x On 12/5/05, Jeff Jensen [EMAIL PROTECTED] wrote: Quoting Matthew Wheaton [EMAIL PROTECTED]: Jeff, I added a comment to that issue. If

RE: [m2] How to install 3rd party libraries to remote repository

2005-12-05 Thread Mordo, Aviran (EXP N-NANNATEK)
Thank you for the fix. But I still have a problem. I used the deploy-file goal to deploy a third party jar file (jsr_api.jar) to my internal remote repository and it does that without problem (deploy the jar file). Now when I compile my application which has a dependency on that jar file, maven

Re: [m2] site:deploy hangs?

2005-12-05 Thread ir. ing. Jan Dockx
Lot's of people seem to have this problem with scp (I do on Mac OS X). Use scpexe instead. On 5 Dec 2005, at 16:34, Mike Perham wrote: I'm seeing behavior where small deploys seem to work fine but larger ones (1MB+) seem to fail every time. I'm using an scp: url to a Linux Fedora Core 4

Question about using Maven with ant tasks

2005-12-05 Thread Howard Lander
Hi all Let me preface what I am saying by admitting that I am a novice with Maven. Please forgive any poorly worded or redundant content. Suggestions about more appropriate mailing lists or forums to get info are always appreciated. I'm trying to use maven for a project I am building

Re: [m2] Avoiding duplicate jar files in a generated ear file ?

2005-12-05 Thread Christian Schulte
Jörg Schaible schrieb: Christian Schulte wrote on Monday, December 05, 2005 12:13 PM: Christian Schulte schrieb: Hi, when I build an ear file with maven 2 it happens that because of transitive dependencies I get e.g. two struts.jar files in the generated file. What is the recommended way

[m2] surefire-report-maven-plugin SNAPSHOT

2005-12-05 Thread Kristian Andersen
Hi, Is there a repository containing snapshots of the surefire report plugin? I cant find it on http://snapshots.maven.codehaus.org/maven2 Regards, Kristian Andersen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[ANN] Maven Eclipse Plugin v2.0 for m2 released

2005-12-05 Thread Fabrizio Giustina
Hi, Several issues found in the precent version of the eclipse plugin have now been fixed and new features added. We are happy to announce the first production quality release of the plugin! The 2.0 release fixes some critical bugs related to multiproject handling and WTP (j2ee projects)

Re: [m2] Downloading source-code jar files ?

2005-12-05 Thread Henry Isidro
Christian Schulte wrote: Hi, how do I make maven fetch e.g. junit-3.8.1-sources.jar so that this file gets copied into the local repository ? I tried putting a dependency to it in the root pom like this dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId

Re: need latest maven-deploy-plugin snapshot

2005-12-05 Thread Allan Ramirez
Hi Dan, It is now deployed. Thanks to John Casey :) regards, -allan dan tran wrote: Hi Allan, Since you committed deploy:deploy-file, could you deploy a snaphost as well. This way my team here does not have to build it from source on our build machines -Dan

Re: [m2] surefire-report-maven-plugin SNAPSHOT

2005-12-05 Thread Allan Ramirez
Hi Kristian, None. I think :) try to check it out from SVN and build it from source. regards, -allan Kristian Andersen wrote: Hi, Is there a repository containing snapshots of the surefire report plugin? I cant find it on http://snapshots.maven.codehaus.org/maven2 Regards, Kristian

[m2] How to change maven.war.src in pom.xml

2005-12-05 Thread Keisuke Matsubara
Hi, I want to configure maven.war.src for fitting my directories. Would someone tell me method ? I could work by default ,but I want to fit pom.xml to my directories. So I configured pom.xml like following ,but it did not work my way. project : build

Re: M2 Kodo Plugin

2005-12-05 Thread clark . rao
Dear , We can re-build it for mave 2, isn't right? thanks. Tel: (020)36315358-328 Fax: (020)36315170 stéphane bouchet

Re: [m2] How to change maven.war.src in pom.xml

2005-12-05 Thread Allan Ramirez
Hi Keisuke, See http://docs.codehaus.org/display/MAVENUSER/FAQs and look for the question How can I configure the equivalent of maven.war.src of war plugin in m2? Hope this helps regards, -allan Keisuke Matsubara wrote: Hi, I want to configure maven.war.src for fitting my directories. Would

Re: [m2] Downloading source-code jar files ?

2005-12-05 Thread Jochen Wiedmann
Henry Isidro wrote: Try this: dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1-sources/version typejar/type scopeprovided/scope /dependency /dependencies If you are using the Eclipse plugin, then a more simple trick is addding the

Re: [m2] Executing the assembly plugin with different configurations

2005-12-05 Thread Allan Ramirez
Hi Yossi, See http://docs.codehaus.org/display/MAVENUSER/FAQs and look for the question How to execute the assembly plugin with different configurations? let me know if it works :) regards, -allan Yossi Shaul wrote: I run the command mvn deploy (for some reason mvn install doesn#8217;t

Do I need to separate between src/java and src/resources? (Was: How to turn filtering on with images in the resource folder?)

2005-12-05 Thread Jochen Wiedmann
Doug Douglass wrote: 1) Put you images in a separate resource directory (e.g., src/main/image) and add another resource stanza to your POM with filteringfalse/filtering That brings me up to another question: I understand that your suggestion is easier for maintaining the POM. OTOH, I do