Re: issue with plugin beeing reused

2007-11-09 Thread nicolas de loof
Not the case.
I only have a parent pom to group modules, and all modules are on the same
hierarchival level.



2007/11/9, Roland Asmann [EMAIL PROTECTED]:

 If one of the ant-runs is defined in a parent to the other, try adding
 inheritedfalse/inherited...


 On Friday 09 November 2007 16:15, nicolas de loof wrote:
  Here is my antrun configuration. As you can see, I'm setting some plugin
  dependencies.
  I'm also using antrun in another module to run a java command line class
  from sql2java, set as plugin dependency.
 
  On the second antrun execution, it's classpath is set from the first one
  (sql2java) and not the expected dependencies.
 
 
  plugin
  artifactIdmaven-antrun-plugin/artifactId
  version1.1/version
  executions
execution
  idcastor/id
  phasegenerate-sources/phase
  configuration
tasks
  taskdef
resource=net/sf/antcontrib/antcontrib.properties /
  taskdef name=castor-srcgen
classname=
  org.exolab.castor.tools.ant.taskdefs.CastorSourceGenTask
classpathref=maven.plugin.classpath /
  available
 
  file=${project.build.directory}/generated-sources/castor
  property=file.exists value=true /
  if
not
  isset property=file.exists /
/not
then
  mkdir
 
  dir=${project.build.directory}/generated-sources/castor /
  castor-srcgen
file=${basedir}/src/xsd/SchemaCdeAcces.xsd
package=sfr.hamlet.commande.daoxml.SchemaCdeAcces
 
 
  todir=${project.build.directory}/generated-sources/castor
  /
/then
  /if
/tasks
sourceRoot
  ${project.build.directory}/generated-sources/castor
/sourceRoot
  /configuration
  goals
goalrun/goal
  /goals
/execution
  /executions
  dependencies
dependency
  groupIdant-contrib/groupId
  artifactIdant-contrib/artifactId
  version1.0b2/version
/dependency
dependency
  groupIdorg.codehaus.castor/groupId
  artifactIdcastor-codegen-anttask/artifactId
  version${castor.version}/version
/dependency
  /dependencies
/plugin
 
  2007/11/9, Roland Asmann [EMAIL PROTECTED]:
   Might be a configuration-error. Please post the part of your POM where
   the ant-run is configured!
  
   On Friday 09 November 2007 15:41, nicolas de loof wrote:
Hello,
   
My project uses the antrun plugin to invoke some custom ant tasks
 that
  
   have
  
not (yet) be re-written as mojos. Thos task generate some code ant
 are
  
   tied
  
to the generate-source phase
   
When I build the project modules all works fine.
   
When I run the eclipse:eclipse goal from the parent project, I get a
classpath issue :
I've dumped the plugin classpath as shown in
  
  
 http://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.h
  tm
  
   l:
   
 [echo] plugin classpath:
  
  
 D:\platina\maven2\repository\net\sourceforge\sql2java\sql2java\2.5.0\sql2
  ja
  
   va- 2.5.0.jar;...
   
This path is the classpath set for a previous use of the plugin, in
  
   another
  
module.
It seems the plugin has been reused by maven, with no consideration
 for
  
   !=
  
dependencies.
   
Known issue ?
Any workaround ?
   
Nico.
  
   --
   Roland Asmann
  
   CFC Informationssysteme Entwicklungsgesellschaft m.b.H
   Bäckerstrasse 1/2/7
   A-1010 Wien
   FN 266155f, Handelsgericht Wien
  
   Tel.: +43/1/513 88 77 - 27
   Fax.: +43/1/513 88 62
   Email: [EMAIL PROTECTED]
   Web: www.cfc.at
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]

 --
 Roland Asmann

 CFC Informationssysteme Entwicklungsgesellschaft m.b.H
 Bäckerstrasse 1/2/7
 A-1010 Wien
 FN 266155f, Handelsgericht Wien

 Tel.: +43/1/513 88 77 - 27
 Fax.: +43/1/513 88 62
 Email: [EMAIL PROTECTED]
 Web: www.cfc.at

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: issue with plugin beeing reused

2007-11-09 Thread nicolas de loof
parent (POM) - no plugin used
|- module1 : antrun for sql2java, with custom plugin dependencies
|- module 2 (depends on module1) : antrun for castor, with custom plugin
dependencies

module2 fails, and antrun classpath is set to modul1 configuration

I'll try to setup a demonstation project for this issue


2007/11/9, Roland Asmann [EMAIL PROTECTED]:

 And the ant-run is defined in the parent? Or in the separate modules?


 On Friday 09 November 2007 16:47, nicolas de loof wrote:
  Not the case.
  I only have a parent pom to group modules, and all modules are on the
 same
  hierarchival level.
 
  2007/11/9, Roland Asmann [EMAIL PROTECTED]:
   If one of the ant-runs is defined in a parent to the other, try adding
   inheritedfalse/inherited...
  
   On Friday 09 November 2007 16:15, nicolas de loof wrote:
Here is my antrun configuration. As you can see, I'm setting some
plugin dependencies.
I'm also using antrun in another module to run a java command line
class from sql2java, set as plugin dependency.
   
On the second antrun execution, it's classpath is set from the first
one (sql2java) and not the expected dependencies.
   
   
plugin
artifactIdmaven-antrun-plugin/artifactId
version1.1/version
executions
  execution
idcastor/id
phasegenerate-sources/phase
configuration
  tasks
taskdef
  resource=net/sf/antcontrib/antcontrib.properties
 /
taskdef name=castor-srcgen
  classname=
org.exolab.castor.tools.ant.taskdefs.CastorSourceGenTask
  classpathref=maven.plugin.classpath /
available
   
file=${project.build.directory}/generated-sources/castor
property=file.exists value=true /
if
  not
isset property=file.exists /
  /not
  then
mkdir
   
dir=${project.build.directory}/generated-sources/castor /
castor-srcgen
  file=${basedir}/src/xsd/SchemaCdeAcces.xsd
   
package=sfr.hamlet.commande.daoxml.SchemaCdeAcces
  
   
  
todir=${project.build.directory}/generated-sources/castor
/
  /then
/if
  /tasks
  sourceRoot
${project.build.directory}/generated-sources/castor
  /sourceRoot
/configuration
goals
  goalrun/goal
/goals
  /execution
/executions
dependencies
  dependency
groupIdant-contrib/groupId
artifactIdant-contrib/artifactId
version1.0b2/version
  /dependency
  dependency
groupIdorg.codehaus.castor/groupId
artifactIdcastor-codegen-anttask/artifactId
version${castor.version}/version
  /dependency
/dependencies
  /plugin
   
2007/11/9, Roland Asmann [EMAIL PROTECTED]:
 Might be a configuration-error. Please post the part of your POM
 where the ant-run is configured!

 On Friday 09 November 2007 15:41, nicolas de loof wrote:
  Hello,
 
  My project uses the antrun plugin to invoke some custom ant
 tasks
  
   that
  
 have

  not (yet) be re-written as mojos. Thos task generate some code
 ant
  
   are
  
 tied

  to the generate-source phase
 
  When I build the project modules all works fine.
 
  When I run the eclipse:eclipse goal from the parent project, I
 get
  a classpath issue :
  I've dumped the plugin classpath as shown in
  
  
 http://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.h
  
tm

 l:
 
   [echo] plugin classpath:
  
  
 D:\platina\maven2\repository\net\sourceforge\sql2java\sql2java\2.5.0\sql2
  
ja

 va- 2.5.0.jar;...
 
  This path is the classpath set for a previous use of the plugin,
 in

 another

  module.
  It seems the plugin has been reused by maven, with no
 consideration
  
   for
  
 !=

  dependencies.
 
  Known issue ?
  Any workaround ?
 
  Nico.

 --
 Roland Asmann

 CFC Informationssysteme Entwicklungsgesellschaft m.b.H
 Bäckerstrasse 1/2/7
 A-1010 Wien
 FN 266155f, Handelsgericht Wien

 Tel.: +43/1/513 88 77 - 27
 Fax.: +43/1/513 88 62
 Email: [EMAIL PROTECTED]
 Web: www.cfc.at


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
  
   --
   Roland Asmann
  
   CFC

Re: [ANNOUNCE] Archiva 1.0 Beta 3 Released

2007-11-05 Thread nicolas de loof
Sorry, I came too late for the vote on this beta-3 release.

Jira is in maintenance for now and I cannot check for issues.

For my personnal experiments, beta3 solves all the issues I got with archiva
from a maven1 point of view. I'm using it (installed one hour ago) as my
corporate repository for both maven1 and maven2, pointing to a single (m2)
repo and proxying some public maven2 repositories.

All works fine.

Nico

2007/11/5, Arnaud HERITIER [EMAIL PROTECTED]:

 Nicolas, are there some issues opened to have a full m1 support ?
 I don't have the time to check on Jira...

 Arnaud

 On Nov 5, 2007 5:34 AM, Dion Gillard [EMAIL PROTECTED] wrote:

  Just wrt previous versions.
 
  Last time I tried Archiva as a replacement for maven-proxy, it was
  pretty hostile for maven 1 usage; I gave up after a few hours.
 
  I'll try the new beta and see how it goes.
 
  On 11/5/07, Brett Porter [EMAIL PROTECTED] wrote:
   On 04/11/2007, Dion Gillard [EMAIL PROTECTED] wrote:
Is this one an easier to configure and get going for Maven 1.x?
  
   Were you wondering whether it is easier than something in particular,
   or just previous versions?
  
   The last couple of betas have been working well WRT maven1 I believe -
   Nicolas and Arnaud are pretty vigilant about that aspect :)
  
   Archiva should now be pretty seamlessly serving both maven1 and maven2
   clients from the same repository (it's best to store in maven2 format
   if possible in this instance)
  
   - Brett
  
   
On 11/3/07, Maria Odea Ching [EMAIL PROTECTED] wrote:
 Hi Everyone,

 The Maven Archiva team is pleased to announce the release of
 Archiva
  1.0Beta 3.

 Archiva is a build artifact repository manager for use with build
  tools such
 as Maven, Continuum and Ant.

 It has features like repository search and browse, securing
  repositories,
 identifying unknown artifacts and reporting of repository
 problems.

 Aside from these, it can also act as a nearby (proxy) cache of
  popular
 global repositories.



 The latest release is now available here:

 http://maven.apache.org/archiva/download.html


 Below are the jira issues that were resolved for Archiva 1.0 Beta
 3:

 Release Notes - Archiva - Version 1.0-beta-3

 ** Sub-task
 * [MRM-527] - Create tests for discovering deleted artifacts

 ** Bug
 * [MRM-128] - better handling of jar artifacts without a pom
 * [MRM-142] - project builder cache needs to be configurable
 to
  prevent
 memory leaking
 * [MRM-205] - Undesirable Tomcat configuration for .jspf files
 * [MRM-213] - cannot undeploy archiva webapp
 * [MRM-243] - 507 Insufficient Storage when deploying artifact
  with
 webdav
 * [MRM-265] - After removing a managed repository -
  Browse/Search still
 see it
 * [MRM-309] - relocated artifacts are not delivered
 * [MRM-320] - ProxiedDavServer breaks update policy
 * [MRM-323] - Managed repo in archiva cannot be accessed thru
  direct
 webdav url even with valid credentials (Archiva deployed in
 Tomcat)
 * [MRM-333] - Tomcat deployment of archiva results in unstable
  instance.
 * [MRM-396] - remove 'true' and 'false' from the descriptions
 on
  the
 repository admin page
 * [MRM-398] - configure guest access by default for
  pre-configured
 repositories
 * [MRM-400] - tab appearance on view artifact page looks
  incorrect
 * [MRM-428] - managed and remote repositories with same name
  causes
 problems
 * [MRM-432] - Proxy Connectors are unable to download
 artifacts
  with
 alpha numerical version numbers
 * [MRM-437] - admin editing of proxy connectors fails in
  multiple
 instances
 * [MRM-444] - intermittent test failures on proxy
 * [MRM-454] - Index not updated after repository purge
 * [MRM-461] - Warning message for non existent resources
 should
  include
 what resource it failed to locate.
 * [MRM-466] - NPE on DatabaseJob.execute()
 * [MRM-470] - Test failures in BytecodeIndexTest due to NPE in
 AbstractIndexCreationTestCase
 * [MRM-477] - Missing ability to manage proxy order.
 * [MRM-479] - metadata files in artifactId/version level are
 not
  updated
 during repository purge
 * [MRM-481] - Artifact requests with a .xml.zip extension fail
  with a
 404 Error
 * [MRM-482] - Saving a proxy connector after adding a new
  property
 results to HTTP 500 error
 * [MRM-486] - Can not deploy artifact
 test.maven-arch:test-arch
 * [MRM-487] - pom version is not resolved
 * [MRM-488] - properties in pom are not resolved (at least
 while
 browsing)
 * [MRM-489] - Repositories are read only even for repository
  managers
 * [MRM-493] - Downloaded artifacts are stored in 

Re: jsunit integration

2007-10-23 Thread nicolas de loof
Your code is for jsUnit 2.2. My plugin uses jsunit 2.1 that is easier to
embedd. I'll consider upgrading to 2.2 when a final version is released and
when all jsunit dependencies are resolved.

About the hardcoded path, jsUnit needs the executable path to the browser.
The exepcted plugin configuration should point the absolute path, but for
convenience the shortcut firefox and iexplorer are converted to the
default location of those executables on windows, as they are not include in
PATH by default. On unix system we can launch them without absolute path as
the PATH may include the expected locations.
I plan to look at selenium how they run browsers without full path.

Nico


