Missing SAX parser with Java 5?

2005-11-05 Thread Jochen Wiedmann


Hi,

I am trying to convert a first program (Apache XML-RPC) from Maven 1 to 
Maven 2. After doing eclipse:eclipse, my unit tests run fine within 
Eclipse. However, mvn test fails with the following exception:


  javax.xml.parsers.FactoryConfigurationError: Provider for
javax.xml.parsers.SAXParserFactory cannot be found
  at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)

Being a Java 5 user with the builtin com.sun.org.apache.xerces parser, I 
have no explanation, what might be wrong. Any ideas? I'll attach the 
test report with the system properties, in case that might answer any 
questions.


In case you'd like to reproduce the problem: Checkout the 
b20050512_streaming branch from 
http://svn.apache.org/repos/asf/webservices/xmlrpc/


Regards,

Jochen



?xml version=1.0 encoding=UTF-8 ?
testsuite errors=22 tests=22 time=0,198 failures=0 name=org.apache.xmlrpc.test.BaseTest
  properties
property value=Java(TM) 2 Runtime Environment, Standard Edition name=java.runtime.name/
property value=/usr/java/jdk1.5.0_05/jre/lib/i386 name=sun.boot.library.path/
property value=1.5.0_05-b05 name=java.vm.version/
property value=Sun Microsystems Inc. name=java.vm.vendor/
property value=http://java.sun.com/; name=java.vendor.url/
property value=: name=path.separator/
property value=Java HotSpot(TM) Client VM name=java.vm.name/
property value=sun.io name=file.encoding.pkg/
property value=DE name=user.country/
property value=unknown name=sun.os.patch.level/
property value=Java Virtual Machine Specification name=java.vm.specification.name/
property value=/home/jwi/workspace/ws-xmlrpc-3 name=user.dir/
property value=1.5.0_05-b05 name=java.runtime.version/
property value=sun.awt.X11GraphicsEnvironment name=java.awt.graphicsenv/
property value=/home/jwi/workspace/ws-xmlrpc-3 name=basedir/
property value=/usr/java/jdk1.5.0_05/jre/lib/endorsed name=java.endorsed.dirs/
property value=i386 name=os.arch/
property value=/tmp name=java.io.tmpdir/
property value=
 name=line.separator/
property value=Sun Microsystems Inc. name=java.vm.specification.vendor/
property value=Linux name=os.name/
property value=/usr/local/maven-2.0/bin/m2.conf name=classworlds.conf/
property value=ISO-8859-1 name=sun.jnu.encoding/
property value=/usr/java/jdk1.5.0_05/jre/lib/i386/client:/usr/java/jdk1.5.0_05/jre/lib/i386:/usr/java/jdk1.5.0_05/jre/../lib/i386 name=java.library.path/
property value=Java Platform API Specification name=java.specification.name/
property value=49.0 name=java.class.version/
property value=HotSpot Client Compiler name=sun.management.compiler/
property value=2.6.13-1.1532_FC4 name=os.version/
property value=/home/jwi name=user.home/
property value=Europe/Berlin name=user.timezone/
property value=sun.print.PSPrinterJob name=java.awt.printerjob/
property value=ISO-8859-1 name=file.encoding/
property value=1.5 name=java.specification.version/
property value=jwi name=user.name/
property value=/usr/local/maven-2.0/core/boot/classworlds-1.1-alpha-2.jar name=java.class.path/
property value=1.0 name=java.vm.specification.version/
property value=32 name=sun.arch.data.model/
property value=/usr/java/jdk1.5.0_05/jre name=java.home/
property value=Sun Microsystems Inc. name=java.specification.vendor/
property value=de name=user.language/
property value=mixed mode, sharing name=java.vm.info/
property value=1.5.0_05 name=java.version/
property value=/usr/java/jdk1.5.0_05/jre/lib/ext name=java.ext.dirs/
property value=/usr/java/jdk1.5.0_05/jre/lib/rt.jar:/usr/java/jdk1.5.0_05/jre/lib/i18n.jar:/usr/java/jdk1.5.0_05/jre/lib/sunrsasign.jar:/usr/java/jdk1.5.0_05/jre/lib/jsse.jar:/usr/java/jdk1.5.0_05/jre/lib/jce.jar:/usr/java/jdk1.5.0_05/jre/lib/charsets.jar:/usr/java/jdk1.5.0_05/jre/classes name=sun.boot.class.path/
property value=Sun Microsystems Inc. name=java.vendor/
property value=/usr/local/maven-2.0 name=maven.home/
property value=/var/maven/repository name=localRepository/
property value=/ name=file.separator/
property value=http://java.sun.com/cgi-bin/bugreport.cgi; name=java.vendor.url.bug/
property value=little name=sun.cpu.endian/
property value=UnicodeLittle name=sun.io.unicode.encoding/
property value=gnome name=sun.desktop/
property value= name=sun.cpu.isalist/
  /properties
  testcase time=0,034 name=testByteParam
error type=javax.xml.parsers.FactoryConfigurationError message=Provider for javax.xml.parsers.SAXParserFactory cannot be foundjavax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.SAXParserFactory cannot be found
	at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
	at org.apache.xmlrpc.server.XmlRpcStreamServer.lt;clinitgt;(XmlRpcStreamServer.java:51)
	at org.apache.xmlrpc.webserver.WebServer.lt;initgt;(WebServer.java:82)
	at 

Missing SAX parser with Java 5?

2005-11-06 Thread Jochen Wiedmann


Hi,

I am trying to convert a first program (Apache XML-RPC) from Maven 1 to
Maven 2. After doing eclipse:eclipse, my unit tests run fine within
Eclipse. However, mvn test fails with the following exception:

   javax.xml.parsers.FactoryConfigurationError: Provider for
 javax.xml.parsers.SAXParserFactory cannot be found
   at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)

Being a Java 5 user with the builtin com.sun.org.apache.xerces parser, I
have no explanation, what might be wrong. Any ideas? I'll attach the
test report with the system properties, in case that might answer any
questions.

In case you'd like to reproduce the problem: Checkout the
b20050512_streaming branch from
http://svn.apache.org/repos/asf/webservices/xmlrpc/

Regards,

Jochen




?xml version=1.0 encoding=UTF-8 ?
testsuite errors=22 tests=22 time=0,198 failures=0 name=org.apache.xmlrpc.test.BaseTest
  properties
property value=Java(TM) 2 Runtime Environment, Standard Edition name=java.runtime.name/
property value=/usr/java/jdk1.5.0_05/jre/lib/i386 name=sun.boot.library.path/
property value=1.5.0_05-b05 name=java.vm.version/
property value=Sun Microsystems Inc. name=java.vm.vendor/
property value=http://java.sun.com/; name=java.vendor.url/
property value=: name=path.separator/
property value=Java HotSpot(TM) Client VM name=java.vm.name/
property value=sun.io name=file.encoding.pkg/
property value=DE name=user.country/
property value=unknown name=sun.os.patch.level/
property value=Java Virtual Machine Specification name=java.vm.specification.name/
property value=/home/jwi/workspace/ws-xmlrpc-3 name=user.dir/
property value=1.5.0_05-b05 name=java.runtime.version/
property value=sun.awt.X11GraphicsEnvironment name=java.awt.graphicsenv/
property value=/home/jwi/workspace/ws-xmlrpc-3 name=basedir/
property value=/usr/java/jdk1.5.0_05/jre/lib/endorsed name=java.endorsed.dirs/
property value=i386 name=os.arch/
property value=/tmp name=java.io.tmpdir/
property value=
 name=line.separator/
property value=Sun Microsystems Inc. name=java.vm.specification.vendor/
property value=Linux name=os.name/
property value=/usr/local/maven-2.0/bin/m2.conf name=classworlds.conf/
property value=ISO-8859-1 name=sun.jnu.encoding/
property value=/usr/java/jdk1.5.0_05/jre/lib/i386/client:/usr/java/jdk1.5.0_05/jre/lib/i386:/usr/java/jdk1.5.0_05/jre/../lib/i386 name=java.library.path/
property value=Java Platform API Specification name=java.specification.name/
property value=49.0 name=java.class.version/
property value=HotSpot Client Compiler name=sun.management.compiler/
property value=2.6.13-1.1532_FC4 name=os.version/
property value=/home/jwi name=user.home/
property value=Europe/Berlin name=user.timezone/
property value=sun.print.PSPrinterJob name=java.awt.printerjob/
property value=ISO-8859-1 name=file.encoding/
property value=1.5 name=java.specification.version/
property value=jwi name=user.name/
property value=/usr/local/maven-2.0/core/boot/classworlds-1.1-alpha-2.jar name=java.class.path/
property value=1.0 name=java.vm.specification.version/
property value=32 name=sun.arch.data.model/
property value=/usr/java/jdk1.5.0_05/jre name=java.home/
property value=Sun Microsystems Inc. name=java.specification.vendor/
property value=de name=user.language/
property value=mixed mode, sharing name=java.vm.info/
property value=1.5.0_05 name=java.version/
property value=/usr/java/jdk1.5.0_05/jre/lib/ext name=java.ext.dirs/
property value=/usr/java/jdk1.5.0_05/jre/lib/rt.jar:/usr/java/jdk1.5.0_05/jre/lib/i18n.jar:/usr/java/jdk1.5.0_05/jre/lib/sunrsasign.jar:/usr/java/jdk1.5.0_05/jre/lib/jsse.jar:/usr/java/jdk1.5.0_05/jre/lib/jce.jar:/usr/java/jdk1.5.0_05/jre/lib/charsets.jar:/usr/java/jdk1.5.0_05/jre/classes name=sun.boot.class.path/
property value=Sun Microsystems Inc. name=java.vendor/
property value=/usr/local/maven-2.0 name=maven.home/
property value=/var/maven/repository name=localRepository/
property value=/ name=file.separator/
property value=http://java.sun.com/cgi-bin/bugreport.cgi; name=java.vendor.url.bug/
property value=little name=sun.cpu.endian/
property value=UnicodeLittle name=sun.io.unicode.encoding/
property value=gnome name=sun.desktop/
property value= name=sun.cpu.isalist/
  /properties
  testcase time=0,034 name=testByteParam
