Re: Run Archiva on Aix

2007-11-14 Thread Maria Odea Ching

Nice  :-)
Thanks for the info, maybe we could include this in the docs.

-Deng

MATHUS Baptiste wrote:
Hi, 
For the record, yesterday I found the solution using the IBM JDK.

It ends up being kind of a Security exception. In fact, it was because the 
IBM JDK is configured by default to the most restrictive cryptographic environment when 
using the JCE (Java Cryptography Extension) jar.

I had to download and install the less restrictive policies as described on 
this page : http://www-128.ibm.com/developerworks/java/jdk/security/50/ that 
were here : 
https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?source=jcesdk. After 
having overwritten the files inside the /usr/java5/jre/lib/security/ as 
described above, it worked.

Cheers.

-- Baptiste

-Message d'origine-
De : Maria Odea Ching [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 14 novembre 2007 08:22

À : archiva-users@maven.apache.org
Objet : Re: Run Archiva on Aix

Hi Baptiste,

Can you try using the Sun JDK/JRE instead of the IBM JDK/JRE and see if the 
problem still persists?

-Deng

MATHUS Baptiste wrote:
  

OK. I directly launched the plexus.sh script in the bin directory and archiva 
started fine.
The thing is, I'm now having problem with the class javax.crypto.b that 
triggers a NoClassDefFoundError...

I found some informations about this on the web, but nothing seems to be clear about what to do. 
The complete archiva startup on this machine is attached. It ends with the complete stacktrace.


Anyway, for my information, could anyone explain a bit why at this moment 
archiva is trying to access a cryptographic API. I'd be interested in it to 
maybe better understand what could be done to workaround.

Thanks a lot.

-- Baptiste

-Message d'origine-
De : MATHUS Baptiste [mailto:[EMAIL PROTECTED] Envoyé : lundi 12 
novembre 2007 17:41 À : archiva-users@maven.apache.org Objet : Run 
Archiva on Aix


Hi all,

Thanks to cb, I solved my repo problem. I finally decided to separate my 
corporate and publicly retrieved artifact under two distinct urls.
Now, my tests are finished, I want to install my archiva config on an Aix. My 
tests were done on a Debian Linux.

Do you think it's a lost cause ? :-).
Which script in the archiva/bin directory would be the closest to the Aix needs 
if someone has an idea?

Thanks a lot.

--
B. MATHUS
  
--

--

[P520]/cic/archiva/bin:./plexus.sh
Using PLEXUS_HOME:   /cic/archiva
Using PLEXUS_BASE:   /cic/archiva
Using PLEXUS_TMPDIR: /cic/archiva/temp
Using JAVA_HOME: /usr/java5
[INFO] Loading on start [role,roleHint]: 
[org.codehaus.plexus.naming.Naming,dataSources]
[INFO] Loading on start [role,roleHint]: 
[org.codehaus.plexus.contextualizer.Contextualizer,jettyConfiguration]

[INFO] Services will be deployed in: '/cic/archiva/services'.
[INFO] Applications will be deployed in: '/cic/archiva/apps'.
[INFO] Service Supervisor is deploying 
plexus-appserver-service-jetty-2.0-alpha-8.
[INFO] Removing old service.
[DEBUG] Found 1 components to load on start [INFO] Loading on start 
[role,roleHint]: 
[org.codehaus.plexus.appserver.service.PlexusService,jetty]

13 Nov 2007 09:53:29 org.mortbay.http.HttpServer doStart
INFO: Version Jetty/5.1.10
13 Nov 2007 09:53:29 org.mortbay.util.Container start
INFO: Started [EMAIL PROTECTED] [INFO] Application 
Supervisor is deploying archiva-plexus-application-1.0-beta-3.

[INFO] Application 'archiva' already extracted.
[INFO] Deploying application 'archiva' at 
'/cic/apache-archiva-1.0-beta-3/apps/archiva'.
[INFO] Using application configurator file 
/cic/archiva/apps/archiva/conf/application.xml.
[INFO] Using appDir = /cic/archiva/apps/archiva [DEBUG] appserver.home 
= /cic/archiva [DEBUG] appserver.base = /cic/archiva [INFO] Deploying 
/cic/apache-archiva-1.0-beta-3/apps/archiva/webapp with context path 
of /archiva [INFO] Using standard webapp classloader for webapp.

[INFO] Deploying appserver 'archiva'.
[INFO] Adding HTTP listener on *4000
13 Nov 2007 09:53:32 org.mortbay.http.SocketListener start
INFO: Started SocketListener on 0.0.0.0:4000 [INFO] Starting Jetty 
Context /archiva

13 Nov 2007 09:53:32 org.mortbay.util.FileResource clinit
INFO: Checking Resource aliases
13 Nov 2007 09:53:34 org.mortbay.util.Container start
INFO: Started [EMAIL PROTECTED]
13 Nov 2007 09:53:34 org.mortbay.jetty.servlet.ServletHandler$Context 
log

INFO: Loading plexus context properties from: '/WEB-INF/plexus.properties'
13 Nov 2007 09:53:34 org.mortbay.jetty.servlet.ServletHandler$Context 
log

INFO: Could not load plexus context properties from: 
'/WEB-INF/plexus.properties'
2007-11-13 09:53:35,411 [main] INFO  
org.codehaus.plexus.PlexusContainer  - Loading on start 
[role,roleHint]: 
[org.apache.maven.archiva.web.startup.ArchivaStartup,default]
2007-11-13 09:53:37,135 [main] WARN  
net.sf.ehcache.config.ConfigurationFactory  - No configuration found. 
Configuring ehcache from ehcache-failsafe.xml  

Mapping between folder in subversion and projectGroup

2007-11-14 Thread Erik Drolshammer
Hi! 
My subversion repo has the following structure: 

root/lib/lib1
root/lib/lib2
root/lib/libX
root/clients/clientA
root/clients/clientB
root/clients/clientX
root/server/module1
root/server/module2
root/server/module3

I want to have each folder in root to correspond to a separate
projectGroup i Continuum. Is this supported in 1.1? 

If not, is there a jira-issue for it? 

-- 
Regards
Erik Drolshammer 




Re: moving from maven 1 to maven 2, part 2

2007-11-14 Thread Christian Andersson
I know, but I cannot change the real world, this is how it gets supplied
to me, I can probably over time get them (those that create it) to
change it for me, but not now..

Wayne Fay skrev:
 Different files (contents) with the same name is just a recipe for disaster.
 
 Wayne
 
 On 11/13/07, Christian Andersson [EMAIL PROTECTED] wrote:
 how does that solve the problem where I got 3:rd party jar files name
 for example project.jar which contains different versions depending on
 my website?



 Wayne Fay skrev:
 Sounds like you might want to look into classifiers -- then your
 artifacts would use classifierwebsite1/classifier and the naming
 of the files etc would indicate which website the code was for, but it
 would all go into the same Maven2 repo.

 Wayne

 On 11/13/07, Nigel Magnay [EMAIL PROTECTED] wrote:
 Sure, but by doing that you're effectively trying to dodge the bullet of
 having correct versions for artifacts, which isn't really what m2 is
 designed to do.
 It's quite common to have 'unversioned' 3rd party jars. Best solution is to
 version them yourself, and deploy them somewhere locally - either
 (minimally) an HTTP server (such as SVN itself), or into an artifact
 repository such as proximity, archiva or artifactory.

 On Nov 13, 2007 2:54 PM, Christian Andersson [EMAIL PROTECTED] wrote:

 I'm not sure what you mean by messing with maven versioning

 since what I basicly want is to have different local repositories for
 different projects without having to create a settings.xml for each
 project..

 that would take care of our immediate problem and in time we could start
 using maven everywhere and also get some 3rd party providers to start
 doing versioning of jar files.. (which they don't today)


 Nigel Magnay skrev:
 I'd really (really really) try not to mess with the maven versioning -
 it's
 a recipe for having to custom write loads of stuff, and it really is
 pretty
 fundamental to the operation of maven. Without it, I'm not sure there's
 much
 reason to change if it's currently working...
 That said... Is there some reason the JARs *can't* have a version (I.E.
 why
 can't you create 4 website projects with the dependencies of the JARs
 set to
 particular versions)?

  You can always write a custom script or MOJO (ANT or GROOVY) to move
 things
 about during the build (including the repository) - perhaps that's a way
 forward?


 On Nov 13, 2007 2:31 PM, Christian Andersson [EMAIL PROTECTED] wrote:

 quick recap..

 Hi there,  first some history  :-)
 I'm currently using maven 1.0.3 (yes, I know it is old, but it works
 for
 me) and we are currently switching from cvs to subversion. Along with
 this switch from cvs to subversion we are also going to try to switch
 from  our old maven to maven 2 (2.0.7)

 We are developing web applications that share many of our projects
 and we have several installed out at the customers, unfourtunally due
 to
  our own laziness and some reasons from the customers, they are not
 always updated at the same time to a newer version..

 so, what we have is then something like this (example)

 website1  using v1 of all jar files
 website2  using v1.02 of some jar files and v1 of the rest
 website3  using v1.1 of some jar files and v1 of the rest
 website4  using v1.02 of some jar files and v1 of the rest

 this is no problem since different versions can be stored in the
 repository at the same time..

 however some external dependencies and unfourtunally some of our own,
 do
 not have version information, or are still in V1 even though there are
 differences between 2 sites..

 when developing for the different sites we checked out the different
 branches (source code) from cvs into dedicated folders..

 for example

 branches/website1/projects/ (all projects)
 branches/website2/projects/ (all projects)
 branches/website3/projects/ (all projects)
 branches/website4/projects/ (all projects)

 and to be able to support our unversioned jar files (or different jar
 files with the same version number) we simple put the repository for
 each website inside the directory for the website (using the
 MAVEN_HOME_LOCAL and MAVEN_HOME_USER so that we could have per site
 repositories and settings.

 branches/website1/repository/...
 branches/website2/repository/
 branches/website3/repository/
 branches/website4/repository/

 now after such long description here is my question..

 from what I have learned about maven 2 there is no such environment
 variables that I can set and maven2 reads only settings from 3
 different
 places?  the global settings, the settings in the users home directory
 and the settings for the project.. that means I cannot create a per
 site settings.xml with the localRepository set to a specific
 directory ?
 I can probably create a settings.xml file per project but that means
 many files in many places that needs to be set up, and if one of them
 is
 wrong..

 I tried creating a settings.xml for the parent (pom) 

Re: Testng with testng.xml config file

2007-11-14 Thread Erik Drolshammer

On Tue, 2007-11-13 at 22:41 -0600, Wayne Fay wrote:
 I would assume the code/config would be somewhere under:
 http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-providers/surefire-testng/
 
 Or possibly:
 http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-plugin/
 
 I would assume the default configuration is not stored in an actual
 testng.xml file but instead coded in the plugin code, and then the
 configuration is passed into the TestNG runner when it is executed.

I couldn't find any testng.xml file, so I'm afraid you're right. 

-- 
Regards 
Erik Drolshammer 


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



Re: APT and repeating values

2007-11-14 Thread Lukas Theussl
It's going to be in 2.0-beta-6, see 
http://jira.codehaus.org/browse/MSITE-223


Note however that only .vm files get filtered.

HTH,
-Lukas


Marat Radchenko wrote:

Hi, Mattux!

Could you tell me, what version of maven-site-plugin (or doxia or
whatever) supports velocity expressions in APT files? As fas as I
understand, current maven-site-plugin release does not.

2007/11/13, Mattux [EMAIL PROTECTED]:


Hi all, I would like to know if there is a way to list repeating values like
contributors in my own apt file, using mvn site to generate apt to html.

Cheers
--
View this message in context: 
http://www.nabble.com/APT-and-repeating-values-tf4797176s177.html#a13723901
Sent from the Maven - Users mailing list archive at Nabble.com.


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





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




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



Re: APT and repeating values

2007-11-14 Thread Mattux

Hi, i'm using 2.0-beta-6-SNAPSHOT. Also, if you want to use properties from
the pom in your apt files (eg ${project.artifactId}) you need to rename your
.apt to .vm.

I hope that could help you, dont hesitate if you need more informations


Marat Radchenko-2 wrote:
 
 Hi, Mattux!
 
 Could you tell me, what version of maven-site-plugin (or doxia or
 whatever) supports velocity expressions in APT files? As fas as I
 understand, current maven-site-plugin release does not.
 
 2007/11/13, Mattux [EMAIL PROTECTED]:

 Hi all, I would like to know if there is a way to list repeating values
 like
 contributors in my own apt file, using mvn site to generate apt to html.

 Cheers
 --
 View this message in context:
 http://www.nabble.com/APT-and-repeating-values-tf4797176s177.html#a13723901
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/APT-and-repeating-values-tf4797176s177.html#a13742570
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Filtering same file with multi-output

2007-11-14 Thread Saloucious

Hi,

I would like to produce an assembly  :

What I would like to do, is to filtering file1.properties with different
filters and produce for each filter a new filetered file.

Here is the assembly files structures i'm looking for
/
|
|--bin/artifact.war
|
|--env1
||-- file1.properties (filtered with env1_filter.properties)
|
|--env2
||-- file1.properties (filtered with env2_filter.properties)
|
|--env3
||-- file1.properties (filtered with env3_filter.properties)

No problem to create this structure, but filters are chain and I don't find
the way to attach them for eg :
file1.properties + env3_filter.properties going into env3 assembly dir
file1.properties + env2_filter.properties going into env2 assembly dir

Any ideas ?

-- 
View this message in context: 
http://www.nabble.com/Filtering-same-file-with-multi-output-tf4803496s177.html#a13742488
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: Testng with testng.xml config file

2007-11-14 Thread Erik Drolshammer

On Wed, 2007-11-14 at 00:11 +0100, Erik Drolshammer wrote:
 I can't get the suiteXmlFile configuration option to work properly.
 
 Can anyone point me to a testng.xml file that runs the same set of tests
 as are run without any config? (Or any working testng.xml file that is 
 not completely trivial?)

Anyone got a testng.xml file that works from maven? 
(Preferable one that at least runs all junit tests in src/test/java.) 

-- 
Regards
Erik Drolshammer 


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



purging old snapshots from local repository

2007-11-14 Thread Petteri Heinonen
Hi, by default maven seems to store all the old versions of the
snapshots in the local repository, like this:

Server-20070928.105107-155.pom
Server-20070928.105107-155.war
Server-20071114.083015-684.pom
Server-20071114.083015-684.war
Server-SNAPSHOT.pom
Server-SNAPSHOT.war

Is there a way to configure install plugin so that only latest version
is kept at the repository, and odler ones are purged every time the
latest one is being installed?

-Petteri

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



RE: Run Archiva on Aix

2007-11-14 Thread MATHUS Baptiste
Hi, 
For the record, yesterday I found the solution using the IBM JDK.
It ends up being kind of a Security exception. In fact, it was because the 
IBM JDK is configured by default to the most restrictive cryptographic 
environment when using the JCE (Java Cryptography Extension) jar.

I had to download and install the less restrictive policies as described on 
this page : http://www-128.ibm.com/developerworks/java/jdk/security/50/ that 
were here : 
https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?source=jcesdk. After 
having overwritten the files inside the /usr/java5/jre/lib/security/ as 
described above, it worked.

Cheers.

-- Baptiste

-Message d'origine-
De : Maria Odea Ching [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 14 novembre 2007 08:22
À : [EMAIL PROTECTED]
Objet : Re: Run Archiva on Aix

Hi Baptiste,

Can you try using the Sun JDK/JRE instead of the IBM JDK/JRE and see if the 
problem still persists?

-Deng

MATHUS Baptiste wrote:
 OK. I directly launched the plexus.sh script in the bin directory and archiva 
 started fine.
 The thing is, I'm now having problem with the class javax.crypto.b that 
 triggers a NoClassDefFoundError...

 I found some informations about this on the web, but nothing seems to be 
 clear about what to do. 
 The complete archiva startup on this machine is attached. It ends with the 
 complete stacktrace.

 Anyway, for my information, could anyone explain a bit why at this moment 
 archiva is trying to access a cryptographic API. I'd be interested in it to 
 maybe better understand what could be done to workaround.

 Thanks a lot.

 -- Baptiste

 -Message d'origine-
 De : MATHUS Baptiste [mailto:[EMAIL PROTECTED] Envoyé : lundi 12 
 novembre 2007 17:41 À : [EMAIL PROTECTED] Objet : Run 
 Archiva on Aix

 Hi all,

 Thanks to cb, I solved my repo problem. I finally decided to separate my 
 corporate and publicly retrieved artifact under two distinct urls.
 Now, my tests are finished, I want to install my archiva config on an Aix. My 
 tests were done on a Debian Linux.

 Do you think it's a lost cause ? :-).
 Which script in the archiva/bin directory would be the closest to the Aix 
 needs if someone has an idea?

 Thanks a lot.

 --
 B. MATHUS
   
 --
 --

 [P520]/cic/archiva/bin:./plexus.sh
 Using PLEXUS_HOME:   /cic/archiva
 Using PLEXUS_BASE:   /cic/archiva
 Using PLEXUS_TMPDIR: /cic/archiva/temp
 Using JAVA_HOME: /usr/java5
 [INFO] Loading on start [role,roleHint]: 
 [org.codehaus.plexus.naming.Naming,dataSources]
 [INFO] Loading on start [role,roleHint]: 
 [org.codehaus.plexus.contextualizer.Contextualizer,jettyConfiguration]
 [INFO] Services will be deployed in: '/cic/archiva/services'.
 [INFO] Applications will be deployed in: '/cic/archiva/apps'.
 [INFO] Service Supervisor is deploying 
 plexus-appserver-service-jetty-2.0-alpha-8.
 [INFO] Removing old service.
 [DEBUG] Found 1 components to load on start [INFO] Loading on start 
 [role,roleHint]: 
 [org.codehaus.plexus.appserver.service.PlexusService,jetty]
 13 Nov 2007 09:53:29 org.mortbay.http.HttpServer doStart
 INFO: Version Jetty/5.1.10
 13 Nov 2007 09:53:29 org.mortbay.util.Container start
 INFO: Started [EMAIL PROTECTED] [INFO] Application 
 Supervisor is deploying archiva-plexus-application-1.0-beta-3.
 [INFO] Application 'archiva' already extracted.
 [INFO] Deploying application 'archiva' at 
 '/cic/apache-archiva-1.0-beta-3/apps/archiva'.
 [INFO] Using application configurator file 
 /cic/archiva/apps/archiva/conf/application.xml.
 [INFO] Using appDir = /cic/archiva/apps/archiva [DEBUG] appserver.home 
 = /cic/archiva [DEBUG] appserver.base = /cic/archiva [INFO] Deploying 
 /cic/apache-archiva-1.0-beta-3/apps/archiva/webapp with context path 
 of /archiva [INFO] Using standard webapp classloader for webapp.
 [INFO] Deploying appserver 'archiva'.
 [INFO] Adding HTTP listener on *4000
 13 Nov 2007 09:53:32 org.mortbay.http.SocketListener start
 INFO: Started SocketListener on 0.0.0.0:4000 [INFO] Starting Jetty 
 Context /archiva
 13 Nov 2007 09:53:32 org.mortbay.util.FileResource clinit
 INFO: Checking Resource aliases
 13 Nov 2007 09:53:34 org.mortbay.util.Container start
 INFO: Started [EMAIL PROTECTED]
 13 Nov 2007 09:53:34 org.mortbay.jetty.servlet.ServletHandler$Context 
 log
 INFO: Loading plexus context properties from: '/WEB-INF/plexus.properties'
 13 Nov 2007 09:53:34 org.mortbay.jetty.servlet.ServletHandler$Context 
 log
 INFO: Could not load plexus context properties from: 
 '/WEB-INF/plexus.properties'
 2007-11-13 09:53:35,411 [main] INFO  
 org.codehaus.plexus.PlexusContainer  - Loading on start 
 [role,roleHint]: 
 [org.apache.maven.archiva.web.startup.ArchivaStartup,default]
 2007-11-13 09:53:37,135 [main] WARN  
 net.sf.ehcache.config.ConfigurationFactory  - No configuration found. 
 Configuring ehcache from ehcache-failsafe.xml  found in the classpath: 
 

Re: How to handle multiple deployments?

2007-11-14 Thread Francesco Vivoli

Thanks for the reply.
I think I didn't quite express myself before though...
We are using profiles already, to generate builds for different platforms.

What I am talking about is structuring the project so that
someone needing to 

1. get the project, either the whole source tree or binaries 
2. write some functionality that integrates with the project (typically this
means importing some classes from it)
3. package the application: meaning building the project (a war) including
the this third party code, as well as its dependencies

The no-op for us would be just to leave things as they are, and have users
maintain their own project trees, that they'll have to periodically
integrate (when new versions come out)

I understand this is not strictly a maven question, I hope to get some ideas
though.

Francesco


Marat Radchenko-2 wrote:
 
 http://maven.apache.org/guides/introduction/introduction-to-profiles.html
 
 2007/11/13, Francesco Vivoli [EMAIL PROTECTED]:

 Hi all

 we're developing a project that is likely to be customized on a
 per-installation basis.
 For example users may want to add a functionality that, say, requires jar
 X,
 also
 at compile time.
 Generally speaking, I need to let users to keep in sync with new versions
 of
 the project
 (still _very_ alpha), and to allow them to build it with an added set of
 dependencies.

 How do I account for this in my setup?

 Many thanks
 Francesco
 --
 View this message in context:
 http://www.nabble.com/How-to-handle-multiple-deployments--tf4797177s177.html#a13723902
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/How-to-handle-multiple-deployments--tf4797177s177.html#a13742997
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: maven2 compilation problem

2007-11-14 Thread Nicole Lacoste
Hi Christian,

If you want to depend on another artifact you must define the artifact in
the depencencies section in the pom of the project that needs the dependecy,
not its parent.  You can have a dependency management section in a project's
parent pom where you declare the version number, so that when you declare
the dependency in the child(ren) project, you don't have to declare the
versionn, and if there are multiple children they all get the same version.
I suggest you read chapter 3 of Better Builds with Maven, you can download
it at http://www.devzuz.com/web/guest/products/resources.

Good luck,

Nicole



On 14/11/2007, Christian Andersson [EMAIL PROTECTED] wrote:

 anyone, this completely stops me from going to maven 2

 Christian Andersson skrev:
  OK, I have successfully created a pom.xm (with a parent pom.xml) and
  built my first maven2 project (minus some stuff described in earlier
 mails)
 
  but when I tried to create my second maven2 project that depends on the
  first one, I got into problems...
 
  the second project depends on the first project and the version is
  defined in the parent pom.
 
  when I try to do a mvn install I get the following error..
 
  error: error reading
  /home/user/.m2/repository/mygroup/myproject/1.0.0/myproject-1.0.0.jar;
  invalid header field
 
  from using amny different zip tools I cannot see that there is any
  problems with the .jar file so it is probably something about the
 content...
 
 
  running with -e shows this.. (which I don't understand a thing about)
 
  [INFO]
  
  [INFO] Trace
  org.apache.maven.BuildFailureException: Compilation failure
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
 DefaultLifecycleExecutor.java:560)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
 (DefaultLifecycleExecutor.java:480)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
 DefaultLifecycleExecutor.java:459)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
 (DefaultLifecycleExecutor.java:311)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
 DefaultLifecycleExecutor.java:278)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
 DefaultLifecycleExecutor.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:39)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  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)
  Caused by: org.apache.maven.plugin.CompilationFailureException:
  Compilation failure
  at
  org.apache.maven.plugin.AbstractCompilerMojo.execute(
 AbstractCompilerMojo.java:505)
  at
  org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:111)
  at
  org.apache.maven.plugin.DefaultPluginManager.executeMojo(
 DefaultPluginManager.java:443)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
 DefaultLifecycleExecutor.java:539)
  ... 16 more
 
 
 
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

 --
 Christian Andersson - [EMAIL PROTECTED]

 Configuration and Collaboration for OpenOffice.org
 Open Framework Systems AS http://www.ofs.no


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



