Re: maven-war-plugin - single jar in /WEB-INB/lib?

2009-08-10 Thread Heinrich Nirschl
On Mon, Aug 10, 2009 at 5:01 PM, Comerford,
Seansean.comerf...@espn3.com wrote:
 I have a Maven 2.0.9 webapp build that uses the WAR plugin.

 Is there a way to have JUST foo-2.0.jar show in WEB-INF/lib instead of all
 the other jars?

Yes, have a look at the packagingExclude and packagingInclude parameters in
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html

But I do not understand why you would like to have this.

- Henry

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven-plugin-plugin parser problem

2009-07-26 Thread Heinrich Nirschl
On Sun, Jul 26, 2009 at 5:11 PM, Eric Rotickpc.gree...@gmail.com wrote:

 /*/
 /* Package that this class is in                             */
 /*/

I guess, it would already help if your comments do not start with
/**. For example, try to put a space after the first asterisk.

- Henry

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven error: can not create the java virtual machine

2009-07-03 Thread Heinrich Nirschl
2009/7/2 yuting lv yutin...@gmail.com:
 then  changed my MAVEN_OPTS to this: -Xms256m -Xmx256m

 user environment varialbe:
 Path                                 %JAVA_HOME%\bin;%M2_HOME%\bin;
 JAVA_HOME                 D:\Program Files\Java\jdk1.6.0_02
 M2_HOME                      D:\Program Files\apache-maven-2.2.0
 M2                                    %M2_HOME%\bin
 MAVEN_OPTS               -Xms256m -Xmx256m

Note the quotes around the value of MAVEN_OPTS! Try again after doing

set MAVEN_OPTS=-Xms256m -Xmx256m

- Henry

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Creating archetypes and disabling velocity

2009-05-10 Thread Heinrich Nirschl
On Sun, May 10, 2009 at 3:13 PM, Doug Hughes dhug...@alagad.com wrote:
 As a last test, I intentionally put invalid XML in the
 archetype-metadata.xml file.  I was able to run archetype:create without it
 reporting an XML error.  This tells me it's ignoring my metadata file
 anyhow any ideas on what I can do to work around this?

I think, this file is only used, if you use the archetype:generate goal.

 [line 17,column 31] : $tagext is not a valid reference.

For the references that should go unchanged into the generated sources
I usually do

#set ($d = $)

... ${d}{target} ...

This will expand to ${target} and will not raise a warning.

- Henry

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Creating archetypes and disabling velocity

2009-05-10 Thread Heinrich Nirschl
On Sun, May 10, 2009 at 7:37 PM, Doug Hughes dhug...@alagad.com wrote:
 Rather than editing my source files, is there not a way to disable velocity
 for spcific files or folders?  I ask because some of the problem files in my
 archetype are binary.  I'm not too comfortable editing those by hand as you
 suggest.  And I think they may be related to the problems I'm seeing.

Did you try the filtered=false attribute in the
archetype-metadata.xml file when you used the archetype:generate goal?

- Henry

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: mvn classpath weirdness with eclipse plugin

2009-05-06 Thread Heinrich Nirschl
On Wed, May 6, 2009 at 12:29 AM, Davis Ford
davisf...@zenoconsulting.biz wrote:
 I am at a loss.  We have no exclusions in the pom.  Where should I look 
 next?

Hello Davis,

I remember, that this has popped up on the mailing list before. If I
am not mistaken the suggested fix was to set the ajdtVersion to none
(see [1])

[1] 
http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html#ajdtVersion

- Henry

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Troubles creating Hudson plugin

2009-04-17 Thread Heinrich Nirschl
On Fri, Apr 17, 2009 at 11:06 PM, david.schroeder
david.schroe...@i-cubed.com wrote:
 org/jvnet/hudson/maven/plugins/hpi/CreateMojo (Unsupported major.minor 
 version 49.0) 

Not sure, but this looks like you need to upgrade your Java to = 1.5

Henry

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Release Plugin scmCommentPrefix issues

2009-04-08 Thread Heinrich Nirschl
On Tue, Apr 7, 2009 at 5:12 PM, Mykel Alvis mykel.al...@gmail.com wrote:
 When performing a release, I want to place an identifier into the release
 tag commit message (in subversion, in my case).

 Pasted directly from my command line running maven 2.0.9 with release plugin
 2.0-beta-9:

 $ mvn -B -DscmCommentPrefix=CM-524   release:prepare
 ---
 constituent[0]: file:/opt/maven/lib/maven-2.0.9-uber.jar
 ---
 java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at
 java.lang.AbstractStringBuilder.setLength(AbstractStringBuilder.java:146)
        at java.lang.StringBuffer.setLength(StringBuffer.java:154)
 {rest removed}

 Does the space in my scmCommentPrefix cause this?  I place the space there
 to separate the id from the rest of the string.

 Apparently whitespace is a problem, since
  mvn -B -DscmCommentPrefix=CM-524_  release:prepare
 works correctly.

 I looked in Jira but none of the issues seemed to match my problem.
 Apparently any whitespace within the string causes this issue.  Am I
 supplying the string incorrectly somehow?

 Thanks

 Mykel


This could be related to http://jira.codehaus.org/browse/MNG-2190

Maven does some magic to recover the command line parameters for
shells that do not support $@ and this fails in some cases.

Henry

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Why I get ClassNotFoundException ?

2009-04-06 Thread Heinrich Nirschl
On Mon, Apr 6, 2009 at 4:46 PM, HHB hubaghd...@yahoo.ca wrote:
 WARN  - DriverManagerDataSource    - Could not load driverClass
 com.jdbc.mysql.Driver
 java.lang.ClassNotFoundException: com.jdbc.mysql.Driver

The package name is wrong. Try with com.mysql.jdbc.Driver.

- Henry

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Possible problem when multiple developers depend on SNAPSHOT versions

2009-03-25 Thread Heinrich Nirschl
On Wed, Mar 25, 2009 at 8:10 PM, Trevor Harmon tre...@vocaro.com wrote:
 What can be done to prevent Bob's problem?

An easy solution is: When Alice prepares the release, she says Hey
Bob, I'm doing a release of Foo.

Henry

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: site plugin ignoring proxy settings?

2009-03-12 Thread Heinrich Nirschl
On Thu, Mar 12, 2009 at 12:47 PM, Thorsten Heit th...@gmx.de wrote:
 When I build the project's web site with mvn site or mvn site:site, the
 build hangs for about 15-20s when it is generating the dependencies report,
 then a first warning message appears saying the repository 'java.net' is
 invalid, another 15-20s pause until the second message is shown with
 repository 'java.net' replaced by 'central':


I can confirm this behaviour. The mirror setting is ignored by the
project-info-reports:dependencies report. This was already the case
with the last release of the PIR plugin, its not new with version
2.1.1.

regards,
Henry

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Excluding Manifest.MF when generating jar-files

2009-02-12 Thread Heinrich Nirschl
On Thu, Feb 12, 2009 at 8:29 AM, Weichselbaumer Michael (MWE 4170)
michael.weichselbau...@ntswincash.com wrote:
 Manifest.MF files are created dynamically, but I need to compare newly
 built jar-artifacts to older ones in order to find out if they have
 changed. This is done by simply checking md5 hashes. Those hashes are
 modified by the manifest.mf ... therefore I need to get rid of it ...

The jar file stores also the file date of the individual files. I am
not sure I fully understand what you are trying to do, but the
MANIFEST.MF file is probably not your only problem.

Henry

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: questions about profiles?

2008-12-19 Thread Heinrich Nirschl
On Fri, Dec 19, 2008 at 10:43 AM, aymen83 aymen.bhm...@yahoo.fr wrote:

 hi

 i've been searching for a way to override the version of an Artifact using
 profiles, is that possible?
 the idea is to change the version of framework when compiling a project, for
 instance, the project is compiled using spring 2.5 and i want to write a
 profile to compile it with the version 2.0

You will need two profiles, one for version 2.5 (make it active by
default) and one for version 2.0. Within the profiles, you can either
declare the the whole dependency or just a property with the version
number.

In the particular case from spring 2.0 to spring 2.5 it may be
slightly more complicated because the packaging into spring modules
was changed between the versions. This means you may need other
dependencies unless you use the full spring.jar.

- Henry

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Enforce plugin versions and reporting plugins

2008-12-12 Thread Heinrich Nirschl
On Fri, Dec 12, 2008 at 7:22 PM, Wendy Smoak wsm...@gmail.com wrote:
 On Fri, Dec 12, 2008 at 7:28 AM, Nick Stolwijk nick.stolw...@gmail.com 
 wrote:
 3. Declare reporting plugin in reporting section without a version and
 declare a build/pluginmanagement/plugin with a version
- Enforcer plugin doesn't complain.
- help:effective-pom doesn't show a version

 Especially use case 3 seems a bit off.

 As Jörg mentioned, (and you discovered,) pluginManagement does not
 apply to reporting plugins.

 There are a couple of related issues in JIRA you might want to watch/vote for:

 http://jira.codehaus.org/browse/MNG-2578 Make it possible to set
 default versions for reporting-plugins (i.e. plugins under
 reporting)

 http://jira.codehaus.org/browse/MNG-1931 Add a reportingManagement section

So the enforcer plugin should complain in this case, shouldn't it?

- Henry

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Compilation failure .. symbol: method lookup(java.lang.String) -- EJB 2

2008-11-15 Thread Heinrich Nirschl
On Sat, Nov 15, 2008 at 6:11 PM, Michael Hüttermann
[EMAIL PROTECTED] wrote:
 I'm just wondering: no one did ever compile an EJB 2 project with Maven 2
 ???


 Michael Hüttermann schrieb:

 Hello,

 I have an EJB 2.1 project (the relevant POM snippets below). If I want to
 compile it I get a Build Failure:
 Compilation failure ..
 symbol: method lookup(java.lang.String)
 location: interface javax.ejb.SessionContext

I guess, that's just a problem with your Java code. The error message
indicates, that you try to use a method lookup which does not exist
in the interface javax.ejb.SessionContext.

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



Re: Is dependency exclusion broken for WAR files?

2008-11-13 Thread Heinrich Nirschl
Did you run mvn clean before the new build?


On 11/13/08, Jon Strayer [EMAIL PROTECTED] wrote:
 I added XFire-all to my dependencies and it pulled in all of the submodules
 of XFire.  I want to exclude them from the war so I added them as exclusions
 to the XF-all dependency.  They are sill being added to the war.  Did I do
 something incorrectly or is it broken?

 --
 Esse Quam Videre
 To Be, rather than to Seem


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



Re: Project organization question.

2008-11-07 Thread Heinrich Nirschl
On Thu, Nov 6, 2008 at 9:46 PM, David C. Hicks [EMAIL PROTECTED] wrote:
 Hi folks,

 Our project current produces a WAR, but we also have an assembly that
 combines that WAR with a few other release files.  I realize that a
 project should really only have a single artifact.  So, I'm wondering if
 this is a good place to break a project into a couple of modules, then let
 one of those modules be the assembly artifact??  It's the assembly that I
 eventually want to release for public consumption.

Yes, I would set up 3 maven projects (assuming that no other modules
are needed):
- the WAR
- the assembly (which depends on the WAR)
- a common parent of the two (packaging type POM, with the other two
projects as modules)

With this structure, you can still build all your artifacts with a
single maven command. Furthermore, you have a place to define common
properties or dependency versions by putting these settings into the
parent.

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



Re: question about the pluxes components.xml?

2008-10-14 Thread Heinrich Nirschl
2008/10/13 陈思淼 [EMAIL PROTECTED]:
 I am better familiar with spring-framework, is the role-hint the same as the
 spring bean id which the container to locate the bean when needed, and the
 pluxes more specific becourse it group by interface type and use role-hint
 to describe eche one?


role and role-hint together more or less correspond to what spring
calls the bean id.


Re: Installing a checked-out JAR, not the packaged one

2008-10-08 Thread Heinrich Nirschl
On Tue, Oct 7, 2008 at 9:25 PM, Michael Hüttermann
[EMAIL PROTECTED] wrote:
 Thanks! Isn't there any way to jump into the lifecycle and prevent Maven
 to deploy the packaged jar ?? Or: to prevent Maven to package the jar?


As far as I know, the pom lifecycle does not have plugins bound to
phases. So you could change the packaging type of the module to pom
and bind the plugins you want to run explicitly. You´ll probably have
to experiment a bit but I think it might work.

Btw. is this jar some sort of library (in that case it is better to
deploy it to a repository) or is it built by eclipse? In the latter
case you should consider to let maven compile the classes and assemble
the jar. This leads to more reproducible results.

Henry

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



Re: mvn eclipse:eclipse should use a different variable name than M2_REPO

2008-07-11 Thread Heinrich Nirschl
On Fri, Jul 11, 2008 at 12:39 PM, Arand, Thomas (NSN - DE/Muenich)
[EMAIL PROTECTED] wrote:
 Hi all,

 I want to add two projects to eclipse. Unfortunately, they require the
 use of two different local maven repositories. Unfortunately, mvn
 eclipse:eclipse generates .classpath files where the repository is
 referenced by the M2_REPO variable. In order to support different local
 maven repositories it would be required to generate a user-supplied
 variable name.

 Any ideas how to do that? However I do not want to replace the variable
 name by hand...

Just out of curiosity, why do you need two local repositories?

To solve this, you could create a second eclipse workspace (the variables are
local to the workspace).

- Henry

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



Re: Re: javadoc plugin [Virus checked]

2008-06-25 Thread Heinrich Nirschl
On Wed, Jun 25, 2008 at 12:54 PM,  [EMAIL PROTECTED] wrote:
 Caused by: org.apache.maven.reporting.MavenReportException: Exit code: 1 -

It seems, that Javadoc is exiting with a return code of 1. Maybe there
is an interesting error message before the lines you have pasted that
helps to track down the problem.
You may also try to run javadoc manually (without Maven) to get a hint
why it is failing.

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



Re: javadoc plugin [Virus checked]

2008-06-24 Thread Heinrich Nirschl
On Tue, Jun 24, 2008 at 9:30 AM,  [EMAIL PROTECTED] wrote:

 does anybody know why the following happens:

 in a project we just recently converted to MAVEN with about 460 classes to
 compile,
 the MAVEN task for generating the javadoc does NOT complete.

Can you give some more details (e.g. an error message)?

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



Re: versions on central-repo (stupid question)?

2008-05-23 Thread Heinrich Nirschl
On Thu, May 22, 2008 at 10:41 PM, kawazu [EMAIL PROTECTED] wrote:
 Folks;

 after merrily using maven2 for quite a while, by now I dealt with
 defining dependency using version ranges for the first time - and
 failed, not sure why. Maybe I am just too stupid, and maybe someone can
 help me outta this?

 Example: Dependency defined is

dependency
groupIdjmimemagic/groupId
artifactIdjmimemagic/artifactId
version[0.1,)/version
scopecompile/scope
/dependency


 Looking to repo1.maven.org/maven2/jmimemagic/jmimemagic, I see there are
 three different artifacts around (0.0.4a, 0.1.1, 0.1.2), and so as I
 understodd this kind of version specification, I'd kinda expect maven to
 use 0.1.2 in this situation. However, running mvn -U install on the
 project ends up like this:

 [...]
 Couldn't find a version in [0.0.4a] to match range [0.1,)
  jmimemagic:jmimemagic:jar:null

 from the specified remote repositories:
  central (http://repo1.maven.org/maven2)
 [...]


 Not quite what I expected to happen. My fault, or something I just
 misunderstood? Maven version is 2.0.8, running a pretty recent Sun JDK... :/

 TIA and best regards,
 Kristian

The problem in this case is the broken metadata:

http://repo1.maven.org/maven2/jmimemagic/jmimemagic/maven-metadata.xml

it lists only version 0.0.4a

- Henry

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



Re: versions on central-repo (stupid question)?

2008-05-23 Thread Heinrich Nirschl
On Fri, May 23, 2008 at 8:20 AM, kawazu [EMAIL PROTECTED] wrote:
 Ah, I see. So basically, in situations like this the only way is to
 avoid using version ranges and defining a fixed version for an artifact
 used?

As far as I know, yes. You could also open a JIRA to get it fixed.
Here are a few examples of similar reports:

http://jira.codehaus.org/browse/MEV-441
http://jira.codehaus.org/browse/MEV-443

Seems, that's not something that will be solved soon.

- Henry

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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Heinrich Nirschl
 [X] Our team uses HTTP to retrieve our artifacts

- Henry

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



Re: [POLL] Default Value for File Encoding

2008-04-29 Thread Heinrich Nirschl
  b) Use a static/fixed value that is defined by convention, i.e. is not
   platform-dependent.

I vote for b). We recently had an encoding problem when we built a
project that was developed on Windows on a Unix server. Fortunately,
it caused a syntax error so that it was detected early. I can imagine
cases where the encoding problem is just in a string. Chances are
high, that such a bug will go undetected for a long time.

Henry

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



Re: Is there easy way to check in plugin version

2008-04-23 Thread Heinrich Nirschl
On Tue, Apr 22, 2008 at 11:46 PM, I am Who i am [EMAIL PROTECTED] wrote:
 Hi All,

 in that case if i want to check what version jar plugin is being downloaded
 is there a mvn command i can run to find out the version or i need to drill
 down all the way to my localRepository like groupId/artifactId ...


mvn help:describe -Dplugin=jar

Henry

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



Re: Is there easy way to check in plugin version

2008-04-23 Thread Heinrich Nirschl
On Wed, Apr 23, 2008 at 9:15 AM, Jörg Schaible
[EMAIL PROTECTED] wrote:

 Heinrich Nirschl wrote:
   On Tue, Apr 22, 2008 at 11:46 PM, I am Who i am
   [EMAIL PROTECTED] wrote:
   Hi All,
  
   in that case if i want to check what version jar plugin is being
   downloaded is there a mvn command i can run to find out the version
   or i need to drill down all the way to my localRepository like
   groupId/artifactId ...
  
  
   mvn help:describe -Dplugin=jar

  Unfortunately this takes always the latest available version in your repo, 
 but not the one you have configured in your POM.

Are you sure? It works for me, I just checked again with maven 2.0.9.

Henry

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



Re: How can I use a plugin SNAPSHOT version?

2008-04-10 Thread Heinrich Nirschl
You may also need to specify the additional repository as a
pluginRepository with snapsots enabled. The exact setting depends on
your environment (i.e. if you use a repository manager and how it is
configured)

Henry.

On Fri, Apr 11, 2008 at 12:54 AM, Brian E. Fox [EMAIL PROTECTED] wrote:
 If you have an artifactory install, you should just be able to ask the
 maintainer to add the snapshot repo. I don't know if artifactory groups
 like nexus, I think so, if yes than that should be all you need.


 -Original Message-
 From: Brewster, Richard [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 10, 2008 6:04 PM
 To: Maven Users List
 Subject: How can I use a plugin SNAPSHOT version?

 I want to use the latest version of this plugin:

 http://snapshots.repository.codehaus.org/org/codehaus/mojo/jboss-maven-p
 lugin/1.3.2-SNAPSHOT/

 What's the procedure for getting this into my local repository, and then
 into my company's Artifiactory?

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



Re: changelog vs scm:update

2008-04-01 Thread Heinrich Nirschl
After cvs.user there is a closing parethesis ) instead of a brace
}. Hope this helps,
Henry

On 4/1/08, Jon Strayer [EMAIL PROTECTED] wrote:
 How can I have scm:update work, but changelog:changelog fail with this
 message:
 Embedded error: cvs repository connection string doesn't contain six tokens

 BTW, my cvs repository connection string is
 scm:cvs:pserver:${cvs.user):${cvs.password}@
 cipe801.sldc.sbc.com:12310:/appl/pkg1/cvs/reps/theteam/cvs:cans


 --
 Esse Quam Videre
 To Be, rather than to Seem


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



Re: Couldn't find a version in [6.5-m92322-115] to match range [6.5,)

2008-03-30 Thread Heinrich Nirschl
No, its not included. 6.5-something is regarded as before 6.5

Henry

On 3/30/08, carioca [EMAIL PROTECTED] wrote:

 Hi,

 I get the error message in the title when I try to build my plugin.
 According to my understanding the version 6.5-m92322-115 is included in the
 version range [6.5,).
 So what is the problem?

 Thanks,
 Shai
 --
 View this message in context:
 http://www.nabble.com/Couldn%27t-find-a-version-in--6.5-m92322-115--to-match-range--6.5%2C%29-tp16379408s177p16379408.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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



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



Re: Problem with Maven making internet connection drop out

2008-03-21 Thread Heinrich Nirschl
On Fri, Mar 21, 2008 at 8:54 AM, Wim Deblauwe [EMAIL PROTECTED] wrote:
 Hi,

  I have a problem with running the Atlassian PDK. They use Maven 2. See
  
 http://confluence.atlassian.com/display/DEVNET/How+to+Build+an+Atlassian+Pluginfor
  their instructions.

  When I try to run mvn idea:idea, everything seems to work for a while, but
  then in the midst of the work being done, my internet connection drops out.
  I can restore the connection by doing ipconfig /renew. The behaviour is very
  consistent with running the maven command. I did not run the command for a
  few hours and my internet connection was fine, then everytime I try run mvn
  idea:idea, it fails. Running mvn -Pplugin-debug works fine, I got a running
  JIRA instance with an empty plugin.

  I'm working on Windows XP. Anybody experienced a simular problem? I suspect
  that maybe the many, many dependencies have something to do with it?

  regards,

  Wim


Just a wild guess, you are problably running into the problem that
windows uses just a small number of client ports by default. A typical
error message in that case would be
java.net.BindException: Address already in use: connect

See this knowledge base article how to increase the ports:
http://support.microsoft.com/kb/196271

Henry

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



Re: [assembly] howto include a jar from my local repository ?

2008-03-21 Thread Heinrich Nirschl
On Fri, Mar 21, 2008 at 11:51 AM, nicolas de loof [EMAIL PROTECTED] wrote:
 Hello,

  for packaging purpose I need to include the Oracle driver in a /lib folder
  of my dist tar.gz (created by the assembly plugin)
  My web application declares this dependency as provided, so it is not
  included in WEB-INF/lib

  I tried to setup a file with ${settings.localRepository} as a path, but
  the variable isn't resolved to my repo.

  Any idea ?

  Nico.


Install the driver in your repo and don't declare it as provided but
as a normal dependency.

Henry.

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



Re: mvn -Dplugin=install help:describe

2008-03-19 Thread Heinrich Nirschl
Maven does not know the short name of the install plugin because this
plugin is missing in the metadata file on central:

http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata.xml

The workaround is to use the full plugin name:

mvn help:describe -Dplugin=org.apache.maven.plugins:maven-install-plugin


- Henry

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



Re: mvn environment variable in debian etch

2008-03-07 Thread Heinrich Nirschl
On Fri, Mar 7, 2008 at 11:38 PM, Érico Teixeira [EMAIL PROTECTED] wrote:
 I trying to set mvn environment variable in etch

  I already have JAVA_HOME configured in /etc/profile as
  follows :

  JAVA_HOME=/opt/java/jdk1.6.0_04
  JRE_HOME=/opt/jre1.6.0_04
  M2_HOME=/opt/apache-maven-2.0.8
  M2=$M2_HOME/bin
  PATH=$PATH:$JAVA_HOME/bin
  PATH=$PATH:$M2
  export PATH

  javac command is ok

  running echo $JAVA_HOME I have:
  /opt/java/jdk1.6.0_04

  running echo $M2 variable I have:
  /opt/apache-maven-2.0.8/bin

  when I run mvn in console I receive the error :
  Error: JAVA_HOME is not defined correctly.
   We cannot execute java


You need to export these variables, e.g.:

export JAVA_HOME

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



Re: enforce versions for plugins

2008-02-28 Thread Heinrich Nirschl
However, the version of the enforcer plugin supporting this goal is
not yet released ...

- Henry

On Thu, Feb 28, 2008 at 7:04 PM,  [EMAIL PROTECTED] wrote:
 This is possible with the enforcer plugin [1] and esspecially the 
 requirePluginVersion rule [2].

  Hth,

  Nick Stolwijk

  [1] http://maven.apache.org/plugins/maven-enforcer-plugin/
  [2] 
 http://maven.apache.org/plugins/maven-enforcer-plugin/rules/requirePluginVersions.html




  -Original Message-
  From: deckrider [mailto:[EMAIL PROTECTED]
  Sent: Thu 2/28/2008 18:51
  To: Maven Users List
  Subject: enforce versions for plugins

  I see that the maven release plugin enforces versioned dependencies.
  I like this, since it makes the build reproduce-able.  However, I
  think I want the same enforcement for all plugins referenced within
  pom.xml should depend on exact versions.  Is this possible?

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




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



Re: Parent project version

2008-01-30 Thread Heinrich Nirschl
On Jan 30, 2008 8:59 AM, Erez Nahir [EMAIL PROTECTED] wrote:
 I also think as Stephen,

 Having an option to specify parent with relative path will be very helpfull,
 I'm sure a solution can be found to provide this functionality.
 Maybe something like having both relativePath and version and give
 precedence to relativePath such that if it is found, it will be used and
 if not, the version will be used instead...

 Erez.

This would give different results when the whole tree is checked out
vs. just the module is checked out.

- Henry

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



Re: how to replace a java file

2008-01-22 Thread Heinrich Nirschl
On Jan 22, 2008 5:38 PM, Rex Huang [EMAIL PROTECTED] wrote:
 for example, I had a Version.java
 public class Version {
 private static String VERSION = ${buildNumber};
 public static String getVersion() {
 return VERSION;
 }
 }

 I need to set version number when compile, so I use filter to change the
 version information in java file.

 Rex

The easiest way is to do the filtering with a real resource (e.g. a
property file) and to read this resource in your java code.

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



Re: Resources from classpath in JAR

2008-01-15 Thread Heinrich Nirschl
On Jan 15, 2008 7:31 PM, dddzzz [EMAIL PROTECTED] wrote:



 Heinrich Nirschl wrote:
 
 
  Put them into src/main/resources.
 
 

 I want them to be in same folder that classes are.

Which folder do you mean, the one with the .class files or with the
.java files? The final jar will have the .class files and the
resources side by side.

Maven uses certain conventions about structuring the source of a
project. If you follow them, there is little to configure. If you
decide not to follow the conventions, more configuration in the POM is
necessary.
It is usually a good idea to use the conventions because it is much
easier for the developers to join a new project.

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



Re: Eclipse plugin and project references

2008-01-15 Thread Heinrich Nirschl
On Jan 15, 2008 8:14 PM, TM [EMAIL PROTECTED] wrote:

 Hello,

 my question is about whether it is possible to let the Maven Eclipse plugin
 create the .classpath file in a way that it will directly reference
 dependency projects instead of referencing the JAR artifact from the local
 repository. The following example .classpath file for a project named foo

Yes, when mvn eclipse:eclipse is run for a multi module project, the
dependencies between the modules will be project dependencies.

If you have some independent projects, you can come up with an
artificial top level pom that has the projects as modules and start
mvn eclipse:eclipse from there.

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



Re: global props in top pom?

2008-01-14 Thread Heinrich Nirschl
On Jan 14, 2008 6:57 PM, Labanca, Rick [EMAIL PROTECTED] wrote:

 This in the top pom at the top level:
 properties
 globalVersion1/globalVersion
 /properties

 then in the module 1 level below pom

 version${globalVersion}/version

 It creates a jar with foo-${globalVersion} as the name.

 I get the feeling the reply will make me feel like a dope and I don't
 have a syntax right!

looks good to me. Does your module pom specify the top pom as parent?

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



Re: Resources from classpath in JAR

2008-01-14 Thread Heinrich Nirschl
On Jan 14, 2008 10:24 PM, dddzzz [EMAIL PROTECTED] wrote:

 How can I make maven2 to include files (like .xml and .property) in JAR
 without adding resource include in POM.

Put them into src/main/resources.

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



Re: A question about using Mirrors for Repositories

2008-01-05 Thread Heinrich Nirschl
On Jan 5, 2008 10:46 AM, Thomas Chang [EMAIL PROTECTED] wrote:
 I am going to use the archiva. But the archiva 1.0 needs jdk 1.5. That means 
 I have to set the JAVA_HOME to point to the jdk 1.5. But many of my programms 
 use jdk 1.4 and I can't change the JAVA_HOME to point to the jdk 1.4

   Any sujestion?


I do not really see the problem. You will have one archiva instance
for the whole team that runs under a different account on the server.
Its easy to setup JAVA_HOME differently on the server and on the
developer machines. Even if you share a machine, the environment
variables can be set up per account or a little shell wrapper can do
the trick.

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



Re: A question about using Mirrors for Repositories

2008-01-04 Thread Heinrich Nirschl
On Jan 4, 2008 11:42 AM, Thomas Chang [EMAIL PROTECTED] wrote:
 Hi all,

   I have a mirror in my settings.xml as follow:

   ...
   mirror
 idMyMirrorId/id
 mirrorOf*/mirrorOf
 nameDependencies for DKV Projects/name
 urlfile:sap-dev/CVSREPO/CvsMaven/url
 /mirror
 ...

   I do so because I want to download the dependencies from the repository on 
 the server machine. And this runs in most case OK. But in somecase it doesn't 
 work. For example when I run mvn clean, I got error as follow. But the Jar 
 maven-archetype-quickstart-1.0.jar is on the repository on the server 
 machine. I have copy this jar into the local repository. After that the mvn 
 clean process can go on, i.e., the other jars can be downloaded from the 
 server repository.

   Such a problem happends when I run mvn eclipse:eclipse. I have to copy 
 the maven-eclipse-plugin-2.4.jar into the local repository.

   Somebody knows why?

   Regards

   Thomas

   
   [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] Failed to resolve artifact.
   GroupId: org.apache.maven.archetypes
 ArtifactId: maven-archetype-quickstart
 Version: RELEASE
   Reason: Unable to determine the release version
   Try downloading the file manually from the project website.
   Then, install it using the command:
 mvn install:install-file -DgroupId=org.apache.maven.archetypes 
 -DartifactId=
 maven-archetype-quickstart \
 -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file
 Alternatively, if you host your own repository you can deploy the file there:
   mvn deploy:deploy-file -DgroupId=org.apache.maven.archetypes 
 -DartifactId=mave
 n-archetype-quickstart \
 -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file \
  -Durl=[url] -DrepositoryId=[id]

   org.apache.maven.archetypes:maven-archetype-quickstart:jar:RELEASE

   [INFO] 
 
 [INFO] For more information, run Maven with the -e switch
 [INFO] 
 
 [INFO] Total time: 1 second
 [INFO] Finished at: Fri Jan 04 11:03:38 CET 2008
 [INFO] Final Memory: 4M/8M
 [INFO] 
 




 -
 Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern.

