Re: Continuum 1.1.0-beta-2 UI performance

2007-09-11 Thread Damien Lecan
  I could activate some special debug log or anything else which could help ?

 you can set the log level of JPOX* and SQL to DEBUG in 
 apps/continuum/webapp/WEB-INF/classes/META-INF/plexus/application.xml

I did that. I load page Project Group Summary of a 17 module project.


For a request that begins at 00:00:00 and ends at 00:00:18, I get that :

00:00:01,692 [http-8081-Processor9] DEBUG General - Implementation
creator not configured. Due to that, the persistence of interfaces was
disabled!

... lot of logs

00:00:02,870 [http-8081-Processor9] DEBUG JDO - Persistence Manager
[EMAIL PROTECTED] closed

2 sec to retrieve data.

But what happens between 00:00:02,870 and 00:00:18 ?

More logs to enable ?

Thanks

Damien


Re: Can`t connect to CVS on sourceforge

2007-09-11 Thread Emmanuel Venisse

no, I don't have infos that I need.
I need lines between
NFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,359
[pool-1-thread-1] INFO  ContinuumScm:default   - Checking out project: 'bugHunt', id: '1' to 'E:\leo\ci\continuum-1.1-beta-2\apps\continuum\webapp\WEB-INF\working-directory\1' with branch/tag 
HEAD.


and

INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,375 
[pool-1-thread-1] INFO  BuildController:default- Merging SCM results

you can add a new logLevel for org.apache.maven.scm to DEBUG or set the 
threshold to DEBUG

Emmanuel


Leonardo Borges Barbosa a écrit :

Hey, not sure if I made it right but that's the new log:

Hope this helps now!

thanks

INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,203
[pool-1-thread-1] INFO  BuildController:default- Starting build of
bugHunt
INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,203
[SocketListener0-1] DEBUG MemoryStore- keysCacheCache:
keysCacheMemoryStore miss for 6d8e72f09b3d47c5a10932ecf77d536d
INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,203
[SocketListener0-1] DEBUG Cache  - keysCache cache -
Miss
INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,203
[SocketListener0-1] DEBUG MemoryStore- usersCacheCache:
usersCacheMemoryStore hit for admin
INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,203
[SocketListener0-1] DEBUG MemoryStore-
userPermissionsCacheCache: userPermissionsCacheMemoryStore hit for admin
INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,203
[SocketListener0-1] DEBUG MemoryStore- keysCacheCache:
keysCacheMemoryStore hit for eb8fad2fd58446d09b58c74135decfe4
INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,203
[SocketListener0-1] DEBUG MemoryStore- keysCacheCache:
keysCacheMemoryStore miss for 28a1815ba399481197f5556438e0c3bc
INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,203
[SocketListener0-1] DEBUG Cache  - keysCache cache -
Miss
INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,203
[SocketListener0-1] DEBUG MemoryStore- usersCacheCache:
usersCacheMemoryStore hit for admin
INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,281
[SocketListener0-1] DEBUG MemoryStore-
userPermissionsCacheCache: userPermissionsCacheMemoryStore hit for admin
INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,281
[SocketListener0-1] DEBUG MemoryStore-
userPermissionsCacheCache: userPermissionsCacheMemoryStore hit for admin
INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,281
[SocketListener0-1] DEBUG MemoryStore-
userPermissionsCacheCache: userPermissionsCacheMemoryStore hit for admin
INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,281
[SocketListener0-1] DEBUG MemoryStore-
userPermissionsCacheCache: userPermissionsCacheMemoryStore hit for admin
INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,296
[SocketListener0-1] DEBUG MemoryStore-
userPermissionsCacheCache: userPermissionsCacheMemoryStore hit for admin
INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,328
[pool-1-thread-1] INFO  BuildController:default- Updating working
dir
INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,328
[pool-1-thread-1] INFO  BuildController:default- Performing action
check-working-directory
INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,343
[pool-1-thread-1] INFO  BuildController:default- Performing action
checkout-project
INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,359
[pool-1-thread-1] INFO  ContinuumScm:default   - Checking out
project: 'bugHunt', id: '1' to 'E:\leo\ci\continuum-
1.1-beta-2\apps\continuum\webapp\WEB-INF\working-directory\1' with
branch/tag HEAD.
INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,375
[pool-1-thread-1] INFO  BuildController:default- Merging SCM results
INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,484
[SocketListener0-1] DEBUG MemoryStore- keysCacheCache:
keysCacheMemoryStore hit for eb8fad2fd58446d09b58c74135decfe4
INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,484
[SocketListener0-1] DEBUG MemoryStore- keysCacheCache:
keysCacheMemoryStore miss for 4ef213e6e65340b482afeb39b8665c8f
INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,484
[SocketListener0-1] DEBUG Cache  - keysCache cache -
Miss
INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,484
[SocketListener0-1] DEBUG MemoryStore- usersCacheCache:
usersCacheMemoryStore hit for admin
INFO   | jvm 1| 2007/09/11 13:02:38 | 2007-09-11 13:02:38,484

Re: Continuum 1.1.0-beta-2 UI performance

2007-09-11 Thread Emmanuel Venisse

 for 
http://maven.zones.apache.org/continuum/projectGroupSummary.action?projectGroupId=9
we have 30 modules printed in 7,5s and the page size is 101ko

We use the standalone version installed in a vm.

Emmanuel

Damien Lecan a écrit :

2007/9/11, Emmanuel Venisse [EMAIL PROTECTED]:

I don't understand why it is so slow to render the project list because the 
rendering start with this line:

00:00:03,452 [http-8081-Processor11] DEBUG ServletDispatcherResult- 
Forwarding to location /WEB-INF/jsp/components/projectSummaryComponent.jsp

and end with this line:

00:00:21,213 [http-8081-Processor11] DEBUG ServletDispatcherResult- 
Forwarding to location /WEB-INF/jsp/components/companyLogo.jsp

so it's 18 seconds to print the html, very long because we don't have data to 
process there. We don't have the hand on this part because the rendering is 
webwork and extremecomponents work.

Can you try with the Continuum standalone version to see if the result is 
different?
What is your jdk?


Resulting page is about 71kb.

I'm using Java 1.5.0_11 under Linux fedora

I'll try asap Continuum as a standalone instance (without Tomcat).

Thanks

Damien






RE: Is there a property for parent directory?

2007-09-11 Thread Huang, Yan
I have a tools directory under parent and the children projects need
to invoke commands under tools during the phase of code generation. I
want to provide an absolute path to that ${parent}/tools so that each
child can invoke from there. 

Or is there other better way to solve it? is there really a ${parent}
property tag in maven?

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 10, 2007 6:52 PM
To: Maven Users List
Subject: Re: Is there a property for parent directory?

Why do you need to do this? There may be a better way to do the same
thing that does not involve a ${parent} tag at all.

Wayne

On 9/10/07, Huang, Yan [EMAIL PROTECTED] wrote:
 Hi,

 Is there a property or way to get parent directory in maven? Let's say
I
 have this structure of my projects:

 Parent
  | pom.xml
  | child project 1
  |   |___ pom.xml
  | child project 2
  |___ pom.xml


 Child project 1 and project 2 will inherit from parent 1. Now, when
 building children projects, is there a property in maven that can be
 used to refer to the actual directory of parent during build time? I
 know the notation of ${basedir}/../ might work in most cases, but what
 if child project is in another level down, i.e.

 Parent
  | pom.xml
  | children folder 1
  | |___ child project 1
  | | |
  | | |___ pom.xml
  | |___ child project 2
  |   |___ pom.xml
  | child project 3
  |___ pom.xml


 Thanks
 Yan

 -
 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]



How to run a batch file or shell script from maven

2007-09-11 Thread Hussein Badakhchani
Hello,

Can anyone tell me how to run a batch file or shell script from maven?

Thanks,
Hoos



-- 
Hussein Badakhchani
Xenith Consulting Limited

Blog: http://dev2dev.bea.com/blog/hoos/


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



Maven Antrun Plugin - specific target call

2007-09-11 Thread Ritz, Martin
Hi,

I have some ant targets integrated in my pom.xml.
I declared an ant build script which is therefor called from maven.
Now I dont want to perform every ant target on every build.
Is there a way to call only specific ant-targets from the command line (maybe 
by calling the target or the id)?

---
kind regards
Martin Ritz

 BTC AG - Unit Software Engineering
mailto:[EMAIL PROTECTED]



Re: How to run a batch file or shell script from maven

2007-09-11 Thread Hussein Badakhchani
Thanks for the quick response.

 Hello,

 Can anyone tell me how to run a batch file or shell script from maven?

 Look at this plugin :
 http://mojo.codehaus.org/exec-maven-plugin


 Damien

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




-- 
Hussein Badakhchani
Xenith Consulting Limited

Blog: http://dev2dev.bea.com/blog/hoos/


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



Re: How to run a batch file or shell script from maven

2007-09-11 Thread Damien Lecan
Hello,

 Can anyone tell me how to run a batch file or shell script from maven?

Look at this plugin :
http://mojo.codehaus.org/exec-maven-plugin


Damien

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



Re: The specified resource isn't a file or the protocol used isn't allowed.

2007-09-11 Thread Emmanuel Venisse

Hi Graham,

Can you turn on debug logs to see if more informations are available?

Emmanuel

Graham Leggett a écrit :

Hi all,

While trying to install Continuum v1.1 beta 2 from scratch on a Windows
machine, I have managed to get it started up and working, and am trying to
enter the first set of projects.

When I enter the POM url of
https://svn.server/svn/alchemy/Rhapsody/Development/native/trunk/pom.xml;
I get the error:

The specified resource isn't a file or the protocol used isn't allowed.

The strange part is that if I enter the incorrect username or password, I
get an incorrect username or password error - meaning that continuum
correctly connected to the SSL server, tried to log in, and correctly
parsed the access denied condition.

As soon as access is granted, things seem to go pear shaped. Does anyone
know what may be wrong?

The log generated by the failure looks like this:

INFO   | jvm 1| 2007/09/03 12:35:52 | 2007-09-03 12:35:51,961
[SocketListener0-1] INFO  DispatcherUtils- Unable to find
'webwork.multipart.saveDir' property setting. Defaulting to
javax.servlet.context.tempdir
INFO   | jvm 1| 2007/09/03 12:35:52 | 2007-09-03 12:35:51,977
[SocketListener0-1] WARN  MultiPartRequest   - Item is a file
upload of 0 size, ignoring
INFO   | jvm 1| 2007/09/03 12:35:52 | 2007-09-03 12:35:51,977
[SocketListener0-1] ERROR DispatcherUtils- Error setting
character encoding to 'UTF-8' - ignoring.
INFO   | jvm 1| 2007/09/03 12:35:52 | java.lang.IllegalStateException:
getReader() or getInputStream() called
INFO   | jvm 1| 2007/09/03 12:35:52 |   at
org.mortbay.jetty.servlet.ServletHttpRequest.setCharacterEncoding(ServletHttpRequest.java:602)
INFO   | jvm 1| 2007/09/03 12:35:52 |   at
javax.servlet.ServletRequestWrapper.setCharacterEncoding(ServletRequestWrapper.java:112)
INFO   | jvm 1| 2007/09/03 12:35:52 |   at
com.opensymphony.webwork.dispatcher.DispatcherUtils.prepare(DispatcherUtils.java:392)
INFO   | jvm 1| 2007/09/03 12:35:52 |   at
com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:160)
INFO   | jvm 1| 2007/09/03 12:35:52 |   at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
INFO   | jvm 1| 2007/09/03 12:35:52 |   at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
INFO   | jvm 1| 2007/09/03 12:35:52 |   at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
INFO   | jvm 1| 2007/09/03 12:35:52 |   at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
INFO   | jvm 1| 2007/09/03 12:35:52 |   at
com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:88)
INFO   | jvm 1| 2007/09/03 12:35:52 |   at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
INFO   | jvm 1| 2007/09/03 12:35:52 |   at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
INFO   | jvm 1| 2007/09/03 12:35:52 |   at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
INFO   | jvm 1| 2007/09/03 12:35:52 |   at
org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
INFO   | jvm 1| 2007/09/03 12:35:52 |   at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
INFO   | jvm 1| 2007/09/03 12:35:52 |   at
org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
INFO   | jvm 1| 2007/09/03 12:35:52 |   at
org.mortbay.http.HttpServer.service(HttpServer.java:909)
INFO   | jvm 1| 2007/09/03 12:35:52 |   at
org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
INFO   | jvm 1| 2007/09/03 12:35:52 |   at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982) INFO  
| jvm 1| 2007/09/03 12:35:52 | 	at

org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
INFO   | jvm 1| 2007/09/03 12:35:52 |   at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
INFO   | jvm 1| 2007/09/03 12:35:52 |   at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
INFO   | jvm 1| 2007/09/03 12:35:52 |   at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

Regards,
Graham
--











Dependency scope

2007-09-11 Thread Martin Gilday
Is there a dependency scope which makes an artifact available for
compilation of src/main/java and also on the test classpath, but not
included in the resulting WAR?  I have tried provided which makes sense
in excluding it from the WAR but then it is not available to my tests. 
The only solution I have found is to make another profile to use when
testing which overwrites the provided scope to default scope.  This
means duplicating all of the dependency blocks, so is far from ideal.

Any ideas?

Thanks,
Martin.

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



Re: Continuum 1.1.0-beta-2 UI performance

2007-09-11 Thread Damien Lecan
2007/9/10, Emmanuel Venisse [EMAIL PROTECTED]:
 Continuum can't be compared to Archiva because in Continuum
 pages we have lot of db queries.

This server is also running Jira (same local MySql server, same Tomcat
instance), without a such slowness.
Are you interested in knowing what's happening on my server ?

I could activate some special debug log or anything else which could help ?

Damien


Re: Continuum 1.1.0-beta-2 UI performance

2007-09-11 Thread Emmanuel Venisse



Damien Lecan a écrit :

2007/9/10, Emmanuel Venisse [EMAIL PROTECTED]:

Continuum can't be compared to Archiva because in Continuum
pages we have lot of db queries.


This server is also running Jira (same local MySql server, same Tomcat
instance), without a such slowness.
Are you interested in knowing what's happening on my server ?


sure.



I could activate some special debug log or anything else which could help ?


you can set the log level of JPOX* and SQL to DEBUG in 
apps/continuum/webapp/WEB-INF/classes/META-INF/plexus/application.xml

Emmanuel




Re: Can`t connect to CVS on sourceforge

