Writing site documenation with eclipse

2012-07-16 Thread Jan Torben Heuer
I'm starting to write documentation for my maven project. Which format (apt,xdoc,..?) and which editor is available for eclipse? The documentation is very code-centric so any tool that helps me refering to Class names (and even validates it) would be helpful. Also, xDoc != XDoc, right? https://

Fatal Error in Maven release plugin: java.lang.NoClassDefFoundError: org/jaxen/NamespaceContext

2010-09-16 Thread Jan Torben Heuer
Hi, Any idea what could be the cause of this error when executing 'maven release:prepare' ? [FATAL ERROR] org.apache.maven.plugins.release.PrepareReleaseMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of- date. Check the realms: [FATAL ERROR] Plugin realm =

Re: Release plugin and updating a release with some fixes

2010-05-05 Thread Jan Torben Heuer
Tim O'Brien wrote: > mvn versions:set -DnewVersion=1.1-SNAPSHOT Great and much simpler than I expected ;-) Thanks (to both of you) Jan -- >From address is valid until 01.06.2010 - To unsubscribe, e-mail: users-unsubscr...@ma

Re: Release plugin and updating a release with some fixes

2010-04-30 Thread Jan Torben Heuer
Wendy Smoak wrote: > If you find you need to make a fix, then you can branch from the tag > -- in your case the version number on your branch might be > 1.5.1-SNAPSHOT. How do I create a branch from a tag? I have a: 2.0-SNAPSHOT (current /trunk/) 1.0 /tags/1.0/ and I want to have a /branch/1.1-S

release plugin: Create new SNAPSHOT from release tag?

2010-04-30 Thread Jan Torben Heuer
Hi, Using release:prepare, release:perform I successfully created a tag in svn. I now have to fix some bugs so I thought I should create a new branch from the svn tag. Is this the way to go? So I created from 1.0-SNAPSHOT the svn tag 1.0 and have the working copy 2.0-SNAPSHOT. To fix a bug i th

Re: Is there a way to exclude a inherited dependency?

2009-04-30 Thread Jan Torben Heuer
David Hoffer wrote: > I have a similar use case. In a multi-module build all but two of the > modules have the same base dependency so they are specified in the parent > pom. However I really don't want those dependencies in the two modules, > so how can I exclude them? I'd go another way: Crea

mvn deploy puts snapshots into releases directory

2009-04-28 Thread Jan Torben Heuer
Hi, When I deploy my artifact (version 1.0-SNAPSHOT), maven puts it in the /releases directory although I set up both, repository and snapshotrepository in the parent pom: ftp ftp://.../mvn-repository/releases

Re: Caused by: java.lang.NoClassDefFoundError: javax/activation/MimeTypeParseException

2008-09-01 Thread Jan Torben Heuer
thomas2004 wrote: Hi thomas2004, > I build my project with mvn eclipse:eclipse but I got error: > > Caused by: java.lang.NoClassDefFoundError: > javax/activation/MimeTypeParseException > > I've check the class "javax.activation.MimeTypeParseException.java" is in > "activation-1.1.jar" and this

how to resolve conflicts? (xerces)

2008-07-15 Thread Jan Torben Heuer
Hi, I have a conflict in my classpath, I think it caused by: [INFO] org.n52.swe.sas:sas-muse:war:3.0-SNAPSHOT [INFO] +- muse.osgi-bundles:muse-complete:jar:2.2.0:compile [INFO] | +- muse:muse-util-xml:jar:2.2.0:compile [INFO] | | \- xerces:xercesImpl:jar:2.8.1:compile ^

Re: how to import multi module maven project to eclipse?

2008-05-24 Thread Jan Torben Heuer
oliver.maven wrote: > i want the imported project to be viewed in hierachy structure as one > whole project and each module also can be regarded as one maven project. Eh, maven-eclipse-plugin -> submodules as maven projects m2eclipse -> one hierachical project in eclipse. You have to choose whic

