Re: How to get path to artifact for a dependency in a plugin

2006-11-06 Thread Christoph Schönfeld
you have to declare your mojo class as @requiresDependencyResolution. Best regards, Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Newbie repository question

2005-12-01 Thread Christoph Schönfeld
Just set up a variable in eclipse, M2_REPO, and point it to the location of your local repository (which is where maven stores the downloaded files). The value for the variable needs to be: $USER/.m2/repository. The variable can be created in Window>Preferences>Run/Debug/String Substitution. Then

[M2] Adding resources in the process-classes phase of a Project

2005-11-24 Thread Christoph Schönfeld
Hi, the following code does not seem to work: projectHelper.addResource( project, outputDirectory.getAbsolutePath(), Collections.singletonList("**/*.wsdl"), Collections.EMPTY_LIST); It is located at the end of Java2WSDLMojo.execute() of the axistool-maven-plugin which uses Axis to create

Maven should remove newlines from values used for the Manifest

2005-11-14 Thread Christoph Schönfeld
Hi, the first suspect, the character encoding which is often enough cause of problems, wasn't guilty. :) The description contained a newline which is used by the Manifest format to distinguish sections. The first sentence from your link says: "A JAR file manifest consists of a main section follo

Specification Title in Manifest

2005-11-14 Thread Christoph Schönfeld
Hi, I have noticed that the project description is used in the Specification-Title attribute of the manifest.mf file in generated JARs. Shouldn't this be the project name instead? I just stumbled over that because Tomcat complained about an invalid JAR file. My description contained Unicode chara

Re: Solution for Axis/Maven integration

2005-11-11 Thread Christoph Schönfeld
Hi Jesse, > want me to make a java2wsdl plugin? that would be great! Regarding my open question, I looked into the documentation of the WSDL2Java tool at http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference There is a switch which solves my problem: -c, --implementationClassName

Plug-in gonfiguration guide: missing sections about Mapping maps and properties

2005-11-11 Thread Christoph Schönfeld
Hi, The sections for maps and properties are missing. Is this not documented or not implemented yet? Thanks, Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Solution for Axis/Maven integration

2005-11-10 Thread Christoph Schönfeld
I want to share my solution for the Axis/Maven 2.0 integration. I was able to get both, java2wsdl and wsdl2java, running, using the Ant trick for java2wsdl. I was wrong with the point about the build life cycle. WSDL creation fits very well into it! As long as there is no maven plug-in for java2w

Re: Maven and Axis

2005-11-10 Thread Christoph Schönfeld
I am also dealing with this right now. As far as my research led me, there seems to be only the wsdl2java-maven-plugin. There is no official release of it but you can download the plug-in and build it yourself from http://svn.mojo.codehaus.org/trunk/mojo/wsdl2java-maven-plugin/ You need to rename

Re: [M2] How to control Java source file encoding used by javac

2005-11-10 Thread Christoph Schönfeld
I figured this out myself. Here is the setting I use in the topmost pom.xml of my project. maven-compiler-plugin UTF-8 However, I have one question: Is there any other/better way to do it? Using mvn projecthelp:effective-pom, I f

[M2] How to control Java source file encoding used by javac

2005-11-10 Thread Christoph Schönfeld
Hi, for Maven 1 there was a property to set, maven.compile.encoding. How is that set in Maven 2.0? I tried mvn -Dmaven.compile.encoding=UTF-8 compile, but the build still fails at a file containing UTF-8 characters. Thanks in advance, Christoph

Re: [M2] Warning about invalid POM for JDOM

2005-11-03 Thread Christoph Schönfeld
Thank you for the hint. I fixed it in my local POM file and it works now. Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[M2] Warning about invalid POM for JDOM

2005-11-03 Thread Christoph Schönfeld
I get the following warning: [WARNING] POM for: 'jdom:jdom:pom:1.0' does not appear to be valid. Its will be ignored for artifact resolution. Reason: Parse error reading POM I use the following dependency: jdom jdom 1.0 Is that POM on repo1.maven.org server corrupt? Can I use a differ

Re: [M2] How to make maven include generated sources in build

2005-11-02 Thread Christoph Schönfeld
Nope. :-) You can use it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [M2] How to make maven include generated sources in build

2005-11-02 Thread Christoph Schönfeld
Brett, thank you very much. The patch does what I need. Cheers to the person who wrote these improvements! Keep on going with Maven 2.0 as it really rocks! Yesterday, I started experimenting with it and it's such a breeze, I'm becoming already productive with Maven, converting our hand-written An

[M2] How to make maven include generated sources in build

2005-11-02 Thread Christoph Schönfeld
Hi, I am new to Maven and would like integrate Castor to generate source code from XML Schema files. I found a Castor plug-in for Maven 2.0 at http://svn.mojo.codehaus.org/trunk/mojo/castor-maven-plugin which I built and installed the plug-in in my local maven repository. I have the attached p