2007-09-11 Thread Emmanuel Venisse

Can you set the log level of org.apache.maven.scm to DEBUG? I'd like to know 
what is the command and the error.

Emmanuel

Leonardo Borges Barbosa a écrit :

Guys, I am probably missing something, but after some searching, I couldn`t
find what it is.  Any help would be apreciated.

This is the SCM url I am using:
scm:cvs:extssh:[EMAIL PROTECTED]:/cvsroot/bughunt

The branch/tag:
HEAD

Then, when I try to build this is what I get from the build result:

Provider message: The cvs command failed.
Command output:
---


---

And in the logs:
INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,203
[SocketListener0-1] INFO  Continuum:default  - Enqueuing
'bugHunt' (Build definition id=2).

INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,203
[pool-1-thread-1] INFO  BuildController:default- Initializing
build
INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,218
[pool-1-thread-1] INFO  BuildController:default- Starting
build of bugHunt

INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,265
[pool-1-thread-1] INFO  BuildController:default- Updating
working dir
INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,265
[pool-1-thread-1] INFO  BuildController:default- Performing
action check-working-directory

INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,265
[pool-1-thread-1] INFO  BuildController:default- Performing
action checkout-project
INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,265
[pool-1-thread-1] INFO  ContinuumScm:default   - Checking out
project: 'bugHunt', id: '1' to 'E:\leo\ci\continuum-
1.1-beta-2\apps\continuum\webapp\WEB-INF\working-directory\1' with
branch/tag HEAD.
INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,281
[pool-1-thread-1] INFO  BuildController:default- Merging SCM
results

INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,328
[pool-1-thread-1] INFO  BuildController:default- Error
updating from SCM, not building


Thanks in advance for any help!

ps: I also read somewhere I should configure an environment variable
called CVS_RSH=ssh. This variable is configured.





Re: Dependency scope

2007-09-11 Thread Antonio Petrelli
2007/9/11, Martin Gilday [EMAIL PROTECTED]:

 Is there a dependency scope which makes an artifact available for
 compilation of src/main/java and also on the test classpath, but not
 included in the resulting WAR?  I have tried provided which makes sense
 in excluding it from the WAR but then it is not available to my tests.
 The only solution I have found is to make another profile to use when
 testing which overwrites the provided scope to default scope.  This
 means duplicating all of the dependency blocks, so is far from ideal.



I think that you need to exclude it manually, in the WAR plugin
configuration:
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#dependentWarExcludes

HTH
Antonio


Re: Dependency scope

2007-09-11 Thread Martin Gilday
Hi Antonio,
Thanks for the link.  That lead me on to
http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html
So I added a block like so:
plugin
  artifactIdmaven-war-plugin/artifactId
  configuration
warSourceExcludesWEB-INF/lib/MyLib*.jar/warSourceExcludes
  /configuration
/plugin

I use * to avoid duplication of my version (of course I could use
property here).
This prevents the JAR appearing in the WAR as I wish.  Unfortunately
this caused another issue.  All the transitive dependencies of my
artifact still appear in the WAR!  To prevent this would require more
duplication than my original alternative profile method.  Is there a way
to exclude from the WAR but specify dependency artifacts rather than
file patterns?  I'm guessing there isn't from the docs.

Thanks,
Martin

- Original message -
From: Antonio Petrelli [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Date: Tue, 11 Sep 2007 10:50:28 +0200
Subject: Re: Dependency scope

2007/9/11, Martin Gilday [EMAIL PROTECTED]:

 Is there a dependency scope which makes an artifact available for
 compilation of src/main/java and also on the test classpath, but not
 included in the resulting WAR?  I have tried provided which makes sense
 in excluding it from the WAR but then it is not available to my tests.
 The only solution I have found is to make another profile to use when
 testing which overwrites the provided scope to default scope.  This
 means duplicating all of the dependency blocks, so is far from ideal.



I think that you need to exclude it manually, in the WAR plugin
configuration:
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#dependentWarExcludes

HTH
Antonio

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



Re: Dependency scope

2007-09-11 Thread Antonio Petrelli
2007/9/11, Martin Gilday [EMAIL PROTECTED]:
 I have tried provided which makes sense
 in excluding it from the WAR but then it is not available to my tests.

On second thought, are you sure of what you say?
I wrote JUnit tests referring to provided-scoped libraries (like
javax.servlet.*).

Antonio

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



Re: Dependency scope

2007-09-11 Thread Martin Gilday
I think what you say is correct.  I think my problem is really to do
with the Jetty plugin.  I think by saying test I may have misled.  My
situation simplified is this.  dataTier has a dependency on Hibernate. 
This is a dependency of webApp.  dataTier is going to be placed in the
app servers lib folder (Hibernate is already there as this is JBoss AS),
as it contains a parent Spring application context which is used to
share a single SessionFactory across a few WebApps on the server.  So
dataTier is marked as provided in webApp's POM.

webApp
--dataTier (provided)
Hibernate (transitive)

We use the Jetty plugin during development.  This is set to use the test
classpath in addition to compile as so:

!-- Jetty --
plugin
  groupIdorg.mortbay.jetty/groupId
  artifactIdmaven-jetty-plugin/artifactId
  version6.1.5/version
  configuration
scanIntervalSeconds10/scanIntervalSeconds
webXmlsrc/sandbox/etc/web.xml/webXml
useTestClasspathtrue/useTestClasspath
connectors
  connector
implementation=org.mortbay.jetty.nio.SelectChannelConnector
port9090/port
maxIdleTime6/maxIdleTime
  /connector
/connectors
  /configuration
/plugin

When I startup Jetty it is unable to find dataTier.jar.  If I change
dataTier from provided to default everything works fine.


- Original message -
From: Antonio Petrelli [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Date: Tue, 11 Sep 2007 11:15:44 +0200
Subject: Re: Dependency scope

2007/9/11, Martin Gilday [EMAIL PROTECTED]:
 I have tried provided which makes sense
 in excluding it from the WAR but then it is not available to my tests.

On second thought, are you sure of what you say?
I wrote JUnit tests referring to provided-scoped libraries (like
javax.servlet.*).

Antonio

-
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: Dependency scope

2007-09-11 Thread Antonio Petrelli
2007/9/11, Martin Gilday [EMAIL PROTECTED]:

 I think what you say is correct.  I think my problem is really to do
 with the Jetty plugin.  I think by saying test I may have misled.  My
 situation simplified is this.  dataTier has a dependency on Hibernate.
 This is a dependency of webApp.  dataTier is going to be placed in the
 app servers lib folder (Hibernate is already there as this is JBoss AS),
 as it contains a parent Spring application context which is used to
 share a single SessionFactory across a few WebApps on the server.  So
 dataTier is marked as provided in webApp's POM.



Now everything is clear :-)
IMHO the most elegant way to do it is by using profiles, but, again IMHO,
the Jetty configuration should be the default profile, while the JBoss
configuration is the exception: just because usually all needed libraries
are put in WEB-INF/lib, and putting in a common place is just an exception
for your particular needs.

At the end, I think that I did not answer your question :-(
Antonio


Re: Dependency scope

2007-09-11 Thread Martin Gilday
I think in a way you did answer it, in that there probably isn't an
easier way than by profiles.  It does work it just seems to result in a
lot of duplication in my POM.  Here is a (very) cut down version of what
I mean:

project
  properties
version.dataTier2.4-SNAPSHOT/version.dataTier   
  /properties

  dependencies
dependency
  groupIdmygroup/groupId
  artifactIddataTier/artifactId
  version${version.dataTier}/version
  scopeprovided/scope
/dependency
  /dependencies

  profiles
profile   
  idsandbox/id

  dependencies
dependency
  groupIdmygroup/groupId
  artifactIddataTier/artifactId
  version${version.dataTier}/version
/dependency
  /dependencies
/profile
  /profiles

/project

So we run mvn -Psandbox jetty:run and everything is fine.  But as you
can see pretty much all of the dependency block is duplicated just to
remove provided.  I think the fix is for the Jetty plugin to offer a
parameter useProvidedScope to complement useTestScope.

- Original message -
From: Antonio Petrelli [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Date: Tue, 11 Sep 2007 11:37:29 +0200
Subject: Re: Dependency scope

2007/9/11, Martin Gilday [EMAIL PROTECTED]:

 I think what you say is correct.  I think my problem is really to do
 with the Jetty plugin.  I think by saying test I may have misled.  My
 situation simplified is this.  dataTier has a dependency on Hibernate.
 This is a dependency of webApp.  dataTier is going to be placed in the
 app servers lib folder (Hibernate is already there as this is JBoss AS),
 as it contains a parent Spring application context which is used to
 share a single SessionFactory across a few WebApps on the server.  So
 dataTier is marked as provided in webApp's POM.



Now everything is clear :-)
IMHO the most elegant way to do it is by using profiles, but, again
IMHO,
the Jetty configuration should be the default profile, while the
JBoss
configuration is the exception: just because usually all needed
libraries
are put in WEB-INF/lib, and putting in a common place is just an
exception
for your particular needs.

At the end, I think that I did not answer your question :-(
Antonio

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



target discrepancy with Mavenide NetBeans plugin

2007-09-11 Thread John Coleman
I'm trying to run my project using the Mavenide for NetBeans.

 

I notice that the NB run setup creates a profile in pom.xml, but when
you run it in NB, it expects the artefact in a project subdirectoy of
target/executable-netbeans, so the execution fails.

 

But the default location for the build is target, can anyone explain
this?

 

TIA,

John

 

 

[INFO]Scanning for projects...

[INFO]artifact org.codehaus.mevenide:netbeans-run-plugin: checking for
updates from company

[INFO]artifact org.codehaus.mevenide:netbeans-run-plugin: checking for
updates from Marketcetera

[INFO]--
--

[INFO]Building FIX Message Simulator

[INFO]   task-segment: [package,
org.codehaus.mevenide:netbeans-run-plugin:LATEST:run-jar]

[INFO]--
--

project-execute

[INFO]artifact org.apache.maven.plugins:maven-resources-plugin: checking
for updates from netbeansIDE-repo-internal

[INFO]artifact org.apache.maven.plugins:maven-compiler-plugin: checking
for updates from netbeansIDE-repo-internal

[INFO]artifact org.apache.maven.plugins:maven-surefire-plugin: checking
for updates from netbeansIDE-repo-internal

[INFO]artifact org.apache.maven.plugins:maven-jar-plugin: checking for
updates from netbeansIDE-repo-internal

[INFO]artifact org.apache.maven.plugins:maven-dependency-plugin:
checking for updates from netbeansIDE-repo-internal

[INFO]artifact org.apache.maven.plugins:maven-assembly-plugin: checking
for updates from netbeansIDE-repo-internal

[resources:resources]

[INFO]Using default encoding to copy filtered resources.

[WARN]Unable to get resource from repository company
(http://ldnbank01-srv/maven2)

[WARN]Unable to get resource from repository Marketcetera
(http://repo.marketcetera.org/maven)

[WARN]Unable to get resource from repository central
(http://repo1.maven.org/maven2)

[WARN]Unable to get resource from repository company
(http://ldnbank01-srv/maven2)

[WARN]Unable to get resource from repository Marketcetera
(http://repo.marketcetera.org/maven)

[WARN]Unable to get resource from repository central
(http://repo1.maven.org/maven2)

[compiler:compile]

[INFO]Nothing to compile - all classes are up to date

[resources:testResources]

[INFO]Using default encoding to copy filtered resources.

[compiler:testCompile]

[INFO]Nothing to compile - all classes are up to date

[surefire:test]

[INFO]No tests to run.

[jar:jar]

[INFO]Building jar:
Z:\jcoleman\projects\TestSim\TestInitiator\target\FIXTestSim-1.0-SNAPSHO
T.jar

[dependency:copy-dependencies {execution: get-deps}]

[INFO]backport-util-concurrent-2.1.jar already exists in destination.

[INFO]jbcl-3.0-rt.jar already exists in destination.

[INFO]jgl-3.1.0.jar already exists in destination.

[INFO]junit-3.8.1.jar already exists in destination.

[INFO]log4j-1.2.13.jar already exists in destination.

[INFO]mina-core-1.1.2.jar already exists in destination.

[INFO]slf4j-api-1.4.3.jar already exists in destination.

[INFO]slf4j-log4j12-1.4.3.jar already exists in destination.

[INFO]quickfixj-1.1.0.jar already exists in destination.

[INFO]tantus-toolbox-1.1.jar already exists in destination.

[INFO]Preparing assembly:directory

[INFO]--
--

[INFO]Building FIX Message Simulator

[INFO]--
--

[WARN]Removing: directory from forked lifecycle, to prevent recursive
invocation.

[resources:resources]

[INFO]Using default encoding to copy filtered resources.

[compiler:compile]

[INFO]Nothing to compile - all classes are up to date

[resources:testResources]

[INFO]Using default encoding to copy filtered resources.

[compiler:testCompile]

[INFO]Nothing to compile - all classes are up to date

[surefire:test]

[INFO]No tests to run.

[jar:jar]

[INFO]Building jar:
Z:\jcoleman\projects\TestSim\TestInitiator\target\FIXTestSim-1.0-SNAPSHO
T.jar

[dependency:copy-dependencies {execution: get-deps}]

[INFO]backport-util-concurrent-2.1.jar already exists in destination.

[INFO]jbcl-3.0-rt.jar already exists in destination.

[INFO]jgl-3.1.0.jar already exists in destination.

[INFO]junit-3.8.1.jar already exists in destination.

[INFO]log4j-1.2.13.jar already exists in destination.

[INFO]mina-core-1.1.2.jar already exists in destination.

[INFO]slf4j-api-1.4.3.jar already exists in destination.

[INFO]slf4j-log4j12-1.4.3.jar already exists in destination.

[INFO]quickfixj-1.1.0.jar already exists in destination.

[INFO]tantus-toolbox-1.1.jar already exists in destination.

[WARN]DEPRECATED [descriptor]: Please use descriptors instead

[assembly:directory {execution: nb}]

[INFO]Processing DependencySet (output=lib)

[INFO]Copying 10 files to
Z:\jcoleman\projects\TestSim\TestInitiator\target\executable-netbeans.di
r

[INFO]artifact org.apache.maven:maven-project: checking for updates from

Re: Release-plugin 'add-on'

2007-09-11 Thread Roland Asmann
I'd like to help out in any way I can. Should I contact one of you personally 
as well, or will this mail suffice?


On Tuesday 11 September 2007 00:02, Brett Porter wrote:
 We have had requests for the ability to do this easily, but there is
 nothing at the moment. If you are interested in helping with this
 functionality, please let us know.

 It may well be possible by redefining the components, but I haven't
 looked at this alternative yet.

 Cheers,
 Brett

 On 11/09/2007, Roland Asmann [EMAIL PROTECTED] wrote:
  Hi everybody!
 
  I want to write a small 'add-on' to the release-plugin, which should be
  activated between the writing of the release-POM and next-iteration POM.
  At the moment I have to manually adjust my POMs after a release to change
  a property. It would be nice (and logical) to have the release-plugin do
  this.
 
  Now, I want to know if (and how) I can write a small add-on in the
  release-plugin. Or should I create my own version of the plugin to make
  this work?
 
  --
  Roland Asmann
 
  CFC Informationssysteme Entwicklungsgesellschaft m.b.H
  Bäckerstrasse 1/2/7
  A-1010 Wien
  FN 266155f, Handelsgericht Wien
 
  Tel.: +43/1/513 88 77 - 27
  Fax.: +43/1/513 88 62
  Email: [EMAIL PROTECTED]
  Web: www.cfc.at
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [EMAIL PROTECTED]
Web: www.cfc.at

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



Re: maven2 plugin

2007-09-11 Thread Roy van der Kuil
On 9/11/07, Roy van der Kuil [EMAIL PROTECTED] wrote:

 Hi,

 For internal use at our company I have written a small maven plugin that
 uses a configuration similar to:
 pom
 blablabla
 configuration
 myobjects
 myobject
 namea_name/name
 type
 namea_type/name
 /type
/myobject
 myobject
 namea_name2/name
 type
 namea_type2/name
 /type
/myobject
/myobjects
 /configuration
 /configuration

 With matching javacode:


 public class MyobjectsMojo extends AbstractMojo {


 }



Hmm..  tab-enter is not a good idea in a browser :)
Here is more javacode:
public class MyobjectsMojo extends AbstractMojo {
  private MyObject[] myobjects[]
}

public class Type {
private String name;
}

Everything works fine with maven2.x up to 2.0.4. After that.. it simply
fails to find the configuration for myobjects. Is there any way I can find
out why it fails to map? I have tried mvn -e but no errors at all..
Thanks for your help,
Roy


Re: Is there a property for parent directory?

2007-09-11 Thread Roland Asmann
Yes there is: ${parent.basedir} should be the one you need
Be carefull though, if your child-project are deeper than one level, you 
should use ${parent.parent.basedir} (and so on).

Isn't it possible for you to make a dependency of some kind to the 
tools-project? Or build your tools as maven-plugins, that way you won't need 
the variables!


On Tuesday 11 September 2007 09:22, Huang, Yan wrote:
 I have a tools directory under parent and the children projects need
 to invoke commands under tools during the phase of code generation. I
 want to provide an absolute path to that ${parent}/tools so that each
 child can invoke from there.

 Or is there other better way to solve it? is there really a ${parent}
 property tag in maven?

 -Original Message-
 From: Wayne Fay [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 10, 2007 6:52 PM
 To: Maven Users List
 Subject: Re: Is there a property for parent directory?

 Why do you need to do this? There may be a better way to do the same
 thing that does not involve a ${parent} tag at all.

 Wayne

 On 9/10/07, Huang, Yan [EMAIL PROTECTED] wrote:
  Hi,
 
  Is there a property or way to get parent directory in maven? Let's say

 I

  have this structure of my projects:
 
  Parent
 
   | pom.xml
   | child project 1
   |
   |   |___ pom.xml
   |
   | child project 2
   |
   |___ pom.xml
 
  Child project 1 and project 2 will inherit from parent 1. Now, when
  building children projects, is there a property in maven that can be
  used to refer to the actual directory of parent during build time? I
  know the notation of ${basedir}/../ might work in most cases, but what
  if child project is in another level down, i.e.
 
  Parent
 
   | pom.xml
   | children folder 1
   |
   | |___ child project 1
   | |
   | | |___ pom.xml
   | |
   | |___ child project 2
   | |
   |   |___ pom.xml
   |
   | child project 3
   |
   |___ pom.xml
 
  Thanks
  Yan
 
  -
  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]

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [EMAIL PROTECTED]
Web: www.cfc.at

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



maven2 plugin

2007-09-11 Thread Roy van der Kuil
Hi,

For internal use at our company I have written a small maven plugin that
uses a configuration similar to:
pom
blablabla
configuration
myobjects
myobject
namea_name/name
type
namea_type/name
/type
   /myobject
myobject
namea_name2/name
type
namea_type2/name
/type
   /myobject
   /myobjects
/configuration
/configuration

With matching javacode:


public class MyobjectsMojo extends AbstractMojo {


}


Re: Is there a property for parent directory?

2007-09-11 Thread robert . egan
Is this ${parent} property generally available, i.e. ${parent.artifactId}, 
etc

It would help me refactor a number of places where I use something similar 
to this in a parent POM

properties
super.artifactId${artifactId}super.artifactId
/properties



Roland Asmann [EMAIL PROTECTED] wrote on 09/11/2007 06:49:55 AM:

 Yes there is: ${parent.basedir} should be the one you need
 Be carefull though, if your child-project are deeper than one level, you 

 should use ${parent.parent.basedir} (and so on).
 
 Isn't it possible for you to make a dependency of some kind to the 
 tools-project? Or build your tools as maven-plugins, that way you won't 
need 
 the variables!
 
 [snipped discussion of why...]

This email message and any attachments may contain confidential, 
proprietary or non-public information.  The information is intended solely 
for the designated recipient(s).  If an addressing or transmission error 
has misdirected this email, please notify the sender immediately and 
destroy this email.  Any review, dissemination, use or reliance upon this 
information by unintended recipients is prohibited.  Any opinions 
expressed in this email are those of the author personally.



Re: Is there a property for parent directory?

2007-09-11 Thread Roland Asmann
Yes it is.
${parent} gives you a 'pom', on which you can access all properties that you 
can access directly (e.g. 'groupId', 'artifactId', 'version', 'packaging').


On Tuesday 11 September 2007 13:17, [EMAIL PROTECTED] wrote:
 Is this ${parent} property generally available, i.e. ${parent.artifactId},
 etc

 It would help me refactor a number of places where I use something similar
 to this in a parent POM

 properties
 super.artifactId${artifactId}super.artifactId
 /properties

 Roland Asmann [EMAIL PROTECTED] wrote on 09/11/2007 06:49:55 AM:
  Yes there is: ${parent.basedir} should be the one you need
  Be carefull though, if your child-project are deeper than one level, you
 
  should use ${parent.parent.basedir} (and so on).
 
  Isn't it possible for you to make a dependency of some kind to the
  tools-project? Or build your tools as maven-plugins, that way you won't

 need

  the variables!
 
  [snipped discussion of why...]

 This email message and any attachments may contain confidential,
 proprietary or non-public information.  The information is intended solely
 for the designated recipient(s).  If an addressing or transmission error
 has misdirected this email, please notify the sender immediately and
 destroy this email.  Any review, dissemination, use or reliance upon this
 information by unintended recipients is prohibited.  Any opinions
 expressed in this email are those of the author personally.

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [EMAIL PROTECTED]
Web: www.cfc.at

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



RE: Re: Maven plugin for Eclipse

2007-09-11 Thread Eric Wood
How do you download the Q4E plug-in? The link below says that no download are 
avilable.

Eric 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez
Sent: Monday, September 10, 2007 1:15 PM
To: Maven Users List
Subject: Re: Re: Maven plugin for Eclipse

it's a known issue with m2eclipse 0.0.10
http://jira.codehaus.org/browse/MNGECLIPSE-265

There's another Eclipse plugin Q4E http://code.google.com/p/q4e/ that me and 
other maven users are working on and doesn't have that bug.
Feel free to check it out.


On 9/10/07, De Vleeschauwer Nele [EMAIL PROTECTED] wrote:
 Hi,

 Even when I use the Refresh Settings option, Eclipse still tries to connect 
 to the Internet Maven Repo instead of the mirror I defined in my maven 
 settings.xml file.



 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of Achim Abeling
 Sent: vrijdag 7 september 2007 8:41
 To: users@maven.apache.org
 Subject: Re: Maven plugin for Eclipse

 Hi,

 did you refresh the settings in eclipse?
 It has to be done under
 Window-Preferences-Maven-Refresh Settings.

 Best regards
 Achim

 De Vleeschauwer Nele wrote:
  Hi,
 
  I have configured my settings.xml in this way and if I execute a maven 
  command from a dos box, it is using our company's repository.
  But if I call a maven command out of Eclipse, it goes directly to the Maven 
  Repo site.
 
 
 
  -Original Message-
  From: COPPENS, Fabien [mailto:[EMAIL PROTECTED]
  Sent: donderdag 6 september 2007 14:14
  To: Maven Users List
  Subject: RE: Maven plugin for Eclipse
 
 
 
  I believe you can configure this in your maven settings.xml file via 
  a profile :
 
  pluginRepositories
pluginRepository
idMyDevRepo/id
url
http://myrepository
/url
snapshots
enabledtrue/enabled
/snapshots
releases
enabledfalse/enabled
/releases
/pluginRepository
/pluginRepositories
/profile
 
 
  -Message d'origine-
  De : De Vleeschauwer Nele [mailto:[EMAIL PROTECTED]
  Envoyé : jeudi 6 septembre 2007 14:11 À : Maven Users List Objet : 
  Maven plugin for Eclipse
 
  Hi,
 
  For the moment I'm using version 3.3 of Eclipse with the Maven plugin 
  installed.
 
  Each time when I execute a maven command in Eclipse, Eclipse tries to 
  download the necessary artiftacts from the Maven Repo site 
  (repo1.maven.org).
  How can I configure that Eclipse should use the company's central Maven 
  Repository to download new artifacts instead of the one on the Maven site ?
 


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


 -
 Visit our website! http://www.nbb.be

 DISCLAIMER: The content of this e-mail message should not be 
 construed as binding on the part of the National Bank of Belgium
 (NBB) unless otherwise and previously stated. The opinions expressed 
 in this message are solely those of the author and do not necessarily 
 reflect NBB viewpoints, particularly when the content of this message, 
 or part thereof, is private by nature or does not fall within the 
 professional scope of its author.

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




--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
 -- The Princess Bride

-
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: target discrepancy with Mavenide NetBeans plugin

2007-09-11 Thread Milos Kleint

John Coleman wrote:

I'm trying to run my project using the Mavenide for NetBeans.

 


I notice that the NB run setup creates a profile in pom.xml, but when
you run it in NB, it expects the artefact in a project subdirectoy of
target/executable-netbeans, so the execution fails.

 


But the default location for the build is target, can anyone explain
this?
  


possibly duplicate of http://jira.codehaus.org/browse/MEVENIDE-523
fixed in netbeans 6.0 based binaries.

Milos
 


TIA,

John

 

 


[INFO]Scanning for projects...

[INFO]artifact org.codehaus.mevenide:netbeans-run-plugin: checking for
updates from company

[INFO]artifact org.codehaus.mevenide:netbeans-run-plugin: checking for
updates from Marketcetera

[INFO]--
--

[INFO]Building FIX Message Simulator

[INFO]   task-segment: [package,
org.codehaus.mevenide:netbeans-run-plugin:LATEST:run-jar]

[INFO]--
--

project-execute

[INFO]artifact org.apache.maven.plugins:maven-resources-plugin: checking
for updates from netbeansIDE-repo-internal

[INFO]artifact org.apache.maven.plugins:maven-compiler-plugin: checking
for updates from netbeansIDE-repo-internal

[INFO]artifact org.apache.maven.plugins:maven-surefire-plugin: checking
for updates from netbeansIDE-repo-internal

[INFO]artifact org.apache.maven.plugins:maven-jar-plugin: checking for
updates from netbeansIDE-repo-internal

[INFO]artifact org.apache.maven.plugins:maven-dependency-plugin:
checking for updates from netbeansIDE-repo-internal

[INFO]artifact org.apache.maven.plugins:maven-assembly-plugin: checking
for updates from netbeansIDE-repo-internal

[resources:resources]

[INFO]Using default encoding to copy filtered resources.

[WARN]Unable to get resource from repository company
(http://ldnbank01-srv/maven2)

[WARN]Unable to get resource from repository Marketcetera
(http://repo.marketcetera.org/maven)

[WARN]Unable to get resource from repository central
(http://repo1.maven.org/maven2)

[WARN]Unable to get resource from repository company
(http://ldnbank01-srv/maven2)

[WARN]Unable to get resource from repository Marketcetera
(http://repo.marketcetera.org/maven)

[WARN]Unable to get resource from repository central
(http://repo1.maven.org/maven2)

[compiler:compile]

[INFO]Nothing to compile - all classes are up to date

[resources:testResources]

[INFO]Using default encoding to copy filtered resources.

[compiler:testCompile]

[INFO]Nothing to compile - all classes are up to date

[surefire:test]

[INFO]No tests to run.

[jar:jar]

[INFO]Building jar:
Z:\jcoleman\projects\TestSim\TestInitiator\target\FIXTestSim-1.0-SNAPSHO
T.jar

[dependency:copy-dependencies {execution: get-deps}]

[INFO]backport-util-concurrent-2.1.jar already exists in destination.

[INFO]jbcl-3.0-rt.jar already exists in destination.

[INFO]jgl-3.1.0.jar already exists in destination.

[INFO]junit-3.8.1.jar already exists in destination.

[INFO]log4j-1.2.13.jar already exists in destination.

[INFO]mina-core-1.1.2.jar already exists in destination.

[INFO]slf4j-api-1.4.3.jar already exists in destination.

[INFO]slf4j-log4j12-1.4.3.jar already exists in destination.

[INFO]quickfixj-1.1.0.jar already exists in destination.

[INFO]tantus-toolbox-1.1.jar already exists in destination.

[INFO]Preparing assembly:directory

[INFO]--
--

[INFO]Building FIX Message Simulator

[INFO]--
--

[WARN]Removing: directory from forked lifecycle, to prevent recursive
invocation.

[resources:resources]

[INFO]Using default encoding to copy filtered resources.

[compiler:compile]

[INFO]Nothing to compile - all classes are up to date

[resources:testResources]

[INFO]Using default encoding to copy filtered resources.

[compiler:testCompile]

[INFO]Nothing to compile - all classes are up to date

[surefire:test]

[INFO]No tests to run.

[jar:jar]

[INFO]Building jar:
Z:\jcoleman\projects\TestSim\TestInitiator\target\FIXTestSim-1.0-SNAPSHO
T.jar

[dependency:copy-dependencies {execution: get-deps}]

[INFO]backport-util-concurrent-2.1.jar already exists in destination.

[INFO]jbcl-3.0-rt.jar already exists in destination.

[INFO]jgl-3.1.0.jar already exists in destination.

[INFO]junit-3.8.1.jar already exists in destination.

[INFO]log4j-1.2.13.jar already exists in destination.

[INFO]mina-core-1.1.2.jar already exists in destination.

[INFO]slf4j-api-1.4.3.jar already exists in destination.

[INFO]slf4j-log4j12-1.4.3.jar already exists in destination.

[INFO]quickfixj-1.1.0.jar already exists in destination.

[INFO]tantus-toolbox-1.1.jar already exists in destination.

[WARN]DEPRECATED [descriptor]: Please use descriptors instead

[assembly:directory {execution: nb}]

[INFO]Processing DependencySet (output=lib)

[INFO]Copying 10 files to

Re: Dependency scope

2007-09-11 Thread Martin Gilday
I patched the Jetty plugin to allow provided scope dependencies which
seems to solve all my duplication issues.
I've created a JIRA patch here http://jira.codehaus.org/browse/JETTY-429


- Original message -
From: Martin Gilday [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Date: Tue, 11 Sep 2007 10:53:38 +0100
Subject: Re: Dependency scope

I think in a way you did answer it, in that there probably isn't an
easier way than by profiles.  It does work it just seems to result in a
lot of duplication in my POM.  Here is a (very) cut down version of what
I mean:

project
  properties
version.dataTier2.4-SNAPSHOT/version.dataTier   
  /properties

  dependencies
dependency
  groupIdmygroup/groupId
  artifactIddataTier/artifactId
  version${version.dataTier}/version
  scopeprovided/scope
/dependency
  /dependencies

  profiles
profile   
  idsandbox/id

  dependencies
dependency
  groupIdmygroup/groupId
  artifactIddataTier/artifactId
  version${version.dataTier}/version
/dependency
  /dependencies
/profile
  /profiles

/project

So we run mvn -Psandbox jetty:run and everything is fine.  But as you
can see pretty much all of the dependency block is duplicated just to
remove provided.  I think the fix is for the Jetty plugin to offer a
parameter useProvidedScope to complement useTestScope.

- Original message -
From: Antonio Petrelli [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Date: Tue, 11 Sep 2007 11:37:29 +0200
Subject: Re: Dependency scope

2007/9/11, Martin Gilday [EMAIL PROTECTED]:

 I think what you say is correct.  I think my problem is really to do
 with the Jetty plugin.  I think by saying test I may have misled.  My
 situation simplified is this.  dataTier has a dependency on Hibernate.
 This is a dependency of webApp.  dataTier is going to be placed in the
 app servers lib folder (Hibernate is already there as this is JBoss AS),
 as it contains a parent Spring application context which is used to
 share a single SessionFactory across a few WebApps on the server.  So
 dataTier is marked as provided in webApp's POM.



Now everything is clear :-)
IMHO the most elegant way to do it is by using profiles, but, again
IMHO,
the Jetty configuration should be the default profile, while the
JBoss
configuration is the exception: just because usually all needed
libraries
are put in WEB-INF/lib, and putting in a common place is just an
exception
for your particular needs.

At the end, I think that I did not answer your question :-(
Antonio

-
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: Re: Maven plugin for Eclipse

2007-09-11 Thread Hayes, Peter
http://code.google.com/p/q4e/wiki/Installation 

-Original Message-
From: Eric Wood [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 11, 2007 8:01 AM
To: Maven Users List
Subject: RE: Re: Maven plugin for Eclipse

How do you download the Q4E plug-in? The link below says that no download are 
avilable.

Eric 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez
Sent: Monday, September 10, 2007 1:15 PM
To: Maven Users List
Subject: Re: Re: Maven plugin for Eclipse

it's a known issue with m2eclipse 0.0.10
http://jira.codehaus.org/browse/MNGECLIPSE-265

There's another Eclipse plugin Q4E http://code.google.com/p/q4e/ that me and 
other maven users are working on and doesn't have that bug.
Feel free to check it out.


On 9/10/07, De Vleeschauwer Nele [EMAIL PROTECTED] wrote:
 Hi,

 Even when I use the Refresh Settings option, Eclipse still tries to connect 
 to the Internet Maven Repo instead of the mirror I defined in my maven 
 settings.xml file.



 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of Achim Abeling
 Sent: vrijdag 7 september 2007 8:41
 To: users@maven.apache.org
 Subject: Re: Maven plugin for Eclipse

 Hi,

 did you refresh the settings in eclipse?
 It has to be done under
 Window-Preferences-Maven-Refresh Settings.

 Best regards
 Achim

 De Vleeschauwer Nele wrote:
  Hi,
 
  I have configured my settings.xml in this way and if I execute a maven 
  command from a dos box, it is using our company's repository.
  But if I call a maven command out of Eclipse, it goes directly to the Maven 
  Repo site.
 
 
 
  -Original Message-
  From: COPPENS, Fabien [mailto:[EMAIL PROTECTED]
  Sent: donderdag 6 september 2007 14:14
  To: Maven Users List
  Subject: RE: Maven plugin for Eclipse
 
 
 
  I believe you can configure this in your maven settings.xml file via 
  a profile :
 
  pluginRepositories
pluginRepository
idMyDevRepo/id
url
http://myrepository
/url
snapshots
enabledtrue/enabled
/snapshots
releases
enabledfalse/enabled
/releases
/pluginRepository
/pluginRepositories
/profile
 
 
  -Message d'origine-
  De : De Vleeschauwer Nele [mailto:[EMAIL PROTECTED]
  Envoyé : jeudi 6 septembre 2007 14:11 À : Maven Users List Objet : 
  Maven plugin for Eclipse
 
  Hi,
 
  For the moment I'm using version 3.3 of Eclipse with the Maven plugin 
  installed.
 
  Each time when I execute a maven command in Eclipse, Eclipse tries to 
  download the necessary artiftacts from the Maven Repo site 
  (repo1.maven.org).
  How can I configure that Eclipse should use the company's central Maven 
  Repository to download new artifacts instead of the one on the Maven site ?
 


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


 -
 Visit our website! http://www.nbb.be

 DISCLAIMER: The content of this e-mail message should not be 
 construed as binding on the part of the National Bank of Belgium
 (NBB) unless otherwise and previously stated. The opinions expressed 
 in this message are solely those of the author and do not necessarily 
 reflect NBB viewpoints, particularly when the content of this message, 
 or part thereof, is private by nature or does not fall within the 
 professional scope of its author.

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




--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
 -- The Princess Bride

-
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]



problem with custom check in checkstyle plugin

2007-09-11 Thread Michael Fortin

Hello.
I've been trying to get a custom check installed and can't get it run.  
I've followed the directions from the maven site almost to the letter 
but it keeps failing on the packagenames.xml.  If I take my custom check 
out of the checkstyle.xml it still fails but on another check.  It seems 
to find the file packagenames.xml but not load it.  CLI output and files 
are below.  Any help would be greatly appreciated.


Thanks



maven output:
[EMAIL PROTECTED] mvn -e -X checkstyle:checkstyle
+ Error stacktraces are turned on.
Maven version: 2.0.7
Java version: 1.6.0-dp
OS name: mac os x version: 10.4.10 arch: ppc
[DEBUG] Building Maven user-level plugin registry from: 
'/Users/michaelfortin/.m2/plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 
'/java/maven/conf/plugin-registry.xml'

[INFO] Scanning for projects...
[DEBUG] Searching for parent-POM: com.monetizeit:monetizeit::1.0-a1 of 
project: com.monetizeit:foundation:ejb:3.0-a1 in relative path: ../pom.xml
[DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' 
for project: com.monetizeit:foundation:ejb:3.0-a1

[INFO] Searching repository for plugin with prefix: 'checkstyle'.
[DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
[DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
[DEBUG] maven-checkstyle-plugin: resolved to version 2.1 from 
repository central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 
for project: null:maven-checkstyle-plugin:maven-plugin:2.1 
from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for 
project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: 
org.apache.maven:maven-parent:pom:1 from the repository.

[DEBUG] Initialising extension: com.monetizeit:checkstyle
[INFO] snapshot com.monetizeit:checkstyle:1.0-SNAPSHOT: checking for 
updates from spring
[DEBUG] repository metadata for: 'snapshot 
com.monetizeit:checkstyle:1.0-SNAPSHOT' could not be found on repository: spring 

[INFO] snapshot com.monetizeit:checkstyle:1.0-SNAPSHOT: checking for 
updates from apache-snapshots
[DEBUG] repository metadata for: 'snapshot 
com.monetizeit:checkstyle:1.0-SNAPSHOT' could not be found on repository: apache-snapshots 

[INFO] snapshot com.monetizeit:checkstyle:1.0-SNAPSHOT: checking for 
updates from central
[DEBUG] repository metadata for: 'snapshot 
com.monetizeit:checkstyle:1.0-SNAPSHOT' could not be found on repository: central 


[DEBUG] checkstyle: using locally installed snapshot
[DEBUG] com.monetizeit:foundation:ejb:3.0-a1 (selected for null)
[DEBUG]   checkstyle:checkstyle:jar:4.3:runtime (selected for runtime)
[DEBUG] antlr:antlr:jar:2.7.6:runtime (selected for runtime)
[DEBUG] 
commons-beanutils:commons-beanutils-core:jar:1.7.0:runtime (selected for runtime) 

[DEBUG]   commons-logging:commons-logging:jar:1.0:runtime 
(selected for runtime)
[DEBUG]   commons-collections:commons-collections:jar:2.0:runtime 
(selected for runtime)

[DEBUG] commons-cli:commons-cli:jar:1.0:runtime (selected for runtime)
[DEBUG]   commons-lang:commons-lang:jar:1.0:runtime (selected for 
runtime)

[DEBUG] junit:junit:jar:3.7:runtime (selected for runtime)
[DEBUG] commons-collections:commons-collections:jar:2.0:runtime 
(removed - nearer found: 2.1)
[DEBUG] commons-collections:commons-collections:jar:2.1:runtime 
(selected for runtime)
[DEBUG] commons-logging:commons-logging:jar:1.0:runtime (removed 
- nearer found: 1.0.3)
[DEBUG] commons-logging:commons-logging:jar:1.0.3:runtime 
(selected for runtime)
[DEBUG]   com.monetizeit:checkstyle:jar:1.0-SNAPSHOT:runtime 
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for 
project: null:plexus-utils:jar:1.1 from the repository.
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected 
for runtime)

[DEBUG] checkstyle: using locally installed snapshot
[DEBUG] Adding to extension classpath: 
/Users/michaelfortin/.m2/repository/checkstyle/checkstyle/4.3/checkstyle-4.3.jar 

[DEBUG] Adding to extension classpath: 
/Users/michaelfortin/.m2/repository/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.jar 

[DEBUG] Adding to extension classpath: 
/Users/michaelfortin/.m2/repository/com/monetizeit/checkstyle/1.0-SNAPSHOT/checkstyle-1.0-SNAPSHOT.jar 

[DEBUG] Adding to extension classpath: 
/Users/michaelfortin/.m2/repository/commons-collections/commons-collections/2.1/commons-collections-2.1.jar 

[DEBUG] Adding to extension classpath: 
/Users/michaelfortin/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar
[DEBUG] Adding to extension classpath: 
/Users/michaelfortin/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar 

[DEBUG] Adding to extension classpath: 
/Users/michaelfortin/.m2/repository/commons-beanutils/commons-beanutils-core/1.7.0/commons-beanutils-core-1.7.0.jar 


RE: target discrepancy with Mavenide NetBeans plugin

2007-09-11 Thread John Coleman
Hi,

Yes I have seen that bug before, but in this case there is no .dir in
the netbeans folder.

Is this really related, and fixed?

TIA
John

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 11 September 2007 13:15
To: Maven Users List
Subject: Re: target discrepancy with Mavenide NetBeans plugin

John Coleman wrote:
 I'm trying to run my project using the Mavenide for NetBeans.

  

 I notice that the NB run setup creates a profile in pom.xml, but when
 you run it in NB, it expects the artefact in a project subdirectoy of
 target/executable-netbeans, so the execution fails.

  

 But the default location for the build is target, can anyone explain
 this?
   

possibly duplicate of http://jira.codehaus.org/browse/MEVENIDE-523
fixed in netbeans 6.0 based binaries.

Milos
  

 TIA,

 John

  

  

 [INFO]Scanning for projects...

 [INFO]artifact org.codehaus.mevenide:netbeans-run-plugin: checking for
 updates from company

 [INFO]artifact org.codehaus.mevenide:netbeans-run-plugin: checking for
 updates from Marketcetera


[INFO]--
 --

 [INFO]Building FIX Message Simulator

 [INFO]   task-segment: [package,
 org.codehaus.mevenide:netbeans-run-plugin:LATEST:run-jar]


[INFO]--
 --

 project-execute

 [INFO]artifact org.apache.maven.plugins:maven-resources-plugin:
checking
 for updates from netbeansIDE-repo-internal

 [INFO]artifact org.apache.maven.plugins:maven-compiler-plugin:
checking
 for updates from netbeansIDE-repo-internal

 [INFO]artifact org.apache.maven.plugins:maven-surefire-plugin:
checking
 for updates from netbeansIDE-repo-internal

 [INFO]artifact org.apache.maven.plugins:maven-jar-plugin: checking for
 updates from netbeansIDE-repo-internal

 [INFO]artifact org.apache.maven.plugins:maven-dependency-plugin:
 checking for updates from netbeansIDE-repo-internal

 [INFO]artifact org.apache.maven.plugins:maven-assembly-plugin:
checking
 for updates from netbeansIDE-repo-internal

 [resources:resources]

 [INFO]Using default encoding to copy filtered resources.

 [WARN]Unable to get resource from repository company
 (http://ldnbank01-srv/maven2)

 [WARN]Unable to get resource from repository Marketcetera
 (http://repo.marketcetera.org/maven)

 [WARN]Unable to get resource from repository central
 (http://repo1.maven.org/maven2)

 [WARN]Unable to get resource from repository company
 (http://ldnbank01-srv/maven2)

 [WARN]Unable to get resource from repository Marketcetera
 (http://repo.marketcetera.org/maven)

 [WARN]Unable to get resource from repository central
 (http://repo1.maven.org/maven2)

 [compiler:compile]

 [INFO]Nothing to compile - all classes are up to date

 [resources:testResources]

 [INFO]Using default encoding to copy filtered resources.

 [compiler:testCompile]

 [INFO]Nothing to compile - all classes are up to date

 [surefire:test]

 [INFO]No tests to run.

 [jar:jar]

 [INFO]Building jar:

Z:\jcoleman\projects\TestSim\TestInitiator\target\FIXTestSim-1.0-SNAPSHO
 T.jar

 [dependency:copy-dependencies {execution: get-deps}]

 [INFO]backport-util-concurrent-2.1.jar already exists in destination.

 [INFO]jbcl-3.0-rt.jar already exists in destination.

 [INFO]jgl-3.1.0.jar already exists in destination.

 [INFO]junit-3.8.1.jar already exists in destination.

 [INFO]log4j-1.2.13.jar already exists in destination.

 [INFO]mina-core-1.1.2.jar already exists in destination.

 [INFO]slf4j-api-1.4.3.jar already exists in destination.

 [INFO]slf4j-log4j12-1.4.3.jar already exists in destination.

 [INFO]quickfixj-1.1.0.jar already exists in destination.

 [INFO]tantus-toolbox-1.1.jar already exists in destination.

 [INFO]Preparing assembly:directory


[INFO]--
 --

 [INFO]Building FIX Message Simulator


[INFO]--
 --

 [WARN]Removing: directory from forked lifecycle, to prevent recursive
 invocation.

 [resources:resources]

 [INFO]Using default encoding to copy filtered resources.

 [compiler:compile]

 [INFO]Nothing to compile - all classes are up to date

 [resources:testResources]

 [INFO]Using default encoding to copy filtered resources.

 [compiler:testCompile]

 [INFO]Nothing to compile - all classes are up to date

 [surefire:test]

 [INFO]No tests to run.

 [jar:jar]

 [INFO]Building jar:

Z:\jcoleman\projects\TestSim\TestInitiator\target\FIXTestSim-1.0-SNAPSHO
 T.jar

 [dependency:copy-dependencies {execution: get-deps}]

 [INFO]backport-util-concurrent-2.1.jar already exists in destination.

 [INFO]jbcl-3.0-rt.jar already exists in destination.

 [INFO]jgl-3.1.0.jar already exists in destination.

 [INFO]junit-3.8.1.jar already exists in destination.

 [INFO]log4j-1.2.13.jar already exists in destination.

 [INFO]mina-core-1.1.2.jar already exists in 

Re: target discrepancy with Mavenide NetBeans plugin

2007-09-11 Thread Milos Kleint
what version of netbeans are you running on? Can you confirm that the
assembly-plugin executes as part of the build?

Milos

On 9/11/07, John Coleman [EMAIL PROTECTED] wrote:
 Hi,

 Yes I have seen that bug before, but in this case there is no .dir in
 the netbeans folder.

 Is this really related, and fixed?

 TIA
 John

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 11 September 2007 13:15
 To: Maven Users List
 Subject: Re: target discrepancy with Mavenide NetBeans plugin

 John Coleman wrote:
  I'm trying to run my project using the Mavenide for NetBeans.
 
 
 
  I notice that the NB run setup creates a profile in pom.xml, but when
  you run it in NB, it expects the artefact in a project subdirectoy of
  target/executable-netbeans, so the execution fails.
 
 
 
  But the default location for the build is target, can anyone explain
  this?
 

 possibly duplicate of http://jira.codehaus.org/browse/MEVENIDE-523
 fixed in netbeans 6.0 based binaries.

 Milos
 
 
  TIA,
 
  John
 
 
 
 
 
  [INFO]Scanning for projects...
 
  [INFO]artifact org.codehaus.mevenide:netbeans-run-plugin: checking for
  updates from company
 
  [INFO]artifact org.codehaus.mevenide:netbeans-run-plugin: checking for
  updates from Marketcetera
 
 
 [INFO]--
  --
 
  [INFO]Building FIX Message Simulator
 
  [INFO]   task-segment: [package,
  org.codehaus.mevenide:netbeans-run-plugin:LATEST:run-jar]
 
 
 [INFO]--
  --
 
  project-execute
 
  [INFO]artifact org.apache.maven.plugins:maven-resources-plugin:
 checking
  for updates from netbeansIDE-repo-internal
 
  [INFO]artifact org.apache.maven.plugins:maven-compiler-plugin:
 checking
  for updates from netbeansIDE-repo-internal
 
  [INFO]artifact org.apache.maven.plugins:maven-surefire-plugin:
 checking
  for updates from netbeansIDE-repo-internal
 
  [INFO]artifact org.apache.maven.plugins:maven-jar-plugin: checking for
  updates from netbeansIDE-repo-internal
 
  [INFO]artifact org.apache.maven.plugins:maven-dependency-plugin:
  checking for updates from netbeansIDE-repo-internal
 
  [INFO]artifact org.apache.maven.plugins:maven-assembly-plugin:
 checking
  for updates from netbeansIDE-repo-internal
 
  [resources:resources]
 
  [INFO]Using default encoding to copy filtered resources.
 
  [WARN]Unable to get resource from repository company
  (http://ldnbank01-srv/maven2)
 
  [WARN]Unable to get resource from repository Marketcetera
  (http://repo.marketcetera.org/maven)
 
  [WARN]Unable to get resource from repository central
  (http://repo1.maven.org/maven2)
 
  [WARN]Unable to get resource from repository company
  (http://ldnbank01-srv/maven2)
 
  [WARN]Unable to get resource from repository Marketcetera
  (http://repo.marketcetera.org/maven)
 
  [WARN]Unable to get resource from repository central
  (http://repo1.maven.org/maven2)
 
  [compiler:compile]
 
  [INFO]Nothing to compile - all classes are up to date
 
  [resources:testResources]
 
  [INFO]Using default encoding to copy filtered resources.
 
  [compiler:testCompile]
 
  [INFO]Nothing to compile - all classes are up to date
 
  [surefire:test]
 
  [INFO]No tests to run.
 
  [jar:jar]
 
  [INFO]Building jar:
 
 Z:\jcoleman\projects\TestSim\TestInitiator\target\FIXTestSim-1.0-SNAPSHO
  T.jar
 
  [dependency:copy-dependencies {execution: get-deps}]
 
  [INFO]backport-util-concurrent-2.1.jar already exists in destination.
 
  [INFO]jbcl-3.0-rt.jar already exists in destination.
 
  [INFO]jgl-3.1.0.jar already exists in destination.
 
  [INFO]junit-3.8.1.jar already exists in destination.
 
  [INFO]log4j-1.2.13.jar already exists in destination.
 
  [INFO]mina-core-1.1.2.jar already exists in destination.
 
  [INFO]slf4j-api-1.4.3.jar already exists in destination.
 
  [INFO]slf4j-log4j12-1.4.3.jar already exists in destination.
 
  [INFO]quickfixj-1.1.0.jar already exists in destination.
 
  [INFO]tantus-toolbox-1.1.jar already exists in destination.
 
  [INFO]Preparing assembly:directory
 
 
 [INFO]--
  --
 
  [INFO]Building FIX Message Simulator
 
 
 [INFO]--
  --
 
  [WARN]Removing: directory from forked lifecycle, to prevent recursive
  invocation.
 
  [resources:resources]
 
  [INFO]Using default encoding to copy filtered resources.
 
  [compiler:compile]
 
  [INFO]Nothing to compile - all classes are up to date
 
  [resources:testResources]
 
  [INFO]Using default encoding to copy filtered resources.
 
  [compiler:testCompile]
 
  [INFO]Nothing to compile - all classes are up to date
 
  [surefire:test]
 
  [INFO]No tests to run.
 
  [jar:jar]
 
  [INFO]Building jar:
 
 Z:\jcoleman\projects\TestSim\TestInitiator\target\FIXTestSim-1.0-SNAPSHO
  T.jar
 
  [dependency:copy-dependencies {execution: 

RE: target discrepancy with Mavenide NetBeans plugin

2007-09-11 Thread John Coleman
Hi Milos,

I am still on 5.5 - now I look at the log again, perhaps this is the
JIRA issue you mentioned afterall.

I may get hold of the latest NB just to try it and see.

John

-Original Message-
From: Milos Kleint [mailto:[EMAIL PROTECTED] 
Sent: 11 September 2007 14:22
To: Maven Users List
Subject: Re: target discrepancy with Mavenide NetBeans plugin

what version of netbeans are you running on? Can you confirm that the
assembly-plugin executes as part of the build?

Milos

On 9/11/07, John Coleman [EMAIL PROTECTED]
wrote:
 Hi,

 Yes I have seen that bug before, but in this case there is no .dir in
 the netbeans folder.

 Is this really related, and fixed?

 TIA
 John

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 11 September 2007 13:15
 To: Maven Users List
 Subject: Re: target discrepancy with Mavenide NetBeans plugin

 John Coleman wrote:
  I'm trying to run my project using the Mavenide for NetBeans.
 
 
 
  I notice that the NB run setup creates a profile in pom.xml, but
when
  you run it in NB, it expects the artefact in a project subdirectoy
of
  target/executable-netbeans, so the execution fails.
 
 
 
  But the default location for the build is target, can anyone explain
  this?
 

 possibly duplicate of http://jira.codehaus.org/browse/MEVENIDE-523
 fixed in netbeans 6.0 based binaries.

 Milos
 
 
  TIA,
 
  John
 
 
 
 
 
  [INFO]Scanning for projects...
 
  [INFO]artifact org.codehaus.mevenide:netbeans-run-plugin: checking
for
  updates from company
 
  [INFO]artifact org.codehaus.mevenide:netbeans-run-plugin: checking
for
  updates from Marketcetera
 
 

[INFO]--
  --
 
  [INFO]Building FIX Message Simulator
 
  [INFO]   task-segment: [package,
  org.codehaus.mevenide:netbeans-run-plugin:LATEST:run-jar]
 
 

[INFO]--
  --
 
  project-execute
 
  [INFO]artifact org.apache.maven.plugins:maven-resources-plugin:
 checking
  for updates from netbeansIDE-repo-internal
 
  [INFO]artifact org.apache.maven.plugins:maven-compiler-plugin:
 checking
  for updates from netbeansIDE-repo-internal
 
  [INFO]artifact org.apache.maven.plugins:maven-surefire-plugin:
 checking
  for updates from netbeansIDE-repo-internal
 
  [INFO]artifact org.apache.maven.plugins:maven-jar-plugin: checking
for
  updates from netbeansIDE-repo-internal
 
  [INFO]artifact org.apache.maven.plugins:maven-dependency-plugin:
  checking for updates from netbeansIDE-repo-internal
 
  [INFO]artifact org.apache.maven.plugins:maven-assembly-plugin:
 checking
  for updates from netbeansIDE-repo-internal
 
  [resources:resources]
 
  [INFO]Using default encoding to copy filtered resources.
 
  [WARN]Unable to get resource from repository company
  (http://ldnbank01-srv/maven2)
 
  [WARN]Unable to get resource from repository Marketcetera
  (http://repo.marketcetera.org/maven)
 
  [WARN]Unable to get resource from repository central
  (http://repo1.maven.org/maven2)
 
  [WARN]Unable to get resource from repository company
  (http://ldnbank01-srv/maven2)
 
  [WARN]Unable to get resource from repository Marketcetera
  (http://repo.marketcetera.org/maven)
 
  [WARN]Unable to get resource from repository central
  (http://repo1.maven.org/maven2)
 
  [compiler:compile]
 
  [INFO]Nothing to compile - all classes are up to date
 
  [resources:testResources]
 
  [INFO]Using default encoding to copy filtered resources.
 
  [compiler:testCompile]
 
  [INFO]Nothing to compile - all classes are up to date
 
  [surefire:test]
 
  [INFO]No tests to run.
 
  [jar:jar]
 
  [INFO]Building jar:
 

Z:\jcoleman\projects\TestSim\TestInitiator\target\FIXTestSim-1.0-SNAPSHO
  T.jar
 
  [dependency:copy-dependencies {execution: get-deps}]
 
  [INFO]backport-util-concurrent-2.1.jar already exists in
destination.
 
  [INFO]jbcl-3.0-rt.jar already exists in destination.
 
  [INFO]jgl-3.1.0.jar already exists in destination.
 
  [INFO]junit-3.8.1.jar already exists in destination.
 
  [INFO]log4j-1.2.13.jar already exists in destination.
 
  [INFO]mina-core-1.1.2.jar already exists in destination.
 
  [INFO]slf4j-api-1.4.3.jar already exists in destination.
 
  [INFO]slf4j-log4j12-1.4.3.jar already exists in destination.
 
  [INFO]quickfixj-1.1.0.jar already exists in destination.
 
  [INFO]tantus-toolbox-1.1.jar already exists in destination.
 
  [INFO]Preparing assembly:directory
 
 

[INFO]--
  --
 
  [INFO]Building FIX Message Simulator
 
 

[INFO]--
  --
 
  [WARN]Removing: directory from forked lifecycle, to prevent
recursive
  invocation.
 
  [resources:resources]
 
  [INFO]Using default encoding to copy filtered resources.
 
  [compiler:compile]
 
  [INFO]Nothing to compile - all classes are up to date
 
  

Re: target discrepancy with Mavenide NetBeans plugin

2007-09-11 Thread Milos Kleint

John Coleman wrote:

Hi Milos,

I am still on 5.5 - now I look at the log again, perhaps this is the
JIRA issue you mentioned afterall.

I may get hold of the latest NB just to try it and see.
  
please check the issue or some other that this one links to. it shows a 
workaround with explicitly declaring the assembly plugin version in the 
pom.xml


if you want to check the 6.0, please wait for the shortly to be released 
beta1 (rather than installing rather old milestone 10 or daily builds)



Milos



John

-Original Message-
From: Milos Kleint [mailto:[EMAIL PROTECTED] 
Sent: 11 September 2007 14:22

To: Maven Users List
Subject: Re: target discrepancy with Mavenide NetBeans plugin

what version of netbeans are you running on? Can you confirm that the
assembly-plugin executes as part of the build?

Milos

On 9/11/07, John Coleman [EMAIL PROTECTED]
wrote:
  

Hi,

Yes I have seen that bug before, but in this case there is no .dir in
the netbeans folder.

Is this really related, and fixed?

TIA
John

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 11 September 2007 13:15
To: Maven Users List
Subject: Re: target discrepancy with Mavenide NetBeans plugin

John Coleman wrote:


I'm trying to run my project using the Mavenide for NetBeans.



I notice that the NB run setup creates a profile in pom.xml, but
  

when
  

you run it in NB, it expects the artefact in a project subdirectoy
  

of
  

target/executable-netbeans, so the execution fails.



But the default location for the build is target, can anyone explain
this?

  

possibly duplicate of http://jira.codehaus.org/browse/MEVENIDE-523
fixed in netbeans 6.0 based binaries.

Milos


TIA,

John





[INFO]Scanning for projects...

[INFO]artifact org.codehaus.mevenide:netbeans-run-plugin: checking
  

for
  

updates from company

[INFO]artifact org.codehaus.mevenide:netbeans-run-plugin: checking
  

for
  

updates from Marketcetera


  

[INFO]--
  

--

[INFO]Building FIX Message Simulator

[INFO]   task-segment: [package,
org.codehaus.mevenide:netbeans-run-plugin:LATEST:run-jar]


  

[INFO]--
  

--

project-execute

[INFO]artifact org.apache.maven.plugins:maven-resources-plugin:
  

checking


for updates from netbeansIDE-repo-internal

[INFO]artifact org.apache.maven.plugins:maven-compiler-plugin:
  

checking


for updates from netbeansIDE-repo-internal

[INFO]artifact org.apache.maven.plugins:maven-surefire-plugin:
  

checking


for updates from netbeansIDE-repo-internal

[INFO]artifact org.apache.maven.plugins:maven-jar-plugin: checking
  

for
  

updates from netbeansIDE-repo-internal

[INFO]artifact org.apache.maven.plugins:maven-dependency-plugin:
checking for updates from netbeansIDE-repo-internal

[INFO]artifact org.apache.maven.plugins:maven-assembly-plugin:
  

checking


for updates from netbeansIDE-repo-internal

[resources:resources]

[INFO]Using default encoding to copy filtered resources.

[WARN]Unable to get resource from repository company
(http://ldnbank01-srv/maven2)

[WARN]Unable to get resource from repository Marketcetera
(http://repo.marketcetera.org/maven)

[WARN]Unable to get resource from repository central
(http://repo1.maven.org/maven2)

[WARN]Unable to get resource from repository company
(http://ldnbank01-srv/maven2)

[WARN]Unable to get resource from repository Marketcetera
(http://repo.marketcetera.org/maven)

[WARN]Unable to get resource from repository central
(http://repo1.maven.org/maven2)

[compiler:compile]

[INFO]Nothing to compile - all classes are up to date

[resources:testResources]

[INFO]Using default encoding to copy filtered resources.

[compiler:testCompile]

[INFO]Nothing to compile - all classes are up to date

[surefire:test]

[INFO]No tests to run.

[jar:jar]

[INFO]Building jar:

  

Z:\jcoleman\projects\TestSim\TestInitiator\target\FIXTestSim-1.0-SNAPSHO
  

T.jar

[dependency:copy-dependencies {execution: get-deps}]

[INFO]backport-util-concurrent-2.1.jar already exists in
  

destination.
  

[INFO]jbcl-3.0-rt.jar already exists in destination.

[INFO]jgl-3.1.0.jar already exists in destination.

[INFO]junit-3.8.1.jar already exists in destination.

[INFO]log4j-1.2.13.jar already exists in destination.

[INFO]mina-core-1.1.2.jar already exists in destination.

[INFO]slf4j-api-1.4.3.jar already exists in destination.

[INFO]slf4j-log4j12-1.4.3.jar already exists in destination.

[INFO]quickfixj-1.1.0.jar already exists in destination.

[INFO]tantus-toolbox-1.1.jar already exists in destination.

[INFO]Preparing assembly:directory


  

[INFO]--
  

--

[INFO]Building FIX Message Simulator


  


Re: Can`t connect to CVS on sourceforge