Looks like you are missing some metadata files in the mirror. How did
you populate the mirror?

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



Re: A question about using Mirrors for Repositories

2008-01-04 Thread Heinrich Nirschl
In some situations maven needs additional information for resolving
artifacts. This info is stored in the metadata files in the
repository. Since the filenames of these metadata files are different
in local and remote repositories it does not work to misuse a local
repository as a remote one.

It is mere luck, that sometimes the download works in spite of that.

As Nick already suggested, consider to install a repository manager.

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



Re: A question about version in dependency in pom.xml

2008-01-02 Thread Heinrich Nirschl
On Jan 2, 2008 12:06 PM, Thomas Chang [EMAIL PROTECTED] wrote:
 Now I do as follow in the settings.xml:

   profiles
   profile
   properties
   my.junit.version3.8.1/my.junit.version
   /properties
   /profile
   /profiles

   And it runs successful when I run mvn clean. But as I run ´mvn compile 
 I got error as follow:

   Downloading: 
 http://repo1.maven.org/maven2/junit/junit/{my.junit.version}/junit-
 {my.junit.version}.jar

To reference the proerties you must use syntax like this:

version${my.junit.version}/version

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



Re: Problem by Using Mirrors for Repositories

2007-12-28 Thread Heinrich Nirschl
On Dec 28, 2007 9:05 AM, Thomas Chang [EMAIL PROTECTED] wrote:
 Hi all,

   I set my settings.xml so it will download the dependencies not from the 
 central (i.g. http://repo1.maven.org/maven2) but from my repository on the 
 server maschine.

   The setting in my settings.xml looks as follow.

   Does someone know what's wrong?

   Regards

   Thomas

   ...
   mirror
   idMyMirrorId/id
   mirrorOf*/mirrorOf
   nameDependencies for DKV Projects/name
   urlfile://sap-dev/CVSREPO/CvsMaven/url
   /mirror
   ...

   The connection to file://sap-dev/CVSREPO/CvsMaven is ok. But as I want to 
 run maven such as mvn eclipse:eclipse I got error as follow:

Is this an UNC name (\\server\share\path\to\file)? If yes, try to use
an URL of this form:

file:sap-dev/CVSREPO/CvsMaven

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



Re: maven2 way to hide transitive dependencies

2007-12-26 Thread Heinrich Nirschl
On Dec 26, 2007 2:25 PM, aldana [EMAIL PROTECTED] wrote:
 Heinrich Nirschl wrote:
 
  No, the optional library may be needed for compiling. It can still be
  optional if it is never loaded at runtime for a certain use case.
 
 but how should someone know if a certain use case is not executed on runtime
 (to me that sounds more like a hint to dead code...). do you know a real
 maven2 project where this optional is used and makes sense?

A good example is commons-logging:commons-logging:1.1.1. It has
optional dependencies on the logging frameworks it supports. When you
actually use it, you want just one framework and not all. Previous
versions did not have the dependencies declared as optional. As a
consequence, users had to write a lot of exclusions in the POM (or to
live with the unnecessary jars that were pulled in).

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



Re: maven2 way to hide transitive dependencies

2007-12-25 Thread Heinrich Nirschl
On Dec 25, 2007 5:06 PM, aldana [EMAIL PROTECTED] wrote:

 in my point of view the automatic inclusion of transitive dependencies
 should be avoided and directly used libraries should be included explicitly.
 this makes maintenance in view of dependencies more feasible:
 -so project B must include library x explicitly to use x's features, i.e.
 transitive dependencies surely must be provided at runtime but should not be
 visible for compile-time.

Unfortunately, this does not work. There are situations where the
transitive dependencies
are needed even during compile time (e.g. B uses a class from A that
inherits from something in x).


 when we switched to maven2 we enforced this through marking all dependencies
 as optional. this made dependencies of project A invisible for project B so
 project B was enforced to include all directly used libraries to. having
 read http://maven.apache.org/pom.html and explanation for optional flag
 tells me that i misused optional:
 In the shortest terms, optional  lets other projects know that, when you
 use this project, you do not require this dependency in order to work
 correctly.
 what i think a bit confusing is the snippet (you do not require this
 dependency in order to work correctly.), why should i then include this
 dependency at all, if i do not need it...?

The module with the optional dependency could check at runtime if it
is available in the class path and only use it if it can be found.

- Henry

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



Re: Dependency rpoblem in multi-module project

2007-12-19 Thread Heinrich Nirschl
On Dec 19, 2007 9:21 AM, Guillaume Lederrey
[EMAIL PROTECTED] wrote:
 Problem still not solved. I tried a couple of things :

Seems to be a typo somewhere. You said the module is called
EvenementMetier_shared but maven is looking for
EvenementMetierPoc_shared (note the Poc). Double check the group and
artifact ids and the packaging of the modules.

- Henry

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



Re: Unit test strategy for testing a java.io.File in maven2?

2007-12-19 Thread Heinrich Nirschl
On Dec 19, 2007 9:57 PM, JavaGeek [EMAIL PROTECTED] wrote:

 Hello All,
 I have some code that reads a directory in a maven2 project.  Is there a way
 to put a directory of files in a maven project and reliably read it from
 JUnit 4 (or TestNG) across platforms?

 I have code that will read the contents of a directory, looking for images.
 I'd like to include a directory of images in the project, perhaps in
 test/resources/myImages.  I'd like to be able to get a java.io.File
 reference to the directory.

 The code needs to run on my Windows workstation as well as my linux build
 server.  Any ideas?

I seem to miss something, why does

new File(test/resources/myImages)

not work?

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



Re: Optional Proxy Configuration

2007-12-08 Thread Heinrich Nirschl
On Dec 8, 2007 12:58 PM, Marco Bakera [EMAIL PROTECTED] wrote:

 On Saturday 08 December 2007 08:35:07 Heinrich Nirschl wrote:
  On Dec 8, 2007 8:13 AM, Marco Bakera [EMAIL PROTECTED] wrote:
   Hello everybody.
  
   At work I need a proxy for maven to work while I don't need one at home.
   So I have to change my settings.xml back and forth during work at home
   and and at work.
  
   So is it possible to simply turn off the proxy server configuration with
   a command line option?
 
  The -s option allows you to use a different user settings file.

 Although this is possible I don't know whether it is the preferred way of
 doing, since I just want to turn off one part of the settings file while
 keeping the others as is.


Is this a serious problem? How often do you change the settings file?
If you are *really* worried about inconsistencies you could even come
up with a little transformation (e.g. in XSLT) that converts one
setting file to the other.

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



Re: Optional Proxy Configuration

2007-12-07 Thread Heinrich Nirschl
On Dec 8, 2007 8:13 AM, Marco Bakera [EMAIL PROTECTED] wrote:
 Hello everybody.

 At work I need a proxy for maven to work while I don't need one at home. So I
 have to change my settings.xml back and forth during work at home and and at
 work.

 So is it possible to simply turn off the proxy server configuration with a
 command line option?

The -s option allows you to use a different user settings file.

- Henry

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



Re: release problem with multi modules project

2007-12-01 Thread Heinrich Nirschl
On Dec 1, 2007 4:21 PM, Guillaume Lederrey [EMAIL PROTECTED] wrote:
 Thanks ! It seems to be working !

 I'm still wondering why I cant compile the project in one pass, and
 fixing that would speed the release process considerably. If you have
 any idea where I should be looking ...

It is a bug, I guess in some of the plugins. I saw this especially
when the war plugin is used in the build. The modules are built in the
right order, but some dependencies are not picked up unless they are
installed.

You can do a search in JIRA to find out if there is already a patch available.

- Henry

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



Re: [m2] site 2.0-beta-5 plugin error?

2007-12-01 Thread Heinrich Nirschl
On Dec 1, 2007 8:31 PM, Mick Knutson [EMAIL PROTECTED] wrote:
 I have the following:
 distributionManagement
 site
 idmeez-site/id
 nameMEEZ_Web/name
 url${siteUrl}/url
 !--urlscp://www.meez.com/maven/site//url--
 /site
 /distributionManagement

 Now when I use mvn site on the  2.0-beta-5 plugin, the site works fine. but
 when I use 2.0-beta-6, I get the following error:

 INFO]
 
 ERROR] BUILD ERROR
 INFO]
 
 INFO] Error parsing site descriptor

 mbedded error: Unrecognised tag: 'site' (position: START_TAG seen ?xml
 version=1.0 encoding=ISO-8859-1?\n\nsite... @3:7)