Re: maven2 compilation problem

2007-11-14 Thread Christian Andersson
anyone, this completely stops me from going to maven 2

Christian Andersson skrev:
 OK, I have successfully created a pom.xm (with a parent pom.xml) and
 built my first maven2 project (minus some stuff described in earlier mails)
 
 but when I tried to create my second maven2 project that depends on the
 first one, I got into problems...
 
 the second project depends on the first project and the version is
 defined in the parent pom.
 
 when I try to do a mvn install I get the following error..
 
 error: error reading
 /home/user/.m2/repository/mygroup/myproject/1.0.0/myproject-1.0.0.jar;
 invalid header field
 
 from using amny different zip tools I cannot see that there is any
 problems with the .jar file so it is probably something about the content...
 
 
 running with -e shows this.. (which I don't understand a thing about)
 
 [INFO]
 
 [INFO] Trace
 org.apache.maven.BuildFailureException: Compilation failure
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:560)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 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)
 Caused by: org.apache.maven.plugin.CompilationFailureException:
 Compilation failure
 at
 org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:505)
 at
 org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:111)
 at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
 ... 16 more
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Christian Andersson - [EMAIL PROTECTED]

Configuration and Collaboration for OpenOffice.org
Open Framework Systems AS http://www.ofs.no

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

Re: maven2 compilation problem

2007-11-14 Thread Christian Andersson
I have defined it in my second project, otherwise it would not had tried
to load it. since the only plac eI have it in the parent project is in
the dependencymanegment so that I get the same version number for all my
projects..

my problem seems to be that maven has created a jar file for my first
project that my second project cannot read (which I think is strange)

what I have done is the following..

cd projecta
mvn clean install
cd ../projectb
mvn clean install

so it should be able to read it..

Nicole Lacoste skrev:
 Hi Christian,
 
 If you want to depend on another artifact you must define the artifact in
 the depencencies section in the pom of the project that needs the dependecy,
 not its parent.  You can have a dependency management section in a project's
 parent pom where you declare the version number, so that when you declare
 the dependency in the child(ren) project, you don't have to declare the
 versionn, and if there are multiple children they all get the same version.
 I suggest you read chapter 3 of Better Builds with Maven, you can download
 it at http://www.devzuz.com/web/guest/products/resources.
 
 Good luck,
 
 Nicole
 
 
 
 On 14/11/2007, Christian Andersson [EMAIL PROTECTED] wrote:
 anyone, this completely stops me from going to maven 2

 Christian Andersson skrev:
 OK, I have successfully created a pom.xm (with a parent pom.xml) and
 built my first maven2 project (minus some stuff described in earlier
 mails)
 but when I tried to create my second maven2 project that depends on the
 first one, I got into problems...

 the second project depends on the first project and the version is
 defined in the parent pom.

 when I try to do a mvn install I get the following error..

 error: error reading
 /home/user/.m2/repository/mygroup/myproject/1.0.0/myproject-1.0.0.jar;
 invalid header field

 from using amny different zip tools I cannot see that there is any
 problems with the .jar file so it is probably something about the
 content...

 running with -e shows this.. (which I don't understand a thing about)

 [INFO]
 
 [INFO] Trace
 org.apache.maven.BuildFailureException: Compilation failure
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
 DefaultLifecycleExecutor.java:560)
 at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
 (DefaultLifecycleExecutor.java:480)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
 DefaultLifecycleExecutor.java:459)
 at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
 (DefaultLifecycleExecutor.java:311)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
 DefaultLifecycleExecutor.java:278)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
 DefaultLifecycleExecutor.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:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 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)
 Caused by: org.apache.maven.plugin.CompilationFailureException:
 Compilation failure
 at
 org.apache.maven.plugin.AbstractCompilerMojo.execute(
 AbstractCompilerMojo.java:505)
 at
 org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:111)
 at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(
 DefaultPluginManager.java:443)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
 DefaultLifecycleExecutor.java:539)
 ... 16 more



 

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

 Configuration and Collaboration for OpenOffice.org
 Open Framework Systems AS http://www.ofs.no


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

 

-- 
Christian Andersson - [EMAIL PROTECTED]

Configuration and Collaboration for OpenOffice.org
Open Framework Systems AS http://www.ofs.no


Re: Mapping between folder in subversion and projectGroup

2007-11-14 Thread Francis De Brabandere
Are you using maven? Can't you just create all those groups and projects?

On Nov 14, 2007 10:03 AM, Erik Drolshammer [EMAIL PROTECTED] wrote:
 Hi!
 My subversion repo has the following structure:

 root/lib/lib1
 root/lib/lib2
 root/lib/libX
 root/clients/clientA
 root/clients/clientB
 root/clients/clientX
 root/server/module1
 root/server/module2
 root/server/module3

 I want to have each folder in root to correspond to a separate
 projectGroup i Continuum. Is this supported in 1.1?

 If not, is there a jira-issue for it?

 --
 Regards
 Erik Drolshammer






-- 
http://www.somatik.be
Microsoft gives you windows, Linux gives you the whole house.


Re: APT and repeating values

2007-11-14 Thread Marat Radchenko
Thanks

2007/11/14, Mattux [EMAIL PROTECTED]:

 Hi, i'm using 2.0-beta-6-SNAPSHOT. Also, if you want to use properties from
 the pom in your apt files (eg ${project.artifactId}) you need to rename your
 .apt to .vm.

 I hope that could help you, dont hesitate if you need more informations


 Marat Radchenko-2 wrote:
 
  Hi, Mattux!
 
  Could you tell me, what version of maven-site-plugin (or doxia or
  whatever) supports velocity expressions in APT files? As fas as I
  understand, current maven-site-plugin release does not.
 
  2007/11/13, Mattux [EMAIL PROTECTED]:
 
  Hi all, I would like to know if there is a way to list repeating values
  like
  contributors in my own apt file, using mvn site to generate apt to html.
 
  Cheers
  --
  View this message in context:
  http://www.nabble.com/APT-and-repeating-values-tf4797176s177.html#a13723901
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/APT-and-repeating-values-tf4797176s177.html#a13742570
 Sent from the Maven - Users mailing list archive at Nabble.com.


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



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



Re: Mapping between folder in subversion and projectGroup

2007-11-14 Thread Erik Drolshammer

On Wed, 2007-11-14 at 11:28 +0100, Francis De Brabandere wrote:
 Are you using maven? Can't you just create all those groups and projects?

Yes, (of course) I'm using maven. And yes I can do it manually (as I do
now), but I wanted to check if this convenience feature was already
supported. (Otherwise I want to request it.) 

Anything that reduce the manual work of administrating projects should
be pursued, IMHO. 

-- 
Regards
Erik 



Re: maven 2.0.7 assembly plugin

2007-11-14 Thread Nigel Magnay
You can do a jar containing all dependencies with the following descriptor.
However - the excludes doesn't work properly in the assembly plugin, so if
you have dependencies that are signed, you'll have to fix them afterwards
annoyingly.

You can also pack jars into the /lib and use something like one-jar - this
is quicker, but I found one-jar loads everthing into memory before running
(which fell over for me because my project is big).

assembly
 iduberjar/id
 formats
  formatjar/format
 /formats
 includeBaseDirectoryfalse/includeBaseDirectory
 dependencySets
  dependencySet
   outputDirectory/outputDirectory
   outputFileNameMapping/outputFileNameMapping
   unpacktrue/unpack
   scoperuntime/scope
   unpackOptions
