Ant Run

2007-02-05 Thread juergen.schumacher

Hi,
I need to copy files after the filtering of resources but before execute the
war goal. In the Ant plugin I have to specify a goal after the ant will be
called and I tried different goals like package, compile but wether its too
early and the filtered resource are not copied yet or its too late and the
copy process is started after the war is already done. Do you have any idea
for the right goal? Can I specify any phase from the war-plugin? I post the
config for the ant-plugin:
executions
execution
phase??/phase
configuration
tasks
copy   
file=${basedir}\target\${project.build.finalName}\WEB-INF\classes\context.xml

tofile=${basedir}\target\${project.build.finalName}\META-INF\context.xml
/
   copy

file=${basedir}\target\${project.build.finalName}\WEB-INF\classes\server-config.wsdd

tofile=${basedir}\target\${project.build.finalName}\WEB-INF\server-config.wsdd
/
/tasks
  /configuration
goals
   goalrun/goal
/goals
/execution

Have a nice day,
Juergen

-- 
View this message in context: 
http://www.nabble.com/Ant-Run-tf3173105s177.html#a8802636
Sent from the Maven - Users mailing list archive at Nabble.com.


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



How can i connect to a password protected repository?

2007-02-05 Thread Maruf Aytekin
I would like to set a password protected repository. In order to 
download from repository you need to enter usernae and password to 
apache authentication prompt. Where should I configure it?  in the pom 
or settings file?


repositories
   repository
 idinternal/id
 nameMyCompany Repository/name
 urlhttp://mycompany.com/repository/maven2/url
   /repository
 /repositories

Thanks for the help,

Maruf


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



Fw: jboss-maven-plugin

2007-02-05 Thread Vidya Mahavadi
Hi,

I am trying to run mvn -e jboss:deploy, and it retuns a http response 
code: 500. Can anyone give me a clue what is missing here. my settings.xml 
looks like this.

?xml version=1.0 encoding=UTF-8?
settings
  servers
server
  iddefault/id
  usernametest/username
  passwordtest/password
/server
  /servers
/settings

I can login to jms console using the username and password. 

Regards,
Vidya


- Forwarded by Vidya Mahavadi/RMB on 05/02/2007 11:27 -

Vidya Mahavadi/RMB
01/02/2007 17:34

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

Subject
RE: jboss-maven-plugin





Hi Greg,

I have tried that option as well. no luck! my config is very simple and 
default
maven2 and jboss 4.0.5.

Regards,
Vidya





Greg Jones [EMAIL PROTECTED] 
01/02/2007 17:16
Please respond to
Maven Users List users@maven.apache.org


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

Subject
RE: jboss-maven-plugin






My settings file doesn't have a namespace specified. Can you try removing
the default namespace from your settings file and see if that works?
 
Just make the first element: settings

Remove:  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/settings-1.0.0.xsd;


-Original Message-
From: Vidya Mahavadi [mailto:[EMAIL PROTECTED] 
Sent: Friday, 2 February 2007 1:59 AM
To: Maven Users List
Subject: RE: jboss-maven-plugin

Thanks for the response and the hope. My settings.xml  in .m2 folder looks
like this now. However, it still has the same 401 unauthentication 
problem.

?xml version=1.0 encoding=UTF-8?
settings 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/settings-1.0.0.xsd;
 
  servers
server
iddefault/id
usernameadmin/username
 passwordadmin/password
privateKey/privateKey
passphrase/passphrase
filePermissions/filePermissions
directoryPermissions/directoryPermissions
configuration/configuration
/server
  /servers
/settings





Greg Jones [EMAIL PROTECTED]
01/02/2007 15:41
Please respond to
Maven Users List users@maven.apache.org


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

Subject
RE: jboss-maven-plugin






Aha!

Firstly, my apologies to the previous poster about the server element. I 
was
getting mixed up with the serverName element on the configure goal.

Response 401 is the HTTP Unauthorized code, which means that your Jboss 
has
been set up to expect a username/password combination for your 
jmx-console.

You need to create a file called settings.xml in your HOME/.m2 directory,
with information about the server, for example:

settings
  server
iddefault/id
usernameYour Username/username
passwordYour Password/password
  /server
/settings

This will tell the jboss plugin to use these credentials when logging in 
to
a server identified by 'default'.

If you are on Linux, your settings.xml will be in ~/.m2. On Windows, look 
at
the value of your HOMEDRIVE and HOMEPATH environment variables and look 
for
your .m2 directory there. This directory will contain your local 
repository
as well.

For more information on what you can store in your local settings file, 
see
http://maven.apache.org/settings.html.

Hope this helps.

Greg J.


-Original Message-
From: Vidya Mahavadi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 1 February 2007 11:57 PM
To: Maven Users List
Subject: RE: jboss-maven-plugin

C:\Vidya\WorkSpace\dealamendmentsmvn -e jboss:deploy
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jboss'.
[INFO]

[INFO] Building RMB Calypso Schema
[INFO]task-segment: [jboss:deploy]
[INFO]

[INFO] [jboss:deploy]
[INFO] Deploying
C:\Vidya\WorkSpace\dealamendments\target\dealamendments-1.0-SNAPSHOT.jar
to JBoss.
[INFO] No server specified for authentication - using defaults [INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Mojo error occurred: Server returned HTTP response code: 401 for
URL: http://localhost:8080/jmx-c
onsole/HtmlAdaptor?action=invokeOpByNamename=jboss.system:service%3DMainDep
loyermethodName=deployargT
ype=java.net.URLarg0=file:C:\Vidya\WorkSpace\dealamendments\target\dealamen
dments-1.0-SNAPSHOT.jar

[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Mojo error
occurred: 

Re: Ant Run

2007-02-05 Thread Manuel J. Recena Soto
Hi,

On Mon, 5 Feb 2007 00:37:44 -0800 (PST), juergen.schumacher wrote
 Hi,
 I need to copy files after the filtering of resources but before 
 execute the war goal. In the Ant plugin I have to specify a goal 
 after the ant will be called and I tried different goals like 
 package, compile but wether its too early and the filtered resource 
 are not copied yet or its too late and the copy process is started 
 after the war is already done. Do you have any idea for the right 
 goal? Can I specify any phase from the war-plugin? I post the config 
 for the ant-plugin: executionsexecutionphase??/phase
 configuration
   tasks
   copy   
 file=${basedir}\target\${project.build.finalName}\WEB-INF\classes\context.xml
   
 tofile=${basedir}\target\${project.build.finalName}\META-INF\context.xml
 /
  copy
   
 file=${basedir}\target\${project.build.finalName}\WEB-
 INF\classes\server-config.wsdd
   
 tofile=${basedir}\target\${project.build.finalName}\WEB-INF\server-config.wsdd
 /
   /tasks
   /configuration
   goals
  goalrun/goal
   /goals
 /execution

Did you try process-resources?
I send you a screenshot maybe help you

regards 

 
 Have a nice day,
 Juergen
 
 -- 
 View this message in context:
http://www.nabble.com/Ant-Run-tf3173105s177.html#a8802636
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


--
Manuel J. Recena Soto
* www.manuelrecena.com[/blog]
* [EMAIL PROTECTED]
* +34 609710280 (ES)


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

aggregate javadoc

2007-02-05 Thread nicolas de loof

Hello

the *-javadoc.jars of my multi-module project is created as expected when I
run with -DperformRelease=true.
I know want to create an aggregated javadoc, using mvn javadoc:javadoc.
I've set aggregatetrue/aggregate but javadoc fails :

...
Loading source file
D:/projets/activ/activ-webapp/src/main/java/fr/francetelecom/activ/webapp/tags/PageTag.java...
Constructing Javadoc information...
Standard Doclet version 1.5.0_10
Building tree for all the packages and classes...
100 warnings
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] An error has occurred in JavaDocs report generation.

Embedded error: Exit code: 1 -
D:/projets/activ/activ-persitence/src/main/java/fr/francetelecom/activ/persistence/Custom
SessionFactoryBean.java:5: package org.springframework.orm.hibernate3 does
not exist
import org.springframework.orm.hibernate3.LocalSessionFactoryBean;
...

It seems my module dependencies were not loaded by javadoc, as I get similar
errors with struts ActionMapping references.

Is this a known limitation ? Is there a workaround ?

Nico.


Re: aggregate javadoc

2007-02-05 Thread Stephane Nicoll

Hi Nicolas,

On 2/5/07, nicolas de loof [EMAIL PROTECTED] wrote:

It seems my module dependencies were not loaded by javadoc, as I get similar
errors with struts ActionMapping references.

Is this a known limitation ? Is there a workaround ?


It's a bug and it is supposed to be fixed in 2.1. Are you sure you're
running Javadoc plugin v2.1?

Cheers,
Stéphane



Nico.



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



Re: aggregate javadoc

2007-02-05 Thread nicolas de loof

My project did not define a plugin version and I was using 2.0.
setting verion=2.2 solved this.

Isn't maven expected to auto-update plugins when a stable release is
available ?

Thanks.

2007/2/5, Stephane Nicoll [EMAIL PROTECTED]:


Hi Nicolas,

On 2/5/07, nicolas de loof [EMAIL PROTECTED] wrote:
 It seems my module dependencies were not loaded by javadoc, as I get
similar
 errors with struts ActionMapping references.

 Is this a known limitation ? Is there a workaround ?

It's a bug and it is supposed to be fixed in 2.1. Are you sure you're
running Javadoc plugin v2.1?

Cheers,
Stéphane


 Nico.


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




Unable to download from central repo

2007-02-05 Thread Sebastien Pennec

Hello,

I'm in front of a pretty strange situation.

I have some jars that are on the central repo, meaning that I can see them on the 
appropriate pages [1] and [2].


But when I include them in a project, and launch some goals (actuelly jetty:run), 
they are not downloaded and maven 2.0.4 returns the error message that is included 
below. I've tried to run the goal several times, always with the same result. I've 
check the dependency declarations in my pom.xml, and they seem correct.


Does anybody knows if anything's not working?

Thanks,

Sébastien


[INFO] Failed to resolve artifact.

Missing:
--
1) ch.qos.logback:logback-access:jar:0.9

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=ch.qos.logback 
-DartifactId=logback-access \
  -Dversion=0.9 -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
1) ch.qos.logback:logback-demo:war:1.0
2) ch.qos.logback:logback-access:jar:0.9

2) ch.qos.logback:logback-classic:jar:0.9

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=ch.qos.logback 
-DartifactId=logback-classic \
  -Dversion=0.9 -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
1) ch.qos.logback:logback-demo:war:1.0
2) ch.qos.logback:logback-classic:jar:0.9

--
2 required artifacts are missing.

for artifact:
  ch.qos.logback:logback-demo:war:1.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


[1] http://repo1.maven.org/maven2/ch/qos/logback/logback-classic/0.9/
[2] http://repo1.maven.org/maven2/ch/qos/logback/logback-access/0.9/
--
Sébastien Pennec
[EMAIL PROTECTED]

Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch/

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



Re: Unable to download from central repo

2007-02-05 Thread Sebastien Pennec

Hi again,

I've found where the problem is: I was using a mirror[1] that has not been updated. 
Since we've released version 0.9 on January 31st, that is 6 days ago, the mirror 
might have some sync issues.


Cheers,

Sébastien

[1] http://mirrors.dotsrc.org/maven2

Sebastien Pennec wrote:

Hello,

I'm in front of a pretty strange situation.

I have some jars that are on the central repo, meaning that I can see 
them on the appropriate pages [1] and [2].


But when I include them in a project, and launch some goals (actuelly 
jetty:run), they are not downloaded and maven 2.0.4 returns the error 
message that is included below. I've tried to run the goal several 
times, always with the same result. I've check the dependency 
declarations in my pom.xml, and they seem correct.


Does anybody knows if anything's not working?

Thanks,

Sébastien


[INFO] Failed to resolve artifact.

Missing:
--
1) ch.qos.logback:logback-access:jar:0.9

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=ch.qos.logback 
-DartifactId=logback-access \

  -Dversion=0.9 -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
1) ch.qos.logback:logback-demo:war:1.0
2) ch.qos.logback:logback-access:jar:0.9

2) ch.qos.logback:logback-classic:jar:0.9

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=ch.qos.logback 
-DartifactId=logback-classic \

  -Dversion=0.9 -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
1) ch.qos.logback:logback-demo:war:1.0
2) ch.qos.logback:logback-classic:jar:0.9

--
2 required artifacts are missing.

for artifact:
  ch.qos.logback:logback-demo:war:1.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


[1] http://repo1.maven.org/maven2/ch/qos/logback/logback-classic/0.9/
[2] http://repo1.maven.org/maven2/ch/qos/logback/logback-access/0.9/


--
Sébastien Pennec
[EMAIL PROTECTED]

Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch/

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



Re: aggregate javadoc

2007-02-05 Thread Stephane Nicoll

On 2/5/07, nicolas de loof [EMAIL PROTECTED] wrote:

My project did not define a plugin version and I was using 2.0.
setting verion=2.2 solved this.

Isn't maven expected to auto-update plugins when a stable release is
available ?


No, you have to run mvn -U or you have to specify the version in the
plugin's configuration.

Cheers,
Stéphane



Thanks.

2007/2/5, Stephane Nicoll [EMAIL PROTECTED]:

 Hi Nicolas,

 On 2/5/07, nicolas de loof [EMAIL PROTECTED] wrote:
  It seems my module dependencies were not loaded by javadoc, as I get
 similar
  errors with struts ActionMapping references.
 
  Is this a known limitation ? Is there a workaround ?

 It's a bug and it is supposed to be fixed in 2.1. Are you sure you're
 running Javadoc plugin v2.1?

 Cheers,
 Stéphane

 
  Nico.
 

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





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



Re: Ant Run

2007-02-05 Thread juergen.schumacher

Hi Manuel,

thx for your reply and the screenshot. I tried the process-resources but it
doesnt help. Actually the war plugin needs some sub-goals like war:exploding
etc. I use now a workaround for copy files from different places but its not
that sexy. But important is its working now and maybe someday there is a
feature of splitting the war-goal in sub-goals.

Have a nice day,
juergen



Manuel J. Recena Soto wrote:
 
 Hi,
 
 On Mon, 5 Feb 2007 00:37:44 -0800 (PST), juergen.schumacher wrote
 Hi,
 I need to copy files after the filtering of resources but before 
 execute the war goal. In the Ant plugin I have to specify a goal 
 after the ant will be called and I tried different goals like 
 package, compile but wether its too early and the filtered resource 
 are not copied yet or its too late and the copy process is started 
 after the war is already done. Do you have any idea for the right 
 goal? Can I specify any phase from the war-plugin? I post the config 
 for the ant-plugin: executionsexecution   
 phase??/phase
 configuration
  tasks
  copy   
 file=${basedir}\target\${project.build.finalName}\WEB-INF\classes\context.xml
  
 tofile=${basedir}\target\${project.build.finalName}\META-INF\context.xml
 /
 copy
  
 file=${basedir}\target\${project.build.finalName}\WEB-
 INF\classes\server-config.wsdd
  
 tofile=${basedir}\target\${project.build.finalName}\WEB-INF\server-config.wsdd
 /
  /tasks
   /configuration
  goals
 goalrun/goal
  /goals
 /execution
 
 Did you try process-resources?
 I send you a screenshot maybe help you
 
 regards 
 
 
 Have a nice day,
 Juergen
 
 -- 
 View this message in context:
 http://www.nabble.com/Ant-Run-tf3173105s177.html#a8802636
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 --
 Manuel J. Recena Soto
 * www.manuelrecena.com[/blog]
 * [EMAIL PROTECTED]
 * +34 609710280 (ES)
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
View this message in context: 
http://www.nabble.com/Ant-Run-tf3173105s177.html#a8804623
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Installing application in a directory for test purposes

2007-02-05 Thread Christian Plessl

Dear Maven Users

I have recently converted my java command-line application to Maven. While 
building an packaging the application generally works well, I still cannot 
figure out a good workflow for deploying the application to a local directory 
for testing purposes.

I would like to use the following directory layout in the target (i.e. 
installation) directory of my application:

app_directory
+ bin/
myapp.sh  (application wrapper, sets up the environment etc.)
+ lib/ (directory with all libraries used by myapp)
lib1.jar
lib2.jar
+ myapp.jar (my application: either as jar file, or in directories 
org/myname/myapp/..)
+ moreresources/

With this directory layout, I can run my application with commands like:
./bin/myapp.sh -arg1 value1 -arg2 value2

Unfortunately, I have not discovered a good way to install the application 
using this directory layout. My current solution is to use the assembly plugin 
and execute the assembly:directory target. I'm using the following 
configuration for the assembly plugin.

plugin
 groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-assembly-plugin/artifactId
configuration
  descriptorRefs
descriptorRefjar-with-dependencies/descriptorRef
  /descriptorRefs
/configuration
/plugin

When executing the assembly:directory plugin, the application gets installed in directory target/myapp-1.0-SNAPSHOT-jar-with-dependencies, but all jar files myapp depends on are unpacked. Since my  application depends on many, large jar files this step is simply too time-consuming for frequent rebuilds. 


In particular, the assembly plugin seems incapable of dealing with incremental 
changes and hence the jar files are unpacked every time assembly:directory is 
executed.


I would prefer that the build process figures out which jar files to include in 
the lib directory from the project dependencies in  pom.xml, but that the jar 
files are not unpacked.

Is there a better way, to achieve the installation of the application in a 
directory?

Best regards,
Christian


--
Christian Plessl [EMAIL PROTECTED] http://plesslweb.ch


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



Re: Installing application in a directory for test purposes

2007-02-05 Thread Marco Mistroni

Hi,
any particular reason why you can't run test from your src\test directory,
since all your mainapp classes will be in the classpath ?

do you need to have your app installed for testing purposes?

hth
marco

On 2/5/07, Christian Plessl [EMAIL PROTECTED] wrote:


Dear Maven Users

I have recently converted my java command-line application to Maven. While
building an packaging the application generally works well, I still cannot
figure out a good workflow for deploying the application to a local
directory for testing purposes.

