Re: How can I execute plugin X, then plugin Y, then plugin X again ?

2009-11-11 Thread boraldo

   you need to put the executions in different phases if they need a  
defined order
I don't want that phases to execute. For example clean will clean, compile
wil compile. If there any phases besides initialize that do nothing ?

Stephen Connolly-2 wrote:
 
 not the bug you think it is
 
   you need to put the executions in different phases if they need a  
 defined order
 
 the bug is allowing you to list the same plugin twice in the one  
 plugins section
 
 Sent from my [rhymes with tryPod] ;-)
 
 On 10 Nov 2009, at 17:51, Paul Benedict pbened...@apache.org wrote:
 
 This is probably a bug since the order of plugins should be respected.

 Have you checked the ticket list of 2.2.2 or 3.0-alpha-3 to see if it
 is already fixed?

 And are you running 2.2.1?

 Paul

 On Tue, Nov 10, 2009 at 11:48 AM, boraldo bora...@hotbox.ru wrote:

 Suppose I have to execute some actions after some phase.
 These actions are made plugins X and Y.
 1st action - executed by plugin X
 2nd action - executed by plugin Y
 3rd action - executed by plugin X

 I wrote the following pom:

build
plugins
plugin
artifactIdplugin-x/artifactId
executions
execution
idstep-1-x/id
phaseinitialize/phase
goals
goalgoal-x-1/goal
/goals
/execution
/executions
/plugin
plugin
artifactIdplugin-y/artifactId
executions
execution
idstep-2-y/id
phaseinitialize/phase
goals
goalgoal-y-1/goal
/goals
/execution
/executions
/plugin
plugin
artifactIdplugin-x/artifactId
executions
execution
idstep-3-x/id
phaseinitialize/phase
goals
goalgoal-x-2/goal
/goals
/execution
/executions
/plugin
/plugins
/build

 I executed:
 mvn initialize

 But the sequence of executions was wrong:
 1. step-1-x
 2. step-3-x
 3. step-2-y

 This means that each plugin executes all its executions, then the  
 next
 plugin starts to work.
 Can I corrupt such scenario ?
 --
 View this message in context:
 http://old.nabble.com/How-can-I-execute-plugin-X%2C-then-plugin-Y%2C-then-plugin-X-again---tp26287350p26287350.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



 -
 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
 
 
 

-- 
View this message in context: 
http://old.nabble.com/How-can-I-execute-plugin-X%2C-then-plugin-Y%2C-then-plugin-X-again---tp26287350p26298018.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: How do I write this preGoal?

2009-11-11 Thread Lukas Theussl


I just noticed that you have no tests in your subproject. You are thus affected by 
a backward compatibility issue that is documented on the test-plugin home page:


http://maven.apache.org/maven-1.x/plugins/test/

See if the workaround given there can help you...

HTH,
-Lukas


laredotornado wrote:

Hi, Using Maven 1.1.  Within my PROJECT_ROOT/service directory, I'm trying to
create a maven.xml file that will automatically create a directory whenever
someone runs the javaapp:install command.  I tried this, but the command
isn't being executed ...

project  xmlns:j=jelly:core xmlns:ant=jelly:ant
preGoal name=javaapp:install
ant:mkdir
dir=/Users/dalvarado/source/youthful/service/target/classes /
/preGoal
/project

Any ideas how to troubleshoot or write the correct pre-goal?  Below is the
project.properties file from the same directory ...

maven.multiproject.type=javaapp
maven.javaapp.jar.name=${pom.artifactId}-${pom.currentVersion}.jar
maven.javaapp.mainclass=myco.dor.dmv.driver.youthful.AddressFileProcessor
maven.javaapp.type=jar
maven.compile.target=1.5

And below that is the output of running javaapp:install from within the
service directory.  Thanks for your help, - Dave


ocho:service dalvarado$ maven javaapp:install
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1

build:start:

javaapp:prereq:

test:test:
[echo] No tests to run.

javaapp:prepare-filesystem:

javaapp:support-uberjar-bundle:

javaapp:copy-deps:
[echo] Copy dependent JARs into
/Users/dalvarado/source/youthful/service/target/javaapp/lib

javaapp:jar-resources:
Copying 5 files to /Users/dalvarado/source/youthful/service/target/javaapp

javaapp:jar:
[unzip] Expanding:
/Users/dalvarado/source/youthful/service/target/javaapp/lib/activation-1.1.jar
into /Users/dalvarado/source/youthful/service/target/javaapp
[move] Moving 1 file to
/Users/dalvarado/source/youthful/service/target/javaapp/META-INF
[unzip] Expanding:
/Users/dalvarado/source/youthful/service/target/javaapp/lib/antlr-2.7.6.jar
into /Users/dalvarado/source/youthful/service/target/javaapp
[unzip] Expanding:
/Users/dalvarado/source/youthful/service/target/javaapp/lib/cglib-nodep-2.2.jar
into /Users/dalvarado/source/youthful/service/target/javaapp
[unzip] Expanding:
/Users/dalvarado/source/youthful/service/target/javaapp/lib/client-1.4.0SP1.jar
into /Users/dalvarado/source/youthful/service/target/javaapp
[unzip] Expanding:
/Users/dalvarado/source/youthful/service/target/javaapp/lib/myco-dor-dmv-driver-matching-model-1.1.jar
into /Users/dalvarado/source/youthful/service/target/javaapp
[unzip] Expanding:
/Users/dalvarado/source/youthful/service/target/javaapp/lib/myco-dor-dmv-driver-youthful-model-1.4.1.jar
into /Users/dalvarado/source/youthful/service/target/javaapp
[unzip] Expanding:
/Users/dalvarado/source/youthful/service/target/javaapp/lib/commons-collections-3.2.jar
into /Users/dalvarado/source/youthful/service/target/javaapp
[move] Moving 1 file to
/Users/dalvarado/source/youthful/service/target/javaapp/META-INF
[unzip] Expanding:
/Users/dalvarado/source/youthful/service/target/javaapp/lib/commons-io-1.4.jar
into /Users/dalvarado/source/youthful/service/target/javaapp
[move] Moving 1 file to
/Users/dalvarado/source/youthful/service/target/javaapp/META-INF
[unzip] Expanding:
/Users/dalvarado/source/youthful/service/target/javaapp/lib/commons-lang-2.4.jar
into /Users/dalvarado/source/youthful/service/target/javaapp
[move] Moving 1 file to
/Users/dalvarado/source/youthful/service/target/javaapp/META-INF
[unzip] Expanding:
/Users/dalvarado/source/youthful/service/target/javaapp/lib/commons-logging-1.1.1.jar
into /Users/dalvarado/source/youthful/service/target/javaapp
[unzip] Expanding:
/Users/dalvarado/source/youthful/service/target/javaapp/lib/dom4j-1.6.1.jar
into /Users/dalvarado/source/youthful/service/target/javaapp
[move] Moving 1 file to
/Users/dalvarado/source/youthful/service/target/javaapp/META-INF
[unzip] Expanding:
/Users/dalvarado/source/youthful/service/target/javaapp/lib/ejb3-persistence-3.4.0.GA.jar
into /Users/dalvarado/source/youthful/service/target/javaapp
[move] Moving 1 file to
/Users/dalvarado/source/youthful/service/target/javaapp/META-INF
[unzip] Expanding:
/Users/dalvarado/source/youthful/service/target/javaapp/lib/hibernate-annotations-3.4.0.GA.jar
into /Users/dalvarado/source/youthful/service/target/javaapp
[unzip] Expanding:
/Users/dalvarado/source/youthful/service/target/javaapp/lib/hibernate-commons-annotations-3.4.0.GA.jar
into /Users/dalvarado/source/youthful/service/target/javaapp
[unzip] Expanding:
/Users/dalvarado/source/youthful/service/target/javaapp/lib/hibernate-core-3.3.1.GA.jar
into /Users/dalvarado/source/youthful/service/target/javaapp
[unzip] Expanding:
/Users/dalvarado/source/youthful/service/target/javaapp/lib/javassist-3.8.0.GA.jar
into 

Re: How can I execute plugin X, then plugin Y, then plugin X again ?

2009-11-11 Thread Anders Hammar
I don't think you understand Maven's concept of lifecycle. Please read the
following chapter to get basic understanding:
http://www.sonatype.com/books/maven-book/reference/simple-project-sect-lifecycle.html

/Anders

On Wed, Nov 11, 2009 at 09:59, boraldo bora...@hotbox.ru wrote:


you need to put the executions in different phases if they need a
 defined order
 I don't want that phases to execute. For example clean will clean, compile
 wil compile. If there any phases besides initialize that do nothing ?

 Stephen Connolly-2 wrote:
 
  not the bug you think it is
 
you need to put the executions in different phases if they need a
  defined order
 
  the bug is allowing you to list the same plugin twice in the one
  plugins section
 
  Sent from my [rhymes with tryPod] ;-)
 
  On 10 Nov 2009, at 17:51, Paul Benedict pbened...@apache.org wrote:
 
  This is probably a bug since the order of plugins should be respected.
 
  Have you checked the ticket list of 2.2.2 or 3.0-alpha-3 to see if it
  is already fixed?
 
  And are you running 2.2.1?
 
  Paul
 
  On Tue, Nov 10, 2009 at 11:48 AM, boraldo bora...@hotbox.ru wrote:
 
  Suppose I have to execute some actions after some phase.
  These actions are made plugins X and Y.
  1st action - executed by plugin X
  2nd action - executed by plugin Y
  3rd action - executed by plugin X
 
  I wrote the following pom:
 
 build
 plugins
 plugin
 artifactIdplugin-x/artifactId
 executions
 execution
 idstep-1-x/id
 phaseinitialize/phase
 goals
 goalgoal-x-1/goal
 /goals
 /execution
 /executions
 /plugin
 plugin
 artifactIdplugin-y/artifactId
 executions
 execution
 idstep-2-y/id
 phaseinitialize/phase
 goals
 goalgoal-y-1/goal
 /goals
 /execution
 /executions
 /plugin
 plugin
 artifactIdplugin-x/artifactId
 executions
 execution
 idstep-3-x/id
 phaseinitialize/phase
 goals
 goalgoal-x-2/goal
 /goals
 /execution
 /executions
 /plugin
 /plugins
 /build
 
  I executed:
  mvn initialize
 
  But the sequence of executions was wrong:
  1. step-1-x
  2. step-3-x
  3. step-2-y
 
  This means that each plugin executes all its executions, then the
  next
  plugin starts to work.
  Can I corrupt such scenario ?
  --
  View this message in context:
 
 http://old.nabble.com/How-can-I-execute-plugin-X%2C-then-plugin-Y%2C-then-plugin-X-again---tp26287350p26287350.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
 
 
 
  -
  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
 
 
 

 --
 View this message in context:
 http://old.nabble.com/How-can-I-execute-plugin-X%2C-then-plugin-Y%2C-then-plugin-X-again---tp26287350p26298018.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




Generating a Standalone App

2009-11-11 Thread Quintin Beukes
Hey,

I have to make a distribution now. It contains a bunch of modules, 2
of which are standalone applications.

How can I generate a JAR for this, which has in it's manifest a
Main-Class and Classpath attribute, and have all the libs taken from
the repo and put in a lib/ subdirectory (which would each then be
referenced in the manifest)?

This basically so I can take this distribution and run it with java -jar ?

Quintin Beukes

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



Re: How can I execute plugin X, then plugin Y, then plugin X again ?

2009-11-11 Thread Stephen Connolly
Drink the Maven Kool-aid.

You are fighting the Maven way, that is usually a sign that you are
doing something that you really do not want to do (but you just have
not realised it yet)

Perhaps if you told us what plugin-x and plugin-y do we can help...

Also, sometimes the solution is to split your module into separate modules.

Also, what you want to do is add the executions to the phase named
after their function.

So, if you are generating source code, or processing source code, you
would attach the plugin executions to the generate-sources or
process-sources phase respectively

-Stephen

2009/11/11 boraldo bora...@hotbox.ru:

   you need to put the executions in different phases if they need a
 defined order
 I don't want that phases to execute. For example clean will clean, compile
 wil compile. If there any phases besides initialize that do nothing ?

 Stephen Connolly-2 wrote:

 not the bug you think it is

   you need to put the executions in different phases if they need a
 defined order

 the bug is allowing you to list the same plugin twice in the one
 plugins section

 Sent from my [rhymes with tryPod] ;-)

 On 10 Nov 2009, at 17:51, Paul Benedict pbened...@apache.org wrote:

 This is probably a bug since the order of plugins should be respected.

 Have you checked the ticket list of 2.2.2 or 3.0-alpha-3 to see if it
 is already fixed?

 And are you running 2.2.1?

 Paul

 On Tue, Nov 10, 2009 at 11:48 AM, boraldo bora...@hotbox.ru wrote:

 Suppose I have to execute some actions after some phase.
 These actions are made plugins X and Y.
 1st action - executed by plugin X
 2nd action - executed by plugin Y
 3rd action - executed by plugin X

 I wrote the following pom:

            build
                plugins
                    plugin
                        artifactIdplugin-x/artifactId
                        executions
                            execution
                                idstep-1-x/id
                                phaseinitialize/phase
                                goals
                                    goalgoal-x-1/goal
                                /goals
                            /execution
                        /executions
                    /plugin
                    plugin
                        artifactIdplugin-y/artifactId
                        executions
                            execution
                                idstep-2-y/id
                                phaseinitialize/phase
                                goals
                                    goalgoal-y-1/goal
                                /goals
                            /execution
                        /executions
                    /plugin
                    plugin
                        artifactIdplugin-x/artifactId
                        executions
                            execution
                                idstep-3-x/id
                                phaseinitialize/phase
                                goals
                                    goalgoal-x-2/goal
                                /goals
                            /execution
                        /executions
                    /plugin
                /plugins
            /build

 I executed:
 mvn initialize

 But the sequence of executions was wrong:
 1. step-1-x
 2. step-3-x
 3. step-2-y

 This means that each plugin executes all its executions, then the
 next
 plugin starts to work.
 Can I corrupt such scenario ?
 --
 View this message in context:
 http://old.nabble.com/How-can-I-execute-plugin-X%2C-then-plugin-Y%2C-then-plugin-X-again---tp26287350p26287350.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



 -
 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




 --
 View this message in context: 
 http://old.nabble.com/How-can-I-execute-plugin-X%2C-then-plugin-Y%2C-then-plugin-X-again---tp26287350p26298018.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



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



Re: Generating a Standalone App

2009-11-11 Thread Anders Hammar
Google is amazing:
http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/

/Anders

On Wed, Nov 11, 2009 at 10:28, Quintin Beukes quin...@last.za.net wrote:

 Hey,

 I have to make a distribution now. It contains a bunch of modules, 2
 of which are standalone applications.

 How can I generate a JAR for this, which has in it's manifest a
 Main-Class and Classpath attribute, and have all the libs taken from
 the repo and put in a lib/ subdirectory (which would each then be
 referenced in the manifest)?

 This basically so I can take this distribution and run it with java -jar ?

 Quintin Beukes

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




How to delegate the execution to other Mojos?

2009-11-11 Thread Gajo Csaba

Hello,

I would like to create a maven plugin, which would delegate to other 
plugins based on parameters. Something like mvn mymojo:dotask -Dtask=xxx


and then in the dotask mojo I would see what the value of task is, and 
if it's xxx then execute Mojo1, if it's yyy then Mojo2 etc...


How can I do this?

Thanks, Csaba




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



Re: How to delegate the execution to other Mojos?

2009-11-11 Thread Stephen Connolly
Short answer: Don't

Long answer: for a mojo to extend another maven plugin, it will need
to depend on that maven plugin.  The maven plugin classloader only
loads a plugin once, and the first version loaded is the version used
forever more (until maven exits).  When a newer version of the plugin
you depend on is released, you will either force the older version on
anyone using your plugin, or the newer version will be forced on you.
In either case, the build will probably be broken in a hard to figure
out way

-Stephen

2009/11/11 Gajo Csaba csaba.g...@cosylab.com:
 Hello,

 I would like to create a maven plugin, which would delegate to other plugins
 based on parameters. Something like mvn mymojo:dotask -Dtask=xxx

 and then in the dotask mojo I would see what the value of task is, and if
 it's xxx then execute Mojo1, if it's yyy then Mojo2 etc...

 How can I do this?

 Thanks, Csaba




 -
 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: How to delegate the execution to other Mojos?

2009-11-11 Thread Gajo Csaba

OK so my use case would be

mvn do-task -Dtask=xxx

Do you suggest I change that into

mvn do-task-xxx?

Regards, Csaba


