What is current status of repositorytools-plugin ?

2008-09-03 Thread Insitu
Hello, The question is in the title... -- Arnaud Bailly, PhD OQube - Software Engineering http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Best practice for handling multi-modules version numbers

2008-06-24 Thread Insitu
Hello again, I am wondering whether my question is: 1. obvious 2. silly 3. too specific :-) Isn't this something that lot of people are coping with everyday ? Is there something I should know about version management in multi-modules build ? I did already some refactoring using at toplevel t

Weird error using war overlays

2008-05-19 Thread Insitu
Hello, We are running into a strange problem with the war plugin (v. 2.1-alpha-1). We are trying to use overlay between two webapps, both using jspc plugin to precompile jsps. To enable jspc, we need to add the following pom fragement:

Re: Multi-module Site menu

2008-03-11 Thread Insitu
Erik Husby <[EMAIL PROTECTED]> writes: > What would be the best way to generate the module menu? Hello, There seems to be complex interactions between site generation and various parts of the poms. Something I have seen worked is: - set URL for all modules to the right 'final' one, so that they

Re: Javascript support

2008-02-18 Thread Insitu
Manos Batsis <[EMAIL PROTECTED]> writes: > > Is there something you need beyond a jslint report for syntax > errors/best practices in general? You can get a jslint report from > jstools see [1] for an example. Nicolas' javascript plugin over at > codehaus also offers jslint checking. > Thanks for

Javascript support

2008-02-18 Thread Insitu
Hello, I would like to know what is the current status/plans of the various javascript handling plugins out there. Few months ago there has been some discussions on this topic and some talks about merging projects. I am currently using jstools plugin, with jsunit for test execution, and would like

Re: [m2] Differences development / Deployment

2008-02-05 Thread Insitu
Karl Heinz Marbaise <[EMAIL PROTECTED]> writes: > Hi there, > > i have got a little problem (or misunderstanding) with Maven 2: > > I have configured an entry for my issueManagement with an URL in the > POM. Ok...so far so good... > > But i would like to have different URL's if i'm working on my >

Re: [m2] Filtering web.xml?

2008-02-04 Thread Insitu
Hello, I had similar problem with a webapp I developed few months ago, so I used this war filtering feature to add build number and deploy time and other informations to jsp files as comment tags filtered by maven. Regards, -- Arnaud Bailly, PhD OQube - Software Engineering http://www.oqube.com

Re: [m2] Filtering web.xml?

2008-02-03 Thread Insitu
"Allen, Daniel" <[EMAIL PROTECTED]> writes: > I'm building a web application (packaging WAR), and I need to run the > web.xml file through a filter to set certain configutation values. I > tried adding it to a tag, but that causes Maven to make a > copy of it and put it in WEB-INF/classes subdire

Using maven-surefire-report-plugin

2008-01-29 Thread Insitu
Hello, I ran into some problem using maven-surefire-report-plugin. I want to use this plugin to format a report which is custom generated by another plugin. I did the following: http://maven.apache.org/POM/4.0.0"; net.courtanet maven-benefit-mozunit-plugin ${basedir}/

Re: Producing 2 JAR's with exclusive content

