scopeprovided/scope vs. optionaltrue/optional

2010-09-24 Thread Max Bowsher
It seems to me that in a Maven dependency, scopeprovided/scope and optionaltrue/optional have incredibly similar semantics (though there is an implied difference in meaning to humans). Is there actually any circumstances where one vs. the other produces differing behaviour? Max.

Re: Unexpected copying of classes from dependencies

2009-07-14 Thread Max Bowsher
Yang Zhang wrote: For some reason, Maven is pulling in classes from the jar of a dependency and putting them into my target/test-classes/ directory, causing mvn test to fail (since extra Test* classes from that package are getting picked up). Why are these classes being copied? Thanks in

Re: Scope

2009-06-30 Thread Max Bowsher
Sipungora wrote: I need provided transitive scope. Scope provided isn't transitive. Is there a solution for it? Jaikiran wrote: From what i understand of the table here http://www.sonatype.com/books/maven-book/reference/pom-relationships-sect-transitive.html transitive dependencies for a

Re: dlls and runtime dependencies

2009-06-02 Thread Max Bowsher
dkowis wrote: I've searched the mailing lists and they don't quite get far enough on this subject for me. I've got a project, incidentally it's the rxtx.org package, that uses the rxtxSerial.dll. I then have another project that uses that project: Project A | | - Project b |

Re: dlls and runtime dependencies

2009-06-02 Thread Max Bowsher
Martin Gainty wrote: this is a good solution Is there a way to uniquely identify the jar using conventional plugin label attributes: artifactId groupId version (this way projects will be able to reference the installed plugin from repository) You'll be the one creating the jar, you get

Re: problem compiling the project with ubuntu's pbuilder

2009-05-27 Thread Max Bowsher
Jordi Txor Casas Ríos wrote: Dear community. I have a project on Ubuntu that is compiled with maven 2 (version 2.0.8), it compiles and builds perfectly, creating the correct jars. The problem comes when I try to do the same in a chrooted environment, with pbuilder. The maven instalation is

Re: maven-compiler-plugin unpacking dependencies into target/classes

2009-05-20 Thread Max Bowsher
Michael Guyver wrote: Hi there, I'm experiencing some very very strange behaviour in my project. The mvn compile goal is somehow generating/unpacking the following files into my target/classes directory: javax/servlet/ServletRequest.class javax/servlet/RequestDispatcher.class

Re: wanna deploy jar here, sources there, etc.

2008-07-18 Thread Max Bowsher
Lorenzo Bigagli wrote: Dear all, our policy requires different artifacts (jars, sources, javadocs, etc.) to be deployed to possibly different repos. I guess this is possible through deploy:deploy-file, but I would actually like to encode such policy in profiles, so that everything is more

Re: Order of executing plugins changed in 2.0.9 ?

2008-04-16 Thread Max Bowsher
Bernhard David wrote: in maven 2.0.8 I can put the following in a pom to execute first cargo:start then cargo:deploy in the pre-integration-test phase. In 2.0.9, maven executes deploy first, which breaks the build. VUB Stefan Seidel wrote: AFAIK, the execution of plugins in the same phase is

Re: Is a version like 1.4.1-ea-SNAPSHOT considered SNAPSHOT version?

2008-03-16 Thread Max Bowsher
Sahoo wrote: A/c to http://docs.codehaus.org/display/MAVEN/Versioning, 1.4.1-ea-SNAPSHOT results in a qualifier=ea-SNAPSHOT. Is this still considered a SNAPSHOT? What I mean by that is, if a new binary is posted in repository, will maven still download it just like it does for a SNAPSHOT

Re: can't untar archiva with cygwin tar 1.18

2008-01-28 Thread Max Bowsher
Dan Fabulich wrote: I'm on Windows XP. Using cygwin tar 1.18, I find that I can't untar archiva; I get A lone zero block at 49260. I've filed it as MRM-671. IIUC, A lone zero block is merely a warning, not an error. Cause is PLXCOMP-38. (I'd comment in the issue, but JIRA is seems

Re: Bad checksums in repo1.maven.org

2008-01-09 Thread Max Bowsher
Dennis Lundberg wrote: There is a JIRA project for reporting repository errors: http://jira.codehaus.org/browse/MEV Wherein this is already reported: http://jira.codehaus.org/browse/MEV-530 Any chance it could be fixed? (And if someone's doing that one, maven-2.0.7.pom, MEV-536 too)

Re: Using inherited tag for plugin

2007-11-13 Thread Max Bowsher
Wayne Fay wrote: If you have a parent-child (multimodule) project set up, and insert the module configuration in the parent pom, then inherited=true means run this plugin with this config in all children modules. Though AFAICS, inherited=true is the default value, so presumably anyone writing

