How to define analysis bundle plugin

2009-02-15 Thread Dumbo

Hi,

I'm looking for some way of bundling a few code analysis tools into one
plugin for easy management across projects. For now the only way seems to be
configuration in a parent pom, but updating becomes a hassle when a new
plugin is added to the bundle. The bundle could well be included in a parent
project.

Is there a way to:
1. create sort of a meta plugin which includes and configures a number of
other plugins?
2. update said plugin without re-release of all dependent projects?

Since these plugins only are helpers when building, I think it wouldn't be
problem to dodge the normal release procedures and allow simpler updating.

cheers
-- 
View this message in context: 
http://www.nabble.com/How-to-define-analysis-bundle-plugin-tp22020973p22020973.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: maven release plugin with git-svn?

2009-02-15 Thread Don Brown
Nah, it works great.  I wrote about it last year [1] and since then,
scm has released 1.1, which removes the need for my db release.  Been
using it since in several projects without issues.

Don

[1] http://www.jroller.com/mrdon/entry/maven_enabled_project_hosting_with

On Sun, Feb 15, 2009 at 6:20 PM, Mark Derricutt m...@talios.com wrote:
 Mmmm, that looks to be using standard git repositories, not git-svn ( local
 git but remote subversion ).

 http://utsl.gen.nz/talks/git-svn/intro.html

 I suspect I won't be able to use maven-release with a git-svn based
 repository as the pom.xml files would refer to an svn repository, but the
 checkout is git.

 On Fri, Feb 13, 2009 at 10:31 AM, Olivier Lamy ol...@apache.org wrote:

 Hi,
 It works with last version (at least scm 1.1).
 You have a sample here [1] of two projects I have tested with it.
 You have to take care of this : http://jira.codehaus.org/browse/SCM-428 .
 HTH,
 --
 Olivier
 [1] http://github.com/olamy/

 2009/2/12 Mark Derricutt m...@talios.com:
  Hi all,
 
  Does anyone know if the maven release plugin will (or can be made to work
  with) git-svn based checkouts when using subversion?  I'm suspecting not.
 
  Mark
 
  ...and then Buffy staked Edward.  The End.
 

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




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



eclipse ide not picking up profiles.xml

2009-02-15 Thread Mick Knutson
When I run my build on the command line, the profiles.xml is picked up fine,
but when I run this through eclipse 3.4.1, the properties in my profiles.xml
are not present. Any ideas?

---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring  Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---


eclipse ide not picking up profiles.xml

2009-02-15 Thread Mick Knutson
When I run my build on the command line, the profiles.xml is picked up fine,
but when I run this through eclipse 3.4.1, the properties in my profiles.xml
are not present. Any ideas?

---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring  Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---


Re: Running Groovy scripts with project's compile classpath

2009-02-15 Thread Torben S. Giesselmann

Hi there -- has nobody *ever* tried this? :-/

Regards,
- Torben



Torben S. Giesselmann wrote:

Hi there,

I'm trying to post-process some classes of my project using a Groovy 
script. During the process-classes phase, I'm executing a Groovy script 
using gmaven-plugin (1.0-rc-4).


However, loading any class from the project's classes (regular Java 
classes) fails. This code fails with a ClassNotFoundException:


[snip]

Class clz = this.getClass().forName(net.foogoo.test.maven.SomeClass)
println clz.simpleName

[snip]

net.foogoo.test.maven.SomeClass is present as a Java file and compiles 
successfully.



Here is my POM:

[snip]

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

modelVersion4.0.0/modelVersion
groupIdnet.foogoo.maven.test/groupId
artifactIdgroovy-classpath/artifactId
version0.0.1-SNAPSHOT/version

build
plugins
   
plugin

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

groupIdorg.codehaus.groovy.maven/groupId
artifactIdgmaven-plugin/artifactId
executions
execution
phaseprocess-classes/phase
goals
goalexecute/goal
/goals
configuration
scriptpath

filefile://${pom.basedir}/target/classes/file

/scriptpath
source

${pom.basedir}/src/build/groovy/ClassExplorer.groovy

/source
/configuration
/execution
/executions
/plugin
   
/plugins

/build
/project

[snip]

As you can see, I already tried adding adding target/classes to 
scriptpath, but it makes no difference. I'm somewhat clueless. Any ideas 
how to execute my script with the project's compile classpath?


Many thanks in advance!

Best regards,
- Torben





--
Torben S. Giesselmann
tsg-sw...@foogoo.net

A clear conscience is usually the sign of a bad memory.


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