excludes
 exclude/META-INF/*.RSA/exclude
 exclude/META-INF/*.DSA/exclude
 exclude/META-INF/*.SF/exclude
 exclude/META-INF/*.rsa/exclude
 exclude/META-INF/*.dsa/exclude
 exclude/META-INF/*.sf/exclude
/excludes
   /unpackOptions
  /dependencySet
 /dependencySets
 fileSets
  fileSet
   directorytarget/classes/directory
   outputDirectory/outputDirectory
  /fileSet
 /fileSets
/assembly

On Nov 14, 2007 2:04 AM, Steve Taylor [EMAIL PROTECTED] wrote:


 In theory, at the command line from the directory of the parent project,
 just
 type:
 mvn -DdescriptorId=jar-with-dependencies assembly:assembly
 and you should get a single jar with everything in it.

 In practice, what you actually get is a jar with just
 META-INF/MANIFEST.MF.
 So I am also really looking forward to the answer to this one. You'd think
 a
 simple problem like this would have a simple solution. Hopefully it does.
 I
 still want to believe that maven can make my life easier instead of
 following the inversion of difficulty pattern inherent in many java tools
 and frameworks (ie. difficult tasks are simplified and simple tasks become
 difficult).


 Brandon Enochs wrote:
 
  I'm trying to assemble a multi-module project with a single jar file for
  all of the modules in my project and a lib directory with all of jar
  files for my dependencies.  Does anyone know how to do this with the
  assembly plugin?
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/maven-2.0.7-assembly-plugin-tf4755367s177.html#a13738602
 Sent from the Maven - Users mailing list archive at 
 Nabble.comhttp://nabble.com/
 .


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




add dependency (newbie question) ?

2007-11-14 Thread Nicola Benaglia
Hi !
This is my first partecipation at this mailing listand obviously
with a very simple question.
I need to add a postgres jdbc dependency to maven.

Googling I found these lines to add to pom.xml:

dependency
  groupIdpostgresql/groupId
  artifactIdpostgresql/artifactId
  version8.1-407.jdbc3/version
  urlhttp://www.postgresql.org//url
/dependency

It worked, but I'd like to know what to write as groupID, artifactID, ... ?
Could you please help me or point me to the documentation explaining it?

Thank you,
Nicola

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



Re: Mapping between folder in subversion and projectGroup

2007-11-14 Thread Francis De Brabandere
I'm no continuum dev so you'll have to wait for an answer from
somebody else or just make the request

Regards

On Nov 14, 2007 11:39 AM, Erik Drolshammer [EMAIL PROTECTED] wrote:

 On Wed, 2007-11-14 at 11:28 +0100, Francis De Brabandere wrote:
  Are you using maven? Can't you just create all those groups and projects?

 Yes, (of course) I'm using maven. And yes I can do it manually (as I do
 now), but I wanted to check if this convenience feature was already
 supported. (Otherwise I want to request it.)

 Anything that reduce the manual work of administrating projects should
 be pursued, IMHO.

 --
 Regards
 Erik





-- 
http://www.somatik.be
Microsoft gives you windows, Linux gives you the whole house.


Re: maven2 compilation problem

2007-11-14 Thread Stuart McCulloch
On 14/11/2007, Christian Andersson [EMAIL PROTECTED] wrote:

 I have defined it in my second project, otherwise it would not had tried
 to load it. since the only plac eI have it in the parent project is in
 the dependencymanegment so that I get the same version number for all my
 projects..

 my problem seems to be that maven has created a jar file for my first
 project that my second project cannot read (which I think is strange)


invalid header field usually means the manifest contains some bogus values
(ie. some attributes have extra line-feeds or tabs where they're not
expected)

this is why you can unzip the jarfile using basic (un)zip tools, but it
can't be read
with the Java (un)archiver which checks for and expects a valid manifest
file.

you might want to check your POM to see if there are any entries that might
have extra line-feeds or tabs. There appear to be a couple of bugs reported
relating to this, but they suggest this is already fixed in Plexus
(PLX-185)...

   http://jira.codehaus.org/browse/MJAR-50

or do you add your own customized manifest to the jar?

what I have done is the following..

 cd projecta
 mvn clean install
 cd ../projectb
 mvn clean install

 so it should be able to read it..

 Nicole Lacoste skrev:
  Hi Christian,
 
  If you want to depend on another artifact you must define the artifact
 in
  the depencencies section in the pom of the project that needs the
 dependecy,
  not its parent.  You can have a dependency management section in a
 project's
  parent pom where you declare the version number, so that when you
 declare
  the dependency in the child(ren) project, you don't have to declare the
  versionn, and if there are multiple children they all get the same
 version.
  I suggest you read chapter 3 of Better Builds with Maven, you can
 download
  it at http://www.devzuz.com/web/guest/products/resources.
 
  Good luck,
 
  Nicole
 
 
 
  On 14/11/2007, Christian Andersson [EMAIL PROTECTED] wrote:
  anyone, this completely stops me from going to maven 2
 
  Christian Andersson skrev:
  OK, I have successfully created a pom.xm (with a parent pom.xml) and
  built my first maven2 project (minus some stuff described in earlier
  mails)
  but when I tried to create my second maven2 project that depends on
 the
  first one, I got into problems...
 
  the second project depends on the first project and the version is
  defined in the parent pom.
 
  when I try to do a mvn install I get the following error..
 
  error: error reading
  /home/user/.m2/repository/mygroup/myproject/1.0.0/myproject-1.0.0.jar;
  invalid header field
 
  from using amny different zip tools I cannot see that there is any
  problems with the .jar file so it is probably something about the
  content...
 
  running with -e shows this.. (which I don't understand a thing about)
 
  [INFO]
 
 
  [INFO] Trace
  org.apache.maven.BuildFailureException: Compilation failure
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
  DefaultLifecycleExecutor.java:560)
  at
 
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
  (DefaultLifecycleExecutor.java:480)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
  DefaultLifecycleExecutor.java:459)
  at
 
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
  (DefaultLifecycleExecutor.java:311)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
  DefaultLifecycleExecutor.java:278)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
  DefaultLifecycleExecutor.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:39)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(
  DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  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)
  Caused by: org.apache.maven.plugin.CompilationFailureException:
  Compilation failure
  at
  org.apache.maven.plugin.AbstractCompilerMojo.execute(
  AbstractCompilerMojo.java:505)
  at
  org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:111)
  at
  org.apache.maven.plugin.DefaultPluginManager.executeMojo(
  DefaultPluginManager.java:443)
  

Maven-assembly-plug-in usage

2007-11-14 Thread Vishal Pahwa

Hi 

We are using maven-assembly-plug-in for creating the release package.In
the descriptor file of the assembly the tag present is fileset.
But with the help of this we can add a group of files inside the folder
but not the folder itself that contains files as well as subfolders
also. 
So could anyone please tell me how can I do this activity basically I
want to add the whole folder including the files and sub folders.


Regards

Vishal. 


google sitemap plugin ?

2007-11-14 Thread nicolas de loof
Hello,

Is there any maven plugin to generate a google sitemap.xml for the project
site ?
In particular, any support for the google code search extension (
http://www.google.com/support/webmasters/bin/answer.py?answer=75224ctx=sibling
)

Nico.


Re: maven2 compilation problem

2007-11-14 Thread Christian Andersson
Thank you that was the problem, I had a written multiline description
tag in the pom.xml for the first project.

the best would be if either maven2 complained about this when creating
my first project OR convert illegal characters to something legal.


Stuart McCulloch skrev:
 On 14/11/2007, Christian Andersson [EMAIL PROTECTED] wrote:
 I have defined it in my second project, otherwise it would not had tried
 to load it. since the only plac eI have it in the parent project is in
 the dependencymanegment so that I get the same version number for all my
 projects..

 my problem seems to be that maven has created a jar file for my first
 project that my second project cannot read (which I think is strange)
 
 
 invalid header field usually means the manifest contains some bogus values
 (ie. some attributes have extra line-feeds or tabs where they're not
 expected)
 
 this is why you can unzip the jarfile using basic (un)zip tools, but it
 can't be read
 with the Java (un)archiver which checks for and expects a valid manifest
 file.
 
 you might want to check your POM to see if there are any entries that might
 have extra line-feeds or tabs. There appear to be a couple of bugs reported
 relating to this, but they suggest this is already fixed in Plexus
 (PLX-185)...
 
http://jira.codehaus.org/browse/MJAR-50
 
 or do you add your own customized manifest to the jar?
 
 what I have done is the following..
 cd projecta
 mvn clean install
 cd ../projectb
 mvn clean install

 so it should be able to read it..

 Nicole Lacoste skrev:
 Hi Christian,

 If you want to depend on another artifact you must define the artifact
 in
 the depencencies section in the pom of the project that needs the
 dependecy,
 not its parent.  You can have a dependency management section in a
 project's
 parent pom where you declare the version number, so that when you
 declare
 the dependency in the child(ren) project, you don't have to declare the
 versionn, and if there are multiple children they all get the same
 version.
 I suggest you read chapter 3 of Better Builds with Maven, you can
 download
 it at http://www.devzuz.com/web/guest/products/resources.

 Good luck,

 Nicole



 On 14/11/2007, Christian Andersson [EMAIL PROTECTED] wrote:
 anyone, this completely stops me from going to maven 2

 Christian Andersson skrev:
 OK, I have successfully created a pom.xm (with a parent pom.xml) and
 built my first maven2 project (minus some stuff described in earlier
 mails)
 but when I tried to create my second maven2 project that depends on
 the
 first one, I got into problems...

 the second project depends on the first project and the version is
 defined in the parent pom.

 when I try to do a mvn install I get the following error..

 error: error reading
 /home/user/.m2/repository/mygroup/myproject/1.0.0/myproject-1.0.0.jar;
 invalid header field

 from using amny different zip tools I cannot see that there is any
 problems with the .jar file so it is probably something about the
 content...
 running with -e shows this.. (which I don't understand a thing about)

 [INFO]

 
 [INFO] Trace
 org.apache.maven.BuildFailureException: Compilation failure
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
 DefaultLifecycleExecutor.java:560)
 at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
 (DefaultLifecycleExecutor.java:480)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
 DefaultLifecycleExecutor.java:459)
 at

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

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
 DefaultLifecycleExecutor.java:278)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
 DefaultLifecycleExecutor.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:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 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)
 Caused by: org.apache.maven.plugin.CompilationFailureException:
 Compilation failure
 at
 org.apache.maven.plugin.AbstractCompilerMojo.execute(
 

Re: add dependency (newbie question) ?

2007-11-14 Thread Giancarlo Degani
I think that the following link  can help you:
http://maven.apache.org/guides/getting-started/index.html#How_do_I_use_external_dependencies

Giancarlo

2007/11/14, Nicola Benaglia [EMAIL PROTECTED]:
 Hi !
 This is my first partecipation at this mailing listand obviously
 with a very simple question.
 I need to add a postgres jdbc dependency to maven.

 Googling I found these lines to add to pom.xml:

 dependency
   groupIdpostgresql/groupId
   artifactIdpostgresql/artifactId
   version8.1-407.jdbc3/version
   urlhttp://www.postgresql.org//url
 /dependency

 It worked, but I'd like to know what to write as groupID, artifactID, ... ?
 Could you please help me or point me to the documentation explaining it?

 Thank you,
 Nicola

 -
 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: maven deploy keep asking me the password of scp connection

2007-11-14 Thread Rémy Sanlaville
I found that it's a great pity to have to make a ssh connection with a ssh
client in order to store the server key in your account before launching
maven 2.

Isn't it possible to ask if you accept/trust or not the server key during
the maven 2 command ?
It would be a great improvement and really easier for the user. No ?

Rémy

2007/11/13, mailming [EMAIL PROTECTED]:


 From the build server use command console or shell, type ssh
 user@remoteserver if the remoteserver is asking your password, that
 means
 your ssh connection is not setup correctly. Supposely you don't need to
 supply any password, which means build server is a trust of the remote
 server.

 there are many reason could resulting this, you can trouble shoot by
 looking
 at the log of remote server locate something like /var/secure/log

 If this is not the case, then you need to verify if privateKey is
 referenced
 by the maven.




 CasMeiron wrote:
 
  Hi... i configured an scp connection to update my site and remote
  repository
  in pom.xml.
  I have a extra settings.xml in the pom directory. When i run maven
  deploy
  or maven site:deploy maven keep asking me the password of connection.
  The login and password is setted on settings.xml like:
  settings
servers
  server
idsite/id
usernamesitelogin/username
!-- Default value is ~/.ssh/id_dsa
privateKey/path/to/identity/privateKey (default is
  ~/.ssh/id_dsa)
//--
passphrasesitepass/passphrase
  /server
  server
idremote-repo/id
usernameremoteuser/username
!-- Default value is ~/.ssh/id_dsa
privateKey/path/to/identity/privateKey (default is
  ~/.ssh/id_dsa)
//--
passphraseremotepass/passphrase
  /server
/servers
  /settings
 
  Its my fault or maven should use the passphrase element value as
 password
  of
  connection?
  The pom looks like this:
  ...
  distributionManagement
  site
  idsite/id
  urlscp://siteURL:PORT/path/url
  /site
  repository
  idremote-repo/id
  namebla bla bla/name
  urlscp://remoteURL:PORT/path/url
uniqueVersionfalse/uniqueVersion
  /repository
  ...
  --
  Paulo Cesar Silva Reis
  ---
  Powered by GMAIL
 
 

 --
 View this message in context:
 http://www.nabble.com/maven-%22deploy%22-keep-asking-me-the-password-of-scp-connection-tf4798967s177.html#a13732224
 Sent from the Maven - Users mailing list archive at Nabble.com.


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




Gridgain and Surefire

2007-11-14 Thread Martin Gilday
I am interested in using Gridgain's new distributed JUnit functionality
in my existing Maven projects. 
http://www.gridgain.com/product_junits.html.  The requirement is that
rather than use JUnit's TestSuite, you use GridGain's
GridJUnit3TestSuite.  The rest of the JUnit classes remain unchanged. 
When using Maven one generally doesn't create a test suite, as Surefire
will execute tests based on the Maven naming conventions.

Is there a simple way for me to achieve this integration, or am I going
to have to look into writing an extension to Surefire?

Thanks,
Martin.

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



Re: Maven site plugin not connecting the projects and children properly

2007-11-14 Thread Rémy Sanlaville
Hi Kannan,

I think that you have something like that in your pom.xml:

project
  [...]
  urlmaven.apache.org/url
  [...]

/project

If so, just remove the url node.

Rémy


Re: maven2 compilation problem

2007-11-14 Thread Stuart McCulloch
On 14/11/2007, Christian Andersson [EMAIL PROTECTED] wrote:

 Thank you that was the problem, I had a written multiline description
 tag in the pom.xml for the first project.

 the best would be if either maven2 complained about this when creating
 my first project OR convert illegal characters to something legal.


definitely, it should really handle this for you - you might want to add a
comment to:

   http://jira.codehaus.org/browse/MJAR-50

to let them know that it's still an open issue... (mention which version of
maven you used)

Stuart McCulloch skrev:
  On 14/11/2007, Christian Andersson [EMAIL PROTECTED] wrote:
  I have defined it in my second project, otherwise it would not had
 tried
  to load it. since the only plac eI have it in the parent project is in
  the dependencymanegment so that I get the same version number for all
 my
  projects..
 
  my problem seems to be that maven has created a jar file for my first
  project that my second project cannot read (which I think is strange)
 
 
  invalid header field usually means the manifest contains some bogus
 values
  (ie. some attributes have extra line-feeds or tabs where they're not
  expected)
 
  this is why you can unzip the jarfile using basic (un)zip tools, but it
  can't be read
  with the Java (un)archiver which checks for and expects a valid manifest
  file.
 
  you might want to check your POM to see if there are any entries that
 might
  have extra line-feeds or tabs. There appear to be a couple of bugs
 reported
  relating to this, but they suggest this is already fixed in Plexus
  (PLX-185)...
 
 http://jira.codehaus.org/browse/MJAR-50
 
  or do you add your own customized manifest to the jar?
 
  what I have done is the following..
  cd projecta
  mvn clean install
  cd ../projectb
  mvn clean install
 
  so it should be able to read it..
 
  Nicole Lacoste skrev:
  Hi Christian,
 
  If you want to depend on another artifact you must define the artifact
  in
  the depencencies section in the pom of the project that needs the
  dependecy,
  not its parent.  You can have a dependency management section in a
  project's
  parent pom where you declare the version number, so that when you
  declare
  the dependency in the child(ren) project, you don't have to declare
 the
  versionn, and if there are multiple children they all get the same
  version.
  I suggest you read chapter 3 of Better Builds with Maven, you can
  download
  it at http://www.devzuz.com/web/guest/products/resources.
 
  Good luck,
 
  Nicole
 
 
 
  On 14/11/2007, Christian Andersson [EMAIL PROTECTED] wrote:
  anyone, this completely stops me from going to maven 2
 
  Christian Andersson skrev:
  OK, I have successfully created a pom.xm (with a parent pom.xml) and
  built my first maven2 project (minus some stuff described in earlier
  mails)
  but when I tried to create my second maven2 project that depends on
  the
  first one, I got into problems...
 
  the second project depends on the first project and the version is
  defined in the parent pom.
 
  when I try to do a mvn install I get the following error..
 
  error: error reading
  /home/user/.m2/repository/mygroup/myproject/1.0.0/myproject-
 1.0.0.jar;
  invalid header field
 
  from using amny different zip tools I cannot see that there is any
  problems with the .jar file so it is probably something about the
  content...
  running with -e shows this.. (which I don't understand a thing
 about)
 
  [INFO]
 
 
 
  [INFO] Trace
  org.apache.maven.BuildFailureException: Compilation failure
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
  DefaultLifecycleExecutor.java:560)
  at
 
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
  (DefaultLifecycleExecutor.java:480)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
  DefaultLifecycleExecutor.java:459)
  at
 
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
  (DefaultLifecycleExecutor.java:311)
  at
 
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
 (
  DefaultLifecycleExecutor.java:278)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
  DefaultLifecycleExecutor.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:39)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(
  DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at
  

Reminder - Guillaume Lederrey has invited you to TrustedOpinion.com

2007-11-14 Thread Guillaume Lederrey
[EMAIL PROTECTED],

Hello hello !
Lors de mes prinations ectroniques, ch'suis tombsur ce site, pour se 
recommander des films (entre autres). Vu que j'en recommande et m'en fait 
recommander tout le temps, et que j'oublie les titres par apr, je me dis que je 
vais faire un essai ...
On verra bien ...

A+

Check it out:


- Guillaume Lederrey
http://www.trustedopinion.com/home.do?code=01A1CWF311
(If the link doesn't work just copy and paste it into your browser's address 
bar)

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



Version ranges issue

2007-11-14 Thread Mishkin, Ernest
Dear list,

I've seen a number of threads with this subject in the list's archives
yet none helps me resolve my seemingly stupid issue.

I'm using maven 2.0.7:
==
C:\Source\XMLImportmvn -version
Maven version: 2.0.7
Java version: 1.6.0_03
OS name: windows xp version: 5.1 arch: x86
==

I have ant:ant 1.6.5 installed in my local repository:
==
C:\Source\XMLImportdir c:\Documents and
Settings\ernest_mishkin\.m2\repository\ant\ant\1.6.5
 Volume in drive C has no label.
 Volume Serial Number is 60F6-2F5C

 Directory of c:\Documents and
Settings\ernest_mishkin\.m2\repository\ant\ant\1.6.5

10/22/2007  01:49 PMDIR  .
10/22/2007  01:49 PMDIR  ..
10/22/2007  01:49 PM 1,034,049 ant-1.6.5.jar
10/22/2007  01:49 PM40 ant-1.6.5.jar.sha1
10/22/2007  01:49 PM   764 ant-1.6.5.pom
10/22/2007  01:49 PM56 ant-1.6.5.pom.sha1
==

I'm trying to use maven-webstart-plugin. It has pack200-anttasks module
which declares its dependencies as follows:
==
dependencies
dependency
  groupIdant/groupId
  artifactIdant/artifactId
  version[1.5,)/version
  scopecompile/scope
/dependency
  /dependencies
==

The problem is that maven apparently doesn't take my existing ant:ant
1.6.5 artifact as a valid candidate:
==
[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

No versions are present in the repository for the artifact with a range
[1.5,)
  ant:ant:jar:null
==

Beats me why... Any suggestions, (including RTFM :-) ) will be
appreciated!

Regards,
Ernest


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



Disinheriting dependecies

2007-11-14 Thread Steinar Bang
Is there a way to make a child POM inherit the parent's property
settings, but not the parent's dependecies list?

Thanx!


- Steinar


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



RE: assembly question

2007-11-14 Thread Saloucious

Haven't succeed too

May be i've miss something in maven lifecycle, but i really don't understand
why it's not possible ...
You must attach your execution to a goal (e.g package) but don't know why
...



EJ Ciramella-2 wrote:
 
 Yeah, I've been trying this:
 
 plugin
 artifactIdmaven-assembly-plugin/artifactId
 executions
 execution
 idassembler-dir/id
 phaseassembly:directory/phase
 goals
   goaldirectory/goal
 /goals
 configuration
   descriptors
  
 descriptorsrc/main/assembly/dep.xml/descriptor
   /descriptors
  
 outputDirectoryE:/testdirectory/outputDirectory
 /configuration
 /execution
 execution
 idassembler-bin/id
 phaseassembly:assembly/phase
 goals
   goalassembly/goal
 /goals
 configuration
descriptors
  
 descriptorsrc/main/assembly/dep.xml/descriptor
/descriptors
 /configuration
 /execution
 /executions 
 /plugin
 
 But when maven runs, it can't find the descriptor:
 
 [INFO] [assembly:assembly]
 [INFO]
 
 [ERROR] BUILD FAILURE
 [INFO]
 
 [INFO] No assembly descriptors found.
 [INFO]
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Tommy Knowlton
 Sent: Friday, March 23, 2007 11:59 AM
 To: Maven Users List
 Subject: Re: assembly question
 
 I'm not positive, but I believe where you said phase you should say
 goal. I haven't tried this in a POM of my own, but I've been using
 the maven-assembly-plugin alot lately, and I think you've got it
 exactly right, modulo that one change.
 
 HTH
 --
 Tommy
 
 On 3/23/07, EJ Ciramella [EMAIL PROTECTED] wrote:
 Is it possible to do something like the following:

   plugins
 plugin
 artifactIdmaven-assembly-plugin/artifactId
 configuration
 descriptorsrc/main/assembly/dep.xml/descriptor
 /configuration
 executions
 execution
 idassembler-dir/id
 phaseassembly:directory/phase
 configuration

 outputDirectoryE:/testdirectory/outputDirectory
 /configuration
 /execution
 execution
 idassembler-bin/id
 phaseassembly:assembly/phase
 configuration/configuration
 /execution
 /executions
 /plugin
   /plugins

 Basically, I want the assembly:directory to output to one location and
 the zip output to go to the regular target directory...

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

-- 
View this message in context: 
http://www.nabble.com/assembly-question-tf3454471s177.html#a13747046
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Getting access to the versions in a POM

2007-11-14 Thread Mark Russell
I am writing an internal plugin for maven 2 for our company.  One of the things I need to do is to get access to the dependency 
information that is configured in the pom.  Is there a way to do that?  I have done several web searches but can not come up 
with the correct string to get me an answer.


Please point me to a web page that will help me.

Thanks in advance :-

--
Mark Russell
Instantiations, Inc.
724-368-3331 (land line)
http://www.instantiations.com


smime.p7s
Description: S/MIME Cryptographic Signature


wrapper.java.maxmemory

2007-11-14 Thread Francis De Brabandere
just a question about wrapper.conf

# Initial Java Heap Size (in MB)
wrapper.java.initmemory=3

# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=384m

what is that 'm' doing after the 384? is that causing the default
value for maxmem? I think it should be removed, even if only for
clarity...
I got to that file because our builds seem to be interrupted without
any notice...

the wrapper.java.maxmemory doc:
The maximum amount of memory in megabytes that the JVM will be allowed to use.

the -Xmx java argument doc:
Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes.

I suppose this is a mix up somehow? Should I create a jira issue?

Regards

-- 
http://www.somatik.be
Microsoft gives you windows, Linux gives you the whole house.


Re: Building Eclipse plugins with Maven 2

2007-11-14 Thread Sebastien ARBOGAST
Your article is very helpful but I still miss some pieces. Here I've
followed your article word by word (or at least I think I have :P) but
when I run mvn install in my first binary-plugin, I get the following
error:

[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plu
gins:maven-psteclipse-plugin:1.1.0:testPackage': Unable to find the mojo 'org.ap
ache.maven.plugins:maven-psteclipse-plugin:1.1.0:testPackage' in the plugin 'org
.apache.maven.plugins:maven-psteclipse-plugin'
org/codehaus/plexus/archiver/ArchiverException
[INFO] 
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the pl
ugin manager executing goal 'org.apache.maven.plugins:maven-psteclipse-plugin:1.
1.0:testPackage': Unable to find the mojo 'org.apache.maven.plugins:maven-pstecl
ipse-plugin:1.1.0:testPackage' in the plugin 'org.apache.maven.plugins:maven-pst
eclipse-plugin'
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:538)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:454)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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)
Caused by: org.apache.maven.plugin.PluginManagerException: Unable to find the mo
jo 'org.apache.maven.plugins:maven-psteclipse-plugin:1.1.0:testPackage' in the p
lugin 'org.apache.maven.plugins:maven-psteclipse-plugin'
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
tPluginManager.java:533)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:390)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
... 16 more
Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupExc
eption: Unable to lookup component 'org.apache.maven.plugin.Mojoorg.apache.maven
.plugins:maven-psteclipse-plugin:1.1.0:testPackage', it could not be created
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:335)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:440)
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
tPluginManager.java:524)
... 18 more
Caused by: org.codehaus.plexus.component.factory.ComponentInstantiationException
: Could not instanciate component: role: 'null', implementation: 'com.princetons
oftech.maven.psteclipse.TestPluginPackagingMojo'
at org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeE
xception(JavaComponentFactory.java:77)
at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newIn
stance(JavaComponentFactory.java:62)
at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(De
faultPlexusContainer.java:1464)
at org.codehaus.plexus.component.manager.AbstractComponentManager.create
ComponentInstance(AbstractComponentManager.java:93)
at org.codehaus.plexus.component.manager.PerLookupComponentManager.getCo
mponent(PerLookupComponentManager.java:48)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:331)
... 20 more
Caused by: java.lang.NoClassDefFoundError: org/codehaus/plexus/archiver/Archiver
Exception
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at 

[M2] jaxws-maven-plugin vs. ant-task using wsgen

2007-11-14 Thread CodingPlayer

Hi There,

I'm an absolute noob to webservices, who is currently trying to compile a
webservice annotated class, with the actual jaxws-maven-plugin.

i already lost 3 days, and still didn't find a way to get it running
properly.

to find the error i stepped back, and simply tried to get the wsgen example
running:
https://jax-ws-commons.dev.java.net/source/browse/*checkout*/jax-ws-commons/trunk/jaxws-maven-plugin/src/it/wsgen/pom.xml?content-type=text%2Fplainrev=110