I would like to use the following directory layout in the target (i.e.
installation) directory of my application:

app_directory
+ bin/
 myapp.sh  (application wrapper, sets up the environment etc.)
+ lib/ (directory with all libraries used by myapp)
 lib1.jar
 lib2.jar
+ myapp.jar (my application: either as jar file, or in directories
org/myname/myapp/..)
+ moreresources/

With this directory layout, I can run my application with commands like:
./bin/myapp.sh -arg1 value1 -arg2 value2

Unfortunately, I have not discovered a good way to install the application
using this directory layout. My current solution is to use the assembly
plugin and execute the assembly:directory target. I'm using the following
configuration for the assembly plugin.

plugin
  groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-assembly-plugin/artifactId
configuration
   descriptorRefs
 descriptorRefjar-with-dependencies/descriptorRef
   /descriptorRefs
/configuration
/plugin

When executing the assembly:directory plugin, the application gets
installed in directory target/myapp-1.0-SNAPSHOT-jar-with-dependencies,
but all jar files myapp depends on are unpacked. Since my  application
depends on many, large jar files this step is simply too time-consuming for
frequent rebuilds.

In particular, the assembly plugin seems incapable of dealing with
incremental changes and hence the jar files are unpacked every time
assembly:directory is executed.


I would prefer that the build process figures out which jar files to
include in the lib directory from the project dependencies in  pom.xml,
but that the jar files are not unpacked.

Is there a better way, to achieve the installation of the application in a
directory?

Best regards,
Christian


--
Christian Plessl [EMAIL PROTECTED] http://plesslweb.ch


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




Re: Maven shell

2007-02-05 Thread Nigel Magnay

I actually had a related issue - our project is comprised of many jar
and war fragments and, good though the jetty plugin is, it's helpful
when debugging webapps in eclipse when hotswap fails (which is
always), to be able to have it automatically copy changed class files
into the running application. The existing eclipse integrations (last
time I looked) seemed to concentrate on replacing the IDE compile
function with maven which is a total non-starter, because it takes
*forever*.

I did something simple in .net (mostly because when I go near the
maven codebase, the vast array of poorly documented dependences like
plexus scares me and I don't have the time to figure it all out), but
I think a decent editor that didn't force people to hack XML would be
nice, as well as the ability to do things like
- detect possibly unneded dependencies
- promote common dependencies to a parent pom
- UI for setting up common plugins (compile, report, assembly)

delivered as an eclipse plugin would be useful.

On 04/02/07, Arnaud Bailly [EMAIL PROTECTED] wrote:

Hello,
Sure, I would be interested in working on such a tool. My particular
need is that I want to make a continuous testing tool indenpendent of
any IDE and based on informations in the POM.

As for the virtual ant system, that could be thought of as a kind of
GUI over a maven shell. One could think adding web-based GUI,
something like a finer grained continuum.

I have a bit of time, so maybe I could start something. Ideas, code,
specs are welcomed...

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]




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



Re: How can i connect to a password protected repository?

2007-02-05 Thread Andrew Williams

In settings.xml - something like

servers
 server
   idinternal/id
   username.../username
   password.../password
 /server
/servers

Andy

Maruf Aytekin wrote:
I would like to set a password protected repository. In order to 
download from repository you need to enter usernae and password to 
apache authentication prompt. Where should I configure it?  in the pom 
or settings file?


repositories
   repository
 idinternal/id
 nameMyCompany Repository/name
 urlhttp://mycompany.com/repository/maven2/url
   /repository
 /repositories

Thanks for the help,

Maruf


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




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



Re: How can i connect to a password protected repository?

2007-02-05 Thread Maruf Aytekin
I think this is for deploying artifacts. and the settings are the 
settings to login the server. I have an http server running to serve my 
artifact repository username and passsword protected. I found this 
solution usses url with username and password:


   repository
 idinternal/id
 namemycompany Repository/name
 urlhttp://username:[EMAIL PROTECTED]/repository/maven2/url
   /repository

But I am getting authentication error with this and also with this 
solution I don't want username and password go with pom.xml. Is there a 
different way to achieve this?


Thanks
Maruf


Andrew Williams wrote:

In settings.xml - something like

servers
 server
   idinternal/id
   username.../username
   password.../password
 /server
/servers

Andy

Maruf Aytekin wrote:
I would like to set a password protected repository. In order to 
download from repository you need to enter usernae and password to 
apache authentication prompt. Where should I configure it?  in the 
pom or settings file?


repositories
   repository
 idinternal/id
 nameMyCompany Repository/name
 urlhttp://mycompany.com/repository/maven2/url
   /repository
 /repositories

Thanks for the help,

Maruf


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




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




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



RE: Maven2+Hibernate3 Annotation Problem

2007-02-05 Thread Johann Reyes
Hello

First you need to set up the element outputfilename as seen here:

http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/examples/s
chema_output.html

Also you need to include the annotated classes in your hibernate.cfg.xml
file

Regards

Johann Reyes

-Original Message-
From: lemon dumpling [mailto:[EMAIL PROTECTED] 
Sent: Saturday, February 03, 2007 8:33 PM
To: users@maven.apache.org
Subject: Maven2+Hibernate3 Annotation Problem

Hi,

I want to generate database schema to a sql file and feed the schema into my
database. I have hibernate annotations instead of hbm.xml files.

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdhibernate3-maven-plugin/artifactId
version2.0-SNAPSHOT/version
configuration
  components
component
  namehbm2ddl/name
/component
  /components
  componentProperties
droptrue/drop
createtrue/create

configurationfilesrc/main/resources/etc/hibernate.cfg.xml/configurationfi
le
  /componentProperties
/configuration
/plugin

I believe something is missing. Thanks!

Cheers



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



Re: Installing application in a directory for test purposes

2007-02-05 Thread Christian Plessl

Hi Marco


any particular reason why you can't run test from your src\test directory,
since all your mainapp classes will be in the classpath ?


The expected results of these ad-hoc tests are not formally defined. Since the application is a command-line application, I would like to be able to test the application from the command-line, instead of writing a JUnit test living in src/test. Being able to quickly run the application from the command-line helps me to rapidly try out different parameters.  


But you are right, I could also wrap all my command-line test in a JUnit 
testcase and call my main class appropriately.


do you need to have your app installed for testing purposes?


As mentioned above, this would facilitate ad-hoc testing.

Best regards,
Christian

--
Christian Plessl [EMAIL PROTECTED] http://plesslweb.ch


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



Reading the current OS family

2007-02-05 Thread Graham Leggett
Hi all,

From within a maven pom, it is possible to use the ${os.name}, ${os.arch}
and ${os.version} macros to get access to system information.

Is it possible to get the OS family in this way too, as described below?

http://docs.codehaus.org/display/MAVENUSER/Profiles

Something like ${maven.os.family}?

Regards,
Graham
--



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



Re: How can i connect to a password protected repository?

2007-02-05 Thread Rodrigo Ruiz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

No, Andrew was right. The servers/server entry in settings.xml is for
any remote server. Just give it a try ;-)

Cheers,
Rodrigo Ruiz

Maruf Aytekin wrote:
 I think this is for deploying artifacts. and the settings are the
 settings to login the server. I have an http server running to serve my
 artifact repository username and passsword protected. I found this
 solution usses url with username and password:
 
repository
  idinternal/id
  namemycompany Repository/name
  urlhttp://username:[EMAIL PROTECTED]/repository/maven2/url
/repository
 
 But I am getting authentication error with this and also with this
 solution I don't want username and password go with pom.xml. Is there a
 different way to achieve this?
 
 Thanks
 Maruf
 
 
 Andrew Williams wrote:
 In settings.xml - something like

 servers
  server
idinternal/id
username.../username
password.../password
  /server
 /servers

 Andy

 Maruf Aytekin wrote:
 I would like to set a password protected repository. In order to
 download from repository you need to enter usernae and password to
 apache authentication prompt. Where should I configure it?  in the
 pom or settings file?

 repositories
repository
  idinternal/id
  nameMyCompany Repository/name
  urlhttp://mycompany.com/repository/maven2/url
/repository
  /repositories

 Thanks for the help,

 Maruf


- --
- ---
GRID SYSTEMS, S.A. Rodrigo Ruiz
Parc Bit - Edificio 17 Research Coordinator
07121 Palma de Mallorca
Baleares - Spain   Tel: +34 971 435 085
http://www.gridsystems.com/Fax: +34 971 435 082
- ---
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.4 (MingW32)

iD8DBQFFxy+5p9m/F5UenDoRAt+wAJ9zzqZhlY92NOwFR7n6AOJ4g7tyvwCgs7E3
0DktK0H3WAHSIOkHcmfHlnU=
=6N+9
-END PGP SIGNATURE-

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



RE: Reading the current OS family

2007-02-05 Thread hermod.opstvedt
Hi

If you read your own link :)

profiles
  ...
  profile
os
  nameWindows XP/name
  familyWindows/family
  architecturex86/architecture
  version5.1/version
/os
  /profile
/profiles

Hermod

-Original Message-
From: Graham Leggett [mailto:[EMAIL PROTECTED]
Sent: Monday, February 05, 2007 2:21 PM
To: users@maven.apache.org
Subject: Reading the current OS family


Hi all,

From within a maven pom, it is possible to use the ${os.name}, ${os.arch}
and ${os.version} macros to get access to system information.

Is it possible to get the OS family in this way too, as described below?

http://docs.codehaus.org/display/MAVENUSER/Profiles

Something like ${maven.os.family}?

Regards,
Graham
--



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



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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



Re: Findbugs complaining about missing classes erroneously

2007-02-05 Thread Rémy Sanlaville

We also have the same problem without finding any solution for the moment.
If someone has a solution, it would be great.

Rémy

2007/1/26, Wayne Fay [EMAIL PROTECTED]:


I'm trying to add some new reports to our existing project/site and
right now I'm working on Findbugs...

When I run Findbugs, it outputs the following:
The following classes needed for analysis were missing:
  javax.jms.Message
  com.abc.vo.AbstractBusinessValue
  com.abc.vo.IValueObject
  javax.xml.xpath.XPathException
  javax.jms.ConnectionFactory
  javax.jms.Destination
  javax.servlet.ServletRequest
  javax.jms.JMSException

The com.abc.vo.* files are in the module I'm compiling. And the
javax.* files are all referenced in my pom.xml with proper
dependencies.

I've tried adjusting the scope from provided to compile, runtime, and
test for the javax.* classes but I always get the same error message
when Findbugs runs.

I'm wondering why those jars aren't automatically added to the
Findbugs auxiliary classpath, and if they're supposed to be added,
why its not working for me.

My findbugs declaration is below:
reporting
plugins
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdfindbugs-maven-plugin/artifactId
version1.0.0/version
  /plugin

I'm sure there's lots of you using Findbugs, so perhaps you've run
into these problems and found some solutions? Thanks for any advice!

Wayne

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




RE: Reading the current OS family

2007-02-05 Thread Graham Leggett
On Mon, February 5, 2007 3:24 pm, [EMAIL PROTECTED] wrote:

 If you read your own link :)

And if you read my question you'll see I am asking whether it's possible
to access the OS family through a macro such as ${maven.os.family}. I am
well aware that it is possible to activate profiles by OS family, but that
is not what I am trying to achieve here.

;)

Regards,
Graham
--



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



RE: Reading the current OS family

2007-02-05 Thread hermod.opstvedt
Hi

The way I read it:

From within a maven pom, it is possible to use the ${os.name}, ${os.arch}
and ${os.version} macros to get access to system information.

Is it possible to get the OS family in this way too, as described below?

http://docs.codehaus.org/display/MAVENUSER/Profiles


You said nothing about using it in a macro  - Quote: Is it possible to get the 
OS family in this way too

But that's ok - Now you have clarified what you actually wanted - Have you 
tried ${activeProfile.os.family} ?

Hermod

-Original Message-
From: Graham Leggett [mailto:[EMAIL PROTECTED]
Sent: Monday, February 05, 2007 2:37 PM
To: Maven Users List
Cc: users@maven.apache.org
Subject: RE: Reading the current OS family


On Mon, February 5, 2007 3:24 pm, [EMAIL PROTECTED] wrote:

 If you read your own link :)

And if you read my question you'll see I am asking whether it's possible
to access the OS family through a macro such as ${maven.os.family}. I am
well aware that it is possible to activate profiles by OS family, but that
is not what I am trying to achieve here.

;)

Regards,
Graham
--



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



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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



Re: Unnamed Group plugin on Continuum

2007-02-05 Thread ThomasHK

Hi,

I'm having the same problem.  Anybody an idea?
-- 
View this message in context: 
http://www.nabble.com/Unnamed-Group-plugin-on-Continuum-tf3161723.html#a8806705
Sent from the Continuum - Users mailing list archive at Nabble.com.



RE: Reading the current OS family

2007-02-05 Thread Graham Leggett
On Mon, February 5, 2007 3:48 pm, [EMAIL PROTECTED] wrote:

 Have you tried ${activeProfile.os.family} ?

Yes, it doesn't work.

Regards,
Graham
--



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



RE: Reading the current OS family

2007-02-05 Thread hermod.opstvedt
Hi

It might be ${activeProfiles.activeProfile.os.family} (Have'nt tried it)

Hermod

-Original Message-
From: Graham Leggett [mailto:[EMAIL PROTECTED]
Sent: Monday, February 05, 2007 3:22 PM
To: Maven Users List
Cc: users@maven.apache.org
Subject: RE: Reading the current OS family


On Mon, February 5, 2007 3:48 pm, [EMAIL PROTECTED] wrote:

 Have you tried ${activeProfile.os.family} ?

Yes, it doesn't work.

Regards,
Graham
--



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



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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



RE: Reading the current OS family

2007-02-05 Thread Graham Leggett
On Mon, February 5, 2007 4:26 pm, [EMAIL PROTECTED] wrote:

 It might be ${activeProfiles.activeProfile.os.family} (Have'nt tried it)

Didn't work either unfortunately.

Tried a number of variations (put pom. in front, tried pom.os.family),
but no luck.

Regards,
Graham
--



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



Jboss plugin on Maven 1.1

2007-02-05 Thread Build Admin

Hi
I am using maven 1.1 beta 3 and I am having an issue with jboss plugin.
When I use maven jboss:configure the build was successful and when I attempt
to start jboss using maven jboss:start it throws following error.

D:\java-build-process\maven\strutsmaven jboss:start

__  __

|  \/  |__ _Apache__ ___

| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~

|_|  |_\__,_|\_/\___|_||_|  v. 1.1-beta-3



build:start:



jboss:init:

   [echo] Using JBoss from [D:\jboss-4.0.2]

   [echo] Using JBoss 3.2

   [echo] The operating system is Windows



jboss:start:

   [exec] The system cannot find the path specified.

   [exec] [ERROR] Result: 1

BUILD SUCCESSFUL

Total time   : 2 seconds

Finished at  : Monday, February 5, 2007 6:48:16 PM IST

Can anyone solve this issue.


Re: Jabber google talk

2007-02-05 Thread AyoContinuum

Is there no solution for this problem? Other forums don't seem to have an
answer...

AyoContinuum wrote:
 
 Hi,
   I am having a bit of trouble getting continuum to alert me of builds
 via google talk/jabber. I setup jabber in continuum according to the faq
 on the apache continuum website. 
 
 It says that it can't connect to google talk at that port.
 
 I set the recipent as [EMAIL PROTECTED] ideas?
  
 I get the following error in continuum logs:
 
 2007-02-03 15:16:38,703 [Thread-3] ERROR ContinuumNotificationDispatcher -
 Error while trying to use the jabbernotifier.
 INFO   | jvm 1| 2007/02/03 15:16:38 |
 org.codehaus.plexus.notification.NotificationException: Exception while
 sending message.
 INFO   | jvm 1| 2007/02/03 15:16:38 | at
 org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendMessage(JabberContinuumNotifier.java:241)
 INFO   | jvm 1| 2007/02/03 15:16:38 | at
 org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendNotification(JabberContinuumNotifier.java:139)
 INFO   | jvm 1| 2007/02/03 15:16:38 | at
 org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDispatcher.java:173)
 INFO   | jvm 1| 2007/02/03 15:16:38 | at
 org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete(DefaultContinuumNotificationDispatcher.java:96)
 INFO   | jvm 1| 2007/02/03 15:16:38 | at
 org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:378)
 INFO   | jvm 1| 2007/02/03 15:16:38 | at
 org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:47)
 INFO   | jvm 1| 2007/02/03 15:16:38 | at
 org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java(Compiled
 Code))
 INFO   | jvm 1| 2007/02/03 15:16:38 | at
 java.lang.Thread.run(Thread.java:568)
 INFO   | jvm 1| 2007/02/03 15:16:38 | Caused by:
 org.codehaus.plexus.jabber.JabberClientException: Can't connect to
 talk.google.com:5222
 INFO   | jvm 1| 2007/02/03 15:16:38 | at
 org.codehaus.plexus.jabber.DefaultJabberClient.connect(DefaultJabberClient.java:51)
 INFO   | jvm 1| 2007/02/03 15:16:38 | at
 org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendMessage(JabberContinuumNotifier.java:221)
 INFO   | jvm 1| 2007/02/03 15:16:38 | ... 7 more
 INFO   | jvm 1| 2007/02/03 15:16:38 | Caused by: XMPPError connecting
 to talk.google.com:5222.: (502)
 INFO   | jvm 1| 2007/02/03 15:16:38 |   -- caused by:
 java.net.ConnectException: Connection refused: connect
 INFO   | jvm 1| 2007/02/03 15:16:38 | at
 org.jivesoftware.smack.XMPPConnection.init(XMPPConnection.java:174)
 INFO   | jvm 1| 2007/02/03 15:16:38 | at
 org.codehaus.plexus.jabber.DefaultJabberClient.connect(DefaultJabberClient.java:42)
 INFO   | jvm 1| 2007/02/03 15:16:38 | ... 8 more
 INFO   | jvm 1| 2007/02/03 15:20:20 | 2007-02-03 15:20:20,461
 [SocketListener0-1] ERROR VelocityComponent  - RHS of #set
 statement is null. Context will not be modified. screens/ProjectBuild.vm
 [line 103, column 3]
 INFO   | jvm 1| 2007/02/03 15:20:20 | 2007-02-03 15:20:20,476
 [SocketListener0-1] WARN  VelocityComponent  -
 org.apache.velocity.runtime.exception.ReferenceException: reference :
 template = screens/ProjectBuild.vm [line 137,column 64] :
 $requestUtil.getParameter('id') is not a valid reference.
 INFO   | jvm 1| 2007/02/03 15:20:20 | 2007-02-03 15:20:20,507
 [SocketListener0-1] WARN  VelocityComponent  -
 org.apache.velocity.runtime.exception.ReferenceException: reference :
 template = screens/ProjectBuild.vm [line 137,column 96] :
 ${requestUtil.getParameter('buildId')} is not a valid reference.
 INFO   | jvm 1| 2007/02/03 15:31:04 | 2007-02-03 15:31:04,700
 [SocketListener0-1] ERROR VelocityComponent  - Left side
 ($notifier.configuration.sslConnection) of '==' operation has null value.
 If a reference, it may not be in the context. Operation not possible.
 screens/EditJabberNotifier.vm [line 57, column 104]
 INFO   | jvm 1| 2007/02/03 15:31:04 | 2007-02-03 15:31:04,700
 [SocketListener0-1] ERROR VelocityComponent  - Left side
 ($notifier.configuration.isGroup) of '==' operation has null value. If a
 reference, it may not be in the context. Operation not possible.
 screens/EditJabberNotifier.vm [line 63, column 92]
 INFO   | jvm 1| 2007/02/03 15:44:52 | 2007-02-03 15:44:52,315
 [SocketListener0-1] ERROR VelocityComponent  - Left side
 ($notifier.configuration.sslConnection) of '==' operation has null value.
 If a reference, it may not be in the context. Operation not possible.
 screens/EditJabberNotifier.vm [line 57, column 104]
 INFO   | jvm 1| 2007/02/03 15:44:52 

