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://github.com/RvonMassow/xDoc/blob/master/README.textile
http://maven.apache.org/doxia/references/xdoc-format.html


Cheers,

Jan



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 = app0.child-
container[org.apache.maven.plugins:maven-release-plugin:2.0]
urls[0] = file:/home/jan/.m2/repository/org/apache/maven/plugins/maven-
release-plugin/2.0/maven-release-plugin-2.0.jar
urls[1] = file:/home/jan/.m2/repository/org/apache/maven/release/maven-
release-manager/2.0/maven-release-manager-2.0.jar
urls[2] = file:/home/jan/.m2/repository/org/codehaus/plexus/plexus-
utils/1.5.6/plexus-utils-1.5.6.jar
urls[3] = file:/home/jan/.m2/repository/org/apache/maven/shared/maven-
invoker/2.0.9/maven-invoker-2.0.9.jar
urls[4] = file:/home/jan/.m2/repository/commons-lang/commons-
lang/2.4/commons-lang-2.4.jar
urls[5] = file:/home/jan/.m2/repository/commons-cli/commons-cli/1.0/commons-
cli-1.0.jar
urls[6] = file:/home/jan/.m2/repository/commons-logging/commons-
logging/1.0/commons-logging-1.0.jar
urls[7] = file:/home/jan/.m2/repository/org/apache/maven/scm/maven-scm-
providers-standard/1.3/maven-scm-providers-standard-1.3.pom
urls[8] = file:/home/jan/.m2/repository/org/apache/maven/scm/maven-scm-
provider-accurev/1.3/maven-scm-provider-accurev-1.3.jar
urls[9] = file:/home/jan/.m2/repository/org/apache/maven/scm/maven-scm-
api/1.3/maven-scm-api-1.3.jar
urls[10] = file:/home/jan/.m2/repository/org/apache/maven/scm/maven-scm-
provider-bazaar/1.3/maven-scm-provider-bazaar-1.3.jar
urls[11] = file:/home/jan/.m2/repository/regexp/regexp/1.3/regexp-1.3.jar
urls[12] = file:/home/jan/.m2/repository/org/apache/maven/scm/maven-scm-
provider-clearcase/1.3/maven-scm-provider-clearcase-1.3.jar
urls[13] = file:/home/jan/.m2/repository/org/apache/maven/scm/maven-scm-
provider-cvsexe/1.3/maven-scm-provider-cvsexe-1.3.jar
urls[14] = file:/home/jan/.m2/repository/org/apache/maven/scm/maven-scm-
provider-cvs-commons/1.3/maven-scm-provider-cvs-commons-1.3.jar
urls[15] = file:/home/jan/.m2/repository/org/apache/maven/scm/maven-scm-
provider-cvsjava/1.3/maven-scm-provider-cvsjava-1.3.jar
urls[16] = 
file:/home/jan/.m2/repository/org/netbeans/lib/cvsclient/20060125/cvsclient-20060125.jar
urls[17] = file:/home/jan/.m2/repository/ch/ethz/ganymed/ganymed-
ssh2/build210/ganymed-ssh2-build210.jar
urls[18] = file:/home/jan/.m2/repository/org/apache/maven/scm/maven-scm-
provider-gitexe/1.3/maven-scm-provider-gitexe-1.3.jar
urls[19] = file:/home/jan/.m2/repository/org/apache/maven/scm/maven-scm-
provider-git-commons/1.3/maven-scm-provider-git-commons-1.3.jar
urls[20] = file:/home/jan/.m2/repository/org/apache/maven/scm/maven-scm-
provider-hg/1.3/maven-scm-provider-hg-1.3.jar
urls[21] = file:/home/jan/.m2/repository/org/apache/maven/scm/maven-scm-
provider-perforce/1.3/maven-scm-provider-perforce-1.3.jar
urls[22] = file:/home/jan/.m2/repository/org/apache/maven/scm/maven-scm-
provider-starteam/1.3/maven-scm-provider-starteam-1.3.jar
urls[23] = file:/home/jan/.m2/repository/org/apache/maven/scm/maven-scm-
provider-svnexe/1.3/maven-scm-provider-svnexe-1.3.jar
urls[24] = file:/home/jan/.m2/repository/org/apache/maven/scm/maven-scm-
provider-svn-commons/1.3/maven-scm-provider-svn-commons-1.3.jar
urls[25] = file:/home/jan/.m2/repository/org/apache/maven/scm/maven-scm-
provider-synergy/1.3/maven-scm-provider-synergy-1.3.jar
urls[26] = file:/home/jan/.m2/repository/org/apache/maven/scm/maven-scm-
provider-vss/1.3/maven-scm-provider-vss-1.3.jar
urls[27] = file:/home/jan/.m2/repository/org/apache/maven/scm/maven-scm-
provider-tfs/1.3/maven-scm-provider-tfs-1.3.jar
urls[28] = file:/home/jan/.m2/repository/org/apache/maven/scm/maven-scm-
manager-plexus/1.3/maven-scm-manager-plexus-1.3.jar
urls[29] = file:/home/jan/.m2/repository/org/jdom/jdom/1.1/jdom-1.1.jar
urls[30] = file:/home/jan/.m2/repository/jaxen/jaxen/1.1-beta-8/jaxen-1.1-
beta-8.jar
urls[31] = file:/home/jan/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/usr/share/maven2/lib/maven-debian-uber.jar
[INFO] 