2007/10/22, Insitu [EMAIL PROTECTED]:

 nicolas de loof [EMAIL PROTECTED] writes:

  FYI I've started a javascript plugin project as part of maven Mojo. It
  allready support running jsunit tests :
 
  http://svn.codehaus.org/mojo/trunk/sandbox/javascript-maven-tools
 

 Ah ah, that's good. I was a bit lost with all those javascript plugins
 laying around... I used maven-jstools as a base because I a mostly
 interested irght now in jsdoc and jslint, not packing.

  You can look at javascript-maven-plugin JsUnitMojo, that runs a
 customized
  TestCase with a shared jsUnit server to avoid the server-per-test issue
 you
  noticed.
 
  You will not be able to run the plugin as many dependencies are not
 (yet)
  available in central repo.

 Could'nt you make them available ? Or give directions on how to build
 these dependencies ? I assume these are the static files for jsunit
 runner. I could build them myself.

  You can look at the src/it projects on how to configure and use the
 plugin
  for jsunit tests.
 
  Could you give me an example of the test result generated from jsunit
 result
  ? This part of the plugin is far perfectible, and I would welcome
  contribution ;-)
 

 I just wrote a mapper class that constructs a
 TestResult object from the results generated by jsunit:

 public class BrowseResultToJUnitResult {

 private TestResult testResult;

 public BrowseResultToJUnitResult(TestResult tr) {
 this.testResult = tr;
 }

 /**
  * Add all the testcases found in the given test result to
this junit
  * TestResult.
  *
  * @param res
  *a BrowserResult instance.
  */
 public void addBrowserResult(BrowserResult res) {
 for (final TestCaseResult tcr :
  res.getTestCaseResults()) {
 Test t = new Test() {

 public void run(TestResult arg0) {
 }

 public int countTestCases() {
 return 1;
 }

 public String toString() {
 return tcr.getName();
 }
 };
 testResult.startTest(t);
 if (!tcr.wasSuccessful()) {
 ResultType type = tcr.getResultType();
 if (type == ResultType.ERROR) {
 testResult.addError(t, new
 Exception(tcr.getError()));
 } else if (type == ResultType.FAILURE)
 {
 testResult.addFailure(t, new
 AssertionFailedError(tcr
 .getFailure()));
 }
 }
 testResult.endTest(t);
 }
 }
 }

 and here are the tests:

 public class MapAcceptorToTestResultTest extends TestCase {

 public void testLoadResultFileAndCreateTestResult() throws
 IOException {
 String xml = acceptor-sample.xml;
 String value = xmlAsString(xml);
 BrowserResultBuilder builder = new
 BrowserResultBuilder(
 new DummyBrowserSource(toto, 1));
 BrowserResult res = builder.build(value);
 TestResult tr = new TestResult();
 BrowseResultToJUnitResult jres = new
 BrowseResultToJUnitResult(tr);
 jres.addBrowserResult(res);
 assertEquals(8, tr.runCount());
 assertEquals(0, tr.errorCount());
 }

 public void testLoadResultWithFailuresAndCreateTestResult()
 throws IOException {
 String xml = acceptor-sample2.xml;
 String value = xmlAsString(xml);
 BrowserResultBuilder builder = new
 BrowserResultBuilder(
 new DummyBrowserSource(toto, 1

Re: jsunit integration

2007-10-23 Thread nicolas de loof
I just included your code (backported to jsunit 2.1) in my jsUnitMojo to get
the expected report.

I also requested for upload of the required dependencies on central.

2007/10/22, nicolas de loof [EMAIL PROTECTED]:

 I also got no reply to my request. jsunit (2.1) depends on jetty 4.2. I've
 asked the jetty guys to upload the requierd jars to there maven repo (will
 be sync to central).

 I'll ask to upload the jsunit artifacts as far as all dependencies are
 available.

 2007/10/22, Harlan Iverson [EMAIL PROTECTED]:
 
  The recurring issue seems to be getting JSUnit dependencies from Maven.
  Is
  there a dialog open with the JSUnit team about this?
 
  I've made an attempt but heard nothing:
  http://tech.groups.yahoo.com/group/jsunit/message/954
 
  In my opinion, the ideal solution would be to get JSUnit building with a
  set
  of dependencies are are compatible with that's in Maven central (adding
  some
  more if necessary, like start.jar for jetty5x), and itself deploying
  artifact(s) of its own.
 
  I've myself started working on JSUnit's build.xml and to use Maven
  Antlib
  and created a pom to do just that (I can send it to anyone who's
  interested); I think the only thing it needs missing is start.jar.
 
  Here's relevant threads from the JSUnit list:
  http://tech.groups.yahoo.com/group/jsunit/message/988
 
 
  I also think that Nico's approach of breaking jsunit-app into its own
  artifact to run inside Jetty, merged with a project's test cases and
  dependencies, is worth looking more at.
 
  Harlan
 
  On 10/22/07, nicolas de loof [EMAIL PROTECTED] wrote:
  
   FYI I've started a javascript plugin project as part of maven Mojo. It
 
   allready support running jsunit tests :
  
   http://svn.codehaus.org/mojo/trunk/sandbox/javascript-maven-tools
  
   You can look at javascript-maven-plugin JsUnitMojo, that runs a
  customized
   TestCase with a shared jsUnit server to avoid the server-per-test
  issue
   you
   noticed.
  
   You will not be able to run the plugin as many dependencies are not
  (yet)
   available in central repo.
   You can look at the src/it projects on how to configure and use the
  plugin
   for jsunit tests.
  
   Could you give me an example of the test result generated from jsunit
   result
   ? This part of the plugin is far perfectible, and I would welcome
   contribution ;-)
  
   Nico.
  
  
   2007/10/22, Insitu [EMAIL PROTECTED] :
   
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 is:
- modify jsunit java server test cases to generate JUnit test
  results
   from jsunit test results: That way javascript unit tests results
   and error gets integrated seamlessly into surefire's reports
- package the java server as an artifact
- encapsulates all tests in a single JUnit tests cases that
   configures things and laucn jsunit's StandaloneTest class
   
Some  problems are:
- test pages contains hardwired and absolute references to
  everything
   (ie. scripts and jsunti base directory) which is BAD !
- you need to install jsunit somewhere locally
- you need to modify and track files by hand outside of the scope of
   the project
- test server is started once for  each test execution or event each
 
   JUnit test class execution which can be a performance bottleneck
   for large and/or deep projects
   
What I want to do is:
1. package jsunit runner and support files as  a jar or zip
2. create a plugin tbound to process-test-sources that would unpack
the jsunit site in target/jsunit-runner
3. configure generically test server/runners to have
target/jsunit-runner as their root site. This implies that
javascript source files, test files and test pages be moved to
this directory too...
   
Ideally, I would rather serve everything from a servlet launched
through jetty with the adequate maven plugin but this would require
heavy changes to jsunit java server code. Or may be not...
   
Comments and ideas are welcomed,
   
regards,
--
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: declare dependencies depending on jdk version

2007-10-23 Thread nicolas de loof
That's not the same case : testng  has many jars with various classifier,
depending on the jdk used to build it from sources. They all share the same
POM

A maven artifact with a classifier always has the same POM as the
no-classifier artifact.

You will need to create multiple VERSIONS on the jar :

swingx/swingx/1.0-java5/swingx-1.0-java5.jar
swingx/swingx/1.0-java5/swingx-1.0-java5.pom
swingx/swingx/1.0-java6/swingx-1.0-java6.jar
swingx/swingx/1.0-java6/swingx-1.0-java6.pom

This is not a ver clean solution.

As an alternative, you can use a profile that gets active based on the JDK
used by your project.



2007/10/23, Wayne Fay [EMAIL PROTECTED]:

 Yes, that's what I'm saying. This is how testng (and others) do it:
 http://repo1.maven.org/maven2/org/testng/testng/5.5/

 Wayne

 On 10/23/07, Wim Deblauwe [EMAIL PROTECTED] wrote:
  Do I understand it correctly that you saying that I need to create 2
 upload
  bundles for swingx, one for jdk 1.5 and one for jdk 1.6?
 
  They both will have the exact same code, only different dependencies?
 
  regards,
 
  Wim
 
 
  2007/10/23, Wayne Fay [EMAIL PROTECTED]:
  
   Most people solve these kinds of problems by simply creating 2 (or
   more) poms that have different classifiers to specify the difference,
   eg:
   swingx-1.0.pom
   swingx-1.0-jdk4.pom
   swingx-1.0-jdk5.pom
   swingx-1.0-jdk6.pom
  
   Wayne
  
   On 10/23/07, Wim Deblauwe [EMAIL PROTECTED] wrote:
Hi,
   
I'm looking into putting swingx in the central repo. As they do not
 use
maven to build, I need to come up with a good pom. They have 3
   dependencies.
Two of them are only needed when running under jdk 1.5. How can I
   declare
this in the pom.xml?
   
Suppose this is a part of the pom:
   
dependencies
   dependency
   groupIdswingworker/groupId
   artifactIdswingworker/artifactId
   version1.0/version
   /dependency

/dependencies
   
What can I add to have only swingworker as a transitive dependency
 when
building with JDK 1.5? I thought about making it optional/ but I'm
 not
sure that is the best way.
   
regards,
   
Wim
   
--
Vigilog - an open source log file viewer:
 http://vigilog.sourceforge.net
Blog: http://www.jroller.com/page/Fester
   
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
  Blog: http://www.jroller.com/page/Fester
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: jsunit integration

2007-10-22 Thread nicolas de loof
FYI I've started a javascript plugin project as part of maven Mojo. It
allready support running jsunit tests :

http://svn.codehaus.org/mojo/trunk/sandbox/javascript-maven-tools

You can look at javascript-maven-plugin JsUnitMojo, that runs a customized
TestCase with a shared jsUnit server to avoid the server-per-test issue you
noticed.

You will not be able to run the plugin as many dependencies are not (yet)
available in central repo.
You can look at the src/it projects on how to configure and use the plugin
for jsunit tests.

Could you give me an example of the test result generated from jsunit result
? This part of the plugin is far perfectible, and I would welcome
contribution ;-)

Nico.


2007/10/22, Insitu [EMAIL PROTECTED]:

 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 is:
 - modify jsunit java server test cases to generate JUnit test results
from jsunit test results: That way javascript unit tests results
and error gets integrated seamlessly into surefire's reports
 - package the java server as an artifact
 - encapsulates all tests in a single JUnit tests cases that
configures things and laucn jsunit's StandaloneTest class

 Some  problems are:
 - test pages contains hardwired and absolute references to everything
(ie. scripts and jsunti base directory) which is BAD !
 - you need to install jsunit somewhere locally
 - you need to modify and track files by hand outside of the scope of
the project
 - test server is started once for  each test execution or event each
JUnit test class execution which can be a performance bottleneck
for large and/or deep projects

 What I want to do is:
 1. package jsunit runner and support files as  a jar or zip
 2. create a plugin tbound to process-test-sources that would unpack
 the jsunit site in target/jsunit-runner
 3. configure generically test server/runners to have
 target/jsunit-runner as their root site. This implies that
 javascript source files, test files and test pages be moved to
 this directory too...

 Ideally, I would rather serve everything from a servlet launched
 through jetty with the adequate maven plugin but this would require
 heavy changes to jsunit java server code. Or may be not...

 Comments and ideas are welcomed,

 regards,
 --
 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: jsunit integration

2007-10-22 Thread nicolas de loof
I also got no reply to my request. jsunit (2.1) depends on jetty 4.2. I've
asked the jetty guys to upload the requierd jars to there maven repo (will
be sync to central).

I'll ask to upload the jsunit artifacts as far as all dependencies are
available.

2007/10/22, Harlan Iverson [EMAIL PROTECTED]:

 The recurring issue seems to be getting JSUnit dependencies from Maven. Is
 there a dialog open with the JSUnit team about this?

 I've made an attempt but heard nothing:
 http://tech.groups.yahoo.com/group/jsunit/message/954

 In my opinion, the ideal solution would be to get JSUnit building with a
 set
 of dependencies are are compatible with that's in Maven central (adding
 some
 more if necessary, like start.jar for jetty5x), and itself deploying
 artifact(s) of its own.

 I've myself started working on JSUnit's build.xml and to use Maven Antlib
 and created a pom to do just that (I can send it to anyone who's
 interested); I think the only thing it needs missing is start.jar.

 Here's relevant threads from the JSUnit list:
 http://tech.groups.yahoo.com/group/jsunit/message/988


 I also think that Nico's approach of breaking jsunit-app into its own
 artifact to run inside Jetty, merged with a project's test cases and
 dependencies, is worth looking more at.

 Harlan

 On 10/22/07, nicolas de loof [EMAIL PROTECTED] wrote:
 
  FYI I've started a javascript plugin project as part of maven Mojo. It
  allready support running jsunit tests :
 
  http://svn.codehaus.org/mojo/trunk/sandbox/javascript-maven-tools
 
  You can look at javascript-maven-plugin JsUnitMojo, that runs a
 customized
  TestCase with a shared jsUnit server to avoid the server-per-test issue
  you
  noticed.
 
  You will not be able to run the plugin as many dependencies are not
 (yet)
  available in central repo.
  You can look at the src/it projects on how to configure and use the
 plugin
  for jsunit tests.
 
  Could you give me an example of the test result generated from jsunit
  result
  ? This part of the plugin is far perfectible, and I would welcome
  contribution ;-)
 
  Nico.
 
 
  2007/10/22, Insitu [EMAIL PROTECTED]:
  
   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 is:
   - modify jsunit java server test cases to generate JUnit test results
  from jsunit test results: That way javascript unit tests results
  and error gets integrated seamlessly into surefire's reports
   - package the java server as an artifact
   - encapsulates all tests in a single JUnit tests cases that
  configures things and laucn jsunit's StandaloneTest class
  
   Some  problems are:
   - test pages contains hardwired and absolute references to everything
  (ie. scripts and jsunti base directory) which is BAD !
   - you need to install jsunit somewhere locally
   - you need to modify and track files by hand outside of the scope of
  the project
   - test server is started once for  each test execution or event each
  JUnit test class execution which can be a performance bottleneck
  for large and/or deep projects
  
   What I want to do is:
   1. package jsunit runner and support files as  a jar or zip
   2. create a plugin tbound to process-test-sources that would unpack
   the jsunit site in target/jsunit-runner
   3. configure generically test server/runners to have
   target/jsunit-runner as their root site. This implies that
   javascript source files, test files and test pages be moved to
   this directory too...
  
   Ideally, I would rather serve everything from a servlet launched
   through jetty with the adequate maven plugin but this would require
   heavy changes to jsunit java server code. Or may be not...
  
   Comments and ideas are welcomed,
  
   regards,
   --
   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]
  
  
 



how to specify the default email domain ?

2007-10-19 Thread nicolas de loof
Hello,

I'd like continuum to notify developers who broke the build by email.
The new Send a mail to latest committers option should solve this, but
many developers in my team did not add a developer element in the project
POM. Is there any way to make continuum use a default email format ? We all
use our corporate ID as subversion login, so just addind @capgemini.fr to
the userId will give the expected eMail.

Nico.


Re: list of companies using Maven 2.0.7

2007-10-11 Thread nicolas de loof
We are using it at capgemini on many projects, but it has not (yet ?) been
selected as a corporate tool.

Nico.

2007/10/11, Habib [EMAIL PROTECTED]:


 Can any one tell me which are the companies using Maven 2.0.7 or Maven 2.x?


 thanks in advance.
 --
 View this message in context:
 http://www.nabble.com/list-of-companies-using-Maven-2.0.7-tf4606852s177.html#a13154575
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Best approach to implement includes/excludes in Mojo?

2007-10-08 Thread nicolas de loof
What differs between the plexus-utils DirectoryScanner and the ant one ?

Nico.

2007/10/8, Manos Batsis [EMAIL PROTECTED]:

 Tim Kettler wrote:
  the plugins provided by the maven team use plexus-utils for this [1].
  The relevant classes are DirectoryScanner and FileUtils. Have a look at
  the resources-plugin for how it's done.


 Thanks Tim, looks like DirectoryScanner is the perfect util class for
 this.

 
  [1] http://svn.codehaus.org/plexus/plexus-utils/trunk/
 


 Manos

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




eclipse:eclipse and war dependencies

2007-10-05 Thread nicolas de loof
Hello,

I just checkout an existing multimodule JEE project. I run mvn
eclipse:eclipse to configure my workspace, and the plugin handles
dependencies ordering as expected to build my eclipse conf WITHOUT having to
first install the artifacts.
(eclipse plugin reminds the project artifacts and doesn't require the
project to be built)

Then I add a new ear module, and run eclipse:eclipse. I then get a
dependency resolution error about my war artifact not beeing available for
the ear project.

Seems there is something in the ear plugin that requires dependencies to be
resolved, that should not be required to run the eclipse:eclipse goal.

Is this a known limitation ?


Re: Using maven for JavaScript projects

2007-10-01 Thread nicolas de loof
I've created a work-in-progress page :
http://hammerfest.wiki.sourceforge.net/maven-javascript-plugin++Work+in+Progress

The proposed lifecycle is :

process-sources : ability to merge multiple individual js files into
one (or more ?) js using a assembly schema.
compile : copy js to target/scripts
test : run jsunit (or other ?) tests
package : archiva target/scripts into a custom .jsar archive format
install
deploy

also provide a copydependency mojo to be used in web application to
handle jsar dependencies.


