RE: [m2] How to get source JARs when sharing eclipse config -- best practices?

2006-09-07 Thread Jörg Schaible
"Amshoff Christoph, Köln" wrote on Thursday, September 07, 2006 6:30 PM:

> Hi,
> 
> we are using the eclipse plugin to create the Eclipse
> configuration, and
> specify the -DdownloadSources=true switch to download the
> source JARs and
> include them into the .classpath file. This is pretty cool, but
> 
> As usual, the .project and .classpath files are checked into
> CVS to share
> them with the team. Now what about the source JARs, how do
> the rest of the
> team get them from our internal maven-repo into their private one? The
> classes JARs are downloaded when calling mvn compile, for
> example, as they
> are defined in the POM's dependency section. But the source
> JARs aren't (and
> shouldn't), so how to download them? Does everybody have to call mvn
> eclipse:eclipse -DdownloadSources=true for that? Is there a
> better / simpler
> way?
> 
> Any suggestions are welcome...

- Don't check in the Eclipse files, anyone can generate them on the fly
- Use a global master POM, where you have configured the Eclipse plugin to 
download the source:






org.apache.maven.plugins

maven-eclipse-plugin


true
1.0





- Jörg

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



Invalid parent-POM referenced by relative path problem

2006-09-07 Thread Seth

I was trying to make a site with Maven2 through Continuum from my java
source.
If I define the jar in the parent POM everything is
going well but only one whole project jar being created.
This project have a lot of packages (modules) so I decided to create all of
the package jars as I can do in the ant build format.
I've tried only with one of the component at the moment because it's simple.
The hierarchy of the project looks like this:
/bin
/doc
/lib
/make/Maven2/pom.xml
/src/dir1/...dir5/pom.xml
/test

I copy the relevant part of the poms here:
the /make/Maven2/pom.xml

  4.0.0
  Main app
  PROJECT
  Project_appl
  4.5
  pom
  
 ../../src/dir1/dir2/dir3/dir4/dir5
  

the /src/dir1/...dir5/pom.xml

   4.0.0
   Dir5
   dir1.dir2.dir3.dir4.dir5
   Dir5_appl
   jar
   4.5
   
  >PROJECT
  Project_appl
  4.5
  ../../../../../../Make/Maven2/
   

After that I got this error message:
[INFO] [site:site]
[WARNING] Error loading report org.apache.maven.plugin.taglist.TagListReport
- AbstractMethodError: canGenerateReport()
[DEBUG] Attempting to source module information from local filesystem
[DEBUG] Searching for parent-POM: >PROJECT:Project_appl::4.5 of project:
dir1.dir2.dir3.dir4.dir5:Dir5_appl:pom:4.5 in relative path:
../../../../../../Make/Maven2/
[DEBUG] Path specified in  (../../../../../../Make/Maven2/) is a directory.
Searching for 'pom.xml' within this directory.
[DEBUG] Invalid parent-POM referenced by relative path
'../../../../../../Make/Maven2/' in parent specification in
dir1.dir2.dir3.dir4.dir5:Dir5_appl:pom:4.5:
  Specified: >PROJECT:Project_appl::4.5
  Found: PROJECT:Project_appl:pom:4.5
[DEBUG] Retrieving parent-POM: >PROJECT:Project_appl::4.5 for project:
dir1.dir2.dir3.dir4.dir5:Dir5_appl:pom:4.5 from the repository.
[DEBUG] Trying repository central

It's very strange for me that it works with jar and not with the pom tag. I
thing I did everything well but it seems like not. The difference between
the found and the specified tag is the :pom: tag. I can’t figure out how to
configure the child pom to recognize its parent.

So please help me to solve this problem. Thanks a lot.

-- 
View this message in context: 
http://www.nabble.com/Invalid-parent-POM-referenced-by-relative-path-problem-tf2237277.html#a6203604
Sent from the Continuum - Users forum at Nabble.com.



Re: Maven for .Net

2006-09-07 Thread Ralf Quebbemann

Well, as for code coverage, maybe NCover (http://ncover.org/site/) does help 
you. Haven't used it though.

bye

Ralf

Lakshman Srilakshmanan wrote:

Ya, I would, if I new the next thing about .Net world.

How would tools like code coverage (cobertura), PMD&CPD, checkstyle
integrate with .Net ?

If I need compatible tools in .Net does anyone know what they are called
?


Thanks
Lakshman





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



Re: Maven for .Net

2006-09-07 Thread Ivo Limmen

PMD & CPD -> FxCop (http://www.gotdotnet.com/team/FxCop/)
JUnit -> NUnit (http://www.nunit.org)
Clover / Cobertura -> Clover.NET (http://www.cenqua.com/clover.net/) /
NCover (http://ncover.sourceforge.net/)

Have fun.

On 9/8/06, Lakshman Srilakshmanan <[EMAIL PROTECTED]>
wrote:


Ya, I would, if I new the next thing about .Net world.

How would tools like code coverage (cobertura), PMD&CPD, checkstyle
integrate with .Net ?

If I need compatible tools in .Net does anyone know what they are called
?


Thanks
Lakshman


> -Original Message-
> From: Markus KARG [mailto:[EMAIL PROTECTED]
> Sent: Friday, 8 September 2006 1:42 AM
> To: Maven Users List
> Subject: Re: Maven for .Net
>
> AFAIK it should be possible to write a plugin that handles .net
> flavours, since Maven is 100% pure Java, and Java can use JNI or
exec()
> to call native tools. So even there might be no such plugin yet, you
> might want to contribute one?
>
> Lakshman Srilakshmanan wrote:
> > Hi All,
> >
> > My company has a fair few VB, MS & .Net projects.
> >
> > Do we have a flavour of Maven for managing the above projects ? If
not
> > is there any plans to develop Maven for other technologies ?
> >
> > if the answer to my above question is _NO_ :), then does any one
know of
> > similar tools for the above technologies.
> >
> > Thanks
> > Lakshman
> >
> >
> >
-
> > 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: Combining multiple wars

2006-09-07 Thread Matt Raible

You can download the latest drop I received form Mike Horwitz (the
author of this plugin) at:

http://static.appfuse.org/downloads/maven-warpath-plugin-20060905.zip

Matt

On 9/7/06, johne <[EMAIL PROTECTED]> wrote:


P.S.:  Where might I get the latest version?
--
View this message in context: 
http://www.nabble.com/Combining-multiple-wars-tf2235662.html#a6200990
Sent from the Maven - Users forum 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: localRepository in user settings.xml

2006-09-07 Thread Lakshman Srilakshmanan
Hi,

I would imagine you need to include the settings.xml under 
C:\Documents and Settings\borutb\.m2\

Why ? because that's where maven will look for the settings.xml file. 

Once maven has read your settings.xml it will relocated your localRepository to 
C:\m2\repository.

Thanks
Lakshman


> -Original Message-
> From: Borut Bolčina [mailto:[EMAIL PROTECTED]
> Sent: Friday, 8 September 2006 12:06 AM
> To: maven
> Subject: localRepository in user settings.xml
> 
> Hello,
> 
> I want my local repository to be at C:\m2\repository so I included
> 
> 
> 
> C:\m2\repository
> ..
> 
> in settings.xml in C:\m2\settings.xml
> 
> mvn help:effective-settings
> 
> spits out
> 
> [INFO] [help:effective-settings]
> [INFO]
> Effective settings:
> 
> 
>   C:\Documents and
> Settings\borutb\.m2\repository
>   
> ..
> 
> which is not correct. This is the default. But if I put  in
> conf/settings.xml then it works. Why my user settings are not everriding the
> default ones?
> 
> Cheers,
> Borut


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



RE: Maven for .Net

2006-09-07 Thread Lakshman Srilakshmanan
Ya, I would, if I new the next thing about .Net world.

How would tools like code coverage (cobertura), PMD&CPD, checkstyle
integrate with .Net ?

If I need compatible tools in .Net does anyone know what they are called
?


Thanks
Lakshman


> -Original Message-
> From: Markus KARG [mailto:[EMAIL PROTECTED]
> Sent: Friday, 8 September 2006 1:42 AM
> To: Maven Users List
> Subject: Re: Maven for .Net
> 
> AFAIK it should be possible to write a plugin that handles .net
> flavours, since Maven is 100% pure Java, and Java can use JNI or
exec()
> to call native tools. So even there might be no such plugin yet, you
> might want to contribute one?
> 
> Lakshman Srilakshmanan wrote:
> > Hi All,
> >
> > My company has a fair few VB, MS & .Net projects.
> >
> > Do we have a flavour of Maven for managing the above projects ? If
not
> > is there any plans to develop Maven for other technologies ?
> >
> > if the answer to my above question is _NO_ :), then does any one
know of
> > similar tools for the above technologies.
> >
> > Thanks
> > Lakshman
> >
> >
> >
-
> > 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: hibernate3 plugin can't resolve maven-hibernate3-api

2006-09-07 Thread Wayne Fay

I'd copy that Codehaus pluginRepo as a regular  and see if
that fixed it.

Try mvn -U to update your plugins. Also try mvn -X to get full debug
log, and make sure Maven is looking at the Codehaus repo for those
deps.

Wayne

On 9/7/06, SkipWalker <[EMAIL PROTECTED]> wrote:


I'm trying to use the hibernate3-maven-plugin from codehaus with maven 2.0.4.

I keep getting stuck with the following error regarding hibernate3-api and
hibernate3-jdk

I don't understand why the dependencies are missing  The .  Any help is a
appreciated.

Missing:
--
1) org.codehaus.mojo.hibernate3:maven-hibernate3-api:jar:1.0-SNAPSHOT

 Try downloading the file manually from the project website.

 Then, install it using the command:
 mvn install:install-file -DgroupId=org.codehaus.mojo.hibernate3
-DartifactId=maven-hibernate3-api \
 -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

 Path to dependency:
   1)
org.codehaus.mojo:hibernate3-maven-plugin:maven-plugin:1.0-20060825.145135-3
   2)
org.codehaus.mojo.hibernate3:maven-hibernate3-api:jar:1.0-SNAPSHOT

2) org.codehaus.mojo.hibernate3:maven-hibernate3-jdk15:jar:1.0-SNAPSHOT

 Try downloading the file manually from the project website.

 Then, install it using the command:
 mvn install:install-file -DgroupId=org.codehaus.mojo.hibernate3
-DartifactId=maven-hibernate3-jdk15 \
 -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

 Path to dependency:
   1)
org.codehaus.mojo:hibernate3-maven-plugin:maven-plugin:1.0-20060825.145135-3
   2)
org.codehaus.mojo.hibernate3:maven-hibernate3-jdk15:jar:1.0-SNAPSHOT

--


Here's my plugin def:

   org.codehaus.mojo
   hibernate3-maven-plugin
   1.0-SNAPSHOT
   
   
   
   hbm2ddl
   
   process-resources
   
   

src/main/webapp/WEB-INF/classes/hibernate.cfg.xml
   
   
   
   
   
   
   

I have this as one of my plugin repo defs

   
   codehaus.plugin.snapshots
   http://snapshots.maven.codehaus.org/maven2/
   
   true
   
   
   true
   
   

--
View this message in context: 
http://www.nabble.com/hibernate3-plugin-can%27t-resolve-maven-hibernate3-api-tf2236295.html#a6200670
Sent from the Maven - Users forum 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]



CVS Blame mechanism in 1.0.3

2006-09-07 Thread Anoop kumar V

Hi,

We use Continuum 1.0.3. It is a great and very focussed product - thank you,
developers.

We use CVS as our SCM - but when a build fails, we only see a list of
changed files and no other information about those files - like who checked
it in - comments etc..

I read somewhere that the blame mechanism works in 1.0.3 - Is there some
special configuration I need to do - or maybe tweak my cvs.. please let me
know.

--
Thanks and best regards,
Anoop


Re: [m2] How to get source JARs when sharing eclipse config -- best p ractices?

2006-09-07 Thread Barrie Treloar

we are using the eclipse plugin to create the Eclipse configuration, and
specify the -DdownloadSources=true switch to download the source JARs and
include them into the .classpath file. This is pretty cool, but

As usual, the .project and .classpath files are checked into CVS to share
them with the team. Now what about the source JARs, how do the rest of the
team get them from our internal maven-repo into their private one? The
classes JARs are downloaded when calling mvn compile, for example, as they
are defined in the POM's dependency section. But the source JARs aren't (and
shouldn't), so how to download them? Does everybody have to call mvn
eclipse:eclipse -DdownloadSources=true for that? Is there a better / simpler
way?


Firstly, delete the .project and .classpath from your CVS.
These are created just fine by mvn eclipse:eclipse.

Secondly add to your pom's the source plugin to generate your sources.
When you run mvn install these will get installed into your local repo.
Someone will need to run mvn deploy to get them instaled into your
corporate repo.

   
...
 
   org.apache.maven.plugins
   maven-source-plugin
   
 
   
 jar
   
 
   
 
   

Now when people run
mvn eclipse:eclipse -DdownloadSources=true it will also download the
source jars and attach them so you can browse around correctly.

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



Re: Why "Failed to create database"?

2006-09-07 Thread jiangshachina

>Actually, you need to click "Show Project", but I don't recommend to use the
refresh button of your browser. 
Yes. If I click my browser's refresh button, my action will be send
repeatly.

a cup of Java, cheers!
Sha Jiang


Emmanuel Venisse wrote:
> 
> 
> jiangshachina a écrit :
>> I'm so puzzled about the matter.
>> Is it a must step for initalizing !?
> 
> The first run initialize continuum whith database/tables creation and
> default value initialization 
> in database.
> 
>> 
>> By the way, it seems that Continuum cann't refresh pages automatically!
>> For example, I want to build a project, and click the "build" icon.
>> Factlly,
>> the build is running, but I can not find the status of the project is
>> changed. Because the page don't refresh itself. I must click "Show
>> projects", then the page turns to right.
> 
> The automatic refresh of the summary page is planned for continuum 1.1
> Actually, you need to click "Show Project", but I don't recommend to use
> the refresh button of your 
> browser.
> 
> Emmanuel
>> 
>> 
>> jiangshachina wrote:
>>> The matter is happened at first run, but it seems that all is ok at
>>> second, third... run.
>>>
>>> a cup of Java, cheers!
>>> Sha Jiang
>>>
>>>
>>> Emmanuel Venisse wrote:
 They are false errors. Normally your continuum works with them, isn't
 it?

 Emmanuel

 jiangshachina a écrit :
> Hi,
> I'm so sorry. I don't save the log.
> I repeat my action, but this time, different errors are shown :(
>
> [1]ERROR VelocityComponen - ResourceManager.getResource() parse
> exception:
> org.apache.velocity.exception.ParseErrorException: Lexical error:
> org.apache.velocity.runtime.parser.TokenMgrError: Lexical error at
> line
> 121,
> column 17.  Encountered:  after : ""
>
> [2][WrapperSimpleAppMain] WARN  RDBMS - Error initialising derby
> schema
> :
> Schema 'SA' does not exist
> ERROR 42Y07: Schema 'SA' does not exist
> at org.apache.derby.iapi.error.StandardException.newException(Unknown
> Source)
> at
> org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getSchemaDescriptor(Unknown
> Source)
> at
> org.apache.derby.impl.sql.compile.QueryTreeNode.getSchemaDescriptor(Unknown
> Source)
> at
> org.apache.derby.impl.sql.compile.DDLStatementNode.getSchemaDescriptor(Unknown
> Source)
> at org.apache.derby.impl.sql.compile.DropAliasNode.bind(Unknown
> Source)
> at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown
> Source)
> at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
> at
> org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown
> Source)
> at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
> at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
> at
> org.jpox.store.rdbms.adapter.CloudscapeAdapter.initialiseDatastore(CloudscapeAdapter.java:115)
> at
> org.jpox.store.rdbms.RDBMSManager.initialiseSchema(RDBMSManager.java:453)
> at org.jpox.store.rdbms.RDBMSManager.(RDBMSManager.java:242)
> at
> org.jpox.store.rdbms.RDBMSManagerFactory.getStoreManager(RDBMSManagerFactory.java:59)
> at
> org.jpox.AbstractPersistenceManager.(AbstractPersistenceManager.java:222)
> at
> org.jpox.PersistenceManagerImpl.(PersistenceManagerImpl.java:34)
> at
> org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:916)
> at
> org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:891)
> at
> org.apache.maven.continuum.store.JdoContinuumStore.getPersistenceManager(JdoContinuumStore.java:1295)
> at
> org.apache.maven.continuum.store.JdoContinuumStore.getAllObjectsDetached(JdoContinuumStore.java:984)
> at
> org.apache.maven.continuum.store.JdoContinuumStore.getAllProjectsByNameWithBuildDetails(JdoContinuumStore.java:623)
> at
> org.apache.maven.continuum.DefaultContinuum.initialize(DefaultContinuum.java:1927)
> at
> org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:16)
> at
> org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
> at
> org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
> at
> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
> at
> org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92)
> at
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
> at
> org.codehaus.plexus.DefaultPlexusContainer.loadComponentsOnStart(DefaultPlexusContainer.j

Re: Combining multiple wars

2006-09-07 Thread johne

P.S.:  Where might I get the latest version?
-- 
View this message in context: 
http://www.nabble.com/Combining-multiple-wars-tf2235662.html#a6200990
Sent from the Maven - Users forum at Nabble.com.


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



Re: Combining multiple wars

2006-09-07 Thread johne

Matt,

Thank you so much for the lead.  I have been struggling over this for days
trying different things feeling a bit stupid as there is no real
documentation on it.

I will check out the plugin you mentioned.  I am using Netbeans 5.5 beta so
hope it integrates with that.  I had found it was much easier to integrate
with M2 and Netbeans in a multi-module project.

I am hoping that when I follow your link, I manage to find a bit of
documentation and a few examples.

Again I appreciate your ideas.

John Eichelsdorfer
http://www.jobbank.com

-- 
View this message in context: 
http://www.nabble.com/Combining-multiple-wars-tf2235662.html#a6200884
Sent from the Maven - Users forum at Nabble.com.


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



hibernate3 plugin can't resolve maven-hibernate3-api

2006-09-07 Thread SkipWalker

I'm trying to use the hibernate3-maven-plugin from codehaus with maven 2.0.4.

I keep getting stuck with the following error regarding hibernate3-api and
hibernate3-jdk

I don't understand why the dependencies are missing  The .  Any help is a
appreciated.

Missing:
--
1) org.codehaus.mojo.hibernate3:maven-hibernate3-api:jar:1.0-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=org.codehaus.mojo.hibernate3
-DartifactId=maven-hibernate3-api \
  -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
