Re: [m2] Tomcat Cargo logs location?

2008-03-30 Thread Wendy Smoak
On Sun, Mar 30, 2008 at 11:54 AM, Mick Knutson <[EMAIL PROTECTED]> wrote:

> I am running Tomcat via Cargo for integration tests in Maven.

The Cargo project has its own mailing lists, you can find subscription
info here:  http://cargo.codehaus.org/Mailing+Lists

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Best practices for java version?

2008-03-28 Thread Wendy Smoak
On Fri, Mar 28, 2008 at 3:50 PM, Graham Leggett <[EMAIL PROTECTED]> wrote:
> Richard Chamberlain wrote:
>
>  > If you using java 5 as your JAVA_HOME I would also recommend setting the
>  > executable compiler to use.
>  >
>  >   path.to.jdk\1.4.2\bin\javac.exe
>
>  The side effect of this is that you produce code that now only compiles
>  on one person's machine, and that is *very* un-repeatable.

You can use a property like ${JAVA_1_4_HOME} as suggested in the
compiler plugin docs.

It's more configuration (devs may have to set that property in
settings.xml) but if you need to compile with a certain JDK, you can d
 This assumes you have control of the release environment, as
you'd want to make sure the property was _really_ set to the location
of a 1.4 JDK.

http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-using-different-jdk.html

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Dependency scope for compile -- what should be included?

2008-03-26 Thread Wendy Smoak
On Wed, Mar 26, 2008 at 6:09 AM, Jim Christenson
<[EMAIL PROTECTED]> wrote:

>  Is there a way to force this, or is there some other tool/report that would
>  look at the code and show the gaps?

mvn dependency:analyze

Analyzes the dependencies of this project and determines which are:
used and declared; used and undeclared; unused and declared.

http://maven.apache.org/plugins/maven-dependency-plugin/usage.html

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: It is not possible to include folder: .svn to JAR file (maven 2.0.8)

2008-03-24 Thread Wendy Smoak
On Mon, Mar 24, 2008 at 1:13 PM, Yuriy Krymlov <[EMAIL PROTECTED]> wrote:

>Could you please help me to include folder .svn with all its content
>  to resulting file like jar?
>Actually I need this only within resources (folder:
>  src/main/resources), so, if you try to specify include pattern
>in maven-resources-plugin settings - it does not work.

The assembly plugin docs talk about including Subversion metadata, so
you should be able to construct what you need as an assembly.
http://maven.apache.org/plugins/maven-assembly-plugin/advanced-descriptor-topics.html

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Deploy pom with dependencies to internal repository

2008-03-24 Thread Wendy Smoak
On Mon, Mar 24, 2008 at 1:40 PM, buzzterrier <[EMAIL PROTECTED]> wrote:

>  mvn deploy:deploy-file -DgroupId=com.foo -DartifactId=common-dependencies
>  -Dversion=1.0 -Dpackaging=pom -Dfile=c:/poms/common-dependencies.xml
>  -Durl=http://ourinternalrepos:8080/archiva/repository/internal
>  -DrepositoryId=internal  -Dgenerate-pom=true
>
>  The install plugin states that it:
>  "Installs a file in local repository."

Yep, I posted the wrong link.  Simon got it right, but I think you can
shorten it by using -DpomFile=... (and you definitely don't want it to
generate a pom.)  It's a bit non-intuitive to specify both file and
pomFile, but it works.

JIRA issues for enhancements (preferably with patches) welcome! :)

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Deploy pom with dependencies to internal repository

2008-03-24 Thread Wendy Smoak
On Mon, Mar 24, 2008 at 1:16 PM, buzzterrier <[EMAIL PROTECTED]> wrote:

>  Thx for the reply. I did define a custom pom, that declared the
>  dependencies, e.g.
...
>  but when I deploy this pom to the internal repository the dependencies are
>  stripped out and I am left with:

What command did you use?

My guess is that you left out -DpomFile=... and you're getting the
automatically generated pom.

http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to force archiva download an artifact

2008-03-24 Thread Wendy Smoak
On Mon, Mar 24, 2008 at 12:13 PM, Zemian Deng <[EMAIL PROTECTED]> wrote:

>  So the questions is how do I force archiva to download it from the
>  repository url(proxied repo) that I have setup?

Please come join us on the Archiva mailing lists and re-post your
question there.  You can find subscription info on this page:
http://maven.apache.org/archiva/mail-lists.html

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: package does not exit error with 3rd party jar dependency

2008-03-23 Thread Wendy Smoak
On Sun, Mar 23, 2008 at 11:51 AM, Avi Laviad <[EMAIL PROTECTED]> wrote:
>  the project is compiled and build successfully when i try it on Eclipse.
>  the error is "package com.gigaspaces.* does not exist".
>  I think its compile error because it doesn't find the .jar file it should
>  reference to - and this is my problem - i added a dependency in the
>  pom.xmlfor the .jar that i need but it seems that maven ignores it and
>  try to compile without it.

We need to see more of the pom and the error in order to help.  I'll
take one more guess... any chance that dependency you posted is inside
 instead of just  ?

Add -X to the command line and Maven will print out a lot of
information, including the classpath.  Then you can see if the jar is
on the classpath at all.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: package does not exit error with 3rd party jar dependency

2008-03-23 Thread Wendy Smoak
On Sun, Mar 23, 2008 at 10:28 AM, Avi L <[EMAIL PROTECTED]> wrote:

>  hi,
>  im trying to build my project which depended on a 3rd party jar.
>
>  i made "mvn install:install-file" [1] and then added the dependency to my
>  project's pom.xml [2].
>  but still when i do "mvn compile" i get the message "package X does not
>  exist.

That sounds like a message from the compiler, not from Maven.  Can you
paste the exact error?

It's hard to tell from here, it might just be a typo in the code, or
maybe the jar you installed really doesn't contain that package.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multiple Jars

2008-03-22 Thread Wendy Smoak
On Sat, Mar 22, 2008 at 5:02 PM, Trenton Adams <[EMAIL PROTECTED]> wrote:

>  Dependencies pull from a remote repository.  I don't want to pull from a
>  remote repository, I want to pull from modules themselves (locally),
>  into a combined WAR.

Maven is repository based, true, but it first looks in its local
repository.  If you build something locally with 'mvn install' it will
be available in the local repo (usually ~/.m2/repository).

So, 'mvn install' your jar, then declare a dependency on it from your
webapp module.

The next step is adding a parent pom that lists your jar and webapp as
modules, so you can build it all at once.

There's usually someone around on #maven (there's a web interface to
it at http://irc.codehaus.org) if you need help.

-- 
Wendy
...who wonders if anyone trims posts anymore...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multiple Jars

2008-03-22 Thread Wendy Smoak
On Sat, Mar 22, 2008 at 12:40 PM, Trenton Adams <[EMAIL PROTECTED]> wrote:

>  I have a webapp, and I want there to be a webapp WAR, and a developer
>  JAR, which only includes the class files.  The JAR is needed for
>  compilations of other apps depending on the webapp.

Split your project into multiple modules.  One builds the jar, and the
other builds the webapp.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Real World User Issues with Maven

2008-03-21 Thread Wendy Smoak
On Fri, Mar 21, 2008 at 7:29 PM, Patrick Moore <[EMAIL PROTECTED]> wrote:

>  1. "mvn deploy" on the top level - I only want to deploy the war (which is
>  in the 'web' module). Mvn deploys everything. Not at all obvious how to
>  change that behavior. Rather than spend any more time on this issue, I just
>  cd to the web module and run mvn there. Shouldn't have to do it ... easy to
>  do something like this with ant. mvn makes it impossible(?).
>
>  2. Connection goes down while deploying. "mvn deploy" rebuilds everything
>  (when it works - a lot of times there is some corruption in one of its
>  metadata files?) So most of the time I just scp up the war myself.

Sounds like you might want Cargo (or a Tomcat|JBoss|Geronimo plugin)
rather than the deploy plugin.

'mvn deploy' means deploy to the remote _artifact_ repository, not to
an app server.

For new users the Maven terms 'repository' and 'deploy' cause
confusion since they already have meanings, usually referring to
things like 'the Subversion repository' and as mentioned, deploying to
test or production application servers.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: a war can't use classes from another war

2008-03-20 Thread Wendy Smoak
On Thu, Mar 20, 2008 at 11:00 AM, Julien Graglia <[EMAIL PROTECTED]> wrote:

>  Yes Convention (and best practices...) over configuration...
>
>  I really can't image it can't work.. it works for css and web stuff!