I guess the error message refers to the site descriptor src/site/site.xml:
the start tag there should be project instead of site.

- Henry

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



Re: release problem with multi modules project

2007-11-30 Thread Heinrich Nirschl
On Dec 1, 2007 3:26 AM, Guillaume Lederrey [EMAIL PROTECTED] wrote:
 Hello !

 I'm having problems with the release plugin on a multi module project.
 The release:prepare goal works fine, but when I do the
 release:perform, I get an error telling me that it cant resolve a
 dependency to springremoting-common-0.1.jar, which is one of the
 modules, needed by all the others.

 When I try to run mvn install the project compiles without problem,
 even if I change the version number of all my modules.

 I cant understand why maven doesnt compile the modules in the right
 order when doing a release, when it does compiles them in the right
 order outside of a release.

 What am I missing ?

In situations like this it usually helps to run the prepare step with:
mvn release:prepare -DpreparationGoals=clean install

- Henry

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



Re: Access is denied when running mvn release:prepare (Help!)

2007-11-12 Thread Heinrich Nirschl
On Nov 12, 2007 3:19 AM, dev dev [EMAIL PROTECTED] wrote:
 Here is the stack trace.

 [INFO] Executing goals 'clean verify'...
 [INFO] Executing: mvn clean verify --no-plugin-updates -P devel
 Access is denied.