after removing the version (which points to a SNAPSHOT which can't be
downloaded) i have the following pom.xml:

?xml version=1.0 encoding=UTF-8 ?

project 
  xmlns=http://maven.apache.org/POM/4.0.0; 
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;


modelVersion4.0.0/modelVersion
groupIdorg.codehaus.mojo.jaxws.it/groupId
artifactIdhelloworldws/artifactId
version1.0-SNAPSHOT/version

packagingwar/packaging
namehelloworld/name

   
dependencies
  dependency
groupIdcom.sun.xml.ws/groupId 
artifactIdjaxws-rt/artifactId
version2.1/version
  /dependency
/dependencies

!-- temporary only until java.net maven2 repo is ready--
repositories
  repository
idjava.net/id
urlhttps://maven-repository.dev.java.net/nonav/repository//url
layoutlegacy/layout
  /repository
/repositories

build
  
  finalName${artifactId}/finalName
  
  plugins
  
  plugin
   groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-compiler-plugin/artifactId
 configuration
   source1.5/source
   target1.5/target
 /configuration
 
 executions
   execution
 idcompile/id
 goals
   goalcompile/goal
 /goals
 phaseinitialize/phase
   /execution
 /executions

   /plugin
  
  
plugin
  groupIdorg.codehaus.mojo/groupId
artifactIdjaxws-maven-plugin/artifactId
executions
  execution
goals
  goalwsgen/goal
/goals
phasegenerate-sources/phase
configuration
  seiorg.codehaus.mojo.jaxws.it.HelloWorldImpl/sei
  genWsdltrue/genWsdl !-- for demo purpose only, the
wepapp does not need those the generated wsdl files--
  keeptrue/keep
/configuration
  /execution
/executions
  /plugin
  

  plugin
groupIdorg.mortbay.jetty/groupId
artifactIdmaven-jetty-plugin/artifactId
version6.0.1/version
configuration
  scanIntervalSeconds10/scanIntervalSeconds
  contextPath//contextPath
  !--jettyEnvXml${basedir}/src/jetty-env.xml/jettyEnvXml--
  connectors
connector
implementation=org.mortbay.jetty.nio.SelectChannelConnector
  port9090/port
  maxIdleTime6/maxIdleTime
/connector
  /connectors
/configuration
  /plugin

/plugins
/build
/project


when running 'mvn install -X -e' from the command line i get the following
error:

[DEBUG] jaxws:wsgen args: [-keep, -d, C:\projects\jax-ws\target\classes,
-cp, C:\projects\jax-ws\target\classes;D:\data
Maven_repository\javax\xml\bind\jaxb-api\2.1\jaxb-api-2.1.jar;D:\data\Maven_repository\javax\xml\ws\jaxws-api\2.1\jaxws
api-2.1.jar;D:\data\Maven_repository\javax\xml\soap\saaj-api\1.3\saaj-api-1.3.jar;D:\data\Maven_repository\com\sun\xml\
essaging\saaj\saaj-impl\1.3\saaj-impl-1.3.jar;D:\data\Maven_repository\com\sun\xml\stream\buffer\streambuffer\0.4\strea
buffer-0.4.jar;D:\data\Maven_repository\com\sun\xml\stream\sjsxp\1.0\sjsxp-1.0.jar;D:\data\Maven_repository\com\sun\xml
bind\jaxb-impl\2.1.2\jaxb-impl-2.1.2.jar;D:\data\Maven_repository\com\sun\xml\ws\jaxws-rt\2.1\jaxws-rt-2.1.jar;D:\data\
aven_repository\javax\xml\stream\stax-api\1.0\stax-api-1.0.jar;D:\data\Maven_repository\javax\activation\activation\1.1
activation-1.1.jar;D:\data\Maven_repository\org\jvnet\staxex\stax-ex\1.0\stax-ex-1.0.jar,
-wsdl, -r, C:\projects\jax-ws
target\jaxws\wsgen\wsdl, org.codehaus.mojo.jaxws.it.HelloWorldImpl]
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to execute wsgen

Embedded error: javax/jws/WebService
[INFO]

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
wsgen
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
at

Re: wrapper.java.maxmemory

2007-11-14 Thread Emmanuel Venisse

I removed it even if it doesn't change the execution

Emmanuel

Francis De Brabandere a écrit :

just a question about wrapper.conf

# Initial Java Heap Size (in MB)
wrapper.java.initmemory=3

# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=384m

what is that 'm' doing after the 384? is that causing the default
value for maxmem? I think it should be removed, even if only for
clarity...
I got to that file because our builds seem to be interrupted without
any notice...

the wrapper.java.maxmemory doc:
The maximum amount of memory in megabytes that the JVM will be allowed to use.

the -Xmx java argument doc:
Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes.

I suppose this is a mix up somehow? Should I create a jira issue?

Regards





Dependency management

2007-11-14 Thread Brian De Pradine
Hello all,

Is there a way to configure maven2 so that it loads classes from a 
dependency that I specify rather than from the JVM? I guess that I need to 
configure the class path so that my library is located in front of the 
libraries from the JVM.

Cheers

Brian DePradine
Web Services Development
IBM Hursley
External  +44 (0) 1962 816319 Internal 246319

If you can't find the time to do it right the first time, where will you 
find the time to do it again?






Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU







Re: Dependency management

2007-11-14 Thread Stuart McCulloch
On 14/11/2007, Brian De Pradine [EMAIL PROTECTED] wrote:

 Hello all,

 Is there a way to configure maven2 so that it loads classes from a
 dependency that I specify rather than from the JVM?


could you explain which classes you'd want to load from a dependency rather
than
the JVM - and also explain why you want to do this? (there may be a better
solution)

I guess that I need to
 configure the class path so that my library is located in front of the
 libraries from the JVM.


the core JVM libraries are supplied from the boot classloader, which all
classloaders
delegate to in the normal parent delegation model, so if you want to make
sure you
override the JVM libraries you'd normally use -Xbootclasspath/p:...

(JVM libraries are separate from application libraries, which use the normal
classpath)

Cheers

 Brian DePradine
 Web Services Development
 IBM Hursley
 External  +44 (0) 1962 816319 Internal 246319

 If you can't find the time to do it right the first time, where will you
 find the time to do it again?






 Unless stated otherwise above:
 IBM United Kingdom Limited - Registered in England and Wales with number
 741598.
 Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU








-- 
Cheers, Stuart


Maven install problem: erlang-plugin and erlang-archetype

2007-11-14 Thread joe lee
Has anyone successfully installed maven erlang-plugin and maven
erlang-archetype?

I have checked out the svn version of maven erlang-plugin and maven
erlang-archetype and I am trying to install.  When I perform mvn -e
install for both maven erlang packages, I get the the following error
for both installation:

[INFO] Scanning for projects...
Downloading: http://people.apache.org/maven-snapshot-repository/org/erlang/maven
/maven-erlang/1.0-SNAPSHOT/maven-erlang-1.0-SNAPSHOT.pom
Downloading: http://snapshots.repository.codehaus.org/org/erlang/maven/maven-erl
ang/1.0-SNAPSHOT/maven-erlang-1.0-SNAPSHOT.pom
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] Error building POM (may not be this project's POM).







Here is the complete logs of mvn install of maven erlang-pluging and
maven erlang-archetype:

C:\erlang_stuff\erlang-pluginmvn -e install
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
Downloading: http://people.apache.org/maven-snapshot-repository/org/erlang/maven
/maven-erlang/1.0-SNAPSHOT/maven-erlang-1.0-SNAPSHOT.pom
Downloading: http://snapshots.repository.codehaus.org/org/erlang/maven/maven-erl
ang/1.0-SNAPSHOT/maven-erlang-1.0-SNAPSHOT.pom
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] Error building POM (may not be this project's POM).


Project ID: org.erlang.maven:erlang-plugin:maven-plugin:1.0-SNAPSHOT

Reason: Cannot find parent: org.erlang.maven:maven-erlang for project: org.erlan
g.maven:erlang-plugin:maven-plugin:1.0-SNAPSHOT for project org.erlang.maven:erl
ang-plugin:maven-plugin:1.0-SNAPSHOT


[INFO] 
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.erlang
.maven:maven-erlang for project: org.erlang.maven:erlang-plugin:maven-plugin:1.0
-SNAPSHOT for project org.erlang.maven:erlang-plugin:maven-plugin:1.0-SNAPSHOT
   at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
   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:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   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)
Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent
: org.erlang.maven:maven-erlang for project: org.erlang.maven:erlang-plugin:mave
n-plugin:1.0-SNAPSHOT for project org.erlang.maven:erlang-plugin:maven-plugin:1.
0-SNAPSHOT
   at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1261)
   at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def
aultMavenProjectBuilder.java:747)
   at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
leInternal(DefaultMavenProjectBuilder.java:479)
   at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
nProjectBuilder.java:200)
   at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:553)
   at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467)
   at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364)
   ... 11 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.erlang.ma
ven:maven-erlang' not found in repository: Unable to download the artifact from
any repository

 org.erlang.maven:maven-erlang:pom:1.0-SNAPSHOT

from the specified remote repositories:
 codehaus.org (http://snapshots.repository.codehaus.org),
 central (http://repo1.maven.org/maven2),
 apache.org (http://people.apache.org/maven-snapshot-repository)
 for project org.erlang.maven:maven-erlang
   at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:573)
   at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1257)
   ... 17 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable
to download the artifact from any repository

 org.erlang.maven:maven-erlang:pom:1.0-SNAPSHOT

from the specified remote repositories:
 codehaus.org 

Re: Mvn2

2007-11-14 Thread Rémy Sanlaville
Hi Olivier,

I wonder why ?

Rémy


AW: AW: AW: AW: CVS checkout fails: Terminated with fatal signal 11

2007-11-14 Thread Manuel.Renz
Hi, 
I finally could fix it.
 Do you use the embedded pure java cvs client (it is the default) or the 
 native cvs client?
According to the logs I thought it is allready using the native client, but it 
wasn't.
So I modified the  wrapper.conf and added 
wrapper.java.additional.9=-Dmaven.scm.provider.cvs.implementation=cvs_native

thanks for helping
Greetings 
Manuel

-Ursprüngliche Nachricht-
Von: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 12. November 2007 17:52
An: [EMAIL PROTECTED]
Betreff: Re: AW: AW: AW: CVS checkout fails: Terminated with fatal signal 11

The message is Terminated with fatal signal 11 and it is sent by cvs directly.

Do you use the embedded pure java cvs client (it is the default) or the native 
cvs client?

With 1.1-beta-3, logs are configured in 
WEB-INF/classes/META-INF/plexus/application.xml, you can set the maven-scm log 
level to debug.

Emmanuel

[EMAIL PROTECTED] a écrit :
  
 As I wrote in my initial request I'm aware of the virtual memory 
 thingy... (I even quoted that) The thing is that the same cvs command runs 
 fine via shell on the same machine that continuum runs on.
 So I'm pretty sure that this is not [2] a memory issue on the cvs server. 
 About 40 people are using the cvs server and memory never was a problem. 
 
 Continuum itself runs on a dedicated machine with 3GB RAM and an intel xeon 
 2GHz multicore cpu, this is rather oversized than insufficient hardware.
 
 Is it possible that the local JVM is out of memory? Although, wouldn't I got 
 an OutOfMemory Exception if this was the case?
 Are you aware of situations when continuum's process  needs a lot of memory?
 
 Is it possible to write the output of the cvs command to the continuum logs?
 
 -Ursprüngliche Nachricht-
 Von: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
 Gesendet: Montag, 12. November 2007 15:38
 An: [EMAIL PROTECTED]
 Betreff: Re: AW: AW: CVS checkout fails: Terminated with fatal signal 11
 
 After a quick search on Google [1], it seems you're not alone with 
 this cvs error. But it's sure it isn't a Continuum error but a cvs 
 issue, maybe a memory issue on the cvs server [2]
 
 [1] http://www.google.fr/search?q=Terminated+with+fatal+signal+11
 [2] http://osdir.com/ml/version-control.cvs.bugs/2002-04/msg00298.html
 
 Emmanuel
 
 [EMAIL PROTECTED] a écrit :
 Oh sorry, I think I missunderstood you. Thought you asked how often 
 it is used to run ;-) One checkout takes about 3 minutes.

 -Ursprüngliche Nachricht-
 Von: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
 Gesendet: Montag, 12. November 2007 13:28
 An: [EMAIL PROTECTED]
 Betreff: Re: AW: CVS checkout fails: Terminated with fatal signal 11

 How many minutes are used to do a clean checkout?

 Emmanuel

 [EMAIL PROTECTED] a écrit :
 Can you give me a hint what to do to fix this problem?
 Or do you need more information?

 -Ursprüngliche Nachricht-
 Von: Renz, Manuel
 Gesendet: Donnerstag, 8. November 2007 12:59
 An: [EMAIL PROTECTED]
 Betreff: AW: CVS checkout fails: Terminated with fatal signal 11

 It is planned to do a clean checkout once a day

 -Ursprüngliche Nachricht-
 Von: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 7. November 2007 20:19
 An: [EMAIL PROTECTED]
 Betreff: Re: CVS checkout fails: Terminated with fatal signal 11

 It seems a kill was sent to the cvs client.

 How many time is used to do a checkout?

 Emmanuel

 [EMAIL PROTECTED] a écrit :
  
 Hi togehter,
 I'm using continuum 1.1 beta 3 at the moment. I have set up 2 
 Projects which work just fine.

 Now I'm in the process of setting up my third project, which is 
 quite large (clean checked out working copy round about ~260MB ), 
 with which I have massive problems.


 Here is a short snippet from the logs:

 [SocketListener0-1] INFO  FreemarkerManager  - Instantiating
 Freemarker ConfigManager!,
 com.opensymphony.webwork.views.freemarker.FreemarkerManager
 [SocketListener0-0] INFO  Continuum:default  - Enqueuing 'My-App'
 (Build definition id=6).
 [pool-1-thread-1] INFO  BuildController:default  - Initializing 
 build [pool-1-thread-1] INFO  BuildController:default  - Starting 
 build of My-App [pool-1-thread-1] INFO  BuildController:default  - 
 Updating working dir [pool-1-thread-1] INFO  
 BuildController:default
 - Performing action check-working-directory [pool-1-thread-1] INFO 
 BuildController:default  - Performing action checkout-project
 [pool-1-thread-1] INFO  ContinuumScm:default - Checking out project:
 'My-App', id: '63' to 'D:\buildserver\data\working\63'.
 [pool-1-thread-1] INFO  ScmManager:default   - Executing: cmd.exe /X
 /C 'cvs -z3 -f -d :pserver:[EMAIL PROTECTED]:/CVS -q checkout -d 63 
 my-app'
 [pool-1-thread-1] INFO  ScmManager:default   - Working directory:
 D:\buildserver\data\working
 ...
 [pool-1-thread-1] WARN  ContinuumScm:default - Error while checking
 out the code for project: 'My-App', id: '63' to 
 'D:\buildserver\data\working\63'.
 