Re: problem setting up servlet and jsp api dependencies as provided scope

2007-09-15 Thread Max Bowsher
thebugslayer wrote: Hi, I understand this problem is more of Eclipse related, but it also involves Maven setup, so I thought maybe one of users here would have come across the same problem and give me some help. I have a webapp project setup in Eclipse Europa with Tomcat6.0, and I am using

Re: maven-clean-plugin: does inheritedtrue/inherited work for you?

2007-08-13 Thread Max Bowsher
Barrie Treloar wrote: On 8/10/07, Max Bowsher [EMAIL PROTECTED] wrote: Try configuration combine.children=append - not tested, but I think that'll do what you want. Is this an undocumented feature as it is not listed in the http://maven.apache.org/ref/current/maven-model/maven.html It's

Re: maven-jar-plugin index=true ignoring files in META-INF/

2007-08-10 Thread Max Bowsher
Zarick Lau wrote: Dear users and developers, I have a module with this files /src/main/resources/META-INF/persistence.xml /src/main/resources/log4j.xml In the pom, I have set indextrue/index for the maven-jar-plugin After package as a jar, the log4j.xml is listed but

Re: maven-clean-plugin: does inheritedtrue/inherited work for you?

2007-08-10 Thread Max Bowsher
Barrie Treloar wrote: With mvn 2.0.7 and maven-clean-plugin:2.1.1 In my parent plugin build pluginManagement plugins plugin artifactIdmaven-clean-plugin/artifactId inheritedtrue/inherited configuration filesets

Re: any way to use legacy layout for local repository ?

2007-08-09 Thread Max Bowsher
nicolas de loof wrote: Hello Lot's of my old projects use maven1, and new one start with maven2. To avoid downloading multiple copy of same jars, I'd like to share the local repository between m1 and m2. Is there any way to make maven2 use legacy repository layout ? No. I believe one of

Re: Relationship of resources and testResources

2007-08-08 Thread Max Bowsher
Eric Redmond wrote: testResources files get copied to the testOutputDirectory. Using surefire, the testOutputDirecotry files should take precedence. Actually, no. In Maven 2.0.7 and below, the main output directory takes precedence. In Maven 2.0.8-SNAPSHOT, this has been fixed. Compare the

Re: Parent and relativePath

2007-07-23 Thread Max Bowsher
Plotnicki, Grzegorz wrote: Hi, I'm curious if it would be possible/feasible/in-line with maven philosophy to be able to specify in the parent/ tag ONLY relativePath/ tag or at least, if the relativePath/ is present be able to skip the version/ tag? It would be impossible, because the

Re: how to configure Default Repository Layout for local repository

2007-07-03 Thread Max Bowsher
Harish Kachoria wrote: I mean to say, If I wants to use maven then I have to use in this way, I have to maintain version, but for my project maintaing of version is not a problem. and Management won't like Idea to have directory for each module. So if Maven is enough flexible then adoptation

Re: Subversion's usage model

2007-06-27 Thread Max Bowsher
javijava wrote: Hi, I visited the URLhttp://maven.apache.org/scm/plugins/add-mojo.html but i don't have any example to see the rigth usage of scm Someona can write a simple example to add files from maven to an subversion repository?? mvn scm:add -Dincludes=foo.txt However, I can't

Re: Status of assembly plugin

2007-06-25 Thread Max Bowsher
John Casey wrote: I'm spending a little time here and there to try to debug a few of the bigger issues for 2.2-beta-2 right now, but it's kind of slow going. We're probably going to have to do at least a -beta-3 before this is over, so we can get -beta-2 out the door more quickly and get some

Re: Settings.xml under source control?

2007-06-08 Thread Max Bowsher
Moe, Vidar wrote: Hi! We would like to have the settings.xml file in a custom location to easily being able to have it under source control. We can control the placement of the settings.xml file by the -Dorg.apache.maven.user-settings but it is cumersome for developers to add this

Re: Maven, DLLs and repositories...how ?

2007-06-05 Thread Max Bowsher
Graham Leggett wrote: We eventually opted to wrap the JNI DLLs / .so files inside a jar, and publish the jar in the repository, including a classifier to show both the platform (windows / linux / solaris) and architecture (x86, amd64, etc). From that point on we only needed to worry about the

Re: [m2.0.6] seems like a classloader issue...

2007-05-15 Thread Max Bowsher
Adrian Herscu wrote: Hi all, In a multi-project P, child #1 (cP1) runs before child #2 (cP2). In cP1 the build uses the maven-antrun-plugin:1.1 and in cP2 the build uses maven-antrun-plugin:1.1-INTERNAL (which patches version of 1.1 in order to use ant-1.7.0 instead of ant-1.6.5). When