If this happened on Windows, there was maybe a file in the target
directory opened by another application. In this case, the clean
plugin cannot remove the target directory.

- Henry

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



Re: shared library in executable jar file

2007-11-07 Thread Heinrich Nirschl
On Nov 6, 2007 11:17 PM, Ed [EMAIL PROTECTED] wrote:
 Where do I configure to have a shared library file included correctly in an
 executable assembly file?
 I've been looking in the assembly plugin area with no luck.

 When I try to run the executable jar file I get an
 UnsatisfiedLinkError:Expecting an absolute path of the library:

 I'm assembling an executable jar file and I need a shared library to be
 assembled in the file and effectively in the LD_LIBRARY_PATH.

 When I run
 mvn package assembly:assembly

 I'd like the libmylib.so file to be in the executable assembly and in the
 load path.

 In eclipse, I simply put the file in the
 mylib/src/main/java/resources/org/mylib/socket directory and maven places
 the file in the
 mylib/target/classes/org/mylib/socket/ directory when I run
 mvn compile

 I can the execute the file.

 When I try to run the executable jar file I get an
 UnsatisfiedLinkError:Expecting an absolute path of the library:

I don't think that what you want is possible. The native library has
to be loaded by the OS and therefore cannot be placed inside the jar.

- Henry

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



Re: Exception transfering site files via webdav

2007-11-01 Thread Heinrich Nirschl
 uploading a site file with site:site has worked quite well for me
 until a few months ago.  Now, I consistantly get an exception half way
 through the process.  The only thing that really changed, I think, is
 the size of the projects: more files.  here's the exception:

 Embedded error: Failed to create destination WebDAV collection (directory): 
 /pro
 jects/web-app-parent/csa/./apidocs/com/csatravelprotection/rules/class-use
 Address already in use: connect

This is a problem with the default Windows TCP/IP configuration. The
client runs out of available ports during the many webdav transfers.

The solution is described here:
http://msdn2.microsoft.com/en-us/library/aa560610.aspx

- Henry

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



Re: maven.compile.encoding problem (?)

2007-10-26 Thread Heinrich Nirschl
Find out which character encoding is used by your Java source files
and set a matching encoding for the compiler. The description of the
compile plugin may help:
http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#encoding

As already mentioned, you can avoid all these encoding problems by
sticking to ASCII encoding and using unicode escapes in the source
where necessary.