problem with maven embebed in netbeans 5.5.1

2007-11-14 Thread logancillo

hi everybody, i`using netbeans 5.5.1 with jdk 1.6. App server is embebed
tomcat 5.5.17 and i `m having some troubles when i build the war file. It
seems that WEB-INF/classes dir is not updated!

i´ll try to explain better!

my workspace is C:\trabajo\ws\AFEL\sources, where i have pom.xml,
profiles.xml, nbactions.xml and src  directory with my web project. If i run
build goal on netbeans, it extracts to screen something like this:

[compiler:compile]
[INFO]Compiling 28 source files to C:\trabajo\ws\AFEL\sources\target\classes
[resources:testResources]
[INFO]Using default encoding to copy filtered resources.
[compiler:testCompile]
[INFO]No sources to compile
[surefire:test]
[INFO]No tests to run.
[war:war]
[INFO]Packaging webapp
[INFO]Assembling webapp[frontal] in
[C:\trabajo\ws\AFEL\sources\target\frontal-1.0-SNAPSHOT]
[INFO]Processing war project
[INFO]Webapp assembled in[6484 msecs]
[INFO]Building war:
C:\trabajo\ws\AFEL\sources\target\frontal-1.0-SNAPSHOT.war
[install:install]
[INFO]Installing C:\trabajo\ws\AFEL\sources\target\frontal-1.0-SNAPSHOT.war
to C:\Documents and
Settings\operador\.m2\repository\es\yell\frontlite\frontal\1.0-SNAPSHOT\frontal-1.0-SNAPSHOT.war
[INFO]
[INFO]BUILD SUCCESSFUL
[INFO]
[INFO]Total time: 14 seconds
[INFO]Finished at: Wed Nov 14 15:58:51 CET 2007
[INFO]Final Memory: 47M/87M
[INFO]

the content of C:\trabajo\ws\AFEL\sources\target\classes is diferent with
regard to WEB-INF/classes contained in the generated war!

pls help, how can i fix this strange behavior?

PD

i already tried unistalling and purging netbeans files
-- 
View this message in context: 
http://www.nabble.com/problem-with-maven-embebed-in-netbeans-5.5.1-tf4805705s177.html#a13748536
Sent from the Maven - Users mailing list archive at Nabble.com.


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



How to use latest snapshot?

2007-11-14 Thread Taras Lipatov
Is there a way to have a dependency always use the latest available
SNAPSHOT?

Meaning, some of our projects are released quite fast and versions will
increment fast as well:
3.0.1-SNAPSHOT 3.0.2-SNAPSHOT  Etc..

Is there a way to declare 3.0.*-SNAPSHOT in the pom so that developers
will always get the latest of the 3.0 series?

Thanks


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



Re: Disinheriting dependecies

2007-11-14 Thread Wayne Fay
Not that I'm aware of. You may want to use dependencyManagement
instead of straight dependencies -- then you can control what deps are
needed in your children.

Wayne

On 11/14/07, Steinar Bang [EMAIL PROTECTED] wrote:
 Is there a way to make a child POM inherit the parent's property
 settings, but not the parent's dependecies list?

 Thanx!


 - Steinar


 -
 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: Getting access to the versions in a POM

2007-11-14 Thread Wayne Fay
In your mojo, you'll need:
 * @requiresDependencyResolution
 * @requiresProject

And then:
/**
 * iMaven Internal/i: Project to interact with.
 *
 * @parameter expression=${project}
 * @required
 * @readonly
 */
private MavenProject project;

Then you can navigate around in the MavenProject object to find the
dependencies and their versions etc. I assume this is on the web
somewhere but I'm not sure where, perhaps Wiki? Or Plugin Dev Center?

Wayne

On 11/14/07, Mark Russell [EMAIL PROTECTED] wrote:
 I am writing an internal plugin for maven 2 for our company.  One of the 
 things I need to do is to get access to the dependency
 information that is configured in the pom.  Is there a way to do that?  I 
 have done several web searches but can not come up
 with the correct string to get me an answer.

 Please point me to a web page that will help me.

 Thanks in advance :-

 --
 Mark Russell
 Instantiations, Inc.
 724-368-3331 (land line)
 http://www.instantiations.com



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



Re: [M2] jaxws-maven-plugin vs. ant-task using wsgen

2007-11-14 Thread Wayne Fay
You should probably also post this request on the jaxws plugin
users/dev list. Since there is a lower chance that someone here is
using jaxws and will respond, but a very high chance that someone on
that list is using jaxws.

Wayne

On 11/14/07, CodingPlayer [EMAIL PROTECTED] wrote:

 Hi There,

 I'm an absolute noob to webservices, who is currently trying to compile a
 webservice annotated class, with the actual jaxws-maven-plugin.

 i already lost 3 days, and still didn't find a way to get it running
 properly.

 to find the error i stepped back, and simply tried to get the wsgen example
 running:
 https://jax-ws-commons.dev.java.net/source/browse/*checkout*/jax-ws-commons/trunk/jaxws-maven-plugin/src/it/wsgen/pom.xml?content-type=text%2Fplainrev=110

 after removing the version (which points to a SNAPSHOT which can't be
 downloaded) i have the following pom.xml:

 ?xml version=1.0 encoding=UTF-8 ?

 project
  xmlns=http://maven.apache.org/POM/4.0.0;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;


modelVersion4.0.0/modelVersion
groupIdorg.codehaus.mojo.jaxws.it/groupId
artifactIdhelloworldws/artifactId
version1.0-SNAPSHOT/version

packagingwar/packaging
namehelloworld/name


dependencies
  dependency
groupIdcom.sun.xml.ws/groupId
artifactIdjaxws-rt/artifactId
version2.1/version
  /dependency
/dependencies

!-- temporary only until java.net maven2 repo is ready--
repositories
  repository
idjava.net/id
urlhttps://maven-repository.dev.java.net/nonav/repository//url
layoutlegacy/layout
  /repository
/repositories

build

  finalName${artifactId}/finalName

  plugins

  plugin
   groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-compiler-plugin/artifactId
 configuration
   source1.5/source
   target1.5/target
 /configuration

 executions
   execution
 idcompile/id
 goals
   goalcompile/goal
 /goals
 phaseinitialize/phase
   /execution
 /executions

   /plugin


plugin
  groupIdorg.codehaus.mojo/groupId
artifactIdjaxws-maven-plugin/artifactId
executions
  execution
goals
  goalwsgen/goal
/goals
phasegenerate-sources/phase
configuration
  seiorg.codehaus.mojo.jaxws.it.HelloWorldImpl/sei
  genWsdltrue/genWsdl !-- for demo purpose only, the
 wepapp does not need those the generated wsdl files--
  keeptrue/keep
/configuration
  /execution
/executions
  /plugin


  plugin
groupIdorg.mortbay.jetty/groupId
artifactIdmaven-jetty-plugin/artifactId
version6.0.1/version
configuration
  scanIntervalSeconds10/scanIntervalSeconds
  contextPath//contextPath
  !--jettyEnvXml${basedir}/src/jetty-env.xml/jettyEnvXml--
  connectors
connector
 implementation=org.mortbay.jetty.nio.SelectChannelConnector
  port9090/port
  maxIdleTime6/maxIdleTime
/connector
  /connectors
/configuration
  /plugin

/plugins
/build
 /project


 when running 'mvn install -X -e' from the command line i get the following
 error:

 [DEBUG] jaxws:wsgen args: [-keep, -d, C:\projects\jax-ws\target\classes,
 -cp, C:\projects\jax-ws\target\classes;D:\data
 Maven_repository\javax\xml\bind\jaxb-api\2.1\jaxb-api-2.1.jar;D:\data\Maven_repository\javax\xml\ws\jaxws-api\2.1\jaxws
 api-2.1.jar;D:\data\Maven_repository\javax\xml\soap\saaj-api\1.3\saaj-api-1.3.jar;D:\data\Maven_repository\com\sun\xml\
 essaging\saaj\saaj-impl\1.3\saaj-impl-1.3.jar;D:\data\Maven_repository\com\sun\xml\stream\buffer\streambuffer\0.4\strea
 buffer-0.4.jar;D:\data\Maven_repository\com\sun\xml\stream\sjsxp\1.0\sjsxp-1.0.jar;D:\data\Maven_repository\com\sun\xml
 bind\jaxb-impl\2.1.2\jaxb-impl-2.1.2.jar;D:\data\Maven_repository\com\sun\xml\ws\jaxws-rt\2.1\jaxws-rt-2.1.jar;D:\data\
 aven_repository\javax\xml\stream\stax-api\1.0\stax-api-1.0.jar;D:\data\Maven_repository\javax\activation\activation\1.1
 activation-1.1.jar;D:\data\Maven_repository\org\jvnet\staxex\stax-ex\1.0\stax-ex-1.0.jar,
 -wsdl, -r, C:\projects\jax-ws
 target\jaxws\wsgen\wsdl, org.codehaus.mojo.jaxws.it.HelloWorldImpl]
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Failed to execute wsgen

 Embedded error: javax/jws/WebService
 [INFO]
 
 [DEBUG] Trace
 

Re: Getting access to the versions in a POM

2007-11-14 Thread Mark Russell

Wayne:
Thanks That should get me started.  I'll do some searching and then post back 
any resources I find.

Wayne Fay wrote:

In your mojo, you'll need:
 * @requiresDependencyResolution
 * @requiresProject

And then:
/**
 * iMaven Internal/i: Project to interact with.
 *
 * @parameter expression=${project}
 * @required
 * @readonly
 */
private MavenProject project;

Then you can navigate around in the MavenProject object to find the
dependencies and their versions etc. I assume this is on the web
somewhere but I'm not sure where, perhaps Wiki? Or Plugin Dev Center?

Wayne

On 11/14/07, Mark Russell [EMAIL PROTECTED] wrote:

I am writing an internal plugin for maven 2 for our company.  One of the things 
I need to do is to get access to the dependency
information that is configured in the pom.  Is there a way to do that?  I have 
done several web searches but can not come up
with the correct string to get me an answer.

Please point me to a web page that will help me.

Thanks in advance :-

--
Mark Russell
Instantiations, Inc.
724-368-3331 (land line)
http://www.instantiations.com




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





--
Mark Russell
Instantiations, Inc.
724-368-3331 (land line)
http://www.instantiations.com


smime.p7s
Description: S/MIME Cryptographic Signature


Exec-maven-plugin usage

2007-11-14 Thread Vishal Pahwa


Hi

I need to run a java program from maven. For that m gonna use
exec-maven-plugin.  But don't know how to use this. Is it possible that
I will create one new project with folder structure
src/main/java/com/sky/Main.java. N then use plugin like this 

  build 
plugins 
plugin 
groupIdorg.codehaus.mojo/groupId 
artifactIdexec-maven-plugin/artifactId 
executions execution
 ... goals 
goaljava/goal 
/goals 
/execution
 /executions 
configuration
 mainClasscom.sky.Main/mainClass
 arguments 
argumentargument1/argument 
... /arguments 
systemProperties
 systemProperty
 keymyproperty/key
 valuemyvalue/value 
/systemProperty 
... /configuration 
/plugin
 /plugins
 /build 

Now if il use mvn:java then this should run the java program. Am I
thinking right or wrong.

Regards
Vishal 



triggering profiles without using command line and without running the default profile?

2007-11-14 Thread Aaron Zeckoski
I need to be able to trigger a specific profile WITHOUT executing the
default profile AND without having to use the -P command line option.
Ideally I want to trigger it using some setting in a POM file but any
method where the user who is building the code can still type mvn
clean build is fine.

Can anyone help?
Thanks
-AZ