[ERROR] FATAL ERROR
[INFO] 

[INFO] org/jaxen/NamespaceContext
org.jaxen.NamespaceContext
[INFO] 

[INFO] Trace
java.lang.NoClassDefFoundError: org/jaxen/NamespaceContext
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at org.jdom.xpath.XPath.newInstance(XPath.java:134)
at 
org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.getDependencies(AbstractRewritePomsPhase.java:515)
at 
org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.updateDomVersion(AbstractRewritePomsPhase.java:561)
at 

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...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 the old release I want to create the branch 
1.1-SNAPSHOT from the version 1.0.

How can I do this? It is a multi module project and I'd rather not fix all 
versions by hand...

Cheers,

Jan
-- 
From address is valid until 01.06.2010


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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-SNAPSHOT.
It is a a multi module project so version numbers must be changed.

Jan
-- 
From address is valid until 01.06.2010

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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: Create some kind of project-commons artifact and 
depend on it. If many artifacts share the same dependency, there is often 
more redundant code that can be refactored this way and makes the whole code 
cleaner.

Cheers,

Jan



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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:

distributionManagement
repository
idftp/id
urlftp://.../mvn-repository/releases/url
/repository

snapshotRepository
idftp-snaphots/id
nameifgi-ftp (snapshots)/name
urlftp://.../snapshots/url
/snapshotRepository
/distributionManagement

How does maven decide where to upload the artifact to?

Cheers,

Jan



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 jar is already in the Maven dependency in
 Eclipse.
 
 What could be the problem?

AFAIK the eclipse goal does not compile your code thus it shouldn't raise
the error - but I may be wrong. Can you post the relevant lines from
mvn -X -e eclipse:eclipse?

Jan


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



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
 
[INFO] +- commons-jxpath:commons-jxpath:jar:1.2:compile
[INFO] |  +- xerces:xerces:jar:1.2.3:compile
 ^

any ideas how to solve this? I think I need the newer one, can I disable the
xerces:xerces:jar:1.2.3 without changeing the parent-dependency jxpath?

Thank,

Jan


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



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 which you prefers

Jan



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




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 them? They want to access the filesystem so (AFAIK) they have to be
signed, too.


Jan




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



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 still trying to
 download some dependencies from
 central.
 
 Why? Maven has already store them in my local repository.
 How can I solve this or is there a bug?

I had similar problems. Though I enabled the offline mode and resolved my
artifacts from the commandline.