2008-01-20 Thread Insitu
Richard Gal <[EMAIL PROTECTED]> writes: > Hello > > Could somebody help me with the following problem: > > I have a project that uses some native libraries (dll's). I would like > to create 2 JAR artifacts out of this project > - one with the Java classes of the project and > - another with nothin

Re: Dependency between projects....

2008-01-14 Thread Insitu
Hello, May I suggest that you break circular dependency ? Circular dependency usually means that some module is waiting to be born, and is badly handled by most build systems I think (at least most build systems I know). As for tagging, it depends on the pom tag and maven-release-plugin configur

Re: Packaging HTML/JavaScript files into WAR from outside project

2008-01-12 Thread Insitu
> > When building the java webapp, I'd like some HTML and JS files to be > packaged into the WAR, but those files live in the "html" and > "javascript" directories instead of in "java/src/main/webapp". What's > the appropriate plugin to use in this case? > Hello, Don't know if it's possible, but t

Re: Remote repository with self signed cert

2008-01-12 Thread Insitu
Hello, I managed to deploy/download from https sites with client side authentication following this guide: http://maven.apache.org/guides/mini/guide-repository-ssl.html Maybe you could provide more information on your configuration (pom + settings) ? Regards, -- Arnaud Bailly, PhD OQube - Sof

Re: Continuum and company pom

2007-12-27 Thread Insitu
Hello, According to the page you point at: Note : the pom is searched in central repository and the repositories available for the active profiles from you $user.home/.m2/settings.xml So you should define somewhere a settings.xml file for the continuum user (or better a global settings.xm

Re: Maven Variable to take the system date?

2007-12-27 Thread Insitu
Hello, The plugin is located, as expected, on the central repository. (eg. http://repo1.maven.org/maven2/org/codehaus/mojo/buildnumber-maven-plugin/) What is your problem ? Regards -- Arnaud Bailly, PhD OQube - Software Engineering http://www.oqube.com --

Re: Maven Variable to take the system date?

2007-12-27 Thread Insitu
Hello, You can use this plugin without references to any SCM whatsoever: http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html Regards, -- Arnaud Bailly, PhD OQube - Software Engineering http://www.oqube.com ---

Re: Maven Variable to take the system date?

2007-12-27 Thread Insitu
Hello, You could use http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/introduction.html HTH -- Arnaud Bailly, PhD OQube - Software Engineering http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: a question

2007-12-23 Thread Insitu
michel <[EMAIL PROTECTED]> writes: > Hello, > > I have just installed Maven 2.0.8 on Windows XP SP2. > Commands do not seem to work-- and I cannot find the response in the doc. > It is my first installed version of Maven, and I don't use a proxy... > > Please could you help me ? Hello, It sometim

Re: Maven site plugin for parent of multimodule project behaves differently in non-recursive mode

2007-12-23 Thread Insitu
Olivier Dehon <[EMAIL PROTECTED]> writes: > Since Continuum builds the parent project in non-recursive mode, this is > a bit annoying, as all the parent sites deployed via site-deploy from > Continuum have broken links to their children modules. > > Is there a fix or a workaround? > HEllo, I had

Re: Unit test strategy for testing a java.io.File in maven2?

2007-12-20 Thread Insitu
Thanks for the info about basedir property, I was not sure of this. REgards, -- Arnaud Bailly, PhD OQube - Software Engineering http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

Re: Unit test strategy for testing a java.io.File in maven2?

2007-12-19 Thread Insitu
HEllo, "Heinrich Nirschl" <[EMAIL PROTECTED]> writes: > > I seem to miss something, why does > > new File("test/resources/myImages") > > not work? Because you can never be sure that the current directory is the root directory of your project. You can define environment variables in the surefire

Re: using resources from a jar file

2007-12-13 Thread Insitu
Hello, If you extract your XML files into target/classes, this may mean that you want to load them through your classpath loading mechanism. You could use the jars as is in your final assembly/application,adding them to your loaded classpath. That could simplify your pom. But there may be other re

Re: PluginManagement and reporting configuration

2007-12-12 Thread Insitu
Dennis Lundberg <[EMAIL PROTECTED]> writes: > Unfortunately / only works for build plugins > and not for reporting plugins. > > See http://jira.codehaus.org/browse/MNG-1931 > Thanks Dennis for your quick answer. The issue is quite old indeed :) and I should have ran into it earlier. Regards, --

Re: [m2] activeProfile overriding

2007-12-05 Thread Insitu
"Mick Knutson" <[EMAIL PROTECTED]> writes: > Is there a way to activate a profile only if there was not one specified on > the command line? ActiveByDefault seems to always be active no matter what. > I vaguely recall that you could use -P+profile et -P-profile to forcefully include/exclude prof

Re: QTP code coverage plugin

2007-11-12 Thread Insitu
"Vishal Pahwa" <[EMAIL PROTECTED]> writes: > Hi > > at the moment we use Quick Test Pro by Mercury to perform our > automated/regession testing as well as we are using maven2.0.6. > > We now have need to include Code Coverage for these tests. We need know > know how many lines of actual code are

Re: Sonatype Book and Repository Configuration

2007-10-29 Thread Insitu
Hello Greg, Setting up webdav in Apache (2.2) is kind of trivial: DavLockDB "/var/lock/dav/lock" Alias /maven2 "/var/www/maven2" Dav On AllowOverride None That said, this is a maven list and your question is rather httpd specific. Did you have a look at /usr/share/doc/apache2 for exam

Re: How to use different databases for tests and the actual application?

2007-10-26 Thread Insitu
jimpo <[EMAIL PROTECTED]> writes: > I am using Maven2 to build my war packet. Base maven configuration is created > with Appfuse http://appfuse.org/display/APF/Home. > > When I do a mvn install (or mvn cargo:deploy), first a test phase executes, > and then the final war is built and installed in t

Re: Generating Test Sources

2007-10-26 Thread Insitu
This is not generally a good idea, as pointed out by Brandon, to p ut generated things under src/. The basic contract, I think,is that src/ is immutable and never written to by maven: everything is put in build directory; Regards, -- OQube < software engineering \ génie logiciel > Arnaud Bailly,

Re: jsunit integration

2007-10-22 Thread Insitu
s[i] = "c:/program files/Mozilla Firefox/firefox.exe"; } if ( "iexplorer".equalsIgnoreCase( browsers[i] ) ) { browsers[i] = "c:/program files/internet explorer/iexplore.exe"; } }

jsunit integration

2007-10-22 Thread Insitu
Hello, I am working on integrating jsunit (http://www.jsunit.net) into maven. I would like to share some thoughts and request some advices avout the best way to do that integration. Right now, I have a sample (maven) project that executes jsunit tests from maven and generates reports. What I did

Re: Weird problem with running Junit 3 tests

2007-10-19 Thread Insitu
Problem solved. Apologies for the noise... -- OQube < software engineering \ génie logiciel > Arnaud Bailly, Dr. \web> http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

Weird problem with running Junit 3 tests

2007-10-19 Thread Insitu
Hello, I have an annoying problem with running test cases. I have the following test class: public class JsTest extends StandaloneTest { public void testXXX() { ... } } StandaloneTest extends junit.framework.TestCase. I got the following results: -

Re: Testing Help

2007-10-18 Thread Insitu
Hello, here is a list of refs about testing with maven. The first one is specifically targeted at maven developers. http://maven.apache.org/developers/committer-testing-plugins.html http://wiki.rodcoffin.com/index.php?title=Maven_Integration_Testing http://docs.codehaus.org/display/MAVENUSER/H

Re: Fw: Suggested best practice for arranging projects

2007-10-07 Thread Insitu
Hello, Not sure about point 2. but what about collecting the wsdl and API part of the web services in a single project that will be depended upon by the other ones ? This is the standard approach for non J2EE projects and more generally an application of the old segragation of interface and implem

Re: Maven JavaScript Plugin 1.2 released

2007-10-02 Thread Insitu
It works ! Thanks . -- OQube < software engineering \ génie logiciel > Arnaud Bailly, Dr. \web> http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Maven JavaScript Plugin 1.2 released

2007-10-01 Thread Insitu
>> Adam Altemus wrote: >> > Can you give me some information on your environment? I'm pretty sure I >> > know what the error is but, I need to make sure. >> >> Looks like a java 1.4 environment trying to compile java 1.5 to me ;-) >> >> >> Manos hello, This problem has sometimes bitten me in the

Re: Maven JavaScript Plugin 1.2 released

2007-10-01 Thread Insitu
Hello, When trying to build it from sources, I got: [INFO] Scanning for projects... [INFO] [INFO] Building MobilVox Maven JavaScript Plugin [INFO]task-segment: [install] [INFO] -

Re: problem deploying snapshots

2007-09-27 Thread Insitu
Hello, This is normal maven behavior for snapshots deployment: each snapshot is deployed with a unique version number. The metadata reflects this and defines the lates snapshot so that when you ask for foo:bar:1.0-SNAPSHOT you really get foo:bar:1.0-2342344234665.2423. I think you can change this

Re: Improving Maven Site Docs

2007-09-27 Thread Insitu
"Lee Meador" <[EMAIL PROTECTED]> writes: > If XML is the problem for Maven, why is it not for Ant. Can anyone claim > that a makefile's syntax is any easier to understand? In addition, make > isn't procedural or sequential and that didn't, back in the day, generate > loads of comments. > > It's no

Re: Replacing Proprietary Build System With Maven

2007-09-27 Thread Insitu
> > B API (B-I) depends on artifact A1. B implementation (B-P) depends on > the B API (obviously) and transitively on artifact A1. > > C API (C-I) does not depend on anything. But C implementation (C-P) > depends on artifact A2 as well as APIs for B (B-I) and C (C-I) and > transitively on artifact

Re: Using maven for JavaScript projects

2007-09-27 Thread Insitu
If I want to contribute something, where do I send patches ? -- OQube < software engineering \ génie logiciel > Arnaud Bailly, Dr. \web> http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Why Maven is Hard?

2007-09-27 Thread Insitu
"Lally Singh" <[EMAIL PROTECTED]> writes: > On 9/27/07, Wayne Fay <[EMAIL PROTECTED]> wrote: >> On 9/26/07, Tomasz Pik <[EMAIL PROTECTED]> wrote: >> > Example - please, try to find out how to skip executing of tests >> > during build starting from http://maven.apache.org Answer is: you never eve

Re: Using maven for JavaScript projects

2007-09-27 Thread Insitu
Hello, Just jumping in to show my interest. I have started working on tool for javascript analysis based on jslinker, a somewhat dead or zombie project in dojo. And of course, I want to integrate it with maven (I started by mavenizing jslinker which is quite a mess). As there seems to be some inter

Re: Improving Maven Site Docs

2007-09-27 Thread Insitu
Hello, I would like to throw my 50cts in the discussion, drawn from my experience teaching maven and consulting about software quality and SDP in general, so-called "maven expert" - not that I claim the title anyhow :-). The first piece of information that is missing, IMHO, is a bird's eye view o

Re: Problem compiling project with WAR dependency

2007-09-26 Thread Insitu
cdesaint <[EMAIL PROTECTED]> writes: > Hi All, > > I've got a couple of projects, 1 is a WAR project, another is a JAR project > which needs to depend on the java classes in the WAR. Normally, you > wouldn't do this, but in this case, the JAR project is for unit tests and > wants to be able to in

Re: Resource relative paths in test cases...

2007-09-26 Thread Insitu
James Depaul <[EMAIL PROTECTED]> writes: > Hello - > > I'm working on maven-izing a project that's composed of three modules. I > have the POMs configured with proper dependencies. Compile all works now > and now I'm tying to execute the Test Cases and have some problems - it has > to do with ho

Re: Replacing Proprietary Build System With Maven

2007-09-26 Thread Insitu
Paul Duffin <[EMAIL PROTECTED]> writes: > I have been looking at having separate poms for API and implementation > and bundle. I can build the bundle (just think JAR if you don't know > what that is) by aggregating the classes/resources from the API and > implementation into one directory and then

Re: unit-testing of code-generating maven plugin

2007-09-26 Thread Insitu
Thomas Fischer <[EMAIL PROTECTED]> writes: > Hi Arnaud, > > Thanks for you suggestion. Do you integrate the execution of the > integration test module in the build process of the plugin itself ? In my > current solution, if the code generated by the plugin cannot be compiled or > fails to do what

Re: unit-testing of code-generating maven plugin

2007-09-25 Thread Insitu
Thomas Fischer <[EMAIL PROTECTED]> writes: > Hi all, > > we have a maven plugin which generates java code, and we would like to > unit-test it. One obvious test for such a plugin is to let it generate some > code, compile that code, and unit-test the generated code. > > For this, the following ste

Re: Some questions about site generation

2007-09-24 Thread Insitu
"Bryant Harris" <[EMAIL PROTECTED]> writes: > Hi, > So I've gotten pretty far with Maven (to the point where I'm liking > it more and more). It's a slow slog, wading through articles and > documentation, but I'm starting to like it. I've got a few questions > on site generation > > 1. How

Duplicate class problem

2007-09-24 Thread Insitu
Hello, I have a small and interesting problem I would like to solve. I have 2 projects A and B. - A contains a jjtree source file that is used to generate AST nodes and a parser - B uses A *but* also rewrites some of the AST nodes thus providing its own classes. When I package everything,

Re: How to specify default file encoding?

2007-09-14 Thread Insitu
"Steve Z" <[EMAIL PROTECTED]> writes: > Hello, I want to know how to define default file encoding. > > first, could I specify file encoding when creating: > mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app ... > such as appending one param like this -Dencoding=UTF-8 > so the ge

Re: Subversion SCM plugin and --non-interactive parameter

2007-09-14 Thread Insitu
Paul MERLIN <[EMAIL PROTECTED]> writes: > Hi all, > > I'm trying to use the maven-release-plugin. Our SVN is only accessible on > https with ssl mutual authentication. Yes we have to type our P12 password > every time we do a svn operation. That's the way it is ... > Just curious, why don't you

Re: Including an assembly in another assembly

2007-09-13 Thread Insitu
Paul Austin <[EMAIL PROTECTED]> writes: > Say I have two projects A and B. > > Project A has a custom bin.xml assembly generating A-1.0-bin.zip. > > Project B is an enhancement to A with some extra jar files and also has > a custom bin.xml assembly which takes the whole of the unpacked > A-1.0-bin

Re: Javadoc in an assembly

2007-09-12 Thread Insitu
"Brian E. Fox" <[EMAIL PROTECTED]> writes: >>If you dare maven-dependency-plugin. > > Hey what does that mean? j/k > BTW, what does j/k means ? > --Brian -- OQube < software engineering \ génie logiciel > Arnaud Bailly, Dr. \web> http://www.oqube.com -

Re: Javadoc in an assembly

2007-09-12 Thread Insitu
"Brian E. Fox" <[EMAIL PROTECTED]> writes: >>If you dare maven-dependency-plugin. > > Hey what does that mean? j/k Hmm, nothing wrong about the m-d-p :) And this may not be very english too. Just referring to some example I saw today (about self-contained jars) where this plugin was a bit abused,