If you were compiling the code at the command prompt with javac, what
would it mean to have a .war file as a dependency?

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: a war can't use classes from another war

2008-03-20 Thread Wendy Smoak
On Thu, Mar 20, 2008 at 10:49 AM, Julien Graglia <[EMAIL PROTECTED]> wrote:

>  I have a war named "WarA" with a class a.b.c.Parent.
>  And another war named "WarB" with a class Child
>  Child depends on Parent
...
>  Quite simple, no?
> the "war" in WarB doesn't seems to work..
>
>  Do you have an idea?

It's best to move the code out to a separate project that builds a
jar, and then you can have a dependency on it from both wars.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Running two builds of the same branch simultaneously

2008-03-19 Thread Wendy Smoak
On Wed, Mar 19, 2008 at 8:22 PM, Dan Fabulich <[EMAIL PROTECTED]> wrote:
> Wendy Smoak wrote:
>
>  > You can use -Dmaven.repo.local=... to specify a different local
>  > repository on the command line.
>
>  Is there some way to wire up a POM to make that be the default for my
>  project?

Not really.  It's developer-specific, so it goes in settings.xml (or
on the command line).

It wouldn't make sense in the pom, which needs to work for all developers.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Running two builds of the same branch simultaneously

2008-03-19 Thread Wendy Smoak
On Wed, Mar 19, 2008 at 8:01 PM, Dan Fabulich <[EMAIL PROTECTED]> wrote:

>  The problem with this is the local repository: my X changes may
>  incorrectly commingle with my Y changes.
>
>  Can anyone suggest a way to make this work?  If possible, I'd prefer not
>  to have to login to my box as two separate users to make this work.  (FYI,
>  I'm on Windows XP.)

You can use -Dmaven.repo.local=... to specify a different local
repository on the command line.

(As you've discovered, there is no locking in the local repo, and
concurrent builds using the same local repo are not supported.)

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: limit size of local repository, limit number of snapshots

2008-03-19 Thread Wendy Smoak
On Wed, Mar 19, 2008 at 4:52 PM, Wayne Fay <[EMAIL PROTECTED]> wrote:
> Please do file a JIRA and reply back with the number. I'll see about
>  implementing a plugin to help with this issue, but no guarantees. ;-)

That would be great!  We're also getting requests for cleaning up the
local repository on CI servers such as Continuum:

http://jira.codehaus.org/browse/CONTINUUM-1693

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: inherit execution only for packaging war

2008-03-19 Thread Wendy Smoak
On Wed, Mar 19, 2008 at 6:51 AM, Kees van Dieren
<[EMAIL PROTECTED]> wrote:

>  In our root pom.xml we have the maven war plugin defined:
...
>  On mvn package, it will run mvn war:inplace, but not only for war artifacts,
>  but also for jar artifacts.
>
>  How can we make this execution only applicable for projects with packaging
>  war?

Is it a bug in the war plugin perhaps?  Should it somehow "know" not
to run in the jar modules?

If you don't get more info here, I'd construct a simple example to
demonstrate when it does the wrong thing, and attach it to an issue in
JIRA.  http://jira.codehaus.org/browse/MWAR

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[ANN] Continuum has moved!

2008-03-17 Thread Wendy Smoak
Last month, the ASF Board approved a resolution to make Apache
Continuum a top-level project.  Continuum is a continuous integration
server with Maven 2 support including scheduled builds, release
management, and role-based security.

After almost three years as a part of the Maven project, Continuum has
now settled [1] into its new home at http://continuum.apache.org .

Congratulations to the Continuum team on its "graduation"!

[1]  Please report any remaining construction dust to the
[EMAIL PROTECTED] list, and we'll get it cleaned up right away. :)

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to run a script from a pom.xml file?

2008-03-12 Thread Wendy Smoak
On Wed, Mar 12, 2008 at 4:25 PM, Tawfik, Sameh E
<[EMAIL PROTECTED]> wrote:

>  I tried the exe plugin and it did what I was looking for, but I noticed
>  it repeated the execution few times and not just one time as needed!
...
>  Is there is a way where I can restrict the execution of this exe to just
>  one time?

To have it run just once for the parent, use:  false

 * http://maven.apache.org/ref/2.0.8/maven-model/maven.html

(You should also add an  for the execution.)

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



src/it with maven-assembly-plugin 1.0?

2008-03-11 Thread Wendy Smoak
How soon they forget..

Is it possible to create an archetype that contains a src/it directory
with the old (1.0-alpha-7) archetype plugin?

Looking at this page, I don't see how.
http://maven.apache.org/plugins/maven-archetype-plugin-1.0-alpha-7/examples/archetype.html

I'm trying to create an archetype for a plugin project that contains
an integration test.

(I can't use Archetype 2.0 yet, it requires a newer version of Maven
and we're still on 2.0.5.)

Thanks,
-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven-archetype-plugin 2.0-alpha-2 failed

2008-03-11 Thread Wendy Smoak
On Tue, Mar 11, 2008 at 7:48 AM, thebugslayer <[EMAIL PROTECTED]> wrote:

>  Does anyone know why the earlier version of plugin works, but the latest 
> failed?

Not without seeing some of the build output.  Is it able to find the
archetype (is -DremoteRepositories working?)  Is it some other
problem?

Check JIRA to see if it's already been reported:
http://jira.codehaus.org/browse/ARCHETYPE

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How can I download all the packages from a remote repository?

2008-03-07 Thread Wendy Smoak
On Fri, Mar 7, 2008 at 9:59 PM, youhaodeyi <[EMAIL PROTECTED]> wrote:

>  I use this command to download:
>
>  rsync -avz http://repo1.maven.org/maven2/ ./

As others have mentioned, you'd be much better off running a
repository manager app (Archiva, Artifactory, Proximity) and filling
it up with the things you actually need.

If you really must get the whole thing, check the bottom of this page,
it looks like you can rsync from one of the mirrors:
http://maven.apache.org/guides/mini/guide-mirror-settings.html

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [POLL] Why are you not able to use the most recent maven release?

2008-03-07 Thread Wendy Smoak
On Fri, Mar 7, 2008 at 6:09 PM, Brian E. Fox <[EMAIL PROTECTED]> wrote:

> Wendy: What happens in this case? Does it grab the wrong one or just
>  die? Is there a Jira?

Not sure if it's in JIRA, sorry.  It does not just pick the wrong one,
it dies with an error (and probably with corrupted local metadata.)

I briefly tried to reproduce it at home at some point in the past, but
wasn't able to (so I didn't open an issue.)  It's possible that
there's just something wrong in the repos at work, but whatever it is,
2.0.5 can deal with it and 2.0.7 can't.

We do have a couple of patches on top of the 2.0.5/2.0.7 tags, so
that's another possible culprit if no one else is seeing this.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [POLL] Why are you not able to use the most recent maven release?

2008-03-07 Thread Wendy Smoak
On Fri, Mar 7, 2008 at 2:44 PM, Brian E. Fox <[EMAIL PROTECTED]> wrote:

>  If this is the case for you, please reply and state the version you're
>  using and why (preferably referring to a Jira). We will use this
>  information to prioritize issues for 2.0.10 and beyond.

Some time after 2.0.5, Maven seems to have lost the ability to deal
with multiple repositories containing different versions of the same
plugin.

For example:
* a 'third-party' repository with maven-whatever-plugin version 1.0 final
* a 'sandbox' repository with maven-whatever-plugin version 2.0-alpha-1

I think someone brought this up on the dev list recently as a problem
when trying to test a staged plugin release-- it would be the same
situation, with the latest release of the plugin in the 'central' repo
and the staged one in some other repo.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: property substitution in site files?

2008-03-07 Thread Wendy Smoak
On Wed, Oct 18, 2006 at 3:48 PM, pjungwir <[EMAIL PROTECTED]> wrote:

>  I am trying to generate some site files using the .apt format. (I'm not
>  wedded to that format, but I'm starting there since it's the easiest.) I was
>  hoping to do something like this:
>   ${project.name}

See 'Filtering' at the bottom of
http://maven.apache.org/plugins/maven-site-plugin/usage.html

(Name the file whatever.apt.vm, and it will first filter, then convert
from apt to html.  Requires maven-site-plugin 2.0-beta-6.)

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wiping out a dependency from an internal repository