Re: How can i connect to a password protected repository?

2007-02-05 Thread Maruf Aytekin

Hi,

Thanks for the help. I am doing something wrong here I guess.

I have set the username and password in settings.xml and configured 
pom.xml as below. I can deploy the files successfully but I cannot read 
from the repository. It checks internal but doesn't download the plugin 
from internal. it   downloads it from central as follows:


[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking 
for upd

ates from internal
[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking 
for upd

ates from central
Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compil

er-plugin/2.0.1/maven-compiler-plugin-2.0.1.pom
1K downloaded
Downloading: 
http://devax/repository/maven2/org/apache/maven/plugins/maven-compi

ler-plugin/2.0.1/maven-compiler-plugin-2.0.1.jar
14K downloaded

settings.xml
..
   server
 idinternal/id
 usernameusername/username
 passwordpassword/password
 filePermissions664/filePermissions
 directoryPermissions775/directoryPermissions 
   /server

...

pom.xml
.
.
modules
   modulecustomer/module
   moduleserver/module
 /modules
 repositories
   repository
 idinternal/id
 nameMyCompany Repository/name
 urlhttp://mycompany.com/repository/maven2/url
   /repository
 /repositories
 distributionManagement
   repository
 uniqueVersionfalse/uniqueVersion
 idinternal/id
 nameMyCompany Repository/name
 urlscp://mycompany.com/home/repository/maven2/url
   /repository
   snapshotRepository
 idinternal/id
 uniqueVersionfalse/uniqueVersion
 nameMyCompany Snapshot Repository/name
 urlscp://mycompany.com/home/repository/maven2/url
   /snapshotRepository
 /distributionManagement
.
.


Rodrigo Ruiz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

No, Andrew was right. The servers/server entry in settings.xml is for
any remote server. Just give it a try ;-)

Cheers,
Rodrigo Ruiz

Maruf Aytekin wrote:
  

I think this is for deploying artifacts. and the settings are the
settings to login the server. I have an http server running to serve my
artifact repository username and passsword protected. I found this
solution usses url with username and password:

   repository
 idinternal/id
 namemycompany Repository/name
 urlhttp://username:[EMAIL PROTECTED]/repository/maven2/url
   /repository

But I am getting authentication error with this and also with this
solution I don't want username and password go with pom.xml. Is there a
different way to achieve this?

Thanks
Maruf


Andrew Williams wrote:


In settings.xml - something like

servers
 server
   idinternal/id
   username.../username
   password.../password
 /server
/servers

Andy

Maruf Aytekin wrote:
  

I would like to set a password protected repository. In order to
download from repository you need to enter usernae and password to
apache authentication prompt. Where should I configure it?  in the
pom or settings file?

repositories
   repository
 idinternal/id
 nameMyCompany Repository/name
 urlhttp://mycompany.com/repository/maven2/url
   /repository
 /repositories

Thanks for the help,

Maruf




- --
- ---
GRID SYSTEMS, S.A. Rodrigo Ruiz
Parc Bit - Edificio 17 Research Coordinator
07121 Palma de Mallorca
Baleares - Spain   Tel: +34 971 435 085
http://www.gridsystems.com/Fax: +34 971 435 082
- ---
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.4 (MingW32)

iD8DBQFFxy+5p9m/F5UenDoRAt+wAJ9zzqZhlY92NOwFR7n6AOJ4g7tyvwCgs7E3
0DktK0H3WAHSIOkHcmfHlnU=
=6N+9
-END PGP SIGNATURE-

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


  


Re: Jboss plugin on Maven 1.1

2007-02-05 Thread Lukas Theussl

See http://jira.codehaus.org/browse/MPJBOSS-24 and the comment by Arnaud.

Cheers,
-Lukas


Build Admin wrote:

Hi
I am using maven 1.1 beta 3 and I am having an issue with jboss plugin.
When I use maven jboss:configure the build was successful and when I 
attempt

to start jboss using maven jboss:start it throws following error.

D:\java-build-process\maven\strutsmaven jboss:start

__  __

|  \/  |__ _Apache__ ___

| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~

|_|  |_\__,_|\_/\___|_||_|  v. 1.1-beta-3



build:start:



jboss:init:

   [echo] Using JBoss from [D:\jboss-4.0.2]

   [echo] Using JBoss 3.2

   [echo] The operating system is Windows



jboss:start:

   [exec] The system cannot find the path specified.

   [exec] [ERROR] Result: 1

BUILD SUCCESSFUL

Total time   : 2 seconds

Finished at  : Monday, February 5, 2007 6:48:16 PM IST

Can anyone solve this issue.



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



Re: Jabber google talk

2007-02-05 Thread Emmanuel Venisse

Last time I used it, it worked fine. It seems that in your case, the service 
wasn't available (error 502).

Emmanuel

AyoContinuum a écrit :

Hi,
  I am having a bit of trouble getting continuum to alert me of builds
via google talk/jabber. I setup jabber in continuum according to the faq on
the apache continuum website. 


It says that it can't connect to google talk at that port.

I set the recipent as [EMAIL PROTECTED] ideas?
 
I get the following error in continuum logs:


2007-02-03 15:16:38,703 [Thread-3] ERROR ContinuumNotificationDispatcher -
Error while trying to use the jabbernotifier.
INFO   | jvm 1| 2007/02/03 15:16:38 |
org.codehaus.plexus.notification.NotificationException: Exception while
sending message.
INFO   | jvm 1| 2007/02/03 15:16:38 |   at
org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendMessage(JabberContinuumNotifier.java:241)
INFO   | jvm 1| 2007/02/03 15:16:38 |   at
org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendNotification(JabberContinuumNotifier.java:139)
INFO   | jvm 1| 2007/02/03 15:16:38 |   at
org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDispatcher.java:173)
INFO   | jvm 1| 2007/02/03 15:16:38 |   at
org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete(DefaultContinuumNotificationDispatcher.java:96)
INFO   | jvm 1| 2007/02/03 15:16:38 |   at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:378)
INFO   | jvm 1| 2007/02/03 15:16:38 |   at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:47)
INFO   | jvm 1| 2007/02/03 15:16:38 |   at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java(Compiled
Code))
INFO   | jvm 1| 2007/02/03 15:16:38 |   at
java.lang.Thread.run(Thread.java:568)
INFO   | jvm 1| 2007/02/03 15:16:38 | Caused by:
org.codehaus.plexus.jabber.JabberClientException: Can't connect to
talk.google.com:5222
INFO   | jvm 1| 2007/02/03 15:16:38 |   at
org.codehaus.plexus.jabber.DefaultJabberClient.connect(DefaultJabberClient.java:51)
INFO   | jvm 1| 2007/02/03 15:16:38 |   at
org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendMessage(JabberContinuumNotifier.java:221)
INFO   | jvm 1| 2007/02/03 15:16:38 |   ... 7 more
INFO   | jvm 1| 2007/02/03 15:16:38 | Caused by: XMPPError connecting to
talk.google.com:5222.: (502)
INFO   | jvm 1| 2007/02/03 15:16:38 |   -- caused by:
java.net.ConnectException: Connection refused: connect
INFO   | jvm 1| 2007/02/03 15:16:38 |   at
org.jivesoftware.smack.XMPPConnection.init(XMPPConnection.java:174)
INFO   | jvm 1| 2007/02/03 15:16:38 |   at
org.codehaus.plexus.jabber.DefaultJabberClient.connect(DefaultJabberClient.java:42)
INFO   | jvm 1| 2007/02/03 15:16:38 |   ... 8 more
INFO   | jvm 1| 2007/02/03 15:20:20 | 2007-02-03 15:20:20,461
[SocketListener0-1] ERROR VelocityComponent  - RHS of #set
statement is null. Context will not be modified. screens/ProjectBuild.vm
[line 103, column 3]
INFO   | jvm 1| 2007/02/03 15:20:20 | 2007-02-03 15:20:20,476
[SocketListener0-1] WARN  VelocityComponent  -
org.apache.velocity.runtime.exception.ReferenceException: reference :
template = screens/ProjectBuild.vm [line 137,column 64] :
$requestUtil.getParameter('id') is not a valid reference.
INFO   | jvm 1| 2007/02/03 15:20:20 | 2007-02-03 15:20:20,507
[SocketListener0-1] WARN  VelocityComponent  -
org.apache.velocity.runtime.exception.ReferenceException: reference :
template = screens/ProjectBuild.vm [line 137,column 96] :
${requestUtil.getParameter('buildId')} is not a valid reference.
INFO   | jvm 1| 2007/02/03 15:31:04 | 2007-02-03 15:31:04,700
[SocketListener0-1] ERROR VelocityComponent  - Left side
($notifier.configuration.sslConnection) of '==' operation has null value. If
a reference, it may not be in the context. Operation not possible.
screens/EditJabberNotifier.vm [line 57, column 104]
INFO   | jvm 1| 2007/02/03 15:31:04 | 2007-02-03 15:31:04,700
[SocketListener0-1] ERROR VelocityComponent  - Left side
($notifier.configuration.isGroup) of '==' operation has null value. If a
reference, it may not be in the context. Operation not possible.
screens/EditJabberNotifier.vm [line 63, column 92]
INFO   | jvm 1| 2007/02/03 15:44:52 | 2007-02-03 15:44:52,315
[SocketListener0-1] ERROR VelocityComponent  - Left side
($notifier.configuration.sslConnection) of '==' operation has null value. If
a reference, it may not be in the context. Operation not possible.
screens/EditJabberNotifier.vm [line 57, column 104]
INFO   | jvm 1| 2007/02/03 15:44:52 | 2007-02-03 

maven-assembly-plugin 2.2-SNAPSHOT failure

2007-02-05 Thread spamsucks
I get an error of Failed to create assembly: Error creating assembly 
archive: You must set at least one file. when I try to generate a binary 
assembly.  The project one works fine, but the assembly plugin fails if I 
try to generate a bin distro.


I am using the built-in assemblies project and bin with the 2.2-SNAPSHOT 
of the maven-assembly-plugin



 plugins
  plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-assembly-plugin/artifactId
   version2.2-SNAPSHOT/version
   configuration
descriptorRefs
 descriptorRefproject/descriptorRef
 descriptorRefbin/descriptorRef
/descriptorRefs
   /configuration
  /plugin
 /plugins

I am able to use the bin assembly in my another maven project, so it's new 
condition with this project that is causing the failure.
From the debug output below, it states that there are no No dependency sets 

specified.

This is a multi-module project that is successfully creating jars, war, 
etc..

Appreciate any suggestions on how to proceed.

Phillip




[DEBUG]   (s) outputDirectory = /home/rhodepc/working/authsum/target
[DEBUG]   (s) reactorProjects = 
[EMAIL PROTECTED], 
[EMAIL PROTECTED], 
[EMAIL PROTECTED], 
[EMAIL PROTECTED], 
[EMAIL PROTECTED], 
[EMAIL PROTECTED], 
[EMAIL PROTECTED], 
[EMAIL PROTECTED], 
[EMAIL PROTECTED], 
[EMAIL PROTECTED], 
[EMAIL PROTECTED], 
[EMAIL PROTECTED]
[DEBUG]   (f) remoteRepositories = [[apache.org] - 
http://people.apache.org/repo/m2-snapshot-repository, [Authsum 
Repository] - http://www.authsum.org/repository/snapshots, [howardlewisship 
Repository] - http://howardlewisship.com/repository/, [central] - 
http://repo1.maven.org/maven2]

[DEBUG]   (s) siteDirectory = /home/rhodepc/working/authsum/target/site
[DEBUG]   (s) tarLongFileMode = warn
[DEBUG]   (s) tempRoot = /home/rhodepc/working/authsum/target/archive-tmp
[DEBUG]   (s) workDirectory = 
/home/rhodepc/working/authsum/target/assembly/work

[DEBUG] -- end configuration --
[INFO] [assembly:assembly]
[DEBUG] FileSet[null] dir perms: 40755 file perms: 100644
[DEBUG] The archive base directory is 'null'
[DEBUG] file-set directory: '/home/rhodepc/working/authsum'
[DEBUG] output directory: ''
[DEBUG] FileSet[] dir perms: 40755 file perms: 100644
[DEBUG] The archive base directory is 'null'
[DEBUG] file-set directory: '/home/rhodepc/working/authsum/target'
[DEBUG] output directory: ''
[DEBUG] No dependency sets specified.
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Failed to create assembly: Error creating assembly archive: You must 
set at least one file.


[INFO] 
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to create 
assembly: Error creating assembly archive: You must set at least one file.
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:219)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)

   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   at java.lang.reflect.Method.invoke(Method.java:597)
   at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

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

   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to create 
assembly: Error creating assembly archive: You must set at least one file.
   at 
org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:302)
   at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)

   ... 16 more
Caused by: 

Re: How can i connect to a password protected repository?

2007-02-05 Thread Maruf Aytekin

Hi,

Thanks for the help. I am doing something wrong here I guess.

I have set the username and password in settings.xml and configured 
pom.xml as below. I can deploy the files successfully but I cannot read 
from the repository. It checks internal but doesn't download the plugin 
from internal. it   downloads it from central as follows:


[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking 
for upd

ates from internal
[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking 
for upd

ates from central
Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compil

er-plugin/2.0.1/maven-compiler-plugin-2.0.1.pom
1K downloaded
Downloading: 
http://mycompany.com/repository/maven2/org/apache/maven/plugins/maven-compi

ler-plugin/2.0.1/maven-compiler-plugin-2.0.1.jar
14K downloaded

settings.xml
..
   server
 idinternal/id
 usernameusername/username
 passwordpassword/password
 filePermissions664/filePermissions
 directoryPermissions775/directoryPermissions 
   /server

...

pom.xml
.
.
modules
   modulecustomer/module
   moduleserver/module
 /modules
 repositories
   repository
 idinternal/id
 nameMyCompany Repository/name
 urlhttp://mycompany.com/repository/maven2/url
   /repository
 /repositories
 distributionManagement
   repository
 uniqueVersionfalse/uniqueVersion
 idinternal/id
 nameMyCompany Repository/name
 urlscp://mycompany.com/home/repository/maven2/url
   /repository
   snapshotRepository
 idinternal/id
 uniqueVersionfalse/uniqueVersion
 nameMyCompany Snapshot Repository/name
 urlscp://mycompany.com/home/repository/maven2/url
   /snapshotRepository
 /distributionManagement
.
.

Rodrigo Ruiz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

No, Andrew was right. The servers/server entry in settings.xml is for
any remote server. Just give it a try ;-)

Cheers,
Rodrigo Ruiz

Maruf Aytekin wrote:
  

I think this is for deploying artifacts. and the settings are the
settings to login the server. I have an http server running to serve my
artifact repository username and passsword protected. I found this
solution usses url with username and password:

   repository
 idinternal/id
 namemycompany Repository/name
 urlhttp://username:[EMAIL PROTECTED]/repository/maven2/url
   /repository

But I am getting authentication error with this and also with this
solution I don't want username and password go with pom.xml. Is there a
different way to achieve this?

Thanks
Maruf


Andrew Williams wrote:


In settings.xml - something like

servers
 server
   idinternal/id
   username.../username
   password.../password
 /server
/servers

Andy

Maruf Aytekin wrote:
  

I would like to set a password protected repository. In order to
download from repository you need to enter usernae and password to
apache authentication prompt. Where should I configure it?  in the
pom or settings file?

repositories
   repository
 idinternal/id
 nameMyCompany Repository/name
 urlhttp://mycompany.com/repository/maven2/url
   /repository
 /repositories

Thanks for the help,

Maruf




- --
- ---
GRID SYSTEMS, S.A. Rodrigo Ruiz
Parc Bit - Edificio 17 Research Coordinator
07121 Palma de Mallorca
Baleares - Spain   Tel: +34 971 435 085
http://www.gridsystems.com/Fax: +34 971 435 082
- ---
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.4 (MingW32)

iD8DBQFFxy+5p9m/F5UenDoRAt+wAJ9zzqZhlY92NOwFR7n6AOJ4g7tyvwCgs7E3
0DktK0H3WAHSIOkHcmfHlnU=
=6N+9
-END PGP SIGNATURE-

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


  


Re: Testing archetypes with Ant

2007-02-05 Thread mraible

I finally got everything working, but I'm also experiencing a strange side
effect. The common-test.xml[1] script is called from each archetype's
pom.xml:

profiles
profile
idintegration-test/id
activation
property
name!maven.test.skip/name
/property
/activation
build
plugins
plugin
artifactIdmaven-antrun-plugin/artifactId
version1.1/version
configuration
tasks
ant antfile=../common-test.xml dir=.
property name=archetype
value=${pom.artifactId}/
property name=version
value=${pom.version}/
/ant
/tasks
/configuration
executions
execution
phaseintegration-test/phase
goals
goalrun/goal
/goals
/execution
/executions
/plugin
/plugins
/build
/profile
/profiles

However, there's something in these archetype tests that causes downstream
antrun executions to fail. This no longer works:

plugin
artifactIdmaven-antrun-plugin/artifactId
version1.1/version
configuration
tasks
taskdef
resource=webtest_base_relaxed.taskdef
classpath
refid=maven.test.classpath/
/taskdef

AFAICT, the classpath is somehow getting messed up by the archetype Ant
execution.  If I comment out the archetype tests, the above taskdef works. 
Strangely enough, the archetype tests create archetypes and run integration
tests with the same taskdef and it works fine.  Do I need to fork the JVM
or something to get this to work?  Has anyone else experienced antrun
executions causing issues with other antrun executions?

Thanks,

Matt


[1] common-test.xml:

?xml version=1.0 encoding=UTF-8?
!-- This file is imported in the archetype pom.xml files for integration
tests --
project name=common-test default=test

property name=version value=${version}/
property name=archetype value=${archetype}/
property name=test.dir value=${basedir}/target/test-archetype/

target name=test description=Tests that 'mvn integration-test' works
with archetype
echo message=Creating archetype '${archetype}', version
'${version}'/
test archetype=${archetype} version=${version}/
/target

macrodef name=test
attribute name=archetype/
attribute name=version/

sequential
delete dir=${test.dir}/
mkdir dir=${test.dir}/
maven dir=${basedir} command=install
-Dmaven.test.skip=true/
maven dir=${test.dir} archetype=@{archetype}
version=@{version} /
maven dir=${test.dir}/archetype command=integration-test/
/sequential
/macrodef

macrodef name=maven
attribute name=dir/
attribute name=name default=/
attribute name=archetype default=/
attribute name=version default=/
attribute name=command default=archetype:create
-DarchetypeGroupId=org.appfuse [EMAIL PROTECTED]
[EMAIL PROTECTED] -DgroupId=com.mycompany
-DartifactId=archetype/

sequential
exec dir=@{dir} executable=mvn.bat os=Windows XP
failonerror=true
arg line=@{command}/
/exec
exec dir=@{dir} executable=mvn os=Mac OS X
failonerror=true
arg line=@{command}/
/exec
exec dir=@{dir} executable=mvn os=Linux
failonerror=true
arg line=@{command}/
/exec
/sequential
/macrodef
/project

-- 
View this message in context: 
http://www.nabble.com/Testing-archetypes-with-Ant-tf3167091s177.html#a8810296
Sent from the Maven - Users mailing list archive at Nabble.com.


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



How to influence the build cycle so that generate-sources recognises changing files?

2007-02-05 Thread Leonardo Freitas

Hello,

I have a parser project for multiple languages. A file Parser.xml is used to
generate a series
of Parser.cup files through the generate-sources phase. This generation
actually cuts the
right bits from the .xml into a .cup file.

Next, the .cup file is processed-sources with the maven cup plugin to
generate a Parser.java
file. Next, something ismilar happens for the jflex (lexer) files. Finally,
this java files are compiled accordingly.

The problem is that when I change the xml file, maven does not know
something has changed
and that the cup file needs to be regenerated. It simply ignores the build
saying that Parser.cup is upto date,
when in fact it should be because the .xml file has changed.

Any suggestions on how to ammend this, please? In fact, could any one point
out a clear
place that explains how to influence/interact with the various lifecycle
phases?

Best
Leo


How to influence the build cycle so that generate-sources recognises changing files?

2007-02-05 Thread Leonardo Freitas

Hello,

I have a parser project for multiple languages. A file Parser.xml is used to
generate a series
of Parser.cup files through the generate-sources phase. This generation
actually cuts the
right bits from the .xml into a .cup file.

Next, the .cup file is processed-sources with the maven cup plugin to
generate a Parser.java
file. Next, something ismilar happens for the jflex (lexer) files. Finally,
this java files are compiled accordingly.

The problem is that when I change the xml file, maven does not know
something has changed
and that the cup file needs to be regenerated. It simply ignores the build
saying that Parser.cup is upto date,
when in fact it should be because the .xml file has changed.

Any suggestions on how to ammend this, please? In fact, could any one point
out a clear
place that explains how to influence/interact with the various lifecycle
phases?

Best
Leo


Re: Jabber google talk

2007-02-05 Thread AyoContinuum

How did you set yours up? 

Thanks

Emmanuel Venisse wrote:
 
 Last time I used it, it worked fine. It seems that in your case, the
 service wasn't available (error 502).
 
 Emmanuel
 
 AyoContinuum a écrit :
 Hi,
   I am having a bit of trouble getting continuum to alert me of
 builds
 via google talk/jabber. I setup jabber in continuum according to the faq
 on
 the apache continuum website. 
 
 It says that it can't connect to google talk at that port.
 
 I set the recipent as [EMAIL PROTECTED] ideas?
  
 I get the following error in continuum logs:
 
 2007-02-03 15:16:38,703 [Thread-3] ERROR ContinuumNotificationDispatcher
 -
 Error while trying to use the jabbernotifier.
 INFO   | jvm 1| 2007/02/03 15:16:38 |
 org.codehaus.plexus.notification.NotificationException: Exception while
 sending message.
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendMessage(JabberContinuumNotifier.java:241)
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendNotification(JabberContinuumNotifier.java:139)
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDispatcher.java:173)
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete(DefaultContinuumNotificationDispatcher.java:96)
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:378)
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:47)
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java(Compiled
 Code))
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 java.lang.Thread.run(Thread.java:568)
 INFO   | jvm 1| 2007/02/03 15:16:38 | Caused by:
 org.codehaus.plexus.jabber.JabberClientException: Can't connect to
 talk.google.com:5222
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 org.codehaus.plexus.jabber.DefaultJabberClient.connect(DefaultJabberClient.java:51)
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendMessage(JabberContinuumNotifier.java:221)
 INFO   | jvm 1| 2007/02/03 15:16:38 |... 7 more
 INFO   | jvm 1| 2007/02/03 15:16:38 | Caused by: XMPPError connecting
 to
 talk.google.com:5222.: (502)
 INFO   | jvm 1| 2007/02/03 15:16:38 |   -- caused by:
 java.net.ConnectException: Connection refused: connect
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 org.jivesoftware.smack.XMPPConnection.init(XMPPConnection.java:174)
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 org.codehaus.plexus.jabber.DefaultJabberClient.connect(DefaultJabberClient.java:42)
 INFO   | jvm 1| 2007/02/03 15:16:38 |... 8 more
 INFO   | jvm 1| 2007/02/03 15:20:20 | 2007-02-03 15:20:20,461
 [SocketListener0-1] ERROR VelocityComponent  - RHS of #set
 statement is null. Context will not be modified. screens/ProjectBuild.vm
 [line 103, column 3]
 INFO   | jvm 1| 2007/02/03 15:20:20 | 2007-02-03 15:20:20,476
 [SocketListener0-1] WARN  VelocityComponent  -
 org.apache.velocity.runtime.exception.ReferenceException: reference :
 template = screens/ProjectBuild.vm [line 137,column 64] :
 $requestUtil.getParameter('id') is not a valid reference.
 INFO   | jvm 1| 2007/02/03 15:20:20 | 2007-02-03 15:20:20,507
 [SocketListener0-1] WARN  VelocityComponent  -
 org.apache.velocity.runtime.exception.ReferenceException: reference :
 template = screens/ProjectBuild.vm [line 137,column 96] :
 ${requestUtil.getParameter('buildId')} is not a valid reference.
 INFO   | jvm 1| 2007/02/03 15:31:04 | 2007-02-03 15:31:04,700
 [SocketListener0-1] ERROR VelocityComponent  - Left side
 ($notifier.configuration.sslConnection) of '==' operation has null value.
 If
 a reference, it may not be in the context. Operation not possible.
 screens/EditJabberNotifier.vm [line 57, column 104]
 INFO   | jvm 1| 2007/02/03 15:31:04 | 2007-02-03 15:31:04,700
 [SocketListener0-1] ERROR VelocityComponent  - Left side
 ($notifier.configuration.isGroup) of '==' operation has null value. If a
 reference, it may not be in the context. Operation not possible.
 screens/EditJabberNotifier.vm [line 63, column 92]
 INFO   | jvm 1| 2007/02/03 15:44:52 | 2007-02-03 15:44:52,315
 [SocketListener0-1] ERROR VelocityComponent  - Left side
 ($notifier.configuration.sslConnection) of '==' operation has null value.
 If
 a reference, it may not be in the context. Operation not possible.

How to influence the build cycle so that generate-sources recognises changing files?

2007-02-05 Thread leo
Hello,

I have a parser project for multiple languages. A file Parser.xml is used
to generate a series
of Parser.cup files through the generate-sources phase. This generation
actually cuts the
right bits from the .xml into a .cup file.

Next, the .cup file is processed-sources with the maven cup plugin to
generate a Parser.java
file. Next, something ismilar happens for the jflex (lexer) files.
Finally, this java files are compiled accordingly.

The problem is that when I change the xml file, maven does not know
something has changed
and that the cup file needs to be regenerated. It simply ignores the build
saying that Parser.cup is upto date,
when in fact it should be because the .xml file has changed.

Any suggestions on how to ammend this, please? In fact, could any one
point out a clear
place that explains how to influence/interact with the various lifecycle
phases?

Best
Leo


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



Maven2 and JBoss problem

2007-02-05 Thread Sergey Podgurskiy

Hello all.
I have next problem.
I have a project builded with maven. And now we migrated this project to
jboss portal.
This project under development and i need to have folder named
projectname.war for define this folder in JBoss  deploy path. And i don't
want after change JSPs in project do redeploy or rebuild. It's must deploy
on the fly.

What can i do with it? Maybe you can provide some information how to develop
mavenised projects with deploy-on-fly feature.
-- 
View this message in context: 
http://www.nabble.com/Maven2-and-JBoss-problem-tf3175996s177.html#a8811839
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Jabber google talk

2007-02-05 Thread AyoContinuum

I did the configuration for the jabber notifier through the web interface
while continuum was running as a service.

Would i need to restart? do i need to make a change to the application.xml?

Thanks

AyoContinuum wrote:
 
 How did you set yours up? 
 
 Thanks
 
 Emmanuel Venisse wrote:
 
 Last time I used it, it worked fine. It seems that in your case, the
 service wasn't available (error 502).
 
 Emmanuel
 
 AyoContinuum a écrit :
 Hi,
   I am having a bit of trouble getting continuum to alert me of
 builds
 via google talk/jabber. I setup jabber in continuum according to the faq
 on
 the apache continuum website. 
 
 It says that it can't connect to google talk at that port.
 
 I set the recipent as [EMAIL PROTECTED] ideas?
  
 I get the following error in continuum logs:
 
 2007-02-03 15:16:38,703 [Thread-3] ERROR ContinuumNotificationDispatcher
 -
 Error while trying to use the jabbernotifier.
 INFO   | jvm 1| 2007/02/03 15:16:38 |
 org.codehaus.plexus.notification.NotificationException: Exception while
 sending message.
 INFO   | jvm 1| 2007/02/03 15:16:38 |   at
 org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendMessage(JabberContinuumNotifier.java:241)
 INFO   | jvm 1| 2007/02/03 15:16:38 |   at
 org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendNotification(JabberContinuumNotifier.java:139)
 INFO   | jvm 1| 2007/02/03 15:16:38 |   at
 org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDispatcher.java:173)
 INFO   | jvm 1| 2007/02/03 15:16:38 |   at
 org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete(DefaultContinuumNotificationDispatcher.java:96)
 INFO   | jvm 1| 2007/02/03 15:16:38 |   at
 org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:378)
 INFO   | jvm 1| 2007/02/03 15:16:38 |   at
 org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:47)
 INFO   | jvm 1| 2007/02/03 15:16:38 |   at
 org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java(Compiled
 Code))
 INFO   | jvm 1| 2007/02/03 15:16:38 |   at
 java.lang.Thread.run(Thread.java:568)
 INFO   | jvm 1| 2007/02/03 15:16:38 | Caused by:
 org.codehaus.plexus.jabber.JabberClientException: Can't connect to
 talk.google.com:5222
 INFO   | jvm 1| 2007/02/03 15:16:38 |   at
 org.codehaus.plexus.jabber.DefaultJabberClient.connect(DefaultJabberClient.java:51)
 INFO   | jvm 1| 2007/02/03 15:16:38 |   at
 org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendMessage(JabberContinuumNotifier.java:221)
 INFO   | jvm 1| 2007/02/03 15:16:38 |   ... 7 more
 INFO   | jvm 1| 2007/02/03 15:16:38 | Caused by: XMPPError
 connecting to
 talk.google.com:5222.: (502)
 INFO   | jvm 1| 2007/02/03 15:16:38 |   -- caused by:
 java.net.ConnectException: Connection refused: connect
 INFO   | jvm 1| 2007/02/03 15:16:38 |   at
 org.jivesoftware.smack.XMPPConnection.init(XMPPConnection.java:174)
 INFO   | jvm 1| 2007/02/03 15:16:38 |   at
 org.codehaus.plexus.jabber.DefaultJabberClient.connect(DefaultJabberClient.java:42)
 INFO   | jvm 1| 2007/02/03 15:16:38 |   ... 8 more
 INFO   | jvm 1| 2007/02/03 15:20:20 | 2007-02-03 15:20:20,461
 [SocketListener0-1] ERROR VelocityComponent  - RHS of #set
 statement is null. Context will not be modified. screens/ProjectBuild.vm
 [line 103, column 3]
 INFO   | jvm 1| 2007/02/03 15:20:20 | 2007-02-03 15:20:20,476
 [SocketListener0-1] WARN  VelocityComponent  -
 org.apache.velocity.runtime.exception.ReferenceException: reference :
 template = screens/ProjectBuild.vm [line 137,column 64] :
 $requestUtil.getParameter('id') is not a valid reference.
 INFO   | jvm 1| 2007/02/03 15:20:20 | 2007-02-03 15:20:20,507
 [SocketListener0-1] WARN  VelocityComponent  -
 org.apache.velocity.runtime.exception.ReferenceException: reference :
 template = screens/ProjectBuild.vm [line 137,column 96] :
 ${requestUtil.getParameter('buildId')} is not a valid reference.
 INFO   | jvm 1| 2007/02/03 15:31:04 | 2007-02-03 15:31:04,700
 [SocketListener0-1] ERROR VelocityComponent  - Left side
 ($notifier.configuration.sslConnection) of '==' operation has null
 value. If
 a reference, it may not be in the context. Operation not possible.
 screens/EditJabberNotifier.vm [line 57, column 104]
 INFO   | jvm 1| 2007/02/03 15:31:04 | 2007-02-03 15:31:04,700
 [SocketListener0-1] ERROR VelocityComponent  - Left side
 ($notifier.configuration.isGroup) of '==' operation has null value. If a
 reference, it may not be in the context. Operation not possible.
 screens/EditJabberNotifier.vm [line 63, column 92]
 INFO   | jvm 1| 2007/02/03 15:44:52 | 2007-02-03 15:44:52,315
 

Re: Problems with Repos?

2007-02-05 Thread Richard Wallace
I'm running into this right now on a machine having to do with Spring
and trying to download version 2.4.1 jars.  Was there ever any
resolution to this?

Rich

LAMY Olivier wrote:
 Hi,
 Look : http://jira.codehaus.org/browse/MNG-2339

 I think it's a big issue because sometimes it's impossible to use