Re: two test directories

2007-09-12 Thread Insitu
Hello, You could use http://mojo.codehaus.org/build-helper-maven-plugin/ to add a test source directory. -- OQube < software engineering \ génie logiciel > Arnaud Bailly, Dr. \web> http://www.oqube.com - To unsubscribe, e-mail:

Re: Javadoc in an assembly

2007-09-12 Thread Insitu
Hello, I posted recently a example of javadoc jarring and inclusion in a third(party project. Addition to assembly follows immediately using dependencySet or if you dare maven-dependency-plugin. -- OQube < software engineering \ génie logiciel > Arnaud Bailly, Dr. \web> http://www.oqube.com --

Re: Custom mojo/lifecycle questions

2007-09-12 Thread Insitu
Hello Anders, I was the one who triggered the mail from Jason as I and lot of other people had the same kind of questions than yours :) The net conclusion I came up to is that if you want to do something with custom lifecyles, you jsut have to live with the three lifecycles that exists right now: d

Re: Custom mojo/lifecycle questions

2007-09-12 Thread Insitu
Hello, In your mvn command, you are invoing esp:install which means: - execute the mojo install in the plugin esp In your mojo's configuration you may have forked a lifecycle which would explain maven's behavior: - validate is executed twice, one for the mojo and once for the lifecycle the p

