deploy:deploy-file deploys single file. I need to deploy all modules.
MALICE wrote:
This means that you have a non-standard packaging... I guess...
Try deploy:deploy-file. Not the prefered solution (imo), but it should
work.
Oh, check the parameters it needs though!
On Monday 12
Witam!
On Tue, 13 Oct 2009 07:56:07 +0200
Anders Hammar and...@hammar.net wrote:
For any Swedes out there, there will be a Maven meetup on Nov 5 in
Stockholm, Sweden. Jason van Zyl and Dennis Lundberg will be speaking:
* Maven Reloaded (Jason)
* Site creation with Maven (Dennis)
* Next
Hi,
I could not find the exact answer to this question. But if your need is to
use a class of one of your dependency, you can reference the
maven.compile.classpath property as in :
taskdef name=xmlbean classname=org.apache.xmlbeans.impl.tool.XMLBean
classpathref=maven.compile.classpath/
This
I'll see what I can do. Traditionally we've been not so good at that on JUG
level, but it has often been the presenters doing this on their sites.
Jason's Maven 3 presentation is available already at several places.
Dennis's presentations is brand new, I think, so I'll talk to him to put
that
Does anyone know a way to see the output of unit tests while they are
running via 'mvn test'? It would be much quicker to troubleshoot a test
rather than tracking down the SureFire reports each time.
Thanks.
- Jonathan
-
To
Hi,
The jira report generated by the plugin have encoding problems.(for turkish
characters in my case) Is there a way to change encoding for maven changes
report plugin?
Thanks,
Caner
Agreed with Jason ...
Migration to maven 2.0.10 was really impacting for us, since super POM
artefacts was upgraded (especially surefire plugin to 2.4.3 which implied
failures in our tests because system properties are no longer
Hi,
Thanks for the reply.
The phases can also vary depending on the artifact type. For example, the
phases of a WAR
type project is different from a JAR type.
I have no idea if Maven supplies an API that we could use, in a plugin, to get
all this info.
All this info, or almost, is available
Anyone? :-)
-Ursprüngliche Nachricht-
Von: Lewis, Eric [mailto:eric.le...@ipi.ch]
Gesendet: Freitag, 9. Oktober 2009 18:03
An: Maven Users List
Betreff: Including dependencies with assembly plugin: Scope problem
Hi
I'm trying to include all the runtime dependencies with an
Hi guys,
I'm new to Maven. I have this problem that I created a Maven project in
netbeans, added dependencies, and build it successfully, it runs in Netbeans
as well. but if I try to build it from the command prompt using mvn install,
it build the whole staff, but when I try to run the jar file,
What kind of project are you talking about? Is it a pure Java project or does
it run inside glassfish (for example)? What class files are missing? How does
the stacktrace look like?
Try to add the missing artifacts to the pom.
-Ursprüngliche Nachricht-
Von: jamborta
Hi Tom
The easiest way is to use the appassembler plugin.
Best regards,
Eric
-Ursprüngliche Nachricht-
Von: jamborta [mailto:jambo...@gmail.com]
Gesendet: Dienstag, 13. Oktober 2009 11:23
An: users@maven.apache.org
Betreff: Running Jar file created by Maven
Hi guys,
I'm
it's a pure java project. and it runs OK inside netbeans. I get a
NoClassDefFoundError if try to run it from the command line:
Exception in thread main java.lang.NoClassDefFoundError:
cern/colt/function/In
tObjectProcedure
at com.main.App.main(App.java:36)
Caused by:
Hello,
Apologize if you already knew, but the Help plugin has a describe goal that
will list the available goals (among other things) for a specific plugin. I
know it's not exactly what you are looking for, but maybe it can still provide
some help?
How do you run the jar file? (outside netbeans).
with java -jar ?
If you do so, the jar files need to be included in the resulting jar file, or
you have to add it to the classpath, via -cp ...
-Ursprüngliche Nachricht-
Von: jamborta [mailto:jambo...@gmail.com]
Gesendet:
Have a look here:
http://maven.apache.org/shared/maven-archiver/examples/classpath.html
-Ursprüngliche Nachricht-
Von: Entner Harald [mailto:entner.har...@afb.de]
Gesendet: Dienstag, 13. Oktober 2009 11:50
An: Maven Users List
Betreff: AW: AW: Running Jar file created by Maven
How do
If it's really a standalone app, you can also use the maven-shade-plugin [1]
for creating an 'uber-jar' which contains all the dependencies.
LieGrue,
strub
[1] http://maven.apache.org/plugins/maven-shade-plugin/
--- On Tue, 10/13/09, Entner Harald entner.har...@afb.de wrote:
From: Entner
Witam!
On Tue, 13 Oct 2009 09:33:57 +0200
Anders Hammar and...@hammar.net wrote:
I'll see what I can do. Traditionally we've been not so good at that
on JUG level, but it has often been the presenters doing this on
their sites. Jason's Maven 3 presentation is available already at
several
yes, i run with java -jar
but when I run mvn install, I can see that it downloads all the
dependencies. i thought it takes care of that automatically.
Entner Harald wrote:
How do you run the jar file? (outside netbeans).
with java -jar ?
If you do so, the jar files need to be
Hi all,
Do you know how I can call a maven plugin from command line and run a
specific execution by defining its id?
Something like: mvn clean prefix:goal:execution-id-1 deploy
prefix:goal:execution-id-2
This invocation is supposed to run the plugins in the following order:
1. clean
2.
No, it does not. It actually knows, which libraries are included and where they
are (this includes also transitive dependencies.) but when you run java -jar
only the generated jar is on the classpath, not the maven repository. So you
have to tell maven, to include these artifacts inside the
thanks a lot. it works now. :)
Entner Harald wrote:
No, it does not. It actually knows, which libraries are included and where
they are (this includes also transitive dependencies.) but when you run
java -jar only the generated jar is on the classpath, not the maven
repository. So you
Passing the property -Dsurefire.useFile=false should do the trick.
On 10/12/09, Komorek, Jonathan jkomo...@booksurge.com wrote:
Does anyone know a way to see the output of unit tests while they are
running via 'mvn test'? It would be much quicker to troubleshoot a test
rather than tracking
So you want to change Maven build lifecycle without binding goals to
predefined phases?
2009/10/13 kkarad kka...@gmail.com
Hi all,
Do you know how I can call a maven plugin from command line and run a
specific execution by defining its id?
Something like: mvn clean
Yes, the prefix:goal is not bound to a phase
Alexander-129 wrote:
So you want to change Maven build lifecycle without binding goals to
predefined phases?
2009/10/13 kkarad kka...@gmail.com
Hi all,
Do you know how I can call a maven plugin from command line and run a
specific
Hi,
Sorry to wake up this thread.
Did someone try the patch of freehep-nar plugin I sent ?
Best regards,
Vincent
Le 10 août 2009 à 13:58, Jan Wedel a écrit :
Hi there!
I already searched google for some help but it seems that it's not
really common to use Maven for non-Java projects.
but if I try to build it from the command prompt using mvn
install,
it build the whole staff, but when I try to run the jar file, it just
fails
becuase it cannot find the library files (dependencies), looks like
maven
doesn't add those files, although it downloads them...
[Marcin Kwapisz]
Hi
I am working on the maven-nar-plugin (follow up of my freehep-nar-
plugin).
Moving things as we speak and reorganizing where I left off 2 years
ago.
End of this week, or beginning next I will publish some pointers. Of
course you
could try to google them now if you want...
Regards
http://code.google.com/p/onejar-maven-plugin/
http://anydoby.com/fatjar/
Regards,
Stevo.
On Tue, Oct 13, 2009 at 2:03 PM, Marcin Kwapisz mkwap...@zsk.p.lodz.plwrote:
but if I try to build it from the command prompt using mvn
install,
it build the whole staff, but when I try to run the
I wanted to give you an update as to where I am with this as what you
included seems exactly like my problem. However, when I included the
plugins directive in the project.xml from where I build my webapp,
build
plugins
plugin
artifactIdmaven-war-plugin/artifactId
I would also love to hear how to do this. I've asked on the mailing list
and #maven before but I've never found out a way of doing it.
2009/10/13 kkarad kka...@gmail.com
Yes, the prefix:goal is not bound to a phase
Alexander-129 wrote:
So you want to change Maven build lifecycle
You have to wrap plugins in pluginManagement. The examples in the
documentation doesn't seem to mention this either, so it's a common
mistake for me as well. Ex:
build
pluginManagement
plugins
plugin
.
/plugin
It's not possible. Executions are for binding to the lifecycle.
The best way to achieve what you are doing is to put execution ID1
somewhere in the lifecycle before deploy, and ID2 in the deploy phase,
then run mvn clean deploy.
If they need to be optional, use a profile and run mvn
You are mixing up the maven 2 pom with maven 1's project.xml, the maven 1 model
description is here:
http://maven.apache.org/maven-1.x/reference/maven-model/3.0.2/maven.html
In maven 1 you don't specify the plugins in the build section of your pom, you
either install them with 'maven
I did as you suggested, but got the parse error ...
maven war:war
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.1
---
Error parsing project.xml
So you need to define a dependency for each one of these individual
spring artifacts in your build in order to override the version.
-Original Message-
From: Wim Deblauwe [mailto:wim.debla...@gmail.com]
Sent: Monday, October 12, 2009 5:11 AM
To: Maven Users List; jeffma...@jeffmaury.com
Thanks. I'm getting closer. I now have this in my dependency list ...
dependency
groupIdmaven-war-plugin/groupId
artifactIdmaven-war-plugin/artifactId
version1.6.3/version
typeplugin/type
configuration
attachClassestrue/attachClasses
How did you create the following artifact?
dependency
groupIdorg.springframework/groupId
artifactIdspring/artifactId
version2.5.6/version
/dependency
If it's from your own pom, how about changing the POM and make it
Is there any Api to show the compilation errors/warning in a web page.
You should just use Hudson or another continuous integration server
with Maven2 support.
Wayne
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
Always nice to have choices.
Now, which one is better, the onejar-maven-plugin or fatjar?
On Tue, Oct 13, 2009 at 7:15 AM, Stevo Slavić ssla...@gmail.com wrote:
http://code.google.com/p/onejar-maven-plugin/
http://anydoby.com/fatjar/
Regards,
Stevo.
On Tue, Oct 13, 2009 at 2:03 PM, Marcin
java.lang.AbstractMethodError:
java.lang.Throwable.getMessage()Ljava/lang/String;
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:353)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
This 'just started
Hello everyone I am new to the maven archetype programming but I ran
instantly into a problem.
I have a custom archetype which should generate some java code
the java file has something like public static String ${myvar}
and I try to generate the code from the artefact via mvn
I'd use the maven-shade-plugin because a) it's a maven-core-plugin and as such
it's pretty well maintained b) it can also 'shade' concurring jars into
different packages if there are some dependency problems.
LieGrue,
strub
--- On Tue, 10/13/09, Albert Kurucz albert.kur...@gmail.com wrote:
I would stick with the following maven-jar-plugin/maven-dependency-plugin combo
(also core plugins):
build
plugins
plugin
artifactIdmaven-jar-plugin/artifactId
configuration
archive
Thanks a lot for the definitive answer Brett.
2009/10/13 Brett Porter br...@apache.org
It's not possible. Executions are for binding to the lifecycle.
The best way to achieve what you are doing is to put execution ID1
somewhere in the lifecycle before deploy, and ID2 in the deploy phase,
The Spring project produces a complete spring artifact and component artifacts.
For projects that use most or all of the components it's sometimes easier to
use the former artifact.
-Original Message-
From: Quintin Beukes [mailto:quin...@skywalk.co.za]
Sent: Tuesday, October 13, 2009
I see. That's not good at all. There is no way to provide
dependencies which have a different artifact id.
Any reason why you depend on this one?
Quintin Beukes
On Tue, Oct 13, 2009 at 6:58 PM, Jamie Whitehouse
basil.whiteho...@genesyslab.com wrote:
The Spring project produces a complete
Did you perhaps switch JDK version?
Quintin Beukes
On Tue, Oct 13, 2009 at 5:37 PM, Benson Margulies bimargul...@gmail.com wrote:
java.lang.AbstractMethodError:
java.lang.Throwable.getMessage()Ljava/lang/String;
at
I don't think so.
I'm on MacOS. The default JVM / JDK is 1.6. I don't have a JAVA_HOME
environment setting.
On Tue, Oct 13, 2009 at 1:13 PM, Quintin Beukes quin...@skywalk.co.zawrote:
Did you perhaps switch JDK version?
Quintin Beukes
On Tue, Oct 13, 2009 at 5:37 PM, Benson Margulies
I don't, but Wim Deblauwe does who originally asked the question. My
suggestion was aside from what he required in their own builds, to also define
dependencies for each of the Spring components at the same version that they
need to reduce the different Spring versions.
There's a Maven
It seems the line causing this error is:
throw new SurefireExecutionException(
e.getTargetException().getMessage(), e.getTargetException() );
Frankly, I don't see how the target exception can have an abstract
method at all. According to the docs an AbstractMethodError only
happens
Hi all,
I have added some system (local) dependencies to my project, and they show
up in netbeans under libraries and compiles, but when I try to run the
project (from netbeans) I get java.lang.NoClassDefFoundError.
I moved everyting to a conventional java project in netbeans and it runs
Which one is better?
maven-jar-plugin/maven-dependency-plugin
maven-shade-plugin
onejar-maven-plugin
fatjar
Why is that choice better than the other solutions?
Is the one which is well maintained always the better choice?
How do you define the well maintained-ness?
Just because it is debugged
Wim-
I'm pretty sure Spring won't be doing this for 3.x, so you might want to go
ahead and migrate to the discreet artifacts now.
Justin
-Original Message-
From: Jamie Whitehouse [mailto:basil.whiteho...@genesyslab.com]
Sent: Tuesday, October 13, 2009 12:59 PM
To: Maven Users List
I have been struggling with the Skinny War issue. The problem is that you
have to manually track your libraries in each war, then go through your ear
to get the libraries working. This is the anti-thesis of what Maven is
suppose to be doing.
I understand the complexities of the issue. When a
Hi,
ok, thanks for the input everybody!
regards,
Wim
2009/10/13 Edelson, Justin justin.edel...@mtvstaff.com
Wim-
I'm pretty sure Spring won't be doing this for 3.x, so you might want to go
ahead and migrate to the discreet artifacts now.
Justin
-Original Message-
From: Jamie
Just tried shade plugin,
thishttp://www.thekua.com/atwork/2008/10/generating-a-single-fat-jar-artifact-from-maven/assembly
plugin usage example, jar - maven-dependency-plugin combination,
and fatjar - they all seem to do same thing, and it's not enough in some
cases. Some libraries depend on their
I have added some system (local) dependencies to my project, and they show
up in netbeans under libraries and the project compiles, but when I try to
run the project (from netbeans) I get java.lang.NoClassDefFoundError.
Don't use system scope. Use install-file to add the jar to your local
repo
One other clue. Changing fork-mode to always makes this go away, entirely.
I've got several spring-configured tests in here. Could I be getting
conflicting versions of something? If so, how would I track down what?
On Tue, Oct 13, 2009 at 1:36 PM, Quintin Beukes quin...@skywalk.co.zawrote:
It
thanks. it works this way.
Wayne Fay wrote:
I have added some system (local) dependencies to my project, and they
show
up in netbeans under libraries and the project compiles, but when I try
to
run the project (from netbeans) I get java.lang.NoClassDefFoundError.
Don't use system
David Weintraub wrote:
I have been struggling with the Skinny War issue. The problem is that you
have to manually track your libraries in each war, then go through your
ear to get the libraries working. This is the anti-thesis of what Maven is
suppose to be doing.
I understand the
Hi,
We are using M2.2 and Emma plugin to report coverage. I want to exlcude
certain packages from code coverage using emma-maven plugin. I dont want to
use CLI. This doesnt seem to work. Any suggestions ?
I still see coverage reported for com.abc.t3.db ?
plugin
Seems shade plugin can have it's conflict resolution customized -
herehttp://jira.codehaus.org/browse/MSHADE-43?focusedCommentId=164742page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_164742is
solution for appending spring metadata. +1 for shade plugin features,
-1
On Tue, Oct 13, 2009 at 5:13 PM, Jörg Schaible joerg.schai...@gmx.dewrote:
David Weintraub wrote:
Too complicated, especially since you skip Maven's dependency version
resolution by this directory where you collect the wars.
I don't see how I skip the dependency version resolution. The wars
Hi guys,
Is there a command that shows me the latest version of an Maven
Plugin? (if I specify the artifact and group id in the command line
argument)
--
Kind Regards,
Ren
-
To unsubscribe, e-mail:
Is there a command that shows me the latest version of an Maven
Plugin? (if I specify the artifact and group id in the command line
argument)
http://repo2.maven.org/maven2/org/apache/maven/plugins/
click the plugin name to see versions deployed to Central
There may be a CLI command to do this
I am new to the Java, Maven, etc. I just downloaded and installed Maven.
Followed all their instructions.
I can not run any goal including mvn clean, or mvn anything. Pl. find the
following stack trace. Any help will be greatly appreciated.
My OS is XP (SP2). I tried 2 More newer versions
Do you have a proxy that you must use to get to the Internet for browsing?
Something is blocking you from downloading the various plugins that
Maven requires to run.
KDLS wrote:
I am new to the Java, Maven, etc. I just downloaded and installed Maven.
Followed all their instructions.
I can
http://mojo.codehaus.org/versions-maven-plugin/display-plugin-updates-mojo.html
will tell you if there are newer versions of any plugin used in your
project. Not exactly what your asking about, but maybe what you're really
looking for?
/Anders
On Wed, Oct 14, 2009 at 01:16, Ren rens...@gmail.com
Thanks guys.
When I was reading a maven plugin documentation, I often want to know
if this documentation is written for the latest version. In the plugin
documentation is usually provides an code example. I want to take the
version number(e.g. 0.95a) in the code example and ask: Is this the
latest
Ok, when I want to check an artifact (version for instance) I normally use
Sonatype's public instance of Nexus at
http://repository.sonatype.org/
and do a search. Just takes a few seconds and it is independent on your own
environment setup (very handy when you use many different computers as I
71 matches
Mail list logo