1)
org.codehaus.mojo:hibernate3-maven-plugin:maven-plugin:1.0-20060825.145135-3
2)
org.codehaus.mojo.hibernate3:maven-hibernate3-api:jar:1.0-SNAPSHOT

2) org.codehaus.mojo.hibernate3:maven-hibernate3-jdk15:jar:1.0-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=org.codehaus.mojo.hibernate3
-DartifactId=maven-hibernate3-jdk15 \
  -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
1)
org.codehaus.mojo:hibernate3-maven-plugin:maven-plugin:1.0-20060825.145135-3
2)
org.codehaus.mojo.hibernate3:maven-hibernate3-jdk15:jar:1.0-SNAPSHOT

--


Here's my plugin def:

org.codehaus.mojo
hibernate3-maven-plugin
1.0-SNAPSHOT



hbm2ddl

process-resources


   
src/main/webapp/WEB-INF/classes/hibernate.cfg.xml








I have this as one of my plugin repo defs


codehaus.plugin.snapshots
http://snapshots.maven.codehaus.org/maven2/

true


true



-- 
View this message in context: 
http://www.nabble.com/hibernate3-plugin-can%27t-resolve-maven-hibernate3-api-tf2236295.html#a6200670
Sent from the Maven - Users forum at Nabble.com.


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



Calling a Mojo from within another Mojo

2006-09-07 Thread Andres Almiray
Hi,

I've been searching the docs at the maven site and
there is no mention of this, is it possible ?

What I want to do is re-run the Cobertura report Mojo
with 'xml' format if the actual format is 'html'. This
is because Cobertura doesn't provide a 'friendly' API
to its report facilities.

BTW, the team from cobertura-maven-plugin invoke
cobertura by wrapping its command line args and
invoking a Main class. (That is my last resort
option).

Thanks.





___ 
Do You Yahoo!? 
La mejor conexión a Internet y 2GB extra a tu correo por $100 al mes. 
http://net.yahoo.com.mx 


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



Re: Combining multiple wars

2006-09-07 Thread Matt Raible

The current war functionality does not allow you to get the
dependencies and use them in a child project.  The good news is we're
working on a solution in the AppFuse project.  So far we have a
"warpath" plugin that allows you to do what you're looking for.

http://www.nabble.com/Maven-2-issues-for-Appfuse-2-tf2189359s2369.html#a6138807

The last thing we're trying to solve is how to get the eclipse and
idea plugins to recognize the dependencies and include them in the
generated project files.

Matt

On 9/7/06, johne <[EMAIL PROTECTED]> wrote:



Hello,

I am mostly through the process of switching from Ant to Maven2.   I have
seperated one big project into 5 sub-projects using a hierarchy of poms.

I have the following hierarchy:   service-platform.war -> baseservices.war
-> servicesusa.war

Originally these were all gobbed together in one war.  Now I am trying to
have multiple countries supported and needed a better way of packaging due
to differences in services.

My problem is that they have shared resources that need to be exploded under
the ending serviceusa.war's WEB-INF.  This is not happening, however and the
resources can not be found.   I have tried working with the dependency
plogin and the war plugin, but i have not figured out how I can have
service-platform.war's WEB-INF exlode into baseservice.war's and then having
both of those explode into the serviceusa.war.

Preferably it would be good to be able to filter on each of these.

Is there a way?  Does somebody have an example they can post?  I have not
been able to find anything that helped in examples or other projects I have
downloaded.

Thanks!!!

John
--
View this message in context: 
http://www.nabble.com/Combining-multiple-wars-tf2235662.html#a6198850
Sent from the Maven - Users forum 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]



Combining multiple wars

2006-09-07 Thread johne


Hello,

I am mostly through the process of switching from Ant to Maven2.   I have
seperated one big project into 5 sub-projects using a hierarchy of poms.

I have the following hierarchy:   service-platform.war -> baseservices.war
-> servicesusa.war

Originally these were all gobbed together in one war.  Now I am trying to
have multiple countries supported and needed a better way of packaging due
to differences in services.

My problem is that they have shared resources that need to be exploded under
the ending serviceusa.war's WEB-INF.  This is not happening, however and the
resources can not be found.   I have tried working with the dependency
plogin and the war plugin, but i have not figured out how I can have
service-platform.war's WEB-INF exlode into baseservice.war's and then having
both of those explode into the serviceusa.war.

Preferably it would be good to be able to filter on each of these.

Is there a way?  Does somebody have an example they can post?  I have not
been able to find anything that helped in examples or other projects I have
downloaded.

Thanks!!!

John
-- 
View this message in context: 
http://www.nabble.com/Combining-multiple-wars-tf2235662.html#a6198850
Sent from the Maven - Users forum at Nabble.com.


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



Re: Maven for .Net

2006-09-07 Thread Brett Porter

http://svn.apache.org/viewvc/maven/sandbox/csharp/

On 08/09/06, Markus KARG <[EMAIL PROTECTED]> wrote:

AFAIK it should be possible to write a plugin that handles .net
flavours, since Maven is 100% pure Java, and Java can use JNI or exec()
to call native tools. So even there might be no such plugin yet, you
might want to contribute one?

Lakshman Srilakshmanan wrote:
> Hi All,
>
> My company has a fair few VB, MS & .Net projects.
>
> Do we have a flavour of Maven for managing the above projects ? If not
> is there any plans to develop Maven for other technologies ?
>
> if the answer to my above question is _NO_ :), then does any one know of
> similar tools for the above technologies.
>
> Thanks
> Lakshman
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>







--
Apache Maven - http://maven.apache.org
"Better Builds with Maven" book - http://library.mergere.com/

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



Re: Why does my project have SNAPSHOT dependencies?

2006-09-07 Thread Tamás Cservenák

Hi,

1. Try something like this (explicitly forbid SNAPSHOTs):



...
default
...

true
fail


false


http://...




2. aggregation is NOT ALWAYS a good solution, see:
http://docs.codehaus.org/display/MAVENUSER/Creating+a+Maven+proxy
the "Aggregation of proxies may not be your friend" paragraph.

This is especially true for XXX + XXX.snapshot like reposes. It is
recommended to place SNAPSHOT-enabled reposes into separate group (to
avoid aggregation) and explicitly reference it from POM with proper
settings (snaphots enabled = true).

Aggregation IS YOUR FRIEND to make developers life easier, like
intentional "spoofing" of the J2EE artifacts by overlaying them onto
"central". The central has proper POMs, and you "overlay" onto them
the proper JARs etc.


Have fun,
~t~

On 9/7/06, Dave Hoffer <[EMAIL PROTECTED]> wrote:

I have some dependencies that use set notation for the version such
as...


  com.xrite
  xrite-colorlib-api
  [1.0,)


I now use Proximity as my maven proxy/aggregator.  My repositories are
like...



  inhouse

http://XRBUILD2.xrite.com:8080/px-webapp-default-1.0.0-RC4/reposito
ry/private


  extFree

http://XRBUILD2.xrite.com:8080/px-webapp-default-1.0.0-RC4/reposito
ry/ext


  public

http://XRBUILD2.xrite.com:8080/px-webapp-default-1.0.0-RC4/reposito
ry/public



Proximity is set to aggregate inhouse & inhouse.snapshot into private
group.

Why does my build/release think that the xrite-colorlib-api artifact
should use a SNAPSHOT version?  I thought set notion did not include
SNAPSHOTS, only releases?  When I run the release goal it fails because
of the xrite-colorlib-api-SNAPSHOTS dependency.

- How can I make this so it knows that no SNAPSHOTS should be retrieved
from the private repo unless SNAPSHOT is in the version?

- Should/does maven specify snapshotRepository separate from repository?

-dh



-
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] all our builds are failing...

2006-09-07 Thread Russ Tremain
thanks, that worked.  normally we have had good luck with
sunsite.dk, but it is still out of sync after 24 hours.

-Russ