Stephen Connolly wrote:

Short answer: Don't

Long answer: for a mojo to extend another maven plugin, it will need
to depend on that maven plugin.  The maven plugin classloader only
loads a plugin once, and the first version loaded is the version used
forever more (until maven exits).  When a newer version of the plugin
you depend on is released, you will either force the older version on
anyone using your plugin, or the newer version will be forced on you.
In either case, the build will probably be broken in a hard to figure
out way

-Stephen

2009/11/11 Gajo Csaba csaba.g...@cosylab.com:
  

Hello,

I would like to create a maven plugin, which would delegate to other plugins
based on parameters. Something like mvn mymojo:dotask -Dtask=xxx

and then in the dotask mojo I would see what the value of task is, and if
it's xxx then execute Mojo1, if it's yyy then Mojo2 etc...

How can I do this?

Thanks, Csaba




-
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



maven-release-plugin: Intraproject snapshots unresolved

2009-11-11 Thread Jochen Wiedmann
Hi,

I'd like to release a project using the maven-release-plugin. Now, if
I run release:prepare, I get the following message:


[INFO] Checking dependencies and plugins for snapshots ...
There are still some remaining snapshot dependencies.: Do you want
to resolve them now? (yes/no) no: : yes
Dependency type to resolve,: specify the selection number ( 0:All
1:Project Dependencies 2:Plugins 3:Reports 4:Extensions ): (0/1/2/3)
1: : 0
Resolve All Snapshots.: 'com.tsystems.icto.tom:tom-icto-common'
set to release? (yes/no) yes: :

Sure, there are SNAPSHOT dependencies on tom-icto-common, but this is
one of the modules being released. And, as we can view from the Maven
sources itself, the release plugin should be perfectly capable to
handle that.

Any ideas what might be wrong?

Thanks,

Jochen


-- 
Germanys national anthem is the most boring in the world - how telling!

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



Re: How to delegate the execution to other Mojos?

2009-11-11 Thread Stephen Connolly
I would suggest that maybe profiles would be better suited... if you specify
the defaultGoal in the profile it gets even easier...

But to be honest, you are going against *The Maven Way™*

This is usually (but not always) a sign that you will soon be fighting
Maven, and that is a fight that you can only win with the loss of all of
your hair ;-)

-Stephen

2009/11/11 Gajo Csaba csaba.g...@cosylab.com:
 OK so my use case would be

 mvn do-task -Dtask=xxx

 Do you suggest I change that into

 mvn do-task-xxx?

 Regards, Csaba


 Stephen Connolly wrote:

 Short answer: Don't

 Long answer: for a mojo to extend another maven plugin, it will need
 to depend on that maven plugin.  The maven plugin classloader only
 loads a plugin once, and the first version loaded is the version used
 forever more (until maven exits).  When a newer version of the plugin
 you depend on is released, you will either force the older version on
 anyone using your plugin, or the newer version will be forced on you.
 In either case, the build will probably be broken in a hard to figure
 out way

 -Stephen

 2009/11/11 Gajo Csaba csaba.g...@cosylab.com:


 Hello,

 I would like to create a maven plugin, which would delegate to other
 plugins
 based on parameters. Something like mvn mymojo:dotask -Dtask=xxx

 and then in the dotask mojo I would see what the value of task is, and
 if
 it's xxx then execute Mojo1, if it's yyy then Mojo2 etc...

 How can I do this?

 Thanks, Csaba




 -
 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




debug

2009-11-11 Thread maven apache
Hi:

I have two project A and project B,and B is a web module which is to be
deployed under the servlet contain, the B has a dependency of A.
There is a servlet in A,and I config this servlet in the web.xml under the
B/web-info.
Now I want to add breakpoints in the servlet (in the project A) to get the
request raw data.
But I do not know how to debug it/
Since if it is a common web project created by the eclipse wizard,I can
start by the menu  debug on the server,but the web module created by the
maven did not have the menu.


Re: debug

2009-11-11 Thread Anders Hammar
What you want to use is remote debugging. That would be a complete
Maven-independent setup.
For Maven integration in Eclipse, I would suggest M2Eclipse.

/Anders

On Wed, Nov 11, 2009 at 11:45, maven apache apachemav...@gmail.com wrote:

 Hi:

 I have two project A and project B,and B is a web module which is to be
 deployed under the servlet contain, the B has a dependency of A.
 There is a servlet in A,and I config this servlet in the web.xml under the
 B/web-info.
 Now I want to add breakpoints in the servlet (in the project A) to get the
 request raw data.
 But I do not know how to debug it/
 Since if it is a common web project created by the eclipse wizard,I can
 start by the menu  debug on the server,but the web module created by the
 maven did not have the menu.



Re: debug

2009-11-11 Thread maven apache
2009/11/11 Anders Hammar and...@hammar.net

 What you want to use is remote debugging. That would be a complete
 Maven-independent setup.
 For Maven integration in Eclipse, I would suggest M2Eclipse.

Yes I am using m2eclipse.


 /Anders

 On Wed, Nov 11, 2009 at 11:45, maven apache apachemav...@gmail.com
 wrote:

  Hi:
 
  I have two project A and project B,and B is a web module which is to be
  deployed under the servlet contain, the B has a dependency of A.
  There is a servlet in A,and I config this servlet in the web.xml under
 the
  B/web-info.
  Now I want to add breakpoints in the servlet (in the project A) to get
 the
  request raw data.
  But I do not know how to debug it/
  Since if it is a common web project created by the eclipse wizard,I can
  start by the menu  debug on the server,but the web module created by
 the
  maven did not have the menu.
 



Re: debug

2009-11-11 Thread Adam Leggett (UPCO)
If you created your added your project vy using the maven-eclipse-plugin
i.e mvn eclipse:eclipse, it will not by default create the appropriate
eclipse web tools platform metadata that results in you being able to do
Run AsRun On Server etc.

There is helpful page on the plug-in site that shows how you can
configure your project to do this though:

http://maven.apache.org/plugins/maven-eclipse-plugin/examples/multi-module-projects.html

I think that page also includes a downloadable example to look at too.

Cheers

Adam


On Wed, 2009-11-11 at 12:36 +0100, Anders Hammar wrote:
 What you want to use is remote debugging. That would be a complete
 Maven-independent setup.
 For Maven integration in Eclipse, I would suggest M2Eclipse.
 
 /Anders
 
 On Wed, Nov 11, 2009 at 11:45, maven apache apachemav...@gmail.com wrote:
 
  Hi:
 
  I have two project A and project B,and B is a web module which is to be
  deployed under the servlet contain, the B has a dependency of A.
  There is a servlet in A,and I config this servlet in the web.xml under the
  B/web-info.
  Now I want to add breakpoints in the servlet (in the project A) to get the
  request raw data.
  But I do not know how to debug it/
  Since if it is a common web project created by the eclipse wizard,I can
  start by the menu  debug on the server,but the web module created by the
  maven did not have the menu.
 


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



Re: debug

2009-11-11 Thread maven apache
2009/11/11 Adam Leggett (UPCO) adam.legg...@upco.co.uk

 If you created your added your project vy using the maven-eclipse-plugin
 i.e mvn eclipse:eclipse, it will not by default create the appropriate

The project is created by the m2eclipse

 eclipse web tools platform metadata that results in you being able to do
 Run AsRun On Server etc.

 There is helpful page on the plug-in site that shows how you can
 configure your project to do this though:


 http://maven.apache.org/plugins/maven-eclipse-plugin/examples/multi-module-projects.html

 I think that page also includes a downloadable example to look at too.

 Cheers

 Adam


 On Wed, 2009-11-11 at 12:36 +0100, Anders Hammar wrote:
  What you want to use is remote debugging. That would be a complete
  Maven-independent setup.
  For Maven integration in Eclipse, I would suggest M2Eclipse.
 
  /Anders
 
  On Wed, Nov 11, 2009 at 11:45, maven apache apachemav...@gmail.com
 wrote:
 
   Hi:
  
   I have two project A and project B,and B is a web module which is to be
   deployed under the servlet contain, the B has a dependency of A.
   There is a servlet in A,and I config this servlet in the web.xml under
 the
   B/web-info.
   Now I want to add breakpoints in the servlet (in the project A) to get
 the
   request raw data.
   But I do not know how to debug it/
   Since if it is a common web project created by the eclipse wizard,I can
   start by the menu  debug on the server,but the web module created by
 the
   maven did not have the menu.
  


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




How to get Spring Security with Maven?

2009-11-11 Thread Christian Helmbold
Hi,

I try to integrate Springs Maven repository, but it doen't work. Specifically I 
try to integrate Spring Security 3.0.0.RC1 (package: 
org.springframework.security.authentication.encoding).

I've adde the following repositories to my pom.xml:

repositories
repository  
idcom.springsource.repository.bundles.release/id
nameSpringSource Enterprise Bundle Repository - SpringSource Bundle 
Releases/name
urlhttp://repository.springsource.com/maven/bundles/release/url
/repository 
repository
idcom.springsource.repository.bundles.external/id
nameSpringSource Enterprise Bundle Repository - External Bundle 
Releases/name
urlhttp://repository.springsource.com/maven/bundles/external/url
/repository 
repository
idspringsource-milestone/id
urlhttp://repository.springsource.com/maven/bundles/milestone/url
/repository
/repositories

And added to following dependency to the same file:

dependencies
dependency
groupIdorg.springframework/groupId
artifactIdsecurity/artifactId
version3.0.0.RC1/version
/dependency
/dependencies

But Eclipse tells me in the related class, that the type 
(org.springframework.security.authentication.encoding) cannot be resolved. If I 
run mvn compile I get BUILD SUCCESSFUL. A small file with the name 
security.core-3.0.0.RC1.jar is added to the local repository, but its size is 
only 5 kb. If I run mvn test I get the expected error:

java.lang.Error: Unresolved compilation problems: 
The import org.springframework cannot be resolved
ShaPasswordEncoder cannot be resolved to a type

How can I add Spring Security with maven to my project?

Regards,
Christian

 -- 
http://scala-forum.org/





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



RE: maven-war-plugin overlay ordering

2009-11-11 Thread Conan Cook
Hi Damon,

Thanks for replying, I can see what you're getting at.  I don't really want to 
start explicitly naming files or their locations in my poms (as the folk 
developing the files to overlay are not maven-friendly and the overlay is a 
3rd-party war) so I'll stick to using version 2.0.1.  I found a lot of 
discussion around this issue that seemed to be heading in the direction I was 
looking for, and was hoping that I could find more news on it.


Kind regards,

Conan Cook
Senior Applications Developer
Academic Technologies Group (ATG)
University of the West of England
Frenchay Campus
Bristol BS16 1QY

email: conan.c...@uwe.ac.uk
telephone: 01173 281 053


-Original Message-
From: Damon Silver [mailto:damon.sil...@diio.net] 
Sent: 10 November 2009 18:59
To: 'Maven Users List'
Subject: RE: maven-war-plugin overlay ordering

Inside your configuration for maven-war-plugin, I would do something like
this (this is untested but approximate):

...
  overlays
overlay
  idsomeOverlay/id
  groupIdfoo.bar/groupId
  artifactIdbaz.bax/artifactId
  typewar/type
  includes
includepath/to/directory/**/include
  /includes
  targetPathsomewhere/out/of/the/way/targetPath
/overlay
overlay
  !--
Empty groupId/artifactId detected as the current build.
someOverlay overlays must come before this for
webResources
block below to work properly!
  --
/overlay
  /overlays
  webResources
resource
 
directory${project.build.directory}/war/work/yourProjectsGroupId/somewhere
/out/of/the/way/directory
  targetPathnew/directory/targetPath
  includes
includefileToOverwriteWith1/include
includefileToOverwriteWith2/include
includefileToOverwriteWith3/include
  /include
/resource
  /webResources
...

- Damon

-Original Message-
From: Conan Cook [mailto:conan.c...@uwe.ac.uk] 
Sent: Tuesday, November 10, 2009 7:46 AM
To: 'users@maven.apache.org'
Subject: maven-war-plugin overlay ordering

Dear Maven Folk,

This is a query that's been asked before relating to the maven-war-plugin,
but I've done some digging and I can't find an answer, so I'd be very
grateful if anyone can point me in the right direction.

I've got a project A which depends on a war B and so I'm using an overlay.
I need to replace some of the files in B with modified versions that live in
A.  The maven-war-plugin versions 2.0 and 2.0.1 do this fine, but versions
after that don't - they overwrite the files I've got in the parent project A
with ones from B, but I never want that to happen.  

