SV: Continuum Startup error even though JAVA_HOME is set up

2006-10-27 Thread Naess, Ronny
We run Continuum on a unix server and have explicit added JAVA_HOME and
added maven and ant into PATH in run.sh.

On a Windows box it should probably be enough just to have JAVA_HOME,
ANT_HOME (if needed) and M2_HOME configured as environment variables.
You must ofcourse have %ANT_HOME%\bin and %M2_HOME%\bin in %PATH%
aswell. Test in shell by typing ant or mvn to verify. I guess you know
this already and that you have this settings configured and that this
might not be your problem?

-Ronny 

-Opprinnelig melding-
Fra: datech [mailto:[EMAIL PROTECTED] 
Sendt: 26. oktober 2006 22:35
Til: continuum-users@maven.apache.org
Emne: Re: Continuum Startup error even though JAVA_HOME is set up


Does that mean, I will need to modify the run.bat (for Windows NT) to
include Maven Home and Ant Home?
But I don't see it referring to Maven home and Ant Home in the bat file.
I still haven't solved the problem. Please help with more hints.

Thanks



Naess, Ronny wrote:
 
 I had simulare problems on Solaris.
 I ended up specifying JAVA_HOME and M2_HOME and updating PATH with 
 M2_HOME\bin inside run.sh As I now JAVA_HOME must exist and maven/ant 
 must exist in path when running continuum. For me it was not enough to

 specify them in user environment
 
 -Ronny
 
 -Opprinnelig melding-
 Fra: datech [mailto:[EMAIL PROTECTED]
 Sendt: 25. oktober 2006 02:17
 Til: continuum-users@maven.apache.org
 Emne: Continuum Startup error even though JAVA_HOME is set up
 
 
 I did find this problem in forums but the resolution specified didn't 
 work for me. I do have JAVA_HOME set up in my system and also I tried 
 modifying the wrapper.conf to specify the absolute path to my 
 JAVA_HOME instead of it using %JAVA_HOME%, but that didn't work too.
 
 I am getting  this error while trying to start up Continuum from 
 Win32/run.bat script
 | Critical error: wait for JVM process failed
 Press any key to continue . . .
 
 
 Please suggest what else could I change to make it work.
 
 
 --
 View this message in context:
 http://www.nabble.com/Continuum-Startup-error-even-though-JAVA_HOME-is
 -s
 et-up-tf2504948.html#a6984052
 Sent from the Continuum - Users mailing list archive at Nabble.com.
 
 
 
 
 
 

--
View this message in context:
http://www.nabble.com/Continuum-Startup-error-even-though-JAVA_HOME-is-s
et-up-tf2504948.html#a7019334
Sent from the Continuum - Users mailing list archive at Nabble.com.


!DSPAM:45411c0b56669724523251!



Re: Continuum Startup error even though JAVA_HOME is set up

2006-10-25 Thread Naess, Ronny
I had simulare problems on Solaris.
I ended up specifying JAVA_HOME and M2_HOME and updating PATH with
M2_HOME\bin inside run.sh
As I now JAVA_HOME must exist and maven/ant must exist in path when
running continuum. For me it was not enough to specify them in user
environment

-Ronny

-Opprinnelig melding-
Fra: datech [mailto:[EMAIL PROTECTED] 
Sendt: 25. oktober 2006 02:17
Til: continuum-users@maven.apache.org
Emne: Continuum Startup error even though JAVA_HOME is set up


I did find this problem in forums but the resolution specified didn't
work for me. I do have JAVA_HOME set up in my system and also I tried
modifying the wrapper.conf to specify the absolute path to my JAVA_HOME
instead of it using %JAVA_HOME%, but that didn't work too.

I am getting  this error while trying to start up Continuum from
Win32/run.bat script
| Critical error: wait for JVM process failed
Press any key to continue . . .


Please suggest what else could I change to make it work.


--
View this message in context:
http://www.nabble.com/Continuum-Startup-error-even-though-JAVA_HOME-is-s
et-up-tf2504948.html#a6984052
Sent from the Continuum - Users mailing list archive at Nabble.com.


!DSPAM:453ead19231834409620359!



Re: maven-changes-plugin help please

2006-10-25 Thread Naess, Ronny
 
Does maven-changes-plugin work well with M2 and what version should I
choose? I tried it a while ago without success.
By the way, we use Subversion.

-Ronny

-Opprinnelig melding-
Fra: Dennis Lundberg [mailto:[EMAIL PROTECTED] 
Sendt: 24. oktober 2006 23:15
Til: Maven Users List; [EMAIL PROTECTED]
Emne: Re: maven-changes-plugin help please

The Apache-version of the plugin is a reporting-plugin. This means that
it will generate its output during site generation. It also means that
configuration should be in the reporting section of your pom. Please
see:
   http://maven.apache.org/plugins/maven-changes-plugin/usage.html

--
Dennis Lundberg

Pete wrote:
 Help, I'm trying to switch from the old codehaus maven-changes-plugin 
 to the new org.apache.maven.plugins version.
 
 Previously I had my pom configured to use the old plugin during the 
 compile phase, so that a changes-report.html could be nested inside 
 the web app's pages.
 
 Now with the new plugin it doesn't seem to generate a report at all, 
 is there something about the new plugin which means it will only 
 generate during the 'site' goal ?
 
 I've tried with and without a phase, and -X doesn't show any 
 configuration for the plugin happening at all  :-
 
 
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-changes-plugin/artifactId
 version2.0-beta-2-SNAPSHOT/version
 executions
 execution
 idproduce changes html page/id
 
 !-- phasecompile/phase--
 inheritedfalse/inherited
 configuration   
   

xmlPath${project.build.outputDirectory}/changes/changes.xml/xmlPath
 reportSets
 reportSet
 reports
 reportchanges-report/report
 /reports
 /reportSet
 /reportSets
 /configuration
 goals
 goalchanges-report/goal
 /goals
 /execution
 /executions
 /plugin
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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


!DSPAM:453e87fd64881357017964!


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



SV: maven-changes-plugin help please

2006-10-25 Thread Naess, Ronny
Aha, I am mixing this plugin with the maven-developer-activity-plugin.

I tought this the changes-maven-plugin created a report based on filechanges in 
SCM, but thats ofcourse not the case :-) 
It is the other one I am interested in. Thx anyway.

-Ronny

-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sendt: 25. oktober 2006 10:20
Til: users@maven.apache.org
Emne: AW: maven-changes-plugin help please

Hi
I use

plugin
groupIdorg.codehaus.mojo/groupId

artifactIdchanges-maven-plugin/artifactId
version2.0-beta-1/version
reportSets
reportSet
reports

reportchanges-report/report
/reports
/reportSet
/reportSets
/plugin

works fine!



-Ursprüngliche Nachricht-
Von: Naess, Ronny [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 25. Oktober 2006 10:16
An: Maven Users List
Betreff: Re: maven-changes-plugin help please


 
Does maven-changes-plugin work well with M2 and what version should I choose? I 
tried it a while ago without success.
By the way, we use Subversion.

-Ronny

-Opprinnelig melding-
Fra: Dennis Lundberg [mailto:[EMAIL PROTECTED]
Sendt: 24. oktober 2006 23:15
Til: Maven Users List; [EMAIL PROTECTED]
Emne: Re: maven-changes-plugin help please

The Apache-version of the plugin is a reporting-plugin. This means that it will 
generate its output during site generation. It also means that configuration 
should be in the reporting section of your pom. Please
see:
   http://maven.apache.org/plugins/maven-changes-plugin/usage.html

--
Dennis Lundberg

Pete wrote:
 Help, I'm trying to switch from the old codehaus maven-changes-plugin 
 to the new org.apache.maven.plugins version.
 
 Previously I had my pom configured to use the old plugin during the 
 compile phase, so that a changes-report.html could be nested inside 
 the web app's pages.
 
 Now with the new plugin it doesn't seem to generate a report at all, 
 is there something about the new plugin which means it will only 
 generate during the 'site' goal ?
 
 I've tried with and without a phase, and -X doesn't show any 
 configuration for the plugin happening at all  :-
 
 
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-changes-plugin/artifactId
 version2.0-beta-2-SNAPSHOT/version
 executions
 execution
 idproduce changes html page/id
 
 !-- phasecompile/phase--
 inheritedfalse/inherited
 configuration   
   

xmlPath${project.build.outputDirectory}/changes/changes.xml/xmlPath
 reportSets
 reportSet
 reports
 reportchanges-report/report
 /reports
 /reportSet
 /reportSets
 /configuration
 goals
 goalchanges-report/goal
 /goals
 /execution
 /executions
 /plugin
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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





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

  
 

Kabel Deutschland bietet Ihnen Internet, Telefonieren und Fernsehen aus einer 
Hand. Informieren Sie sich über unsere Produkte unter 

www.kabeldeutschland.de
 
Diese E-Mail und etwaige Anhänge enthalten vertrauliche und/oder rechtlich 
geschützte Informationen. Wenn Sie nicht der richtige Adressat sind, 
benachrichtigen Sie bitte den Absender und vernichten Sie anschließend diese 
Mail und die Anlagen.


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


!DSPAM:453f1e7819381367111490!


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



How to flag successful build

2006-10-25 Thread Naess, Ronny
We use continuum to build all server projects (maven) and client projects(Bea 
Workshop project buildt with Ant).
We want to deploy the ear buildt from the workshopproject to out testserver 
(weblogic). 

The clue is to deploy only if server projects is successfully buildt. The ant 
script (workshop) should then check for a flag (SUCCESS) before deployment.

How can we flag success full build from maven. I tried to use antrun to create 
a SUCCESS file after installphase and delete the same file after validatephase, 
but this does not work since parent-pom is handled as a separate project. This 
means while parent deletes the SUCCESS file it also creates the file before the 
modules starts to do the same.

Is there a smart way to solve this?

-Ronny

-Opprinnelig melding-
Fra: Naess, Ronny [mailto:[EMAIL PROTECTED] 
Sendt: 25. oktober 2006 10:40
Til: Maven Users List
Emne: SV: maven-changes-plugin help please

Aha, I am mixing this plugin with the maven-developer-activity-plugin.

I tought this the changes-maven-plugin created a report based on filechanges in 
SCM, but thats ofcourse not the case :-) It is the other one I am interested 
in. Thx anyway.

-Ronny

-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sendt: 25. oktober 2006 10:20
Til: users@maven.apache.org
Emne: AW: maven-changes-plugin help please

Hi
I use

plugin
groupIdorg.codehaus.mojo/groupId

artifactIdchanges-maven-plugin/artifactId
version2.0-beta-1/version
reportSets
reportSet
reports

reportchanges-report/report
/reports
/reportSet
/reportSets
/plugin

works fine!



-Ursprüngliche Nachricht-
Von: Naess, Ronny [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 25. Oktober 2006 10:16
An: Maven Users List
Betreff: Re: maven-changes-plugin help please


 
Does maven-changes-plugin work well with M2 and what version should I choose? I 
tried it a while ago without success.
By the way, we use Subversion.

-Ronny

-Opprinnelig melding-
Fra: Dennis Lundberg [mailto:[EMAIL PROTECTED]
Sendt: 24. oktober 2006 23:15
Til: Maven Users List; [EMAIL PROTECTED]
Emne: Re: maven-changes-plugin help please

The Apache-version of the plugin is a reporting-plugin. This means that it will 
generate its output during site generation. It also means that configuration 
should be in the reporting section of your pom. Please
see:
   http://maven.apache.org/plugins/maven-changes-plugin/usage.html

--
Dennis Lundberg

Pete wrote:
 Help, I'm trying to switch from the old codehaus maven-changes-plugin 
 to the new org.apache.maven.plugins version.
 
 Previously I had my pom configured to use the old plugin during the 
 compile phase, so that a changes-report.html could be nested inside 
 the web app's pages.
 
 Now with the new plugin it doesn't seem to generate a report at all, 
 is there something about the new plugin which means it will only 
 generate during the 'site' goal ?
 
 I've tried with and without a phase, and -X doesn't show any 
 configuration for the plugin happening at all  :-
 
 
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-changes-plugin/artifactId
 version2.0-beta-2-SNAPSHOT/version
 executions
 execution
 idproduce changes html page/id
 
 !-- phasecompile/phase--
 inheritedfalse/inherited
 configuration   
   

xmlPath${project.build.outputDirectory}/changes/changes.xml/xmlPath
 reportSets
 reportSet
 reports
 reportchanges-report/report
 /reports
 /reportSet
 /reportSets
 /configuration
 goals
 goalchanges-report/goal
 /goals
 /execution
 /executions
 /plugin
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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





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

  
 

Kabel Deutschland bietet Ihnen Internet, Telefonieren und Fernsehen aus einer 
Hand. Informieren Sie sich über unsere Produkte unter 

www.kabeldeutschland.de

SV: How to flag successful build

2006-10-25 Thread Naess, Ronny
Just to answere my own question.

I used maven-antrun-plugin. The verify phase is followed with a delete
SUCCESS (a file acting aka our flag) command. The install phase is
followed with a create file (ant touch) command.

Super POM
--
plugin
artifactIdmaven-antrun-plugin/artifactId
executions
execution
iddelete/id
phasevalidate/phase
configuration
tasks
taskdef
resource=net/sf/antcontrib/antcontrib.properties
classpath
refid=maven.plugin.classpath/
/taskdef
if
equals
arg1=${successPath} arg2=$${successPath} /!--Not set, and
additional $ to escape the property--
then
!--echo
message=The value of property successPath is ${successPath} /--
/then
else
!--echo
message=The value of property successPath is ${successPath} /--
property
name=success.file value=${successPath}/SUCCESS/
echo
message=Delete file ${success.file}/
delete
file=${success.file}/
/else
/if
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
execution
idcreate/id
phaseinstall/phase
configuration
tasks
taskdef
resource=net/sf/antcontrib/antcontrib.properties
classpath
refid=maven.plugin.classpath/
/taskdef
if
equals
arg1=${successPath} arg2=$${successPath} /!--Not set, and
additional $ to escape the property--
then
!--echo
message=The value of property successPath is ${successPath} /--
/then
else
!--echo
message=The value of property successPath is ${successPath} /--
property
name=success.file value=${successPath}/SUCCESS/
echo
message=Create file ${success.file}/
touch
file=${success.file}/
/else
/if

/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
dependencies
dependency
groupIdant-contrib/groupId
artifactIdant-contrib/artifactId
version1.0b2/version
scoperuntime/scope
/dependency
/dependencies
/plugin



To use provide property successPath: 
mvn install -DsuccessPath=/local/users/continuum/xxx

Then check the SUCCESS file from the ant script or whatever that has a
dependency to this maven buildt artifacts. If SUCCESS exists the build
was successful else there was somthing wrong.

The -DsuccessPath will be added to continuum where our SuperPOM is
beeing buildt.

-Ronny


-Opprinnelig melding-
Fra: Naess, Ronny [mailto:[EMAIL PROTECTED] 
Sendt: 25. oktober 2006 11:31
Til: Maven Users List
Emne: How to flag successful build

We use continuum to build all server projects (maven) and client
projects(Bea Workshop project buildt with Ant).
We want to deploy the ear buildt from the workshopproject to out
testserver (weblogic). 

The clue is to deploy only if server projects is successfully buildt.
The ant script (workshop) should then check for a flag (SUCCESS) before
deployment.

How can we flag success full build from maven. I tried to use antrun to
create a SUCCESS file after installphase and delete the same file after
validatephase

Build tools

2006-10-17 Thread Naess, Ronny
Hi, all.
 
I have several projects running on Continuum 1.0.3. Mostly M2 projects
but also two ant projects.
 
I have some questions conserning configuration.
 
Do I have to install ant and maven separatly to make continuum work? the
reason I ask is because we had to do it for maven, but not for ant. How
is this possible?
Anyway if Ant is included with continuum. Where can I add ant library
dependencies (svnant and ant-contrib) or better, how can I change what
ant installation to use? 
 
Am I doing it wrong here??
 
-Ronny


Re: Build tools

2006-10-17 Thread Naess, Ronny
 
I think I found it out. The solaris box had an old Ant version installed
with the os. This is the Ant version Continuum used and thats why the
library dependencies needed by ant was not found.

I assume therefore that ANT_HOME, M2_HOME and JAVA_HOME must be in the
continuum users environment as a separate install and configuration pre
continuum installation. Is this correct?

-Ronny


-Opprinnelig melding-
Fra: Naess, Ronny [mailto:[EMAIL PROTECTED] 
Sendt: 17. oktober 2006 10:12
Til: continuum-users@maven.apache.org
Emne: Build tools

Hi, all.
 
I have several projects running on Continuum 1.0.3. Mostly M2 projects
but also two ant projects.
 
I have some questions conserning configuration.
 
Do I have to install ant and maven separatly to make continuum work? the
reason I ask is because we had to do it for maven, but not for ant. How
is this possible?
Anyway if Ant is included with continuum. Where can I add ant library
dependencies (svnant and ant-contrib) or better, how can I change what
ant installation to use? 
 
Am I doing it wrong here??
 
-Ronny


!DSPAM:4534907b139486491211187!


Re: how to exclude a package / files from generated JAR-file?

2006-10-16 Thread Naess, Ronny
It is compile that actually creates and copies resource deps into your
target/classes directory. The files under here is then bundled into a
jar.

A solution for you could be to exclude the unwanted package at compile
time.

build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
excludes
exclude**/*unwantedPackageName*/exclude
/excludes
/configuration
 /plugin
 /plugins
/build 


-Ronny

-Opprinnelig melding-
Fra: noon [mailto:[EMAIL PROTECTED] 
Sendt: 11. oktober 2006 11:16
Til: users@maven.apache.org
Emne: how to exclude a package / files from generated JAR-file?


While migrating from Maven1 to Maven2...
I've been trying to find a proper solution for this, but I'm still stuck
with this.

I have Java-files in 3 packages (folders) in my Eclipse project and I
wan't (for some reasons) to excelude one of these packages. With mvn
package command I get an JAR-file with all .class files. I've been
trying with differend solutions to excelude files / folder(s) from the
JAR with any luck.

In Maven 1, I was able to enter the exceluded folder in
project.properties-file, but in maven2 I don't know what to put and
where :|

Any ideas?
--
View this message in context:
http://www.nabble.com/how-to-exclude-a-package---files-from-generated-JA
R-file--tf2422135.html#a6752935
Sent from the Maven - Users mailing list archive at Nabble.com.


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


!DSPAM:452cb65e8671995315910!


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



SV: jar and war together

2006-10-09 Thread Naess, Ronny
Do you have one pom with one war artifact and one jar dependency, or do
you have one parent pom (maven 2) with two modules/artifacts?

I guess you want your jar in [war]/WEB-INF/lib when deployed to server?
The jar artifact should be included into lib if spesified as a
dependency. The war plugin is responsible for collecting all artifact
dependencies, classes and resources of the web application and packaging
them into a web application archive. 

With install, do you mean install into appserver or do you mean maven
install aka uploading to local repository? If you meant install to
appserver take a look at Cargo, http://cargo.codehaus.org/Maven2+plugin,
if the latter look at
http://maven.apache.org/plugins/maven-install-plugin/ in short just run
'mvn install'. I guess it was the first you were after? :-)

-Ronny

-Opprinnelig melding-
Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 08:40
Til: users@maven.apache.org
Emne: jar and war together

hi all
 i want to install jar and war from one pom but how i can
achieve this i do not know i tried and able to made the jar and war from
single pom but able only to install one ,either jar or war
  can any one tell  me how  i can install or deploy both jar and war
Regards Neeraj


!DSPAM:4529eef09691709321452!

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



SV: jar and war together

2006-10-09 Thread Naess, Ronny
Sorry, I do not have the answer for why this is not working. Maybe you
could try it the other way around?
Change your pom to hav packaging to war, and specify maven-jar-plugin
instead.

We have more than one pom with packaging set to jar and at same time
using maven-jar-plugin spesifying test-jar goal and both jars installs
correct to our repository.

-Ronny

-Opprinnelig melding-
Fra: neeraj daffodil [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 09:40
Til: Maven Users List
Emne: Re: jar and war together

i have simple pom which contain only one source and of this source i
want to make war and jar

means
 1)  i have one source and genrate jar and war of same source

my pom is like

project
  modelVersion4.0.0/modelVersion
  groupIdcom.daffodilwoods.framework/groupId
  artifactIddakwar/artifactId
  version1.0-SNAPSHOT/version
  packagingjar/packaging  !-- gunrate jar for my project --
dependencies
 dependency

 ..
 /dependency
dependencies


plugin !-- genrate war of same project --
 groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
executions
  execution
phaseinstall/phase
configuration
echohi i am configuring the WarSourceDirectory.. /echo
 /configuration
goals
  goalwar/goal
/goals
  /execution
/executions
  /plugin
   /plugins

   defaultGoalpackage/defaultGoal
  /build

/project



i am able to genrate dakwar-1.0-SNAPSHOT.jar and

dakwar-1.0-SNAPSHOT.war but only able to install dakwar-1.0-SNAPSHOT.jar

in my local repository but i need both jar and war to be install in my
local repository

i am doing these operation on one source

how i can achieve this please tell

Regards

Neeraj





On 10/9/06, Naess, Ronny [EMAIL PROTECTED] wrote:

 Do you have one pom with one war artifact and one jar dependency, or 
 do you have one parent pom (maven 2) with two modules/artifacts?

 I guess you want your jar in [war]/WEB-INF/lib when deployed to
server?
 The jar artifact should be included into lib if spesified as a 
 dependency. The war plugin is responsible for collecting all artifact 
 dependencies, classes and resources of the web application and 
 packaging them into a web application archive.

 With install, do you mean install into appserver or do you mean maven 
 install aka uploading to local repository? If you meant install to 
 appserver take a look at Cargo, 
 http://cargo.codehaus.org/Maven2+plugin,
 if the latter look at
 http://maven.apache.org/plugins/maven-install-plugin/ in short just 
 run 'mvn install'. I guess it was the first you were after? :-)

 -Ronny

 -Opprinnelig melding-
 Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED]
 Sendt: 9. oktober 2006 08:40
 Til: users@maven.apache.org
 Emne: jar and war together

 hi all
 i want to install jar and war from one pom but how i can 
 achieve this i do not know i tried and able to made the jar and war 
 from single pom but able only to install one ,either jar or war can 
 any one tell  me how  i can install or deploy both jar and war Regards

 Neeraj


 

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




!DSPAM:4529fcd7162322988016950!

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



SV: Aid with Maven2

2006-10-09 Thread Naess, Ronny
Try 'mvn -cpu install'  or also delete the plugin manually in your
repository so it downloads a new one when you try again.

-Ronny

-Opprinnelig melding-
Fra: Saminda Abeyruwan [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 10:04
Til: users@maven.apache.org
Emne: Aid with Maven2

Hi All,

I'm in the process of migrating from Maven1 to Maven2.

I got the following problem,

When i say mvn install, it'll work. But after when i said, mvn clean,
following exception occurred with -e

===
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin '
org.apache.maven.plugins:maven-clean-plugin' does not exist or no valid
version could be found
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
DefaultLifecycleExecutor.java:1281)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(
DefaultLifecycleExecutor.java:1517)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPack
aging
(DefaultLifecycleExecutor.java:1011)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMa
ppings
(DefaultLifecycleExecutor.java:975)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:453)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures
(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:140)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.

==

How can i force Maven2 to download this 
org.apache.maven.plugins:maven-clean-plugin plugin. I tried maven2.x
site, couldn't find the solution though.

Please do help me.

Thank you

Saminda


!DSPAM:452a02c9292701272651560!

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



Re: problem getting started

2006-10-09 Thread Naess, Ronny
Can you paste your POM?


-Opprinnelig melding-
Fra: Bart Zagers [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 09:57
Til: users@maven.apache.org
Emne: Re: problem getting started


This doesn't really help, the intro is the same/similar as with the
basic Maven starting guide and naturally does not mention my basic (and
probably
stupid) problem.

[INFO] [compiler:testCompile]
Compiling 1 source file to D:\test\VacApp\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory: D:\test\VacApp\target\surefire-reports
Het systeem kan het opgegeven pad niet vinden.
Het systeem kan het opgegeven pad niet vinden.
[INFO]

[ERROR] BUILD FAILURE
[INFO]



The dutch system message says The system cannot find the given path
but I have no clue what is going wrong or where to start looking for it.

Bart.

 

mmistroni wrote:
 
 Hello,
   try BBWM..
 http://www.mergere.com/m2book_download.jsp
 
 hth
  marco
 
 

--
View this message in context:
http://www.nabble.com/problem-getting-started-tf2404688.html#a6713163
Sent from the Maven - Users mailing list archive at Nabble.com.


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


!DSPAM:452a00d8269594409620359!


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



SV: problem getting started

2006-10-09 Thread Naess, Ronny
I agree. Not much in this pom that can og wrong. 

If you have tested it on an other machine and it workd there must be a
path issue or something like your dutch message says :-)

-Ronny

-Opprinnelig melding-
Fra: Bart Zagers [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 10:40
Til: users@maven.apache.org
Emne: Re: problem getting started


I don't think the problem is there, it's the basic generated pom

project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
  modelVersion4.0.0/modelVersion
  groupIdorg.vac.app/groupId
  artifactIdVacApp/artifactId
  packagingjar/packaging
  version1.0-SNAPSHOT/version
  nameMaven Quick Start Archetype/name
  urlhttp://maven.apache.org/url
  dependencies
dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
  scopetest/scope
/dependency
  /dependencies
/project

The only thing I have changed is the local repository in the
settings.xml:
...
localRepositoryD:/test/repository/localRepository
...

In the meantime I have tried it on a secondary machine (same jdk, same
Maven) and there it works fine.
mvn archetype:create -DgroupId=org.vac.app -DartifactId=VacApp mvn test



Naess, Ronny wrote:
 
 Can you paste your POM?
 
 
 -Opprinnelig melding-
 Fra: Bart Zagers [mailto:[EMAIL PROTECTED]
 Sendt: 9. oktober 2006 09:57
 Til: users@maven.apache.org
 Emne: Re: problem getting started
 
 
 This doesn't really help, the intro is the same/similar as with the 
 basic Maven starting guide and naturally does not mention my basic 
 (and probably
 stupid) problem.
 
 [INFO] [compiler:testCompile]
 Compiling 1 source file to D:\test\VacApp\target\test-classes
 [INFO] [surefire:test]
 [INFO] Surefire report directory: 
 D:\test\VacApp\target\surefire-reports
 Het systeem kan het opgegeven pad niet vinden.
 Het systeem kan het opgegeven pad niet vinden.
 [INFO]
 --
 --
 [ERROR] BUILD FAILURE
 [INFO]
 --
 --
 
 
 The dutch system message says The system cannot find the given path
 but I have no clue what is going wrong or where to start looking for
it.
 
 Bart.
 
  
 
 mmistroni wrote:
 
 Hello,
   try BBWM..
 http://www.mergere.com/m2book_download.jsp
 
 hth
  marco
 
 
 
 --
 View this message in context:
 http://www.nabble.com/problem-getting-started-tf2404688.html#a6713163
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
View this message in context:
http://www.nabble.com/problem-getting-started-tf2404688.html#a6713727
Sent from the Maven - Users mailing list archive at Nabble.com.


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


!DSPAM:452a0af411681383415936!


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



SV: Multiple Project, Multiple POM

2006-10-09 Thread Naess, Ronny
In your osstaf/project pom create a dependency to jgtfw like this.

dependency
groupIdyour.jgtfw.group.id/groupId
artifactIdjgtfw/artifactId
version1.0-SNAPSHOT/version!-- or the correct version
number you are using --
/dependency 

When compiling osstaf the dependency will be availible as long as you av
installed jgtfw into your repository already.

In parent dir run 'mvn install' or run jgtfw/ 'mvn install' first and
then whatever for osstaf.

-Ronny

-Opprinnelig melding-
Fra: swdev [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 11:09
Til: users@maven.apache.org
Emne: Multiple Project, Multiple POM


Hello,

Suppose I have the following directory structure:

+ jgtfw
. + src
.. + main
... + java
 * CrudAction.java
* pom.xml

+ osstaf
. + src
.. + main
... + webapp
* pom.xml

I want to use CrudAction.java in osstaf project, as WebWork Generic Crud
Action.

How can Maven POM accomplished this
It is very easy to solve this problem in Ant.

But how can Maven solve this multiproject dependency. I am quite new in
this Maven area.

Thank you

Regards.
Eko SW

PS: The main point is, I would like to extract common things in a
WebWork project, to another Base Project, that is JGTFW (acronym for
Java Gama Techno Frame Work). And I would like to take benefit of Maven
Powerful Build System. 
--
View this message in context:
http://www.nabble.com/Multiple-Project%2C-Multiple-POM-tf2408736.html#a6
714059
Sent from the Maven - Users mailing list archive at Nabble.com.


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


!DSPAM:452a11ba136891492418586!


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



SV: buildnumber for maven2

2006-10-09 Thread Naess, Ronny
Since it not is a release i guess timestamp would solve your purposes?

Try 'mvn deploy' it uploads a timestamped artifact to your internal
repository (must be configured). It is to be considered as a stable
snapshot build.

Internal repository:
distributionManagement
repository
idinternal/id
urlscp://carrotServer1/opt/web/mavenrepos/url
/repository
/distributionManagement


Also

Here is a guys post of a maven-timestamp-plugin hi made and uses
http://mail-archives.apache.org/mod_mbox/geronimo-dev/200602.mbox/%3C752
[EMAIL PROTECTED]


-Ronny

-Opprinnelig melding-
Fra: Ravinder Singh [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 11:35
Til: Maven Users List
Emne: buildnumber for maven2

I want to have a buildnumber appended to each snapshot I generate.. Is
this possible using maven2?
 
I was looking at
groupIdorg.codehaus.mojo/groupId
  artifactIdmaven-buildnumber-plugin/artifactId
But it seems that this is for maven1, or am i wrong?
 
 
Ravinder Singh
 


!DSPAM:452a17e5181941367111490!

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



SV: jar and war together

2006-10-09 Thread Naess, Ronny
What, it says it installes the war to the jar? Is it replacing/moving
it? Seems like strange behavior.

Is it only the jar and now war inside C:\Documents and
Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwoods\fr
amework\dakwar\1.0-SNAPSHOT\

If only the jar, if you look iside that jar, is it the war content you
see?

-Ronny 

-Opprinnelig melding-
Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 11:52
Til: Maven Users List
Emne: Re: jar and war together

hi Ronny
  i tried both way and not able to install the jar or war actully it
is installing jar but which is it installing is also wrong while at
installing it show following message

Installing
D:\data\localcvs\ABHIWORK\sample\Release\DAK\module\war\target\dakwar-
1.0-SNAPSHOT.war to C:\Documents and
Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwoods\fr
amework\dakwar\1.0-SNAPSHOT\dakwar-
1.0-SNAPSHOT.jar

On 10/9/06, Naess, Ronny [EMAIL PROTECTED] wrote:

 Sorry, I do not have the answer for why this is not working. Maybe you

 could try it the other way around?
 Change your pom to hav packaging to war, and specify maven-jar-plugin 
 instead.

 We have more than one pom with packaging set to jar and at same time 
 using maven-jar-plugin spesifying test-jar goal and both jars installs

 correct to our repository.

 -Ronny

 -Opprinnelig melding-
 Fra: neeraj daffodil [mailto:[EMAIL PROTECTED]
 Sendt: 9. oktober 2006 09:40
 Til: Maven Users List
 Emne: Re: jar and war together

 i have simple pom which contain only one source and of this source i 
 want to make war and jar

 means
 1)  i have one source and genrate jar and war of same source

 my pom is like

 project
 modelVersion4.0.0/modelVersion
 groupIdcom.daffodilwoods.framework/groupId
 artifactIddakwar/artifactId
 version 1.0-SNAPSHOT/version
 packagingjar/packaging  !-- gunrate jar for my project -- 
 dependencies
 dependency

 ..
 /dependency
 dependencies


 plugin !-- genrate war of same project --
 groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
executions
  execution
phaseinstall/phase
configuration
echohi i am configuring the WarSourceDirectory.. /echo
 /configuration
goals
  goalwar/goal
/goals
  /execution
/executions
  /plugin
   /plugins

   defaultGoalpackage/defaultGoal
 /build

 /project



 i am able to genrate dakwar-1.0-SNAPSHOT.jar and

 dakwar-1.0-SNAPSHOT.war but only able to install 
 dakwar-1.0-SNAPSHOT.jar

 in my local repository but i need both jar and war to be install in my

 local repository

 i am doing these operation on one source

 how i can achieve this please tell

 Regards

 Neeraj





 On 10/9/06, Naess, Ronny  [EMAIL PROTECTED] wrote:
 
  Do you have one pom with one war artifact and one jar dependency, or

  do you have one parent pom (maven 2) with two modules/artifacts?
 
  I guess you want your jar in [war]/WEB-INF/lib when deployed to
 server?
  The jar artifact should be included into lib if spesified as a 
  dependency. The war plugin is responsible for collecting all 
  artifact dependencies, classes and resources of the web application 
  and packaging them into a web application archive.
 
  With install, do you mean install into appserver or do you mean 
  maven install aka uploading to local repository? If you meant 
  install to appserver take a look at Cargo, 
  http://cargo.codehaus.org/Maven2+plugin,
  if the latter look at
  http://maven.apache.org/plugins/maven-install-plugin/ in short just 
  run 'mvn install'. I guess it was the first you were after? :-)
 
  -Ronny
 
  -Opprinnelig melding-
  Fra: Neeraj Bisht [mailto: [EMAIL PROTECTED]
  Sendt: 9. oktober 2006 08:40
  Til: users@maven.apache.org
  Emne: jar and war together
 
  hi all
  i want to install jar and war from one pom but how i can 
  achieve this i do not know i tried and able to made the jar and war 
  from single pom but able only to install one ,either jar or war can 
  any one tell  me how  i can install or deploy both jar and war 
  Regards

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


 

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




!DSPAM:452a1d98252891709321452!

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



SV: Building POMs

2006-10-09 Thread Naess, Ronny
Yes, that is correct. 

-Opprinnelig melding-
Fra: Elliotte Harold [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 12:57
Til: Maven Users List
Kopi: [EMAIL PROTECTED]
Emne: Re: Building POMs

Elliotte Harold wrote:
 How do I set up Maven 1.0.2 to generate a POM file? It used to do this 
 automatically with maven dist:deploy but since we shifted over to 
 WebDAV deployment that no longer happens. Jaxen has no POM for beta 10 
 or 11 at this point.
 

Wait a minute. Is the POM file just the project.xml file with a different name? 
If so I think I can figure this out.

--
Elliotte Rusty Harold  [EMAIL PROTECTED] Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/

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


!DSPAM:452a2b31136411709321452!



SV: Warnings accessing M1 repository

2006-10-09 Thread Naess, Ronny
Try http://repo1.maven.org/maven/ instead

-Ronny 

-Opprinnelig melding-
Fra: Sybren Stüvel [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 12:46
Til: users@maven.apache.org
Emne: Warnings accessing M1 repository

Hi there,

I'm moving our projects from Maven 1 to Maven 2, and things are looking good. 
When running Maven 2 I do get a list of warnings:

Downloading: http://repo1.maven.org/maven2/jaxb/xalan/1.2.6/xalan-1.2.6.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/mailapi/mailapi/1.3.1/mailapi-1.3.1.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/opensymphony/oscache/2.2/oscache-2.2.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/oracle/classes12/0.0/classes12-0.0.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)

Those are all POM files for JARs in my local Maven 1 repository.

Is there a way to convert my M1 repository to M2, or at least automatically 
create those POM files so that the web isn't accessed for each and every one of 
them, every time I run a mvn command?

Greetings,
--
Sybren Stüvel [EMAIL PROTECTED]
Software Engineer CHESS iBusiness
Nieuwe Gracht 13, Haarlem
Postbus 5021, 2000 CA Haarlem

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


!DSPAM:452a2abc124351926716756!


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



SV: Warnings accessing M1 repository

2006-10-09 Thread Naess, Ronny
Sorry, I read you where converting the other way :-) I don not belive you can 
reference maven 1 dependencies without a maven 2 pom. 

You might need to concider upgrading your dependencies, or you can upload the 
needed dependencies to you internal repository if not found on a public one 
with maven-deploy-plugin.

-Ronny 

-Opprinnelig melding-
Fra: Sybren Stüvel [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 13:09
Til: Maven Users List
Emne: Re: SV: Warnings accessing M1 repository

I have put this into $M2_HOME/conf/settings.xml, but still I get the
warnings:

profile
  idjdk-1.4/id
  activation
activeByDefault/
  /activation
  repositories
repository
  idm1-repository/id
  nameMaven 1.x Repository/name
  urlhttp://repo1.maven.org/maven//url
/repository
repository
  snapshots
enabledtrue/enabled
  /snapshots
  idmy-m2-repository/id
  nameMaven 2.x Repository/name
  urlfile://C:/Documents and Settings/syst/.m2/repository/url
/repository
repository
  snapshots
enabledtrue/enabled
  /snapshots
  idmy-m1-repository/id
  nameMaven 1.x Repository/name
  urlfile://C:/Documents and Settings/syst/.maven/repository/url
  layoutlegacy/layout
/repository
  /repositories
/profile

Am I overlooking something?

Sybren

Naess, Ronny wrote:
 Try http://repo1.maven.org/maven/ instead
 
 -Ronny
 
 -Opprinnelig melding-
 Fra: Sybren Stüvel [mailto:[EMAIL PROTECTED]
 Sendt: 9. oktober 2006 12:46
 Til: users@maven.apache.org
 Emne: Warnings accessing M1 repository
 
 Hi there,
 
 I'm moving our projects from Maven 1 to Maven 2, and things are looking good. 
 When running Maven 2 I do get a list of warnings:
 
 Downloading: 
 http://repo1.maven.org/maven2/jaxb/xalan/1.2.6/xalan-1.2.6.pom
 [WARNING] Unable to get resource from repository central
 (http://repo1.maven.org/maven2)
 Downloading:
 http://repo1.maven.org/maven2/mailapi/mailapi/1.3.1/mailapi-1.3.1.pom
 [WARNING] Unable to get resource from repository central
 (http://repo1.maven.org/maven2)
 Downloading:
 http://repo1.maven.org/maven2/opensymphony/oscache/2.2/oscache-2.2.pom
 [WARNING] Unable to get resource from repository central
 (http://repo1.maven.org/maven2)
 Downloading:
 http://repo1.maven.org/maven2/oracle/classes12/0.0/classes12-0.0.pom
 [WARNING] Unable to get resource from repository central
 (http://repo1.maven.org/maven2)
 
 Those are all POM files for JARs in my local Maven 1 repository.
 
 Is there a way to convert my M1 repository to M2, or at least automatically 
 create those POM files so that the web isn't accessed for each and every one 
 of them, every time I run a mvn command?
 
 Greetings,
 --
 Sybren Stüvel [EMAIL PROTECTED] Software Engineer CHESS 
 iBusiness Nieuwe Gracht 13, Haarlem Postbus 5021, 2000 CA Haarlem
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Sybren Stüvel [EMAIL PROTECTED]
Software Engineer CHESS iBusiness
Nieuwe Gracht 13, Haarlem
Postbus 5021, 2000 CA Haarlem

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


!DSPAM:452a2de9151069724523251!


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



SV: dependency quirck?

2006-10-09 Thread Naess, Ronny
Compile scope is included in classpath. Try scope = provided 

More on scopes
http://maven.apache.org/guides/introduction/introduction-to-dependency-m
echanism.html

-Ronny

 

-Opprinnelig melding-
Fra: Jeroen Verhagen [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 13:22
Til: users@maven.apache.org
Emne: dependency quirck?

Hi all,

I'm having a problem a with servlet-api jar being deployed even though
its scope is set to compile.

I'm exploring mvn by creating a webapplication that is divided into two
modules. A core module generating a jar and containing servlets, Spring
controlllers. A web module contains the jsp's, web.xml etc.
This is the way, right?

The core module has a dependency on the servlet-api jar for compilation
(scopecompile/scope). The web module has a ofcourse a dependency on
the core module. However the problem is that when the web module is
deployed (war and exploded dir) the servlet-api is also deployed,
eventhough it's scope in the core pom is set to compile.

What's causing this? It's a problem because I think the deployment on
Tomcat takes longer and it complains about an offending class:

INFO:
validateJarFile(C:\java\jakarta-tomcat-5.5.9\webapps\web\WEB-INF\lib\ser
vlet-api-2.4.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
class: javax/servlet/Servlet.class

Thanks for any help,

Jeroen

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


!DSPAM:452a30ed225875315134984!


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



SV: jar and war together

2006-10-09 Thread Naess, Ronny
Did you take a look at what Mark Struberg wrote?  

-Ronny

-Opprinnelig melding-
Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 13:19
Til: Maven Users List
Emne: Re: jar and war together

yes inside jar , i  seen war content



On 10/9/06, Naess, Ronny [EMAIL PROTECTED] wrote:

 What, it says it installes the war to the jar? Is it replacing/moving 
 it? Seems like strange behavior.

 Is it only the jar and now war inside C:\Documents and 
 Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwoods\
 fr
 amework\dakwar\1.0-SNAPSHOT\

 If only the jar, if you look iside that jar, is it the war content you

 see?

 -Ronny

 -Opprinnelig melding-
 Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED]
 Sendt: 9. oktober 2006 11:52
 Til: Maven Users List
 Emne: Re: jar and war together

 hi Ronny
  i tried both way and not able to install the jar or war actully 
 it is installing jar but which is it installing is also wrong while at

 installing it show following message

 Installing
 D:\data\localcvs\ABHIWORK\sample\Release\DAK\module\war\target\dakwar-
 1.0-SNAPSHOT.war to C:\Documents and
 Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwoods\
 fr
 amework\dakwar\1.0-SNAPSHOT\dakwar-
 1.0-SNAPSHOT.jar

 On 10/9/06, Naess, Ronny [EMAIL PROTECTED] wrote:
 
  Sorry, I do not have the answer for why this is not working. Maybe 
  you

  could try it the other way around?
  Change your pom to hav packaging to war, and specify 
  maven-jar-plugin instead.
 
  We have more than one pom with packaging set to jar and at same time

  using maven-jar-plugin spesifying test-jar goal and both jars 
  installs

  correct to our repository.
 
  -Ronny
 
  -Opprinnelig melding-
  Fra: neeraj daffodil [mailto:[EMAIL PROTECTED]
  Sendt: 9. oktober 2006 09:40
  Til: Maven Users List
  Emne: Re: jar and war together
 
  i have simple pom which contain only one source and of this source i

  want to make war and jar
 
  means
  1)  i have one source and genrate jar and war of same source
 
  my pom is like
 
  project
  modelVersion4.0.0/modelVersion
  groupIdcom.daffodilwoods.framework/groupId
  artifactIddakwar/artifactId
  version 1.0-SNAPSHOT/version
  packagingjar/packaging  !-- gunrate jar for my project -- 
  dependencies
  dependency
 
  ..
  /dependency
  dependencies
 
 
  plugin !-- genrate war of same project --
  groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-war-plugin/artifactId
 executions
   execution
 phaseinstall/phase
 configuration
 echohi i am configuring the WarSourceDirectory..
/echo
  /configuration
 goals
   goalwar/goal
 /goals
   /execution
 /executions
   /plugin
/plugins
 
defaultGoalpackage/defaultGoal
  /build
 
  /project
 
 
 
  i am able to genrate dakwar-1.0-SNAPSHOT.jar and
 
  dakwar-1.0-SNAPSHOT.war but only able to install 
  dakwar-1.0-SNAPSHOT.jar
 
  in my local repository but i need both jar and war to be install in 
  my

  local repository
 
  i am doing these operation on one source
 
  how i can achieve this please tell
 
  Regards
 
  Neeraj
 
 
 
 
 
  On 10/9/06, Naess, Ronny  [EMAIL PROTECTED] wrote:
  
   Do you have one pom with one war artifact and one jar dependency, 
   or

   do you have one parent pom (maven 2) with two modules/artifacts?
  
   I guess you want your jar in [war]/WEB-INF/lib when deployed to
  server?
   The jar artifact should be included into lib if spesified as a 
   dependency. The war plugin is responsible for collecting all 
   artifact dependencies, classes and resources of the web 
   application and packaging them into a web application archive.
  
   With install, do you mean install into appserver or do you mean 
   maven install aka uploading to local repository? If you meant 
   install to appserver take a look at Cargo, 
   http://cargo.codehaus.org/Maven2+plugin,
   if the latter look at
   http://maven.apache.org/plugins/maven-install-plugin/ in short 
   just run 'mvn install'. I guess it was the first you were after? 
   :-)
  
   -Ronny
  
   -Opprinnelig melding-
   Fra: Neeraj Bisht [mailto: [EMAIL PROTECTED]
   Sendt: 9. oktober 2006 08:40
   Til: users@maven.apache.org
   Emne: jar and war together
  
   hi all
   i want to install jar and war from one pom but how i can 
   achieve this i do not know i tried and able to made the jar and 
   war from single pom but able only to install one ,either jar or 
   war can any one tell  me how  i can install or deploy both jar and

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

SV: Including test classes in snapshot jar

2006-10-09 Thread Naess, Ronny
One way is to use maven-jar-plugin and spesify test-jar goal. This gives you a 
jar containing test classes and test resources in addition to the main jar.

I the jar you want to also genrerate a test-jar for:

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


In a artifact where you want to include your already installed artifact and 
test-jar

dependency
groupIdgroupId/groupId
artifactIdartifactId/artifactId
version1.0-SNAPSHOT/version 
/dependency
dependency
groupIdgroupId/groupId
artifactIdartifactId/artifactId
version1.0-SNAPSHOT/version
typetest-jar/type
scopetest/scope
/dependency

-Ronny

-Opprinnelig melding-
Fra: Sybren Stüvel [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 13:27
Til: Maven users mailinglist
Emne: Including test classes in snapshot jar

Hi folks,

I'd like to make a snapshot jar from a project, including the test classes, and 
install it into my local M2 repository. Is there some plugin I can use for that?

Greetings,
--
Sybren Stüvel [EMAIL PROTECTED]
Software Engineer CHESS iBusiness
Nieuwe Gracht 13, Haarlem
Postbus 5021, 2000 CA Haarlem

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


!DSPAM:452a3239205091336712104!


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



SV: jar and war together

2006-10-09 Thread Naess, Ronny
He provided a patch to be used. That shuld solve the problem. Maybe Mark
kan give you som further information in how to use that patch?

-Ronny 

-Opprinnelig melding-
Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 14:04
Til: Maven Users List
Emne: Re: jar and war together

at what extend i understand his thought i tried but get the same result
as it was

On 10/9/06, Naess, Ronny [EMAIL PROTECTED] wrote:

 Did you take a look at what Mark Struberg wrote?

 -Ronny

 -Opprinnelig melding-
 Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED]
 Sendt: 9. oktober 2006 13:19
 Til: Maven Users List
 Emne: Re: jar and war together

 yes inside jar , i  seen war content



 On 10/9/06, Naess, Ronny [EMAIL PROTECTED] wrote:
 
  What, it says it installes the war to the jar? Is it 
  replacing/moving it? Seems like strange behavior.
 
  Is it only the jar and now war inside C:\Documents and 
  Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwood
  s\
  fr
  amework\dakwar\1.0-SNAPSHOT\
 
  If only the jar, if you look iside that jar, is it the war content 
  you

  see?
 
  -Ronny
 
  -Opprinnelig melding-
  Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED]
  Sendt: 9. oktober 2006 11:52
  Til: Maven Users List
  Emne: Re: jar and war together
 
  hi Ronny
   i tried both way and not able to install the jar or war actully

  it is installing jar but which is it installing is also wrong while 
  at

  installing it show following message
 
  Installing
  D:\data\localcvs\ABHIWORK\sample\Release\DAK\module\war\target\dakwa
  r- 1.0-SNAPSHOT.war to C:\Documents and 
  Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwood
  s\
  fr
  amework\dakwar\1.0-SNAPSHOT\dakwar-
  1.0-SNAPSHOT.jar
 
  On 10/9/06, Naess, Ronny [EMAIL PROTECTED] wrote:
  
   Sorry, I do not have the answer for why this is not working. Maybe

   you
 
   could try it the other way around?
   Change your pom to hav packaging to war, and specify 
   maven-jar-plugin instead.
  
   We have more than one pom with packaging set to jar and at same 
   time

   using maven-jar-plugin spesifying test-jar goal and both jars 
   installs
 
   correct to our repository.
  
   -Ronny
  
   -Opprinnelig melding-
   Fra: neeraj daffodil [mailto:[EMAIL PROTECTED]
   Sendt: 9. oktober 2006 09:40
   Til: Maven Users List
   Emne: Re: jar and war together
  
   i have simple pom which contain only one source and of this source

   i

   want to make war and jar
  
   means
   1)  i have one source and genrate jar and war of same source
  
   my pom is like
  
   project
   modelVersion4.0.0/modelVersion
   groupIdcom.daffodilwoods.framework/groupId
   artifactIddakwar/artifactId
   version 1.0-SNAPSHOT/version
   packagingjar/packaging  !-- gunrate jar for my project -- 
   dependencies
   dependency
  
   ..
   /dependency
   dependencies
  
  
   plugin !-- genrate war of same project --
   groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-war-plugin/artifactId
  executions
execution
  phaseinstall/phase
  configuration
  echohi i am configuring the WarSourceDirectory..
 /echo
   /configuration
  goals
goalwar/goal
  /goals
/execution
  /executions
/plugin
 /plugins
  
 defaultGoalpackage/defaultGoal
   /build
  
   /project
  
  
  
   i am able to genrate dakwar-1.0-SNAPSHOT.jar and
  
   dakwar-1.0-SNAPSHOT.war but only able to install 
   dakwar-1.0-SNAPSHOT.jar
  
   in my local repository but i need both jar and war to be install 
   in my
 
   local repository
  
   i am doing these operation on one source
  
   how i can achieve this please tell
  
   Regards
  
   Neeraj
  
  
  
  
  
   On 10/9/06, Naess, Ronny  [EMAIL PROTECTED] wrote:
   
Do you have one pom with one war artifact and one jar 
dependency, or
 
do you have one parent pom (maven 2) with two modules/artifacts?
   
I guess you want your jar in [war]/WEB-INF/lib when deployed to
   server?
The jar artifact should be included into lib if spesified as a 
dependency. The war plugin is responsible for collecting all 
artifact dependencies, classes and resources of the web 
application and packaging them into a web application archive.
   
With install, do you mean install into appserver or do you mean 
maven install aka uploading to local repository? If you meant 
install to appserver take a look at Cargo, 
http://cargo.codehaus.org/Maven2+plugin,
if the latter look at
http://maven.apache.org/plugins/maven-install-plugin/ in short 
just run 'mvn install'. I guess it was the first you were after?
:-)
   
-Ronny
   
-Opprinnelig melding-
Fra: Neeraj Bisht [mailto: [EMAIL PROTECTED]
Sendt: 9. oktober 2006 08:40
Til: users@maven.apache.org
Emne: jar

SV: dependency quirck?

2006-10-09 Thread Naess, Ronny
This is strange. Test it some more and be sure you do it correct and if
you are doing everything the right way you should file it as a bug in
jira. You can also try scope = system.

This is what the documentation says:
PROVIDED - this is much like compile, but indicates you expect the JDK
or a container to provide it. It is only available on the compilation
classpath, and is not transitive.

-Ronny


-Opprinnelig melding-
Fra: Jeroen Verhagen [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 13:56
Til: Maven Users List
Emne: Re: dependency quirck?

Hi Ronny,

On 10/9/06, Naess, Ronny [EMAIL PROTECTED] wrote:
 Compile scope is included in classpath. Try scope = provided

I tried that, made sure everything was cleaned but the servlet-api jar
is still there.

regards,

Jeroen

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


!DSPAM:452a38fa322741367111490!


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



Re: Warnings accessing M1 repository

2006-10-09 Thread Naess, Ronny
Cool!

Does there exist any documentation as well, or is it so straight forward
that even my mother could do it?

-Ronny

-Opprinnelig melding-
Fra: Arnaud HERITIER [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 14:27
Til: Maven Users List
Emne: Re: Warnings accessing M1 repository

...



 Is there a way to convert my M1 repository to M2, or at least 
 automatically create those POM files so that the web isn't accessed 
 for each and every one of them, every time I run a mvn command?



This tool can help you to convert your repository.

http://svn.apache.org/viewvc/maven/components/trunk/maven-repository-too
ls/

cheers

Arnaud


!DSPAM:452a4045166271926716756!

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



How to change plugin version

2006-10-06 Thread Naess, Ronny
I currently use maven-surfire-plugin 2.0 (at least so it says in my
repository) how do I switch to another version?

I tried to configere the plugin as a dependency but no luck.

-Ronny


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



Test dependency randomly fails

2006-10-05 Thread Naess, Ronny
Hi.

I am using maven-jar-plugin to build test dependencies with goal
'test-jar' like shown below.

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

This gives me myArtifactId-1.0-SNAPSHOT-tests.jar in addition to
myArtifactId-1.0-SNAPSHOT.jar



Artifacts using this dependency is then configured like this

dependency
groupIdmyGroupId/groupId
artifactIdmyArtifactId/artifactId
version1.0-SNAPSHOT/version
typetest-jar/type
scopetest/scope
/dependency
dependency
groupIdmyGroupId/groupId
artifactIdmyArtifactId/artifactId
version1.0-SNAPSHOT/version
/dependency


For some reason my test dependencies is not included correctly in the
testclasspath every time. While 'mvn -X test' shows correct classpath
the result is another thing. One artifact may build correct one time and
the next time not. In a sequence of builds (parent level) failure can
happen at different artifacts each time (without me changing anything in
between). Build once more and maybe one step further or maybe one step
back. The more artifacts we add to the build process the more hard it
becomes to have a successfully build in sequence.

For the record. My xxx-tests.jar artifacts does contain the correct
content in the repository. Or else it would not be possible to have
successfully builds for some artifacts and not others in one build. 

The strange thing and my question is, why does this not work for every
artifact/module every time??

-Ronny

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



Re: Test dependency randomly fails

2006-10-05 Thread Naess, Ronny
I think I might have found a BUG, but I am not sure where.

I have created a method that reads two test resource files from
classpath when my tests is executing. 

I have two artifacts with test jars:
- common-1.0-SNAPSHOT-tests.jar containing resource database.properties 
- jdbcDao-1.0-SNAPSHOT-tests.jar containing resource
incrementer-context.xml

The same two resource files exists in the main common and jdbcDao
artifacts.
Test resources spesifies HSQLDB and main resources Oracle.

When I run my tests (parent level) and the resources is listed/printed,
this is the result.  

| Artifact   | test database.properties | test incrementer-context.xml |

| artifact1  |OK| N/A  |

| artifact2  |OK| OK   |


| artifact3  |  MISSING | OK   |


Strange thing is that test resource database.properties was not found
only the main one. This means that common-1.0-SNAPSHOT-tests.jar is not
in test classpath, but since I ran 'mvn install -X' I can se the log
output saying that it is (last line):

[DEBUG] Test Classpath :
[DEBUG]
C:\ansattportal\dev\server\code\ansattportal-projectroom-service\target\
classes
[DEBUG]
C:\ansattportal\dev\server\code\ansattportal-projectroom-service\target\
test-classes
[DEBUG]   C:\Documents and
Settings\carna\.m2\repository\no\avinor\ansattportal-jdbcDao\1.0-SNAPSHO
T\ansattportal-jdbcDao-1.0-SNAPSHOT-tests.jar
[DEBUG]   C:\Documents and
Settings\carna\.m2\repository\oracle\jdbc\1.4\jdbc-1.4.jar
[DEBUG]   C:\Documents and
Settings\carna\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
[DEBUG]   C:\Documents and
Settings\carna\.m2\repository\no\avinor\ansattportal-commons\1.0-SNAPSHO
T\ansattportal-commons-1.0-SNAPSHOT-tests.jar

Is this a BUG in maven-surefire-plugin or am I doing something wrong
here?

-Ronny


-Opprinnelig melding-
Fra: Naess, Ronny [mailto:[EMAIL PROTECTED] 
Sendt: 5. oktober 2006 13:18
Til: Maven Users List
Emne: Test dependency randomly fails

Hi.

I am using maven-jar-plugin to build test dependencies with goal
'test-jar' like shown below.

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

This gives me myArtifactId-1.0-SNAPSHOT-tests.jar in addition to
myArtifactId-1.0-SNAPSHOT.jar



Artifacts using this dependency is then configured like this

dependency
groupIdmyGroupId/groupId
artifactIdmyArtifactId/artifactId
version1.0-SNAPSHOT/version
typetest-jar/type
scopetest/scope
/dependency
dependency
groupIdmyGroupId/groupId
artifactIdmyArtifactId/artifactId
version1.0-SNAPSHOT/version
/dependency


For some reason my test dependencies is not included correctly in the
testclasspath every time. While 'mvn -X test' shows correct classpath
the result is another thing. One artifact may build correct one time and
the next time not. In a sequence of builds (parent level) failure can
happen at different artifacts each time (without me changing anything in
between). Build once more and maybe one step further or maybe one step
back. The more artifacts we add to the build process the more hard it
becomes to have a successfully build in sequence.

For the record. My xxx-tests.jar artifacts does contain the correct
content in the repository. Or else it would not be possible to have
successfully builds for some artifacts and not others in one build. 

The strange thing and my question is, why does this not work for every
artifact/module every time??

-Ronny

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


!DSPAM:4524edf7280511926716756!


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



SV: Can Testcompile and compile have different target/source configurations?

2006-10-04 Thread Naess, Ronny
I am not sure if I understand what you want.

You have src/main/java vs src/test/java 
And src/main/resources/ vs src/test/resources

Likevise output target/classes (main) vs target/test-classes

Is this not what you want? You want to change these to something else?
In that case check
http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html,
http://maven.apache.org/plugins/maven-compiler-plugin/testCompile-mojo.h
tml. Change compileSourceRoots  and outputDirectory to satisfy your
needs.

-Ronny  

-Opprinnelig melding-
Fra: Brian E. Fox [mailto:[EMAIL PROTECTED] 
Sendt: 4. oktober 2006 00:36
Til: Maven Users List
Emne: Can Testcompile and compile have different target/source
configurations?

I need to set a different source/target configuration for testcompile
and compile. They are separate goals, but it's not apparently possible
to set goal specific configuration without another execution. Is there
some way to do this?


!DSPAM:4522e603144722988016950!

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



SV: Maven, Eclipse, Junit

2006-10-04 Thread Naess, Ronny
Yes, I forgot to mention that. Good point Douglas. 

If you also have same files in resources ant testResources order is important 
as I mentioned earlier. 
We have two database.properties files one for main and one for test and this 
demands correct order in classpath or else your Eclipse junittests will fail.

-Ronny 

-Opprinnelig melding-
Fra: Arnaud Bailly [mailto:[EMAIL PROTECTED] 
Sendt: 4. oktober 2006 09:53
Til: Maven Users List
Emne: Re: Maven, Eclipse,  Junit

Douglas Ferguson [EMAIL PROTECTED] writes:

 When running unit tests from eclipse I can't resolve my test resources 
 because they are placed in test-classes.

Just add src/test/resources to your tests classpath:
In eclipse :
  Run..  Classpath  Advanced  Add folder 

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


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


!DSPAM:452368a2239351804284693!


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



SV: Configurable username in site report

2006-10-04 Thread Naess, Ronny
Correct me if I am wrong, but each developer do not checkout src via
Maven thus not needing to configure username/password in pom.xml or
settings.xml.
We have no username/password in connection, but we do have one for
developerConnection. The latter is used by Continuum and connection for
documentation (website).

-Ronny  

-Opprinnelig melding-
Fra: M. v. Leeuwen [mailto:[EMAIL PROTECTED] 
Sendt: 4. oktober 2006 11:21
Til: users@maven.apache.org
Emne: Configurable username in site report

Hi,

I'm trying to generate a normal site report using a
connection/developerConnection
'scm:cvs:pserver:myserver:/data/cvsroot:MavenTestApp'

Notice there is no username, since I do not want a developers username
into the pom/scm/{connection|developerConnection} of a project, but in
their settings.xml.
And yes, it works specifying the username, but only if I specify the
username in __BOTH__ the scm URLs.

The release-plugin can be configured to specify the username. The
scm-plugin also, but this has no effect on the report (either in build,
reporting or both). I would expect configuring the scm-plugin to make it
work.

Results remain the same:
java.lang.IllegalArgumentException: Username isn't defined.
at
org.apache.maven.scm.provider.cvslib.repository.CvsScmProviderRepository
.getCvsRootForCvsPass
(CvsScmProviderRepository.java:105)
at
org.apache.maven.scm.provider.cvslib.repository.CvsScmProviderRepository
.getCvsRoot
(CvsScmProviderRepository.java:73)
at
org.apache.maven.report.projectinfo.ScmReport$ScmRenderer.developerAcces
sCVS
(ScmReport.java:479)
at
org.apache.maven.report.projectinfo.ScmReport$ScmRenderer.renderDevelope
rAccessSection
(ScmReport.java:323)
at
org.apache.maven.report.projectinfo.ScmReport$ScmRenderer.renderBody(
ScmReport.java:186)
at
org.apache.maven.reporting.AbstractMavenReportRenderer.render(
AbstractMavenReportRenderer.java:65)
at org.apache.maven.report.projectinfo.ScmReport.executeReport(
ScmReport.java:87)

I can work around this by disabling the scm report in the reportSets of
the project-info-reports-plugin, but that is not what I want.

Anybody here who's got a suggestion?

Thanks in advance.
--
Regards,
Michael.


!DSPAM:452382ab260061272651560!

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



SV: Build errors

2006-10-04 Thread Naess, Ronny
I think I have narrowed my problem further. The testResources is not
always included as expected. 

How can this happen and more important how can I be sure that it always
is? 

Is there a way for me to list what is loaded? 
I have tried -X (--debug) but I do not know what to look for.


-Ronny  

-Opprinnelig melding-
Fra: Naess, Ronny [mailto:[EMAIL PROTECTED] 
Sendt: 3. oktober 2006 17:00
Til: Maven Users List
Emne: SV: Build errors

Ran into trouble again. I might have buypassed the problem for a while,
but the joy was not for long. Ok, here is the deal.

I have several artifacts. Some artifacts have resources in both
main/resources and test/resources. The resources might be property files
who's values is to be replaced with Springs
PropertyPlaceholderConfigurer (at least this is how it was). It may also
be two different spring config files (incrementer-context.xml), one the
Oracle way and one the HSQL way.

If I run my unittests in eclipse (maven plugin) everything is well.
If I run 'mvn test' or 'mvn install' in parent dir everything is well.
If I change dir to one of the artifacts with test dependency as
mentioned obove mye tests fail because the test deps do not seem to be
included.

Looks like the classpath is somehow wrong in the last case, where
test/resources and main/resources is replaced, or test resources not
included at all. I have now prof of this, but it seems like this is what
happens. I have tested mvn test -X, but I cant se anything
wrong.among the thousands of lines ;-)

Anyone here that can tell me why this happens or better, what happens? I
guess this has been my problem all along.


-Ronny

-Opprinnelig melding-
Fra: Naess, Ronny [mailto:[EMAIL PROTECTED]
Sendt: 27. september 2006 15:10
Til: Maven Users List
Emne: SV: Build errors

I bypassed the problem, replaced the two database.properties with two
datasource-context.xml (imported into commons-config.xml) and typed the
properties in for both test and main.

It works well now and continuum gave me a big smile :-)

Sure, why PropertyPlaceholderConfigurator fails I still do not know.

-Ronny 

-Opprinnelig melding-
Fra: Naess, Ronny [mailto:[EMAIL PROTECTED]
Sendt: 27. september 2006 12:17
Til: Maven Users List
Emne: SV: Build errors

Anyone got any tips for me about this issue? It is starting to become a
showstopper.

Continuum almost never have a successfully build anymore. The failure is
always the same where the exception is:

org.springframework.beans.factory.BeanDefinitionStoreException: Error
registering bean with name 'dataSource' defined in class path resource
[commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName' 

My common-context.xml (spring config) is located in common artifact.
Other artifacts depends on this common artifact. 

Common-context.xml
--
bean id=propertyConfigurator
class=org.springframework.beans.factory.config.PropertyPlaceholderConfi
gurer
property name=locations
list
valuedatabase.properties/value
valuetoolbox.properties/value
/list
/property
/bean

bean id=dataSource
class=org.apache.commons.dbcp.BasicDataSource destroy-method=close
property name=driverClassName
value${jdbc.driverClassName}/value
/property
property name=url
value${jdbc.url}/value 
/property
property name=username
value${jdbc.username}/value
/property
property name=password
value${jdbc.password}/value
/property
/bean



Common artifact has two (2) resources named database.propeties. These
files is located in main/resources and test/resources, where the one
under test is the one used when testing (you did'nt see that comming did
ya?). 

Database.properties (in test/resourses)
---
jdbc.driverClassName=org.hsqldb.jdbcDriver
jdbc.url=jdbc:hsqldb:file:../ansattportal-commons/hsqldb/ansattportal
jdbc.username=sa
jdbc.password=


The commons pom.xml has test-jar goal so the dependent artifacts can
include this test-jar file when running tests (scope=test).

Now, when I try to test or install some of my artifacts that depend on
common artifact I recive the error mentioned above. An as you can se a
from my earlier posts its more or less random. Sometime it works
sometime not.

I am very much stuck on this matter and I could need a good tips in how
to solve this problem.

I am thinking that I might maybe hardcode two spring configs only
containing the datasource part. One for test and one for main and that
way skip the whole PropertyPlaceHolderConfigurer part that creates all
this frustration.

-Ronny

-Opprinnelig melding-
Fra: Naess, Ronny

SV: Is there any instructional book for Maven-1?

2006-10-03 Thread Naess, Ronny
Take a look at Maven - A Developer's Notebook 

ISBN 0596007507, or
http://www.amazon.com/Maven-Developers-Notebook-Timothy-OBrien/dp/059600
7507/ref=sr_11_1/102-6924759-4708143?ie=UTF8

-Ronny

-Opprinnelig melding-
Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED] 
Sendt: 3. oktober 2006 14:11
Til: Maven Users List
Emne: Re: Is there any instructional book for Maven-1?

hi
   Actully ,there is no such document available in which u will get
whole maven 1.0.2 but if u search in google u will find the relevent
matterial

Regards
Neeraj


On 10/3/06, Evi [EMAIL PROTECTED] wrote:

 Hello!

 I do have the the book Better Builds with Maven 2, but have to use
 Maven-1.0.2 (as JetSpeed2 does not work wit Maven2 as far as I know). 
 Is there any older version of the Better Builds with Maven that can 
 be used to understand Maven-1?

 Thanks in advance for suggestions,

 Evi


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




!DSPAM:4522541338522065019448!

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



SV: Build errors

2006-10-03 Thread Naess, Ronny
Ran into trouble again. I might have buypassed the problem for a while,
but the joy was not for long. Ok, here is the deal.

I have several artifacts. Some artifacts have resources in both
main/resources and test/resources. The resources might be property files
who's values is to be replaced with Springs
PropertyPlaceholderConfigurer (at least this is how it was). It may also
be two different spring config files (incrementer-context.xml), one the
Oracle way and one the HSQL way.

If I run my unittests in eclipse (maven plugin) everything is well.
If I run 'mvn test' or 'mvn install' in parent dir everything is well.
If I change dir to one of the artifacts with test dependency as
mentioned obove mye tests fail because the test deps do not seem to be
included.

Looks like the classpath is somehow wrong in the last case, where
test/resources and main/resources is replaced, or test resources not
included at all. I have now prof of this, but it seems like this is what
happens. I have tested mvn test -X, but I cant se anything
wrong.among the thousands of lines ;-)

Anyone here that can tell me why this happens or better, what happens? I
guess this has been my problem all along.


-Ronny

-Opprinnelig melding-
Fra: Naess, Ronny [mailto:[EMAIL PROTECTED] 
Sendt: 27. september 2006 15:10
Til: Maven Users List
Emne: SV: Build errors

I bypassed the problem, replaced the two database.properties with two
datasource-context.xml (imported into commons-config.xml) and typed the
properties in for both test and main.

It works well now and continuum gave me a big smile :-)

Sure, why PropertyPlaceholderConfigurator fails I still do not know.

-Ronny 

-Opprinnelig melding-
Fra: Naess, Ronny [mailto:[EMAIL PROTECTED]
Sendt: 27. september 2006 12:17
Til: Maven Users List
Emne: SV: Build errors

Anyone got any tips for me about this issue? It is starting to become a
showstopper.

Continuum almost never have a successfully build anymore. The failure is
always the same where the exception is:

org.springframework.beans.factory.BeanDefinitionStoreException: Error
registering bean with name 'dataSource' defined in class path resource
[commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName' 

My common-context.xml (spring config) is located in common artifact.
Other artifacts depends on this common artifact. 

Common-context.xml
--
bean id=propertyConfigurator
class=org.springframework.beans.factory.config.PropertyPlaceholderConfi
gurer
property name=locations
list
valuedatabase.properties/value
valuetoolbox.properties/value
/list
/property
/bean

bean id=dataSource
class=org.apache.commons.dbcp.BasicDataSource destroy-method=close
property name=driverClassName
value${jdbc.driverClassName}/value
/property
property name=url
value${jdbc.url}/value 
/property
property name=username
value${jdbc.username}/value
/property
property name=password
value${jdbc.password}/value
/property
/bean



Common artifact has two (2) resources named database.propeties. These
files is located in main/resources and test/resources, where the one
under test is the one used when testing (you did'nt see that comming did
ya?). 

Database.properties (in test/resourses)
---
jdbc.driverClassName=org.hsqldb.jdbcDriver
jdbc.url=jdbc:hsqldb:file:../ansattportal-commons/hsqldb/ansattportal
jdbc.username=sa
jdbc.password=


The commons pom.xml has test-jar goal so the dependent artifacts can
include this test-jar file when running tests (scope=test).

Now, when I try to test or install some of my artifacts that depend on
common artifact I recive the error mentioned above. An as you can se a
from my earlier posts its more or less random. Sometime it works
sometime not.

I am very much stuck on this matter and I could need a good tips in how
to solve this problem.

I am thinking that I might maybe hardcode two spring configs only
containing the datasource part. One for test and one for main and that
way skip the whole PropertyPlaceHolderConfigurer part that creates all
this frustration.

-Ronny

-Opprinnelig melding-
Fra: Naess, Ronny [mailto:[EMAIL PROTECTED]
Sendt: 25. september 2006 13:00
Til: Maven Users List
Emne: SV: Build errors

I have tried different things but no pattern is discovered.

I am logged on the unix server that Continuum is running on. I then
change directory to the artifact that fails. 

Things I have tried:

mvn install - failure
mvn clean   - success
mvn test- success
mvn install - failure
mvn install - failure
mvn install

SV: Maven, Eclipse, Junit

2006-10-03 Thread Naess, Ronny
In Eclipse you must ensure that src/test/resources is moved in front of
src/main/resources.

Project properties - Java Build Path - Order and Export

-Ronny

-Opprinnelig melding-
Fra: Douglas Ferguson [mailto:[EMAIL PROTECTED] 
Sendt: 3. oktober 2006 21:56
Til: users
Emne: Maven, Eclipse,  Junit

When running unit tests from eclipse I can't resolve my test resources
because they are placed in test-classes.

 

How have folks dealt with this?

 

I know this is off topic ( if you know of a good forum please point me),
but is there a way to run 1 test method from a test case using eclipse,
like idea does?

 

D-




!DSPAM:4522c04922612984811091!

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



SV: Build errors

2006-09-27 Thread Naess, Ronny
Anyone got any tips for me about this issue? It is starting to become a
showstopper.

Continuum almost never have a successfully build anymore. The failure is
always the same where the exception is:

org.springframework.beans.factory.BeanDefinitionStoreException: Error
registering bean with name 'dataSource' defined in class path resource
[commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName' 

My common-context.xml (spring config) is located in common artifact.
Other artifacts depends on this common artifact. 

Common-context.xml
--
bean id=propertyConfigurator
class=org.springframework.beans.factory.config.PropertyPlaceholderConfi
gurer
property name=locations
list
valuedatabase.properties/value
valuetoolbox.properties/value
/list
/property
/bean

bean id=dataSource
class=org.apache.commons.dbcp.BasicDataSource destroy-method=close
property name=driverClassName
value${jdbc.driverClassName}/value
/property
property name=url
value${jdbc.url}/value 
/property
property name=username
value${jdbc.username}/value
/property
property name=password
value${jdbc.password}/value
/property
/bean



Common artifact has two (2) resources named database.propeties. These
files is located in main/resources and test/resources, where the one
under test is the one used when testing (you did'nt see that comming did
ya?). 

Database.properties (in test/resourses)
---
jdbc.driverClassName=org.hsqldb.jdbcDriver
jdbc.url=jdbc:hsqldb:file:../ansattportal-commons/hsqldb/ansattportal
jdbc.username=sa
jdbc.password=


The commons pom.xml has test-jar goal so the dependent artifacts can
include this test-jar file when running tests (scope=test).

Now, when I try to test or install some of my artifacts that depend on
common artifact I recive the error mentioned above. An as you can se a
from my earlier posts its more or less random. Sometime it works
sometime not.

I am very much stuck on this matter and I could need a good tips in how
to solve this problem.

I am thinking that I might maybe hardcode two spring configs only
containing the datasource part. One for test and one for main and that
way skip the whole PropertyPlaceHolderConfigurer part that creates all
this frustration.

-Ronny

-Opprinnelig melding-
Fra: Naess, Ronny [mailto:[EMAIL PROTECTED] 
Sendt: 25. september 2006 13:00
Til: Maven Users List
Emne: SV: Build errors

I have tried different things but no pattern is discovered.

I am logged on the unix server that Continuum is running on. I then
change directory to the artifact that fails. 

Things I have tried:

mvn install - failure
mvn clean   - success
mvn test- success
mvn install - failure
mvn install - failure
mvn install - failure
mvn test- failure
mvn test- failure
mvn clean test  - failure
mvn clean   - success
mvn test- success
mvn clean   - success
mvn test- success
mvn clean   - success
mvn test- success
mvn clean test  - failure
mvn clean test  - failure
mvn clean test  - failure
mvn test- failure
mvn test- failure
mvn clean   - success
mvn test- success
mvn test- failure
mvn test- failure
mvn clean   - success
mvn install - failure
mvn clean   - success
mvn install - success
mvn clean   - success
mvn install - failure
mvn clean   - success
mvn install - failure
mvn clean   - success
mvn install - success
mvn clean   - success
mvn test- success
mvn test- success


What I can see so far. 

'mvn clean test' always failure
'mvn clean'  followed by 'mvn test'  always success (however
failed several times on my Win XP laptop)
'mvn test'   followed by 'mvn test'  sometimes success and
sometimes failure
'mvn clean'  followed by 'mvn install'   sometimes success and
sometimes failure

Could it be that my pom has something that could give me the unstable
pattern that is shown here? 

My pom.xml


?xml version=1.0 encoding=iso-8859-1? 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-v4_0_0.xsd;
parent
artifactIdansattportal/artifactId
groupIdno.avinor/groupId
version1.0-SNAPSHOT/version
/parent
modelVersion4.0.0/modelVersion

SV: Build errors

2006-09-27 Thread Naess, Ronny
I bypassed the problem, replaced the two database.properties with two
datasource-context.xml (imported into commons-config.xml) and typed the
properties in for both test and main.

It works well now and continuum gave me a big smile :-)

Sure, why PropertyPlaceholderConfigurator fails I still do not know.

-Ronny 

-Opprinnelig melding-
Fra: Naess, Ronny [mailto:[EMAIL PROTECTED] 
Sendt: 27. september 2006 12:17
Til: Maven Users List
Emne: SV: Build errors

Anyone got any tips for me about this issue? It is starting to become a
showstopper.

Continuum almost never have a successfully build anymore. The failure is
always the same where the exception is:

org.springframework.beans.factory.BeanDefinitionStoreException: Error
registering bean with name 'dataSource' defined in class path resource
[commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName' 

My common-context.xml (spring config) is located in common artifact.
Other artifacts depends on this common artifact. 

Common-context.xml
--
bean id=propertyConfigurator
class=org.springframework.beans.factory.config.PropertyPlaceholderConfi
gurer
property name=locations
list
valuedatabase.properties/value
valuetoolbox.properties/value
/list
/property
/bean

bean id=dataSource
class=org.apache.commons.dbcp.BasicDataSource destroy-method=close
property name=driverClassName
value${jdbc.driverClassName}/value
/property
property name=url
value${jdbc.url}/value 
/property
property name=username
value${jdbc.username}/value
/property
property name=password
value${jdbc.password}/value
/property
/bean



Common artifact has two (2) resources named database.propeties. These
files is located in main/resources and test/resources, where the one
under test is the one used when testing (you did'nt see that comming did
ya?). 

Database.properties (in test/resourses)
---
jdbc.driverClassName=org.hsqldb.jdbcDriver
jdbc.url=jdbc:hsqldb:file:../ansattportal-commons/hsqldb/ansattportal
jdbc.username=sa
jdbc.password=


The commons pom.xml has test-jar goal so the dependent artifacts can
include this test-jar file when running tests (scope=test).

Now, when I try to test or install some of my artifacts that depend on
common artifact I recive the error mentioned above. An as you can se a
from my earlier posts its more or less random. Sometime it works
sometime not.

I am very much stuck on this matter and I could need a good tips in how
to solve this problem.

I am thinking that I might maybe hardcode two spring configs only
containing the datasource part. One for test and one for main and that
way skip the whole PropertyPlaceHolderConfigurer part that creates all
this frustration.

-Ronny

-Opprinnelig melding-
Fra: Naess, Ronny [mailto:[EMAIL PROTECTED]
Sendt: 25. september 2006 13:00
Til: Maven Users List
Emne: SV: Build errors

I have tried different things but no pattern is discovered.

I am logged on the unix server that Continuum is running on. I then
change directory to the artifact that fails. 

Things I have tried:

mvn install - failure
mvn clean   - success
mvn test- success
mvn install - failure
mvn install - failure
mvn install - failure
mvn test- failure
mvn test- failure
mvn clean test  - failure
mvn clean   - success
mvn test- success
mvn clean   - success
mvn test- success
mvn clean   - success
mvn test- success
mvn clean test  - failure
mvn clean test  - failure
mvn clean test  - failure
mvn test- failure
mvn test- failure
mvn clean   - success
mvn test- success
mvn test- failure
mvn test- failure
mvn clean   - success
mvn install - failure
mvn clean   - success
mvn install - success
mvn clean   - success
mvn install - failure
mvn clean   - success
mvn install - failure
mvn clean   - success
mvn install - success
mvn clean   - success
mvn test- success
mvn test- success


What I can see so far. 

'mvn clean test' always failure
'mvn clean'  followed by 'mvn test'  always success (however
failed several times on my Win XP laptop)
'mvn test'   followed by 'mvn test'  sometimes success and
sometimes failure
'mvn clean'  followed by 'mvn install'   sometimes success and
sometimes failure

Could it be that my pom has something that could give me the unstable
pattern that is shown here? 

My pom.xml

SV: SV: deploy with scp

2006-09-26 Thread Naess, Ronny
I think what he ment was where is the file located.

Under maven/conf/ or .m2/?

-Ronny

-Opprinnelig melding-
Fra: Ravinder Singh [mailto:[EMAIL PROTECTED] 
Sendt: 26. september 2006 08:46
Til: Maven Users List
Emne: SV: SV: deploy with scp

I allready had it in the previous message, but posting it again for those who 
failed to see it

My settings.xml:
---
 server
   idinhouse/id
   usernamemaven/username
   passwordmaven/password
   filePermissions664/filePermissions
   directoryPermissions775/directoryPermissions
 /server
 
 server
   idinhouse_snapshot/id
   usernamemaven/username
   passwordmaven/password
   filePermissions664/filePermissions
   directoryPermissions775/directoryPermissions
 /server 

---

-Opprinnelig melding-
Fra: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sendt: 25. september 2006 17:25
Til: Maven Users List
Emne: Re: SV: deploy with scp

Where is your settings.xml?

Emmanuel

Ravinder Singh a écrit :
 I have done exactly the same! But I am testing under windows and 
 deploying to linux through ssh.
 It keeps asking me for the passwordI am not using external ssh.
 
 
 
 My POM: 
 ...
   distributionManagement
 repository
   idinhouse/id
   nameinhouse/name
   urlscp://xxx.xxx.xxx.xxx/home/maven/repos/inhouse/url
 /repository
 snapshotRepository
   idinhouse_snapshot/id
   nameinhouse snapshot/name
   urlscp://xxx.xxx.xxx.xxx/home/maven/repos/inhouse_snapshot/url
 /snapshotRepository
   /distributionManagement
 
 My settings.xml:
 server
   idinhouse/id
   usernamemaven/username
   passwordmaven/password
   filePermissions664/filePermissions
   directoryPermissions775/directoryPermissions
 /server
 
 server
   idinhouse_snapshot/id
   usernamemaven/username
   passwordmaven/password
   filePermissions664/filePermissions
   directoryPermissions775/directoryPermissions
 /server
 
 
 -Opprinnelig melding-
 Fra: Naess, Ronny [mailto:[EMAIL PROTECTED]
 Sendt: 25. september 2006 16:47
 Til: Maven Users List
 Emne: SV: deploy with scp
 
 Hi, Ravinder my friend.
 
 This is how I do it. Note I use user/password.
 
 Settings.xml
 ---
 server
   idwebsite/id
   usernameapache/username
   passwordapache/password
   filePermissions644/filePermissions
   directoryPermissions755/directoryPermissions
 /server
 ---
 
 Pom.xml
 ---
 distributionManagement  
   site
   idwebsite/id
   urlscp://sgm636/opt/web/ansattportal/url
   /site
 /distributionManagement
 ---
 
 -Ronny
 
 -Opprinnelig melding-
 Fra: Ravinder Singh [mailto:[EMAIL PROTECTED]
 Sendt: 25. september 2006 15:46
 Til: users@maven.apache.org
 Emne: deploy with scp
 
 I am trying to do do a deploy without user interaction (through 
 continuum).
 Currently I am testing deploy for the project. But I am failing to 
 have it deploy without prompting for password.
  
 I hace specified the privateKey, username, and even the password in 
 the settings.xml. But it won't stop asking for password.
 
 However a release:perform does not ask for a password and does 
 everything automagically, without prompting for password, so here it 
 works with scp and privateKey.
  
 Is there any workaround for this or am i doing something wrong?
  
  
 Ravinder Singh
 System developer
  
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 


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


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


!DSPAM:4518ccd9122269724523251!


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



SV: SV: SV: deploy with scp

2006-09-26 Thread Naess, Ronny
Emmanuel, what we did was to check in maven as a tool into SVN together with 
the project. Each user has to configure M2_HOME, and the advantage with this 
setup is a common settings.xml for every user. Very Team Colloboration friendly 
:-)

-Ronny 

-Opprinnelig melding-
Fra: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sendt: 26. september 2006 08:59
Til: Maven Users List
Emne: Re: SV: SV: deploy with scp

My question was where is it?

is it under ${user.home}/.m2 or ${m2.home}/conf/settings.xml?

Continuum doesn't read ${m2.home}/conf/settings.xml.

Emmanuel

Ravinder Singh a écrit :
 I allready had it in the previous message, but posting it again for those who 
 failed to see it
 
 My settings.xml:
 ---
  server
idinhouse/id
usernamemaven/username
passwordmaven/password
filePermissions664/filePermissions
directoryPermissions775/directoryPermissions
  /server
  
  server
idinhouse_snapshot/id
usernamemaven/username
passwordmaven/password
filePermissions664/filePermissions
directoryPermissions775/directoryPermissions
  /server
 
 ---
 
 -Opprinnelig melding-
 Fra: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
 Sendt: 25. september 2006 17:25
 Til: Maven Users List
 Emne: Re: SV: deploy with scp
 
 Where is your settings.xml?
 
 Emmanuel
 
 Ravinder Singh a écrit :
 I have done exactly the same! But I am testing under windows and 
 deploying to linux through ssh.
 It keeps asking me for the passwordI am not using external ssh.



 My POM: 
 ...
   distributionManagement
 repository
   idinhouse/id
   nameinhouse/name
   urlscp://xxx.xxx.xxx.xxx/home/maven/repos/inhouse/url
 /repository
 snapshotRepository
   idinhouse_snapshot/id
   nameinhouse snapshot/name
   urlscp://xxx.xxx.xxx.xxx/home/maven/repos/inhouse_snapshot/url
 /snapshotRepository
   /distributionManagement

 My settings.xml:
 server
   idinhouse/id
   usernamemaven/username
   passwordmaven/password
   filePermissions664/filePermissions
   directoryPermissions775/directoryPermissions
 /server

 server
   idinhouse_snapshot/id
   usernamemaven/username
   passwordmaven/password
   filePermissions664/filePermissions
   directoryPermissions775/directoryPermissions
 /server


 -Opprinnelig melding-
 Fra: Naess, Ronny [mailto:[EMAIL PROTECTED]
 Sendt: 25. september 2006 16:47
 Til: Maven Users List
 Emne: SV: deploy with scp

 Hi, Ravinder my friend.

 This is how I do it. Note I use user/password.

 Settings.xml
 ---
 server
  idwebsite/id
  usernameapache/username
  passwordapache/password
  filePermissions644/filePermissions
   directoryPermissions755/directoryPermissions
 /server
 ---

 Pom.xml
 ---
 distributionManagement 
  site
  idwebsite/id
  urlscp://sgm636/opt/web/ansattportal/url
  /site
 /distributionManagement
 ---

 -Ronny

 -Opprinnelig melding-
 Fra: Ravinder Singh [mailto:[EMAIL PROTECTED]
 Sendt: 25. september 2006 15:46
 Til: users@maven.apache.org
 Emne: deploy with scp

 I am trying to do do a deploy without user interaction (through 
 continuum).
 Currently I am testing deploy for the project. But I am failing to 
 have it deploy without prompting for password.
  
 I hace specified the privateKey, username, and even the password in 
 the settings.xml. But it won't stop asking for password.

 However a release:perform does not ask for a password and does 
 everything automagically, without prompting for password, so here it 
 works with scp and privateKey.
  
 Is there any workaround for this or am i doing something wrong?
  
  
 Ravinder Singh
 System developer
  


 

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


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




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


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


!DSPAM:4518cfb450682065019448!


-
To unsubscribe, e-mail: [EMAIL

SV: SV: SV: SV: deploy with scp

2006-09-26 Thread Naess, Ronny
Mine is, Ravinders not.

I had to copy my settings.xml to Maven in $PATH. 

-Ronny 

-Opprinnelig melding-
Fra: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sendt: 26. september 2006 09:23
Til: Maven Users List
Emne: Re: SV: SV: SV: deploy with scp

So your settings.xml is under M2_HOME/conf

Are you sure mvn used by continuum is the one defined in your M2_HOME? 
Continuum use maven defined in $PATH, so you should check $M2_HOME/bin is added 
to $PATH

Emmanuel

Naess, Ronny a écrit :
 Emmanuel, what we did was to check in maven as a tool into SVN 
 together with the project. Each user has to configure M2_HOME, and the 
 advantage with this setup is a common settings.xml for every user. 
 Very Team Colloboration friendly :-)
 
 -Ronny
 
 -Opprinnelig melding-
 Fra: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
 Sendt: 26. september 2006 08:59
 Til: Maven Users List
 Emne: Re: SV: SV: deploy with scp
 
 My question was where is it?
 
 is it under ${user.home}/.m2 or ${m2.home}/conf/settings.xml?
 
 Continuum doesn't read ${m2.home}/conf/settings.xml.
 
 Emmanuel
 
 Ravinder Singh a écrit :
 I allready had it in the previous message, but posting it again for those 
 who failed to see it

 My settings.xml:
 ---
  server
idinhouse/id
usernamemaven/username
passwordmaven/password
filePermissions664/filePermissions
directoryPermissions775/directoryPermissions
  /server
  
  server
idinhouse_snapshot/id
usernamemaven/username
passwordmaven/password
filePermissions664/filePermissions
directoryPermissions775/directoryPermissions
  /server

 ---

 -Opprinnelig melding-
 Fra: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
 Sendt: 25. september 2006 17:25
 Til: Maven Users List
 Emne: Re: SV: deploy with scp

 Where is your settings.xml?

 Emmanuel

 Ravinder Singh a écrit :
 I have done exactly the same! But I am testing under windows and 
 deploying to linux through ssh.
 It keeps asking me for the passwordI am not using external ssh.



 My POM: 
 ...
   distributionManagement
 repository
   idinhouse/id
   nameinhouse/name
   urlscp://xxx.xxx.xxx.xxx/home/maven/repos/inhouse/url
 /repository
 snapshotRepository
   idinhouse_snapshot/id
   nameinhouse snapshot/name
   urlscp://xxx.xxx.xxx.xxx/home/maven/repos/inhouse_snapshot/url
 /snapshotRepository
   /distributionManagement

 My settings.xml:
 server
   idinhouse/id
   usernamemaven/username
   passwordmaven/password
   filePermissions664/filePermissions
   directoryPermissions775/directoryPermissions
 /server

 server
   idinhouse_snapshot/id
   usernamemaven/username
   passwordmaven/password
   filePermissions664/filePermissions
   directoryPermissions775/directoryPermissions
 /server


 -Opprinnelig melding-
 Fra: Naess, Ronny [mailto:[EMAIL PROTECTED]
 Sendt: 25. september 2006 16:47
 Til: Maven Users List
 Emne: SV: deploy with scp

 Hi, Ravinder my friend.

 This is how I do it. Note I use user/password.

 Settings.xml
 ---
 server
 idwebsite/id
 usernameapache/username
 passwordapache/password
 filePermissions644/filePermissions
   directoryPermissions755/directoryPermissions
 /server
 ---

 Pom.xml
 ---
 distributionManagement
 site
 idwebsite/id
 urlscp://sgm636/opt/web/ansattportal/url
 /site
 /distributionManagement
 ---

 -Ronny

 -Opprinnelig melding-
 Fra: Ravinder Singh [mailto:[EMAIL PROTECTED]
 Sendt: 25. september 2006 15:46
 Til: users@maven.apache.org
 Emne: deploy with scp

 I am trying to do do a deploy without user interaction (through 
 continuum).
 Currently I am testing deploy for the project. But I am failing to 
 have it deploy without prompting for password.
  
 I hace specified the privateKey, username, and even the password in 
 the settings.xml. But it won't stop asking for password.

 However a release:perform does not ask for a password and does 
 everything automagically, without prompting for password, so here it 
 works with scp and privateKey.
  
 Is there any workaround for this or am i doing something wrong?
  
  
 Ravinder Singh
 System developer
  




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


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





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

SV: SV: SV: deploy with scp

2006-09-26 Thread Naess, Ronny
Hmm, got around to think. My setup only works for my team. Continuum is 
supposed to work (i guess) for any project and any team. I realise and remember 
I ran into exactly the problem you addressed Emmanuel. How is continuum 
supposed to handle this. How I see, it do not handle different settings.xml 
files for different teams/projects?

Do Continuum need to be scaled in some way so each team that introduses a new 
settings.xml can configure this separatly so the settings remains uniq for each 
team?

I do not know if this is a ongoing discussion somewhere or if it is filed as 
JIRA issue or anything it just popped up in my mind as a problem.

-Ronny

-Opprinnelig melding-
Fra: Naess, Ronny [mailto:[EMAIL PROTECTED] 
Sendt: 26. september 2006 09:01
Til: Maven Users List
Emne: SV: SV: SV: deploy with scp

Emmanuel, what we did was to check in maven as a tool into SVN together with 
the project. Each user has to configure M2_HOME, and the advantage with this 
setup is a common settings.xml for every user. Very Team Colloboration friendly 
:-)

-Ronny 

-Opprinnelig melding-
Fra: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sendt: 26. september 2006 08:59
Til: Maven Users List
Emne: Re: SV: SV: deploy with scp

My question was where is it?

is it under ${user.home}/.m2 or ${m2.home}/conf/settings.xml?

Continuum doesn't read ${m2.home}/conf/settings.xml.

Emmanuel

Ravinder Singh a écrit :
 I allready had it in the previous message, but posting it again for those who 
 failed to see it
 
 My settings.xml:
 ---
  server
idinhouse/id
usernamemaven/username
passwordmaven/password
filePermissions664/filePermissions
directoryPermissions775/directoryPermissions
  /server
  
  server
idinhouse_snapshot/id
usernamemaven/username
passwordmaven/password
filePermissions664/filePermissions
directoryPermissions775/directoryPermissions
  /server
 
 ---
 
 -Opprinnelig melding-
 Fra: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
 Sendt: 25. september 2006 17:25
 Til: Maven Users List
 Emne: Re: SV: deploy with scp
 
 Where is your settings.xml?
 
 Emmanuel
 
 Ravinder Singh a écrit :
 I have done exactly the same! But I am testing under windows and 
 deploying to linux through ssh.
 It keeps asking me for the passwordI am not using external ssh.



 My POM: 
 ...
   distributionManagement
 repository
   idinhouse/id
   nameinhouse/name
   urlscp://xxx.xxx.xxx.xxx/home/maven/repos/inhouse/url
 /repository
 snapshotRepository
   idinhouse_snapshot/id
   nameinhouse snapshot/name
   urlscp://xxx.xxx.xxx.xxx/home/maven/repos/inhouse_snapshot/url
 /snapshotRepository
   /distributionManagement

 My settings.xml:
 server
   idinhouse/id
   usernamemaven/username
   passwordmaven/password
   filePermissions664/filePermissions
   directoryPermissions775/directoryPermissions
 /server

 server
   idinhouse_snapshot/id
   usernamemaven/username
   passwordmaven/password
   filePermissions664/filePermissions
   directoryPermissions775/directoryPermissions
 /server


 -Opprinnelig melding-
 Fra: Naess, Ronny [mailto:[EMAIL PROTECTED]
 Sendt: 25. september 2006 16:47
 Til: Maven Users List
 Emne: SV: deploy with scp

 Hi, Ravinder my friend.

 This is how I do it. Note I use user/password.

 Settings.xml
 ---
 server
  idwebsite/id
  usernameapache/username
  passwordapache/password
  filePermissions644/filePermissions
   directoryPermissions755/directoryPermissions
 /server
 ---

 Pom.xml
 ---
 distributionManagement 
  site
  idwebsite/id
  urlscp://sgm636/opt/web/ansattportal/url
  /site
 /distributionManagement
 ---

 -Ronny

 -Opprinnelig melding-
 Fra: Ravinder Singh [mailto:[EMAIL PROTECTED]
 Sendt: 25. september 2006 15:46
 Til: users@maven.apache.org
 Emne: deploy with scp

 I am trying to do do a deploy without user interaction (through 
 continuum).
 Currently I am testing deploy for the project. But I am failing to 
 have it deploy without prompting for password.
  
 I hace specified the privateKey, username, and even the password in 
 the settings.xml. But it won't stop asking for password.

 However a release:perform does not ask for a password and does 
 everything automagically, without prompting for password, so here it 
 works with scp and privateKey.
  
 Is there any workaround for this or am i doing something wrong?
  
  
 Ravinder Singh
 System developer
  


 

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

Re: maven site not showing sub module links in parent

2006-09-26 Thread Naess, Ronny
copy todir=../lib
  fileset includes=*.jar
dir=${project.build.directory}/fileset
/copy
  /tasks
/configuration
  /execution
/executions
  /plugin
  plugin
artifactIdmaven-surefire-plugin/artifactId
configuration
  forkModepertest/forkMode
  testFailureIgnoretrue/testFailureIgnore
/configuration
  /plugin
/plugins
  /build
  repositories
repository
  snapshots
enabledfalse/enabled
  /snapshots
  idcentral/id
  nameMaven Repository Switchboard/name
  urlhttp://repo1.maven.org/maven2/url
/repository
  /repositories
  pluginRepositories
pluginRepository
  releases
updatePolicynever/updatePolicy
  /releases
  snapshots
enabledfalse/enabled
  /snapshots
  idcentral/id
  nameMaven Plugin Repository/name
  urlhttp://repo1.maven.org/maven2/url
/pluginRepository
  /pluginRepositories
  dependencies
dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version[3.8.1,)/version
  scopetest/scope
/dependency
dependency
  groupIdjaxen/groupId
  artifactIdjaxen/artifactId
  version1.0-FCS/version
/dependency
dependency
  groupIdcommons-logging/groupId
  artifactIdcommons-logging/artifactId
  version1.0/version
/dependency
dependency
  groupIdsaxpath/groupId
  artifactIdsaxpath/artifactId
  version1.0-FCS/version
/dependency
  /dependencies
  reporting
outputDirectory${project.build.directory}/site/outputDirectory
plugins
  plugin
artifactIdmaven-source-plugin/artifactId
  /plugin
  plugin
artifactIdmaven-javadoc-plugin/artifactId
  /plugin
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdsurefire-report-maven-plugin/artifactId
  /plugin
  plugin
artifactIdmaven-project-info-reports-plugin/artifactId
  /plugin
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdcobertura-maven-plugin/artifactId
  /plugin
/plugins
  /reporting
/project


Thanks in advance.












Naess, Ronny wrote:
 
 Well, that exeption is thrown because it can not create a 
 DistributionManagement object. Is distributionManagement listed if 
 you run 'mvn help:effective-pom' (mine seems to be listed at the
bottom)?
 
 'mvn site' generates your site, but the links will not work because 
 all generated sites (parent and modules) must be deployed together.
 
 Undeployd (only 'mvn site') gives something like this (links not
 working)):
 
 +-module1/
   +-target/
 +-site/  - Module1 (M1)
 +-module2/
   +-target/
 +-site/  - Module2 (M2)
 +-target/
   +-site/- This is the root/parent level (root)
 +-css/
 +-dependencies.html
 +-dependency-convergence.html
 +-index.html
 +-etc...
 
   
 After deployment (mvn site-deploy) you will have something like this 
 (links is working):
 
 +-[website]/   - root
   +-css/
   +-dependencies.html
   +-dependency-convergence.html
   +-index.html
   +-etc...
   +-module1/   - M1
   +-module2/   - M2
 
 
 -Ronny
 
 -Opprinnelig melding-
 Fra: tulasi [mailto:[EMAIL PROTECTED]
 Sendt: 26. september 2006 06:18
 Til: users@maven.apache.org
 Emne: Re: SV: SV: SV: SV: maven site not showing sub module links in 
 parent ht
 
 
 Hi Ronny,
 
 Ya, I have checked. 
 
 I have configured Distribution Management in parent pom.xml according 
 to your suggestion.
 
 mvn site is working fine(but its not creating links in parent 
 index.html), site-deploy throwing execption ( Missing Distribution 
 management).
 
 please suggest me how will handle this exception.
 
 Thanks in advance
 
  
 
 
 Naess, Ronny wrote:
 
 It says that its missing distribution management information in the 
 project
 
 You know, the
  
 
 -Opprinnelig melding-
 Fra: tulasi [mailto:[EMAIL PROTECTED]
 Sendt: 25. september 2006 15:02
 Til: users@maven.apache.org
 Emne: Re: SV: SV: SV: maven site not showing sub module links in 
 parent html
 
 
 Hi Rony..
 
 Please check this error
 
 [INFO] [site:deploy]
 [INFO]
 -
 -
 --
 [ERROR] BUILD ERROR
 [INFO]
 -
 -
 -- [INFO] Missing distribution management information in the project 
 [INFO]
 -
 -
 --
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Missing 
 distribution management information in the project
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
 u
 lt
 LifecycleExecutor.java:559)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
 f
 ec
 ycle(DefaultLifecycleExecutor.java:475

Build errors

2006-09-25 Thread Naess, Ronny
Hi.
 
I am building my modules with Maven 2. The build is executed from top
level (parent). 
 
The build process seems to be unstable. Sometime it goes well other
times not. When it breaks there is always an exception telling me that
Springs propertyPlaceHolderConfigurer not has replaced my property
values in my spring-config like it is supposed to. I think this tells me
that the dependencies might be skipped or bypassed some times. I can't
find a pattern. Anyone experienced the same?
 
 
This is the exception (mvn test -e):
 
---
 T E S T S
---
Running no.avinor.ansattportal.dao.jdbcTemplate.ArticleJdbcDaoTest
17:08:09,718 INFO
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:103)) - Configuring sprin
 
 17:08:10,812 FATAL
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:111)) - org.springframew
rk.beans.factory.BeanDefinitionStoreException: Error registering bean
with name 'dataSource' defined in class path reso
rce [commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName'
 17:08:10,828 INFO
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:103)) - Configuring spri
g
 17:08:10,953 FATAL
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:111)) - org.springframew
rk.beans.factory.BeanDefinitionStoreException: Error registering bean
with name 'dataSource' defined in class path reso
rce [commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName'
 17:08:10,953 INFO
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:103)) - Configuring spri
g
 17:08:11,031 FATAL
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:111)) - org.springframew
rk.beans.factory.BeanDefinitionStoreException: Error registering bean
with name 'dataSource' defined in class path reso
rce [commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName'
 17:08:11,078 INFO
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:103)) - Configuring spri
g
 17:08:11,156 FATAL
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:111)) - org.springframew
rk.beans.factory.BeanDefinitionStoreException: Error registering bean
with name 'dataSource' defined in class path reso
rce [commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName'
 17:08:11,171 INFO
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:103)) - Configuring spri
g
 17:08:11,281 FATAL
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:111)) - org.springframew
rk.beans.factory.BeanDefinitionStoreException: Error registering bean
with name 'dataSource' defined in class path reso
rce [commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName'
 17:08:11,281 INFO
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:103)) - Configuring spri
g
 17:08:11,375 FATAL
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:111)) - org.springframew
rk.beans.factory.BeanDefinitionStoreException: Error registering bean
with name 'dataSource' defined in class path reso
rce [commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName'
 @SLTests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed:
1.719 sec  FAILURE!
Running no.avinor.ansattportal.dao.jdbcTemplate.ProjectroomJdbcDaoTest
17:08:11,406 INFO
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:103)) - Configuring sprin
 
 17:08:11,531 FATAL
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:111)) - org.springframew
rk.beans.factory.BeanDefinitionStoreException: Error registering bean
with name 'dataSource' defined in class path reso
rce [commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName'
 17:08:11,531 INFO
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:103)) - Configuring spri
g
 17:08:11,625 FATAL
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:111)) - org.springframew
rk.beans.factory.BeanDefinitionStoreException: Error registering bean
with name 'dataSource' defined in class path reso
rce [commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName'
 17:08:11,640 INFO
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:103)) - Configuring spri
g
 17:08:11,750 FATAL
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:111)) - org.springframew
rk.beans.factory.BeanDefinitionStoreException: Error registering bean
with name 'dataSource' defined in class path reso
rce [commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName'
 @SLTests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed:
0.375 sec  FAILURE!
 
Results :
Tests run: 9, Failures: 0, 

SV: SCM conflict problem

2006-09-25 Thread Naess, Ronny
Thanks, Emmanuel.

I did almost what you suggested. We have a common artifact with test resources, 
a directory containing HSQLDB and more. I added a antrun proc to the 
process-test-resources with a mission to copy the database.script to 
database_whatever.script. The tests setup then access database_whatever and SCM 
 conflicts is no more an issue for us. Problem solved :-)

-Ronny  

-Opprinnelig melding-
Fra: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sendt: 21. september 2006 15:09
Til: Maven Users List
Emne: Re: SCM conflict problem

In your tests, you can copy hsqldb files in target directory and load them from 
it instead of from the source directory. So you won't work directly on your scm 
files.

Emmanuel

Naess, Ronny a écrit :
 Hi.
  
 We use HSQLDB as testdatabase (standalone mode aka file) when running 
 test in maven. This works fine, however our tests fail each time after 
 updating the hsqldb.script file. The problem is that Continuum runs 
 all tests every now and then and since we load the testdatabase with 
 testdata pre testing the hsqldb.script file gets updated locally. So 
 when the developer have updatet the hsqldb.script file and checked it 
 in to repos the problem occures when Continuum starts to checkout. The 
 two hsqldb.script files is conflicted and the test will fail right after.
  
 Is there a solution to this problem? We have automated everything to 
 max with good results so we would very much like to skip a manual 
 conflict merge after each broken build where the problem is this conflict.
  
 Until we find a good solutions we have to provide a better exception 
 message and the dude that caused the build has to manualy resolve the 
 conflict where continuum runs.
  
 -Ronny
 


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


!DSPAM:45128f31264771573131950!


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



SV: SV: maven site not showing sub module links in parent html

2006-09-25 Thread Naess, Ronny
Running only 'mvn site' will give you site files in artifact target
directory, but they will not be correctly linked before you deploy them,
or I suppose stage them. I do not have experience with stage but I
suppose that should work the same way as site-deploy.

You do not need a site.xml for each sub-module, the one in parent is
enough. Anything else would not give meaning since site,xnk is a
descriptor for the whole site.

My parent pom must contains something simulare to this:

  distributionManagement
site
idwebsite/id
urlfile://localhost/tmp/mysite/url
/site
/distributionManagement

When I run 'mvn site site-deploy' I will find my full site structure in
/tmp/mysite 

-Ronny

-Opprinnelig melding-
Fra: tulasi [mailto:[EMAIL PROTECTED] 
Sendt: 25. september 2006 12:22
Til: users@maven.apache.org
Emne: Re: SV: maven site not showing sub module links in parent html


Hi all,

I have tried with mvn site and  mvn site:stage
-DstagingDirectory=C:\mysite4 commands.

and also i have tried with configuration menu ref=modules / and
${modules}.

But its not creating links in parent html.   is thr any solution. please
help me 

and  a small doubt -- is it need to contain site.xml in each every
sub-module?.


Thanks in advance








Naess, Ronny wrote:
 
 This works fine for me:
 
 menu ref=parent /
 menu ref=modules /
 menu ref=reports /
 
 You could also try ${modules}, but it is basically the same.
 
 You also might want to narrow down your problem in your site.xml file,

 trying to only have what you really need as a minimum.
 You have ofcourse build all artifacts/modules and they are in parent 
 pom referenced with
 
 modules
   moduleyourModule/module
   moduleyourOtherModule/module
 /modules
 
 Also note, the generated site does not work under target dir, you have

 to deploy your site(s) somewhere or else the links will point to the 
 wrong location.
 
 -Ronny
 
 -Opprinnelig melding-
 Fra: news [mailto:[EMAIL PROTECTED] P? vegne av Geoffrey De Smet
 Sendt: 19. september 2006 10:49
 Til: users@maven.apache.org
 Emne: Re: maven site not showing sub module links in parent html
 
 No idea then, it works for us at spring-rich-c.sf.net, maybe you can 
 try comparing the site.xml's etc.
 
 One thing I noticed is that you don't have an url element in your 
 parent pom, which gives problems with site inheritance (I opened a 
 jira for it)
 
 tulasi wrote, On 2006-09-19 6:15 AM:
 
 
 I have tried these two also. But its not showing in parent html
 
 
 
 
 Geoffrey De Smet-2 wrote:
 Try

  menu ref=modules /

  menu ref=reports /


 tulasi wrote, On 2006-09-18 2:54 PM:
 Hi,

 I have created my  /src/site/site.xml and pom.xml like as follows. 
 But when i am trying create mvn site, its not creating sub modules 
 links in parent html. Here i have enclosed my site.xml and pom.xml.
 what was wrong in these files?.

 Site.xml
 ?xml version=1.0 encoding=UTF-8? project name=My
Framework
   bannerLeft
 nameMy Framework/name

srchttp://maven.apache.org/images/apache-maven-project.png/src
 hrefhttp://maven.apache.org//href
   /bannerLeft
   bannerRight
 srchttp://maven.apache.org/images/maven-small.gif/src
   /bannerRight
   skin
 groupIdorg.apache.maven.skins/groupId
 artifactIdmaven-default-skin/artifactId
 version1.0/version
   /skin
   body
 links
item name=My Framework
href=../target/site/index.html/ 
 /links
 ${modules}
 ${reports} 
   /body
 /project


 Pom.xml

 ?xml version=1.0 encoding=UTF-8? project
modelVersion4.0.0/modelVersion
groupIdmy.id.util/groupId
version${my_version_number}/version
nameMyFramework/name
artifactIdMyFramework/artifactId
packagingpom/packaging
distributionManagement
site
  idMyFramework/id
  urlscpexe://MyProject//url
/site  
snapshotRepository
  idsnapshots/id
  nameMaven Central Plugins Development Repository/name
 

urlscp://repo1.maven.org/home/projects/maven/repository-staging/snapsh
ots/maven2/url
/snapshotRepository
/distributionManagement 
build
directory${lib.dir}/directory
outputDirectorytarget/outputDirectory
/build
modules
modulesubA/module
modulesubB/module
modulesubC/module
modulesubD/module
modulesubE/module
modulesubF/module
/modules
reporting
plugins
  plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-site-plugin/artifactId
   version2.0-beta-5/version
   configuration
 localesen/locales 
   /configuration
  /plugin
/plugins
 /reporting
 /project
 --
 With kind regards,
 Geoffrey De Smet

SV: Build errors

2006-09-25 Thread Naess, Ronny
I have tried different things but no pattern is discovered.

I am logged on the unix server that Continuum is running on. I then
change directory to the artifact that fails. 

Things I have tried:

mvn install - failure
mvn clean   - success
mvn test- success
mvn install - failure
mvn install - failure
mvn install - failure
mvn test- failure
mvn test- failure
mvn clean test  - failure
mvn clean   - success
mvn test- success
mvn clean   - success
mvn test- success
mvn clean   - success
mvn test- success
mvn clean test  - failure
mvn clean test  - failure
mvn clean test  - failure
mvn test- failure
mvn test- failure
mvn clean   - success
mvn test- success
mvn test- failure
mvn test- failure
mvn clean   - success
mvn install - failure
mvn clean   - success
mvn install - success
mvn clean   - success
mvn install - failure
mvn clean   - success
mvn install - failure
mvn clean   - success
mvn install - success
mvn clean   - success
mvn test- success
mvn test- success


What I can see so far. 

'mvn clean test' always failure
'mvn clean'  followed by 'mvn test'  always success (however
failed several times on my Win XP laptop)
'mvn test'   followed by 'mvn test'  sometimes success and
sometimes failure
'mvn clean'  followed by 'mvn install'   sometimes success and
sometimes failure

Could it be that my pom has something that could give me the unstable
pattern that is shown here? 

My pom.xml


?xml version=1.0 encoding=iso-8859-1?
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-v4_0_0.xsd;
parent
artifactIdansattportal/artifactId
groupIdno.avinor/groupId
version1.0-SNAPSHOT/version
/parent
modelVersion4.0.0/modelVersion
groupIdno.avinor/groupId
artifactIdansattportal-jdbcDao/artifactId
nameansattportal-jdbcDao/name
descriptionData Access Objects (Implementation)/description
version1.0-SNAPSHOT/version
dependencies
dependency
groupIdno.avinor/groupId
artifactIdansattportal-dao/artifactId
version1.0-SNAPSHOT/version 
/dependency
dependency
groupIdno.avinor/groupId
artifactIdansattportal-commons/artifactId
version1.0-SNAPSHOT/version 
/dependency
dependency
groupIdno.avinor/groupId
artifactIdansattportal-commons/artifactId
version1.0-SNAPSHOT/version
typetest-jar/type
scopetest/scope
/dependency
/dependencies
build
   plugins
 plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-jar-plugin/artifactId
  executions
   execution
goals
 goaltest-jar/goal
/goals
   /execution
 /executions
   /plugin
 /plugins
  /build
/project



Any ideas?

-Ronny

-Opprinnelig melding-
Fra: Naess, Ronny [mailto:[EMAIL PROTECTED] 
Sendt: 25. september 2006 10:14
Til: users@maven.apache.org
Emne: Build errors

Hi.
 
I am building my modules with Maven 2. The build is executed from top
level (parent). 
 
The build process seems to be unstable. Sometime it goes well other
times not. When it breaks there is always an exception telling me that
Springs propertyPlaceHolderConfigurer not has replaced my property
values in my spring-config like it is supposed to. I think this tells me
that the dependencies might be skipped or bypassed some times. I can't
find a pattern. Anyone experienced the same?
 
 
This is the exception (mvn test -e):
 
---
 T E S T S
---
Running no.avinor.ansattportal.dao.jdbcTemplate.ArticleJdbcDaoTest
17:08:09,718 INFO
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:103)) - Configuring sprin
 
 17:08:10,812 FATAL
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:111)) - org.springframew
rk.beans.factory.BeanDefinitionStoreException: Error registering bean
with name 'dataSource' defined in class path reso rce
[commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName'
 17:08:10,828 INFO

SV: SV: SV: maven site not showing sub module links in parent html

2006-09-25 Thread Naess, Ronny
Well, the sample assumed unix.

Try file://localhost/c:/temp/mysite instead.

Also you can use the -e switch like mvn says, maybe the problem becomes
visable (mvn site site-deploy -e)

-Ronny
 

-Opprinnelig melding-
Fra: tulasi [mailto:[EMAIL PROTECTED] 
Sendt: 25. september 2006 14:04
Til: users@maven.apache.org
Emne: Re: SV: SV: maven site not showing sub module links in parent html


Hi Rony

How will i create a site deploy in my local pc. 

I did like this urlfile://localhost/tmp/mysite/url . but its raising
error. please help me dear.

[INFO] [site:deploy]
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Missing distribution management information in the project [INFO]

[INFO] For more information, run Maven with the -e switch [INFO]

[INFO] Total time: 32 seconds
[INFO] Finished at: Mon Sep 25 17:34:24 GMT+05:30 2006 [INFO] Final
Memory: 18M/36M [INFO]



Thanks in advance





Naess, Ronny wrote:
 
 Running only 'mvn site' will give you site files in artifact target 
 directory, but they will not be correctly linked before you deploy 
 them, or I suppose stage them. I do not have experience with stage but

 I suppose that should work the same way as site-deploy.
 
 You do not need a site.xml for each sub-module, the one in parent is 
 enough. Anything else would not give meaning since site,xnk is a 
 descriptor for the whole site.
 
 My parent pom must contains something simulare to this:
 
   distributionManagement
   site
   idwebsite/id
   urlfile://localhost/tmp/mysite/url
   /site
   /distributionManagement
 
 When I run 'mvn site site-deploy' I will find my full site structure 
 in /tmp/mysite
 
 -Ronny
 
 -Opprinnelig melding-
 Fra: tulasi [mailto:[EMAIL PROTECTED]
 Sendt: 25. september 2006 12:22
 Til: users@maven.apache.org
 Emne: Re: SV: maven site not showing sub module links in parent html
 
 
 Hi all,
 
 I have tried with mvn site and  mvn site:stage
 -DstagingDirectory=C:\mysite4 commands.
 
 and also i have tried with configuration menu ref=modules / and 
 ${modules}.
 
 But its not creating links in parent html.   is thr any solution.
please
 help me
 
 and  a small doubt -- is it need to contain site.xml in each every 
 sub-module?.
 
 
 Thanks in advance
 
 
 
 
 
 
 
 
 Naess, Ronny wrote:
 
 This works fine for me:
 
 menu ref=parent /
 menu ref=modules /
 menu ref=reports /
 
 You could also try ${modules}, but it is basically the same.
 
 You also might want to narrow down your problem in your site.xml 
 file,
 
 trying to only have what you really need as a minimum.
 You have ofcourse build all artifacts/modules and they are in parent 
 pom referenced with
 
 modules
   moduleyourModule/module
   moduleyourOtherModule/module
 /modules
 
 Also note, the generated site does not work under target dir, you 
 have
 
 to deploy your site(s) somewhere or else the links will point to the 
 wrong location.
 
 -Ronny
 
 -Opprinnelig melding-
 Fra: news [mailto:[EMAIL PROTECTED] P? vegne av Geoffrey De Smet
 Sendt: 19. september 2006 10:49
 Til: users@maven.apache.org
 Emne: Re: maven site not showing sub module links in parent html
 
 No idea then, it works for us at spring-rich-c.sf.net, maybe you can 
 try comparing the site.xml's etc.
 
 One thing I noticed is that you don't have an url element in your 
 parent pom, which gives problems with site inheritance (I opened a 
 jira for it)
 
 tulasi wrote, On 2006-09-19 6:15 AM:
 
 
 I have tried these two also. But its not showing in parent html
 
 
 
 
 Geoffrey De Smet-2 wrote:
 Try

  menu ref=modules /

  menu ref=reports /


 tulasi wrote, On 2006-09-18 2:54 PM:
 Hi,

 I have created my  /src/site/site.xml and pom.xml like as follows.

 But when i am trying create mvn site, its not creating sub modules

 links in parent html. Here i have enclosed my site.xml and
pom.xml.
 what was wrong in these files?.

 Site.xml
 ?xml version=1.0 encoding=UTF-8? project name=My
 Framework
   bannerLeft
 nameMy Framework/name

 srchttp://maven.apache.org/images/apache-maven-project.png/src
 hrefhttp://maven.apache.org//href
   /bannerLeft
   bannerRight
 srchttp://maven.apache.org/images/maven-small.gif/src
   /bannerRight
   skin
 groupIdorg.apache.maven.skins/groupId
 artifactIdmaven-default-skin/artifactId
 version1.0/version
   /skin
   body
 links
   item name=My Framework
 href=../target/site/index.html/
 /links
 ${modules}
 ${reports} 
   /body
 /project


 Pom.xml

 ?xml version=1.0 encoding=UTF-8? project
   modelVersion4.0.0

SV: SV: SV: SV: maven site not showing sub module links in parent html

2006-09-25 Thread Naess, Ronny
It says that its missing distribution management information in the
project

You know, the 
 

-Opprinnelig melding-
Fra: tulasi [mailto:[EMAIL PROTECTED] 
Sendt: 25. september 2006 15:02
Til: users@maven.apache.org
Emne: Re: SV: SV: SV: maven site not showing sub module links in parent
html


Hi Rony..

Please check this error

[INFO] [site:deploy]
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Missing distribution management information in the project [INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Missing
distribution management information in the project
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:475)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:140)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Missing
distribution management information in the project
at
org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java
:98)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:534)
... 16 more
[INFO]

[INFO] Total time: 34 seconds
[INFO] Finished at: Mon Sep 25 18:33:17 GMT+05:30 2006 [INFO] Final
Memory: 19M/39M [INFO]






Naess, Ronny wrote:
 
 Well, the sample assumed unix.
 
 Try file://localhost/c:/temp/mysite instead.
 
 Also you can use the -e switch like mvn says, maybe the problem 
 becomes visable (mvn site site-deploy -e)
 
 -Ronny
  
 
 -Opprinnelig melding-
 Fra: tulasi [mailto:[EMAIL PROTECTED]
 Sendt: 25. september 2006 14:04
 Til: users@maven.apache.org
 Emne: Re: SV: SV: maven site not showing sub module links in parent 
 html
 
 
 Hi Rony
 
 How will i create a site deploy in my local pc. 
 
 I did like this urlfile://localhost/tmp/mysite/url . but its 
 raising error. please help me dear.
 
 [INFO] [site:deploy]
 [INFO]
 --
 --
 [ERROR] BUILD ERROR
 [INFO]
 --
 -- [INFO] Missing distribution management information in the project 
 [INFO]
 --
 -- [INFO] For more information, run Maven with the -e switch [INFO]
 --
 --
 [INFO] Total time: 32 seconds
 [INFO] Finished at: Mon Sep 25 17:34:24 GMT+05:30 2006 [INFO] Final
 Memory: 18M/36M [INFO]
 --
 --
 
 
 Thanks in advance
 
 
 
 
 
 Naess, Ronny wrote:
 
 Running only 'mvn site' will give you site files in artifact target 
 directory, but they will not be correctly linked before you deploy 
 them, or I suppose stage them. I do not have experience with stage 
 but
 
 I suppose that should work the same way as site-deploy.
 
 You do not need a site.xml for each sub-module, the one in parent is 
 enough. Anything else would not give meaning since site,xnk is a 
 descriptor for the whole site.
 
 My parent pom must contains something simulare to this:
 
   distributionManagement
  site

SV: SV: SV: SV: maven site not showing sub module links in parent html

2006-09-25 Thread Naess, Ronny
To quick in my replay there.


Did you include something like 

 distributionManagement
site
idwebsite/id
urlfile://localhost/c:/temp/mysite/url
/site
 /distributionManagement

in your pom?

Is windows or unix/linux your enviroment?

-Ronny

-Opprinnelig melding-
Fra: tulasi [mailto:[EMAIL PROTECTED] 
Sendt: 25. september 2006 15:02
Til: users@maven.apache.org
Emne: Re: SV: SV: SV: maven site not showing sub module links in parent
html


Hi Rony..

Please check this error

[INFO] [site:deploy]
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Missing distribution management information in the project [INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Missing
distribution management information in the project
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:475)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:140)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Missing
distribution management information in the project
at
org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java
:98)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:534)
... 16 more
[INFO]

[INFO] Total time: 34 seconds
[INFO] Finished at: Mon Sep 25 18:33:17 GMT+05:30 2006 [INFO] Final
Memory: 19M/39M [INFO]






Naess, Ronny wrote:
 
 Well, the sample assumed unix.
 
 Try file://localhost/c:/temp/mysite instead.
 
 Also you can use the -e switch like mvn says, maybe the problem 
 becomes visable (mvn site site-deploy -e)
 
 -Ronny
  
 
 -Opprinnelig melding-
 Fra: tulasi [mailto:[EMAIL PROTECTED]
 Sendt: 25. september 2006 14:04
 Til: users@maven.apache.org
 Emne: Re: SV: SV: maven site not showing sub module links in parent 
 html
 
 
 Hi Rony
 
 How will i create a site deploy in my local pc. 
 
 I did like this urlfile://localhost/tmp/mysite/url . but its 
 raising error. please help me dear.
 
 [INFO] [site:deploy]
 [INFO]
 --
 --
 [ERROR] BUILD ERROR
 [INFO]
 --
 -- [INFO] Missing distribution management information in the project 
 [INFO]
 --
 -- [INFO] For more information, run Maven with the -e switch [INFO]
 --
 --
 [INFO] Total time: 32 seconds
 [INFO] Finished at: Mon Sep 25 17:34:24 GMT+05:30 2006 [INFO] Final
 Memory: 18M/36M [INFO]
 --
 --
 
 
 Thanks in advance
 
 
 
 
 
 Naess, Ronny wrote:
 
 Running only 'mvn site' will give you site files in artifact target 
 directory, but they will not be correctly linked before you deploy 
 them, or I suppose stage them. I do not have experience with stage 
 but
 
 I suppose that should work the same way as site-deploy.
 
 You do not need a site.xml for each sub-module, the one in parent

SV: deploy with scp

2006-09-25 Thread Naess, Ronny
Hi, Ravinder my friend.

This is how I do it. Note I use user/password.

Settings.xml
---
server
idwebsite/id
usernameapache/username
passwordapache/password
filePermissions644/filePermissions
  directoryPermissions755/directoryPermissions
/server
--- 

Pom.xml
---
distributionManagement
site
idwebsite/id
urlscp://sgm636/opt/web/ansattportal/url
/site
/distributionManagement
---

-Ronny 

-Opprinnelig melding-
Fra: Ravinder Singh [mailto:[EMAIL PROTECTED] 
Sendt: 25. september 2006 15:46
Til: users@maven.apache.org
Emne: deploy with scp

I am trying to do do a deploy without user interaction (through
continuum).
Currently I am testing deploy for the project. But I am failing to have
it deploy without prompting for password.
 
I hace specified the privateKey, username, and even the password in the
settings.xml. But it won't stop asking for password.

However a release:perform does not ask for a password and does
everything automagically, without prompting for password, so here it
works with scp and privateKey.
 
Is there any workaround for this or am i doing something wrong?
 
 
Ravinder Singh
System developer
 


!DSPAM:4517ddd6270429724523251!

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



SV: SV: SV: SV: SV: maven site not showing sub module links in parent ht

2006-09-25 Thread Naess, Ronny
Well, that exeption is thrown because it can not create a
DistributionManagement object. Is distributionManagement listed if you
run 'mvn help:effective-pom' (mine seems to be listed at the bottom)?

'mvn site' generates your site, but the links will not work because all
generated sites (parent and modules) must be deployed together.

Undeployd (only 'mvn site') gives something like this (links not
working)):

+-module1/
  +-target/
+-site/  - Module1 (M1)
+-module2/
  +-target/
+-site/  - Module2 (M2)
+-target/
  +-site/- This is the root/parent level (root)
+-css/
+-dependencies.html
+-dependency-convergence.html
+-index.html
+-etc...

  
After deployment (mvn site-deploy) you will have something like this
(links is working):

+-[website]/   - root
  +-css/
  +-dependencies.html
  +-dependency-convergence.html
  +-index.html
  +-etc...
  +-module1/   - M1
  +-module2/   - M2


-Ronny

-Opprinnelig melding-
Fra: tulasi [mailto:[EMAIL PROTECTED] 
Sendt: 26. september 2006 06:18
Til: users@maven.apache.org
Emne: Re: SV: SV: SV: SV: maven site not showing sub module links in
parent ht


Hi Ronny,

Ya, I have checked. 

I have configured Distribution Management in parent pom.xml according to
your suggestion.

mvn site is working fine(but its not creating links in parent
index.html), site-deploy throwing execption ( Missing Distribution
management).

please suggest me how will handle this exception.

Thanks in advance

 


Naess, Ronny wrote:
 
 It says that its missing distribution management information in the 
 project
 
 You know, the
  
 
 -Opprinnelig melding-
 Fra: tulasi [mailto:[EMAIL PROTECTED]
 Sendt: 25. september 2006 15:02
 Til: users@maven.apache.org
 Emne: Re: SV: SV: SV: maven site not showing sub module links in 
 parent html
 
 
 Hi Rony..
 
 Please check this error
 
 [INFO] [site:deploy]
 [INFO]
 --
 --
 [ERROR] BUILD ERROR
 [INFO]
 --
 -- [INFO] Missing distribution management information in the project 
 [INFO]
 --
 --
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Missing 
 distribution management information in the project
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defau
 lt
 LifecycleExecutor.java:559)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLif
 ec
 ycle(DefaultLifecycleExecutor.java:475)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defaul
 tL
 ifecycleExecutor.java:454)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand
 le
 Failures(DefaultLifecycleExecutor.java:306)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment
 s(
 DefaultLifecycleExecutor.java:273)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLif
 ec
 ycleExecutor.java:140)
 at
 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
 at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
 av
 a:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
 or
 Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 Caused by: org.apache.maven.plugin.MojoExecutionException: Missing 
 distribution management information in the project
 at
 org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.ja
 va
 :98)
 at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugin
 Ma
 nager.java:412)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defau
 lt
 LifecycleExecutor.java:534)
 ... 16 more
 [INFO]
 --
 --
 [INFO] Total time: 34 seconds
 [INFO] Finished at: Mon Sep 25 18:33:17 GMT+05:30 2006 [INFO] Final
 Memory: 19M/39M [INFO]
 --
 --
 
 
 
 
 
 Naess, Ronny wrote:
 
 Well, the sample assumed unix.
 
 Try file://localhost/c:/temp/mysite instead.
 
 Also you can use the -e switch like mvn says, maybe the problem 
 becomes visable (mvn site site-deploy -e)
 
 -Ronny
  
 
 -Opprinnelig melding-
 Fra: tulasi [mailto:[EMAIL

Conflict problem

2006-09-21 Thread Naess, Ronny



Hi.

We use HSQLDB as 
testdatabase (standalonemode aka file)when running test in maven. 
This works fine, however our testsfail each time after updating the 
hsqldb.script file. The problem is that Continuum runs all tests every now and 
then and since we load the testdatabase with testdata pre testing the 
hsqldb.script file gets updated locally. So when the developer have updatet the 
hsqldb.script file and checked it in to repos the problem occures when Continuum 
starts to checkout. The two hsqldb.script files is conflicted and the test will 
fail right after.

Is there a solution 
to this problem? We have automated everything to max with good results so we 
would very much like to skip a manual conflict merge after each broken build 
where the problem is this conflict.

Until we find a good 
solutions we have to provide a better exception message and the dude that caused 
the build has to manualy resolve the conflict where continuum 
runs.

-Ronny


SV: Conflict problem

2006-09-21 Thread Naess, Ronny
Ok, I thougt this might be a SCM question.

I will ask it at Maven users instead. 

-Ronny 

-Opprinnelig melding-
Fra: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sendt: 21. september 2006 14:51
Til: scm-users@maven.apache.org
Emne: Re: Conflict problem

Ronny,

This list is for Maven-SCM project, the right list for your pb is the maven 
users list
(users@maven.apache.org)

Emmanuel

Naess, Ronny a écrit :
 Hi.
  
 We use HSQLDB as testdatabase (standalone mode aka file) when running 
 test in maven. This works fine, however our tests fail each time after 
 updating the hsqldb.script file. The problem is that Continuum runs 
 all tests every now and then and since we load the testdatabase with 
 testdata pre testing the hsqldb.script file gets updated locally. So 
 when the developer have updatet the hsqldb.script file and checked it 
 in to repos the problem occures when Continuum starts to checkout. The 
 two hsqldb.script files is conflicted and the test will fail right after.
  
 Is there a solution to this problem? We have automated everything to 
 max with good results so we would very much like to skip a manual 
 conflict merge after each broken build where the problem is this conflict.
  
 Until we find a good solutions we have to provide a better exception 
 message and the dude that caused the build has to manualy resolve the 
 conflict where continuum runs.
  
 -Ronny


!DSPAM:45128b01222301272651560!



SCM conflict problem

2006-09-21 Thread Naess, Ronny
Hi.
 
We use HSQLDB as testdatabase (standalone mode aka file) when running
test in maven. This works fine, however our tests fail each time after
updating the hsqldb.script file. The problem is that Continuum runs all
tests every now and then and since we load the testdatabase with
testdata pre testing the hsqldb.script file gets updated locally. So
when the developer have updatet the hsqldb.script file and checked it in
to repos the problem occures when Continuum starts to checkout. The two
hsqldb.script files is conflicted and the test will fail right after.
 
Is there a solution to this problem? We have automated everything to max
with good results so we would very much like to skip a manual conflict
merge after each broken build where the problem is this conflict.
 
Until we find a good solutions we have to provide a better exception
message and the dude that caused the build has to manualy resolve the
conflict where continuum runs.
 
-Ronny


SV: [m204] want to deploy site to local hard drive withouth scm

2006-09-20 Thread Naess, Ronny
Site-deploy is how its done in Maven2. I guess site:deploy is a maven1
goal.

I just ran 'mvn site' and I do get index.html in each and every
target/site dir. Could it be that an exception is thrown somewhere in
the process?

-Ronny

-Opprinnelig melding-
Fra: Mick Knutson [mailto:[EMAIL PROTECTED] 
Sendt: 19. september 2006 21:21
Til: Maven Users List
Emne: Re: [m204] want to deploy site to local hard drive withouth scm

Got a bit further by running mvn site-deploy instead of site:deploy

But, there are no index.html files in any of the project modules. So
there is still a dead link.
It seems there is not an index.html generated ever. Why?



On 9/19/06, Mick Knutson [EMAIL PROTECTED] wrote:

 A bit further.
 But now, I get a site, that does not have an index.html, but when I 
 open any of the html files, there are links to my sub-modules, but the

 links are dead as the sub-module site files did not seem to get moved
over.




 On 9/19/06, Markku Saarela [EMAIL PROTECTED] wrote:
 
  First you must run mvn site:site and after that mvn site:deploy
 
  - markku
 
  Mick Knutson wrote:
   And then mvn site:deploy:
  
  
   c:\opt\npimvn site:deploy
   [INFO] Scanning for projects...
   [INFO] Reactor build order:
   [INFO]   npi
   [INFO]   common
   [INFO]   common-jar
   [INFO]   properties-configuration
   [INFO]   common-war
   [INFO]   project-web
   [INFO]   npi-webproject
   [INFO]   project-ear
   [INFO] Searching repository for plugin with prefix: 'site'.
   [INFO]
  
  
  
  
   [INFO] Building npi
   [INFO]task-segment: [site:deploy]
   [INFO]
  
  
  
  
   [INFO] [site:deploy]
   file:///c:/stage - Session: Opened file:///c:/stage - Session: 
   Disconnecting file:///c:/stage - Session: Disconnected [INFO]
  
  
  
 
  
   [INFO] Building common
   [INFO]task-segment: [site:deploy]
   [INFO]
  
  
  
  
   [INFO] [site:deploy]
  
  
   This created a directory called C:\stage\stage\localhost but 
   there were no files in it.
  
  
  
   On 9/19/06, Mick Knutson  [EMAIL PROTECTED] wrote:
  
   Embedded error:
  
  c:\opt\npi\target\site\stage\localhost\c:\opt\fullsite\integration.h
  tml
   (The
   filename, directory name, or volume label syntax is incorrect)
  
  
   Thsi was with mvn site:stage and this declaration:
  
   distributionManagement
   site
   iddelta-npi-site/id
   nameDelta NPI Web/name
   url file:///c:/opt/fullsite/url
   /site
   /distributionManagement
  
  
  
  
   On 9/18/06, franz see  [EMAIL PROTECTED] wrote:
   
   
   
   
Markku Saarela wrote:

 Put your parent pom.xml site configuration using file 
 protocol

   distributionManagement
 site
   idwebsite/id
   urlfile:///c:/stage /url
 /site
   /distributionManagement

 - markku

 Mick Knutson wrote:
 How can I deploy, and/or stage my entire site (including
   sub-modules)
   
 locally to c:\stage




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



   
Good day to you, Mick,
   
For more info, you can also take a look at [1] and go to the
   Staging a
Site section. However, [1] has not yet been released. Thus, if

you
 
   have
any
comments or suggestions, please feel free to let us know about 
it
  so
that we
can improve it.
   
Thanks,
Franz
   
[1]
   http://people.apache.org/~oching/maven-site-plugin/usage.htmlhtt
   p://people.apache.org/%7Eoching/maven-site-plugin/usage.html
   http://people.apache.org/%7Eoching/maven-site-plugin/usage.html
  
--
View this message in context:
   
  
  http://www.nabble.com/-m204--want-to-deploy-site-to-local-hard-drive
  -withouth-scm-tf2293502.html#a6382567
  
Sent from the Maven - Users mailing list archive at Nabble.com
.
   
   
   
  
  -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
   --
  
   Thanks
  
   DJ MICK
   http://www.djmick.com
   http://www.myspace.com/mickknutson
  
  
  
  
 
 
  
  - To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --

 Thanks

 DJ MICK
 http://www.djmick.com
 http://www.myspace.com/mickknutson




-- 

Thanks

DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson



SV: Make dependencies availible

2006-09-20 Thread Naess, Ronny
I ment I had tried this before. My conclutions was that outputDirectory
alwas was located in target dir. I think I tested this for the assembly
plugin, and it might be that there are a difference between these two. 

-Ronny  

-Opprinnelig melding-
Fra: dan tran [mailto:[EMAIL PROTECTED] 
Sendt: 19. september 2006 15:26
Til: Maven Users List
Emne: Re: Make dependencies availible

you can configure the outputDirectory to some where else

http://mojo.codehaus.org/dependency-maven-plugin/copy-dependencies-mojo.
html

outputDirectory../outputDirectory


On 9/19/06, Naess, Ronny [EMAIL PROTECTED] wrote:

 What I now have done is that I use dependency-maven-plugin (to be
 changed) and runs the goal 'copy-dependencies'. Instead of push I now 
 use pull, meaning I have a script(ant) that pulls the dependencies 
 from my maven parent dir by copying all files to the BEA portal dir.

 This works fine and I think the resonsibility is more correct 
 conserning dependency. Maven should not have repsonsibility to update 
 its client and not the other way.

 To summarize: Maven copies all dependencyes to target/dependency for 
 all modules. A client ant script then copies all jars under target/ 
 using flatten=true to the BEA portal dir, giving me exactly what I
want.

 The ideal way would been that maven put every dependeny to a stage
 area, and that the client could reference this area as an dependency.
 Bea Portal (v8.1) does not have this feature so it must be feed all 
 its dependencies.

 -Ronny

 -Opprinnelig melding-
 Fra: dan tran [mailto:[EMAIL PROTECTED]
 Sendt: 19. september 2006 14:39
 Til: Maven Users List
 Emne: Re: Make dependencies availible

 This is a common pattern that fits nicely with dependency and assemly 
 plugins.
 Here is the suggested structures.

 parent
 pom.xml
 module1
 module2
 ..
 assemby-module

 In the parent pom, define dependencyManagement section that all other 
 sub modules will share teh same dependency info.

 In you assembly-module, use dependency:copy to prepare a staging area 
 that assembly plugin can consume.
 I would suggest to give maven-dependency-plugin a try, and file JIRA 
 if it does not work out for you.
 dependency-maven-plugin at codehaus is EOL.

 -D


 On 9/19/06, Naess, Ronny [EMAIL PROTECTED] wrote:
 
  Hi.
 
  Our project uses Maven2 to build some artifacts, and these artifacts

  and their dependensies must be availible for the client. The client 
  is

  BEA Portal.
 
  I want to fetch all my artifacts and their depencendies in one go!
 
  I have looked at both dependency-maven-plugin 
  (maven-dependency-plugin

  seems to fail on me?) and maven-assembly-plugin.
 
  My project is orginized with a master dir containing the parent pom,

  and all modules as subprojects.
 
  * Is the dependency plugin capable of handling modules (new in maven
 2)?
  If I have to configure every artifact I suppose it does not!
  * I have to first run copy goal to copy artifacts, then 
  dependencies-copy. Also, will this have to be configured for each 
  artifact or only in parent pom (I guess the previous question will 
  answer this question)?
  * Also how do I override property outputDirectory to go outside 
  basedir? I guess I always can post run an ant task but I would 
  rather override it.
 
 
  Any help or tips is welcome.
 
 
  -Ronny
 
  
  - To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 

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




!DSPAM:450ff00792341367111490!

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



Make dependencies availible

2006-09-19 Thread Naess, Ronny
Hi.

Our project uses Maven2 to build some artifacts, and these artifacts and
their dependensies must be availible for the client. The client is BEA
Portal. 

I want to fetch all my artifacts and their depencendies in one go!

I have looked at both dependency-maven-plugin (maven-dependency-plugin
seems to fail on me?) and maven-assembly-plugin.

My project is orginized with a master dir containing the parent pom, and
all modules as subprojects.

* Is the dependency plugin capable of handling modules (new in maven 2)?
If I have to configure every artifact I suppose it does not!
* I have to first run copy goal to copy artifacts, then
dependencies-copy. Also, will this have to be configured for each
artifact or only in parent pom (I guess the previous question will
answer this question)?
* Also how do I override property outputDirectory to go outside
basedir? I guess I always can post run an ant task but I would rather
override it.


Any help or tips is welcome.


-Ronny

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



SV: maven site not showing sub module links in parent html

2006-09-19 Thread Naess, Ronny
This works fine for me:

menu ref=parent /
menu ref=modules /
menu ref=reports / 

You could also try ${modules}, but it is basically the same.

You also might want to narrow down your problem in your site.xml file, trying 
to only have what you really need as a minimum. 
You have ofcourse build all artifacts/modules and they are in parent pom 
referenced with 

modules
  moduleyourModule/module
  moduleyourOtherModule/module
/modules

Also note, the generated site does not work under target dir, you have to 
deploy your site(s) somewhere or else the links will point to the wrong 
location.

-Ronny

-Opprinnelig melding-
Fra: news [mailto:[EMAIL PROTECTED] På vegne av Geoffrey De Smet
Sendt: 19. september 2006 10:49
Til: users@maven.apache.org
Emne: Re: maven site not showing sub module links in parent html

No idea then, it works for us at spring-rich-c.sf.net, maybe you can try 
comparing the site.xml's etc.

One thing I noticed is that you don't have an url element in your parent pom, 
which gives problems with site inheritance (I opened a jira for it)

tulasi wrote, On 2006-09-19 6:15 AM:
 
 
 I have tried these two also. But its not showing in parent html
 
 
 
 
 Geoffrey De Smet-2 wrote:
 Try

  menu ref=modules /

  menu ref=reports /


 tulasi wrote, On 2006-09-18 2:54 PM:
 Hi,

 I have created my  /src/site/site.xml and pom.xml like as follows. 
 But when i am trying create mvn site, its not creating sub modules 
 links in parent html. Here i have enclosed my site.xml and pom.xml. 
 what was wrong in these files?.

 Site.xml
 ?xml version=1.0 encoding=UTF-8? project name=My Framework
   bannerLeft
 nameMy Framework/name
 srchttp://maven.apache.org/images/apache-maven-project.png/src
 hrefhttp://maven.apache.org//href
   /bannerLeft
   bannerRight
 srchttp://maven.apache.org/images/maven-small.gif/src
   /bannerRight
   skin
 groupIdorg.apache.maven.skins/groupId
 artifactIdmaven-default-skin/artifactId
 version1.0/version
   /skin
   body
 links
 item name=My Framework href=../target/site/index.html/ 
 /links
 ${modules}
 ${reports} 
   /body
 /project


 Pom.xml

 ?xml version=1.0 encoding=UTF-8?
 project
 modelVersion4.0.0/modelVersion
 groupIdmy.id.util/groupId
 version${my_version_number}/version
 nameMyFramework/name
 artifactIdMyFramework/artifactId
 packagingpom/packaging
 distributionManagement
 site
   idMyFramework/id
   urlscpexe://MyProject//url
 /site  
 snapshotRepository
   idsnapshots/id
   nameMaven Central Plugins Development Repository/name
  
 urlscp://repo1.maven.org/home/projects/maven/repository-staging/snapshots/maven2/url
 /snapshotRepository
 /distributionManagement 
 build
 directory${lib.dir}/directory
 outputDirectorytarget/outputDirectory
 /build
 modules
 modulesubA/module
 modulesubB/module
 modulesubC/module
 modulesubD/module
 modulesubE/module
 modulesubF/module
 /modules
 reporting
 plugins
   plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-site-plugin/artifactId
version2.0-beta-5/version
configuration
  localesen/locales 
/configuration
   /plugin
 /plugins
 /reporting
 /project
 -- 
 With kind regards,
 Geoffrey De Smet


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



 

-- 
With kind regards,
Geoffrey De Smet


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


!DSPAM:450faf20305591804284693!


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



SV: [m2] Include project version into generated site

2006-09-19 Thread Naess, Ronny
Under reports and project summary you already have it, but I guess this
is not how you want it. Not exacly front page :-)

-Ronny

-Opprinnelig melding-
Fra: Alan Mosely [mailto:[EMAIL PROTECTED] 
Sendt: 19. september 2006 11:01
Til: Maven Users List
Emne: Re: [m2] Include project version into generated site

Hi,

On a related note I would like to have the version included in the url
for further transparency.
Any ideas?

Thanks,

Alan

On 18/09/06, ArneD [EMAIL PROTECTED] wrote:


 Hi,

 I would like to have the project version included into the generated 
 site, e.g. into the title, to make this information transparent to the

 user directly on the welcome page.

 I tried to use ${project.version} in the site.xml descriptor, but this

 is not replaced. Only ${project.name} seems to be working.

 Any hints?

 Thanks,
 Arne


 --
 View this message in context:
 http://www.nabble.com/-m2--Include-project-version-into-generated-site
 -tf2291271.html#a6363605 Sent from the Maven - Users mailing list 
 archive at Nabble.com.


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




!DSPAM:450fb1cc24154409620359!

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



SV: xmlbeans : empty artifact folder on ibiblio

2006-09-19 Thread Naess, Ronny
I guess you could upload it ref:
http://maven.apache.org/guides/mini/guide-ibiblio-upload.html 

-Ronny

-Opprinnelig melding-
Fra: Nicolas De Loof [mailto:[EMAIL PROTECTED] 
Sendt: 19. september 2006 11:21
Til: Maven Users List
Emne: xmlbeans : empty artifact folder on ibiblio


http://www.ibiblio.org/maven2/xmlbeans/xmlbeans-jsr173-api/2.0-dev/
exists but is empty. It is required by the xmlbeans Mojo. If this -dev

artifact is not expected on ibiblio (not a final version ?), why is
there a folder for it ? Is there any alternative repo to get it ?

Nico.





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


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


!DSPAM:450fb82a122887546130037!


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



SV: [m2] Tagging a Successful Build

2006-09-19 Thread Naess, Ronny
Take a look at the maven-release-plugin.

-Ronny 

-Opprinnelig melding-
Fra: Flynn, Adam [mailto:[EMAIL PROTECTED] 
Sendt: 19. september 2006 12:54
Til: 'users@maven.apache.org'
Emne: [m2] Tagging a Successful Build

Hi.

I need to be able to scm:tag a successful build. I'm using cruisecontrol
so is there any way I can automate this to say if the build is
successful then tag?

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


!DSPAM:450fd0cc114474275821350!


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



SV: Make dependencies availible

2006-09-19 Thread Naess, Ronny
What I now have done is that I use dependency-maven-plugin (to be
changed) and runs the goal 'copy-dependencies'. Instead of push I now
use pull, meaning I have a script(ant) that pulls the dependencies from
my maven parent dir by copying all files to the BEA portal dir.

This works fine and I think the resonsibility is more correct conserning
dependency. Maven should not have repsonsibility to update its client
and not the other way. 

To summarize: Maven copies all dependencyes to target/dependency for all
modules. A client ant script then copies all jars under target/ using
flatten=true to the BEA portal dir, giving me exactly what I want.

The ideal way would been that maven put every dependeny to a stage
area, and that the client could reference this area as an dependency.
Bea Portal (v8.1) does not have this feature so it must be feed all its
dependencies.

-Ronny

-Opprinnelig melding-
Fra: dan tran [mailto:[EMAIL PROTECTED] 
Sendt: 19. september 2006 14:39
Til: Maven Users List
Emne: Re: Make dependencies availible

This is a common pattern that fits nicely with dependency and assemly
plugins.
Here is the suggested structures.

parent
 pom.xml
 module1
 module2
 ..
 assemby-module

In the parent pom, define dependencyManagement section that all other
sub modules will share teh same dependency info.

In you assembly-module, use dependency:copy to prepare a staging area
that assembly plugin can consume.
I would suggest to give maven-dependency-plugin a try, and file JIRA if
it does not work out for you.
dependency-maven-plugin at codehaus is EOL.

-D


On 9/19/06, Naess, Ronny [EMAIL PROTECTED] wrote:

 Hi.

 Our project uses Maven2 to build some artifacts, and these artifacts 
 and their dependensies must be availible for the client. The client is

 BEA Portal.

 I want to fetch all my artifacts and their depencendies in one go!

 I have looked at both dependency-maven-plugin (maven-dependency-plugin

 seems to fail on me?) and maven-assembly-plugin.

 My project is orginized with a master dir containing the parent pom, 
 and all modules as subprojects.

 * Is the dependency plugin capable of handling modules (new in maven
2)?
 If I have to configure every artifact I suppose it does not!
 * I have to first run copy goal to copy artifacts, then 
 dependencies-copy. Also, will this have to be configured for each 
 artifact or only in parent pom (I guess the previous question will 
 answer this question)?
 * Also how do I override property outputDirectory to go outside 
 basedir? I guess I always can post run an ant task but I would rather 
 override it.


 Any help or tips is welcome.


 -Ronny

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




!DSPAM:450fe4ee269202988016950!

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



SV: Excluding artifact from assemblys dependencySet

2006-09-19 Thread Naess, Ronny
You could use maven-antrun-plugin if you find that more easy. I come from ant 
world and I keep thinking ant solutions, but that might not be the best way to 
solve your problem.

The way to to this would in this case to run 'maven site' and you must have 
configured antrun to run after the site phase.

build
plugins
plugin
artifactIdmaven-antrun-plugin/artifactId
executions
execution
phasesite/phase
configuration
tasks--
!--
Place any ant task here. You 
can add anything
you can add between target 
and /target in a
build.xml.
--
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin
/plugins
/build



-Ronny

-Opprinnelig melding-
Fra: Ståle Undheim [mailto:[EMAIL PROTECTED] 
Sendt: 19. september 2006 15:07
Til: Maven User-list
Emne: Excluding artifact from assemblys dependencySet

I have a simple project that produces 1 jar (no child modules), and 3 
dependencies. I want to produce an assembly that looks something like this:

lib/dependency1.jar
lib/dependency2.jar
lib/dependency3.jar
doc/javadoc
project-version.jar
project-version-src.jar

I have the following defined in my assembly.xml:
  dependencySets
dependencySet
  outputDirectorylib/outputDirectory
/dependencySet
  /dependencySets

The problem is that my project-version.jar is also included in the lib folder. 
There is text on the assembly web-page that you can create a project as I have 
illustrated above, but no examples of how.

I havent looked into doing the src jar or the javadoc part yet, and I dont see 
anything in the assembly documentation about doing things like that. Anyone 
able to point me in the right direction regarding this?
assembly:assembly doesnt seem to invoke the building of javadoc.

I also need to figure out how the assembly plugin relates to a release and 
upload.
--
Ståle Undheim
Systemutvikler

CoreTrek
Tlf.:   +47 51 97 85 97
E-post: [EMAIL PROTECTED]
WEB:www.coretrek.no

Simple is beautiful


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