At 8:01 PM +0200 9/7/06, Emmanuel Venisse wrote:
>The pom is available at repo1.maven.org : 
>http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/3/maven-plugins-3.pom
>
>ibiblio is the first mirror of repo1.maven.org
>
>Emmanuel
>
>Russ Tremain a écrit :
>>we are using a mirror to ibiblio, and have been having this error since
>>yesterday:
>>
>>GroupId: org.apache.maven.plugins
>>ArtifactId: maven-plugins
>>Version: 3
>>
>>Reason: Unable to download the artifact from any repository
>>
>>  org.apache.maven.plugins:maven-plugins:pom:3
>>
>>from the specified remote repositories:
>>  central (http://repo1.maven.org/maven2),
>>  maven-snapshots (http://cvs.apache.org/maven-snapshot-repository),
>>  codehaus-snapshots (http://snapshots.repository.codehaus.org/)
>>
>>does anyone know what is going on?
>>
>>If I switch to ibiblio, then we can get this pom, but it is not
>>getting picked up by the mirrors.
>>
>>the ibiblio site is normally useless to us because it is so overloaded.
>>
>>tia,
>>-Russ
>>
>>-
>>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: Compiler plugin configuration

2006-09-07 Thread Laurie Harper

Wendy Smoak wrote:

On 9/6/06, Laurie Harper <[EMAIL PROTECTED]> wrote:


Everything seems to be working except that I can't figure out how to get
the compiler plugin to compile the right set of sources and put the
resulting classes where I want them, so integration tests remain
separate from unit tests.

...

Is there a way to achieve this, short of reorganizing the source tree
and/or breaking the project up into modules?


Maven does not have good support for combining both unit tests and
integration tests in the same module.


It used to hint at having first-class support, with an 
integrationTestSource element in the POM etc. -- and even today, there 
is an 'integration-test' build phase -- but yeah, I know this isn't 
something that's directly supported. Hence the attempt to squish it into 
my build ;-)



You can do it by playing around with includes/excludes, but you're
only allowed one testSourceDirectory per module. (And probably one
target directory, though I haven't tried to change that.)


For the compiler plugin, one testSourceDirectoy and one test class 
target directory, yeah, as far as I can tell. It's odd, therefore, that 
the surefire and surefire-report plugins are quite happy to look in a 
different directory for test classes -- since there's no apparent way to 
get them there...



Here's a recent thread that links to some examples:
http://www.nabble.com/Multipart-question-regarding-releasing-with-an-assembly-and-integration-tests.-t2193916.html#a6072535 


Heh, Cargo is my next level; my integration tests don't require the 
webapp deployed and running, but my acceptance tests do ;-)



At least until Maven supports separate src/it/java and src/test/java
directories, putting your integration tests in a separate module is
the best way to go. This is described in the 'Better Builds with
Maven' book.


Yeah, with a green-field project I do things the 'maven way'. It's all 
those projects that pre-date Maven that cause the trouble :-(



That said, we do combine unit and integration tests in the Shale
example apps, and it works  well enough.


Ah, good to know, I'll check out how that works; maybe it'll represent 
an acceptable compromise for this project.


L.


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



Re: [m2] How to get source JARs when sharing eclipse config -- best p ractices?

2006-09-07 Thread Dirk Olmes
Amshoff Christoph, Köln wrote:
> Hi,
> 
> we are using the eclipse plugin to create the Eclipse configuration, and
> specify the -DdownloadSources=true switch to download the source JARs and
> include them into the .classpath file. This is pretty cool, but
> 
> As usual, the .project and .classpath files are checked into CVS to share
> them with the team. Now what about the source JARs, how do the rest of the
> team get them from our internal maven-repo into their private one? The
> classes JARs are downloaded when calling mvn compile, for example, as they
> are defined in the POM's dependency section. But the source JARs aren't (and
> shouldn't), so how to download them? Does everybody have to call mvn
> eclipse:eclipse -DdownloadSources=true for that? Is there a better / simpler

This is similar to what we do: eclipse files are checked into ClearCase
and I have created a script that re-generates the project files but puts
them under the target directory (could be anywhere). By this, we use the
side effect of downloading the source jars.

-dirk


-- 
A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?


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



RE: Clover and additional target/src directory

2006-09-07 Thread Vincent Massol


> -Original Message-
> From: Ingo Düppe [mailto:[EMAIL PROTECTED]
> Sent: lundi 4 septembre 2006 15:55
> To: Maven Users List
> Subject: Re: Clover and additional target/src directory
> 
> Hi Vincent,
> 
> my intension to clover generated sources is that we also write some unit
> tests for generated sources.
> We do this to be sure that the generator works like expected. In
> particular the andromda 3.2 version is not released yet.
> So the unit tests helps us to be informed that the generator changed his
> behaviour.

Ok, I've started implementing it. I have decided to add a new configuration
parameter to decide whether all source roots should be instrumented or not.
By default I've put this parameter to false so that all source roots are not
included by default (to keep the current behavior).

Thus, in your case you'll need to add the following:

true

Thanks
-Vincent

> Vincent Massol schrieb:
> >
> >> -Original Message-
> >> From: Vincent Massol [mailto:[EMAIL PROTECTED]
> >> Sent: vendredi 1 septembre 2006 11:11
> >> To: 'Maven Users List'
> >> Cc: '[EMAIL PROTECTED]'
> >> Subject: RE: Clover and additional target/src directory
> >>
> >> Hi Ingo,
> >>
> >>
> >>> -Original Message-
> >>> From: Ingo Düppe [mailto:[EMAIL PROTECTED]
> >>> Sent: vendredi 1 septembre 2006 01:22
> >>> To: Maven Users List
> >>> Subject: Clover and additional target/src directory
> >>>
> >>> Hi,
> >>> I use AndroMDA to generate my sources under /target/src and we uses
> >>> clover to for code coverage.
> >>> But coverage does not recognize the generated sources under
> /target/src.
> >>>
> >>> How can I add my target/src folder to clover?
> >>>
> >> I've checked the clover plugin source code and indeed other source
> roots
> >> are not added. There's even a comment saying that it's not added
> >> voluntarily. Now thinking about it's probably warranted to add all
> source
> >> roots. There may be cases when some source roots should not be added
> but
> >> let's wait till they materialize.
> >>
> >> To summarize: I agree to modify the clover plugin to add all source
> roots
> >> by default. Could you please create a jira issue for this and I'll work
> on
> >> it?
> >>
> >
> > Actually I need more information from you. I'm still unsure whether we
> > should do this or not and I need to understand why you want generated
> > AndroMDA sources to get clovered? I'm not sure why anyone would want
> > generated sources to be clovered?
> >
> > Mind you, I'm not against it; I'd just like a valid use case for this.
> >
> > Thanks
> > -Vincent
> >
> >
> >
> >  p2.vert.ukl.yahoo.com uncompressed Mon Sep  4 07:27:01 GMT 2006
> >
> >
> >
> __
> _
> > Découvrez un nouveau moyen de poser toutes vos questions quelque soit le
> sujet !
> > Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions
> et vos expériences.
> > http://fr.answers.yahoo.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]






___
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet !
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos 
expériences.
http://fr.answers.yahoo.com


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



Re: [m2] all our builds are failing...

2006-09-07 Thread Emmanuel Venisse
The pom is available at repo1.maven.org : 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/3/maven-plugins-3.pom


ibiblio is the first mirror of repo1.maven.org

Emmanuel

Russ Tremain a écrit :

we are using a mirror to ibiblio, and have been having this error since
yesterday:

GroupId: org.apache.maven.plugins
ArtifactId: maven-plugins
Version: 3

Reason: Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-plugins:pom:3

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  maven-snapshots (http://cvs.apache.org/maven-snapshot-repository),
  codehaus-snapshots (http://snapshots.repository.codehaus.org/)

does anyone know what is going on?

If I switch to ibiblio, then we can get this pom, but it is not
getting picked up by the mirrors.

the ibiblio site is normally useless to us because it is so overloaded.

tia,
-Russ

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



Have Maven Eclipse Plugin specify Eclipse file encoding

2006-09-07 Thread Ralph Pöllath

Hi,

My work environment requires that all source files are encoded as  
UFT-8. Since we're using Eclipse, this means we have to change the  
file encoding to UTF-8 whenever we create a new workspace, which is  
inconvenient and error-prone.


Since all of our Eclipse config is generated by the Maven Eclipse  
Plugin already, having it set the file encoding on a per-project  
basis would be a great solution (looks like you just have to add  
"encoding/=UTF-8" to .settings/ 
org.eclipse.core.resources.prefs).


Should I post a feature request to JIRA?

Thanks,
-Ralph.


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



[m2] all our builds are failing...

2006-09-07 Thread Russ Tremain
we are using a mirror to ibiblio, and have been having this error since
yesterday:

GroupId: org.apache.maven.plugins
ArtifactId: maven-plugins
Version: 3

Reason: Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-plugins:pom:3

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  maven-snapshots (http://cvs.apache.org/maven-snapshot-repository),
  codehaus-snapshots (http://snapshots.repository.codehaus.org/)

does anyone know what is going on?

If I switch to ibiblio, then we can get this pom, but it is not
getting picked up by the mirrors.

the ibiblio site is normally useless to us because it is so overloaded.

tia,
-Russ

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



Re: How to build JEE 5 EJB-JARs?

2006-09-07 Thread Alexandre Russel

> >> According to "BetterBuildsWithMaven.pdf" I switched from
> >> ejb to ejb3. Unfortunately
> >
> > change it to jar.
> > Alex
>
> You mean there is no difference between ejb3 and jar? For what is ejb3
> good then?
no, I mean the packaging is the same. It is just a jar with a persistence.xml 
file. the Ejb3 extension/packaging comes from an early draft of the spec. 
That didn't make to the final draft.
The packaging and what ejb3 are good for are unrelated :-)
alex


pgpw6Jzc1WfHU.pgp
Description: PGP signature


Re: site.xml inheritence

2006-09-07 Thread Phil Steitz

On 9/7/06, Geoffrey De Smet <[EMAIL PROTECTED]> wrote:

Are there any examples of this available?

The docs doesn't show how to make a module site.xml "extend" from the
parent project's site.xml.





Have a look at the "inheritence" section in the site plugin howto:
http://maven.apache.org/plugins/maven-site-plugin/howto.html
As stated in the docs, when you publish the parent POM, the site
descriptor is also published and available for inheritence, as long as
the child inherits the parent POM.

Hope this helps.

Phil

--




With kind regards,
Geoffrey De Smet


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



[m2] How to get source JARs when sharing eclipse config -- best p ractices?

2006-09-07 Thread Amshoff Christoph, Köln
Hi,

we are using the eclipse plugin to create the Eclipse configuration, and
specify the -DdownloadSources=true switch to download the source JARs and
include them into the .classpath file. This is pretty cool, but

As usual, the .project and .classpath files are checked into CVS to share
them with the team. Now what about the source JARs, how do the rest of the
team get them from our internal maven-repo into their private one? The
classes JARs are downloaded when calling mvn compile, for example, as they
are defined in the POM's dependency section. But the source JARs aren't (and
shouldn't), so how to download them? Does everybody have to call mvn
eclipse:eclipse -DdownloadSources=true for that? Is there a better / simpler
way?

Any suggestions are welcome...

Thanks,
Christoph.


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



Re: [solved] product codes at java 1.4, test sources at java 1.5

2006-09-07 Thread Wendy Smoak

On 9/7/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote:


I solved the issue of compiling the application code for Java 1.3 AND
using java5 for tests :


Thank you!  And to keep it from being lost forever in the mail archives:

http://docs.codehaus.org/display/MAVENUSER/Compile+and+Test+with+Different+JDK+Versions

Please edit as necessary... ask on dev@ if you don't have access.

--
Wendy

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



Re: Build result output containing xml

2006-09-07 Thread Lee Meador

http://jira.codehaus.org/browse/CONTINUUM-530 was already there.

On 9/6/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote:


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

Lee Meador a écrit :
> When there is xml in the build result output it should probably be
> converted
> to use < and such. The actual output gets stuck into 
> tags. In
> our case, it just makes the xml tags disappear.
>
> I haven't thought it through but maybe you could get it to output
something
> that would be some sort of security issue.
>
> Where do we put such issues?
>
> thanks.
>
> -- Lee Meador
> Sent from gmail. My real email address is [EMAIL PROTECTED]
>





--
-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]


RE : [solved] product codes at java 1.4, test sources at java 1.5

2006-09-07 Thread LECAN Damien
Waoh, good job. Your special configuration gave me a lot of ideas (Especially 
 section in plugin configuration)

Thanks

Damien Lecan

 Message d'origine
De: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Date: jeu. 07/09/2006 17:33
À: Maven Users List
Objet : [solved] product codes at java 1.4, test sources at java 1.5

Here is my POM :


org.apache.maven.plugins
maven-compiler-plugin

1.3
1.3



${settings.localRepository}/com/sun/rt/1.3.1_08/rt-1.3.1_08.jar





compile-tests
process-test-sources

testCompile


1.5
1.5


${java.home}/lib/rt.jar







com.sun
rt
1.3.1_08





Nico.



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

Re: How to build JEE 5 EJB-JARs?

2006-09-07 Thread Alexander Sack

Yea, I don't like having ejb-jar.xml either and I use JBoss which has its
own quirks regarding Class-Path.

To answer your question, EJB3 is conceptually SUPPOSE to be simpler and
essentially a special JAR file with annotationed classes.  What do you
envision the EJB3 plugin to do for you exactly?  I'm building EJB3's with
Maven2 using the jar plugin.  Works great minus the fact that I need to hand
edit a Class-Path entry within my EJB3 jar under JBoss since it doesn't
support the Java EE 5 lib directory feature (Glassfish obviously does).

-aps

On 9/7/06, Markus KARG <[EMAIL PROTECTED]> wrote:


Actually I didn't want to have a ejb-jar.xml any longer with EJB3.
What about the status of that ejb3 plugin: When will it be finished?
I mean, this is a thing I expect Maven to do for me.

Takashi Nishigaya wrote:
> The maven-ear-plugin does not recognized the jar project as ejb3 module.
> If you plan to create ear application with ejb3 modules, the ejb3
> project should declare ejb in the pom.xml, and
> prepare the empty ejb-jar.xml declaring ejb3 schema namespace.
>
> src/main/resources/META-INF/ejb-jar.xml:
>
> 
>xmlns = "http://java.sun.com/xml/ns/javaee";
>   xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance";
>   xsi:schemaLocation = "http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd";
>   version = "3.0">
> 
>
> This will work well with glassfish.
>
> Thanks,
> Takashi Nishigaya
>
> Alexander Sack wrote:
>> I use packaging type "JAR" for all EJB3 builds as its just easier then
>> trying to retrofit the current ejb plugin.
>>
>> -aps
>>
>> On 9/6/06, Alexandre Russel <[EMAIL PROTECTED]> wrote:
>>
>>>
>>>
>>> > According to "BetterBuildsWithMaven.pdf" I switched from
>>> > ejb to ejb3.
>>> Unfortunately
>>> change it to jar.
>>> Alex
>>>
>>>
>>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>







--
"What lies behind us and what lies in front of us is of little concern to
what lies within us." -Ralph Waldo Emerson


RE: Where to put native libraries so maven can find them?

2006-09-07 Thread Dave Hoffer
Thanks, that works great!

-dh

-Original Message-
From: Christophe Deneux [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 07, 2006 3:50 AM
To: users
Subject: Re:Where to put native libraries so maven can find them?


Hi Dave,

You can configure the surefire plugin to update the system path to add
the output directory. Here an example
for Windows:

  
 ${basedir}\target;${java.library.path}
  


Christophe DENEUX
Capgemini Sud - PACA - Nice


-- Initial Header ---

>From  : "Dave Hoffer" [EMAIL PROTECTED]
To  : "Maven Users List" users@maven.apache.org
Cc  : 
Date  : Wed, 6 Sep 2006 15:58:51 -0400
Subject : Where to put native libraries so maven can find them?

> Does the maven directory structure specify where native libraries
(DLL)
> should be located so, for example, the surefire plugin can find them?
> If not, how can I specify in my pom where these are?
> 
>  
> 
> -dh
> 
> 


This message contains information that may be privileged or confidential
and is the property of the Capgemini Group. It is intended only for the
person to whom it is addressed. If you are not the intended recipient,
you are not authorized to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all
copies of this message.


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



weblogic-maven-plugin, appc failed

2006-09-07 Thread Marc Chételat ML

Hi all,

I m currently trying to precompile my jsps for weblogic 8.1. I use the 
weblogic-maven-plugin from mojo with Maven 2.


This my pom.xml file  :
...

  webmedialbum

  org.codehaus.mojo
  weblogic-maven-plugin
  2.8.0-SNAPSHOT
  
  
${project.build.directory}/${build.finalName}.${project.packaging}


  true
  true
  false
  true
  
  
  
  package
  
  appc
  
  
  

  
...


But I m always getting this error but the ListIteratorTagInfo extends 
TagExtraInfo !!!


[jspc] resolved taglib uri 'page' to taglib-location /tlds/util/page.tld:
Error: [jspc]: 1 file(s) failed:
/jsp/index.jsp
[J2EE:160119]Appc is unable to process the file 
'C:\project\dev\target\webalbum.war'. The following error occurred:


Translation of /jsp/index.jsp failed: (line 12): Error in using tag 
library uri='page' prefix='page': For tag 'listiterate', extra info 
class 'com.project.web.util.taglibs.util.ListIteratorTagInfo' does not 
extend javax.servlet.jsp.tagext.TagExtraInfo


  at weblogic.servlet.jsp.JspcInvoker.compile(JspcInvoker.java:173)
  at weblogic.appc.compileWAR(appc.java:859)
 ...


Thanks in advance for your help,
ML



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



Re: Maven for .Net

2006-09-07 Thread Markus KARG
AFAIK it should be possible to write a plugin that handles .net
flavours, since Maven is 100% pure Java, and Java can use JNI or exec()
to call native tools. So even there might be no such plugin yet, you
might want to contribute one?

Lakshman Srilakshmanan wrote:
> Hi All,
>
> My company has a fair few VB, MS & .Net projects.
>
> Do we have a flavour of Maven for managing the above projects ? If not
> is there any plans to develop Maven for other technologies ?
>
> if the answer to my above question is _NO_ :), then does any one know of
> similar tools for the above technologies.
>
> Thanks
> Lakshman
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>   



smime.p7s
Description: S/MIME Cryptographic Signature


Re: include jar(s) when packaging

2006-09-07 Thread ben short

Dependancies only get added to wars. You need to use the maven
assembly plugin http://maven.apache.org/plugins/maven-assembly-plugin/

On 9/7/06, Richard Fagot <[EMAIL PROTECTED]> wrote:

Hi all,

   I tried to package my project including a jar that is a dependency
for the project. To do this I used the scope compile in the pom.xml but
the jar does not appear in the project jar. What's wrong ?


cheers.

-
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: How to build JEE 5 EJB-JARs?

2006-09-07 Thread Markus KARG
Actually I didn't want to have a ejb-jar.xml any longer with EJB3.
What about the status of that ejb3 plugin: When will it be finished?
I mean, this is a thing I expect Maven to do for me.

Takashi Nishigaya wrote:
> The maven-ear-plugin does not recognized the jar project as ejb3 module.
> If you plan to create ear application with ejb3 modules, the ejb3
> project should declare ejb in the pom.xml, and
> prepare the empty ejb-jar.xml declaring ejb3 schema namespace.
>
> src/main/resources/META-INF/ejb-jar.xml:
>
> 
>xmlns = "http://java.sun.com/xml/ns/javaee";
>   xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance";
>   xsi:schemaLocation = "http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd";
>   version = "3.0">
> 
>
> This will work well with glassfish.
>
> Thanks,
> Takashi Nishigaya
>
> Alexander Sack wrote:
>> I use packaging type "JAR" for all EJB3 builds as its just easier then
>> trying to retrofit the current ejb plugin.
>>
>> -aps
>>
>> On 9/6/06, Alexandre Russel <[EMAIL PROTECTED]> wrote:
>>
>>>
>>>
>>> > According to "BetterBuildsWithMaven.pdf" I switched from
>>> > ejb to ejb3.
>>> Unfortunately
>>> change it to jar.
>>> Alex
>>>
>>>
>>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



smime.p7s
Description: S/MIME Cryptographic Signature


[Solved] RE: Problems with Contonuum XML-RPC interface

2006-09-07 Thread Ryan Slobojan
Hi, 

I believe we've discovered the source of this problem. We are currently using 
the version of Continuum that is distributed by Mergere (it's called Maestro, 
and the version is 1.0.1), and when we installed Continuum 1.0.3 by itself, the 
XML-RPC interface worked as expected. It looks like something in Maestro 1.0.1 
broke the Continuum XML-RPC interface.

Thanks,

Ryan Slobojan

-Original Message-
From: Ryan Slobojan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 06, 2006 11:26 AM
To: continuum-users@maven.apache.org
Subject: RE: Problems with Contonuum XML-RPC interface

Hi Emmanuel,

>From my original email:

-
The fact that the XML-RPC interface is not there is confirmed when I run the 
Continuum XML-RPC sample client (org.apache.maven.continuum.rpc.SampleClient) 
and pass it an argument of either http://[server]:8200 or 
http://[server]:8200/continuum. I get the following output:

**
Projects list
**
org.apache.xmlrpc.XmlRpcException: java.lang.Exception: RPC handler object 
"continuum" not found and no default handler registered
at 
org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeException(XmlRpcClientResponseProcessor.java:102)
at 
org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeResponse(XmlRpcClientResponseProcessor.java:69)
at 
org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:193)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:184)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:177)
at 
org.apache.maven.continuum.rpc.ProjectsReader.readProjects(ProjectsReader.java:66)
at 
org.apache.maven.continuum.rpc.SampleClient.main(SampleClient.java:45)
-

I see that it's started, but when I try to actually use it I get an error 
saying that the RPC handler object isn't present.

Thanks,

Ryan Slobojan

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 06, 2006 11:21 AM
To: continuum-users@maven.apache.org
Subject: Re: Problems with Contonuum XML-RPC interface

XML-RPC service is started:
INFO   | jvm 1| 2006/09/05 12:28:11 | [INFO] Starting XML-RPC service.
...
INFO   | jvm 1| 2006/09/05 12:28:11 | [INFO] Starting XML-RPC listener on 
port '8200'.

You can try with this little sample client : 
http://svn.apache.org/viewvc/maven/continuum/tags/continuum-1.0.3/continuum-rpc-client/src/main/java/org/apache/maven/continuum/rpc/SampleClient.java?revision=395968&view=markup

Emmanuel

Ryan Slobojan a écrit :
> Hi Emmanuel,
> 
> Thanks for the quick response! The Initialization segment of the log file is 
> posted below. Please be aware that it's a bit long:
> 
> STATUS | wrapper  | 2006/09/05 12:28:10 | --> Wrapper Started as 
> Daemon STATUS | wrapper  | 2006/09/05 12:28:10 | Launching a JVM...
> INFO   | jvm 1| 2006/09/05 12:28:10 | Wrapper (Version 3.1.2) 
> http://wrapper.tanukisoftware.org
> INFO   | jvm 1| 2006/09/05 12:28:10 | 
> INFO   | jvm 1| 2006/09/05 12:28:10 | [INFO] Services will be deployed 
> in: '../../services'.
> INFO   | jvm 1| 2006/09/05 12:28:10 | [INFO] Applications will be 
> deployed in: '../../apps'.
> INFO   | jvm 1| 2006/09/05 12:28:10 | [INFO] Service Supervisor is 
> deploying plexus-appserver-service-jetty-2.0-alpha-2.
> INFO   | jvm 1| 2006/09/05 12:28:10 | [INFO] Removing old service.
> INFO   | jvm 1| 2006/09/05 12:28:11 | [DEBUG] Found 1 components to load 
> on start
> INFO   | jvm 1| 2006/09/05 12:28:11 | [INFO] Loading on start 
> [role,roleHint]: [org.codehaus.plexus.appserver.service.PlexusService,jetty]
> INFO   | jvm 1| 2006/09/05 12:28:11 | 12:28:11.191 EVENT  Starting 
> Jetty/4.2.24
> INFO   | jvm 1| 2006/09/05 12:28:11 | 12:28:11.213 EVENT  Started [EMAIL 
> PROTECTED]
> INFO   | jvm 1| 2006/09/05 12:28:11 | [INFO] Service Supervisor is 
> deploying plexus-appserver-service-xmlrpc-2.0-alpha-3.
> INFO   | jvm 1| 2006/09/05 12:28:11 | [INFO] Removing old service.
> INFO   | jvm 1| 2006/09/05 12:28:11 | [DEBUG] Found 1 components to load 
> on start
> INFO   | jvm 1| 2006/09/05 12:28:11 | [INFO] Loading on start 
> [role,roleHint]: [org.codehaus.plexus.appserver.service.PlexusService,xml-rpc]
> INFO   | jvm 1| 2006/09/05 12:28:11 | [INFO] Starting XML-RPC service.
> INFO   | jvm 1| 2006/09/05 12:28:11 | [INFO] Application Supervisor is 
> deploying continuum-plexus-application-1.0.3-maestro-1.0.1.
> INFO   | jvm 1| 2006/09/05 12:28:11 | [INFO] Application 'continuum' 
> already extracted.
> INFO   | jvm 1| 2006/09/05 12:28:11 | [INFO] Deploying application 
> 'continuum' at 
> '/usr/local/maestro-1.0.1/project-server/

include jar(s) when packaging

2006-09-07 Thread Richard Fagot

Hi all,

  I tried to package my project including a jar that is a dependency 
for the project. To do this I used the scope compile in the pom.xml but 
the jar does not appear in the project jar. What's wrong ?



cheers.

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



[solved] product codes at java 1.4, test sources at java 1.5

2006-09-07 Thread Nicolas De Loof


I solved the issue of compiling the application code for Java 1.3 AND 
using java5 for tests :


Application code is compiled based on java 1.3 using compiler 
bootclasspath argument.


Tests are compiled by adding a compiler execution prior to test-phase 
(as I didn't find a way to configure testCompile to use a != configuration).


Here is my POM :


   org.apache.maven.plugins
   maven-compiler-plugin
   
   1.3
   1.3
   
   
   
${settings.localRepository}/com/sun/rt/1.3.1_08/rt-1.3.1_08.jar

   
   
   
   
   
   compile-tests
   process-test-sources
   
   testCompile
   
   
   1.5
   1.5
   
   
   ${java.home}/lib/rt.jar
   
   
   
   
   
   
   
   com.sun
   rt
   1.3.1_08
   
   
   


Nico.




This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



Re: How to build JEE 5 EJB-JARs?

2006-09-07 Thread Markus KARG
Alexandre Russel wrote:
>> According to "BetterBuildsWithMaven.pdf" I switched from
>> ejb to ejb3. Unfortunately
>> 
> change it to jar.
> Alex
>   
You mean there is no difference between ejb3 and jar? For what is ejb3
good then?

Markus


smime.p7s
Description: S/MIME Cryptographic Signature


Re: localRepository in user settings.xml

2006-09-07 Thread Emmanuel Venisse

M2_HOME=path to maven home
and PATH=%M2_HOME%/bin;%PATH%

Borut Bolčina a écrit :

What system variables concerning maven do you have?

2006/9/7, Emmanuel Venisse <[EMAIL PROTECTED]>:


Weird, I use it and it works fine.

Emmanuel

Borut Bolčina a écrit :
> Tried with no success. In continuation - nothing from 
c:\m2\settings.xml

is
> merged into the effective settings. This only happens if user settings
are
> at default (~/.m2) location.
>
> 2006/9/7, Emmanuel Venisse <[EMAIL PROTECTED]>:
>>
>> Try this:
>>
>> 
>>
>> C:/m2/repository
>> 
>>
>> Emmanuel
>>
>> Borut Bolčina a écrit :
>> > Hello,
>> >
>> > I want my local repository to be at C:\m2\repository so I included
>> >
>> > 
>> > 
>> >C:\m2\repository
>> > 
>> >
>> > in settings.xml in C:\m2\settings.xml
>> >
>> > mvn help:effective-settings
>> >
>> > spits out
>> >
>> > [INFO] [help:effective-settings]
>> > [INFO]
>> > Effective settings:
>> >
>> > 
>> >  C:\Documents and
>> > Settings\borutb\.m2\repository
>> >  
>> > 
>> >
>> > which is not correct. This is the default. But if I put
>> >  in
>> > conf/settings.xml then it works. Why my user settings are not
>> everriding
>> > the
>> > default ones?
>> >
>> > Cheers,
>> > Borut
>> >
>>
>>
>> -
>> 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: SCM, changelog and subversion

2006-09-07 Thread Rémy Sanlaville


> Nice, but i found any references that explain the scm section in the
> pom.xmland particularly the developerConnection node and how to manage
> it if you
> have several developer.

if you have one or several developer, the scm url is the same is you don't
put a username in it. It isn't necessary with svn because username/password.
If you want to add a username different for each developper in scm url,
you can user a property like ${username} and you define it in your
settings.xml



Ok, it's clearer now.



Else I tried the maven-changelog-plugin. It's very nice.
> I don't know if it is normal but I noticed
>  - If I want to regenerate change log reports (because I changed the
> configuration...), I need to clean the project before else the reports
is
> not update.

it isn't updated so the connection to the scm is saved.
In my opinion, using a clean build is a good practice.



Ok, but it could be nice to delete just what it needed, not all the target
directory.



 - I have to add the  section in my pom for the Developer
> Activity Report else this report is empty.

developers are necessary, because we use them in the 3 reports of
changelog plugin. But instead of an empty screen, we must have a text that
explain that no developers are in pom. Can you file an issue for this?


Done !
http://jira.codehaus.org/browse/MCHANGELOG-49

Thanks again !


RE: Maven compile error mystery

2006-09-07 Thread rudy.bistrovich
Yeah.  I think this is actually an issue where Eclipse can magically handle 
this but not javac.  Upon further investigation javac fails with the same 
error.  Sorry for wasting anyone's time.

--Rudy

-Original Message-
From: Rémy Sanlaville [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 07, 2006 10:31 AM
To: Maven Users List
Subject: Re: Maven compile error mystery

It seems that you used java 1.5.
Do you specify it in your pom ?

   
org.apache.maven.plugins
maven-compiler-plugin

  1.5
  1.5

   


2006/9/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> Hey guys,
>
>
>
> For some reason I'm getting  a compile error from Maven for this code
> that compiles fine in eclipse, with javac, and with ant.  Maven is the
> only thing that reports this error.
>
> Anyone have any ideas?
>
>
>
> Here is the error:
>
> [INFO]
> 
>
> [ERROR] BUILD FAILURE
>
> [INFO]
> 
>
> [INFO] Compilation failure
>
>
>
> C:\eclipse_workspace\Medical Litigator -
> Common\src\main\java\com\thomson\west\medlit\util\CollectionUtils.java:[
> 70,34] incompatible types
>
> found   : java.lang.Object[][]
>
> required: T[][]
>
>
>
> C:\eclipse_workspace\Medical Litigator -
> Common\src\main\java\com\thomson\west\medlit\util\CollectionUtils.java:[
> 145,34] incompatible types
>
> found   : java.lang.Object[][]
>
> required: T[][]
>
>
>
>
>
> [INFO]
> 
>
> [DEBUG] Trace
>
> org.apache.maven.BuildFailureException: Compilation failure
>
>   at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
> LifecycleExecutor.java:555)
>
>   at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
> ycle(DefaultLifecycleExecutor.java:475)
>
>   at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
> ifecycleExecutor.java:454)
>
>   at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
> Failures(DefaultLifecycleExecutor.java:306)
>
>   at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:273)
>
>   at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
> ycleExecutor.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.jav
> a:39)
>
>   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
>
>   at java.lang.reflect.Method.invoke(Method.java:585)
>
>   at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>
>   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>
>   at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>
>   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>
> Caused by: org.apache.maven.plugin.CompilationFailureException:
> Compilation failure
>
>   at
> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMoj
> o.java:505)
>
>   at
> org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:111)
>
>   at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
> nager.java:412)
>
>   at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
> LifecycleExecutor.java:534)
>
>   ... 16 more
>
>
>
> Here is a snippet of the code that is causing it:
>
>
>
>   public static  T[][] splitTypedArray( T[] originalArray, int
> arraySize ) {
>
> return cast2DArray( originalArray.getClass(),
> splitArray(originalArray, arraySize) );
>
>   }
>
>
>
>   public static  T[][] cast2DArray(Class clazz,
> Object[][] array )
>
> throws ClassCastException {
>
> //this is safe( since we are giving T.class to
> Array.newInstance.
>
> //the problem is that Array.newInstance() is not genericized
> as it should be.
>
> T[][] newArray = (T[][])Array.newInstance( clazz,
> array.length );
>
> for(int i=0; i
>   //cast each sub-array and add it to our new array.
>
>   newArray[i] = clazz.cast( array[i] );
>
>
>
> return newArray;
>
>   }
>
> }
>
>
>

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



Re: localRepository in user settings.xml

2006-09-07 Thread Borut Bolčina

What system variables concerning maven do you have?

2006/9/7, Emmanuel Venisse <[EMAIL PROTECTED]>:


Weird, I use it and it works fine.

Emmanuel

Borut Bolčina a écrit :
> Tried with no success. In continuation - nothing from c:\m2\settings.xml
is
> merged into the effective settings. This only happens if user settings
are
> at default (~/.m2) location.
>
> 2006/9/7, Emmanuel Venisse <[EMAIL PROTECTED]>:
>>
>> Try this:
>>
>> 
>>
>> C:/m2/repository
>> 
>>
>> Emmanuel
>>
>> Borut Bolčina a écrit :
>> > Hello,
>> >
>> > I want my local repository to be at C:\m2\repository so I included
>> >
>> > 
>> > 
>> >C:\m2\repository
>> > 
>> >
>> > in settings.xml in C:\m2\settings.xml
>> >
>> > mvn help:effective-settings
>> >
>> > spits out
>> >
>> > [INFO] [help:effective-settings]
>> > [INFO]
>> > Effective settings:
>> >
>> > 
>> >  C:\Documents and
>> > Settings\borutb\.m2\repository
>> >  
>> > 
>> >
>> > which is not correct. This is the default. But if I put
>> >  in
>> > conf/settings.xml then it works. Why my user settings are not
>> everriding
>> > the
>> > default ones?
>> >
>> > Cheers,
>> > Borut
>> >
>>
>>
>> -
>> 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: SCM, changelog and subversion

2006-09-07 Thread Emmanuel Venisse



Rémy Sanlaville a écrit :


> Any ideas for the point (1)
> (1) I don't find too much documentation that explain the scm section.
> Don't you have a link ?

http://maven.apache.org/scm/subversion.html



Nice, but i found any references that explain the scm section in the
pom.xmland particularly the developerConnection node and how to manage
it if you
have several developer.


if you have one or several developer, the scm url is the same is you don't put a username in it. It 
isn't necessary with svn because username/password.
If you want to add a username different for each developper in scm url, you can user a property like 
${username} and you define it in your settings.xml




Else I tried the maven-changelog-plugin. It's very nice.
I don't know if it is normal but I noticed
 - If I want to regenerate change log reports (because I changed the
configuration...), I need to clean the project before else the reports is
not update.


it isn't updated so the connection to the scm is saved.
In my opinion, using a clean build is a good practice.


 - I have to add the  section in my pom for the Developer
Activity Report else this report is empty.


developers are necessary, because we use them in the 3 reports of changelog plugin. But instead of 
an empty screen, we must have a text that explain that no developers are in pom. Can you file an 
issue for this?


Emmanuel


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



RE: Problem with maven-aspectj-plugin version 4.0

2006-09-07 Thread Orford, Ian
Thanks for the suggestion. I've upgraded to -beta3 and changed my postGoal
to a preGoal.

The output looks different now, but the effect is essentially the same
"maven test" works, but "maven site" gets into this loop.


[echo] Generating the Unit Tests..
junit-report:report:
test:test:
java:prepare-filesystem:

java:compile:
aspectj:init:

aspectj:compile:

aspectj:test-compile:
java:prepare-filesystem:

java:compile:
aspectj:init:

aspectj:compile:

aspectj:test-compile:
java:prepare-filesystem:

java:compile:
aspectj:init:

aspectj:compile:

aspectj:test-compile:
java:prepare-filesystem:

java:compile:
aspectj:init:

aspectj:compile:

aspectj:test-compile:
java:prepare-filesystem:

java:compile:
aspectj:init: 

-Original Message-
From: Lukas Theussl [mailto:[EMAIL PROTECTED] 
Sent: 07 September 2006 13:24
To: Maven Users List
Subject: Re: Problem with maven-aspectj-plugin version 4.0

Shouldn't aspectj be called as a preGoal of java:compile? I would also try
to upgrade to Maven 1.1-beta-3, a lot has changed between beta-2 and beta-3!

HTH,
-Lukas


Orford, Ian wrote:
> I'm using Maven 1.1-beta-2. I recently had to upgrade the aspectj 
> plugin to version 4.0 because I was getting a compile error and needed 
> to use aspectj 1.5.
> 
> I've got the standard post-goal hool in my maven.xml file...
> 
> 
> 
> 
> 
> If I compile using "maven test" it works fine. However if I use "maven
site"
> it seems to get stuck in a loop. I've looked at the jelly for the 
> plugin and it seems to be recursively calling the java:compile goal in 
> the aspectj:test-compile goal. The piece of code is:
>   
> 
>   
> 
> 
>   imo:attaining java:compile goal
>   
>   imo:finished java:compile goal
>   
>refid="build.dest"/>
> 
>   
> 
> So, it's clear that when building "site", "maven.aspectj.dest" isnt 
> setup. I tried adding
>   maven.aspectj.dest = ${maven.build.dest} In my project.properties, 
> but it didn't help.
> 
> The aspectj related properties I have set are:
>   maven.aspectj.source=1.4
>   maven.aspectj.lint=ignore
>   maven.aspectj.maxmem=512m
>   maven.aspectj.fork=true
> 
> 
> I include output from "maven test" and "maven site" below.
> 
> Any help appreciated,
> 
> Regards,
> Ian Orford
> 
>

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



The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express 
written permission of the sender. If you are not the intended recipient, please 
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.dresdnerkleinwort.com/disc/email/ or contact the sender. 



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



Re: localRepository in user settings.xml

2006-09-07 Thread Emmanuel Venisse

Weird, I use it and it works fine.

Emmanuel

Borut Bolčina a écrit :

Tried with no success. In continuation - nothing from c:\m2\settings.xml is
merged into the effective settings. This only happens if user settings are
at default (~/.m2) location.

2006/9/7, Emmanuel Venisse <[EMAIL PROTECTED]>:


Try this:


   
C:/m2/repository


Emmanuel

Borut Bolčina a écrit :
> Hello,
>
> I want my local repository to be at C:\m2\repository so I included
>
> 
> 
>C:\m2\repository
> 
>
> in settings.xml in C:\m2\settings.xml
>
> mvn help:effective-settings
>
> spits out
>
> [INFO] [help:effective-settings]
> [INFO]
> Effective settings:
>
> 
>  C:\Documents and
> Settings\borutb\.m2\repository
>  
> 
>
> which is not correct. This is the default. But if I put
>  in
> conf/settings.xml then it works. Why my user settings are not 
everriding

> the
> default ones?
>
> Cheers,
> Borut
>


-
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 compile error mystery

2006-09-07 Thread Rémy Sanlaville

It seems that you used java 1.5.
Do you specify it in your pom ?

  
   org.apache.maven.plugins
   maven-compiler-plugin
   
 1.5
 1.5
   
  


2006/9/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:


Hey guys,



For some reason I'm getting  a compile error from Maven for this code
that compiles fine in eclipse, with javac, and with ant.  Maven is the
only thing that reports this error.

Anyone have any ideas?



Here is the error:

[INFO]


[ERROR] BUILD FAILURE

[INFO]


[INFO] Compilation failure



C:\eclipse_workspace\Medical Litigator -
Common\src\main\java\com\thomson\west\medlit\util\CollectionUtils.java:[
70,34] incompatible types

found   : java.lang.Object[][]

required: T[][]



C:\eclipse_workspace\Medical Litigator -
Common\src\main\java\com\thomson\west\medlit\util\CollectionUtils.java:[
145,34] incompatible types

found   : java.lang.Object[][]

required: T[][]





[INFO]


[DEBUG] Trace

org.apache.maven.BuildFailureException: Compilation failure

  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:555)

  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:475)

  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:454)

  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:306)

  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)

  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.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.jav