Re: System.in and release preparation goals

2007-05-11 Thread Max Bowsher
Grant Ingersoll wrote: From what I can tell, it uses the Prompter interface from the Plexus interactivity component, but how I would initialize it is beyond me. I'm guessing it uses the IoC stuff, but I am not familiar w/ the setup of all of that. Any pointers people have would be greatly

Re: RequireMavenVersion failed

2007-05-03 Thread Max Bowsher
A. Kevin Baynes wrote: I recently installed Maven 2.0.6 and downloaded the Apache FTP project. After running 'mvn clean install' in the main directory I get this strange error : [INFO] [enforcer:enforce {execution: default}] [WARNING] Rule 0:

jar-plugin addClasspath, assembly-plugin dependencySet, snapshot uniqueVersion mismatch woes

2007-05-02 Thread Max Bowsher
A lot of projects where I work use the following idiom: * jar-plugin is configured with addClasspath=true * assembly-plugin is used to collect together all the needed jars with a dependencySet * shell script then invokes java -jar on the main jar, to run the program. We're

Re: CVS doesn't like dots (release plugin)

2007-04-18 Thread Max Bowsher
Crossley, Jim wrote: Hi all, I'm currently digging the Maven release plugin, but I'd like to be able to run it in batch mode, accepting the default values it suggests for version, scm tag, etc. Unfortunately, CVS doesn't seem to like dots '.' in a tag name. Is there any mechanism I can

Re: Release:Prepare committing POM files to SVN

2007-03-29 Thread Max Bowsher
rking999 wrote: Hi, Why does the following command update all my POM files to the next reveision and then commit them to SVN? mvn release:prepare -Ddryrun=true -Dlive --batch-mode I thought that the whole idea of a dry run was to test what the POM file would look like if the release

Re: MAVEN 2.0 and SCM-SVN

2007-03-09 Thread Max Bowsher
Phill Moran wrote: This could be a dumb questions but why does maven SCM default to checkout to /target/checkout? I would expect it to go to a dir under src/java. It also seems that the SCM plug-in does not allow this to be overridden. I have tried setting sourceDirectory and the others to

Re: [m2] where do i put hibernate-properties-ProviderHistory.xml to get merged?

2007-01-22 Thread Max Bowsher
hibernatedoclet tag, then you put your .xml file in the same directory as the .java file it relates to. -- Max Bowsher [EMAIL PROTECTED] http://www.mxtelecom.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: jar plugin and assembly plugin disagree on SNAPSHOT versions

2007-01-12 Thread Max Bowsher
-archiver (just tweaked the dependency in the POM), and deploying both to our internal repository. -- Max Bowsher [EMAIL PROTECTED] http://www.mxtelecom.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Archiva on Jetty

2007-01-06 Thread Max Bowsher
I've created a new wiki page: http://docs.codehaus.org/display/MAVENUSER/Archiva+on+Jetty and put the results of my own experiences there, as well as moving the relevant content from [Archiva FAQ] to that page. Max.

Re: [m2] Version ranges and qualifiers

2006-12-28 Thread Max Bowsher
Beyer,Nathan wrote: Given a set of versions for a JAR in a repo (1.0, 1.2, 2.0-alpha-1) and a version range of [1, 2), should version 2.0-alpha-1 be picked? This seems to be the state of affairs for Maven 2.0.4. I can understand why the algorithm is picking this, since 2.0-alpha-1 is

Re: [m2] Version ranges and qualifiers

2006-12-28 Thread Max Bowsher
franz see wrote: Good day to you, Beyer, Though I haven't experimented on it myself, you may want to play with the classifier / tag of the dependency elment ( see [1] ). They are easily confusable, but a classifiers and qualifiers have little to do with each other. Max.

Repository health report needs configurability

2006-12-12 Thread Max Bowsher
Currently, the health report treats the condition of Artifact's dependency does not exist in the repository as a failure. For central, this condition is actually an important issue, but for any institutional repository, it's entirely normal, since the institution's artifacts are almost certain to

Archiva deployment on Jetty?

2006-12-06 Thread Max Bowsher
Does anyone have a working configuration of Archiva deployed on Jetty, for which they'd be willing to share the Jetty config files? (I'm referring to deployment on a standalone Jetty, here, rather than testing via maven-jetty-plugin). I've tried to get this working myself, but only succeeded by

Re: Archiva deployment on Jetty?

2006-12-06 Thread Max Bowsher
) at javax.naming.InitialContext.lookup(InitialContext.java:351) at org.jpox.AbstractPersistenceManagerFactory.lookupDataSource(AbstractPersistenceManagerFactory.java:171) ... 73 more Max Bowsher a écrit : Does anyone have a working configuration of Archiva deployed on Jetty