I've tried re-ordering the overlay using the overlays element, and
specifying an empty overlay to identify the current project.  I've tried
this with versions 2.1-alpha-1, 2.1-alpha-2 and 2.1-beta-1, and there is no
order I can specify the overlays in any of them to ensure that files from
the dependency do not overwrite the files in my project.  I've seen issues
that refer to this, and which say the issue is resolved (e.g.
http://jira.codehaus.org/browse/MWAR-47,
http://jira.codehaus.org/browse/MWAR-66) but I cannot find a way to achieve
the desired behaviour in any version of the plugin after 2.0.1.  There is a
currently open Major issue (http://jira.codehaus.org/browse/MWAR-149) which
describes the problem I have, but it was raised 20 months ago and nobody has
commented on it, suggesting that development effort has moved elsewhere.
Does anybody know of a way to achieve this using version 2.1-x of the
maven-war-plugin? 

Thanks very much,


Conan Cook
Senior Applications Developer
Academic Technologies Group (ATG)
University of the West of England
Frenchay Campus
Bristol BS16 1QY




This email was independently scanned for viruses by McAfee anti-virus
software and none were found

-
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



This incoming email to UWE has been independently scanned for viruses by McAfee 
anti-virus software and none were detected


This email was independently scanned for viruses by McAfee anti-virus software 
and none were found

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



[ANN] Maven Ant Plugin 2.3 Released

2009-11-11 Thread Benjamin Bentmann

The Maven team is pleased to announce the release of the Maven Ant
Plugin, version 2.3.

This plugin generates build files for Ant from a POM. See the plugin's
site for more details:

  http://maven.apache.org/plugins/maven-ant-plugin/

To use the updated plugin in your projects, you need to add the
following snippet to the plugins or plugin management section of your POM:

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-ant-plugin/artifactId
version2.3/version
  /plugin

Release Notes - Maven 2.x Ant Plugin - Version 2.3

** Bug
* [MANT-60] - Generated package task for EAR/WAR is missing
transitive dependencies

** Improvement
* [MANT-61] - Classpath generation should honour system-scope.

** New Feature
* [MANT-59] - Add support for generating build files when
packagingbundle/bundle

Enjoy,

-The Maven team


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



RE: How to get Spring Security with Maven?

2009-11-11 Thread Martin Gainty

think of this a factory and method-advising package for Web-application and 
J2EE containers (such as catalina or grizzly)
but now you need the Spring framework to work on the Plexus container

so you will need to configure and implement plexus-spring adapter
http://plexus.codehaus.org/plexus-components/plexus-spring

keep us apprised if you have any questions 
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Wed, 11 Nov 2009 13:11:36 +
 From: christian.helmb...@yahoo.de
 Subject: How to get Spring Security with Maven?
 To: users@maven.apache.org
 
 Hi,
 
 I try to integrate Springs Maven repository, but it doen't work. Specifically 
 I try to integrate Spring Security 3.0.0.RC1 (package: 
 org.springframework.security.authentication.encoding).
 
 I've adde the following repositories to my pom.xml:
 
 repositories
 repository  
 idcom.springsource.repository.bundles.release/id
 nameSpringSource Enterprise Bundle Repository - SpringSource Bundle 
 Releases/name
 urlhttp://repository.springsource.com/maven/bundles/release/url
 /repository 
 repository
 idcom.springsource.repository.bundles.external/id
 nameSpringSource Enterprise Bundle Repository - External Bundle 
 Releases/name
 urlhttp://repository.springsource.com/maven/bundles/external/url
 /repository 
 repository
 idspringsource-milestone/id
 urlhttp://repository.springsource.com/maven/bundles/milestone/url
 /repository
 /repositories
 
 And added to following dependency to the same file:
 
 dependencies
 dependency
 groupIdorg.springframework/groupId
 artifactIdsecurity/artifactId
 version3.0.0.RC1/version
 /dependency
 /dependencies
 
 But Eclipse tells me in the related class, that the type 
 (org.springframework.security.authentication.encoding) cannot be resolved. If 
 I run mvn compile I get BUILD SUCCESSFUL. A small file with the name 
 security.core-3.0.0.RC1.jar is added to the local repository, but its size 
 is only 5 kb. If I run mvn test I get the expected error:
 
 java.lang.Error: Unresolved compilation problems: 
 The import org.springframework cannot be resolved
 ShaPasswordEncoder cannot be resolved to a type
 
 How can I add Spring Security with maven to my project?
 
 Regards,
 Christian
 
  -- 
 http://scala-forum.org/
 
 
 
   
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
  
_
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141665/direct/01/

AW: How to get Spring Security with Maven?

2009-11-11 Thread Christian Helmbold
 Von: Martin Gainty mgai...@hotmail.com
 An: users@maven.apache.org
 Gesendet: Mittwoch, den 11. November 2009, 15:24:00 Uhr
 Betreff: RE: How to get Spring Security with Maven?
 
 
 think of this a factory and method-advising package for Web-application and 
 J2EE 
 containers (such as catalina or grizzly)
 but now you need the Spring framework to work on the Plexus container

I should need the Spring framework to work on a Plexus container? As far as i 
know I don't have such a container! 

 so you will need to configure and implement plexus-spring adapter
 http://plexus.codehaus.org/plexus-components/plexus-spring

Why do I need it to use Spring Security as a Maven dependency?

Regards,
Christian

-- 
http://scala-forum.org


__
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen 
Massenmails. 
http://mail.yahoo.com

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



There are no tests to run

2009-11-11 Thread MrPotatoe


Hi,

I have set up maven to run my test.

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
version2.4.3/version
configuration
includes
include${basedir}/src/**/Test*.java/include
/includes
/configuration
/plugin

I have several tests, inherited from TestCase

public class TestToy extends TestCase {
public void testPrueba(){
...

But when I run mvn test I get:

[WARNING] Not decrypting password for server 'gmr-central' due to exception
in s
ecurity handler.
Ensure that you have configured your master password file (and relocation if
app
ropriate)
See the installation instructions for details.
Cause: ***.m2\settings-security.xml (El sistem
a no puede hallar el archivo especificado)
[WARNING] Not decrypting password for server 'subversion' due to exception
in se
curity handler.
Ensure that you have configured your master password file (and relocation if
app
ropriate)
See the installation instructions for details.
Cause: ***.m2\settings-security.xml (El sistem
a no puede hallar el archivo especificado)
[INFO] Scanning for projects...
[INFO]

[INFO] Building
[INFO]task-segment: [test]
[INFO]

[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources,
i.e. build is platform dependent!
[INFO] Copying 5 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources,
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
***workspace\Proyecto\src\test\resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: ***\Proyecto\target\surefire-reports

---
 T E S T S
---
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 1 minute 16 seconds
[INFO] Finished at: Wed Nov 11 14:59:09 GMT 2009
[INFO] Final Memory: 16M/30M
[INFO]


Thanks
-- 
View this message in context: 
http://old.nabble.com/There-are-no-tests-to-run-tp26302586p26302586.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: There are no tests to run

2009-11-11 Thread Anders Hammar
I think your include line should be
include**/Test*.java/include

http://maven.apache.org/plugins/maven-surefire-plugin/examples/inclusion-exclusion.html

Then try
mvn clean test

If you still have problems, check that the surefire plugin doesn't say No
sources to compile (as it does in your post below), as that would suggest
that it doesn't find your test classes (i.e. you've put them in the wrong
directory).

/Anders

On Wed, Nov 11, 2009 at 16:14, MrPotatoe gregoriom...@gmail.com wrote:



 Hi,

 I have set up maven to run my test.

 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
version2.4.3/version
configuration
includes
include${basedir}/src/**/Test*.java/include
/includes
/configuration
 /plugin

 I have several tests, inherited from TestCase

 public class TestToy extends TestCase {
public void testPrueba(){
 ...

 But when I run mvn test I get:

 [WARNING] Not decrypting password for server 'gmr-central' due to exception
 in s
 ecurity handler.
 Ensure that you have configured your master password file (and relocation
 if
 app
 ropriate)
 See the installation instructions for details.
 Cause: ***.m2\settings-security.xml (El sistem
 a no puede hallar el archivo especificado)
 [WARNING] Not decrypting password for server 'subversion' due to exception
 in se
 curity handler.
 Ensure that you have configured your master password file (and relocation
 if
 app
 ropriate)
 See the installation instructions for details.
 Cause: ***.m2\settings-security.xml (El sistem
 a no puede hallar el archivo especificado)
 [INFO] Scanning for projects...
 [INFO]
 
 [INFO] Building
 [INFO]task-segment: [test]
 [INFO]
 
 [INFO] [resources:resources {execution: default-resources}]
 [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
 resources,
 i.e. build is platform dependent!
 [INFO] Copying 5 resources
 [INFO] [compiler:compile {execution: default-compile}]
 [INFO] Nothing to compile - all classes are up to date
 [INFO] [resources:testResources {execution: default-testResources}]
 [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
 resources,
 i.e. build is platform dependent!
 [INFO] skip non existing resourceDirectory
 ***workspace\Proyecto\src\test\resources
 [INFO] [compiler:testCompile {execution: default-testCompile}]
 [INFO] No sources to compile
 [INFO] [surefire:test {execution: default-test}]
 [INFO] Surefire report directory: ***\Proyecto\target\surefire-reports

 ---
  T E S T S
 ---
 There are no tests to run.

 Results :

 Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

 [INFO]
 
 [INFO] BUILD SUCCESSFUL
 [INFO]
 
 [INFO] Total time: 1 minute 16 seconds
 [INFO] Finished at: Wed Nov 11 14:59:09 GMT 2009
 [INFO] Final Memory: 16M/30M
 [INFO]
 

 Thanks
 --
 View this message in context:
 http://old.nabble.com/There-are-no-tests-to-run-tp26302586p26302586.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: There are no tests to run

2009-11-11 Thread Upul Godage
If you don't have the test classes in the default location maven is
looking, src/test/java, then you have to give the location.
build
testSourceDirectorysrc/test/testSourceDirectory
The includes are relative to that location, I think.

Upul

On Wed, Nov 11, 2009 at 8:44 PM, MrPotatoe gregoriom...@gmail.com wrote:


 Hi,

 I have set up maven to run my test.

 plugin
        groupIdorg.apache.maven.plugins/groupId
        artifactIdmaven-surefire-plugin/artifactId
        version2.4.3/version
        configuration
                includes
                        include${basedir}/src/**/Test*.java/include
                /includes
        /configuration
 /plugin

 I have several tests, inherited from TestCase

 public class TestToy extends TestCase {
        public void testPrueba(){
 ...

 But when I run mvn test I get:

 [WARNING] Not decrypting password for server 'gmr-central' due to exception
 in s
 ecurity handler.
 Ensure that you have configured your master password file (and relocation if
 app
 ropriate)
 See the installation instructions for details.
 Cause: ***.m2\settings-security.xml (El sistem
 a no puede hallar el archivo especificado)
 [WARNING] Not decrypting password for server 'subversion' due to exception
 in se
 curity handler.
 Ensure that you have configured your master password file (and relocation if
 app
 ropriate)
 See the installation instructions for details.
 Cause: ***.m2\settings-security.xml (El sistem
 a no puede hallar el archivo especificado)
 [INFO] Scanning for projects...
 [INFO]
 
 [INFO] Building
 [INFO]    task-segment: [test]
 [INFO]
 
 [INFO] [resources:resources {execution: default-resources}]
 [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
 resources,
 i.e. build is platform dependent!
 [INFO] Copying 5 resources
 [INFO] [compiler:compile {execution: default-compile}]
 [INFO] Nothing to compile - all classes are up to date
 [INFO] [resources:testResources {execution: default-testResources}]
 [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
 resources,
 i.e. build is platform dependent!
 [INFO] skip non existing resourceDirectory
 ***workspace\Proyecto\src\test\resources
 [INFO] [compiler:testCompile {execution: default-testCompile}]
 [INFO] No sources to compile
 [INFO] [surefire:test {execution: default-test}]
 [INFO] Surefire report directory: ***\Proyecto\target\surefire-reports

 ---
  T E S T S
 ---
 There are no tests to run.

 Results :

 Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

 [INFO]
 
 [INFO] BUILD SUCCESSFUL
 [INFO]
 
 [INFO] Total time: 1 minute 16 seconds
 [INFO] Finished at: Wed Nov 11 14:59:09 GMT 2009
 [INFO] Final Memory: 16M/30M
 [INFO]
 

 Thanks
 --
 View this message in context: 
 http://old.nabble.com/There-are-no-tests-to-run-tp26302586p26302586.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





-- 
http://upulgodage.com

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



Re: There are no tests to run

2009-11-11 Thread Wayne Fay
                includes
                        include${basedir}/src/**/Test*.java/include
                /includes

In Maven, tests belong in ${basedir}/src/test/java. Move them there,
remove this include from surefire plugin node, and everything should
run just fine. (AKA stop fighting Maven and start using it, drink the
kool-aid, etc...)

Wayne

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



Re: How to get Spring Security with Maven?

2009-11-11 Thread Wayne Fay
        urlhttp://repository.springsource.com/maven/bundles/release/url
        urlhttp://repository.springsource.com/maven/bundles/external/url
        urlhttp://repository.springsource.com/maven/bundles/milestone/url
If you click on these URLs, they all give 404. Are you sure these are
valid URLs for Maven repos?

 A small file with the name security.core-3.0.0.RC1.jar is added
 to the local repository, but its size is only 5 kb. If I run mvn test
Did you look at that file to see what's inside it? Are you sure its
the proper Jar file you're expecting? 5kb seems small but it might be
right if the functionality is just a couple classes.

 How can I add Spring Security with maven to my project?
Ask the Spring Security people...

Wayne

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



Re: There are no tests to run

2009-11-11 Thread Adam Leggett (UPCO)
If you absolutely *must* put your tests in a dir other than the
convention then you can configure that too:

http://maven.apache.org/pom.html#Directories

On Wed, 2009-11-11 at 09:48 -0600, Wayne Fay wrote:
 includes
 include${basedir}/src/**/Test*.java/include
 /includes
 
 In Maven, tests belong in ${basedir}/src/test/java. Move them there,
 remove this include from surefire plugin node, and everything should
 run just fine. (AKA stop fighting Maven and start using it, drink the
 kool-aid, etc...)
 
 Wayne
 
 -
 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



AW: How to get Spring Security with Maven?

2009-11-11 Thread Christian Helmbold
 If you click on these URLs, they all give 404. Are you sure these are
 valid URLs for Maven repos?

Uups! I've found these URLs on the Spring website (and some other sites).

 
  A small file with the name security.core-3.0.0.RC1.jar is added
  to the local repository, but its size is only 5 kb. If I run mvn test

 Did you look at that file to see what's inside it? Are you sure its
 the proper Jar file you're expecting? 

The jar file contains a html page from Amazon S3 Service, which is the host 
of the Maven repository (or should be).

  How can I add Spring Security with maven to my project?
 Ask the Spring Security people...

Thanks for your reply. It really looks like a spring problem.

Christian





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



Re: File system repo

2009-11-11 Thread monkeyden

I own and have read the book.  Perhaps repo is overstating what I'm trying
to do here.  I'm really just trying to pull 2 arbitrary jars into my build. 
The phrase file system repo just seemed to do what I wanted.  Apparently,
it doesn't mean what I took it to mean.  There is nothing in the book
describing how to do this, to my knowledge.


Anders Hammar wrote:
 
 I would also argue that you should read up on Maven and how it uses repos.
 It's much easier if you actually understand the core Maven stuff, than us
 telling you what to do. Less misunderstandings for one thing.
 http://www.sonatype.com/documentation/books/maven-defguide
 
 /Anders
 
 On Wed, Nov 11, 2009 at 00:23, Wendy Smoak wsm...@gmail.com wrote:
 
 On Tue, Nov 10, 2009 at 3:34 PM, monkeyden monk...@monkeyden.com wrote:

  These are simply directories in my maven project.  They are
  created manually and they each contain a jar file and a pom file.  If
 this
  isn't possible then what is a file system repository, if anything?  Is
 it
  just the local maven repo (in the .m2 folder)?

 A file system repo is a remote repo that happens to be on the file
 system and uses a file:// url.  It is not the same as your local repo.

 For anyone to help you figure out what's wrong, we'll need more
 details.  If you've manually created the repo, then there's a chance
 you haven't done it right and that's why it's not working.  What
 exactly is the structure and contents under the 'lib' directory?

 --
 Wendy

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


 
 

-- 
View this message in context: 
http://old.nabble.com/File-system-repo-tp26271810p26304294.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: How to get Spring Security with Maven?

2009-11-11 Thread Wayne Fay
 The jar file contains a html page from Amazon S3 Service,
 which is the host of the Maven repository (or should be).

This happens when you have pointed Maven at a repo which is not
properly configured. The repo should return a proper 404 status code
which Maven will report as a bad repo and blacklist it to avoid
pulling down bad content. In this case, the website is returning
something other than 404 (probably a 200 with no file found in the
html) so Maven assumes the content is the Jar it requested and saves
it as such. Yes, Maven should be a little bit smarter and check the
content before saving it (and this is on the list of things to fix
eventually) but the repo/webserver is not complying with the HTTP
specification in these cases.

Since you're talking to the Spring folks, please ask them to fix their
repo. It should not return http status 200 unless the http request was
actually successful!

Wayne

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



Automated Build and Check In

2009-11-11 Thread Neil Chaudhuri
I would like to do something very simple at regular intervals (say every hour):

*Build the primary artifact-- a WAR file
*Check it into SVN at a specified location in the trunk

How could I do this?

Thanks.



Re: File system repo

2009-11-11 Thread Adam Leggett (UPCO)
Have you considered/tried specifying the arbitrary jars as system scoped
dependencies?

http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope

On Wed, 2009-11-11 at 08:34 -0800, monkeyden wrote:
 I own and have read the book.  Perhaps repo is overstating what I'm trying
 to do here.  I'm really just trying to pull 2 arbitrary jars into my build. 
 The phrase file system repo just seemed to do what I wanted.  Apparently,
 it doesn't mean what I took it to mean.  There is nothing in the book
 describing how to do this, to my knowledge.
 
 
 Anders Hammar wrote:
  
  I would also argue that you should read up on Maven and how it uses repos.
  It's much easier if you actually understand the core Maven stuff, than us
  telling you what to do. Less misunderstandings for one thing.
  http://www.sonatype.com/documentation/books/maven-defguide
  
  /Anders
  
  On Wed, Nov 11, 2009 at 00:23, Wendy Smoak wsm...@gmail.com wrote:
  
  On Tue, Nov 10, 2009 at 3:34 PM, monkeyden monk...@monkeyden.com wrote:
 
   These are simply directories in my maven project.  They are
   created manually and they each contain a jar file and a pom file.  If
  this
   isn't possible then what is a file system repository, if anything?  Is
  it
   just the local maven repo (in the .m2 folder)?
 
  A file system repo is a remote repo that happens to be on the file
  system and uses a file:// url.  It is not the same as your local repo.
 
  For anyone to help you figure out what's wrong, we'll need more
  details.  If you've manually created the repo, then there's a chance
  you haven't done it right and that's why it's not working.  What
  exactly is the structure and contents under the 'lib' directory?
 
  --
  Wendy
 
  -
  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



AW: How to get Spring Security with Maven?

2009-11-11 Thread Christian Helmbold
The solution is: there is no Spring Security 3.0.0.RC1 (or M1) in the 
repository! For the moment I use Spring Security 2.0 and it works with given 
repositories.

The URLs doesn't work because of the strange interface of Amazon S3 service. 
One have to specifiy the excat URL and cannot view the repository with a 
browser.

The question remaining is: Where is Spring Security 3? But this is indeed a 
question to the Spring guys.

Christian

-- 
http://scala-forum.org/




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



Re: Automated Build and Check In

2009-11-11 Thread Nayan Hajratwala
Sounds like you could benefit from a Continuous Integration Server ... Try 
https://hudson.dev.java.net/ -- very easy to set up.

You could configure it to check in the generated artifact via a post-build 
command (setup via hudson), but you might want to consider just publishing your 
generated WAR SNAPSHOT version to an internal maven repo (i.e. Nexus). Hudson 
can do this for you as well.


On Nov 11, 2009, at 11:39 AM, Neil Chaudhuri wrote:

 I would like to do something very simple at regular intervals (say every 
 hour):
 
 *Build the primary artifact-- a WAR file
 *Check it into SVN at a specified location in the trunk
 
 How could I do this?
 
 Thanks.
 


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



[ANN] DITA Open Toolkit Maven Plugin Version 1.0-beta-1 Released

2009-11-11 Thread Dan Tran
The Mojo team is pleased to announce the first beta release of  DITA
Open Toolkit Maven Plugin version 1.0.


http://mojo.codehaus.org/dita-maven-plugin/


This plugin is a thin wrapper to DITA-OT Ant build system to transform
DITA source into various output formats
such as PDF, Microsoft Help Format ( CHM), XHTML, etc

It also has an example to show user how to override the built-in PDF
skin to make another reusable PDF skin
for all projects.

Enjoy,

-The Mojo team

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



Re: Automated Build and Check In

2009-11-11 Thread Ricky Clarkson
I'd suggest not checking binaries in if you can help it.  Source control
isn't particularly efficient with binaries.

2009/11/11 Neil Chaudhuri nchaudh...@potomacfusion.com

 I would like to do something very simple at regular intervals (say every
 hour):

 *Build the primary artifact-- a WAR file
 *Check it into SVN at a specified location in the trunk

 How could I do this?

 Thanks.




-- 
Ricky Clarkson
Java and Scala Programmer, AD Holdings
+44 1565 770804
Skype: ricky_clarkson
Google Talk: ricky.clark...@gmail.com
Google Wave: ricky.clark...@googlewave.com


RE: Automated Build and Check In

2009-11-11 Thread Neil Chaudhuri
Well, certain people want access to the build artifact at various times and 
don't want to go through the apparently arduous process of building it 
themselves.

Still can you elaborate on why you say that?

Thanks.


-Original Message-
From: Ricky Clarkson [mailto:ricky.clark...@gmail.com]
Sent: Wed 11/11/2009 11:00 AM
To: Maven Users List
Subject: Re: Automated Build and Check In
 
I'd suggest not checking binaries in if you can help it.  Source control
isn't particularly efficient with binaries.

2009/11/11 Neil Chaudhuri nchaudh...@potomacfusion.com

 I would like to do something very simple at regular intervals (say every
 hour):

 *Build the primary artifact-- a WAR file
 *Check it into SVN at a specified location in the trunk

 How could I do this?

 Thanks.




-- 
Ricky Clarkson
Java and Scala Programmer, AD Holdings
+44 1565 770804
Skype: ricky_clarkson
Google Talk: ricky.clark...@gmail.com
Google Wave: ricky.clark...@googlewave.com



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

RE: Automated Build and Check In

2009-11-11 Thread Neil Chaudhuri
I am in fact using a CI tool. So I can build a WAR at regular intervals. But 
publishing the SNAPSHOT, how do you do that?

Thanks.


-Original Message-
From: Nayan Hajratwala [mailto:na...@chikli.com]
Sent: Wed 11/11/2009 10:49 AM
To: Maven Users List
Subject: Re: Automated Build and Check In
 
Sounds like you could benefit from a Continuous Integration Server ... Try 
https://hudson.dev.java.net/ -- very easy to set up.

You could configure it to check in the generated artifact via a post-build 
command (setup via hudson), but you might want to consider just publishing your 
generated WAR SNAPSHOT version to an internal maven repo (i.e. Nexus). Hudson 
can do this for you as well.


On Nov 11, 2009, at 11:39 AM, Neil Chaudhuri wrote:

 I would like to do something very simple at regular intervals (say every 
 hour):
 
 *Build the primary artifact-- a WAR file
 *Check it into SVN at a specified location in the trunk
 
 How could I do this?
 
 Thanks.
 


-
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: Automated Build and Check In

2009-11-11 Thread Todd Thiessen
The same way you publish a released artifact: mvn deploy.

You do need a corporate Maven repo setup. And your CI server needs to
have a settings.xml file which know were it is so Maven can deploy to
it.

---
Todd Thiessen
 

 -Original Message-
 From: Neil Chaudhuri [mailto:nchaudh...@potomacfusion.com] 
 Sent: Wednesday, November 11, 2009 12:16 PM
 To: Maven Users List
 Subject: RE: Automated Build and Check In
 
 I am in fact using a CI tool. So I can build a WAR at regular 
 intervals. But publishing the SNAPSHOT, how do you do that?
 
 Thanks.
 
 
 -Original Message-
 From: Nayan Hajratwala [mailto:na...@chikli.com]
 Sent: Wed 11/11/2009 10:49 AM
 To: Maven Users List
 Subject: Re: Automated Build and Check In
  
 Sounds like you could benefit from a Continuous Integration 
 Server ... Try https://hudson.dev.java.net/ -- very easy to set up.
 
 You could configure it to check in the generated artifact via 
 a post-build command (setup via hudson), but you might want 
 to consider just publishing your generated WAR SNAPSHOT 
 version to an internal maven repo (i.e. Nexus). Hudson can do 
 this for you as well.
 
 
 On Nov 11, 2009, at 11:39 AM, Neil Chaudhuri wrote:
 
  I would like to do something very simple at regular 
 intervals (say every hour):
  
  *Build the primary artifact-- a WAR file *Check it into SVN at a 
  specified location in the trunk
  
  How could I do this?
  
  Thanks.
  
 
 
 -
 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: Automated Build and Check In

2009-11-11 Thread Nayan Hajratwala
Why, use the maven deploy plugin, of course! :-)

http://maven.apache.org/plugins/maven-deploy-plugin/usage.html

Once this is done, anyone depending on the SNAPSHOT version will automatically 
get the latest CI built artifact when their maven installation looks for 
updates.
---
Nayan Hajratwala
http://agileshrugged.com
http://twitter.com/nhajratw
734.658.6032

On Nov 11, 2009, at 12:16 PM, Neil Chaudhuri wrote:

 I am in fact using a CI tool. So I can build a WAR at regular intervals. But 
 publishing the SNAPSHOT, how do you do that?
 
 Thanks.
 
 
 -Original Message-
 From: Nayan Hajratwala [mailto:na...@chikli.com]
 Sent: Wed 11/11/2009 10:49 AM
 To: Maven Users List
 Subject: Re: Automated Build and Check In
 
 Sounds like you could benefit from a Continuous Integration Server ... Try 
 https://hudson.dev.java.net/ -- very easy to set up.
 
 You could configure it to check in the generated artifact via a post-build 
 command (setup via hudson), but you might want to consider just publishing 
 your generated WAR SNAPSHOT version to an internal maven repo (i.e. Nexus). 
 Hudson can do this for you as well.
 
 
 On Nov 11, 2009, at 11:39 AM, Neil Chaudhuri wrote:
 
 I would like to do something very simple at regular intervals (say every 
 hour):
 
 *Build the primary artifact-- a WAR file
 *Check it into SVN at a specified location in the trunk
 
 How could I do this?
 
 Thanks.
 
 
 
 -
 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: Maven password ecryption problem

2009-11-11 Thread Ludwig Magnusson
I solved it. 
The problem was server based.
Sorry to have taken your time unnecessary.
/Ludwig

-Original Message-
From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf
Of Anders Hammar
Sent: den 11 november 2009 08:53
To: Maven Users List
Subject: Re: Maven password ecryption problem

I'm confused. First you say you just change the url, and now you say the
server id is different.
Have you tried without encryption? Get that to works first, then go on to
encrypting the passwords. Do try to do everything at the same time when
you're having problems.

Regarding two runs of encryption, I'm not 100% sure. But I believe that's
how it works.

/Anders

On Wed, Nov 11, 2009 at 08:37, Ludwig Magnusson
lud...@itcatapult.comwrote:

 I use scp for secure connections. If I use ftp it works on the no-good
 server as well, but I don't have ftp access from home.

 If you encrypt a password twice. Is the encrypted password supposed to be
 different every time? This happens at my computer.
 /Ludwig


 -Original Message-
 From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On
 Behalf
 Of Anders Hammar
 Sent: den 11 november 2009 06:35
 To: Maven Users List
 Subject: Re: Maven password ecryption problem

 If you only change the url (keep the same id), it should work I guess. If
 the password is in fact the same on both servers (urls).
 I would start by removing the encryption and get things to work with plain
 passwords. Then add the encryption.

 What's the protocol for the two urls?

 /Anders

 On Tue, Nov 10, 2009 at 22:49, Ludwig Magnusson
 lud...@itcatapult.comwrote:

  Here are my credentials from settings.xml.
 
server
   idno-good/id
   usernamemaven/username
   password{AH6qBn1T1Y0H3zI3fl9V9T+LZ6bDAS/K7aF5gwBpWHk=}/password
 /server
server
   idgood/id
   usernameludwig/username
   password{O6JZIcyV6hEHu8Z1h8FxUYMsleSlAro00cHUDH0s05k=}/password
 /server
 
  I used the good id to log into the server that worked. I then switched
  the
  url in my pom-file to the server that does not work. Since I have the
 same
  login there it should ought work right?
 
  /Ludwig
 
 
  -Original Message-
  From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On
  Behalf
  Of Anders Hammar
  Sent: den 10 november 2009 22:19
  To: Maven Users List
  Subject: Re: Maven password ecryption problem
 
  How are the credentials stored in your settings.xml? You say you have
the
  same for another server, do both servers have the same id and you only
 have
  on set of credentials in your settings.xml?
 
  Does it work without encrypting the passwords?
 
  /Anders
 
 
  On Tue, Nov 10, 2009 at 21:33, Ludwig Magnusson
  lud...@itcatapult.comwrote:
 
   Hello!
  
   I have a problem getting my encrypted passwords to work with a remote
   server
   that I'm deploying to.
  
   I can never connect to that server using maven, although all other
  standard
   programs work.
  
   I use the scp protocol and I get this error message:
  
  
  
   Authentication failed: Cannot connect. Reason: Auth fail
  
  
  
   I even have another site with the same u/p. That one works, so my
 locally
   stored username and password must be correct right?
  
   Is there any known problem?
  
  
  
   /Ludwig
  
  
 
 
  -
  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



SignAndDeploy issue

2009-11-11 Thread gsingers

Hi,

I'm trying to sign and deploy some artifacts for the Apache Mahout project
(the POM is at
https://svn.apache.org/repos/asf/lucene/mahout/trunk/pom.xml).

I have it set up to use the GPG Sign plugin and the relevant configuration
is:
execution
idcreate-hadoop-core-artifact/id
phasedeploy/phase
goals
  goalsign-and-deploy-file/goal
/goals
configuration
  filecore/lib/hadoop-core-0.20.1.jar/file
  groupIdorg.apache.mahout.hadoop/groupId
  artifactIdhadoop-core/artifactId
  packagingjar/packaging
  version0.20.1/version
  generatePomtrue/generatePom
/configuration
  /execution

When I run this during release (under the release profile I have setup, I
get)

[INFO] [DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-gpg-plugin:1.0-alpha-4:sign-and-deploy-file'
--
[INFO] [DEBUG]   (f) artifactId = hadoop-core
[INFO] [DEBUG]   (f) file =
/bld/mah/target/checkout/maven/core/lib/hadoop-core-0.20.1.jar
[INFO] [DEBUG]   (f) generatePom = true
[INFO] [DEBUG]   (f) groupId = org.apache.mahout.hadoop
[INFO] [DEBUG]   (s) localRepository = Repository[local|file:///Volumes/...]
[INFO] [DEBUG]   (f) packaging = jar
[INFO] [DEBUG]   (f) passphrase = XX
[INFO] [DEBUG]   (f) repositoryId = mahout.dist
[INFO] [DEBUG]   (f) repositoryLayout = default
[INFO] [DEBUG]   (f) settings = org.apache.maven.settings.setti...@6f824c0c
[INFO] [DEBUG]   (f) uniqueVersion = true
[INFO] [DEBUG]   (f) url =
https://repository.apache.org/service/local/staging/deploy/maven2/
[INFO] [DEBUG]   (f) useAgent = false
[INFO] [DEBUG]   (f) version = 0.20.1
[INFO] [DEBUG] -- end configuration --
[INFO] [INFO] [gpg:sign-and-deploy-file {execution:
create-hadoop-core-artifact}]
[INFO] [INFO]

[INFO] [ERROR] BUILD ERROR
[INFO] [INFO]

[INFO] [INFO] /bld/mah/target/checkout/maven/core/lib/hadoop-core-0.20.1.jar
not found.
[INFO] [INFO]

[INFO] [DEBUG] Trace
[INFO] org.apache.maven.lifecycle.LifecycleExecutionException:
/bld/mah/target/checkout/maven/core/lib/hadoop-core-0.20.1.jar not found.
[INFO]  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
[INFO]  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
[INFO]  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
[INFO]  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
[INFO]  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
[INFO]  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
[INFO]  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
[INFO]  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
...
[INFO] Caused by: org.apache.maven.plugin.MojoExecutionException:
/bld/mah/target/checkout/maven/core/lib/hadoop-core-0.20.1.jar not found.
[INFO]  at
org.apache.maven.plugin.deploy.DeployFileMojo.execute(DeployFileMojo.java:204)
[INFO]  at
org.apache.maven.plugin.gpg.SignAndDeployFileMojo.execute(SignAndDeployFileMojo.java:250)
[INFO]  at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
[INFO]  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
 

Now, I have a maven subdirectory, but that is not where I would think this
path would be relative too, since I run this out of the root Mahout
directory and thus assume that all paths are relative to that one.

In looking at
https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-gpg-plugin/src/main/java/org/apache/maven/plugin/gpg/SignAndDeployFileMojo.java,
I'm guessing the reason this is happening is because of the baseDirectory or
homeDirectory calculation at:
signer.setBaseDirectory( new File( foo
).getAbsoluteFile().getParentFile().getAbsoluteFile() );
signer.setHomeDirectory( homedir );

Anyone know what is going wrong here?  Note, I've also tried using
../core/lib/... and am currently trying ${basedir}/core/lib.

Thanks,
Grant Ingersoll

-- 
View this message in context: 
http://old.nabble.com/SignAndDeploy-issue-tp26305689p26305689.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-ant-run plugin 1.3 error java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close

2009-11-11 Thread Haroon Rafique

Hi there,

Sorry for breaking the threading in your email reader, but I just found 
the fix for the above subject and alas I don't have the original thread to 
reply to.


In any case, you may look at the thread discussion at nabble:
http://old.nabble.com/maven-ant-run-plugin-1.3-error-java.lang.NoSuchMethodError:-org.apache.tools.ant.util.FileUtils.close-td25806467.html

The root cause is that the OP (Doug Daniels) is using, ant-contrib in 
maven-antrun-plugin. The fix is to add an exclusion for ant:ant in the 
dependency for ant-contrib, as by default it uses ant-1.5. E.g., use:


dependency
groupIdant-contrib/groupId
artifactIdant-contrib/artifactId
version${ant-contrib.ver}/version
exclusions
exclusion
groupIdant/groupId
artifactIdant/artifactId
/exclusion
/exclusions
/dependency

This way, whatever dependency is specified by maven-antrun-plugin will be 
kick in.


Hope it helps someone.

Cheers,
--
Haroon Rafique
haroon.rafi...@utoronto.ca


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



maven site plugin not deploying subprojects in a multimodule project or generating indexhtml

2009-11-11 Thread Doug Daniels
I have a multimodule project that I want to deploy a site for, but it seems 
like my site deployment distributionManagement configuration is not being 
inherited by subproject child modules. 

parent
  - moduleA
  - moduleB

They are located relative to each other
/parent/
/moduleA/
/moduleB/

When I  run:
mvn site-deploy -P documentation

My parent project is deployed properly to:
scp://devServer/documentation/webwars/

But none of the subprojects like moduleA or module is deployed there as I'd 
expect if child modules inherit parent distributionManagement:
scp://devServer/documentation/webwars/moduleA
scp://devServer/documentation/webwars/moduleB

Here's my parent pom.xml, I removed some extraneous details and report plugins 
(I included my javadoc plugin which is a bit funky using APIViz and aggregate 
to ensure aggregate parent javadocs and child javadocs use APIViz properly.):

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
groupIdcom.webwars/groupId
artifactId parent/artifactId
packagingpom/packaging
version1.0-SNAPSHOT/version
nameparent/name
distributionManagement
site
idwebwarsDev.website/id
urlscp://devServer/documentation/webwars//url
/site 
/distributionManagement
modules
module../moduleA-common/module
module../moduleB/module
/modules
profiles
profile
iddocumentation/id
build
pluginManagement
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-pmd-plugin/artifactId
executions
execution
idverify_pmd/id
phaseverify/phase
goals
goalpmd/goal
/goals
configuration
linkXreftrue/linkXref
minimumTokens20/minimumTokens
targetJdk1.6/targetJdk
/configuration
/execution
/executions
/plugin

/plugins
/pluginManagement
/build
reporting
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-project-info-reports-plugin/artifactId
version2.1.2/version
reportSets
  reportSet
reports
  reportproject-team/report
  reportcim/report
  reportscm/report
/reports
  /reportSet
/reportSets
  /plugin

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
version2.6.1/version
configuration
!-- Default configuration for all reports --
detectOfflineLinkstrue/detectOfflineLinks
!--
detectLinkstrue/detectLinks
--
detectJavaApiLinktrue/detectJavaApiLink
linksourcetrue/linksource

useStandardDocletOptionstrue/useStandardDocletOptions
charsetUTF-8/charset
encodingUTF-8/encoding
docencodingUTF-8/docencoding
breakiteratortrue/breakiterator
versiontrue/version
authortrue/author
keywordstrue/keywords
minmemory128m/minmemory
maxmemory512m/maxmemory
 docletorg.jboss.apiviz.APIviz/doclet
docletArtifact
groupIdorg.jboss.apiviz/groupId
artifactIdapiviz/artifactId
version1.3.0.GA/version
/docletArtifact
additionalparam 
-charset UTF-8
 

Re: File system repo

2009-11-11 Thread monkeyden

exactly what I was looking for.  thanks Adam.


Adam Leggett (UPCO) wrote:
 
 Have you considered/tried specifying the arbitrary jars as system scoped
 dependencies?
 
 http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope
 
 On Wed, 2009-11-11 at 08:34 -0800, monkeyden wrote:
 I own and have read the book.  Perhaps repo is overstating what I'm
 trying
 to do here.  I'm really just trying to pull 2 arbitrary jars into my
 build. 
 The phrase file system repo just seemed to do what I wanted. 
 Apparently,
 it doesn't mean what I took it to mean.  There is nothing in the book
 describing how to do this, to my knowledge.
 
 
 Anders Hammar wrote:
  
  I would also argue that you should read up on Maven and how it uses
 repos.
  It's much easier if you actually understand the core Maven stuff, than
 us
  telling you what to do. Less misunderstandings for one thing.
  http://www.sonatype.com/documentation/books/maven-defguide
  
  /Anders
  
  On Wed, Nov 11, 2009 at 00:23, Wendy Smoak wsm...@gmail.com wrote:
  
  On Tue, Nov 10, 2009 at 3:34 PM, monkeyden monk...@monkeyden.com
 wrote:
 
   These are simply directories in my maven project.  They are
   created manually and they each contain a jar file and a pom file. 
 If
  this
   isn't possible then what is a file system repository, if anything? 
 Is
  it
   just the local maven repo (in the .m2 folder)?
 
  A file system repo is a remote repo that happens to be on the file
  system and uses a file:// url.  It is not the same as your local repo.
 
  For anyone to help you figure out what's wrong, we'll need more
  details.  If you've manually created the repo, then there's a chance
  you haven't done it right and that's why it's not working.  What
  exactly is the structure and contents under the 'lib' directory?
 
  --
  Wendy
 
  -
  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
 
 
 

-- 
View this message in context: 
http://old.nabble.com/File-system-repo-tp26271810p26309300.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 site plugin not deploying subprojects in a multimodule project or generating indexhtml

2009-11-11 Thread Stevo Slavić
Hello Doug,

That modules section seems to be wrong, module../moduleA-common/module
should probably be module../moduleA/module.

Personally I prefer putting child module directories within parent - its
natural, some plugins and tools used to have problems with relative paths,
and you don't have to set relativePath in child modules. In
maven-project-info-reports-plugin consider adding index report to the list.
One more tip, specify site plugin version in pluginManagement for build to
be reproducible - now it's not clear which version of the plugin you're
using, it's determined by maven version which is also not known.

Regards,
Stevo.

On Wed, Nov 11, 2009 at 10:07 PM, Doug Daniels ddani...@webwars.com wrote:

 I have a multimodule project that I want to deploy a site for, but it seems
 like my site deployment distributionManagement configuration is not being
 inherited by subproject child modules.

 parent
  - moduleA
  - moduleB

 They are located relative to each other
 /parent/
 /moduleA/
 /moduleB/

 When I  run:
 mvn site-deploy -P documentation

 My parent project is deployed properly to:
 scp://devServer/documentation/webwars/

 But none of the subprojects like moduleA or module is deployed there as I'd
 expect if child modules inherit parent distributionManagement:
 scp://devServer/documentation/webwars/moduleA
 scp://devServer/documentation/webwars/moduleB

 Here's my parent pom.xml, I removed some extraneous details and report
 plugins (I included my javadoc plugin which is a bit funky using APIViz and
 aggregate to ensure aggregate parent javadocs and child javadocs use APIViz
 properly.):

 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
groupIdcom.webwars/groupId
artifactId parent/artifactId
packagingpom/packaging
version1.0-SNAPSHOT/version
nameparent/name
distributionManagement
site
idwebwarsDev.website/id
urlscp://devServer/documentation/webwars//url
/site
/distributionManagement
modules
module../moduleA-common/module
module../moduleB/module
/modules
profiles
profile
iddocumentation/id
build
pluginManagement
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-pmd-plugin/artifactId
executions
execution
idverify_pmd/id
phaseverify/phase
goals
goalpmd/goal
/goals
configuration
linkXreftrue/linkXref
minimumTokens20/minimumTokens
targetJdk1.6/targetJdk
/configuration
/execution
/executions
/plugin

/plugins
/pluginManagement
/build
reporting
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId

  artifactIdmaven-project-info-reports-plugin/artifactId
version2.1.2/version
reportSets
  reportSet
reports
  reportproject-team/report
  reportcim/report
  reportscm/report
/reports
  /reportSet
/reportSets
  /plugin

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
version2.6.1/version
configuration
!-- Default configuration for all reports --
detectOfflineLinkstrue/detectOfflineLinks
!--
detectLinkstrue/detectLinks
--
detectJavaApiLinktrue/detectJavaApiLink
linksourcetrue/linksource

  useStandardDocletOptionstrue/useStandardDocletOptions
charsetUTF-8/charset
encodingUTF-8/encoding
docencodingUTF-8/docencoding
breakiteratortrue/breakiterator
versiontrue/version

Re: File system repo

2009-11-11 Thread Wayne Fay
 Have you considered/tried specifying the arbitrary jars as system scoped
 dependencies?

This is not the way to go. System scope is/soon will be deprecated.
You will run into problems with your build if you do this -- system
scoped dependencies do not behave the way you might expect (not
included in EAR and WAR packaging for one -- behave like provided in
those cases).

Use mvn install:install-file or mvn deploy:deploy-file to put
these files in your local cache or corporate repository. This is the
ONLY solution to your problem, period.

Wayne

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



Using property name/value to activate profile

2009-11-11 Thread Yaakov Chaikin
Hi,

I am clearly not understanding how properties propagate in maven...

I have a multi-module project where I have a root pom.xml
(packagingpom/packaging) and a number of child modules.

In my root pom.xml I have this:
properties
  createDbfalse/createDb
/properties


In one of the my child module's pom.xml I have the following:

...
profiles
  profile
idSkipDbCreationIsTrue/id
activation
property
   namecreateDb/name
   valuefalse/name
/property
 /activation
 properties
 skipDbCreationtrue/skipDbCreation
 /properties
   /profile

profile
idSkipDbCreationIsFalse/id
activation
property
   namecreateDb/name
   valuetrue/name
/property
 /activation
 properties
 skipDbCreationfalse/skipDbCreation
 /properties
   /profile
profiles
...

When I do mvn help:active-profiles neither of these profiles are
active! However, when I specify the property directly on the command
line, depending on its value, the correct profile gets activated. It's
as if 'createDb' property, which I am using to do activation, is not
there at the time maven decides which profiles to use.

I could place the 'createDb' property into settings.xml, but I don't
want to do that for reasons outside the scope of this question.

Can anyone spot what I am doing wrong here? I already checked the
spelling of the property in both places and it's correct...

Any ideas anyone?

Thanks,
Yaakov.

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



RE: File system repo

2009-11-11 Thread Jim McCaskey
 System scope is/soon will be deprecated.

That really can't be true, can it?  I have found that very useful in any number 
of situations.

-Jim

-Original Message-
From: Wayne Fay [mailto:wayne...@gmail.com] 
Sent: Wednesday, November 11, 2009 4:37 PM
To: Maven Users List
Subject: Re: File system repo

 Have you considered/tried specifying the arbitrary jars as system scoped
 dependencies?

This is not the way to go. System scope is/soon will be deprecated.
You will run into problems with your build if you do this -- system
scoped dependencies do not behave the way you might expect (not
included in EAR and WAR packaging for one -- behave like provided in
those cases).

Use mvn install:install-file or mvn deploy:deploy-file to put
these files in your local cache or corporate repository. This is the
ONLY solution to your problem, period.

Wayne

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




RE: maven site plugin not deploying subprojects in a multimodule project or generating indexhtml

2009-11-11 Thread Doug Daniels
Sorry about that, you're correct, I had renamed some things in my pom.xml like 
my modules to make my example clearer and I forgot to rename that properly.

I'm wondering if anyone knows of any issues with the site plugin and why my 
subproject modules would generate all the source files except for the 
index.html.

I don't specify any src/site/ files like src/site/site.xml or 
src/site/apt/index.apt.

-Original Message-
From: Stevo Slavić [mailto:ssla...@gmail.com] 
Sent: Wednesday, November 11, 2009 4:30 PM
To: Maven Users List
Subject: Re: maven site plugin not deploying subprojects in a multimodule 
project or generating indexhtml

Hello Doug,

That modules section seems to be wrong, module../moduleA-common/module
should probably be module../moduleA/module.

Personally I prefer putting child module directories within parent - its
natural, some plugins and tools used to have problems with relative paths,
and you don't have to set relativePath in child modules. In
maven-project-info-reports-plugin consider adding index report to the list.
One more tip, specify site plugin version in pluginManagement for build to
be reproducible - now it's not clear which version of the plugin you're
using, it's determined by maven version which is also not known.

Regards,
Stevo.

On Wed, Nov 11, 2009 at 10:07 PM, Doug Daniels ddani...@webwars.com wrote:

 I have a multimodule project that I want to deploy a site for, but it seems
 like my site deployment distributionManagement configuration is not being
 inherited by subproject child modules.

 parent
  - moduleA
  - moduleB

 They are located relative to each other
 /parent/
 /moduleA/
 /moduleB/

 When I  run:
 mvn site-deploy -P documentation

 My parent project is deployed properly to:
 scp://devServer/documentation/webwars/

 But none of the subprojects like moduleA or module is deployed there as I'd
 expect if child modules inherit parent distributionManagement:
 scp://devServer/documentation/webwars/moduleA
 scp://devServer/documentation/webwars/moduleB

 Here's my parent pom.xml, I removed some extraneous details and report
 plugins (I included my javadoc plugin which is a bit funky using APIViz and
 aggregate to ensure aggregate parent javadocs and child javadocs use APIViz
 properly.):

 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
groupIdcom.webwars/groupId
artifactId parent/artifactId
packagingpom/packaging
version1.0-SNAPSHOT/version
nameparent/name
distributionManagement
site
idwebwarsDev.website/id
urlscp://devServer/documentation/webwars//url
/site
/distributionManagement
modules
module../moduleA-common/module
module../moduleB/module
/modules
profiles
profile
iddocumentation/id
build
pluginManagement
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-pmd-plugin/artifactId
executions
execution
idverify_pmd/id
phaseverify/phase
goals
goalpmd/goal
/goals
configuration
linkXreftrue/linkXref
minimumTokens20/minimumTokens
targetJdk1.6/targetJdk
/configuration
/execution
/executions
/plugin

/plugins
/pluginManagement
/build
reporting
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId

  artifactIdmaven-project-info-reports-plugin/artifactId
version2.1.2/version
reportSets
  reportSet
reports
  reportproject-team/report
  reportcim/report
  reportscm/report
/reports
  /reportSet
/reportSets
  /plugin

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
version2.6.1/version
configuration
!-- Default configuration for all reports --

Re: Using property name/value to activate profile

2009-11-11 Thread Yaakov Chaikin
Hmm... Just tried specifying createDbfalse/createDb in my
settings.xml and it STILL does NOT activate any profiles! Anyone has
any idea of what's going on here?

Thanks in advance for your help.

Yaakov.

On Wed, Nov 11, 2009 at 5:44 PM, Yaakov Chaikin
yaakov.chai...@gmail.com wrote:
 Hi,

 I am clearly not understanding how properties propagate in maven...

 I have a multi-module project where I have a root pom.xml
 (packagingpom/packaging) and a number of child modules.

 In my root pom.xml I have this:
 properties
  createDbfalse/createDb
 /properties


 In one of the my child module's pom.xml I have the following:

 ...
 profiles
  profile
    idSkipDbCreationIsTrue/id
    activation
        property
           namecreateDb/name
           valuefalse/name
        /property
     /activation
     properties
         skipDbCreationtrue/skipDbCreation
     /properties
   /profile

    profile
    idSkipDbCreationIsFalse/id
    activation
        property
           namecreateDb/name
           valuetrue/name
        /property
     /activation
     properties
         skipDbCreationfalse/skipDbCreation
     /properties
   /profile
 profiles
 ...

 When I do mvn help:active-profiles neither of these profiles are
 active! However, when I specify the property directly on the command
 line, depending on its value, the correct profile gets activated. It's
 as if 'createDb' property, which I am using to do activation, is not
 there at the time maven decides which profiles to use.

 I could place the 'createDb' property into settings.xml, but I don't
 want to do that for reasons outside the scope of this question.

 Can anyone spot what I am doing wrong here? I already checked the
 spelling of the property in both places and it's correct...

 Any ideas anyone?

 Thanks,
 Yaakov.


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



Re: Not a v4.0.0 POM error

2009-11-11 Thread Tony Chemit
Le Wed, 11 Nov 2009 17:00:51 -0600,
Gerardo Corro rob_gar_...@hotmail.com a écrit :

 
 Hi all,
 
 
 Today, I was using Maven as usual in my Ubuntu laptop, then I decided to
 update Ubuntu to the 9.10 version, after that I tried to use maven as usual
 but now I get this error all the times I try to compile or install anything:
 

I suggest you to delete the directory in your local repository

/data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/

anyway, for me nothing to see with ubuntu (I works on it too)

I already had such errors when a download of an artifact failed (for multiple 
reason...)

hope it will help you.

Cheers,

Tony.

 
 [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
 'e6084a3bb5d435dcb42378cd3273f5db433cb944'; remote = '��' - RETRYING
 Downloading:
 https://www.mycomp.com/maven2/repository/public/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
 1K downloaded  (maven-install-plugin-2.3.pom) [WARNING] *** CHECKSUM FAILED -
 Checksum failed on download: local =
 'e6084a3bb5d435dcb42378cd3273f5db433cb944'; remote = '��' - IGNORING [INFO]
 
 [ERROR] BUILD ERROR [INFO]
 
 [INFO] Error building POM (may not be this project's POM).
 
 
 Project ID: org.apache.maven.plugins:maven-install-plugin
 POM
 Location: 
 /data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
 
 Reason: Not a v4.0.0 POM. for project
 org.apache.maven.plugins:maven-install-plugin
 at 
 /data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
 
 
 
 if using the -e version I get:
 
 [INFO]
 
 [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Unable
 to build project for plugin 'org.apache.maven.plugins:maven-install-plugin':
 Not a v4.0.0 POM. for project org.apache.maven.plugins:maven-install-plugin
 at 
 /data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1557)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1851)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1311)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:1275)
 
 
 
 Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to build
 project for plugin 'org.apache.maven.plugins:maven-install-plugin': Not a
 v4.0.0 POM. for project org.apache.maven.plugins:maven-install-plugin
 at 
 /data/colibria/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
 at
 org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:293)
 at
 org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:205)
 
 
 
 Please assist. Thanks!
 
 
 
 
 
 
 _
 Windows Live: Keep your friends up to date with what you do online.
 http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092010


-- 

Tony Chemit

tél: +33 (0) 2 40 50 29 28
email: che...@codelutin.com  
http://www.codelutin.com 

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



Re: File system repo

2009-11-11 Thread Wayne Fay
 System scope is/soon will be deprecated.

 That really can't be true, can it?  I have found that very useful in any 
 number of situations.

I suppose we'd need someone from the Maven PMC to weigh in to know for
sure... but this is my understanding. Of course, I haven't seen
anything yet about this being removed from Maven3, so who knows about
the timing etc.

Having said that, except for VERY few situations, the system scope is
wrong to use.

Wayne

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



Not a v4.0.0 POM error

2009-11-11 Thread Gerardo Corro

Hi all,


Today, I was using Maven as usual in my Ubuntu laptop, then I decided to update 
Ubuntu to the 9.10 version, after that I tried to use maven as usual but now I 
get this error all the times I try to compile or install anything:


[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 
'e6084a3bb5d435dcb42378cd3273f5db433cb944'; remote = '��' - RETRYING
Downloading: 
https://www.mycomp.com/maven2/repository/public/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
1K downloaded  (maven-install-plugin-2.3.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 
'e6084a3bb5d435dcb42378cd3273f5db433cb944'; remote = '��' - IGNORING
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-install-plugin
POM Location: 
/data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom

Reason: Not a v4.0.0 POM. for project 
org.apache.maven.plugins:maven-install-plugin at 
/data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom



if using the -e version I get:

[INFO] 
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build project 
for plugin 'org.apache.maven.plugins:maven-install-plugin': Not a v4.0.0 POM. 
for project org.apache.maven.plugins:maven-install-plugin at 
/data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1557)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1851)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1311)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:1275)



Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to build 
project for plugin 'org.apache.maven.plugins:maven-install-plugin': Not a 
v4.0.0 POM. for project org.apache.maven.plugins:maven-install-plugin at 
/data/colibria/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
at 
org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:293)
at 
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:205)



Please assist. Thanks!





  
_
Windows Live: Keep your friends up to date with what you do online.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092010

Re: Using property name/value to activate profile

2009-11-11 Thread Tony Chemit
Le Wed, 11 Nov 2009 18:07:31 -0500,
Yaakov Chaikin yaakov.chai...@gmail.com a écrit :

 Hmm... Just tried specifying createDbfalse/createDb in my
 settings.xml and it STILL does NOT activate any profiles! Anyone has
 any idea of what's going on here?
 
 Thanks in advance for your help.
 
It seems weird to me to use 2 profile to do the same thing ?

why do you want to use 2 profiles ? Moreover why using a profile ?

Could you not just use your property createDb ? and override it in your child 
pom ?

Can you post the complete example of your poms and give the maven version you 
are using, it could help I think.

Sorry to not have a magic solution for you (perharps a maven expert could you 
help you more...)

Cheers,

Tony.

 Yaakov.
 
 On Wed, Nov 11, 2009 at 5:44 PM, Yaakov Chaikin
 yaakov.chai...@gmail.com wrote:
  Hi,
 
  I am clearly not understanding how properties propagate in maven...
 
  I have a multi-module project where I have a root pom.xml
  (packagingpom/packaging) and a number of child modules.
 
  In my root pom.xml I have this:
  properties
   createDbfalse/createDb
  /properties
 
 
  In one of the my child module's pom.xml I have the following:
 
  ...
  profiles
   profile
     idSkipDbCreationIsTrue/id
     activation
         property
            namecreateDb/name
            valuefalse/name
         /property
      /activation
      properties
          skipDbCreationtrue/skipDbCreation
      /properties
    /profile
 
     profile
     idSkipDbCreationIsFalse/id
     activation
         property
            namecreateDb/name
            valuetrue/name
         /property
      /activation
      properties
          skipDbCreationfalse/skipDbCreation
      /properties
    /profile
  profiles
  ...
 
  When I do mvn help:active-profiles neither of these profiles are
  active! However, when I specify the property directly on the command
  line, depending on its value, the correct profile gets activated. It's
  as if 'createDb' property, which I am using to do activation, is not
  there at the time maven decides which profiles to use.
 
  I could place the 'createDb' property into settings.xml, but I don't
  want to do that for reasons outside the scope of this question.
 
  Can anyone spot what I am doing wrong here? I already checked the
  spelling of the property in both places and it's correct...
 
  Any ideas anyone?
 
  Thanks,
  Yaakov.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 



-- 

Tony Chemit

tél: +33 (0) 2 40 50 29 28
email: che...@codelutin.com  
http://www.codelutin.com 

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



RE: Not a v4.0.0 POM error

2009-11-11 Thread Gerardo Corro

Hi,

Thanks for your message, however is not working :-(  the same error is 
triggered again.

Best regards




 
 I suggest you to delete the directory in your local repository
 
 /data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/
 
 anyway, for me nothing to see with ubuntu (I works on it too)
 
 I already had such errors when a download of an artifact failed (for multiple 
 reason...)
 
 hope it will help you.
 
 Cheers,
 
 Tony.
 
  
  [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
  'e6084a3bb5d435dcb42378cd3273f5db433cb944'; remote = '��' - RETRYING
  Downloading:
  https://www.mycomp.com/maven2/repository/public/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
  1K downloaded  (maven-install-plugin-2.3.pom) [WARNING] *** CHECKSUM FAILED 
  -
  Checksum failed on download: local =
  'e6084a3bb5d435dcb42378cd3273f5db433cb944'; remote = '��' - IGNORING 
  [INFO]
  
  [ERROR] BUILD ERROR [INFO]
  
  [INFO] Error building POM (may not be this project's POM).
  
  
  Project ID: org.apache.maven.plugins:maven-install-plugin
  POM
  Location: 
  /data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
  
  Reason: Not a v4.0.0 POM. for project
  org.apache.maven.plugins:maven-install-plugin
  at 
  /data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
  
  
  
  if using the -e version I get:
  
  [INFO]
  
  [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Unable
  to build project for plugin 'org.apache.maven.plugins:maven-install-plugin':
  Not a v4.0.0 POM. for project org.apache.maven.plugins:maven-install-plugin
  at 
  /data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1557)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1851)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1311)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:1275)
  
  
  
  Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to build
  project for plugin 'org.apache.maven.plugins:maven-install-plugin': Not a
  v4.0.0 POM. for project org.apache.maven.plugins:maven-install-plugin
  at 
  /data/colibria/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
  at
  org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:293)
  at
  org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:205)
  
  
  
  Please assist. Thanks!
  
  
  
  
  

  _
  Windows Live: Keep your friends up to date with what you do online.
  http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092010
 
 
 -- 
 
 Tony Chemit
 
 tél: +33 (0) 2 40 50 29 28
 email: che...@codelutin.com  
 http://www.codelutin.com 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
  
_
Windows Live Hotmail: Your friends can get your Facebook updates, right from 
Hotmail®.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009

Re: Using property name/value to activate profile

2009-11-11 Thread Yaakov Chaikin
Ok, I'll share what exactly is going on with everyone else...

The maven docs says this about activating profiles through a property:
*
Currently, this detection is limited to prefix-matching of the JDK
version, the presence of a system property or the value of a system
property. Here are some examples.
*

So, it's ONLY system properties which this applies to! Bummer! :-(

Yaakov.

On Wed, Nov 11, 2009 at 6:07 PM, Yaakov Chaikin
yaakov.chai...@gmail.com wrote:
 Hmm... Just tried specifying createDbfalse/createDb in my
 settings.xml and it STILL does NOT activate any profiles! Anyone has
 any idea of what's going on here?

 Thanks in advance for your help.

 Yaakov.

 On Wed, Nov 11, 2009 at 5:44 PM, Yaakov Chaikin
 yaakov.chai...@gmail.com wrote:
 Hi,

 I am clearly not understanding how properties propagate in maven...

 I have a multi-module project where I have a root pom.xml
 (packagingpom/packaging) and a number of child modules.

 In my root pom.xml I have this:
 properties
  createDbfalse/createDb
 /properties


 In one of the my child module's pom.xml I have the following:

 ...
 profiles
  profile
    idSkipDbCreationIsTrue/id
    activation
        property
           namecreateDb/name
           valuefalse/name
        /property
     /activation
     properties
         skipDbCreationtrue/skipDbCreation
     /properties
   /profile

    profile
    idSkipDbCreationIsFalse/id
    activation
        property
           namecreateDb/name
           valuetrue/name
        /property
     /activation
     properties
         skipDbCreationfalse/skipDbCreation
     /properties
   /profile
 profiles
 ...

 When I do mvn help:active-profiles neither of these profiles are
 active! However, when I specify the property directly on the command
 line, depending on its value, the correct profile gets activated. It's
 as if 'createDb' property, which I am using to do activation, is not
 there at the time maven decides which profiles to use.

 I could place the 'createDb' property into settings.xml, but I don't
 want to do that for reasons outside the scope of this question.

 Can anyone spot what I am doing wrong here? I already checked the
 spelling of the property in both places and it's correct...

 Any ideas anyone?

 Thanks,
 Yaakov.



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



Re: Using property name/value to activate profile

2009-11-11 Thread Yaakov Chaikin
On Wed, Nov 11, 2009 at 6:19 PM, Tony Chemit che...@codelutin.com wrote:
 Le Wed, 11 Nov 2009 18:07:31 -0500,
 Yaakov Chaikin yaakov.chai...@gmail.com a écrit :

 Hmm... Just tried specifying createDbfalse/createDb in my
 settings.xml and it STILL does NOT activate any profiles! Anyone has
 any idea of what's going on here?

 Thanks in advance for your help.

 It seems weird to me to use 2 profile to do the same thing ?

It doesn't do the SAME thing. First profile creates a property
skipDbCreation with value TRUE, second creates the same property with
the value FALSE.

Basically, it's all because of the maven-sql-plugin. It has an element
skip/skip, so execution of SQL scripts can be skipped. It's
very annoying and counter-intuitive to have to specify a property (on
a command line) when you actually want to recreate your database that
says skipDbCreation=false... That feels like double negative. It's
much more intuitive to say -DcreateDb=true instead.

So, this whole hack is to basically flip the value of 'createDb' into
its opposite. If it's true, the new property will be false, etc.

 why do you want to use 2 profiles ? Moreover why using a profile ?
 Could you not just use your property createDb ? and override it in your child 
 pom ?

See what I wrote above as the answer to this.

In the end of the day, the answer to my problem is that profile
activation can't be done by a property that is not inserted into the
System properties. So, when you specify it on a command line, it works
because it becomes a System property.

Yaakov.

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



Re: Not a v4.0.0 POM error

2009-11-11 Thread Nick Stolwijk
What do you see if you open it with a browser:

https://www.mycomp.com/maven2/repository/public/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom

Is it a valid pom or some garble?

With regards,

Nick Stolwijk
~Java Developer~

IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl



On Thu, Nov 12, 2009 at 12:19 AM, Gerardo Corro rob_gar_...@hotmail.com wrote:

 Hi,

 Thanks for your message, however is not working :-(  the same error is 
 triggered again.

 Best regards





 I suggest you to delete the directory in your local repository

 /data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/

 anyway, for me nothing to see with ubuntu (I works on it too)

 I already had such errors when a download of an artifact failed (for 
 multiple reason...)

 hope it will help you.

 Cheers,

 Tony.

 
  [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
  'e6084a3bb5d435dcb42378cd3273f5db433cb944'; remote = ' �� ' - RETRYING
  Downloading:
  https://www.mycomp.com/maven2/repository/public/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
  1K downloaded  (maven-install-plugin-2.3.pom) [WARNING] *** CHECKSUM 
  FAILED -
  Checksum failed on download: local =
  'e6084a3bb5d435dcb42378cd3273f5db433cb944'; remote = ' �� ' - IGNORING 
  [INFO]
  
  [ERROR] BUILD ERROR [INFO]
  
  [INFO] Error building POM (may not be this project's POM).
 
 
  Project ID: org.apache.maven.plugins:maven-install-plugin
  POM
  Location: 
  /data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
 
  Reason: Not a v4.0.0 POM. for project
  org.apache.maven.plugins:maven-install-plugin
  at 
  /data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
 
 
 
  if using the -e version I get:
 
  [INFO]
  
  [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Unable
  to build project for plugin 
  'org.apache.maven.plugins:maven-install-plugin':
  Not a v4.0.0 POM. for project org.apache.maven.plugins:maven-install-plugin
  at 
  /data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1557)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1851)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1311)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:1275)
 
 
 
  Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to build
  project for plugin 'org.apache.maven.plugins:maven-install-plugin': Not a
  v4.0.0 POM. for project org.apache.maven.plugins:maven-install-plugin
  at 
  /data/colibria/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
  at
  org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:293)
  at
  org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:205)
 
 
 
  Please assist. Thanks!
 
 
 
 
 
 
  _
  Windows Live: Keep your friends up to date with what you do online.
  http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092010


 --

 Tony Chemit
 
 tél: +33 (0) 2 40 50 29 28
 email: che...@codelutin.com
 http://www.codelutin.com

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


 _
 Windows Live Hotmail: Your friends can get your Facebook updates, right from 
 Hotmail®.
 http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009

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



RE: Not a v4.0.0 POM error

2009-11-11 Thread Martin Gainty

VERKEERDE PAGINA!

Martin 
__ 
Tevrden verander/wijzig of onderbreek deze transmissie niet - Bedankt


 Date: Thu, 12 Nov 2009 01:21:26 +0100
 Subject: Re: Not a v4.0.0 POM error
 From: nick.stolw...@gmail.com
 To: users@maven.apache.org
 
 What do you see if you open it with a browser:
 
 https://www.mycomp.com/maven2/repository/public/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
 
 Is it a valid pom or some garble?
 
 With regards,
 
 Nick Stolwijk
 ~Java Developer~
 
 IPROFS BV.
 Claus Sluterweg 125
 2012 WS Haarlem
 http://www.iprofs.nl
 
 
 
 On Thu, Nov 12, 2009 at 12:19 AM, Gerardo Corro rob_gar_...@hotmail.com 
 wrote:
 
  Hi,
 
  Thanks for your message, however is not working :-(  the same error is 
  triggered again.
 
  Best regards
 
 
 
 
 
  I suggest you to delete the directory in your local repository
 
  /data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/
 
  anyway, for me nothing to see with ubuntu (I works on it too)
 
  I already had such errors when a download of an artifact failed (for 
  multiple reason...)
 
  hope it will help you.
 
  Cheers,
 
  Tony.
 
  
   [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
   'e6084a3bb5d435dcb42378cd3273f5db433cb944'; remote = ' �� ' - RETRYING
   Downloading:
   https://www.mycomp.com/maven2/repository/public/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
   1K downloaded  (maven-install-plugin-2.3.pom) [WARNING] *** CHECKSUM 
   FAILED -
   Checksum failed on download: local =
   'e6084a3bb5d435dcb42378cd3273f5db433cb944'; remote = ' �� ' - IGNORING 
   [INFO]
   
   [ERROR] BUILD ERROR [INFO]
   
   [INFO] Error building POM (may not be this project's POM).
  
  
   Project ID: org.apache.maven.plugins:maven-install-plugin
   POM
   Location: 
   /data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
  
   Reason: Not a v4.0.0 POM. for project
   org.apache.maven.plugins:maven-install-plugin
   at 
   /data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
  
  
  
   if using the -e version I get:
  
   [INFO]
   
   [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: 
   Unable
   to build project for plugin 
   'org.apache.maven.plugins:maven-install-plugin':
   Not a v4.0.0 POM. for project 
   org.apache.maven.plugins:maven-install-plugin
   at 
   /data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
   at
   org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1557)
   at
   org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1851)
   at
   org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1311)
   at
   org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:1275)
  
  
  
   Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to 
   build
   project for plugin 'org.apache.maven.plugins:maven-install-plugin': Not a
   v4.0.0 POM. for project org.apache.maven.plugins:maven-install-plugin
   at 
   /data/colibria/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
   at
   org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:293)
   at
   org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:205)
  
  
  
   Please assist. Thanks!
  
  
  
  
  
  
   _
   Windows Live: Keep your friends up to date with what you do online.
   http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092010
 
 
  --
 
  Tony Chemit
  
  tél: +33 (0) 2 40 50 29 28
  email: che...@codelutin.com
  http://www.codelutin.com
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
  _
  Windows Live Hotmail: Your friends can get your Facebook updates, right 
  from Hotmail®.
  http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For 

Re: How to get Spring Security with Maven?

2009-11-11 Thread Matt Milliss
I don't know about the 3.0.0.RC1 release but we get the 
3.0.0.CI-SNAPSHOT versions like this:


repositories
repository
idspring-milestone/id
nameSpring Portfolio Milestone Repository/name
urlhttp://s3.amazonaws.com/maven.springframework.org/milestone/url
/repository
repository
idspring.snapshots/id
nameSpring snapshot repository/name
urlhttp://maven.springframework.org/snapshot//url
releases
enabledfalse/enabled
/releases
snapshots
enabledtrue/enabled
/snapshots
/repository
/repositories

and depending on which jar you need:
dependencies
dependency
groupIdorg.springframework.security/groupId
artifactIdspring-security-config/artifactId
version3.0.0.CI-SNAPSHOT/version
scoperuntime/scope
/dependency
dependency
groupIdorg.springframework.security/groupId
artifactIdspring-security-core/artifactId
version3.0.0.CI-SNAPSHOT/version
scopecompile/scope
/dependency
dependency
groupIdorg.springframework.security/groupId
artifactIdspring-security-web/artifactId
version3.0.0.CI-SNAPSHOT/version
scopecompile/scope
/dependency
dependency
groupIdorg.springframework.security/groupId
artifactIdspring-security-taglibs/artifactId
version3.0.0.CI-SNAPSHOT/version
scoperuntime/scope
/dependency
/dependencies


On 12/11/09 00:11, Christian Helmbold wrote:

Hi,

I try to integrate Springs Maven repository, but it doen't work. Specifically I 
try to integrate Spring Security 3.0.0.RC1 (package: 
org.springframework.security.authentication.encoding).

I've adde the following repositories to my pom.xml:

repositories
 repository
 idcom.springsource.repository.bundles.release/id
 nameSpringSource Enterprise Bundle Repository - SpringSource Bundle 
Releases/name
 urlhttp://repository.springsource.com/maven/bundles/release/url
 /repository
 repository
 idcom.springsource.repository.bundles.external/id
 nameSpringSource Enterprise Bundle Repository - External Bundle 
Releases/name
 urlhttp://repository.springsource.com/maven/bundles/external/url
 /repository
 repository
 idspringsource-milestone/id
 urlhttp://repository.springsource.com/maven/bundles/milestone/url
 /repository
/repositories

And added to following dependency to the same file:

dependencies
 dependency
 groupIdorg.springframework/groupId
 artifactIdsecurity/artifactId
 version3.0.0.RC1/version
 /dependency
/dependencies

But Eclipse tells me in the related class, that the type (org.springframework.security.authentication.encoding) cannot 
be resolved. If I run mvn compile I get BUILD SUCCESSFUL. A small file with the name 
security.core-3.0.0.RC1.jar is added to the local repository, but its size is only 5 kb. If I run mvn 
test I get the expected error:

java.lang.Error: Unresolved compilation problems:
 The import org.springframework cannot be resolved
 ShaPasswordEncoder cannot be resolved to a type

How can I add Spring Security with maven to my project?

Regards,
Christian

  --
http://scala-forum.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



RE: maven site plugin not deploying subprojects in a multimodule project or generating indexhtml

2009-11-11 Thread Doug Daniels
If I define a src/site/site.xml, and src/site/apt/index.apt in my parent and 
child projects, it will generate an index.html for all child subproject modules.

I did have to do the workaround of defining a distributionManagement for each 
subproject module, but that's not that bad.

-Original Message-
From: Doug Daniels [mailto:ddani...@webwars.com]
Sent: Wednesday, November 11, 2009 4:48 PM
To: Maven Users List
Subject: RE: maven site plugin not deploying subprojects in a multimodule 
project or generating indexhtml

Sorry about that, you're correct, I had renamed some things in my pom.xml like 
my modules to make my example clearer and I forgot to rename that properly.

I'm wondering if anyone knows of any issues with the site plugin and why my 
subproject modules would generate all the source files except for the 
index.html.

I don't specify any src/site/ files like src/site/site.xml or 
src/site/apt/index.apt.

-Original Message-
From: Stevo Slavić [mailto:ssla...@gmail.com]
Sent: Wednesday, November 11, 2009 4:30 PM
To: Maven Users List
Subject: Re: maven site plugin not deploying subprojects in a multimodule 
project or generating indexhtml

Hello Doug,

That modules section seems to be wrong, module../moduleA-common/module
should probably be module../moduleA/module.

Personally I prefer putting child module directories within parent - its
natural, some plugins and tools used to have problems with relative paths,
and you don't have to set relativePath in child modules. In
maven-project-info-reports-plugin consider adding index report to the list.
One more tip, specify site plugin version in pluginManagement for build to
be reproducible - now it's not clear which version of the plugin you're
using, it's determined by maven version which is also not known.

Regards,
Stevo.

On Wed, Nov 11, 2009 at 10:07 PM, Doug Daniels ddani...@webwars.com wrote:

 I have a multimodule project that I want to deploy a site for, but it seems
 like my site deployment distributionManagement configuration is not being
 inherited by subproject child modules.

 parent
  - moduleA
  - moduleB

 They are located relative to each other
 /parent/
 /moduleA/
 /moduleB/

 When I  run:
 mvn site-deploy -P documentation

 My parent project is deployed properly to:
 scp://devServer/documentation/webwars/

 But none of the subprojects like moduleA or module is deployed there as I'd
 expect if child modules inherit parent distributionManagement:
 scp://devServer/documentation/webwars/moduleA
 scp://devServer/documentation/webwars/moduleB

 Here's my parent pom.xml, I removed some extraneous details and report
 plugins (I included my javadoc plugin which is a bit funky using APIViz and
 aggregate to ensure aggregate parent javadocs and child javadocs use APIViz
 properly.):

 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
groupIdcom.webwars/groupId
artifactId parent/artifactId
packagingpom/packaging
version1.0-SNAPSHOT/version
nameparent/name
distributionManagement
site
idwebwarsDev.website/id
urlscp://devServer/documentation/webwars//url
/site
/distributionManagement
modules
module../moduleA-common/module
module../moduleB/module
/modules
profiles
profile
iddocumentation/id
build
pluginManagement
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-pmd-plugin/artifactId
executions
execution
idverify_pmd/id
phaseverify/phase
goals
goalpmd/goal
/goals
configuration
linkXreftrue/linkXref
minimumTokens20/minimumTokens
targetJdk1.6/targetJdk
/configuration
/execution
/executions
/plugin

/plugins
/pluginManagement
/build
reporting
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId

  artifactIdmaven-project-info-reports-plugin/artifactId
version2.1.2/version
reportSets
  reportSet
reports
  reportproject-team/report
 

RE: Not a v4.0.0 POM error

2009-11-11 Thread Gerardo Corro

It's a valid pom:

$ ls -l maven-install-plugin-2.3.pom 
-rw-r--r-- 1 corro corro 1486 2009-11-12 01:33 maven-install-plugin-2.3.pom
$ file maven-install-plugin-2.3.pom 
maven-install-plugin-2.3.pom: gzip compressed data, from Unix
$ gunzip -c  maven-install-plugin-2.3.pom
?xml version=1.0 encoding=UTF-8?
project
xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd;
  modelVersion4.0.0/modelVersion

and the file continues... however Ubuntu Archive Manager Tool can't extract 
it, it says the pom has errors.

Best regards.


 Date: Thu, 12 Nov 2009 01:21:26 +0100
 Subject: Re: Not a v4.0.0 POM error
 From: nick.stolw...@gmail.com
 To: users@maven.apache.org
 
 What do you see if you open it with a browser:
 
 https://www.mycomp.com/maven2/repository/public/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
 
 Is it a valid pom or some garble?
 
 With regards,
 
 Nick Stolwijk
 ~Java Developer~
 
 IPROFS BV.
 Claus Sluterweg 125
 2012 WS Haarlem
 http://www.iprofs.nl
 
 
 
 On Thu, Nov 12, 2009 at 12:19 AM, Gerardo Corro rob_gar_...@hotmail.com 
 wrote:
 
  Hi,
 
  Thanks for your message, however is not working :-(  the same error is 
  triggered again.
 
  Best regards
 
 
 
 
 
  I suggest you to delete the directory in your local repository
 
  /data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/
 
  anyway, for me nothing to see with ubuntu (I works on it too)
 
  I already had such errors when a download of an artifact failed (for 
  multiple reason...)
 
  hope it will help you.
 
  Cheers,
 
  Tony.
 
  
   [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
   'e6084a3bb5d435dcb42378cd3273f5db433cb944'; remote = ' �� ' - RETRYING
   Downloading:
   https://www.mycomp.com/maven2/repository/public/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
   1K downloaded  (maven-install-plugin-2.3.pom) [WARNING] *** CHECKSUM 
   FAILED -
   Checksum failed on download: local =
   'e6084a3bb5d435dcb42378cd3273f5db433cb944'; remote = ' �� ' - IGNORING 
   [INFO]
   
   [ERROR] BUILD ERROR [INFO]
   
   [INFO] Error building POM (may not be this project's POM).
  
  
   Project ID: org.apache.maven.plugins:maven-install-plugin
   POM
   Location: 
   /data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
  
   Reason: Not a v4.0.0 POM. for project
   org.apache.maven.plugins:maven-install-plugin
   at 
   /data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
  
  
  
   if using the -e version I get:
  
   [INFO]
   
   [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: 
   Unable
   to build project for plugin 
   'org.apache.maven.plugins:maven-install-plugin':
   Not a v4.0.0 POM. for project 
   org.apache.maven.plugins:maven-install-plugin
   at 
   /data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
   at
   org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1557)
   at
   org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1851)
   at
   org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1311)
   at
   org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:1275)
  
  
  
   Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to 
   build
   project for plugin 'org.apache.maven.plugins:maven-install-plugin': Not a
   v4.0.0 POM. for project org.apache.maven.plugins:maven-install-plugin
   at 
   /data/colibria/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
   at
   org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:293)
   at
   org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:205)
  
  
  
   Please assist. Thanks!
  
  
  
  
  
  
   _
   Windows Live: Keep your friends up to date with what you do online.
   http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092010
 
 
  --
 
  Tony Chemit
  
  tél: +33 (0) 2 40 50 29 28
  email: che...@codelutin.com
  http://www.codelutin.com
 
  -
  To unsubscribe, e-mail: 