a:39)

  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

  at java.lang.reflect.Method.invoke(Method.java:585)

  at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

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

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

Caused by: org.apache.maven.plugin.CompilationFailureException:
Compilation failure

  at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMoj
o.java:505)

  at
org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:111)

  at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:412)

  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:534)

  ... 16 more



Here is a snippet of the code that is causing it:



  public static  T[][] splitTypedArray( T[] originalArray, int
arraySize ) {

return cast2DArray( originalArray.getClass(),
splitArray(originalArray, arraySize) );

  }



  public static  T[][] cast2DArray(Class clazz,
Object[][] array )

throws ClassCastException {

//this is safe( since we are giving T.class to
Array.newInstance.

//the problem is that Array.newInstance() is not genericized
as it should be.

T[][] newArray = (T[][])Array.newInstance( clazz,
array.length );

for(int i=0; i

Maven compile error mystery

2006-09-07 Thread rudy.bistrovich
Hey guys,

 

For some reason I'm getting  a compile error from Maven for this code
that compiles fine in eclipse, with javac, and with ant.  Maven is the
only thing that reports this error. 

Anyone have any ideas?

 

Here is the error:

[INFO]


[ERROR] BUILD FAILURE

[INFO]


[INFO] Compilation failure

 

C:\eclipse_workspace\Medical Litigator -
Common\src\main\java\com\thomson\west\medlit\util\CollectionUtils.java:[
70,34] incompatible types

found   : java.lang.Object[][]

required: T[][]

 

C:\eclipse_workspace\Medical Litigator -
Common\src\main\java\com\thomson\west\medlit\util\CollectionUtils.java:[
145,34] incompatible types

found   : java.lang.Object[][]

required: T[][]

 

 

[INFO]


[DEBUG] Trace

org.apache.maven.BuildFailureException: Compilation failure

  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:555)

  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:475)

  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:454)

  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:306)

  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)

  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.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.jav