2008-03-06 Thread Wendy Smoak
On Thu, Mar 6, 2008 at 9:08 AM, Wayne Fay <[EMAIL PROTECTED]> wrote:
> I know I've seen someone mention a plugin here that can either wipe
>  out your entire repo or selected parts of it. But I can't recall what
>  its called right now, and a quick Google search didn't reveal anything
>  (but I didn't dig much). So if someone else remembers, perhaps they'll
>  post a follow-up.

Maven Dependency Plugin -> purge-local-repository maybe?

http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: escaping dollar sign in archetype templates

2008-03-05 Thread Wendy Smoak
On Tue, Mar 4, 2008 at 12:01 PM, Zemian Deng <[EMAIL PROTECTED]> wrote:
> This is the archetype's template pom.xml, not the owning project
>  pom.xml, and hence that line will get processed and removed by the
>  template engine.  I stated in my original email that this is the file
>  in question: src/main/resources/archetype-resources/pom.xml.
>
>  I am not saying this is a good idea. It's just a undocumented
>  workaround that I discovered. I much prefer the archetype plugin
>  itself to provide a way to un-escape the dollar sign so it won't get
>  substituted by engine.  Or simply populate the parameter ${dollar}
>  instead of making user to set it is a step to improvement.

Thanks, it was the owning project's pom that I was concerned about.

Can you add this to the Assembly Plugin's wiki page?
http://docs.codehaus.org/display/MAVENUSER/Assembly+Plugin

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with deploy in maven 2.0.7

2008-03-04 Thread Wendy Smoak
On Tue, Mar 4, 2008 at 10:03 PM, Arun Kathirvel Sarojam
<[EMAIL PROTECTED]> wrote:

> thanks for your fast reply..   Actually my requirement is to track
> every successful build. so after every successfull build i have to version
> that package (in the sense jar or war) then keep it in some  local location
> or repository. how can i achieve  this.does snapshotrepository under
> distributionManagement statisfy my requirement.

Deploying timestamped snapshots (which is the default) should work.
It will look something like this:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/cocoon/cocoon-batik-sample/1.0.0-SNAPSHOT/

(If you need to capture the scm revision number for each build, take a
look at the buildnumber plugin.)

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with deploy in maven 2.0.7

2008-03-04 Thread Wendy Smoak
On Tue, Mar 4, 2008 at 9:13 PM, Arun Kathirvel Sarojam
<[EMAIL PROTECTED]> wrote:

>  when i try to call mvn deloy i am getting  error " The plugin
> 'org.apache.maven.plugins:maven-deploy-plugin' does not exist or no valid
> version could be found"
>
>  but in my  local repository all the versions of maven-deploy jars are
> there...  i need to deploy my snapshot.jar  to snapshot repository and also
> to deployable location.

The metadata in your local repository has probably gotten corrupted.
Try adding -U to the command line to force an update, and if that
doesn't work, delete
~/.m2/repository/org/apache/maven/plugins/maven-deploy-plugin.

(Anyone know which bug this is and whether it's fixed for 2.0.9?)

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: escaping dollar sign in archetype templates

2008-03-04 Thread Wendy Smoak
On Tue, Mar 4, 2008 at 10:37 AM, Zemian Deng <[EMAIL PROTECTED]> wrote:

> Added this on top of pom.xml
>  #set($dollar = '$')

Doesn't that make it invalid xml?  I'm not sure this is a good idea if
anything other than Maven needs to consume the files.

Specifically I wonder whether that line ends up in the pom deployed to
the artifact repository when you release the project.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: escaping dollar sign in archetype templates

2008-03-04 Thread Wendy Smoak
On Tue, Mar 4, 2008 at 9:17 AM, Zemian Deng <[EMAIL PROTECTED]> wrote:
> Never mind, Answered my own question.
>  Setting velocity parameter in pom.xml will be visible as global to all
>  other resources filter.

What did you need to put in pom.xml for this to work?  Sounds like a
good FAQ if it's not in there already.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Release process

2008-03-03 Thread Wendy Smoak
On Mon, Mar 3, 2008 at 7:29 PM, Arash Bizhan zadeh <[EMAIL PROTECTED]> wrote:
> There is 6 Tomcat 5.5 sandboxes, all of them running on RHE 6. There is a
>  load balancer in front of them and we need to release every app on all of
>  them. I am looking for the best practices to manage the releases.

This is more deployment (and configuration management) than "release".

Take a look at Lokahi, currently in the ASF Incubator:
http://incubator.apache.org/lokahi/

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to deploy ears to application instead of repository?

2008-03-03 Thread Wendy Smoak
On Mon, Mar 3, 2008 at 6:57 PM, gotama <[EMAIL PROTECTED]> wrote:

>  What I'd like to do is use Maven to scp some ear artifacts to my server's
>  JBoss deploy directory - not to a repository. How can I do this? When I use
>   the ear is in fact scp'd, but with everything else
>  related to a repository... html files and in a path of
>  .../com/mycomp/project/.
>
>  How can I use Maven to simply copy ears - retreived from the local
>  repository, and scp them to a specific directory on a remote server?

Take a look at Cargo:  http://cargo.codehaus.org/

(Or you could do something as simple as exec-maven-plugin + a shell script.)

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: when will maven 2.0.9 be officially released?

2008-03-02 Thread Wendy Smoak
On Sun, Mar 2, 2008 at 1:28 PM, Andrew Robinson
<[EMAIL PROTECTED]> wrote:
> No, 2.0.7 and 2.0.8 both do not work with JDK 1.6 because of this bug.
>  2.1 fixed the problem. The earlier releases ran plugins and plugin
>  executions in random order due to improper use of HashMap.
>
>  It is really easy to reproduce the problem. I had 3 executions of the
>  maven SQL plugin and they ran out of order in JDK 1.6 and are fine in
>  2.1. JDK 1.5 worked fine as well, so it definitely seems like it was a
>  collections use bug.
>
>  Perhaps MNG-2784 was only a partial fix?

No idea, but it looks like all the related issues are closed.  It's
likely nothing further will happen unless an issue gets reopened or a
new issue is raised.  (It's also possible there's a technical reason
the fix for 2.1 can't be backported to 2.0.)

Have you tried 2.0.9-SNAPSHOT?  If you can't find an open issue that
describes the problem you're still having with 2.0.x, I'd open
another.  Worst case, it might get closed as WONTFIX with an
explanation...

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: when will maven 2.0.9 be officially released?

2008-03-02 Thread Wendy Smoak
On Sun, Mar 2, 2008 at 12:54 PM, Andrew Robinson
<[EMAIL PROTECTED]> wrote:
> Can the fix for http://jira.codehaus.org/browse/MNG-2258 be put in
>  2.0.9? This is a blocking issue for my environment and forces me to
>  use 2.1-SNAPSHOT.

What version were you using before you switched to 2.1?

The issue you mentioned was closed as a duplicate.  It's difficult to
tell with all the links, but MNG-2784 says it was fixed in 2.0.7.

http://jira.codehaus.org/browse/MNG-2784

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ANN] Maven Repository Builder 1.0-alpha-2 Released

2008-03-02 Thread Wendy Smoak
On Sun, Mar 2, 2008 at 6:22 AM, Wim Deblauwe <[EMAIL PROTECTED]> wrote:
> Is there a website of this plugin?
>  Can it be used to create a "backup" repository with all dependencies
>  (including plugins, etc...) to build?

This isn't a plugin, but a shared library.  I believe it's used by the
assembly plugin, which does have the ability to construct a
repository.

Is this what you're looking for?
http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/using-repositories.html

(The latest reference docs and reports for maven-repository-builder
itself will be here in an hour or so:
http://maven.apache.org/shared/maven-repository-builder/ )

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven-jar-plugin question

2008-03-01 Thread Wendy Smoak
On Sat, Mar 1, 2008 at 7:50 PM,  <[EMAIL PROTECTED]> wrote:
> The following POM works as expected when run by itself (it uses
>  org.apache.maven.plugins:maven-jar-plugin:2.1:jar) but when run as part of
>  a multi-module build it uses
>  org.apache.maven.plugins:maven-jar-plugin:2.2:jar. Does anyone have any
>  suggestions as to why this happens and how I can resolve it?

Try putting the maven-jar-plugin declaration in the parent pom,
probably in .

I could be wrong, but I don't think you can use different versions of
the same plugin in the same build.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Misleading error message in Maven2? If not where are .jar files?

2008-02-29 Thread Wendy Smoak
On Fri, Feb 29, 2008 at 9:09 PM, lanchez <[EMAIL PROTECTED]> wrote:

>  I went to the following URL : http://java.sun.com/products/jms/docs.html
>  to download a jar to put in the repo but at this URL there are only PDF
>  files (no reference impl's).

There's one link for the specification, and another that says
"Download the version 1.1 API Documentation, ___Jar___ and Source".
The latter should have what you're looking for.

There's more info about Sun jars, here:
http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Counldn't find junit package

2008-02-29 Thread Wendy Smoak
On Fri, Feb 29, 2008 at 7:21 PM, youhaodeyi <[EMAIL PROTECTED]> wrote:

>  When I run "mvn test" to run my junit test, I always get the error "package
>  org.junit does not exist".

That's odd.  Once again I'd say go back to the quickstart archetype
(which has a JUnit dependency and a simple unit test) and see if you
can reproduce it.

This works for me:
$ mvn archetype:create -DgroupId=com.example -DartifactId=myproject
$ cd myproject
$ mvn test

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A question about resource

2008-02-29 Thread Wendy Smoak
On Fri, Feb 29, 2008 at 6:56 PM, youhaodeyi <[EMAIL PROTECTED]> wrote:

>  I put my resource files in src/main/resources/ directory. After running "mvn
>  compile", why aren't the resource files copied to the target directory.

In general, src/main/resources gets copied to target/classes.

If that's not happening, try to reproduce it with a simple project
started from the quickstart archetype.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: why not deploying?

2008-02-28 Thread Wendy Smoak
On Thu, Feb 28, 2008 at 10:51 AM, author <[EMAIL PROTECTED]> wrote:

>  When I run simple mvn archetype:create –DgroupId=com.litvinyuk
>  –DartifactId=my–app
>   then C:\Documents and Settings\Ang\my-app> mvn compile
>
>  success
>
>  C:\Documents and Settings\Ang\my-app> mvn deploy
>  [INFO]--
>  [ERROR] BUILD ERROR
...
>  WHY???

As the error says, you have not configured the distribution management
urls, so Maven doesn't know where you want to deploy the artifacts.

You can use 'mvn install' to build, test, and install the artifact in
your _local_ repo (typically ~/.m2/repository).

See:  
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting and using the latest archetype plugin

2008-02-28 Thread Wendy Smoak
On Thu, Feb 28, 2008 at 10:02 AM, Andrew Birchall
<[EMAIL PROTECTED]> wrote:


>  The plugins page has the version listed as 2.0-alpha-1. So there you
>  go - you could do better there. Its these little things that cause
>  confusion and a sense of doubt.

Fixed, and thanks for letting us know.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting and using the latest archetype plugin

2008-02-28 Thread Wendy Smoak
On Thu, Feb 28, 2008 at 9:02 AM, Andrew Birchall
<[EMAIL PROTECTED]> wrote:

>  I wish to use the latest archetype plugin, 2.0-alpha-2 (I think that's
>  the latest, although one's never quite sure in the mysterious world of
>  Maven!)

Are you following the announcements mailing list?  The plugins page
also has versions listed:  http://maven.apache.org/plugins/index.html

What could we do better?  [Archetype is perhaps not our best example
right now, the documentation does not exactly match the release.]

>  However when I run mvn archetype:genearte it uses the 1.0-alpha-4
>  version and subsequently can't find this goal.
>
>  Even if I delete this plugin from my local repository maven still
>  downloads the 1.0-alpha-4 version and attempts to use that. (Note: not
>  even the 1.0-alpha-7 version!)

How did you delete it?  You'll need to delete the entire
maven-archetype-plugin directory including the metadata and all the
versions.

>  The documentation states that the default behaviour of Maven is to use
>  the latest version of a plugin.
>
>  How can I get Maven to download and use the latest archetype automatically?

It should Just Work.  2.0-alpha-2 is in the central repo and the
maven-metadata.xml correctly lists that version as the latest:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/

Are you using a mirror or an internal repository?  If so, check the
metadata file, it may be incorrect.

To force it, use the version number on the command line.  Something like:

mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-2:create ...

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven jar-plugin

2008-02-27 Thread Wendy Smoak
On Wed, Feb 27, 2008 at 5:08 AM, Shakun Gupta <[EMAIL PROTECTED]> wrote:

>  I am using Maven 2, and i added the configuration of jar-plugin and
>  war-plugin. I am able to assemble the war at a different place using
>  outputDirectory property. But, this does not work with jar-plugin. I
>  have read in the forums that this is an issue with the jar plugin and
>  this will be updated in JIRA. May i know if my understanding is correct.
>  And if yes, then which version of the jar-plugin contains this fix.

You can search JIRA for the issue and find out the fix version (if
any):  http://jira.codehaus.org/browse/MJAR

Then check to see what's been released:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/

Is it this one?  http://jira.codehaus.org/browse/MJAR-16

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Strange maven compile error

2008-02-25 Thread Wendy Smoak
On Mon, Feb 25, 2008 at 6:27 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote:

> I am suddenly experiencing a strange error when compiling my project (see
>  stack trace below) - the maven compile plugin crashes and then refers to
>  some compiler error which cannot be parced. It even asks me to submit a bug
>  report with the JDC - never encountered anything like this in 12 years of
>  Java coding.
>
>  Strangely - my Eclipse IDE using the *same* JRE (1.5.0.13) is able to
>  compile the very same code without any problems. But as soon as I try to do
>  it with maven (in and outside of Eclipse) I get this error). This is
>  happening on Linux and OS X.
>
>  ANY input would be appreciated - this has put our entire project on hold for
>  an entire day - we have no idea how to fix this.

The first thing I'd do is update to the latest JDK 1.5.0_14 and see if
 it still happens.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven ignores my archetype selection

2008-02-25 Thread Wendy Smoak
On Mon, Feb 25, 2008 at 1:51 PM, Krishnamurthi, Venkat
<[EMAIL PROTECTED]> wrote:

>  That works. Thanks! However, maven does not pick up the URL's specified
>  under  or  in settings.xml.
>   How do we address that issue?

It's a known issue:  http://jira.codehaus.org/browse/ARCHETYPE-59 .
Issues 81 and 89  may also be relevant.

This isn't just an Archetype problem, the Stage plugin suffers from
the same thing.  If there is no "project" (== pom.xml in the current
directory) then Maven does not "see" your settings.xml file.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven ignores my archetype selection

2008-02-25 Thread Wendy Smoak
On Mon, Feb 25, 2008 at 1:21 PM, Krishnamurthi, Venkat
<[EMAIL PROTECTED]> wrote:

>  But the archetype I'm trying to use is in an inhouse remote repository.
>  I have specified that in my settings.xml. However, Maven is still unable
>  to pick that up from settings.xml.
>  I also tried -DarchetypeRepository=.

The 2.0-alpha-2 release was supposed to restore backwards
compatibility, and the parameter used to be -DremoteRepositories=... .
 Does that work?

Old docs:  
http://maven.apache.org/plugins/maven-archetype-plugin-1.0-alpha-7/create-mojo.html

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using different localRepositories in a continuous build environment?

2008-02-25 Thread Wendy Smoak
On Mon, Feb 25, 2008 at 7:55 AM,  <[EMAIL PROTECTED]> wrote:


>  For the reason I have only one settings.xml with one  I
>  now have a problem:
>  the "Snapshot builds" and the "continuous integration builds" share the
>  same localRepository.

You could use -Dmaven.repo.local=/path/to/repo on the command line of
each build execution, to control which ones share the same local repo.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: svnmerge and multi module parent pom version updates

2008-02-23 Thread Wendy Smoak
On Sat, Feb 23, 2008 at 9:56 AM, deckrider <[EMAIL PROTECTED]> wrote:
> We have a number of multi module projects with multiple branches.
>  Unfortunately, this means that every time we use release:prepare
>  release:perform, it updates all the poms, which then appear in another
>  branch (and must be ignored) when we run svnmerge.
>
>  Is there some technique to easily ignore these changes, but pickup
>  other needed pom.xml changes?

What's happening exactly?  I'm not familiar with the svnmerge tool.

Is it *any* update to the poms that causes a problem, or is it the
incremented version number after the release?

(If it's the latter, you don't _have_ to increment/change the "next"
version number.)

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[ANN] Maven Stage Plugin 1.0-alpha-1 Released

2008-02-22 Thread Wendy Smoak
The Maven team is pleased to announce the first release of the Maven
Stage Plugin, version 1.0-alpha-1.

http://maven.apache.org/plugins/maven-stage-plugin/

This plugin assists with staging and promoting releases by allowing
you to copy artifacts from one repository to another.  It currently
supports copying from http|https to scp urls.

You can run 'mvn -up stage:copy ... ' to get the latest version of the plugin.

(Nothing was closed in JIRA for this initial release, so there are no
release notes.)

Enjoy,
-- 
Wendy Smoak
on behalf of the Maven team

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Environment management - I am not sure what to call it really!

2008-02-22 Thread Wendy Smoak
On Fri, Feb 22, 2008 at 11:51 AM, Arash Bizhan zadeh <[EMAIL PROTECTED]> wrote:

> If I put dependencies there, wouldn't all projects download them even though
>  they may not really need them? Can Archiva help us in this situation?

Wayne said , not .  The former is
more like a suggestion to the child project-- if the child project
declares a dependency and leaves out the version, it will get the
version from the parent's  section.

A child project can still override this, so you can't force the
version number from the parent.

Yes, Archiva can help.  You can control the contents so that
developers don't have access to things that are not approved.

(You'll need to use mirrors, and especially mirrorOf * in settings.xml
to prevent access to external repositories.)

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: war libraries scope

2008-02-22 Thread Wendy Smoak
On Fri, Feb 22, 2008 at 9:50 AM, Ben Tatham <[EMAIL PROTECTED]> wrote:
> Does anyone know what scope is used to bring jars in the WEB-INF/lib
>  directory of a war?  It appears to bring in all scope=compile
>  dependencies.  Shouldn't this be just runtime dependencies?
>
>  For example, I am precompiling all my JSPs, so I don't need
>  jasper-compiler library.  According to dependency:tree, its compile
>  scope.  But its still in my WEB-INF lib.  And because of it, so is
>  ant-1.6.5.jar

What does the pom look like?  It's unusual that something like
jasper-compiler (or servlet-api) would show up in the webapp.

If you are declaring those dependencies, use provided
so Maven knows they will be provided by the container and not to
include them.

Be sure to 'mvn clean' after you change the pom, or things under
target may be left over from previous builds and confuse the issue.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting compile time error

2008-02-20 Thread Wendy Smoak
On Wed, Feb 20, 2008 at 10:48 PM, sunrays9 <[EMAIL PROTECTED]> wrote:

>  because of InvalidArgumentException class is available in abi.jar
>  To avoid this error i should provide this jar file at the compile time for
>  the maven.
>
>  so now my question is, How should i provide this jar to maven for compiling.
>  Please respond me.

You'll need to put the jar into a repository, and then declare a
dependency on it.

Here's more than you wanted to know about dependencies...
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

If that jar is available in the central repository you're all set.  If
not, you can install it into your local repository, which you can read
about here:  http://maven.apache.org/plugins/maven-install-plugin/usage.html

(If you're working with a team, the next step would be to set up a
shared remote repository.)

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven 2.0 POM Project

2008-02-20 Thread Wendy Smoak
On Wed, Feb 20, 2008 at 11:11 AM, Brad Smith
<[EMAIL PROTECTED]> wrote:

>  I know this is extreme newbie, but I am very confused about how to get a
>  maven 2.0 project into the build server.  Continuum wants the URL of a
>  POM.xml file - is this the actual project POM, or is it a POM I
>  construct just to create the project in the server?

It is the path to the pom of the actual project you are trying to add,
which must contain the scm url so that Continuum can check out the
code.

> If it is the
>  project POM, I feel very uncomfortable putting all of the SCM
>  information in the project file itself.  What happens when the project
>  moves to a tag or branch?  Does that mean that the POM (and every module
>  POM) has to change to indicate that it is on a branch or tag?

Yes, but the release plugin takes care of updating it to match the tag
when you release.  I believe one of the plugins has support for
branching also.  And you only need to put it in the top-level pom as
long as the directory names match the artifact ids.

-- 
Wendy


Re: Local repository not downloading Eclipse plugins from the internal repository

2008-02-18 Thread Wendy Smoak
On Feb 18, 2008 10:31 AM, Papapara Tudu <[EMAIL PROTECTED]> wrote:

> I'm using Archiva 1.0.1 and Maven 2.0.8.
> My Maven settings.xml are the default ones, no changes (on both machines).
> My pom.xml has the following entry:
...
> 
...

No  ?  You'll need to repeat the repository as a
pluginRepository if you want Maven to check it for plugins.

Also check the repository metadata for the Eclipse plugin.  Plugins
won't work unless the metadata contains the 'release' and 'latest'
elements.  (Possibly only one of those is necessary, but if both are
missing, it won't work.)

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: deploying to archiva repository

2008-02-18 Thread Wendy Smoak
On Feb 18, 2008 4:35 AM, Martin Hoeller <[EMAIL PROTECTED]> wrote:
> On 18 Feb 2008, Sunita Pahwa wrote:
> > I have followed all the steps specified at
> > http://maven.apache.org/archiva/docs/1.0/userguide/deploy.html but it is not
> > working.
>
> Unfortunately this documentation is somewhat inconsistent regarding the
> id's in the settings.xml and pom.xml file.

Thanks, Martin.  I fixed that in the docs for the next version, which
you can see at 
http://maven.apache.org/archiva/docs/1.1-SNAPSHOT/userguide/deploy.html

We've also just added a 'known issues and errata' page and linked to
it from the downloads page.

Please let us know if you see anything else that needs to be
corrected.  (Preferably on the Archiva mailing lists or JIRA --
http://maven.apache.org/archiva/mail-lists.html .)

HTH,
-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to send validation emails [was Re: Unable to send emails]

2008-02-18 Thread Wendy Smoak
On Feb 15, 2008 11:24 AM, Jakub Kozisek <[EMAIL PROTECTED]> wrote:

> I played some more with Continuum and found something interesting - this
> exception is thrown only when sending validation emails. If I build a
> project and with mail notification configured, everything is working like a
> charm. This smells like a bug to me. Any ideas why from-mailbox property
> value from application.xml is used when sending notification emails, but not
> during validation process? Is it known or I'm doing something wrong?

I don't know the reason, but it makes sense that the behavior could be
different.

Continuum incorporates Redback [1] for the user/security bits, so that
is what is sending the validation email.  The build results come from
Continuum itself.

[1] http://redback.codehaus.org

-- 
Wendy


Re: SNAPSHOT

2008-02-17 Thread Wendy Smoak
On Feb 17, 2008 10:14 PM, Ryan H. <[EMAIL PROTECTED]> wrote:

> If my maven2 repository persists each artifact with time stamp as part
> of their filename, is SNAPSHOT version still going to work?

Yes.  It uses the metadata file in the repository to decide which
timestamped file to retrieve.

(Are you using just 'SNAPSHOT' as a version?  Usually it's
1.0-SNAPSHOT or similar.)

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven2 Unit testing

2008-02-17 Thread Wendy Smoak
On Feb 17, 2008 9:00 AM, Filipe David Manana <[EMAIL PROTECTED]> wrote:

> I am using Maven 2 as the build tool for my project.
> My application uses a DataSource provided by Tomcat. Is it possible to write
> unit tests that use this datasource?
> By the way, Tomcat runs on a remote machine, available in a computing center
> and without X11.
>
> I accept suggestions.

What are you really trying to test?  If you're interested in unit
testing the code you're writing, then you might want to mock the data
source and not worry about connecting to the real one.  I always go
back to "JUnit in Action" for this kind of thing. :)

Or are you more interested in running in-container tests that use a
real database?

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: multi module eclipse:eclipse mewbie

2008-02-15 Thread Wendy Smoak
On Feb 15, 2008 9:09 PM, deckrider <[EMAIL PROTECTED]> wrote:

> 1. Check out the project, but don't use Eclipse to check it out.
>
> 2. Run 'mvn elicpse:eclipse' from the parent.
>
> 3. Now start Eclipse and import the existing project.
>
> This results in all the children coming into Eclipse as separate
> modules. However the parent is not available.
>
> Is this expected?  Am I doing something non-standard?  How am I
> supposed to work on the parent project?

Eclipse apparently can't deal with the pom one level up from the
modules.  What I do is File -> New -> File, find the pom, click
'Advanced' and check 'Link to file on the filesystem'.  That at least
makes it available for editing.

You might take a look at q4e or m2eclipse (the Eclipse plugins) to see
if they've found a way to deal with this annoyance.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: I'm not able to delete a group?

2008-02-15 Thread Wendy Smoak
On Fri, Feb 15, 2008 at 4:37 PM, Tawfik, Sameh E
<[EMAIL PROTECTED]> wrote:
>
>  I'm stuck right now, I'm trying to delete a group and recreate it, but
>  when I click on Show Project Groups followed by clicking on a specific
>  group from the group list, and click on "Delete Group" the following is
>  displayed:
>
>  Does anyone know how to fix this problem? Which folder Continuum uses to
>  save all the projects information? If I need to reset Continuum which
>  files needs to be removed?

It's stored in a database - Continuum uses Apache Derby by default.
You can connect to it with a client like Squirrel SQL and make changes
directly, or if you'd like to start over you can delete the entire
database, working copies and build output directories.

(FWIW, I was able to add and immediately delete a project group from
Continuum 1.1.)

-- 
Wendy


Re: create:archetype won't work on my "installed" archetype... can't test my development.

2008-02-15 Thread Wendy Smoak
On Fri, Feb 15, 2008 at 3:56 PM, Mark Diggory <[EMAIL PROTECTED]> wrote:

>  I'm trying to author an archetype for our project and have it located here
>  in source:
>  
> https://dspace-sandbox.googlecode.com/svn/team/maven/plugins/dspace-addon-archetype/trunk
>  My problem is that if I check this out and run
>  mvn package install

(Unrelated, but just 'mvn install' will work.  It will run through all
the phases up to and including install, which already includes
package.)

>  I expect that it will be installed into my local repository and accessible
>  via:
>
>  mvn archetype:create   -DarchetypeGroupId=org.dspace.maven.plugins
>  -DarchetypeArtifactId=dspace-addon-archetype   -DarchetypeVersion=1.5-beta1
>  -DgroupId=org.my.groupid-DartifactId=my-module-name
>
>  but archetype:create can't seem to find it?

What is the error you're seeing?

>  Did the usual Google research... But don't understand the new maven
>  archetype plugin logic.

It may just be a bug/different behavior in the new archetype plugin.
There should be a new release soon that makes it behave more like the
old version.  You can check JIRA or the discussion on the dev list for
more info.

Does it work if you use the 1.0 archetype plugin?  Start with:  mvn
org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create ...

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Restrict Maven to the Rep Manager

2008-02-15 Thread Wendy Smoak
On Fri, Feb 15, 2008 at 1:26 PM, Marcelo Alcantara <[EMAIL PROTECTED]> wrote:

>  Someone knows if there is a way to block maven from downloading from sites
>  other than the artifactory rep?

You can mirrors and mirrorOf * to prevent access to other repositories.

http://maven.apache.org/guides/mini/guide-mirror-settings.html

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: deploy site to a url based on expression

2008-02-15 Thread Wendy Smoak
On Fri, Feb 15, 2008 at 12:50 PM, Yongshin Yu <[EMAIL PROTECTED]> wrote:
> Is there a way that I could set the site url to be dynamic? I would like to
>  publish to a folder based on a ${buildNumber} generated by the
>  maven-buildnumber-plugin. Please let me know.

Well, what happened when you tried it? :)

I use ${project.version} in the site url regularly, but I haven't
tried using a property generated during the build.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Artifacts not being indexed

2008-02-15 Thread Wendy Smoak
On Fri, Feb 15, 2008 at 11:06 AM, Brown, Carlton
<[EMAIL PROTECTED]> wrote:

>  I've got a problem where an artifact downloaded to the filesystem cannot
>  be browsed.  There's some problem with either the database scanning or
>  repository indexing.   The maven metadata files are not being generated.
>  The pom file appears to be good.

By downloaded, do you mean you are using Archiva as a proxy?  Or do
you have an external process that is writing to the filesystem?

The first thing I'd track down is why there is no metadata file.

There is a checkbox in the Archiva config that will make it create
missing metadata files.  Try checking that box and then clicking
'scan' and then 'update database'.  Does it now show up in browse?

(I've seen it create missing metadata files.  I'm less sure about its
ability to repair broken ones.)

-- 
Wendy


Re: [ANN] Maven Archetype Plugin 2.0-alpha-1 for Maven 2 Released

2008-02-14 Thread Wendy Smoak
On Thu, Feb 14, 2008 at 5:52 PM, Bohtvaroh <[EMAIL PROTECTED]> wrote:

>  Is this  http://jira.codehaus.org/browse/ARCHETYPE-23 ARCHETYPE-23
>  implemented in this version? If so, is there some docs about using it?
>  Thanx.

That looks interesting.  I'd suggest starting a new thread with a
descriptive subject line, and describe what you want to do.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: best practices for site deployment over multiple versions of the application

2008-02-14 Thread Wendy Smoak
On Thu, Feb 14, 2008 at 5:51 AM, Ionut Scutaru <[EMAIL PROTECTED]> wrote:
>  Recently we needed to create a new branch for our code and we realized the
>  documentation generated by maven with "mvn site:site" will drift apart in
>  time. So we need to deploy both versions of the site (multiple versions for
>  the future maybe ?)

Here's an example from the Archiva project.  The top-level site is a
separate module and has general information.  The version-specific
documentation is in another module that gets versioned and released
with the code.  And then there are reference docs (Javadoc, test
reports, etc.).  So we end up with:

http://maven.apache.org/archiva (top level site)
http://maven.apache.org/archiva/docs/1.0 (documentation for version 1.0)
http://maven.apache.org/archiva/ref/1.0 (reference docs for 1.0, such
as Javadoc)

(This is done by using ${version} in the distributionManagement site
url, so it always deploys to the right place.)

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Working around MNG-2261 (How can I manually download and install artifact)

2008-02-13 Thread Wendy Smoak
On Feb 13, 2008 9:00 AM, kroe <[EMAIL PROTECTED]> wrote:
>
> MNG-2261 is making creating projects using an archetype difficult.  I have an
> archetype I created.  I want the archetype:create command to download my
> archetype from an internal repository.  The internal repository is specified
> in my settings.xml file.
>
> Due to MNG-2261, the settings.xml repositories are not respected unless
> there is a pom in the current directory.

The archetype plugin just had a new release, but I suspect you're
using the older one.

With that one, you can use -DremoteRepositories=... on the command line.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: generate e-mailaddresses from SVN?

2008-02-13 Thread Wendy Smoak
On Feb 13, 2008 8:22 AM, Doug Knesek <[EMAIL PROTECTED]> wrote:
>
> How are the e-mail addresses of the latest committers determined?

I'm going to guess it's from the list of developers in the pom.  The
 there will need to match the svn id on the commit.

-- 
Wendy


Re: Enforcer Plugin 1.0 release and requirePluginVersions rule

2008-02-12 Thread Wendy Smoak
On Feb 12, 2008 3:22 AM, Simon Kitching <[EMAIL PROTECTED]> wrote:
> Yep, that does seem to break the convention that Wendy described.
> enforcer 1.0-alpha-3 is the latest release, 10-JUL-2007.
> But the site is 1.0-SNAPSHOT 17-JAN-2008.

Yes, ideally it would be 1.0-alpha-3 at
http://maven.apache.org/plugins/maven-enforcer-plugin,
with (optional) snapshot docs at
http://maven.apache.org/plugins/maven-enforcer-plugin-1.0-SNAPSHOT .

Brian may have done this for a reason, but I'll check the 1.0-alpha-3
docs and see if they can be published.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Enforcer Plugin 1.0 release and requirePluginVersions rule

2008-02-11 Thread Wendy Smoak
On Feb 11, 2008 8:00 AM, nicolas de loof <[EMAIL PROTECTED]> wrote:
> Even better if we had a site per public version, ie :
>
> http://maven.apache.org/plugins/maven-eclipse-plugin/2.3
> http://maven.apache.org/plugins/maven-eclipse-plugin/2.4
> http://maven.apache.org/plugins/maven-eclipse-plugin/2.5-SNAPSHOT

It's not widely known (yet) but this is also starting to happen.  For example:

 * http://maven.apache.org/plugins/maven-archetype-plugin-1.0-alpha-7

(Check the dev list archives for discussion.  We probably need to
bring it up again there and get it incorporated into the plugin
release docs if people think it's useful.)

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Enforcer Plugin 1.0 release and requirePluginVersions rule

2008-02-11 Thread Wendy Smoak
On Feb 11, 2008 7:45 AM, Ian Springer <[EMAIL PROTECTED]> wrote:

> +1 for not posting SNAPSHOT plugin docs on the website. The docs should
> correspond to the latest released version.

That's the model we now follow, though there may still be some
leftover snapshot sites if the plugin hasn't been released in a long
time.

And there are some exceptions, such as
http://maven.apache.org/plugins/maven-archetype-plugin/ .  (In this
case I published snapshot docs because they were committed _after_ the
recent 2.0-alpha-1 release.  I don't believe there were any code
changes yet, so these docs should stay until 2.0-alpha-2 is released.)

Ben, are there some in particular that caused problems for you?

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Library Project Confusion

2008-02-09 Thread Wendy Smoak
On Feb 9, 2008 7:41 AM, oliverw <[EMAIL PROTECTED]> wrote:

> Let's say we have project A producing a class library consumed by projects B
> and C. Is there a way around making A the parent of B and C?

In B and C, declare a dependency on A.

If you give a more concrete example, you'll probably get better
advice.  What are you building, and what made you think A should be
the parent?

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Generate PDF books from maven

2008-02-08 Thread Wendy Smoak
On Feb 8, 2008 4:27 AM, Julien Graglia <[EMAIL PROTECTED]> wrote:

> What do you use to generate PDF books?

Here's one option based on DocBook:  http://code.google.com/p/docbkx-tools/

There's also some work happening in the sandbox on a PDF plugin like
Maven 1 used to have, which converts the apt and xdoc source into a
PDF.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Admin account locked

2008-02-06 Thread Wendy Smoak
On Feb 6, 2008 11:19 AM, MATHUS Baptiste <[EMAIL PROTECTED]> wrote:
> It seems I f#^$d up something with my archiva instance. I wasn't able to 
> remember my admin password, so I asked for a reset.
> I reset the account three or four times.
>
> Now, I'm locked, each time I try to log in, I've got the 
> http://mvnrepo:4000/archiva/index.action?infoMessage=Account+Locked url.
>
> What can I do ? Even server-side operation to unlock me would help :-).

Stop Archiva, then re-start it.  The admin account should unlock.

If that doesn't work, you can connect to the users database directly
and modify it.

(You can safely ignore the NoSuchPropertyExceptions in the logs.)

-- 
Wendy


Re: Updating Meta Data

2008-02-05 Thread Wendy Smoak
On Feb 5, 2008 11:54 AM, nadias <[EMAIL PROTECTED]> wrote:
>
> Actually, I would like to use deploy:deploy-file but since it doesn't update
> the metadata, I would like to force it to update the metadata somehow -
> similar to how deploy or deploy:deploy works.

This is circular.  It's a bug.  If you could make it work, it wouldn't
be a bug. :)