version${project.version}/version.
 Sometimes works sometime not  (that's certainly why this issue will
be hard to solved).


 --
 Olivier

 -Message d'origine-
 De : JRatTFT [mailto:[EMAIL PROTECTED]
 Envoyé : mardi 31 octobre 2006 21:56
 À : users@maven.apache.org
 Objet : Problems with Repos?


 Hi,

 I sat down to work today and have blown a few hours trying to debug a
project that has very few dependencies. It seems there's some
cross-polination with POMs

 10/31/06 3:51:25 PM EST: Unable to get dependency information: Unable
to read the metadata file for artifact
 'org.springframework:spring-context:jar': Error getting POM for
'org.springframework:spring-context' from the repository: Error
transferring file
   org.springframework:spring-context:pom:2.4.1

 from the specified remote repositories:
   central (http://ibiblio.org/maven2),
   spring (https://svn.sourceforge.net/svnroot/springframework/repos/repo/),
   mergere (http://repo.mergere.com/maven2) 
org.springframework:spring-context-2.4.1.jar

 spring-context-2.4.1? Spring just had a highly popular 2.0 release and the
 2.4.1 makes no sense.

 This compiled and tested fine yesterday now my dependencies are all
messed up.

 Has this happened to anyone today?
 --
 View this message in context:
http://www.nabble.com/Problems-with-Repos--tf2548339s177.html#a7102487
 Sent from the Maven - Users mailing list archive at Nabble.com.


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



 This e-mail, any attachments and the information contained therein
(this message) are confidential and intended solely for the use of the
addressee(s). If you have received this message in error please send it
back to the sender and delete it. Unauthorized publication, use,
dissemination or disclosure of this message, either in whole or in part
is strictly prohibited.
 **
 Ce message électronique et tous les fichiers joints ainsi que  les
informations contenues dans ce message ( ci après le message ), sont
confidentiels et destinés exclusivement à l'usage de la  personne à
laquelle ils sont adressés. Si vous avez reçu ce message par erreur,
merci  de le renvoyer à son émetteur et de le détruire. Toutes
diffusion, publication, totale ou partielle ou divulgation sous quelque
forme que se soit non expressément autorisées de ce message, sont
interdites.
 **


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



Maven2 fails on test-compile with TestNG

2007-02-05 Thread noban
Hi! 

My goal is compile and run TestNG test in Sample application using Maven2.
I`m new to Maven, so I`m shure solution for my problem is trivial. I`ve looked 
for it through the I-Net but found nothing. 

Here's my steps:
I generate project using archetypes mechanism:

mvn archetype:create -DgroupId=lv.bond.labs.mvn.testng 
-DartifactId=lv.bond.labs.mvn.testng

after that from created directory I generate eclipse project:

mvn eclipse:eclipse

after that I'm editing my pom.xml, so at the end it looks like this:

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
groupIdlv.bond.labs.mvn.testng/groupId
artifactIdlv.bond.labs.mvn.testng/artifactId
packagingjar/packaging
version1.0-SNAPSHOT/version
namelv.bond.labs.mvn.testng/name
urlhttp://maven.apache.org/url

build
   defaultGoalpackage/defaultGoal
   sourceDirectorysrc/java/sourceDirectory

   testSourceDirectorysrc/test/java/testSourceDirectory

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

dependencies
   dependency
groupIdorg.testng/groupId
artifactIdtestng/artifactId
version5.1/version
scopetest/scope
classifierjdk15/classifier
/dependency
/dependencies

/project

but when I run: mvn compile -everithing is ok:

C:\dev\workspaces\e3.2.1\ANN2\lv.bond.labs.mvn.testngmvn test-compile
[INFO] Scanning for projects...
[INFO] 

[INFO] Building lv.bond.labs.mvn.testng
[INFO]task-segment: [test-compile]
[INFO] 

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
Compiling 1 source file to 
C:\dev\workspaces\e3.2.1\ANN2\lv.bond.labs.mvn.testng\target\test-classes
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 3 seconds
[INFO] Finished at: Mon Feb 05 21:30:47 EET 2007
[INFO] Final Memory: 3M/7M
[INFO] 


and when I run: mvn test -something goes wrong



C:\dev\workspaces\e3.2.1\ANN2\lv.bond.labs.mvn.testngmvn test
[INFO] Scanning for projects...
[INFO] 

[INFO] Building lv.bond.labs.mvn.testng
[INFO]task-segment: [test]
[INFO] 

[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-surefire-plugin

Reason: Error getting POM for 'org.apache.maven.plugins:maven-surefire-plugin' 
from the repository: Failed to resolve artifact, possibly due to a repository 
list that is not appropriately equipped for this artifact's metadata.

  org.apache.maven.plugins:maven-surefire-plugin:pom:2.8-SNAPSHOT



from the specified remote repositories:

  tapestry.javaforge (http://howardlewisship.com/repository),
  central (http://repo1.maven.org/maven2),
  Codehaus Snapshots (http://snapshots.repository.codehaus.org/)




[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time:  1 second
[INFO] Finished at: Mon Feb 05 21:30:59 EET 2007
[INFO] Final Memory: 2M/4M
[INFO] 

C:\dev\workspaces\e3.2.1\ANN2\lv.bond.labs.mvn.testng


I just can't get it what I`m doing wrong?

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



m2 ear plugin and streamlining config of application.xml generation

2007-02-05 Thread shea

I've searched on this and from what I can tell, this question has not been
directly asked before...

I have an EAR artifact that declares dependencies on several of my own jars,
a war, and some 3rd party jars.  This is sufficient to get the artifacts
included in my EAR, however, if I actually want an artifact to be included
in application.xml (so it is actually accessible at runtime), I need to
pretty much duplicate the dependency list in the modules section of the
ear-plugin config.

I am wondering if I am doing something incorrectly, as this duplication
seems somewhat contrary to maven's principle of 'useful defaults' (which IMO
would include declared dependencies in the application.xml unless you
explicitly exclude them).  Or am I misunderstanding the relationship between
application.xml and the runtime classpath. (i.e. should I be instead using a
generated ear manifest for the classpath).  

Thanks,

Shea.
-- 
View this message in context: 
http://www.nabble.com/m2-ear-plugin-and-streamlining-config-of-application.xml-generation-tf3176492s177.html#a8813645
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Problems with Repos?

2007-02-05 Thread Wayne Fay

Looks like the Spring Context 2.0.2 jars were published with
${project.version} in them which is not being properly interpreted by
Maven. So instead of using the ${project.version} from the
spring-context-2.0.2.pom (which should substitute 2.0.2), Maven is
using the version from the currently executing project.

Obviously this is a bug in Maven. It would be nice if someone could
debug this issue, solve it, and post the fix in that JIRA issue
previously posted. ;-)

Wayne

http://fisheye1.cenqua.com/browse/springframework/spring/maven/spring-context.pom?r=1.2

http://repo1.maven.org/maven2/org/springframework/spring-context/2.0.2/spring-context-2.0.2.pom

On 2/5/07, Richard Wallace [EMAIL PROTECTED] wrote:

I'm running into this right now on a machine having to do with Spring
and trying to download version 2.4.1 jars.  Was there ever any
resolution to this?

Rich

LAMY Olivier wrote:
 Hi,
 Look : http://jira.codehaus.org/browse/MNG-2339

 I think it's a big issue because sometimes it's impossible to use
version${project.version}/version.
 Sometimes works sometime not  (that's certainly why this issue will
be hard to solved).


 --
 Olivier

 -Message d'origine-
 De : JRatTFT [mailto:[EMAIL PROTECTED]
 Envoyé : mardi 31 octobre 2006 21:56
 À : users@maven.apache.org
 Objet : Problems with Repos?


 Hi,

 I sat down to work today and have blown a few hours trying to debug a
project that has very few dependencies. It seems there's some
cross-polination with POMs

 10/31/06 3:51:25 PM EST: Unable to get dependency information: Unable
to read the metadata file for artifact
 'org.springframework:spring-context:jar': Error getting POM for
'org.springframework:spring-context' from the repository: Error
transferring file
   org.springframework:spring-context:pom:2.4.1

 from the specified remote repositories:
   central (http://ibiblio.org/maven2),
   spring (https://svn.sourceforge.net/svnroot/springframework/repos/repo/),
   mergere (http://repo.mergere.com/maven2)
org.springframework:spring-context-2.4.1.jar

 spring-context-2.4.1? Spring just had a highly popular 2.0 release and the
 2.4.1 makes no sense.

 This compiled and tested fine yesterday now my dependencies are all
messed up.

 Has this happened to anyone today?
 --
 View this message in context:
http://www.nabble.com/Problems-with-Repos--tf2548339s177.html#a7102487
 Sent from the Maven - Users mailing list archive at Nabble.com.


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



 This e-mail, any attachments and the information contained therein
(this message) are confidential and intended solely for the use of the
addressee(s). If you have received this message in error please send it
back to the sender and delete it. Unauthorized publication, use,
dissemination or disclosure of this message, either in whole or in part
is strictly prohibited.
 **
 Ce message électronique et tous les fichiers joints ainsi que  les
informations contenues dans ce message ( ci après le message ), sont
confidentiels et destinés exclusivement à l'usage de la  personne à
laquelle ils sont adressés. Si vous avez reçu ce message par erreur,
merci  de le renvoyer à son émetteur et de le détruire. Toutes
diffusion, publication, totale ou partielle ou divulgation sous quelque
forme que se soit non expressément autorisées de ce message, sont
interdites.
 **


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




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




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



Re: Maven shell

2007-02-05 Thread Arnaud Bailly
Nigel Magnay [EMAIL PROTECTED] writes:

 I actually had a related issue - our project is comprised of many jar
 and war fragments and, good though the jetty plugin is, it's helpful
 when debugging webapps in eclipse when hotswap fails (which is
 always), to be able to have it automatically copy changed class files
 into the running application. The existing eclipse integrations (last
 time I looked) seemed to concentrate on replacing the IDE compile
 function with maven which is a total non-starter, because it takes
 *forever*.


Never used. 

 I did something simple in .net (mostly because when I go near the
 maven codebase, the vast array of poorly documented dependences like
 plexus scares me and I don't have the time to figure it all out),
 but

That's also what is refraining me ! I love using maven, I think the
people behind it did a great job, but contributing on your spare time
is somewhat challenging as coding information is lacking, particularly
as you noted it on related projects. 

 I think a decent editor that didn't force people to hack XML would be
 nice, as well as the ability to do things like
 - detect possibly unneded dependencies

Could you please elaborate on this ? Do you think about something like
extracting dependencies from compiled classes and inferring unused
deps ? 

 - promote common dependencies to a parent pom

Something like easy dependencyManagement ?

 - UI for setting up common plugins (compile, report, assembly)


Could you please elaborate on this one too ?

BTW, did you try the pomtools plugin ?

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]



RE: compile tries to bundle up the ear - should it?

2007-02-05 Thread EJ Ciramella
Still haven't seen any response - this has us wedged, can anyone shed
any light on this for me? 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 31, 2007 6:23 PM
To: Maven Users List
Subject: compile tries to bundle up the ear - should it?

I'm running just compile but one module that has an ear artifact is
trying to bundle up the ear file (which subsequently fails because the
war and ejbs don't exist).  
 
Is this supposed to happen or is this something I've misconfigured:

[INFO]



[INFO] Building ltyApp_ear

[INFO]task-segment: [compile]

[INFO]



Downloading:
file:\\build.corp.upromise.com/maven2/lty/upErrorEJB/1.0-SNAPSHOT/upErro
rEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/salesscriptEJB/1.0-SNAPSHOT/sa
lesscriptEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/transferEJB/1.0-SNAPSHOT/trans
ferEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/transactionEJB/1.0-SNAPSHOT/tr
ansactionEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/CSREJB/1.0-SNAPSHOT/CSREJB-1.0
-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/upAdminEJB/1.0-SNAPSHOT/upAdmi
nEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/inboundenrollmentEJB/1.0-SNAPS
HOT/inboundenrollmentEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/authserverEJB/1.0-SNAPSHOT/aut
hserverEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/communityEJB/1.0-SNAPSHOT/comm
unityEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/accountGuestEJB/1.0-SNAPSHOT/a
ccountGuestEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/testcellEJB/1.0-SNAPSHOT/testc
ellEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/enrollmentEJB/1.0-SNAPSHOT/enr
ollmentEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/partnerEJB/1.0-SNAPSHOT/partne
rEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/groceryEJB/1.0-SNAPSHOT/grocer
yEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/messageEJB/1.0-SNAPSHOT/messag
eEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/memberProfileEJB/1.0-SNAPSHOT/
memberProfileEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/ltyWebApp/1.0-SNAPSHOT/ltyWebA
pp-1.0-SNAPSHOT.war

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/withdrawalEJB/1.0-SNAPSHOT/wit
hdrawalEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

[INFO]


[ERROR] BUILD ERROR

[INFO]


[INFO] Failed to resolve artifact.

 

 

 

 

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

Re: Jabber google talk

2007-02-05 Thread AyoContinuum

I am behind a proxy server...does anyone have information as to how to set up
jabber in this situation?

thanks

Emmanuel Venisse wrote:
 
 Last time I used it, it worked fine. It seems that in your case, the
 service wasn't available (error 502).
 
 Emmanuel
 
 AyoContinuum a écrit :
 Hi,
   I am having a bit of trouble getting continuum to alert me of
 builds
 via google talk/jabber. I setup jabber in continuum according to the faq
 on
 the apache continuum website. 
 
 It says that it can't connect to google talk at that port.
 
 I set the recipent as [EMAIL PROTECTED] ideas?
  
 I get the following error in continuum logs:
 
 2007-02-03 15:16:38,703 [Thread-3] ERROR ContinuumNotificationDispatcher
 -
 Error while trying to use the jabbernotifier.
 INFO   | jvm 1| 2007/02/03 15:16:38 |
 org.codehaus.plexus.notification.NotificationException: Exception while
 sending message.
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendMessage(JabberContinuumNotifier.java:241)
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendNotification(JabberContinuumNotifier.java:139)
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDispatcher.java:173)
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete(DefaultContinuumNotificationDispatcher.java:96)
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:378)
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:47)
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java(Compiled
 Code))
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 java.lang.Thread.run(Thread.java:568)
 INFO   | jvm 1| 2007/02/03 15:16:38 | Caused by:
 org.codehaus.plexus.jabber.JabberClientException: Can't connect to
 talk.google.com:5222
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 org.codehaus.plexus.jabber.DefaultJabberClient.connect(DefaultJabberClient.java:51)
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendMessage(JabberContinuumNotifier.java:221)
 INFO   | jvm 1| 2007/02/03 15:16:38 |... 7 more
 INFO   | jvm 1| 2007/02/03 15:16:38 | Caused by: XMPPError connecting
 to
 talk.google.com:5222.: (502)
 INFO   | jvm 1| 2007/02/03 15:16:38 |   -- caused by:
 java.net.ConnectException: Connection refused: connect
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 org.jivesoftware.smack.XMPPConnection.init(XMPPConnection.java:174)
 INFO   | jvm 1| 2007/02/03 15:16:38 |at
 org.codehaus.plexus.jabber.DefaultJabberClient.connect(DefaultJabberClient.java:42)
 INFO   | jvm 1| 2007/02/03 15:16:38 |... 8 more
 INFO   | jvm 1| 2007/02/03 15:20:20 | 2007-02-03 15:20:20,461
 [SocketListener0-1] ERROR VelocityComponent  - RHS of #set
 statement is null. Context will not be modified. screens/ProjectBuild.vm
 [line 103, column 3]
 INFO   | jvm 1| 2007/02/03 15:20:20 | 2007-02-03 15:20:20,476
 [SocketListener0-1] WARN  VelocityComponent  -
 org.apache.velocity.runtime.exception.ReferenceException: reference :
 template = screens/ProjectBuild.vm [line 137,column 64] :
 $requestUtil.getParameter('id') is not a valid reference.
 INFO   | jvm 1| 2007/02/03 15:20:20 | 2007-02-03 15:20:20,507
 [SocketListener0-1] WARN  VelocityComponent  -
 org.apache.velocity.runtime.exception.ReferenceException: reference :
 template = screens/ProjectBuild.vm [line 137,column 96] :
 ${requestUtil.getParameter('buildId')} is not a valid reference.
 INFO   | jvm 1| 2007/02/03 15:31:04 | 2007-02-03 15:31:04,700
 [SocketListener0-1] ERROR VelocityComponent  - Left side
 ($notifier.configuration.sslConnection) of '==' operation has null value.
 If
 a reference, it may not be in the context. Operation not possible.
 screens/EditJabberNotifier.vm [line 57, column 104]
 INFO   | jvm 1| 2007/02/03 15:31:04 | 2007-02-03 15:31:04,700
 [SocketListener0-1] ERROR VelocityComponent  - Left side
 ($notifier.configuration.isGroup) of '==' operation has null value. If a
 reference, it may not be in the context. Operation not possible.
 screens/EditJabberNotifier.vm [line 63, column 92]
 INFO   | jvm 1| 2007/02/03 15:44:52 | 2007-02-03 15:44:52,315
 [SocketListener0-1] ERROR VelocityComponent  - Left side
 ($notifier.configuration.sslConnection) of '==' operation has null 

Maven 1.1 Multiproject:site-deploy Directories not created.

2007-02-05 Thread alonushhh

Hi,

I'm using jdk1.5.0_03  with maven 1.1.

I ran multiproject:site-deploy which ran site:generate on all of my
subprojects successfully, but when it started to deploy the site using the
file system method, it failed to create the needed directories.

Is there a property or a goal that I need to run to create the directory
hierarchy from my target/docs directory to my deploy directory?

-- Thanks


Re: compile tries to bundle up the ear - should it?

2007-02-05 Thread Christian Goetze

EJ Ciramella wrote:


Still haven't seen any response - this has us wedged, can anyone shed
any light on this for me? 
 

If you run mvn anything in some project/module subdirectory, you are 
assuming that all dependencies are built and installed, and therefore 
available either from your local repo, or from your other repositories. 
If this is not true, then you cannot build.


If you are in the situation where your code builds, but some else's 
code doesn't, then you won't be able to use your .ear file anyway. If 
you don't need the .ear file yet, but do wish to run unit tests on 
your code, then maybe you should temparily change your packaging to 
jar. If you want a more permanent solution, then make a separate 
artifact which just has the dependencies to pack the ear, but no code 
(except perhaps for some simple wrapping or debugging code) on its own...


But to me it sounds simply as if you'd want to run mvn from a higher 
directory to get it to build all of your modules - or that you need to 
ensure that the other people deploy the results of their builds.

--
cg

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



Re: How can i connect to a password protected repository?

2007-02-05 Thread Andrew Williams

You need to setup a pluginRepositories section too

Andy

On 5 Feb 2007, at 16:03, Maruf Aytekin wrote:


Hi,

Thanks for the help. I am doing something wrong here I guess.

I have set the username and password in settings.xml and configured  
pom.xml as below. I can deploy the files successfully but I cannot  
read from the repository. It checks internal but doesn't download  
the plugin from internal. it   downloads it from central as follows:


[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin:  
checking for upd

ates from internal
[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin:  
checking for upd

ates from central
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/ 
maven-compil

er-plugin/2.0.1/maven-compiler-plugin-2.0.1.pom
1K downloaded
Downloading: http://mycompany.com/repository/maven2/org/apache/ 
maven/plugins/maven-compi

ler-plugin/2.0.1/maven-compiler-plugin-2.0.1.jar
14K downloaded

settings.xml
..
   server
 idinternal/id
 usernameusername/username
 passwordpassword/password
 filePermissions664/filePermissions
 directoryPermissions775/directoryPermissions/server
...

pom.xml
.
.
modules
   modulecustomer/module
   moduleserver/module
 /modules
 repositories
   repository
 idinternal/id
 nameMyCompany Repository/name
 urlhttp://mycompany.com/repository/maven2/url
   /repository
 /repositories
 distributionManagement
   repository
 uniqueVersionfalse/uniqueVersion
 idinternal/id
 nameMyCompany Repository/name
 urlscp://mycompany.com/home/repository/maven2/url
   /repository
   snapshotRepository
 idinternal/id
 uniqueVersionfalse/uniqueVersion
 nameMyCompany Snapshot Repository/name
 urlscp://mycompany.com/home/repository/maven2/url
   /snapshotRepository
 /distributionManagement
.
.

Rodrigo Ruiz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

No, Andrew was right. The servers/server entry in settings.xml is for
any remote server. Just give it a try ;-)

Cheers,
Rodrigo Ruiz

Maruf Aytekin wrote:


I think this is for deploying artifacts. and the settings are the
settings to login the server. I have an http server running to  
serve my

artifact repository username and passsword protected. I found this
solution usses url with username and password:

   repository
 idinternal/id
 namemycompany Repository/name
 urlhttp://username:[EMAIL PROTECTED]/repository/ 
maven2/url

   /repository

But I am getting authentication error with this and also with this
solution I don't want username and password go with pom.xml. Is  
there a

different way to achieve this?

Thanks
Maruf


Andrew Williams wrote:


In settings.xml - something like

servers
 server
   idinternal/id
   username.../username
   password.../password
 /server
/servers

Andy

Maruf Aytekin wrote:


I would like to set a password protected repository. In order to
download from repository you need to enter usernae and password to
apache authentication prompt. Where should I configure it?  in the
pom or settings file?

repositories
   repository
 idinternal/id
 nameMyCompany Repository/name
 urlhttp://mycompany.com/repository/maven2/url
   /repository
 /repositories

Thanks for the help,

Maruf




- --
- ---
GRID SYSTEMS, S.A. Rodrigo Ruiz
Parc Bit - Edificio 17 Research Coordinator
07121 Palma de Mallorca
Baleares - Spain   Tel: +34 971 435 085
http://www.gridsystems.com/Fax: +34 971 435 082
- ---
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.4 (MingW32)

iD8DBQFFxy+5p9m/F5UenDoRAt+wAJ9zzqZhlY92NOwFR7n6AOJ4g7tyvwCgs7E3
0DktK0H3WAHSIOkHcmfHlnU=
=6N+9
-END PGP SIGNATURE-

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






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



RE: compile tries to bundle up the ear - should it?

2007-02-05 Thread Greg Jones
The modules need to be downloaded since they are dependencies at compile
time (the default), even in an EAR package. Modules will never be picked up
from their target directories (part of the design of Maven). You need to run
'mvn install' on the other modules to ensure they are in your local
repository at least before running a build in the EAR module.

Hope this helps.

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 6 February 2007 8:19 AM
To: Maven Users List
Subject: RE: compile tries to bundle up the ear - should it?

Still haven't seen any response - this has us wedged, can anyone shed any
light on this for me? 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 31, 2007 6:23 PM
To: Maven Users List
Subject: compile tries to bundle up the ear - should it?

I'm running just compile but one module that has an ear artifact is trying
to bundle up the ear file (which subsequently fails because the war and ejbs
don't exist).  
 
Is this supposed to happen or is this something I've misconfigured:

[INFO]



[INFO] Building ltyApp_ear

[INFO]task-segment: [compile]

[INFO]



Downloading:
file:\\build.corp.upromise.com/maven2/lty/upErrorEJB/1.0-SNAPSHOT/upErro
rEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/salesscriptEJB/1.0-SNAPSHOT/sa
lesscriptEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/transferEJB/1.0-SNAPSHOT/trans
ferEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/transactionEJB/1.0-SNAPSHOT/tr
ansactionEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/CSREJB/1.0-SNAPSHOT/CSREJB-1.0
-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/upAdminEJB/1.0-SNAPSHOT/upAdmi
nEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/inboundenrollmentEJB/1.0-SNAPS
HOT/inboundenrollmentEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/authserverEJB/1.0-SNAPSHOT/aut
hserverEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/communityEJB/1.0-SNAPSHOT/comm
unityEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/accountGuestEJB/1.0-SNAPSHOT/a
ccountGuestEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/testcellEJB/1.0-SNAPSHOT/testc
ellEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/enrollmentEJB/1.0-SNAPSHOT/enr
ollmentEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/partnerEJB/1.0-SNAPSHOT/partne
rEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/groceryEJB/1.0-SNAPSHOT/grocer
yEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/messageEJB/1.0-SNAPSHOT/messag
eEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/memberProfileEJB/1.0-SNAPSHOT/
memberProfileEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/ltyWebApp/1.0-SNAPSHOT/ltyWebA
pp-1.0-SNAPSHOT.war

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:

Ant inside Maven

2007-02-05 Thread Federico Ferrara
Hello!

 

I started a migration plan to Maven 2. I want to know if I could use Ant
inside maven, it is possible?

 

Thanks in advance

Federico

 

 



Re: Ant inside Maven

2007-02-05 Thread Graham Leggett

Federico Ferrara wrote:


I started a migration plan to Maven 2. I want to know if I could use Ant
inside maven, it is possible?


I've successfully done this using the maven-antrun-plugin.

Regards,
Graham
--


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Maven 1.1 Multiproject:site-deploy Directories not created.

2007-02-05 Thread Lukas Theussl
Any more information you could provide about why it failed to create the 
needed directories (run with the -e option)? The directory that is used 
to copy the files to is taken from either the maven.site.stage.directory 
property or (if this is not set) the pom.siteDirectory setting in your 
project.xml. You might check your permissions there, etc.


HTH,
-Lukas

alonushhh wrote:

Hi,

I'm using jdk1.5.0_03  with maven 1.1.

I ran multiproject:site-deploy which ran site:generate on all of my
subprojects successfully, but when it started to deploy the site using the
file system method, it failed to create the needed directories.

Is there a property or a goal that I need to run to create the directory
hierarchy from my target/docs directory to my deploy directory?

-- Thanks



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



RE: compile tries to bundle up the ear - should it?

2007-02-05 Thread EJ Ciramella
Wait - even if I'm simply doing a compile?  Why should it start trying
to build an ear?

I tried a mvn compile that results in all kinds of failures cause it
tries to build up an ear (and there's no war/ejbs to include).

The ear file building is linked to the compile lifecycle phase?

 

-Original Message-
From: Greg Jones [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 05, 2007 4:40 PM
To: 'Maven Users List'
Subject: RE: compile tries to bundle up the ear - should it?

The modules need to be downloaded since they are dependencies at compile
time (the default), even in an EAR package. Modules will never be picked
up
from their target directories (part of the design of Maven). You need to
run
'mvn install' on the other modules to ensure they are in your local
repository at least before running a build in the EAR module.

Hope this helps.

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 6 February 2007 8:19 AM
To: Maven Users List
Subject: RE: compile tries to bundle up the ear - should it?

Still haven't seen any response - this has us wedged, can anyone shed
any
light on this for me? 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 31, 2007 6:23 PM
To: Maven Users List
Subject: compile tries to bundle up the ear - should it?

I'm running just compile but one module that has an ear artifact is
trying
to bundle up the ear file (which subsequently fails because the war and
ejbs
don't exist).  
 
Is this supposed to happen or is this something I've misconfigured:

[INFO]



[INFO] Building ltyApp_ear

[INFO]task-segment: [compile]

[INFO]



Downloading:
file:\\build.corp.upromise.com/maven2/lty/upErrorEJB/1.0-SNAPSHOT/upErro
rEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/salesscriptEJB/1.0-SNAPSHOT/sa
lesscriptEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/transferEJB/1.0-SNAPSHOT/trans
ferEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/transactionEJB/1.0-SNAPSHOT/tr
ansactionEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/CSREJB/1.0-SNAPSHOT/CSREJB-1.0
-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/upAdminEJB/1.0-SNAPSHOT/upAdmi
nEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/inboundenrollmentEJB/1.0-SNAPS
HOT/inboundenrollmentEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/authserverEJB/1.0-SNAPSHOT/aut
hserverEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/communityEJB/1.0-SNAPSHOT/comm
unityEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/accountGuestEJB/1.0-SNAPSHOT/a
ccountGuestEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/testcellEJB/1.0-SNAPSHOT/testc
ellEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/enrollmentEJB/1.0-SNAPSHOT/enr
ollmentEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/partnerEJB/1.0-SNAPSHOT/partne
rEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/groceryEJB/1.0-SNAPSHOT/grocer
yEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/messageEJB/1.0-SNAPSHOT/messag
eEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:

Re: 'dependency:copy' does not work

2007-02-05 Thread Dan Tran

Do you have artifactItems element defined in your configuration?

On 2/5/07, Riboe, Jens [EMAIL PROTECTED] wrote:


I did a cut-and-paste from the docs of the dependency plug-in

http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying
-artifacts.html
To troubleshoot my configuration of 'dependency:copy'

However, I still get the same error as shown below. What am I doing
wrong and how is that reflected in the online docs?

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] One or more required plugin parameters are invalid/missing for
'dependency:copy'

[0] inside the definition for plugin: 'maven-dependency-plugin'specify
the following:

configuration
...
artifactItemsVALUE/artifactItems
/configuration.

[INFO]

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

[INFO] Total time: 4 seconds
[INFO] Finished at: Mon Feb 05 22:18:41 GMT 2007
[INFO] Final Memory: 8M/15M
[INFO]



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




Build error when using Build All button

2007-02-05 Thread Chris Russell

Hello,

I just created a new project in Continuum 1.0.3.
I built each project individually (there are 5) and each was successful.

My error occurs when I hit Build All. 3 of my 5 projects fail with the 
following error:


Provider message: The svn command failed.
Command output: 
---

svn: Directory 'target/.svn' containing working copy admin area is missing
---

Once I get this error, I try to build each project individually again 
and they fail.


Any ideas?

Thanks in advance,
Chris


Re: Maven shell

2007-02-05 Thread Nigel Magnay


 I did something simple in .net (mostly because when I go near the
 maven codebase, the vast array of poorly documented dependences like
 plexus scares me and I don't have the time to figure it all out),
 but

That's also what is refraining me ! I love using maven, I think the
people behind it did a great job, but contributing on your spare time
is somewhat challenging as coding information is lacking, particularly
as you noted it on related projects.



I think the documentation is getting better - it's a shame that maven
has a whiff of wheel-reinventing going on which is disappointing
(plexus not spring, wagon not vfs) - which means these technologies
have to be grasped that are *only* useful to maven. I gave up trying
to fix bugs because the barrier to entry is just too great for the
time I have :-(


 I think a decent editor that didn't force people to hack XML would be
 nice, as well as the ability to do things like
 - detect possibly unneded dependencies

Could you please elaborate on this ? Do you think about something like
extracting dependencies from compiled classes and inferring unused
deps ?


That kind of thing would be good, but also something simple like A and
B are both modules of C, and all have dependency X, so you couild
remove it.



 - promote common dependencies to a parent pom

Something like easy dependencyManagement ?


Yes - exactly that.


 - UI for setting up common plugins (compile, report, assembly)


Could you please elaborate on this one too ?



What I've got is :
Tree View on left hand side, with hierarchy of POM projects (modules
shown as children).
Click on a POM item, right-hand-side is tabbed dialog, with various
sections (build, dependencies, plugins, etc).

For plugins, it'd be nice to have a GUI for setting up, say,  reports,
with textboxes to fill in rather than having to remember the right XML
values.



BTW, did you try the pomtools plugin ?


Yep - the tree looks rather like what I did for the dependencies view.
I'm after more of a GUI thing - I find some stuff like the archetype
generator is useful, but I use it so rarely that in the interval
between uses I've forgotten all the required parameters, and it ends
up taking me longer tracking them down than crafting a new POM from
adjusting a similar existing one...

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



RE: compile tries to bundle up the ear - should it?

2007-02-05 Thread Greg Jones
It hasn't tried to build the EAR yet:

 [INFO] Building ltyApp_ear
 [INFO]task-segment: [compile]

You have specified 'mvn compile' in the EAR project and it is simply trying
to download dependencies at this stage so it can do the compile.

My suggestion would be to not run the compile phase explicitly, particularly
in the EAR module, but run 'mvn install' even if you are building virtually
empty artifacts for the other components. In other words, get the whole
build process working correctly first.

Alternatively, the next best thing to do would be to remove the EAR module
from your modules list for now until you have everything else to a stage
where the repository has all of the artifacts required to build an EAR.

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 6 February 2007 9:42 AM
To: Maven Users List
Subject: RE: compile tries to bundle up the ear - should it?

Wait - even if I'm simply doing a compile?  Why should it start trying to
build an ear?

I tried a mvn compile that results in all kinds of failures cause it tries
to build up an ear (and there's no war/ejbs to include).

The ear file building is linked to the compile lifecycle phase?

 

-Original Message-
From: Greg Jones [mailto:[EMAIL PROTECTED]
Sent: Monday, February 05, 2007 4:40 PM
To: 'Maven Users List'
Subject: RE: compile tries to bundle up the ear - should it?

The modules need to be downloaded since they are dependencies at compile
time (the default), even in an EAR package. Modules will never be picked up
from their target directories (part of the design of Maven). You need to run
'mvn install' on the other modules to ensure they are in your local
repository at least before running a build in the EAR module.

Hope this helps.

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 6 February 2007 8:19 AM
To: Maven Users List
Subject: RE: compile tries to bundle up the ear - should it?

Still haven't seen any response - this has us wedged, can anyone shed any
light on this for me? 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 31, 2007 6:23 PM
To: Maven Users List
Subject: compile tries to bundle up the ear - should it?

I'm running just compile but one module that has an ear artifact is trying
to bundle up the ear file (which subsequently fails because the war and ejbs
don't exist).  
 
Is this supposed to happen or is this something I've misconfigured:

[INFO]



[INFO] Building ltyApp_ear

[INFO]task-segment: [compile]

[INFO]



Downloading:
file:\\build.corp.upromise.com/maven2/lty/upErrorEJB/1.0-SNAPSHOT/upErro
rEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/salesscriptEJB/1.0-SNAPSHOT/sa
lesscriptEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/transferEJB/1.0-SNAPSHOT/trans
ferEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/transactionEJB/1.0-SNAPSHOT/tr
ansactionEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/CSREJB/1.0-SNAPSHOT/CSREJB-1.0
-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/upAdminEJB/1.0-SNAPSHOT/upAdmi
nEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/inboundenrollmentEJB/1.0-SNAPS
HOT/inboundenrollmentEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/authserverEJB/1.0-SNAPSHOT/aut
hserverEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/communityEJB/1.0-SNAPSHOT/comm
unityEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/accountGuestEJB/1.0-SNAPSHOT/a
ccountGuestEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/testcellEJB/1.0-SNAPSHOT/testc
ellEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to 

RE: compile tries to bundle up the ear - should it?

2007-02-05 Thread Greg Jones
BTW, I'ce just tried running 'mvn compile' in an EAR module on one of my
projects and the ear plugin substitutes the ear-generate-application-xml
goal for the usual compile goal as explained in
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.ht
ml.

So, it is quite safe to run 'mvn compile' in an EAR module but you need your
dependencies to be available in your repository (local or remote).

-Original Message-
From: Greg Jones [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 6 February 2007 10:05 AM
To: 'Maven Users List'
Subject: RE: compile tries to bundle up the ear - should it?

It hasn't tried to build the EAR yet:

 [INFO] Building ltyApp_ear
 [INFO]task-segment: [compile]

You have specified 'mvn compile' in the EAR project and it is simply trying
to download dependencies at this stage so it can do the compile.

My suggestion would be to not run the compile phase explicitly, particularly
in the EAR module, but run 'mvn install' even if you are building virtually
empty artifacts for the other components. In other words, get the whole
build process working correctly first.

Alternatively, the next best thing to do would be to remove the EAR module
from your modules list for now until you have everything else to a stage
where the repository has all of the artifacts required to build an EAR.

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 6 February 2007 9:42 AM
To: Maven Users List
Subject: RE: compile tries to bundle up the ear - should it?

Wait - even if I'm simply doing a compile?  Why should it start trying to
build an ear?

I tried a mvn compile that results in all kinds of failures cause it tries
to build up an ear (and there's no war/ejbs to include).

The ear file building is linked to the compile lifecycle phase?

 

-Original Message-
From: Greg Jones [mailto:[EMAIL PROTECTED]
Sent: Monday, February 05, 2007 4:40 PM
To: 'Maven Users List'
Subject: RE: compile tries to bundle up the ear - should it?

The modules need to be downloaded since they are dependencies at compile
time (the default), even in an EAR package. Modules will never be picked up
from their target directories (part of the design of Maven). You need to run
'mvn install' on the other modules to ensure they are in your local
repository at least before running a build in the EAR module.

Hope this helps.

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 6 February 2007 8:19 AM
To: Maven Users List
Subject: RE: compile tries to bundle up the ear - should it?

Still haven't seen any response - this has us wedged, can anyone shed any
light on this for me? 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 31, 2007 6:23 PM
To: Maven Users List
Subject: compile tries to bundle up the ear - should it?

I'm running just compile but one module that has an ear artifact is trying
to bundle up the ear file (which subsequently fails because the war and ejbs
don't exist).  
 
Is this supposed to happen or is this something I've misconfigured:

[INFO]



[INFO] Building ltyApp_ear

[INFO]task-segment: [compile]

[INFO]



Downloading:
file:\\build.corp.upromise.com/maven2/lty/upErrorEJB/1.0-SNAPSHOT/upErro
rEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/salesscriptEJB/1.0-SNAPSHOT/sa
lesscriptEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/transferEJB/1.0-SNAPSHOT/trans
ferEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/transactionEJB/1.0-SNAPSHOT/tr
ansactionEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/CSREJB/1.0-SNAPSHOT/CSREJB-1.0
-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/upAdminEJB/1.0-SNAPSHOT/upAdmi
nEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/inboundenrollmentEJB/1.0-SNAPS
HOT/inboundenrollmentEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/authserverEJB/1.0-SNAPSHOT/aut
hserverEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from 

RE: compile tries to bundle up the ear - should it?

2007-02-05 Thread EJ Ciramella
So if (in my case) we do a compile prior to running findbugs each night
(a case where we DON'T need an ear file), I'm going to have to start
performing a mvn install instead?

P.S - this is running via cruisecontrol and always from the top
directory.  We're very used to an ant based build where we can run
various stages as we wish.  Compile being a very desirable thing.  If we
can no longer run compile to compile source without having to wait for a
much longer process (unit tests, site building, atg assembler, ejb
building, war building then finally ear building), I think I may be in a
bind (being the soul release engineer forced to support maven 2).

Can I forcefully de-couple these two things? 

-Original Message-
From: Greg Jones [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 05, 2007 6:05 PM
To: 'Maven Users List'
Subject: RE: compile tries to bundle up the ear - should it?

It hasn't tried to build the EAR yet:

 [INFO] Building ltyApp_ear
 [INFO]task-segment: [compile]

You have specified 'mvn compile' in the EAR project and it is simply
trying
to download dependencies at this stage so it can do the compile.

My suggestion would be to not run the compile phase explicitly,
particularly
in the EAR module, but run 'mvn install' even if you are building
virtually
empty artifacts for the other components. In other words, get the whole
build process working correctly first.

Alternatively, the next best thing to do would be to remove the EAR
module
from your modules list for now until you have everything else to a stage
where the repository has all of the artifacts required to build an EAR.

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 6 February 2007 9:42 AM
To: Maven Users List
Subject: RE: compile tries to bundle up the ear - should it?

Wait - even if I'm simply doing a compile?  Why should it start trying
to
build an ear?

I tried a mvn compile that results in all kinds of failures cause it
tries
to build up an ear (and there's no war/ejbs to include).

The ear file building is linked to the compile lifecycle phase?

 

-Original Message-
From: Greg Jones [mailto:[EMAIL PROTECTED]
Sent: Monday, February 05, 2007 4:40 PM
To: 'Maven Users List'
Subject: RE: compile tries to bundle up the ear - should it?

The modules need to be downloaded since they are dependencies at compile
time (the default), even in an EAR package. Modules will never be picked
up
from their target directories (part of the design of Maven). You need to
run
'mvn install' on the other modules to ensure they are in your local
repository at least before running a build in the EAR module.

Hope this helps.

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 6 February 2007 8:19 AM
To: Maven Users List
Subject: RE: compile tries to bundle up the ear - should it?

Still haven't seen any response - this has us wedged, can anyone shed
any
light on this for me? 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 31, 2007 6:23 PM
To: Maven Users List
Subject: compile tries to bundle up the ear - should it?

I'm running just compile but one module that has an ear artifact is
trying
to bundle up the ear file (which subsequently fails because the war and
ejbs
don't exist).  
 
Is this supposed to happen or is this something I've misconfigured:

[INFO]



[INFO] Building ltyApp_ear

[INFO]task-segment: [compile]

[INFO]



Downloading:
file:\\build.corp.upromise.com/maven2/lty/upErrorEJB/1.0-SNAPSHOT/upErro
rEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/salesscriptEJB/1.0-SNAPSHOT/sa
lesscriptEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/transferEJB/1.0-SNAPSHOT/trans
ferEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/transactionEJB/1.0-SNAPSHOT/tr
ansactionEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/CSREJB/1.0-SNAPSHOT/CSREJB-1.0
-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/upAdminEJB/1.0-SNAPSHOT/upAdmi
nEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/inboundenrollmentEJB/1.0-SNAPS

RE: compile tries to bundle up the ear - should it?

2007-02-05 Thread EJ Ciramella
Again, I'm sitting at the top most pom level and running mvn compile.
No one here expects to cd around to build the various modules. 

-Original Message-
From: Greg Jones [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 05, 2007 6:14 PM
To: 'Maven Users List'
Subject: RE: compile tries to bundle up the ear - should it?

BTW, I'ce just tried running 'mvn compile' in an EAR module on one of my
projects and the ear plugin substitutes the ear-generate-application-xml
goal for the usual compile goal as explained in
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycl
e.ht
ml.

So, it is quite safe to run 'mvn compile' in an EAR module but you need
your
dependencies to be available in your repository (local or remote).

-Original Message-
From: Greg Jones [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 6 February 2007 10:05 AM
To: 'Maven Users List'
Subject: RE: compile tries to bundle up the ear - should it?

It hasn't tried to build the EAR yet:

 [INFO] Building ltyApp_ear
 [INFO]task-segment: [compile]

You have specified 'mvn compile' in the EAR project and it is simply
trying
to download dependencies at this stage so it can do the compile.

My suggestion would be to not run the compile phase explicitly,
particularly
in the EAR module, but run 'mvn install' even if you are building
virtually
empty artifacts for the other components. In other words, get the whole
build process working correctly first.

Alternatively, the next best thing to do would be to remove the EAR
module
from your modules list for now until you have everything else to a stage
where the repository has all of the artifacts required to build an EAR.

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 6 February 2007 9:42 AM
To: Maven Users List
Subject: RE: compile tries to bundle up the ear - should it?

Wait - even if I'm simply doing a compile?  Why should it start trying
to
build an ear?

I tried a mvn compile that results in all kinds of failures cause it
tries
to build up an ear (and there's no war/ejbs to include).

The ear file building is linked to the compile lifecycle phase?

 

-Original Message-
From: Greg Jones [mailto:[EMAIL PROTECTED]
Sent: Monday, February 05, 2007 4:40 PM
To: 'Maven Users List'
Subject: RE: compile tries to bundle up the ear - should it?

The modules need to be downloaded since they are dependencies at compile
time (the default), even in an EAR package. Modules will never be picked
up
from their target directories (part of the design of Maven). You need to
run
'mvn install' on the other modules to ensure they are in your local
repository at least before running a build in the EAR module.

Hope this helps.

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 6 February 2007 8:19 AM
To: Maven Users List
Subject: RE: compile tries to bundle up the ear - should it?

Still haven't seen any response - this has us wedged, can anyone shed
any
light on this for me? 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 31, 2007 6:23 PM
To: Maven Users List
Subject: compile tries to bundle up the ear - should it?

I'm running just compile but one module that has an ear artifact is
trying
to bundle up the ear file (which subsequently fails because the war and
ejbs
don't exist).  
 
Is this supposed to happen or is this something I've misconfigured:

[INFO]



[INFO] Building ltyApp_ear

[INFO]task-segment: [compile]

[INFO]



Downloading:
file:\\build.corp.upromise.com/maven2/lty/upErrorEJB/1.0-SNAPSHOT/upErro
rEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/salesscriptEJB/1.0-SNAPSHOT/sa
lesscriptEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/transferEJB/1.0-SNAPSHOT/trans
ferEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/transactionEJB/1.0-SNAPSHOT/tr
ansactionEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/CSREJB/1.0-SNAPSHOT/CSREJB-1.0
-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/upAdminEJB/1.0-SNAPSHOT/upAdmi
nEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:

RE: 'dependency:copy' does not work

2007-02-05 Thread Riboe, Jens
 Do you have artifactItems element defined in your configuration?
Yes. Exactly as stated in the docs 
 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId
executions
  execution
idcopy/id
phasepackage/phase
goals
  goalcopy/goal
/goals
configuration
  artifactItems
artifactItem
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
  typejar/type
  overWritefalse/overWrite
 
outputDirectory${project.build.directory}/alternateLocation/outputDir
ectory
  destFileNameoptional-new-name.jar/destFileName
/artifactItem
  /artifactItems
 
outputDirectory${project.build.directory}/wars/outputDirectory
  overWriteReleasesfalse/overWriteReleases
  overWriteSnapshotstrue/overWriteSnapshots
/configuration
  /execution
/executions
  /plugin



 -Original Message-
 From: Dan Tran [mailto:[EMAIL PROTECTED]
 Sent: den 5 februari 2007 22:52
 To: Maven Users List
 Subject: Re: 'dependency:copy' does not work
 
 Do you have artifactItems element defined in your configuration?
 
 On 2/5/07, Riboe, Jens [EMAIL PROTECTED] wrote:
 
  I did a cut-and-paste from the docs of the dependency plug-in
 
 
http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying
  -artifacts.html
  To troubleshoot my configuration of 'dependency:copy'
 
  However, I still get the same error as shown below. What am I doing
  wrong and how is that reflected in the online docs?
 
  [INFO]
 

  [ERROR] BUILD ERROR
  [INFO]
 

  [INFO] One or more required plugin parameters are invalid/missing
for
  'dependency:copy'
 
  [0] inside the definition for plugin:
'maven-dependency-plugin'specify
  the following:
 
  configuration
  ...
  artifactItemsVALUE/artifactItems
  /configuration.
 
  [INFO]
 

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

  [INFO] Total time: 4 seconds
  [INFO] Finished at: Mon Feb 05 22:18:41 GMT 2007
  [INFO] Final Memory: 8M/15M
  [INFO]
 

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

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



RE: compile tries to bundle up the ear - should it?

2007-02-05 Thread Greg Jones
You need to run 'mvn install' at least once to ensure your dependencies are
in a repository. In fact, if your cruisecontrol build is running on another
machine, you will need to run 'mvn deploy' at least once to get a snapshot
in your corporate repository.

Then, you can run 'mvn compile' at will, as long as your Java sources don't
change enough to make your compiles fail.

Having said that, I would recommend that you run 'mvn clean deploy' every
night so that you are getting a complete build and test-cycle run every
night (or use a continuous integration server like Continuum). You can also
add the 'findbugs' report to your projects so this is run for you
automatically as well.


-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 6 February 2007 10:18 AM
To: Maven Users List
Subject: RE: compile tries to bundle up the ear - should it?

So if (in my case) we do a compile prior to running findbugs each night (a
case where we DON'T need an ear file), I'm going to have to start performing
a mvn install instead?

P.S - this is running via cruisecontrol and always from the top directory.
We're very used to an ant based build where we can run various stages as we
wish.  Compile being a very desirable thing.  If we can no longer run
compile to compile source without having to wait for a much longer process
(unit tests, site building, atg assembler, ejb building, war building then
finally ear building), I think I may be in a bind (being the soul release
engineer forced to support maven 2).

Can I forcefully de-couple these two things? 

-Original Message-
From: Greg Jones [mailto:[EMAIL PROTECTED]
Sent: Monday, February 05, 2007 6:05 PM
To: 'Maven Users List'
Subject: RE: compile tries to bundle up the ear - should it?

It hasn't tried to build the EAR yet:

 [INFO] Building ltyApp_ear
 [INFO]task-segment: [compile]

You have specified 'mvn compile' in the EAR project and it is simply trying
to download dependencies at this stage so it can do the compile.

My suggestion would be to not run the compile phase explicitly, particularly
in the EAR module, but run 'mvn install' even if you are building virtually
empty artifacts for the other components. In other words, get the whole
build process working correctly first.

Alternatively, the next best thing to do would be to remove the EAR module
from your modules list for now until you have everything else to a stage
where the repository has all of the artifacts required to build an EAR.

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 6 February 2007 9:42 AM
To: Maven Users List
Subject: RE: compile tries to bundle up the ear - should it?

Wait - even if I'm simply doing a compile?  Why should it start trying to
build an ear?

I tried a mvn compile that results in all kinds of failures cause it tries
to build up an ear (and there's no war/ejbs to include).

The ear file building is linked to the compile lifecycle phase?

 

-Original Message-
From: Greg Jones [mailto:[EMAIL PROTECTED]
Sent: Monday, February 05, 2007 4:40 PM
To: 'Maven Users List'
Subject: RE: compile tries to bundle up the ear - should it?

The modules need to be downloaded since they are dependencies at compile
time (the default), even in an EAR package. Modules will never be picked up
from their target directories (part of the design of Maven). You need to run
'mvn install' on the other modules to ensure they are in your local
repository at least before running a build in the EAR module.

Hope this helps.

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 6 February 2007 8:19 AM
To: Maven Users List
Subject: RE: compile tries to bundle up the ear - should it?

Still haven't seen any response - this has us wedged, can anyone shed any
light on this for me? 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 31, 2007 6:23 PM
To: Maven Users List
Subject: compile tries to bundle up the ear - should it?

I'm running just compile but one module that has an ear artifact is trying
to bundle up the ear file (which subsequently fails because the war and ejbs
don't exist).  
 
Is this supposed to happen or is this something I've misconfigured:

[INFO]



[INFO] Building ltyApp_ear

[INFO]task-segment: [compile]

[INFO]



Downloading:
file:\\build.corp.upromise.com/maven2/lty/upErrorEJB/1.0-SNAPSHOT/upErro
rEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/salesscriptEJB/1.0-SNAPSHOT/sa
lesscriptEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:

RE: compile tries to bundle up the ear - should it?

2007-02-05 Thread EJ Ciramella
Yeah, I mentioned cruisecontrol, just not looking forward to telling
developers they need to run the install process now even if all they
want is a simple compile.

I still don't see any good reason why you'd have to build up an ejb file
(or war or ear) just to get your classes to compile.  These things
shouldn't even be attempted until the package stage.  

This seems like a shortcoming. 

-Original Message-
From: Greg Jones [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 05, 2007 6:29 PM
To: 'Maven Users List'
Subject: RE: compile tries to bundle up the ear - should it?

You need to run 'mvn install' at least once to ensure your dependencies
are
in a repository. In fact, if your cruisecontrol build is running on
another
machine, you will need to run 'mvn deploy' at least once to get a
snapshot
in your corporate repository.

Then, you can run 'mvn compile' at will, as long as your Java sources
don't
change enough to make your compiles fail.

Having said that, I would recommend that you run 'mvn clean deploy'
every
night so that you are getting a complete build and test-cycle run every
night (or use a continuous integration server like Continuum). You can
also
add the 'findbugs' report to your projects so this is run for you
automatically as well.


-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 6 February 2007 10:18 AM
To: Maven Users List
Subject: RE: compile tries to bundle up the ear - should it?

So if (in my case) we do a compile prior to running findbugs each night
(a
case where we DON'T need an ear file), I'm going to have to start
performing
a mvn install instead?

P.S - this is running via cruisecontrol and always from the top
directory.
We're very used to an ant based build where we can run various stages as
we
wish.  Compile being a very desirable thing.  If we can no longer run
compile to compile source without having to wait for a much longer
process
(unit tests, site building, atg assembler, ejb building, war building
then
finally ear building), I think I may be in a bind (being the soul
release
engineer forced to support maven 2).

Can I forcefully de-couple these two things? 

-Original Message-
From: Greg Jones [mailto:[EMAIL PROTECTED]
Sent: Monday, February 05, 2007 6:05 PM
To: 'Maven Users List'
Subject: RE: compile tries to bundle up the ear - should it?

It hasn't tried to build the EAR yet:

 [INFO] Building ltyApp_ear
 [INFO]task-segment: [compile]

You have specified 'mvn compile' in the EAR project and it is simply
trying
to download dependencies at this stage so it can do the compile.

My suggestion would be to not run the compile phase explicitly,
particularly
in the EAR module, but run 'mvn install' even if you are building
virtually
empty artifacts for the other components. In other words, get the whole
build process working correctly first.

Alternatively, the next best thing to do would be to remove the EAR
module
from your modules list for now until you have everything else to a stage
where the repository has all of the artifacts required to build an EAR.

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 6 February 2007 9:42 AM
To: Maven Users List
Subject: RE: compile tries to bundle up the ear - should it?

Wait - even if I'm simply doing a compile?  Why should it start trying
to
build an ear?

I tried a mvn compile that results in all kinds of failures cause it
tries
to build up an ear (and there's no war/ejbs to include).

The ear file building is linked to the compile lifecycle phase?

 

-Original Message-
From: Greg Jones [mailto:[EMAIL PROTECTED]
Sent: Monday, February 05, 2007 4:40 PM
To: 'Maven Users List'
Subject: RE: compile tries to bundle up the ear - should it?

The modules need to be downloaded since they are dependencies at compile
time (the default), even in an EAR package. Modules will never be picked
up
from their target directories (part of the design of Maven). You need to
run
'mvn install' on the other modules to ensure they are in your local
repository at least before running a build in the EAR module.

Hope this helps.

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 6 February 2007 8:19 AM
To: Maven Users List
Subject: RE: compile tries to bundle up the ear - should it?

Still haven't seen any response - this has us wedged, can anyone shed
any
light on this for me? 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 31, 2007 6:23 PM
To: Maven Users List
Subject: compile tries to bundle up the ear - should it?

I'm running just compile but one module that has an ear artifact is
trying
to bundle up the ear file (which subsequently fails because the war and
ejbs
don't exist).  
 
Is this supposed to happen or is this something I've misconfigured:

[INFO]



[INFO] Building ltyApp_ear

RE: 'dependency:copy' does not work

2007-02-05 Thread Brian E. Fox
I think you are having this problem I described here:
http://www.nabble.com/dependency-plugin-at-maven.org-tf3019806.html#a840
6709

(assuming you are copying dependency:copy from the command line?)

-Original Message-
From: Riboe, Jens [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 05, 2007 6:22 PM
To: Maven Users List
Subject: RE: 'dependency:copy' does not work

 Do you have artifactItems element defined in your configuration?
Yes. Exactly as stated in the docs 
 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId
executions
  execution
idcopy/id
phasepackage/phase
goals
  goalcopy/goal
/goals
configuration
  artifactItems
artifactItem
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
  typejar/type
  overWritefalse/overWrite
 
outputDirectory${project.build.directory}/alternateLocation/outputDir
ectory
  destFileNameoptional-new-name.jar/destFileName
/artifactItem
  /artifactItems
 
outputDirectory${project.build.directory}/wars/outputDirectory
  overWriteReleasesfalse/overWriteReleases
  overWriteSnapshotstrue/overWriteSnapshots
/configuration
  /execution
/executions
  /plugin



 -Original Message-
 From: Dan Tran [mailto:[EMAIL PROTECTED]
 Sent: den 5 februari 2007 22:52
 To: Maven Users List
 Subject: Re: 'dependency:copy' does not work
 
 Do you have artifactItems element defined in your configuration?
 
 On 2/5/07, Riboe, Jens [EMAIL PROTECTED] wrote:
 
  I did a cut-and-paste from the docs of the dependency plug-in
 
 
http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying
  -artifacts.html
  To troubleshoot my configuration of 'dependency:copy'
 
  However, I still get the same error as shown below. What am I doing
  wrong and how is that reflected in the online docs?
 
  [INFO]
 

  [ERROR] BUILD ERROR
  [INFO]
 

  [INFO] One or more required plugin parameters are invalid/missing
for
  'dependency:copy'
 
  [0] inside the definition for plugin:
'maven-dependency-plugin'specify
  the following:
 
  configuration
  ...
  artifactItemsVALUE/artifactItems
  /configuration.
 
  [INFO]
 

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

  [INFO] Total time: 4 seconds
  [INFO] Finished at: Mon Feb 05 22:18:41 GMT 2007
  [INFO] Final Memory: 8M/15M
  [INFO]
 

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

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



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



RE: Build error when using Build All button

2007-02-05 Thread Morgovsky, Alexander \(US - Glen Mills\)
Try clearing your checkout directory.  Thanks. 

-Original Message-
From: Chris Russell [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 05, 2007 5:55 PM
To: continuum-users@maven.apache.org
Subject: Build error when using Build All button

Hello,

I just created a new project in Continuum 1.0.3.
I built each project individually (there are 5) and each was successful.

My error occurs when I hit Build All. 3 of my 5 projects fail with the

following error:

Provider message: The svn command failed.
Command output: 

---
svn: Directory 'target/.svn' containing working copy admin area is
missing

---

Once I get this error, I try to build each project individually again 
and they fail.

Any ideas?

Thanks in advance,
Chris 


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


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


RE: compile tries to bundle up the ear - should it?

2007-02-05 Thread Greg Jones
Hopefully they're all using Eclipse and they can run 'mvn eclipse:eclipse'
to generate the Eclipse project files they need so that they can compile
their Java code as they develop.

You don't need to build your EJB, WAR and EAR files just to get your classes
to compile UNLESS other modules depend on them.

For example, if I have modules A, B and C and module B is dependent on A but
C is independent of both of them, I can build C without needing access to
artifacts from A and B. If, however, I want to build B, I will need access
to A.jar. A.jar would normally come from my local repository since I've run
'mvn clean install' in module A.

The whole point is that you've decided when designing your project structure
that A, B and C are separately managed modules (with dependencies between
them). Therefore, to access A's classes from B you need to package them in
some way. In Maven, the way to do this is to package them as a jar file and
place them in your local repository (and eventually in your snapshot
repository and, finally, in your production repository).

As for running tests, developers can turn off running the tests during their
development cycle (see the Maven Website for details). The actual
package/install steps of creating a jar and copying it to a local repository
are very quick so no developer is really going to notice the lost time.

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 6 February 2007 10:37 AM
To: Maven Users List
Subject: RE: compile tries to bundle up the ear - should it?

Yeah, I mentioned cruisecontrol, just not looking forward to telling
developers they need to run the install process now even if all they want is
a simple compile.

I still don't see any good reason why you'd have to build up an ejb file (or
war or ear) just to get your classes to compile.  These things shouldn't
even be attempted until the package stage.  

This seems like a shortcoming. 

-Original Message-
From: Greg Jones [mailto:[EMAIL PROTECTED]
Sent: Monday, February 05, 2007 6:29 PM
To: 'Maven Users List'
Subject: RE: compile tries to bundle up the ear - should it?

You need to run 'mvn install' at least once to ensure your dependencies are
in a repository. In fact, if your cruisecontrol build is running on another
machine, you will need to run 'mvn deploy' at least once to get a snapshot
in your corporate repository.

Then, you can run 'mvn compile' at will, as long as your Java sources don't
change enough to make your compiles fail.

Having said that, I would recommend that you run 'mvn clean deploy'
every
night so that you are getting a complete build and test-cycle run every
night (or use a continuous integration server like Continuum). You can also
add the 'findbugs' report to your projects so this is run for you
automatically as well.


-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 6 February 2007 10:18 AM
To: Maven Users List
Subject: RE: compile tries to bundle up the ear - should it?

So if (in my case) we do a compile prior to running findbugs each night (a
case where we DON'T need an ear file), I'm going to have to start performing
a mvn install instead?

P.S - this is running via cruisecontrol and always from the top directory.
We're very used to an ant based build where we can run various stages as we
wish.  Compile being a very desirable thing.  If we can no longer run
compile to compile source without having to wait for a much longer process
(unit tests, site building, atg assembler, ejb building, war building then
finally ear building), I think I may be in a bind (being the soul release
engineer forced to support maven 2).

Can I forcefully de-couple these two things? 

-Original Message-
From: Greg Jones [mailto:[EMAIL PROTECTED]
Sent: Monday, February 05, 2007 6:05 PM
To: 'Maven Users List'
Subject: RE: compile tries to bundle up the ear - should it?

It hasn't tried to build the EAR yet:

 [INFO] Building ltyApp_ear
 [INFO]task-segment: [compile]

You have specified 'mvn compile' in the EAR project and it is simply trying
to download dependencies at this stage so it can do the compile.

My suggestion would be to not run the compile phase explicitly, particularly
in the EAR module, but run 'mvn install' even if you are building virtually
empty artifacts for the other components. In other words, get the whole
build process working correctly first.

Alternatively, the next best thing to do would be to remove the EAR module
from your modules list for now until you have everything else to a stage
where the repository has all of the artifacts required to build an EAR.

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 6 February 2007 9:42 AM
To: Maven Users List
Subject: RE: compile tries to bundle up the ear - should it?

Wait - even if I'm simply doing a compile?  Why should it start trying to
build an ear?

I tried a mvn compile that results in all kinds 

Profile Properties Defined In Settings.xml Within Multi-Project Environment

2007-02-05 Thread jtdeane

I have defined a profile within my settings.xml file (located in
maven/config) and activated it:


 
wps-profile
 
1.4-SNAPSHOT
1.3-SNAPSHOT
 

   
   
  wps-profile
   

I then utilized those profile properties throughout a multi-project
hierarchy. Everything resolves and builds if I execute an mvn install from
the hierarchies top level POM. However, if I go into a lower level POM.xml
and execute those commands the properties do not resolve. 

My understanding is that profiles defined within settings.xml are global so
is this a defect? Or is there something I am missing?? Any ideas or
solutions would be truly appreciated. Thank you!

-- 
View this message in context: 
http://www.nabble.com/Profile-Properties-Defined-In-Settings.xml-Within-Multi-Project-Environment-tf3178303s177.html#a8819516
Sent from the Maven - Users mailing list archive at Nabble.com.


RE: Properties for pom.xml

2007-02-05 Thread franz see

Good day to you, Rahamim,

Although I haven't tried it, I am guessing yes with the help of Maven Remote
Resources plugin.

To make your properties file available in the remote repository, pack that
properties file into a binary and deploy it in your remote repository.

And to be able to use that properties file for filtering, retrieve it in
your other maven projects by using the maven remote resources plugin ( see
[1] on how to use it ), and set the location of the filter files ( see [2]
).

Cheers,
Franz

[1] http://maven.apache.org/plugins/maven-remote-resources-plugin/usage.html
[2]
http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html


Rahamim, Zvi (Zvi) wrote:
 
 Thank for your answer,
 I want to clarify my motivation:
 I want that all my pom.xml files (and there are many) have the
 properties and values in a property file that resides on my repository.
 I only need to load them into the pom.xml so that it could see them,
 Is there a way to do so?
 Thanks again!
 Zvi. 
 
 -Original Message-
 From: franz see [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, February 04, 2007 5:35 PM
 To: users@maven.apache.org
 Subject: Re: Properties for pom.xml
 
 
 Good day,
 
 Pardon, my answer was incomplete :-)
 
 You may want to use [1] to get the resource, and use [2] to declare that
 file as a filter file ( a file containing properties ).
 
 Cheers,
 Franz
 
 [1] http://maven.apache.org/plugins/maven-remote-resources-plugin/
 [2]
 http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.h
 tml
 
 
 franz see wrote:
 
 Good day to you, Rahamin,
 
 You may want to take a look at [1].
 
 Cheers,
 Franz
 
 [1] http://maven.apache.org/plugins/maven-remote-resources-plugin/
 
 
 Rahamim, Zvi (Zvi) wrote:
 
 Hi,
 Is there a way to tell my pom.xml to load properties from a property 
 file that resides in a remote repository?
 Example for such property file is com/myapp/myprop/A.properties.
 Thanks!
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 --
 View this message in context:
 http://www.nabble.com/POM-Inheritance-tf3164691s177.html#a8793783
 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/POM-Inheritance-tf3164691s177.html#a8819647
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: undefined Dependecy automatically downloaded

2007-02-05 Thread franz see

Good day to you, yuubouna,

You may also wan to take a look at [1] for more info about the Dependency
Mechanism of  Maven2.

Cheers,
Franz

[1] http://docs.codehaus.org/display/MAVENUSER/Dependency+Mechanism


yuubouna wrote:
 
 hello Maria,
 
 Thank for the info, really helps!
 I figure out how to use the exclusions attribute then.  I do have an
 aggregate project, the exclusions attribute to exclude unnecessary
 dependencies.
 
 Thanks!
 
 yuubouna
 

-- 
View this message in context: 
http://www.nabble.com/undefined-Dependecy-automatically-downloaded-tf3146370s177.html#a8819670
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Can't deploy site,Help please.

2007-02-05 Thread 秋秋

Hi,
   I  use apache-tomcat-5.5.17 as a server for the project site,the url is
http://localhost:8080/pcie/, I have added the configuration in the
pom.xmllike this:
distributionManagement
 site
  idmaven/id
  urlscp://localhost:8080/pcie//url
 /site
/distributionManagement

I have start up the server successfull as well as I Have execute site
command,but when I execute site-deploy,I appear the error like this:
FATAL ERROR: Error executing Maven for a project
org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading site
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(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.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error uploading
site
at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java
:184)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:534)
... 8 more
Caused by: org.apache.maven.wagon.authentication.AuthenticationException:
Cannot connect. Reason: invalid server's version string
at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection(
AbstractSshWagon.java:239)
at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143)
at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106)
at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java
:153)
... 10 more
Caused by: com.jcraft.jsch.JSchException: invalid server's version string
at com.jcraft.jsch.Session.connect(Unknown Source)
at com.jcraft.jsch.Session.connect(Unknown Source)
at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection(
AbstractSshWagon.java:228)
... 13 more


what can I do?


[ANN] OpenJPA Maven Plugin 1.0-alpha released

2007-02-05 Thread Rahul Thakur

Hi,

I am pleased to announce the release of OpenJPA Maven Plugin version 
1.0-alpha.


This release includes:
1)   Mojo to invoke OpenJPA PCEnhancer tool on mapped persistable 
classes.

2)   Plugin documentation.

Feedback and suggestions are welcome.

Cheers,

Rahul 



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



RE: Reading the current OS family

2007-02-05 Thread franz see

Good day,

I am not sure whether that is possible. But if you are familiar with the
Maven classes, maybe you could use Reflection Properties ( see [1] ) to get
that ( assuming it was set in your osfamily//os ).

Cheers,
Franz

[1] http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide


Graham Leggett wrote:
 
 On Mon, February 5, 2007 4:26 pm, [EMAIL PROTECTED] wrote:
 
 It might be ${activeProfiles.activeProfile.os.family} (Have'nt tried it)
 
 Didn't work either unfortunately.
 
 Tried a number of variations (put pom. in front, tried pom.os.family),
 but no luck.
 
 Regards,
 Graham
 --
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/RE%3A-Reading-the-current-OS-family-tf3174277s177.html#a8819749
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How to influence the build cycle so that generate-sources recognises changing files?

2007-02-05 Thread franz see

Good day to, Leonardo,

I don't have experience in what you are doing but I think the root of the
problem is that the maven plugin you are using to generate the cup files
given the xml files are not regenerating the cup files. 

You may want to check that  plugin documentation and see whether it has
something to say about that.

Cheers,
Franz


Leonardo Freitas wrote:
 
 Hello,
 
 I have a parser project for multiple languages. A file Parser.xml is used
 to
 generate a series
 of Parser.cup files through the generate-sources phase. This generation
 actually cuts the
 right bits from the .xml into a .cup file.
 
 Next, the .cup file is processed-sources with the maven cup plugin to
 generate a Parser.java
 file. Next, something ismilar happens for the jflex (lexer) files.
 Finally,
 this java files are compiled accordingly.
 
 The problem is that when I change the xml file, maven does not know
 something has changed
 and that the cup file needs to be regenerated. It simply ignores the build
 saying that Parser.cup is upto date,
 when in fact it should be because the .xml file has changed.
 
 Any suggestions on how to ammend this, please? In fact, could any one
 point
 out a clear
 place that explains how to influence/interact with the various lifecycle
 phases?
 
 Best
 Leo
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-influence-the-build-cycle-so-that-generate-sources-recognises-changing-files--tf3175590s177.html#a8819842
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: [m2] how to control the plugin execution order

2007-02-05 Thread Barrie Treloar

http://www.nabble.com/forum/ViewPost.jtp?post=61258framed=yskin=177

Brett Porter wrote:

The order is determined by the build lifecycle. You probably want:

@phase generate-sources

in your plugin.

Within phases, order is currently indeterminate, but we intend for it
to be the order in the POM.



The ordering appears to still be indeterminate.

Is there a bug filed against this?

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



Re: [m2] how to control the plugin execution order

2007-02-05 Thread Barrie Treloar

http://www.nabble.com/forum/ViewPost.jtp?post=8404137framed=yskin=177

claims this is fixed in 2.0.5, any confirmation?

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



Re: Maven shell

2007-02-05 Thread Roland Klein

Tim Kettler schrieb:

Am Sonntag, den 04.02.2007, 10:48 +0100 schrieb Arnaud Bailly:
Hello to all, 
I wonder if there exists or if someone is working on a Maven shell: an

application that would load a pom (or poms) once, do all the
initialization work then wourd accept maven commands or some kind of
language allowing for modification of the pom.

regards,


Hi,

there is the pomtools-maven-plugin [1] in the mojo sandbox.

-Tim

[1] http://mojo.codehaus.org/pomtools-maven-plugin/overview.html


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



Hi,

this seems to be a nice tool, but i didn't find it in ibiblio, repository.codehaus.org, 
snapshots.codehaus.org.

could anybody point me to the correct repo?
Or do i have to compile it myself?

Roland

--
Roland Klein
Tel: +49 40 65803 209
Fax: +49 40 65803 392
[EMAIL PROTECTED]

MTG Marinetechnik GmbH - Wandsbeker Koenigstr. 62 - D 22041 Hamburg

GF Dipl.-Ing. Ullrich Keil
Handelsregister: Abt. B Nr. 11 500 - Amtsgericht Hamburg Abt. 66
USt.-IdNr.: DE 1186 70571


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



RE: 'dependency:copy' does not work

2007-02-05 Thread Riboe, Jens

 I think you are having this problem I described here:
From that entry I got I was able to configure the old one.

I am not really sure I understand the point of publishing a plug-in
description to the Maven site, which does not work when taken directly
from it by cut-and-paste. 

The maven-changelog-plugin is sort of similar in that it is not
available from ibiblio. You get the message 'does not exist or no valid
version could be found' when trying to use it.

Is it not sort of a minimum standard that one at least can trust the
information published on the official web page?

/Jens

 -Original Message-
 From: Brian E. Fox [mailto:[EMAIL PROTECTED]
 Sent: den 5 februari 2007 23:38
 To: Maven Users List
 Subject: RE: 'dependency:copy' does not work
 
 I think you are having this problem I described here:

http://www.nabble.com/dependency-plugin-at-maven.org-tf3019806.html#a840
 6709
 
 (assuming you are copying dependency:copy from the command line?)
 
 -Original Message-
 From: Riboe, Jens [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 05, 2007 6:22 PM
 To: Maven Users List
 Subject: RE: 'dependency:copy' does not work
 
  Do you have artifactItems element defined in your configuration?
 Yes. Exactly as stated in the docs
  plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-dependency-plugin/artifactId
 executions
   execution
 idcopy/id
 phasepackage/phase
 goals
   goalcopy/goal
 /goals
 configuration
   artifactItems
 artifactItem
   groupIdjunit/groupId
   artifactIdjunit/artifactId
   version3.8.1/version
   typejar/type
   overWritefalse/overWrite
 

outputDirectory${project.build.directory}/alternateLocation/outputDir
 ectory
   destFileNameoptional-new-name.jar/destFileName
 /artifactItem
   /artifactItems
 
 outputDirectory${project.build.directory}/wars/outputDirectory
   overWriteReleasesfalse/overWriteReleases
   overWriteSnapshotstrue/overWriteSnapshots
 /configuration
   /execution
 /executions
   /plugin
 
 
 
  -Original Message-
  From: Dan Tran [mailto:[EMAIL PROTECTED]
  Sent: den 5 februari 2007 22:52
  To: Maven Users List
  Subject: Re: 'dependency:copy' does not work
 
  Do you have artifactItems element defined in your configuration?
 
  On 2/5/07, Riboe, Jens [EMAIL PROTECTED] wrote:
  
   I did a cut-and-paste from the docs of the dependency plug-in
  
  

http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying
   -artifacts.html
   To troubleshoot my configuration of 'dependency:copy'
  
   However, I still get the same error as shown below. What am I
doing
   wrong and how is that reflected in the online docs?
  
   [INFO]
  


   [ERROR] BUILD ERROR
   [INFO]
  


   [INFO] One or more required plugin parameters are
invalid/missing
 for
   'dependency:copy'
  
   [0] inside the definition for plugin:
 'maven-dependency-plugin'specify
   the following:
  
   configuration
   ...
   artifactItemsVALUE/artifactItems
   /configuration.
  
   [INFO]
  


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


   [INFO] Total time: 4 seconds
   [INFO] Finished at: Mon Feb 05 22:18:41 GMT 2007
   [INFO] Final Memory: 8M/15M
   [INFO]
  


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