Re: Corrupt GIF image file resource when filtered on Linux

2007-01-05 Thread Max Cooper
Whatever the cause of the different behavior on Windows versus Linux, binary resources should never be filtered. An image file could contain bytes that equal ${pom.version} (or some other filterable variable) when viewed as a string. Filtering binary files is asking for trouble, and wastes tim

Re: Advice on moving to Maven 2.x

2006-12-07 Thread Max Cooper
On Thu, 2006-12-07 at 09:12 +, Rakesh Patel wrote: > Hi, > > I have just joined a new company which uses Maven 1.x. I have no > experience with Maven at all and have been charged with evaluating a > move to Maven 2.x. > > I am looking for some high-level information about the implications o

Re: DefaultArtifactRepository subversion location?

2006-12-05 Thread Max Cooper
[EMAIL PROTECTED]:~/svn/apache/maven$ find . -name DefaultArtifactRepository.java ./components/maven-artifact-manager/src/main/java/org/apache/maven/artifact/repository/DefaultArtifactRepository.java -Max Ole Ersoy wrote: Hi, Does anyone have a link to the Subversion DefaultArtifactRepository

Re: Maven and Eclipse

2006-11-27 Thread Max Cooper
Jarret, Try this: 1. Run 'mvn eclipse:eclipse' from your Common directory. 2. Starting with an empty workspace in Eclipse, setup the M2_REPO classpath variable. 3. Use the File -> Import -> Existing projects into workspace feature. Choose the "root" directory of your project (NOT Common, bu

Re: starting, then deploying to JBoss?

2006-11-21 Thread Max Cooper
Two things come to mind: * It looks like you are missing the 'configure' goal for jboss-maven-plugin. * My team has had trouble with the jboss:start and jboss:stop goals on Windows. The Windows users on my team run the following scripts directly to start and stop the jboss instance: target\

Re: Unknown file status: 'S' in line Skipped '.'.

2006-11-12 Thread Max Cooper
I don't know why your build failed, but this table of file/dir statii from the Subversion Book may help you figure it out: http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.tour.cycle.examine.status Maybe the svn repo specified on the maven command line does not match the repo (in a precise

Re: JDK 1.5 Problem

2006-11-08 Thread Max Cooper
Run 'java -version' and 'which java' and see what you get. Here's what I get on my Ubuntu 6.06 box with "Java 1.5" installed, configured, and working properly (my project requires JDK 1.5, and we have the pom.xml stuff configured as well): $ java -version java version "1.5.0_06" Java(TM) 2 Run

Re: How to customize "pre-archive" directory?

2006-11-07 Thread Max Cooper
The war plugin will create an "exploded" (pre-archived) version of the webapp in the directory you configure using the "webappDirectory" property. However, it sounds like you might be trying to build the exploded webapp in your warSourceDirectory, which you have configured to be src/webapp. If

Re: maven2+subclipse+svn+m2eclipse plugin

2006-11-07 Thread Max Cooper
Each of your maven modules will be a separate Eclipse project. Eclipse does not support hierarchical project structures (#), so if you want to be able to edit the parent pom in Eclipse, you will need to move it into a module also. Here's my recommendation, based on how my project team uses mave

Re: Why don't Overriding the default destination directory of a web resource?

2006-11-06 Thread Max Cooper
Why don't you just put the files in src/webapp/WEB-INF/app, instead of src/config/app? That would solve your problem, with a minimum of fuss. -Max On Mon, 2006-11-06 at 20:18 -0800, jiangshachina wrote: > Hello, > I want to add some resource files into sub-directory of WAR/WEB-INF, > I'm using fo

Re: Consistency of deployed modules

2006-11-01 Thread Max Cooper
epository on the build machine because the install phase is invoked twice. There should be a more elegant way to do this than this ( IMO ) hack. Thanks, -Moiz -----Original Message- From: Max Cooper [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 31, 2006 2:08 PM To: Maven Users Li

Re: Additional features for maven2 plugin

2006-10-31 Thread Max Cooper
Maven already requires you to define the versions for all of your dependencies before it builds: http://maven.apache.org/pom.html#Dependencies junit junit 4.0 If you mean something else, please describe it more clearly, perhaps with an example. -Max On Wed, 2006-11-0

Re: Consistency of deployed modules

2006-10-31 Thread Max Cooper
Run maven twice: mvn clean install if (success) mvn deploy Build server software like Luntbuild can automate this for you. -Max [EMAIL PROTECTED] wrote: I have a multi-project build. I run a "mvn clean deploy" build every night. Sometimes the builds fail with one of the modules and I end

Re: Migrating to a new build machine

2006-10-30 Thread Max Cooper
What do you use this repository for, specifically? For example, my team has a maven-proxy instance that we use for jars that can't be on public repos because of license issues. We have no other "shared" repos. How does the team access it (web server, Samba share, NFS, ...)? Where is the config

Re: Debug project?

2006-10-30 Thread Max Cooper
version of jboss-maven-plugin, which has it's own run scripts. We modified the script to optionally set debug options in JAVA_OPTS, before the script calls the standard JBoss run.bat script. -Max > a cup of Java, cheers! > Sha Jiang > > > Max Cooper wrote: > > >

Re: Debug project?

2006-10-29 Thread Max Cooper
l or other conf files? Thanks! a cup of Java, cheers! Sha Jiang Max Cooper wrote: It sounds like your primary requirement is "how can I debug my webapp". My project uses Maven to build and deploy a webapp to a server running on the local machine, and then we connect the Eclipse deb

Re: Debug project?

2006-10-29 Thread Max Cooper
It sounds like your primary requirement is "how can I debug my webapp". My project uses Maven to build and deploy a webapp to a server running on the local machine, and then we connect the Eclipse debugger to the local server via the standard Java "remote" debugging interface. -Max On Sun, 2006-

Re: Impossible to build ourproject from scratch

2006-10-27 Thread Max Cooper
I don't have an answer for you, but our project has the same problem. You have to 'mvn install' a plugin that is part of our project tree before you can build from the top of the project. We tried adding a dependency on the plugin module, in hopes that it would cause maven to build the plugin firs

Re: Malformed manifest classpath entry

2006-10-25 Thread Max Cooper
I agree that it is ugly, but the Jar Specification requires the wrapping, see "Line length" in this section: http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#Notes%20on%20Manifest%20and%20Signature%20Files The plugin is doing the right thing. -Max pjungwir wrote: Yeah, I wish maven would

Re: dependcy vs one lib of jars

2006-10-25 Thread Max Cooper
A few ideas... You could write a plugin (or perhaps leverage maven-dependency-plugin and/or maven-assembly-plugin) to produce a zip file containing all the jars, and deliver that with the releases of your webapp(s). Perhaps you would tell the plugin about each of the war projects, and it would

Re: clear separation of source and target

2006-10-23 Thread Max Cooper
solo, When you say "backup", do you mean "commit changes to an SCM system"? Or are you referring to actually backing up a working copy of a module that was checked out from the SCM server (e.g. with a nightly desktop backup system)? On team projects, SCM commits aren't really "backups", sinc

Re: clear separation of source and target

2006-10-20 Thread Max Cooper
Solo, The conventional approach is that Maven will put all build artifacts in the "target" directory. And then you setup your version control system to ignore this directory. It works very well. Unless you have an extremely compelling reason to deviate from this convention, I wouldn't. The d

Re: LIB's in war & ear

2006-10-19 Thread Max Cooper
So perhaps that's why its working for me, without using etc? ;-) Wayne On 10/19/06, Max Cooper <[EMAIL PROTECTED]> wrote: You may need to declare more stuff, see: http://maven.apache.org/plugins/maven-ear-plugin/howto.html Specifically, I think you need t

Re: LIB's in war & ear

2006-10-19 Thread Max Cooper
pi.common common-jar provided The common-jar _is_ in my ear, but the deployment fails as it can't seem to access a class in common-jar On 10/11/06, Max Cooper <[EMAIL PROTECTED]> wrote: Scope is subject to inheritance as well. Deciding where to put it is

Re: System scope and transitive dependencies

2006-10-12 Thread Max Cooper
I would expand that a bit to say that there are three types of repos that I think are common for teams using maven: * the public repos like ibiblio * a repo that your team maintains for your project or organization (often using the "local repo" part of a "maven-proxy" or "proximity" instance)

Re: LIB's in war & ear

2006-10-11 Thread Max Cooper
Scope is subject to inheritance as well. Deciding where to put it is a judgment call. In the context of your whole project, I wouldn't consider a jar that goes in the ear to be "provided". I would only consider it to be "provided" in the context of the war module. So, I would set the scope in

Re: [m204] Issue with transistive dependancies and Springframework

2006-10-10 Thread Max Cooper
Mick, I am using Spring 2.0 and Acegi 1.0.2. Use dependency excludes to suppress the Spring 1.2.7 stuff. -Max Mick Knutson wrote: Is anyone else using spring 2.0 and acegi 1.0.2 It seems acegi 1.0.2 is requiring spring 1.2.7 and adds 1.2.7 and 2.0 into my ear. Is this an issue with the

Re: "mvn eclipse:eclipse"

2006-10-10 Thread Max Cooper
the .classpath file. Thanks, Sybren Max Cooper wrote: 'mvn eclipse:eclipse' goal works for me, and it does NOT create an entry like this: Is there a setting in your pom.xml file that would lead Maven to believe that "." is a Java source directory? Or perhaps there is a

Re: "mvn eclipse:eclipse"

2006-10-09 Thread Max Cooper
'mvn eclipse:eclipse' goal works for me, and it does NOT create an entry like this: Is there a setting in your pom.xml file that would lead Maven to believe that "." is a Java source directory? Or perhaps there is a bug in the plugin that only occurs when you don't follow the Maven direc

Re: SV: Is there any instructional book for Maven-1?

2006-10-03 Thread Max Cooper
I second this recommendation. Maven - A Developer's Notebook is a good book for learning Maven 1. -Max Naess, Ronny wrote: Take a look at "Maven - A Developer's Notebook" ISBN 0596007507, or http://www.amazon.com/Maven-Developers-Notebook-Timothy-OBrien/dp/059600 7507/ref=sr_11_1/102-6924759

Re: [M2] Where to place servlet code in a WAR project?

2006-09-29 Thread Max Cooper
Justin, I am not sure where the "imported_classes" directory is coming from. That is not the normal behavior for Maven. Normally, the setup you describe would result in the sources from src/main/java being compiled into WEB-INF/classes inside the war file. However, be aware that I *DON'T* me

Re: War: Exclude A Transitive Dependency

2006-09-27 Thread Max Cooper
I think you are right: * exclude from project-that-depends-on-j2ee * add dependency for j2ee.jar with 'provided' scope to local project and maybe: * contact the project-that-depends-on-j2ee team to ask if they will use scope=provided for their j2ee dependency in future releases I wonder if you

Re: Property overwriting - resource filtering for sub project

2006-09-25 Thread Max Cooper
The current source for maven-resources-plugin gives project properties a higher precedence than system properties. I think that is backwards (but it is an improvement over the old code, which effectively did not consider system properties for token replacement at all :-)): private void ini

Re: [m2] Simplifying Archetype Plugin Command Line Arguments

2006-09-20 Thread Max Cooper
Since you will need to communicate what commands to run to the developers anyway, it doesn't seem like that much of a burden to have the commands be somewhat complex. Developers, please run: mvn myplugin:new-web (-Dname.of.new.project=)myWebProject ...is not really much different from... De

Re: Strange Compile Error

2006-09-19 Thread Max Cooper
I don't know the solution to your problem, but I have some info and ideas that might help you find a solution... It looks like the compiler is finding .java files in the gwt-user-1.1.10.jar dependency. I read recently that google puts the source code some libs in the jar, and it looks like thi

Re: Modified WAR Plugin

2006-09-15 Thread Max Cooper
your pom.xml file? I thought that a project of packaging war will automatically use the default war plugin... How did you override this behavior? jp4 Max Cooper wrote: My project was using a modified version of the war plugin for a while. I decided that the best solution was to make the plugin

Re: Modified WAR Plugin

2006-09-13 Thread Max Cooper
My project was using a modified version of the war plugin for a while. I decided that the best solution was to make the plugin another module in our project. This solution seemed easier than managing a release process for the modified plugin separately, or requiring team members to do something

Re: Error on compiling a webapp. Strange class is required.

2006-09-05 Thread Max Cooper
I don't know the answer to your question. But I use the JarsBrowser tool a lot to scan for classes in directory trees full of jars: http://cmarton.free.fr/jarsbrowser/ It requires no installation. You can run it from the web page. I setup a "quick launch" style button to run it using this com

Re: probs with profiles - really stuck...

2006-08-25 Thread Max Cooper
I have personally found the profile mechanism to be tricky to setup, but you can generally achieve your goals by applying various activation techniques, etc. Profiles can be activated by properties. You could use a property to activate your dev-crimson profile, specified like 'mvn -DtargetEnv

Re: [m2] eclipse:eclipse and eclipse 3.2 projects within a project suppo

2006-08-25 Thread Max Cooper
Valerio Schiavoni wrote: Hello Max, Max Cooper wrote: If you have a structure like this: root |--module1 |--module2 |--submodule2-1 my structure is a bit simpler, without nested submodules. Okay, like this: root |--module1 |--module2 Max Cooper wrote: ... you would have to make

Re: [m2] eclipse:eclipse and eclipse 3.2 projects within a project suppo

2006-08-24 Thread Max Cooper
If you have a structure like this: root |--module1 |--module2 |--submodule2-1 ... you would have to make sure that you hide/delete/rename the .project file in both the root and module2 directories for the submodule2-1 project to show up on the import. When Eclipse finds a .project file at

Re: [m2] maven.test.skip=true on by default?

2006-08-18 Thread Max Cooper
Put this in your settings.xml: skiptests !maven.test.skip true This will set maven.test.skip to true, as long as you don't set it on the command line. The nice part about this technique is that it DOES allow y

Re: [m2] eclipse:eclipse and eclipse 3.2 projects within a project support.

2006-08-17 Thread Max Cooper
Sorry that this discussion is somewhat off-topic, but I hope that it is okay since there are so many people trying to get hierarchically-organized Maven projects to work well in Eclipse... I setup a workspace using the procedure outlined in this thread. The end result that I get has the root

Re: [m2] eclipse:eclipse and eclipse 3.2 projects within a project support.

2006-08-16 Thread Max Cooper
-Original Message- From: Barrie Treloar [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 5:50 PM To: Maven Users List Subject: Re: [m2] eclipse:eclipse and eclipse 3.2 projects within a project support. On 8/17/06, Max Cooper <[EMAIL PROTECTED]> wrote: I, too, have been anx

Re: [m2] eclipse:eclipse and eclipse 3.2 projects within a project support.

2006-08-16 Thread Max Cooper
I, too, have been anxiously awaiting hierarchical project support in Eclipse. And I thought that it was going to be available in Eclipse 3.2. But this feature was omitted from the Eclipse 3.2 release. The feature is not available yet. -Max Barrie Treloar wrote: With Eclipse 3.2 I was lead t

Re: eclipse

2006-08-15 Thread Max Cooper
If you run 'mvn eclipse:eclipse' from the top level of your project (as opposed to running it individually for each module), the maven eclipse plugin will create "project dependencies" rather than dependencies on the jar files in the repository. I would start by checking to see if you current

Re: Projectstructure

2006-08-15 Thread Max Cooper
Kaiser, Hans wrote: workspace |-- my-app (is also the CVS-module) |-- presentation |-- common |-- web |-- pom.xml (the master pom) Eclipse does not support nested projects, so that structure won't work (or at least won't work well in an Eclipse-friendly way). It is best to

Re: Change profiles when defining a default profile - issue - Maven2.0.

2006-08-10 Thread Max Cooper
Use a property to control which profile is active, perhaps 'targetEnv' or something. For the profile you want to be active by default, use a ! in front of the property name, to make it active when that property is NOT set: !targetEnv Then use the propert

Re: dependency on two versions

2006-07-26 Thread Max Cooper
No. You must exclude the versions you don't want. This can be tricky to do, since dependencies quickly multiply. You could have just one direct dependency and up with MANY inherited dependencies. I have used a technique where I comment-out all the dependencies and add them back in to the proj

Re: deploying jars without version information

2006-07-25 Thread Max Cooper
Having the version number in filenames can be problematic in some environments. For instance, when doing local development it is nice to strip the version number from the war/ear name so that you don't end up with two deployments if the version number changes. Some production environments have

Re: Excluding jars from my ear

2006-07-21 Thread Max Cooper
David, Your ear module should not inherit dependencies that it doesn't need. One solution is to have your ear module NOT inherit from the parent pom. Another solution is to use the section in the parent pom, and then specify which dependencies each module *really* uses in their own poms. al

Re: settings.xml activation activeByDefault setting

2006-07-19 Thread Max Cooper
Mykel, I am glad you posted your experience! I tried an empty the same way you did and assumed that it didn't work. I ended up listing the profile I wanted active in . And then setup an example settings.xml for the rest of my team to active the profile this way. So now my whole team is mis

Re: New user

2006-07-11 Thread Max Cooper
Many jars do not require manual installation. Don't install a jar manually if it is already available on the public repo: http://www.ibiblio.org/maven2/ I recommend reading the free maven2 book (http://www.mergere.com/m2book_download.jsp) to get started. A little time spent doing pure learn

Re: Problem with checksum generation

2006-07-07 Thread Max Cooper
My understanding is that the -Durl param is to tell maven where your repository is. It isn't totally clear, but in your command it looks like you are telling maven to install a jar to the spot that it already exists. That seems like a bad idea, and might be the cause of your troubles. Try it w

Re: RE:Build process

2006-07-05 Thread Max Cooper
Based on the error, I would guess that installing the subversion command line client would solve that problem: http://subversion.tigris.org/project_packages.html Note that you can have subversion, TortoiseSVN, SmartSVN, Subclipse (Eclipse plugin), etc. all installed at the same time, and use them

Re: [m204]jdk 1.5 String too long?

2006-06-27 Thread Max Cooper
Mick, On first glance, that seems like an error from the OS, saying the command line is too long. However, I am surprised that Maven would be invoking javac with a command line. I expected that Maven would invoke the compiler in the same JVM (no command line). If there is some part of your b

Re: hibernate3 extension - No Suitable Driver

2006-06-23 Thread Max Cooper
Look at the page you posted a link to. It clearly shows how to specify your JDBC driver library as an "extension". Do that, and your error will go away. -Max bkbonner wrote: I meant to include this link to the Maven-hibernate3 mojo: http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven

Re: Top-level POM behaviour

2006-06-22 Thread Max Cooper
as you can see project A do have a parent dependency to the top POM. /Lars On Thu, 2006-06-22 at 09:41 +0200, Lars Gråmark wrote: Hej, kontrollera gärna att jag inte skickar nåt jag inte borde skicka. Det är lätt att missa nåt. mvh Lars On Wed, 2006-06-21 at 14:47 -0700, Max Cooper wrote: I w

Re: Top-level POM behaviour

2006-06-21 Thread Max Cooper
I would expect that running install on module A would fail if it really had a dependency on the top-level POM, and the top-level POM was not available in the local repo. You can think of your project as having four modules, A B C and Top. The dependencies you described are: A, B, C depend on

Re: [M2] Ant filer task

2006-06-20 Thread Max Cooper
rebels_mascot wrote: Hey, I'm very confused as how to change from using: in maven 1 to it's eqivelent in maven 2? Should this be included in ? You probably want to change the token in the resource file to match the property name. Based on what you posted above, you would change @s_sql@ to $

Re: how can I use the ReplaceRegExp task in an antrun script?

2006-06-19 Thread Max Cooper
ant ant-nodeps 1.6.5 -Max Max Cooper wrote: I need to be able to use ReplaceRegExp task in an antrun script. However, using ReplaceRegExp requires at least one additional jar in the Ant classpath (see: http://ant.apache.org/manual/CoreTypes/regexp.

how can I use the ReplaceRegExp task in an antrun script?

2006-06-19 Thread Max Cooper
I need to be able to use ReplaceRegExp task in an antrun script. However, using ReplaceRegExp requires at least one additional jar in the Ant classpath (see: http://ant.apache.org/manual/CoreTypes/regexp.html). I don't know how to get the additional jar into the Ant classpath. In my case, I wa

Re: [m2] How to exclude a class from WEB-INF/classes using war plugin

2006-06-14 Thread Max Cooper
Since it is a class file (as opposed to src/main/webapp content), I suspect that you need to exclude it from the compile, rather than trying to exclude it from the webapp. -Max Mark Reynolds wrote: Just wondering if anyone knows the answer to this. Not sure if it is a bug or if I am just not

Re: antrun classpaths

2006-06-14 Thread Max Cooper
This is a bit of a long-shot, but I have noticed that property inheritance doesn't work as described in the docs, thus requiring each property to be explicitly passed along: Maybe a similar technique is required for references? (I haven't tried it, but that is my suggestion.):

Re: NoClassDefFoundErrorfor a few classes that seems to be in the classp

2006-06-10 Thread Max Cooper
Make sure that the specific class(es) you get the exceptions for really are in the jars that exist in your local repo (i.e. rule out the possibility that you got a bad jar file, failed download, or the wrong version, etc.). Maven has some options to verify checksums (-C and -c), though I am no

Re: Maven 2 sources/javadocs installation question

2006-06-10 Thread Max Cooper
My experience is that the Eclipse plugin does setup intra-project dependencies properly. so long as you run 'mvn eclipse:eclipse' from the root of the project (as opposed to running it for each module individually). If I have a project with moduleA and moduleB, and moduleB depends on moduleA, I

Re: Maven Standard Directory Layout

2006-06-09 Thread Max Cooper
wolverine my wrote: The src/main/resources directory contains only the configurations which will be loaded by the classloader? So we really need to study the 3rd party library configurations to see if they are loaded via the classloader... Do you want the files to end up in WEB-INF/classes (i.e

Re: Maven Standard Directory Layout

2006-06-09 Thread Max Cooper
Here are my suggestions, but YMMV: You want these to load via a classloader... src/main/resources/log4j.properties src/main/resources/hibernate.cfg.xml These are just webapp content... src/main/webapp/wherever-you-want-js-files-in-your-webapp/*.js src/main/webapp/wherever-you-want-image-files-in

Re: Maven-IDEA-Plugin documentation?

2006-06-08 Thread Max Cooper
I agree that the navigation is a bit odd. But you can click on "Plugin Documentation" in the "Project Reports" group to get there. Remember that, because you will need to do the same for many other plugins. :-) -Max Stefan Arentz wrote: Thanks, that is very useful. I looked again but I canno

Re: cli parameters vs pom

2006-06-08 Thread Max Cooper
This might work: 1. Make up a name for a property, like assemblyOutputDirectory, or carrots.are.orange (it doesn't matter what the name is, technically). 2. Configure the assembly plugin (in your pom.xml) to use the value of this property as the outputDirectory. blah, blah, xml, blah...

Re: JSP compiler plugin

2006-06-07 Thread Max Cooper
Did I read that correctly that . is your warSourceDirectory? I would expect many issues with that directory structure, though I am not sure if your current issue is related. -Max Alexandre Poitras wrote: Is c.tld located in src/main/resources/WEB-INF/tld? On 6/7/06, Eugeny N Dzhurinsky <[EM

Re: [m2] Is there a way to turn off downloading of poms?

2006-06-05 Thread Max Cooper
Using a proxy (like maven-proxy or proximity) can be employed to reduce the frequency of download errors. You could put fake/generated POMs in your local repo, or in a shared repo, such as a maven-proxy instance. Then maven would find the POMs and stop trying to download them. I grant that s

Re: EAR deploy

2006-06-04 Thread Max Cooper
Here are two maven2 plugins that you may wish to consider: 1) http://mojo.codehaus.org/jboss-maven-plugin/ 2) http://cargo.codehaus.org/Maven2+plugin On my project, I ended up needing more functionality than either of these plugins provided, so I used the jboss-maven-plugin as a base and ext

Re: One more simple question

2006-06-02 Thread Max Cooper
-----Original Message- From: Max Cooper [mailto:[EMAIL PROTECTED] Sent: Friday, June 02, 2006 6:51 PM To: Maven Users List Subject: Re: One more simple question Oh yeah, that's better than my jarName solution. Okay, I think I will stop trying to answer emails today before I giv

Re: One more simple question

2006-06-02 Thread Max Cooper
parameter: outputDirectory in goal: jar:jar maven-jar-plugin ${project.build.outputDirectory}/lib -Original Message----- From: Max Cooper [mailto:[EMAIL PROTECTED] Sent: Friday, June 02, 2006 6:40 PM To: Maven Users List Subject: Re: One more simpl

Re: One more simple question

2006-06-02 Thread Max Cooper
Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: org.apache.maven.plugins:maven-jar-plugin. Reason: ERROR: Cannot overr ide read-only parameter: outputDirectory in goal: jar:jar maven-jar-plugin ${project.build.outputDirectory}/lib -Original Message- From: Max C

Re: One more simple question

2006-06-02 Thread Max Cooper
http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html Set outputDirectory to ${project.build.outputDirectory}/lib in the jar plugin configuration. -Max EJ Ciramella wrote: By default, jars are placed in the root of target, how do you move them to target/lib? ---

Re: maven-was-plugin

2006-06-02 Thread Max Cooper
-plugin also uses some DOS/Windows batch files to work it's magic, you might have to go through those scripts and add quotes to make them work when there are spaces in paths. -Max Max Cooper wrote: I had an issue with the jboss-maven-plugin in cases where there are spaces in the path

Re: maven-was-plugin

2006-06-02 Thread Max Cooper
I had an issue with the jboss-maven-plugin in cases where there are spaces in the path to my project's exploded webapp. One of the jboss-maven-plugin goals constructs a URL with the path as an HTTP parameter value. This was the problem. The solution was to URLEncoder.encode() the path when con

Re: scripts/bin directory

2006-06-02 Thread Max Cooper
I am just another Maven user, so don't take this response as Maven gospel... I assume you mean scripts that end users will run to start your application, or something of that nature. I am not aware of any plugins that do anything with such scripts, so I don't think there is a prescribed locat

Re: Problem with filtering of property files

2006-06-02 Thread Max Cooper
I am not precisely sure what the difference is, but from looking at the filtering code in the maven-resources-plugin in the past, I know that it does treat *.properties files differently than other files. These things might make a difference, too: 1. What delimiters are you using for the token

Re: + ERROR during installing a plugin in maven 2 +

2006-06-01 Thread Max Cooper
Are you disconnected from the internet, or behind a proxy? -Max Serge Emmanuel Pagop wrote: I have this error when I run "mvn install" to install a plugin. Is there someone, that can tell what this means. (ivan) [556] mvn install [INFO] Scanning for projects... [INFO] -

Re: mvn clean and mvn install vs. mvn clean install

2006-05-25 Thread Max Cooper
urces target /classes /test-classes And the clean project doesn't delete the generated-src folders. What do you think about this? Regards -Ingo Max Cooper schrieb: It sounds like you figured it out. In general, maven wants your modules to depend on each other only through artifa

Re: mvn clean and mvn install vs. mvn clean install

2006-05-25 Thread Max Cooper
Maven1 build. And I know they have moved on to Maven2. How does the maven example project handle 'clean' and it's generated sources? That might help identify a solution for your project. -Max Ingo Düppe wrote: Max Cooper schrieb: Post the build output that shows the failu

Re: Notifier from command line

2006-05-24 Thread Max Cooper
The free Better Builds With Maven book available from Mergere has an example plugin that does some kind of email notification. This might serve as a good base for your own custom email notification plugin. See section 5.4.2 of the book: http://www.mergere.com/m2book_download.jsp -Max Wayne F

Re: WEB-INF resources in test

2006-05-24 Thread Max Cooper
I don't have an answer, but I have some comments that may help you find a solution... jdwyah wrote: My tests need to access the templates in WEB-INF/freemarker If I configure my directory with the standard src/main/java src/main/webapp/WEB-INF/freemarker/myTemplate.ftl src/main/resources/appl

Re: mvn clean and mvn install vs. mvn clean install

2006-05-24 Thread Max Cooper
Post the build output that shows the failure. -Max Ingo Düppe wrote: hi, what is the difference between to separate calls of "mvn clean" and then "mvn install" to one call of "mvn clean install". I thought these calls would be equals, but the second one fails within my project. Regards Ing

broken build booby prize (was: how can I make a profile active when a property is NOT set?)

2006-05-23 Thread Max Cooper
the next guy breaks the build? ;-) -john On 5/23/06, Max Cooper <[EMAIL PROTECTED]> wrote: A few things make this skipping the tests by default acceptable for our project: 1. Our tests more than double the run time of our build. Our tests take a relatively long time, so there is a

Re: how can I make a profile active when a property is NOT set?

2006-05-23 Thread Max Cooper
g as we're writing things down for posterity, in 99.999%of cases this is a very, very bad idea. It means you have to go out of your way to test your code, which means the jars you're producing most likely won't be tested. Out of curiosity, what reason did you have for this? -john On 5/

Re: how can I make a profile active when a property is NOT set?

2006-05-22 Thread Max Cooper
John Casey wrote: Try: !X ...activated when the system property is undefined. X!Y ...activated when the system property's value is != Y. HTH, John On 5/22/06, Max Cooper <[EMAIL PROTECTED]> wrote: I guess I should have been more clear. I want a profile to be active ONLY when the

Re: How to notify developers that test(s) fail?

2006-05-22 Thread Max Cooper
Luntbuild (http://luntbuild.sf.net) is another option. -Max Jeff Jensen wrote: For the notification, CruiseControl or Continuum, depending on your needs. This is a separate process from the site gen. -Original Message- From: Dave Hoffer [mailto:[EMAIL PROTECTED] Sent: Monday, May 2

Re: how can I make a profile active when a property is NOT set?

2006-05-22 Thread Max Cooper
have not found a solution yet. -Max Allan Ramirez wrote: Yes, set the profile in the settings.xml via section. http://maven.apache.org/guides/introduction/introduction-to-profiles.html Max Cooper wrote: I know that I can make a profile active when a property is set... X Or when a prope

how can I make a profile active when a property is NOT set?

2006-05-22 Thread Max Cooper
I know that I can make a profile active when a property is set... X Or when a property is set to a certain value... XY Is there a way to make a profile active when a certain property is NOT set? Thanks, -Max - To unsubscribe,

Re: time-constrained repository instability

2006-05-19 Thread Max Cooper
I do think this is an important issue. I like the hash idea. A positive side effect of using hashes is that they can help recover from a bad file transfer. I see hashes for POMs already. This discussion makes me think they are not used. One potential downside of incrementing the version numbe

[m2.0.4] -Dmaven.test.skip=false won't override settings.xml -- bug or intentional?

2006-05-19 Thread Max Cooper
I have maven.test.skip set to true in my settings.xml. The tests are still skipped when I run 'mvn -Dmaven.test.skip=false install'. Is this a bug or is it intentional? SAME QUESTION, MORE DETAIL: === I have maven.test.skip set to true in my ~/.m2/settings.xml file. I d

Re: Maven 2.0: How to Have Multiple Projects Dependent on One Project?

2006-05-15 Thread Max Cooper
Maven2 will do what you want, automatically. (Maven1 was also capable of this, if you explicitly set the eclipse.dependency property on a dependency.) This page shows how to setup a multi-module project with dependencies in Eclipse: http://maven.apache.org/guides/mini/guide-ide-eclipse.html

Re: Adding compile source root from Ant-based plugin [again and still unanswered]

2006-05-10 Thread Max Cooper
I haven't tested this functionality personally, but it looks like the maven-antrun-plugin already has explicit support for what you are describing via the sourceRoot parameter: http://maven.apache.org/plugins/maven-antrun-plugin/run-mojo.html -Max DELHOSTE Fabrice wrote: Hi Ivan, Unfortunat

Re: war resource filtering

2006-05-10 Thread Max Cooper
I also needed some functionality that has been added to the maven-war-plugin but hasn't been released yet (i.e. it is not in maven-2.0.4). I grabbed the source tree for maven-war-plugin from subversion and added it to my project as another module (with a README file to tell my team not to mod

Re: First "Maven Getting Started Guide" example

2006-04-27 Thread Max Cooper
That build succeeded. I ran the same command that you did to see if I would get the same error message logged (about VM_global_library.vm), and I did. I got the same error message, and my build also succeeded. I think your Maven installation is working as it should. Mine works the same way,

Re: Applets

2006-04-26 Thread Max Cooper
You need a multi-project. I have not setup a maven2 project to build an applet that is deployed as part of a webapp, so take my advice with a grain of salt. I would think that you would first need to have a subproject to build a jar file that contains your applet. The applet code should proba

  1   2   >