error type=javax.xml.parsers.FactoryConfigurationError message=Provider for javax.xml.parsers.SAXParserFactory cannot be foundjavax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.SAXParserFactory cannot be found
	at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
	at org.apache.xmlrpc.server.XmlRpcStreamServer.lt;clinitgt;(XmlRpcStreamServer.java:51)
	at org.apache.xmlrpc.webserver.WebServer.lt;initgt;(WebServer.java:82)
	at 

Source Archives?

2005-11-06 Thread Jochen Wiedmann


Hi,

recently I came into a situation where I suspected a bug in 
servlet-api-2.4.jar. No problem, it seems: This is open source software, 
get the sources, add them to you Eclipse project and start debugging.


It turned out not so easy: For starters, what are the exact sources of 
servlet-api-2.4.jar? Do I need to get a particular version of Tomcat? Do 
I need to checkout a certain svn or cvs tag? I've been losing about 3 
hours to get the debugger up and running. (Of course, it turned out, 
that the bug was on my side, having read the specification wrong.)


My personal conclusion is this: It is a bad thing, that we do not 
distribute the sources together with the jar files. Of course, there are 
cases where the license forbids. But at least for ASL licensed jar 
files, it ought to be absolutely no problem to add the sources to ibiblio.


Additionally, one might request downloads for the source files in order 
to make eclipse:eclipse mount them automatically.



What do you think?


Jochen


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



Re: Source Archives?

2005-11-06 Thread Jochen Wiedmann

Brett Porter wrote:


This is possible with Maven 2.x (the Maven libraries certainly do it
already) - what will be important is ensuring that projects themselves
utilise this functionality.


Thanks for the reply, Brett. Can you, please, give me a hint on what to 
do to turn the feature on in my own projects? Obviously, I should do 
that first before beginning to evangelize others.



Regards,

Jochen

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



Re: Source Archives?

2005-11-07 Thread Jochen Wiedmann
Brett Porter wrote:


 This triggers the extra attachments defined here:
 http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-project/src/main/resources/org/apache/maven/project/pom-4.0.0.xml?rev=326633view=markup

Thanks for the hint, Brett. I'll give it a try.


Jochen

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



MNG-1398: How to obtain an updated version of the maven-javadoc-plugin

2005-11-09 Thread Jochen Wiedmann


Hi,

sorry for asking the stupid question: I am one of the users who stumbled 
over


MNG-1398: site report generates an 'empty'
  target/site/apidocs/index.html

I see that a fixed version of the plugin will be available in Maven 
2.0.1. Very nice. But do I actually have to wait for that version? Or, 
do I have to rebuild Maven from SVN?


Regards,

Jochen


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



Re: How to obtain an updated version of the maven-javadoc-plugin

2005-11-09 Thread Jochen Wiedmann

Wim Deblauwe [EMAIL PROTECTED] wrote:


What I have found that works is: mvn -U javadoc:javadoc, that will give you
the latest released version. For bleeding edge, you will need to build from
SVN (never done that myself).


Well, it turned out to be easy:

- Extracted the sources (see


http://maven.apache.org/plugins/maven-javadoc-plugin/source-repository.html

- Did mvn install

Result: Works like a charm. :-)

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



maven-changes-plugin for m2?

2005-11-12 Thread Jochen Wiedmann


Hi,

according to the Maven Plugin Matrix, there is a maven-changes-plugin 
for M2. Even more, it is a maven distributed plugin/report. However, 
if I add the following section to my pom.xml


plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
/plugin

then I receive the error message

  [INFO] The plugin 'org.apache.maven.plugins:maven-changes-plugin'
  does not exist or no valid version could be found

What's wrong?


Thanks,

Jochen



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



Re: namespace.jar

2005-11-13 Thread Jochen Wiedmann

[EMAIL PROTECTED] wrote:


Adam Hardy [EMAIL PROTECTED] wrote:


However, it is seriously only 2 classes - I am surprised that jaxme have 
not included an implementation.


Of course it has. Choose between jaxb-api.jar (full JAXB API, including 
javax.xml.bind) and ws-commons-java5.jar (just the javax.xml classes), 
which is basically namespace.jar combined with qname.jar.



Jochen

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



m2: how to add jsse.jar to maven-eclipse-plugin's classpath?

2005-11-15 Thread Jochen Wiedmann


Hi,

the maven-eclipse-plugin typically generates the following entry in the 
.classpath file:


  classpathentry kind=var rootpath=JRE_SRCROOT
  path=JRE_LIB sourcepath=JRE_SRC/

Eclipse (3.2M3) understands, that it has to add the rt.jar file to the 
classpath.


The problem is, that the JRE has more jar files than just rt.jar: In 
particular, jsse.jar and jce.jar are separate files. IMO, these should 
be added to the classpath too. This can be done with an entry like


  classpathentry kind=con
  path=org.eclipse.jdt.launching.JRE_CONTAINER/

Obviously, one can set the maven-eclipse-plugin property 
classpathContainers to add the org.eclipse.jdt.launching.JRE_CONTAINER. 
That works fine, and the complete JRE jar files are now in your classpath.


But wait: Eclipse refuses the classpath now, because rt.jar is 
configured twice!


Am I doing something wrong? IMO, the maven-eclipse-plugin should either

  a) Offer a property that replaces the var definition of the JRE with
 the con definition. (Or even better, do this by default.)
  b) Remove the var definition, if the JRE_CONTAINER is present.

Is this a bug? Any workarounds?


Regards,

Jochen


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



Re: Testing a webapp with perl

2007-08-14 Thread Jochen Wiedmann
On 8/14/07, Roland Asmann [EMAIL PROTECTED] wrote:

 I am working an a plugin that access a webapp that is written in Perl. The
 plugin seems to work alright, but I can't really test everything I want on
 the webapp.
 Does anybody know of a webserver that can run Perl and has the possibility to
 be plugged into Maven at the testing-phase (similar to Jetty)?