2007/10/1, Richard Chamberlain [EMAIL PROTECTED]:
 This looks good. I'm looking forward to contributing. If we can produce
 a unified view on how to develop js I don't see any reason not to adopt
 this.

 Rich

 -Original Message-
 From: nicolas de loof [mailto:[EMAIL PROTECTED]
 Sent: 01 October 2007 06:10
 To: Maven Users List
 Subject: Re: Using maven for JavaScript projects

 I've created a wiki entry
 (http://hammerfest.wiki.sourceforge.net/mavan-javascript-tools)
 to resume the ideas exposed in this thread.

 please be nice and don't blame me for my ugly english ;-)
 (any native english reader is welcome to fix my linguistics errors)

 Nico

 2007/9/27, Adam Altemus [EMAIL PROTECTED]:
  Hey all,
 
  Sorry for coming into this discussion late.  If anyone wants to use
 anything
  from our JavaScript plugin, feel free to help yourself.  It can be
 found at
  http://ossi.mobilvox.com/maven-js-plugin or
  http://sf.net/projects/maven-js-plugin   We're using a modded version
 of
  JsMin, which has shown a higher compression ratio than DOJO's
 Shrinksafe.
   Also, we put in a few other features to customize the compression and
 what
  can be done with it.
 
  I'd like to contribute more to
  this but, time is not on my side so to speak right now.  This is
  definitely cool stuff though.
 
  Thanks,
 
  Adam
  http://www.mobilvox.com
 
  On 9/27/07, Harlan Iverson [EMAIL PROTECTED] wrote:
  
   Yea, definitely alright and encouraged :) The first project is GPL
 soon to
   be LGPL, but the POM I'd consider to be whatever Selenium is since I
   mostly
   took my executions from there; and the second is MIT.
  
   Harlan
  
   On 9/27/07, nicolas de loof [EMAIL PROTECTED] wrote:
   
Thanks a lot for those links, i'll take a look tomorow.
   
Is it ok with you that I pick up code and/or ideas from this
 projects
? I didn't found a License notice on the first one. The second one
 is
MIT-licensed, not sure if I can get code an re-package it under
 apache
license ?
   
Nico.
   
2007/9/27, Harlan Iverson [EMAIL PROTECTED]:
 It looks like there is a good array of tools coming to light
 from this
 thread. I, myself, have been tackling the problem of making JS
 library
 development more like Java development, as far as automated
 running of
unit
 tests, documentation, packaging, etc, in recent months.

 I see a growing demand for a nice tool chain of things like
 jslint,
 shrinksafe, jsunit + jscoverage, selenium, jsdoc, and dependency
management.
 Maybe it's because I just came back to JS after several years
 with a
bunch
 of Java development under my belt; but I see all these tools and
 feel
like
 they should be integrated. Especially when I make the connection
   between
 web2.0 and people who promote Agile development practice. JS
 tools are
 hardly in the state to accommodate good Agile, IMO. If
 integration
   were
 better, it would be a different story.

 My original approach was to create an Ant script that would
 download
various
 things using the get task, and use Maven Antlib for JSUnit,
 Selenium
and
 ShrinkSafe dependencies. But now I am getting to the point where
 I
   want
to
 break my library into multiple parts (project-core, project-ext,
 project-ext-gui, etc) and Maven seems like the natural answer.
 And of
course
 when Maven comes into the picture, I want to manage my other JS
dependencies
 as such.

 So last night I gave it a shot, and it seems to work well using
 war
 packaging and their built-in overlay behavior. There are a few
 kinks
   to
work
 out, and probably Mojos to write, but I think it will work.

 My immediate need is for JSUnit, which I have hacked into a
 series of
 executions (see pom link below). I'll definitely be looking at
 some of
these
 tools and seeing how I can use them (namely the ShrinkSafe
 mojo!), and
 hopefully getting a JSUnit mojo out of them at the very least.
 I've
never
 written a plugin (beyond hello world), but I'm eager to give it
 a
   shot.

 I have high hopes that Maven can bring the state of JS
 development up
   to
par
 with the Agile way that so many web2.0 people want to develop.
 I'm
looking
 forward to hearing more of everyone's great ideas!

 Harlan

 ps.
 Here's my main POM with JSUnit

Re: Using maven for JavaScript projects

2007-10-01 Thread nicolas de loof
I plan to add support for the yahoo compressor. I have some issues with the
dojo one (needs to reset the rhino context, and found no way to do so)

I'll look at the plugin you pointed, thanks.

2007/10/1, Haroon Rafique [EMAIL PROTECTED]:

 On Today at 9:56am, HR=Haroon Rafique [EMAIL PROTECTED] wrote:

 HR
 HR Hi Nico,
 HR
 HR Could you add another js tool to the list? I haven't started using it,
 but
 HR it also looks promising in the link/compress category.
 HR
 HR Its the yuicompressor-maven-plugin
 HR http://alchim.sourceforge.net/yuicompressor-maven-plugin/overview.html
 HR based on YUICompressor:
 HR
 http://www.julienlecomte.net/blog/2007/09/28/yui-compressor-version-221-now-available/
 HR http://www.julienlecomte.net/yuicompressor/
 HR

 Sorry for the noise. I looked up my sourceforge ID and reset the password
 and updated the wiki with an entry for YUI Compressor Maven Plugin.

 Cheers,
 --
 Haroon Rafique
 [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Using maven for JavaScript projects

2007-09-30 Thread nicolas de loof
I've created a wiki entry
(http://hammerfest.wiki.sourceforge.net/mavan-javascript-tools)
to resume the ideas exposed in this thread.

please be nice and don't blame me for my ugly english ;-)
(any native english reader is welcome to fix my linguistics errors)

Nico

2007/9/27, Adam Altemus [EMAIL PROTECTED]:
 Hey all,

 Sorry for coming into this discussion late.  If anyone wants to use anything
 from our JavaScript plugin, feel free to help yourself.  It can be found at
 http://ossi.mobilvox.com/maven-js-plugin or
 http://sf.net/projects/maven-js-plugin   We're using a modded version of
 JsMin, which has shown a higher compression ratio than DOJO's Shrinksafe.
  Also, we put in a few other features to customize the compression and what
 can be done with it.

 I'd like to contribute more to
 this but, time is not on my side so to speak right now.  This is
 definitely cool stuff though.

 Thanks,

 Adam
 http://www.mobilvox.com

 On 9/27/07, Harlan Iverson [EMAIL PROTECTED] wrote:
 
  Yea, definitely alright and encouraged :) The first project is GPL soon to
  be LGPL, but the POM I'd consider to be whatever Selenium is since I
  mostly
  took my executions from there; and the second is MIT.
 
  Harlan
 
  On 9/27/07, nicolas de loof [EMAIL PROTECTED] wrote:
  
   Thanks a lot for those links, i'll take a look tomorow.
  
   Is it ok with you that I pick up code and/or ideas from this projects
   ? I didn't found a License notice on the first one. The second one is
   MIT-licensed, not sure if I can get code an re-package it under apache
   license ?
  
   Nico.
  
   2007/9/27, Harlan Iverson [EMAIL PROTECTED]:
It looks like there is a good array of tools coming to light from this
thread. I, myself, have been tackling the problem of making JS library
development more like Java development, as far as automated running of
   unit
tests, documentation, packaging, etc, in recent months.
   
I see a growing demand for a nice tool chain of things like jslint,
shrinksafe, jsunit + jscoverage, selenium, jsdoc, and dependency
   management.
Maybe it's because I just came back to JS after several years with a
   bunch
of Java development under my belt; but I see all these tools and feel
   like
they should be integrated. Especially when I make the connection
  between
web2.0 and people who promote Agile development practice. JS tools are
hardly in the state to accommodate good Agile, IMO. If integration
  were
better, it would be a different story.
   
My original approach was to create an Ant script that would download
   various
things using the get task, and use Maven Antlib for JSUnit, Selenium
   and
ShrinkSafe dependencies. But now I am getting to the point where I
  want
   to
break my library into multiple parts (project-core, project-ext,
project-ext-gui, etc) and Maven seems like the natural answer. And of
   course
when Maven comes into the picture, I want to manage my other JS
   dependencies
as such.
   
So last night I gave it a shot, and it seems to work well using war
packaging and their built-in overlay behavior. There are a few kinks
  to
   work
out, and probably Mojos to write, but I think it will work.
   
My immediate need is for JSUnit, which I have hacked into a series of
executions (see pom link below). I'll definitely be looking at some of
   these
tools and seeing how I can use them (namely the ShrinkSafe mojo!), and
hopefully getting a JSUnit mojo out of them at the very least. I've
   never
written a plugin (beyond hello world), but I'm eager to give it a
  shot.
   
I have high hopes that Maven can bring the state of JS development up
  to
   par
with the Agile way that so many web2.0 people want to develop. I'm
   looking
forward to hearing more of everyone's great ideas!
   
Harlan
   
ps.
Here's my main POM with JSUnit (in-progress proof of concept, by no
   means a
final product). The executions for JSUnit are basically a copy of
Selenium's:
http://soashable.googlecode.com/svn/xmpp4js/branches/maven/pom.xml
   
And here's my old Ant script JSLibBuilder:
http://soashable.googlecode.com/svn/jslibbuilder/trunk/
   
   
On 9/27/07, nicolas de loof [EMAIL PROTECTED] wrote:

 I myself make test based on scriptaculous and prototype. I'm not
 developer on this project so this is only a proof-of-concept.
 Prototype is based on multiple simple js files and requires some
 packaging, so maven fits naturally. scriptaculous has a dependency
  on
 prototype, so it's a good example for js dependencies.

 I'll soon setup a sample project to demonstrate building prototype
 using my plugin...


 I just added some initial (not yet working...) support for jsDoc in
  my
 plugin.
 You can checkout


  
  https://hammerfest.svn.sourceforge.net/svnroot/hammerfest/maven-javascript-plugin

recommandation for JS packaging ? (was Using maven for JavaScript projects)

2007-09-28 Thread nicolas de loof
What would be the better way to package JS libs ?

- option 1 : use existing WAR packaging with war overlay
   good : Works today with no change, just requires us to agree on a
common folder for scripts
   bad : cannot be used with jetty:run as the weapp is not packaged

- option 2 : use js packaged into a jar, and a custom plugin to unpack.
   js:inplace to unpack into src/main/webapp, prior to lauching jetty:run
   js:unpack to unpack during the package phase.

- other ?

Nico.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: recommandation for JS packaging ? (was Using maven for JavaScript projects)

2007-09-28 Thread nicolas de loof
I agree with the js packaging.
It works fine for js libs like prototype that is build based on
multiple JS but pakcage as a single file.

It works less with scriptaculous, dojo or yahooUI that comes with
multiple JS with a internal JS-level dependency loading strategy. For
those one, this would require one artifact per js file, and maybe a
parent POM to declare all of them as dependencies.

I'm writing a js:inplace Mojo based on this idea.

Nico.



2007/9/28, Richard Chamberlain [EMAIL PROTECTED]:
 This is definitely I'm struggling with at the moment:

 We have 2 artefacts for each js module:

 1) one compressed module.js file
 2) the source in multiple files, containing a module.js that
 document.writes out script tags for each file. This is used for
 debugging.

 Currently I package with a zip and a task to unzip when retrieved. I'd
 be interested if this could be made neater.

 One option (touched on before on this list) is to only ever produce a
 single .js file for each module and have js packaging. Unfortunately
 there would still need to be a copy task to move it from your local
 repository under your web context.

 Cheers,

 Rich

 -Original Message-
 From: nicolas de loof [mailto:[EMAIL PROTECTED]
 Sent: 28 September 2007 15:10
 To: Maven Users List
 Subject: recommandation for JS packaging ? (was Using maven for
 JavaScript projects)

 What would be the better way to package JS libs ?

 - option 1 : use existing WAR packaging with war overlay
good : Works today with no change, just requires us to agree on a
 common folder for scripts
bad : cannot be used with jetty:run as the weapp is not packaged

 - option 2 : use js packaged into a jar, and a custom plugin to unpack.
js:inplace to unpack into src/main/webapp, prior to lauching
 jetty:run
js:unpack to unpack during the package phase.

 - other ?

 Nico.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: recommandation for JS packaging ? (was Using maven for JavaScript projects)

2007-09-28 Thread nicolas de loof
I myself like the war overlay idea as this allow not just JS to be
packaged, but also any static resources, like css stylesheets :
consider webapp skins, maanged as separate projects, and applied to
all apps in a company !

BUT I don't like that it cannot be used with lightweight servlet
engine jetty using the jetty:run goal...

Nico.

2007/9/28, Manos Batsis [EMAIL PROTECTED]:
 nicolas de loof wrote:
  What would be the better way to package JS libs ?
 
  - option 1 : use existing WAR packaging with war overlay
 good : Works today with no change, just requires us to agree on a
  common folder for scripts
 bad : cannot be used with jetty:run as the weapp is not packaged
 
  - option 2 : use js packaged into a jar, and a custom plugin to unpack.
 js:inplace to unpack into src/main/webapp, prior to lauching jetty:run
 js:unpack to unpack during the package phase.


 Option 2 is the preferred way for me, mostly because WAR overlaying can
 only help with, well, web apps.

 I'm working on that along with a ServletFilter that can be used as a
 dependency (maybe war overlay?) in web projects. I'm not through with
 the details though and was going to ask here for suggestions.

 So, a very rough outline:

 - Provide JS packaging of projects as JAR artifacts
 - Provide a library that can be used as a dependency by web apps. The
 lib contains, basically, a Servlet Filter listening to *.js and
 builds/caches the HTTP response after pulling and maybe compressing the
 JS code from the classpath
 - Provide something equally useful for non-webapp projects

 Some questions:

 - What kind of metadata would be useful in what one would consider as
 the standard way to package JS-based JAR artifacts?
 - What kind of metadata would be useful for libs utilizing that packaging?
 - Can WAR overlaying be used to bring that Servlet Filter in a web-app,
 along with the appropriate web.xml markup?

 There more details but that gives the general idea. I have not yet
 formed an opinion on how useful knowledge on JS dependencies (i.e.
 script1.js was requested but the client has not received a dependency,
 sript2.js yet) is on runtime.

 WDYT?

 Many thanks,

 Manos

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using maven for JavaScript projects

2007-09-27 Thread nicolas de loof
I also started a javascript plugin.

The first mojo is a compressor based on Dojo shrinksafe. The main
advantage of this compressor is that it is based on Rhino, a Java JS
runtime, and so ensure the compressed code IS strictly equivalent to
the original one.

https://hammerfest.svn.sourceforge.net/svnroot/hammerfest/maven-javascript-plugin/trunk/

Nico.

2007/9/26, Manos Batsis [EMAIL PROTECTED]:

 I've worked with Ross Simpson on a Maven Javascript Tools Plugin [1].
 Currently the plugin has two reporting mojos, for JSDoc Toolkit and
 JSLint respectively. We intent to add support for stuff like JSUnit,
 ECMAUnit etc. I just shared the code on CVS two days ago. It needs more
 work but it is usable.

 For compression you can use the MobilVox Maven JavaScript Plugin [2],
 works great. I use it myself for sarissa.

 [1] https://sourceforge.net/projects/mvn-jstools
 [2] https://sourceforge.net/projects/maven-js-plugin

 Cheers,

 Manos

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using maven for JavaScript projects

2007-09-27 Thread nicolas de loof
That was one goal of my plugin : provide a maven extention to allow
js packaging type.

I proposed for contrib on the mojo dev list but got fiew interest.

My goal is to allow build projects like scriptaculous using maven :
dependency on prototype, merging of multiple individual .js,
attachement of compressed version...

Your help is welcome if you have
- ideas
- experience on JS toolkits and/or maven
- time !

Nico.



2007/9/27, Richard Chamberlain [EMAIL PROTECTED]:
 Thanks for that. I'll look into it, have you had any experiences with
 dependency management in JavaScript? Our company has a lot of
 JavaScript, some of which are common libraries, shared across projects.

 Thanks,

 Richard

 -Original Message-
 From: Manos Batsis [mailto:[EMAIL PROTECTED]
 Sent: 26 September 2007 12:41
 To: Maven Users List
 Subject: Re: Using maven for JavaScript projects


 I've worked with Ross Simpson on a Maven Javascript Tools Plugin [1].
 Currently the plugin has two reporting mojos, for JSDoc Toolkit and
 JSLint respectively. We intent to add support for stuff like JSUnit,
 ECMAUnit etc. I just shared the code on CVS two days ago. It needs more
 work but it is usable.

 For compression you can use the MobilVox Maven JavaScript Plugin [2],
 works great. I use it myself for sarissa.

 [1] https://sourceforge.net/projects/mvn-jstools
 [2] https://sourceforge.net/projects/maven-js-plugin

 Cheers,

 Manos

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using maven for JavaScript projects

2007-09-27 Thread nicolas de loof
I just commited a second Mojo that does the merge of multiple js files.

With this, a JS projet can be splitted into multiple js files and
merged into a main artifact.js
The CompressMojo also has been updated to allow attaching a compressed
version of the artifact on install/deploy.

To Manos :
how do you integrate with jsDoc ? AFAIK this is a JS based tool, not
really simple to invoke from a Java Mojo. Or maybe you use a JS Mojo ?

Would you like to colaborate on a common javascript plugin ? Would you
publish it as part of the Mojo project ?

2007/9/27, nicolas de loof [EMAIL PROTECTED]:
 That was one goal of my plugin : provide a maven extention to allow
 js packaging type.

 I proposed for contrib on the mojo dev list but got fiew interest.

 My goal is to allow build projects like scriptaculous using maven :
 dependency on prototype, merging of multiple individual .js,
 attachement of compressed version...

 Your help is welcome if you have
 - ideas
 - experience on JS toolkits and/or maven
 - time !

 Nico.



 2007/9/27, Richard Chamberlain [EMAIL PROTECTED]:
  Thanks for that. I'll look into it, have you had any experiences with
  dependency management in JavaScript? Our company has a lot of
  JavaScript, some of which are common libraries, shared across projects.
 
  Thanks,
 
  Richard
 
  -Original Message-
  From: Manos Batsis [mailto:[EMAIL PROTECTED]
  Sent: 26 September 2007 12:41
  To: Maven Users List
  Subject: Re: Using maven for JavaScript projects
 
 
  I've worked with Ross Simpson on a Maven Javascript Tools Plugin [1].
  Currently the plugin has two reporting mojos, for JSDoc Toolkit and
  JSLint respectively. We intent to add support for stuff like JSUnit,
  ECMAUnit etc. I just shared the code on CVS two days ago. It needs more
  work but it is usable.
 
  For compression you can use the MobilVox Maven JavaScript Plugin [2],
  works great. I use it myself for sarissa.
 
  [1] https://sourceforge.net/projects/mvn-jstools
  [2] https://sourceforge.net/projects/maven-js-plugin
 
  Cheers,
 
  Manos
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using maven for JavaScript projects

2007-09-27 Thread nicolas de loof
I myself make test based on scriptaculous and prototype. I'm not
developer on this project so this is only a proof-of-concept.
Prototype is based on multiple simple js files and requires some
packaging, so maven fits naturally. scriptaculous has a dependency on
prototype, so it's a good example for js dependencies.

I'll soon setup a sample project to demonstrate building prototype
using my plugin...


I just added some initial (not yet working...) support for jsDoc in my plugin.
You can checkout
https://hammerfest.svn.sourceforge.net/svnroot/hammerfest/maven-javascript-plugin/trunk/

I never saw any quality-metric tool for javascript. jslinker could be
a very interesting contrib for this purpose. I also never wrote a
report-Mojo, so cannot help much on that side...


2007/9/27, Richard Chamberlain [EMAIL PROTECTED]:
 Maybe we could create an example dev project (or archetype) that uses
 these plugins if there isn't one already? It would be a good starting
 point for people who want to use maven for JavaScript.

 -Original Message-
 From: nicolas de loof [mailto:[EMAIL PROTECTED]
 Sent: 27 September 2007 11:51
 To: Maven Users List
 Subject: Re: Using maven for JavaScript projects

 I just commited a second Mojo that does the merge of multiple js files.

 With this, a JS projet can be splitted into multiple js files and
 merged into a main artifact.js
 The CompressMojo also has been updated to allow attaching a compressed
 version of the artifact on install/deploy.

 To Manos :
 how do you integrate with jsDoc ? AFAIK this is a JS based tool, not
 really simple to invoke from a Java Mojo. Or maybe you use a JS Mojo ?

 Would you like to colaborate on a common javascript plugin ? Would you
 publish it as part of the Mojo project ?

 2007/9/27, nicolas de loof [EMAIL PROTECTED]:
  That was one goal of my plugin : provide a maven extention to allow
  js packaging type.
 
  I proposed for contrib on the mojo dev list but got fiew interest.
 
  My goal is to allow build projects like scriptaculous using maven :
  dependency on prototype, merging of multiple individual .js,
  attachement of compressed version...
 
  Your help is welcome if you have
  - ideas
  - experience on JS toolkits and/or maven
  - time !
 
  Nico.
 
 
 
  2007/9/27, Richard Chamberlain [EMAIL PROTECTED]:
   Thanks for that. I'll look into it, have you had any experiences
 with
   dependency management in JavaScript? Our company has a lot of
   JavaScript, some of which are common libraries, shared across
 projects.
  
   Thanks,
  
   Richard
  
   -Original Message-
   From: Manos Batsis [mailto:[EMAIL PROTECTED]
   Sent: 26 September 2007 12:41
   To: Maven Users List
   Subject: Re: Using maven for JavaScript projects
  
  
   I've worked with Ross Simpson on a Maven Javascript Tools Plugin
 [1].
   Currently the plugin has two reporting mojos, for JSDoc Toolkit and
   JSLint respectively. We intent to add support for stuff like JSUnit,
   ECMAUnit etc. I just shared the code on CVS two days ago. It needs
 more
   work but it is usable.
  
   For compression you can use the MobilVox Maven JavaScript Plugin
 [2],
   works great. I use it myself for sarissa.
  
   [1] https://sourceforge.net/projects/mvn-jstools
   [2] https://sourceforge.net/projects/maven-js-plugin
  
   Cheers,
  
   Manos
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using maven for JavaScript projects

2007-09-27 Thread nicolas de loof
Sourceforge has a patch entry in tracker
(http://sourceforge.net/tracker/?atid=717014group_id=128899func=browse)

You can also send it to me at [EMAIL PROTECTED]

Thanks a lot for contributing.

2007/9/27, Insitu [EMAIL PROTECTED]:
 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, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using maven for JavaScript projects

2007-09-27 Thread nicolas de loof
Thanks a lot for those links, i'll take a look tomorow.

Is it ok with you that I pick up code and/or ideas from this projects
? I didn't found a License notice on the first one. The second one is
MIT-licensed, not sure if I can get code an re-package it under apache
license ?

Nico.

2007/9/27, Harlan Iverson [EMAIL PROTECTED]:
 It looks like there is a good array of tools coming to light from this
 thread. I, myself, have been tackling the problem of making JS library
 development more like Java development, as far as automated running of unit
 tests, documentation, packaging, etc, in recent months.

 I see a growing demand for a nice tool chain of things like jslint,
 shrinksafe, jsunit + jscoverage, selenium, jsdoc, and dependency management.
 Maybe it's because I just came back to JS after several years with a bunch
 of Java development under my belt; but I see all these tools and feel like
 they should be integrated. Especially when I make the connection between
 web2.0 and people who promote Agile development practice. JS tools are
 hardly in the state to accommodate good Agile, IMO. If integration were
 better, it would be a different story.

 My original approach was to create an Ant script that would download various
 things using the get task, and use Maven Antlib for JSUnit, Selenium and
 ShrinkSafe dependencies. But now I am getting to the point where I want to
 break my library into multiple parts (project-core, project-ext,
 project-ext-gui, etc) and Maven seems like the natural answer. And of course
 when Maven comes into the picture, I want to manage my other JS dependencies
 as such.

 So last night I gave it a shot, and it seems to work well using war
 packaging and their built-in overlay behavior. There are a few kinks to work
 out, and probably Mojos to write, but I think it will work.

 My immediate need is for JSUnit, which I have hacked into a series of
 executions (see pom link below). I'll definitely be looking at some of these
 tools and seeing how I can use them (namely the ShrinkSafe mojo!), and
 hopefully getting a JSUnit mojo out of them at the very least. I've never
 written a plugin (beyond hello world), but I'm eager to give it a shot.

 I have high hopes that Maven can bring the state of JS development up to par
 with the Agile way that so many web2.0 people want to develop. I'm looking
 forward to hearing more of everyone's great ideas!

 Harlan

 ps.
 Here's my main POM with JSUnit (in-progress proof of concept, by no means a
 final product). The executions for JSUnit are basically a copy of
 Selenium's:
 http://soashable.googlecode.com/svn/xmpp4js/branches/maven/pom.xml

 And here's my old Ant script JSLibBuilder:
 http://soashable.googlecode.com/svn/jslibbuilder/trunk/


 On 9/27/07, nicolas de loof [EMAIL PROTECTED] wrote:
 
  I myself make test based on scriptaculous and prototype. I'm not
  developer on this project so this is only a proof-of-concept.
  Prototype is based on multiple simple js files and requires some
  packaging, so maven fits naturally. scriptaculous has a dependency on
  prototype, so it's a good example for js dependencies.
 
  I'll soon setup a sample project to demonstrate building prototype
  using my plugin...
 
 
  I just added some initial (not yet working...) support for jsDoc in my
  plugin.
  You can checkout
 
  https://hammerfest.svn.sourceforge.net/svnroot/hammerfest/maven-javascript-plugin/trunk/
 
  I never saw any quality-metric tool for javascript. jslinker could be
  a very interesting contrib for this purpose. I also never wrote a
  report-Mojo, so cannot help much on that side...
 
 
  2007/9/27, Richard Chamberlain  [EMAIL PROTECTED]:
   Maybe we could create an example dev project (or archetype) that uses
   these plugins if there isn't one already? It would be a good starting
   point for people who want to use maven for JavaScript.
  
   -Original Message-
   From: nicolas de loof [mailto:[EMAIL PROTECTED]
   Sent: 27 September 2007 11:51
   To: Maven Users List
   Subject: Re: Using maven for JavaScript projects
  
   I just commited a second Mojo that does the merge of multiple js files.
  
   With this, a JS projet can be splitted into multiple js files and
   merged into a main artifact.js
   The CompressMojo also has been updated to allow attaching a compressed
   version of the artifact on install/deploy.
  
   To Manos :
   how do you integrate with jsDoc ? AFAIK this is a JS based tool, not
   really simple to invoke from a Java Mojo. Or maybe you use a JS Mojo ?
  
   Would you like to colaborate on a common javascript plugin ? Would you
   publish it as part of the Mojo project ?
  
   2007/9/27, nicolas de loof [EMAIL PROTECTED]:
That was one goal of my plugin : provide a maven extention to allow
js packaging type.
   
I proposed for contrib on the mojo dev list but got fiew interest.
   
My goal is to allow build projects like scriptaculous using maven :
dependency on prototype

assembly doesn't honor dependencyManagement

2007-09-26 Thread nicolas de loof
Hello,

My pom has a dependencyManagement set to configurre
commons-collection dependency to version 3.2.

My eclipse classpath has the expected Jar, my build works fine.

When I use assembly to create a jar-with-dependencies I get
commons-collections-2.0 unpacked.

I have 2 dependencies that both dependend on commons-collections with
conflicting version. dependencyManagement is expected to solve this,
but doesn't look to be used by assembly plugin.

Is this a known bug ???

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: assembly doesn't honor dependencyManagement

2007-09-26 Thread nicolas de loof
There is many way to fix this, including using exclusions or simply
declaring a new dependdency with expected version.

I just want to know if I should log this in Jira as
dependencyManagement is expected to avoid such version conflitcs.

Nico.

2007/9/26, Jim Sellers [EMAIL PROTECTED]:
 Exclude the commons-collection version that you don't want in your
 dependency declaration.
 http://maven.apache.org/pom.html#Exclusions

 HTH
 Jim


 On 9/26/07, nicolas de loof [EMAIL PROTECTED] wrote:
 
  Hello,
 
  My pom has a dependencyManagement set to configurre
  commons-collection dependency to version 3.2.
 
  My eclipse classpath has the expected Jar, my build works fine.
 
  When I use assembly to create a jar-with-dependencies I get
  commons-collections-2.0 unpacked.
 
  I have 2 dependencies that both dependend on commons-collections with
  conflicting version. dependencyManagement is expected to solve this,
  but doesn't look to be used by assembly plugin.
 
  Is this a known bug ???
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Any advantage of utisng plexus-compiler-eclipse ?

2007-09-24 Thread nicolas de loof
Just curious,

Is there anybody that use an alternative compiler for maven-compiler-plugin ?
Does the eclipse compiler support any must-have feature ?

Nico.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Any advantage of utisng plexus-compiler-eclipse ?

2007-09-24 Thread nicolas de loof
Is there any compiler to target 1.3 with source 1.5 ? There is no
limitation for that in the class file format.

2007/9/24, Carlos Sanchez [EMAIL PROTECTED]:
 osgi package imports/exports for instance. AFAIK is the only one that
 supports it

 On 9/24/07, nicolas de loof [EMAIL PROTECTED] wrote:
  Just curious,
 
  Is there anybody that use an alternative compiler for maven-compiler-plugin 
  ?
  Does the eclipse compiler support any must-have feature ?
 
  Nico.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 I could give you my word as a Spaniard.
 No good. I've known too many Spaniards.
  -- The Princess Bride

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Repos Managers : Archiva, artifactory, proximity, file://

2007-09-24 Thread nicolas de loof
I have installed archiva for our corporae repo with no issue.
I also made some contribs for a better maven1 support (I have lot's of
legacy project taht uses maven1), so that I don't require 2 similar
repos just to support m1  m2.

Archiva works fine, and I didn't get performance issues. Archiva
1.0-beta has reworked internals to avoid memory/cpu overuse when
indexing large repositories.
Repository proxy configuration is also cleaner in latest release.

Archiva also includes some repo management tools, that check for bad
checksum, corrupted meta-datas or missing artifacts in the repo. Not
used them myself but can be usefull.

Nico.

2007/9/24, Julien Graglia [EMAIL PROTECTED]:
 Hi
  I have to install some maven repositories for our internal artifacts.

 I have already try 3 types of repo : file://, archiva and artifactory

 I also have heard about proximity, but the live demo  is down since ..
 pfui... 2 months... not sure I want to use that..

 Archiva :
pro
   store artifact on file
cons :
   SLOW, very slow
   unstable, or I dont know how to use it... I have installed the
 last version (apache-archiva-1.0-beta-2-bin.tar.gz) and the upgrade from
 1.0 beta1 was hard : various bug, I have lost artifacts...
  (how do you do to restart a fresh install of archiva? clear
 archiva/database?

 Artifactory :
cons:
slow too, ajax web interface is not very fast.
use an internal db to store artifacts...
 pro :
   may be quicker than archiva

 file// (I mean deploy to file:// urls)
pro:
   easy!
   store artifacts on hdd
cons :
   no web interface to show depenencies, license, various infos...


 So here is my question : what do you use? any of those 4 repos
 manager, another?

 Here is my needs :
use it as a maven repository
deploy artifacts (file or dav...) : snapshots and releases
clean olds snapshots


 Thx!

 --
 Julien Graglia



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



producing UML from javadocs (or other source-level meta-datas)

2007-09-19 Thread nicolas de loof
Hello,

I'm looking for a nice tool to generate UML diagrams from my source
code, based on some javadocs tags or other source-level meta-datas.
The idea is to allow source code refactoring without having to apply
changes manually on a UML model.

I'd like this tool to run as part of my mvn site process... ( if possible )

Or maybe someone knows a nice UML modeler that runs inside Eclipse and
allows code to stay in sync with model ?

Nico.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



surefire classpath uses project dependencies prior to target/classes

2007-09-06 Thread nicolas de loof
Hello,

I've got an issue in my project that uses retrotranlator :
http://hammerfest.svn.sourceforge.net//svnroot/hammerfest/retrotanslator-runtime13/trunk/

The retrotranslator runtime is declared as a dependency to compile project
classes (that is an extension to retrotranslator)
Retrotranslator is used to process classes AND the content of this
dependency jar into target/classes.

Surefire then starts in the test phase, and fails with some Unsupported
major.minor version on retrotranslator-runtime classes.
The failing class is both present in target/classes (translated to Java1.3)
AND in dependencies (as java 1.4)

I added this code in my testcase :
 System.out.println( WeakIdentityTable = 
 + getClass().getClassLoader().getResource(
 net/sf/retrotranslator/runtime/impl/WeakIdentityTable.class ) );

I get the unexpected behaviour to get WeakIdentityTable.class from the jar,
and not from target/classes.

Is there anyway to exclude a dependency from the test phase (make the
dependency available ONLY for compile ?)
OR
Is there any way to place target/classes prior to dependecies in the test
classpath ?

Any suggestion is welcome. I've no other option than switching to an ant
script.

Nico.


Re: surefire classpath uses project dependencies prior to target/classes

2007-09-06 Thread nicolas de loof
I've found myself the response by searching JIRA : SUREFIRE-61

Using surefire-2.4-SNAPSHOT solves my issue.

2007/9/6, nicolas de loof [EMAIL PROTECTED]:

 Hello,

 I've got an issue in my project that uses retrotranlator :
 http://hammerfest.svn.sourceforge.net//svnroot/hammerfest/retrotanslator-runtime13/trunk/


 The retrotranslator runtime is declared as a dependency to compile project
 classes (that is an extension to retrotranslator)
 Retrotranslator is used to process classes AND the content of this
 dependency jar into target/classes.

 Surefire then starts in the test phase, and fails with some Unsupported
 major.minor version on retrotranslator-runtime classes.
 The failing class is both present in target/classes (translated to Java1.3) 
 AND in dependencies (as java
 1.4)

 I added this code in my testcase :
  System.out.println( WeakIdentityTable = 
  + getClass().getClassLoader().getResource(
  net/sf/retrotranslator/runtime/impl/WeakIdentityTable.class )
 );

 I get the unexpected behaviour to get WeakIdentityTable.class from the
 jar, and not from target/classes.

 Is there anyway to exclude a dependency from the test phase (make the
 dependency available ONLY for compile ?)
 OR
 Is there any way to place target/classes prior to dependecies in the test
 classpath ?

 Any suggestion is welcome. I've no other option than switching to an ant
 script.

 Nico.



how to declare a dependency that depends of target JRE ?

2007-09-05 Thread nicolas de loof
Hello,

I'm writing a shared utility project that uses backport-util-concurrent.
This dependency has 3 versions, for java 1.2/1.3, java 1.4 and Java 5.
How to set my POM dependencies so that projects that use my lib get the
expected backport in classpath ?
For now the only way I've found is to declare dependency on backport as
optional.

Nico.


Re: RE : how to declare a dependency that depends of target JRE ?

2007-09-05 Thread nicolas de loof
I know this jdk activation strategy but IMHO this is not safe :

I'm myself using Jdk 1.5 on my computer but set the maven-compiler-plugin
for target jre beeing 1.3 or 1.4. I don't want to change my JAVA_HOME evey
time I start a new project, and maven2 requires Java 1.4 so this strategy
cannot be used to build projects that target Java 1.3.

Nico.


2007/9/5, Deneux, Christophe [EMAIL PROTECTED]:


 Nicolas,

 You can defined profile according to the used JDK. In these profile you
 should defined a dependencyManagement in which you define your artifact
 version to use:

 profile
idjdk1.4/id
activation
   jdk1.4/jdk
/activation
dependencyManagement
...
/dependencyManagement
 /profile






 ___
 Christophe DENEUX / Capgemini Sud / Méditerranée
 Technical Leader
 Tel: + 33 4 93 95 55 92 / www.capgemini.com http://www.capgemini.com/
 Porte de l'Arénas - Entrée B / 455 Promenade des Anglais / 06200 Nice /
 FRANCE
 Join the Collaborative Business Experience

 ___
 Please consider the environment and do not print this email unless
 absolutely necessary. Capgemini encourages environmental awareness.

 

 De: nicolas de loof [mailto:[EMAIL PROTECTED]
 Date: mer. 05/09/2007 09:47
 À: Maven Users List
 Objet : how to declare a dependency that depends of target JRE ?



 Hello,

 I'm writing a shared utility project that uses backport-util-concurrent.
 This dependency has 3 versions, for java 1.2/1.3, java 1.4 and Java 5.
 How to set my POM dependencies so that projects that use my lib get the
 expected backport in classpath ?
 For now the only way I've found is to declare dependency on backport as
 optional.

 Nico.




 This message contains information that may be privileged or confidential
 and is the property of the Capgemini Group. It is intended only for the
 person to whom it is addressed. If you are not the intended recipient,  you
 are not authorized to read, print, retain, copy, disseminate,  distribute,
 or use this message or any part thereof. If you receive this  message in
 error, please notify the sender immediately and delete all  copies of this
 message.



Re: buildNumber plugin error

2007-08-29 Thread nicolas de loof
I have the same issue as I'm french and my svn installation is localized by
default, so the svn info command returns :

Révision : xxx

This makes the plugin fail. I've allready reported this issue to the plugin
author and he planned to fix this in next release.

Nico.

2007/8/29, cNT [EMAIL PROTECTED]:


 The same thing just happened today with my project. None of the plugins
 were
 updated, svn also functions properly.
 No idea what has changed :/


 DCVer wrote:
 
  I added the maven buildnumber plugin to a project and it worked quite
  fine. But 2 developers say, that they receive such an error, while
  building the project (mvn install):
 
  [...]
 
  [INFO] [buildnumber:create {execution: default}]
  [INFO] Storing buildNumber: null
  [INFO]
  
  [ERROR] FATAL ERROR
  [INFO]
  
  [INFO] null
  [INFO]
  
  [INFO] Trace
  java.lang.NullPointerException
  at java.util.Hashtable.put(Hashtable.java:396)
  at
  org.codehaus.mojo.buildNumber.BuildNumberMojo.execute(
 BuildNumberMojo.java:313)
  at
  org.apache.maven.plugin.DefaultPluginManager.executeMojo(
 DefaultPluginManager.java:443)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
 DefaultLifecycleExecutor.java:539)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
 (DefaultLifecycleExecutor.java:480)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
 DefaultLifecycleExecutor.java:459)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
 (DefaultLifecycleExecutor.java:311)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
 DefaultLifecycleExecutor.java:278)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
 DefaultLifecycleExecutor.java:143)
  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
 :334)
  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
  sun.reflect.NativeMethodAccessorImpl.invoke(
 NativeMethodAccessorImpl.java:39)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at
  org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
  at
  org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
  [INFO]
  
  [INFO] Total time: 7 seconds
  [INFO] Finished at: Tue Aug 21 13:12:14 CEST 2007
  [INFO] Final Memory: 7M/13M
  [INFO]
  
 
 
  The svn info command does the following:
 
  [...]
 
  Revision: 1048
  [...]
  Last Changed Rev: 1048
  [...]
 
  So why buildnumber plugin sees null rev number?? All commands were
  executed in the same directory. This plugin works properly on my local
 PC
  - only others have problems..
 

 --
 View this message in context:
 http://www.nabble.com/buildNumber-plugin-error-tf4304675s177.html#a12382986
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




castor-1.0.4.jar on maven repo is not same as the one distributed by codehaus

2007-08-17 Thread nicolas de loof
I've got an issue with castor jar :

artifacts from http://dist.codehaus.org/castor/1.0.4/ are compiled for 1.3,
and the ones published at
http://repo1.maven.org/maven2/org/codehaus/castor/castor/1.0.4/ require java
1.4

Jars are not the same. What's wrong ?
Who published those jars ? Where do they come from ?

Nico


Re: castor-1.0.4.jar on maven repo is not same as the one distributed by codehaus

2007-08-17 Thread nicolas de loof
The maven pom for castor set the compiler plugin for 1.4.
According to CASTOR-1485, 1.0.4+ should be java 1.3 compliant.
The maven config has been updated to configure compiler for 1.3 in
castor-1.1.pom

Seems the binaries in http://dist.codehaus.org/castor/ have not been built
using maven.



2007/8/17, Werner Guttmann [EMAIL PROTECTED]:

 Hi,

 I am not 100% sure, but it could be that somebody uploaded these JARs to
 the ibiblio repos manually, as we (the Castor team) switched to Maven
 uploads slightly later.

 Regards
 Werner
 Castor, committer

 Jörg Schaible wrote:
  nicolas de loof wrote on Friday, August 17, 2007 9:20 AM:
 
  I've got an issue with castor jar :
 
  artifacts from http://dist.codehaus.org/castor/1.0.4/ are compiled
  for 1.3, and the ones published at
  http://repo1.maven.org/maven2/org/codehaus/castor/castor/1.0.4 /
  require java
  1.4
 
  Jars are not the same. What's wrong ?
  Who published those jars ? Where do they come from ?
 
  Have you checked these:
 http://repository.codehaus.org/org/codehaus/castor/castor/ ?
 
  If this ones have the same problem, so the confusion was caused by the
 Castor team itself.
 
  - Jörg
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




any way to use legacy layout for local repository ?

2007-08-09 Thread nicolas de loof
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 ?

Nico.


Re: file based profile activation - best practice ?

2007-08-08 Thread nicolas de loof
Based on your link, I don't need a profile but a (plugin) dependency to
antcontrib to use the if tag.

My POM will the look more and more like an ant script. Maven is supposed to
use profiles for such use cases. Why is there a limitation NOT to support
${basedir} property in profile activation ? I understand not supporting
custom properties (that can be set by profiles after activation), but not
for default properties.

I've created MNG-3140 for this...

Nico.

2007/8/8, Eric Redmond [EMAIL PROTECTED]:

 Why would you need to duplicate it? Have the antrun code only run if a
 property is set - and only set that property under the profiles you want
 it
 to execute under.

 You can see how to active a block of ant code here in my book:
 http://www.sonatype.com/book/lifecycle.html#a_structure_for_goal_execution

 --
 Eric Redmond
 http://blog.propellors.net

 On 8/6/07, nicolas de loof [EMAIL PROTECTED] wrote:
 
  The ant code required to make the generator work is huge, and
 duplicating
  it
  would be worst as running it twice.
 
  Thanks anyway for the suggestion
 
 
  2007/8/6, Wayne Fay [EMAIL PROTECTED]:
  
   Not ideal, but you could set up another profile that has the full path
   from the parent, and specify that when running from the parent ie
   sql2java_top or something.
  
   Wayne
  
   On 8/6/07, nicolas de loof [EMAIL PROTECTED] wrote:
Hello,
   
I'm using a code generator, and I'd like to avoid regeneration of
 code
   on
each build.
   
I've set a profile to launch the generation using the antrun plugin
The profile is active based on a generated file missing :
   
profile
 idsql2java/id
 activation
   file
 missingtarget/generated-sources/sql2java.tstamp/missing
   /file
 /activation
 build
...
   
As explained in http://docs.codehaus.org/display/MAVENUSER/Profiles,
 I
cannot reference ${project.build.directory} in this path.
When I run mvn install from my parent POM, generator runs even if
  code
allready exist, as the project basedir is not the same as running
 from
   the
module.
   
Is there any way to solve this ? Is there any plan for properties
   support in
profiles activation ?
   
Nico.
   
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 



Re: file based profile activation - best practice ?

2007-08-08 Thread nicolas de loof
your suggestion works fine. Thanks to helping me solving this issue.

Nico.

2007/8/8, nicolas de loof [EMAIL PROTECTED]:

 Based on your link, I don't need a profile but a (plugin) dependency to
 antcontrib to use the if tag.

 My POM will the look more and more like an ant script. Maven is supposed
 to use profiles for such use cases. Why is there a limitation NOT to support
 ${basedir} property in profile activation ? I understand not supporting
 custom properties (that can be set by profiles after activation), but not
 for default properties.

 I've created MNG-3140 for this...

 Nico.

 2007/8/8, Eric Redmond [EMAIL PROTECTED]:
 
  Why would you need to duplicate it? Have the antrun code only run if a
  property is set - and only set that property under the profiles you want
  it
  to execute under.
 
  You can see how to active a block of ant code here in my book:
 
  http://www.sonatype.com/book/lifecycle.html#a_structure_for_goal_execution
 
  --
  Eric Redmond
  http://blog.propellors.net
 
  On 8/6/07, nicolas de loof [EMAIL PROTECTED] wrote:
  
   The ant code required to make the generator work is huge, and
  duplicating
   it
   would be worst as running it twice.
  
   Thanks anyway for the suggestion
  
  
   2007/8/6, Wayne Fay [EMAIL PROTECTED]:
   
Not ideal, but you could set up another profile that has the full
  path
from the parent, and specify that when running from the parent ie
sql2java_top or something.
   
Wayne
   
On 8/6/07, nicolas de loof [EMAIL PROTECTED] wrote:
 Hello,

 I'm using a code generator, and I'd like to avoid regeneration of
  code
on
 each build.

 I've set a profile to launch the generation using the antrun
  plugin
 The profile is active based on a generated file missing :

 profile
  idsql2java/id
  activation
file
   
missingtarget/generated-sources/sql2java.tstamp/missing
/file
  /activation
  build
 ...

 As explained in
  http://docs.codehaus.org/display/MAVENUSER/Profiles, I
 cannot reference ${project.build.directory} in this path.
 When I run mvn install from my parent POM, generator runs even
  if
   code
 allready exist, as the project basedir is not the same as running
  from
the
 module.

 Is there any way to solve this ? Is there any plan for properties
support in
 profiles activation ?

 Nico.

   
   
  -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
 




Re: file based profile activation - best practice ?

2007-08-08 Thread nicolas de loof
I agree about being better to create a plugin.

Will just have to find time for doing it, and good arguments to spend time
on a project that builds fine ;-)

I just found
http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html so
this will be a nice way to package my antrun script as a mojo.

Nico.

2007/8/8, Eric Redmond [EMAIL PROTECTED]:

 I hope you understand that antrun is meant to be a stop-gap solution - a
 way to ensure your ant code works in your project. Now that you have your
 project working you should really consider creating a plugin:goal using
 the
 script so you can extract ant from your pom.

 --
 Eric Redmond
 http://blog.propellors.net

 On 8/8/07, nicolas de loof [EMAIL PROTECTED] wrote:
 
  Based on your link, I don't need a profile but a (plugin) dependency to
  antcontrib to use the if tag.
 
  My POM will the look more and more like an ant script. Maven is supposed
  to
  use profiles for such use cases. Why is there a limitation NOT to
 support
  ${basedir} property in profile activation ? I understand not supporting
  custom properties (that can be set by profiles after activation), but
 not
  for default properties.
 
  I've created MNG-3140 for this...
 
  Nico.
 
  2007/8/8, Eric Redmond [EMAIL PROTECTED]:
  
   Why would you need to duplicate it? Have the antrun code only run if a
   property is set - and only set that property under the profiles you
 want
   it
   to execute under.
  
   You can see how to active a block of ant code here in my book:
  
 
 http://www.sonatype.com/book/lifecycle.html#a_structure_for_goal_execution
  
   --
   Eric Redmond
   http://blog.propellors.net
  
   On 8/6/07, nicolas de loof [EMAIL PROTECTED] wrote:
   
The ant code required to make the generator work is huge, and
   duplicating
it
would be worst as running it twice.
   
Thanks anyway for the suggestion
   
   
2007/8/6, Wayne Fay [EMAIL PROTECTED]:

 Not ideal, but you could set up another profile that has the full
  path
 from the parent, and specify that when running from the parent ie
 sql2java_top or something.

 Wayne

 On 8/6/07, nicolas de loof [EMAIL PROTECTED] wrote:
  Hello,
 
  I'm using a code generator, and I'd like to avoid regeneration
 of
   code
 on
  each build.
 
  I've set a profile to launch the generation using the antrun
  plugin
  The profile is active based on a generated file missing :
 
  profile
   idsql2java/id
   activation
 file

missingtarget/generated-sources/sql2java.tstamp/missing
 /file
   /activation
   build
  ...
 
  As explained in
  http://docs.codehaus.org/display/MAVENUSER/Profiles,
   I
  cannot reference ${project.build.directory} in this path.
  When I run mvn install from my parent POM, generator runs even
  if
code
  allready exist, as the project basedir is not the same as
 running
   from
 the
  module.
 
  Is there any way to solve this ? Is there any plan for
 properties
 support in
  profiles activation ?
 
  Nico.
 


  -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


   
  
 



Re: file based profile activation - best practice ?

2007-08-08 Thread nicolas de loof
 this will be a nice way to package my antrun script as a mojo 

but according to
http://www.mail-archive.com/users@maven.apache.org/msg61137.html, there is
no support for classpath defined in the plugin pom to setup ant taskdefs.
That would be a quick and simpel way to setup a maven2 plugin for many
existing but not (yet) supported tools.

Seems we have to wait for maven 2.1 for this :(

Nico.


2007/8/8, nicolas de loof [EMAIL PROTECTED]:

 I agree about being better to create a plugin.

 Will just have to find time for doing it, and good arguments to spend time
 on a project that builds fine ;-)

 I just found
 http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html so
 this will be a nice way to package my antrun script as a mojo.

 Nico.

 2007/8/8, Eric Redmond  [EMAIL PROTECTED]:
 
  I hope you understand that antrun is meant to be a stop-gap solution -
  a
  way to ensure your ant code works in your project. Now that you have
  your
  project working you should really consider creating a plugin:goal using
  the
  script so you can extract ant from your pom.
 
  --
  Eric Redmond
  http://blog.propellors.net
 
  On 8/8/07, nicolas de loof [EMAIL PROTECTED] wrote:
  
   Based on your link, I don't need a profile but a (plugin) dependency
  to
   antcontrib to use the if tag.
  
   My POM will the look more and more like an ant script. Maven is
  supposed
   to
   use profiles for such use cases. Why is there a limitation NOT to
  support
   ${basedir} property in profile activation ? I understand not
  supporting
   custom properties (that can be set by profiles after activation), but
  not
   for default properties.
  
   I've created MNG-3140 for this...
  
   Nico.
  
   2007/8/8, Eric Redmond [EMAIL PROTECTED]:
   
Why would you need to duplicate it? Have the antrun code only run if
  a
property is set - and only set that property under the profiles you
  want
it
to execute under.
   
You can see how to active a block of ant code here in my book:
   
  
  http://www.sonatype.com/book/lifecycle.html#a_structure_for_goal_execution
   
--
Eric Redmond
http://blog.propellors.net
   
On 8/6/07, nicolas de loof [EMAIL PROTECTED] wrote:

 The ant code required to make the generator work is huge, and
duplicating
 it
 would be worst as running it twice.

 Thanks anyway for the suggestion


 2007/8/6, Wayne Fay [EMAIL PROTECTED]:
 
  Not ideal, but you could set up another profile that has the
  full
   path
  from the parent, and specify that when running from the parent
  ie
  sql2java_top or something.
 
  Wayne
 
  On 8/6/07, nicolas de loof [EMAIL PROTECTED] wrote:
   Hello,
  
   I'm using a code generator, and I'd like to avoid regeneration
  of
code
  on
   each build.
  
   I've set a profile to launch the generation using the antrun
   plugin
   The profile is active based on a generated file missing :
  
   profile
idsql2java/id
activation
  file
 
 missingtarget/generated-sources/sql2java.tstamp/missing
  /file
/activation
build
   ...
  
   As explained in
   http://docs.codehaus.org/display/MAVENUSER/Profiles,
I
   cannot reference ${project.build.directory} in this path.
   When I run mvn install from my parent POM, generator runs
  even
   if
 code
   allready exist, as the project basedir is not the same as
  running
from
  the
   module.
  
   Is there any way to solve this ? Is there any plan for
  properties
  support in
   profiles activation ?
  
   Nico.
  
 
 
   -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

   
  
 




Re: castor plugin and castor version

2007-08-07 Thread nicolas de loof
castor 1.0 split code into castor + castor-codegen-antask,
so I tried :

- creating a relocation pom for castor 1.1
- adding castor:castor:1.1 and org.codehaus.castor:castor-codegen-anttask as
dependencies to the plugin

I get the expected warning :
[WARNING] While downloading castor:castor:1.1
  This artifact has been relocated to org.codehaus.castor:castor:1.1.

But the plugin classpath still refers to castor 0.9.7 :

[DEBUG] Retrieving parent-POM: org.codehaus.mojo:mojo::4 for project:
null:castor-maven-plugin:maven-plugin:1.0 from the repository.
[DEBUG] org.codehaus.mojo:castor-maven-plugin:maven-plugin:1.0:runtime(selected
for runtime)
[DEBUG]   org.codehaus.castor:castor-codegen-anttask:jar:1.1:compile(selected
for compile)
[DEBUG] org.codehaus.castor:castor-codegen:jar:1.1:compile (selected for
compile)
[DEBUG]   org.codehaus.castor:castor:jar:1.1:compile (selected for
compile)
(...)
[WARNING] While downloading castor:castor:1.1
  This artifact has been relocated to org.codehaus.castor:castor:1.1.

[DEBUG]   org.codehaus.castor:castor:jar:1.1:compile (selected for compile)
(...)
[DEBUG]   castor:castor:jar:0.9.7:runtime (selected for runtime)


And the generated code is still broken.

Nico


2007/8/7, Thorsten Heit [EMAIL PROTECTED]:

 Hi,

  I'm using castor to generate code.
  the plugin (mojo) has a dependency on castor:castor:0.9.7
  This version has a generator bug
  (http://jira.codehaus.org/browse/CASTOR-742)
  that is solved in 1.0.4
 
  But I can't override the plugin classpath to set version to 1.0.4 as the
  groupId has been changed since 1.0 to org.codehaus.castor.
 
  Any idea on a way to solve this ???

 I once had a similar problem: One of the dependencies I was using had a
 dependency to commons-beanutils:commons-beanutils:1.4-dev that doesn't
 exist on central repo; well, at least the directory exists, but is empty. I
 solved it by creating the following pom that I deployed to my internal
 repository:

 project
   modelVersion4.0.0/modelVersion
   groupIdcommons-beanutils/groupId
   artifactIdcommons-beanutils/artifactId
   version1.4-dev/version
   namecommons-beanutils/name
   description
 The commons-beanutils package.
   /description
   distributionManagement
 relocation
   groupIdcommons-beanutils/groupId
   artifactIdcommons-beanutils/artifactId
   version1.4/version
 /relocation
   /distributionManagement
 /project

 I suggest you try a similar approach: Create a pom for castor:castor, but
 use a different version that doesn't exist on central, say, 0.9.7.1, add
 relocation info for org.codehaus.castor:castor:1.0.4 into it (assuming
 that this version is compatible to 0.9.7) and deploy it to your
 repository. Then add a dependency to this pseudo pom into your main
 pom.xml.

 Maven should see that you use a newer version for castor:castor:0.9.7which is 
 used by the plugin, and finally use that instead.


 HTH

 Thorsten

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




file based profile activation - best practice ?

2007-08-06 Thread nicolas de loof
Hello,

I'm using a code generator, and I'd like to avoid regeneration of code on
each build.

I've set a profile to launch the generation using the antrun plugin
The profile is active based on a generated file missing :

profile
  idsql2java/id
  activation
file
  missingtarget/generated-sources/sql2java.tstamp/missing
/file
  /activation
  build
...

As explained in http://docs.codehaus.org/display/MAVENUSER/Profiles, I
cannot reference ${project.build.directory} in this path.
When I run mvn install from my parent POM, generator runs even if code
allready exist, as the project basedir is not the same as running from the
module.

Is there any way to solve this ? Is there any plan for properties support in
profiles activation ?

Nico.


castor plugin and castor version

2007-08-06 Thread nicolas de loof
I'm using castor to generate code.
the plugin (mojo) has a dependency on castor:castor:0.9.7
This version has a generator bug (http://jira.codehaus.org/browse/CASTOR-742)
that is solved in 1.0.4

But I can't override the plugin classpath to set version to 1.0.4 as the
groupId has been changed since 1.0 to org.codehaus.castor.

Any idea on a way to solve this ???
Seems I have to use antrun one more time... and my POM looks more and more
like an ant script !

Nico


Re: file based profile activation - best practice ?

2007-08-06 Thread nicolas de loof
The ant code required to make the generator work is huge, and duplicating it
would be worst as running it twice.

Thanks anyway for the suggestion


2007/8/6, Wayne Fay [EMAIL PROTECTED]:

 Not ideal, but you could set up another profile that has the full path
 from the parent, and specify that when running from the parent ie
 sql2java_top or something.

 Wayne

 On 8/6/07, nicolas de loof [EMAIL PROTECTED] wrote:
  Hello,
 
  I'm using a code generator, and I'd like to avoid regeneration of code
 on
  each build.
 
  I've set a profile to launch the generation using the antrun plugin
  The profile is active based on a generated file missing :
 
  profile
   idsql2java/id
   activation
 file
   missingtarget/generated-sources/sql2java.tstamp/missing
 /file
   /activation
   build
  ...
 
  As explained in http://docs.codehaus.org/display/MAVENUSER/Profiles, I
  cannot reference ${project.build.directory} in this path.
  When I run mvn install from my parent POM, generator runs even if code
  allready exist, as the project basedir is not the same as running from
 the
  module.
 
  Is there any way to solve this ? Is there any plan for properties
 support in
  profiles activation ?
 
  Nico.
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




repository with latest hibernate jars ?

2007-08-01 Thread nicolas de loof
Is there a maven repository with latest hibernate jars ?
I've looked at http://repository.jboss.org/ but is doesn't contain the
latest 3.2.5, neither 3.2.4.ga. Does anybody at jboss use maven ?


Re: repository with latest hibernate jars ?

2007-08-01 Thread nicolas de loof
Sure, I allready searched the maven public repo. But none of the latests
hibernate jars are available there.

So I'm just curious if jboss/hibernate developers use a custom maven repo to
deploy latest artifacts (and maybe snapshots), like spring does.

2007/8/1, Christopher Kolstad [EMAIL PROTECTED]:

 Have you looked at the 
 http://repo1.maven.org/maven2/org/hibernate/hibernate repo.
 They've got both the 3.2.4ga and 3.2.4sp1, but no 3.2.5 yet.

 Christopher

 On 8/1/07, nicolas de loof [EMAIL PROTECTED] wrote:
 
  Is there a maven repository with latest hibernate jars ?
  I've looked at http://repository.jboss.org/ but is doesn't contain the
  latest 3.2.5, neither 3.2.4.ga. Does anybody at jboss use maven ?
 



 --
 Regards,
 Christopher Kolstad
 E-mail: [EMAIL PROTECTED] (University)
 [EMAIL PROTECTED] (Home)
 [EMAIL PROTECTED] (Job)



assembly issue with an ear

2007-07-31 Thread nicolas de loof
My project has multiple modules, one of them packages my webapp as ear.
My parent project has an assembly descriptor to build a tar from artifacts +
some script files

If I run mvn assembly:assembly I get a strange error about my ear having
no file attached :

[INFO] Failed to create assembly: Artifact:
com.capgemini.vpc:vpc-application:ear:2.17.00 (included by module) does not
have an artifact with a file. Please ensure the package phase is run before
the assembly is generated.

if I run mvn package assembly:assembly the assembly is build as expected,
but packaging occurs twice as assembly:assembly allready force one...

What's wrong ?
Nico.


Re: assembly issue with an ear

2007-07-31 Thread nicolas de loof
Found the answer myself :

http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html
*NOTE:* Because of a quirk in Maven 2.0's execution model relating to
aggregator mojos and the inheritance hierarchy, we need to explicitly
execute the package phase ahead of the assembly invocation, to ensure all
modules have been built.



2007/7/31, nicolas de loof [EMAIL PROTECTED]:

 My project has multiple modules, one of them packages my webapp as ear.
 My parent project has an assembly descriptor to build a tar from artifacts
 + some script files

 If I run mvn assembly:assembly I get a strange error about my ear having
 no file attached :

 [INFO] Failed to create assembly: Artifact:
 com.capgemini.vpc:vpc-application:ear:2.17.00 (included by module) does
 not
 have an artifact with a file. Please ensure the package phase is run
 before the assembly is generated.

 if I run mvn package assembly:assembly the assembly is build as
 expected, but packaging occurs twice as assembly:assembly allready force
 one...

 What's wrong ?
 Nico.



Re: assembly issue with an ear

2007-07-31 Thread nicolas de loof
Doesn't work in any way (assembly:*) when the assembly plugin is configured
to run during package phase. The only way to make it work is to run mvn
package assembly:*

2007/7/31, Eric Redmond [EMAIL PROTECTED]:

 Have you tried binding assembly:attached to the packaging phase? I don't
 know which would execute first (std package or assembly), but it might be
 worth a short. In 2.1 the pre-package phase will be added, so things like
 this should be easier to deal with in a consistent way.

 --
 Eric Redmond
 http://blog.propellors.net

 On 7/31/07, nicolas de loof [EMAIL PROTECTED] wrote:
 
  Found the answer myself :
 
 
 
 http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html
  *NOTE:* Because of a quirk in Maven 2.0's execution model relating to
  aggregator mojos and the inheritance hierarchy, we need to explicitly
  execute the package phase ahead of the assembly invocation, to ensure
 all
  modules have been built.
 
 
 
  2007/7/31, nicolas de loof [EMAIL PROTECTED]:
  
   My project has multiple modules, one of them packages my webapp as
 ear.
   My parent project has an assembly descriptor to build a tar from
  artifacts
   + some script files
  
   If I run mvn assembly:assembly I get a strange error about my ear
  having
   no file attached :
  
   [INFO] Failed to create assembly: Artifact:
   com.capgemini.vpc:vpc-application:ear:2.17.00 (included by module)
 does
   not
   have an artifact with a file. Please ensure the package phase is run
   before the assembly is generated.
  
   if I run mvn package assembly:assembly the assembly is build as
   expected, but packaging occurs twice as assembly:assembly allready
 force
   one...
  
   What's wrong ?
   Nico.
  
 



[maven 1.1] StackOverflowError error for ant:echo in multiproject plugin ???

2007-07-18 Thread nicolas de loof

Hello,

I'm working on an old project that used maven 1.0.1 and try to upgrade to
1.1.
When I run the multiproject:install goal, I get a
java.lang.StackOverflowError:
   at java.lang.String.init(String.java:208)
   at java.lang.StringBuffer.toString(StringBuffer.java:586)

This is cause by a ant:echo in multiproject plugin.jelly (???)
   ant:echoGathering project list/ant:echo 
When I remove this echo in the plugin jelly script (in cache dir), my
build works as expected (I get other errors, but not related to this...)

What did I miss ? I get same error with jrockit 5.0, 6.0 and Sun jdk 6.

Nico.

Here is the full stacktrace :

Errors stack :

Unable to obtain goal [multiproject:install]

Fichier... file:/D:/platina/maven/cache/maven-multiproject-plugin-1.5.1
/plugin.jelly
╚lement... ant:echo
Ligne. 54
Colonne... 17

java.lang.reflect.InvocationTargetException



Exception stack traces :
org.apache.maven.werkz.UnattainableGoalException: Unable to obtain goal
[multiproject:install]
   at org.apache.maven.werkz.Goal.fire(Goal.java:698)
   at org.apache.maven.werkz.Goal.attain(Goal.java:623)
   at org.apache.maven.plugin.PluginManager.attainGoals(
PluginManager.java:712)
   at org.apache.maven.MavenSession.attainGoals(MavenSession.java:265)
   at org.apache.maven.cli.App.doMain(App.java:307)
   at org.apache.maven.cli.App.main(App.java:217)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at com.werken.forehead.Forehead.run(Forehead.java:551)
   at com.werken.forehead.Forehead.main(Forehead.java:581)
Caused by: org.apache.commons.jelly.JellyTagException:
file:/D:/platina/maven/cache/maven-multiproject-plugin-1.5.1/plug
in.jelly:54:17: ant:echo null
   at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:178)
   at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
   at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java
:95)
   at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java
:186)
   at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
   at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
   at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java
:95)
   at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(
MavenGoalTag.java:83)
   at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction
(MavenGoalTag.java:116)
   at org.apache.maven.werkz.Goal.fire(Goal.java:691)
   at org.apache.maven.werkz.Goal.attain(Goal.java:623)
   at org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:526)
   at org.apache.maven.werkz.Goal.attain(Goal.java:621)
   at org.apache.maven.werkz.WerkzProject.attainGoal(WerkzProject.java
:209)
   at org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(
MavenAttainGoalTag.java:115)
   at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
   at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java
:95)
   at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(
MavenGoalTag.java:83)
   at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction
(MavenGoalTag.java:116)
   at org.apache.maven.werkz.Goal.fire(Goal.java:691)
   at org.apache.maven.werkz.Goal.attain(Goal.java:623)
   at org.apache.maven.plugin.PluginManager.attainGoals(
PluginManager.java:712)
   at org.apache.maven.MavenSession.attainGoals(MavenSession.java:265)
   at org.apache.maven.cli.App.doMain(App.java:307)
   at org.apache.maven.cli.App.main(App.java:217)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at com.werken.forehead.Forehead.run(Forehead.java:551)
Caused by: java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:172)
   at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
   at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java
:95)
   at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java
:186)
   at 

Re: [maven 1.1] StackOverflowError error for ant:echo in multiproject plugin ???

2007-07-18 Thread nicolas de loof