On 10/26/07, Raffaele [EMAIL PROTECTED] wrote:

 I have the same problem!

 Modifying the java sources putting direclty the unicode string IS NOT A
 CLEVER SOLUTION.

 Any other hints?

 Thanks and best regards.
 Raffaele



 Luca Gmail wrote:
 
  The file is the same :)
 
 
 
  Tnx for your answer.
 
 
  On 6/19/06, Thorsten Heit [EMAIL PROTECTED] wrote:
 
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  Hi Luca,
 
   when i try to compile my project i have this error :
  
   duplicate case label error.
  
   Below the code where the error is raised:
  
   for (int i = 0; i  n; i++) {
  
char c = s.charAt(i);
  
switch (c) {
  
   case '': sb.append(lt;); break;
  
   case '': sb.append(gt;); break;
  
   case '': sb.append(amp;); break;
  
   case '': sb.append(quot;); break;
  
   case 'à': sb.append(agrave;);break;
  
   case 'À': sb.append(Agrave;);break;
  
   case 'â': sb.append(acirc;);break;
  
   case 'Â': sb.append(Acirc;);break;
  
   case 'ä': sb.append(auml;);break;
  
   case 'Ä': sb.append(Auml;);break;
  
   case 'å': sb.append(aring;);break;
  
   case 'Å': sb.append(Aring;);break;
  
   case 'æ': sb.append(aelig;);break;
  
   case 'Æ': sb.append(AElig;);break;
  
   case 'ç': sb.append(ccedil;);break;
  
   …
  
  
  
   In all the line.
  
   I compiled in windows machine and all works fine.
  
   I try ti compile in my linux machine and I have that error.
 
  That's a simple encoding problem in source code files - you're using
  non-ASCII characters in the above Java code... (have a look into your
  file on a Windows machine and then on a Linux box; it probably looks
  different)
 
  If you really have to use non-ASCII characters in a text file
  (properties file, Java source code etc.), you'd better use unicode
  notation instead (\u00E6 for æ  etc.).
 
 
  HTH
 
  Thorsten
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1.4.3 (MingW32)
 
  iD8DBQFElqUbQvObkgCcDe0RAteCAKCowelIRFulB1FgK28SK4ZY1IUaYwCfRKAT
  X4JHDYpMoeKB54pS12C30Kc=
  =TonV
  -END PGP SIGNATURE-
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/maven.compile.encoding-problem-%28-%29-tf1811337s177.html#a13423901
 Sent from the Maven - Users mailing list archive at Nabble.com.


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



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



Re: DuplicateProjectException

2007-10-18 Thread Heinrich Nirschl
On 10/18/07, Jason Nerothin [EMAIL PROTECTED] wrote:
 Okay, so what I mean is that I have four complilation units: Unit A has
 compile-time dependencies on B1 and B2 which in turn have a compile-time
 dependency on unit C. mvn compile tries to figure out which code to link
 against (B1-C or B2-C) and throws a DuplicateProjectException. Is such an
 arrangement possible with maven or am I missing some larger point about
 dependency management?

The situation you describe is normally handled without any problem. In
fact it is quite common that dependencies have common
sub-dependencies, just think of C being a logging package for example.

I don't know in which situations Maven throws a
DuplicateProjectException (never saw this one myself). Its maybe
easier to diagnose the problem if we see the poms.

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



Re: DuplicateProjectException

2007-10-17 Thread Heinrich Nirschl
Hmm, thats still not clear since module of and depends upon are
totally different relationships.

B module of A means that in A's pom you have a moduleB/module
whereas A depends on B means that in A's pom you have a
dependencyartifactIdB/artifactId ... /dependency

On 10/16/07, Jason Nerothin [EMAIL PROTECTED] wrote:
 A - B means B is a module of A or A depends upon B

 On 10/16/07, Wayne Fay [EMAIL PROTECTED] wrote:
 
  Its hard to tell from your email.. Are you saying A-B == A depends on
  B? or B depends on A? Perhaps just use English to explain.
 
  Wayne
 
  On 10/16/07, Jason Nerothin [EMAIL PROTECTED] wrote:
   How do I get maven to do a clean compile of project D when I have the
   following situation:
  
   A - B
  
   C - B
  
   D - A and D-C,
  
   where letters are projects and arrows mean module of?
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: Menu element for modules getting removed from site.xml

2007-10-08 Thread Heinrich Nirschl
On 10/7/07, Wendy Smoak [EMAIL PROTECTED] wrote:
 On 10/7/07, Heinrich Nirschl [EMAIL PROTECTED] wrote:

  I checked some of my projects, the menu ref=modules / gets expanded
  to a list of all modules. Do you have modules defined in your pom? If not, 
  this
  may explain why it disappears.

 Does this happen in site.xml in the repository?Or are you talking
 about the website itself?

 (No, the master pom does not have modules.)

It happens in the site.xml in the repository. An example:

menu ref=modules/

gets replaced by

menu name=Modules ref=modules
  item name=Module 1 href=mod1/index.html/
  item name=Module 2 href=mod2/index.html/
/menu

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



Re: Menu element for modules getting removed from site.xml

2007-10-07 Thread Heinrich Nirschl
On 10/7/07, Wendy Smoak [EMAIL PROTECTED] wrote:
 I have a master pom with a companion src/site/site.xml.  When I
 install or deploy the pom, the site.xml file also gets put in the
 local or remote repo.

 ... except that the menu ref=modules / tag is *not* in the deployed 
 site.xml.

 I've changed other things, such as misspelling 'parent' in the menu
 ref=parent / element to make sure it's really deploying the file
 from src/site/site.xml, and it seems to be.

 I also tried adding ${modules} and that also got removed.

 Can someone confirm that I am not imagining this?  Is there a reason for it?

 I'd really like projects that use this master pom as their parent to
 have links to their sub-modules on their websites by default.

I checked some of my projects, the menu ref=modules / gets expanded
to a list of all modules. Do you have modules defined in your pom? If not, this
may explain why it disappears.

- Henry

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



Re: How to always get latest version of the dependency?

2007-10-02 Thread Heinrich Nirschl
On 10/2/07, siegfried [EMAIL PROTECTED] wrote:
 How do I always download the latest version of the dependency? So far, I've
 always had to specify the version of the dependency I want.

You always have to specify the version. This helps to get repeatable builds.

As long as your project is still in SNAPSHOT state, you can specify a
dependency version
as a SNAPSHOT as well (e.g. 1.0-SNAPSHOT). You will get then the
latest 1.0-SNAPSHOT available. But this works only, if the
updatePolicy of the repository containing the snapshots is  set to
more frequently than never.

- Henry

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



Re: maven2 / continuum / scm URL frustration

2007-09-15 Thread Heinrich Nirschl
On 9/16/07, Marco Mistroni [EMAIL PROTECTED] wrote:
 and when i validate it using mvn scm:validate i always get back following
 exception

 [DEBUG] Configuring mojo '
 org.apache.maven.plugins:maven-scm-plugin:1.0:validate' --
 [DEBUG]   (f) basedir = /home/marco/TestApp
 [DEBUG]   (f) connectionType = connection
 [DEBUG]   (s) connectionUrl = scm:svn://localhost/trunk/TestApp
 [DEBUG]   (f) developerConnectionUrl = scm:svn://localhost/trunk/TestApp
 [DEBUG]   (f) scmConnection = scm:svn://localhost/trunk/TestApp
 [DEBUG]   (f) scmDeveloperConnection = scm:svn://localhost/trunk/TestApp
 [DEBUG]   (f) settings = [EMAIL PROTECTED]

   scm
 connectionscm:svn://localhost/trunk/TestApp/connection

 developerConnectionscm:svn://localhost/trunk/TestApp/developerConnection
   /scm


The correct URL in your case is scm:svn:svn://localhost/trunk/TestApp

Note that svn appears twice, this is not the case in your last snippet.

- Henry

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



Re: FW: Using Proximity Corporate Repository doesnt download plugins/dependencies

2007-09-11 Thread Heinrich Nirschl
If you use the standard configuration, the url for the central mirror should be
urlhttp://somednsname:8080/px-webapp/repository/public/url
instead of
urlhttp://somednsname:8080/px-webapp/repository/inhouse/url

Hope that helps,

- Henry

On 9/11/07, Wayne Fay [EMAIL PROTECTED] wrote:
 Perhaps Tamas will reply. I know he had a hardware failure and so the
 normal Proximity support channels are not available.

 Wayne

 On 9/10/07, Sonar, Nishant [EMAIL PROTECTED] wrote:
  Hello
 
 
 
  I am trying to setup a corporate repository through proximity. Her's
  what I did
 
 
 
  Installed proximity on apache by deploying the px-webap. Now I can
  browse to the proximity site through apache
  http://localhost:8080/px-webap. I will be using this site to host my
  repository in a way like
 
  http://somednsname:8080/px-webapp/repository/inhouse and will use it as
  to access repository from poms and will be making this entry in the
  setting.xml
 
  here's what in my setting.xml
 
 
 
  !-Settings .xml--
 
  settings
 
   localRepositoryc:\Java\maven-2.0.6\repository/localRepository
 
 
 
   !-- proxies
 
 | This is a list of proxies which can be used on this
  machine to connect to the network.
 
 | Unless otherwise specified (by system property or
  command-line switch), the first proxy
 
 | specification in this list marked as active will be used.
 
 |--
 
   proxies
 
  !-I Intentionally commented proxy to not hit outside world --
 
 
 
 !--proxy
 
   activetrue/active
 
   protocolhttp/protocol
 
   hostsingle-proxy.wachovia.net/host
 
   port8080/port
 
   /proxy
 
 --
 
   /proxies
 
   //mirrored central to corporate repo
 
   mirrors
 
 mirror
 
   idCentralMirror/id
 
   nameProxied Central REPO/name
 
 
  urlhttp://somednsname:8080/px-webapp/repository/inhouse/url
 
   mirrorOfcentral/mirrorOf
 
 /mirror
 
   /mirrors
 
   profiles
 
 profile
 
   idSample/id
 
   repositories
 
 repository
 
   idCorporate/id
 
   nameLocal Corporate Repo/name
 
   url
 
 
  http://somednsname:8080/px-webapp/repository/inhouse
 
   /url
 
   snapshots
 
 enabledtrue/enabled
 
   /snapshots
 
 /repository
 
   /repositories
 
   pluginRepositories
 
 pluginRepository
 
   idCorporate/id
 
   nameLocal Corporate Repo/name
 
   url
 
 http://
  somednsname:8080/px-webapp/repository/inhouse
 
   /url
 
   releases
 
 enabledtrue/enabled
 
 updatePolicynever/updatePolicy
 
   /releases
 
   snapshots
 
 enabledtrue/enabled
 
   /snapshots
 
 /pluginRepository
 
   /pluginRepositories
 
 /profile
 
   /profiles
 
   activeProfiles
 
 activeProfileSample/activeProfile
 
   /activeProfiles
 
  /settings
 
 
 
  I am getting following output when running build
 
 
 
 
 
  + Error stacktraces are turned on.
 
  [INFO] Scanning for projects...
 
  [INFO]
  
  
 
  [INFO] Building simpleWebService
 
  [INFO]task-segment: [clean, install]
 
  [INFO]
  
  
 
  [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking
  for updates from Corporate
 
  [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking
  for updates from central
 
  [INFO]
  
 
  [ERROR] BUILD ERROR
 
  [INFO]
  
 
  [INFO] The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not
  exist or no valid version could be found
 
  [INFO]
  
 
  [INFO] Trace
 
  org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
  'org.apache.maven.plugins:maven-clean-plugin' does not exist or no valid
  version could be found
 
   at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default
  LifecycleExecutor.java:1286)

Re: Build javadoc of dependencies?

2007-09-06 Thread Heinrich Nirschl
On 9/5/07, Jochen Wiedmann [EMAIL PROTECTED] wrote:
 Hi,

 I have a project which is structured like this:

   +- parent
   |
   +- core
   |
   +- webapp

 (In practice, it's a little bit more complex, but the picture is
 sufficient to show the use case.)

 When running the javadoc plugin, I get the javadocs of the separate
 projects. I would like to have the javadocs of all projects aggregated
 into the webapp project. The plugins aggregate property doesn't help
 me, because its designed for parent projects.

You could set up a fourth project with packaging pom that serves as
parent for the other three (i.e. the other tree projects are modules
of the new project). The Javadoc plugin's aggregate function should
work then.

- Henry

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



Re: deploying to proximity via webdav

2007-08-27 Thread Heinrich Nirschl
On 8/22/07, Pascal Thivent [EMAIL PROTECTED] wrote:
 Hi,

 I've used the following url successfully(*) :
 urldav:http://host:port/pxweb/dav/inhouse.snapshot/url

 I guess it should work in the same way with extNonFree.

Unfortunately not. The inhouse.snapshot is understood by proximity
as the repository group name (which happens to be the same as the
repository in this case).

In the case of extNonFree the group name is public and when one uses
this, the artifact ends up in extFree (which is also a member of the
public group).


 (*) by successfully, I mean that the deployement with wagon worked, it
 just took *ages* (5mn to deploy an almost empty artefact vs 13s with
 apache + mod_dav). See
 https://trac.abstracthorizon.org/proximity/ticket/114


I don't see such a slowdown here.

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



Re: deploying to proximity via webdav

2007-08-23 Thread Heinrich Nirschl
On 8/23/07, Dave Hoffer [EMAIL PROTECTED] wrote:
 If I recall correctly proximity did not support uploading artifacts only
 downloading them.  This may have changed since we used it however.  I
 think this was one of the reasons we switched to Artifactory.  With
 proximity we were using ftp to upload (deploy, release).

[configuration example deleted]

Thanks for the configuration example. Upload to proximity via WebDAV
works in principle, I can successfully upload to the other
repositories (inhouse, inhouse.snapshot, extFree). It's just the
extNonFree that doesn't work.

I hoped, somebody knows the trick how to do it or can confirm that it
doesn't work in the current version. Unfortunately the source is not
available at the moment, otherwise I would have had a look there.

If I don't get it to work I have to switch to other upload methods (ftp or scp).

- Henry

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



deploying to proximity via webdav

2007-08-22 Thread Heinrich Nirschl
Hi,

in the out-of-the-box setup of proximity with the repositories
extFree, extNonFree, and central in the public group I would like to
deploy to extNonFree via WebDAV.

I tried the URLs:

http://myserver:8080/proximity/dav/extNonFree - this results in a 500
response from the server, the server log shows an exception that the
groupId is null, and

http://myserver:8080/proximity/dav/public/extNonFree - this works, but
deploys to extFree, the first repository in the public group (with an
extra extNonFree directory).

What's the right URL to deploy to extNonFree? Is there some more
configuration necessary?

TIA
- Henry

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



Re: deploying to proximity via webdav

2007-08-22 Thread Heinrich Nirschl
Thanks for your answer, Dave!

On 8/22/07, Dave Hoffer [EMAIL PROTECTED] wrote:
 It's been awhile since I have used proximity but I thought you would use
 the following syntax:

 urldav:http://xr-grr-build:8081/artifactory/[EMAIL PROTECTED]/url

Unfortunately, this URL does not work with proximity either. I tried
.../[EMAIL PROTECTED] and .../[EMAIL PROTECTED] Both resulted in the
500 reply from the server. The exact exception on the server is (I was
not in front of the machine when I wrote my first mail):

org.abstracthorizon.proximity.NoSuchRepositoryException: Repository
with name group null not found!


 Of course you have to enable webdav in your pom's build section.

 extensions
 extension
 groupIdorg.apache.maven.wagon/groupId
 artifactIdwagon-webdav/artifactId
 version1.0-beta-2/version
 /extension
 /extensions


Yes, I have that.

 -Dave

 -Original Message-
 From: Heinrich Nirschl [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 22, 2007 2:39 AM
 To: Maven Users List
 Subject: deploying to proximity via webdav

 Hi,

 in the out-of-the-box setup of proximity with the repositories
 extFree, extNonFree, and central in the public group I would like to
 deploy to extNonFree via WebDAV.

 I tried the URLs:

 http://myserver:8080/proximity/dav/extNonFree - this results in a 500
 response from the server, the server log shows an exception that the
 groupId is null, and

 http://myserver:8080/proximity/dav/public/extNonFree - this works, but
 deploys to extFree, the first repository in the public group (with an
 extra extNonFree directory).

 What's the right URL to deploy to extNonFree? Is there some more
 configuration necessary?

 TIA
 - Henry

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


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



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



Re: [m2] OutOfMemoryError with MAVEN_OPTS=-Xmx1792m

2007-08-21 Thread Heinrich Nirschl
On 8/21/07, Mick Knutson [EMAIL PROTECTED] wrote:
 I am putting almost 2GB to a build and still getting permGen errors.
 Is there something else I can set?


-XX:MaxPermSize=size

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



Re: Overriding artifact name in the repository

2007-08-06 Thread Heinrich Nirschl
On 8/6/07, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Is there a way to override the artifact name that gets deployed into the
 repository?

No. The repository is primarily there for maven to find artifacts used
as dependencies in other projects. This is not be possible if they
don't have the standard name.

- Henry

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



Re: Eclipse plugin

2007-08-01 Thread Heinrich Nirschl
On 8/1/07, Lautaro Brasseur [EMAIL PROTECTED] wrote:
   Hi, I'm using eclipse:eclipse target in order to build Eclipse files form a 
 multilevel Maven 2 project.



   The problem is that I have some artifacts that have the same ID (but 
 different group). Eclipse plugin creates them with the same name.

[[ snip ]]

   I guess that currently there is no way to change the generated eclipse 
 project name to one different from project ID. Is there any solution?


I don't know if it is possible to work around that, but I don't think so.

I avoid using the same artifact name in one multi-module project not
only for this reason. The generated jars have the same name (unless
one changes it in the configuration) which makes it difficult to use
them in one project.

- Henry

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



Re: repositories

2007-07-23 Thread Heinrich Nirschl

On 7/23/07, John Coleman [EMAIL PROTECTED] wrote:

Hi,



Is there a simple way to get all dependencies required for a project
into the local repository? Something like rsync.



The dependency:go-offline goal can be used for that:
http://maven.apache.org/plugins/maven-dependency-plugin/go-offline-mojo.html

- Henry

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



Re: Error [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found

2007-07-18 Thread Heinrich Nirschl
On Wed, 2007-07-18 at 14:09 +0200, Wei Chen wrote:
 [INFO] Searching repository for plugin with prefix: 'archetype'.
 [DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
 [INFO] org.apache.maven.plugins: checking for updates from central
 [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be 
 retri
 eved from repository: central due to an error: Error transferring file
 [INFO] Repository 'central' will be blacklisted

Hi,

can it be that you are behind a proxy? If so, this may help:
http://maven.apache.org/guides/mini/guide-proxies.html

- Henry


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



Re: Error [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found

2007-07-18 Thread Heinrich Nirschl
On Wed, 2007-07-18 at 14:48 +0200, Wei Chen wrote:
 Yes, I am behind the proxy of our company. I've seen the link you sent me. 
 And I configured the proxies/ as follow but I get the same error.
 
 proxy
   idoptional/id
   activetrue/active
   protocolhttp/protocol
   username/username
   password/password
   hostmycompany's proxy-ip/host
   port8080/port
   nonProxyHostslocalhost|127.0.0.1/nonProxyHosts
 /proxy

Hmm, don't know if this helps, but if your proxy does not need
username/password try to leave out these tags completely.

Sometimes, maven leaves some broken meta info files in its local
repository when an attempt to reach a remote repository fails. In such
cases it helps to wipe out the local repository.

 
 Besides, I set the properties in the build.properties as follow:
 ...
 maven.repo.remote=http://repo1.maven.org/maven2,http://team.andromda.org/maven
 ...
 
 I think it should be correct, right?
 

build.properties are only used in Maven 1. So you don't need this.


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



Re: Error [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found

2007-07-18 Thread Heinrich Nirschl
On Wed, 2007-07-18 at 15:12 +0200, Wei Chen wrote:
 I wonder if I can overcome this problem manually. I mean I download the 
 plugin myself and save it under the local repositories. Then I comment out 
 some entries in the setting.xml.

This is possible but somewhat difficult and I would not advise it. Maven
needs to download all kinds of dependencies from the remote repository,
so this would not help much.



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



Re: Error [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found

2007-07-18 Thread Heinrich Nirschl
On Wed, 2007-07-18 at 17:08 +0200, Wei Chen wrote:
 I solve the new problem. I just take out the MAVEN_OPTS and it runs.
 
 But tomorrow I will try further if it runs in the office.
 
 
 
  Original-Nachricht 
 Datum: Wed, 18 Jul 2007 17:05:05 +0200
 Von: Wei Chen [EMAIL PROTECTED]
 An: Maven Users List users@maven.apache.org
 Betreff: Re: Error [INFO] The plugin  
 \'org.apache.maven.plugins:maven-archetype-plugin\' does not exist or   no
   valid version could be found
 
  I am now at home (not in office in the company) and try again. It goes
  further. But I got another error as follow. What does it mean? I've set the
  MAVEN_OPTS to -XX:MaxPermSize=128m -Xmx512. I think the heap is large
  enough. right?

Just in case you are curious, you had set the max heap to 512 *bytes*
which is a bit too small ;-)
Default settings are fine in most cases, unless you have a very large
build (or a memory hungry plugin).



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



Re: plain old application packaging

2007-07-16 Thread Heinrich Nirschl
On Mon, 2007-07-16 at 17:29 +0100, Nord, James wrote:
 I want to be able to have a build that contains specific project
 dependencies and produces a bundled result - such as a zip that can be
 taken and given to the packaging/installation team.  As I'm not using
 web technology I can't find a packaging type that's suitable - but I
 would have thought this is a fairly generic requirement.

Did you have a look at the assembly plugin? It should do what you are
looking for.
http://maven.apache.org/plugins/maven-assembly-plugin/

- Henry


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



Re: dependency:analyze incorrectly using excludes from DepMgt section.

2007-06-29 Thread Heinrich Nirschl
On Fri, 2007-06-29 at 21:26 +0930, Barrie Treloar wrote:
 On 6/29/07, Heinrich Nirschl [EMAIL PROTECTED] wrote:
  On Thu, 2007-06-28 at 10:20 +0930, Barrie Treloar wrote:
   When I run dependency:analyze on my module I get:
  
   [INFO] Found Resolved Dependency / DependencyManagement mismatches:
   [INFO]  Ignoring Direct Dependencies.
   [INFO] javax.servlet:servlet-api:jar was excluded in DepMgt, but
   version 2.3 has been found in the dependency tree.
  
   mvn site's Dependency Tree:
   org.springframework:spring-beans:jar
   * commons-logging:commons-logging:jar
 o logkit:logkit:jar
 o avalon-framework:avalon-framework:jar
 o javax.servlet:servlet-api:jar
  
 
  This is why servlet-api was pulled in. You seem to have a dependency on
  spring which in turn uses commons-logging and commons-logging brings in
  servlet-api.
 
  I always add the exclusions you specified for easyconf also to all the
  spring modules.
 
 Look more closely at the error
   [INFO] javax.servlet:servlet-api:jar was excluded in DepMgt, but
   version 2.3 has been found in the dependency tree.
 
 I only excluded javax.servlet from EasyConf and not commons-logging,
 so I shouldn't be getting this error.

Ah, now I see what you mean. This does indeed look strange, especially
the wording of the message. On the other hand, it is just an INFO and
not a WARNING like the other problems found by the dependency:analyze
goal. I don't know if this behavior is intended. The message may be even
useful, because there may be something wrong in the project if a certain
dependency is excluded from one module but pulled in by another. If I
exclude it once it is very likely that I don't want it in my module at
all.


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



Re: dependency:analyze incorrectly using excludes from DepMgt section.

2007-06-29 Thread Heinrich Nirschl
On Sat, 2007-06-30 at 11:12 +0930, Barrie Treloar wrote:
 I'm excluding it because EasyConf specifies a different version and I
 need to override it.

Doesn't just pinning the version in dependencyManagement in such
situations work? It should not be necessary to exclude the wrong
version. However, in this particular case I think it's better to exclude
it in both places.

 
 I have no idea why commons-logging wants javax.servlet. So I might try
 excluding it as well.

commons-logging pulls in all log implementations it supports. So if one
does not want a lot of unnecessary jars the exclusions are required.
javax.servlet is especially nasty since it is always provided by the AS
and thus you never want it as a runtime dependency.


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



Re: dependency:analyze incorrectly using excludes from DepMgt section.

2007-06-28 Thread Heinrich Nirschl
On Thu, 2007-06-28 at 10:20 +0930, Barrie Treloar wrote:
 When I run dependency:analyze on my module I get:
 
 [INFO] Found Resolved Dependency / DependencyManagement mismatches:
 [INFO]  Ignoring Direct Dependencies.
 [INFO] javax.servlet:servlet-api:jar was excluded in DepMgt, but
 version 2.3 has been found in the dependency tree.
 
 mvn site's Dependency Tree:
 org.springframework:spring-beans:jar
 * commons-logging:commons-logging:jar
   o logkit:logkit:jar
   o avalon-framework:avalon-framework:jar
   o javax.servlet:servlet-api:jar
 

This is why servlet-api was pulled in. You seem to have a dependency on
spring which in turn uses commons-logging and commons-logging brings in
servlet-api.

I always add the exclusions you specified for easyconf also to all the
spring modules.

- Henry


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



Re: maven2 property to get absolute location of POM?

2007-06-26 Thread Heinrich Nirschl
On Tue, 2007-06-26 at 12:41 -0400, Jared Blitzstein wrote:
 Is there a POM property that can return the absolute path or itself?  
 I have a dependency that must use the systemPath tag but the absolute  
 path could be different for all our developers, but it's always the  
 same relative to the pom. Any idea how to accomplish this with just  
 entries in the POM, I don't want to have to set environment vars on  
 the system.

${basedir} is the directory where the pom.xml is located.

- Henry


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



Re: using javadocDirectory with maven-javadoc-plugin

2007-06-22 Thread Heinrich Nirschl
On Thu, 2007-06-21 at 23:22 +0100, Adam Hardy wrote:
 I couldn't get it to work. I am glad it doesn't affect you, but I found 
 nothing 
 to explain why. BTW I am on linux too.
 
 I filed the bug http://jira.codehaus.org/browse/MJAVADOC-129 with a testcase.
 

I tried your test case, but I get a stack trace from javadoc after a few
error messages (this is with java version 1.5.0_11):

java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl
at
com.sun.tools.javadoc.AnnotationDescImpl.annotationType(AnnotationDescImpl.java:46)
at
com.sun.tools.doclets.internal.toolkit.util.Util.isDeprecated(Util.java:804)
...

When I remove the test directory src/test/java from the sourcepath it
finishes without error but the package.html file is not picked up. So
far that's consistent with your observations.

If I remove the sourcepath completely, I get the package.html but not
the image in doc-files.

The doc-files directory does show up in the generated documentation if
it is moved to the root (i.e. src/main/javadoc/doc-files).

Seems, there are quite a few bugs at work ...

- Henry


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



Re: Skiping module during mvn eclipse:eclipse

2007-06-21 Thread Heinrich Nirschl
On Thu, 2007-06-21 at 12:13 +0200, Marcin Waldowski wrote:
 Nick, thanks for your replay.
 
 My problem is that 'mvn eclipse:eclipse' fail on ear module, because of  
 '[INFO] Failed to resolve artifact'. This missing artifact is other 
 module of my my multiple module project. It's weird, because 'mvn 
 package' works ok.
 

Sometimes, you can work around this problem by running 'mvn install'
before.

- Henry


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



Re: using javadocDirectory with maven-javadoc-plugin

2007-06-16 Thread Heinrich Nirschl
On Sat, 2007-06-16 at 19:21 +0100, Adam Hardy wrote:
 Heinrich Nirschl on 15/06/07 18:35, wrote:
  On Thu, 2007-06-14 at 23:07 +0100, Adam Hardy wrote:
  I thought I'd post a more generic description since it seems no-one else 
  recognises the problem.
 
  Can't find any references to it in the JIRA or on the mailing list or in 
  fact 
  just generally by googling (there is some stuff but it was for mvn 1.1 and 
  fixed).
 
  Using the src/main/javadoc directory for package.html files just doesn't 
  work.
 
  Does anyone successfully process their package.html and images etc from 
  src/main/javadoc? I'd be interested to hear.
 
  Thanks
  Adam
 
  
  Yes, this works here (Java 5, Maven 2.0.6, javadoc plugin 2.2). At least
  the package.html bit, I did not try images. There is an issue with
  aggregated documentation
  ( http://jira.codehaus.org/browse/MJAVADOC-118 ) but this should not
  apply to your case.
 
 Henry,
 
 how are you specifying the maven-javadoc-plugin config?
 
 Do you have the src/main/javadoc directory declared in sourcepath/ or in 
 javadocDirectory/ or not declared at all?

I do not declare the src/main/javadoc anywhere. It works out of the box.
By the way, am working on Linux, this may also be relevant.

 
 I realised that javadoc would have no problem processing the package.html 
 files 
 if I declared the src/main/javadoc in the sourcepath/ but that is just a 
 work-around, since it would make javadocDirectory/ redundant - or am I 
 missing 
 something?

You may experiment with the debug parameter of the javadoc plugin. This
will reveal the javadoc command actually used. Maybe you can find out
why your setup does not work.

 
 Thanks for the pointer to the bug. I tried using the src/main/javadoc dir 
 structure in a multi-module project and the directory wasn't processed, 
 unfortunately. You say you are using plugin 2.2 but the fix for the bug is in 
 2.3 - so you must be using src/main/javadoc only in the parent project?

I don't use aggregation for the moment (until version 2.3 is out). If
this is too inconvenient, I just put package.html below src/main/java.
Your approach with the sourcepath seems more elegant.

- Henry



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



RE: How do multiple plugin executions work?

2007-06-15 Thread Heinrich Nirschl
On Thu, 2007-06-14 at 16:07 -0400, Brian E. Fox wrote:
  Don't know if this helps, but according to the docu, the
 outputDirectory should be directly below configuration, at the same
 level as artifactItems. It's worth a try.
 
 Actually both are valid. It lets you specify a single common directory
 or one for each artifact.

Good to know. I got the impression from here
http://maven.apache.org/plugins/maven-dependency-plugin/copy-mojo.html#artifactItems
that it would not be allowed.

- Henry




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



Re: using javadocDirectory with maven-javadoc-plugin [was: package.html resources not read]

2007-06-15 Thread Heinrich Nirschl
On Thu, 2007-06-14 at 23:07 +0100, Adam Hardy wrote:
 I thought I'd post a more generic description since it seems no-one else 
 recognises the problem.
 
 Can't find any references to it in the JIRA or on the mailing list or in fact 
 just generally by googling (there is some stuff but it was for mvn 1.1 and 
 fixed).
 
 Using the src/main/javadoc directory for package.html files just doesn't work.
 
 Does anyone successfully process their package.html and images etc from 
 src/main/javadoc? I'd be interested to hear.
 
 Thanks
 Adam
 

Yes, this works here (Java 5, Maven 2.0.6, javadoc plugin 2.2). At least
the package.html bit, I did not try images. There is an issue with
aggregated documentation
( http://jira.codehaus.org/browse/MJAVADOC-118 ) but this should not
apply to your case.

- Henry




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



Re: How do multiple plugin executions work?

2007-06-14 Thread Heinrich Nirschl
On Thu, 2007-06-14 at 10:35 +0100, Kevin Stembridge wrote:
 Hi all,
 I need to use the dependency plugin for two separate tasks in a project.
 I don't understand how to define multiple executions of a plugin. The 
 relevant portion of my pom.xml and the error message are below.
 
 Also, what is the purpose of the id element in an execution? Can I use 
 it from the command line to invoke a specific execution?
 
 
 Thanks for any help.
 Kevin
 
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-dependency-plugin/artifactId
 executions
  
 execution
 idcopy-dependencies/id
 phaseprocess-resources/phase
 goals
 goalcopy-dependencies/goal
 /goals
 configuration
 outputDirectory
 ${project.build.directory}/dependencies/outputDirectory
 overWriteReleasesfalse/overWriteReleases
 overWriteSnapshotsfalse/overWriteSnapshots
 overWriteIfNewertrue/overWriteIfNewer
 stripVersiontrue/stripVersion
 /configuration
 /execution
  
 execution
 idupdate-server/id
 goals
 goalcopy/goal
 /goals
 configuration
 artifactItems
 artifactItem
 groupIdcom.db.abfo/groupId
 artifactIdabfo-webstart-web/
 artifactId
 version${project.version}/version
 overWritetrue/overWrite
 outputDirectory
 ${jboss.server.abfo.deploy.dir}/outputDirectory

Don't know if this helps, but according to the docu, the
outputDirectory should be directly below configuration, at the same
level as artifactItems. It's worth a try.

 /artifactItem
 /artifactItems

*** put outputDirectory here

 /configuration
 /execution
  
 /executions
 /plugin
 
 


- Henry




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



Re: maven-jar-plugin wraps manifest.mf line at wrong position

2007-06-08 Thread Heinrich Nirschl
On Fri, 2007-06-08 at 16:21 +0800, 張旭 wrote:
 Dear friends,
 I have encountered a strange problem when specify  custom manifest file when
 using the maven-jar-plugin.
 I've a very very long line in the manifest file that maybe have hundreds
 columns.
 It seems that the plug-in will automatically wrap the line every 70 cols.
 Is there a parameter in configuration that can override the default
 behavior?

The plugin does the right thing and you really don't want to override
that. From the Jar specification:

quote
No line may be longer than 72 bytes (not characters), in its
UTF8-encoded form. If a value would make the initial line longer than
this, it should be continued on extra lines (each starting with a single
SPACE).
/quote

- Henry


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



Re: Locale problem with subversion when running release:prepare

2007-05-29 Thread Heinrich Nirschl
I think the error messages are written by svn because the en_US.UTF-8
locale does not exist on the machine. I can reproduce the errors if I
try svn with a non-existing locale (en_GB does not exist on my box):

$ LANG=en_GB svn st
svn: error: cannot set LC_ALL locale
svn: error: environment variable LANG is en_GB
svn: error: please check that your locale name is correct

To check which locales are available the command

$ locale -a

can be used.

- Henry

On Tue, 2007-05-29 at 18:34 +0200, Emmanuel Venisse wrote:
 LC_MESSAGE=en_EN is set by default in this version because maven-scm can't 
 parse messages that aren't in english.
 
 Do you have already set LC_ALL?
 Maybe it will work if you set LANG to en_EN
 
 Emmanuel
 
 Owen Jacobson a écrit :
  It is 2.0-beta-6; will that solution still apply?
  
  Owen
  
  On 5/28/07, Emmanuel Venisse [EMAIL PROTECTED] wrote:
  What is your release plugin version?
 
  If it isn't 2.0-bate-6, you can try to set LC_MESSAGES to en_EN
 
  Emmanuel
 
  Owen Jacobson a écrit :
   Good afternoon.
  
   I recently upgraded from Maven 2.0.4 to 2.0.6.  At about the same
   time, the maven-release-plugin stopped working with subversion SCM
   configurations.
  
   When I try to run release:prepare, I get the following:
  
   [INFO] Executing: svn --non-interactive status
   [INFO] Working directory: /home/ojacobson/admin-parent
   [INFO]
   
  
   [ERROR] BUILD FAILURE
   [INFO]
   
  
   [INFO] Unable to check for local modifications
   Provider message:
   The svn command failed.
   Command output:
   svn: error: cannot set LC_ALL locale
   svn: error: environment variable LANG is en_US.UTF-8
   svn: error: please check that your locale name is correct
  
   However, if I run
   $ cd /home/ojacobson/admin-parent
   $ svn --non-interactive status
   myself, I get a normal, successful svn stat listing.
  
   The subversion guys are stumped; anyone from the maven side have any
   suggestions?
  
   Owen
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: Locale problem with subversion when running release:prepare

2007-05-29 Thread Heinrich Nirschl
Setting LC_MESSAGES to en_EN really seems to be the problem:

$ LANG=en_US.UTF-8 svn st

works, but

$ LC_MESSAGES=en_EN LANG=en_US.UTF-8 svn st
svn: error: cannot set LC_ALL locale
svn: error: environment variable LANG is en_US.UTF-8
svn: error: please check that your locale name is correct

does not. Note the misleading error message spit out by svn in this
case. I do have en_US.UTF-8 but not en_EN.

- Henry

On Tue, 2007-05-29 at 20:03 +0200, Emmanuel Venisse wrote:
 LC_MESSAGES is set in 1.0, it worked fine on my platforms but it seems it 
 isn't the same for other.
 
 File an issue for the svn provider on Maven-SCM, and I'll release an 1.0.1 
 asap.
 
 Emmanuel
 
 [EMAIL PROTECTED] a écrit :
  Does any one know why this just started to happen? Did the SCM plugin
  change?
  I have been using 2.0.4 since Nov 2006. Do I need to upgrade or is there a
  setting I need to re-config.
  
  
  
  On 5/29/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
  so after I set LANG to en_US, I still get the error:
 
  css-paps01:-setenv LANG en_US
 
  [INFO] [scm:update]
  [INFO] Executing: svn --non-interactive update
  [INFO] Working directory: /usr2/local/builds/CSS_JAVA_DEV/projects
  [ERROR] Provider message:
  [ERROR] The svn command failed.
  [ERROR] Command output:
  [ERROR] couldn't set locale correctly
  couldn't set locale correctly
  svn: error: cannot set LC_ALL locale
  svn: error: environment variable LANG is en_US
  svn: error: please check that your locale name is correct
 
 
  On 5/29/07, [EMAIL PROTECTED]  [EMAIL PROTECTED] wrote:
  
   I have the locale settings but I still have the errors. Also, I am 
  using
   cshell so I hope setenv is doing the same things as  export.
  
   css-paps01:-locale -a
   C
   POSIX
   en_CA
   en_CA.ISO8859-1
   en_US
   en_US.ISO8859-1
   en_US.ISO8859-15
   [EMAIL PROTECTED]
   en_US.UTF-8
   es
   es.UTF-8
   es_MX
   es_MX.ISO8859-1
   fr
   fr.UTF-8
   fr_CA
   fr_CA.ISO8859-1
   iso_8859_1
   ja
   ja_JP.PCK
  
  
   On 5/29/07, Heinrich Nirschl [EMAIL PROTECTED] wrote:
   
I think the error messages are written by svn because the en_US.UTF-8
locale does not exist on the machine. I can reproduce the errors if I
try svn with a non-existing locale (en_GB does not exist on my box):
   
$ LANG=en_GB svn st
svn: error: cannot set LC_ALL locale
svn: error: environment variable LANG is en_GB
svn: error: please check that your locale name is correct
   
To check which locales are available the command
   
$ locale -a
   
can be used.
   
- Henry
   
On Tue, 2007-05-29 at 18:34 +0200, Emmanuel Venisse wrote:
 LC_MESSAGE=en_EN is set by default in this version because 
  maven-scm
can't parse messages that aren't in english.

 Do you have already set LC_ALL?
 Maybe it will work if you set LANG to en_EN

 Emmanuel

 Owen Jacobson a écrit :
  It is 2.0-beta-6; will that solution still apply?
 
  Owen
 
  On 5/28/07, Emmanuel Venisse [EMAIL PROTECTED]  wrote:
  What is your release plugin version?
 
  If it isn't 2.0-bate-6, you can try to set LC_MESSAGES to en_EN
 
  Emmanuel
 
  Owen Jacobson a écrit :
   Good afternoon.
  
   I recently upgraded from Maven 2.0.4 to 2.0.6.  At about the
same
   time, the maven-release-plugin stopped working with subversion
SCM
   configurations.
  
   When I try to run release:prepare, I get the following:
  
   [INFO] Executing: svn --non-interactive status
   [INFO] Working directory: /home/ojacobson/admin-parent
   [INFO]
  
 

  
   [ERROR] BUILD FAILURE
   [INFO]
  
 

  
   [INFO] Unable to check for local modifications
   Provider message:
   The svn command failed.
   Command output:
   svn: error: cannot set LC_ALL locale
   svn: error: environment variable LANG is en_US.UTF-8
   svn: error: please check that your locale name is correct
  
   However, if I run
   $ cd /home/ojacobson/admin-parent
   $ svn --non-interactive status
   myself, I get a normal, successful svn stat listing.
  
   The subversion guys are stumped; anyone from the maven side
have any
   suggestions?
  
   Owen
  
  
-
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED

Re: Releasing a branch?

2007-04-27 Thread Heinrich Nirschl

On 4/27/07, Emmanuel Venisse [EMAIL PROTECTED] wrote:

I'll look at the issue created by Jim, but it was in my planning to implement 
the branch creation in the next month.

Emmanuel


There is another, slightly related issue. From time to time, you want
to merge the bug fixes from the maintenance branch back to the trunk.
The problem is, that you get merge conflicts on all the POMs because
of the version fields that have changed on the trunk and on the
maintenance branch. This makes again some manual intervention
necessary. I don't have a good solution for that either. Ideas are
welcome.

I think part of the problem with branching and merging is that even if
you keep all the module versions in sync you have the version
information literally written in every POM in your project (as version
of the artifact or as version of the parent POM). It would be much
less painful if there was just one place to adapt. However, I don't
see how a central specification of the version could be achieved
without loosing the ability to build modules individually.

- Henry

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



Re: Releasing a branch?

2007-04-27 Thread Heinrich Nirschl

On 4/27/07, Roland Asmann [EMAIL PROTECTED] wrote:

Branching (as I've stated a couple of time now) is an issue, which I feel can
and should be automated. However, the merging of code is something that I
feel should be left with manual intervention.

Some bugs that have been fixed in a branch, may have been solved in the head
already by e.g. implementing a new feature (maybe you stumbled upon the bug
or you had to refactor some code and fixed the bug without knowing). So, in
my opinion, the merging must remain a manual process.


I fully agree, I am not proposing that it should be automated. The
issue is, even if the difficulties you mentioned don't come up, there
is one place where you *always* get conflicts, namely the version
fields in the POMs.

Henry

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



Re: Filtering resources into a directory other than classes for a webapp?

2007-04-27 Thread Heinrich Nirschl

On 4/27/07, Jared Blitzstein [EMAIL PROTECTED] wrote:

I'm using the webapp archetype and our apps are configured to have
the properties files in /WEB-INF/config/ rather than /WEB-INF/
classes/ which maven defaults to for resource filtering. I see the
targetPath tag in the resource tag but that's only for packages,
not directories outside classes. I tried tricking it with a path
of ../config/ but that only works when it creates the classes
directory, not the WAR or exploded app. Any suggestions to get this
to work without having to run an ant script afterwards to move the
files?


The war plugin can do that. Have a look at
http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html

- Henry

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



Re: How to access a file that's inside an executable jar assembly, programatically

2007-04-27 Thread Heinrich Nirschl

On 4/27/07, Ed Young [EMAIL PROTECTED] wrote:

I'd like to display the license information contained in a file that
has been assembled into an executable jar file assembly when the user
passes a command line parameter.

I'm not sure if this is a maven issue, really, but the executable
assembly was created using the maven assembly plugin.


Indeed not a maven issue. You have to load it as a resource. This link
should help:
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html#getResourceAsStream(java.lang.String)

- Henry

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



Re: Weird url while trying to download a dependency

2007-04-27 Thread Heinrich Nirschl
On Fri, 2007-04-27 at 10:03 -0700, mateamargo wrote:
 I have deployed a maven-plugin in a remote repository with this commands:
 
 mvn deploy:deploy-file -DgroupId=org.apache.jmeter
 -DartifactId=maven-jmeter-plugin -Dversion=1.0-SNAPSHOT
 -Dpackaging=maven-plugin -Dfile=maven-jmeter-plugin-1.0-SNAPSHOT.jar
 -DrepositoryId=internal.repo -DpomFile=pom.xml
 -Durl=file:///var/www/projects/maven/internal
 
 When Maven tries to download the POM, the url is fine:
 
 http://server/projects/maven/internal//org/apache/jmeter/maven-jmeter-plugin/1.0-SNAPSHOT/maven-jmeter-plugin-1.0-20070427.164340-1.pom
 
 but when it tries to download the jar:
 
 http://server/var/www/projects/maven/internal/org/apache/jmeter/maven-jmeter-plugin/1.0-SNAPSHOT/maven-jmeter-plugin-1.0-20070427.164340-1.jar
 
 it adds a var/www/ into the URL, and I don't know why
 
 any ideas?
 
 thanks.

Just a wild guess, do you have the var/www specified in the url of your
pluginRepository section in the pom?

- Henry


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



Re: Filtering resources into a directory other than classes for a webapp?

2007-04-27 Thread Heinrich Nirschl
On Fri, 2007-04-27 at 15:17 -0400, Jared Blitzstein wrote:
 Thanks, I've read that as well as http://maven.apache.org/guides/ 
 getting-started/index.html#How%20do%20I%20filter%20resource%20files  
 and it's basically the same thing as the WAR plugin...I believe.  
 Since I need this on both the WAR and the exploded app for jetty, I'm  
 not sure if the war plugin is what I need to be using. But the files  
 are actually being filtered, it's just they're not ending up in /WEB- 
 INF/config/ like I want.  They're going to /WEB-INF/classes/WEB-INF/ 
 config/. Here is the snippet from my pom
 
   filters
   filtersrc/main/filters/${env}.var/filter
   /filters
   resources
   resource
   
 directorysrc/main/webapp/WEB-INF/config/directory
   filteringtrue/filtering
   targetPathWEB-INF/config//targetPath
   /resource
   /resources
 
 
 Any ideas?
 

I have not tried this, but according to the documentation a
configuration similar to this for the war plugin should work:

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
configuration
  filters
filtersrc/main/filters/${env}.var/filter
  /filters
  webResources
 resource
   !-- the config files you want to filter should be in this directory 
--
   directoryconfigurations/directory 
   targetPathWEB-INF/config/targetPath
   !-- enable filtering --
   filteringtrue/filtering
 /resource
  /webResources
/configuration
  /plugin

- Henry


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



  1   2   >