http://jira.codehaus.org/browse/MDEPLOY-52

Depending on how badly you want this fixed, you might take a look at
the deploy plugin source code and see what it would take to make
deploy-file do the same thing with the metadata that deploy already
does...

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Updating Meta Data

2008-02-04 Thread Wendy Smoak
On Feb 4, 2008 6:57 PM, nadias <[EMAIL PROTECTED]> wrote:

> What is the command that updates the metadata when we use Maven's
> deploy:deploy?

-DupdateReleaseInfo=true perhaps?

http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html

And you probably want 'mvn deploy' (the lifecycle phase) rather than
'mvn deploy:deploy' (plugin:goal syntax).

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error Using Maven-Stage-Plugin

2008-02-04 Thread Wendy Smoak
On Feb 4, 2008 5:50 PM, nadias <[EMAIL PROTECTED]> wrote:

> Does maven-deploy-plugin also use Wagon internally, but file:/ can be used?

Yes, the deploy plugin can use file:// urls.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error Using Maven-Stage-Plugin

2008-02-04 Thread Wendy Smoak
On Feb 4, 2008 4:29 PM, nadias <[EMAIL PROTECTED]> wrote:
>
> I used:
> mvn stage:copy -Dversion=1.0-SNAPSHOT
> -Dsource="file:/path/to/local/repo/plugin"
> -Dtarget="file:/path/to/remote/repo/plugin2"