Tomcat has a CgiServlet (or whatever it's called). It isn't enabled by
default, you have to declare it in your web.xml.

Jochen


-- 
Besides, manipulating elections is under penalty of law, resulting in
a preventative effect against manipulating elections.

The german government justifying the use of electronic voting machines
and obviously  believing that we don't need a police, because all
illegal actions are forbidden.

http://dip.bundestag.de/btd/16/051/1605194.pdf

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



Re: source:jar includes resources?

2007-09-05 Thread Jochen Wiedmann
On 9/5/07, Siegmann Daniel, NY [EMAIL PROTECTED] wrote:

 I noticed that jar built by source:jar includes resources. Is there any
 reason for this?

I surely hope it does! They are added to the jar file, which makes them sources.

 Is there any way to prevent it?

Don't put the resources into a resource directory, but add them to
target/classes with an Ant script or something like that.

Jochen


-- 
Look, that's why there's rules, understand? So that you think before
you break 'em.

-- (Terry Pratchett, Thief of Time)

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



Build javadoc of dependencies?

2007-09-05 Thread Jochen Wiedmann
Hi,

I have a project which is structured like this:

  +- parent
  |
  +- core
  |
  +- webapp

(In practice, it's a little bit more complex, but the picture is
sufficient to show the use case.)

When running the javadoc plugin, I get the javadocs of the separate
projects. I would like to have the javadocs of all projects aggregated
into the webapp project. The plugins aggregate property doesn't help
me, because its designed for parent projects.

Any suggestions? Is my setup so unusual?

Thanks,

Jochen


-- 
Look, that's why there's rules, understand? So that you think before
you break 'em.

-- (Terry Pratchett, Thief of Time)

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



Re: Build javadoc of dependencies?

2007-09-06 Thread Jochen Wiedmann
On 9/6/07, Heinrich Nirschl [EMAIL PROTECTED] wrote:

 You could set up a fourth project with packaging pom that serves as
 parent for the other three (i.e. the other tree projects are modules
 of the new project). The Javadoc plugin's aggregate function should
 work then.

Right, but I couldn't add it to the webapp.

Jochen

-- 
Look, that's why there's rules, understand? So that you think before
you break 'em.

-- (Terry Pratchett, Thief of Time)

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



Re: XML entities or alternative?

2007-09-10 Thread Jochen Wiedmann
On 9/10/07, Wayne Fay [EMAIL PROTECTED] wrote:

 Not presently. The idea of snippets has been under discussion on
 dev@ lately. Feel free to chime in.

Do you have a pointer? I tried to search for

snippets -jira -svn commit

on Nabble, but didn't find something that sounded relevant to me.

Jochen

-- 
Look, that's why there's rules, understand? So that you think before
you break 'em.

-- (Terry Pratchett, Thief of Time)

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



Why is my site.xml ignored?

2007-09-12 Thread Jochen Wiedmann
Hi,

I've got a project, which I am currently moving to Maven.
Historically, the directory src is used for Java sources and this
cannot be changed easily. Not now, at least. Obviously, src/site
would be an unfortunate choice, which is why I am using the directory
site.

Therefore, my POM contains the following section:

  build
plugins
  plugin
artifactIdmaven-site-plugin/artifactId
configuration
  siteDirectorysite/siteDirectory
  templateDirectorysite/templateDirectory
/configuration
  /plugin
/plugins
  /build

However, the file site/site.xml is completely ignored. Am I doing
something wrong? Or is there something else I need to change?

Thanks,

Jochen



-- 
Look, that's why there's rules, understand? So that you think before
you break 'em.

-- (Terry Pratchett, Thief of Time)

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



Next version of the site plugin? (Was: Why is my site.xml ignored?)

2007-09-12 Thread Jochen Wiedmann
Hi,

answering my own question: I see, that this is a bug in the current
version of the site plugin and that the bug has been fixed in the
trunk. Any ideas, why the next version will be released?

Thanks,

Jochen

-- 
Look, that's why there's rules, understand? So that you think before
you break 'em.

-- (Terry Pratchett, Thief of Time)

-
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 Jochen Wiedmann
On 9/24/07, nicolas de loof [EMAIL PROTECTED] wrote:

 Is there any compiler to target 1.3 with source 1.5 ? There is no
 limitation for that in the class file format.

From my experience, you are better off using the retrotranslator plugin.

Jochen

-- 
Look, that's why there's rules, understand? So that you think before
you break 'em.

-- (Terry Pratchett, Thief of Time)

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



Re: Configure Continuum to use an HTTP proxy

2007-09-25 Thread Jochen Wiedmann



Emmanuel Venisse wrote:
 
 You can add java proxy properties in wrapper.conf
 

Thanks!

-- 
View this message in context: 
http://www.nabble.com/Configure-Continuum-to-use-an-HTTP-proxy-tf4514961.html#a12877931
Sent from the Continuum - Users mailing list archive at Nabble.com.



Re: Configure Continuum to use an HTTP proxy

2007-09-25 Thread Jochen Wiedmann



Ashley Williams-5 wrote:
 
 Does this mean you got it to work? I added the proxy properties as 
 Emmanuel suggested, even changed the property names to camel case and it 
 still refused to work...
 

No, this means I wanted to be polite. :-)

In fact, I can't see it working even after adding the respective properties.

-- 
View this message in context: 
http://www.nabble.com/Configure-Continuum-to-use-an-HTTP-proxy-tf4514961.html#a12878394
Sent from the Continuum - Users mailing list archive at Nabble.com.



Re: speed comparisons from maven 2 to Ant?

2006-05-12 Thread Jochen Wiedmann
Mick Knutson wrote:

 Does anyone have speed comparisons between maven 2 and Ant?

What for? It is quite obvious, that a well written Ant script is much
faster. If you use Maven, then you need to be convinced by other advantages.

Jochen

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



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

2006-05-22 Thread Jochen Wiedmann
Dave Hoffer wrote:

 I am working on generating the surefire test reports and I have found
 that a recent file check-in has broke 1 test.  How can I continue with
 the build process and notify the developer that he broke the build?
 Ideally, this hate mail could go to just the offending developer but in
 any case I need an HTML report that shows what test failed and why.
 
 What is the best way to do this?

Use Continuum: http://maven.apache.org/continuum/


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



Re: Eclipse Compiler Options

2006-05-31 Thread Jochen Wiedmann
rich09 wrote:

 My Question, is there an option I can enable to get the compiler working
 like in eclipse?

May be http://jira.codehaus.org/browse/MCOMPILER-8 helps?


Jochen


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



Re: Free book on maven 2.0

2006-06-01 Thread Jochen Wiedmann

On 6/1/06, Brett Porter [EMAIL PROTECTED] wrote:


Well, then - the users have spoken!

http://maven.apache.org/articles.html


Btw, is the printed book available for sales somewhere? Have found no
pointer on the Mergere site and Amazon doesn't know it.

--
Whenever you find yourself on the side of the
majority, it is time to pause and reflect.
(Mark Twain)

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



Multiproject: Merge Javadoc's into parents site?

2006-06-12 Thread Jochen Wiedmann

Hi,

I have a project (Apache XML-RPC) with three subprojects (common,
client, server), each of which are building a jar file. The site is
created by the parent project.

Now I'd like to integrate the Javadoc's into the site. But how to do that?

Regards,

Jochen

--
Whenever you find yourself on the side of the
majority, it is time to pause and reflect.
(Mark Twain)

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



Status of maven-changes-plugin

2006-06-12 Thread Jochen Wiedmann

Hi,

what is the status of the maven-changes-plugin? (See

http://maven.apache.org/plugins/maven-changes-plugin/howto.html

I can't get it working, which isn't too surprising, as the module is neither
ob ibiblio, nor in the snapshot repository, nor in the SVN. Or did I miss
something?

Thanks,

Jochen



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



Re: Multiproject: Merge Javadoc's into parents site?

2006-06-12 Thread Jochen Wiedmann
Maria Odea Ching wrote:

 The aggregate parameter specifies that all the generated javadocs of the
 different modules will

Thanks for the hint, Odea. Indeed, that seems to work.

For the record, I had to force using the latest version of the javadoc
plugin by adding a version2.0/version.


Jochen


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



Question on maven-plugin-testing-harness

2006-06-15 Thread Jochen Wiedmann

Hi,

I am attempting to write a plugin test by using the
maven-plugin-testing-harness. I have created the following test-POM and am
trying to invoke it through

  File testPom = new File( getBasedir(), src/test/it1/pom.xml );
  ValidatorMojo vm = (ValidatorMojo) lookupMojo( xml:validate, testPom );
  vm.execute();

But I receive an exception

org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Component descriptor cannot be found in the component repository:
org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-xml-plugin:0.0.1:xml:validate.

with org.apache.maven.plugins being my group Id, maven-xml-plugin being my
artifactId, and 0.0.1 being my version number. According to plugin.xml my
goalPrefix is xml and my goal is validate, so xml:validate should be
fine. Any ideas, what might be wrong?

Thanks,

Jochen



?xml version=1.0 encoding=UTF-8?
project
  modelVersion4.0.0/modelVersion
  groupIdorg.apache.maven.plugins.xml/groupId
  artifactIdit1/artifactId
  version0.0.1/version
  nameMaven XML Plugin IT 1/name
  descriptionIntegration Test 1 for the Maven XML Plugin/description
  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-xml-plugin/artifactId
version0.0.1/version
configuration
  docType
dirxml/dir
  /docType
/configuration
  /plugin
/plugins
  /build
/project


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



Re: Question on maven-plugin-testing-harness

2006-06-16 Thread Jochen Wiedmann

Maria Odea Ching wrote:

 I don't think you need to include the goalPrefix (xml) when you lookup
 the mojo in your test case
 when you use the testing harness.
 
 It should be:
 
 ValidatorMojo vm = (ValidatorMojo) lookupMojo( validate, testPom );

Thanks, that worked!


Jochen

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



More questions on maven-plugin-testing-harness

2006-06-16 Thread Jochen Wiedmann

Hi,

thanks to Odea's help, I managed to get a few steps further. However, I have
to return with another question in the end.

My plugin contains the following variable:

/**
 * The base directory, relative to which directory names are
 * interpreted.
 *
 * @parameter expression=${basedir}
 * @required
 * @readonly
 */
public File basedir;


The plugin is started with the following code:

public void testIt1() throws Exception
{
File testPom = new File( getBasedir(), src/test/it1/pom.xml );
ValidatorMojo vm = (ValidatorMojo) lookupMojo( validate, testPom );
vm.execute();
}

However, the plugins execution fails, because basedir is null. I have
attempted to gain the base directory through a variable project of type
MavenProject, which is initialized with ${project}, but this one is also null.


Any ideas?


Regards,

Jochen

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



Re: RE : More questions on maven-plugin-testing-harness

2006-06-16 Thread Jochen Wiedmann
Olivier Lamy wrote:

 setVariableValueToObject( vm , basedir, new File( getBasedir() ) );
 Before vm.execute();

Thanks, that worked like a charm!


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



plugin-testing-harness (3)

2006-06-19 Thread Jochen Wiedmann

Hi,

I am about to write a test case for MJAR-20. Below you find my unit test and
my pom. Unfortunately, when I try to execute the unit test, I receive the
following exception:

org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Component descriptor cannot be found in the component repository:
org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-jar-plugin:2.1-SNAPSHOT:test-jar.
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:319)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:436)
at org.codehaus.plexus.PlexusTestCase.lookup(PlexusTestCase.java:222)
at
org.apache.maven.plugin.testing.AbstractMojoTestCase.lookupMojo(AbstractMojoTestCase.java:164)
at
org.apache.maven.plugin.testing.AbstractMojoTestCase.lookupMojo(AbstractMojoTestCase.java:110)
at
org.apache.maven.plugin.jar.TestJarMojoTest.testTestJarInPomProject(TestJarMojoTest.java:42)

