Or specify the archetypCatalog as local[1]
Thus:
$ mvn archetype:generate -DarchetypeCatalog=local
Hth,
[1] http://maven.apache.org/plugins/maven-archetype-plugin/advanced-usage.html
Nick Stolwijk
~Java Developer~
IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl
On Wed,
2009/9/23 maven apache
> I am new in using maven , so some basic problem confusing me:
> 1 When I create a new maven project how do I know which plugin to use?
> 2 the artifaceID and groupID respent what?
> 3 I have not use ant or other build tool before,so the pom.xml is stange to
> me .
> 4 wha
Hi!
What happens if you remove the unmappable character?
Have you been able to compile before or is this a new setup?
Can you restart with the simplest Hello World and get that to compile?
What happens if you use Maven 2?
/Thomas
On Wed, Sep 23, 2009 at 08:29, rasahere wrote:
>
> Hi,
>
> I am u
2009/9/23 rasahere
>
> Hi,
>
> I am using Maven 1.0 and my jdk is 1.5. Now when i am trying to build my
> application jar i am getting some strange errors.
>
> warning: unmappable character for encoding UTF8
>[javac] /**
>[javac] ^
> this is just a warning but still the build is fail
Thanks for all the reply!
Actually, I have read the doucument in the maven web site ,the qucik start
and the understand maven in 5 min and so on , however this is just some
simple example like tony,and I am facing a complex application so I feel
confused.
The question I ask above is do what confusi
Ok.
1) When you need to do something, you find the plugin you need. As always in
open source, there's a jungle out there with many plugins where some do
pretty much the same thing. When defining a project type (like 'jar') you
get a default set of plugins bound to the Maven lifecycle. Extend that
Can you please send your POM?
Quintin Beukes
On Wed, Sep 23, 2009 at 5:16 AM, GANDZ wrote:
>
> Hello,
>
> Thanks for your reply. But if I add the org.apache to the group ID, i am
> having the following error:
>
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered res
Thanks , I am following the tutorial book you reffered.
2009/9/23 Anders Hammar
> Ok.
>
> 1) When you need to do something, you find the plugin you need. As always
> in
> open source, there's a jungle out there with many plugins where some do
> pretty much the same thing. When defining a project
By the way, you load log4j with groupId==log4j.
OpenEJB project uses it the same as you, and it compiles fine. A
snippet from their POM:
log4j
log4j
So,
a. first try specifying the version, as in
log4j
log4j
1.2.15
If that doesn't work then,
b. T
Hi!
I'm about to set up en fresh project using Maven. It will contain a web part
that will be a war, it will contain a ear part and it will contain
integration tests. How would you suggest organising it?
I'm thinking on the lines of:
root --
-- ear [Mostly packaging for a application serve
I suggest to you that you use maven-j2ee-archetype. I'm using it and it's
great. If you need more help, let me know.
2009/9/23 Thomas Sundberg
> Hi!
>
> I'm about to set up en fresh project using Maven. It will contain a web
> part
> that will be a war, it will contain a ear part and it will con
The SCM Changelog Maven Plugin team is pleased to announce the
scmchangelog-maven-plugin-1.3
release
This release contains fixes, documentation improvements and enhancements :
* Changelog report is wrong due to revision string comparison
* Now you can comment some part of the commit message
* S
Thanks Stephen, that's very helpful - hadn't appreciated the subtle
difference that LATEST was not necessarily LARGEST.
Will take a good look at ranges then - thanks
-Original Message-
From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
Sent: 22 September 2009 20:31
To: Mav
Hi:
I following the guide:
http://www.sonatype.com/products/maven/documentation/book-defguide
And I am try to test the simple-parent project, it contain two modules
: simple-weather and simple-webapp ,the former provider some interface
to retrive the weather from yahoo website, and the simple-webap
Your webapp does not have a dependency on the simple-weather artifact, which
contains the class missing. Ad that and try again.
/Anders
On Wed, Sep 23, 2009 at 12:54, maven apache wrote:
> Hi:
> I following the guide:
> http://www.sonatype.com/products/maven/documentation/book-defguide
> And I
On Wed, Sep 23, 2009 at 11:22, Manuel Grau wrote:
>
> I suggest to you that you use maven-j2ee-archetype. I'm using it and it's
> great. If you need more help, let me know.
>
I asked my friend Google and found an archetype called
'maven-archetype-j2ee-simple'
http://maven.apache.org/plugins/mave
Setting the maven.compile.encoding property should be more useful for your case
than maven.compile.source.
HTH,
-Lukas
Thomas Sundberg wrote:
Hi!
What happens if you remove the unmappable character?
Have you been able to compile before or is this a new setup?
Can you restart with the simpl
Oh, I am sorry for my carelessness...
It wors now, maven is so magical !
2009/9/23 Anders Hammar :
> Your webapp does not have a dependency on the simple-weather artifact, which
> contains the class missing. Ad that and try again.
>
> /Anders
>
> On Wed, Sep 23, 2009 at 12:54, maven apache wrote:
2009/9/23 Thomas Sundberg :
> On Wed, Sep 23, 2009 at 11:22, Manuel Grau wrote:
>>
>> I suggest to you that you use maven-j2ee-archetype. I'm using it and it's
>> great. If you need more help, let me know.
>>
>
> I asked my friend Google and found an archetype called
> 'maven-archetype-j2ee-simple
Hi,
we have configured our httpd to use digest-authentication for dav
write-operations.
In the pom, we have configured the site distribution
maven-site
dav:http://server/test
In settings, we have configured the credentials as a server-tag
maven-site
username
pw
2009/9/23 Stephen Connolly :
> 2009/9/23 Thomas Sundberg :
>> On Wed, Sep 23, 2009 at 11:22, Manuel Grau wrote:
>>>
>>> I suggest to you that you use maven-j2ee-archetype. I'm using it and it's
>>> great. If you need more help, let me know.
>>>
>>
>> I asked my friend Google and found an archetype
Thanks, just wanted to be sure.
-Dave
On Tue, Sep 22, 2009 at 11:51 PM, Anders Hammar wrote:
> A project having (child) modules is a different story than a project having
> dependencies. Modules are not dependencies. So, you declaring a dependencu
> on an aggregating project (a project with mod
hi
I did lioke stephenconnolly suggested (see under for the details or the
previous mail in the thread), but my java -jar foo.war gives me :
Exception in thread "main" java.lang.NoClassDefFoundError: boot/JettyMain
Caused by: java.lang.ClassNotFoundException: boot.JettyMain
at java.net.UR
tony_k wrote:
>
> ...
>
> so on a lark, i reinstalled galileo and then m2eclipse and this time let
> the "updating indexes" phase run to completion (it actually did take about
> a half hour) and then things seemed ok.
>
> ...
>
re-installing may not be necessary. I tried this:
Do in eclipse:
I recently had a write-up on this (more of a reminder to myself)
http://www.blogwitter.com/2009/07/20/maven-plugin-notes/
Thanks,
mohan kr
-Original Message-
From: james.sh...@nomura.com [mailto:james.sh...@nomura.com]
Sent: Wednesday, September 23, 2009 5:24 AM
To: users@maven.apache.o
Is the boot class in the jetty dependency?
If so, add the dependency to the dependency plugin section as well.
Then, ensure the jar gets included into your war.
---
Thank You…
Mick Knutson, President
BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-
Mick Knutson wrote:
>
> Is the boot class in the jetty dependency?
>
No, it's in the generated class of the war, under /WEB-INF/classes/boot/
But I'm going to try with a separate jar...
--
View this message in context:
http://n2.nabble.com/Using-custom-assembly-descriptor-tp3189204p369938
Mick Knutson wrote:
>
> Is the boot class in the jetty dependency?
>
> If so, add the dependency to the dependency plugin section as well.
>
> Then, ensure the jar gets included into your war.
>
I did so, I chacked that the jar is present in my war but I still have the
java.lang.ClassNotFou
I'll see if I can share a bit more specific code...
2009/9/23 zedros :
>
> hi
>
> I did lioke stephenconnolly suggested (see under for the details or the
> previous mail in the thread), but my java -jar foo.war gives me :
> Exception in thread "main" java.lang.NoClassDefFoundError: boot/JettyMai
First you want a jetty-helper module. This will depend on all the
jetty jars and have the jetty main class:
http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xs
stephenconnolly wrote:
>
> I'll see if I can share a bit more specific code...
>
With pleasure !
I've in fact a "standard" web application, done through eclipse with
m2eclipse.
I've a launcher done this way (which I put in the src/main/java for
packaging purposes) :
package boot;
import
Is there any open source version like from "The Definitive Guide"? I doesn't
seem like it.
So in otherwords, your post is plain propaganda for you, "packtpub" and
amazon.
Peter
On Wed, Sep 23, 2009 at 8:40 AM, Peter Horlock
wrote:
> Is there any open source version like from "The Definitive Guide"? I doesn't
> seem like it.
> So in otherwords, your post is plain propaganda for you, "packtpub" and
> amazon.
and that's a bad thing because..?
if you're not interested, don'
And where is the problem ? Even if the book isn't free, it is always a good
thing for our community and its users...
Cheers,
Arnaud
# Arnaud Héritier
# Software Factory Manager
# eXo Platform
# http://www.exoplatform.com
# http://blog.aheritier.net
On Wed, Sep 23, 2009 at 3:40 PM, Peter Horlock
Peter Horlock wrote:
Is there any open source version like from "The Definitive Guide"? I doesn't
seem like it.
So in otherwords, your post is plain propaganda for you, "packtpub" and
amazon.
Peter
Congratulations, you saw through it. Now what exactly is your problem with that?
-Lukas
-
Brilliant! I'll have one. Thanks. Too bad my credit card doesn't work,
so I'll have to wait until the funds become "unfrozen". Serves me
rights for clicking that "Purchase" button so many times. :>
Quintin Beukes
On Wed, Sep 23, 2009 at 3:56 PM, Lukas Theussl wrote:
>
>
> Peter Horlock wrote:
Have a sample chapter available?
Quintin Beukes
On Tue, Sep 22, 2009 at 2:50 PM, Brett Porter wrote:
> The final release of "Apache Maven 2: Effective Implementation" is now
> available online! It is available in both eBook and printed + eBook
> versions, and is written by Deng Ching and mysel
The chapter 6 is available on the web site.
Cheers,
Arnaud
# Arnaud Héritier
# Software Factory Manager
# eXo Platform
# http://www.exoplatform.com
# http://blog.aheritier.net
On Wed, Sep 23, 2009 at 4:03 PM, Quintin Beukes wrote:
> Have a sample chapter available?
>
> Quintin Beukes
>
>
>
> O
Hi there,
I was wondering why the latest CI snapshot of maven-plugin-testing was
out of date according to the source:
http://svn.apache.org/repos/asf/maven/plugin-testing/trunk/pom.xml
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugin-testing/maven-plugin-testin
Is there a maven plugin that can update jars? I need to modify both a jar
containing classes and one containing sources.
Just wondering the best way to do this. Unpacking and re-jarring takes too
long.
-Dave
FYI, because of how the zip file format works, you will always have to
unpack and repack a jar file.
Any tooling you find is simply doing the repacking in memory on the fly
-Stephen
2009/9/23 David Hoffer :
> Is there a maven plugin that can update jars? I need to modify both a jar
> containing
As long as its faster that is just fine. I'm finding that unpacking to disk
and then re-jarring takes too long.
-Dave
On Wed, Sep 23, 2009 at 10:00 AM, Stephen Connolly <
stephen.alan.conno...@gmail.com> wrote:
> FYI, because of how the zip file format works, you will always have to
> unpack an
maybe truezip might give you the options you are after
2009/9/23 David Hoffer :
> As long as its faster that is just fine. I'm finding that unpacking to disk
> and then re-jarring takes too long.
>
> -Dave
>
> On Wed, Sep 23, 2009 at 10:00 AM, Stephen Connolly <
> stephen.alan.conno...@gmail.com>
Looks good, I'll give it a try. Thanks!
On Wed, Sep 23, 2009 at 10:21 AM, Stephen Connolly <
stephen.alan.conno...@gmail.com> wrote:
> maybe truezip might give you the options you are after
>
> 2009/9/23 David Hoffer :
> > As long as its faster that is just fine. I'm finding that unpacking to
>
Hi does nobody know a solution?
Regards Matthias
-Ursprüngliche Nachricht-
Von: Vach, Matthias [mailto:matthias.v...@sap.com]
Gesendet: Donnerstag, 17. September 2009 17:14
An: Maven Users List
Betreff: AW: mvn dependency:tree ends up in a nullpointer
Upppsss, sorry,
I mean:
> This is
Are you building on Linux?
If yes, you can try to use /dev/shm as a temporary directory for
ANYTHING temporary. It is available by default on most modern distros.
If not, you can easily mount it with:
mount -t tmpfs tmpfs /path/to/mount/dir
When unpacking here it's basically only a read operation
Just for interest sake, here are some benchmarks for unpacking a 93M
zip file. I did 3 unpack operations, first 2 onto a memory FS, and the
last onto a hard disk. The first was to ensure that the 2 that follow
will both have the read caches filled with the zip, so the last 2
unpacks has more fair/r
What is the reason for modifying the JAR? Do you pack it in one build,
and then modify it in another? Or don't you build the first yourself?
Quintin Beukes
On Wed, Sep 23, 2009 at 8:20 PM, Quintin Beukes wrote:
> Just for interest sake, here are some benchmarks for unpacking a 93M
> zip file.
Our project applies some overrides to existing classes in a large artifact.
I need to combine the changes because maven does not support specifying jar
load order. Plus I need to so the same for the -sources.jar.
Yeah, we do build on Linux for CI builds but most developers are on Windows
so I can
You could try and look for a Windows memory filesystem driver. And in
your builds do a check to see if the mounted drive is available, and
if NOT just default to a standard directory + print a message
suggesting the better option.
Beyond this there isn't much you can do re. speeding up the ZIPs ot
> Just to confirm, this "large artifact", who "owns" and "builds" it? Is
> it always the same JAR, or does it change with every build as well?
The reason I'm asking is that if most of the JAR stays the same, and
only the classes you replace keep changing, you could try building it
ONCE with those
Hi all,
I don't know who's responsible, so I hope I'm posting this at the right
place... I'm switching my company to Nexus, and happened upon a couple of
problems.
As far as I can see, the reason for this is as follows:
- Originally I had the 2 dev.java.net repositories in my POM, which made Ma
Nothing is changed at central (repo1.maven.org). If we would do that, other
people's builds could suddenly stop to build. Also, older builds wouldn't be
able to reproduce.
You should handle this in your local Nexus instance. Either change the order
of the repos there, or add a routing rule so that
> - javax.xml.ws:jaxws-api:2.1 (has dependencies in dev.java.net that are NOT
DON'T use this one. The jar at central is not really "correct". It was at
one point, but then Sun decided to withdraw it and then re-release it at
java.net. Since central won't remove or change things, the one at
Hi, I'm trying to use this guide
http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html
and I am running into some issues.
1 - I can't get the maven classpath passed into ant. I've seen several
unanswered questions about this very issue. I saw something about switching
to 2.1
depstei2 wrote:
> Hi, I'm trying to use this guide
> http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html
>
> and I am running into some issues.
>
> 1 - I can't get the maven classpath passed into ant. I've seen several
> unanswered questions about this very issue. I saw some
This is probably related to the authentication re-submissions that
John worked on. Is it any better in Maven 2.2.1?
- Brett
On 23/09/2009, at 10:19 PM, Marc Lustig wrote:
Hi,
we have configured our httpd to use digest-authentication for dav
write-operations.
In the pom, we have configured
I'm using true for deploying timestamped
snapshots to our Archiva repo. By default the timestamp seems to be in
GMT/UTC. Is there any way to get the timestamp to use local time.
Cheers
Matt Milliss
-
To unsubscribe, e-mail: us
In your local repository, do you have maven-metadata*.xml files in the
1.0-SNAPSHOT directory for the artifact? Do they match the ones on the
remote server? Do they correctly specify the build number and timestamp?
If they are incorrect locally, a once off run with -U might help.
You might a
On 24/09/2009, at 9:58 AM, Matt Milliss wrote:
I'm using true for deploying
timestamped snapshots to our Archiva repo. By default the timestamp
seems to be in GMT/UTC. Is there any way to get the timestamp to use
local time.
No, there isn't. Why do you ask?
- Brett
--
Brett Porter-2 wrote:
>
> It's hard to tell from the partial path information but I think it's
> just the lack of the repository root directory on the remote server,
> not the metadata file. If you remove the metadata file does it still
> work now?
>
No, when the metadata is removed the
Anders Hammar wrote:
>
> Using Nexus or Artifactory is making it as easy as possible. They come
> bundled with a web container, so you only have to unpack and run.
>
> /Anders
>
OK, but as I noticed in the reply to Brett Porter it is only a simple
HTTP-Webserver and it is not possible to run
62 matches
Mail list logo