java webstart plugin: sign (one/all) depnendencies?

2008-05-17 Thread Jan Torben Heuer
HI, I generate a webstart application with: mvn org.codehaus.mojo.webstart:webstart-maven-plugin:jnlp I used the example config from: http://coffeebreaks.org/tmp/maven-staging/webstart/site/jnlp-mojos-overview.html How can I tell the plugin to also sign all dependencies - or at minimum one of t

Re: war plugin - images / css

2008-05-13 Thread Jan Torben Heuer
Peter Horlock wrote: > Hi, > > I am using a default maven project layout: > > src/resources/images > src/resources/styles > > using the tomcat plugin which uses the resources plugin, it puts those > files into this war structure: ( > http://maven.apache.org/plugins/maven-war-plugin/usage.html

Re: Bug in m2eclipse 0.9.3?

2008-05-13 Thread Jan Torben Heuer
Sench wrote: > I want to create my project's web site. > After executing site goal maven dowloads some dependencies from central > repo anothers from my Nexus > and all stores in my local repository. > Well site building process is success. > But when I'm trying to build my site second time maven

mvn install: add sources

2008-05-07 Thread Jan Torben Heuer
Hi, can I make "mvn install" to install the sources, too? Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: exclude .svn

2008-05-06 Thread Jan Torben Heuer
Wayne Fay wrote: > I think you must have added /target (or something under it) to SVN. > Remove it and try again. Is it possible that maven automatically puts target to svn:ignore when it creates that diretory (and svn is used) Jan --

Re: collection of dependencies

2008-04-22 Thread Jan Torben Heuer
Wendy Smoak wrote: > http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html > > If that's not quite it, you can write your own assembly descriptor > that does exactly what you need. Where do I have to put the tag? The following doesn't work: maven-a

collection of dependencies

2008-04-20 Thread Jan Torben Heuer
Hi, how can I put all (transitive) dependencies into one directory/zip-file? I tried the assembly plugin, but the "transitive dependencies" descriptor puts everything into one jar - that doesn't work in my case. Thanks, Jan -

maven asembly plugin: merge META-INF

2008-04-16 Thread Jan Torben Heuer
Hi, the asembly plugin creates a (executeable) jar file of my project. I have several concept-plugins that contain a META-INF/foo/bar file. It is a simple java Properties file. Can the assembly-plugin merge all foo/bar files into one big Properties file? (filename is always the same, but keys are

embedded maven engine

2008-04-10 Thread Jan Torben Heuer
Hi, Is it possible to embed the maven engine in a java program? I think of using it as plugin management for an application. I want to define an artifact (my pointing to a pom or giving an "group:artifact:version" string. Then I want maven to resolve, download and add the artifact+dependencies t

licenses report

2008-04-09 Thread Jan Torben Heuer
How can I define my project's license and how can I generate a report of all dependencies includeing their license? (plain text or html preferred) Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Is there a way to deploy project without configuring pom.xml

2008-03-17 Thread Jan Torben Heuer
Néstor Boscán wrote: > Hi > > Is there a way to deploy the project to a remote repository without > configuring distributionManagement inside the pom.xml. Can I do this on > the settings.xml or pass the info on the command? Yes, it works here fine with the settings.xml. we don't have distributi

Re: deployment through tunnel

2008-03-17 Thread Jan Torben Heuer
> Uploading: scpexe://localhost:9006/home/cm/maven/dev/..etcetc > [INFO] > > [ERROR] BUILD ERROR > [INFO] > > [INFO] Error deploying artifact: Error

Re: cocoon / maven 2 newbie question ...

2008-03-13 Thread Jan Torben Heuer
BWS wrote: > I exported JAVA_HOME and viola that did the trick very simply. > I thought It had to be in the pom.xml file. It can't because the pom.xml is read my maven which itself needs java... Jan - To unsubscribe, e-mail: [

Re: generate jar with exec:java and install it

2008-03-09 Thread Jan Torben Heuer
Wayne Fay wrote: > I'd write a proper plugin. Its really simple. Thought about it, but the plugin isn't 100% maven-ized, yet. I want to use exec:java as a workaround until then. Jan - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: generate jar with exec:java and install it

2008-03-08 Thread Jan Torben Heuer
Dennis Lundberg wrote: > Just out of curiosity, why would you want to use exec-maven-plugin to > create a jar-file instead of maven-jar-plugin? Creating java beans from rdf files. Like xmlbeans does it from xsd files. However xmlbeans produces class files and my compiler a jar file. Jan --

generate jar with exec:java and install it

2008-03-08 Thread Jan Torben Heuer
Hi, I can generate a jarfile with exec:java org.codehaus.mojo exec-maven-plugin

Re: Downloading Sources

2008-03-08 Thread Jan Torben Heuer
Alan Gutierrez wrote: > I am able to download sources using ... > > mvn eclipse:eclipse -DdownloadSources=true > > How can I do this without regenerating .classpath and .project ? mvn dependency:resolve -DdownloadSources=true (for example) will keep the eclipse configuration untouched. Jan -

Failed to resolve artifact - jar of pomfile

2008-03-07 Thread Jan Torben Heuer
Hi, I have a project with a dependency to a pom file: But maven always want to download the corresponding jar-file - although pom org.openrdf.elmo elmo 1.0-SNAPSHOT Repository: http://repo.aduna-software.org/maven2/snapshots/org/openrdf/elmo/elmo/1.0-SNAPSHOT/ metadata:

Re: Maven-Geotools

2008-03-05 Thread Jan Torben Heuer
Hi, > Is it a must that we need to use maven to create a geotools > project? > Or is there anyway in which we can use the geotools library > directly? > Its basically to read a shapefile. You should ask this question on a geotools list rather than here. Who knows geotoo

Re: detected reference cycle, but there is no cycle conflict

2008-03-04 Thread Jan Torben Heuer
simim wrote: > but A needs B only for the compilation (because a class from A > extends a class from B) and B needs A only for the runtime > (because B calls an object of the extended class per reflection). > i specified the dependency in B as runtime > and in A, B is referenced per default with t

Re: ftp://ibiblio.org/pub/packages/maven2 wiped out?

2008-03-03 Thread Jan Torben Heuer
Martin Gainty wrote: > both ftp and http sites for maven2 appear 'down' Are there information available? When will maven2 come back? Is there a backup repository? Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

ftp://ibiblio.org/pub/packages/maven2 wiped out?

2008-02-29 Thread Jan Torben Heuer
Hi, There aren't any maven packages on ibilio.org. Is it down for maintenance? Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Setting up relative testpaths

2008-02-24 Thread Jan Torben Heuer
tarjei wrote: > Hi, I got a test that needs to read a file in src/test/resources. How > should I write the test to get the information about the relative path > to that file, either using TestNG or just plain Junit? I got unpredictable results when using test-resources and maven: eclipse (junit p

Re: Eclipse project dependency no set up on WTP project

2008-02-13 Thread Jan Torben Heuer
rmatthews wrote: > When I come to run them (Run As/On a Server) I have classpath problems, > i.e. > class not found. If I change the J2EE Module Dependencies (in the > properties for the project) by ticking the the projects that I have just > imported then all will be fine. check where your proj

RE: Maven2Eclipse with multi-module projects?

2008-02-12 Thread Jan Torben Heuer
Chris Schmidt wrote: > I checkout on the command line, then go to eclipse to import the files > from the repository. I'm currently using Subclipse within the IDE, but > in all honesty don't do much with it at the moment. It works fine here. I suggest to do it that way. No problems, yet. run m

Re: Problem with maven tomcat:deploy

2008-02-11 Thread Jan Torben Heuer
VanIngen, Erik (ESTG) wrote: > Cannot invoke Tomcat manager Embedded error: "Server redirected too many > times (20) I guess, the tomcat is misconfigured. Try the url you supplied in a browser an see what happens. Double-check which url you have to provide to the plugin! Jan --

download sources

2008-02-09 Thread Jan Torben Heuer
Hi, I don't know if I'm doing something wrong, but shouldn't mvn eclipse:eclipse -DdownloadSources=true download and reference the sources in eclipse? Are the sources normally available for libs in the central repository? I mean for example log4j, httpunit, xmlbeans... Does it work for some

maven-xmlbeans-plugin: java.lang.ArrayIndexOutOfBoundsException: 3

2008-01-29 Thread Jan Torben Heuer
Hi, I added the sourceSchema directive to my pom (see earlier posts...). Since then, xmlbeans doesn't compile. Here are the pom.xml configs: org.codehaus.mojo xmlbeans-maven-plugin

maven-xmlbeans-plugin exclude files?

2008-01-28 Thread Jan Torben Heuer
Hi, I try to build xsd schema files with xmlbeans. It works so far, but I have to either exclude the 'Examples' directory or to only include the *.xsd files in the schemaDirectory (not those in subfolders). According to the plugin-description site, there is nothing like in-/exclude, right? Is th

Re: maven-eclipse-plugin and hierachical project layout

2008-01-22 Thread Jan Torben Heuer
geirgp wrote: > > I have 2 projects tied together by a main project which has packaging > "pom" and both the other projects as modules. directory layout is as > ..and .project and .classpath files are generated for each of the > (maven)projects individually The main project's classpath does not

Re: design question: How to easily build a tree of projects?

2008-01-21 Thread Jan Torben Heuer
Wayne Fay wrote: > Make sure you have and tags set up properly. It > should go into each child directory and build all the various projects > in the proper order etc if you build from the top. so I need this bi-directional connection with parent and module. There is not a simpler way? I'd rathe

design question: How to easily build a tree of projects?

2008-01-21 Thread Jan Torben Heuer
Hi, I have a tree of projects which depend on each other and of course its parents. It is a xmlbeans schema tree, but that should not matter. Right now, I have simple projects in the filesystem, but it is very hard to compile or built them, because I have to invoke maven on each project. Is ther

maven replaces @@ with [EMAIL PROTECTED] in resources

2008-01-18 Thread Jan Torben Heuer
Hi, why does maven replace the String @@ in resources with [EMAIL PROTECTED] Is there a documentation of default replacements? ${sas.url} was replaced with http://maven.apache.org. Do I have to expect more surprises? Jan - To u

test successful, tomcat:deploy test fails.

2008-01-16 Thread Jan Torben Heuer
Hi, there is a strange error in my project: mvn test finishes all test as expected. But mvn tomcat:deploy fails: [INFO] Preparing tomcat:deploy [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes

Re: Add source folder

2008-01-07 Thread Jan Torben Heuer
Tom Huybrechts wrote: >> I would say, theoretically, it should. However, to accomplish it >> properly, it would have to execute the given pom and analyze the results >> to see what source folders are being looked at... Afer all, any plugin >> could be jumping in and adding source folders, even wit

Re: Add source folder

2008-01-07 Thread Jan Torben Heuer
Kallin Nagelberg wrote: > I was using this plugin for a bit to add an additional source directory, > but intellij IDEA does not recognize the additional source. I ended up > having to create a new artifact for the second set of sources. eclipse (or the maven-eclipse-plugin) does not add the sourc

Add source folder

2008-01-07 Thread Jan Torben Heuer
How can I add another sourcefolder? (/src/extended/java/) The setting should be recognized by maven-eclipse-plugin and the built process. Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

RE: Eclipse Maven2 Plugin

2007-12-24 Thread Jan Torben Heuer
Hi, > 5) Read http://maven.apache.org/plugins/maven-eclipse-plugin/usage.html afaik is m2eclipse != maven-eclipse-plugin. Jan -- Please try to use a nice quotation your mails and posts - To unsubscribe, e-mail: [EMAIL PROT

Re: Don't kill the messenger

2007-12-20 Thread Jan Torben Heuer
Borut Bolčina wrote: > Anybody saw this post? > > http://fishbowl.pastiche.org/ Its quite polemic: |Tracking down dependencies and sorting out their transitive relationships |is a tricky task Yes, traversing a tree is like magic... JT ---

Re: Adding resources (images/css) to web project

2007-12-17 Thread Jan Torben Heuer
Michael McCallum wrote: > create a war project with just those images css... > > depend apon it from all your other war projects... the war plugin will > cleverly use the image/css war as a base when building... Recently I tried to depend on a war project - but it was not possible to download it

Re: maven-war-plugin webResources - relative path

2007-12-11 Thread Jan Torben Heuer
Stephane Nicoll wrote: > Replace 2.0 by 2.0.2. > > It's a bug and it has been fixed. Sorry, but I still cannot run mvn install from my parent pom. Additionally, when I try to run mvn install from the webapps pom I get: [INFO] [war:war] [INFO] Exploding webapp... [INFO] Assembling webapp sas-c

Re: maven-war-plugin webResources - relative path

2007-12-10 Thread Jan Torben Heuer
Stephane Nicoll wrote: > Replace 2.0 by 2.0.2. > > It's a bug and it has been fixed. Thanks! Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

maven-war-plugin webResources - relative path

2007-12-10 Thread Jan Torben Heuer
Hi, I'm using the following settings to include and filter webresources: org.apache.maven.plugins maven-war-plugin 2.0

junit fails in "install" but not in "test"

2007-11-27 Thread Jan Torben Heuer
Hi, I can test my multimodule-project with mvn test - no problems. However when I run mvn install, it fails. And it fails because resources are not found. What is difference between the two commands, test and install, while testing? Jan --

maven migration - including jars for the build?

2007-11-22 Thread Jan Torben Heuer
Hi, We have a project that I want to migrate to maven, however at the moment it is not possible to convert it completely. Is it possible to define in the pom to: include the source directories: module1/src/ module2/src/ and the jars in /lib/ for the build? Then I could create a jar of the pr

Re: Maven, junit and Mock Classes

2007-11-21 Thread Jan Torben Heuer
Antonio Petrelli wrote: > Mock classes can stay in the src/test/java directory. What's the problem? That directory is not available as dependency. Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Maven, junit and Mock Classes

2007-11-20 Thread Jan Torben Heuer
I have have (again) a design question, where to place "Mock" Classes for junit. Example: project-core (depends project-dao) public TestSomeCoreFunctions { DAO dao = new MockDAO(); ... } project-dao public interface dao { pu

Re: Debugging failed junit-test

2007-10-26 Thread Jan Torben Heuer
Tim Kettler wrote: > They are simply not part of the artifact maven creates for module2. The > artifact maven creates contains just the production code (classes and > resources from 'src/main/*') as no one seriously wants to have their > unit tests packaged alongsite the final deliverable of the

Re: Debugging failed junit-test

2007-10-26 Thread Jan Torben Heuer
Wayne Fay wrote: > I'm not sure that I understand you entirely, but here goes If you > have shared test files, you will need to create a "test-jar" artifact > and add it as a dependency to any projects that need to use it. > > This is documented in a mini-guide: > http://maven.apache.org/guid

Re: Debugging failed junit-test

2007-10-25 Thread Jan Torben Heuer
Jan Torben Heuer wrote: > I have a problem with a junit test that failes when I run "mvn test" - but > it does not fail when I run the test by the eclipse-junit-plugin. Ok, I have another guess: Could it be, that dependencies to other modules are only to sources in /src/main/java

Debugging failes junit test

2007-10-25 Thread Jan Torben Heuer
Hi, I have a problem with a junit test that failes when I run "mvn test" - but it does not fail when I run the test by the eclipse-junit-plugin. My problem ist, that there are no information: [...] Running ogcoperations.SubscriptionTest Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elap

Re: usefullness of the maven-eclipse-plugin

2007-08-20 Thread Jan Torben Heuer
maarten roosendaal wrote: > I was wondering what the use is of the eclipse plugin and mostly when it > is usefull. I know it generates files for Eclipse but why /when would you it detects if modules are available as eclipse project and sets references instead of dependencies. WTP detection is qu

Re: [JETTY PLUGIN]

2007-08-06 Thread Jan Torben Heuer
parameters in the pom. Maybe you can steal the relevant parts of the code and create a patch for the JETTY Plugin. Jan -- Jan Torben HeuerInstitute for Geoinformatics [EMAIL PROTECTED] Robert-Koch-Strasse 26-28 +49 251 83-3196048151 Münster, Germany pgppsrYN2hmXs.pgp Description: PGP signature

[eclipse-wtp] How to handle configfiles with ${parameter}

2007-07-29 Thread Jan Torben Heuer
Hi, i'd like to use ${parameters} in my WEB-INF/web.xml and other configuration files. If I do a mvn tomat:deploy everything is fine, my files are filtered. But I cannot debug my project inside eclipse, because I would need filtered files, however I have ${parameter} expression in this files...

how to handle config-files and developer-config-files "the maven way"?

2007-07-19 Thread Jan Torben Heuer
Hi, I have a servlet project with WEB-INF in /src/main/webapps/. The web.xml contains some ${tomcat.servletpath} like variables which are filtered through maven. This variables are stored in files in /src/main/config/ How should I store a configuration which I can use locally within eclipse?

[maven2][svn] How to handle target directories? maven clean?

2007-07-19 Thread Jan Torben Heuer
Hi, How should I handle the target directories? Normally I include them in subversion, but not the content. The problem ist, that a maven clean cleans the whole directory including the .svn directory, which breaks subversion. How do you handle this? Jan

which xmlbeans lib for the xmlbeans plugin?

2007-07-18 Thread Jan Torben Heuer
Hi, I am compiling my schema files with the current xmlbeans plugin - but which xmlbeans lib do I have to include as dependency in my code? I get this error on startup, so I think i am using the wrong version > Incompatible minor version - expecting up to 23, got 24 > (schemaorg_apache_xmlbeans.

Project summary (web) for different repositories

2007-06-04 Thread Jan Torben Heuer
Hi, We have different svn repositories - is it possible to generate a common project-website for every project in the repository? Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

archetype:create -- define packaging

2007-06-01 Thread Jan Torben Heuer
Hi, for automates project-creating, i'd like to define the parameter, set in a pom when creating submodules. Is that possible? As far as I read the documentation it is not, so why? Jan - To unsubscribe, e-mail: [EMAIL PROTECTE

save mvn parameters in pom

2007-05-31 Thread Jan Torben Heuer
Hi, I have a project with submodules. One of this modules is a tomcat servlet and I'd like to save the -Dwtpversion=1.5 parameter in the pom, if possible, so I can run "mvn eclipse:eclipse" in the root module and have only in my -http module the wtp extension enabled. Is that possible? Jan ---

packaging jar|pom question

2007-05-08 Thread Jan Torben Heuer
I have a product structure like: myapp (pom) myapp-core (jar) myapp-dao (???) myapp-dao-file (jar) myapp-dao-sql (jar) I wanted to pack some Interface in myapp-dao, but I guess I has to be a 'pom' rather than a 'jar' to allow subpackages. So, what is the way to go? Do I have to create a ...-com

Eclipse maven project with WTP enabled

2007-05-07 Thread Jan Torben Heuer
Hi, I followed: http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html to mark my project as a WTP project: mvn -Dwtpversion=1.5 eclipse:eclipse but nothing changed (I cannot deploy my project, nor select a "server"). I did it after creating submodules etc. should I have done it before?