I was defining some properties with similar names that creates a recursive
conflict in latests Jexl :
  maven.eclipse.classpath.include = ${
maven.eclipse.classpath.include.append}
renaming my properties with non-conflicting names solves my issue.

Thanks.



2007/7/18, Lukas Theussl [EMAIL PROTECTED]:


Two more jira's that might be helpful:

http://jira.codehaus.org/browse/MAVEN-1745
http://jira.codehaus.org/browse/MAVEN-1830

-Lukas



Lukas Theussl wrote:
 Probably because of this:

 http://jira.codehaus.org/browse/MAVEN-1749

 check your properties...

 HTH,
 -Lukas


 nicolas de loof wrote:

 Hello,

 I'm working on an old project that used maven 1.0.1 and try to upgrade
to
 1.1.
 When I run the multiproject:install goal, I get a
 java.lang.StackOverflowError:
at java.lang.String.init(String.java:208)
at java.lang.StringBuffer.toString(StringBuffer.java:586)

 This is cause by a ant:echo in multiproject plugin.jelly (???)
ant:echoGathering project list/ant:echo 
 When I remove this echo in the plugin jelly script (in cache dir), my
 build works as expected (I get other errors, but not related to
this...)

 What did I miss ? I get same error with jrockit 5.0, 6.0 and Sun jdk 6.

 Nico.

 Here is the full stacktrace :

 Errors stack :

 Unable to obtain goal [multiproject:install]


 Fichier... file:/D:/platina/maven/cache/maven-multiproject-plugin-1.5.1
 /plugin.jelly
 ╚lement... ant:echo
 Ligne. 54
 Colonne... 17

 java.lang.reflect.InvocationTargetException


 Exception stack traces :
 org.apache.maven.werkz.UnattainableGoalException: Unable to obtain goal
 [multiproject:install]
at org.apache.maven.werkz.Goal.fire(Goal.java:698)
at org.apache.maven.werkz.Goal.attain(Goal.java:623)
at org.apache.maven.plugin.PluginManager.attainGoals(
 PluginManager.java:712)
at
 org.apache.maven.MavenSession.attainGoals(MavenSession.java:265)
at org.apache.maven.cli.App.doMain(App.java:307)
at org.apache.maven.cli.App.main(App.java:217)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
 NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
 Caused by: org.apache.commons.jelly.JellyTagException:
 file:/D:/platina/maven/cache/maven-multiproject-plugin-1.5.1/plug
 in.jelly:54:17: ant:echo null
at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java
:178)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java
:250)
at org.apache.commons.jelly.impl.ScriptBlock.run(
ScriptBlock.java
 :95)
at org.apache.commons.jelly.TagSupport.invokeBody(
TagSupport.java
 :186)
at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java
:250)
at org.apache.commons.jelly.impl.ScriptBlock.run(
ScriptBlock.java
 :95)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(
 MavenGoalTag.java:83)
at

org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction

 (MavenGoalTag.java:116)
at org.apache.maven.werkz.Goal.fire(Goal.java:691)
at org.apache.maven.werkz.Goal.attain(Goal.java:623)
at org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:526)
at org.apache.maven.werkz.Goal.attain(Goal.java:621)
at
 org.apache.maven.werkz.WerkzProject.attainGoal(WerkzProject.java
 :209)
at org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(
 MavenAttainGoalTag.java:115)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java
:250)
at org.apache.commons.jelly.impl.ScriptBlock.run(
ScriptBlock.java
 :95)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(
 MavenGoalTag.java:83)
at

org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction

 (MavenGoalTag.java:116)
at org.apache.maven.werkz.Goal.fire(Goal.java:691)
at org.apache.maven.werkz.Goal.attain(Goal.java:623)
at org.apache.maven.plugin.PluginManager.attainGoals(
 PluginManager.java:712)
at
 org.apache.maven.MavenSession.attainGoals(MavenSession.java:265)
at org.apache.maven.cli.App.doMain(App.java:307)
at org.apache.maven.cli.App.main(App.java:217)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
 NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.werken.forehead.Forehead.run(Forehead.java:551)
 Caused

Re: JavaScript compression plugin

2007-06-11 Thread nicolas de loof

I've built one based on dojo shrinksafe.
It's not yet released. I've proposed it as contrib to maven mojo but did not
get the expected interest.

I'll release it this summer if you can wit for it.



2007/6/11, Adam Altemus [EMAIL PROTECTED]:


We (http://www.mobilvox.com) are currently working on one.  There have
been
some others but, not sure of their status.

Thanks,

Adam

On 6/11/07, Nathan Maves [EMAIL PROTECTED] wrote:

 Has anyone seen one yet?

 Nathan




Re: m2: Profile activation based on project (not System) property

2007-06-11 Thread nicolas de loof

Had the same request some weeks ago.
The reply is ... not yet supported, only possible on maven 2.1 with
some dedicated plugins...


2007/6/12, Samuel Le Berrigaud [EMAIL PROTECTED]:


Hi Dave,

did you get any reply to that? We are trying achieve a similar
configuration and would appreciate any info.

Anyone else maybe?

Thanks,
SaM

On 5/25/07, Dave Syer [EMAIL PROTECTED] wrote:

 Is it possible to activate a profile based on a project property?  It
doesn't
 seem to work in any obvious way, but can I do it at all?

 I want to define a profile in the parent pom, and activate it for some
of
 thh child modules, but not all, without the user having to change the
 command line to specify a System property.  If there is a better way to
do
 this I'd be happy to consider suggestions.
 --
 View this message in context:
http://www.nabble.com/m2%3A-Profile-activation-based-on-project-%28not-System%29-property-tf3815567s177.html#a10801263
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Samuel Le Berrigaud

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




any way to override a plugin dependency ?

2007-06-05 Thread nicolas de loof

Hello,

I've got a legacy project to convert from maven1 to maven2.
It uses castor to generate code based on an XSD.

castor plugin from mojo uses castor 0.9.7, and my project use castor 0.9.5,
and the generated code is not compatible (unmarshall returns Object in
0.9.7 !)

I've those options :
1 - adapt all my code to the uncompatile generated code
2 - find a way to force the castor plugin mojo to use castor-0.9.5
3 - use the antrun plugin to manually call castor:generate with the expected
version
4 - don't migrate to maven2

I don't think 2 is possible in maven 2.0. Many maven2 plugins are designed
to package invocation of another tool. Any change in the tool would require
a new plugin release. Is there any plan to make this possible in maven 2.1 ?


Re: any way to override a plugin dependency ?

2007-06-05 Thread nicolas de loof

Seems to work, I also though it didn't.


2007/6/5, Wendy Smoak [EMAIL PROTECTED]:


On 6/5/07, nicolas de loof [EMAIL PROTECTED] wrote:

 I've got a legacy project to convert from maven1 to maven2.
 It uses castor to generate code based on an XSD.

 castor plugin from mojo uses castor 0.9.7, and my project use castor
0.9.5,
 and the generated code is not compatible (unmarshall returns Object in
 0.9.7 !)

plugindependenciesdependency should work, however there was a
thread recently that implied it might not...

--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: profile activation based on property = properties in POM

2007-06-04 Thread nicolas de loof

Thanks for this detailled reply.

I'll have to find an alternative to profiles. Ability to activate parent-POM
profiles from a POM would be really nice as it would enable pulling up lot's
of common configuration to corporate POMs.

For now, I'll use an archetype to add all the profiles to the generated
project POM with activation based on activeByDefault, so that projects can
easily enable/disable some configuration.

Nico.

2007/6/3, John Casey [EMAIL PROTECTED]:


Unfortunately, this doesn't work in Maven 2.0.x.

The reason is that the profile activator actually uses
System.getProperty( project.target.jre ), not project.getProperties
().getProperty( project.target.jre ).

It's actually a fairly involved process to check the POM for
properties during profile activation (you probably wouldn't think
so...). I've added the technical ability to do this in Maven trunk
(2.1.x), but it still requires a custom profile activator. If you
look at the c-builds code in the native-mojo project:

http://svn.codehaus.org/native-mojo/c-builds/trunk

you should see a directory called:

plugins/cbuild-profile-activators

This contains an example of precisely the type of profile activation
you're trying to accomplish, but it only works on Maven trunk (which
is currently pre-alpha).

Sorry for any confusion.

-john


On May 28, 2007, at 5:03 AM, nicolas de loof wrote:

 Hello,

 I'd like to have a set of profiles in my corporate parent POM for
 various
 maven usage. To enable them depending on projects I'd like to set a
 property in the project POM to enable the profile :

 example :
 - corporate parent pom :

profile
idJava5/id
activation
property
nameproject.target.jre/name
valuejava5/value
/property
/activation
properties
maven.compile.source1.5/maven.compile.source
maven.compile.target1.5/maven.compile.target
 ...

 - project POM :

properties
project.target.jrejava5/project.target.jre
/properties


 This doesn't work as I expected. Is there any way to enable a
 profile in
 parent POM from a child POM ?

 Nico.

---
John Casey
Committer and PMC Member, Apache Maven
mail: jdcasey at commonjava dot org
blog: http://www.ejlife.net/blogs/john





transitive provided dependency

2007-06-04 Thread nicolas de loof

Hello,

My POM declares a dependency on a library that itself has dependency on JEE
apis (jca, jms) declared as provided.
Those dependencies are not set in my classpath by the eclipse plugin,
neither get include during compile.

According to
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html,
provided dependencies should be set as provided in the target project.

Did I miss something ?


Re: transitive provided dependency

2007-06-04 Thread nicolas de loof

That right,
I don't want those javax.* jars to be bundled in my war.
according to maven doc :
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html,

It is expected to be transitive anyway.


2007/6/4, Jo Vandermeeren [EMAIL PROTECTED]:


Hi Nicolas,

Apparently you have indeed missed a bit ;)

The URL you pasted mentions:
*provided* - this is much like compile, but indicates you expect the JDK
or
a container to provide it. It is only available on the compilation
classpath, and is not transitive.

This means that they were needed to compile the project on which your
project depends, but are expected to be provided by the environment in
which
the code is going to be executed.
You don't want the dependency in your war/ear, neither do you want to
force
them on dependent projects.

Cheers
Jo

On 6/4/07, nicolas de loof [EMAIL PROTECTED] wrote:

 Hello,

 My POM declares a dependency on a library that itself has dependency on
 JEE
 apis (jca, jms) declared as provided.
 Those dependencies are not set in my classpath by the eclipse plugin,
 neither get include during compile.

 According to


http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
 ,
 provided dependencies should be set as provided in the target project.

 Did I miss something ?




Re: How to tell Maven where to find jar (specify classpath)

2007-06-02 Thread nicolas de loof