2007-09-11 Thread Leonardo Borges Barbosa
Hi Emmanuel,
Thanks for the answer. Can you point out how I can set the log level as you
mentioned?

I'm not familiar with Continuum config and haven't found anything at the
docs.

Thanks

On 9/11/07, Emmanuel Venisse [EMAIL PROTECTED] wrote:

 Can you set the log level of org.apache.maven.scm to DEBUG? I'd like to
 know what is the command and the error.

 Emmanuel

 Leonardo Borges Barbosa a écrit :
  Guys, I am probably missing something, but after some searching, I
 couldn`t
  find what it is.  Any help would be apreciated.
 
  This is the SCM url I am using:
  scm:cvs:extssh:[EMAIL PROTECTED]:/cvsroot/bughunt
 
  The branch/tag:
  HEAD
 
  Then, when I try to build this is what I get from the build result:
 
  Provider message: The cvs command failed.
  Command output:
 
 ---
 
 
 
 ---
 
  And in the logs:
  INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,203
  [SocketListener0-1] INFO  Continuum:default  - Enqueuing
  'bugHunt' (Build definition id=2).
 
  INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,203
  [pool-1-thread-1] INFO  BuildController:default- Initializing
  build
  INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,218
  [pool-1-thread-1] INFO  BuildController:default- Starting
  build of bugHunt
 
  INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,265
  [pool-1-thread-1] INFO  BuildController:default- Updating
  working dir
  INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,265
  [pool-1-thread-1] INFO  BuildController:default- Performing
  action check-working-directory
 
  INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,265
  [pool-1-thread-1] INFO  BuildController:default- Performing
  action checkout-project
  INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,265
  [pool-1-thread-1] INFO  ContinuumScm:default   - Checking out
  project: 'bugHunt', id: '1' to 'E:\leo\ci\continuum-
  1.1-beta-2\apps\continuum\webapp\WEB-INF\working-directory\1' with
  branch/tag HEAD.
  INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,281
  [pool-1-thread-1] INFO  BuildController:default- Merging SCM
  results
 
  INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,328
  [pool-1-thread-1] INFO  BuildController:default- Error
  updating from SCM, not building
 
 
  Thanks in advance for any help!
 
  ps: I also read somewhere I should configure an environment variable
  called CVS_RSH=ssh. This variable is configured.
 




Re: Maven Antrun Plugin - specific target call

2007-09-11 Thread Wayne Fay
Profiles will solve your problem.

Wayne

On 9/11/07, Ritz, Martin [EMAIL PROTECTED] wrote:
 Hi,

 I have some ant targets integrated in my pom.xml.
 I declared an ant build script which is therefor called from maven.
 Now I dont want to perform every ant target on every build.
 Is there a way to call only specific ant-targets from the command line (maybe 
 by calling the target or the id)?

 ---
 kind regards
 Martin Ritz

  BTC AG - Unit Software Engineering
 mailto:[EMAIL PROTECTED]



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



NoClassDeFoundError running unit test

2007-09-11 Thread GAMBELLI Raffaele
I'm using Maven 2.0.7 
I have two project, let's call them A and B.
A has only external dependencies.
B has external dependencies, but is also dependent on project A.

Project B uses a class from Project A in a unit test. 

Running either mvn test or mvn package  from the project B level results in 
a 
java.lang.NoClassDefFoundError (it can't found the class defined in project A) 
during the unit test of project B. 

But, if I run directly unit test of project B from Eclipse, the unit test 
completes successfully. Why?

Thanks in advance, regards.
Raffaele



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



Re: Re: Maven Antrun Plugin - specific target call

2007-09-11 Thread Ritz, Martin

I have already two profiles...
I dont want to blow up my pom too much!
Is there no other easier way to call specific targets?

Martin


 Profiles will solve your problem.
 
 Wayne
 
 On 9/11/07, Ritz, Martin [EMAIL PROTECTED] wrote:
  Hi,
 
  I have some ant targets integrated in my pom.xml.
  I declared an ant build script which is therefor called from maven.
  Now I dont want to perform every ant target on every build.
  Is there a way to call only specific ant-targets from the 
 command line (maybe by calling the target or the id)?
 
  ---
  kind regards
  Martin Ritz
 
   BTC AG - Unit Software Engineering
  mailto:[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: Re: Maven Antrun Plugin - specific target call

2007-09-11 Thread Wayne Fay
I would just move those targets out to a build.xml file so you can
call them directly with Ant. Then set Maven up so it calls the targets
in the build.xml file rather than embedding the Ant stuff in your pom.

Wayne

On 9/11/07, Ritz, Martin [EMAIL PROTECTED] wrote:

 I have already two profiles...
 I dont want to blow up my pom too much!
 Is there no other easier way to call specific targets?

 Martin


  Profiles will solve your problem.
 
  Wayne
 
  On 9/11/07, Ritz, Martin [EMAIL PROTECTED] wrote:
   Hi,
  
   I have some ant targets integrated in my pom.xml.
   I declared an ant build script which is therefor called from maven.
   Now I dont want to perform every ant target on every build.
   Is there a way to call only specific ant-targets from the
  command line (maybe by calling the target or the id)?
  
   ---
   kind regards
   Martin Ritz
  
BTC AG - Unit Software Engineering
   mailto:[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: Can`t connect to CVS on sourceforge

