>
> Unless you have a priori knowledge that in every possible environment
> you'll actually have a File, the best thing is to open a stream from
> that URL directly.
>
>
I actually do this already (getResourceAsStream()), but good to point
that out (in case someone else might read that). This
private File getFile( String resourceName )
{
ClassLoader cloader = Thread.currentThread().getContextClassLoader();
URL resource = cloader.getResource( resourceName );
if ( resource == null )
{
throw new IllegalArgumentException( "Could not get resource: " +
resourceName );
}
return new
Have you tried using the "eclipse:eclipse" plugin? That's how I'm
working with projects now. It works great - just remember to run it
again if you change the dependencies in your pom. Then, you can arrange
you project hierarchically, use the release plugin, and still be working
in Eclipse.
Ok, thanks. I'm using the flat structure because that seems to work better
with eclipse. I guess I'll just have to walk away from the release plugin.
David C. Hicks wrote:
It has been well over a year ago, but the last time I tried to do this,
I encountered similar problems. It was at that
On Wed, Nov 26, 2008 at 10:22 AM, CheapLisa <[EMAIL PROTECTED]> wrote:
Does anyone have an *end-to-end* example (with files you can send or attach)
that will allow me to create a single jar with all dependencies using maven?
Lisa,
I believe that Sonatype's Maven book has exactly the example yo
It has been well over a year ago, but the last time I tried to do this,
I encountered similar problems. It was at that time I learned that the
"release" plugin couldn't work with the flat structure of my project -
or so I was told by someone, then. I haven't tried it since then.
Instead, I'v
I have the same problem. I tried to get the answer here but no one could
help me, maybe you are luck.
On 11/24/08 7:58 PM, "Rusty Wright" <[EMAIL PROTECTED]> wrote:
> I'm using the "flat" structure where the parent directory (cars_parent) is a
> sibling of its sub modules.
>
> The parent's pom
On Wed, Nov 26, 2008 at 10:22 AM, CheapLisa <[EMAIL PROTECTED]> wrote:
>
> Does anyone have an *end-to-end* example (with files you can send or attach)
> that will allow me to create a single jar with all dependencies using maven?
This is more than just the assembly.
Setting the MANIFEST.MF correc
Does anyone have an *end-to-end* example (with files you can send or attach)
that will allow me to create a single jar with all dependencies using maven?
In the end I want to be able to:
$cd dist
$java -jar patch-main.jar
and have it run the public static void main(String[] args) method in o
There is no such thing as a phase which have been a success. Each
plugin can call the build a failure. So if every plugin before that
phase didn't call the build a failure it is a success.
For example, you can set the maven-surefire-plugin (which runs your
tests) to fail the build on a failed test
This is an interesting concept we'd have to persue. If you want to know,
email me directly and I can look you up and let you know what I see.
We will probably start publishing a list of abusers in a hall of shame
;-)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Well, they are ANT tasks to apply a label to Clearcase using the
maven-ant-run-plugin.
Right now, I have these tasks set up to execute during the "install"
phase of the lifecycle..
As this is one of the last few stages of the life cycle, it will execute
only if the prior phases (compile, packagin
If I hard code a element, things work fine thou...
On Wed, Nov 26, 2008 at 7:50 AM, Mark Derricutt <[EMAIL PROTECTED]> wrote:
> Strange,
--
"It is easier to optimize correct code than to correct optimized
code." -- Bill Harlan
---
First, try purging your local repository. If you used maven-deploy-plugin to
re-upload the jar with its pom, the sha1&md5 should be OK on the repo.
Try running mvn dependency:purge-local-repository once before other goals.
Cheers.
2008/11/24 Chris <[EMAIL PROTECTED]>
> I'm getting a "checksum f
2008/11/25 Brian E. Fox <[EMAIL PROTECTED]>
> The central repo has been undergoing significant load lately,
> Also, if you are using a repo manager, make sure to correctly configure
> it to not make requests to public repositories for your internal
> artifacts. Otherwise you are making a ton of
Strange,
I'm seeing:
Caused by: org.apache.maven.plugin.MojoExecutionException: Invalid
mail sender: name and email is mandatory (null (null)).
at
org.apache.maven.plugin.announcement.AnnouncementMailMojo.sendMessage(AnnouncementMailMojo.java:232)
at
org.apache.maven.plugin.anno
Thanks Nick, the project isn't mine. I'm just trying to build a local
version on my computer. When I saw the snapshot I thought something was
wrong I just didn't know what to change it to. Doing what you said and just
going to the release worked fine.
Thanks for the tip,
Lee
Nick Stolwijk-4
Congrats.
When using onlyCurrentVersion and the jira report, is it possible to
override the version is looking for? For one reason or another, we
currently have a single Jira project, with module names included in
the version name, i.e. "Statistics Monitoring 1.1", so it'd be a nice
to have that
The last released version of that plugin is 2.0. A while ago all old
snapshots were removed from
http://people.apache.org/repo/m2-snapshot-repository. You should not
rely on snapshots from Maven. Those are for development only. If you
need a new build of an unreleased plugin, you should build and d
If you want to bind it to the lifecycle, the last phase is deploy. [1]
If you want to do it after deploy, you should invoke maven like "mvn
deploy plugin:goal".
[1]
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference
Nick Stolwijk
~Java Developer~
Hi so I'm trying to build an application that uses maven but I get
errors during the build that say a dependency is not found.
The following is the error section. It's referencing a snapshot which
seems wrong, is there a different repository that it should reference
or a different plugin to use?
> I have ANT tasks configured in my POM file..I would like to have these
> ANT tasks execute only if my Maven build is successful..
What kind of tasks are they?
What determines a "successful" Maven build -- compiles OK? tests OK?
package creation is OK? installed to local repo cache OK? deployed
It seems like the JAXWS-RT people simply need to update THEIR pom file
to reflect Woodstox's groupId change.
Woodstox changed its groupId to org.codehaus.woodstox a while back:
http://jira.codehaus.org/browse/WSTX-86
As for the missing pom files, this is simply incorrect if you look in
the proper
Hi,
I have ANT tasks configured in my POM file..I would like to have these
ANT tasks execute only if my Maven build is successful..
What build life cycle phase can I use to achieve this?
Thanks very much!
Am Montag, den 24.11.2008, 22:38 -0800 schrieb Wayne Fay:
> > The problem I have now is, that I don't know how to run my application
> > once it is built with, say 'mvn package'. I tried 'java -jar
>
> People generally use the assembly plugin for this purpose.
> http://maven.apache.org/plugins/mav
Sorry for the noise,
I was not using the right compiler.
Thanks anyway
Arnaud Bailly
--
View this message in context:
http://www.nabble.com/Compiler-plugin-cannot-parse-error-message-tp20684404p20684824.html
Sent from the Maven - Users mailing list archive at Nabble.com.
Hello,
I am running in a very strange error. I have two machines with identical
configurations (AFAICT):
- maven 2.0.9
- jdk 1.5.0_16-b02
I am using maven-comiler-plugin version 2.0.2
On one machine, I got the following output:
[INFO] [compiler:compile]
[INFO] Compiling 54 source files to
/hom
I've noticed OS dependent effects in the expansion of such properties (I
often saw also 'pom.*' notation used) .
The one which IMHO seems to always work is though:
${project.*}
HTH,
Gab
2008/11/25 Randy Kamradt <[EMAIL PROTECTED]>
> There has been some confusion in the past about accessing p
Hi,
Yes documentation is missing (my bad :-) ).
I do this :
http://ip:port/tddetailbug.asp?ID=%ISSUE%
http://ip:port/browse/%ISSUE%
In changes.xml
blabla.
bla bla.
--
Olivier
2008/11/25 Lewis, Eric <[EMAIL PROTECTED]>:
> Great, thanks!
>
> Could you add some documentation on how to use t
There has been some confusion in the past about accessing pom properties
using the ${} notation. I know that to access the project version you
should use ${project.version}. But for pom defined properties is the
project prefix required? for instance, in a pom.xml:
1
${project.one}
The central repo has been undergoing significant load lately, most
likely the result of people crawling and attempting to download all 70GB
of it. I'd like to point out the availability of additional mirrors that
you can use to increase your download performance and reduce the load on
central. Thes
I believe you should/could happily achieve what you need by attaching
another WAR to your build using the maven-build-helper-plugin as described
here:
http://mojo.codehaus.org/build-helper-maven-plugin/usage.html
Just configure:
1. maven-war-plugin execution (id=release) for the main WAR . This i
AFAIK you need to specify the plugin version, unless the plugin resides in
the groupId:
org.apache.maven.plugins
If adding the version (e.g. 1.0-beta-1 as latest in
http://repo2.maven.org/maven2/org/codehaus/cargo/cargo-maven2-plugin/ ) does
not help, then I'm stuck ;)
Hope this helps,
Gab
20
Great, thanks!
Could you add some documentation on how to use the different
issueLinkTemplatePerSystem configurations?
Thanks,
Eric
> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im
> Auftrag von Olivier Lamy
> Gesendet: Dienstag, 25. November 2008 11:0
Here is part of the jaxws rt 2.1.5
woodstox
wstx-asl
3.2.3
Strange the woodstox with groupid org.codehaus.woodstox is correct :
http://repo2.maven.org/maven2/org/codehaus/woodstox/wstx-asl/3.2.3/
Any advices help very welcome
2008/11/25 Henri Gomez <[EMAIL PROTECTED
Hi to all,
I'm using JAXWS 2.1.5 which require Woodstox 3.2.3.
I could find woodstox POM in repo1.
http://repo1.maven.org/maven2/woodstox/wstx-asl/3.2.3/
maven-metadata.xml 21-Nov-2007 04:35
170
maven-metadata.xml.md5 21-
Hi
I am struggling to get the antlrv2 maven plugin to find the vocabulary of a
grammar.
If I put the grammar in src/main/antlr it finds the grammar ok but the
importVocab command fails.
If I put the vocabulary in the base directory of the maven project, it will
find the vocabulary.
However,
darwinports is a package manager for the mac. You can read all about
it in the url I posted. It includes Maven and it's acceptably up to
date.
2008/11/25 Ricky <[EMAIL PROTECTED]>:
> Hey Guys,
>
> I did an export on environment variables and the maven version changed and
> worked fine. Thanks for
Hey Guys,
I did an export on environment variables and the maven version changed and
worked fine. Thanks for your help, appreciate it. Gabriel, what is mac
ports ... i have been hearing some stuff about it, just curious if you
don't mind my asking...
On Mon, Nov 24, 2008 at 11:22 AM, Gabriel Gar
I use the assembly plugin and it works really well.
I've just started to learn and use maven with a stand alone application
and so far I'm hooked!
We have to move the full j2ee app soon, but this is a good starting
point.
Pete
-Original Message-
From: Simon Lehmann [mailto:[EMAIL PROTE
Uli,
Thanks for the quick reply. The Maven Central Repository Index is
installed and the problem is still here. My version of Eclipse never seems
to finish "updating indexes" in the Progress Task list. I guess this could
be the issue.
Mike
Ulrich Wolf wrote:
>
> Hi,
>
> install the "Maven C
hello
i am one mavien multiproject that has 2 web modules, 2 jar modules.
into the ear module i have add the next but when i made mvn install apears
the bellow error.
Can you help me for solving this problem?
thanks
org.codehaus.cargo
cargo-maven2-plugin
jboss4x
false
existing
${jboss.home
The Maven team is pleased to announce the release of the Maven Changes
Plugin, version 2.1.
http://maven.apache.org/plugins/maven-changes-plugin/
You should specify the version in your project's plugin configuration:
org.apache.maven.plugins
maven-changes-plugin
2.1
Release Notes - Maven 2
Hi all,
I'm looking for a maven solution to do the following:
I have a web-app, and so a war, containing some resource files, like
repository.xml, hibernate.cfg etc...
I've done two profiles, one for release and one for test which respectively
put inside final war release resources and test resou
I have solved the problem my self, by looking into the great book
maven-definitive-guide
It is possible to give other version numbers
maven-plugin-plugin version 2.4.3
maven-plugin-tools-ant version 2.4.3
maven-script-ant version 2.0.9
Hereby there is no need to use old versions, so the probl
2008/11/25 Wayne Fay <[EMAIL PROTECTED]>
>
> > load in my code with
> > "this.getClass().getClassLoader().getResource(...)". All resources are
>
> John Casey sent this method a while ago that might be useful:
>
> private File getFile( String resourceName )
> {
> ClassLoader cloader = Thread.curre
46 matches
Mail list logo