Any ideas what might be wrong?

Thanks,

Jochen


Unit test:

package org.apache.maven.plugin.jar;

import java.io.File;

import org.apache.maven.plugin.testing.AbstractMojoTestCase;

public class TestJarMojoTest
extends AbstractMojoTestCase
{
private File testPom = new File( getBasedir(),
   src/test/resources/test-jar-0/pom.xml );

protected void setUp()
throws Exception
{
// required for mojo lookups to work
super.setUp();
}

/**
 * Tests, whether a test-jar is created for a project with the pom
 * packaging.
 */
public void testTestJarInPomProject()
throws Exception
{
TestJarMojo mojo = (TestJarMojo)
lookupMojo( test-jar, testPom   );
mojo.execute();
}
}


POM:

project
  modelVersion4.0.0/modelVersion
  artifactIdjar-mjar-20/artifactId
  groupIdorg.apache.maven.plugins/groupId
  version1.0/version
  packagingpom/packaging
  nameTest Case for MJAR-20/name
  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
executions
   execution
  goals
 goaltest-jar/goal
  /goals
   /execution
/executions
configuration
/configuration
  /plugin
/plugins
  /build
/project

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



Re: plugin-testing-harness (3)

2006-06-20 Thread Jochen Wiedmann

On 6/21/06, Maria Odea Ching [EMAIL PROTECTED] wrote:


Did you check that you have the correct goal name when you looked up the
mojo? :)
There seems to be nothing wrong with your configuration..


That's been the problem when you wrote me the last time, wasn't it?
:-) But test-jar is right, isn't it?



--
Whenever you find yourself on the side of the
majority, it is time to pause and reflect.
(Mark Twain)

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



Difference between assembly:assembly and assembly:attached

2006-06-20 Thread Jochen Wiedmann

Hi,

can anyone explain me the difference between assembly:assembly and
assembly:attached?

Background: I am looking for a workaround to MNG-1682. I'll quote my comment
 from there.

The attached project can be used to reproduce the problem. When
install is invoked in the subproject, then the assembly:assembly
goal is executed. This is not the case when install is invoked in
the parent project.


Thanks,

Jochen


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



Re: Difference between assembly:assembly and assembly:attached

2006-06-20 Thread Jochen Wiedmann
Edwin Punzalan wrote:
 
 They do the same thing... but differs in when you use them.
 
 assembly:attached is used inside poms, i.e. mvn package
 
 assembly:assembly is the command-line version , i.e. mvn assembly:assembly

Thanks, that sounds like something I can understand. :-)

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



How to test a secondary mojo with the testing harness?

2006-06-20 Thread Jochen Wiedmann

Hi,

I have a mojo, which is started like this:

plugin
  artifactId../artifactId
  executions
execution
  goals
goal.../goal
  /goals
  configuration
...
  /configurations
/execution
  /executions
/plugin


In other words: It is not the mojo's primary plugin. (Which would be, for
example, the jar:jar Mojo in the case of the maven-jar-plugin, as opposed to
the jar:test-jar Mojo.)

I have attempted to run this POM via the plugin-testing-harness, but that
doesn't seem to work: The lookupMojo() method inists in a configuration
element as a child of the plugin element. And if that element is present,
then an instance of the primary Mojo is created.

Is it possible to test the secondary Mojo using the plugin-testing-harness?
How? And, if not, how can I implement a test without the plugin-testing-harness?

And, btw: How do I configure, which Mojo is the primary?

Regards,

Jochen

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



Re: Maven best practices - company-wide local repository?

2006-06-21 Thread Jochen Wiedmann

On 6/21/06, Aleksei Valikov [EMAIL PROTECTED] wrote:


Do you do anything similar? Are there drawbacks? What is the recommended 
approach?


We use Proximity for exactly the same reason.

--
Whenever you find yourself on the side of the
majority, it is time to pause and reflect.
(Mark Twain)

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



Re: Adding hibernate generated resources to JAR?

2006-06-21 Thread Jochen Wiedmann

On 6/21/06, Edwin Punzalan [EMAIL PROTECTED] wrote:


You can place your generated resources anywhere in target...

but to include it in your package, you need to tell the resources plugin
where to look for the resources... which is configured in your pom.xml


Shouldn't the Hibernate plugin to this automatically? The JaxMe plugin does.

Jochen

--
Whenever you find yourself on the side of the
majority, it is time to pause and reflect.
(Mark Twain)

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



Re: Adding hibernate generated resources to JAR?

2006-06-21 Thread Jochen Wiedmann

On 6/21/06, Edwin Punzalan [EMAIL PROTECTED] wrote:


Depends on the plugin author... if the generated resources is required
inside the classes directory, then I guess its more sensible to make the
output directory default to target/classes... than to add another
resource programmatically.


If it is at least required sometimes, then I'd suggest that this
should be possible at least by specifying some property.

Jochen


--
Whenever you find yourself on the side of the
majority, it is time to pause and reflect.
(Mark Twain)

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



Re: how to generate -sources.jar on install/deploy

2006-06-28 Thread Jochen Wiedmann

On 6/28/06, Nicolas De Loof [EMAIL PROTECTED] wrote:


I'd like my projects to automatically generate the -sources.jar when
running mvn install or deploy. I've lokked for this at
maven-sources-plugin but there is no doc.
How to include sources jars in my build process ?



 build
   plugins
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-source-plugin/artifactId
   executions
 execution
   goals
 goaljar/goal
   /goals
 /execution
   /executions
 /plugin
   /plugins
 /build


--
Whenever you find yourself on the side of the
majority, it is time to pause and reflect.
(Mark Twain)

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



Re: jaxp

2006-06-28 Thread Jochen Wiedmann
Mykel Alvis wrote:

 In the tradition of laziness that we're currently espousing here, has
 anyone written a jaxp plugin?

What should that plugin do?


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



Re: [m2] problem with manifest entries with new war plugin

2006-06-28 Thread Jochen Wiedmann
Mark Reynolds wrote:

 I read MWAR-34 and MWAR-35 but it is not clear to me what the intended
 behavior is as a result of fixing those bugs. Is it no longer supposed
 to add any of these by default?

Can you tell me, which version of the maven-archiver is used? (Use the -X flag.)


Jochen

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



Re: Problem with maven-changes-plugin

2006-07-05 Thread Jochen Wiedmann

The current version is 2.0.2-SNAPSHOT, which works for me with Maven 2.0.4.

Unfortunately, and AFAIK, there is no snapshot available somewhere. In
other words, you need to fetch the sources from

   http://svn.apache.org/repos/maven/sandbox/plugins/maven-changes-plugin

(URL written from memory) and compile and install it for yourself.


Jochen


--
Whenever you find yourself on the side of the
majority, it is time to pause and reflect.
(Mark Twain)

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



Asymmetric parentship

2006-07-31 Thread Jochen Wiedmann

Hi,

I am considering how to implement a real integration test for a
plugin. The test harness is good for some purposes, but sometimes it
is insufficient. This applies, in particular, when testing the
dependencies, which are introduced by the plugin.

Here's my idea: I create the following projects:


  foo-Parent

foo   = dependency of =  foo-Test

foo-Parent would refer foo and foo-Test as modules. However, only
foo-Test would name foo-Parent as its parent, but foo wouldn't. (The
idea is, that I wouldn't want force people to download yet another
pom.)

Would that be working? Recommendable? Bad? Whatever?


Regards,

Jochen

--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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



Re: Status of maven-changes-plugin

2006-08-04 Thread Jochen Wiedmann

On 8/4/06, Jimisola Laursen [EMAIL PROTECTED] wrote:


Either way, I can get the source code since the svn link is broken.


The plugin was moved from the sandbox to

  http://svn.apache.org/viewvc/maven/plugins/trunk/maven-changes-plugin/

--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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



repository vs. pluginRepository

2006-08-08 Thread Jochen Wiedmann


Hi,

according to

http://maven.apache.org/ref/current/maven-model/maven.html

I may use both

repositories
  repository.../repository
/repositories

and

pluginRepositories
  pluginRepository.../pluginRepository
/pluginRepositories


But how are these related? Or what's the difference?


Thanks,

Jochen


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



Re: Profile Activation Feature

2006-08-20 Thread Jochen Wiedmann

ccadete wrote:

but how can it be activated for 1.5, or better. 


Vote for

  http://jira.codehaus.org/browse/MNG-1910

