Hi tom,
unfortunalty svn doesn't support LockMod, infact i get the following message
[WARNING] Provider svn does not support edit operation.
In any case lock mode doesn't resolve my problem. In fact this flag lock
files only during release phase. My problem instead is to TAG the revision
that
Allan, Franz,
On 1/17/07, franz see [EMAIL PROTECTED] wrote:
For more information about Maven Properties, please see [1].
[1] http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide
allan ramirez wrote:
Have you tried using ${plugin.artifacts} expression?
Thanks for the tips,
Hmm. Answering my own question, it looks like ${plugin.artifactMap}
might do the trick. Let me report back after I've had a chance to try
it out.
Lasse
On 1/17/07, Lasse Koskela [EMAIL PROTECTED] wrote:
Allan, Franz,
On 1/17/07, franz see [EMAIL PROTECTED] wrote:
For more information about
Hi,
I'm want to write my own plugin to build my company's project.
Now I'm following the Your First Plugin Totorial on
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
.
I've installed the hello-maven-plugin in my local repository.
Now I want to run this plugin
[EMAIL PROTECTED] writes:
Hi,
could you please post the pom ?
--
OQube software engineering \ génie logiciel
Arnaud Bailly, Dr.
\web http://www.oqube.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Also make sure you have the following mojo property set
@requiresDependencyResolution compile
That will populate ${plugin.artifacts}
/Niels
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
On 1/17/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi,
I'm want to write my own plugin to build my company's project.
Now I'm following the Your First Plugin Totorial on
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
.
I've installed the hello-maven-plugin in
Hi,
I added scm into my pom.xml:
scm
connectionscm:cvs:ext:[EMAIL PROTECTED]:/home/cvsroot:maven_itms/connection
developerConnectionscm:cvs:ext:[EMAIL
PROTECTED]:/home/cvsroot:maven_itms/developerConnection
urlhttp://10.10.202.22/maven/code/url
/scm
And I runnde mvn scm:checkin
Good day,
I am not familiar with the plugin. But if it's groupId is not
org.apache.maven.plugins, then you may want to specify the groupId in your
settings.xml ( see [1] ).
For example, if it's groupId is directory, add the following in your
settings.xml
settings
...
pluginGroups
Hi
When you checkin you need to supply a message to be associated with it. Add a
configuration to the plugin and supply the message either there or from the
command line.
See: http://maven.apache.org/scm/plugins/checkin-mojo.html
Hermod
-Original Message-
From: fy [mailto:[EMAIL
Good day to you, Ole,
Try adding that as a parameter.
public class MyMojo ...
{
/**
* @parameter default-value=${basedir}
*/
private File baseDirectory;
...
}
Cheers,
Franz
Ole wrote:
Hi,
Anyone know what the best
way of getting the base path
for a mojo
Good day,
Yes allan, you are correct. A binary with a certain artifact key (
groupId:artifactId:version ) should be the same no matter from what
repository it came from.
If you have binaries with the same same artifact key, you may want to rename
one of them ( i.e. by changing the version ).
Hi,
I am interested in a method to avoid unnecessary work of lifecycle
phases if some defined criteria are met.
By 'unnecessary work' I mean not only the compilation of sources
(which javac seem to handle well enough), but also testing, packaging
(and possibly some cargo goals).
My first idea
Hi everyone
I am trying to setup subversion integration with maven. I am trying
understand the documentation on SCM plugins website, but it is not quite
makin sense to me. This could be because of my lack of knowledge of maven!
So if anyone has a good article that I can refer too then
Alex,
When you do a release:prepare you always end up with a
tag in SVN. You use that for testing, then if QA
validates it, you can use the same tag to build it
again for production. The command is:
mvn release:perform
-DconnectionUrl=scm:svn:${your_svn_tag_url}
This will always build it from
Hi everyone
I am trying to setup subversion integration with maven. I am trying
understand the documentation on SCM plugins website, but it is not quite
makein sense to me. This could be because of my lack of knowledge of maven!
So if anyone has a good article that I can refer too then it
Hi,
On 1/17/07, Niels Gylling [EMAIL PROTECTED] wrote:
Also make sure you have the following mojo property set
@requiresDependencyResolution compile
That will populate ${plugin.artifacts}
Thanks. I had that set to test.
I actually did get my stuff working by using the ${plugin.artifactMap}
Trying to use Jetty version 5.1.*, but having trouble defining the
dependency in my pom. Looking at http://repo1.maven.org/maven2 the jetty
stuff seems a bit of a mess?
Can anyone give me a working dependency definition please?
TIA,
Adrian
Hi all! Especially Franz. I think I was not clear enough in the previous
e-mail.
There are some subdirectories in one of the subprojects of my system.
After compiling all files of all subdirectories of my system, I need to
package the class files of only two subdirectories into a jar file.
How
This question has also arrisen recently where I work. I suggested putting
the local repository of the build machine under version control, so that it
can be rolled back to repeat any released build that we create. Hell, we'll
probably stick a copy of the jdk, ant, maven, the os, everything we can
Hy Dawn,
currently I use Maven 2.0.4 because 2.0.5 is not released. I read about
the fix for this issue, so I hope Maven 2.0.5 will offically released
soon.
I checked out the 2.0.5 branch of the repository and built Maven by
myself, but there appeared another bug :-/
Maik
Dawn wrote:
Here you go:
dependency
groupIdorg.mortbay.jetty/groupId
artifactIdorg.mortbay.jetty/artifactId
version5.1.12/version
scoperuntime/scope
/dependency
Notice the weird
You need to set a message for the commit
mvn scm:checkin -Dmessage=informations about the fix
Emmanuel
fy a écrit :
Hi,
I added scm into my pom.xml:
scm
connectionscm:cvs:ext:[EMAIL PROTECTED]:/home/cvsroot:maven_itms/connection
developerConnectionscm:cvs:ext:[EMAIL
On 17/01/07, Rupert Smith [EMAIL PROTECTED] wrote:
What about poms that use versioning syntax to specify that they can use
versions = a certain version ((e.g. [1.5,) for versions = 1.5)? My
transitive dependencies may include such a pom without me really being aware
of it. Then someone uploads
Thank you Attila,
merging your hint and previous Tom hint I think this is the best solution to
my problem.
Alex
Attila Mezei-Horvati wrote:
Alex,
When you do a release:prepare you always end up with a
tag in SVN. You use that for testing, then if QA
validates it, you can use the same
Hello,
I use the latest Maven 2.0.5 build found at
http://people.apache.org/~jvanzyl/maven-2.0.5/org/apache/maven/maven-core/2.0.5/
I have multiple executions of the same plugin at the same life cycle phase
in a multi-module parent pom. There was a bug regarding the order of this
executions.
Funny enough I just struggled through this yesterday. You need to download an
ssh program for Windows as Maven does not support using the ssh method with
cvsnt. I used Putty myself which has the plink executable to act as your ssh
agent. Once you download putty, create a batch file called
Hi,
I'd like to know suggested solutions for the following scenario:
We have a jar file, which is used in different projects since quite
some time. One of the projects is so old, that it is still using Java
1.2. Other projects are using later Java versions, up to 1.5. The jar
files development
Good day to you too, Franz
Thanks! I thought I had seen that before, even used
it :-), but need better organization:-)
Thanks again,
- Ole
--- franz see [EMAIL PROTECTED] wrote:
Good day to you, Ole,
Try adding that as a parameter.
public class MyMojo ...
{
/**
*
What is a reactor build in maven2?
People seem to use the term to mean building a super project and allowing
maven to recurse into the sub-modules. And indeed that is how I build by
project... mvn clean install
However there is a command line argument called --reactor, what does it
do?
If I
I'm not an expert, but I'd expect that you could configure the maven compiler
plugin to run the compile goal twice with two different configs.
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
executions
execution
Ant 1.7 introduced the concept of ResourceCollections, this code would
have affected filesets, but I cannot diagnose the problem further
without a full stack trace from you NullPointerException.
Would you post this to the ant dev list : dev@ant.apache.org
Hi,
Just a little update for those
how about place all source in the same folders, then use
build-helper-maven-plugin to attach
the source the build project
source
A
B
C
project-1
pom.xml -- attach A and B to source root thru build-helper
however Eclipse IDE is not happy about this approach
-D
On 1/17/07,
Hi,
we need to change the place for the local repository. In fact for some
reason we can't use the user.home\.m2\repsository path. Also to change the
system property user.home as recommended in one other issue wont help much
because other applications will need the correct user.home property.
Is
However base on your scenario
this is better
source-A
project-B
src/main/java --- has B
pom.xml attach source A to source root
project-C
src/main/java --- has C
pom.xml attach source A to source root
-D
-Dan
On 1/17/07, Dan Tran [EMAIL PROTECTED] wrote:
(Sorry, I can not speak english).
My question:
Must I install modules before compiling an other module with dependcies
to modules? Or is there a way without installing modules and start compilation
within modules directory? The compilation from the parent directory
works fine...
Thanks,
Torsten
use settings.xml to override the default local repository location
-D
On 1/17/07, juergen.schumacher [EMAIL PROTECTED] wrote:
Hi,
we need to change the place for the local repository. In fact for some
reason we can't use the user.home\.m2\repsository path. Also to change the
system property
When you are INSIDE a module/project, the only way that maven can locate the
dependencies is via local repository.
An therefor all your dependent module must be installed..
However if you use the parent to build all modules, you dont have to run
maven install but maven compile would do
since
Look at the maven.home/config/settings.xml, in settings.xml
settings
!-- localRepository
| The path to the local repository maven will use to store artifacts.
|
| Default: ~/.m2/repository
--
localRepositoryC:/repository//localRepository
...
...
.
/settings
Hello,
Is it possible to configure a general URL for repository proxies in
setting.xml ?
I'm using archiva and I'd like to avoid maven to download dependencies from
repositories on Internet, but to use my archiva proxy (so I can keep every
required dependency in my corporate repo for security).
I'm not sure if you can influence the main artifact like that, but you
can use the antrun plugin to create a secondary jar artifact like you
want, then use the build-helper-maven-plugin to attach it to the project
with a classifier. When you use it as a dependendency, you'll have to be
careful to
Places to run mvn compile:
/projects/torsten/ -- success with nothing installed
/projects/torsten/submoduleA, no dependencies -- success with nothing installed
/projects/torsten/submoduleB, depends on A -- A must be installed for
compile to be successful
/projects/torsten/submoduleC, depends on
Hi All!
I have a problem building the current trunk version (rev 497017)of Archiva.
About 20 unit test in archiva-indexer fail, all in the Lucene section.
Does anyone else also have this problem, or is it just my setup? (JDK 1.6.0,
WinXP SP2, Maven 2.0.4)
Thanks in advance!
Dirk
--
Feel free
I wonder if I can set the from field for the
announcement email.
I see there is a from field but that is of type List
and I cannot figure it out what should be included.
Based on the svn code it actually seems to me that no
matter what, the first developer from the developers
section will be
I have some test cases that used to work with maven-surefire-plugin 2.1.3, but
not with 2.2.
Does anybody know what kind of configuration should be in 2.2 to get the same
behaviour as of 2.1.3 ?
I've tried a couple of them (forkMode=never, childDelegation=true), but could
not get anything
This is excellent information, I've been wondering about this for so long but
never knew an answer existed until now.
Of course this leads me to another question :) Does this only work for
compile? If I run mvn test from the parent directory, will the unit tests
have the correct classpath with
should work for all phases
On 1/17/07, kapadia [EMAIL PROTECTED] wrote:
This is excellent information, I've been wondering about this for so long
but
never knew an answer existed until now.
Of course this leads me to another question :) Does this only work for
compile? If I run mvn test
My mojo allows the user to define an extra property (private File
licenseFileDirectory), which is a directory, that I'd like to add to the
classpath when my mojo runs so that I can find a resource (a license file)
in the given directory.
How can I programatically add this to the classpath in my
I had the same problem with other files in the META-INF directory (besides
application.xml). Websphere wants a was.policy file to be there to supply
java security settings. When the file disappeared from my ear, Websphere
suddenly hated my application. It was the new ear plugin version that
My company is currently using maven-proxy[1], but I must replace this
because it does not run as a Windows service. Two alternatives have been
mentioned on this list: Proximity[2] and Maven Archiva[3]. However, I don't
know which of those would be better to go with.
Does anyone have experience
No problems here (same configuration as you, also on Mac OS X JDK 5),
or on CI (Solaris x86 JDK 5).
On 18/01/2007, at 2:15 AM, Dirk Jablonski wrote:
Hi All!
I have a problem building the current trunk version (rev 497017)of
Archiva.
About 20 unit test in archiva-indexer fail, all in the
I have some issues with xmlbeans and eclipse. Is anyone successful?
1) I have a maven project with xml beans generated code. The xmlbeans maven
plugin creates a directory 'target/classes/schemaorg_apache_xmlbeans.
Eclipse removes this directory on a 'project clean' or build classpath
Does anyone have any experience extracts specific tags of an xml file?
I need to extract the servlet and servlet-mapping tags from my
web.xml so that I can feed those into XDoclet WebDoclet so that I can
generate a web.xml file while still preserving existing servlets.
Is there a known Maven
Hi Daniel,
My client is able to run maven-proxy as a Windows service. They're using a
third-party tool to accomplish this:
http://wrapper.tanukisoftware.org/doc/english/introduction.html
Check it out. However, more importantly, should you continue to evaluate
those products please post your
How do we disable this mirror ?
This is affecting 3 of us at the office. Nobody can build on account of the
metadata blowing up our build.
Stephen Coy-2 wrote:
Hi,
After following the trials and tribulations of JavierL earlier today,
I recalled that I had experienced the same
Once Archiva is stable, i think this is the one to go since it has more
features
-D
On 1/17/07, Mel Riffe [EMAIL PROTECTED] wrote:
Hi Daniel,
My client is able to run maven-proxy as a Windows service. They're using
a
third-party tool to accomplish this:
This question should probably be directed to the XDoclet Users mailing list...
However, since I know the answer... Have you looked at using the
merge capabilities of XDoclet to achieve your goals?
http://xdoclet.sourceforge.net/xdoclet/ant/xdoclet/modules/web/WebXmlSubTask.html
servlets.xml
Unless I'm mistaken, Maven won't automatically find and use this
mirror -- you must be pulling it in somewhere yourself.
To resolve this problem, you need to delete all the (bad) metadata.
Check your pom.xml and settings.xml files to make sure you haven't
declared this mirror somewhere. If
I face a challenge in applying the concepts of versions in our use of
Maven in combination with Subversion and was hoping someone could
give me some pointers. Today we employ a svn repo where we apply code
in trunk and at release time create a branch, which we test and
evolve to a point
Could anoyne please tell me what happened to maven-surefire-plugin ?
I couldn't find it at http://svn.apache.org/repos/asf/maven/plugins/trunk as
stated in its site -
http://maven.apache.org/plugins/maven-surefire-plugin/index.html.
Thanks,
Dário
Hi Dario,
On 1/17/07, Dário Luís Coneglian Oliveros [EMAIL PROTECTED] wrote:
Could anoyne please tell me what happened to maven-surefire-plugin ?
I couldn't find it at http://svn.apache.org/repos/asf/maven/plugins/trunk as
stated in its site -
On 1/17/07, Raymond Feng [EMAIL PROTECTED] wrote:
We use multiple maven repos in the build. Is there a way to control the order
of the repositories to be searched for artifacts? In some cases, an arifact is
published to both maven1 and maven2 repos and we prefer to use the one from the
maven2
Can you not just use: http://repo.mergere.com/maven2/ ?
Andre
On 17 Jan 2007, at 23:13, Lasse Koskela wrote:
On 1/17/07, Raymond Feng [EMAIL PROTECTED] wrote:
We use multiple maven repos in the build. Is there a way to
control the order of the repositories to be searched for
artifacts?
I think most of this functionality can/should be handled with a
Corporate Maven proxy rather than depending on Maven to provide it
directly.
In fact, I think a bit of this functionality might already exist in
Archiva, Proximity, etc -- have you considered them?
Wayne
On 1/17/07, Lasse Koskela
Thanks, we had it in our settings.xml under the main /conf dir.
Wayne Fay wrote:
Unless I'm mistaken, Maven won't automatically find and use this
mirror -- you must be pulling it in somewhere yourself.
To resolve this problem, you need to delete all the (bad) metadata.
Check your
Hi,
I am trying to configure Clover to use contextFilters with
statementContext. Here is my pom.xml :
reporting
plugins
...
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-clover-plugin/artifactId
Hi,
I need to generate an RPM mirror of the maven
repository.
I was hoping to do this by reading something like a
meta-data.xml file in the Maven repository, that
contains a list of all the projects in the repository,
their corresponding artifactId, groupId, and version
(And checksum would be
Hi,
I saw this question many times in the forum, but couldn't found an
answer. I followed the tutorial and got in my parent project pom :
reporting
plugins
...
plugin
groupIdorg.apache.maven.plugins/groupId
Hi Andre,
I suppose I could just use Mergere's repository but how is it
different from others?
For example, does their DNS server automatically direct me to a nearby
server based on my IP...? Or is it just generally faster than, say,
the iBiblio servers?
Lasse
On 1/18/07, Andrea Malagodi
Hi Wayne,
I suppose using a local proxy repository would do the trick if I
were always in the same place. However, I rarely work in the same
place for longer than a few weeks, which means that the proxy
repository should move with me :)
Lasse
On 1/18/07, Wayne Fay [EMAIL PROTECTED] wrote:
I
I'm trying to build a multi-module project that requires some
resources (an xsl file) to complete. The location of the XSL file is
relative to ${basedir}, which changes based on whether I am in the
sub-module or at the top level. As a result, the processing can find
the necessary
I'm trying to build a multi-module project that requires some
resources (an xsl file) to complete. The location of the XSL file is
relative to ${basedir}, which changes based on whether I am in the
sub-module or at the top level. As a result, the processing can find
the necessary
from the plugin configuration try this
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-changes-plugin/artifactId
configuration
from
from!-- the email account --/from
/from
/configuration
/plugin
On 1/18/07, Attila Mezei-Horvati [EMAIL PROTECTED]
btw, IIRC, you can also use this
configuration
froms
from!-- the email account --/from
/froms
/configuration
On 1/18/07, allan ramirez [EMAIL PROTECTED] wrote:
from the plugin configuration try this
plugin
groupIdorg.apache.maven.plugins/groupId
Good day,
Either there in maven.home, or in ~/.m2/settings.xml.
Cheers,
Franz
Parikh, Pratik P. wrote:
Look at the maven.home/config/settings.xml, in settings.xml
settings
!-- localRepository
| The path to the local repository maven will use to store artifacts.
|
|
Good day to you, Maik,
I am not sure if that is already a known bug and if it is already filed. You
may want to file one if you'd like.
Cheers,
Franz
maik.ebert wrote:
Hello,
I use the latest Maven 2.0.5 build found at
try this
List classpathElements = project.getCompileClasspathElements();
classpathElements.add( your directory );
where your project is MavenProject
Regards
-allan
On 1/18/07, matthewadams [EMAIL PROTECTED] wrote:
My mojo allows the user to define an extra property (private File
Anyone know if
maven-metadata.xml exists for the entire
ibiblio repository?
I see
http://mirrors.ibiblio.org/pub/mirrors/maven2/maven-metadata.xml.md5
but there is no corresponding
maven-metadata.xml
file.
Ideas?
Thanks,
- Ole
Hi,
I'm facing problems some problems building an EJB project with maven
2.0.4. i.e.
1) I'm getting following error while packaging the EJB project.
2) Also, in pom.xml, i have mentioned dependencies xml-apis and
xerces, but maven is mapping to the wrong version of these
David, this seems to be working for me:
build
.
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-clover-plugin/artifactId
version2.3/version
configuration
targetPercentage50%/targetPercentage
/configuration
executions
Just to be clear, I do this in my mojo's execute() method, right?
allan ramirez wrote:
try this
List classpathElements = project.getCompileClasspathElements();
classpathElements.add( your directory );
where your project is MavenProject
Regards
-allan
On 1/18/07, matthewadams
Greetings,
At the top level of a project I am trying to combine 2 tar.gz files that are
generated in sub-projects using assembly plugin. I am using mvn version
2.0.4 and have tried all sorts of things specified on the assembly-plugin
maven docs. But no luck yet, has anyone tried this before, if
John,
I know exactly what you're talking about and there isn't really a
great solution.
On 1/17/07, flyboy [EMAIL PROTECTED] wrote:
I have some issues with xmlbeans and eclipse. Is anyone successful?
1) I have a maven project with xml beans generated code. The xmlbeans maven
plugin creates
Franz,
On 1/14/07, franz see [EMAIL PROTECTED] wrote:
Good day to you, Gregory,
Actually, the plugin does not define the lifecycle. Rather, it's the
packaging type which defines the default goal bindings to the lifecycle
phases.
That's what I meant. Sorry for misspeaking.
Regarding
right, or you can do it on another method that will be called by the
execute(). What matters most is the MavenProject instance you can get
it by
public class MyMojo
{
/**
* @parameter expression=${project}
*/
private MavenProject project;
}
On 1/18/07, matthewadams [EMAIL
Hi,
Even after successful installation and configuration ,I am not able to
run the application.
Will it make any difference if I am working on a proxy connection.
Kindly assist me in this regard.
Thanks and Regards
Vaishali G.P.
Email: [EMAIL PROTECTED]
This e-mail and any files
Hello,
I'm fairly new to both Maven and Continuum, but I have been using Maven
for a couple of months, and I am really getting fond of it.
Installed Continuum 1.0.3 a few weeks ago, and it's been no real problems.
I thought I'd check out the 1.1 version and see how it seems, but I don't
seem
87 matches
Mail list logo