a:39)

  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

  at java.lang.reflect.Method.invoke(Method.java:585)

  at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

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

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

Caused by: org.apache.maven.plugin.CompilationFailureException:
Compilation failure

  at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMoj
o.java:505)

  at
org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:111)

  at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:412)

  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:534)

  ... 16 more

 

Here is a snippet of the code that is causing it:

 

  public static  T[][] splitTypedArray( T[] originalArray, int
arraySize ) {

return cast2DArray( originalArray.getClass(),
splitArray(originalArray, arraySize) );

  }

 

  public static  T[][] cast2DArray(Class clazz,
Object[][] array ) 

throws ClassCastException {

//this is safe( since we are giving T.class to
Array.newInstance.  

//the problem is that Array.newInstance() is not genericized
as it should be.

T[][] newArray = (T[][])Array.newInstance( clazz,
array.length );

for(int i=0; i

Re: localRepository in user settings.xml

2006-09-07 Thread Borut Bolčina

Tried with no success. In continuation - nothing from c:\m2\settings.xml is
merged into the effective settings. This only happens if user settings are
at default (~/.m2) location.

2006/9/7, Emmanuel Venisse <[EMAIL PROTECTED]>:


Try this:


   
C:/m2/repository


Emmanuel

Borut Bolčina a écrit :
> Hello,
>
> I want my local repository to be at C:\m2\repository so I included
>
> 
> 
>C:\m2\repository
> 
>
> in settings.xml in C:\m2\settings.xml
>
> mvn help:effective-settings
>
> spits out
>
> [INFO] [help:effective-settings]
> [INFO]
> Effective settings:
>
> 
>  C:\Documents and
> Settings\borutb\.m2\repository
>  
> 
>
> which is not correct. This is the default. But if I put
>  in
> conf/settings.xml then it works. Why my user settings are not everriding
> the
> default ones?
>
> Cheers,
> Borut
>


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




Re: SCM, changelog and subversion

2006-09-07 Thread Rémy Sanlaville


> Any ideas for the point (1)
> (1) I don't find too much documentation that explain the scm section.
> Don't you have a link ?

http://maven.apache.org/scm/subversion.html



Nice, but i found any references that explain the scm section in the
pom.xmland particularly the developerConnection node and how to manage
it if you
have several developer.

Else I tried the maven-changelog-plugin. It's very nice.
I don't know if it is normal but I noticed
 - If I want to regenerate change log reports (because I changed the
configuration...), I need to clean the project before else the reports is
not update.
 - I have to add the  section in my pom for the Developer
Activity Report else this report is empty.

Rémy


Re: localRepository in user settings.xml

2006-09-07 Thread Emmanuel Venisse

Try this:


  
   C:/m2/repository


Emmanuel

Borut Bolčina a écrit :

Hello,

I want my local repository to be at C:\m2\repository so I included



   C:\m2\repository


in settings.xml in C:\m2\settings.xml

mvn help:effective-settings

spits out

[INFO] [help:effective-settings]
[INFO]
Effective settings:


 C:\Documents and
Settings\borutb\.m2\repository
 


which is not correct. This is the default. But if I put 
 in
conf/settings.xml then it works. Why my user settings are not everriding 
the

default ones?

Cheers,
Borut




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



localRepository in user settings.xml

2006-09-07 Thread Borut Bolčina

Hello,

I want my local repository to be at C:\m2\repository so I included



   C:\m2\repository


in settings.xml in C:\m2\settings.xml

mvn help:effective-settings

spits out

[INFO] [help:effective-settings]
[INFO]
Effective settings:


 C:\Documents and
Settings\borutb\.m2\repository
 


which is not correct. This is the default. But if I put  in
conf/settings.xml then it works. Why my user settings are not everriding the
default ones?

Cheers,
Borut


site.xml inheritence

2006-09-07 Thread Geoffrey De Smet

Are there any examples of this available?

The docs doesn't show how to make a module site.xml "extend" from the 
parent project's site.xml.


--
With kind regards,
Geoffrey De Smet


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



Re: SCM, changelog and subversion

2006-09-07 Thread Emmanuel Venisse



Rémy Sanlaville a écrit :

   > Or which svn client (on Windows XP) can I use with
maven-changelog-plugin ?

   You can install the standard svn client. You need to download it from
the official svn site :
   http://subversion.tigris.org/


Thanks Emmanuel, it works well !

The svn client can be reached at this URL
http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91


Any ideas for the point (1)
(1) I don't find too much documentation that explain the scm section.
Don't you have a link ?


http://maven.apache.org/scm/subversion.html

Emmanuel


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



Re: SCM, changelog and subversion

2006-09-07 Thread Rémy Sanlaville

   > Or which svn client (on Windows XP) can I use with
maven-changelog-plugin ?

   You can install the standard svn client. You need to download it from
the official svn site :
   http://subversion.tigris.org/


Thanks Emmanuel, it works well !

The svn client can be reached at this URL
http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91


Any ideas for the point (1)
(1) I don't find too much documentation that explain the scm section.
Don't you have a link ?

Rémy


How to tell the rar packager to create an interfaces.jar?

2006-09-07 Thread Markus KARG
The JCA 1.5 specification allows a RAR not only to contain the 
implementation.jar but also to contain an interfaces.jar containing the 
implemented interfaces. The interfaces.jar is useful for developers that 
just need to have access to the interfaces (like MDB coders) but not to 
the implementation.


Unfortunately I did not find out how to tell the RAR packager what goes 
into the interfaces.jar. It seems it doesn't support that.


What can I do?

Markus
begin:vcard
fn:Markus KARG
n:KARG;Markus
org:QUIPSY QUALITY GmbH;Entwicklung / R & D
adr:;;Stuttgarter Strasse 23;Pforzheim;Baden-Wuerttemberg;75179;Bundesrepublik Deutschland
email;internet:[EMAIL PROTECTED]
title:Staatl. gepr. Inf.
tel;work:+49-7231-9189-52
tel;fax:+49-7231-9189-59
note:QUIPSY(R) Entwicklung / R & D
x-mozilla-html:TRUE
url:http://www.quipsy.de
version:2.1
end:vcard



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Create a component with a jar

2006-09-07 Thread Emmanuel Venisse

http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html

Emmanuel

Richard Fagot a écrit :

Hi all,


   I have a jar (I don't have the sources) I want to put in my Maven2 
local repository only. And I have a project that need this jar. How can 
I do that ?



Thanks

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



Create a component with a jar

2006-09-07 Thread Richard Fagot

Hi all,


   I have a jar (I don't have the sources) I want to put in my Maven2 
local repository only. And I have a project that need this jar. How can 
I do that ?



Thanks

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



Re: Problem with maven-aspectj-plugin version 4.0

2006-09-07 Thread Lukas Theussl
Shouldn't aspectj be called as a preGoal of java:compile? I would also 
try to upgrade to Maven 1.1-beta-3, a lot has changed between beta-2 and 
beta-3!


HTH,
-Lukas


Orford, Ian wrote:

I'm using Maven 1.1-beta-2. I recently had to upgrade the aspectj plugin to
version 4.0 because I was getting a compile error and needed to use aspectj
1.5.

I've got the standard post-goal hool in my maven.xml file...





If I compile using "maven test" it works fine. However if I use "maven site"
it seems to get stuck in a loop. I've looked at the jelly for the plugin and
it seems to be recursively calling the java:compile goal in the
aspectj:test-compile goal. The piece of code is:
  

  


imo:attaining java:compile goal
  
imo:finished java:compile goal
  
  

  

So, it's clear that when building "site", "maven.aspectj.dest" isnt setup. I
tried adding
maven.aspectj.dest = ${maven.build.dest}
In my project.properties, but it didn't help.

The aspectj related properties I have set are:
maven.aspectj.source=1.4
maven.aspectj.lint=ignore
maven.aspectj.maxmem=512m
maven.aspectj.fork=true


I include output from "maven test" and "maven site" below.

Any help appreciated,

Regards,
Ian Orford




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



Re: SCM, changelog and subversion

2006-09-07 Thread Emmanuel Venisse



Rémy Sanlaville a écrit :

Hi all,

I'm trying to use 2.0-snapshot maven-changelog-plugin,  with subversion,
but i'm some trouble to configure it.

I put this scm section in my pom
   
   scm:svn:https://...
   scm:svn:https://[EMAIL PROTECTED]

   

(1) I don't find to much documentation that explain the scm section. Don't
you have a link ?
For example I'm not sure to really understand the developerConnection node
and how
to manage it if you have several developer ? Many developerConnection in 
the

pom or
one developerConnection in the pom for each developer (but you can't commit
the pom...)

Then I put the Changelog Report section
   
   
   
   org.apache.maven.plugins
   maven-changelog-plugin
   
   
   dual-report
   
   range
   30
   
   
   changelog
   file-activity
   
   
   
   
   
   

But when I run mvn site, I have the following error
[ERROR] 'svn' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.

So maven-changelog-plugin need a svn client. Normally I use TortoiseSVN
client (I am on Windows XP).

(2) It is possible to configure maven-changelog-plugin for using 
TortoiseSVN

client and how ?


You can't change it.


Or which svn client (on Windows XP) can I use with maven-changelog-plugin ?


You can install the standard svn client. You need to download it from the official svn site : 
http://subversion.tigris.org/


Emmanuel


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



Re: Why "Failed to create database"?

2006-09-07 Thread Emmanuel Venisse


jiangshachina a écrit :

I'm so puzzled about the matter.
Is it a must step for initalizing !?


The first run initialize continuum whith database/tables creation and default value initialization 
in database.




By the way, it seems that Continuum cann't refresh pages automatically!
For example, I want to build a project, and click the "build" icon. Factlly,
the build is running, but I can not find the status of the project is
changed. Because the page don't refresh itself. I must click "Show
projects", then the page turns to right.


The automatic refresh of the summary page is planned for continuum 1.1
Actually, you need to click "Show Project", but I don't recommend to use the refresh button of your 
browser.


Emmanuel



jiangshachina wrote:

The matter is happened at first run, but it seems that all is ok at
second, third... run.

a cup of Java, cheers!
Sha Jiang


Emmanuel Venisse wrote:

They are false errors. Normally your continuum works with them, isn't it?

Emmanuel

jiangshachina a écrit :

Hi,
I'm so sorry. I don't save the log.
I repeat my action, but this time, different errors are shown :(

[1]ERROR VelocityComponen - ResourceManager.getResource() parse
exception:
org.apache.velocity.exception.ParseErrorException: Lexical error:
org.apache.velocity.runtime.parser.TokenMgrError: Lexical error at line
121,
column 17.  Encountered:  after : ""

[2][WrapperSimpleAppMain] WARN  RDBMS - Error initialising derby schema
:
Schema 'SA' does not exist
ERROR 42Y07: Schema 'SA' does not exist
at org.apache.derby.iapi.error.StandardException.newException(Unknown
Source)
at
org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getSchemaDescriptor(Unknown
Source)
at
org.apache.derby.impl.sql.compile.QueryTreeNode.getSchemaDescriptor(Unknown
Source)
at
org.apache.derby.impl.sql.compile.DDLStatementNode.getSchemaDescriptor(Unknown
Source)
at org.apache.derby.impl.sql.compile.DropAliasNode.bind(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
at
org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown
Source)
at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
at
org.jpox.store.rdbms.adapter.CloudscapeAdapter.initialiseDatastore(CloudscapeAdapter.java:115)
at
org.jpox.store.rdbms.RDBMSManager.initialiseSchema(RDBMSManager.java:453)
at org.jpox.store.rdbms.RDBMSManager.(RDBMSManager.java:242)
at
org.jpox.store.rdbms.RDBMSManagerFactory.getStoreManager(RDBMSManagerFactory.java:59)
at
org.jpox.AbstractPersistenceManager.(AbstractPersistenceManager.java:222)
at
org.jpox.PersistenceManagerImpl.(PersistenceManagerImpl.java:34)
at
org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:916)
at
org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:891)
at
org.apache.maven.continuum.store.JdoContinuumStore.getPersistenceManager(JdoContinuumStore.java:1295)
at
org.apache.maven.continuum.store.JdoContinuumStore.getAllObjectsDetached(JdoContinuumStore.java:984)
at
org.apache.maven.continuum.store.JdoContinuumStore.getAllProjectsByNameWithBuildDetails(JdoContinuumStore.java:623)
at
org.apache.maven.continuum.DefaultContinuum.initialize(DefaultContinuum.java:1927)
at
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:16)
at
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
at
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
at
org.codehaus.plexus.DefaultPlexusContainer.loadComponentsOnStart(DefaultPlexusContainer.java:894)
at
org.codehaus.plexus.DefaultPlexusContainer.start(DefaultPlexusContainer.java:781)
at
org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.deployApplicationDirectory(DefaultApplicationDeployer.java:366)
at
org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.deployJar(DefaultApplicationDeployer.java:212)
at
org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.deploy(DefaultApplicationDeployer.java:136)
at
org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.deploy(DefaultApplicationDeployer.java:116)
at
org.codehaus.plexus.application.DefaultApplicationServer$2.onJarDiscovered(DefaultApplicationServer.java:117)
at
org.codehaus.plexus.application.supervisor.DefaultSupervisor.scanDirectory(DefaultSupervisor.java:89)
at
org.codehaus.plexus.a

changelog and changes

2006-09-07 Thread Roald Bankras
Hi All
 
What is needed for the changelog and changes plugins to get release?
 
Roald Bankras
Software Engineer
JTeam b.v.


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.1/440 - Release Date: 9/6/2006
 


Problem with maven-aspectj-plugin version 4.0

2006-09-07 Thread Orford, Ian
I'm using Maven 1.1-beta-2. I recently had to upgrade the aspectj plugin to
version 4.0 because I was getting a compile error and needed to use aspectj
1.5.

I've got the standard post-goal hool in my maven.xml file...





If I compile using "maven test" it works fine. However if I use "maven site"
it seems to get stuck in a loop. I've looked at the jelly for the plugin and
it seems to be recursively calling the java:compile goal in the
aspectj:test-compile goal. The piece of code is:
  

  


imo:attaining java:compile goal
  
imo:finished java:compile goal
  
  

  

So, it's clear that when building "site", "maven.aspectj.dest" isnt setup. I
tried adding
maven.aspectj.dest = ${maven.build.dest}
In my project.properties, but it didn't help.

The aspectj related properties I have set are:
maven.aspectj.source=1.4
maven.aspectj.lint=ignore
maven.aspectj.maxmem=512m
maven.aspectj.fork=true


I include output from "maven test" and "maven site" below.

Any help appreciated,

Regards,
Ian Orford

>> OUTPUT FROM maven test 


build:start:

java:prepare-filesystem:

java:compile:
[echo] Compiling to C:\Dev\SVN\ewarningtools\EWT/target/classes
[echo]
==

  NOTE: Targetting JVM 1.4, classes
  will not run on earlier JVMs

==

Running post goal: java:compile
aspectj:init:

aspectj:compile:

aspectj:test-compile:
[echo] imo1
[echo] imo:in first if

aspectj:


java:jar-resources:

test:prepare-filesystem:

test:test-resources:

test:compile:

test:test:






>> OUTPUT FROM maven site 
maven-jdepend-plugin:report:
java:prepare-filesystem:

java:compile:
[echo] Compiling to C:\Dev\SVN\ewarningtools\EWT/target/classes
[echo]
==

  NOTE: Targetting JVM 1.4, classes
  will not run on earlier JVMs

==

Running post goal: java:compile
aspectj:init:

aspectj:compile:

aspectj:test-compile:
[echo] imo1
[echo] imo:in first if

aspectj:



[echo] Generating the Unit Tests...
junit-report:report:
java:prepare-filesystem:

java:compile:
[echo] Compiling to C:\Dev\SVN\ewarningtools\EWT/target/classes
[echo]
==

  NOTE: Targetting JVM 1.4, classes
  will not run on earlier JVMs

==

Running post goal: java:compile
aspectj:init:

aspectj:compile:

aspectj:test-compile:
[echo] imo1
[echo] imo:in first if
[echo] imo:attaining java:compile goal
java:prepare-filesystem:

java:compile:
[echo] Compiling to C:\Dev\SVN\ewarningtools\EWT/target/classes
[echo]
==

  NOTE: Targetting JVM 1.4, classes
  will not run on earlier JVMs

==




The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express 
written permission of the sender. If you are not the intended recipient, please 
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.dresdnerkleinwort.com/disc/email/ or contact the sender. 



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



Re: FTP deployment of ear in maven1.0.2

2006-09-07 Thread Arnaud HERITIER

There was some known bugs with ftp tasks in maven 1.0.X.
It was resolved in m1.1

In m1.0 you have to add as dependencies CommonsNet, and some other jars (see
the ant:ftp task doc)


On 9/7/06, neeraj daffodil <[EMAIL PROTECTED]> wrote:


hi all i want to deploy the ear file in remote ftp server by using
following
code in maven.xml


  






  
  

After this i got the following result

__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

BUILD SUCCESSFUL
Total time: 3 seconds
Finished at: Thu Sep 07 16:49:34 GMT+05:30 2006

but nothing is deployed in the remote server

after that i tried this


  





Testing FTP end  


  
  

and got the result

__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

build:start:

ftpcopy:
[echo]
Testing FTP end 
BUILD SUCCESSFUL
Total time: 3 seconds

nothing deployed and why this come i do not know ,can any one know why
this
is happend and how i can achieve my task

any link and any kind of help is most welcome

Regards

Neeraj Singh Bisht

+91 09811921970




FTP deployment of ear in maven1.0.2

2006-09-07 Thread neeraj daffodil

hi all i want to deploy the ear file in remote ftp server by using following
code in maven.xml


 

   




 
 

After this i got the following result

__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

BUILD SUCCESSFUL
Total time: 3 seconds
Finished at: Thu Sep 07 16:49:34 GMT+05:30 2006

but nothing is deployed in the remote server

after that i tried this


 

   



Testing FTP end  


 
 

and got the result

__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

build:start:

ftpcopy:
[echo]
Testing FTP end 
BUILD SUCCESSFUL
Total time: 3 seconds

nothing deployed and why this come i do not know ,can any one know why this
is happend and how i can achieve my task

any link and any kind of help is most welcome

Regards

Neeraj Singh Bisht

+91 09811921970


phases executed twice when declaring maven-surefire-report-plugin

2006-09-07 Thread Martin Börlin
Hi!

I have a problem regarding the life cycle in Maven 2. I need to run an 
ANT-script before the package phase, i.e. in the test phase. I want to 
install the application and generate a Maven-site to a remote location, 
hence I run the folllowing Maven command:

mvn install site-deploy

Everything was fine until I added the maven-surefire-report-plugin 
into the  tag (to get the Maven surefire report html page). 
Then the phases from [resources:resources] up to and including 
[surefire:test] was executed twice, including my ANT-script.
Does any one know how to prevent Maven from running the phases from 
[resources:resources] up to and including [surefire:test] twice? Or at 
least (the most critical in my build process) how to prevent the ANT-
task from running more than once per Maven execution, (maybe using 
profiles in some way to prevent site-deploy from running the ANT-
task)? 
One obvious way is to run the commands (install and site-deploy) 
separately but I would prefer not to since the ANT-task deletes some 
stuff before the package phase... 

regards 
Martin

output when maven-surefire-report-plugin is defined in the  
tag. Note the TWO test runs, the TWO ANT task executions and the line " 
[INFO] Generate "Maven Surefire Report" report." at the end.

[INFO] 

[INFO] Building SalesTool - Presentation
[INFO]task-segment: [install, site-deploy]
[INFO] 

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Setting reports dir: C:\SalesTool\ST2.
0\test\presentation\target/surefire-reports
---
 T E S T S
---
[surefire] Running com.tele2.salestool.facade.test.TestMyTest
[surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.016 
sec
Results :
[surefire] Tests run: 1, Failures: 0, Errors: 0
[INFO] [antrun:run {execution: anttask}]
[INFO] Executing tasks
 [echo] ### RUNNING ANT TASK 

[INFO] Executed tasks
[INFO] [war:war]
[INFO] Exploding webapp...
[INFO] Copy webapp resources to C:\SalesTool\ST2.
0\test\presentation\target\presentation-0.1
[INFO] Assembling webapp presentation in C:\SalesTool\ST2.
0\test\presentation\target\presentation-0.1
[INFO] Generating war C:\SalesTool\ST2.
0\test\presentation\target\presentation-0.1.war
[INFO] Building war: C:\SalesTool\ST2.
0\test\presentation\target\presentation-0.1.war
[INFO] [install:install]
[INFO] Installing C:\SalesTool\ST2.
0\test\presentation\target\presentation-0.1.war to C:
\Maven\repository\com\tele2\salestool\presentation\0.1\presentation-0.1.
war
[INFO] Preparing javadoc:javadoc
[INFO] No goals needed for project - skipping
[INFO] Preparing surefire-report:report
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Setting reports dir: C:\SalesTool\ST2.
0\test\presentation\target/surefire-reports
---
 T E S T S
---
[surefire] Running com.tele2.salestool.facade.test.TestMyTest
[surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.016 
sec
Results :
[surefire] Tests run: 1, Failures: 0, Errors: 0
[INFO] [antrun:run {execution: anttask}]
[INFO] Executing tasks
 [echo] ### RUNNING ANT TASK 

[INFO] Executed tasks
[INFO] [site:site]
[WARNING] Error loading report org.apache.maven.plugin.jxr.JxrReport - 
AbstractMethodError: canGenerateReport()
[INFO] Generate "Continuous Integration" report.
[INFO] Generate "Dependencies" report.
[INFO] Generate "Issue Tracking" report.
[INFO] Generate "Project License" report.
[INFO] Generate "Mailing Lists" report.
[INFO] Generate "Source Repository" report.
[INFO] Generate "Project Team" report.
[INFO] Generate "Maven Surefire Report" report.
[INFO] Generate "Source Xref" report.



output when maven-surefire-report-plugin is NOT defined in the 
 tag. Note the ONE test run, the ONE ANT task execution and 
the ABSENCE of the line " [INFO] Generate "Maven Surefire Report" 
report.". (Mind you there is a file "surefire-report.html" generated 
but without (obviously) any information about the tests and no links to 
this file fr

Re: [m1.1-rc1] javadoc does not generate anything...

2006-09-07 Thread Benoitx

Hi Arnaud,

Thanks for your reply.  Could somebody confirm that it is a JDK6 issue?

Just maven multiproject:site or maven site should do it...

Thanks

Benoit


Arnaud HERITIER wrote:
> 
> Personnally I didn't test Maven 1.x with J2SE6. Only with 1.4 and 5.
> We don't yet support it (and I'm not sure we'll do it).
> I suppose that m2 supports it ;-)
> 
> Arnaud
> 
> 
> On 9/7/06, Benoitx <[EMAIL PROTECTED]> wrote:
>>
>>
>> I though that the issue may be related to generics and calling this
>> invokeStatic on java.util.Arrays
>> but this seems to work when I try at home with JDK 1.5.08 however, I'm
>> having trouble with JDK 6-b2
>> May be the interface has changed or one cannot use the following jelly
>> code:
>>
>> > className="java.util.Locale" var="availableLocales"/>
>> > var="availableLocalesAsList">
>>   
>> 
>>
>> I have checked the API for JDK6 and it seems to be the same...
>>
>> Definitely something around this "asList" call...
>>
>> Benoit
>>
>>
>>
>> Lukas Theussl-3 wrote:
>> >
>> > Do you have an internationalized site? There seems to be an issue with
>> > determining the available locales. Please post the output of running
>> > maven with the -e parameter.
>> >
>> > Thanks,
>> > -Lukas
>> >
>> > Benoit Xhenseval wrote:
>> >> Hi
>> >>
>> >>  Thanks for your replies, You both were right... the package was
>> >> incorrect (thank Arnaud/Jeff). It was pointing to an old package that
>> has
>> >> been refactored...
>> >>  from net.objectlab.kit.common to net.objectlab.kit.datecalc.common
>> >>  (the error code is a bit cryptic...)
>> >>
>> >> I am trtying to use the dist:multiproject-bin and it looks promising
>> but
>> >> also fails on the same issue that I have with the xdoc plugin. I have
>> >> done a clean install of both the 1.1.RC1 (29 Aug), and cache... Any
>> >> suggestion?
>> >>
>> >> maven-junit-report-plugin:report:
>> >>
>> >> [echo] Generating the Source Xref...
>> >> maven-jxr-plugin:report:
>> >> [echo]
>> >>
>> >> [echo] Generating the Test Xref...
>> >> maven-jxr-plugin:report:
>> >> [echo]
>> >>
>> >> [echo] Generating the Task List...
>> >> xdoc:init-i18n:
>> >>
>> >> xdoc:init:
>> >> [echo] Generates the directory structure required for xdocs
>> >>
>> >> maven-tasklist-plugin:report:
>> >> [echo] Generating tasklist ...
>> >>
>> >>
>> >> xdoc:init-i18n:
>> >>
>> >> xdoc:init:
>> >> [echo] Generates the directory structure required for xdocs
>> >>
>> >> xdoc:i18n-validation:
>> >> [echo] Validation of the locale entries
>> >>
>> >> BUILD FAILED
>> >> File.. file:/C:/Documents and
>> >> Settings/xhensevb/.maven/cache/maven-multiproject-plugin-1.5
>> /plugin.jelly
>> >> Element... maven:reactor
>> >> Line.. 103
>> >> Column 9
>> >> Unable to obtain goal [site] -- file:/C:/Documents and
>> >> Settings/xhensevb/.maven/cache/maven-xdoc-plugin-1.10.1-SNAPSHOT/
>> >> plugin.jelly:666:70:  [Ljava.lang.Object;
>> >> Total time   : 1 minutes 4 seconds
>> >> Finished at  : 05 September 2006 16:24:55 BST
>> >>
>> >>
>> >> Thanks a lot
>> >>
>> >> Benoit.
>> >>
>> >> - Original Message 
>> >> From: Arnaud HERITIER <[EMAIL PROTECTED]>
>> >> To: Maven Users List ; Benoit Xhenseval
>> >> <[EMAIL PROTECTED]>
>> >> Sent: Tuesday, September 5, 2006 3:13:53 PM
>> >> Subject: Re: [m1.1-rc1] javadoc does not generate anything...
>> >>
>> >> Do you have classes in the package net.objectlab.kit.common ?
>> >> Can you try to comment the package in the pom ?
>> >>
>> >> You can use dist:multiproject-bin to generate a consolidated javadoc
>> for
>> >> all your projects.
>> >> I don't know why this feature isn't in the javadoc plugin.
>> >>
>> >> Arnaud
>> >>
>> >> On 9/5/06, Benoit Xhenseval <[EMAIL PROTECTED]> wrote: Hi *,
>> >>
>> >> Sorry to disturb... I cannot see what is wrong with my project.xml...
>> why
>> >> is this not generating any javadoc?
>> >> I am using the conventional directory structure:
>> >> project
>> >> |- projectA
>> >> |- src
>> >> |- main
>> >> |- java
>> >>
>> >> I've run with javadoc 1.8,
>> >>
>> >> and I get this:
>> >> [echo] sourceModifications not used.
>> >>  [echo] internal_javadoc_needed is false
>> >>  [echo] ***
>> >>  [echo] * No sources found. Javadoc not created ! *
>> >>  [echo] ***
>> >>
>> >> the maven.compile.src.set does point correctly to the top of my source
>> >> directory.
>> >>
>> >> Why am I am getting this???
>> >>
>> >> Any suggestion most welcomed!
>> >> (Also how could I generate a CONSOLIDATED set of javadoc given 3
>> >> sub-projects) THANKS!
>> >>
>> >> Benoit.
>> >>
>> >> --
>> >> DEBUG OUTPUT:
>> >>
>> >> ### Debug mode is on ###
>> >> ==
>> >> === java plugin properties ===
>> >> ==
>> >> maven.compile.encoding= []
>> >> maven.compile.src.set =
>> >

SCM, changelog and subversion

2006-09-07 Thread Rémy Sanlaville

Hi all,

I'm trying to use 2.0-snapshot maven-changelog-plugin,  with subversion,
but i'm some trouble to configure it.

I put this scm section in my pom
   
   scm:svn:https://...
   scm:svn:https://[EMAIL PROTECTED]

   

(1) I don't find to much documentation that explain the scm section. Don't
you have a link ?
For example I'm not sure to really understand the developerConnection node
and how
to manage it if you have several developer ? Many developerConnection in the
pom or
one developerConnection in the pom for each developer (but you can't commit
the pom...)

Then I put the Changelog Report section
   
   
   
   org.apache.maven.plugins
   maven-changelog-plugin
   
   
   dual-report
   
   range
   30
   
   
   changelog
   file-activity
   
   
   
   
   
   

But when I run mvn site, I have the following error
[ERROR] 'svn' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.

So maven-changelog-plugin need a svn client. Normally I use TortoiseSVN
client (I am on Windows XP).

(2) It is possible to configure maven-changelog-plugin for using TortoiseSVN
client and how ?
Or which svn client (on Windows XP) can I use with maven-changelog-plugin ?

Thanks,

Rémy


Re: Why "Failed to create database"?

2006-09-07 Thread jiangshachina

I'm so puzzled about the matter.
Is it a must step for initalizing !?

By the way, it seems that Continuum cann't refresh pages automatically!
For example, I want to build a project, and click the "build" icon. Factlly,
the build is running, but I can not find the status of the project is
changed. Because the page don't refresh itself. I must click "Show
projects", then the page turns to right.


jiangshachina wrote:
> 
> The matter is happened at first run, but it seems that all is ok at
> second, third... run.
> 
> a cup of Java, cheers!
> Sha Jiang
> 
> 
> Emmanuel Venisse wrote:
>> 
>> They are false errors. Normally your continuum works with them, isn't it?
>> 
>> Emmanuel
>> 
>> jiangshachina a écrit :
>>> Hi,
>>> I'm so sorry. I don't save the log.
>>> I repeat my action, but this time, different errors are shown :(
>>> 
>>> [1]ERROR VelocityComponen - ResourceManager.getResource() parse
>>> exception:
>>> org.apache.velocity.exception.ParseErrorException: Lexical error:
>>> org.apache.velocity.runtime.parser.TokenMgrError: Lexical error at line
>>> 121,
>>> column 17.  Encountered:  after : ""
>>> 
>>> [2][WrapperSimpleAppMain] WARN  RDBMS - Error initialising derby schema
>>> :
>>> Schema 'SA' does not exist
>>> ERROR 42Y07: Schema 'SA' does not exist
>>> at org.apache.derby.iapi.error.StandardException.newException(Unknown
>>> Source)
>>> at
>>> org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getSchemaDescriptor(Unknown
>>> Source)
>>> at
>>> org.apache.derby.impl.sql.compile.QueryTreeNode.getSchemaDescriptor(Unknown
>>> Source)
>>> at
>>> org.apache.derby.impl.sql.compile.DDLStatementNode.getSchemaDescriptor(Unknown
>>> Source)
>>> at org.apache.derby.impl.sql.compile.DropAliasNode.bind(Unknown Source)
>>> at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
>>> at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
>>> at
>>> org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown
>>> Source)
>>> at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
>>> at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
>>> at
>>> org.jpox.store.rdbms.adapter.CloudscapeAdapter.initialiseDatastore(CloudscapeAdapter.java:115)
>>> at
>>> org.jpox.store.rdbms.RDBMSManager.initialiseSchema(RDBMSManager.java:453)
>>> at org.jpox.store.rdbms.RDBMSManager.(RDBMSManager.java:242)
>>> at
>>> org.jpox.store.rdbms.RDBMSManagerFactory.getStoreManager(RDBMSManagerFactory.java:59)
>>> at
>>> org.jpox.AbstractPersistenceManager.(AbstractPersistenceManager.java:222)
>>> at
>>> org.jpox.PersistenceManagerImpl.(PersistenceManagerImpl.java:34)
>>> at
>>> org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:916)
>>> at
>>> org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:891)
>>> at
>>> org.apache.maven.continuum.store.JdoContinuumStore.getPersistenceManager(JdoContinuumStore.java:1295)
>>> at
>>> org.apache.maven.continuum.store.JdoContinuumStore.getAllObjectsDetached(JdoContinuumStore.java:984)
>>> at
>>> org.apache.maven.continuum.store.JdoContinuumStore.getAllProjectsByNameWithBuildDetails(JdoContinuumStore.java:623)
>>> at
>>> org.apache.maven.continuum.DefaultContinuum.initialize(DefaultContinuum.java:1927)
>>> at
>>> org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:16)
>>> at
>>> org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
>>> at
>>> org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
>>> at
>>> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
>>> at
>>> org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92)
>>> at
>>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
>>> at
>>> org.codehaus.plexus.DefaultPlexusContainer.loadComponentsOnStart(DefaultPlexusContainer.java:894)
>>> at
>>> org.codehaus.plexus.DefaultPlexusContainer.start(DefaultPlexusContainer.java:781)
>>> at
>>> org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.deployApplicationDirectory(DefaultApplicationDeployer.java:366)
>>> at
>>> org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.deployJar(DefaultApplicationDeployer.java:212)
>>> at
>>> org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.deploy(DefaultApplicationDeployer.java:136)
>>> at
>>> org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.deploy(DefaultApplicationDeployer.java:116)
>>> at
>>> org.codehaus.plexus.application.DefaultApplicationServer$2.onJarDiscovered(DefaultApplicationServer.java:117)
>>> at
>>> org.codehaus.plexus.application.supervisor.DefaultSupervisor.scanDirectory(DefaultSupervis

Re: [m1.1-rc1] javadoc does not generate anything...

2006-09-07 Thread Arnaud HERITIER

Personnally I didn't test Maven 1.x with J2SE6. Only with 1.4 and 5.
We don't yet support it (and I'm not sure we'll do it).
I suppose that m2 supports it ;-)