RE: Not a v4.0.0 POM error

2009-11-11 Thread Sean Hennessy
Pardon me but usually the .pom is an xml text file.
you should be able to open w/ text editor on ubuntu.
try using vi or gedit.

Sean

-Original Message-
From: Gerardo Corro [mailto:rob_gar_...@hotmail.com] 
Sent: Wednesday, November 11, 2009 5:11 PM
To: users@maven.apache.org
Subject: RE: Not a v4.0.0 POM error


It's a valid pom:

$ ls -l maven-install-plugin-2.3.pom
-rw-r--r-- 1 corro corro 1486 2009-11-12 01:33 maven-install-plugin-2.3.pom $ 
file maven-install-plugin-2.3.pom
maven-install-plugin-2.3.pom: gzip compressed data, from Unix $ gunzip -c  
maven-install-plugin-2.3.pom ?xml version=1.0 encoding=UTF-8? project 
xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd;
  modelVersion4.0.0/modelVersion

and the file continues... however Ubuntu Archive Manager Tool can't extract 
it, it says the pom has errors.

Best regards.


 Date: Thu, 12 Nov 2009 01:21:26 +0100
 Subject: Re: Not a v4.0.0 POM error
 From: nick.stolw...@gmail.com
 To: users@maven.apache.org
 
 What do you see if you open it with a browser:
 
 https://www.mycomp.com/maven2/repository/public/org/apache/maven/plugi
 ns/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
 
 Is it a valid pom or some garble?
 
 With regards,
 
 Nick Stolwijk
 ~Java Developer~
 
 IPROFS BV.
 Claus Sluterweg 125
 2012 WS Haarlem
 http://www.iprofs.nl
 
 
 
 On Thu, Nov 12, 2009 at 12:19 AM, Gerardo Corro rob_gar_...@hotmail.com 
 wrote:
 
  Hi,
 
  Thanks for your message, however is not working :-(  the same error is 
  triggered again.
 
  Best regards
 
 
 
 
 
  I suggest you to delete the directory in your local repository
 
  /data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/
 
  anyway, for me nothing to see with ubuntu (I works on it too)
 
  I already had such errors when a download of an artifact failed 
  (for multiple reason...)
 
  hope it will help you.
 
  Cheers,
 
  Tony.
 
  
   [WARNING] *** CHECKSUM FAILED - Checksum failed on download: 
   local = 'e6084a3bb5d435dcb42378cd3273f5db433cb944'; remote = '
   ' - RETRYING
   Downloading:
   https://www.mycomp.com/maven2/repository/public/org/apache/maven/
   plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
   1K downloaded  (maven-install-plugin-2.3.pom) [WARNING] *** 
   CHECKSUM FAILED - Checksum failed on download: local = 
   'e6084a3bb5d435dcb42378cd3273f5db433cb944'; remote = '' - 
   IGNORING [INFO]
   -
   ---
   [ERROR] BUILD ERROR [INFO]
   -
   --- [INFO] Error building POM (may not be this project's 
   POM).
  
  
   Project ID: org.apache.maven.plugins:maven-install-plugin
   POM
   Location: 
   /data/repository/org/apache/maven/plugins/maven-install-plugin/2.
   3/maven-install-plugin-2.3.pom
  
   Reason: Not a v4.0.0 POM. for project 
   org.apache.maven.plugins:maven-install-plugin
   at 
   /data/repository/org/apache/maven/plugins/maven-install-plugin/2.
   3/maven-install-plugin-2.3.pom
  
  
  
   if using the -e version I get:
  
   [INFO]
   -
   --- [INFO] Trace 
   org.apache.maven.lifecycle.LifecycleExecutionException: Unable to 
   build project for plugin 'org.apache.maven.plugins:maven-install-plugin':
   Not a v4.0.0 POM. for project 
   org.apache.maven.plugins:maven-install-plugin
   at 
   /data/repository/org/apache/maven/plugins/maven-install-plugin/2.
   3/maven-install-plugin-2.3.pom
   at
   org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
   DefaultLifecycleExecutor.java:1557)
   at
   org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescri
   ptor(DefaultLifecycleExecutor.java:1851)
   at
   org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycle
   ForPackaging(DefaultLifecycleExecutor.java:1311)
   at
   org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLife
   cycleMappings(DefaultLifecycleExecutor.java:1275)
  
  
  
   Caused by: org.apache.maven.plugin.InvalidPluginException: Unable 
   to build project for plugin 
   'org.apache.maven.plugins:maven-install-plugin': Not a v4.0.0 
   POM. for project org.apache.maven.plugins:maven-install-plugin
   at 
   /data/colibria/repository/org/apache/maven/plugins/maven-install-
   plugin/2.3/maven-install-plugin-2.3.pom
   at
   org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVe
   rsion(DefaultPluginManager.java:293)
   at
   org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugi
   n(DefaultPluginManager.java:205)
  
  
  
   Please assist. Thanks!
  
  
  
  
  
  
   _
   Windows Live: Keep your friends up to date with what you do online.
   