-- 
Aaron Zeckoski ([EMAIL PROTECTED])
Senior Research Engineer - CARET - Cambridge University
[http://bugs.sakaiproject.org/confluence/display/~aaronz/]
Sakai Fellow - [http://aaronz-sakai.blogspot.com/]

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



Re: maven jetty plugin

2007-11-14 Thread Hugo Palma

Just provide those parameters to the maven JVM and jetty will use them.
I usually just set the env variable MAVEN_OPTS with:

MAVEN_OPTS=-Xdebug 
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005


and then just run:

mvn jetty:run

John Coleman wrote:

Hi,

 


How do I run the jetty goal with jetty configured with a debug socket? I
need to pass -Xdebug and other properties to jetty.

 


TIA

John

 



Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail. 

Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited.  If you receive this transmission in error, please notify us immediately, and then delete this E-mail. 


Neither the sender nor Eurobase accepts any liability whatsoever for any 
defects of any kind either in or arising from this E-mail transmission. E-Mail 
transmission cannot be guaranteed to be secure or error-free, as messages can 
be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or 
incomplete. Eurobase does not accept any responsibility for viruses and it is 
your responsibility to scan any attachments.

Eurobase Systems Limited is the main trading company in the Eurobase 
International Group; registered in England and Wales as company number 
02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex 
CM2 0RE, UK.


  


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



maven jetty plugin

2007-11-14 Thread John Coleman
Hi,

 

How do I run the jetty goal with jetty configured with a debug socket? I
need to pass -Xdebug and other properties to jetty.

 

TIA

John

 


Eurobase International Limited and its subsidiaries (Eurobase) are unable to 
exercise control over the content of information in E-Mails. Any views and 
opinions expressed may be personal to the sender and are not necessarily those 
of Eurobase. Eurobase will not enter into any contractual obligations in 
respect of any part of its business in any E-mail. 

Privileged / confidential information may be contained in this message and /or 
any attachments. This E-mail is intended for the use of the addressee(s) only 
and may contain confidential information. If you are not the / an intended 
recipient, you are hereby notified that any use or dissemination of this 
communication is strictly prohibited.  If you receive this transmission in 
error, please notify us immediately, and then delete this E-mail. 

Neither the sender nor Eurobase accepts any liability whatsoever for any 
defects of any kind either in or arising from this E-mail transmission. E-Mail 
transmission cannot be guaranteed to be secure or error-free, as messages can 
be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or 
incomplete. Eurobase does not accept any responsibility for viruses and it is 
your responsibility to scan any attachments.

Eurobase Systems Limited is the main trading company in the Eurobase 
International Group; registered in England and Wales as company number 
02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex 
CM2 0RE, UK.



Maven 2 Site Generation Question

2007-11-14 Thread Morgovsky, Alexander (US - Glen Mills)
Hello.  I would like to add a plugin to clean my deployed site directory
before creating new sites.  Is there a phase I could bind this plugin to
for this purpose as a best practice? 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]


Re: triggering profiles without using command line and without running the default profile?

2007-11-14 Thread Roland Asmann
Check the profile-documentation and use the property-activation.


On Wednesday 14 November 2007 18:02, Aaron Zeckoski wrote:
 I need to be able to trigger a specific profile WITHOUT executing the
 default profile AND without having to use the -P command line option.
 Ideally I want to trigger it using some setting in a POM file but any
 method where the user who is building the code can still type mvn
 clean build is fine.

 Can anyone help?
 Thanks
 -AZ

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



MySQL-5.1 INSERT error with continuum-1.1-beta-4

2007-11-14 Thread Eigil Hysvær
Hello, I’m currently evaluating CI tools and the time has come to Continuum.
I decided to try the 1.1-beta4 because when the time comes to implement the
CI into our organization I’m sure 1.1 has gone final.

 

I have installed the standalone version of continuum-1.1-beta-4 on windows
2003 server using MySQL 5.1. Everything seems to work until I try to
register a new user. The database already contains the two users ‘admin’ and
‘guest’ from the installment. I receive the “Welcome to Maven Continuum”
email as well even if I’m not registered in the database. I belive I have
carefully set up things according to docs, but of course I may have made a
mistake.

 

The log says:

 

javax.jdo.JDODataStoreException: Insert request failed: INSERT INTO
`JDOUSER`
(`ACCOUNT_CREATION_DATE`,`ENCODED_PASSWORD`,`EMAIL`,`LAST_PASSWORD_CHANGE`,`
FULL_NAME`,`VALIDATED`,`PASSWORD_CHANGE_REQUIRED`,`COUNT_FAILED_LOGIN_ATTEMP
TS`,`LAST_LOGIN_DATE`,`PERMANENT`,`USER_PASSWORD`,`LOCKED`,`MODEL_ENCODING`,
`USERNAME`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)

 

(...)

 

java.sql.SQLException: Incorrect string value: '\xEF\xBF\xBD' for column
'FULL_NAME' at row 1

 

 

Does somebody know anything about this error? The entire log has been
attached to this mail.

 

 

Best Regards,

___

Rubberduck Media Lab

Eigil Hysvær

 

E-mail:[EMAIL PROTECTED]

Web:   www.rubberduckmedialab.com

 



Re: [M2] jaxws-maven-plugin vs. ant-task using wsgen

2007-11-14 Thread Dan Tran
what version of jaxws-plugin do you use?  Try the released version at java.net

also, you must use jaxws-api-2.1.1

-D

On Nov 14, 2007 7:44 AM, Wayne Fay [EMAIL PROTECTED] wrote:
 You should probably also post this request on the jaxws plugin
 users/dev list. Since there is a lower chance that someone here is
 using jaxws and will respond, but a very high chance that someone on
 that list is using jaxws.

 Wayne


 On 11/14/07, CodingPlayer [EMAIL PROTECTED] wrote:
 
  Hi There,
 
  I'm an absolute noob to webservices, who is currently trying to compile a
  webservice annotated class, with the actual jaxws-maven-plugin.
 
  i already lost 3 days, and still didn't find a way to get it running
  properly.
 
  to find the error i stepped back, and simply tried to get the wsgen example
  running:
  https://jax-ws-commons.dev.java.net/source/browse/*checkout*/jax-ws-commons/trunk/jaxws-maven-plugin/src/it/wsgen/pom.xml?content-type=text%2Fplainrev=110
 
  after removing the version (which points to a SNAPSHOT which can't be
  downloaded) i have the following pom.xml:
 
  ?xml version=1.0 encoding=UTF-8 ?
 
  project
   xmlns=http://maven.apache.org/POM/4.0.0;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
  http://maven.apache.org/maven-v4_0_0.xsd;
 
 
 modelVersion4.0.0/modelVersion
 groupIdorg.codehaus.mojo.jaxws.it/groupId
 artifactIdhelloworldws/artifactId
 version1.0-SNAPSHOT/version
 
 packagingwar/packaging
 namehelloworld/name
 
 
 dependencies
   dependency
 groupIdcom.sun.xml.ws/groupId
 artifactIdjaxws-rt/artifactId
 version2.1/version
   /dependency
 /dependencies
 
 !-- temporary only until java.net maven2 repo is ready--
 repositories
   repository
 idjava.net/id
 urlhttps://maven-repository.dev.java.net/nonav/repository//url
 layoutlegacy/layout
   /repository
 /repositories
 
 build
 
   finalName${artifactId}/finalName
 
   plugins
 
   plugin
groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-compiler-plugin/artifactId
  configuration
source1.5/source
target1.5/target
  /configuration
 
  executions
execution
  idcompile/id
  goals
goalcompile/goal
  /goals
  phaseinitialize/phase
/execution
  /executions
 
/plugin
 
 
 plugin
   groupIdorg.codehaus.mojo/groupId
 artifactIdjaxws-maven-plugin/artifactId
 executions
   execution
 goals
   goalwsgen/goal
 /goals
 phasegenerate-sources/phase
 configuration
   seiorg.codehaus.mojo.jaxws.it.HelloWorldImpl/sei
   genWsdltrue/genWsdl !-- for demo purpose only, the
  wepapp does not need those the generated wsdl files--
   keeptrue/keep
 /configuration
   /execution
 /executions
   /plugin
 
 
   plugin
 groupIdorg.mortbay.jetty/groupId
 artifactIdmaven-jetty-plugin/artifactId
 version6.0.1/version
 configuration
   scanIntervalSeconds10/scanIntervalSeconds
   contextPath//contextPath
   !--jettyEnvXml${basedir}/src/jetty-env.xml/jettyEnvXml--
   connectors
 connector
  implementation=org.mortbay.jetty.nio.SelectChannelConnector
   port9090/port
   maxIdleTime6/maxIdleTime
 /connector
   /connectors
 /configuration
   /plugin
 
 /plugins
 /build
  /project
 
 
  when running 'mvn install -X -e' from the command line i get the following
  error:
 
  [DEBUG] jaxws:wsgen args: [-keep, -d, C:\projects\jax-ws\target\classes,
  -cp, C:\projects\jax-ws\target\classes;D:\data
  Maven_repository\javax\xml\bind\jaxb-api\2.1\jaxb-api-2.1.jar;D:\data\Maven_repository\javax\xml\ws\jaxws-api\2.1\jaxws
  api-2.1.jar;D:\data\Maven_repository\javax\xml\soap\saaj-api\1.3\saaj-api-1.3.jar;D:\data\Maven_repository\com\sun\xml\
  essaging\saaj\saaj-impl\1.3\saaj-impl-1.3.jar;D:\data\Maven_repository\com\sun\xml\stream\buffer\streambuffer\0.4\strea
  buffer-0.4.jar;D:\data\Maven_repository\com\sun\xml\stream\sjsxp\1.0\sjsxp-1.0.jar;D:\data\Maven_repository\com\sun\xml
  bind\jaxb-impl\2.1.2\jaxb-impl-2.1.2.jar;D:\data\Maven_repository\com\sun\xml\ws\jaxws-rt\2.1\jaxws-rt-2.1.jar;D:\data\
  aven_repository\javax\xml\stream\stax-api\1.0\stax-api-1.0.jar;D:\data\Maven_repository\javax\activation\activation\1.1
  activation-1.1.jar;D:\data\Maven_repository\org\jvnet\staxex\stax-ex\1.0\stax-ex-1.0.jar,
  -wsdl, -r, C:\projects\jax-ws
  target\jaxws\wsgen\wsdl, org.codehaus.mojo.jaxws.it.HelloWorldImpl]
  [INFO]
  

Re: Maven site plugin not connecting the projects and children properly

2007-11-14 Thread Dennis Lundberg

http://maven.apache.org/plugins/maven-site-plugin/faq.html#Why%20doesn't%20the%20links%20between%20parent%20and%20child%20modules%20work%20when%20I%20run%20'mvn%20site'?

Kannan Ekanath wrote:

Hi,
Maven 2.0.4
I am trying to use the mvn site target for generating the site. Before
configuring pmd, cobertura etc, I want a basic report of my project. I have
a root project called the server which has two modules domain and
webapp. These modules are configured in the server's pom.xml and the
module level pom's have their parent configured. (The version being
0.1-SNAPSHOT for all modules and project)

When I run the mvn site, it first generates a site for the root server and
then generates site for the modules. However, When I open the index.html in
the server's target/site directory, I see that it has links to the modules
but when I click on them it points to maven.apache.org instead of the
relative path to the module's site directory. There was no error while
generating this site, and I can see the site folder inside each and every
module. (Only the links between the parent project's site/index.html to the
module level index.html is missing)

Can someone please let me know about what I can do about this?

PS: Please advice if there is a specific plugin mailing list for maven site
in case this is not the right forum




--
Dennis Lundberg

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



RE: MySQL-5.1 INSERT error with continuum-1.1-beta-4

2007-11-14 Thread Eigil Hysvær
Sorry, my mistake yes.

I suddenly realized this was some UTF-8 related problem because of the
'\xEF\xBF\xBD' string.

I always use the string
jdbc:mysql://localhost:3306/continuum?useUnicode=trueamp;characterEncoding=
UTF-8 for some reasons.

I just got rid of the ?useUnicode=trueamp;characterEncoding=UTF-8 thing,
and then it worked...

 

Thanks!

 

 

 

 

  _  

From: Eigil Hysvær [mailto:[EMAIL PROTECTED] 
Sent: 14. november 2007 19:09
To: [EMAIL PROTECTED]
Subject: MySQL-5.1 INSERT error with continuum-1.1-beta-4

 

Hello, I’m currently evaluating CI tools and the time has come to Continuum.
I decided to try the 1.1-beta4 because when the time comes to implement the
CI into our organization I’m sure 1.1 has gone final.

 

I have installed the standalone version of continuum-1.1-beta-4 on windows
2003 server using MySQL 5.1. Everything seems to work until I try to
register a new user. The database already contains the two users ‘admin’ and
‘guest’ from the installment. I receive the “Welcome to Maven Continuum”
email as well even if I’m not registered in the database. I belive I have
carefully set up things according to docs, but of course I may have made a
mistake.

 

The log says:

 

javax.jdo.JDODataStoreException: Insert request failed: INSERT INTO
`JDOUSER`
(`ACCOUNT_CREATION_DATE`,`ENCODED_PASSWORD`,`EMAIL`,`LAST_PASSWORD_CHANGE`,`
FULL_NAME`,`VALIDATED`,`PASSWORD_CHANGE_REQUIRED`,`COUNT_FAILED_LOGIN_ATTEMP
TS`,`LAST_LOGIN_DATE`,`PERMANENT`,`USER_PASSWORD`,`LOCKED`,`MODEL_ENCODING`,
`USERNAME`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)

 

(...)

 

java.sql.SQLException: Incorrect string value: '\xEF\xBF\xBD' for column
'FULL_NAME' at row 1

 

 

Does somebody know anything about this error? The entire log has been
attached to this mail.

 

 

Best Regards,

___

Rubberduck Media Lab

Eigil Hysvær

 

E-mail:[EMAIL PROTECTED]

Web:   www.rubberduckmedialab.com

 



Maven/Hibernate error / anyone has find similar?

2007-11-14 Thread Marco Mistroni
hi all,
 i am trying to port an app from ant to maven , but it looks like i am
having troubles iwth dependencies.
has anyone ever found the error below?
i attach my dependencies at the end of message, hope someone can sort me out



Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.39
sec  FAILURE!
testGetBSDRBondIdsReturnsBondIds(com.bnpparibas.risk.collateralrisk.dao.IssueDaoIntegrationTest)
 Time elapsed: 0.359 sec   ERROR!
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'sessionFactory' defined in class path
resource [applicationContext.xml]: Invocation of init method failed;
nested exception is java.lang.NoClassDefFoundError
Caused by: java.lang.NoClassDefFoundError
at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:107)
at 
org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)
at 
org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162)
at 
org.hibernate.tuple.entity.AbstractEntityTuplizer.init(AbstractEntityTuplizer.java:135)
at 
org.hibernate.tuple.entity.PojoEntityTuplizer.init(PojoEntityTuplizer.java:55)
at 
org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.init(EntityEntityModeToTuplizerMapping.java:56)
at 
org.hibernate.tuple.entity.EntityMetamodel.init(EntityMetamodel.java:269)
at 
org.hibernate.persister.entity.AbstractEntityPersister.init(AbstractEntityPersister.java:425)
at 
org.hibernate.persister.entity.SingleTableEntityPersister.init(SingleTableEntityPersister.java:109)
at 
org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
at 
org.hibernate.impl.SessionFactoryImpl.init(SessionFactoryImpl.java:226)
at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1291)
at 
org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:807)
at 
org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:740)
at 
org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:131)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)
at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
at 
org.springframework.context.support.ClassPathXmlApplicationContext.init(ClassPathXmlApplicationContext.java:92)
at 
org.springframework.context.support.ClassPathXmlApplicationContext.init(ClassPathXmlApplicationContext.java:77)
at 
org.springframework.test.AbstractSpringContextTests.loadContextLocations(AbstractSpringContextTests.java:121)
at 
org.springframework.test.AbstractDependencyInjectionSpringContextTests.loadContextLocations(AbstractDependencyInjectionSpringContextTests.java:210)
at 
org.springframework.test.AbstractSpringContextTests.getContext(AbstractSpringContextTests.java:101)
at 
org.springframework.test.AbstractDependencyInjectionSpringContextTests.setUp(AbstractDependencyInjectionSpringContextTests.java:178)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)

M2 - pluginManagement - best practices?

2007-11-14 Thread Erez Nahir

Hi,

We are having some build stability issues from time to time when 
developers remove local repositories. From time to time, maven fails to 
download plugin...
Another difficulty we have is control on plugin versions, some plugins 
listed in some files and when one would like to change plugin version, 
he/she need to go through bunch of files, find and replace all versions 
of same plugin (antrun-plugin for example).


Currently we do not have any pluginManagement section and we also do not 
list some plugins (maven-site-plugin for example) in our pom.


We have big project with 10s of components/pom.xml files and I was 
thinking to add pluginManagement as well as adding all default plugins 
with current version.


Does any document list all default plugins and a recommended list of 
plugin management?

Can someone share his/her list if exist?

Thanks,
Erez.

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



Re: Maven/Hibernate error / anyone has find similar?

2007-11-14 Thread Wayne Fay
Take a look at your applicationContext.xml file, apparently you have
an issue with how you've defined your sessionFactory bean (??).

org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'sessionFactory' defined in class path
resource [applicationContext.xml]: Invocation of init method failed;
nested exception is java.lang.NoClassDefFoundError
Caused by: java.lang.NoClassDefFoundError
   at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:107)

Wayne

On 11/14/07, Marco Mistroni [EMAIL PROTECTED] wrote:
 hi all,
  i am trying to port an app from ant to maven , but it looks like i am
 having troubles iwth dependencies.
 has anyone ever found the error below?
 i attach my dependencies at the end of message, hope someone can sort me 
 out



 Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.39
 sec  FAILURE!
 testGetBSDRBondIdsReturnsBondIds(com.bnpparibas.risk.collateralrisk.dao.IssueDaoIntegrationTest)
  Time elapsed: 0.359 sec   ERROR!
 org.springframework.beans.factory.BeanCreationException: Error
 creating bean with name 'sessionFactory' defined in class path
 resource [applicationContext.xml]: Invocation of init method failed;
 nested exception is java.lang.NoClassDefFoundError
 Caused by: java.lang.NoClassDefFoundError
at 
 org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:107)
at 
 org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)

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



Continuum 1.1-beta-3 crashing while adding a new project group

2007-11-14 Thread Anshula

Hi,

I have been using Continuum 1.1-beta-3 since more than a month now and it
has been running smoothly. But today I attempted to add some more project
groups to it, and it crashed giving me a primary key constraint violation.
Attached is the stacktrace.

I did migrate my data from 1.1-beta3 from beta 2 before starting to use
beta-3. Could that have caused the problem ? This is the 1st problem I have
faced since the migration. All the other data migrated smoothly, and I have
been able to add/edit schedules,projects, build definitions since then. 

Help will be appreciated.
Regards,
Anshula

http://www.nabble.com/file/p13756617/Stacktrace.txt Stacktrace.txt 

-- 
View this message in context: 
http://www.nabble.com/Continuum-1.1-beta-3-crashing-while-adding-a-new-project-group-tf4808053.html#a13756617
Sent from the Continuum - Users mailing list archive at Nabble.com.



Re: Scheduled Maven2 Builds on 1.1 Beta 4

2007-11-14 Thread Johnathan Gifford
I think I've found the problem.  When the build definition has the 'Build Fresh 
(Run always a clean checkout instead of an SCM update)' checked, the scm 
doesn't tell properly tell the build that changes have occurred, so it doesn't 
continue with the scheduled build.  I think this is because a complete check 
out of the project was performed rather than an update.  Not quite the behavior 
I was expecting.

Hope this helps,

Johnathan

 On Tue, Nov 13, 2007 at  1:13 PM, in message
[EMAIL PROTECTED], Johnathan Gifford
[EMAIL PROTECTED] wrote: 
 I see this in the logs at every time interval I expect:
 
 INFO   | jvm 1| 2007/11/13 13:05:00 | 2007-11-13 13:05:00,022 
 [defaultScheduler_Worker-9] INFO  
 org.apache.maven.continuum.build.settings.SchedulesActivator:default  - 
  
 Executing build job (EVERY_5)...
 INFO   | jvm 1| 2007/11/13 13:05:00 | 2007-11-13 13:05:00,022 
 [defaultScheduler_Worker-14] INFO  
 org.apache.maven.continuum.build.settings.SchedulesActivator:default  - 
  
 Executing build job (HOURLY)...
 INFO   | jvm 1| 2007/11/13 13:05:00 | 2007-11-13 13:05:00,054 
 [defaultScheduler_Worker-9] INFO  
 org.apache.maven.continuum.Continuum:default 
  - Enqueuing '' with build definition 'default ant buildDefinition' - 
 id=21).
 INFO   | jvm 1| 2007/11/13 13:05:00 | 2007-11-13 13:05:00,054 
 [pool-1-thread-1] INFO  
 org.apache.maven.continuum.buildcontroller.BuildController:default  - 
 Initializing build
 INFO   | jvm 1| 2007/11/13 13:05:00 | 2007-11-13 13:05:00,069 
 [pool-1-thread-1] INFO  
 org.apache.maven.continuum.buildcontroller.BuildController:default  - 
 Starting 
 build of 
 INFO   | jvm 1| 2007/11/13 13:05:00 | 2007-11-13 13:05:00,069 
 [defaultScheduler_Worker-14] INFO  
 org.apache.maven.continuum.Continuum:default  - Enqueuing '' with build 
 definition 'default ant buildDefinition' - id=21).
 INFO   | jvm 1| 2007/11/13 13:05:00 | 2007-11-13 13:05:00,132 
 [defaultScheduler_Worker-9] INFO  
 org.apache.maven.continuum.Continuum:default 
  - Enqueuing 'Y' with build definition 'bld2 maven2 buildDefinition' - 
 id=6).
 INFO   | jvm 1| 2007/11/13 13:05:00 | 2007-11-13 13:05:00,132 
 [pool-1-thread-1] INFO  
 org.apache.maven.continuum.buildcontroller.BuildController:default  - Purging 
 exiting working copy
 INFO   | jvm 1| 2007/11/13 13:05:00 | 2007-11-13 13:05:00,132 
 [pool-1-thread-1] INFO  
 org.apache.maven.continuum.buildcontroller.BuildController:default  - 
 Performing action clean-working-directory
 INFO   | jvm 1| 2007/11/13 13:05:00 | 2007-11-13 13:05:00,163 
 [defaultScheduler_Worker-14] INFO  
 org.apache.maven.continuum.Continuum:default  - Enqueuing 'Y' with build 
 definition 'bld2 maven2 buildDefinition' - id=6).
 INFO   | jvm 1| 2007/11/13 13:05:00 | 2007-11-13 13:05:00,194 
 [defaultScheduler_Worker-9] INFO  
 org.apache.maven.continuum.Continuum:default 
  - Enqueuing 'Y' with build definition 'bld2 maven2 buildDefinition' - 
 id=6).
 INFO   | jvm 1| 2007/11/13 13:05:00 | 2007-11-13 13:05:00,226 
 [defaultScheduler_Worker-14] INFO  
 org.apache.maven.continuum.Continuum:default  - Enqueuing 'Y' with build 
 definition 'bld2 maven2 buildDefinition' - id=6).
 
 I have two  and two Y projects, so I'm not sure why we're seeing 
 four Y projects in the logs for 'enqueuing'.  
 
 Yes the source repo was updated a number of times.  I've had to manually 
 (force) the maven build to begin each time.
 
 Hope this helps,
 
 Johnathan
 
 On Tue, Nov 13, 2007 at 12:44 PM, in message
 [EMAIL PROTECTED], Francis De
 Brabandere [EMAIL PROTECTED] wrote: 
 anything in the logs? was your source repo updated for that maven project?
 
 On Nov 13, 2007 5:54 PM, Johnathan Gifford [EMAIL PROTECTED] wrote:

 Not sure what I'm forgetting to set, but my scheduled Maven2 build 
 definitions are not getting picked up and put into the queue for Continuum 
 1.1 Beta 4.  My Ant build definitions that uses the same schedule setting is 
 
 getting picked up and ran.

 Does anyone have any ideas or is this just a bug with the beta version?

 Thanks,

 Johnathan


 
 



