? why would anyone want to go back to the old maven version?
2007/8/21, Lukas Theussl [EMAIL PROTECTED]:
Yeah! I want that too! :)
-Lukas
[EMAIL PROTECTED] wrote:
I have found the maven 2 plugin to convert a project.xml (maven 1) to a
pom.xml (maven 2). Is there also a maven 1 or maven
Hello everybody,
I have a problem with the execution of packaging with maven. I have
empty directories in my webapp and these directories are not copied in
the war. I really need to these.
Is it possible to force maven to copy or not?
I have another question about maven repository: we
Hi,
in the out-of-the-box setup of proximity with the repositories
extFree, extNonFree, and central in the public group I would like to
deploy to extNonFree via WebDAV.
I tried the URLs:
http://myserver:8080/proximity/dav/extNonFree - this results in a 500
response from the server, the server
It's not that I want to go back, but for my employer I need to deliver a
project in Maven 1, while I prefer working in Maven 2. If I can
afterwards create a (simple) maven 1 configuration for the dependencies,
I would be happy.
With regards,
Nick Stolwijk
Wim Deblauwe wrote:
? why would
Hopefully this is a newbie question.
I've deployed site docs before, but only to local file systems using
urlfile://host/directory/url
I think I did that because I couldn't get scp working.
Now, trying to site:deploy remotely using
urlscp://host/directory/url, I get the following.
Any
It's been awhile since I have used proximity but I thought you would use
the following syntax:
urldav:http://xr-grr-build:8081/artifactory/[EMAIL PROTECTED]/url
Of course you have to enable webdav in your pom's build section.
extensions
extension
Hi,
In our project we used apache bcel version 5.1, which got replaced by
5.2 on the main maven repository (http://repo1.maven.org). For
compatibility reasons we wanted to keep the version and provide it using
our own repository. Although the bcel 5.1 pom is now downloaded from our
server, the
Hi,
Wismer Stefan schrieb:
Hi,
In our project we used apache bcel version 5.1, which got replaced by
5.2 on the main maven repository (http://repo1.maven.org).
What do you mean by replaced? An deployed artifact is (normally) never
replaced (or even deleted from the repository). Also there
Hi,
i recently asked myself, if there is any possibility to discriminate between
a debug and a release version (like in the old C++ days).
what i mean exactly is, that when releasing a project, i would like to have
the possibility to decide to either generate a
debug-version:
- containing full
Hi,
does anyone know about a nice obfuscator plugin for Maven2??
(pls post your configuration as well)
thx 4 help
R.C.
--
View this message in context:
http://www.nabble.com/-M2--obfuscating-plugin-tf4311244s177.html#a12273396
Sent from the Maven - Users mailing list archive at Nabble.com.
Hi,
Thanks a lot for your help!
I changed 'groupIdorg.apache.bcel/groupId' to
'groupIdbcel/groupId' and everything worked.
-Stefan Wismer
-Original Message-
From: Tim Kettler [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 22. August 2007 14:09
To: Maven Users List
Subject: Re: Maven
Hello,
Are there any macros or special characters that can be used in xdoc or apt
documents to pull in values from pom.xml? I'm trying to create a download
page for a project, and I'd like to reference the version element from
pom.xml in an apt or xdoc file so that I don't have to update the
Hi,
what's your definition of 'nice' :-)
http://pyx4me.com/pyx4me-maven-plugins/proguard-maven-plugin/introduction.html
-Tim
CodingPlayer schrieb:
Hi,
does anyone know about a nice obfuscator plugin for Maven2??
(pls post your configuration as well)
thx 4 help
R.C.
Hi Tim,
proguard looks 'nice' enough for my needs ;D
thx 4 your reply.
R.C.
Tim Kettler wrote:
Hi,
what's your definition of 'nice' :-)
http://pyx4me.com/pyx4me-maven-plugins/proguard-maven-plugin/introduction.html
-Tim
CodingPlayer schrieb:
Hi,
does anyone know about a
Hi,
Jacoud Bastien schrieb:
Hello everybody,
I have a problem with the execution of packaging with maven. I have
empty directories in my webapp and these directories are not copied in
the war. I really need to these.
Is it possible to force maven to copy or not?
As far as I know this
Hi,
CodingPlayer wrote on Wednesday, August 22, 2007 2:20 PM:
Hi,
i recently asked myself, if there is any possibility to
discriminate between
a debug and a release version (like in the old C++ days).
what i mean exactly is, that when releasing a project, i
would like to have
the
Thanks for your answer, Dave!
On 8/22/07, Dave Hoffer [EMAIL PROTECTED] wrote:
It's been awhile since I have used proximity but I thought you would use
the following syntax:
urldav:http://xr-grr-build:8081/artifactory/[EMAIL PROTECTED]/url
Unfortunately, this URL does not work with proximity
I think I may have missed this in the thread about the version class
recently, but what is the best way to get maven to create a file -
say, a properties file - that can include information from the POM
(e.g. ${project.name}, ${project.version} etc.) and information from
the environment (e.g.
I'm really interested in getting this working as currently, we have one
module that always has to build.
What I don't see is how do these actually get jarred up or packaged up
into some kind of distributable?
Running mvn remote-resources:bundle just creates a manifest file but
no archive for
I'm trying to generate javadoc using maven instead of ant and nothing seems
to be working. I have a project like so:
Project
pom
Mod 1
pom-mod1.xml
Mod 2
pom-mod2.xml
etc.
I just want to generate javadoc for Mod1. Now I tried adding under a
reporting section the javadoc plugin
Hi
Is there a way maven can include dependencies on another projects as
well? The way we have in RAD in Projects tab in Java Build path.
Thanks and regards
Hemant
I think you mean Transitive Dependencies, which is one of the main
points of Maven 2. See the documentation [1].
Hth,
Nick Stolwijk
[1]
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
Hemant Ved wrote:
Hi
Is there a way maven can include
What about your scm username and password?
Where did you configure that?
On 8/22/07, Orford, Ian [EMAIL PROTECTED] wrote:
Hopefully this is a newbie question.
I've deployed site docs before, but only to local file systems using
urlfile://host/directory/url
I think I did that because I
Mavenites,
I have a project in which we depend on SNAPSHOTs. Unfortunately, three of
them are not actively being developed at the moment, however we still have
to use them. I realize it is a very bad practice to depend on these since
you never know what is going to be changed. However, is
Do you mean scm? Or scp? I guess you mean a scp password for the target
host.
Well, not sure I did it right, but I put a server/ section in my
settings.xml file with the id of the target hostname.
Either way, it didn't make any difference.
Ian
-Original Message-
From: Mick Knutson
Hi Matthew,
I have gotten around this problem by deploying the SNAPSHOT projects in
question to an internal repository, after first renaming their versions
from X.X.X-SNAPSHOT to X.X.X-myco-X (or something similar). This can
get messy, since SNAPSHOTs sometimes depend on other SNAPSHOTs, and
Here is mine:
scm.connection
scm:local|C:/viewstore/esp_lynx_dap/esp/scm.connection
scm.urlscm:local|C:/viewstore/esp_lynx_dap/esp/scm.url
!--
Seems as though there are some instances that will use
the '|' character instead of the ':' as a delimiter.
Another solution is to check out the release manager and remove that
phase from the components.xml and release an own version of the release
manager and release plugin. It is not a nice way, though.
Hth,
Nick Stolwijk
Steven Rowe wrote:
Hi Matthew,
I have gotten around this problem by
Yeah, I thought it was something like that ...
Thanks for the explanation.
-Message d'origine-
De : Stephane Nicoll [mailto:[EMAIL PROTECTED]
Envoyé : mardi 21 août 2007 22:42
À : Maven Users List
Objet : Re: [Maven2] : Failed to validate POM warnings (making a lot of really
annoying
Try mvn site.
Wayne
On 8/22/07, Alexander Sack [EMAIL PROTECTED] wrote:
I'm trying to generate javadoc using maven instead of ant and nothing seems
to be working. I have a project like so:
Project
pom
Mod 1
pom-mod1.xml
Mod 2
pom-mod2.xml
etc.
I just want to generate
Most of this is already being generated for you in the jar that Maven
generates, automatically.
Check META-INF/maven/groupId/artifactId/pom.properties and
META-INF/MANIFEST.MF.
Wayne
On 8/22/07, Vihung Marathe [EMAIL PROTECTED] wrote:
I think I may have missed this in the thread about the
Thanks for the workaround. You are right -- that could get really tedious in
following the thread of SNAPSHOTs. I will give it a try. But I really wish
there were an option to flat out override the release plugin to
acknowledge I'm doing something really dangerous but let me do it
anyway...
Wow. Thanks for the very insightful approach. It's kind of a very invasive
one in changing code, but one that I may very well need to use if I keep
having to cut a release of our project that depends on these SNAPSHOTs.
-Matthew
nick_stolwijk wrote:
Another solution is to check out the
I don't think there's a way to exclude the Wrapper since it is an inner
class. I tried to exclude it but it won't work. I then added a fake test so
the Wrapper class turns to be
public static class Wrapper extends TestSetup {
public Wrapper(){}
I believe you will need to use mvn remote-resouces:bundle package,
or attach the bundle goal to a phase to have it invoked automatically.
Bundle only makes the remote-resources.xml file, you still need to jar
things up.
Wayne
On 8/22/07, EJ Ciramella [EMAIL PROTECTED] wrote:
I'm really
This is probably something the junit guys would be able to help you
with more than we can. Unless of course they say it is strictly a
Maven/Surefire issue...
Wayne
On 8/22/07, flyingtiger [EMAIL PROTECTED] wrote:
I don't think there's a way to exclude the Wrapper since it is an inner
class. I
Though it may take a little work, how about using the Maven 2 to Ant
converter (http://maven.apache.org/plugins/maven-ant-plugin/). IIRC, Maven 1
can support Ant syntax, I would imagine it would only take a little bit of
hacking to get the ant file to run as a maven.xml. Then all you'd need to
Weird I tried before I SWEAR and it didn't work. Now it generates the
javadoc. Thanks Wayne. Alright, so why doens't javadoc:javadoc work? I
really only want to generate that report for my project?
-aps
On 8/22/07, Wayne Fay [EMAIL PROTECTED] wrote:
Try mvn site.
Wayne
On 8/22/07,
I am using Maven 2.0.7. In my ear file, I have a ejb jar (called core.jar)
that depends on common.jar. They are all in the same ear. I want to have
core.jar manifest.mf file have Class-Path entry for common.jar. But I can
not get that work. I follow maven-ejb-plugin instruction:
plugin
Not sure why its not working for you.
Try mvn -X javadoc:javadoc and see what happens. You might to do
mvn clean first to clean up target.
Also, how are you sure that nothing is generated? Where did you look
for output?
Wayne
On 8/22/07, Alexander Sack [EMAIL PROTECTED] wrote:
Weird I tried
I thought this is a common issue for unit testing. Nobody here had ever done
this before?
Wayne Fay wrote:
This is probably something the junit guys would be able to help you
with more than we can. Unless of course they say it is strictly a
Maven/Surefire issue...
Wayne
On 8/22/07,
I am having issues with the resources tag for my pom.xml for maven
2.0.2. The configuration is below:
resources
resource
directory${basedir}/src/main/resources/directory
filteringtrue/filtering
/resource
/resources
The directory structure is
Hi,
is it still needed to use 2.4-collab-SNAPSHOT version of surefire if you use
TestNG or is there already a better version?
regards,
Wim
--
Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
Blog: http://www.jroller.com/page/Fester
I think it is very simple and also easy to keep up to date.
Start with checking out the Release Manager and the plugin:
svn co http://svn.apache.org/repos/asf/maven/release/trunk release
Change the file
maven-release-manager/src/main/resources/META-INF/plexus/components.xml
to reflect the
Hi,
is it possible to use the maven assembly plugin to create a remote
repository? I have some custom artifacts that my build needs. I don't want
to force my users to have to manually do 'mvn install:install-file' for each
of those. I have seen you can create a local repository which you need to
I see things getting into our source and bin jars, but still, here's my
plugin config:
plugin
artifactIdmaven-remote-resources-plugin/artifactId
executions
execution
goals
goalbundle/goal
If you really want to get fancy, this is also possible. Only this
requires a little more hacking.
Take a look at [1] which checks the dependencies, especially line 171 to
174.
prompter.showMessage(
This project relies on a
The resources directory for ears is called application, that is,
src/main/application. Not src/main/resources. Unless you've overridden
the default.
As for why it suddenly stopped working -- I'd assume you ran mvn -U
and got an update on maven-ear-plugin. Perhaps your older version used
Thank you so much! This is an artifact from our earlier maven work, and
moving to src/main/application did the trick. I don't recall using mvn
-U, but wouldn't discount the possibility.
Thanks again!
Mike
Wayne Fay wrote:
The resources directory for ears is called application, that is,
I'm not the original author of m-r-r-p but it seems likely to me that
you are simply using it wrong or assuming certain things about how it
should be used.
I think you are supposed to have a single project that contains only
the items you want to include in your remote-resources jar. So ie
you'd
Hi,
How can I redefine the central repository for specific profiles? I have
three profiles defined in my settings.xml: dev, qa, and cert. I want the
dev profile to use the default central repository, but I want the qa
and cert profiles to use specific (but different) in-house URLs. From
what I've
I'm looking at mod1/target/etc.
outputDirectory is set to c:\workspace\projectname\target\apidocs but none
is generated.
This seems like a real bug. Again mvn site works but mvn javadoc:javadoc
does not. Do I have to bind something to one of the build phases? Also I
couldn't get reportSets to
On a side note, 2.0.7 didn't fix it.
Man all I got in my POM is this:
reporting
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
/plugin
/plugins
/reporting
And javadoc:javadoc does absolutely nothing.
I was expecting it to understand the resources as listed in the pom this
plugin is configured in.
Considering this is what the source plugin does with the java sources
and that the resources directory is something maven is expecting, this
(to me at least) seemed like a safe assumption.
And
I'm not really sure if this was broken in 2.0.6 or what exactly you're
running into. I do have 2.0.6 here and just tried, and javadoc:javadoc
ran just fine. That was with jdk 1.5.0_06 and javadoc plugin 2.2.
Of course, my environment is probably rather different from yours, so
the fact that it
Yeah Wayne. Its not like my env is really that atypical. The only issue is
I'm using 1.6.0_02 as my JDK and hence my javadoc. I believe I am
using 2.3but let me make sure that's explicit. I'm wondering if its
my POM
organization of the project but I've had zero issues with plugins (minus
I guess we're just talking past each other... Let's start from the top.
I have a little test project, pasted your pom config, ran the same
command and I got a jar with the remote-resources.xml file in the
proper place (with my resource file mentioned) with the file I had in
my resource directory
1 - Is your test project strictly configuration or is it an actual java
jar file plus configuration (ours is the latter)
2 - When your second project pulls down this jar and includes it, does
it successfully replace the tokens in the config files?
We have a utils project that contains some
1. Mine is the trivial java project created by archetype simple. So
yes, it has App.java and AppTest.java as well as resources. Only the
resources are included in the xml file. But all files are in the jar.
2. That was not part of my test. What tokens are you hoping to
replace, for what purpose?
So imagine there's a connection.properties file and in there there's
something like ${db.username}.
I think we're giving up on this particularly flaky plugin and using
dependency:unpack instead. That looks like a bit more flexibility is
available and that the documentation was caringly crafted.
If you're serious about this you should check out maven-model-converter
[1]. That is the component that is used in the maven-one-plugin to
convert a project.xml to a pom.xml. It just needs to work the other way
around. You should be able to get a fairly usable project.xml without to
much
Well, I thought I had this licked, but when I use the
src/main/application directory as my resource directory for ear files,
the files get moved into their appropriate location, but no filtering is
performed on the files. It appears that (maybe) a race condition results
in the pre-filtered
The dependency plugin is a lot older and certainly more stable so
this seems like a reasonable move, especially if you aren't happy with
remote-resources or if the dep plugin provides more functionality.
Wayne
On 8/22/07, EJ Ciramella [EMAIL PROTECTED] wrote:
So imagine there's a
I have recently started using maven-jetty6-plugin for my webapp project.
A common problem is that the webapp needs to be deployed in order for
the junit tests to work. At present I manually start jetty6 server using
maven jetty6:run and then manually run the junit tests in a separate
process.
Hello All,
Just wanted to know if there is a way to bypass a phase or a goal
(defined in a pom) on invoking the same from the command prompt ..like
we do for bypassing the test-cases with mvn phase
-Dmaven.test.skip=true...i doubt there is..but just wanted to be
sure..
Thanks and Regards,
You can not skip a phase, but executions within a phase can be skipped if the
configured plugins support this option ( like sql-maven-plugin) .
-D
On 8/22/07, Farhan Sarwar [EMAIL PROTECTED] wrote:
Hello All,
Just wanted to know if there is a way to bypass a phase or a goal
(defined in a
Hi,
I just downloaded maven-2.0.7-bin.zip
http://www.apache.org/dyn/closer.cgi/maven/binaries/maven-2.0.7-bin.zip
and got it all set up but if I try and run commands like 'mvn
archetype:create' or 'mvn eclipse:create' I get a missing plugin error.
According to the website and documentation
I've found that when using the maven-antrun-plugin, there are certain
ant tasks that are unknown and cannot be used. I've looked for needed
jars, but not found them. I've looked for, but not found references to
this problem. Here is are a pom and ant file that illustrate the
problem. I
If I recall correctly proximity did not support uploading artifacts only
downloading them. This may have changed since we used it however. I
think this was one of the reasons we switched to Artifactory. With
proximity we were using ftp to upload (deploy, release).
Here is one of our old poms.
Thanks for the quick follow up Danso not even a goal can be skipped ?
Further...i think even skipping the executions can be something
beneficial for me..i have certain sql script files (e.g.
db-clean,db-create,db-populate) which i would want to associate with
generate-test-resource and
Not to be rude - but how hard did you search?
http://maven.apache.org/articles.html
But more to the point, that should not happen. Best to paste the error...
for starters, try running:
mvn -e archetype:create
--
Eric Redmond
http://blog.propellors.net
On 8/22/07, Jean-Philippe Steinmetz
I understand there's lot of documentation on how to use maven... but nothing
in regards to my problem of not having plugins in the first place.
Here is the error message I get when running 'mvn -e archetype:create'
mvn -e archetype:create
+ Error stacktraces are turned on.
[INFO] Scanning for
On 8/22/07, Jean-Philippe Steinmetz [EMAIL PROTECTED] wrote:
I understand there's lot of documentation on how to use maven... but nothing
in regards to my problem of not having plugins in the first place.
Here is the error message I get when running 'mvn -e archetype:create'
mvn -e
Thanks for your help Wendy. Adding -U to the end of the command seems to
have worked. Now I'm able to run the commands I've been trying to.
This kind of troubleshooting information would be extremely useful on pages
like:
http://maven.apache.org/run-maven/index.html
Hi,
I haven't tried running unit tests on webapps before, but I would
suggest you take a look at selenium-maven-plugin:
http://mojo.codehaus.org/selenium-maven-plugin/index.html
It's for integration testing and that might be more appropriate for
testing webapps :)
You may want to look at
On 8/22/07, Farhan Sarwar [EMAIL PROTECTED] wrote:
Thanks for the quick follow up Danso not even a goal can be skipped ?
No
Further...i think even skipping the executions can be something
beneficial for me..i have certain sql script files (e.g.
db-clean,db-create,db-populate) which i
regarding the 'skip' configuration, you will need to lookup each plugin doco
there are a few plugins have this option already, like hibernate3,
eclipse, dbunit,
antrun, etc
As a plugin author, if someone made a reasonable case for adding a
skip configuration to one of my plugins, I'd be
I think the webapp doesn't prohibit to use the unit tests in any matter. Unit
tests are just unit tests which purpose is to test a single method in a
class. Unit tests shouldn't be depended on any other external tools like web
server or database. If you like to to test the DAO layer, you can use
78 matches
Mail list logo