Re: Not a v4.0.0 POM error

2009-11-11 Thread Nick Stolwijk
It is trying to get the remote file and that one (the link you
provided) does not work on my computer. It may be you have changed the
link in your mail, or it that it will let you in. But if you get the
same as me, then there is your problem. Who or what put the pom file
on the url you are pointing to? Is is some repository manager?

With regards,

Nick Stolwijk
~Java Developer~

IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl



On Thu, Nov 12, 2009 at 2:19 AM, Sean Hennessy
shenne...@astutenetworks.com wrote:
 Pardon me but usually the .pom is an xml text file.
 you should be able to open w/ text editor on ubuntu.
 try using vi or gedit.

 Sean

 -Original Message-
 From: Gerardo Corro [mailto:rob_gar_...@hotmail.com]
 Sent: Wednesday, November 11, 2009 5:11 PM
 To: users@maven.apache.org
 Subject: RE: Not a v4.0.0 POM error


 It's a valid pom:

 $ ls -l maven-install-plugin-2.3.pom
 -rw-r--r-- 1 corro corro 1486 2009-11-12 01:33 maven-install-plugin-2.3.pom $ 
 file maven-install-plugin-2.3.pom
 maven-install-plugin-2.3.pom: gzip compressed data, from Unix $ gunzip -c  
 maven-install-plugin-2.3.pom ?xml version=1.0 encoding=UTF-8? project 
 xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/xsd/maven-4.0.0.xsd;
  modelVersion4.0.0/modelVersion

 and the file continues... however Ubuntu Archive Manager Tool can't extract 
 it, it says the pom has errors.

 Best regards.


 Date: Thu, 12 Nov 2009 01:21:26 +0100
 Subject: Re: Not a v4.0.0 POM error
 From: nick.stolw...@gmail.com
 To: users@maven.apache.org

 What do you see if you open it with a browser:

 https://www.mycomp.com/maven2/repository/public/org/apache/maven/plugi
 ns/maven-install-plugin/2.3/maven-install-plugin-2.3.pom

 Is it a valid pom or some garble?

 With regards,

 Nick Stolwijk
 ~Java Developer~

 IPROFS BV.
 Claus Sluterweg 125
 2012 WS Haarlem
 http://www.iprofs.nl



 On Thu, Nov 12, 2009 at 12:19 AM, Gerardo Corro rob_gar_...@hotmail.com 
 wrote:
 
  Hi,
 
  Thanks for your message, however is not working :-(  the same error is 
  triggered again.
 
  Best regards
 
 
 
 
 
  I suggest you to delete the directory in your local repository
 
  /data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/
 
  anyway, for me nothing to see with ubuntu (I works on it too)
 
  I already had such errors when a download of an artifact failed
  (for multiple reason...)
 
  hope it will help you.
 
  Cheers,
 
  Tony.
 
  
   [WARNING] *** CHECKSUM FAILED - Checksum failed on download:
   local = 'e6084a3bb5d435dcb42378cd3273f5db433cb944'; remote = '
   ' - RETRYING
   Downloading:
   https://www.mycomp.com/maven2/repository/public/org/apache/maven/
   plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
   1K downloaded  (maven-install-plugin-2.3.pom) [WARNING] ***
   CHECKSUM FAILED - Checksum failed on download: local =
   'e6084a3bb5d435dcb42378cd3273f5db433cb944'; remote = '    ' -
   IGNORING [INFO]
   -
   ---
   [ERROR] BUILD ERROR [INFO]
   -
   --- [INFO] Error building POM (may not be this project's
   POM).
  
  
   Project ID: org.apache.maven.plugins:maven-install-plugin
   POM
   Location:
   /data/repository/org/apache/maven/plugins/maven-install-plugin/2.
   3/maven-install-plugin-2.3.pom
  
   Reason: Not a v4.0.0 POM. for project
   org.apache.maven.plugins:maven-install-plugin
   at
   /data/repository/org/apache/maven/plugins/maven-install-plugin/2.
   3/maven-install-plugin-2.3.pom
  
  
  
   if using the -e version I get:
  
   [INFO]
   -
   --- [INFO] Trace
   org.apache.maven.lifecycle.LifecycleExecutionException: Unable to
   build project for plugin 
   'org.apache.maven.plugins:maven-install-plugin':
   Not a v4.0.0 POM. for project
   org.apache.maven.plugins:maven-install-plugin
   at
   /data/repository/org/apache/maven/plugins/maven-install-plugin/2.
   3/maven-install-plugin-2.3.pom
   at
   org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
   DefaultLifecycleExecutor.java:1557)
   at
   org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescri
   ptor(DefaultLifecycleExecutor.java:1851)
   at
   org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycle
   ForPackaging(DefaultLifecycleExecutor.java:1311)
   at
   org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLife
   cycleMappings(DefaultLifecycleExecutor.java:1275)
  
  
  
   Caused by: org.apache.maven.plugin.InvalidPluginException: Unable
   to build project for plugin
   'org.apache.maven.plugins:maven-install-plugin': Not a v4.0.0
   POM. for project org.apache.maven.plugins:maven-install-plugin
   at
   