Re: Multi module site deploy using file

2009-02-15 Thread Dennis Lundberg
Randall Fidler wrote:
 Hello,
 
  
 
 I have a multi-module project that seemed to deploy fine
 with SCP but not with FILE.  Inside settings.xml I've got a var which
 points to the local directory where the site files should be deployed to
 and things work fine for the parent but not the child.
 
  
 
 Parent (1.0_SNAPSHOT)   (has site in dist mgmt set to
 file://${site.dir}/${project.artifactId}/${project.version}

Does ${site.dir} start with a / ?

A file URL normally has three /-characters, like this:

file:///directory/path

This is because the host is omitted from the URL.

 
  |
 
  |
 
  - Child (1.0_SNAPSHOT) 
 
  
 
 What happens is I end up with both sites in the same directory instead
 of the child being nested under the parent, which means that the link in
 the modules section of the parent site has the wrong link for the child
 site.  It thinks the child is at {parent site directory}/Child  but as I
 said, the parent and child are at the same level.
 
  
 
 Suggestions?  As I said, the sites are structured properly deployed
 using SCP but with file it doesn't com out correctly.
 
  
 
 Regards,
 
  
 
 Randall
 
 


-- 
Dennis Lundberg

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



help with jdbc and dbunit server mapping

2009-02-15 Thread Mick Knutson
I am looking at this as a solution to externalize my db username and
password:
http://mojo.codehaus.org/dbunit-maven-plugin/examples/settings.html

But my issue is that, in my unit tests, I use dbunit and this seems that it
will map just fine, but when I run integration tests, I use a filtered
jdbc.username for example.
**
*
dbunit.dataTypeFactoryNameorg.dbunit.ext.mysql.MySqlDataTypeFactory/dbunit.dataTypeFactoryName
dbunit.operation.typeINSERT/dbunit.operation.type

jdbc.groupIdmysql/jdbc.groupId
jdbc.artifactIdmysql-connector-java/jdbc.artifactId
jdbc.version${mysql.version}/jdbc.version


hibernate.dialectorg.hibernate.dialect.MySQL5InnoDBDialect/hibernate.dialect
jdbc.driverClassNamecom.mysql.jdbc.Driver/jdbc.driverClassName

jdbc.url![CDATA[jdbc:mysql://localhost:3306/testdb?createDatabaseIfNotExist=trueamp;useUnicode=trueamp;characterEncoding=utf-8amp;sessionVariables=FOREIGN_KEY_CHECKS=0]]/jdbc.url

jdbc.usernameroot/jdbc.username
jdbc.password/jdbc.password
*

I am wondering how I could get these settings from my server in my
settings.xml ??

---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring  Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---


Re: Multi module site deploy using file

2009-02-15 Thread Mick Knutson
here is what I use:

siteUrl*file:///*/var/www/html/site/${pom.version}/siteUrl

there are 3 forward slashes before my root /var directory

---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring  Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---



On Sun, Feb 15, 2009 at 7:17 AM, Dennis Lundberg denn...@apache.org wrote:

 Randall Fidler wrote:
  Hello,
 
 
 
  I have a multi-module project that seemed to deploy fine
  with SCP but not with FILE.  Inside settings.xml I've got a var which
  points to the local directory where the site files should be deployed to
  and things work fine for the parent but not the child.
 
 
 
  Parent (1.0_SNAPSHOT)   (has site in dist mgmt set to
  file://${site.dir}/${project.artifactId}/${project.version}

 Does ${site.dir} start with a / ?

 A file URL normally has three /-characters, like this:

 file:///directory/path

 This is because the host is omitted from the URL.

 
   |
 
   |
 
   - Child (1.0_SNAPSHOT)
 
 
 
  What happens is I end up with both sites in the same directory instead
  of the child being nested under the parent, which means that the link in
  the modules section of the parent site has the wrong link for the child
  site.  It thinks the child is at {parent site directory}/Child  but as I
  said, the parent and child are at the same level.
 
 
 
  Suggestions?  As I said, the sites are structured properly deployed
  using SCP but with file it doesn't com out correctly.
 
 
 
  Regards,
 
 
 
  Randall
 
 


 --
 Dennis Lundberg

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




Re: maven release plugin with git-svn?

2009-02-15 Thread Mark Derricutt
Hrm I'll give it a go.  But all these examples I see are pure git, not
git-svn.  Time to convince $work to go all git then :)

...and then Buffy staked Edward.  The End.


On Mon, Feb 16, 2009 at 1:01 AM, Don Brown donald.br...@gmail.com wrote:

 Nah, it works great.  I wrote about it last year [1] and since then,
 scm has released 1.1, which removes the need for my db release.  Been
 using it since in several projects without issues.

 Don

 [1] http://www.jroller.com/mrdon/entry/maven_enabled_project_hosting_with

 On Sun, Feb 15, 2009 at 6:20 PM, Mark Derricutt m...@talios.com wrote:
  Mmmm, that looks to be using standard git repositories, not git-svn (
 local
  git but remote subversion ).
 
  http://utsl.gen.nz/talks/git-svn/intro.html
 
  I suspect I won't be able to use maven-release with a git-svn based
  repository as the pom.xml files would refer to an svn repository, but the
  checkout is git.
 
  On Fri, Feb 13, 2009 at 10:31 AM, Olivier Lamy ol...@apache.org wrote:
 
  Hi,
  It works with last version (at least scm 1.1).
  You have a sample here [1] of two projects I have tested with it.
  You have to take care of this : http://jira.codehaus.org/browse/SCM-428.
  HTH,
  --
  Olivier
  [1] http://github.com/olamy/
 
  2009/2/12 Mark Derricutt m...@talios.com:
   Hi all,
  
   Does anyone know if the maven release plugin will (or can be made to
 work
   with) git-svn based checkouts when using subversion?  I'm suspecting
 not.
  
   Mark
  
   ...and then Buffy staked Edward.  The End.
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

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




mvn tomcat:deploy: Out of Memory Error

2009-02-15 Thread Ole Ersoy

Hi,

I get the following when running (On linux) mvn tomcat:deploy

[ERROR] FATAL ERROR
[INFO] 
[INFO] Java heap space
[INFO] 
[INFO] Trace
java.lang.OutOfMemoryError: Java heap space



Anyone know how to fix this?

TIA,
- Ole

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



Re: mvn tomcat:deploy: Out of Memory Error

2009-02-15 Thread Paul Benedict
Perhaps you're running out of memory seriously. Set the MAVEN_OPTS
environment variable to something larger than 64M (the default) and
try again.

Example:
set MAVEN_OPTS=-Xms64m -Xmx90m

Paul

On Sun, Feb 15, 2009 at 10:19 PM, Ole Ersoy ole.er...@gmail.com wrote:
 Hi,

 I get the following when running (On linux) mvn tomcat:deploy

 [ERROR] FATAL ERROR
 [INFO]
 
 [INFO] Java heap space
 [INFO]
 
 [INFO] Trace
 java.lang.OutOfMemoryError: Java heap space
 


 Anyone know how to fix this?

 TIA,
 - Ole

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



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



Re: Prevent a build

2009-02-15 Thread Paul Benedict
You can deploy auxiliary artifacts by including their generation
before the phase:

mvn source:jar deploy

Paul

On Wed, Feb 11, 2009 at 9:07 AM, Mansour mansou...@yahoo.com wrote:
 thank you Paul. But how do I deploy it then? If I deploy, it will
 recompile and rebuild the whole thing then deploy it to remote repo.
 Right ? ?


 Paul Benedict wrote:
 Mansour,

 If you include the maven-source-plugin in your build, you can run the
 command source:jar to create a source-only jar.

 Paul

 On Tue, Feb 10, 2009 at 11:43 PM, Mansour mansou...@yahoo.com wrote:

 Hello all,
 I am having two problems. The first one is I don't want to compile the
 classes when creating the artifact (jar). I want the source only to be
 there. Later on, if I need to build a whole program and wrap it in
 assembly, Then I would like to include only the sources. How can I do
 this ?

 The second part is going through the whole build cycle (compile, test,
 package. ...etc) when I do deploy. There's no need for this, as the
 processes takes time to recreate a package again. can this be prevent.



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




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





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



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



Recursive resource filter

2009-02-15 Thread Costin Caraivan

Hello,

I'm trying to extract some files from a folder structure. However, this does
not work:
resource
directory${basedir}/src/main/java/directory
excludes
exclude**/*.java/exclude
/excludes
/resource

Basically, from a structure such as this:
com/file.g
 main/file.g
  my/whatever.java
  my/file.g
I want to make this:
com/file.g
 main/file.g
  my/file.g

Any other solutions? ant copy didn't seem to work either (or I don't know
how to make it work :) ).
-- 
View this message in context: 
http://www.nabble.com/Recursive-%3Cresource%3E-filter-tp22032880p22032880.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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