Re: Mvn2

2007-11-14 Thread olivier lamy
Ok you can do it in order to test some new features in a plugin.
But IMHO, you must lock the version in the others plugins.
Because your build can not reproductable then you can have some issues in
some plugins due to the current developement.
Personnality, I have this repo only in a dedicated profile in my settings to
not use it by default.
--
Olivier

2007/11/14, Rémy Sanlaville [EMAIL PROTECTED]:

 Hi Olivier,

 I wonder why ?

 Rémy



Re: Continuum 1.1-beta-3 crashing while adding a new project group

2007-11-14 Thread Anshula

Hi Oliver,

Thanks for the reply.
No I have not made any change to the SEQUENCE_TABLE. Should that cause this
error ?
Isnt there any other way to correct this error now? Coz I have already
imported data from beta2 to beta3 long time back..And made quite a few
updates after that...

Regards,
Anshula


olivier lamy wrote:
 
 Hi,
 Have a look at
 http://maven.apache.org/continuum/documentation/1_1/installation/upgrade.htmlsection
 Importing Data to the new version.
 Have you made the update in SEQUENCE_TABLE ?
 
 --
 Olivier
 
 2007/11/14, Anshula [EMAIL PROTECTED]:


 Hi,

 I have been using Continuum 1.1-beta-3 since more than a month now and it
 has been running smoothly. But today I attempted to add some more project
 groups to it, and it crashed giving me a primary key constraint
 violation.
 Attached is the stacktrace.

 I did migrate my data from 1.1-beta3 from beta 2 before starting to use
 beta-3. Could that have caused the problem ? This is the 1st problem I
 have
 faced since the migration. All the other data migrated smoothly, and I
 have
 been able to add/edit schedules,projects, build definitions since then.

 Help will be appreciated.
 Regards,
 Anshula

 http://www.nabble.com/file/p13756617/Stacktrace.txt Stacktrace.txt

 --
 View this message in context:
 http://www.nabble.com/Continuum-1.1-beta-3-crashing-while-adding-a-new-project-group-tf4808053.html#a13756617
 Sent from the Continuum - Users mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/Continuum-1.1-beta-3-crashing-while-adding-a-new-project-group-tf4808053.html#a13757364
Sent from the Continuum - Users mailing list archive at Nabble.com.



Re: Continuum 1.1-beta-3 crashing while adding a new project group

2007-11-14 Thread olivier lamy
Just made the update on projectGroup table value in SEQUENCE_TABLE
Something like :
update SEQUENCE_TABLE set NEXT_VAL = (select max(id) + 10 from projectGroup)

where SEQUENCE_NAME ='org.apache.maven.continuum.model.project.ProjectGroup'

--
Olivier

2007/11/14, Anshula [EMAIL PROTECTED]:


 Hi Oliver,

 Thanks for the reply.
 No I have not made any change to the SEQUENCE_TABLE. Should that cause
 this
 error ?
 Isnt there any other way to correct this error now? Coz I have already
 imported data from beta2 to beta3 long time back..And made quite a few
 updates after that...

 Regards,
 Anshula


 olivier lamy wrote:
 
  Hi,
  Have a look at
 
 http://maven.apache.org/continuum/documentation/1_1/installation/upgrade.htmlsection
  Importing Data to the new version.
  Have you made the update in SEQUENCE_TABLE ?
 
  --
  Olivier
 
  2007/11/14, Anshula [EMAIL PROTECTED]:
 
 
  Hi,
 
  I have been using Continuum 1.1-beta-3 since more than a month now and
 it
  has been running smoothly. But today I attempted to add some more
 project
  groups to it, and it crashed giving me a primary key constraint
  violation.
  Attached is the stacktrace.
 
  I did migrate my data from 1.1-beta3 from beta 2 before starting to use
  beta-3. Could that have caused the problem ? This is the 1st problem I
  have
  faced since the migration. All the other data migrated smoothly, and I
  have
  been able to add/edit schedules,projects, build definitions since then.
 
  Help will be appreciated.
  Regards,
  Anshula
 
  http://www.nabble.com/file/p13756617/Stacktrace.txt Stacktrace.txt
 
  --
  View this message in context:
 
 http://www.nabble.com/Continuum-1.1-beta-3-crashing-while-adding-a-new-project-group-tf4808053.html#a13756617
  Sent from the Continuum - Users mailing list archive at Nabble.com.
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Continuum-1.1-beta-3-crashing-while-adding-a-new-project-group-tf4808053.html#a13757364
 Sent from the Continuum - Users mailing list archive at Nabble.com.




Re: triggering profiles without using command line and without running the default profile?

2007-11-14 Thread Aaron Zeckoski
Yes... I did that. This is not a newbie question (though I wish it
were). The default profile is still running unless I do something like
mvn install -Pkernel

Here are the poms:
Parent: https://source.sakaiproject.org/contrib/caret/kernel/pom.xml
(this sets a property)
Project: https://source.sakaiproject.org/contrib/caret/kernel/alias/pom.xml
(this one has the default profile getting activated even though
another profile is activated via a property)

So, the question is, how do I get the same effect as running mvn
install -Pkernel (which is to not run the default profile anymore and
only run the profile that I wanted)?

-AZ


On Nov 14, 2007 5:40 PM, Roland Asmann [EMAIL PROTECTED] wrote:
 Check the profile-documentation and use the property-activation.


 On Wednesday 14 November 2007 18:02, Aaron Zeckoski wrote:
  I need to be able to trigger a specific profile WITHOUT executing the
  default profile AND without having to use the -P command line option.
  Ideally I want to trigger it using some setting in a POM file but any
  method where the user who is building the code can still type mvn
  clean build is fine.
 
  Can anyone help?
  Thanks
  -AZ

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