Personal property substitution in m2

2009-11-11 Thread Jeff French

I'm finally getting the chance to migrate some of our m1 projects to m2, and
am wondering about the m2 way to do the following.

During our m1 test phase we replace macros such as @db.host@ in some config
files. The maven.xml file has a goal which defines some filters, and
individual developers can set properties such as db.host in their
build.properties file in the project root.

I'd like the same end result in m2 - that developers can use their local
database for testing. After Googling and looking at examples, it seems that
defining a profile in settings.xml might be the way to go, but that seems
like overkill for the simple macro replacement I'm trying to do. Is there a
better way to handle this in m2?

Thanks for any pointers.

Jeff
-- 
View this message in context: 
http://old.nabble.com/Personal-property-substitution-in-m2-tp26312742p26312742.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: Personal property substitution in m2

2009-11-11 Thread Paul Benedict
My response isn't an answer, but for what it's worth... The title
personal property substitution almost sounds like a real estate post
:-)

Paul

On Wed, Nov 11, 2009 at 9:17 PM, Jeff French j...@mdbconsulting.com wrote:

 I'm finally getting the chance to migrate some of our m1 projects to m2, and
 am wondering about the m2 way to do the following.

 During our m1 test phase we replace macros such as @db.host@ in some config
 files. The maven.xml file has a goal which defines some filters, and
 individual developers can set properties such as db.host in their
 build.properties file in the project root.

 I'd like the same end result in m2 - that developers can use their local
 database for testing. After Googling and looking at examples, it seems that
 defining a profile in settings.xml might be the way to go, but that seems
 like overkill for the simple macro replacement I'm trying to do. Is there a
 better way to handle this in m2?

 Thanks for any pointers.

    Jeff
 --
 View this message in context: 
 http://old.nabble.com/Personal-property-substitution-in-m2-tp26312742p26312742.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



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