Re: Should archiva install jetty-env.xml into WEB-INF/ ?

2006-12-01 Thread Max Bowsher
Emmanuel Venisse wrote: with datasources, jdbc driver must be in jetty lib and not in WEB-INF/lib Oh. Why does the derby jar get put into WEB-INF/lib, then? Max.

Re: Admin user doesn't have admin rights.

2006-11-28 Thread Max Bowsher
Max Bowsher wrote: I'm doing a clean 'mvn install cvs archiva-webapp mvn jetty:run'. Archiva as expected allows me to create an admin user, but having logged in with this admin user, it is as if the 'admin' user does not actually have admin rights! I've seen this on two different computers

Re: Proxy vs. Repository URLs

2006-11-28 Thread Max Bowsher
Joakim Erdfelt wrote: One future feature for archiva is to manage the pom internal repositories to point to itself. In other words, if archiva is told to proxy central, and a pom gets pulled down pointing to a new repository of say ... repository idsf.net/id

Admin user doesn't have admin rights.

2006-11-27 Thread Max Bowsher
I'm doing a clean 'mvn install cvs archiva-webapp mvn jetty:run'. Archiva as expected allows me to create an admin user, but having logged in with this admin user, it is as if the 'admin' user does not actually have admin rights! I've seen this on two different computers now - has anyone else

Re: Admin user doesn't have admin rights.

2006-11-27 Thread Max Bowsher
Wendy Smoak wrote: On 11/27/06, Max Bowsher [EMAIL PROTECTED] wrote: I'm doing a clean 'mvn install cvs archiva-webapp mvn jetty:run'. Archiva as expected allows me to create an admin user, but having logged in with this admin user, it is as if the 'admin' user does not actually have admin

Re: freehep-nar: status documentation?

2006-10-10 Thread Max Bowsher
Mark Donszelmann wrote: Hi updating the docs this week. Please mail me in a week if I have not put them yet. That's excellent news! Thank you very much, -- Max Bowsher [EMAIL PROTECTED] http://www.mxtelecom.com

freehep-nar: status documentation?

2006-10-09 Thread Max Bowsher
* sort of overview of its philosophy and feature set before I attempt that. Thanks, -- Max Bowsher [EMAIL PROTECTED] http://www.mxtelecom.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: How do I suppress archiver Manifest.mf entries?

2006-09-20 Thread Max Bowsher
Karl Uppiano wrote: WebLogic 9.2 does not like the manifest entries… Extension-Name: Specification-Vendor: Implementation-Vendor: Implementation-Title: Implementation-Version: …in the manifest unless I implement the WebLogic SSPI interfaces, which is not on our schedule. I would

Re: Class-Path: ?

2006-09-14 Thread Max Bowsher
Markus KARG wrote: I have added a dependency to FOP-0.20.5 (from the maven main repository) to my project, using compile scope. I can compile and package my jar. But in the jar there is no Class-Path: fop-0.20.5.jar entry created by mvn, so at runtime java -jar my.jar will fail since it

Re: override dependency used by a plugin

2006-09-07 Thread Max Bowsher
Nicolas De Loof wrote: Hello, I'd like to use the jibx plugin (jibx.sourceforge.net) This maven2 plugin declares dependencies to jibx 1.0-RC1. I'd like to override this to use jibx 1.1 on plugin execution. I've added a dependencies element in my plugin configuration, to override jibx-run

Re: How to override jar-plugin dependencies to use a custom version of maven-archiver?

2006-09-05 Thread Max Bowsher
-- Max Bowsher [EMAIL PROTECTED] http://www.mxtelecom.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to override jar-plugin dependencies to use a custom version of maven-archiver?

2006-09-05 Thread Max Bowsher
Jörg Schaible wrote: Hi Max, Max Bowsher wrote on Tuesday, September 05, 2006 10:38 AM: Lakshman Srilakshmanan wrote: Hi Max, Page 58, in Better builds with Maven explains how to achieve this. Essentially you have to do the following. dependencies dependency

How to override jar-plugin dependencies to use a custom version of maven-archiver?

2006-09-04 Thread Max Bowsher
: 2.2) Must I make a custom version of the jar plugin too, to convince it to use a custom maven-archiver? Thanks in advance for any insight. -- Max Bowsher [EMAIL PROTECTED] http://www.mxtelecom.com - To unsubscribe, e-mail

Re: How to override jar-plugin dependencies to use a custom version of maven-archiver?

2006-09-04 Thread Max Bowsher
Max Bowsher wrote: Is it possible to use POM elements to configure the standard maven-jar-plugin to use a custom version of maven-archiver? I am attempting to use: build plugins plugin artifactIdmaven-jar-plugin/artifactId dependencies dependency