AFAIK it only supports copying from http:// to scp:// urls (but maybe
something has changed.)

http://maven.apache.org/plugins/maven-stage-plugin/usage.html

Also keep in mind that this plugin has not yet been released; use only
if you like the bleeding edge. :)

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Repository Blacklist

2008-02-01 Thread Wendy Smoak
On Feb 1, 2008 2:03 PM, simon <[EMAIL PROTECTED]> wrote:

> It seems to me that there was a similar question very recently, and that
> the answer was that maven *does* remember blacklists across runs.

It doesn't remember the blacklist.  It does remember individual plugin
download failures by virtue of writing incomplete metadata files into
the local repo.   (Yes, there's an issue open.)  That's why -U to
force an update usually fixes it.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven clean plugin not working

2008-01-29 Thread Wendy Smoak
On Jan 29, 2008 6:32 PM, 8 <[EMAIL PROTECTED]> wrote:

> I'm new to Maven and I'm having some issues using the clean plugin.  When I
> run the clean lifecycle phase (or clean:clean goal), I get the following
> error:
...
> I believe my proxy settings are correct (my settings.xml):

Try adding -U to the command line:  'mvn clean -U'.

My guess is that it failed once before you configured your proxy, and
now you're running into the daily update policy.  (Check the list
archives, this comes up a lot. There's an issue open to improve this
behavior so it doesn't 'remember' a failed download.)

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: proxied repositories -- plugin question

2008-01-29 Thread Wendy Smoak
On Jan 29, 2008 1:44 PM, Eric Miles <[EMAIL PROTECTED]> wrote:
> Figured out my problem although not sure why it's NOT a problem when I
> don't use Archiva.  This particular plugin (and no others) requires that
> I specify the version in order for the dependency to be downloaded.
> This isn't desirable as I'd like to have the upgrades to the plugins
> when they happen, however this is a workaround.
>
> Is this particular plugin deployed incorrectly?  Is that why
> archiva/maven can not find the correct current version information?

I'm curious, what does the maven-metadata.xml file look like through
Archiva?  Does it match what you see in the remote repo?

(If it's missing the 'latest' and/or 'release' elements for a plugin,
Maven will complain.)

FWIW, specifying the plugin version is a best practice to help ensure
reproducible builds.

-- 
Wendy


Re: [m2] when is the dashboard going to be out of snapshot?

2008-01-29 Thread Wendy Smoak
On Jan 29, 2008 11:35 AM, Mick Knutson <[EMAIL PROTECTED]> wrote:

> I am using the dashboard plugin but I can't use the release plugin because
> the dashboard is still snapshot.

This one?  http://mojo.codehaus.org/dashboard-maven-plugin/

It's a Codehaus plugin, so the right place to ask is on the Mojo
Development list.

Rather than just asking when it's going to be done, though, the
developers might like to hear that you have successfully used it for X
or Y -- i.e., give them some confidence that it's ready to be
released.

Checking JIRA might also give an idea of what's left to be done
(whether there are any blocking issues) but I don't see a project for
it on http://jira.codehaus.org/browse .

You always have the option of doing an "internal release" to your
organization's private repository, though it can be tedious to track
down all the dependencies.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: update/creation of maven-metadata.xml file

2008-01-29 Thread Wendy Smoak
On Jan 29, 2008 9:44 AM, Tom Huybrechts <[EMAIL PROTECTED]> wrote:

> If you specify an explicit version in your POM, I would think that Maven
> always finds it ?

Probably, (and that's definitely a best practice,) but not everything
uses a pom.

'mvn archetype:create' comes to mind, for example... as well as 'mvn
deploy:deploy-file' itself.

Some corporate environments require approvals and manual deployment of
every artifact into their internal repos to tightly control what is
available.  I don't see a way to deploy a plugin with the correct
metadata until MDEPLOY-52 is fixed.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: update/creation of maven-metadata.xml file

2008-01-29 Thread Wendy Smoak
On Jan 26, 2008 4:20 PM, nadias <[EMAIL PROTECTED]> wrote:
>
> Will this work deploy-file or just deploy?  I am working with deploy-file but
> it is not updating the metadata even if I specify this parameter.

The updateReleaseInfo parameter is not listed for the deploy-file goal.
 * http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html

Vote for it!  http://jira.codehaus.org/browse/MDEPLOY-52 :)

This seems to make it impossible to deploy a working plugin with
deploy:deploy-file.  The 'latest' and 'release' elements seem to be
required, or Maven complains that it can't find the plugin at all. :(

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: pom.xml jar scope

2008-01-29 Thread Wendy Smoak
On Jan 29, 2008 7:00 AM, faisalloe <[EMAIL PROTECTED]> wrote:
>
> NOp it didn't worked out

We *always* need more information than "it didn't work".  By this I
assume you mean that the jar is still getting included in WEB-INF/lib.

Using provided scope _should_ work.

Make sure you run 'mvn clean' to delete anything left over from prior
builds, and then try 'mvn install' again.

If it still doesn't work, show us the dependency snippet from your
pom, and explain what's going wrong.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to specify local jars as dependencies?

2008-01-29 Thread Wendy Smoak
On Jan 29, 2008 6:53 AM, Martin Gainty <[EMAIL PROTECTED]> wrote:

> I've been looking for a way to specify a location that is guaranteed to
> contain
> PUBLICLY ACCESSIBLE LOCATION for ALL MAVEN2 PLUGINS
>
> Failing that.. is there a way to gain access to the plugins individually so
> we can d/l them to local drives ?

Might want to start a new thread, this seems unrelated to the OP's
need to refer to dependencies w/o installing them in the local repo.

The publicly accessible location is the central repo:
http://repo1.maven.org/maven2, but I'm sure you knew that already.
You can't guarantee "ALL" -- people are free to set up their own
repos.  OpenSymphony comes to mind, I don't think all of their stuff
is in central.

What is the problem you're trying to solve?

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Dependency Order, src/test/resources not overriding src/main/resources

2008-01-29 Thread Wendy Smoak
On Jan 29, 2008 3:49 AM, Andrew Seales <[EMAIL PROTECTED]> wrote:

> I recently updated maven using mvn -U  and since yesterday
> projects which have properties files of the same name in
> src/test/resources and src/main/resources now no longer have the version
> in src/test/resources taking precedence over the ones in
> src/main/resources when running mvn test(for example database properties
> files).
>
> Is this an intentional change or is there a bug in a recent plugin version?

What version of Maven are you using?  I thought this was fixed in
2.0.8... http://maven.apache.org/release-notes.html

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Checking out and building on remote machine using continuum

2008-01-29 Thread Wendy Smoak
On Jan 28, 2008 5:52 PM, Buvana Jayaraman <[EMAIL PROTECTED]> wrote:

> I am new to Continuum and trying to set up a shell project.
>
> Continuum is installed on the same machine as the SVN repositories. But
> I would like to use another machine for the build. Is there a way to
> check out and build the code on a remote machine using Continuum?

When you add a Shell project, there is a field for the scm url.

http://maven.apache.org/continuum/docs/1.1/user_guides/managing_project/addProject.html#Shell_Project

-- 
Wendy


Re: Continuum 1.1 standalone run-time error on Windows server 2003.

2008-01-28 Thread Wendy Smoak
On Jan 28, 2008 6:40 PM, Tawfik, Sameh E <[EMAIL PROTECTED]> wrote:
>
> I just installed Continuum 1.1 on Windows Server 2003 - Enterprise
> Edition with Service Pack 1, by extracting all the files from
> apache-continuum-1.1.zip
>
> Next, I run C:\continuum-1.1\bin\windows-x86-32\run.bat
...
jvm 1| Caused by: java.net.BindException: Address already in use:
JVM_Bind

Looks like you already have something running on port 8080.  You can
change the port number in one of the xml files, I think you'll find it
if you search for 'jetty.port', or check the docs.

-- 
Wendy


Re: How to include the dependencies in the built jar?

2008-01-25 Thread Wendy Smoak
On Jan 25, 2008 10:48 PM, Thomas Chang <[EMAIL PROTECTED]> wrote:

>   assumed we have a project with packaging jar. When we build the project 
> with "mvn package", a jar is build. But the dependencies in the project are 
> not included in the built jar. Is it possible to include the dependencies in 
> the built jar?

Take a look at the assembly plugin.  There are a few standard
assemblies... it sounds like jar-with-dependencies might be what you
want.

If not, you can define your own descriptor to create what you need.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: archiva-1.0-bin download failed

2008-01-25 Thread Wendy Smoak
On Jan 25, 2008 5:09 PM, Zemian Deng <[EMAIL PROTECTED]> wrote:

> Hi, has anyone notice this very of Strandalone download is corrupted?

I'm having trouble getting to the site at the moment, but can you
please try the download again from a different mirror?

(I think they rotate automatically, but pay attention to the url, and
try more than one.)

I'll check as soon as I figure out what's gone wrong with dns around here. :)

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Choosing ids for mirrors and repositories

2008-01-25 Thread Wendy Smoak
When defining mirrors, do you prefer to use a different id, or are
there any problems with reusing the id for the repo being mirrored?

In other words, would you do this:

  
m-internal <-- different id
internal
...
  

or this

  
internal
internal
...
  

?

Background:  In order to use mirrorOf=*, I find that I have to define
a mirror for all of the repositories I want to allow access to, and
then choose one of those as mirrorOf=* to catch any unwanted extras.
(I don't have a single repo that has everything in it.)

Thanks,
-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is there a tool that can dowload and package the dependencies from Maven repository?

2008-01-25 Thread Wendy Smoak
On Jan 25, 2008 6:46 AM, Chris A.
<[EMAIL PROTECTED]> wrote:
>
> So, the only way I found to remove the jar of my module from the zip file of
> all the dependencies is to exclude the module explicitely in the
> DependencySets of the assembly configuration file. Does this kinds of
> packaging constitute a good practice? if not, is there another way to do it?

Often, people build the assembly from a separate module with packaging of 'pom'.

Then you can do what you need in the pom for the assembly, without
affecting the pom for your artifact.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Continuum 1.1 standalone on WindowsXP doesn't send email?

2008-01-24 Thread Wendy Smoak
On Jan 24, 2008 5:41 PM, Tawfik, Sameh E <[EMAIL PROTECTED]> wrote:

> Also, I noticed whenever I run a build; the icons do not change unless I
> press F5 to refresh the screen! So, is there is a way, where I can have
> Continuum automatically updates the build icons?

The page will refresh automatically, but perhaps not as often as you'd like.

Right click and view source, you'll see:  

I think that's every 5 minutes.  You can probably find the file(s) and
change it (let us know if you need help finding it).  (We should make
it configurable...)

-- 
Wendy


Re: mavenizing someone else' libraries (in the form of jars of course)

2008-01-24 Thread Wendy Smoak
On Jan 24, 2008 12:18 PM, Frank Wilson <[EMAIL PROTECTED]> wrote:

> I'm trying to package someone else's library so that I can put it in
> my maven repo and share it with my collegues.

You don't need to do anything to the jar, just deploy it as-is to your
internal remote repository.  You might want to write a pom for it, to
take advantage of transitive dependencies, but this is not required.

See:  http://maven.apache.org/plugins/maven-deploy-plugin/usage.html
(scroll down to the 'mvn deploy:deploy-file ...' example.)

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2][archiva1] Issue deploying to Archiva

2008-01-24 Thread Wendy Smoak
On Jan 24, 2008 12:20 PM, Christopher Lumpkin <[EMAIL PROTECTED]> wrote:

> I have the same issue, and I followed your suggestion of matching up the
> id's, but I still get the 401 error.

How was the user account created?  Can you log in with the
userid/password you have in settings.xml?

If the user was admin-created (vs. self-registered) you might be
running into http://jira.codehaus.org/browse/MRM-584 .

(There are more hints on working around that on the similar Continuum
issue, http://jira.codehaus.org/browse/CONTINUUM-1611 .)

Please follow up on the Archiva user list if you're still having
trouble.  http://maven.apache.org/archiva/mail-lists.html

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Creating Users

2008-01-24 Thread Wendy Smoak
On Jan 24, 2008 9:02 AM, Mac-Systems <[EMAIL PROTECTED]> wrote:

> today i run into following Problem. Me as Continuum Admin wanted to
> create a new User lets say:
> User: Testuser
> PS:Testuser77
>
> when i log out as Admin and try to log in as Testuser i always get
> something like
> 'You have entered an incorrect username and/or password.'

It's a known issue with users that are created vs. self-registered.

http://jira.codehaus.org/browse/CONTINUUM-1611

To work around it, you can use the 'Resend Validation' button, update
the database directly to set the 'validated' bit, or just turn off the
requirement for email validation altogether.

-- 
Wendy


Re: Inser jar file in repository

2008-01-23 Thread Wendy Smoak
On Jan 23, 2008 8:54 AM, Arthur  Rodrigues Stilben
<[EMAIL PROTECTED]> wrote:

> I have a project "A" that depends of "B.jar" file. That "B.jar" is already 
> done, I just want to put it in repository so that I can use it in project "A".

You can install B.jar in your local repository with 'mvn
install:install-file ...'

 * http://maven.apache.org/plugins/maven-install-plugin/usage.html

(If you are working in a team, consider establishing an internal repository.)

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



<    2   3   4   5   6   7   8   9   10   11   >