Arnaud


On 9/7/06, Benoitx <[EMAIL PROTECTED]> wrote:



I though that the issue may be related to generics and calling this
invokeStatic on java.util.Arrays
but this seems to work when I try at home with JDK 1.5.08 however, I'm
having trouble with JDK 6-b2
May be the interface has changed or one cannot use the following jelly
code:



  


I have checked the API for JDK6 and it seems to be the same...

Definitely something around this "asList" call...

Benoit



Lukas Theussl-3 wrote:
>
> Do you have an internationalized site? There seems to be an issue with
> determining the available locales. Please post the output of running
> maven with the -e parameter.
>
> Thanks,
> -Lukas
>
> Benoit Xhenseval wrote:
>> Hi
>>
>>  Thanks for your replies, You both were right... the package was
>> incorrect (thank Arnaud/Jeff). It was pointing to an old package that
has
>> been refactored...
>>  from net.objectlab.kit.common to net.objectlab.kit.datecalc.common
>>  (the error code is a bit cryptic...)
>>
>> I am trtying to use the dist:multiproject-bin and it looks promising
but
>> also fails on the same issue that I have with the xdoc plugin. I have
>> done a clean install of both the 1.1.RC1 (29 Aug), and cache... Any
>> suggestion?
>>
>> maven-junit-report-plugin:report:
>>
>> [echo] Generating the Source Xref...
>> maven-jxr-plugin:report:
>> [echo]
>>
>> [echo] Generating the Test Xref...
>> maven-jxr-plugin:report:
>> [echo]
>>
>> [echo] Generating the Task List...
>> xdoc:init-i18n:
>>
>> xdoc:init:
>> [echo] Generates the directory structure required for xdocs
>>
>> maven-tasklist-plugin:report:
>> [echo] Generating tasklist ...
>>
>>
>> xdoc:init-i18n:
>>
>> xdoc:init:
>> [echo] Generates the directory structure required for xdocs
>>
>> xdoc:i18n-validation:
>> [echo] Validation of the locale entries
>>
>> BUILD FAILED
>> File.. file:/C:/Documents and
>> Settings/xhensevb/.maven/cache/maven-multiproject-plugin-1.5
/plugin.jelly
>> Element... maven:reactor
>> Line.. 103
>> Column 9
>> Unable to obtain goal [site] -- file:/C:/Documents and
>> Settings/xhensevb/.maven/cache/maven-xdoc-plugin-1.10.1-SNAPSHOT/
>> plugin.jelly:666:70:  [Ljava.lang.Object;
>> Total time   : 1 minutes 4 seconds
>> Finished at  : 05 September 2006 16:24:55 BST
>>
>>
>> Thanks a lot
>>
>> Benoit.
>>
>> - Original Message 
>> From: Arnaud HERITIER <[EMAIL PROTECTED]>
>> To: Maven Users List ; Benoit Xhenseval
>> <[EMAIL PROTECTED]>
>> Sent: Tuesday, September 5, 2006 3:13:53 PM
>> Subject: Re: [m1.1-rc1] javadoc does not generate anything...
>>
>> Do you have classes in the package net.objectlab.kit.common ?
>> Can you try to comment the package in the pom ?
>>
>> You can use dist:multiproject-bin to generate a consolidated javadoc
for
>> all your projects.
>> I don't know why this feature isn't in the javadoc plugin.
>>
>> Arnaud
>>
>> On 9/5/06, Benoit Xhenseval <[EMAIL PROTECTED]> wrote: Hi *,
>>
>> Sorry to disturb... I cannot see what is wrong with my project.xml...
why
>> is this not generating any javadoc?
>> I am using the conventional directory structure:
>> project
>> |- projectA
>> |- src
>> |- main
>> |- java
>>
>> I've run with javadoc 1.8,
>>
>> and I get this:
>> [echo] sourceModifications not used.
>>  [echo] internal_javadoc_needed is false
>>  [echo] ***
>>  [echo] * No sources found. Javadoc not created ! *
>>  [echo] ***
>>
>> the maven.compile.src.set does point correctly to the top of my source
>> directory.
>>
>> Why am I am getting this???
>>
>> Any suggestion most welcomed!
>> (Also how could I generate a CONSOLIDATED set of javadoc given 3
>> sub-projects) THANKS!
>>
>> Benoit.
>>
>> --
>> DEBUG OUTPUT:
>>
>> ### Debug mode is on ###
>> ==
>> === java plugin properties ===
>> ==
>> maven.compile.encoding= []
>> maven.compile.src.set =
>> [C:\project\objectlabkit\datecalc-common\src\main\java]
>> ==
>> === docs properties===
>> ==
>> maven.docs.outputencoding = [ISO-8859-1]
>> ==
>> === javadoc plugin properties  ===
>> ==
>> 
>> Javadoc properties :
>> 
>> maven.javadoc.additionalparam = ["-breakiterator"]
>> maven.javadoc.extrasourcepath = []
>> maven.javadoc.debug   = [true]
>> maven.javadoc.doclet  = []
>> maven.javadoc.docletpath  = []
>> maven.javadoc.usestandardparameters = []
>> maven.javadoc.excludepackagenames = []
>> maven.j

Re: [m1.1-rc1] javadoc does not generate anything...

2006-09-07 Thread Benoitx

I though that the issue may be related to generics and calling this
invokeStatic on java.util.Arrays 
but this seems to work when I try at home with JDK 1.5.08 however, I'm
having trouble with JDK 6-b2
May be the interface has changed or one cannot use the following jelly code:



  


I have checked the API for JDK6 and it seems to be the same...

Definitely something around this "asList" call...

Benoit



Lukas Theussl-3 wrote:
> 
> Do you have an internationalized site? There seems to be an issue with 
> determining the available locales. Please post the output of running 
> maven with the -e parameter.
> 
> Thanks,
> -Lukas
> 
> Benoit Xhenseval wrote:
>> Hi
>>  
>>  Thanks for your replies, You both were right... the package was
>> incorrect (thank Arnaud/Jeff). It was pointing to an old package that has
>> been refactored...
>>  from net.objectlab.kit.common to net.objectlab.kit.datecalc.common
>>  (the error code is a bit cryptic...)
>> 
>> I am trtying to use the dist:multiproject-bin and it looks promising but
>> also fails on the same issue that I have with the xdoc plugin. I have
>> done a clean install of both the 1.1.RC1 (29 Aug), and cache... Any
>> suggestion?
>> 
>> maven-junit-report-plugin:report:
>> 
>> [echo] Generating the Source Xref...
>> maven-jxr-plugin:report:
>> [echo]
>> 
>> [echo] Generating the Test Xref...
>> maven-jxr-plugin:report:
>> [echo]
>> 
>> [echo] Generating the Task List...
>> xdoc:init-i18n:
>> 
>> xdoc:init:
>> [echo] Generates the directory structure required for xdocs
>> 
>> maven-tasklist-plugin:report:
>> [echo] Generating tasklist ...
>> 
>> 
>> xdoc:init-i18n:
>> 
>> xdoc:init:
>> [echo] Generates the directory structure required for xdocs
>> 
>> xdoc:i18n-validation:
>> [echo] Validation of the locale entries
>> 
>> BUILD FAILED
>> File.. file:/C:/Documents and
>> Settings/xhensevb/.maven/cache/maven-multiproject-plugin-1.5/plugin.jelly
>> Element... maven:reactor
>> Line.. 103
>> Column 9
>> Unable to obtain goal [site] -- file:/C:/Documents and
>> Settings/xhensevb/.maven/cache/maven-xdoc-plugin-1.10.1-SNAPSHOT/
>> plugin.jelly:666:70:  [Ljava.lang.Object;
>> Total time   : 1 minutes 4 seconds
>> Finished at  : 05 September 2006 16:24:55 BST
>>  
>> 
>> Thanks a lot 
>> 
>> Benoit.
>> 
>> - Original Message 
>> From: Arnaud HERITIER <[EMAIL PROTECTED]>
>> To: Maven Users List ; Benoit Xhenseval
>> <[EMAIL PROTECTED]>
>> Sent: Tuesday, September 5, 2006 3:13:53 PM
>> Subject: Re: [m1.1-rc1] javadoc does not generate anything...
>> 
>> Do you have classes in the package net.objectlab.kit.common ?
>> Can you try to comment the package in the pom ?
>> 
>> You can use dist:multiproject-bin to generate a consolidated javadoc for
>> all your projects.
>> I don't know why this feature isn't in the javadoc plugin. 
>> 
>> Arnaud
>> 
>> On 9/5/06, Benoit Xhenseval <[EMAIL PROTECTED]> wrote: Hi *,
>> 
>> Sorry to disturb... I cannot see what is wrong with my project.xml... why
>> is this not generating any javadoc?
>> I am using the conventional directory structure:
>> project
>> |- projectA
>> |- src
>> |- main 
>> |- java
>> 
>> I've run with javadoc 1.8,
>> 
>> and I get this:
>> [echo] sourceModifications not used.
>>  [echo] internal_javadoc_needed is false
>>  [echo] *** 
>>  [echo] * No sources found. Javadoc not created ! *
>>  [echo] ***
>> 
>> the maven.compile.src.set does point correctly to the top of my source
>> directory.
>> 
>> Why am I am getting this??? 
>> 
>> Any suggestion most welcomed!
>> (Also how could I generate a CONSOLIDATED set of javadoc given 3
>> sub-projects) THANKS!
>> 
>> Benoit.
>> 
>> --
>> DEBUG OUTPUT:
>> 
>> ### Debug mode is on ###
>> == 
>> === java plugin properties ===
>> ==
>> maven.compile.encoding= []
>> maven.compile.src.set =
>> [C:\project\objectlabkit\datecalc-common\src\main\java]
>> == 
>> === docs properties===
>> ==
>> maven.docs.outputencoding = [ISO-8859-1]
>> ==
>> === javadoc plugin properties  ===
>> == 
>> 
>> Javadoc properties :
>> 
>> maven.javadoc.additionalparam = ["-breakiterator"]
>> maven.javadoc.extrasourcepath = []
>> maven.javadoc.debug   = [true] 
>> maven.javadoc.doclet  = []
>> maven.javadoc.docletpath  = []
>> maven.javadoc.usestandardparameters = []
>> maven.javadoc.excludepackagenames = []
>> maven.javadoc.locale  = []
>> maven.javadoc.maxmemory= [512m]
>> maven.javadoc.overview= []
>> maven.javadoc.package = []
>> maven.

exporting database files through maven 1.0.2

2006-09-07 Thread manoj kaushik

hi everybody
i want to know that if there is any plugin or way in maven 1.0.2 with which
i can export database files . any help regarding this will be highly
appreciated.
thanks in advance
Manoj Kaushik


Re: override dependency used by a plugin

2006-09-07 Thread Max Bowsher

Nicolas De Loof wrote:


Hello,

I'd like to use the jibx plugin (jibx.sourceforge.net)
This maven2 plugin declares dependencies to jibx 1.0-RC1. I'd like to 
override this to use jibx 1.1 on plugin execution.


I've added a  element in my plugin configuration, to 
override jibx-run and jibx-bind to 1.1, but I always get this dependency 
resolution :


[DEBUG] Using defaults for missing POM org.jibx:jibx-bind:pom:1.1:runtime
[DEBUG]   org.jibx:jibx-bind:jar:1.1:runtime (selected for runtime)
[DEBUG]   xpp3:xpp3:jar:1.1.3.3:runtime (selected for runtime)
[DEBUG]   org.jibx:jibx-run:jar:1.0-RC1:runtime (selected for runtime)
[DEBUG]   org.apache.maven:maven-project:jar:2.0:runtime (selected for 
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected 
for runtime)
[DEBUG] 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime 
(selected for runtime)
[DEBUG]   classworlds:classworlds:jar:1.1-alpha-2:runtime (selected 
for runtime)

[DEBUG]   junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected 
for runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (selected for 
runtime)
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0:runtime 
(selected for runtime)
[DEBUG]   org.apache.maven:maven-repository-metadata:jar:2.0:runtime 
(selected for runtime)
[DEBUG]   
org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime 
(selected for runtime)
[DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime (selected for 
runtime)
[DEBUG]   org.jibx:jibx-bind:jar:1.0-RC1:runtime (removed - nearer 
found: 1.1)

[DEBUG]   bcel:bcel:jar:5.1:runtime (selected for runtime)
[DEBUG]   org.jibx:jibx-run:jar:1.1:runtime (removed - nearer found: 
1.0-RC1)
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected 
for runtime)

[DEBUG]   commons-io:commons-io:jar:1.1:runtime (selected for runtime)
[DEBUG] Configuring mojo 'org.jibx:maven-jibx-plugin:1.1:bind' -->


Those trace shows that jibx-bind:1.1 is used as expected, but not 
jibx-run, as "removed - nearer found: 1.0-RC1".
What exactly means "nearer" ? How to configure a hard dependency to 1.1 
that will not be removed ?


I have exactly the same problem, except with maven-jar-plugin and 
maven-archiver.


The following sentence from section 3.6, page 58 of "Better Builds with 
Maven" makes me worry that this is impossible:


"If multiple versions are selected at the same depth, then the result is 
undefined."


Max.



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



Maven Site : Plugin Goal Description

2006-09-07 Thread olivier . lambert
Hi All,

I 'm generating a site for a maven plugin I developed. Is there a way to
automatically generate the descriptions of all the plugin's goals and the
goals' parameters ?

Thanks
Olivier


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



Re: Problem with Assembly plugin, MANIFEST and snapshots

2006-09-07 Thread Barrie Treloar

I tried the solution explained in the JIRA :

[del]

For information, I currently used maven-assembly-plugin 2.1 ...

What's wrong ?


That version 2.1 doesn't contain the patch.
It's a snapshot release.
You need to follow the roll-your-own instructions.

Alternatively, just manually rename all the files to match the
Class-Path entry in the Manifest.

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



Re: Problem with Assembly plugin, MANIFEST and snapshots

2006-09-07 Thread olivier . lambert
Thanks for your reply !

I tried the solution explained in the JIRA :

Replacing the value of the attribute  in the
assembly descriptor

${artifactId}-${version}.${extension}

by

${artifactId}-${baseVersion}.${extension}

... but nothing changed ... the version contains the timestamp ...

For information, I currently used maven-assembly-plugin 2.1 ...

What's wrong ?

On 9/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
> Hi All,
>
> I have a problem but I don't know if the cause is the assembly plugin,
the
> jar plugin that creates the MANIFEST or the mechanism that manage
snapshot
> versions.
>
> I explain :
>
> 1)
> I have 2 projects : prjA dependding on prjB
> => in the pom.xml of prjA I have a dependency to prjB
> 
>   myGroupId
>   prjB
>   1.0.0-SNAPSHOT
>   compile
> 
> Very important : the dependency is a SNAPSHOT version (build by continuum
> on a snapshot repository)
>
> 2)
> In prjA, I configure the jar plugin to create a MANIFEST file that
contains
> attributes "Main-Class" and "Class-Path".
> The value of the "Class-Path" attribute is set by Maven to
> "prjB-1.0.0-SNAPSHOT.jar" ... I think it's correct ...
>
> 3)
> When I execute the "mvn assembly:assembly" task, the zip contains
> prjA-1.0.0-SNAPSHOT.jar (which is correct)
> prjB-1.0.0-20060902.020557-2.jar (which is not correct) => does not
> correspond to the classpath put in the manifest by Maven
>
> How can I resolve this problem ?