Relatively trivial patch, but ignored since more than 7 months. :-(


Jochen


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



Re: AW: installing sources to local repository by means of install plugin

2006-08-24 Thread Jochen Wiedmann

Gunzenreiner Simon wrote:


I tried to use install:install-file like this:

mvn install:install-file -DgeneratePom=true -Dpackaging=jar -DgroupId=myGroupId 
-Dversion=myVersion -DartifactId=myArtifactId -Dclassifier=sources 
-Dfile=myArtifactId-myVersion-sources.jar

but it didn't install my sources.jar correctly - the binary jar file was simply 
replaces. It looks to me like the classifier option is not really supported ..


Classifier works, believe me. I'd guess that the generatePom=true is a 
 problem.



Jochen


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



Re: Installing third party libraries

2006-09-05 Thread Jochen Wiedmann

Dudu wrote:


When I install a third part library, the poom is not generated
automatically.
Is right this behavior?


-DgeneratePom=true


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



Re: Two questions about install:install-file

2006-09-19 Thread Jochen Wiedmann

Stefan Arentz wrote:


In this case I'm installing spring, which also comes with a
spring-src.jar. Is it possible to install the sources too using the
above command?


No need to. Simply drop them into the right directory. Using 
install:install-file is only required for the usual jar's and pom's, 
because the metadata files are possibly modified.



Jochen

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



Re: Who is the maintainer of the fop:fop project found on repo1.maven.org?

2006-09-20 Thread Jochen Wiedmann

Barrie Treloar wrote:


The problem that Jorg points out is still outstanding is what naming
conventions should be used to indicate that this fixes a problem with
an already released version of the artifact.


There is no problem.

If the artifact is actually modified, then it's a different release. In 
other words, one needs a new version number. Note, that the version 
number might be something like 0.20.5-fix1 or whatever.



Jochen

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



Re: Who is the maintainer of the fop:fop project found on repo1.maven.org?

2006-09-20 Thread Jochen Wiedmann

Markus KARG wrote:

If Carlos is able to upload it while I seem not to be, he actually is in 
the role of the maintainer.

Where am I going wrong with that assumption?


Your assumption is, that he is able to change files in the repository. 
The answer is he isn't. Ok, he may be able to do that technically, but 
the policy is clearly that already released files are left unchanged - 
forever.



Jochen


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



Re: Who is the maintainer of the fop:fop project found on repo1.maven.org?

2006-09-20 Thread Jochen Wiedmann

Markus KARG wrote:


So the policy is A bug cannot be fixed?!


The policy is A bug can be fixed in the next version. What else did 
you expect?


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



Re: Who is the maintainer of the fop:fop project found on repo1.maven.org?

2006-09-20 Thread Jochen Wiedmann

Markus KARG wrote:

But it would be beneficial for you since I would change it in a way that 
FOP is valid for everyone, so you can remove your workarounds.
Since in your case the Class-Path isn't taken into account anyways as 
you wrote, what have you lost?


It is strange that you as the defender of the most wholy QA proposes 
modification of released artifacts, which I, as the silly QA student 
would never even consider? :-)



Jochen


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



Version 2 of the maven-jaxme-plugin

2006-11-02 Thread Jochen Wiedmann

Hi,

I'd like to ask the users of the maven-jaxme-plugin for feedback on
the proposed version 2. The updated version is available from the
Maven snapshot repository on people.apache.org:

  http://people.apache.org/repo/m2-snapshot-repository/org/apache/ws/jaxme

This version is slightly incompatible to its predecessor (hence the
increment in the major version number). If noone else intervenes, I'll
ask for a release in the next weeks.

Thanks,

Jochen

List of changes in the plugin:

- Added the concept of schema collections, which allows to compile
  multiple schema files within one project using different
  configurations. You had to use subprojects before.
- Upgrade to JaxMe 0.5.2.
- File sets are now built using the Plexus utilities, which is the
  standard for Maven plugins. Unfortunately, this means that the
  syntax for configuring the plugin has changed.
- Added support for entity resolvers.
- The input files may now be added to the generated jar file, so that
  they can be used for documentation or validation.
- Sources and resources may now have different target directories,
  which matches the Maven standards.


--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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



maven-plugin-testing-harness: Nonexistent component

2006-11-14 Thread Jochen Wiedmann

Hi,

in order to fix some bugs in the javacc plugins JTBMojo, I wrote a
little integration test, based on the maven-plugin-testing-harness.
However, I am unable to get it running, because I always receive the
following error message:

[ERROR] Nonexistent component:
org.apache.maven.plugin.Mojoorg.codehaus.mojo:javacc-maven-plugin:2.2-SNAPSHOT:jtb
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Component descriptor cannot be found in the component repository:
org.apache.maven.plugin.Mojoorg.codehaus.mojo:javacc-maven-plugin:2.2-SNAPSHOT:jtb.
at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:319)
at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:436)
at org.codehaus.plexus.PlexusTestCase.lookup(PlexusTestCase.java:222)
at 
org.apache.maven.plugin.testing.AbstractMojoTestCase.lookupMojo(AbstractMojoTestCase.java:164)
at 
org.apache.maven.plugin.testing.AbstractMojoTestCase.lookupMojo(AbstractMojoTestCase.java:110)
at 
org.codehaus.mojo.javacc.test.JTBMojoTest.newMojo(JTBMojoTest.java:42)
at 
org.codehaus.mojo.javacc.test.JTBMojoTest.runTest(JTBMojoTest.java:53)
at 
org.codehaus.mojo.javacc.test.JTBMojoTest.testJTB(JTBMojoTest.java:35)

Would anyone please be so kind to check what I might be doing wrong?
Here's my POM:

   project
modelVersion4.0.0/modelVersion
  parent
groupIdorg.codehaus.mojo/groupId
artifactIdjavacc-maven-plugin/artifactId
version2.2-SNAPSHOT/version
  /parent
  artifactIdjavacc-maven-plugin-it1/artifactId
  build
plugins
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdjavacc-maven-plugin/artifactId
version2.2-SNAPSHOT/version
configuration/
  /plugin
/plugins
 /build
 /project

and here's my test case:
public class JTBMojoTest extends AbstractMojoTestCase {
   /**
* Tests running the WSDL generator.
*/
   public void testJTB() throws Exception {
   final String dir = src/test/it1;
   runTest(dir , jtb );
   }

   protected JTBMojo newMojo( String pDir, String pGoal ) throws Exception
   {
   final File baseDir = new File(new File(getBasedir()), pDir);
   File testPom = new File( baseDir, pom.xml );
   JTBMojo mojo = (JTBMojo) lookupMojo( pGoal, testPom );
   MavenProjectStub project = new MavenProjectStub(){
   public File getBasedir() { return baseDir; }
   };
   setVariableValueToObject(mojo, project, project);
   return mojo;
   }

   protected void runTest( String pDir, String pGoal )
   throws Exception
   {
   newMojo( pDir, pGoal ).execute();
   }
}


Thanks,

Jochen



--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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



Announce: Maven 2 Plugins for Axis2

2006-11-15 Thread Jochen Wiedmann

Hi,

I'd like to announce the availability of the following plugins:

 axis2-aar-maven-plugin - Generates an Axis 2 service archive (aar file).
 axis2-wsdl2code-maven-plugin - Generates code from an WSDL.
 axis2-java2wsdl-maven-plugin - Creates an WSDL from a Java class

See http://ws.apache.org/axis2/tools/index.html for details.

Jochen

P.S: Jason, or whoever's responsible for that: Could you please be so
kind and add these to the plugin list?

--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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



Re: Release plugin: source jar includes sources twice.

2006-11-16 Thread Jochen Wiedmann

On 11/16/06, Timo Wolf [EMAIL PROTECTED] wrote:


globalse/... and the complete source code, which is strange.


This is possibly related to

http://jira.codehaus.org/browse/MSOURCES-6

Do you have a resource with org as the base directory?

Jochen

--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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



Re: Release plugin: source jar includes sources twice.

2006-11-16 Thread Jochen Wiedmann

On 11/16/06, Timo Wolf [EMAIL PROTECTED] wrote:


org is the first package under /src/main/java
I do not have an org directory on the base directory.


You misunderstood me.

Do you have any resource specifications in the POM?


--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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



Re: Release plugin: source jar includes sources twice.

2006-11-16 Thread Jochen Wiedmann

On 11/16/06, Timo Wolf [EMAIL PROTECTED] wrote:


  resource
targetPathorg/targetPath
filteringfalse/filtering
directory${basedir}/src/main/java/org/directory


That is exactly as I expected.

There is one thing I do understand: You put these things into org/...,
but want them to appear without the org/... in the classpath? Is that
what you want? I would expect

   directorysrc/main/java/directory

(the ${basedir} can be omitted, btw).

If so, the suggested solution is to create a new directory
src/main/resources, remove the resources specification from your POM,
and move the images to that directory.

Jochen


--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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



Re: How can I resolve ${...} in assembly descriptors?

2006-11-17 Thread Jochen Wiedmann

On 11/17/06, Christian Goetze [EMAIL PROTECTED] wrote:


I'd like to pass in something either via the environment or via -D on
the mvn command line, and have that be visible within the assembly
description. How do I do that?


Use a filtered resource to create the actual assembly descriptor. In
other words,
if your assembly descriptor with ${DO} is src/main/assembly/bin.xml,
then specify src/main/assembly as a filtered resource. That will
give you a file target/classes/bin.xml, which you'll give as a
descriptor to the assembly plugin.