Re: Using property name/value to activate profile

2009-11-11 Thread Anders Hammar
Ok, here what you should do:

1) define a property, let's say skip.db.creation and define a default
value of false.
2) bind the plugin to the appropriate phase. Configure it and use the
property above for the skip param.

No, if you run mvn install for instance, the default behavior will kick in
which is create he db. If you DON'T want the db to be created, you just run:
mvn install -Dskip.db.creation=true

You could use a profile to set the property to true instead, if you rather
go that way. You would then active the profile from the command lite
(instead of overriding the property value), like tis:
mvn install -Ptheprofilename

/Anders

On Thu, Nov 12, 2009 at 00:28, Yaakov Chaikin yaakov.chai...@gmail.comwrote:

 On Wed, Nov 11, 2009 at 6:19 PM, Tony Chemit che...@codelutin.com wrote:
  Le Wed, 11 Nov 2009 18:07:31 -0500,
  Yaakov Chaikin yaakov.chai...@gmail.com a écrit :
 
  Hmm... Just tried specifying createDbfalse/createDb in my
  settings.xml and it STILL does NOT activate any profiles! Anyone has
  any idea of what's going on here?
 
  Thanks in advance for your help.
 
  It seems weird to me to use 2 profile to do the same thing ?

 It doesn't do the SAME thing. First profile creates a property
 skipDbCreation with value TRUE, second creates the same property with
 the value FALSE.

 Basically, it's all because of the maven-sql-plugin. It has an element
 skip/skip, so execution of SQL scripts can be skipped. It's
 very annoying and counter-intuitive to have to specify a property (on
 a command line) when you actually want to recreate your database that
 says skipDbCreation=false... That feels like double negative. It's
 much more intuitive to say -DcreateDb=true instead.

 So, this whole hack is to basically flip the value of 'createDb' into
 its opposite. If it's true, the new property will be false, etc.

  why do you want to use 2 profiles ? Moreover why using a profile ?
  Could you not just use your property createDb ? and override it in your
 child pom ?

 See what I wrote above as the answer to this.

 In the end of the day, the answer to my problem is that profile
 activation can't be done by a property that is not inserted into the
 System properties. So, when you specify it on a command line, it works
 because it becomes a System property.

 Yaakov.

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