Re: properties in settings.xml

2007-09-12 Thread Insitu
"Huang, Yan" <[EMAIL PROTECTED]> writes: > Hi, > > I noticed that the "install" phase does not resolve the properties that > are defined in settings.xml. For example, I use a property in my > settings.xml to define the release version: > > > DefaultProfile > > true >

Re: Problem with site generation i18n

2007-09-11 Thread Insitu
Thanks for the pointer. I thought this had something to do with the site plugin instead. regards, -- OQube < software engineering \ génie logiciel > Arnaud Bailly, Dr. \web> http://www.oqube.com - To unsubscribe, e-mail: [EMAIL

Problem with site generation i18n

2007-09-10 Thread Insitu
Hello, I ran recently into a strange problem with site generation. When I add the locale fr, maven fails with the following error: java.lang.IllegalArgumentException: Unmatched braces in the pattern. at org.apache.maven.reporting.AbstractMavenReportRenderer.applyPattern(AbstractMav

Merging javadocs

2007-09-10 Thread Insitu
Following some recent post about javadoc aggregation, I tried to play with javadoc attachments and dependency unpacking with some success and it was quite easy. Here are the poms: For project exporting javadoc: merging-javadoc oqube.maven 1.0-SNAPSHOT 4.0.0 oqube.maven.java

Re: The processing order of Maven2's reactor

2007-09-06 Thread Insitu
"Huang, Yan" <[EMAIL PROTECTED]> writes: > Hello, > > I'm wondering how maven is figuring out the Reactor build order and if > there is a way to tweak this order? If I see there are exact same line > for a particular project twice in this order, does it mean that maven 2 > would build twice? > Ma

Re: How to test a plugin

2007-09-06 Thread Insitu
"William Ferguson" <[EMAIL PROTECTED]> writes: > I haven't found it, so I have to ask. > Have you read this ? http://maven.apache.org/developers/committer-testing-plugins.html That said, I agree this is just some notes on testing tools, note a guide for creating meaningful tests for plugins.

Re: Build javadoc of dependencies?

2007-09-05 Thread Insitu
Hello, This is most probably not possible with the javadoc plugin alone, but this effect could possibly be achieved using javadoc:jar goal and maven-dependency-plugin's unpack goal. This is untested however :) HTH -- OQube < software engineering \ génie logiciel > Arnaud Bailly, Dr. \web> http:/

Re: Explaination of pom

2007-09-05 Thread Insitu
Hello, As the name implies, the packaging pom is for projects consisting only of a pom. This is of great use for: - company/group wide configuration - multi-projects builds - dependencies grouping - ... Take a look at http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.h

Multipage report generation

2007-09-05 Thread Insitu
Hello, I am investigating the multipage report generation abilities of maven. There seems to be a SinkFactory inteface for creating new Sink objects, that could be used in an AbstractMavenReport. Does it work ? Can someone points me to an example that uses this feature ? Thanks in advance, -- OQ

Re: Running heavy tests in the build lifecycle

2007-09-05 Thread Insitu
Hello, Here is some sample POM that exposes what could be done to separate tests into different groups. Note that the same things could be done using the tag for testNG. The interesting thing is that execurtions can be merged (eg. mvn -Ptest1,test2 test) to group several subgroups. http://maven.a

Re: Running heavy tests in the build lifecycle

2007-09-04 Thread Insitu
Kjetil Kjernsmo <[EMAIL PROTECTED]> writes: > > Looking through the source tree, I see that we do allready have a naming > convention, but in terms of directory naming: > > test: > functional/ > integration/ > performance/ > unit/ > > where a test may have a path like: > test/integration/so

Re: Cyclic dependency problem

2007-09-04 Thread Insitu
Hello, I would suggest breaking explicitly the dependency by creating separate projects for the ejbs and the pure java code they encapsulate and expose. HTH -- OQube < software engineering \ génie logiciel > Arnaud Bailly, Dr. \web> http://www.oqube.com

Re: How to define as to which phase the goal is to be executed

2007-08-10 Thread Insitu
"Farhan Sarwar" <[EMAIL PROTECTED]> writes: > Another quick question, Where to define/configure as to which phase the > Mojo/goal is to be executed, so far with what I have read it seems that it's > the Mojo class file which has this annotation for @phase (at class level) to > tell MAVEN about the

Re: How to check for goals in each phase

2007-08-10 Thread Insitu
"Farhan Sarwar" <[EMAIL PROTECTED]> writes: > Hey guys, > > > > Wanted to know if there is a way to determine the goals configured to be > executed in each of life-cycle phases? > > Hello, Maybe this link can answer your questions. Look also in sonatype's and devzuz's books: http://maven.ap

Re: Custom packaging question

2007-08-09 Thread Insitu
"Eric Redmond" <[EMAIL PROTECTED]> writes: > I wrote a little bit about it here - though I suppose it wouldn't hurt going > into more depth. > > http://www.sonatype.com/book/repository.html#tips_and_tricks > > Please read, and request any clarifications so I can fix the book. Thanks :) > Hello, T

Re: Question on adding a dependency

2007-08-09 Thread Insitu
"Farhan Sarwar" <[EMAIL PROTECTED]> writes: > Got a simple question if someone could respond. > > > > All the dependencies that we add in a project's pom are in the form of > groupid ,artifactid and version, so what in case we have some propriety > product/jar for which the maven structure (or l

Re: [m2] How to get access to test resources?

2007-08-08 Thread Insitu
"Mick Knutson" <[EMAIL PROTECTED]> writes: > In my unit test, I have a call to get a test.txt file that live in > src/test/resources/test.txt > > byte[] test = AES.file2byte("test.txt"); > > But it never finds the file > You should access the file using classloader, as the resources are put o

Re: Problems with Java 5 imports

2007-08-08 Thread Insitu
"Eric Redmond" <[EMAIL PROTECTED]> writes: > QDox has been fixed on this for a while, but Maven plugins use the older > version (1.6) and still do not support Java 5 (unless you want to manually > install the code in trunk). > What do you mean ? Providing a patch ? -- OQube < software engineer

Re: Questions on multi-module management

2007-08-08 Thread Insitu
"Zarick Lau" <[EMAIL PROTECTED]> writes: > Approach II: > My another solution is using a tricks with profile. I declare the > the parent pom with en empty modules list: > > > > If profile X is activated, module-a /module-b is added in the modules > list. With this particular profile, maven will

Custom packaging question

2007-08-08 Thread Insitu
Hello, While creating a custom packaging, I ran into slight problems with configuring the components.xml for plexus. I would like to understand what are the roles/differences of the various configuration elements for an artifact and how to define them properly. I can see from maven-core's samples t

Problems with Java 5 imports

2007-08-08 Thread Insitu
Hello, While writing a plugin, I had problems with the following statements: - import static foo.bar.*; - public enum Toto { } The qdox engine choked on these. Is this a known problem ? Shall I file an issue with qdox ? maven-plugin-plugin ? both ? Regards, -- OQube < software engineering \ g

Re: Maven SVN Integration

2007-08-07 Thread Insitu
Steven Crosley <[EMAIL PROTECTED]> writes: > > mvn scm:checkin -Dmessage="This is a test" > > I get a successful build, but the svn executes a file command instead > of sending it to my repository: > > [INFO] [scm:checkin] > [INFO] Executing: svn --non-interactive commit --file /tmp/maven- > scm-9

Re: Strange test execution problem

2007-05-01 Thread insitu
Wayne Fay wrote: > > Things break constantly on Windows due to spaces in directory names. > > Given this works on Linux, I would assume this is your problem. Move > everything to directories without spaces and try again. > > Wayne > Thanks for quick answer ! But then, why does it work in Ec

Strange test execution problem

2007-05-01 Thread insitu
Hello, I have a strange problem running tests with maven. My test first create a directory and a jar in the temporary directory for the user, (property java.io.tmpdir), writes a class file to it, then uses that jar file to pass to a tested class that creates a classloader from it and loads a class