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?
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
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:
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
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
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
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
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
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
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
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
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
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: (
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]
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
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
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
-
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
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
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:
Uploading: scpexe://localhost:9006/home/cm/maven/dev/..etcetc
[INFO]
[ERROR] BUILD ERROR
[INFO]
[INFO] Error deploying artifact: Error
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
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:
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]
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
Hi,
I can generate a jarfile with exec:java
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdexec-maven-plugin/artifactId
executions
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
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
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?
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
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
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]
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 -
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
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
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]
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
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
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,
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 {
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:
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
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
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
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
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
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...
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
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
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
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
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:
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
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
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?
72 matches
Mail list logo