You can also point to an existing location in maven public repo (
http://repo1.maven.org/maven2/com/oracle/)

When trying to compile, maven will complain not finding the dependecy and
output the command required to install the file in the local repository. The
POM gives the URL to download the jar

You may also deploy it in a corporate/private repository, used as a proxy to
maven repo, so that developpers don't have to wory about where it comes
from.

Nico.

2007/6/2, Michael Meyer [EMAIL PROTECTED]:


Hi
you could try adding the dependency with scope system [1].

dependency
  groupIdoracle/groupId
  artifactIdoracle/artifactId
  versionx.x.x/version
  scopesystem/scope
  systemPath${basedir}/lib/oracle.jar/systemPath
/dependency

Cheers, michael

[1]
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

SiSi'mon schrieb:
 We have a product we wish to deliver that requires compliation.  We have
a
 pom.xml file that specifies all the dependencies but there is one
dependency
 (Oracle jdbc jars) for which there is no repository so we must package
the
 .jar files in a /lib/ directory under our application.

 Outside of this all dependencies can be handled by Maven2.  How do you
 specify the location of the jar or class files on the maven command
line?
 we need to tell maven where the ojdbc jars are when it runs.

 thanks

 Si'mon


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




any way to exclude many or all transitive dependencies with exclusions ?

2007-06-01 Thread nicolas de loof

Hello,

Spring 2.1-m2 changed spring packaging and I had to revisit my POM. I get
lot's of dependencies conflicts as many other dependencies introduce old
spring modules as transitive dependencies.

I'll have to set a huge number of exclude to make it work. Is there any
way to use exclude with some patterns, like :
groupIdorg.springframework/groupId
artifactId*/artifactId ?

I've tried to provide only groupId (no artifactId) but this doesn't work as
I expected.

Nico.


profile activation based on property = properties in POM

2007-05-28 Thread nicolas de loof

Hello,

I'd like to have a set of profiles in my corporate parent POM for various
maven usage. To enable them depending on projects I'd like to set a
property in the project POM to enable the profile :

example :
- corporate parent pom :

   profile
   idJava5/id
   activation
   property
   nameproject.target.jre/name
   valuejava5/value
   /property
   /activation
   properties
   maven.compile.source1.5/maven.compile.source
   maven.compile.target1.5/maven.compile.target
...

- project POM :

   properties
   project.target.jrejava5/project.target.jre
   /properties


This doesn't work as I expected. Is there any way to enable a profile in
parent POM from a child POM ?

Nico.


maven plugin to download (and unzip) a JAR ?

2007-05-15 Thread nicolas de loof

Hello

I'm looking for a maven plugin to download a Jar that IS NOT is maven repo.
The target Jar is the Dojo modified Rhino.jar. As it is in Dojo subversion,
it is available but subject to changes, so I'd like to get the latest during
my build. The maven-remote-resource-plugin only support
maven-resources-bundles.
The only way I've found is to use maven-scm-plugin to checkout the full lib
directory...

Nico.


Re: maven plugin to download (and unzip) a JAR ?

2007-05-15 Thread nicolas de loof

Thats the solution I'm currently trying
thanks.


2007/5/15, Stephane Nicoll [EMAIL PROTECTED]:


What about an ant task (wget + unzip).

Stéphane

On 5/15/07, nicolas de loof [EMAIL PROTECTED] wrote:
 Hello

 I'm looking for a maven plugin to download a Jar that IS NOT is maven
repo.
 The target Jar is the Dojo modified Rhino.jar. As it is in Dojo
subversion,
 it is available but subject to changes, so I'd like to get the latest
during
 my build. The maven-remote-resource-plugin only support
 maven-resources-bundles.
 The only way I've found is to use maven-scm-plugin to checkout the full
lib
 directory...

 Nico.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: how to run svn propset from maven ?

2007-05-14 Thread nicolas de loof

I've found various projects that use a .svnignore file, that is set to
svn:ignore property using the -F option.
I'll try to use the mojo exec plugin to execute it.

2007/5/11, Trevor Spackman [EMAIL PROTECTED]:


This is probably off-topic for this particular forum, but all you should
have to do is create a pre-commit hook for subversion that will prevent
said files from being added.  I think that should be much, much easier
to enforce than using maven.

Trevor Spackman



-Original Message-
From: nicolas de loof [mailto:[EMAIL PROTECTED]
Sent: Friday, May 11, 2007 7:40 AM
To: Maven Users List
Subject: how to run svn propset from maven ?

Hello,

I'd like to include in my corporate POM the required configuration to
set
svn:ignore on maven projects when added to a svn repository.
Lot's of svn newbee commit all the project, including eclipse conf and
target content.

Any suggestion ?

Nico.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: how to run svn propset from maven ?

2007-05-14 Thread nicolas de loof

I finally used the tigris svnant package and the antrun plugin.
Seems to work (more testing required).


2007/5/14, nicolas de loof [EMAIL PROTECTED]:


I've found various projects that use a .svnignore file, that is set to
svn:ignore property using the -F option.
I'll try to use the mojo exec plugin to execute it.

2007/5/11, Trevor Spackman [EMAIL PROTECTED]:

 This is probably off-topic for this particular forum, but all you should
 have to do is create a pre-commit hook for subversion that will prevent
 said files from being added.  I think that should be much, much easier
 to enforce than using maven.

 Trevor Spackman



 -Original Message-
 From: nicolas de loof [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 11, 2007 7:40 AM
 To: Maven Users List
 Subject: how to run svn propset from maven ?

 Hello,

 I'd like to include in my corporate POM the required configuration to
 set
 svn:ignore on maven projects when added to a svn repository.
 Lot's of svn newbee commit all the project, including eclipse conf and
 target content.

 Any suggestion ?

 Nico.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





how to run svn propset from maven ?

2007-05-11 Thread nicolas de loof

Hello,

I'd like to include in my corporate POM the required configuration to set
svn:ignore on maven projects when added to a svn repository.
Lot's of svn newbee commit all the project, including eclipse conf and
target content.

Any suggestion ?

Nico.


how to disable a profile ?

2007-05-03 Thread nicolas de loof

Hello,

my settings.xml contain a set of mirror. In some circunstances I'd like to
disable them.
To do this, I've set them in a profile that is enabled by default.

How can I disable this profile from the command line ?

Nico.


Re: how to disable a profile ?

2007-05-03 Thread nicolas de loof

In fact, I was wrong, the settings descriptor doesn't allow to set mirrors
in a profile. I'll have to comment the XML block any time I want to disable
mirrors...

2007/5/3, nicolas de loof [EMAIL PROTECTED]:


Hello,

my settings.xml contain a set of mirror. In some circunstances I'd like
to disable them.
To do this, I've set them in a profile that is enabled by default.

How can I disable this profile from the command line ?

Nico.



Re: how to disable a profile ?

2007-05-03 Thread nicolas de loof

Thanks !

2007/5/3, Jörg Schaible [EMAIL PROTECTED]:



mvn -s alternate-settings.xml

:)

nicolas de loof wrote on Thursday, May 03, 2007 12:02 PM:

 In fact, I was wrong, the settings descriptor doesn't allow to set
 mirrors in a profile. I'll have to comment the XML block any time I
 want to disable mirrors...

 2007/5/3, nicolas de loof [EMAIL PROTECTED]:

 Hello,

 my settings.xml contain a set of mirror. In some circunstances I'd
 like to disable them. To do this, I've set them in a profile that is
 enabled by default.

 How can I disable this profile from the command line ?

 Nico.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Guide to creating archetypes...

2007-05-03 Thread nicolas de loof

I'm trying to use the archetypeNG plugin from an existing complex (multi
module) project.

The plugins ask me for archetype groupId and other properties on every
module of the source project. It generates an archetype for every module.

I'd like to generate the complete project with modules from a single
archetype, based on my sample project.

How to do this ?

Nico.



2007/5/3, Raphaël Piéroni [EMAIL PROTECTED]:


2007/5/3, Rémy Sanlaville [EMAIL PROTECTED]:
 
   what's the difference ?
  Mainly
  - the descriptor is changed
  - user is prompted for selecting the archetype and configuration
  (unless using -B)
  - any file can be resolved as packaged (using package in the directory
  resolution)
  - any file can be resolved as binary (copied instead of velocity
template)
  - support for multi project

I forgot:
- archetype creation form an existing project (yes with the above
features packaged, filtered, multiproject)

 
  
   http://mojo.codehaus.org/maven-archetypeng/
  which is not yet released


 Did you have a roadmap when it will be released ?
I got a roadmap (on paper without any date)
But i could say it need at least 2 weeks before putting a first alpha
release

Raphaël

 So, if I understand, maven-archetypeng has more features and seems more
 powerful.
 So it's better to look at maven-archetypeng instead of maven-archetype.
I
 will have a look.
 I imagine it will normally replace maven-archetype in the future.

 
   or
  
   mvn archetype:create
 -DgroupId=[your project's group id]
 -DartifactId=[your project's artifact id]
 -DarchetypeArtifactId=maven-archetype-archetype
  
  
   (cf.
http://maven.apache.org/guides/mini/guide-creating-archetypes.html)
 
 
  Hope the answer makes sense


 Nice thanks.

 Rémy




Re: Guide to creating archetypes...

2007-05-03 Thread nicolas de loof

I allready tried this, but the generated archetype does not include modules
(only parent pom).

2007/5/3, Raphaël Piéroni [EMAIL PROTECTED]:


Try mvn -N archetypeng:create-from-project

Raphaël

2007/5/3, nicolas de loof [EMAIL PROTECTED]:
 I'm trying to use the archetypeNG plugin from an existing complex (multi
 module) project.

 The plugins ask me for archetype groupId and other properties on every
 module of the source project. It generates an archetype for every
module.

 I'd like to generate the complete project with modules from a single
 archetype, based on my sample project.

 How to do this ?

 Nico.



 2007/5/3, Raphaël Piéroni [EMAIL PROTECTED]:
 
  2007/5/3, Rémy Sanlaville [EMAIL PROTECTED]:
   
 what's the difference ?
Mainly
- the descriptor is changed
- user is prompted for selecting the archetype and configuration
(unless using -B)
- any file can be resolved as packaged (using package in the
directory
resolution)
- any file can be resolved as binary (copied instead of velocity
  template)
- support for multi project
 
  I forgot:
  - archetype creation form an existing project (yes with the above
  features packaged, filtered, multiproject)
 
   

 http://mojo.codehaus.org/maven-archetypeng/
which is not yet released
  
  
   Did you have a roadmap when it will be released ?
  I got a roadmap (on paper without any date)
  But i could say it need at least 2 weeks before putting a first alpha
  release
 
  Raphaël
 
   So, if I understand, maven-archetypeng has more features and seems
more
   powerful.
   So it's better to look at maven-archetypeng instead of
maven-archetype.
  I
   will have a look.
   I imagine it will normally replace maven-archetype in the future.
  
   
 or

 mvn archetype:create
   -DgroupId=[your project's group id]
   -DartifactId=[your project's artifact id]
   -DarchetypeArtifactId=maven-archetype-archetype


 (cf.
  http://maven.apache.org/guides/mini/guide-creating-archetypes.html)
   
   
Hope the answer makes sense
  
  
   Nice thanks.
  
   Rémy
  
 




Re: What is the official maven 2 repository location?

2007-05-01 Thread nicolas de loof

http://repo1.maven.org/maven2 is the official location.
maven 1.1-dev also has been updated to download from
http://repo1.maven.org/maven

The doc may needs some cleanup.


2007/5/1, Xavier Hanin [EMAIL PROTECTED]:


Hi,

I'd like to know what is the official maven 2 repository location.
Indeed on the getting started [1] page, the answer to How do I use
external dependencies? states that http://www.ibiblio.org/maven2 is
the default location. The Introduction to repository page [2] seems to
say it's http://repo1.maven.org/maven2. OTOH I've seen an e-mail on
the infra list saying that the maven.org domain will be removed
shortly.

So, could someone tell me what's the official location?

TIA,

Xavier

[1] http://maven.apache.org/guides/getting-started/index.html
[2]
http://maven.apache.org/guides/introduction/introduction-to-repositories.html

--
Learn Ivy at ApacheCon: http://www.eu.apachecon.com/
Manage your dependencies with Ivy!
http://incubator.apache.org/ivy/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




how to set the repositories to be used for plugin dependencies ?

2007-04-24 Thread nicolas de loof

Hello,

I'd like to configure a dependency to the compiler plugin (the SUN
rt.jarfor java
1.3) as I use it for bootclasspath :

   artifactIdmaven-compiler-plugin/artifactId
   configuration
   compilerArguments
   bootclasspath
   ${settings.localRepository}/com/sun/rt/${
maven.compile.runtime}/rt-${maven.compile.runtime}.jar
   /bootclasspath
   /compilerArguments
   /configuration
   dependencies
   dependency
   groupIdcom.sun/groupId
   artifactIdrt/artifactId
   version${maven.compile.runtime}/version
   /dependency
   /dependencies

To resolve this non-free dependency, I need to set a custom repository in my
settings.xml to point to my corporate repo.

When I run maven, it complain for dependency . It searched in central and
apache.snapshot repositories.
I myself have NOT declared apache.snapshots as a repository. It is declared
in the apache-3 parent POM that the plugin extends

I then have two questions :

 1. How to configure the repository to be used for downloading dependencies
in a plugin WITHOUT changing my POM ?

 2. Is this exepected for a released POM to make reference to a snapshot
repository ?

Nico


Re: How do Archiva Proxied Repositories work?

2007-04-23 Thread nicolas de loof

Archiva downloads artifacts on demand via HTTP using wagon-http. I use a
similar config with no issue, but I don't have any proxy to set to access
repo1.

AFAIK rsync is not yet available.

2007/4/23, M Wurm [EMAIL PROTECTED]:


Hi there,

I've set up Archiva and (almost everything) works fine. I can retrieve
artifacts I deployed manually, can deploy artifacts via webdav, but
proxied repositories don't seem to work.

Now I wanted to ask how Archiva proxies a repository. Somewhere I've
read Archiva loads artifacts from demand, so I guess it recognizes a
HTTP GET on a directory that doesn't exists and tries to retrieve that
artifact from one of the repositories listed under proxied
repositories. Is this correct?

If so, how is the proxied repository being accessed? Via http? Or is
rsync used in some way? I need to specify a http proxy (which I did in
the Archiva settings), but rsync is disabled on the machine that hosts
Archiva. Can this be a problem?

I'm proxying http://repo1.maven.org/maven2/ but can't get it work.
Maven tells me it could not download a dependency via my managed
repository and falls back to the default repository.


Any ideas?


Best Regards,
Matthias



Re: Maven and Archiva in a corporate environment

2007-04-20 Thread nicolas de loof

I myself have this config :

I have folder-based repositories (hand managed, not included in archiva as
managed repo) for
- private corporate artifacts (release + snapshots)
- restricted libs (sun jar, oracle driver...)
- free libs not available on repo1 OR -soures.jar for existing libs
(spring-xx)

I have configured an archiva managed repository that proxies

- my 3 private repos
- repo1.maven.org
- snapshots from apache  codehaus
- java.net repo

The developpers configure maven2 to use archiva as mirrorOf*/mirrorOf

If some artifact is missing, I can add the expected repo as proxied or copy
the expected artifact in my free libs repo.

This config has an issue :
I' writing a corporate POM and deployed a snapshot. For any project to use
it as parent I have to add a repository entry with snapshot enabled,
pointing to my corporate artifacts repo. As mirrorOf redirects to archiva,
this also enables snapshots from apache/codehaus.
This may introduce unexpected snapshots pluginsin the build and make it
unreproductible.

I encourage users to force the plugin version (see recent thread on list)
to avoid this issue.

Nico.


2007/4/19, Arnaud HERITIER [EMAIL PROTECTED]:


Hi everybody,

  I would like to have your feedback about the usage of maven (1  2) with
archiva in a corporate environment.

  Up until now in a corporate environment I was using by default 5 managed
repositories :
  - corporate-releases : for inhouse releases filled by teams (and by
continuum 1.1 shortly).
  - corporate-snapshots : for inhouse snapshots filled by the CI.
  - proxy-releases : for the central repository and few others not
synchronized.
  - proxy-snapshots : for snapshots coming from apache, codehaus and more.
  - 3rdparties : for 3rd party editors which don't publish their
libraries.

  I think it is a good separation for repositories because they don't have
the same size (releases vs snapshots) and the same backup policy
(corporate
vs proxy).
  The problem with this approach is that we have to deploy a complex
settings.xml for developers. We have to define :
  - several proxies using proxy-releases or proxy-snapshots
  - 5 repositories
  - 5 pluginRepositories
  Another problem is that when maven (1 or 2) tries to download a missing
dependency it will send several requests to archiva and it can be slow if
the network isn't enough rapid. This problem occurs often when you have to
update your IDE settings. Maven tries to download X times the javadocs and
sources (but it's useful to have them).

  I tried to find a workaroung for that by replacing both proxy
repositories
by only one (proxy-all) which proxies at the same time my internal
repositories and the releases and snapshots outside of the company.
  It's working find and I have better performances because maven send only
one request to archiva. My settings are very reduced because I just have
to
define one proxy (with *), one repository and one pluginRepository.
  The counterpart is that now maven 2 updates all its plugins with
SNAPSHOTs
because in my proxy-all repo, I have metadata updated from snapshots
repositories. Thus I can't keep these settings without to have a unstable
environment.

  What do you think ? How are you doing ?

Arnaud



Re: Maven and Archiva in a corporate environment

2007-04-20 Thread nicolas de loof

2007/4/20, Arnaud HERITIER [EMAIL PROTECTED]:



Hi Nico,

  Thanks for your feedback.
  I have effectively the same problem if I use my proxy-all repo.
  I followed the threads about risks on plugins updates and I agree that
it
is better to define the list of validated plugins (in a parent pom for
example). The problem is to maintain this pom because I can't ask to the
dev
teams to do it themself. I don't yet begin to create one but I think I
will...
  I'm feeling at ease to know that I'm not the only one to have those
problems ;-)




I've started to write my corporate POM to include those plugin version
fix.
I plan to write a robot to get all current maven + mojo plugins versions
from repo1 and include them as pluginManagement. That beeing done, I can
expect less plugin issues...

Someone suggested to add support in the release plugin to set all plugins
version used when building the release. This would be a nice way to solve
this with few impact on existing maven builds.


Arnaud



PS: I tested all the patchs for m1 with the trunk and it's working fine.
I'll commit them soon.




Great, My archiva snapshot build will be be in sync with SVN ... until
MRM-320 is solved !


nicolas de loof-2 wrote:


 I myself have this config :

 I have folder-based repositories (hand managed, not included in archiva
as
 managed repo) for
 - private corporate artifacts (release + snapshots)
 - restricted libs (sun jar, oracle driver...)
 - free libs not available on repo1 OR -soures.jar for existing libs
 (spring-xx)

 I have configured an archiva managed repository that proxies

 - my 3 private repos
 - repo1.maven.org
 - snapshots from apache  codehaus
 - java.net repo

 The developpers configure maven2 to use archiva as
mirrorOf*/mirrorOf

 If some artifact is missing, I can add the expected repo as proxied or
 copy
 the expected artifact in my free libs repo.

 This config has an issue :
 I' writing a corporate POM and deployed a snapshot. For any project to
use
 it as parent I have to add a repository entry with snapshot enabled,
 pointing to my corporate artifacts repo. As mirrorOf redirects to
 archiva,
 this also enables snapshots from apache/codehaus.
 This may introduce unexpected snapshots pluginsin the build and make it
 unreproductible.

 I encourage users to force the plugin version (see recent thread on
 list)
 to avoid this issue.

 Nico.


 2007/4/19, Arnaud HERITIER [EMAIL PROTECTED]:

 Hi everybody,

   I would like to have your feedback about the usage of maven (1  2)
 with
 archiva in a corporate environment.

   Up until now in a corporate environment I was using by default 5
 managed
 repositories :
   - corporate-releases : for inhouse releases filled by teams (and by
 continuum 1.1 shortly).
   - corporate-snapshots : for inhouse snapshots filled by the CI.
   - proxy-releases : for the central repository and few others not
 synchronized.
   - proxy-snapshots : for snapshots coming from apache, codehaus and
 more.
   - 3rdparties : for 3rd party editors which don't publish their
 libraries.

   I think it is a good separation for repositories because they don't
 have
 the same size (releases vs snapshots) and the same backup policy
 (corporate
 vs proxy).
   The problem with this approach is that we have to deploy a complex
 settings.xml for developers. We have to define :
   - several proxies using proxy-releases or proxy-snapshots
   - 5 repositories
   - 5 pluginRepositories
   Another problem is that when maven (1 or 2) tries to download a
missing
 dependency it will send several requests to archiva and it can be slow
if
 the network isn't enough rapid. This problem occurs often when you have
 to
 update your IDE settings. Maven tries to download X times the javadocs
 and
 sources (but it's useful to have them).

   I tried to find a workaroung for that by replacing both proxy
 repositories
 by only one (proxy-all) which proxies at the same time my internal
 repositories and the releases and snapshots outside of the company.
   It's working find and I have better performances because maven send
 only
 one request to archiva. My settings are very reduced because I just
have
 to
 define one proxy (with *), one repository and one pluginRepository.
   The counterpart is that now maven 2 updates all its plugins with
 SNAPSHOTs
 because in my proxy-all repo, I have metadata updated from snapshots
 repositories. Thus I can't keep these settings without to have a
unstable
 environment.

   What do you think ? How are you doing ?

 Arnaud




--
View this message in context:
http://www.nabble.com/Maven-and-Archiva-in-a-corporate-environment-tf3609686.html#a10101750
Sent from the archiva-users mailing list archive at Nabble.com.




howto set svn:ignore in archetype ?

2007-04-19 Thread nicolas de loof

Hello

is there any way to specify svn:ignore metadata as elements of an archetype
?
I'd like my archetype to generate a webapp, with target and eclipse .project
automatically set as svn:ignore.

Any suggestion ?

Nico


Re: How to set the Eclipse Java Compiler property JDK Compliance using the eclipse plugin?

2007-04-14 Thread nicolas de loof

This requires http://jira.codehaus.org/browse/MECLIPSE-172 to be fixed. You
can vote for it.

2007/4/13, Paul Spencer [EMAIL PROTECTED]:


I have set the compiler version for the maven-compiler-plugin, but that
does not seem to affect the eclipse plugin.

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
  verbosetrue/verbose
  forktrue/fork
  compilerVersion1.4/compilerVersion
/configuration
  /plugin


How do I set the Eclipse Java Compiler property JDK Compliance using the
eclipse plugin?

Paul Spencer





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Using maven directly from a java application ?

2007-04-12 Thread nicolas de loof

The snapshot is for the parent POM, so having a repository set in the POM
has no effect as maven has to resolve the parent before reading the POM...

You can run maven with -DremoteRepositories=
http://people.apache.org/maven-snapshot-repository
This avoids changing your settings and allow to build the embedder project.






2007/4/12, Thierry Lach [EMAIL PROTECTED]:


While that will probably work, I don't find that to be an acceptible
solution.

I don't want to include any repositories in my settings.xml, as I am
experimenting with several projects which build with m2 and I don't want
to
take a chance on running into plugin revision issues.  If that repository
is
required for the build, it should be in the pom.

On 4/11/07, franz see [EMAIL PROTECTED] wrote:


 Good day,

 Try adding [1] to your list of repositories in your settings.xml

 Cheers,
 Franz

 [1] http://people.apache.org/maven-snapshot-repository


 Thierry Lach-2 wrote:
 
  I did svn co against [2] and ran mvn site, and got the following
 error...
 
  [INFO] Scanning for projects...
 
  [INFO]
 

 
  [ERROR] FATAL ERROR
 
  [INFO]
 

 
  [INFO] Failed to resolve artifact.
 
  GroupId: org.apache.maven
  ArtifactId: maven
  Version: 2.1-SNAPSHOT
 
  Reason: Unable to download the artifact from any repository
 
 
 
org.apache.maven:maven:pom:2.1-SNAPSHOT
 
 
 
  from the specified remote repositories:
 
central (http://repo1.maven.org/maven2)
 
 
 
 
 
 
  On 4/10/07, franz see [EMAIL PROTECTED] wrote:
 
 
  Good day,
 
  Try [1]. Also you can check out the the latest maven-embedder ( from
 [2]
  )
  and take a look at its examples and tests. You may also want to run
mvn
  site
  against [2] to get the latest version of the guide presented in [1].
 
  Cheers,
  Franz
 
  [1] http://maven.apache.org/guides/mini/guide-embedding-m2.html
  [2]
 http://svn.apache.org/repos/asf/maven/components/trunk/maven-embedder
 
 
  Wayne Fay wrote:
  
   Not that I am personally aware of. But search this list and the
Maven
   Dev list -- you're bound to find something.
  
   Wayne
  
   On 4/10/07, Marouane Amraoui [EMAIL PROTECTED] wrote:
   Thx for reply.
  
   There are some documentation about using embeded maven ??
  
   -Message d'origine-
   De: Wayne Fay [mailto:[EMAIL PROTECTED]
   Envoyé: mardi 10 avril 2007 15:16
   À: Maven Users List
   Objet: Re: Using maven directly from a java application ?
  
   You may want to try to use the Maven Embedder:
   http://idisk.maven.org/jvanzyl/Public/embedder/
  
   Wayne
  
   On 4/9/07, Marouane Amraoui [EMAIL PROTECTED] wrote:
Hi,
   
   
   
I want to atomize  the creation of the structure of my project.
So
   iwant to develop a desktop application in order to give to the end
  user
   
To fill some parameters like : groupId,  artifactId ...
   
My question how can I invoke all command mvn from my application
   desktop , ie I don't want to use the mvn.bat  I want to use java
  classes
   of maven directly ??
   
This is a simple to do or I must navigate on all java
 classes  maven
   
   
   
   
Thx
   
   
   
   
   
---
   
Merouane AMRAOUI
Consultant Expert
Division Développement
Email.: [EMAIL PROTECTED]
   
Gsm  .: 065 19 60 99
Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70
OMNIDATA , 74 Bv AbdelMoumen
   
   
   
   
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
-
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
  --
  View this message in context:
 

http://www.nabble.com/Using--maven-directly-from-a-java-application---tf3546918s177.html#a9932032
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context:

http://www.nabble.com/Using--maven-directly-from-a-java-application---tf3546918s177.html#a9940680
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





Re: maven 2.0.6 and xdoclet-maven-plugin

2007-04-05 Thread nicolas de loof

Why don't we get a dependency failure if maven cannot built the expected
classpath ?


2007/4/4, Jörg Schaible [EMAIL PROTECTED]:


nicolas de loof wrote on Wednesday, April 04, 2007 5:24 PM:

 I got the same issue.
 xdoclet plugin requires some ant classes. Maven 2.0.6 seems
 to make changes
 in plugins classpath and you have to add a dependency to the plugin :

 plugin
 artifactIdxdoclet-maven-plugin/artifactId
 groupIdorg.codehaus.mojo/groupId
 executions execution
 idxdoclet/id
 phasegenerate-resources/phase
 goals
 goalxdoclet/goal
 /goals
 /execution
 /executions
 configuration
 tasks
 hibernatedoclet
 destdir=${project.build.outputDirectory}
 mergeDir=${basedir}/src/main/merge
 fileset dir=${basedir}/src/main/java
 includes=**/domain/*.java /
 hibernate version=3.0 /
 /hibernatedoclet
 /tasks
 /configuration
 dependencies
 dependency
 groupIdant/groupId
 artifactIdant/artifactId
 version1.6.5/version
 /dependency
 /dependencies
 /plugin

However, the origin of this problem is the dependency on the antrun
plugin, that is referenced in the plugin's deps as jar...

- Jörg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




what JvmMx to set ? (OutOfMemoryError: Java heap space)

2007-04-04 Thread nicolas de loof

Hello

I'm using archiva SNAPSHOT as proxy to multiple public repos in my corporate
environment

I get some OutOfMemoryError: Java heap space. Not sure this is related to
archiva itself as it is deployed on a windows box as Tomcat service, with
default config.

What would you recommand for JvmMx to be used with archiva ? As I'm not
admin on the windows box I can't make easy experiments...


Re: integrate JavaScript dev tools in maven build ?

2007-04-04 Thread nicolas de loof

Thanks a lot for all those links.


2007/4/4, Manos Batsis [EMAIL PROTECTED]:


nicolas de loof wrote:
 I just discovered jsDoc 2 (http://code.google.com/p/jsdoc-2/) that is
 written in JavaScript and can (?) run inside Rhino engine, so could be
 packaged as a maven report plugin.


Actually a guy in the jsdoc forum/mailinglist said he will donate such a
maven plugin for jsdoc2.


 Is there any work-in-progress to integrate some JS-tools as maven
plugins
 ?

 - jsdoc (or similar) to générate javadoc-like documentation
 - some js-compression tool
 - some js-merge tool


I am in the process of  porting the sarissa [1] project from ant to
maven. Currently i use jsdoc 1.x without problems, you can find the pom
and ant build file at [2] and [3] respectively.

I intent to put more effort into this, currently working on using jslint
[4] during the test phase (classpath trouble). Maybe will do an
archetype when i reach a certain point, certainly looking into
compression/merging for generating a compact  file during the build. BTW
help is welcome ;-)


[1] sourceforge.net/projects/sarissa
[2] http://sarissa.cvs.sourceforge.net/sarissa/sarissa/pom.xml?view=markup
[3]

http://sarissa.cvs.sourceforge.net/sarissa/sarissa/src/build/build.xml?view=markup
[4] http://www.crockford.com/javascript/lint.html

hth,

Manos

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: maven 2.0.6 and xdoclet-maven-plugin

2007-04-04 Thread nicolas de loof

I got the same issue.
xdoclet plugin requires some ant classes. Maven 2.0.6 seems to make changes
in plugins classpath and you have to add a dependency to the plugin :

plugin
   artifactIdxdoclet-maven-plugin/artifactId
   groupIdorg.codehaus.mojo/groupId
   executions
   execution
   idxdoclet/id
   phasegenerate-resources/phase
   goals
   goalxdoclet/goal
   /goals
   /execution
   /executions
   configuration
   tasks
   hibernatedoclet
   destdir=${project.build.outputDirectory}
   mergeDir=${basedir}/src/main/merge
   fileset dir=${basedir}/src/main/java
   includes=**/domain/*.java /
   hibernate version=3.0 /
   /hibernatedoclet
   /tasks
   /configuration
   dependencies
   dependency
   groupIdant/groupId
   artifactIdant/artifactId
   version1.6.5/version
   /dependency
   /dependencies
   /plugin

2007/4/4, Przemyslaw Madzik [EMAIL PROTECTED]:



Hello,

I have problem with maven 2.0.6 and xdoclet-maven-plugin (1.0-alpha-2).

After creating simple project (mvn archetype:create
-DgroupId=com.mycompany.app -DartifactId=my-app)
and adding following section to pom.xml:

build
plugins
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdxdoclet-maven-plugin/artifactId
version1.0-alpha-2/version
executions
execution
phasegenerate-sources/phase
goals
goalxdoclet/goal
/goals
configuration
tasks
echo
Hello world!
/echo
/tasks
/configuration
/execution
/executions
/plugin
/plugins
/build

i get this output (mvn generate-sources):

[INFO] Scanning for projects...
[INFO]


[INFO] Building my-app
[INFO]task-segment: [generate-sources]
[INFO]


[WARNING] While downloading servletapi:servletapi:2.3
  This artifact has been relocated to javax.servlet:servlet-api:2.3.


-
this realm = app0.child-container[org.codehaus.mojo:xdoclet-maven-plugin]
urls[0] = file:/C:/Documents and

Settings/pmadzik/.m2/repository/org/codehaus/mojo/xdoclet-maven-plugin/1.0-alpha-2/xdoclet-
maven-plugin-1.0-alpha-2.jar
urls[1] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-wsee-module/1.2.3/xdoclet-
wsee-module-1.2.3.jar
urls[2] = file:/C:/Documents and

Settings/pmadzik/.m2/repository/xdoclet/xdoclet-jboss-module/1.2.3/xdoclet-
jboss-module-1.2.3.jar
urls[3] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
urls[4] = file:/C:/Documents and

Settings/pmadzik/.m2/repository/xdoclet/xdoclet-orion-module/1.2.3/xdoclet-
orion-module-1.2.3.jar
urls[5] = file:/C:/Documents and

Settings/pmadzik/.m2/repository/xdoclet/xdoclet-xdoclet-module/1.2.3/xdoclet-
xdoclet-module-1.2.3.jar
urls[6] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-ibm-module/1.2.3/xdoclet-
ibm-module-1.2.3.jar
urls[7] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-jmx-module/1.2.3/xdoclet-
jmx-module-1.2.3.jar
urls[8] = file:/C:/Documents and

Settings/pmadzik/.m2/repository/commons-logging/commons-logging/1.0.4/commons-
logging-1.0.4.jar
urls[9] = file:/C:/Documents and

Settings/pmadzik/.m2/repository/commons-collections/commons-collections/2.1/commons-
collections-2.1.jar
urls[10] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/ant/ant/1.5.2/ant-1.5.2.jar
urls[11] = file:/C:/Documents and

Settings/pmadzik/.m2/repository/xdoclet/xdoclet-apache-module/1.2.3/xdoclet-
apache-module-1.2.3.jar
urls[12] = file:/C:/Documents and

Settings/pmadzik/.m2/repository/xdoclet/xdoclet-objectweb-module/1.2.3/xdoclet-
objectweb-module-1.2.3.jar
urls[13] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/ant/ant-launcher/1.6.5/ant-
launcher-1.6.5.jar
urls[14] = file:/C:/Documents and

Settings/pmadzik/.m2/repository/xdoclet/xdoclet-fr_FR-locale/1.2.3/xdoclet-fr_FR-
locale-1.2.3.jar
urls[15] = file:/C:/Documents and

Settings/pmadzik/.m2/repository/org/apache/maven/plugins/maven-antrun-plugin/1.0/maven-
antrun-plugin-1.0.jar
urls[16] = file:/C:/Documents and

Re: ConcurrentModificationException

2007-04-03 Thread nicolas de loof

This seems to be a thread-safety issue in Wagon
TransferEventSupporthttp://maven.apache.org/wagon/wagon-provider-api/xref/org/apache/maven/wagon/events/TransferEventSupport.html

The listeners list is an ArrayList and add/remove/fireEvent methods are not
synchronized.
This requires either synchronization or use of a CopyOnWriteArrayList.

I've created http://jira.codehaus.org/browse/WAGON-79 for this.


2007/4/2, nicolas de loof [EMAIL PROTECTED]:


Hello,

I've setup archiva as proxy to maven central. I'm using a recent snapshot
build.
I get sometimes (?) 500 errors when downloading artifacts. According to
logs, this is a ConcurrentModificationException.

Is this a known bug ?

Here is the stacktrace :


2007-04-02 10:11:25,392 [http--1] ERROR [RepositoryServlet]
- Servlet.service() pour la servlet RepositoryServlet a généré une
exception
java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(Unknown Source)
at java.util.AbstractList$Itr.next(Unknown Source)
at
org.apache.maven.wagon.events.TransferEventSupport.fireTransferProgress (
TransferEventSupport.java:117)
at org.apache.maven.wagon.AbstractWagon.fireTransferProgress(
AbstractWagon.java:350)
at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java
:336)
at org.apache.maven.wagon.AbstractWagon.getTransfer (
AbstractWagon.java:199)
at org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java
:182)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:80)
at
org.apache.maven.archiva.proxy.DefaultProxyRequestHandler.getFileFromRepository(
DefaultProxyRequestHandler.java:541)
at org.apache.maven.archiva.proxy.DefaultProxyRequestHandler.get(
DefaultProxyRequestHandler.java:393)
at
org.apache.maven.archiva.proxy.DefaultProxyRequestHandler.getArtifactFromRepository(
DefaultProxyRequestHandler.java:260)
at org.apache.maven.archiva.proxy.DefaultProxyRequestHandler.get(
DefaultProxyRequestHandler.java:196)
at org.apache.maven.archiva.proxy.DefaultProxyRequestHandler.get(
DefaultProxyRequestHandler.java :116)
at
org.apache.maven.archiva.web.repository.ProxiedDavServer.fetchContentFromProxies
(ProxiedDavServer.java:156)
at org.apache.maven.archiva.web.repository.ProxiedDavServer.process(
ProxiedDavServer.java:144)
at
org.codehaus.plexus.webdav.servlet.multiplexed.MultiplexedWebDavServlet.service
(MultiplexedWebDavServlet.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(
FilterDispatcher.java :189)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(
PageFilter.java:39)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:173)
at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(
ActionContextCleanUp.java:88)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java :202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke (
StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke (
StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11AprProcessor.process(
Http11AprProcessor.java:833)
at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(
Http11AprProtocol.java:639)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java
:1285)
at java.lang.Thread.run(Unknown Source)



integrate JavaScript dev tools in maven build ?

2007-04-03 Thread nicolas de loof

Hello,

My webapps now come with more and more JavaScript (web 2.0 !)
I expect maven to bring me best-practices and great tools the same way it
did for my java code.

Is there any work-in-progress to integrate some JS-tools as maven plugins ?

- jsdoc (or similar) to générate javadoc-like documentation
- some js-compression tool
- some js-merge tool

I've looked at prototype build system based on Ruby Rake. The source code
is splitted into individual, specialized, js files. This looks a good
practice to make things clear and avoid conflicts during devs.

YUI comes with a -debug and a -min version of all its components. This also
looks interesting. I've no idea about the build process they use.

Any suggestion ?
Any link to java-based tools web could try to package as maven plugins ?

Nico.


Re: integrate JavaScript dev tools in maven build ?

2007-04-03 Thread nicolas de loof

I just discovered jsDoc 2 (http://code.google.com/p/jsdoc-2/) that is
written in JavaScript and can (?) run inside Rhino engine, so could be
packaged as a maven report plugin.

2007/4/3, nicolas de loof [EMAIL PROTECTED]:


Hello,

My webapps now come with more and more JavaScript (web 2.0 !)
I expect maven to bring me best-practices and great tools the same way it
did for my java code.

Is there any work-in-progress to integrate some JS-tools as maven plugins
?

- jsdoc (or similar) to générate javadoc-like documentation
- some js-compression tool
- some js-merge tool

I've looked at prototype build system based on Ruby Rake. The source
code is splitted into individual, specialized, js files. This looks a good
practice to make things clear and avoid conflicts during devs.

YUI comes with a -debug and a -min version of all its components. This
also looks interesting. I've no idea about the build process they use.

Any suggestion ?
Any link to java-based tools web could try to package as maven plugins ?

Nico.



regression using maven 2.0.6

2007-04-03 Thread nicolas de loof

I've upgraded to maven 2.0.6 and my build fails :

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Internal error in the plugin manager executing goal '
org.codehaus.mojo:xdoclet-maven-plugin:1.0-alpha-2:xdoclet': Unable to find
the mojo 'org.codehaus.mojo:xdoclet-maven-plugin:1.0-alpha-2:xdoclet' in the
plugin 'org.codehaus.mojo:xdoclet-maven-plugin'
org/apache/tools/ant/PropertyHelper


The attached POM demonstrates the issue.

What's wrong ?

Nico.
?xml version=1.0?

project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
  http://maven.apache.org/maven-v4_0_0.xsd;

modelVersion4.0.0/modelVersion
groupIdbug/groupId
artifactIddemo/artifactId
version1/version


build
plugins
plugin
artifactIdxdoclet-maven-plugin/artifactId
groupIdorg.codehaus.mojo/groupId
executions
execution
idxdoclet/id
phasegenerate-resources/phase
goals
goalxdoclet/goal
/goals
/execution
/executions
configuration
tasks
hibernatedoclet
destdir=${project.build.outputDirectory}
mergeDir=${basedir}/src/main/merge
fileset dir=${basedir}/src/main/java
includes=**/domain/*.java /
hibernate version=3.0 /
/hibernatedoclet
/tasks
/configuration
/plugin
/plugins
/build
/project
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: regression using maven 2.0.6

2007-04-03 Thread nicolas de loof

mvn -X gives more infos :

Caused by: java.lang.NoClassDefFoundError:
org/apache/tools/ant/PropertyHelper
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

What version of Ant is provided by maven 2.0.6 ? Or maybe in 2.0.6 plugin
classpath doens't include some default libs anymore ?

Adding ant as dependency to the plugin solves this issue :

   dependencies
   dependency
   groupIdant/groupId
   artifactIdant/artifactId
   version1.6.5/version
   /dependency
   /dependencies



2007/4/3, nicolas de loof [EMAIL PROTECTED]:


I've upgraded to maven 2.0.6 and my build fails :

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Internal error in the plugin manager executing goal '
org.codehaus.mojo:xdoclet-maven-plugin:1.0-alpha-2:xdoclet': Unable to
find the mojo 'org.codehaus.mojo:xdoclet-maven-plugin:1.0-alpha-2:xdoclet'
in the plugin ' org.codehaus.mojo:xdoclet-maven-plugin'
org/apache/tools/ant/PropertyHelper


The attached POM demonstrates the issue.

What's wrong ?

Nico.




Re: Diff like pluigin

2007-04-03 Thread nicolas de loof

the changelog plugin (
http://maven.apache.org/plugins/maven-changelog-plugin/changelog-mojo.html)
can produce a log starting from a specified tag
the scm plugin (http://maven.apache.org/scm/plugins/changelog-mojo.html) can
also dump a changelog to console based on dates.

I never used them myself for such use case, but they can help you.

2007/4/3, Gonzalo Vásquez Sáez [EMAIL PROTECTED]:


Is there kind of goal / plugin that will allow one two compare two
different
source code versions of a particular project, and generate output with the
listing of the files changed? I need this to be run just before every
build,
to keep track of changes between one deployment and another.

Regards,

Gonzalo.-



Re: integrate JavaScript dev tools in maven build ?

2007-04-03 Thread nicolas de loof

I also discovered Dojo has a javascript compressor that may be embedded as
maven plugin
http://alex.dojotoolkit.org/shrinksafe/

An alternative is JSMin that has a Java version (
http://inconspicuous.org/projects/jsmin/JSMin.java)



2007/4/3, nicolas de loof [EMAIL PROTECTED]:


I just discovered jsDoc 2 (http://code.google.com/p/jsdoc-2/) that is
written in JavaScript and can (?) run inside Rhino engine, so could be
packaged as a maven report plugin.

2007/4/3, nicolas de loof [EMAIL PROTECTED]:

 Hello,

 My webapps now come with more and more JavaScript (web 2.0 !)
 I expect maven to bring me best-practices and great tools the same way
 it did for my java code.

 Is there any work-in-progress to integrate some JS-tools as maven
 plugins ?

 - jsdoc (or similar) to générate javadoc-like documentation
 - some js-compression tool
 - some js-merge tool

 I've looked at prototype build system based on Ruby Rake. The source
 code is splitted into individual, specialized, js files. This looks a good
 practice to make things clear and avoid conflicts during devs.

 YUI comes with a -debug and a -min version of all its components. This
 also looks interesting. I've no idea about the build process they use.

 Any suggestion ?
 Any link to java-based tools web could try to package as maven plugins ?


 Nico.





Re: Is it possible to execute maven-jar-plugin in a different lifecycle phase than package phase?

2007-04-03 Thread nicolas de loof

Why don't you create the jar in another module, and set it as dependency ?

2007/4/3, Zhou, Wei [EMAIL PROTECTED]:


Hi,



I need to build the jar file before my test code can be run. But Maven 2
only packages the jar file after the test code is run successfully. I
have tried to play with my pom file to move the maven-jar-plugin into an
earlier phase. But I have no luck. Does anyone know how to build a jar
file before the test phase?



Thanks!

Wei






ConcurrentModificationException

2007-04-02 Thread nicolas de loof

Hello,

I've setup archiva as proxy to maven central. I'm using a recent snapshot
build.
I get sometimes (?) 500 errors when downloading artifacts. According to
logs, this is a ConcurrentModificationException.

Is this a known bug ?

Here is the stacktrace :


2007-04-02 10:11:25,392 [http--1] ERROR [RepositoryServlet]-
Servlet.service() pour la servlet RepositoryServlet a généré une exception
java.util.ConcurrentModificationException
   at java.util.AbstractList$Itr.checkForComodification(Unknown Source)
   at java.util.AbstractList$Itr.next(Unknown Source)
   at
org.apache.maven.wagon.events.TransferEventSupport.fireTransferProgress(
TransferEventSupport.java:117)
   at org.apache.maven.wagon.AbstractWagon.fireTransferProgress(
AbstractWagon.java:350)
   at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:336)
   at org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java
:199)
   at org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java
:182)
   at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:80)
   at
org.apache.maven.archiva.proxy.DefaultProxyRequestHandler.getFileFromRepository
(DefaultProxyRequestHandler.java:541)
   at org.apache.maven.archiva.proxy.DefaultProxyRequestHandler.get(
DefaultProxyRequestHandler.java:393)
   at
org.apache.maven.archiva.proxy.DefaultProxyRequestHandler.getArtifactFromRepository
(DefaultProxyRequestHandler.java:260)
   at org.apache.maven.archiva.proxy.DefaultProxyRequestHandler.get(
DefaultProxyRequestHandler.java:196)
   at org.apache.maven.archiva.proxy.DefaultProxyRequestHandler.get(
DefaultProxyRequestHandler.java:116)
   at
org.apache.maven.archiva.web.repository.ProxiedDavServer.fetchContentFromProxies
(ProxiedDavServer.java:156)
   at org.apache.maven.archiva.web.repository.ProxiedDavServer.process(
ProxiedDavServer.java:144)
   at
org.codehaus.plexus.webdav.servlet.multiplexed.MultiplexedWebDavServlet.service
(MultiplexedWebDavServlet.java:111)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
   at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(
FilterDispatcher.java:189)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
   at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(
PageFilter.java:39)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
   at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(
ActionContextCleanUp.java:88)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)
   at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11AprProcessor.process(
Http11AprProcessor.java:833)
   at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(
Http11AprProtocol.java:639)
   at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java
:1285)
   at java.lang.Thread.run(Unknown Source)


can an archetype update the project pom ?

2007-03-29 Thread nicolas de loof

I've read on archetype plugin doc that allowPartial can be used to run
archetype on an existing project.

What happens when the archetype creates some existing files, in particular
the POM :

I'd like my archetype to add some Struts2 conf to an existing webapp, and
this includes updating dependencies.

Nico.


Re: Proxied Repositories

2007-03-29 Thread nicolas de loof

The browsing is rendered by archiva.

What URL did you provide as miror ?

2007/3/29, Ben Tatham [EMAIL PROTECTED]:


Oh wait...I spoke to soon.  Now it got the artifact directly from
repo1.maven...That's what I don't want.  Argg...

Nico, does setting the guest to Observer affect how it accesses
.../repository?  When I go to the website and look at /repository, I get
a directory listing.  Is that just standard tomcat doing that or is it
archiva making that page for me?

-Ben

nicolas de loof wrote:
 Your right about the download on request behaviour :
 Archiva will ask the proxied repositories for any artifact missing in
the
 managed repository.

 You need to grant the guest user the observer role so that it can
 download
 artifacts. Maybe this is the issue you get.

 Nico.


 2007/3/29, Ben Tatham [EMAIL PROTECTED]:

 Hello All,
 I am trying to use archiva on our company network to proxy the
central
 repos...my understanding is that this means that if a developer runs
 Maven and requests an artifact from the archiva repository, that if
 archiva does not already have it in its own repository, it will get it
 from the global repo (or mirror) and put it in its repo, and give it to
 the local maven request.  That way, the next developer that comes along
 does not have to go out to the net to get it.  Is this correct?

 If this is the expected behaviour, it does not seem to work for
me.  Any
 ideas?  Below is my archiva.xml.

 Thanks in advance,
 Ben cid:part1.02000705.07090602@nanometrics.ca

 ?xml version=1.0 encoding=UTF-8?configuration
   repositories
 repository

 directory/disk1/maestro-1.1
 /project-server/data/project-server/repository/directory
   includeSnapshotstrue/includeSnapshots
   idmaestro/id
   nameCentral Managed Repository/name
 /repository
   /repositories
   proxiedRepositories
 proxiedRepository
   urlhttp://repo.mergere.com/maven2/url
   managedRepositorymaestro/managedRepository
   snapshotsPolicyhourly/snapshotsPolicy
   releasesPolicyhourly/releasesPolicy
   useNetworkProxytrue/useNetworkProxy
   idmergere/id
   nameMergere Repository Mirror/name
 /proxiedRepository
 proxiedRepository
   urlhttp://www.ibiblio.org/maven2/url
   managedRepositorymaestro/managedRepository
   snapshotsPolicydaily/snapshotsPolicy
   useNetworkProxytrue/useNetworkProxy
   idIbiblio/id
   nameIbiblio/name
 /proxiedRepository
   /proxiedRepositories
   localRepository/root/.m2/repository/localRepository

 indexPath/disk1/maestro-1.1
 /project-server/data/project-server/index/indexPath
   proxy
   hostprimrose/host
   port8080/port
   /proxy
 /configuration







Re: Proxied Repositories

2007-03-29 Thread nicolas de loof

AFAIK you have to add the managed repository ID after 
http://penguin.nanometrics.ca:8081/repository;

- http://penguin.nanometrics.ca:8081/repository/myrepo

2007/3/29, Ben Tatham [EMAIL PROTECTED]:


Snippets of my settings.xml:

mirror
  mirrorOfcentral/mirrorOf
  urlhttp://penguin.nanometrics.ca:8081/repository/url
  idnmx-central-mirror/id
  nameMergere Mirror Repository/name
/mirror

profile
  idmaestro/id
  repositories
repository
  idmaestro-project-server/id
  nameMaestro Project Server/name
  urlhttp://penguin.nanometrics.ca:8081/repository/url
/repository
  /repositories
  pluginRepositories
pluginRepository
  idmaestro-project-server/id
  nameMaestro Project Server/name
  urlhttp://penguin.nanometrics.ca:8081/repository/url
/pluginRepository
  /pluginRepositories
/profile

nicolas de loof wrote:
 The browsing is rendered by archiva.

 What URL did you provide as miror ?

 2007/3/29, Ben Tatham [EMAIL PROTECTED]:

 Oh wait...I spoke to soon.  Now it got the artifact directly from
 repo1.maven...That's what I don't want.  Argg...

 Nico, does setting the guest to Observer affect how it accesses
 .../repository?  When I go to the website and look at /repository, I
get
 a directory listing.  Is that just standard tomcat doing that or is it
 archiva making that page for me?

 -Ben

 nicolas de loof wrote:
  Your right about the download on request behaviour :
  Archiva will ask the proxied repositories for any artifact missing in
 the
  managed repository.
 
  You need to grant the guest user the observer role so that it can
  download
  artifacts. Maybe this is the issue you get.
 
  Nico.
 
 
  2007/3/29, Ben Tatham [EMAIL PROTECTED]:
 
  Hello All,
  I am trying to use archiva on our company network to proxy the
 central
  repos...my understanding is that this means that if a developer runs
  Maven and requests an artifact from the archiva repository, that if
  archiva does not already have it in its own repository, it will
 get it
  from the global repo (or mirror) and put it in its repo, and give
 it to
  the local maven request.  That way, the next developer that comes
 along
  does not have to go out to the net to get it.  Is this correct?
 
  If this is the expected behaviour, it does not seem to work for
 me.  Any
  ideas?  Below is my archiva.xml.
 
  Thanks in advance,
  Ben cid:part1.02000705.07090602@nanometrics.ca
 
  ?xml version=1.0 encoding=UTF-8?configuration
repositories
  repository
 
  directory/disk1/maestro-1.1
  /project-server/data/project-server/repository/directory
includeSnapshotstrue/includeSnapshots
idmaestro/id
nameCentral Managed Repository/name
  /repository
/repositories
proxiedRepositories
  proxiedRepository
urlhttp://repo.mergere.com/maven2/url
managedRepositorymaestro/managedRepository
snapshotsPolicyhourly/snapshotsPolicy
releasesPolicyhourly/releasesPolicy
useNetworkProxytrue/useNetworkProxy
idmergere/id
nameMergere Repository Mirror/name
  /proxiedRepository
  proxiedRepository
urlhttp://www.ibiblio.org/maven2/url
managedRepositorymaestro/managedRepository
snapshotsPolicydaily/snapshotsPolicy
useNetworkProxytrue/useNetworkProxy
idIbiblio/id
nameIbiblio/name
  /proxiedRepository
/proxiedRepositories
localRepository/root/.m2/repository/localRepository
 
  indexPath/disk1/maestro-1.1
  /project-server/data/project-server/index/indexPath
proxy
hostprimrose/host
port8080/port
/proxy
  /configuration
 
 
 







Re: any way to read properties file from a POM ?

2007-03-29 Thread nicolas de loof

This would require to modify the dbunit and the sql plugins...

I'll have to find another strategy. Thanks anyway.


2007/3/29, Wayne Fay [EMAIL PROTECTED]:


Others have asked this previously, and the answer remains the same:
this is not possible.

Perhaps you could instead modify the dbunit plugin to read from a
properties file.

Wayne

On 3/29/07, nicolas de loof [EMAIL PROTECTED] wrote:
 Hello,

 I'm using dbunit mojo to create a clean database before my
integration-tests
 run.
 My DB configuration is set in the test classes via a properties file (
 jdbc.properties)
 I'd like to avoid duplicating this info in my POM.

 How to set the POM to read the properties and set them as system
properties
 (to be visible from the dbunit plugin) ?

 Any suggestion is welcome.

 Nico.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




need help to create an integration-test archetype

2007-03-28 Thread nicolas de loof

Hello,
I'd like to create an integration-test archetype for my webapps projects. It
will use cargo and selenium as explained on matt raible blog and some other
blogs/maven wikis.

I get an issue as my POM template must include the cargo deployable
element to refer to the WAR artifact :

deployable
   artifactId${artifactId}/artifactId
   typewar/type
/deployable

... but artifactId is set to myproject-integration when using the
archetype.

Is there any way to make some custom substitutions in the POM templates, or
to make some String computation during POM template renderring ?

Nico.


Re: Maven proxy tools that allow to configure an unique remote repository for maven 1 and maven 2 projects ?

2007-03-28 Thread nicolas de loof

I'm using Archiva for the same use case but this requires to apply MRM-153
patch I've suggested.

MRM-153 was allready included in oldest archiva builds, but recent changes
required me to reopen this issue. No comment yet from archiva developers.

2007/3/28, Elid OR [EMAIL PROTECTED]:


Hi all,

My projects use maven 1 and maven 2. I would like to use a proxy tool that
allows to configure an unique remote proxy url for both maven 1  2
project.

Does anyone knows if proximity or archiva is able to do that ?

Cheers,

Elid OR

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




<    1   2   3   4   5   6   7   >