2007-09-11 Thread Emmanuel Venisse

in Continuum 1.1, it is in 
apps/continuum/webapp/WEB-INF/classes/META-INF/plexus/application.xml

Leonardo Borges Barbosa a écrit :

Hi Emmanuel,
Thanks for the answer. Can you point out how I can set the log level as you
mentioned?

I'm not familiar with Continuum config and haven't found anything at the
docs.

Thanks

On 9/11/07, Emmanuel Venisse [EMAIL PROTECTED] wrote:

Can you set the log level of org.apache.maven.scm to DEBUG? I'd like to
know what is the command and the error.

Emmanuel

Leonardo Borges Barbosa a écrit :

Guys, I am probably missing something, but after some searching, I

couldn`t

find what it is.  Any help would be apreciated.

This is the SCM url I am using:
scm:cvs:extssh:[EMAIL PROTECTED]:/cvsroot/bughunt

The branch/tag:
HEAD

Then, when I try to build this is what I get from the build result:

Provider message: The cvs command failed.
Command output:


---




---

And in the logs:
INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,203
[SocketListener0-1] INFO  Continuum:default  - Enqueuing
'bugHunt' (Build definition id=2).

INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,203
[pool-1-thread-1] INFO  BuildController:default- Initializing
build
INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,218
[pool-1-thread-1] INFO  BuildController:default- Starting
build of bugHunt

INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,265
[pool-1-thread-1] INFO  BuildController:default- Updating
working dir
INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,265
[pool-1-thread-1] INFO  BuildController:default- Performing
action check-working-directory

INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,265
[pool-1-thread-1] INFO  BuildController:default- Performing
action checkout-project
INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,265
[pool-1-thread-1] INFO  ContinuumScm:default   - Checking out
project: 'bugHunt', id: '1' to 'E:\leo\ci\continuum-
1.1-beta-2\apps\continuum\webapp\WEB-INF\working-directory\1' with
branch/tag HEAD.
INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,281
[pool-1-thread-1] INFO  BuildController:default- Merging SCM
results

INFO   | jvm 1| 2007/09/07 12:08:29 | 2007-09-07 12:08:22,328
[pool-1-thread-1] INFO  BuildController:default- Error
updating from SCM, not building


Thanks in advance for any help!

ps: I also read somewhere I should configure an environment variable
called CVS_RSH=ssh. This variable is configured.









Re: NoClassDeFoundError running unit test

2007-09-11 Thread Jim Sellers
Project B uses a class from Project A in a unit test.

Where is this class in Project A?  Is it in src/main/java or src/test/java?
If it's in src/test/java you'll have to create a test jar:
http://maven.apache.org/guides/mini/guide-attached-tests.html

What is the scope of the dependency from Project B to Project A?

Have you tried mvn install on Project A first?

With maven, code in src/test can only see the code in src/main, but not
the other way around.  With eclipse your code in src/main/java can see
src/test/java.

HTH
Jim


On 9/11/07, GAMBELLI Raffaele [EMAIL PROTECTED] wrote:

 I'm using Maven 2.0.7
 I have two project, let's call them A and B.
 A has only external dependencies.
 B has external dependencies, but is also dependent on project A.

 Project B uses a class from Project A in a unit test.

 Running either mvn test or mvn package  from the project B level
 results in a
 java.lang.NoClassDefFoundError (it can't found the class defined in
 project A) during the unit test of project B.

 But, if I run directly unit test of project B from Eclipse, the unit test
 completes successfully. Why?

 Thanks in advance, regards.
 Raffaele



 -
 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: NoClassDeFoundError running unit test

2007-09-11 Thread Iker Almandoz
Is your dependent class a 'test' class in project A or a 'main' class in
project A ?

In eclipse, are you importing project A or you have used 'mvn
eclipse:eclipse' to generate your dependencies?

Eclipse does not distinguish between test classpath and compile classpath so
that could be part of the issue...




-Original Message-
From: GAMBELLI Raffaele [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 11, 2007 7:26 AM
To: users@maven.apache.org
Subject: NoClassDeFoundError running unit test

I'm using Maven 2.0.7 
I have two project, let's call them A and B.
A has only external dependencies.
B has external dependencies, but is also dependent on project A.

Project B uses a class from Project A in a unit test. 

Running either mvn test or mvn package  from the project B level results
in a 
java.lang.NoClassDefFoundError (it can't found the class defined in project
A) during the unit test of project B. 

But, if I run directly unit test of project B from Eclipse, the unit test
completes successfully. Why?

Thanks in advance, regards.
Raffaele



-
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: Continuum 1.1.0-beta-2 UI performance

2007-09-11 Thread Emmanuel Venisse

I don't understand why it is so slow to render the project list because the 
rendering start with this line:

00:00:03,452 [http-8081-Processor11] DEBUG ServletDispatcherResult- 
Forwarding to location /WEB-INF/jsp/components/projectSummaryComponent.jsp

and end with this line:

00:00:21,213 [http-8081-Processor11] DEBUG ServletDispatcherResult- 
Forwarding to location /WEB-INF/jsp/components/companyLogo.jsp

so it's 18 seconds to print the html, very long because we don't have data to 
process there. We don't have the hand on this part because the rendering is 
webwork and extremecomponents work.

Can you try with the Continuum standalone version to see if the result is 
different?
What is your jdk?

Emmanuel

Damien Lecan a écrit :

ok, switch all logs levels to DEBUG by switching the threshold from INFO to 
DEBUG


Log file is attached to this email.

There are a lot of logs about templates, permissions ...

Damien




Search email archive for configuration error on windows

2007-09-11 Thread Eric Wood
Is there a way to search the email archive?  

I'm having issues setting up maven on windows. I set it up fine on AIX
and it is running fine there, but I'm getting an error message on
windows that seems to indicate the my proxy isn't set up properly, but I
pretty sure that it is fine. I'm using the settings file from my AIX box
with the same proxy settings. Spoke with our network people and they say
I should be able to get out via my PC. I can browse the repository via
my browser so not sure why I'm getting this error message:

The plug-in 'org.apache.maven.plugins:maven-archetype-plugin' does not
exist or no valid version could be found.

I can run it and get the proper version information. 

Any help would be greatly appreciated.

Eric


Re: Problem with site generation i18n

2007-09-11 Thread Hervé BOUTEMY
Hello,

I suppose it's the same problem as http://jira.codehaus.org/browse/MPIR-59.
It has been fixed in svn but not released yet.

regards,

Hervé

Le dimanche 9 septembre 2007, Insitu a écrit :
 Hello,
 I ran recently into a strange problem with site generation. When I add
 the locale fr, maven fails with the following error:
 java.lang.IllegalArgumentException: Unmatched braces in the pattern.
 at

 org.apache.maven.reporting.AbstractMavenReportRenderer.applyPattern(Abstrac
tMavenReportRenderer.java:619) at

 org.apache.maven.reporting.AbstractMavenReportRenderer.linkPatternedText(Ab
stractMavenReportRenderer.java:353) at

 org.apache.maven.reporting.AbstractMavenReportRenderer.tableCell(AbstractMa
venReportRenderer.java:213) at

 org.apache.maven.reporting.AbstractMavenReportRenderer.tableCell(AbstractMa
venReportRenderer.java:193) at

 org.apache.maven.reporting.AbstractMavenReportRenderer.tableRow(AbstractMav
enReportRenderer.java:225) at

 org.apache.maven.report.projectinfo.MailingListsReport$MailingListsRenderer
.renderBody(MailingListsReport.java:238) at

 org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMaven
ReportRenderer.java:65) at

 org.apache.maven.report.projectinfo.MailingListsReport.executeReport(Mailin
gListsReport.java:65) at

 org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport
.java:101) at

 org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportD
ocumentRenderer.java:67) at

 org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(Defaul
tSiteRenderer.java:239) at

 org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteR
enderer.java:115) at

 org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:124) at
 org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92)
 at

 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManag
er.java:443) at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLif
ecycleExecutor.java:539) at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycl
e(DefaultLifecycleExecutor.java:480) at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLife
cycleExecutor.java:459) at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFai
lures(DefaultLifecycleExecutor.java:311) at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Def
aultLifecycleExecutor.java:278) at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycl
eExecutor.java:143) at
 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
 at
 org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at

 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
9) at

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l.java:25) at java.lang.reflect.Method.invoke(Method.java:585)
 at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at

 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at
 org.codehaus.classworlds.Launcher.main(Launcher.java:375)


 This does not happen with, say, de locale. I noticed that the fr
 locale is iso-8859-1 encoded whereas the de locale is utf-8
 encoded. AFAIK, encoding of properties file should be latin-1 as per
 the PropertyResourceBundle reference in JDK. So one would expect
 better results with french locale :)

 The following does nothing:
  1. adding -Dfile.encoding=iso8859-1 to MAVEN_OPTS
  2. adding inputEncoding tag to maven-site-plugin

 Browsing Jira, I have seen several issues related to encoding in site
 plugin but could not determine the status of my problem in
 relationship with theses issues. Should I file some Jira issue and/or
 try to track the problem further (I did not try to check what's going
 on in site plugin) ?

 Regards,



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



outputFileNameMapping on WAR module

2007-09-11 Thread Christopher Moesel
Hello,

 

I would like to have maven copy all of my dependencies to my web-inf/lib
in the ${artifactId}.${extension} style instead of the default style
(which includes version numbers in the name).

 

I've seen that MWAR-93 [1] addresses this problem and the fix is in the
war plugin v. 2.0.3.  So, I tried adding the following to my POM:

plugin

  groupIdorg.apache.maven.plugins/groupId

  artifactIdmaven-war-plugin/artifactId

  version2.0.3-SNAPSHOT/version

  configuration

archiveClassestrue/archiveClasses

 
outputFileNameMapping${artifactId}.${extension}/outputFileNameMapping


  /configuration

/plugin

 

This results in really oddly named files in my web-inf/lib now.  A
typical example:

org.springframework-mywebapp.null

 

So, the resulting files are really mapped more like: ${groupId of the
dependency}-${artifactId of my war module}.null

 

There's not much documentation, so maybe I'm doing this wrong (I hope
so!).  Could someone please offer some guidance?

 

Thanks,

Chris

 

[1] http://jira.codehaus.org/browse/MWAR-93



Re: Problem with site generation i18n

2007-09-11 Thread Insitu
Thanks for the pointer. I thought this had something to do with the
site plugin instead.

regards,
-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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



Re: Search email archive for configuration error on windows

2007-09-11 Thread Wayne Fay
Try adding -U to your Maven execution ie mvn -U compile to force an
update of your plugins.

Wayne

On 9/11/07, Eric Wood [EMAIL PROTECTED] wrote:
 Is there a way to search the email archive?

 I'm having issues setting up maven on windows. I set it up fine on AIX
 and it is running fine there, but I'm getting an error message on
 windows that seems to indicate the my proxy isn't set up properly, but I
 pretty sure that it is fine. I'm using the settings file from my AIX box
 with the same proxy settings. Spoke with our network people and they say
 I should be able to get out via my PC. I can browse the repository via
 my browser so not sure why I'm getting this error message:

 The plug-in 'org.apache.maven.plugins:maven-archetype-plugin' does not
 exist or no valid version could be found.

 I can run it and get the proper version information.

 Any help would be greatly appreciated.

 Eric


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



RE: Is there a property for parent directory?

2007-09-11 Thread Huang, Yan
${parent.basedir} is not working for me ... I used antrun to try to echo it out 
and it seems that it's not defined ..

-Original Message-
From: Roland Asmann [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 11, 2007 3:50 AM
To: Maven Users List
Subject: Re: Is there a property for parent directory?

Yes there is: ${parent.basedir} should be the one you need
Be carefull though, if your child-project are deeper than one level, you 
should use ${parent.parent.basedir} (and so on).

Isn't it possible for you to make a dependency of some kind to the 
tools-project? Or build your tools as maven-plugins, that way you won't need 
the variables!


On Tuesday 11 September 2007 09:22, Huang, Yan wrote:
 I have a tools directory under parent and the children projects need
 to invoke commands under tools during the phase of code generation. I
 want to provide an absolute path to that ${parent}/tools so that each
 child can invoke from there.

 Or is there other better way to solve it? is there really a ${parent}
 property tag in maven?

 -Original Message-
 From: Wayne Fay [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 10, 2007 6:52 PM
 To: Maven Users List
 Subject: Re: Is there a property for parent directory?

 Why do you need to do this? There may be a better way to do the same
 thing that does not involve a ${parent} tag at all.

 Wayne

 On 9/10/07, Huang, Yan [EMAIL PROTECTED] wrote:
  Hi,
 
  Is there a property or way to get parent directory in maven? Let's say

 I

  have this structure of my projects:
 
  Parent
 
   | pom.xml
   | child project 1
   |
   |   |___ pom.xml
   |
   | child project 2
   |
   |___ pom.xml
 
  Child project 1 and project 2 will inherit from parent 1. Now, when
  building children projects, is there a property in maven that can be
  used to refer to the actual directory of parent during build time? I
  know the notation of ${basedir}/../ might work in most cases, but what
  if child project is in another level down, i.e.
 
  Parent
 
   | pom.xml
   | children folder 1
   |
   | |___ child project 1
   | |
   | | |___ pom.xml
   | |
   | |___ child project 2
   | |
   |   |___ pom.xml
   |
   | child project 3
   |
   |___ pom.xml
 
  Thanks
  Yan
 
  -
  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]

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [EMAIL PROTECTED]
Web: www.cfc.at

-
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: FW: Using Proximity Corporate Repository doesnt download plugins/dependencies

2007-09-11 Thread Sonar, Nishant
Thanks to Henry, Tamás

I have figured out the problem , the reason was I need to block the internet 
acces by disabling any proxy setting (in settings.xml), and mirror the 
'central' to http://somednsname:8080/px-webapp/repository/inhouse.
Also I need to be very much clear on the maven-metadata.xml in the repository 
for all the plugins and dependencies.

It worked!!

Regards,
Nishant Sonar

-Original Message-
From: Tamás Cservenák [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 11, 2007 12:52 PM
To: Maven Users List
Subject: Re: FW: Using Proximity Corporate Repository doesnt download 
plugins/dependencies

Hello all,

yes, i just wanted to correct Sonar, just as Heinrich did.

So, you have to fix your settings.xml and it should work as you expected!

Thanks,
~t~

On 9/11/07, Heinrich Nirschl [EMAIL PROTECTED] wrote:
 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]

Maven 2 : Jar with included Jar dependencies

2007-09-11 Thread zm

Hi,

I'm trying to create a jar using Maven 2, but I'm not getting what I whant
to ...

I have a jar project (main.jar) that depends on another jar (common.jar). My
poms are working correctly, but I need to create a self dependant main.jar.
That is, I need main.jar to include the common.jar, and access it without
any other external classpath info. I just want to execute java -jar
main.jar and voila ... executes nicelly.

Googling around I found no solution for the base jar feature, but I heard
about plugins for Maven ... UberJar and JavaApp. Both should work fine with
Maven 1.x.

I'm using Maven 2.0.7, and I've read somewhere around my googling that this
jar included dependencies are already available in the base Maven 2
framework.

Now I just need some help to put it to works, as googling around is bringing
me many results that does not interest me, and maybe you know how to do it,
or point me to some link that helps ...

I'm new to Maven, and I really want to learn how to use it properly ... the
fact is that I also find it very difficult sometimes to find info about
pluggins, how to use them, their settings/usage ...

Anyway, any help regarding jars inside jars :) would be greatly appreciated.

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Maven-2-%3A-Jar-with-included-Jar-dependencies-tf4425083s177.html#a12622970
Sent from the Maven - Users mailing list archive at Nabble.com.


-
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 Tamás Cservenák
well,

what is your config actually? As Heinrich said, the inhouse repo
group is (in default config) not proxying the central!

Did you change Proximity settings or using just the default out-of-the-box?

I'm happy it works, but does it do what you think? :)

~t~

On 9/11/07, Sonar, Nishant [EMAIL PROTECTED] wrote:
 Thanks to Henry, Tamás

 I have figured out the problem , the reason was I need to block the internet 
 acces by disabling any proxy setting (in settings.xml), and mirror the 
 'central' to http://somednsname:8080/px-webapp/repository/inhouse.
 Also I need to be very much clear on the maven-metadata.xml in the repository 
 for all the plugins and dependencies.

 It worked!!

 Regards,
 Nishant Sonar


Re: outputFileNameMapping on WAR module

2007-09-11 Thread Stephane Nicoll
Hi,

The plugin has switched to 2.1-alpha-1-SNAPSHOT since we've made a big
big refactoring to support new cool features such as overlays
handling.

I never had this problem so far; pease create a pom to reproduce the
issue with public artifacts and create an issue in the war project.

Regards,
Stéphane

On 9/11/07, Christopher Moesel [EMAIL PROTECTED] wrote:
 Hello,



 I would like to have maven copy all of my dependencies to my web-inf/lib
 in the ${artifactId}.${extension} style instead of the default style
 (which includes version numbers in the name).



 I've seen that MWAR-93 [1] addresses this problem and the fix is in the
 war plugin v. 2.0.3.  So, I tried adding the following to my POM:

 plugin

   groupIdorg.apache.maven.plugins/groupId

   artifactIdmaven-war-plugin/artifactId

   version2.0.3-SNAPSHOT/version

   configuration

 archiveClassestrue/archiveClasses


 outputFileNameMapping${artifactId}.${extension}/outputFileNameMapping
 

   /configuration

 /plugin



 This results in really oddly named files in my web-inf/lib now.  A
 typical example:

 org.springframework-mywebapp.null



 So, the resulting files are really mapped more like: ${groupId of the
 dependency}-${artifactId of my war module}.null



 There's not much documentation, so maybe I'm doing this wrong (I hope
 so!).  Could someone please offer some guidance?



 Thanks,

 Chris



 [1] http://jira.codehaus.org/browse/MWAR-93




-- 
Large Systems Suck: This rule is 100% transitive. If you build one,
you suck -- S.Yegge

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



Re: outputFileNameMapping on WAR module

2007-09-11 Thread CMoesel

Thanks for the reply, Stephane.  I've created a bug with an attached example:

http://jira.codehaus.org/browse/MWAR-116

-Chris


Stephane Nicoll-2 wrote:
 
 Hi,
 
 The plugin has switched to 2.1-alpha-1-SNAPSHOT since we've made a big
 big refactoring to support new cool features such as overlays
 handling.
 
 I never had this problem so far; pease create a pom to reproduce the
 issue with public artifacts and create an issue in the war project.
 
 Regards,
 Stéphane
 
 On 9/11/07, Christopher Moesel [EMAIL PROTECTED] wrote:
 Hello,



 I would like to have maven copy all of my dependencies to my web-inf/lib
 in the ${artifactId}.${extension} style instead of the default style
 (which includes version numbers in the name).



 I've seen that MWAR-93 [1] addresses this problem and the fix is in the
 war plugin v. 2.0.3.  So, I tried adding the following to my POM:

 plugin

   groupIdorg.apache.maven.plugins/groupId

   artifactIdmaven-war-plugin/artifactId

   version2.0.3-SNAPSHOT/version

   configuration

 archiveClassestrue/archiveClasses


 outputFileNameMapping${artifactId}.${extension}/outputFileNameMapping
 

   /configuration

 /plugin



 This results in really oddly named files in my web-inf/lib now.  A
 typical example:

 org.springframework-mywebapp.null



 So, the resulting files are really mapped more like: ${groupId of the
 dependency}-${artifactId of my war module}.null



 There's not much documentation, so maybe I'm doing this wrong (I hope
 so!).  Could someone please offer some guidance?



 Thanks,

 Chris



 [1] http://jira.codehaus.org/browse/MWAR-93


 
 
 -- 
 Large Systems Suck: This rule is 100% transitive. If you build one,
 you suck -- S.Yegge
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/outputFileNameMapping-on-WAR-module-tf4424785s177.html#a12623964
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Maven 2 : Jar with included Jar dependencies

2007-09-11 Thread Arnaud HERITIER
In maven 2 you can create an all-in-one jar with the assembly plugin
http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html#jar-with-dependencies

Arnaud


On 11/09/2007, zm [EMAIL PROTECTED] wrote:


 Hi,

 I'm trying to create a jar using Maven 2, but I'm not getting what I whant
 to ...

 I have a jar project (main.jar) that depends on another jar (common.jar).
 My
 poms are working correctly, but I need to create a self dependant main.jar
 .
 That is, I need main.jar to include the common.jar, and access it without
 any other external classpath info. I just want to execute java -jar
 main.jar and voila ... executes nicelly.

 Googling around I found no solution for the base jar feature, but I
 heard
 about plugins for Maven ... UberJar and JavaApp. Both should work fine
 with
 Maven 1.x.

 I'm using Maven 2.0.7, and I've read somewhere around my googling that
 this
 jar included dependencies are already available in the base Maven 2
 framework.

 Now I just need some help to put it to works, as googling around is
 bringing
 me many results that does not interest me, and maybe you know how to do
 it,
 or point me to some link that helps ...

 I'm new to Maven, and I really want to learn how to use it properly ...
 the
 fact is that I also find it very difficult sometimes to find info about
 pluggins, how to use them, their settings/usage ...

 Anyway, any help regarding jars inside jars :) would be greatly
 appreciated.

 Thanks.
 --
 View this message in context:
 http://www.nabble.com/Maven-2-%3A-Jar-with-included-Jar-dependencies-tf4425083s177.html#a12622970
 Sent from the Maven - Users mailing list archive at Nabble.com.


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




-- 
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...


Re: Re: Maven Antrun Plugin - specific target call

2007-09-11 Thread Dave Feltenberger
Can't you just pass in a -D  argument and execute the argument that's passed
in?

e.g.
mvn install -DantTarget=targetToCall

then in the antrun execution:
ant
  antfile=src/main/ant-builds/buildJnlps.xml
  target=${antTarget} /


On 9/11/07, Wayne Fay [EMAIL PROTECTED] wrote:

 I would just move those targets out to a build.xml file so you can
 call them directly with Ant. Then set Maven up so it calls the targets
 in the build.xml file rather than embedding the Ant stuff in your pom.

 Wayne

 On 9/11/07, Ritz, Martin [EMAIL PROTECTED] wrote:
 
  I have already two profiles...
  I dont want to blow up my pom too much!
  Is there no other easier way to call specific targets?
 
  Martin
 
 
   Profiles will solve your problem.
  
   Wayne
  
   On 9/11/07, Ritz, Martin [EMAIL PROTECTED] wrote:
Hi,
   
I have some ant targets integrated in my pom.xml.
I declared an ant build script which is therefor called from maven.
Now I dont want to perform every ant target on every build.
Is there a way to call only specific ant-targets from the
   command line (maybe by calling the target or the id)?
   
---
kind regards
Martin Ritz
   
 BTC AG - Unit Software Engineering
mailto:[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: Re: Maven Antrun Plugin - specific target call

2007-09-11 Thread Wayne Fay
That just sounds more complicated than it needs to be. Calling Maven
just so it will call Ant for me is too indirect when I can just call
Ant directly, right? What's the advantage when it works fine with ant
target and I have no interest in utilizing the Maven lifecycle for
this particular Ant target/call?

Wayne

On 9/11/07, Dave Feltenberger [EMAIL PROTECTED] wrote:
 Can't you just pass in a -D  argument and execute the argument that's passed
 in?

 e.g.
 mvn install -DantTarget=targetToCall

 then in the antrun execution:
 ant
   antfile=src/main/ant-builds/buildJnlps.xml
   target=${antTarget} /


 On 9/11/07, Wayne Fay [EMAIL PROTECTED] wrote:
 
  I would just move those targets out to a build.xml file so you can
  call them directly with Ant. Then set Maven up so it calls the targets
  in the build.xml file rather than embedding the Ant stuff in your pom.
 
  Wayne
 
  On 9/11/07, Ritz, Martin [EMAIL PROTECTED] wrote:
  
   I have already two profiles...
   I dont want to blow up my pom too much!
   Is there no other easier way to call specific targets?
  
   Martin
  
  
Profiles will solve your problem.
   
Wayne
   
On 9/11/07, Ritz, Martin [EMAIL PROTECTED] wrote:
 Hi,

 I have some ant targets integrated in my pom.xml.
 I declared an ant build script which is therefor called from maven.
 Now I dont want to perform every ant target on every build.
 Is there a way to call only specific ant-targets from the
command line (maybe by calling the target or the id)?

 ---
 kind regards
 Martin Ritz

  BTC AG - Unit Software Engineering
 mailto:[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: Error in running mvn

2007-09-11 Thread sateesh

Hi,

  In the recent version (2.0.7) the boot directory is not in core.

  I just created the core directory and placed the boot inside it and
everything works fine now..

Regards
Sateesh


Sebastien Arbogast wrote:
 
 My mistake. I just realized that I installed maven in
 /usr/local/maven-2.0.4and my M2_HOME variable is /usr/local/lib/maven-
 2.0.4.
 That should be the problem.
 Sorry about that and thanks for your time.
 
 2007/1/16, franz see [EMAIL PROTECTED]:


 Good day,

 Kindly verify that you have $M2_HOME\core\boot\classworlds-1.1.jar.

 Cheers,
 Franz


 Sebastien Arbogast wrote:
 
  I have exactly the same Exception popping up and my environment
 variables
  are correctly set:
 
  [EMAIL PROTECTED]:~# mvn --version
  Exception in thread main java.lang.NoClassDefFoundError:
  org/codehaus/classworlds/Launcher
  [EMAIL PROTECTED]:~# echo $M2_HOME
  /usr/local/lib/maven-2.0.4
  [EMAIL PROTECTED]:~# echo $JAVA_HOME
  /usr/lib/jvm/java-1.5.0-sun
 
  What else could it be?
 
 
  Neeraj Bisht wrote:
 
  you have not set java_home or maven home
 
  On 12/6/06, Dheeraj Agrawal [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I just downloaded the bin tar ball for maven.
  Extracted it and now trying to run it.
  But I am getting the following error.
 
  [EMAIL PROTECTED]:~/maven-2.0/bin$ ./mvn
  Exception in thread main java.lang.NoClassDefFoundError:
  org/codehaus/classworlds/Launcher
 
 
  I had installed this earlier also but never got such an error.
 
  Thanks
  dheeraj
 
 
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Error-in-running-mvn-tf2764641s177.html#a8384398
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 
 -- 
 Sébastien Arbogast
 
 http://www.sebastien-arbogast.com
 
 

-- 
View this message in context: 
http://www.nabble.com/Error-in-running-mvn-tf2764641s177.html#a12626519
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Re: Maven Antrun Plugin - specific target call

2007-09-11 Thread Dave Feltenberger
Because ant can inherit the classpaths/dependencies.  Presumably he *is*
utilizing the lifecycle, and attaching this ant config to one of the phases,
but has a need to call specific ant tasks only sometimes.  Was there
something I missed that made you think he was calling maven only to call
ant, and that he had no interest in utlizing the lifecycle?  I assumed this
was a somewhat special case and that it wasn't just using Maven to wrap an
ant build process - that I agree would be silly.


On 9/11/07, Wayne Fay [EMAIL PROTECTED] wrote:

 That just sounds more complicated than it needs to be. Calling Maven
 just so it will call Ant for me is too indirect when I can just call
 Ant directly, right? What's the advantage when it works fine with ant
 target and I have no interest in utilizing the Maven lifecycle for
 this particular Ant target/call?

 Wayne

 On 9/11/07, Dave Feltenberger [EMAIL PROTECTED] wrote:
  Can't you just pass in a -D  argument and execute the argument that's
 passed
  in?
 
  e.g.
  mvn install -DantTarget=targetToCall
 
  then in the antrun execution:
  ant
antfile=src/main/ant-builds/buildJnlps.xml
target=${antTarget} /
 
 
  On 9/11/07, Wayne Fay [EMAIL PROTECTED] wrote:
  
   I would just move those targets out to a build.xml file so you can
   call them directly with Ant. Then set Maven up so it calls the targets
   in the build.xml file rather than embedding the Ant stuff in your pom.
  
   Wayne
  
   On 9/11/07, Ritz, Martin [EMAIL PROTECTED] wrote:
   
I have already two profiles...
I dont want to blow up my pom too much!
Is there no other easier way to call specific targets?
   
Martin
   
   
 Profiles will solve your problem.

 Wayne

 On 9/11/07, Ritz, Martin [EMAIL PROTECTED] wrote:
  Hi,
 
  I have some ant targets integrated in my pom.xml.
  I declared an ant build script which is therefor called from
 maven.
  Now I dont want to perform every ant target on every build.
  Is there a way to call only specific ant-targets from the
 command line (maybe by calling the target or the id)?
 
  ---
  kind regards
  Martin Ritz
 
   BTC AG - Unit Software Engineering
  mailto:[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: Re: Maven Antrun Plugin - specific target call

2007-09-11 Thread Wayne Fay
Until the OP responds, we'll never know the answer. We're both making
assumptions here.

Wayne

On 9/11/07, Dave Feltenberger [EMAIL PROTECTED] wrote:
 Because ant can inherit the classpaths/dependencies.  Presumably he *is*
 utilizing the lifecycle, and attaching this ant config to one of the phases,
 but has a need to call specific ant tasks only sometimes.  Was there
 something I missed that made you think he was calling maven only to call
 ant, and that he had no interest in utlizing the lifecycle?  I assumed this
 was a somewhat special case and that it wasn't just using Maven to wrap an
 ant build process - that I agree would be silly.


 On 9/11/07, Wayne Fay [EMAIL PROTECTED] wrote:
 
  That just sounds more complicated than it needs to be. Calling Maven
  just so it will call Ant for me is too indirect when I can just call
  Ant directly, right? What's the advantage when it works fine with ant
  target and I have no interest in utilizing the Maven lifecycle for
  this particular Ant target/call?
 
  Wayne
 
  On 9/11/07, Dave Feltenberger [EMAIL PROTECTED] wrote:
   Can't you just pass in a -D  argument and execute the argument that's
  passed
   in?
  
   e.g.
   mvn install -DantTarget=targetToCall
  
   then in the antrun execution:
   ant
 antfile=src/main/ant-builds/buildJnlps.xml
 target=${antTarget} /
  
  
   On 9/11/07, Wayne Fay [EMAIL PROTECTED] wrote:
   
I would just move those targets out to a build.xml file so you can
call them directly with Ant. Then set Maven up so it calls the targets
in the build.xml file rather than embedding the Ant stuff in your pom.
   
Wayne
   
On 9/11/07, Ritz, Martin [EMAIL PROTECTED] wrote:

 I have already two profiles...
 I dont want to blow up my pom too much!
 Is there no other easier way to call specific targets?

 Martin


  Profiles will solve your problem.
 
  Wayne
 
  On 9/11/07, Ritz, Martin [EMAIL PROTECTED] wrote:
   Hi,
  
   I have some ant targets integrated in my pom.xml.
   I declared an ant build script which is therefor called from
  maven.
   Now I dont want to perform every ant target on every build.
   Is there a way to call only specific ant-targets from the
  command line (maybe by calling the target or the id)?
  
   ---
   kind regards
   Martin Ritz
  
BTC AG - Unit Software Engineering
   mailto:[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]
 
 


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