Jochen


--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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



Re: Has anyone been able to get the java2wsdl plugin to work?

2006-11-17 Thread Jochen Wiedmann

On 11/17/06, Eric Helfrich [EMAIL PROTECTED] wrote:


If someone couuld include a pom fragment or pom where they got this plugin
to work it would be *most* helplful.


Which java2wsdl plugin?

--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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



Re: Has anyone been able to get the java2wsdl plugin to work?

2006-11-18 Thread Jochen Wiedmann

On 11/18/06, Eric Helfrich [EMAIL PROTECTED] wrote:


sorry - -stupid me -- the maven 2 axis 2 plugin.  Serves me right for trying
to get something real accomplished in an otherwise BS day


If so, I am the one to respond. Could you please provide more details,
preferrably by filing a bug at http://issues.apache.org/jira against
Axis 2?

Thanks,

Jochen

--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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



How not to deploy a project?

2006-11-22 Thread Jochen Wiedmann

Hi,

I have a parent project (Apache XML-RPC) with several childs: common,
client, server, and tests.

When deploying, they are all transmitted to the server. For obvious
reasons, I do not want the tests to be published, so I remove the
tests folder from the repository later on. However, the best solution
would be, if I could tell the maven-deploy-plugin not to deploy the
tests project at all.

Is that possible? Another thrick to achieve the same goal?

Jochen

--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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



Re: Warnning on org.apache.axis2:axis2-kernel:pom:1.1?

2006-11-26 Thread Jochen Wiedmann

On 11/26/06, jiangshachina [EMAIL PROTECTED] wrote:


I used axis2-kernel-1.1.jar as dependency, but had the following warning,
POM for 'org.apache.axis2:axis2-kernel:pom:1.1:compile' is invalid.
It will be ignored for artifact resolution.


This is a known issue. Unfortunately it can only be fixed with a new
release Axis 2 1.1.1. See

   http://marc.theaimsgroup.com/?t=11641106131r=1w=2

for a discussion on the issue.

As a workaround, you can very easily fix the issue manually by editing

  axis2-parent-1.1.pom

Search for the following dependency:

   dependency
 groupIdorg.apache.neethi/groupId
 artifactIdneethi/artifactId
 version2.0/version
   /dependency

and change the groupId to org.apache.ws.commons.neethi


Jochen

--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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



Unable to deploy site to dav:https

2006-11-29 Thread Jochen Wiedmann

Hi,

I am trying to deploy a plugin site to the Mojo repository, which has
an URL like dav:https:.. Unfortunately I get an error PKIX path
building failed. I assume, that the site is using a self certified
certificate or something like that and that I have to tell Maven to
accept the certificate. But how?

Thanks,

Jochen



[EMAIL PROTECTED] ~/builds/xml-maven-plugin]$ mvn site:deploy
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'site'.
[INFO] 

[INFO] Building Maven XML Plugin
[INFO]task-segment: [site:deploy]
[INFO] 

[INFO] [site:deploy]
WAGON_VERSION: 1.0-beta-1
https://dav.codehaus.org/mojo/xml-maven-plugin - Session: Opened
https://dav.codehaus.org/mojo/xml-maven-plugin - Session: Disconnecting
https://dav.codehaus.org/mojo/xml-maven-plugin - Session: Disconnected
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Error uploading site

Embedded error: Failed to create remote directory:
/mojo/xml-maven-plugin/. : sun.security.validator.ValidatorException:
PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to
find valid certification path to requested target
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 10 seconds
[INFO] Finished at: Wed Nov 29 08:20:40 GMT 2006
[INFO] Final Memory: 6M/117M
[INFO] 


--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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



Re: Unable to deploy site to dav:https

2006-11-29 Thread Jochen Wiedmann

On 11/29/06, Dan Tran [EMAIL PROTECTED] wrote:

this may help

http://docs.codehaus.org/display/HAUSMATES/WebDAV


Thanks, it did!

--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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



Migrating site.xml from Maven 1 to Maven 2

2006-11-29 Thread Jochen Wiedmann

Hi,

the site.xml in Maven 1 used to contain entries like

 external-refs
   ant.apache.org href=http://ant.apache.org/;
 ant href=/

which I could use in xdocs for references like

 a hrefkey='link.ant'

Is this feature available in Doxia? If so, how do I configure the link list?

Thanks,

Jochen

--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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



Re: JAXB2 versus Maven2

2007-01-11 Thread Jochen Wiedmann

On 1/11/07, Franz Fehringer [EMAIL PROTECTED] wrote:


It seems, that http://repo1.maven.org/maven2/ is still stuck with 2.0EA3?
Who can take care of this?


Use the sun java repository for Maven. See

   https://maven-repository.dev.java.net/

--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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



Re: JAXB2 versus Maven2

2007-01-11 Thread Jochen Wiedmann

On 1/11/07, Franz Fehringer [EMAIL PROTECTED] wrote:


I cannot use this, see my recent (few minutes ago) posting regarding
Re: calling vote for 2.0.5 (Maven2 cannot access HTTPS (SSL)
repositories from behind proxies/firewalls).


Use a Maven proxy like Proximity to access the Sun repository.

Jochen


--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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



Re: changing phase of javadoc:jar and sources:jar

2007-01-11 Thread Jochen Wiedmann

On 1/11/07, DJP JEAN-PROST Dominique [EMAIL PROTECTED] wrote:


I would like my team to deploy to my repository the following jars : binaries 
(of course), sources and javadoc. As javadoc generation is a bit time costly, I 
would like to get it generated only on the deploy phase, so that, everyday work 
is not slowed by this generation.


The commons-parent POM from Jakarta has a different approach. It
defines a special profile called release, which invokes the
maven-source-plugin and the maven-javadoc-plugin and attaches the
generated artifacts. In other words, the jar files are created and
deployed, if you run Maven, for example, with

   mvn -Prelease deploy

See

   
repo1.maven.org/maven2/org/apache/commons/commons-parent/1/commons-parent-1.pom

for details.

Jochen

--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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



Proposal: maven-asf-plugin

2007-01-11 Thread Jochen Wiedmann

Hi,

after finding myself to do this again and again for projects, I came
to the following idea: How about a special maven-asf-plugin that
simplifies Apache projects (in particular, may be Maven itself)?
Things this plugin could do:

- Provide resources, in particular the latest LICENSE.txt and NOTICE.txt files.
 (Note that this would enable to remove them from the subversion repositories.)
- Make sure that these LICENSE.txt and NOTICE.txt are being added to
 jar, war, ... files.
- Verify that all source files are carrying the ASL headers (using RAT).
- Replace old ASL headers with current.

The most important point that I see is that such a plugin would be
able to handle changes in the ASF policy. (In my few years as an
Apache committer that happended two times, each time causing a lot of
work and confusion.)

Does such a thing already exist? Other thoughts?

Thanks,

Jochen

--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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



Re: Proposal: maven-asf-plugin

2007-01-11 Thread Jochen Wiedmann

On 1/11/07, Brett Porter [EMAIL PROTECTED] wrote:


These can be done with the asf parent POM (though we haven't moved the
configuration up there yet, it's already possible).


A POM cannot provide code. For example, it cannot provide a jar file
with the current LICENSE.txt or NOTICE.txt. A plugin can. In other
words, my proposal would enable to use the maven-asf-plugin in the asf
parent POM.



 - Verify that all source files are carrying the ASL headers (using RAT).

That's what the RAT plugin is for, I assume?


Yes, but the RAT plugin is usefull beyond the ASF. For example, I
might use it to verify that the source files contain my companies
copyright headers, not the ASF's. My proposal would mean that the
maven-asf-plugin would use the RAT plugin. (More precisely, it's jar
file, because unfortunately a plugin cannot use another plugin
directly, doesn't it?)



 - Replace old ASL headers with current.

Probably a bit tedious to rewrite this again when there are already
sufficient tools around. However, ISTR the guy that wrote the IDEA
copyright plugin might have donated some code to do a maven plugin...


There is no reason not to do reuse such tools in the plugin. The main
idea would be to simplify the process.

Jochen


--
How fast can a year go? As fast as your childs first year.

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



Same source, different deliverables

2007-01-17 Thread Jochen Wiedmann

Hi,

I'd like to know suggested solutions for the following scenario:

We have a jar file, which is used in different projects since quite
some time. One of the projects is so old, that it is still using Java
1.2. Other projects are using later Java versions, up to 1.5. The jar
files development is mainly driven by the newer projects, but from
time to time we change something in the old sources as well.

In order to use Java 5 features in as many sources as possible, we
have the following solution: The sources are located in three
different folders: A, B and C. An ant script is compiling A and B with
the 1.2 compiler and builds a jar file foo-jdk1.2-version.jar.
Likewise, the 1.5 compiler compiles A and C into foo-jdk1.5-version.
This has worked fairly well for us.

I would now like to switch the project to Maven 2. A possible approach
would be to have a parent project with three subprojects: A, B and C.
But that won't work too well, because we have cyclic dependencies
between A and B, or A and C. Besides, I am not too happy with that,
because it makes the build fairly complex.

Does anyone have an idea that would allow us to keep the sources in a
single project, but run the Java compiler twice and still create
multiple deliverables?

Thanks,

Jochen

--
How fast can a year go? As fast as your childs first year.

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



Re: Best plugin for making property files from templates?

2007-01-25 Thread Jochen Wiedmann

On 1/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Hei, my issue is that I have template property files containing
substitution variables.
What would be the best maven2 plugin to make property files filled with
real values to include in jars, wars and ears?


See

   http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html

--
How fast can a year go? As fast as your childs first year.

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



Re: Maven 2.0 Plugin for ZIP Archive

2007-01-27 Thread Jochen Wiedmann

On 1/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


I am looking for a Maven 2.0 plugin that would help me prepare a ZIP archive.


maven-assembly-plugin


--
How fast can a year go? As fast as your childs first year.

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



Re: How to attach the sources to a SNAPSHOT install?!

2007-01-29 Thread Jochen Wiedmann

On 1/29/07, Siegfried Goeschl [EMAIL PROTECTED] wrote:


1) the maven-install-plugin has no option/target to do this


Of course it has. Simply add a section like the following to your POM:

   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-source-plugin/artifactId
   executions
   execution
   goals
   goaljar/goal
   /goals
   /execution
   /executions
   /plugin



2) when using the maven-assembly-plugin the generated zip is a zip and
contains the nested directory structure, e.g. src/main/java/com/
To make it useable I would need to define my own assembly file which is
of course possible but I would have to touch all projects.