-- 
Aaron Zeckoski ([EMAIL PROTECTED])
Senior Research Engineer - CARET - Cambridge University
[http://bugs.sakaiproject.org/confluence/display/~aaronz/]
Sakai Fellow - [http://aaronz-sakai.blogspot.com/]


Re: Continuum 1.1-beta-3 crashing while adding a new project group

2007-11-14 Thread olivier lamy
Hi,
Have a look at
http://maven.apache.org/continuum/documentation/1_1/installation/upgrade.htmlsection
Importing Data to the new version.
Have you made the update in SEQUENCE_TABLE ?

--
Olivier

2007/11/14, Anshula [EMAIL PROTECTED]:


 Hi,

 I have been using Continuum 1.1-beta-3 since more than a month now and it
 has been running smoothly. But today I attempted to add some more project
 groups to it, and it crashed giving me a primary key constraint violation.
 Attached is the stacktrace.

 I did migrate my data from 1.1-beta3 from beta 2 before starting to use
 beta-3. Could that have caused the problem ? This is the 1st problem I
 have
 faced since the migration. All the other data migrated smoothly, and I
 have
 been able to add/edit schedules,projects, build definitions since then.

 Help will be appreciated.
 Regards,
 Anshula

 http://www.nabble.com/file/p13756617/Stacktrace.txt Stacktrace.txt

 --
 View this message in context:
 http://www.nabble.com/Continuum-1.1-beta-3-crashing-while-adding-a-new-project-group-tf4808053.html#a13756617
 Sent from the Continuum - Users mailing list archive at Nabble.com.




how to use profiles exclusively? (HELP!)

2007-11-14 Thread dev dev
I have defined 2 project profiles (below) and the goal is to be able
to run in exclusively in devel or release environment (and not both).
However, when i run mvn help:active-profiles, i got the below message.
It should be just release and NOT both (devel and release). What did
 you do wrong, is this a bug in Maven2?

Active Profiles for Project
'com.mycompany.myproject:myproject-web:pom:1.0.0-SNAPSHOT':

The following profiles are active:

 - devel (source: pom)
 - release (source: pom)


+++

project
...
profile
idrelease/id
properties
  environment.typerelease/environment.type
/properties
activation
 property
  nameenvironment.type/name
  valuerelease/value
 /property
/activation
/profile

profile
iddevel/id
activation
 property
  name!environment.type/name !--This profile
is activated when no ${environment.type} property is set. --
 /property
/activation
/profile


/project

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



How to control versioning across multiple POMs?

2007-11-14 Thread Aaron Zeckoski
I have a series of 3 POMs and I need to be able to control versioning
across them. They are arranged like so:

master POM (parent of) base POM (parent of) project POM

There is one master and one base POM but there are many many project
POMs, roughly 50+ currently with new ones being added

The master POM has a version (as it seems all children must specify
the version of the parent correctly in the parent tag). The base POM
has no version as it inherits from the master. The problem here is
that we want to upgrade the overall version... except that every
project POM specifies the version of either the master or base POM (in
the parent tag). It means we have to somehow coordinate among 50+
projects (which are controlled by various people/groups) and tell them
to all change the version of the parent.

This is not ideal at all and I suspect we are just doing something
dumb or completely wrong. So, how can we control the overall version
for all the projects without having to change all of the POMs?

You can view the source here if you like:
master: https://source.sakaiproject.org/svn/master/trunk/pom.xml
base: https://source.sakaiproject.org/contrib/caret/kernel/pom.xml
sample project:
https://source.sakaiproject.org/contrib/caret/kernel/alias/pom.xml

-AZ


-- 
Aaron Zeckoski ([EMAIL PROTECTED])
Senior Research Engineer - CARET - Cambridge University
[http://bugs.sakaiproject.org/confluence/display/~aaronz/]
Sakai Fellow - [http://aaronz-sakai.blogspot.com/]

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



2 way parent-module POM dependency required?

2007-11-14 Thread Aaron Zeckoski
Is the 2-way parent/module dependency actually the right way to link
children and parent POMs? This is what we currently have:

The parent includes definition of a module (or group of modules) like so:
...
groupIdorg.sakaiproject/groupId
artifactIdbase/artifactId
packagingpom/packaging
...
modules
  modulealias/module
/modules
...

Then the child defines a parent like so:
...
parent
  artifactIdbase/artifactId
  groupIdorg.sakaiproject/groupId
  versionM2/version
  relativePath../pom.xml/relativePath
/parent
...

As a result, we end up with this 2-way linkage bewteen these POMs
which ends up not being very flexible since all of the POMs have to
know about each other.

This seems to be what the docs indicate but I might misunderstand. Are
we doing something dumb here?

Sample parent here: https://source.sakaiproject.org/contrib/caret/kernel/pom.xml
Sample child here:
https://source.sakaiproject.org/contrib/caret/kernel/alias/pom.xml

Thanks for the help!
-AZ


-- 
Aaron Zeckoski ([EMAIL PROTECTED])
Senior Research Engineer - CARET - Cambridge University
[http://bugs.sakaiproject.org/confluence/display/~aaronz/]
Sakai Fellow - [http://aaronz-sakai.blogspot.com/]

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



JUnit and Maven - compiling helper classes

2007-11-14 Thread jsweeney67

I'm a Maven newbie trying to incorporate JUnit tests into the build.  Some of
our JUnit test classes make use of shared code in helper classes that live
in the test packages.  When I run these tests from Eclipse, the helper
classes are found and compiled.  However, when a cmd-line Maven build tries
to run these tests, it does not find these classes and the tests get compile
errors.

What is the prefered way to tell the .pom(s) to compile these helper classes
as part of JUnit testing?
-- 
View this message in context: 
http://www.nabble.com/JUnit-and-Maven---compiling-helper-classes-tf4808900s177.html#a13759355
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: How to control versioning across multiple POMs?

2007-11-14 Thread Ronn . Chinowutthichai
Hi Aaron,

Do you use release plugin? 

The release plugin should increment the version of the parent pom and the 
pom itself for you.

If you have dependencies to sibling pom in your dependencies declaration, 
I'd use version${project.version}/version to get around the problem 
that the release tag won't increment the version back to snapshot.

Cheers,
rOnn c.





Aaron Zeckoski [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED]
11/15/2007 09:44 AM
Please respond to
Maven Users List users@maven.apache.org


To
Maven Users List users@maven.apache.org
cc

Subject
How to control versioning across multiple POMs?






I have a series of 3 POMs and I need to be able to control versioning
across them. They are arranged like so:

master POM (parent of) base POM (parent of) project POM

There is one master and one base POM but there are many many project
POMs, roughly 50+ currently with new ones being added

The master POM has a version (as it seems all children must specify
the version of the parent correctly in the parent tag). The base POM
has no version as it inherits from the master. The problem here is
that we want to upgrade the overall version... except that every
project POM specifies the version of either the master or base POM (in
the parent tag). It means we have to somehow coordinate among 50+
projects (which are controlled by various people/groups) and tell them
to all change the version of the parent.

This is not ideal at all and I suspect we are just doing something
dumb or completely wrong. So, how can we control the overall version
for all the projects without having to change all of the POMs?

You can view the source here if you like:
master: https://source.sakaiproject.org/svn/master/trunk/pom.xml
base: https://source.sakaiproject.org/contrib/caret/kernel/pom.xml
sample project:
https://source.sakaiproject.org/contrib/caret/kernel/alias/pom.xml

-AZ


-- 
Aaron Zeckoski ([EMAIL PROTECTED])
Senior Research Engineer - CARET - Cambridge University
[http://bugs.sakaiproject.org/confluence/display/~aaronz/]
Sakai Fellow - [http://aaronz-sakai.blogspot.com/]

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



##
DISCLAIMER:
This email and any attachment may contain confidential information.
If you are not the intended recipient you are not authorized to copy
or disclose all or any part of it without the prior written consent
of Toyota.

Opinions expressed in this email and any attachments are those of the
sender and not necessarily the opinions of Toyota.
Please scan this email and any attachment(s) for viruses.
Toyota does not accept any responsibility for problems caused by
viruses, whether it is Toyota's fault or not.
##


Re: JUnit and Maven - compiling helper classes

2007-11-14 Thread Ronn . Chinowutthichai
You need to create a test-jar artifact out of your helper classes

Put this in the pom of your helper classes

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
executions
execution
goals
goaltest-jar/goal
/goals
/execution
/executions
/plugin

This will create a test-jar.

Then in the project that you depend on these helper classes in test 
packages, declare a dependency to it with a type tag.

i.e.,
dependency
groupIdyour group id/groupId
artifactIdhelper project/artifactId
versionversion/version
typetest-jar/type
scopetest/scope
/dependency

Cheers,
rOnn c.




jsweeney67 [EMAIL PROTECTED] 
11/15/2007 11:16 AM
Please respond to
Maven Users List users@maven.apache.org


To
users@maven.apache.org
cc

Subject
JUnit and Maven - compiling helper classes







I'm a Maven newbie trying to incorporate JUnit tests into the build.  Some 
of
our JUnit test classes make use of shared code in helper classes that live
in the test packages.  When I run these tests from Eclipse, the helper
classes are found and compiled.  However, when a cmd-line Maven build 
tries
to run these tests, it does not find these classes and the tests get 
compile
errors.

What is the prefered way to tell the .pom(s) to compile these helper 
classes
as part of JUnit testing?
-- 
View this message in context: 
http://www.nabble.com/JUnit-and-Maven---compiling-helper-classes-tf4808900s177.html#a13759355

Sent from the Maven - Users mailing list archive at Nabble.com.


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



##
DISCLAIMER:
This email and any attachment may contain confidential information.
If you are not the intended recipient you are not authorized to copy
or disclose all or any part of it without the prior written consent
of Toyota.

Opinions expressed in this email and any attachments are those of the
sender and not necessarily the opinions of Toyota.
Please scan this email and any attachment(s) for viruses.
Toyota does not accept any responsibility for problems caused by
viruses, whether it is Toyota's fault or not.
##


[ANNOUNCE] Archiva 1.0-beta-4 Released

2007-11-14 Thread Maria Odea Ching
Hi Everyone,

The Maven Archiva team is pleased to announce the release of Archiva 1.0Beta 4.

Archiva is a build artifact repository manager for use with build tools such
as Maven, Continuum and Ant.

It has features like repository search and browse, securing repositories,
identifying unknown artifacts and reporting of repository problems.

Aside from these, it can also act as a nearby (proxy) cache of popular
global repositories.



The latest release is now available here:

http://maven.apache.org/archiva/download.html


Below are the jira issues that were resolved for Archiva 1.0 Beta 4:

Release Notes - Archiva - Version 1.0-beta-4


** Bug
* [MRM-440] - If webdav URL lacks a trailing /, navigating to all links
in the listing return 404.
* [MRM-516] - Search results return results for all repositories,
regardless of security.
* [MRM-540] - [regression] reports now show 0 results as a paged result
that is empty
* [MRM-544] - Cleanup index of artifacts that are no longer in the
repository
* [MRM-547] - proxy connectors: cache failures options are confusing
* [MRM-548] - proxy connectors: default policies for added repositories
may not be optimal
* [MRM-549] - proxy connectors: no always option for releases and
snapshots policies
* [MRM-556] - not possible to configure purge by retention count
* [MRM-560] - Dependency Tree causes an Exception
* [MRM-569] - Browse shows results for all repositories, regardless of
security.
* [MRM-574] - archiva should not delete the newest snapshot, regardless
of age
* [MRM-576] - behaviour of delete released snapshots is incorrect
* [MRM-577] - Release policy of disabled fails all metadata requests.
* [MRM-582] - Remote Repositories with empty username and password
fields shouldn't be created in configuration.

** Improvement
* [MRM-185] - revise logging granularity
* [MRM-459] - prune the distributed dependencies

The team will be preparing for the 1.0 release next.

Thanks,
Deng


Is http://mirrors.ibiblio.org/pub/mirrors/maven2 down?

2007-11-14 Thread Kohsuke Kawaguchi


The central repository http://repo1.maven.org/maven2/ appears to be 
up, but the ibiblio mirror seems to be down since this morning.


Is the maven team aware of the issue? Is this going to be fixed some 
time soon?


--
Kohsuke Kawaguchi
Sun Microsystems   [EMAIL PROTECTED]


smime.p7s
Description: S/MIME Cryptographic Signature


Re: JUnit and Maven - compiling helper classes

2007-11-14 Thread jsweeney67

So, if I understand correctly, the helper classes need to be in a jar.  These
classes now live in the same packages as the JUnit tests so should the jar
exclude the actual test classes?

I then presume that the scope tag tells Maven to only look for the new jar
if tests are being run, correct?

Thanks!  I appreciate the response.


Ronn.Chinowutthichai wrote:
 
 You need to create a test-jar artifact out of your helper classes
 
 Put this in the pom of your helper classes
 
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-jar-plugin/artifactId
 executions
 execution
 goals
 goaltest-jar/goal
 /goals
 /execution
 /executions
 /plugin
 
 This will create a test-jar.
 
 Then in the project that you depend on these helper classes in test 
 packages, declare a dependency to it with a type tag.
 
 i.e.,
 dependency
 groupIdyour group id/groupId
 artifactIdhelper project/artifactId
 versionversion/version
 typetest-jar/type
 scopetest/scope
 /dependency
 
 Cheers,
 rOnn c.
 

-- 
View this message in context: 
http://www.nabble.com/JUnit-and-Maven---compiling-helper-classes-tf4808900s177.html#a13760218
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: [ANNOUNCE] Archiva 1.0-beta-4 Released

2007-11-14 Thread Brian Flaherty
Great job!

Brian

On Nov 14, 2007 7:56 PM, Maria Odea Ching [EMAIL PROTECTED] wrote:
 Hi Everyone,

 The Maven Archiva team is pleased to announce the release of Archiva 1.0Beta 
 4.

 Archiva is a build artifact repository manager for use with build tools such
 as Maven, Continuum and Ant.

 It has features like repository search and browse, securing repositories,
 identifying unknown artifacts and reporting of repository problems.

 Aside from these, it can also act as a nearby (proxy) cache of popular
 global repositories.



 The latest release is now available here:

 http://maven.apache.org/archiva/download.html


 Below are the jira issues that were resolved for Archiva 1.0 Beta 4:

 Release Notes - Archiva - Version 1.0-beta-4


 ** Bug
 * [MRM-440] - If webdav URL lacks a trailing /, navigating to all links
 in the listing return 404.
 * [MRM-516] - Search results return results for all repositories,
 regardless of security.
 * [MRM-540] - [regression] reports now show 0 results as a paged result
 that is empty
 * [MRM-544] - Cleanup index of artifacts that are no longer in the
 repository
 * [MRM-547] - proxy connectors: cache failures options are confusing
 * [MRM-548] - proxy connectors: default policies for added repositories
 may not be optimal
 * [MRM-549] - proxy connectors: no always option for releases and
 snapshots policies
 * [MRM-556] - not possible to configure purge by retention count
 * [MRM-560] - Dependency Tree causes an Exception
 * [MRM-569] - Browse shows results for all repositories, regardless of
 security.
 * [MRM-574] - archiva should not delete the newest snapshot, regardless
 of age
 * [MRM-576] - behaviour of delete released snapshots is incorrect
 * [MRM-577] - Release policy of disabled fails all metadata requests.
 * [MRM-582] - Remote Repositories with empty username and password
 fields shouldn't be created in configuration.

 ** Improvement
 * [MRM-185] - revise logging granularity
 * [MRM-459] - prune the distributed dependencies

 The team will be preparing for the 1.0 release next.

 Thanks,
 Deng


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



Re: how to use profiles exclusively? (HELP!)

2007-11-14 Thread Wayne Fay
Try changing the dot . in environment.type to an underscore _.
That may do it. Not sure -- I didn't test it. Dots can sometimes cause
issues.

Wayne

On 11/14/07, dev dev [EMAIL PROTECTED] wrote:
 I have defined 2 project profiles (below) and the goal is to be able
 to run in exclusively in devel or release environment (and not both).
 However, when i run mvn help:active-profiles, i got the below message.
 It should be just release and NOT both (devel and release). What did
  you do wrong, is this a bug in Maven2?

 Active Profiles for Project
 'com.mycompany.myproject:myproject-web:pom:1.0.0-SNAPSHOT':

 The following profiles are active:

  - devel (source: pom)
  - release (source: pom)


 +++

 project
 ...
profile
idrelease/id
properties
  environment.typerelease/environment.type
/properties
activation
 property
  nameenvironment.type/name
  valuerelease/value
 /property
/activation
/profile

profile
iddevel/id
activation
 property
  name!environment.type/name !--This profile
 is activated when no ${environment.type} property is set. --
 /property
/activation
/profile

 
 /project

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



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



Re: M2 - pluginManagement - best practices?

2007-11-14 Thread Kalle Korhonen
Parent poms with versions set in their pluginManagement section makes
absolute sense. Of course no list is complete, and it needs to be
maintained, but in most cases you are better off using an old version of a
plugin than using an unknown latest version. Here's what I have in one
parent pom:

pluginManagement
plugins
plugin
artifactIdmaven-antrun-plugin/artifactId
version1.1/version
dependencies
dependency
groupIdant/groupId
artifactIdant-nodeps/artifactId
version1.6.5/version
/dependency
dependency
groupIdant/groupId
artifactIdant-optional/artifactId
version1.5.3-1/version
/dependency
dependency
groupIdant-contrib/groupId
artifactIdant-contrib/artifactId
version1.0b2/version
/dependency
/dependencies
/plugin
plugin
artifactIdmaven-assembly-plugin/artifactId
version2.2-beta-1/version
/plugin
plugin
artifactIdmaven-clean-plugin/artifactId
version2.1/version
/plugin
plugin
artifactIdmaven-checkstyle-plugin/artifactId
version2.1/version
/plugin
plugin
artifactIdmaven-compiler-plugin/artifactId
version2.0.1/version
/plugin
plugin
artifactIdmaven-eclipse-plugin/artifactId
version2.4/version
/plugin
plugin
artifactIdmaven-deploy-plugin/artifactId
version2.3/version
/plugin
plugin
artifactIdmaven-install-plugin/artifactId
version2.1/version
/plugin
plugin
artifactIdmaven-jar-plugin/artifactId
version2.1/version
/plugin
plugin
artifactIdmaven-javadoc-plugin/artifactId
version2.0/version
/plugin
plugin
artifactIdmaven-release-plugin/artifactId
version2.0-beta-7/version
/plugin
plugin
artifactIdmaven-resources-plugin/artifactId
version2.2/version
/plugin
plugin
artifactIdmaven-site-plugin/artifactId
version2.0-beta-5/version
/plugin
plugin
artifactIdmaven-surefire-plugin/artifactId
version2.2/version
/plugin
plugin
artifactIdmaven-war-plugin/artifactId
version2.0.2/version
/plugin
/plugins
/pluginManagement

Kalle



On 11/14/07, Erez Nahir [EMAIL PROTECTED] wrote:

 Hi,

 We are having some build stability issues from time to time when
 developers remove local repositories. From time to time, maven fails to
 download plugin...
 Another difficulty we have is control on plugin versions, some plugins
 listed in some files and when one would like to change plugin version,
 he/she need to go through bunch of files, find and replace all versions
 of same plugin (antrun-plugin for example).

 Currently we do not have any pluginManagement section and we also do not
 list some plugins (maven-site-plugin for example) in our pom.

 We have big project with 10s of components/pom.xml files and I was
 thinking to add pluginManagement as well as adding all default plugins
 with current version.

 Does any document list all default plugins and a recommended list of
 plugin management?
 Can someone share his/her list if exist?

 Thanks,
 Erez.

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




Re: JUnit and Maven - compiling helper classes

2007-11-14 Thread Ronn . Chinowutthichai
Yes the helper classes (in src/test/java) needs to be packaged and 
installed to the repository so that another maven project can reference. 
By default, maven-jar-plugin doesn't jar up class in src/test/java. By 
default, all of the classes in src/test/java as well as src/test/resources 
will be included in the jar. I don't see why it would matter if your unit 
tests are jarred up as well.

The scope element tells that the dependencies are only for testing phase. 
The type element tells it to look for test jar of the helper artifact 
(rather than the helper jar itself).

When you are ready to run the project, go to your root pom and do a clean 
install (this will make sure that your test jar is deployed to your local 
repository)

Cheers,
rOnn c.







jsweeney67 [EMAIL PROTECTED] 
11/15/2007 12:55 PM
Please respond to
Maven Users List users@maven.apache.org


To
users@maven.apache.org
cc

Subject
Re: JUnit and Maven - compiling helper classes







So, if I understand correctly, the helper classes need to be in a jar. 
These
classes now live in the same packages as the JUnit tests so should the jar
exclude the actual test classes?

I then presume that the scope tag tells Maven to only look for the new 
jar
if tests are being run, correct?

Thanks!  I appreciate the response.


Ronn.Chinowutthichai wrote:
 
 You need to create a test-jar artifact out of your helper classes
 
 Put this in the pom of your helper classes
 
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-jar-plugin/artifactId
 executions
 execution
 goals
 goaltest-jar/goal
 /goals
 /execution
 /executions
 /plugin
 
 This will create a test-jar.
 
 Then in the project that you depend on these helper classes in test 
 packages, declare a dependency to it with a type tag.
 
 i.e.,
 dependency
 groupIdyour group id/groupId
 artifactIdhelper project/artifactId
 versionversion/version
 typetest-jar/type
 scopetest/scope
 /dependency
 
 Cheers,
 rOnn c.
 

-- 
View this message in context: 
http://www.nabble.com/JUnit-and-Maven---compiling-helper-classes-tf4808900s177.html#a13760218

Sent from the Maven - Users mailing list archive at Nabble.com.


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



##
DISCLAIMER:
This email and any attachment may contain confidential information.
If you are not the intended recipient you are not authorized to copy
or disclose all or any part of it without the prior written consent
of Toyota.

Opinions expressed in this email and any attachments are those of the
sender and not necessarily the opinions of Toyota.
Please scan this email and any attachment(s) for viruses.
Toyota does not accept any responsibility for problems caused by
viruses, whether it is Toyota's fault or not.
##


RE: MNGECLIPSE-438

2007-11-14 Thread Timothy Reilly
fyi, I just hit this issue as well. Thank you Mark for hitting this
before me ;-P
The research you provided save me hours and helped me understand to
close the project for now, 
and probably move the dependency to a different workspace until
resolved. 
 
I also voted for it getting resolved.
 
 
OT: I wonder if AOP might be a way to resolve the whole WTP issue?



Re: Maven site plugin not connecting the projects and children properly

2007-11-14 Thread Kannan Ekanath
Dennis,
I had gone through this FAQ already. I gave the url to be mysite and did a
mvn site:stage it generated a site under mysite folder with all the
links correctly in place. But my problem is mvn site:deploy is still
showing as maven.apache.org and I am not sure why mvn site:stage and mvn
site:deploy are giving different results.

I also noticed the goals page in the website and saw that there is something
like mvn site:stage-deploy which I guessed is what I should be using
(Possibly it first does a stage and then deploy). However using that is
throwing

[WARNING] Error loading report org.apache.maven.plugin.jxr.JxrReport -
AbstractMethodError: canGenerateReport()

Rennie,
As per your suggestion I had removed the url element from my pom.xml and
in my case it did not make a difference.

Please let me know if you want any console logs or any other information.

Thanks,
Kannan
On Nov 14, 2007 11:49 PM, Dennis Lundberg [EMAIL PROTECTED] wrote:


 http://maven.apache.org/plugins/maven-site-plugin/faq.html#Why%20doesn't%20the%20links%20between%20parent%20and%20child%20modules%20work%20when%20I%20run%20'mvn%20sitehttp://maven.apache.org/plugins/maven-site-plugin/faq.html#Why%20doesn%27t%20the%20links%20between%20parent%20and%20child%20modules%20work%20when%20I%20run%20%27mvn%20site
 '?

 Kannan Ekanath wrote:
  Hi,
  Maven 2.0.4
  I am trying to use the mvn site target for generating the site. Before
  configuring pmd, cobertura etc, I want a basic report of my project. I
 have
  a root project called the server which has two modules domain and
  webapp. These modules are configured in the server's pom.xml and the
  module level pom's have their parent configured. (The version being
  0.1-SNAPSHOT for all modules and project)
 
  When I run the mvn site, it first generates a site for the root server
 and
  then generates site for the modules. However, When I open the index.htmlin
  the server's target/site directory, I see that it has links to the
 modules
  but when I click on them it points to maven.apache.org instead of the
  relative path to the module's site directory. There was no error while
  generating this site, and I can see the site folder inside each and
 every
  module. (Only the links between the parent project's site/index.html to
 the
  module level index.html is missing)
 
  Can someone please let me know about what I can do about this?
 
  PS: Please advice if there is a specific plugin mailing list for maven
 site
  in case this is not the right forum
 


 --
 Dennis Lundberg

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




-- 
Regards,
Kannan Ekanath


Re: Maven site plugin not connecting the projects and children properly

2007-11-14 Thread Kannan Ekanath
I seem to have got it work with some tweakings (Not sure if that was how it
was supposed to be used). I set the property stagingDirectory to be some
folder and then issued a

mvn site:stage-deploy and it generated a site folder with parents and
children linked together.

I am planning to use this as part of a CI server build (a website that is
created like every time a continuous server does a build).

Thanks,
Kannann

On Nov 15, 2007 11:31 AM, Kannan Ekanath [EMAIL PROTECTED] wrote:

 Dennis,
 I had gone through this FAQ already. I gave the url to be mysite and did
 a mvn site:stage it generated a site under mysite folder with all the
 links correctly in place. But my problem is mvn site:deploy is still
 showing as maven.apache.org and I am not sure why mvn site:stage and mvn
 site:deploy are giving different results.

 I also noticed the goals page in the website and saw that there is
 something like mvn site:stage-deploy which I guessed is what I should be
 using (Possibly it first does a stage and then deploy). However using that
 is throwing

 [WARNING] Error loading report org.apache.maven.plugin.jxr.JxrReport -
 AbstractMethodError: canGenerateReport()

 Rennie,
 As per your suggestion I had removed the url element from my pom.xml and
 in my case it did not make a difference.

 Please let me know if you want any console logs or any other information.

 Thanks,
 Kannan

 On Nov 14, 2007 11:49 PM, Dennis Lundberg  [EMAIL PROTECTED] wrote:

 
  http://maven.apache.org/plugins/maven-site-plugin/faq.html#Why%20doesn't%20the%20links%20between%20parent%20and%20child%20modules%20work%20when%20I%20run%20'mvn%20sitehttp://maven.apache.org/plugins/maven-site-plugin/faq.html#Why%20doesn%27t%20the%20links%20between%20parent%20and%20child%20modules%20work%20when%20I%20run%20%27mvn%20site
  '?
 
  Kannan Ekanath wrote:
   Hi,
   Maven 2.0.4
   I am trying to use the mvn site target for generating the site.
  Before
   configuring pmd, cobertura etc, I want a basic report of my project. I
  have
   a root project called the server which has two modules domain and
   webapp. These modules are configured in the server's pom.xml and the
   module level pom's have their parent configured. (The version being
   0.1-SNAPSHOT for all modules and project)
  
   When I run the mvn site, it first generates a site for the root server
  and
   then generates site for the modules. However, When I open the
  index.html in
   the server's target/site directory, I see that it has links to the
  modules
   but when I click on them it points to maven.apache.org instead of the
   relative path to the module's site directory. There was no error while
   generating this site, and I can see the site folder inside each and
  every
   module. (Only the links between the parent project's site/index.html
  to the
   module level index.html is missing)
  
   Can someone please let me know about what I can do about this?
  
   PS: Please advice if there is a specific plugin mailing list for maven
  site
   in case this is not the right forum
  
 
 
  --
  Dennis Lundberg
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Regards,
 Kannan Ekanath




-- 
Regards,
Kannan Ekanath


Re: Disinheriting dependecies

2007-11-14 Thread Steinar Bang
 Wayne Fay [EMAIL PROTECTED]:

 Not that I'm aware of. You may want to use dependencyManagement
 instead of straight dependencies -- then you can control what deps are
 needed in your children.

I found a fairly clear description of dependencyManagement here:
 http://www.bhaskarvk.info/content/maven/dependency_management.html

Thanx for the heads up!


- Steinar


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



use a particular timestamp of a SNAPSHOT

2007-11-14 Thread nicolas de loof
Hello,

Can I configure a dependency to use a particular timestamp version of a
SNAPSHOT ?

For example, the 20070606.164150-5 of maven-surefire-plugin 2.3.1-SNAPSHOT

Using :

plugin
  artifactIdmaven-surefire-plugin/artifactId
  version2.3.1-20070606.164150-5/version
/plugin


seems to work, but I'm not sure about the effect it has on my dependencies

Nico.