It's a known issue.
See JIRA.

http://jira.codehaus.org/browse/MJAR-28
http://jira.codehaus.org/browse/MASSEMBLY-67
http://jira.codehaus.org/browse/MNG-2456

The solution is as per
http://jira.codehaus.org/browse/MASSEMBLY-67#action_72144

Since assembly has not yet been release with this fix in it you need
to roll your own version as per
http://jira.codehaus.org/browse/MASSEMBLY-67#action_72435


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



Ant Maven 1.0.2 FTP

2006-09-07 Thread neeraj daffodil

Hi all
   i am using ant build file to transfer the file to remote ftp server
and i am able to do ,but if i try to call the build file in maven it show
error
but before this i called the ant file in my maven 1.0.2 maven.xml file and
that time it work
by following


 
   
 


but it is not working in case of ftp
I want to know there is any other way to do ftp task in maven 1.0.2 ,or
there is any plugin available for ftp

how i can achieve this task  can any one know

Regards
Neeraj Singh Bisht


Re:Where to put native libraries so maven can find them?

2006-09-07 Thread Christophe Deneux

Hi Dave,

You can configure the surefire plugin to update the system path to add the 
output directory. Here an example
for Windows:

  
 ${basedir}\target;${java.library.path}
  


Christophe DENEUX
Capgemini Sud - PACA - Nice