Do I miss something here?!


AFAIK, you are right.


Jochen


--
How fast can a year go? As fast as your childs first year.

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



Dynamic dependencies

2007-01-31 Thread Jochen Wiedmann

Hi,

I have a plugin (maven-jaxme-plugin), which currently has a static
dependency on jaxme-0.5.2.jar. From time to time I add a bugfix to the
dependency, which I would like to use in the plugin. However, it isn't
very manageable to update the plugin anytime I update the dependency.
So I am thinking whether it is possible to make jaxme a dynamic
dependency. For example, I might check a special configuration
parameter version. If that parameter is present, then I'd use the
given version, otherwise I'd use the preconfigured 0.5.2. Does someone
have an example how this can be done?

Thanks,

Jochen

--
How fast can a year go? As fast as your childs first year.

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



Re: Dynamic dependencies

2007-01-31 Thread Jochen Wiedmann

On 2/1/07, Tom Huybrechts [EMAIL PROTECTED] wrote:


you can just add a dependency/ element to the plugin's configuration
to override the original dependency


Is it really that simple? That means, I won't need to change the plugin at all?

Thanks,

Jochen


--
How fast can a year go? As fast as your childs first year.

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



Re: Activation a profile from another profile

2007-02-01 Thread Jochen Wiedmann

Anybode care to answer? I have the very same problem. (See the Jakarta
commons-parent POM.)


On 1/23/07, Janecek Jan [EMAIL PROTECTED] wrote:

Hi,

is it possible to trigger profile activation by activating another
profile?

I have several profiles defined that can be divided to few sets that
have some parts in common. I would like to place these common parts in
different profiles. For example I would have profiles profile1,
profile2, profile3, profile4. profile1 and profile2 would have some
parts in common and the same is true for profile3 and profile4. I
thought I could define profileA (with common parts of profile1 and
profile2) and profileB (with common parts of profile3 and profile4).
Then when I activate profile1 (by setting a property) I need to have
profileA activated as well. Is this possible?

In my case I have builds for different application servers (JBoss and
WebSphere) and each of them has several installations. I try to
parametrize builds for a specific server installation. So in my case
profileA and profileB contain configuration for the server and
profile1,... adds further configuration for the specific installation.
Currently I use 2 properties, one for activation of profileA/profileB
and for profile1/profile2/... . But then it is necessary to specify both
variables when running Maven (and thats annoying) and obviously it is
possible to specify invalid combinations.

Regards,
Jan



Tento e-mail je urcen pouze pro jeho adresata/adresaty a muze obsahovat duverne 
informace, jejichz ochrana muze byt vyzadovana pravnimi predpisy.
Jestlize jste zpravu obdrzel(a) omylem, neprodlene informujte jejiho 
odesilatele a tuto zpravu, jeji prilohy a pripadne kopie ihned vymazte. 
Jakakoli forma uziti, zverejneni, reprodukce, kopirovani, distribuce a sireni 
teto zpravy je v takovem pripade zakazana.
Komercni banka, a.s., neodpovida za mozne skody zpusobene neuplnym prenosem, 
moznou modifikaci ci zpozdenim teto zpravy behem prenosu od odesilatele k 
adresatovi.


This e-mail transmission is intended solely for the ordinary user of the e-mail 
address to which it was addressed. It may contain legally privileged and/or 
confidential information.
If you have received this e-mail in error or are not an intended recipient 
please inform the sender with-out delay and delete this e-mail, attachments and 
possible copies immediately. The unauthorised use, disclosure, distribution 
and/or copying of this e-mail or any information it contains is prohibited.
Komercni banka, a. s., does not accept liability for any damage caused by 
incomplete transmission, possible modification or delay of this e-mail during 
the transmission from the sender to the recipient.






--
How fast can a year go? As fast as your childs first year.

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



Two questions on maven-plugin-testing-harness

2007-02-09 Thread Jochen Wiedmann

Hi,

I am currently trying to use the maven-plugin-testing-harness for
testing a report plugin. Two questions came up so far:

1.) When I run the test, I receive the following exception:

   java.lang.NullPointerExceptionjava.lang.NullPointerException
 at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:100)
 at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:63)
 at 
org.codehaus.mojo.rat.RatReportMojo.getSkinArtifactFile(RatReportMojo
.java:124)
 at org.codehaus.mojo.rat.RatReportMojo.execute(RatReportMojo.java:209)
 at 
org.codehaus.mojo.rat.RatCheckMojoTest.testIt3(RatCheckMojoTest.java:
178)

   The exception is caused by the fact, that I need to provide a parameter

   /**
* @parameter default-value=${localRepository}
* @required
* @readonly
*/
   private ArtifactRepository localRepository;

   How do I creare this parameter? I suppose, it's an instance of
DefaultArtifactRepository,
   but how do I configure it?

2.) My test POM currently contains the following section:

   build
 plugins
   plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdrat-maven-plugin/artifactId
 version0.1-SNAPSHOT/version
 configuration/
   /plugin
 /plugins
   /build
   reporting
 plugins
   plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdrat-maven-plugin/artifactId
 version0.1-SNAPSHOT/version
 configuration/
   /plugin
 /plugins
   /reporting

 It seems, that the build section is required, although I would want to use the
 reporting section only, as in the actual POM which uses my report. Is that
 possible?


Thanks,

Jochen


--
How fast can a year go? As fast as your childs first year.

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



Re: Two questions on maven-plugin-testing-harness

2007-02-11 Thread Jochen Wiedmann

Hi, Edwin,

first of all, thanks for your reply.

On 2/11/07, Edwin Punzalan [EMAIL PROTECTED] wrote:


How do I creare this parameter? I suppose, it's an instance of
 DefaultArtifactRepository,
but how do I configure it?
I'm pretty sure the testing harness can take care of expressions
${localRepository}... it may be because you put it in default-value
instead of expression.


According to your words, I tried

   /**
* @parameter expression=${localRepository}
* @required
* @readonly
*/
   private ArtifactRepository localRepository;

But the parameter doesn't get filled. I also tried adding @component,
but that fails with a ComponentLookupException.



This is a bug... Please file this in jira and we'll have a look at it.
Thanks.


What project, what component?

Thanks,

Jochen

--
How fast can a year go? As fast as your childs first year.

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



Name transformation

2007-02-11 Thread Jochen Wiedmann

Hi,

I currently have a patch for the xml-maven-plugin, which suggests the
following: The plugin currently reads a set of files and transforms
them. The result is stored in a different directoy. Currently there is
no possibility to transform the name. The patch suggests to make the
extension configurable.

IMO, name transformation is a general concept. For example, Ant does
handle it in a quite generic way. Is there something in Maven that I
might reuse? Surely other plugins might encounter similar topics.

Jochen


--
How fast can a year go? As fast as your childs first year.

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



Configuring a parameter

2007-02-14 Thread Jochen Wiedmann

Hi,

I have a Mojo, where I would like to only depend on the Plexus role
(say MyComponent). I would want the user to select and configure the
actual implementation by specifying the role-hint
and the configuration. For example, I could imagine that this looks like

   plugin
  groupId.../groupId
  artifactId.../artifactId
  configuration
 param1.../param1
 ...
 MyComponentParam
roleHintfoo/roleHint
configuration
...
/configuration
 /MyComponentParam
  /configuration
   /plugin

Can anybody advise me how I achieve that? Or better, give an example
where something like that is done?

Thanks,

Jochen

--
How fast can a year go? As fast as your childs first year.

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



Re: [m2] Configuring a parameter

2007-02-14 Thread Jochen Wiedmann

Hi, Franz,

On 2/14/07, franz see [EMAIL PROTECTED] wrote:


Get the container by following the Accessing the Plexus Container section
of [1]. Then do the look up.