Jan


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



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 !-- jpg files --
 src/resources/styles !-- css files --
 
 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 ):
 
 `-- WEB-INF
  `-- classes
  |-- com
  |   `-- ideal
  |   `-- projects
  |   `-- SampleAction.class
  `-- images
  `-- sampleimage.jpg
  `-- styles
  `-- basic.css
 
 
 Don't you think that's weird?! how can I access files under
 WEB-INF/classes?!
 I tried:  link href=classes/styles/basic.css (eventhough I don't like
 the structure) -
 but this didn't work.

Try
http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html


Jan


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



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


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



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 assembly tag?

The following doesn't work:
plugin
artifactIdmaven-assembly-plugin/artifactId
configuration
assembly
containerDescriptorHandlers

containerDescriptorHandler
bin /

/containerDescriptorHandler
/containerDescriptorHandlers
dependencySets
dependencySet

outputFileNameMapping /

useTransitiveDependencies /
/dependencySet
/dependencySets
componentDescriptors /
/assembly
/configuration
/plugin



[INFO] Error reading assemblies: No assembly descriptors found.


Thanks,

Jan


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



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


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



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 different!)

Jan


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



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 to my classpath at runtime.

Has anyone tried it, yet? If not, will it be worth a try?


Thanks!

Jan


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



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: [EMAIL PROTECTED]



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 executing command for transfer
 
 Exit code 255 - Permission denied (publickey,keyboard-interactive).

You need a publickey without password (or you have to unlock it before with
ssh-add)

PW prompt is unsupported

Jan


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



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
distributionManagement inside our pom.xml

Jan


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



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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]
For additional commands, e-mail: [EMAIL PROTECTED]



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


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



generate jar with exec:java and install it

2008-03-08 Thread Jan Torben Heuer
Hi,

I can generate a jarfile with exec:java

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdexec-maven-plugin/artifactId
executions
execution
goals
goaljava/goal
/goals
/execution
/executions
configuration
mainClasscom.example.test/mainClass
arguments

argumenttarget/final.jar/argument
/arguments
/configuration
/plugin


How can i tell the install-plugin to use this file (final.jar)?

How can i automatically tun the exec:java task?

Jan




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, 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


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



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
packagingpom/.. is specified in dependency's pom-file.

How does maven determine if it is a pom or jar (or war) or whatever? Could
the metadata.xml be wrong?


Here the details:
dependency
groupIdorg.openrdf.elmo/groupId
artifactIdelmo/artifactId
version1.0-SNAPSHOT/version
/dependency

Repository:
http://repo.aduna-software.org/maven2/snapshots/org/openrdf/elmo/elmo/1.0-SNAPSHOT/

metadata:
?xml version=1.0 encoding=UTF-8?

metadata
  groupIdorg.openrdf.elmo/groupId
  artifactIdelmo/artifactId
  version1.0-SNAPSHOT/version
  versioning
snapshot
  buildNumber0/buildNumber
/snapshot
lastUpdated20080303184953/lastUpdated
  /versioning
/metadata



Any ideas? I could specify typepom/type in the dependency, but then the
problem occurs with transitive dependencies...

Jan


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



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
geotools?

Ok, me ;-), so once upon a time when maven was still alpha I wanted to do
exactly the same as you. Geotools is not just a jarfile, no it is a bunch
of jarfiles and I finally gave up because there were always a dependency
missing.

So what I want to tell you is, that you CAN do it without maven, but It is
even more complicated.

Jan

P.S can you configure your client to create a mail without a broken
indentation? Looks wired...

-- 
quote well - get answers


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



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 scoperuntime/scope
 and in A, B is referenced per default with the option
 scopecompile/scope.

Try to completely eliminate the cyclic reference by using an interface in
A, so that you don't need to specifiy a dependency from B to A


Jan


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



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 commands, e-mail: [EMAIL PROTECTED]



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 plugin) and mvn test both ran successfully the test but mvn install
or mvn tomcat:deploy failed.

Avoid test-resources if possible.

Jan


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



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 project is deployed to. (some hidden folder in the
workspace or project I guess). I had a problem when two artifacts had the
same name (common-SNAPSHOT-1.jar - stupid)


Jan


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



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 mvn eclipse:eclipse in the project root before importing.

Jan


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



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


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



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 someone here?

Jan


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



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:

  groupIdorg.codehaus.mojo/groupId
  artifactIdxmlbeans-maven-plugin/artifactId
  executions
  execution
  goals
  goalxmlbeans/goal
  /goals
  /execution
  /executions
inheritedtrue/inherited
configuration
sourceSchemas
sourceSchemaowsALL.xsd/sourceSchema
/sourceSchemas
/configuration

and inherited is from the parent relevant:

  groupIdorg.codehaus.mojo/groupId
  artifactIdxmlbeans-maven-plugin/artifactId
  executions
  execution
  goals
  goalxmlbeans/goal
  /goals
  /execution
  /executions
  inheritedtrue/inherited
  configuration
schemaDirectory
  
${schema.directory}/${project.artifactId}/${project.version}
/schemaDirectory
noPvrtrue/noPvr
outputJar${build.finalName}/outputJar
  /configuration

Below the mvn -x -e xmlbeans:xmlbeans output.

Jan


[DEBUG] Configuring
mojo 'org.codehaus.mojo:xmlbeans-maven-plugin:2.3.0:xmlbeans' --
[DEBUG]   (f) artifactMap = {stax:stax-api=stax:stax-api:jar:1.0.1:compile,
org.apache.xmlbeans:xmlbeans=org.apache.xmlbeans:xmlbeans:jar:2.3.0:compile}
[DEBUG]   (f) catalogLocation
= /home/u/data/svn/xmlbeans/ows/src/main/catalog/resolver-catalog.xml
[DEBUG]   (f) classGenerationDirectory
= /home/u/data/svn/xmlbeans/ows/target/generated-classes/xmlbeans
[DEBUG]   (f) debug = false
[DEBUG]   (f) defaultXmlConfigDir
= /home/u/data/svn/xmlbeans/ows/src/main/xsdconfig
[DEBUG]   (f) download = false
[DEBUG]   (f) generatedSchemaDirectory
= /home/u/data/svn/xmlbeans/ows/target/xmlbeans-xsds
[DEBUG]   (f) jaxb = false
[DEBUG]   (s) localRepository = [local] - file:///home/u/.m2/repository
[DEBUG]   (f) noJavac = false
[DEBUG]   (f) noPvr = true
[DEBUG]   (f) noUpa = false
[DEBUG]   (f) outputJar = /home/u/data/svn/xmlbeans/ows/xbeans-null-1.1.0
[DEBUG]   (s) pluginArtifacts = [xml-resolver:xml-resolver:jar:1.2:runtime,
stax:stax-api:jar:1.0.1:runtime, xmlbeans:xmlbeans:jar:2.3.0:runtime,
org.codehaus.plexus:plexus-utils:jar:1.4.2:runtime,
org.apache.maven:maven-project:jar:2.0.6:runtime,
org.apache.maven:maven-artifact:jar:2.0.6:runtime,
org.apache.maven:maven-artifact-manager:jar:2.0.6:runtime,
org.apache.maven:maven-repository-metadata:jar:2.0.6:runtime,
org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:runtime,
org.apache.maven:maven-plugin-api:jar:2.0.6:runtime,
org.apache.maven:maven-model:jar:2.0.6:runtime,
org.apache.maven:maven-profile:jar:2.0.6:runtime]
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG]   (f) quiet = true
[DEBUG]   (f) schemaDirectory = /home/u/data/_ogcschemas/ows/1.1.0
[DEBUG]   (f) sourceGenerationDirectory
= /home/u/data/svn/xmlbeans/ows/target/generated-sources/xmlbeans
[DEBUG]   (f) sourceSchemas = [owsALL.xsd]
[DEBUG]   (f) staleFile
= /home/u/data/svn/xmlbeans/ows/target/generated-sources/xmlbeans/.staleFlag
[DEBUG]   (f) verbose = false
[DEBUG] -- end configuration --
[INFO] [xmlbeans:xmlbeans]
[DEBUG] The schema Directory is /home/u/data/_ogcschemas/ows/1.1.0
[DEBUG] Artifact count: 2
[DEBUG] looking for artifact schemas.
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] 3
[INFO] 
[DEBUG] Trace
java.lang.ArrayIndexOutOfBoundsException: 3
at
org.codehaus.mojo.xmlbeans.AbstractXmlBeansPlugin.getXsdFiles(AbstractXmlBeansPlugin.java:687)
at
org.codehaus.mojo.xmlbeans.AbstractXmlBeansPlugin.hasSchemas(AbstractXmlBeansPlugin.java:312)
at
org.codehaus.mojo.xmlbeans.AbstractXmlBeansPlugin.execute(AbstractXmlBeansPlugin.java:266)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at

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 that possible ot not?

Jan


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



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 include
 classpath settings for either of its sub projects (common or framework).

I checked out the sources seperately from eclipse. Then I ran
eclipse:eclipse and imported the modules (NOT copied) into the workspace. 

So finally I had one project per sub-module with correct references between
each other. Maybe you try to do it the same way?


Jan


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



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 there is simpler way? Can I nest multi-module-projects?

Or is there a plugin that automatically traverses a directory and builds
each project?

What would you suggest?

Jan 


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



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 modules and parent 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 rather tell maven to traverse the directory and
build everything it finds...

Jan


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



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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: 

org.apache.maven.surefire.booter.SurefireExecutionException:
org/n52/swe/sas/communication/SASCommunicationException; nested exception
is java.lang.NoClassDefFoundError:
org/n52/swe/sas/communication/SASCommunicationException
java.lang.NoClassDefFoundError:
org/n52/swe/sas/communication/SASCommunicationException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getMethod0(Class.java:2670)
at java.lang.Class.getMethod(Class.java:1603)
at
org.apache.maven.surefire.junit.JUnitTestSet.createInstanceFromSuiteMethod(JUnitTestSet.java:176)
at
org.apache.maven.surefire.junit.JUnitTestSet.constructTestObject(JUnitTestSet.java:140)
at
org.apache.maven.surefire.junit.JUnitTestSet.getTestCount(JUnitTestSet.java:247)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:104)
at
org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:150)
at org.apache.maven.surefire.Surefire.run(Surefire.java:111)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)






The class-file is in the target folder. The project is a multi-module
project.

Should a fill a bug report, or did I miss something?

Jan


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



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 PROTECTED]



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 sourcefolder as well.
Or should it?

Jan


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



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 without having them
 declared anywhere in the pom.

 
 This is indeed a problem. That's why the eclipse:eclipse goal is
 supposed to run the lifecycle up to generate-resources first (@execute
 phase=generate-resources), so plugins have a change to add source
 folders. Can you verify that this indeed happens - and that the goal
 to add the source folder is run before generate-resources ?

Yes, the sourcefolder is not added my maven-eclipse-plugin.

Jan


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



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 PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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


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



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 - maven always searched the .jar-file in the repository? Did I
do something wrong?

Jan



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



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-communication-http in ...
[INFO] Copy webapp webResources to ...
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] org.apache.maven.project.MavenProject cannot be cast to
java.lang.String
[INFO] 
[INFO] Trace
java.lang.ClassCastException: org.apache.maven.project.MavenProject cannot
be cast to java.lang.String
at
org.codehaus.plexus.util.InterpolationFilterReader.read(InterpolationFilterReader.java:269)
at
org.codehaus.plexus.util.InterpolationFilterReader.read(InterpolationFilterReader.java:162)
at java.io.Reader.read(Reader.java:123)
at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:212)
at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:200)
at
org.apache.maven.plugin.war.AbstractWarMojo.copyFilteredFile(AbstractWarMojo.java:921)
at
org.apache.maven.plugin.war.AbstractWarMojo.copyResources(AbstractWarMojo.java:415)
at
org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.java:518)
at
org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(AbstractWarMojo.java:347)
at
org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:164)
at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:130)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] 
[INFO] Total time: 8 seconds
[INFO] Finished at: Tue Dec 11 12:05:18 CET 2007
[INFO] Final Memory: 7M/14M
[INFO] 


Is 2.0.2 still beta?

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:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
version2.0/version
configuration
webResources
resource

directorysrc/main/webresources/directory

filteringtrue/filtering
/resource
/webResources
/configuration
 
/plugin

However, the project is a multi-module project. Thus, running it in the
submodule works, but in the parent it expects the resource to be relative
to it's own pom.xml (so module/src/main/webresources, would be correct).

Can I fix it?

Jan


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



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]



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




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



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 project now and split the project into
several modules with dependencies later.

Thanks,

Jan


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



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-mail: [EMAIL PROTECTED]



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 {
public AccessObject1 do();
}

public interface AccessObject1 {

}



 
project-another module (depends project-core)
public TestSomeThing {
DAO dao = new MockDAO();
AccessObject1 ao = new MockAccessObject();
...
}

So where can I put both Mock Objects?

Obviously not in the dao, because testclasses are not dependencies.
So I would end up with a project for each or all MockObjects.

project-dao-mock (depends project-dao)
public class MockAccessObject implements AccessObject1..


This means in turn, that I COULD NOT use the mock objects in the project-dao
(circular dependencies), but I NEED them for my junit tests...

So what? I'm confused ;-)


Jan


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



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/guides/mini/guide-attached-tests.html

Why can't I reference test-classes in other modules?

I have a project with two modules. module1 dependsOn module2:
project
module1
module2

I can reference m2's classes from m1, but NOT m2's testclasses. That is what
I do not understand.

Jan


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



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 project.
Ok, that make sense - although a test-compile should - in my eyes - compile
all classes to another destination.

 If you have shared testing code between two projects, just create a
 third module containig this shared code and declare it as a dependency
 in the two other modules with scopetest/scope or follow the guide
 Wanyne pointed you to and create a test-jar of the testing code in
 module2 and reference that with test scope.

Ok, if it is a library that should provide Mock Objects and
example-request-documents.
Creating a second artifact only for the MockObjects and request-examples is
a bit annoying.

But it seems to be the only soloution, right?

Jan


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



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 elapsed: 0.009 sec
 FAILURE!
Running core.LauncherTest
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.017 sec
 FAILURE!

Results :

Tests in error:
 
testHandleXMLSubscribeDocumentImpl(core.handler.ogcoperations.SubscriptionTest)
  testGetSubscriber(core.handler.ogcoperations.SubscriptionTest)
  testStartup(core.LauncherTest)
[...]

even running maven with mvn -e -X test does not create more output.
I have no idea why this test fails.

How can I get the reason for the fail (assertion error, for example)
Are there known problems with the plugin? Or other cases where the test only
fail in maven but not in the IDE?


Jan



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



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/ but not to the test-sources in /src/test/java? (In other
words: /target/classes and /target/test-classes)

I can access a class in another module, but I cannot access a test-class in
another test-module! (It is a mock-class, i wrote)

How can I fix it?

Jan





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



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 quite useful.

Can m2eclipse handle that, too?

Jan


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



Re: [JETTY PLUGIN]

2007-08-06 Thread Jan Torben Heuer
On Friday 03 August 2007 17:05:50 Craig Ching wrote:

Hallo,


 Maybe I'm wrong about this, but I don't think there would be a way to set
 those in the pom as the jetty plugin runs inside the same JVM that maven
 runs in and I don't know of a way to set those after the JVM has been
 created.  I think you're going to need to find a way (maybe using
 MAVEN_OPTS as you've tried, but I don't know much about that) to invoke the
 java command with your settings.

the xmlbeans:xmlbeans plugin starts another VM and allows to set some memory 
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 do you handle this? It seems to be impossible to tell wtp using
the /target/... folder instead :-(


Jan


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



[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


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



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? I
don't want to copy the directory and manually change the values, I'd like
to generate a developer config.


Thanks,

Jan


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



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.system

I am using:

dependency
  groupIdxmlbeans/groupId
  artifactIdxmlbeans/artifactId
  version2.3.0/version
/dependency


Jan




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



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 packaging
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 PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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


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



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 ...-common package, or pack the Interface in the core?

Jan


pgp55dXrvqx8N.pgp
Description: PGP signature


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? Or doesn't it 
matter? 

I'm a complete maven newbie, so every held is appreciated.

Jan

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