-- Initial Header ---

>From  : "Dave Hoffer" [EMAIL PROTECTED]
To  : "Maven Users List" users@maven.apache.org
Cc  : 
Date  : Wed, 6 Sep 2006 15:58:51 -0400
Subject : Where to put native libraries so maven can find them?

> Does the maven directory structure specify where native libraries (DLL)
> should be located so, for example, the surefire plugin can find them?
> If not, how can I specify in my pom where these are?
> 
>  
> 
> -dh
> 
> 


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



Re: Problem with Assembly plugin, MANIFEST and snapshots

2006-09-07 Thread Barrie Treloar

On 9/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Hi All,

I have a problem but I don't know if the cause is the assembly plugin, the
jar plugin that creates the MANIFEST or the mechanism that manage snapshot
versions.

I explain :

1)
I have 2 projects : prjA dependding on prjB
=> in the pom.xml of prjA I have a dependency to prjB

  myGroupId
  prjB
  1.0.0-SNAPSHOT
  compile

Very important : the dependency is a SNAPSHOT version (build by continuum
on a snapshot repository)

2)
In prjA, I configure the jar plugin to create a MANIFEST file that contains
attributes "Main-Class" and "Class-Path".
The value of the "Class-Path" attribute is set by Maven to
"prjB-1.0.0-SNAPSHOT.jar" ... I think it's correct ...

3)
When I execute the "mvn assembly:assembly" task, the zip contains
prjA-1.0.0-SNAPSHOT.jar (which is correct)
prjB-1.0.0-20060902.020557-2.jar (which is not correct) => does not
correspond to the classpath put in the manifest by Maven

How can I resolve this problem ?


It's a known issue.
See JIRA.

http://jira.codehaus.org/browse/MJAR-28
http://jira.codehaus.org/browse/MASSEMBLY-67
http://jira.codehaus.org/browse/MNG-2456

The solution is as per http://jira.codehaus.org/browse/MASSEMBLY-67#action_72144

Since assembly has not yet been release with this fix in it you need
to roll your own version as per
http://jira.codehaus.org/browse/MASSEMBLY-67#action_72435

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



override dependency used by a plugin

2006-09-07 Thread Nicolas De Loof


Hello,

I'd like to use the jibx plugin (jibx.sourceforge.net)
This maven2 plugin declares dependencies to jibx 1.0-RC1. I'd like to 
override this to use jibx 1.1 on plugin execution.


I've added a  element in my plugin configuration, to 
override jibx-run and jibx-bind to 1.1, but I always get this dependency 
resolution :


[DEBUG] Using defaults for missing POM org.jibx:jibx-bind:pom:1.1:runtime
[DEBUG]   org.jibx:jibx-bind:jar:1.1:runtime (selected for runtime)
[DEBUG]   xpp3:xpp3:jar:1.1.3.3:runtime (selected for runtime)
[DEBUG]   org.jibx:jibx-run:jar:1.0-RC1:runtime (selected for runtime)
[DEBUG]   org.apache.maven:maven-project:jar:2.0:runtime (selected for 
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected 
for runtime)
[DEBUG] 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime 
(selected for runtime)
[DEBUG]   classworlds:classworlds:jar:1.1-alpha-2:runtime (selected 
for runtime)

[DEBUG]   junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected 
for runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (selected for 
runtime)
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0:runtime 
(selected for runtime)
[DEBUG]   org.apache.maven:maven-repository-metadata:jar:2.0:runtime 
(selected for runtime)
[DEBUG]   
org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime 
(selected for runtime)
[DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime (selected for 
runtime)
[DEBUG]   org.jibx:jibx-bind:jar:1.0-RC1:runtime (removed - nearer 
found: 1.1)

[DEBUG]   bcel:bcel:jar:5.1:runtime (selected for runtime)
[DEBUG]   org.jibx:jibx-run:jar:1.1:runtime (removed - nearer found: 
1.0-RC1)
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected 
for runtime)

[DEBUG]   commons-io:commons-io:jar:1.1:runtime (selected for runtime)
[DEBUG] Configuring mojo 'org.jibx:maven-jibx-plugin:1.1:bind' -->


Those trace shows that jibx-bind:1.1 is used as expected, but not 
jibx-run, as "removed - nearer found: 1.0-RC1".
What exactly means "nearer" ? How to configure a hard dependency to 1.1 
that will not be removed ?


Nico.




This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



Quality Dashboard

2006-09-07 Thread Wim Deblauwe

Hi,

reading through http://idisk.maven.org/jvanzyl/Public/presos/Feynman.pdf,
there is talk of Vincent's Dashboard. Is this a plugin that is going to be
released soon? I think many users would like a quality dashboard that can
generate graphs of your metrics (PMD, unit test pass rate, code coverage,
...) over time.

regards,

Wim