Hello,
Is there any plugin that support hibernate InstrumentTask ?
How to configure the antrun plugin to use it ?
Hi Petar,
You can always run a cmd command from in your java code.
- Runtime.getRuntim().exec(String[] cmdarray);
So your cmdarray could contain:
Index 0: mvn
Index 1: archetype:create
Index 2: -DgroupId=blabla
Index 3: -DartifactId=bla
I guess it works like that.
Haven't tried it
google for maven embedder.
Milos
On 1/30/07, Petar Tahchiev [EMAIL PROTECTED] wrote:
Hi guys,
Is there a way to instantiate a maven project process in the in my java
program? I mean is it possible to do something like this:
public static void main(String[] args) {
MavenProject
On 1/30/07, Manuel Ledesma [EMAIL PROTECTED] wrote:
Benoît Clouet wrote:
I'm trying to extend the maven build lifecycle in order to put an EAR
on a remote server via scp and to run a command to install that EAR on
a remote websphere server in order to test it.
I managed to write a first
Hi,
my 2 cents . don't know the issue but i went to check
what does that instrument task do..
i see no reason why you can't just use maven antrun plugin and execute it...
dont know if this might help... here i configured a custom ant task
(wstools), like this
configuration
tasks
My issue is about building the classpath for the hibernate instrumentTask
using maven dependencies : your sample config uses ${jboss.libdir} to build
the task calsspath. I'd like to set a dependency for the plugin on
hibernate.
Thanks anyway.
2007/1/30, Marco Mistroni [EMAIL PROTECTED]:
Hi,
ah i see, i was betting that that could have been one of the problems
any reasons why the code below does not work using
phaseprocess-classes/phase?
i had to add extra classes 'manually' to classpath because i had problem
with some jboss versions that were screwing up the wstools task.. so i
Nicholas, additional thing
if you make it work, would you mind write a wiki here
http://docs.codehaus.org/display/MAVENUSER/Examples
with your example pom.xml? it might help (me :) or anyone that want to do
same
things later on
regards
marco
On 1/30/07, Marco Mistroni [EMAIL PROTECTED]
Hi
How to build struts application using Maven 1.1?
Can you show me some guidance?
Thanks
Sarav
DISCLAIMER:
---
The contents of this e-mail and any attachment(s) are
maven site is failing with a NPE.I ran it in debug mode and here's
the output :
D:\MAVEN-WORKset MAVEN_OPTS=-Xmx512m -Xms512m -XX:MaxPermSize=512m
+ Error stacktraces are turned on.
Maven version: 2.0.4
[DEBUG] Building Maven user-level plugin registry from: 'D:\Documents
and
On 30/01/07, Milos Kleint [EMAIL PROTECTED] wrote:
google for maven embedder.
Milos
On 1/30/07, Petar Tahchiev [EMAIL PROTECTED] wrote:
Hi guys,
Is there a way to instantiate a maven project process in the in my java
program? I mean is it possible to do something like this:
public
My project is the domain model that has no dependency. This the reason I
want to set hibernate dependency as a plugin dependency.
I tried :
classpath refid=plugin.dependency.classpath/
But this isn't an valid refId
2007/1/30, Marco Mistroni [EMAIL PROTECTED]:
Nicholas, additional thing
if
I found the answer on
http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html
I've updated the wiki
http://docs.codehaus.org/display/MAVENUSER/Howto+instrument+domain+model+classes+using+hibernate
2007/1/30, nicolas de loof [EMAIL PROTECTED]:
My project is the domain model that
Hi
I'm sorry to tell you I am not familiar with maven 1.0,I used maven 2 in
my project,you know,the maven 1 is very different from mven 2,maven 2 is
rewrite by the author base on maven 1, I suggest you to use maven for your
project,and how to use maven 2 to build a project?I did it follow
On 1/16/07, Dmitry Beransky [EMAIL PROTECTED] wrote:
Hi,
Can't figure out what I'm doing wrong. I've set up a project for
building a WebStart app. Copied template.vm from the plugin's svn.
When I run webstart:jnlp goal, I get a zip containing all dependencies
properly signed, but the
In my project , suppose project A is parent for project B.
In such a case, project A packaging should be of type pom.
Then how can i get a jar for project A if needed.
I need the jar to be installed in my local repository.
Do i need to go and change pom.xml each and every time.
--
View this
On 1/16/07, Massimiliano Amato [EMAIL PROTECTED] wrote:
Hello,
I ported my application into maven2 using Webstart plugin and i have the zip
file generated, but i have a couple question
1) I have the zip file produced, is there a way to upload to the ftp site
where my JWS runs automatically or
In my case, there was no parent pom.
My pom.xml contains:
profiles
profile
idmyProfile/id
...
/profile
/profiles
My settings.xml contains:
activeProfiles
activeProfilemyProfile/activeProfile
/activeProfiles
The mvn help:active-profiles command shows: There are
Hi,
I am trying to build a jnlp project with maven 2. I am currently using
mojo's Maven Webstart Plugin.
I have two questions:
1. Should I use this plug in or is there any plug in that can be
configured easily?
2. When I run mvn install webstart:jnlp I get following error:
[INFO] didn't
[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugins::1 for project:
null:maven-javadoc-plugin:maven-plugin:2.0 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
project: org.apache.maven.plugins:maven-plugins:pom:1 from the
repository.
Hi
I am not familiar with maven 1.x.
If you intend to use maven 2 you can use the war plugin
Please see the following link:
http://maven.apache.org/plugins/maven-war-plugin/usage.html
-Original Message-
From: Saravanan Ponnusamy, EAS-Chennai
[mailto:[EMAIL PROTECTED]
Sent:
Hi,
I don't understand why suddenly when I run : mvn site there is no index
file generated. Maven tell me that it's a successfull build but site is
incomplete.
Thanks for help.
Gianfranco OLDANI
+41 78 7330350
www.hortis.ch
www.gfoldani.com
Hi,
Suppose during the build, for example in the packaging phase, I want to
take a class from a jar that my project depend on, how can I do it?
Thanks!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
I will try this. Thanks.
This message (including any attachments) contains confidential information
intended for a specific individual and purpose, and is protected by law. If
you are not the intended recipient, you should delete this message.
Any disclosure, copying, or distribution of
Thanks all, I think antrun is something that I could use in my project.
Happy Mavening,
JayBee
foamdino wrote:
Hi,
Is there any dot net plugin available ?
You may be able to use the antrun plugin to compile C# code via the .net
antlib
Kev
On 1/30/07, Maruf Aytekin [EMAIL PROTECTED] wrote:
Hi,
I am trying to build a jnlp project with maven 2. I am currently using
mojo's Maven Webstart Plugin.
I have two questions:
1. Should I use this plug in or is there any plug in that can be
configured easily?
Can't this plugin be
Folks, I have 3 folders called A, B and C , each folder has pom.xml. B is
depended on A, C is depended on both A and B. What I want is, I should able
to run pom.xml from any folder not like A first then B and then C. Is there
anyway, I can call the depended pom.xml. I can able run in
How to fix dependencies among testing code?
That is, if I have a project B test code that
depends on project A test code.
That is, there is abstract/base testing source
code setup for A that B also uses.
The usual dependency tag (even for test scope)
would link to B/main/java with A/main/java
Put them in a parent folder with a pom of type pom.
List these modules in there and then you can mvn clean install from the
parent and it will build them all in order.
Andy
vojjala wrote:
Folks, I have 3 folders called A, B and C , each folder has pom.xml. B is
depended on A, C is depended
Make a new project (T) and put all of the test code there in compile
scope (src/main/java)
then project A and B can both depend on T in scope test.
Andy
Leo Freitas wrote:
How to fix dependencies among testing code?
That is, if I have a project B test code that
depends on project A test
in red
Jerome Lacoste wrote:
On 1/30/07, Maruf Aytekin [EMAIL PROTECTED] wrote:
Hi,
I am trying to build a jnlp project with maven 2. I am currently using
mojo's Maven Webstart Plugin.
I have two questions:
1. Should I use this plug in or is there any plug in that can be
configured easily?
When it says [INFO] didn't find *artifact *with main class: whicj
artifact does it refer to?
Many Thanks
Maruf
Maruf Aytekin wrote:
in red
Jerome Lacoste wrote:
On 1/30/07, Maruf Aytekin [EMAIL PROTECTED] wrote:
Hi,
I am trying to build a jnlp project with maven 2. I am currently using
My understanding (according to Better Builds with Maven (BBwM) book among
other places) is that by putting the dependency and version in the
dependencyManagement of a parent pom that it is not necessary to put ANY
dependency version of the modules. What I'm trying to do is almost
identical to
I would suggest creating jar A in a subproject rather than in the parent.
On 1/30/07, ritesh_riv [EMAIL PROTECTED] wrote:
In my project , suppose project A is parent for project B.
In such a case, project A packaging should be of type pom.
Then how can i get a jar for project A if needed.
I
I tried to send the whole project zipped up but got rejected as spam. So
here goes - parent, ear pom and war pom (just in case).
On 1/29/07, Patrick Schneider [EMAIL PROTECTED] wrote:
Can you send your parent pom and the ear pom?
On 1/29/07, Andi Anderson [EMAIL PROTECTED] wrote:
did you
What version of Maven are you using?
On 1/30/07, David Jackman [EMAIL PROTECTED] wrote:
In my case, there was no parent pom.
My pom.xml contains:
profiles
profile
idmyProfile/id
...
/profile
/profiles
My settings.xml contains:
activeProfiles
On 1/30/07, Maruf Aytekin [EMAIL PROTECTED] wrote:
When it says [INFO] didn't find *artifact *with main class: whicj
artifact does it refer to?
the one in which your main class is supposed to be.
It should be in the dependencies section of your POM.
Jerome
On 1/30/07, Maruf Aytekin [EMAIL PROTECTED] wrote:
in red
Jerome Lacoste wrote:
On 1/30/07, Maruf Aytekin [EMAIL PROTECTED] wrote:
Hi,
I am trying to build a jnlp project with maven 2. I am currently using
mojo's Maven Webstart Plugin.
I have two questions:
1. Should I use this plug in
Thanks a lot for the quick,
These fodlers already part of the parent, in that way it is working very
fine, i need them run independently instead of running from the top level.
Andrew Williams-5 wrote:
Put them in a parent folder with a pom of type pom.
List these modules in there and
It seems to me that we fixed that some time ago because of a logged issue,
such that only external profiles listed in the activeProfiles section will
be affected. Profiles in the POM are not included in that group.
-j
On 1/30/07, Eric Redmond [EMAIL PROTECTED] wrote:
What version of Maven are
Hi,
I have 2 surefire executions in my POM file, one for the test phase and
one for the integration test phase. What I would like to do is to be able to
skip running the tests for either of the two executions from the command
line by passing a system property. The problem is passing
Hello,
I am packaging a war archive and list dependency in pom file:
dependency
groupIdjavax.servlet/groupId
artifactIdjsp-api/artifactId
version2.0/version
scopeprovided/scope
Hi,
Maven documentation mentions a prepare-package phase on
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.ht
ml
However this phase doesn't seem to exist when running mvn prepare-package. I
get the error:
mvn prepare-package
[INFO] Scanning for
The first question I have is whether or not clovered artifacts are supposed
to be deployed to the remote repo when running mvn clean install deploy? I
do not see these clovered artifacts being deployed and wonder if they should
be.
The reason I ask this is because I am running into a anomoly
What is the intended use of project/build/plugins/plugin/dependencies
as compared to project/dependencies?
One would assume project/build/plugins/plugin/dependencies
are plugin specific in scope; that project/dependencies are
active project wide in scope.
And one would expect that if
I'm using 2.0.4.
-Original Message-
From: John Casey [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 30, 2007 9:46 AM
To: Maven Users List
Subject: Re: Activating a profile with settings.xml
It seems to me that we fixed that some time ago because of a logged issue,
such that only
So, the behavior I'm seeing now is actually correct? If so, the information on
http://maven.apache.org/settings.html will need to change accordingly.
My problem is then how to activate a profile in the POM (it's in the POM
because it lists repositories for distribution management, which can't
Is there a plugin for WebLogic 9.2 version of EJBGen? I found
http://www.codeczar.com/products/maven-ejbgen-plugin/ but not sure if it
supports WebLogic 9.2 and Maven 2.
Thanks.
Naresh
Thanks Dan - this is just what I needed! :-D
How would I configure this plugin to process multiple files? Here's how I
did it with Ant:
native2ascii src=web/WEB-INF/classes
dest=${build.dir}/web/classes
includes=ApplicationResources_zh*.properties
encoding=UTF-8/
Hi
I am using the 1.0-alpha-1 version of the Maven Webstart Plugin. It
works for us, but I have some questions and remarks:
1. It seems odd to have to define the template.vm in src/jnlp and the
resources in src/main/jnlp.
Should the locations not be src/main/jnlp (for template.vm) and src/
I finally got around to implementing SSPI support in the Maven SCM project.
I have successfully tested snapshots of the scm plugin on my local machine.
The changes have been submitted on JIRA as a patch:
http://jira.codehaus.org/browse/SCM-277
~Daniel
-Original Message-
From: Siegmann
Hi gyus,
I hust wanted to ask if anyone knows a maven rdf (Resource Description
Framework) plugin as I didn't find myself.
The problem is that when I use the xml plugin to transform my rdf files to
xdoc ones, I cannot explicitly set the name of the
outputted files(or can I?) and so they get
Hi,
When running a M2 build over a set of modules within a profile within a parent project,
is it possible to cause certain plugin goals to run only once while others run on each
sub-project defined in the profile? What I am attempting to accomplish goes like this:
Step 1: cargo:stop
Step 2:
Hi,
I have a war file which has a dependency on my project, which is a jar. The jar
file itself has a lot of dependencies (like oracle classes.jar). When building
the war file, all I get in the web-inf/lib is what I specified in the war
dependency, which is myproject.jar. However the
Hi Atti,
currently a WAR does not participate in the dependency inheritance
mechanism. What you could do since your WAR depends on a single JAR is
to add the JAR as additional dependency.
This is of course a hack but not too ugly.
Cheers,
Siegfried Goeschl
Attila Ravai wrote:
Hi,
I have
Hi Everyone,
Is there a way to configure the javadoc.exe in the javadoc-plugin, I
have a java.home which is set to java 1.4 and I am using java 1.6 for a
given project. Is there a way to configure this in the pom.xml?
Thanks,
Pratik
-
Some times maven refuses to download new released artifacts. This seems
to occur when the lastUpdated value in the maven-metadata.xml is
similar, that is when the new release occurred soon after a prior
release. However, we haven't been able to pinpoint an exact pattern to
this behavior. In
Paul Edwards wrote:
Hi,
When running a M2 build over a set of modules within a profile within
a parent project, is it possible to cause certain plugin goals to run
only once while others run on each sub-project defined in the profile?
What I am attempting to accomplish goes like this:
Hi,
There was a problem running the cobertura from within Eclipse with the
Maven 2.0 integration, version 0.0.10 and Cobertura 1.7
I can run mvn cobertura:cobertura and it runs. I tried to create a new
m2 - configuration defining the goal cobertura:cobertura for doing the
same, but I got an
Hi Petar,
you could use the maven-antrun-plugin to rename the files (*.rdf =
*.xml) later on.
Cheers,
Siegfried Goeschl
Petar Tahchiev wrote:
Hi gyus,
I hust wanted to ask if anyone knows a maven rdf (Resource Description
Framework) plugin as I didn't find myself.
The problem is that when
On 30/01/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote:
Maven documentation mentions a prepare-package phase on
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.ht
ml
...
Also any plug-in execution bind to that phase never gets executed. Any
ideas?
This was
2.0.4
The version on Maven's homepage (http://maven.apache.org/) is also still
2.0.4.
Bashar
-Original Message-
From: Mark Hobson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 30, 2007 2:42 PM
To: Maven Users List
Subject: Re: prepare-package phase doesn't exist?
On 30/01/07,
Apologies, I should have marked that in the documentation. Actually, it's 2.1+.
On 31/01/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote:
2.0.4
The version on Maven's homepage (http://maven.apache.org/) is also still
2.0.4.
Bashar
-Original Message-
From: Mark Hobson [mailto:[EMAIL
OK, I just saw it on Jira:
http://jira.codehaus.org/browse/MNG-2097?page=com.atlassian.jira.plugin.syst
em.issuetabpanels:comment-tabpanel#action_63375
Bashar
-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 30, 2007 2:52 PM
To: Maven Users List
Yes - currently the repository access is secured by default.
You can either create a user/pass and grant them read access to the
repository in question, or you can do that for the guest user (I
think this will allow it to be used without credentials - if not I
think it should be added).
So I just discovered that if I kick off a build using
mvn -Dmaven.test.skip=true install
then Maven will not even bother compiling the test classes. Is there any
way to force Maven to compile the test classes but not run the tests?
Thanks,
Kevan.
Kevan Dunsmore
Senior
That is not true. Maven will still compile the test classes, but only if
they have changed since the last compilation. To force maven to compile even
if there were no changes run a clean first.
Bashar
-Original Message-
From: Kevan Dunsmore [mailto:[EMAIL PROTECTED]
Sent: Tuesday,
I'm using 2.0.4 with the most recent plugin versions. I'm trying to
configure JBoss 4.0.5 prior to running an integration test from my
build. I'm trying to run the following goals in these phases:
pre-integration-test:
cargo:install
antrun:run
cargo:start
post-integration-test:
Hi,
Did you try multiple executions with a different Id for each execution?
Place one goal in each execution and bind it to the appropriate phase.
Bashar
-Original Message-
From: Crossley, Jim [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 30, 2007 3:59 PM
To: users@maven.apache.org
On 1/30/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote:
That is not true. Maven will still compile the test classes, but only if
they have changed since the last compilation. To force maven to compile even
if there were no changes run a clean first.
Bashar
Doesn't seem to for me...
mvn
Try to add the compile plugin if it isn't there already:
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
/plugin
Bashar
-Original Message-
From: Mark
I have been trying to make a case for our development environment to
switch to using Maven for our build processes, however I am running
into some problems that I would like to see if anyone has answers too
:).
We want to be able to specify which version of which jar we want to
use. I can solve
I would like to create a distribution of my project. I would like the
distribution to include sources, maven files, etc... Extra credit for
zip and gz support!
Can someone point me to a plugin that would come close to this
functionality?
Thanks!
Phillip
defining artifact needed in my project
so I write dependencyManagement in parent pom.xml and so inherted by child
pom.
I am wonded, where does the undefined jar came from??
like the following:
M2_REPO/relaxngDatatype/relaxngDatatype
M2_REPO/icu4j/icu4j/3.2/icu4j-3.2.jar
Have you tried the assembly plugin (maven-assembly-plugin, version 2.2 or
2.2-SNAPSHOT if you want whole project functionality)?
On 1/30/07, Phillip Rhodes [EMAIL PROTECTED] wrote:
I would like to create a distribution of my project. I would like the
distribution to include sources, maven
Phillip,
Have a look at the assembly plugin:
http://maven.apache.org/plugins/maven-assembly-plugin/
In particular, take a look at the predefined descriptors:
http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html
The src descriptor should be what you're looking for.
Firstly, I hope you're not ever running mvn clean install deploy since
mvn clean deploy is sufficient the first one runs the entire install
cycle twice.
Second, according to the Clover Plugin doc (
http://maven.apache.org/plugins/maven-clover-plugin/), one of its stated
features is
The official repository location is http://repo1.maven.org/maven2/ ... check
out the hibernate data there (upgrade to at least maven 2.0.4).
Also: you must set up an in-house repository[1]. This is not really optional
for an enterprise setup... where else can you put your own generated
artifacts
Hi Pratik,
I don't think the javadoc plugin supports this yet. Currently, the
plugin uses the javadoc.exe version
based on the java version you specified in your JAVA_HOME environment
variable.
Btw, there's already an open issue for this feature:
http://jira.codehaus.org/browse/MJAVADOC-98
Hi Rebecca,
Please refer to http://maven.apache.org/pom.html for details about this.
I think there's a brief explanation there (Build Settings -- The
BaseBuild Element Set -- Plugins)
about the difference of those two dependencies elements :-)
Hope this helps!
Thanks,
Deng
Rebecca Searls
Can a pom be used as dependency? If yes, a compile scope will add
it to the classpath. Are maven utilities/plugins designed to ignore pom
files in the classpath? An example of such a pom is here:
Thanks for the reply. I am currently just testing this process out
locally to build a case to use Maven, so I haven't set everything up
yet, but I will take a look at the proxies.
I took a look at the main repository and it seems to have some of the
same issues I had mentioned earlier. I
Hi All,
I am using Maven 1.o.
I there a way to check if the value of a variable is numeric in Maven?
If not is it possible to use Ant call (if any) ?
Quick response is highly appreciated.
Regards,
Nalaka
The problem with Spring being in multiple places etc is really not the
Maven team's fault, but rather the Spring group's responsibility.
Without looking too hard into the details, I'd guess they initially
picked groupId spring, then springframework, then org.spring, and
finally
As for the comment regarding Hibernate, this is again not the Maven
team's fault, but rather entirely Hibernate's fault.
It is entirely the responsibility of the artifact owner to produce
proper poms. If they fail to do so, the users of those artifacts will
suffer (as you've experienced). The
Hi Yuubouna,
These undefined jars that you were saying were probably the transitive
dependencies (dependencies of your dependencies).
For more details about exclusions, please refer to
http://maven.apache.org/pom.html (Pom Relationships -- Dependencies --
Exclusions)
Hope this helps! :-)
Hi,
I have a new project type,
In this type I need to create a zip file that contain both directory
structure from version control and dependency files (e.g. jars/wars...)
(each file should be copied to a specific path - and this should be
configured in the pom.xml file)
It seems that I need to
This compile tests but don't run issue was covered just 2 weeks
ago... Please search the archive before posting next time.
from jp4 [EMAIL PROTECTED]
to users@maven.apache.org
date Jan 15, 2007 11:34 AM
subject Can you compile test cases without running them
Wayne
On 1/30/07, Bashar Abdul
Leo Freitas wrote on Tuesday, January 30, 2007 4:24 PM:
How to fix dependencies among testing code?
That is, if I have a project B test code that
depends on project A test code.
That is, there is abstract/base testing source
code setup for A that B also uses.
The usual dependency tag
Hi,
I think you have met with the same issue with me,I hope the following
configuration can help you:
--builder jar and war--
build
sourceDirectorysrc/main/java/sourceDirectory
testSourceDirectorysrc/test/testSourceDirectory
outputDirectorytarget/classes/outputDirectory
Hi all,
how can I deploy a 3rdPartyPlugIn in my Repo?
I have a maven-xyz-plugin-1.0.jar .
Fredy
Hi
Don't use provided - Use :
optionaltrue/optional
This will add an entry in the claspath section of the meta-inf.xml file, but
not add it to the web-inf/libdirectory
Hermod
-Original Message-
From: Ivan Strohner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 30, 2007 6:15 PM
To:
Please use the MOJO mailing list for comments on a MOJO project plugin.
On 1/30/07, Mark Donszelmann [EMAIL PROTECTED] wrote:
Hi
I am using the 1.0-alpha-1 version of the Maven Webstart Plugin. It
works for us, but I have some questions and remarks:
1. It seems odd to have to define the
93 matches
Mail list logo