Hi,
have a look at the maven-dependency-plugin and its copy-dependencies
mojo [1]. If the sole purpose of your ant task is to package your module
classes in a jar together with its dependencies you can do this without
ant altogether using the assembly-plugin [2].
-Tim
[1] http://maven.apach
Hello All,
I'm trying to execute "mvn deploy" and getting an error about the "Host
key verification failed". I've tried the instructions in various
threads on this topic but still haven't had any success (see message
below). I can successfully ssh to the remote host w/o a password. I
have
It always so obvious when someone tells you.
That worked great - Thanks Wayne.
Chris
Wayne Fay wrote:
I am assuming Deploy is your EAR project. If so, the file should go in
/src/main/application.
You can see this in the maven-ear-plugin documentation -- look at
"earSourceDirectory".
http://ma
I am assuming Deploy is your EAR project. If so, the file should go in
/src/main/application.
You can see this in the maven-ear-plugin documentation -- look at
"earSourceDirectory".
http://maven.apache.org/plugins/maven-ear-plugin/ear-mojo.html
Wayne
On 8/17/07, Chris Russell <[EMAIL PROTECTED]>
Hi All,
I have a really silly question. Currently I can build my EAR file via
JDeveloper and it deploys and runs just fine.
When I build and deploy via Maven, one file is missing from the EAR
file. This file should be found at the top level of the EAR (i.e. if you
open the EAR with winZip, its
I've seen enough people asking for a M2 Macker plugin in the last few
months/year that I finally decided to go ahead and write one myself.
In my limited testing, it works great, but I am not really a Macker
user so I'll need some feedback from people to improve it.
I will be submitting it to the M
Hi Dan
Most of the reporting in Maven is done by plugins. I your case you need
to add a couple of plugins to you parent pom:
...
org.codehaus.mojo
cobertura-maven-plugin
org.apache.maven.plugins
maven-surefire-report-plugin
Changes that are made to the site.xml file will *not* be picked up by
the site plugin in all cases. You need to do:
mvn clean
mvn site
to get those changes into the generated site.
fuvo wrote:
Hello Wayne and Dennis,
of course, we have our own parent pom which is the parent for all our
pro
OK, I have several dependencies for my jar module like:
com.stc
stc
javax
jms
Now, I have an ant task that is called from my ant-run plugin, that needs to
include those dependencies into its jar archive.
So when
Thank you all!
It's working now! :)
--
View this message in context:
http://www.nabble.com/hibernate3-maven-plugin-not-running-tf4280489s177.html#a12204851
Sent from the Maven - Users mailing list archive at Nabble.com.
-
To
http://jira.codehaus.org/browse/MASSEMBLY-230
On 8/16/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
> Debug it a bit, and let us know. ;-)
>
> Wayne
>
> On 8/16/07, Mick Knutson <[EMAIL PROTECTED]> wrote:
> > After researching this a bit more:
> >
> > THIS DOES NOT WORK:
> >
> >
> >
What do you mean by "version management"? We do use maven to add
specific tags at the end of project.xml with every Build something like
following.
1.0.2
1.0.2
LGB_reFUEL_ServiceOrchestration_DEVGRP_dev_JAVA14_051018_2
1.1
1.1
LGB_reFUEL_ServiceOrchest
Wendy Smoak-3 wrote:
>
> On 8/17/07, Guillaume Bilodeau <[EMAIL PROTECTED]> wrote:
>
>> I am behind no firewall, I have setup no mirrors - this is a clean
>> install.
>> It's obviously a network error as the SocketException shows. Actually,
>> ibiblio.org has a hard time redirecting to mirrors
On 8/17/07, Guillaume Bilodeau <[EMAIL PROTECTED]> wrote:
> I am behind no firewall, I have setup no mirrors - this is a clean install.
> It's obviously a network error as the SocketException shows. Actually,
> ibiblio.org has a hard time redirecting to mirrors.ibiblio.org - takes 1 or
> 2 minute
I'm getting a similar error while trying to setup Maven in a new environment:
*
+ Error stacktraces are turned on.
Maven version: 2.0.7
Java version: 1.6.0_02
OS name: "windows xp" version: "5.1" arch: "x86"
[DEBUG] Building Maven user-level plugin registry from: 'D:\Documents and
Settings\T
The maven/Continuum team is pleased to announce the Continuum 1.1-beta-2 release
Highlights are:
* lot of bug fixes
* Installations/profiles screens improvement
* screen flow improvement in Add Project part
* cancellable builds
You can grab the latest release from:
http://maven.apache.org/cont
On Fri, Aug 17, 2007 at 09:19:12AM -0500, Wayne Fay spake thus:
> I don't use the SAR plugin but I think I understand the error
> message... It looks like your dependencies define the sar as
> jboss-sar without a classifier... and then your EAR
> configuration says jboss-sar without a packaging.
>
If you put it directly in the pom, then you could call "mvn
plugin-name:goal" and it would execute the plugin directly. It should
probably work with profiles as well.
But really, there is nothing stopping you from just having a build.xml
file next to your pom.xml file and then calling ant directly
I don't use the SAR plugin but I think I understand the error
message... It looks like your dependencies define the sar as
jboss-sar without a classifier... and then your EAR
configuration says jboss-sar without a packaging.
I'd assume one of those is wrong. My guess would be to change
to .
Wayn
Hmm. Try the maven-exec-plugin :-)
Manos Batsis wrote:
Farhan Sarwar wrote:
Whats the plugin to use in maven to execute/invoke shell scripts or a
batch file?
Maybe a more appropriate plugin exists but how about antrun and the exec
task?
Cheers,
Manos
---
You could always write a wrapper plugin around the other plugin, and
it could accept parameters and set them as environment properties
prior to calling your real plugin. It might not work, but it wouldn't
be a ton of effort to find out.
Wayne
On 8/16/07, Mohan K <[EMAIL PROTECTED]> wrote:
>
> Wen
Farhan Sarwar wrote:
Whats the plugin to use in maven to execute/invoke shell scripts or a
batch file?
Maybe a more appropriate plugin exists but how about antrun and the exec
task?
Cheers,
Manos
-
To unsubscribe, e-mail:
Hi!
I have a multi-module Maven 2 project that is built with Continuum
(1.1-beta-1). When we add or remove modules to the Maven project
Continuum does not seem to reflect this. Is this how it is supposed to
be? Must I manualle add/remove modules or re-add the parentproject?
If not, what have I d
Hi
I have a multi-part project for building a JBoss J2EE system and the
client. The common, EJB, Web and SAR sub-projects all build nicely.
However the EAR does not build. I get the following:
$ mvn install
[INFO] Scanning for projects...
[INFO] snapshot org.codehaus.mojo:jboss-packaging-
Hello Mathias
you should put it in your resources directory and do something like this in
your applicationContext.xml in your sessionFactory bean:
Regards
Johann Reyes
Hi All,
I'm working in an enterprise which has its own development workflow based on
the SCM Synergy.
In order to work efficiently with this workflow, we need to put in the POM
some variables related to the version number of artifacts according to these
rules :
-- the POM is written once at the st
Also you can run manually the plugin like this:
mvn hibernate3:hbm2ddl
Regards
Johann Reyes
can you run this command and then send the output:
mvn -X hibernate3:hbm2ddl
Regards
Johann Reyes
Thanks for the follow-up Steve, I am still hoping that someone has a
solution to what I want to achieve but at the same time I think what you
have suggested is certainly a good simulation for the same…now am still
trying to configure the pom as you suggested (as below) so that I can
activate/invoke
I just realized that i have to put in a "" tag in order to make it
work, i thought we can still skip it, since we were specifying it anyways on
invoking it from the command line, though am still trying to figure out a
way i can just invoke a plugin-in/goal that is declared/configured in a
pom..
O
Mathis try this:
org.codehaus.mojo
hibernate3-maven-plugin
2.0-alpha-2
hbm2ddl
annotationconfiguration
hbm2hbmxml
src/main/resources
true
true
src/main/resources/hibernate.cfg.xml
schema.sql
Also the phase should be
process-classes
instead of
generate-sources
Your java classes need to be compiled first before they can be added
to the plugin to create the db schema
Regards
Johann Reyes
Hello Mathias
what you need is to remove the runtime scope from your hibernate
dependencies. Just delete the scope line. That is telling maven that you
don't need those jars to compile your classes, just to run it.
For more info about scopes, you can find it here:
http://maven.apache.org/guides/i
Another quick questions folks..
I have got a profile (in a pom) which has a build configured for
maven-ant plugin in it (as below), now my understanding of
plugin/goals configured within a build is that if they are not bind to
phase they would just run independent of the maven build-cycle-phases,
How to associate a default phase with a profile, so that when i
activate/invoke the profile, i dont have to explicitly specify the
phase from the command line...something like "mvn -P someprofile", and
hence the profile is activated within whatever the default phase it is
configured with.
Whats the plugin to use in maven to execute/invoke shell scripts or a
batch file?
Farhan.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Am Donnerstag, 16. August 2007 19:56 schrieb Mathias P.W Nilsson:
> Thanks for you pation but it still doesn't work
>
> I get this for all my classes. I'm using annotations. Worked perfectly when
> I was using ant.
>
this is my pom snippte and it works with
mvn process-resources hibernate3:hb
Am Donnerstag, 16. August 2007 18:48 schrieb Vaidya, Supriya A (US - Chicago):
> Hi:
>
> I have the following situation:
>
> com/mycompany/mypackage/application/ has my class files, while
> com/mycompany/testcases has my test cases (Cactus).
>
> In creating the WAR file, I want to be able to ex
Hi All,
I'm working in an enterprise which has its own development workflow based on
the SCM Synergy.
In order to work efficiently with this workflow, we need to put in the POM some
variables related to the version number of artifacts according to these rules :
-- the POM is written once at the
yup. that's it!
you run this on command line and then attach the netbeans debugger to port 8000.
you cannot set the same options to the build running from netbeans as
it's maven build is running within the same JVM as the IDE itself.
Milos
PS: in future versions of maven support, you can delegat
Well I found this tip for Hudson users...
$ cd main/war
$ export MAVEN_OPTS="-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,address=8000"
$ mvn -o jetty:run
Looks linux, but is there any way to use this with NetBeans/Mavenide+
WinXP?
John
-Original Message-
From: Milos Kleint [mailto:[
On 8/17/07, John Coleman <[EMAIL PROTECTED]> wrote:
> Thanks for that suggestion, not really a slick solution. Would it be
> possible for the plugin to spawn another thread to run jetty in debug,
> then perhaps the debug settings could be put in a jetty config file
> somewhere?
I guess it's as sli
Thanks for that suggestion, not really a slick solution. Would it be
possible for the plugin to spawn another thread to run jetty in debug,
then perhaps the debug settings could be put in a jetty config file
somewhere?
It would be nice not to have to set up jetty somewhere else, as the dev
team ha
John Coleman wrote:
There's documentation for "Debugging with the Maven Jetty Plugin in
Eclipse", but does such exist for NetBeans? Anyone know how to do this
if not?
run the jetty plugin externally (not with the embedded version of maven
in netbeans, but in different jvm) with the proper
Thanks for cross-checking this. And to my knowledge, all Maven artefacts
uploaded to Codehaus Maven repository will be synced to public Maven repos.
Werner
Jörg Schaible wrote:
> Werner Guttmann wrote on Friday, August 17, 2007 10:15 AM:
>
>> Hi,
>>
>> I am not 100% sure, but it could be that s
Nicolas,
the binaries in http://dist.codehaus.org/castor/ definitely have not
been built using Maven, but using Ant. And as far as I remember, there's
still an open issue with the use of source/target attributes in the Ant
build file(s).
Werner
nicolas de loof wrote:
> The maven pom for castor s
Just go up one directory from the maven-release-plugin svn URL you
specified :)
-Deng
Michael Meyer wrote:
Hi
I've checked out the latest sources of the maven-release-plugin from
http://svn.apache.org/repos/asf/maven/release/trunk/maven-release-plugin
I tried loading the sources into eclips
For the OP: you can also find an example using ejbdoclet
(xdoclet-maven-plugin) at the bottom of [1]. Generates local and remote
interfaces, as well as util objects.
[1]
http://fisheye1.cenqua.com/browse/~raw,r=1.3/md4j/md4j-quickstarter-ejb/pom.xml
Cheers,
Manos
---
There's documentation for "Debugging with the Maven Jetty Plugin in
Eclipse", but does such exist for NetBeans? Anyone know how to do this
if not?
TIA
John
Eurobase International Limited and its subsidiaries (Eurobase) are unable to
exercise control over the content of information in E-Mail
Just for the reference:
http://jira.codehaus.org/browse/MCOMPILER-57
-Gisbert
Mathias P.W Nilsson wrote:
I get this error message when I run "mvn compile"
annotations are not supported in -source 1.3
(try -source 1.5 to enable annotations)
How is that? When I check "java -version" I get
jav
Hi All,
I'm working in an enterprise which has its own development workflow based on
the SCM Synergy.
In order to work efficiently with this workflow, we need to put in the POM some
variables related to the version number of artifacts according to these rules :
-- the POM is written once at the
Werner Guttmann wrote on Friday, August 17, 2007 10:15 AM:
> Hi,
>
> I am not 100% sure, but it could be that somebody uploaded
> these JARs to
> the ibiblio repos manually, as we (the Castor team) switched to Maven
> uploads slightly later.
Since they are available on Castor's repo at Codehaus
The maven pom for castor set the compiler plugin for 1.4.
According to CASTOR-1485, 1.0.4+ should be java 1.3 compliant.
The maven config has been updated to configure compiler for 1.3 in
castor-1.1.pom
Seems the binaries in http://dist.codehaus.org/castor/ have not been built
using maven.
2007
Hi
I've checked out the latest sources of the maven-release-plugin from
http://svn.apache.org/repos/asf/maven/release/trunk/maven-release-plugin
I tried loading the sources into eclipse by executing eclipse:eclipse on
the project. The error message I get is:
[INFO] Failed to resolve artifact
Thanks for these tips I now have it working just right. The method as follows...
com.eurobase
common-wac
1.3-SNAPSHOT
provided
jar
I have to mark the dependency as "provided", so the jar is not left in /lib -
to me thi
Hi,
I am not 100% sure, but it could be that somebody uploaded these JARs to
the ibiblio repos manually, as we (the Castor team) switched to Maven
uploads slightly later.
Regards
Werner
Castor, committer
Jörg Schaible wrote:
> nicolas de loof wrote on Friday, August 17, 2007 9:20 AM:
>
>> I've
nicolas de loof wrote on Friday, August 17, 2007 9:20 AM:
> I've got an issue with castor jar :
>
> artifacts from http://dist.codehaus.org/castor/1.0.4/ are compiled
> for 1.3, and the ones published at
> http://repo1.maven.org/maven2/org/codehaus/castor/castor/1.0.4 /
> require java
> 1.4
>
>
I've got an issue with castor jar :
artifacts from http://dist.codehaus.org/castor/1.0.4/ are compiled for 1.3,
and the ones published at
http://repo1.maven.org/maven2/org/codehaus/castor/castor/1.0.4/ require java
1.4
Jars are not the same. What's wrong ?
Who published those jars ? Where do they
58 matches
Mail list logo