How to fix the java.net repository relocation

2009-11-11 Thread Lahiru Gunathilake
Hi all,

I am trying to build set stack of java products which fails due to the
relocation of https://maven-repository.dev.java.net/nonav/repository/. From
the product stack I am buiding Apache Axis2 very first and I cannot see this
repository in Axis2 pom.xml. So I tried to put the new location in to Axis2
pom and tried to build but still it's failing with some other artifacts. I
wanted to change the location where we artifacts pointing to this location,
so I ran a grep command inside my .m2 directory but I couldn't find any of
the .pom file where it refer to this repository.

I'm ahead of a release and have to do a clean repository build, so can
someone please help me to avoid this problem.

Regards
Lahiru

-- 
Apache Qpid, Worlds dominant messaging middleware..!!!


Re: How to fix the java.net repository relocation

2009-11-11 Thread Stephen Connolly
AFAIK,

Axis2 is an apache project and would be deploying to repo1.maven.org.
The rules for repo1.maven.org are that you cannot rely on any
artifacts which are not hosted on repo1.maven.org.

As such, I would expect that Axis2 _should not_ require artifacts from
java.net, and should not have any repository sections in their
pom.xml files. (OK technically they are allowed ones which are only
enabled for -SNAPSHOTs... but it cannot be enabled for releases)

That is the theory, now it may well be that Axis2 is being bold and
depending on java.net.

To answer your question.  Your best bet is to set up a maven
repository manager (e.g. nexus, artifactory, etc) and configure your
settings.xml to use that repository manager as mirrofOf*/mirrorOf

Then you can add all the repositories you want to source artifacts
from to your repository manager, and you should be able to build.

Also this sounds more like a question for the Axis2 list

-Stephen

2009/11/12 Lahiru Gunathilake glah...@gmail.com:
 Hi all,

 I am trying to build set stack of java products which fails due to the
 relocation of https://maven-repository.dev.java.net/nonav/repository/. From
 the product stack I am buiding Apache Axis2 very first and I cannot see this
 repository in Axis2 pom.xml. So I tried to put the new location in to Axis2
 pom and tried to build but still it's failing with some other artifacts. I
 wanted to change the location where we artifacts pointing to this location,
 so I ran a grep command inside my .m2 directory but I couldn't find any of
 the .pom file where it refer to this repository.

 I'm ahead of a release and have to do a clean repository build, so can
 someone please help me to avoid this problem.

 Regards
 Lahiru

 --
 Apache Qpid, Worlds dominant messaging middleware..!!!


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



Re: Personal property substitution in m2

2009-11-11 Thread Anders Hammar
Each user defining this property through a profile in his/her settings.xml
is the way to go. However, best practice is to have default values of the
properties defined in the project's pom. The project should NOT rely on
configuration in settings.xml.

/Anders

On Thu, Nov 12, 2009 at 04:17, Jeff French j...@mdbconsulting.com wrote:


 I'm finally getting the chance to migrate some of our m1 projects to m2,
 and
 am wondering about the m2 way to do the following.

 During our m1 test phase we replace macros such as @db.host@ in some
 config
 files. The maven.xml file has a goal which defines some filters, and
 individual developers can set properties such as db.host in their
 build.properties file in the project root.

 I'd like the same end result in m2 - that developers can use their local
 database for testing. After Googling and looking at examples, it seems that
 defining a profile in settings.xml might be the way to go, but that seems
 like overkill for the simple macro replacement I'm trying to do. Is there a
 better way to handle this in m2?

 Thanks for any pointers.

Jeff
 --
 View this message in context:
 http://old.nabble.com/Personal-property-substitution-in-m2-tp26312742p26312742.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: How to fix the java.net repository relocation

2009-11-11 Thread Lahiru Gunathilake
Hi Stephen,

On Thu, Nov 12, 2009 at 12:10 PM, Stephen Connolly 
stephen.alan.conno...@gmail.com wrote:

 AFAIK,

 Axis2 is an apache project and would be deploying to repo1.maven.org.
 The rules for repo1.maven.org are that you cannot rely on any
 artifacts which are not hosted on repo1.maven.org.

I think there were artifacts hosted and now it's moved.

As such, I would expect that Axis2 _should not_ require artifacts from
 java.net, and should not have any repository sections in their
 pom.xml files.

Yes axis2 doesn't have any repository section in it's pom files but when I
manually add the relocated repo in to the Axis2 pom it successfully get some
of the artifacts and later on it again refer to the wrong location and get a
html content in the the pom file. please refer the error here[1].

 (OK technically they are allowed ones which are only
 enabled for -SNAPSHOTs... but it cannot be enabled for releases)

 That is the theory, now it may well be that Axis2 is being bold and
 depending on java.net.

 To answer your question.  Your best bet is to set up a maven
 repository manager (e.g. nexus, artifactory, etc) and configure your
 settings.xml to use that repository manager as mirrofOf*/mirrorOf

I will try for this and get back to you.


[1]http://www.pastie.org/694974
Thanks in advance
Lahiru


 Then you can add all the repositories you want to source artifacts
 from to your repository manager, and you should be able to build.

 Also this sounds more like a question for the Axis2 list

 -Stephen

 2009/11/12 Lahiru Gunathilake glah...@gmail.com:
  Hi all,
 
  I am trying to build set stack of java products which fails due to the
  relocation of https://maven-repository.dev.java.net/nonav/repository/.
 From
  the product stack I am buiding Apache Axis2 very first and I cannot see
 this
  repository in Axis2 pom.xml. So I tried to put the new location in to
 Axis2
  pom and tried to build but still it's failing with some other artifacts.
 I
  wanted to change the location where we artifacts pointing to this
 location,
  so I ran a grep command inside my .m2 directory but I couldn't find any
 of
  the .pom file where it refer to this repository.
 
  I'm ahead of a release and have to do a clean repository build, so can
  someone please help me to avoid this problem.
 
  Regards
  Lahiru
 
  --
  Apache Qpid, Worlds dominant messaging middleware..!!!
 

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




-- 
Apache Qpid, Worlds dominant messaging middleware..!!!


Re: maven site plugin not deploying subprojects in a multimodule project or generating indexhtml

2009-11-11 Thread Stevo Slavić
Hello Doug,

Maybe I'm wrong but I have a feeling that you either haven't read completely
my initial reply or didn't understand it. In that parent pom snippet you've
configured maven-project-info-reports
pluginhttp://maven.apache.org/plugins/maven-project-info-reports-plugin/not
to generate index report, only cim, scm, and project-team reports.

Regards,
Stevo.

2009/11/12 Doug Daniels ddani...@webwars.com

 If I define a src/site/site.xml, and src/site/apt/index.apt in my parent
 and child projects, it will generate an index.html for all child subproject
 modules.

 I did have to do the workaround of defining a distributionManagement for
 each subproject module, but that's not that bad.

 -Original Message-
 From: Doug Daniels [mailto:ddani...@webwars.com]
 Sent: Wednesday, November 11, 2009 4:48 PM
 To: Maven Users List
 Subject: RE: maven site plugin not deploying subprojects in a multimodule
 project or generating indexhtml

 Sorry about that, you're correct, I had renamed some things in my pom.xml
 like my modules to make my example clearer and I forgot to rename that
 properly.

 I'm wondering if anyone knows of any issues with the site plugin and why my
 subproject modules would generate all the source files except for the
 index.html.

 I don't specify any src/site/ files like src/site/site.xml or
 src/site/apt/index.apt.

 -Original Message-
 From: Stevo Slavić [mailto:ssla...@gmail.com]
 Sent: Wednesday, November 11, 2009 4:30 PM
 To: Maven Users List
 Subject: Re: maven site plugin not deploying subprojects in a multimodule
 project or generating indexhtml

 Hello Doug,

 That modules section seems to be wrong,
 module../moduleA-common/module
 should probably be module../moduleA/module.

 Personally I prefer putting child module directories within parent - its
 natural, some plugins and tools used to have problems with relative paths,
 and you don't have to set relativePath in child modules. In
 maven-project-info-reports-plugin consider adding index report to the list.
 One more tip, specify site plugin version in pluginManagement for build to
 be reproducible - now it's not clear which version of the plugin you're
 using, it's determined by maven version which is also not known.

 Regards,
 Stevo.

 On Wed, Nov 11, 2009 at 10:07 PM, Doug Daniels ddani...@webwars.com
 wrote:

  I have a multimodule project that I want to deploy a site for, but it
 seems
  like my site deployment distributionManagement configuration is not
 being
  inherited by subproject child modules.
 
  parent
   - moduleA
   - moduleB
 
  They are located relative to each other
  /parent/
  /moduleA/
  /moduleB/
 
  When I  run:
  mvn site-deploy -P documentation
 
  My parent project is deployed properly to:
  scp://devServer/documentation/webwars/
 
  But none of the subprojects like moduleA or module is deployed there as
 I'd
  expect if child modules inherit parent distributionManagement:
  scp://devServer/documentation/webwars/moduleA
  scp://devServer/documentation/webwars/moduleB
 
  Here's my parent pom.xml, I removed some extraneous details and report
  plugins (I included my javadoc plugin which is a bit funky using APIViz
 and
  aggregate to ensure aggregate parent javadocs and child javadocs use
 APIViz
  properly.):
 
  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
 groupIdcom.webwars/groupId
 artifactId parent/artifactId
 packagingpom/packaging
 version1.0-SNAPSHOT/version
 nameparent/name
 distributionManagement
 site
 idwebwarsDev.website/id
 urlscp://devServer/documentation/webwars//url
 /site
 /distributionManagement
 modules
 module../moduleA-common/module
 module../moduleB/module
 /modules
 profiles
 profile
 iddocumentation/id
 build
 pluginManagement
 plugins
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-pmd-plugin/artifactId
 executions
 execution
 idverify_pmd/id
 phaseverify/phase
 goals
 goalpmd/goal
 /goals
 configuration
 linkXreftrue/linkXref
 minimumTokens20/minimumTokens
 targetJdk1.6/targetJdk
 /configuration
 /execution