Cheers,
Franz

[1] http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook


thanks for the hint, I wasn't aware of this very helpful document.
Nevertheless, it only tells me half of the story: I do now know how I
can create the component. But how do I configure it? Basically I need
something like the antrun plugin does with its tasks parameter: An
XML element, which can be used to configure the component.


Thanks,

Jochen


--
How fast can a year go? As fast as your childs first year.

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



Re: [m2] maven embedder

2007-02-14 Thread Jochen Wiedmann

On 2/15/07, Jason van Zyl [EMAIL PROTECTED] wrote:


live. That's where we're planning the official IDE integration for
Maven.


What about M2Eclipse? You call this official?



--
How fast can a year go? As fast as your childs first year.

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



Re: Using maven-changes-plugin

2007-02-21 Thread Jochen Wiedmann

On 2/21/07, Jeff Mutonho [EMAIL PROTECTED] wrote:


Anyone using the maven-changes-plugin ?May you share your
configuration for this plugin , in your reporting section.


As in

   http://maven.apache.org/plugins/maven-changes-plugin/usage.html


--
Emacs 22 will support MacOS and CygWin. It is not yet decided, whether
these will be used to run Emacs or the other way round.

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



Re: Using maven-changes-plugin

2007-02-21 Thread Jochen Wiedmann

On 2/21/07, Jeff Mutonho [EMAIL PROTECTED] wrote:


version2.0-beta-3-SNAPSHOT/version


Why do you want to use a snapshot version? I'd simply remove the
version number, as shown on the usage page.

If so, you have posted the wrong question. Your question should be
How do I use plugins from the Maven Snapshot repository? See

   
http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html




--
Emacs 22 will support MacOS and CygWin. It is not yet decided, whether
these will be used to run Emacs or the other way round.

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



Re: [ANN] Artifactory - new Maven 2 proxy repository

2007-03-05 Thread Jochen Wiedmann

On 3/5/07, Nigel Magnay [EMAIL PROTECTED] wrote:


Fingers crossed that artifactory hits the sweet spot...


What I dislike with Artifactory, after reading through the docs, is
that it stores the artifacts in a database. That has, of course, its
merits, but currently I find myself fiddling with the artifacts, POM's
and metadata files frequently, and that point I wouldn't want to work
with a database.

Jochen

--
Emacs 22 will support MacOS and CygWin. It is not yet decided, whether
these will be used to run Emacs or the other way round.

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



URL inheritance when parent project is at the same level

2007-03-14 Thread Jochen Wiedmann

Hi,

after using Maven 2 for quite some time now, I have found two typical
layout styles for a multiproject:


   pom.xml   (Parent, with modules section)
   A/pom.xml(Subproject)
   B/pom.xml(Subproject)

vs.

   pom.xml   (Modules section)
   parent/pom.xml (Parent project, without modules section)
   A/pom.xml(Subproject)
   B/pom.xml(Subproject)

The former has the advantage that URL inheritance works. For example,
if I specify an SCM URL in the parent, then I do not need to specify
it in A/pom.xml. Likewise for distributionManagement and possibly in
other places.

However, the second layout has its merits, too. For example, it is
better suited for checking out a part of the project only. (I can, for
example, checkout the directories parent and A.)

Is it possible to combine these advantages? In other words, can I use
the second layout and still have inherited URL's?

Thanks,

Jochen

--
Emacs 22 will support MacOS and CygWin. It is not yet decided, whether
these will be used to run Emacs or the other way round.

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



Re: Restricting maven build from accessing central repo

2007-03-19 Thread Jochen Wiedmann

On 3/19/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Is there a way by which we can stop maven from accessing the central
repository -
http://repo1.maven.org/maven2/org/apache/maven/plugins/

to download plugins


Configure a mirror:

   http://maven.apache.org/guides/mini/guide-mirror-settings.html

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



Using dependency versions in a property file

2007-11-21 Thread Jochen Wiedmann
Hi,

it hit me again: I have a property file, which contains version number
of dependencies (in order to build the classpath, depending on the JDK
version). That property file is maintained manually, of course an ugly
thing. But I have no idea how to create it automatically.

Any suggestions?

Thanks,

Jochen

-- 
Look, that's why there's rules, understand? So that you think before
you break 'em.

-- (Terry Pratchett, Thief of Time)

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



Re: Using dependency versions in a property file

2007-11-21 Thread Jochen Wiedmann
On Nov 21, 2007 9:18 AM, Juven Xu [EMAIL PROTECTED] wrote:

 I don't quite understand your situation, why not config version number in
 pom file and use Maven-IDE plugin to generate classpath file?

The version number *is* in the pom file: It is part of the dependency
specification.

What is the Maven-IDE plugin?


Thanks,

Jochen



-- 
Look, that's why there's rules, understand? So that you think before
you break 'em.

-- (Terry Pratchett, Thief of Time)

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



Re: Using dependency versions in a property file

2007-11-21 Thread Jochen Wiedmann
On Nov 21, 2007 9:32 AM, Juven Xu [EMAIL PROTECTED] wrote:

 You want to create pom file automatically? or just want to create classpath
 file automatically?

I want to create a file like

dependency.1=xercesImpl-2.7.1.jar
dependency.2=xalan-2.4.0.jar
...




-- 
Look, that's why there's rules, understand? So that you think before
you break 'em.

-- (Terry Pratchett, Thief of Time)

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



Re: how to skip snapshot verification in release plugin ?

2008-01-09 Thread Jochen Wiedmann
On Jan 9, 2008 10:02 AM, nicolas de loof [EMAIL PROTECTED] wrote:

 Can I tell the release plugin to ignore this one during release checks ?

I do not know, whether you can. But the recommended way is to take the
current snapshot, define your own version number (for example
20080109) deploy it to your own repository and change your POM to that
version number. Note, that your released version requires the
snapshots artifact and that way you are guaranteed to have that
artifact and not a later snapshot.

Jochen


-- 
Look, that's why there's rules, understand? So that you think before
you break 'em.

-- (Terry Pratchett, Thief of Time)

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



Re: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed

2008-01-12 Thread Jochen Wiedmann
On Jan 12, 2008 3:59 PM, supareno [EMAIL PROTECTED] wrote:

 [INFO] Failed to configure plugin parameters for:
 org.apache.maven.plugins:maven-jar-plugin:2.2-SNAPSHOT

 (found static expression: '**/*.xsd' which may act as a default value).

Configuration problem on your side, use

excludes
   exclude**/*.xsd/exclude
/excludes

Jochen


-- 
Look, that's why there's rules, understand? So that you think before
you break 'em.

-- (Terry Pratchett, Thief of Time)

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



Copyright Symbol broken in Javadoc

2008-01-19 Thread Jochen Wiedmann
Hi,

if you have a look at

http://people.apache.org/~jochen/commons-fileupload/site/apidocs/index.html

then you'll find that the copyright symbol at the page bottom is
broken. Does anyone have an explanation for that? I did not do any
configuration on the javadoc plugin, apart from specifying 2.3.

Jochen


-- 
Look, that's why there's rules, understand? So that you think before
you break 'em.

-- (Terry Pratchett, Thief of Time)

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



Re: Copyright Symbol broken in Javadoc

2008-01-20 Thread Jochen Wiedmann
On Jan 19, 2008 5:25 PM, Vincent Siveton [EMAIL PROTECTED] wrote:

 The bottom uses #169; for the copyright. So I guess UTF-8 is used in
 command line.

See

http://www.nabble.com/Handling-of-encoding-in-commons-parent-to14975629.html

for my conclusions.


-- 
Look, that's why there's rules, understand? So that you think before
you break 'em.

-- (Terry Pratchett, Thief of Time)

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



Re: Best practices for seperate releases of parent and modules

2008-01-21 Thread Jochen Wiedmann
On Jan 21, 2008 10:42 AM,  [EMAIL PROTECTED] wrote:

 Is it advisable to move the commons-parent to another subdirectory or is this 
 layout the preferred way?

I was experiencing with the former, but gave it up. The reason is that
far too many plugins are not suitable to use it. Examples include:

  - The SCM URL must be configured in every subproject. Otherwise the
SCM links on the
generated site will be broken.
  - The distribution URL's must be configured in every subproject.
Otherwise deployment
will use the wrong target URL.

And so on.


Jochen



-- 
Look, that's why there's rules, understand? So that you think before
you break 'em.

-- (Terry Pratchett, Thief of Time)

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



Re: Best practices for seperate releases of parent and modules

2008-01-21 Thread Jochen Wiedmann
On Jan 21, 2008 11:00 AM,  [EMAIL PROTECTED] wrote:

 But when you release the parent, do you also release all the submodules or do 
 you run mvn with non-recursive?

If the parent hasn't changed (in other words, if it hasn't a SNAPSHOT
version), then I am happy to release the submodules only. To be
honest, that if requires a certain degree of cautiousness. My
recommended approach to resolve that is to provide read-only access to
the parent for most developers except a few selected.

Jochen



-- 
Look, that's why there's rules, understand? So that you think before
you break 'em.

-- (Terry Pratchett, Thief of Time)

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



  1   2   3   >