Running both unit and integration tests in the same module

2006-11-27 Thread Julien HENRY
Hi,

I would like to run both unit tests and integration tests in the same project. 
I don't want to create a separate module for integration tests (unlike Better 
Builds With Maven book).

With only one project (and one pom), I want the following lifecycle:

Phase  |Action
-
compile   |  compile src/main/java
...
test-compile|  compile src/test/java
test |   run unit test that are in target/test-classes
...
pre-integration-test | compile src/it/java in target/it-classes
integration-test   |  run it tests that are in target/it-classes


The problem I have is for compiling and running IT tests. The compiler plugin 
only have two goals (compiler:compile and compiler:testCompile). In BBWM book, 
the testCompile goal is customized to fit with src/it directory, but this 
configuration prevent running unit test, because we have to define 
testSourceDirectorysrc/it/testSourceDirectory.

How can I run both unit tests and integration tests ?

Thank you

Julien








___ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com

Re: Running both unit and integration tests in the same module

2006-11-27 Thread Mark Hobson

On 27/11/06, Julien HENRY [EMAIL PROTECTED] wrote:

I would like to run both unit tests and integration tests in the same project. 
I don't want to create a separate module for integration tests (unlike Better 
Builds With Maven book).


You can achieve this, but it's not too pretty.  See:

http://docs.codehaus.org/display/MAVENUSER/Maven+and+Integration+Testing

Mark

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



Re: Proxying released plugins

2006-11-27 Thread Nicolas DE LOOF


See http://jira.codehaus.org/browse/MRM-212 and attached patch.
I'm using a patched archiva with no more bad checksum issue.

Nico.

Brett Porter a écrit :
I think this is a known bug (both the broken metadata, and the 
inability to work with broken metadata).


We need to add a strict flag on the repositories that you can turn 
off, and we need to run archiva on central and clean the 3000+ broken 
metadata files its reporting.


- Brett

On 25/11/2006, at 6:36 AM, Wendy Smoak wrote:


On 11/24/06, Wendy Smoak [EMAIL PROTECTED] wrote:

With central proxied through a managed repository, and that repository
configured as a mirrorOf central in settings.xml, I get:

$ mvn archteype:create -DgroupId=net.wsmoak -DartifactId=my-app


On IRC, srepfler has pointed out that I can't spell archetype.  
Thanks. :)


Having fixed *that* problem, it's still refusing to download the 
plugin...


2006-11-24 12:34:32,218 [btpool0-15] WARN  
ProxyRequestHandler- The
checksum was invalid: 
org/apache/maven/archetype/maven-archetype/1.0-alpha-4/mav
en-archetype-1.0-alpha-4.pom.md5: Supplied checksum does not match 
checksum patt

ern
2006-11-24 12:34:32,218 [btpool0-15] WARN  
ProxyRequestHandler- Skip
ping repository Maven Central: Checksum failures occurred while 
downloading org/
apache/maven/archetype/maven-archetype/1.0-alpha-4/maven-archetype-1.0-alpha-4.p 


om

I'll ask on the dev (or repository?) list.

--Wendy




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



Failed maven-scm-plugin: Check in

2006-11-27 Thread Jeff Mutonho

I'm trying to check in an ear file into CVS .When I run the command
'mvn scm:checkin' , the check in is failing with the following message
:

[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-scm-plugin:1.0-SNAPSHOT
:checkin' --
[DEBUG]   (f) basedir = D:\MAVEN-WORK\eportal-ear
[DEBUG]   (f) connectionType = developerConnection
[DEBUG]   (s) connectionUrl = scm:cvs:pserver:mutonj:[EMAIL PROTECTED]:/var/
lib/cvsroot:pragmaticusEportal/dev/eportal-ear
[DEBUG]   (f) developerConnectionUrl = scm:cvs:pserver:mutonj:[EMAIL PROTECTED]
.14:/var/lib/cvsroot:pragmaticusEportal/dev/eportal-ear
[DEBUG]   (f) includes = **/*.ear
[DEBUG]   (f) message = Ear file test commit
[DEBUG]   (f) settings = [EMAIL PROTECTED]
[DEBUG] -- end configuration --
[INFO] [scm:checkin]
[INFO] Executing: cvs -z3 -f -d :pserver:[EMAIL PROTECTED]:/var/lib/cvsroot
-q commit -R -F C:\DOCUME~1\mutonhj\LOCALS~1\Temp\scm-commit-message61509.txt
[INFO] Working directory: D:\MAVEN-WORK\eportal-ear
[ERROR] Provider message:
[ERROR] The cvs command failed.
[ERROR] Command output:
[ERROR] cvs commit: in directory .:
cvs [commit aborted]: there is no version here; run 'cvs checkout' first

[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Command failed.The cvs command failed.
[INFO] 
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Command failed.The cvs c
ommand failed.


My plugin is configured as shown below :
plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-scm-plugin/artifactId
   version1.0-SNAPSHOT/version
   configuration
connectionUrlscm:cvs:pserver:mutonj:[EMAIL 
PROTECTED]:/var/lib/cvsroot:pragmaticusEportal/dev/eportal-ear//connectionUrl
includes**/*.ear/includes
messageEar file test commit/message
   /configuration
   goals
  goalcheckin/goal
 /goals
 /plugin



I've googled for the error and the  only explanation I can find seems
to be pointing to the idea that I'm trying to add the ear file to a
non-existent sub-directory , which isn't the case because
pragmaticusEportal/dev/eportal-ear/ is indeed existent.


--

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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



Re: Failed maven-scm-plugin: Check in

2006-11-27 Thread Emmanuel Venisse

You can't commit a file if you aren't in a working copy directory.

Emmanuel

Jeff Mutonho a écrit :

I'm trying to check in an ear file into CVS .When I run the command
'mvn scm:checkin' , the check in is failing with the following message
:

[DEBUG] Configuring mojo 
'org.apache.maven.plugins:maven-scm-plugin:1.0-SNAPSHOT

:checkin' --
[DEBUG]   (f) basedir = D:\MAVEN-WORK\eportal-ear
[DEBUG]   (f) connectionType = developerConnection
[DEBUG]   (s) connectionUrl = 
scm:cvs:pserver:mutonj:[EMAIL PROTECTED]:/var/

lib/cvsroot:pragmaticusEportal/dev/eportal-ear
[DEBUG]   (f) developerConnectionUrl = 
scm:cvs:pserver:mutonj:[EMAIL PROTECTED]

.14:/var/lib/cvsroot:pragmaticusEportal/dev/eportal-ear
[DEBUG]   (f) includes = **/*.ear
[DEBUG]   (f) message = Ear file test commit
[DEBUG]   (f) settings = [EMAIL PROTECTED]
[DEBUG] -- end configuration --
[INFO] [scm:checkin]
[INFO] Executing: cvs -z3 -f -d 
:pserver:[EMAIL PROTECTED]:/var/lib/cvsroot
-q commit -R -F 
C:\DOCUME~1\mutonhj\LOCALS~1\Temp\scm-commit-message61509.txt

[INFO] Working directory: D:\MAVEN-WORK\eportal-ear
[ERROR] Provider message:
[ERROR] The cvs command failed.
[ERROR] Command output:
[ERROR] cvs commit: in directory .:
cvs [commit aborted]: there is no version here; run 'cvs checkout' first

[INFO] 


[ERROR] BUILD ERROR
[INFO] 


[INFO] Command failed.The cvs command failed.
[INFO] 


[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Command 
failed.The cvs c

ommand failed.


My plugin is configured as shown below :
plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-scm-plugin/artifactId
   version1.0-SNAPSHOT/version
   configuration

connectionUrlscm:cvs:pserver:mutonj:[EMAIL PROTECTED]:/var/lib/cvsroot:pragmaticusEportal/dev/eportal-ear//connectionUrl 


includes**/*.ear/includes
messageEar file test commit/message
   /configuration
   goals
  goalcheckin/goal
 /goals
 /plugin



I've googled for the error and the  only explanation I can find seems
to be pointing to the idea that I'm trying to add the ear file to a
non-existent sub-directory , which isn't the case because
pragmaticusEportal/dev/eportal-ear/ is indeed existent.





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



Re : Running both unit and integration tests in the same module

2006-11-27 Thread Julien HENRY
OK, so I'll have to wait for Maven 2.1 ;)

Thanks

- Message d'origine 
De : Mark Hobson [EMAIL PROTECTED]
À : Maven Users List users@maven.apache.org
Envoyé le : Lundi, 27 Novembre 2006, 10h33mn 07s
Objet : Re: Running both unit and integration tests in the same module

On 27/11/06, Julien HENRY [EMAIL PROTECTED] wrote:
 I would like to run both unit tests and integration tests in the same 
 project. I don't want to create a separate module for integration tests 
 (unlike Better Builds With Maven book).

You can achieve this, but it's not too pretty.  See:

http://docs.codehaus.org/display/MAVENUSER/Maven+and+Integration+Testing

Mark

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












___ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com

Re: Failed maven-scm-plugin: Check in

2006-11-27 Thread Jeff Mutonho

On 11/27/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:

You can't commit a file if you aren't in a working copy directory.

Emmanuel


Thanks Emmanuel.The log says [INFO] Working directory:
D:\MAVEN-WORK\eportal-ear .Do you mean I should run  this from the
directory where the actual ear file is located (which in my case is
D:\MAVEN-WORK\eportal-ear\target) ?
Is that what you mean by working copy directory.

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



Re: Failed maven-scm-plugin: Check in

2006-11-27 Thread Emmanuel Venisse

A working copy directory is the directory where you done the checkout. For CVS, 
it must contains a CVS directory.

Emmanuel

Jeff Mutonho a écrit :

On 11/27/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:

You can't commit a file if you aren't in a working copy directory.

Emmanuel


Thanks Emmanuel.The log says [INFO] Working directory:
D:\MAVEN-WORK\eportal-ear .Do you mean I should run  this from the
directory where the actual ear file is located (which in my case is
D:\MAVEN-WORK\eportal-ear\target) ?
Is that what you mean by working copy directory.

-
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: Failed maven-scm-plugin: Check in

2006-11-27 Thread Jeff Mutonho

On 11/27/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:

A working copy directory is the directory where you done the checkout. For CVS, 
it must contains a CVS directory.

Emmanuel

Thanks.Seems sorted now.

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



How to do native2ascii?

2006-11-27 Thread jiangshachina

Hi guys,
I must write some resource files related to localization.
On develop time, I have to write natural local language; on runtime,
application must use ASCII codes.
So I have to convert the native resource files to ASCII files before
deploying.

Now, I use maven-antrun-plugin to execute Ant task native2ascii.
The following is my scripts on the work,
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
executions
execution
idresources/id
phaseprocess-resources/phase
configuration
tasks
native2ascii reverse=true 
encoding=UTF8

src=target/sodoperation/WEB-INF/classes

dest=target/sodoperation/WEB-INF/classes
includes=**/*zh_CN.properties 
/
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
dependencies
dependency
groupIdant/groupId
artifactIdant-antlr/artifactId
version1.6.5/version
/dependency
dependency
groupIdantlr/groupId
artifactIdantlrall/artifactId
version2.7.4/version
/dependency
/dependencies
/plugin
When I run mvn package, an error thrown,
[ERROR] BUILD ERROR
[INFO]

[INFO] Error executing ant tasks
Embedded error: Could not create task or type of type: native2ascii.
Ant could not find the task or a class this task relies upon.
..

I need some another jars?
How to resolve the problem?
Thanks in advance.

a cup of Java, cheers!
Sha Jiang
-- 
View this message in context: 
http://www.nabble.com/How-to-do-%22native2ascii%22--tf2710959s177.html#a7557862
Sent from the Maven - Users mailing list archive at Nabble.com.


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



maven-eclipse Plugin does not create .classfile

2006-11-27 Thread Viktor Rees
I'm using maven-eclipse-plugin-1.10. When calling 'maven eclipse' an
uncomplete .project file in created. The .classpath file is missing at
all.
 
In the .project file the entries for javanature and javabuilder are
missing. The generated .project file is here:
 
?xml version=1.0 encoding=UTF-8?
 
projectDescription
  nameprovmgr-presentation/name
  commentJ2EEProvisioningManager web application./comment
  projects
  /projects
/projectDescription
 
 
What could be the reason that the files are not complete?
 
Here is the debug output generated with: maven eclipse - X
 

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

Initializing Plugins!
Set plugin source directory to /tools-local/opt/maven/current/plugins
Set unpacked plugin directory to /export/home/v/vree/.maven/cache
Set user plugin directory to /export/home/v/vree/.maven/plugins
Loading plugin cache
Now mapping cached plugins
Loading plugin 'maven-jar-plugin-WEBDE_PL1-1.7'
Loading plugin 'maven-scm-plugin-1.5'
Loading plugin 'maven-dashboard-plugin-1.9-webde'
Loading plugin 'maven-gump-plugin-2.0.1'
Loading plugin 'maven-multichanges-plugin-1.1'
Loading plugin 'maven-file-activity-plugin-1.5.2'
Loading plugin 'maven-ear-plugin-1.7'
Loading plugin 'maven-xdoc-plugin-1.9.2'
Loading plugin 'maven-jdepend-plugin-1.6'
Loading plugin 'maven-jellydoc-plugin-1.3.1'
Loading plugin 'maven-ejb-plugin-1.7.1'
Loading plugin 'maven-jira-plugin-1.1.2'
Loading plugin 'webde-history-plugin-0.3'
Loading plugin 'maven-developer-activity-plugin-1.5.2'
Loading plugin 'maven-pom-plugin-1.5'
Loading plugin 'maven-jboss-plugin-1.5'
Loading plugin 'webde-history-plugin-0.1'
Loading plugin 'maven-changelog-plugin-1.9.1'
Loading plugin 'maven-plugin-plugin-1.7'
Loading plugin 'maven-faq-plugin-1.5'
Loading plugin 'maven-findbugs-plugin-1.1-WEBDE'
Loading plugin 'maven-ant-plugin-1.9'
Loading plugin 'maven-dist-plugin-1.6.1'
Loading plugin 'maven-javadoc-plugin-1.7'
Loading plugin 'maven-linkcheck-plugin-1.3.4'
Loading plugin 'maven-tasklist-plugin-2.4'
Loading plugin 'maven-idea-plugin-1.6'
Loading plugin 'maven-changes-plugin-1.6'
Loading plugin 'maven-clover-plugin-1.11'
Loading plugin 'maven-jcoverage-plugin-1.0.9'
Loading plugin 'maven-junit-report-plugin-1.5'
Loading plugin 'maven-checkstyle-plugin-3.0.1'
Loading plugin 'maven-announcement-plugin-1.3'
Loading plugin 'ddchange-maven-plugin-0.1.6-20060508.125357'
Loading plugin 'maven-rar-plugin-1.0'
Loading plugin 'maven-pdf-plugin-2.4'
Loading plugin 'maven-uberjar-plugin-1.2'
Loading plugin 'maven-java-plugin-1.6'
Loading plugin 'maven-war-plugin-1.6.1'
Loading plugin 'maven-simian-plugin-1.6'
Loading plugin 'maven-multiproject-plugin-1.4.1'
Loading plugin 'maven-j2ee-plugin-1.5.1'
Loading plugin 'maven-release-plugin-1.4.1'
Loading plugin 'maven-abbot-plugin-1.1'
Loading plugin 'maven-jxr-plugin-1.5'
Loading plugin 'maven-nsis-plugin-1.1'
Loading plugin 'maven-license-plugin-1.2'
Loading plugin 'maven-jdiff-plugin-1.5'
Loading plugin 'maven-pmd-plugin-1.8'
Loading plugin 'maven-cruisecontrol-plugin-1.7'
Loading plugin 'maven-repository-plugin-1.2'
Loading plugin 'maven-hibernate-plugin-1.3'
Loading plugin 'maven-jbuilder-plugin-1.5'
Loading plugin 'maven-site-plugin-1.6.1'
Loading plugin 'maven-console-plugin-1.1.1'
Loading plugin 'maven-tomcat-5.5.9-plugin-1.2.1'
Loading plugin 'maven-webapp-customize-plugin-1.5.1'
Loading plugin 'maven-test-plugin-1.7.1-WEBDE'
Loading plugin 'maven-jetty-plugin-1.1'
Loading plugin 'maven-eclipse-plugin-1.10'
Loading plugin 'maven-artifact-plugin-1.8'
Loading plugin 'maven-aspectj-plugin-3.2'
Loading plugin 'maven-native-plugin-1.1'
Loading plugin 'maven-html2xdoc-plugin-1.3.1'
Loading plugin 'maven-jalopy-plugin-1.3.1'
Loading plugin 'maven-jnlp-plugin-1.4.1'
Loading plugin 'maven-svn-plugin-1.4'
Loading plugin 'maven-artifact-plugin-1.7'
Loading plugin 'maven-javacc-plugin-1.2'
Loading plugin 'maven-antlr-plugin-1.2.1'
Loading plugin 'maven-clean-plugin-1.4'
Loading plugin 'maven-castor-plugin-1.2'
Loading plugin 'maven-genapp-plugin-2.3-WEBDE'
WARNING: Plugin 'maven-artifact-plugin' is already loaded from
maven-artifact-plugin-1.8; attempting to load maven-artifact-plugin-1.7
Now loading uncached plugins
Finished initializing Plugins!
Using userBuildPropertiesFile: /export/home/v/vree/build.properties
Using projectPropertiesFile:
/export/home/v/vree/workspace/ProvMgr/modules/presentation/project.prope
rties
Using projectBuildPropertiesFile:
/export/home/v/vree/workspace/ProvMgr/modules/presentation/build.propert
ies
Using userBuildPropertiesFile: /export/home/v/vree/build.properties
Using projectPropertiesFile:
/export/home/v/vree/workspace/ProvMgr/project.properties
Using projectBuildPropertiesFile:
/export/home/v/vree/workspace/ProvMgr/build.properties
pushing on [EMAIL PROTECTED] over
[EMAIL PROTECTED] in
services/J2EEProvisioningManager:provmgr-presentation
[DEBUG] Adding reference: 

Repositories with just older software ?

2006-11-27 Thread Javier Leyba

Hi

I'm trying to use maven with my projects but I found every jar file I
need is totally older in maven repositories.

For example, activemq (and everything related to this project),
springframework, iBatis

Is ibiblio.org and older repository, am I making a mistake or just
nobody actualize repositories packages ?

Thanks in advance


--
Javier Leyba
Barcelona - Spain
http://blog.leyba.com.ar

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



Re: Test Classpath Order Problems

2006-11-27 Thread rking999

Hi,

Thank you for the reply.  I tried changing the scope to provided for the
resin jar, but it still seems to be used in the test classpath.  What would
be nice is if I could actually remove it completelt from the test classpath
- is there a way to do this with Maven?

thanks
-- 
View this message in context: 
http://www.nabble.com/Test-Classpath-Order-Problems-tf2699502s177.html#a7558741
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: Repositories with just older software ?

2006-11-27 Thread Nick Stolwijk
Maybe you are looking at the wrong groups. There is a newer convention 
to use your domain name as group.


So the newest version of the Springframework is in org.springframework 
(http://www.ibiblio.org/maven2/org/springframework/spring/2.0.1/)


Maybe the same for your other dependencies. Take a look at 
mvnrepository.com, which is an search enginge for Ibiblio.


With regards,

Nick S.

Javier Leyba wrote:

Hi

I'm trying to use maven with my projects but I found every jar file I
need is totally older in maven repositories.

For example, activemq (and everything related to this project),
springframework, iBatis

Is ibiblio.org and older repository, am I making a mistake or just
nobody actualize repositories packages ?

Thanks in advance





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



Archiva Database Creation

2006-11-27 Thread Peter . Pilgrim

Hi

Archiva appears to creating a database under my home directory on UNIX
e.g

/home/pilgripe/database
/home/pilgripe/derby.log

Instead of under catalina.home, where is this setting controlled
contrary to the information at 
http://maven.apache.org/archiva/guides/getting-started/index.html ?

TIA

Also running Archiva under Tomcat 5 and XALAN configuration this 
following URL is very useful.
http://forum.java.sun.com/thread.jspa?tstart=30forumID=34threadID=5420
44trange=15


--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.



Re: Test Classpath Order Problems

2006-11-27 Thread Mark Hobson

On 27/11/06, rking999 [EMAIL PROTECTED] wrote:

Thank you for the reply.  I tried changing the scope to provided for the
resin jar, but it still seems to be used in the test classpath.  What would
be nice is if I could actually remove it completelt from the test classpath
- is there a way to do this with Maven?


As you've found, classpath ordering can be a problem when searching
for named resources such as service configuration files.  You may be
interested in the following issue I raised when having similar
problems with log4j.properties:

http://http://jira.codehaus.org/browse/MNG-1412jira.codehaus.org/browse/MNG-1412

Mark

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



Maven and Sourceforge

2006-11-27 Thread Wim Deblauwe

Hi,

I started a wiki page to document the best-practises on using
Sourceforge.net with Maven:
http://docs.codehaus.org/display/MAVENUSER/MavenAndSourceforge

It is based on my experience with Maven2 and sourceforge for the development
of the vigilog project (http://vigilog.sourceforge.net)

Currently, it only has information on deploying your maven-generated website
to sourceforge. I will add info on file releases if I have done it.

all contributions are welcome!

regards,

Wim


Re: Repositories with just older software ?

2006-11-27 Thread Larry Meadors

I know that for the iBATIS project, we are just starting to use maven,
so are just getting ready to start publishing it.

Larry


On 11/27/06, Javier Leyba [EMAIL PROTECTED] wrote:

Hi

I'm trying to use maven with my projects but I found every jar file I
need is totally older in maven repositories.

For example, activemq (and everything related to this project),
springframework, iBatis

Is ibiblio.org and older repository, am I making a mistake or just
nobody actualize repositories packages ?

Thanks in advance


--
Javier Leyba
Barcelona - Spain
http://blog.leyba.com.ar

-
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: Archiva Database Creation

2006-11-27 Thread Arnaud HERITIER

You can use the property derby.system.home to put the db files somewhere
else.

Arnaud



Peter.Pilgrim wrote:
 
 
 Hi
 
 Archiva appears to creating a database under my home directory on UNIX
 e.g
 
 /home/pilgripe/database
 /home/pilgripe/derby.log
 
 Instead of under catalina.home, where is this setting controlled
 contrary to the information at 
 http://maven.apache.org/archiva/guides/getting-started/index.html ?
 
 TIA
 
 Also running Archiva under Tomcat 5 and XALAN configuration this 
 following URL is very useful.
 http://forum.java.sun.com/thread.jspa?tstart=30forumID=34threadID=5420
 44trange=15
 
 
 --
 Peter Pilgrim
 UBS Investment Bank, 
 PTS Portal / IT FIRC OPS LDN,
 100 Liverpool Street, London EC2M 2RH, United Kingdom
 +44 (0) 20 75 75692
 :: Java EE / E-Commerce / Enterprise Integration / Development ::
 
 Visit our website at http://www.ubs.com
 
 This message contains confidential information and is intended only
 for the individual named.  If you are not the named addressee you
 should not disseminate, distribute or copy this e-mail.  Please
 notify the sender immediately by e-mail if you have received this
 e-mail by mistake and delete this e-mail from your system.
 
 E-mail transmission cannot be guaranteed to be secure or error-free
 as information could be intercepted, corrupted, lost, destroyed,
 arrive late or incomplete, or contain viruses.  The sender therefore
 does not accept liability for any errors or omissions in the contents
 of this message which arise as a result of e-mail transmission.  If
 verification is required please request a hard-copy version.  This
 message is provided for informational purposes and should not be
 construed as a solicitation or offer to buy or sell any securities or
 related financial instruments.
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Archiva-Database-Creation-tf2711476.html#a7559833
Sent from the archiva-users mailing list archive at Nabble.com.



Re: Repositories with just older software ?

2006-11-27 Thread Brandon Goodin

I have the jars ready to upload. It is just a matter of getting the
jars into place. I had originally submitted all the necessary
artifacts for upload to the codehaus JIRA. They kicked it back to me
saying i needed to use the apache way of getting it to them. Of course
it adds an additional set of hoops to jump through :( I'll see if i
can do it tonight. If all works out well you should see the newest
2.2.0 in the com.ibatis. I'll post where they actually wind up in the
end :).

Brandon

On 11/27/06, Javier Leyba [EMAIL PROTECTED] wrote:

Hi

I'm trying to use maven with my projects but I found every jar file I
need is totally older in maven repositories.

For example, activemq (and everything related to this project),
springframework, iBatis

Is ibiblio.org and older repository, am I making a mistake or just
nobody actualize repositories packages ?

Thanks in advance


--
Javier Leyba
Barcelona - Spain
http://blog.leyba.com.ar

-
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: Proxy vs. Repository URLs

2006-11-27 Thread Joakim Erdfelt
URL Name was introduced to make the repository snippets make sense.

consider the following

repository
  idsnapshots/id
  urlhttp://archiva.corporate.com/repository/snapshots/url
/repository

vs

repository
  idcorporate.snapshots/id
  urlhttp://archiva.corporate.com/repository/snapshots/url
/repository

One future feature for archiva is to manage the pom internal
repositories to point to itself.
In other words, if archiva is told to proxy central, and a pom gets
pulled down pointing to a new repository of say ...
repository
  idsf.net/id
  urlhttp://projfoo.sourceforge.net/maven2//url
/repository

then archiva should replace that entry with itself so that the requests
at the maven client continue to hit the corporate repository.

We need to have a more sane / verbose id field, as that is what is used
in maven client for log messages and the like.
But having a more verbose id field for the url make no sense.  hence the
split.

For the record, I don't like the /proxy/ servlet in archiva.
It has no security!!

It will be removed.
And the /repository/${urlname}/ will have the proxy abilities (with
security)

- Joakim Erdfelt



Henri Yandell wrote:
 On 11/24/06, Wendy Smoak [EMAIL PROTECTED] wrote:
 Consider the following managed repository:

My Managed Repository
Identifier   MYREPO
Directory   
 E:\svn\maven\archiva\archiva-webapp\target\my-managed-repository
WebDAV URL   http://localhost:9091/repository/myrepo
Type Maven 2.x Repository
Snapshots Included   true
Indexed  true

 To use it as a normal repository, the url is
http://localhost:9091/repository/myrepo

 To use that same repo as a proxy, (as far as I can tell, with maxb's
 help on IRC,) it's
http://localhost:9091/proxy/MYREPO

 Is this correct?  If so, why do we use the 'URL Name' in one place and
 the 'Identifier' in another?

 +1 to using the identifier in both.

 Hen




Committer name in build report

2006-11-27 Thread Ronald Pieterse
In some issues on Nabble I read that it is default to get the 
committer's name in the build report. I'm using 1.0.3 but I do not see 
the name of the committer in the build report. Is there something I can 
set or reset to get this working?


THNX.



ejb-jar.xml erroneously generated by EjbDoclet ?

2006-11-27 Thread Manu

Hi,

I'm experiencing trouble with the generation of ejb-jar.xml by ejbdoclet
(xdoclet).
It does not seem to include at the top of the file a DOCTYPE directive.
I don't know if this is strictly required by the standard, but my Weblogic
server tells me it is not valid for that reason.

Any idea of how to make ejbdoclet (subtag deploymentdescriptor/) generate
it for me ?
Or tell Weblo bypass this validation ?

Thanks for your help.

--
Manu (:-Þ)


Re: Maven and Sourceforge

2006-11-27 Thread Geoffrey De Smet

Make sure to overwrite filePermissions and directoryPermissions
if you want to allow other team mates to ever manage the site too.

servers
server
idshell.sourceforge.net/id
usernamexxx/username
passwordxxx/password
filePermissions775/filePermissions
directoryPermissions775/directoryPermissions
/server
/servers

Wim Deblauwe wrote, On 2006-11-27 1:42 PM:

Hi,

I started a wiki page to document the best-practises on using
Sourceforge.net with Maven:
http://docs.codehaus.org/display/MAVENUSER/MavenAndSourceforge

It is based on my experience with Maven2 and sourceforge for the 
development

of the vigilog project (http://vigilog.sourceforge.net)

Currently, it only has information on deploying your maven-generated 
website

to sourceforge. I will add info on file releases if I have done it.

all contributions are welcome!

regards,

Wim



--
With kind regards,
Geoffrey De Smet


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



Admin user doesn't have admin rights.

2006-11-27 Thread Max Bowsher
I'm doing a clean 'mvn install  cvs archiva-webapp  mvn jetty:run'.
Archiva as expected allows me to create an admin user, but having logged
in with this admin user, it is as if the 'admin' user does not actually
have admin rights! I've seen this on two different computers now - has
anyone else encountered this?

Max.


maven filter and UTF-8

2006-11-27 Thread jan_bar
Hi,

It seems to me that maven 2.0.4 filter corrupts UTF-8 files. I have a XML
file with UTF-8 encoding that doesn't contain any replacement strings, but
it is filtered. The resulting file is not the same as source file, UTF-8
characters are wrong. Why maven modifies the file? I suspect, that the
filter also changes encoding.
I am on Windows 2000 and default encoding for Java seems to be cp1250.

Jan




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



Re: Admin user doesn't have admin rights.

2006-11-27 Thread leahpar

hello,

i've just sync this morning and i've got funny behavior
it's possible to create user
but it's not possible to grant role to user / edit user / delete
it complains about an empty user

:(



-- 
View this message in context: 
http://www.nabble.com/Admin-user-doesn%27t-have-admin-rights.-tf2712019.html#a7561470
Sent from the archiva-users mailing list archive at Nabble.com.



Re: Committer name in build report

2006-11-27 Thread Emmanuel Venisse

You need to have an english output from your scm and developers defined in your 
pom.

Emmanuel

Ronald Pieterse a écrit :
In some issues on Nabble I read that it is default to get the 
committer's name in the build report. I'm using 1.0.3 but I do not see 
the name of the committer in the build report. Is there something I can 
set or reset to get this working?


THNX.








Re: Admin user doesn't have admin rights.

2006-11-27 Thread Wendy Smoak

On 11/27/06, Max Bowsher [EMAIL PROTECTED] wrote:

I'm doing a clean 'mvn install  cvs archiva-webapp  mvn jetty:run'.
Archiva as expected allows me to create an admin user, but having logged
in with this admin user, it is as if the 'admin' user does not actually
have admin rights! I've seen this on two different computers now - has
anyone else encountered this?


Yes.  After you create a repository, you'll need to explicitly grant
the repository-observer or repository-manager rights to the admin
user.

--
Wendy


Re: Archiva Database Creation

2006-11-27 Thread Wendy Smoak

On 11/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Archiva appears to creating a database under my home directory on UNIX
e.g

/home/pilgripe/database
/home/pilgripe/derby.log

Instead of under catalina.home, where is this setting controlled
contrary to the information at
http://maven.apache.org/archiva/guides/getting-started/index.html ?


Arnaud already mentioned the derby.system.home property, and here are
some links with more info:

http://db.apache.org/derby/docs/dev/devguide/cdevdvlp34964.html

http://db.apache.org/derby/docs/dev/devguide/cdevdvlp13018.html

--
Wendy


Re: Admin user doesn't have admin rights.

2006-11-27 Thread Max Bowsher
Wendy Smoak wrote:
 On 11/27/06, Max Bowsher [EMAIL PROTECTED] wrote:
 I'm doing a clean 'mvn install  cvs archiva-webapp  mvn jetty:run'.
 Archiva as expected allows me to create an admin user, but having logged
 in with this admin user, it is as if the 'admin' user does not actually
 have admin rights! I've seen this on two different computers now - has
 anyone else encountered this?
 
 Yes.  After you create a repository, you'll need to explicitly grant
 the repository-observer or repository-manager rights to the admin
 user.

No, I'm aware of that. That's not my problem.

The problem is that the admin user doesn't seem to have access to any of
the administration webpages! So, I can't create a repository, and I
can't edit user rights.

Max.


Re: ejb-jar.xml erroneously generated by EjbDoclet ?

2006-11-27 Thread Marco Mistroni

hi,
wild guess... have you specified the ejb version you are using?
here's what i m using

ejbdoclet
   destDir=${project.build.directory}/generated-sources/xdoclet
   excludedTags=@author,@version
   ejbSpec=2.1

deploymentdescriptor
   destDir=${project.build.outputDirectory}/META-INF
   useIDs=true/
websphere

destDir=${project.build.outputDirectory}/META-INF/


 jboss version=4.0
   destDir=${project.build.outputDirectory}/META-INF
   dataSource=${mw.dataSource}
   datasourceMapping=Hypersonic SQL
   createTable=true
   removeTable=true/


hth
marco



On 11/27/06, Manu [EMAIL PROTECTED] wrote:


Hi,

I'm experiencing trouble with the generation of ejb-jar.xml by ejbdoclet
(xdoclet).
It does not seem to include at the top of the file a DOCTYPE directive.
I don't know if this is strictly required by the standard, but my Weblogic
server tells me it is not valid for that reason.

Any idea of how to make ejbdoclet (subtag deploymentdescriptor/)
generate
it for me ?
Or tell Weblo bypass this validation ?

Thanks for your help.

--
Manu (:-Þ)




[ANN] QALab 1.0 plugin available for Maven 2, Maven 1 and Ant

2006-11-27 Thread Benoit Xhenseval
ObjectLab is proud to announce release 1.0 of QALab for Java 1.4+



Furthermore, we are very pleased to announce that QALab was selected 

by Borland and is also supported/integrated in JBuilder 2007 as part of 

the new TeamInsight team-RAD feature.



We are really excited at the collaboration between ObjectLab and CodeGear

said Joe McGlynn, Product Manager for JBuilder.  Our engineers were searching 

for an innovative way to consolidate and trend key project metrics and we 

found a truly wonderful solution in QALab.



ObjectLab has volunteered time with Borland's Developer Tools Group 
(CodeGear/DevCo)

to make the transition to Maven 2 smooth and rich 'out-of-the-box'. 

QALab itself will remain independent and carry on supporting all platforms.



QALab collects and consolidates data from several QA tools, like PMD, 

Checkstyle, FindBugs, Cobertura, Simian and PMD CPD and keeps track of them 

over time. This allows developers, architects and project managers alike 

to be presented with a trend of the QA statistics of their project.



http://qalab.sourceforge.net 



QALab works with Ant, Maven 1 and Maven 2 (both via plugins). It generates 2 

reports, one based on historical data with tables and charts and the other 

one shows the RECENT changes (Movers) over a user defined time window. This 

will help to filter out the 'background' level of issues that any project 

may have at any point in time.



Version 1.0 is available immediately for download via SourceForge or the Maven 

Central Repository (both Maven 1 and Maven 2).



This release specifically targets:

- Maven 2 support with fully integrated reports in Maven site

- Maven 1 reports are now fully integrated in Maven site.

- PMD CPD is now supported.

- Each type will have its own colour and stroke for charts.



Used internally since 2003, QALab was open-sourced in 2005 and has finally 

reached version 1.0!  It is being used across the world.

 

ObjectLab is not new to the open-source community having used numerous OS 

projects, participated in a few and sponsoring:

- ObjectLab Kit (http://objectlabkit.sourceforge.net), a date calculation 

  toolkit for business and finance;

- JTreeMap (http://jtreemap.sourceforge.net) the only open source heatmap 

  library for Java .

- StatSvn (http://www.statsvn.org) Subversion repository statistics.  



We would like to thank our friends and colleagues for their help, reviews 

and suggestions.



Feel free to pass on to people who may be interested.



Enjoy!!



Benoit Xhenseval and the QALab Team.






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



Re: ejb-jar.xml erroneously generated by EjbDoclet ?

2006-11-27 Thread Manu

Hi,
Thanks for the tip, but it doesn't seem to work in my case. I always had it,
and the generated ejb-jar.xml does not include DOCTYPE.
Do YOU have it generated in your case ?

By the way, I use the following piece of Pom :

ejbdoclet ejbSpec=2.1 ejbClassNameSuffix=Impl force=true
destDir=${basedir}/src/generated/java
   fileset dir=${basedir}/src/main/java includes=**/*Impl.java/
   entitypk/
   deploymentdescriptor
   schema=http://java.sun.com/dtd/ejb-jar_2_0.dtd;
   xmlencoding=ISO-8859-1
   validateXML=true
   destDir=${basedir}/src/generated/resources/META-INF
   useIDs=true/
   packageSubstitution packages=impl substituteWith=interfaces /
   weblogic
   version=8.1
   createtables=Disabled
   destDir=${basedir}/src/generated/resources/META-INF/
/ejbdoclet

Any more suggestions ?

Manu :-Þ

2006/11/27, Marco Mistroni [EMAIL PROTECTED]:


hi,
wild guess... have you specified the ejb version you are using?
here's what i m using

ejbdoclet
destDir=${project.build.directory}/generated-sources/xdoclet
excludedTags=@author,@version
ejbSpec=2.1

deploymentdescriptor
destDir=${project.build.outputDirectory
}/META-INF
useIDs=true/
websphere

destDir=${project.build.outputDirectory}/META-INF/


  jboss version=4.0
destDir=${project.build.outputDirectory
}/META-INF
dataSource=${mw.dataSource}
datasourceMapping=Hypersonic SQL
createTable=true
removeTable=true/


hth
marco



On 11/27/06, Manu [EMAIL PROTECTED] wrote:

 Hi,

 I'm experiencing trouble with the generation of ejb-jar.xml by ejbdoclet
 (xdoclet).
 It does not seem to include at the top of the file a DOCTYPE directive.
 I don't know if this is strictly required by the standard, but my
Weblogic
 server tells me it is not valid for that reason.

 Any idea of how to make ejbdoclet (subtag deploymentdescriptor/)
 generate
 it for me ?
 Or tell Weblo bypass this validation ?

 Thanks for your help.

 --
 Manu (:-Þ)







--
Manu (:-Þ)


Re: Committer name in build report

2006-11-27 Thread David Roussel
This wasn't working for me either, but I assumed it was just a ClearCase
SCM maven plugin issue.  I did have english output and all the
developers defined in the pom.

Would you expect the clearcase plugin to work this?

Thanks

David

On Mon, 27 Nov 2006 16:06:10 +0100, Emmanuel Venisse
[EMAIL PROTECTED] said:
 You need to have an english output from your scm and developers defined
 in your pom.
 
 Emmanuel
 
 Ronald Pieterse a écrit :
  In some issues on Nabble I read that it is default to get the 
  committer's name in the build report. I'm using 1.0.3 but I do not see 
  the name of the committer in the build report. Is there something I can 
  set or reset to get this working?
  
  THNX.
  
  
  
  
 


Re: Committer name in build report

2006-11-27 Thread Emmanuel Venisse

Normally, the scm output parser in clearcase maven-scm provider works fine, but 
maybe the output in different between each clearcase version.

Emmanuel

David Roussel a écrit :

This wasn't working for me either, but I assumed it was just a ClearCase
SCM maven plugin issue.  I did have english output and all the
developers defined in the pom.

Would you expect the clearcase plugin to work this?

Thanks

David

On Mon, 27 Nov 2006 16:06:10 +0100, Emmanuel Venisse
[EMAIL PROTECTED] said:

You need to have an english output from your scm and developers defined
in your pom.

Emmanuel

Ronald Pieterse a écrit :
In some issues on Nabble I read that it is default to get the 
committer's name in the build report. I'm using 1.0.3 but I do not see 
the name of the committer in the build report. Is there something I can 
set or reset to get this working?


THNX.












Re: Admin user doesn't have admin rights.

2006-11-27 Thread Wendy Smoak

On 11/27/06, Max Bowsher [EMAIL PROTECTED] wrote:


The problem is that the admin user doesn't seem to have access to any of
the administration webpages! So, I can't create a repository, and I
can't edit user rights.


I can't reproduce it with a clean build (r479651).  Startup, creation
of the admin user, and adding managed and proxied repositories all
work fine here.

Ther is some strangeness in that using the proxy url caused it to
proxy the request and serve up the artifact, but the requested jar was
not placed in the proxied through managed repo.

Also, the 'edit' and 'delete' links on User Management are broken.
They do not include the username, just
http://localhost:9091/security/useredit.action?username=

--
Wendy


Re: Maven and Sourceforge

2006-11-27 Thread Wim Deblauwe

Where should I put this piece of xml? Is this part of the pom or the
settings.xml?

regards,

Wim

2006/11/27, Geoffrey De Smet [EMAIL PROTECTED]:


Make sure to overwrite filePermissions and directoryPermissions
if you want to allow other team mates to ever manage the site too.

servers
 server
 idshell.sourceforge.net/id
 usernamexxx/username
 passwordxxx/password
 filePermissions775/filePermissions
 directoryPermissions775/directoryPermissions
 /server
 /servers

Wim Deblauwe wrote, On 2006-11-27 1:42 PM:
 Hi,

 I started a wiki page to document the best-practises on using
 Sourceforge.net with Maven:
 http://docs.codehaus.org/display/MAVENUSER/MavenAndSourceforge

 It is based on my experience with Maven2 and sourceforge for the
 development
 of the vigilog project (http://vigilog.sourceforge.net)

 Currently, it only has information on deploying your maven-generated
 website
 to sourceforge. I will add info on file releases if I have done it.

 all contributions are welcome!

 regards,

 Wim


--
With kind regards,
Geoffrey De Smet


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




Re: Maven and Sourceforge

2006-11-27 Thread Wendy Smoak

On 11/27/06, Wim Deblauwe [EMAIL PROTECTED] wrote:


Where should I put this piece of xml? Is this part of the pom or the
settings.xml?


settings.xml, because it's developer specific (it has your userid and password.)

Then the id needs to match the one used in pom.xml so Maven will
know to use these settings.

--
Wendy

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



Undocumented property expansion?

2006-11-27 Thread Stefan Hübner

Hi all,

the other day I found this statement inside commons-logging-1.1.pom
(http://repo1.maven.org/maven2/commons-logging/commons-logging/1.1/commons-logging-1.1.pom):

urlhttp://jakarta.apache.org/commons/${pom.artifactId.substring(8)}//url

I tried the same substring-thing in my poms, but Maven didn't expand
the URL like I would have expected. Is a statement like that actually
supposed to work? If so, is there a common pattern to use similar
features (e.g. ${groupId.replaceAll(., /)} )?

Any hints? Thanks in advance!
-Stefan

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



Re: ejb-jar.xml erroneously generated by EjbDoclet ?

2006-11-27 Thread Marco Mistroni

Hello,
apologies. i talked without checking what was generated (all the
deployment - on jboss - went fine so i was assuming that everything was fine
too)

no i don' thave doctype, howerver the ejb-jar refers to the schema location
for the ejb jar

?xml version=1.0 encoding=UTF-8?

ejb-jar id=ejb-jar_1 xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=
http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd; version=2.1

you migh turn to xdoclet list, you'll find more help there/.
can the issue be the xml parser that weblogic is using? (another wild guess)

regards
marco





On 11/27/06, Manu [EMAIL PROTECTED] wrote:


Hi,
Thanks for the tip, but it doesn't seem to work in my case. I always had
it,
and the generated ejb-jar.xml does not include DOCTYPE.
Do YOU have it generated in your case ?

By the way, I use the following piece of Pom :

ejbdoclet ejbSpec=2.1 ejbClassNameSuffix=Impl force=true
destDir=${basedir}/src/generated/java
fileset dir=${basedir}/src/main/java includes=**/*Impl.java/
entitypk/
deploymentdescriptor
schema=http://java.sun.com/dtd/ejb-jar_2_0.dtd;
xmlencoding=ISO-8859-1
validateXML=true
destDir=${basedir}/src/generated/resources/META-INF
useIDs=true/
packageSubstitution packages=impl substituteWith=interfaces /
weblogic
version=8.1
createtables=Disabled
destDir=${basedir}/src/generated/resources/META-INF/
/ejbdoclet

Any more suggestions ?

Manu :-Þ

2006/11/27, Marco Mistroni [EMAIL PROTECTED]:

 hi,
 wild guess... have you specified the ejb version you are using?
 here's what i m using

 ejbdoclet
 destDir=${project.build.directory
}/generated-sources/xdoclet
 excludedTags=@author,@version
 ejbSpec=2.1

 deploymentdescriptor
 destDir=${project.build.outputDirectory
 }/META-INF
 useIDs=true/
 websphere

 destDir=${project.build.outputDirectory}/META-INF/


   jboss version=4.0
 destDir=${project.build.outputDirectory
 }/META-INF
 dataSource=${mw.dataSource}
 datasourceMapping=Hypersonic SQL
 createTable=true
 removeTable=true/


 hth
 marco



 On 11/27/06, Manu [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I'm experiencing trouble with the generation of ejb-jar.xml by
ejbdoclet
  (xdoclet).
  It does not seem to include at the top of the file a DOCTYPE
directive.
  I don't know if this is strictly required by the standard, but my
 Weblogic
  server tells me it is not valid for that reason.
 
  Any idea of how to make ejbdoclet (subtag deploymentdescriptor/)
  generate
  it for me ?
  Or tell Weblo bypass this validation ?
 
  Thanks for your help.
 
  --
  Manu (:-Þ)
 
 




--
Manu (:-Þ)




Re: pass empty password to svn repository

2006-11-27 Thread Emmanuel Venisse

I'm not sure empty password is supported

Emmanuel

Ali Hisham Malik a écrit :

Hi,

The svn repository I'm using requires an empty password to be passed
even for anonymous access. I have experiment with several ideas to make
it work with no success. Can anyone tell me what I need to do exactly?

Btw, I'm using scm plugin in combination with the changelog plugin.

Thanks.







Maven sIte generation from cruisecontrol

2006-11-27 Thread emerson cargnin

Hi there

I'm generating the maven site from cruisecontrol.

When i try to generate manually i get the error:

...
...
...
xdoc:generate-from-pom:
   [echo] Generating xdocs from POM ...

BUILD FAILED
File.. 
/subversion/users/svnclient/.maven/cache/maven-xdoc-plugin-1.8/plugin.jelly
Element... velocity:merge
Line.. 492
Column 13
Invocation of method 'getText' in  class
org.apache.velocity.anakia.Escape threw exception class
java.lang.NullPointerException : null
Total time: 8 minutes 56 seconds
Finished at: Mon Nov 27 16:24:05 GMT 2006



I found in a list that I should configure the issue traker property in
project.xml. But I still get the same error.

But when I generate through cruisecontrol it works. Really weird...

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



Re: build war for jboss, exclude log4j

2006-11-27 Thread Christofer Jennings

Thanks Chris,

I also want to be able to run the web-app with mvn jetty:run so I had to
set it up like this...

=== in my top-level pom ===
dependency
  groupIdlog4j/groupId
  artifactIdlog4j/artifactId
  version1.2.13/version
  scopeprovided/scope
/dependency

=== in my web-app's pom ===
build
...
plugin
  groupIdorg.mortbay.jetty/groupId
  artifactIdmaven-jetty-plugin/artifactId
  configuration
 scanIntervalSeconds5/scanIntervalSeconds
 webDefaultXmlsrc/main/resources/jetty/webdefault.xml/webDefaultXml
  /configuration
  dependencies
 dependency
groupIdlog4j/groupId
artifactIdlog4j/artifactId
version1.2.13/version
 /dependency
  /dependencies
/plugin
/build

===

,chris
On 11/18/06, Chris Michiels [EMAIL PROTECTED] wrote:


Hi Chris,

Simple, just use :

dependency
  groupIdlog4j/groupId
  artifactIdlog4j/artifactId
  version1.2.9/version
  scopeprovided/scope
/dependency

Chris

2006/11/18, Christofer Jennings [EMAIL PROTECTED]:

 Hi All,

 How can I exclude log4j stuff from a war?

 The log4j stuff is conflicting with jboss.

 Thanks!
 ,chris

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




Re: Performance collapse when logged as admin

2006-11-27 Thread Jesse McConnell

we have identified a number of key areas that need some work in the
performance area...never fear, we'll get them ironed out pretty soon I
hope.  I personally know of a couple of improvements that we can make
in the plexus-security side of things, specifically in the speed of
the authz operations, just a matter of getting in there and doing them
and then testing them out.

jesse

On 11/13/06, Samuel Langlois [EMAIL PROTECTED] wrote:

Hello,

Can you please confirm that the issue is pinpointed and taken care of?

I apologize for sounding pushy, but I would really like to be sure that this 
performance issue will be corrected in the future (and
hopefully before we roll out in a few months!)

In case it matters, we indeed use Derby (as packaged in Maestro 1.1) and do not 
use any custom roles.
I don't understand your question about the project name.

Thanks for your time,

Samuel

 -Original Message-
 From: Jesse McConnell [mailto:[EMAIL PROTECTED]
 Sent: mardi 7 novembre 2006 14:55
 To: continuum-users@maven.apache.org
 Subject: Re: Performance collapse when logged as admin

 k, then my bet is its something up with that authz behavior there.

 do you have any custom roles?

 what is the name of the project in question?  (ie, The Doxia Project)
 you can make something up that follows the same naming structure

 thanks, and I'll try and nail this down in continuum
 jesse

 On 11/7/06, Artamonov, Juri [EMAIL PROTECTED] wrote:
  I believe the same that goes with Continuum, yea I suppose this is
  derby.
 
  -Original Message-
  From: Jesse McConnell [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, November 07, 2006 3:48 PM
  To: continuum-users@maven.apache.org
  Subject: Re: Performance collapse when logged as admin
 
 
  hm, that sounds to me like it would be an issue with the speed of authz
  activities on those pages, they had been really slow until I put in abit
  of per page caching in the session to speed it up...and it was a lot
  faster from then on...but this could be something related to that.
 
  what database are you guys using for this?  the derby one with the
  release?
 
  jesse
 
  On 11/7/06, Artamonov, Juri [EMAIL PROTECTED] wrote:
   Yes, I had the same and also I see th bug which not allowing me to
   start every created goal for project. I also decided to return to
   1.0.1.
  
   Best regards,
Juri.
  
   -Original Message-
   From: Samuel Langlois [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, November 07, 2006 12:28 PM
   To: continuum-users@maven.apache.org
   Subject: Performance collapse when logged as admin
  
  
   Hello,
  
   I find Continuum web console very slow, especially when logged as
   admin, and I think there is something wrong.
  
   For instance, to display the summary page of a project group
   containing 3 projects, it takes a few seconds when not logged in, and
   20s when logged as admin. For a project group containing 58 projects,
   it goes from 15s (which is already quite long...) to an amazing 130s
   when logged as admin.
  
   I use Continuum 1.0.3-maestro-1.1 with all default settings. I have
   the feeling (but cannot confirm) that the version shipped with Maestro
 
   1.0.1 did not show this problem. My server is a Pentium4, 1.5GHz under
 
   Fedora Core 5. Not really a speed king, but still... I recently
   upgraded it to 1Go RAM without much effect.
  
   Am I the only one in this situation?
   How can I help diagnose the problem further?
  
   Thanks for your help
  
   Samuel
  
  
  
 
 
  --
  jesse mcconnell
  [EMAIL PROTECTED]
 


 --
 jesse mcconnell
 [EMAIL PROTECTED]






--
jesse mcconnell
[EMAIL PROTECTED]


run maven from ant

2006-11-27 Thread Christofer Jennings

What is the simplest / preferred way to run maven from ant?

My maven project is being integrated with a larger project that uses
ant. I want the process to be painless to ant lovers, if possible.

Thanks in advance
,chris

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



Multimodule Build

2006-11-27 Thread Brandon Goodin

Hey All,

This may be a dumb question. But, I have a aggregate pom with three
modules. One of the modules makes use of the webstart plugin. The
webstart plugin fails when using 'mvn install'. It is necessary for me
to call 'mvn webstart:jnlp' when building this module without calling
'install'. When building from the aggregate pom, how do i get the
webstart project to build using 'webstart:jnlp' instead of 'install'.
The other two modules work fine using the install. I tried setting
defaultGoalwebstart:jnlp/defaultGoal in the webstart module. It
does call the appropriate webstart:jnlp but then fails after it
completes the goal because it still attempts to call install right
after.

Thanks
Brandon

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



mavenrun plugin?

2006-11-27 Thread Aleksei Valikov

Hi.

Is there something like the mavenrun plugin?

I'm building an assembly of one of the modules. After that I'd like to check if 
this assembly is buildable. That is, I'd like to extract the resulting zip into 
some folder and run maven with it (during the integration-test phases). I know 
how to build/extract assembly, but I don't know how to run maven with the 
specified pom.xml file/in the specified folder.


Bye.
/lexi

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



executing junit (integration) tests against a different project

2006-11-27 Thread Nathan Coast

Hi,

I have a slightly unusual situation where I have shared overlay webapps 
  that are assembled into standalone webapps and into larger aggregate 
webapps.  The httpunit (junit) integration tests are contained within 
the overlay (component) project.  However, I'd like to execute the same 
suites of tests against the aggregate projects.  The surefire plugin 
relies upon having the test source files within the project being tested 
to determine which tests to execute.


Has anyone come up with a workaround for this situation? i.e. execute 
tests in a project other than the one where the test sources exist?


I'm thinking I'm going to require both the overlay and aggregator webapp 
integration sources on the same filesystem.  Then either multiple test 
source directories or copy all test sources into a single dir before 
executing surefire.


cheers
Nathan


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



multiple artefacts for a project?

2006-11-27 Thread Nathan Coast

Hi,

Is having multiple artefacts for a single project not allowed within 
Maven 2?  I have a number of projects which produce 2 related artefacts:


1) jar file containing hibernate pojos, hbm mappings etc.
2) sql script to create tables required by 1.

I'd rather not have 2 projects as all of the inputs for (2) are within 
(1) and it seems a little overkill to create a whole new project for a 
single generated sql file.


Is it possible to deploy multiple files to the same location in the repo?

/foo/bar/whatever/1.0/whatever-1.0.jar
/foo/bar/whatever/1.0/whatever-1.0.sql
/foo/bar/whatever/1.0/whatever-1.0.pom

cheers
Nathan


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



Re: multiple artefacts for a project?

2006-11-27 Thread Tom Huybrechts

See attach-artifact in the build-helper-maven plugin:
http://mojo.codehaus.org/build-helper-maven-plugin/howto.html

tom


On 11/27/06, Nathan Coast [EMAIL PROTECTED] wrote:

Hi,

Is having multiple artefacts for a single project not allowed within
Maven 2?  I have a number of projects which produce 2 related artefacts:

1) jar file containing hibernate pojos, hbm mappings etc.
2) sql script to create tables required by 1.

I'd rather not have 2 projects as all of the inputs for (2) are within
(1) and it seems a little overkill to create a whole new project for a
single generated sql file.

Is it possible to deploy multiple files to the same location in the repo?

/foo/bar/whatever/1.0/whatever-1.0.jar
/foo/bar/whatever/1.0/whatever-1.0.sql
/foo/bar/whatever/1.0/whatever-1.0.pom

cheers
Nathan


-
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: multiple artefacts for a project?

2006-11-27 Thread Nathan Coast

rtfm to self :)

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

Nathan Coast wrote:

Hi,

Is having multiple artefacts for a single project not allowed within 
Maven 2?  I have a number of projects which produce 2 related artefacts:


1) jar file containing hibernate pojos, hbm mappings etc.
2) sql script to create tables required by 1.

I'd rather not have 2 projects as all of the inputs for (2) are within 
(1) and it seems a little overkill to create a whole new project for a 
single generated sql file.


Is it possible to deploy multiple files to the same location in the repo?

/foo/bar/whatever/1.0/whatever-1.0.jar
/foo/bar/whatever/1.0/whatever-1.0.sql
/foo/bar/whatever/1.0/whatever-1.0.pom

cheers
Nathan


-
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: Continuum tries to checkout artifactId instead of module

2006-11-27 Thread idallas

Is this issue considered a bug, or a known limitation? (I didn't find
anything in Jira)

It seems like if Maven is able to handle projects with child atrifactIds
that != directory names, Continuum should support that too. 

It's definitely a deal-breaker for me personally, and I suspect it would be
for a lot of other users as well. 

--ian


Emmanuel Venisse wrote:
 
 you can choose between two solutions for this pb.
 1. rename your directory to the artifactId
 2. Add the scm url in all your child pom
 I prefer 1.
 

-- 
View this message in context: 
http://www.nabble.com/Continuum-tries-to-checkout-artifactId-instead-of-module-tf2186430.html#a7566347
Sent from the Continuum - Users mailing list archive at Nabble.com.



RE: executing junit (integration) tests against a different project

2006-11-27 Thread Nir Feldman
You may change the testSourceDirectory in the surefire plugin to point
to the source directory of the other project in case you can achive a
relative path to it (e.g.
${basedir}/../../OTHER_PROJECT_NAME/src/test/java )

Nir

-Original Message-
From: Nathan Coast [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 27, 2006 8:47 PM
To: Maven Users
Subject: executing junit (integration) tests against a different project

Hi,

I have a slightly unusual situation where I have shared overlay webapps
   that are assembled into standalone webapps and into larger aggregate
webapps.  The httpunit (junit) integration tests are contained within
the overlay (component) project.  However, I'd like to execute the same
suites of tests against the aggregate projects.  The surefire plugin
relies upon having the test source files within the project being tested
to determine which tests to execute.

Has anyone come up with a workaround for this situation? i.e. execute
tests in a project other than the one where the test sources exist?

I'm thinking I'm going to require both the overlay and aggregator webapp
integration sources on the same filesystem.  Then either multiple test
source directories or copy all test sources into a single dir before
executing surefire.

cheers
Nathan


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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



Re: executing junit (integration) tests against a different project

2006-11-27 Thread Nathan Coast

Hi Nir,

yes I was thinking that, but then there's a problem if the aggregator 
project has tests of its own, or if the aggregator project aggregates 
more than one overlay webapp.


I'm thinking copying all test sources into a single folder may be the 
only solution.


cheers
Nathan

Nir Feldman wrote:

You may change the testSourceDirectory in the surefire plugin to point
to the source directory of the other project in case you can achive a
relative path to it (e.g.
${basedir}/../../OTHER_PROJECT_NAME/src/test/java )

Nir

-Original Message-
From: Nathan Coast [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 27, 2006 8:47 PM

To: Maven Users
Subject: executing junit (integration) tests against a different project

Hi,

I have a slightly unusual situation where I have shared overlay webapps
   that are assembled into standalone webapps and into larger aggregate
webapps.  The httpunit (junit) integration tests are contained within
the overlay (component) project.  However, I'd like to execute the same
suites of tests against the aggregate projects.  The surefire plugin
relies upon having the test source files within the project being tested
to determine which tests to execute.

Has anyone come up with a workaround for this situation? i.e. execute
tests in a project other than the one where the test sources exist?

I'm thinking I'm going to require both the overlay and aggregator webapp
integration sources on the same filesystem.  Then either multiple test
source directories or copy all test sources into a single dir before
executing surefire.

cheers
Nathan


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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


-
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: executing junit (integration) tests against a different project

2006-11-27 Thread Nir Feldman
Seems to me as well,
You may plugin a simple ant task to do the copy for you in the
generate-sources phase.

Hope I helped..

-Original Message-
From: Nathan Coast [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 27, 2006 9:46 PM
To: Maven Users List
Subject: Re: executing junit (integration) tests against a different
project

Hi Nir,

yes I was thinking that, but then there's a problem if the aggregator
project has tests of its own, or if the aggregator project aggregates
more than one overlay webapp.

I'm thinking copying all test sources into a single folder may be the
only solution.

cheers
Nathan

Nir Feldman wrote:
 You may change the testSourceDirectory in the surefire plugin to point
 to the source directory of the other project in case you can achive a
 relative path to it (e.g.
 ${basedir}/../../OTHER_PROJECT_NAME/src/test/java )

 Nir

 -Original Message-
 From: Nathan Coast [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 27, 2006 8:47 PM
 To: Maven Users
 Subject: executing junit (integration) tests against a different
project

 Hi,

 I have a slightly unusual situation where I have shared overlay
webapps
that are assembled into standalone webapps and into larger
aggregate
 webapps.  The httpunit (junit) integration tests are contained within
 the overlay (component) project.  However, I'd like to execute the
same
 suites of tests against the aggregate projects.  The surefire plugin
 relies upon having the test source files within the project being
tested
 to determine which tests to execute.

 Has anyone come up with a workaround for this situation? i.e. execute
 tests in a project other than the one where the test sources exist?

 I'm thinking I'm going to require both the overlay and aggregator
webapp
 integration sources on the same filesystem.  Then either multiple test
 source directories or copy all test sources into a single dir before
 executing surefire.

 cheers
 Nathan


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


 __
 This email has been scanned by the MessageLabs Email Security System.
 For more information please visit http://www.messagelabs.com/email
 __

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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



Re: mavenrun plugin?

2006-11-27 Thread John Casey

You might want to checkout the maven-invoker-plugin. It's SVN at:

http://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin

and IIRC has a snapshot deployed to the snapshot repository:

pluginRepositories
 pluginRepository
   idapache.snapshots/id
   urlhttp://people.apache.org/repo/m2-snapshot-repository/url
 /pluginRepository
/pluginRepositories

For help configuring the plugin, see the maven-assembly-plugin's
integration-test profile:

http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-assembly-plugin/pom.xml

HTH,

John

On 11/27/06, Aleksei Valikov [EMAIL PROTECTED] wrote:


Hi.

Is there something like the mavenrun plugin?

I'm building an assembly of one of the modules. After that I'd like to
check if
this assembly is buildable. That is, I'd like to extract the resulting zip
into
some folder and run maven with it (during the integration-test phases). I
know
how to build/extract assembly, but I don't know how to run maven with the
specified pom.xml file/in the specified folder.

Bye.
/lexi

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




Re: Multimodule Build

2006-11-27 Thread Brandon Goodin

Sorry this was a misinterpreted need. For some reason after my modules
complete install they start again. I research this and see if there is
any information regarding it.

Brandon

On 11/27/06, Brandon Goodin [EMAIL PROTECTED] wrote:

Hey All,

This may be a dumb question. But, I have a aggregate pom with three
modules. One of the modules makes use of the webstart plugin. The
webstart plugin fails when using 'mvn install'. It is necessary for me
to call 'mvn webstart:jnlp' when building this module without calling
'install'. When building from the aggregate pom, how do i get the
webstart project to build using 'webstart:jnlp' instead of 'install'.
The other two modules work fine using the install. I tried setting
defaultGoalwebstart:jnlp/defaultGoal in the webstart module. It
does call the appropriate webstart:jnlp but then fails after it
completes the goal because it still attempts to call install right
after.

Thanks
Brandon



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



Re: ejb-jar.xml erroneously generated by EjbDoclet ?

2006-11-27 Thread Manu

Ok, thanks.

I've had a look on the archives of the xdoclet users, which did not help
much very much, but I'll post on that list.
And keep this list informed if I get a solution.


2006/11/27, Marco Mistroni [EMAIL PROTECTED]:


Hello,
apologies. i talked without checking what was generated (all the
deployment - on jboss - went fine so i was assuming that everything was
fine
too)

no i don' thave doctype, howerver the ejb-jar refers to the schema
location
for the ejb jar

?xml version=1.0 encoding=UTF-8?

ejb-jar id=ejb-jar_1 xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=
http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd; version=2.1

you migh turn to xdoclet list, you'll find more help there/.
can the issue be the xml parser that weblogic is using? (another wild
guess)

regards
marco





On 11/27/06, Manu [EMAIL PROTECTED] wrote:

 Hi,
 Thanks for the tip, but it doesn't seem to work in my case. I always had
 it,
 and the generated ejb-jar.xml does not include DOCTYPE.
 Do YOU have it generated in your case ?

 By the way, I use the following piece of Pom :

 ejbdoclet ejbSpec=2.1 ejbClassNameSuffix=Impl force=true
 destDir=${basedir}/src/generated/java
 fileset dir=${basedir}/src/main/java includes=**/*Impl.java/
 entitypk/
 deploymentdescriptor
 schema=http://java.sun.com/dtd/ejb-jar_2_0.dtd;
 xmlencoding=ISO-8859-1
 validateXML=true
 destDir=${basedir}/src/generated/resources/META-INF
 useIDs=true/
 packageSubstitution packages=impl substituteWith=interfaces /
 weblogic
 version=8.1
 createtables=Disabled
 destDir=${basedir}/src/generated/resources/META-INF/
 /ejbdoclet

 Any more suggestions ?

 Manu :-Þ

 2006/11/27, Marco Mistroni [EMAIL PROTECTED]:
 
  hi,
  wild guess... have you specified the ejb version you are using?
  here's what i m using
 
  ejbdoclet
  destDir=${project.build.directory
 }/generated-sources/xdoclet
  excludedTags=@author,@version
  ejbSpec=2.1
 
  deploymentdescriptor
  destDir=${project.build.outputDirectory
  }/META-INF
  useIDs=true/
  websphere
 
  destDir=${project.build.outputDirectory}/META-INF/
 
 
jboss version=4.0
  destDir=${project.build.outputDirectory
  }/META-INF
  dataSource=${mw.dataSource}
  datasourceMapping=Hypersonic SQL
  createTable=true
  removeTable=true/
 
 
  hth
  marco
 
 
 
  On 11/27/06, Manu [EMAIL PROTECTED] wrote:
  
   Hi,
  
   I'm experiencing trouble with the generation of ejb-jar.xml by
 ejbdoclet
   (xdoclet).
   It does not seem to include at the top of the file a DOCTYPE
 directive.
   I don't know if this is strictly required by the standard, but my
  Weblogic
   server tells me it is not valid for that reason.
  
   Any idea of how to make ejbdoclet (subtag deploymentdescriptor/)
   generate
   it for me ?
   Or tell Weblo bypass this validation ?
  
   Thanks for your help.
  
   --
   Manu (:-Þ)
  
  
 
 


 --
 Manu (:-Þ)







--
Manu (:-Þ)


Install Running Twice

2006-11-27 Thread Brandon Goodin

I have a 3 module project with an aggregate pom. When i run 'mvn install'
from the aggregate pom it tries to run install on all of the modules twice.
This is causing one of the installs to fail. Has anyone had an experience
like this?

Brandon


Re: Install Running Twice

2006-11-27 Thread Wendy Smoak

On 11/27/06, Brandon Goodin [EMAIL PROTECTED] wrote:


I have a 3 module project with an aggregate pom. When i run 'mvn install'
from the aggregate pom it tries to run install on all of the modules twice.
This is causing one of the installs to fail. Has anyone had an experience
like this?


Aggregate pom just meaning one with modules ?  Is there any
interesting plugin configuration going on?

It shouldn't be installing twice... but neither should the build fail
in that situation.

--
Wendy

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



Re: Continuum tries to checkout artifactId instead of module

2006-11-27 Thread Emmanuel Venisse

It wasn't a bug but a known limitation in maven inheritance in child pom. I 
implemented a workaround in continuum and will be available in 1.1

Emmanuel

idallas a écrit :

Is this issue considered a bug, or a known limitation? (I didn't find
anything in Jira)

It seems like if Maven is able to handle projects with child atrifactIds
that != directory names, Continuum should support that too. 


It's definitely a deal-breaker for me personally, and I suspect it would be
for a lot of other users as well. 


--ian


Emmanuel Venisse wrote:

you can choose between two solutions for this pb.
1. rename your directory to the artifactId
2. Add the scm url in all your child pom
I prefer 1.







Re: Proxy vs. Repository URLs

2006-11-27 Thread Barrie Treloar

One future feature for archiva is to manage the pom internal
repositories to point to itself.
In other words, if archiva is told to proxy central, and a pom gets
pulled down pointing to a new repository of say ...
repository
  idsf.net/id
  urlhttp://projfoo.sourceforge.net/maven2//url
/repository

then archiva should replace that entry with itself so that the requests
at the maven client continue to hit the corporate repository.

We need to have a more sane / verbose id field, as that is what is used
in maven client for log messages and the like.
But having a more verbose id field for the url make no sense.  hence the
split.


This is a great example of why id or name is of no value.

Consider another project:
repository
 idsf.net/id
 urlhttp://another_project.sourceforge.net/maven2//url
/repository

Since there can be no enforcement of the content of id/name it is too
easy to get shadowed.  It is impossible to shadow the url.

The other problem is displaying information messages that include the id.
Since a repository can be defined in ANY pom in the transitive
dependency list there is no easy way for the user to find out what the
definition of sf.net actually points to.

This only affects people with firewalls, as it does me, because I need
to put in a security request to get the url of sf.net opened up as
an unauthenticated proxy.  At least until either maven or archive can
support NTLM authentication (or I convince people here to ditch NTLM
and use LDAP).

Yes the information messages will be longer by pointing to URLs but it
may be better from a useability point of view.


Re: Install Running Twice

2006-11-27 Thread Brandon Goodin

I think it was a mevenide issue in netbeans 5.5. I can consistently clean
and install from the command line. In Netbeans 5.5 it works once and then
any clean and install following that will try to run things twice.

The second build failed because i have the webstart plugin that signs the
jars. When it tried to create a new keystore a second time it already
existed and failed. Normally it would not be an issue. But, when using the
webstart:jnlp signing it is a problem.

Thanks,
Brandon

On 11/27/06, Wendy Smoak [EMAIL PROTECTED] wrote:


On 11/27/06, Brandon Goodin [EMAIL PROTECTED] wrote:

 I have a 3 module project with an aggregate pom. When i run 'mvn
install'
 from the aggregate pom it tries to run install on all of the modules
twice.
 This is causing one of the installs to fail. Has anyone had an
experience
 like this?

Aggregate pom just meaning one with modules ?  Is there any
interesting plugin configuration going on?

It shouldn't be installing twice... but neither should the build fail
in that situation.

--
Wendy

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




Inheritance

2006-11-27 Thread Robert Reiner

Hi!

I have written an ant mojo I want to bind to a phase. This mojo should be
configured (I currently only want to specify the version) in a parent POM
and inherited to a POM used for a jar project.

So I define in the *.mojos.xml

...
pluginMetadata
  mojos
mojo
  callnative2ascii/call
  goalresources/goal
  phaseprocess-classes/phase
...

In the parent POM:

...
 pluginManagement
  plugins
plugin
  groupIdde.mycompany.maven.plugins/groupId
  artifactIdmaven-native2ascii-plugin/artifactId
  version1.0.0-SNAPSHOT/version
/plugin
...

And in the jar project POM (using the parent POM):

...
  plugin
  groupIdde.mycompany.maven.plugins/groupId
  artifactIdmaven-native2ascii-plugin/artifactId
  /plugin
...

I expected that the plugin will run, but it doesn't. I do not see where my
error is. Any suggestions?

BTW: If I specify in the jar project POM

...
build
  plugins
   plugin
  groupIdde.mycompany.maven.plugins/groupId
  artifactIdmaven-native2ascii-plugin/artifactId
  executions
execution
  phaseprocess-classes/phase
  goals
goalresources/goal
  /goals
/execution
  /executions
/plugin
...

everything works fine... but I do not want to repeat these lines in every
POM...

Thanks in advance!

   Robert

-- 
View this message in context: 
http://www.nabble.com/Inheritance-tf2714737s177.html#a7569097
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: run maven from ant

2006-11-27 Thread Christofer Jennings

So far, using the exec task seems to work.

target name=install
  exec dir=. executable=C:/java/maven-2.0.4/bin/mvn.bat
 arg line=install /
  /exec
/target

This is in a build.xml next to my pom.

,chris



On 11/27/06, Christofer Jennings [EMAIL PROTECTED] wrote:


What is the simplest / preferred way to run maven from ant?

My maven project is being integrated with a larger project that uses
ant. I want the process to be painless to ant lovers, if possible.

Thanks in advance
,chris



surefire - testng report - format cross reference links

2006-11-27 Thread Andy Olliver

Hi

I have maven 2.0.4, using Surefire 2.0 to run TestNG unit tests.
The report generated by the maven-surefire-report-plugin is not ideal - I
wonder if there is anything I can do.

Under the 'Test Cases' heading, I have a list of method names that are not
prefixed with the package / class names.
In the example report shown from the testNG site, I see test cases in
format: 'net.sf.tacos.services.SiteMapTest#testInitialize'.
But I just get the method name, which makes it hard to know whats begin
executed..

Under the 'Failure Details' heading, I have the list of failed tests, again
I have only the method name, no package / class names, and the label and
location for all cross reference links are wrong.
Each link is in the format:'[testNG group name]. [testNG group name]:'
( e.g 'functest.functest:' ), and the link is broken.

Is there perhaps a means to create a slightly more 'TestNG appropriate' HTML
report via the surefire report pluggin, or another plugin?
As an alternative I can use ANT to run my tests, and use the junitreport
task to create HTML reports - is the best I can do right now ?

thanks

Andy


how to add local jars to maven compile classpath

2006-11-27 Thread Yan Zheng

Hi,

My team is developing a maven plugin that generates Java source code.  User
can then compile these Java sources using standard maven compiler plugin.
However, the compilation needs some jars that's installed locally on user's
machine (not present in maven repository).  The compilation fails because
the local jars are not on maven's default compile classpath.

How to add local jars to maven's compile classpath?  Any suggestions are
appreciated.  I'm looking for a solution that adds the lcoal jars
programmatically (so we can have this set in our plugin code).  But if
anyone knows how to set this via pom, that's helpful too.

Regards.
Yan


how to prevent maven-compiler-plugin from running during compile life cycle

2006-11-27 Thread Yan Zheng

Hi,

In my particular project settings, it's sometimes desirable to prevent the
maven's default compiler (maven-compiler-plugin) from running during the
compile phase.  Instead, we want to do the compilation using an Ant build
file.

Has anyone tried this -- preventing the maven-compiler-plugin from running
during the maven compile life cycle?

Thanks.
Yan


RE: How to do native2ascii?

2006-11-27 Thread Mark Struberg
Hi Jiang!

This task is a bit tricky, since the antrun plugin
does come with almost no dependencies in the default
pom. This is basically a good idea, since you don't
have jars lying around which you do not use.

Specially the native2ascii is a bit dirty, since this
is a special part provided by the sun tools set and
not the jre libs itself.

Sosince, as sigi pointed out a few weeks ago,  you
have to add the needed dependency yourself.


I guess it's the com.sun.tools you have to add to your
antrun dependencies:


plugin
  artifactIdmaven-antrun-plugin/artifactId
  ...
  dependencies
dependency
  groupIdcom.sun/groupId
  artifactIdtools/artifactId
 scopesystem/scope

systemPath${java.home}/../lib/tools.jar/systemPath
/dependency
  /dependencies
/plugin
 
lg,
strub


--- jiangshachina [EMAIL PROTECTED] schrieb:

 
 Hi guys,
 I must write some resource files related to
 localization.
 On develop time, I have to write natural local
 language; on runtime,
 application must use ASCII codes.
 So I have to convert the native resource files to
 ASCII files before
 deploying.
 
 Now, I use maven-antrun-plugin to execute Ant task
 native2ascii.
 The following is my scripts on the work,
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-antrun-plugin/artifactId
   executions
   execution
   idresources/id
   phaseprocess-resources/phase
   configuration
   tasks
   native2ascii reverse=true 
 encoding=UTF8
   
 src=target/sodoperation/WEB-INF/classes
   
 dest=target/sodoperation/WEB-INF/classes
   includes=**/*zh_CN.properties 
 /
   /tasks
   /configuration
   goals
   goalrun/goal
   /goals
   /execution
   /executions
   dependencies
   dependency
   groupIdant/groupId
   artifactIdant-antlr/artifactId
   version1.6.5/version
   /dependency
   dependency
   groupIdantlr/groupId
   artifactIdantlrall/artifactId
   version2.7.4/version
   /dependency
   /dependencies
 /plugin
 When I run mvn package, an error thrown,
 [ERROR] BUILD ERROR
 [INFO]


 [INFO] Error executing ant tasks
 Embedded error: Could not create task or type of
 type: native2ascii.
 Ant could not find the task or a class this task
 relies upon.
 ..
 
 I need some another jars?
 How to resolve the problem?
 Thanks in advance.
 
 a cup of Java, cheers!
 Sha Jiang
 -- 
 View this message in context:

http://www.nabble.com/How-to-do-%22native2ascii%22--tf2710959s177.html#a7557862
 Sent from the Maven - Users mailing list archive at
 Nabble.com.
 
 

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




___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

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



Re: how to prevent maven-compiler-plugin from running during compile life cycle

2006-11-27 Thread Wendy Smoak

On 11/27/06, Yan Zheng [EMAIL PROTECTED] wrote:


In my particular project settings, it's sometimes desirable to prevent the
maven's default compiler (maven-compiler-plugin) from running during the
compile phase.  Instead, we want to do the compilation using an Ant build
file.


You can use a packaging type of 'pom' and then bind plugin executions
(such as antrun) wherever you want them.

--
Wendy

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



Re: Install Running Twice

2006-11-27 Thread Mark Struberg

If 'aggregated POM' means POM inheritence, this may
also be a situation like this one:
http://jira.codehaus.org/browse/MNG-2297

try using 
$mvn help:effective-pom

If you get two nearly identical plugin sections then
you have to wait for maven-2.0.5 or merge the pach
back to 2.0.4 .

lg,
strub

--- Brandon Goodin [EMAIL PROTECTED] schrieb:

 I think it was a mevenide issue in netbeans 5.5. I
 can consistently clean
 and install from the command line. In Netbeans 5.5
 it works once and then
 any clean and install following that will try to run
 things twice.
 
 The second build failed because i have the webstart
 plugin that signs the
 jars. When it tried to create a new keystore a
 second time it already
 existed and failed. Normally it would not be an
 issue. But, when using the
 webstart:jnlp signing it is a problem.
 
 Thanks,
 Brandon
 
 On 11/27/06, Wendy Smoak [EMAIL PROTECTED] wrote:
 
  On 11/27/06, Brandon Goodin
 [EMAIL PROTECTED] wrote:
 
   I have a 3 module project with an aggregate pom.
 When i run 'mvn
  install'
   from the aggregate pom it tries to run install
 on all of the modules
  twice.
   This is causing one of the installs to fail. Has
 anyone had an
  experience
   like this?
 
  Aggregate pom just meaning one with modules ? 
 Is there any
  interesting plugin configuration going on?
 
  It shouldn't be installing twice... but neither
 should the build fail
  in that situation.
 
  --
  Wendy
 
 

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







___ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de

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



RE: How to do native2ascii?

2006-11-27 Thread Mark Struberg
Btw, you may remove the antlr dependencies since this
has nothing to do with ant.

antlr: ANother Tool for Language Recognition

read more at: 
http://www.antlr.org/

Some ant dependencies which (in other common
scenarios) would make sense are:

ant/ant-nodeps
ant/ant-stylebook
ant-contrig/ant-contrib

lg,
strub

--- Mark Struberg [EMAIL PROTECTED] schrieb:
  dependencies
  dependency
  groupIdant/groupId
  artifactIdant-antlr/artifactId
  version1.6.5/version
  /dependency
  dependency
  groupIdantlr/groupId
  artifactIdantlrall/artifactId
  version2.7.4/version
  /dependency
  /dependencies
  /plugin
  When I run mvn package, an error thrown,
  [ERROR] BUILD ERROR
  [INFO]
 




___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

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



Re: how to add local jars to maven compile classpath

2006-11-27 Thread Wayne Fay

Use scope system in your dependency to use them via pom...

I don't know how to set them programmatically in your plugin code.

Wayne

On 11/27/06, Yan Zheng [EMAIL PROTECTED] wrote:

Hi,

My team is developing a maven plugin that generates Java source code.  User
can then compile these Java sources using standard maven compiler plugin.
However, the compilation needs some jars that's installed locally on user's
machine (not present in maven repository).  The compilation fails because
the local jars are not on maven's default compile classpath.

How to add local jars to maven's compile classpath?  Any suggestions are
appreciated.  I'm looking for a solution that adds the lcoal jars
programmatically (so we can have this set in our plugin code).  But if
anyone knows how to set this via pom, that's helpful too.

Regards.
Yan




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



RE: How to do native2ascii?

2006-11-27 Thread jiangshachina

Hi struberg,
Thanks for your help.
I had a try with your instructions, but didn't get good result.
The following is my snippet of scripts
dependency
  groupIdcom.sun/groupId
  artifactIdtools/artifactId
  version1.5.0_09/version
  scopesystem/scope
  systemPath
C:\setup\java\jdk1.5.0_09\lib\tools.jar
  /systemPath
/dependency

The error and information are below,
[ERROR] BUILD ERROR
[INFO]

[INFO] Error executing ant tasks

Embedded error: Could not create task or type of type: native2ascii.

Ant could not find the task or a class this task relies upon.

This is common and has a number of causes; the usual 
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file: 
 - You have misspelt 'native2ascii'.
   Fix: check your spelling.
 - The task needs an external JAR file to execute
 and this is not found at the right place in the classpath.
   Fix: check the documentation for dependencies.
   Fix: declare the task.
 - The task is an Ant optional task and the JAR file and/or libraries
 implementing the functionality were not found at the time you
 yourself built your installation of Ant from the Ant sources.
   Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
 task and make sure it contains more than merely a META-INF/MANIFEST.MF.
 If all it contains is the manifest, then rebuild Ant with the needed
 libraries present in ${ant.home}/lib/optional/ , or alternatively,
 download a pre-built release version from apache.org
 - The build file was written for a later version of Ant
   Fix: upgrade to at least the latest release version of Ant
 - The task is not an Ant core or optional task 
 and needs to be declared using taskdef.
 - You are attempting to use a task defined using 
presetdef or macrodef but have spelt wrong or not 
   defined it at the point of use

Remember that for JAR files to be visible to Ant tasks implemented
in ANT_HOME/lib, the files must be in the same directory or on the
classpath

Please neither file bug reports on this problem, nor email the
Ant mailing lists, until all of these causes have been explored,
as this is not an Ant bug.

The error and information is as the same as that at last time.
It's the first time of using system scope, may I don't understand the scope
well.

a cup of Java, cheers!
Sha Jiang


struberg wrote:
 
 Hi Jiang!
 
 This task is a bit tricky, since the antrun plugin
 does come with almost no dependencies in the default
 pom. This is basically a good idea, since you don't
 have jars lying around which you do not use.
 
 Specially the native2ascii is a bit dirty, since this
 is a special part provided by the sun tools set and
 not the jre libs itself.
 
 Sosince, as sigi pointed out a few weeks ago,  you
 have to add the needed dependency yourself.
 
 
 I guess it's the com.sun.tools you have to add to your
 antrun dependencies:
 
 
 plugin
   artifactIdmaven-antrun-plugin/artifactId
   ...
   dependencies
 dependency
   groupIdcom.sun/groupId
   artifactIdtools/artifactId
  scopesystem/scope
 
 systemPath${java.home}/../lib/tools.jar/systemPath
 /dependency
   /dependencies
 /plugin
  
 lg,
 strub
 
 
 --- jiangshachina [EMAIL PROTECTED] schrieb:
 
 
 Hi guys,
 I must write some resource files related to
 localization.
 On develop time, I have to write natural local
 language; on runtime,
 application must use ASCII codes.
 So I have to convert the native resource files to
 ASCII files before
 deploying.
 
 Now, I use maven-antrun-plugin to execute Ant task
 native2ascii.
 The following is my scripts on the work,
 plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-antrun-plugin/artifactId
  executions
  execution
  idresources/id
  phaseprocess-resources/phase
  configuration
  tasks
  native2ascii reverse=true 
 encoding=UTF8
  
 src=target/sodoperation/WEB-INF/classes
  
 dest=target/sodoperation/WEB-INF/classes
  includes=**/*zh_CN.properties 
 /
  /tasks
  /configuration
  goals
  goalrun/goal
  /goals
  /execution
  /executions
  dependencies
  dependency
  groupIdant/groupId
  artifactIdant-antlr/artifactId
  version1.6.5/version
  /dependency
  dependency
  groupIdantlr/groupId
  artifactIdantlrall/artifactId
  version2.7.4/version
  /dependency
  /dependencies
 

Re: How to do native2ascii?

2006-11-27 Thread Wayne Fay

Did you put the dependency node inside plugin, as suggested, or
just directly to the project?

Wayne

On 11/27/06, jiangshachina [EMAIL PROTECTED] wrote:


Hi struberg,
Thanks for your help.
I had a try with your instructions, but didn't get good result.
The following is my snippet of scripts
dependency
 groupIdcom.sun/groupId
 artifactIdtools/artifactId
 version1.5.0_09/version
 scopesystem/scope
 systemPath
   C:\setup\java\jdk1.5.0_09\lib\tools.jar
 /systemPath
/dependency

The error and information are below,
[ERROR] BUILD ERROR
[INFO]

[INFO] Error executing ant tasks

Embedded error: Could not create task or type of type: native2ascii.

Ant could not find the task or a class this task relies upon.

This is common and has a number of causes; the usual
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file:
 - You have misspelt 'native2ascii'.
  Fix: check your spelling.
 - The task needs an external JAR file to execute
and this is not found at the right place in the classpath.
  Fix: check the documentation for dependencies.
  Fix: declare the task.
 - The task is an Ant optional task and the JAR file and/or libraries
implementing the functionality were not found at the time you
yourself built your installation of Ant from the Ant sources.
  Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
task and make sure it contains more than merely a META-INF/MANIFEST.MF.
If all it contains is the manifest, then rebuild Ant with the needed
libraries present in ${ant.home}/lib/optional/ , or alternatively,
download a pre-built release version from apache.org
 - The build file was written for a later version of Ant
  Fix: upgrade to at least the latest release version of Ant
 - The task is not an Ant core or optional task
and needs to be declared using taskdef.
 - You are attempting to use a task defined using
   presetdef or macrodef but have spelt wrong or not
  defined it at the point of use

Remember that for JAR files to be visible to Ant tasks implemented
in ANT_HOME/lib, the files must be in the same directory or on the
classpath

Please neither file bug reports on this problem, nor email the
Ant mailing lists, until all of these causes have been explored,
as this is not an Ant bug.

The error and information is as the same as that at last time.
It's the first time of using system scope, may I don't understand the scope
well.

a cup of Java, cheers!
Sha Jiang


struberg wrote:

 Hi Jiang!

 This task is a bit tricky, since the antrun plugin
 does come with almost no dependencies in the default
 pom. This is basically a good idea, since you don't
 have jars lying around which you do not use.

 Specially the native2ascii is a bit dirty, since this
 is a special part provided by the sun tools set and
 not the jre libs itself.

 Sosince, as sigi pointed out a few weeks ago,  you
 have to add the needed dependency yourself.


 I guess it's the com.sun.tools you have to add to your
 antrun dependencies:


 plugin
   artifactIdmaven-antrun-plugin/artifactId
   ...
   dependencies
 dependency
   groupIdcom.sun/groupId
   artifactIdtools/artifactId
  scopesystem/scope

 systemPath${java.home}/../lib/tools.jar/systemPath
 /dependency
   /dependencies
 /plugin

 lg,
 strub


 --- jiangshachina [EMAIL PROTECTED] schrieb:


 Hi guys,
 I must write some resource files related to
 localization.
 On develop time, I have to write natural local
 language; on runtime,
 application must use ASCII codes.
 So I have to convert the native resource files to
 ASCII files before
 deploying.

 Now, I use maven-antrun-plugin to execute Ant task
 native2ascii.
 The following is my scripts on the work,
 plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-antrun-plugin/artifactId
  executions
  execution
  idresources/id
  phaseprocess-resources/phase
  configuration
  tasks
  native2ascii reverse=true 
encoding=UTF8
  
src=target/sodoperation/WEB-INF/classes
  
dest=target/sodoperation/WEB-INF/classes
  includes=**/*zh_CN.properties 
/
  /tasks
  /configuration
  goals
  goalrun/goal
  /goals
  /execution
  /executions
  dependencies
  dependency
  groupIdant/groupId
  artifactIdant-antlr/artifactId
  version1.6.5/version
  /dependency
  dependency
  groupIdantlr/groupId
  

RE: How to do native2ascii?

2006-11-27 Thread Mark Struberg
Oki, i looked at all jars. You have to add the
ant-nodeps to your dependencies also.

This contains the optional ant taskdef for
native2ascii.

dependency
  groupIdant/groupId
  artifactIdant-nodeps/artifactId
  version1.6.5/version
  scoperuntime/scope
/dependency

lg,
strub


--- jiangshachina [EMAIL PROTECTED] schrieb:

 
 Hi struberg,
 Thanks for your help.
 I had a try with your instructions, but didn't get
 good result.
 The following is my snippet of scripts
 dependency
   groupIdcom.sun/groupId
   artifactIdtools/artifactId
   version1.5.0_09/version
   scopesystem/scope
   systemPath
 C:\setup\java\jdk1.5.0_09\lib\tools.jar
   /systemPath
 /dependency
 
 The error and information are below,
 [ERROR] BUILD ERROR
 [INFO]


 [INFO] Error executing ant tasks
 
 Embedded error: Could not create task or type of
 type: native2ascii.
 
 Ant could not find the task or a class this task
 relies upon.
 
 This is common and has a number of causes; the usual
 
 solutions are to read the manual pages then download
 and
 install needed JAR files, or fix the build file: 
  - You have misspelt 'native2ascii'.
Fix: check your spelling.
  - The task needs an external JAR file to execute
  and this is not found at the right place in the
 classpath.
Fix: check the documentation for dependencies.
Fix: declare the task.
  - The task is an Ant optional task and the JAR file
 and/or libraries
  implementing the functionality were not found
 at the time you
  yourself built your installation of Ant from
 the Ant sources.
Fix: Look in the ANT_HOME/lib for the 'ant-' JAR
 corresponding to the
  task and make sure it contains more than merely
 a META-INF/MANIFEST.MF.
  If all it contains is the manifest, then
 rebuild Ant with the needed
  libraries present in ${ant.home}/lib/optional/
 , or alternatively,
  download a pre-built release version from
 apache.org
  - The build file was written for a later version of
 Ant
Fix: upgrade to at least the latest release
 version of Ant
  - The task is not an Ant core or optional task 
  and needs to be declared using taskdef.
  - You are attempting to use a task defined using 
 presetdef or macrodef but have spelt wrong
 or not 
defined it at the point of use
 
 Remember that for JAR files to be visible to Ant
 tasks implemented
 in ANT_HOME/lib, the files must be in the same
 directory or on the
 classpath
 
 Please neither file bug reports on this problem, nor
 email the
 Ant mailing lists, until all of these causes have
 been explored,
 as this is not an Ant bug.
 
 The error and information is as the same as that at
 last time.
 It's the first time of using system scope, may I
 don't understand the scope
 well.
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 struberg wrote:
  
  Hi Jiang!
  
  This task is a bit tricky, since the antrun plugin
  does come with almost no dependencies in the
 default
  pom. This is basically a good idea, since you
 don't
  have jars lying around which you do not use.
  
  Specially the native2ascii is a bit dirty, since
 this
  is a special part provided by the sun tools set
 and
  not the jre libs itself.
  
  Sosince, as sigi pointed out a few weeks ago,  you
  have to add the needed dependency yourself.
  
  
  I guess it's the com.sun.tools you have to add to
 your
  antrun dependencies:
  
  
  plugin
artifactIdmaven-antrun-plugin/artifactId
...
dependencies
  dependency
groupIdcom.sun/groupId
artifactIdtools/artifactId
   scopesystem/scope
  
 

systemPath${java.home}/../lib/tools.jar/systemPath
  /dependency
/dependencies
  /plugin
   
  lg,
  strub
  
  
  --- jiangshachina [EMAIL PROTECTED]
 schrieb:
  
  
  Hi guys,
  I must write some resource files related to
  localization.
  On develop time, I have to write natural local
  language; on runtime,
  application must use ASCII codes.
  So I have to convert the native resource files to
  ASCII files before
  deploying.
  
  Now, I use maven-antrun-plugin to execute Ant
 task
  native2ascii.
  The following is my scripts on the work,
  plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-antrun-plugin/artifactId
 executions
 execution
 idresources/id
 phaseprocess-resources/phase
 configuration
 tasks
 native2ascii reverse=true 
  encoding=UTF8
 
  src=target/sodoperation/WEB-INF/classes
 
  dest=target/sodoperation/WEB-INF/classes
 includes=**/*zh_CN.properties 
  /
 /tasks
 /configuration
 goals
 goalrun/goal
 

Re: How to do native2ascii?

2006-11-27 Thread jiangshachina

Hi,
It's in
buildpluginsplugindependency/dependencyplugin/plugins/build.

a cup of Java, cheers!
Sha Jiang


Wayne Fay wrote:
 
 Did you put the dependency node inside plugin, as suggested, or
 just directly to the project?
 
 Wayne
 
 On 11/27/06, jiangshachina [EMAIL PROTECTED] wrote:

 Hi struberg,
 Thanks for your help.
 I had a try with your instructions, but didn't get good result.
 The following is my snippet of scripts
 dependency
  groupIdcom.sun/groupId
  artifactIdtools/artifactId
  version1.5.0_09/version
  scopesystem/scope
  systemPath
C:\setup\java\jdk1.5.0_09\lib\tools.jar
  /systemPath
 /dependency

 The error and information are below,
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error executing ant tasks

 Embedded error: Could not create task or type of type: native2ascii.

 Ant could not find the task or a class this task relies upon.

 This is common and has a number of causes; the usual
 solutions are to read the manual pages then download and
 install needed JAR files, or fix the build file:
  - You have misspelt 'native2ascii'.
   Fix: check your spelling.
  - The task needs an external JAR file to execute
 and this is not found at the right place in the classpath.
   Fix: check the documentation for dependencies.
   Fix: declare the task.
  - The task is an Ant optional task and the JAR file and/or libraries
 implementing the functionality were not found at the time you
 yourself built your installation of Ant from the Ant sources.
   Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
 task and make sure it contains more than merely a
 META-INF/MANIFEST.MF.
 If all it contains is the manifest, then rebuild Ant with the needed
 libraries present in ${ant.home}/lib/optional/ , or alternatively,
 download a pre-built release version from apache.org
  - The build file was written for a later version of Ant
   Fix: upgrade to at least the latest release version of Ant
  - The task is not an Ant core or optional task
 and needs to be declared using taskdef.
  - You are attempting to use a task defined using
presetdef or macrodef but have spelt wrong or not
   defined it at the point of use

 Remember that for JAR files to be visible to Ant tasks implemented
 in ANT_HOME/lib, the files must be in the same directory or on the
 classpath

 Please neither file bug reports on this problem, nor email the
 Ant mailing lists, until all of these causes have been explored,
 as this is not an Ant bug.

 The error and information is as the same as that at last time.
 It's the first time of using system scope, may I don't understand the
 scope
 well.

 a cup of Java, cheers!
 Sha Jiang


 struberg wrote:
 
  Hi Jiang!
 
  This task is a bit tricky, since the antrun plugin
  does come with almost no dependencies in the default
  pom. This is basically a good idea, since you don't
  have jars lying around which you do not use.
 
  Specially the native2ascii is a bit dirty, since this
  is a special part provided by the sun tools set and
  not the jre libs itself.
 
  Sosince, as sigi pointed out a few weeks ago,  you
  have to add the needed dependency yourself.
 
 
  I guess it's the com.sun.tools you have to add to your
  antrun dependencies:
 
 
  plugin
artifactIdmaven-antrun-plugin/artifactId
...
dependencies
  dependency
groupIdcom.sun/groupId
artifactIdtools/artifactId
   scopesystem/scope
 
  systemPath${java.home}/../lib/tools.jar/systemPath
  /dependency
/dependencies
  /plugin
 
  lg,
  strub
 
 
  --- jiangshachina [EMAIL PROTECTED] schrieb:
 
 
  Hi guys,
  I must write some resource files related to
  localization.
  On develop time, I have to write natural local
  language; on runtime,
  application must use ASCII codes.
  So I have to convert the native resource files to
  ASCII files before
  deploying.
 
  Now, I use maven-antrun-plugin to execute Ant task
  native2ascii.
  The following is my scripts on the work,
  plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-antrun-plugin/artifactId
   executions
   execution
   idresources/id
   phaseprocess-resources/phase
   configuration
   tasks
   native2ascii reverse=true
 encoding=UTF8
  
 src=target/sodoperation/WEB-INF/classes
  
 dest=target/sodoperation/WEB-INF/classes
  
 includes=**/*zh_CN.properties /
   /tasks
   /configuration
   goals
   goalrun/goal
   /goals
   /execution
   /executions
   dependencies
   dependency
  

Re: run maven from ant

2006-11-27 Thread John Sanda

I have been looking to call a Maven build from Ant as well. Has anyone tried
using the Embedder,
http://maven.apache.org/guides/mini/guide-embedding-m2.html? Looks like it
may provide a nice API that could be used to write Ant tasks for different
goals.

On 11/27/06, Christofer Jennings [EMAIL PROTECTED] wrote:


So far, using the exec task seems to work.

target name=install
   exec dir=. executable=C:/java/maven-2.0.4/bin/mvn.bat
  arg line=install /
   /exec
/target

This is in a build.xml next to my pom.

,chris



On 11/27/06, Christofer Jennings [EMAIL PROTECTED] wrote:

 What is the simplest / preferred way to run maven from ant?

 My maven project is being integrated with a larger project that uses
 ant. I want the process to be painless to ant lovers, if possible.

 Thanks in advance
 ,chris






--

- John


RE: How to do native2ascii?

2006-11-27 Thread jiangshachina

OK, that's right!
Thanks very much!

a cup of Java, cheers!
Sha Jiang


struberg wrote:
 
 Oki, i looked at all jars. You have to add the
 ant-nodeps to your dependencies also.
 
 This contains the optional ant taskdef for
 native2ascii.
 
 dependency
   groupIdant/groupId
   artifactIdant-nodeps/artifactId
   version1.6.5/version
   scoperuntime/scope
 /dependency
 
 lg,
 strub
 
 
 --- jiangshachina [EMAIL PROTECTED] schrieb:
 
 
 Hi struberg,
 Thanks for your help.
 I had a try with your instructions, but didn't get
 good result.
 The following is my snippet of scripts
 dependency
   groupIdcom.sun/groupId
   artifactIdtools/artifactId
   version1.5.0_09/version
   scopesystem/scope
   systemPath
 C:\setup\java\jdk1.5.0_09\lib\tools.jar
   /systemPath
 /dependency
 
 The error and information are below,
 [ERROR] BUILD ERROR
 [INFO]

 
 [INFO] Error executing ant tasks
 
 Embedded error: Could not create task or type of
 type: native2ascii.
 
 Ant could not find the task or a class this task
 relies upon.
 
 This is common and has a number of causes; the usual
 
 solutions are to read the manual pages then download
 and
 install needed JAR files, or fix the build file: 
  - You have misspelt 'native2ascii'.
Fix: check your spelling.
  - The task needs an external JAR file to execute
  and this is not found at the right place in the
 classpath.
Fix: check the documentation for dependencies.
Fix: declare the task.
  - The task is an Ant optional task and the JAR file
 and/or libraries
  implementing the functionality were not found
 at the time you
  yourself built your installation of Ant from
 the Ant sources.
Fix: Look in the ANT_HOME/lib for the 'ant-' JAR
 corresponding to the
  task and make sure it contains more than merely
 a META-INF/MANIFEST.MF.
  If all it contains is the manifest, then
 rebuild Ant with the needed
  libraries present in ${ant.home}/lib/optional/
 , or alternatively,
  download a pre-built release version from
 apache.org
  - The build file was written for a later version of
 Ant
Fix: upgrade to at least the latest release
 version of Ant
  - The task is not an Ant core or optional task 
  and needs to be declared using taskdef.
  - You are attempting to use a task defined using 
 presetdef or macrodef but have spelt wrong
 or not 
defined it at the point of use
 
 Remember that for JAR files to be visible to Ant
 tasks implemented
 in ANT_HOME/lib, the files must be in the same
 directory or on the
 classpath
 
 Please neither file bug reports on this problem, nor
 email the
 Ant mailing lists, until all of these causes have
 been explored,
 as this is not an Ant bug.
 
 The error and information is as the same as that at
 last time.
 It's the first time of using system scope, may I
 don't understand the scope
 well.
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 struberg wrote:
  
  Hi Jiang!
  
  This task is a bit tricky, since the antrun plugin
  does come with almost no dependencies in the
 default
  pom. This is basically a good idea, since you
 don't
  have jars lying around which you do not use.
  
  Specially the native2ascii is a bit dirty, since
 this
  is a special part provided by the sun tools set
 and
  not the jre libs itself.
  
  Sosince, as sigi pointed out a few weeks ago,  you
  have to add the needed dependency yourself.
  
  
  I guess it's the com.sun.tools you have to add to
 your
  antrun dependencies:
  
  
  plugin
artifactIdmaven-antrun-plugin/artifactId
...
dependencies
  dependency
groupIdcom.sun/groupId
artifactIdtools/artifactId
   scopesystem/scope
  
 

 systemPath${java.home}/../lib/tools.jar/systemPath
  /dependency
/dependencies
  /plugin
   
  lg,
  strub
  
  
  --- jiangshachina [EMAIL PROTECTED]
 schrieb:
  
  
  Hi guys,
  I must write some resource files related to
  localization.
  On develop time, I have to write natural local
  language; on runtime,
  application must use ASCII codes.
  So I have to convert the native resource files to
  ASCII files before
  deploying.
  
  Now, I use maven-antrun-plugin to execute Ant
 task
  native2ascii.
  The following is my scripts on the work,
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
executions
execution
idresources/id
phaseprocess-resources/phase
configuration
tasks
native2ascii reverse=true 
  encoding=UTF8

  src=target/sodoperation/WEB-INF/classes

  dest=target/sodoperation/WEB-INF/classes
includes=**/*zh_CN.properties 
  /
/tasks

Maven and Eclipse

2006-11-27 Thread Jarret R

All,

I hope this question hasn't been asked a million times already, but I
have been playing around with this issue for quite a while now and I
think it is time to ask for some professional help. I am working on
setting up an enterprise Java application. I am trying to get a basic
project structure set up for use, but I am running into difficulties.

My desired project structure is below. Each top level directory is an
Eclipse project. Common contains the top level pom.xml and the
dependencies are pretty easy to work out, or I can include them if
necessary.

Common/
MidTier/
Domain/
Web/
Plugin/

Following the directions here:

http://maven.apache.org/guides/mini/guide-ide-eclipse.html

Gets me one project with multiple subdirectories. It all builds find
in Maven, but Eclipse won't build the project at all. I assume it
doesn't recognize the directories under src/main/java as containing
Java source.

Is there a good guide for getting Maven set up under Eclipse utilizing
Eclipse's inline building? I can't seem to get a sane build that works
in Maven and Eclipse, just one or the other.


Thanks,
Jarret R

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



Re: Maven and Eclipse

2006-11-27 Thread Max Cooper

Jarret,

Try this:

1. Run 'mvn eclipse:eclipse' from your Common directory.

2. Starting with an empty workspace in Eclipse, setup the M2_REPO 
classpath variable.


3. Use the File - Import - Existing projects into workspace feature. 
Choose the root directory of your project (NOT Common, but Common/..), 
and all of your Maven modules should show up in the list of projects to 
import in the dialog box. Make sure they are all checked, and Next/Close 
your way out of the dialog.


You should end up with a workspace that has a separate (but 
inter-dependent) Eclipse project for each of your modules (Common. 
MidTier, etc.). They should all be setup with proper dependencies and 
src and output dirs such that Eclipse will build them (and not show any 
compile errors).


I have noticed that 'mvn eclipse:eclipse' doesn't produce a .project 
file for non-Java projects. For instance, it might not produce one for 
your Common project. In that case, just add that module as a Simple 
Project in Eclipse, and commit the resulting .project file into your 
source control (so other team members don't have to suffer this step).


-Max

Jarret R wrote:

All,

I hope this question hasn't been asked a million times already, but I
have been playing around with this issue for quite a while now and I
think it is time to ask for some professional help. I am working on
setting up an enterprise Java application. I am trying to get a basic
project structure set up for use, but I am running into difficulties.

My desired project structure is below. Each top level directory is an
Eclipse project. Common contains the top level pom.xml and the
dependencies are pretty easy to work out, or I can include them if
necessary.

Common/
MidTier/
Domain/
Web/
Plugin/

Following the directions here:

http://maven.apache.org/guides/mini/guide-ide-eclipse.html

Gets me one project with multiple subdirectories. It all builds find
in Maven, but Eclipse won't build the project at all. I assume it
doesn't recognize the directories under src/main/java as containing
Java source.

Is there a good guide for getting Maven set up under Eclipse utilizing
Eclipse's inline building? I can't seem to get a sane build that works
in Maven and Eclipse, just one or the other.


Thanks,
Jarret R

-
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 and Eclipse

2006-11-27 Thread Barrie Treloar

On 11/28/06, Jarret R [EMAIL PROTECTED] wrote:

All,

I hope this question hasn't been asked a million times already, but I
have been playing around with this issue for quite a while now and I
think it is time to ask for some professional help. I am working on
setting up an enterprise Java application. I am trying to get a basic
project structure set up for use, but I am running into difficulties.


See
http://www.nabble.com/forum/ViewPost.jtp?post=5862059framed=yskin=177
and
http://www.nabble.com/forum/ViewPost.jtp?post=7495404framed=yskin=177

And when you have worked out what needs to be done, would you write it
up into the Maven wiki at
http://docs.codehaus.org/display/MAVENUSER/Mini+Guides and maybe
provide a patch for documentation...

You will need the snapshot version of eclipse:eclipse to do this.

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



RE: How to do native2ascii?

2006-11-27 Thread jiangshachina

Hello,
Now I have another troubles.
executions
execution
idcompile/id
phasecompile/phase
configuration
tasks
native2ascii encoding=UTF8 src=src/java

dest=target/${project.build.finalName}/WEB-INF/classes
includes=**/*zh_CN.properties /
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
With my scripts, when Maven compiles sources,
specific resource files will be processed by native2ascii.exe,
then they will be putted into WAR/WEB-INF/classes.

But if I set parameter archiveClasses to true for maven-war-plugin,
two troubles shown,
[1]directory WAR/WEB-INF/classes still existed, the resource files were in
right format.
[2]${project.build.finalName}.jar also existed, but the resource files were
in wrong format. Chinese characters weren't converted to Unicode.
May I designed a wrong work flow on the converting?

a cup of Java, cheers!
Sha Jiang


jiangshachina wrote:
 
 OK, that's right!
 Thanks very much!
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 struberg wrote:
 
 Oki, i looked at all jars. You have to add the
 ant-nodeps to your dependencies also.
 
 This contains the optional ant taskdef for
 native2ascii.
 
 dependency
   groupIdant/groupId
   artifactIdant-nodeps/artifactId
   version1.6.5/version
   scoperuntime/scope
 /dependency
 
 lg,
 strub
 
 
 --- jiangshachina [EMAIL PROTECTED] schrieb:
 
 
 Hi struberg,
 Thanks for your help.
 I had a try with your instructions, but didn't get
 good result.
 The following is my snippet of scripts
 dependency
   groupIdcom.sun/groupId
   artifactIdtools/artifactId
   version1.5.0_09/version
   scopesystem/scope
   systemPath
 C:\setup\java\jdk1.5.0_09\lib\tools.jar
   /systemPath
 /dependency
 
 The error and information are below,
 [ERROR] BUILD ERROR
 [INFO]

 
 [INFO] Error executing ant tasks
 
 Embedded error: Could not create task or type of
 type: native2ascii.
 
 Ant could not find the task or a class this task
 relies upon.
 
 This is common and has a number of causes; the usual
 
 solutions are to read the manual pages then download
 and
 install needed JAR files, or fix the build file: 
  - You have misspelt 'native2ascii'.
Fix: check your spelling.
  - The task needs an external JAR file to execute
  and this is not found at the right place in the
 classpath.
Fix: check the documentation for dependencies.
Fix: declare the task.
  - The task is an Ant optional task and the JAR file
 and/or libraries
  implementing the functionality were not found
 at the time you
  yourself built your installation of Ant from
 the Ant sources.
Fix: Look in the ANT_HOME/lib for the 'ant-' JAR
 corresponding to the
  task and make sure it contains more than merely
 a META-INF/MANIFEST.MF.
  If all it contains is the manifest, then
 rebuild Ant with the needed
  libraries present in ${ant.home}/lib/optional/
 , or alternatively,
  download a pre-built release version from
 apache.org
  - The build file was written for a later version of
 Ant
Fix: upgrade to at least the latest release
 version of Ant
  - The task is not an Ant core or optional task 
  and needs to be declared using taskdef.
  - You are attempting to use a task defined using 
 presetdef or macrodef but have spelt wrong
 or not 
defined it at the point of use
 
 Remember that for JAR files to be visible to Ant
 tasks implemented
 in ANT_HOME/lib, the files must be in the same
 directory or on the
 classpath
 
 Please neither file bug reports on this problem, nor
 email the
 Ant mailing lists, until all of these causes have
 been explored,
 as this is not an Ant bug.
 
 The error and information is as the same as that at
 last time.
 It's the first time of using system scope, may I
 don't understand the scope
 well.
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 struberg wrote:
  
  Hi Jiang!
  
  This task is a bit tricky, since the antrun plugin
  does come with almost no dependencies in the
 default
  pom. This is basically a good idea, since you
 don't
  have jars lying around which you do not use.
  
  Specially the native2ascii is a bit dirty, since
 this
  is a special part provided by the sun tools set
 and
  not the jre libs itself.
  
  Sosince, as sigi pointed out a few weeks ago,  you
  have to add the needed dependency yourself.
  
  
  I guess it's the com.sun.tools you have to add to
 your
  antrun dependencies:
  
  
  plugin
artifactIdmaven-antrun-plugin/artifactId
...
dependencies
  dependency
groupIdcom.sun/groupId
artifactIdtools/artifactId
   scopesystem/scope
  
 

 

Re: Multimodule Build

2006-11-27 Thread dawn.angelito

Hi Brandon,

As far as I know, there's no way that the default goals bound in the Maven
lifecycle phases will not be executed. So even if you set mvn
webstart:jnlp as the default goal for a module, it will still execute
install.

Dawn


Brandon Goodin wrote:
 
 Hey All,
 
 This may be a dumb question. But, I have a aggregate pom with three
 modules. One of the modules makes use of the webstart plugin. The
 webstart plugin fails when using 'mvn install'. It is necessary for me
 to call 'mvn webstart:jnlp' when building this module without calling
 'install'. When building from the aggregate pom, how do i get the
 webstart project to build using 'webstart:jnlp' instead of 'install'.
 The other two modules work fine using the install. I tried setting
 defaultGoalwebstart:jnlp/defaultGoal in the webstart module. It
 does call the appropriate webstart:jnlp but then fails after it
 completes the goal because it still attempts to call install right
 after.
 
 Thanks
 Brandon
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Multimodule-Build-tf2713584s177.html#a7573801
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: surefire - testng report - format cross reference links

2006-11-27 Thread Andreas Guther
You might get more information if you browse the TestNG user mailing
list.  There are several threads discussing Maven Surefire with TestNG.
It depends also on the TestNG version that you use.  I still use the 4.7
version which is compliant with the current Maven Surefire plug-in (I
think it is 2.2).

From an alternative repository a newer surefire SNAPSHOT version is
available, but again that information can be found on the TestNG user
mailing list archive.

Hope that helps.

Andreas



-Original Message-
From: Andy Olliver [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 27, 2006 3:31 PM
To: users@maven.apache.org
Subject: surefire - testng report - format  cross reference links

Hi

I have maven 2.0.4, using Surefire 2.0 to run TestNG unit tests.
The report generated by the maven-surefire-report-plugin is not ideal -
I
wonder if there is anything I can do.

Under the 'Test Cases' heading, I have a list of method names that are
not
prefixed with the package / class names.
In the example report shown from the testNG site, I see test cases in
format: 'net.sf.tacos.services.SiteMapTest#testInitialize'.
But I just get the method name, which makes it hard to know whats begin
executed..

Under the 'Failure Details' heading, I have the list of failed tests,
again
I have only the method name, no package / class names, and the label and
location for all cross reference links are wrong.
Each link is in the format:'[testNG group name]. [testNG group
name]:'
( e.g 'functest.functest:' ), and the link is broken.

Is there perhaps a means to create a slightly more 'TestNG appropriate'
HTML
report via the surefire report pluggin, or another plugin?
As an alternative I can use ANT to run my tests, and use the junitreport
task to create HTML reports - is the best I can do right now ?

thanks

Andy

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



RE: calling an archetype goal from embedder

2006-11-27 Thread hermod.opstvedt
Hi

I am running on the latest version of Maven (2.1-SNAPSHOT). Download it from 
SVN, and build it.

Hermod

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 28, 2006 7:53 AM
To: Opstvedt, Hermod
Subject: RE: calling an archetype goal from embedder



thanks a lot, which version of the embeder r u using? it does not compile with 
mine.

hermod.opstvedt wrote:
 
 Hi
 
 Like this:
 
   MavenEmbedder embedder = new MavenEmbedder();
 
   
 embedder.setClassLoader(Thread.currentThread().getContextClassLoader());
 
   MavenEmbedderConsoleLogger logger = new 
 MavenEmbedderConsoleLogger();
   embedder.setLogger(logger); 
 
   try {
 embedder.start();
 } catch (MavenEmbedderException mee) {
 throw new MojoExecutionException(Embedder,mee);
 }
 
   Settings settings;
 try {
 settings = embedder.buildSettings(embedder
   .getUserSettingsPath(null),
 embedder.getGlobalSettingsPath(),
   false, false, false, Boolean.FALSE);
 } catch (SettingsConfigurationException sce) {
 throw new MojoExecutionException(Embedder,sce);
 }
 Properties main_props = new Properties();
   main_props.put(groupId, whatever);
   main_props.put(artifactId, whatever);
   main_props.put(name, whatever);
   main_props.put(version, whatever);
 
   List goals = new ArrayList();
   goals.add(archetype:create);
 
   MavenExecutionRequest request = new 
 DefaultMavenExecutionRequest()
   .setBasedir(new File(c:/Temp)).setGoals(goals)
   .setLocalRepositoryPath(
   
 embedder.getLocalRepositoryPath(settings))
   .setSettings(
   settings)
   .setProperties(main_props)
   .addEventMonitor(
   new DefaultEventMonitor(new 
 ConsoleLogger(
   
 ConsoleLogger.LEVEL_DEBUG, logger)));
 
   try {
 embedder.execute(request);
 } catch (MavenExecutionException mee) {
 throw new MojoExecutionException(Embedder,mee);
 }
 
 Hermod
 
 -Original Message-
 From: Israel Klein [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 21, 2006 10:55 PM
 To: users@maven.apache.org
 Subject: calling an archetype goal from embedder
 
 
 Hello List,
 
 How can I call an archetype:create goal using the embedder? Do I have to
 have a fake pom.xml for that? how can I pass the parameters?
 (archetypeGroupId, for example)
 
 Thanks,
 
 -- 
 Israel Klein
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 
 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]
 
 
 
Quoted from: 
http://www.nabble.com/calling-an-archetype-goal-from-embedder-tf2682277s177.html#a7504545


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



Continuum and multimodule setup

2006-11-27 Thread hermod.opstvedt
Hi

I have a Maven multimodule project that has a flat Eclipse structure. It seems 
that Continuum has problems with this (not finding the parent). Does Continuum 
support this type of project?

Hermod


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

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.

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



Re: Maven and Sourceforge

2006-11-27 Thread Wim Deblauwe

Ok, thanks for the input. Can you elaborate some on what 775 means, I can
put that on the wiki then.

regards,

Wim

2006/11/27, Wendy Smoak [EMAIL PROTECTED]:


On 11/27/06, Wim Deblauwe [EMAIL PROTECTED] wrote:

 Where should I put this piece of xml? Is this part of the pom or the
 settings.xml?

settings.xml, because it's developer specific (it has your userid and
password.)

Then the id needs to match the one used in pom.xml so Maven will
know to use these settings.

--
Wendy

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




Re: Maven and Sourceforge

2006-11-27 Thread Tom Huybrechts

these are unix file permissions. The 3 digits are for the user, the
group and all users respectively, and you have 4 for reading, 2 for
writing and 1 for executing.

So 775 means read,write and execute for user and group, and read and
execute for others.
Not sure why you'd want the execute bit for plain files, but for
directories this means that you can go into them.

Tom

On 11/28/06, Wim Deblauwe [EMAIL PROTECTED] wrote:

Ok, thanks for the input. Can you elaborate some on what 775 means, I can
put that on the wiki then.

regards,

Wim

2006/11/27, Wendy Smoak [EMAIL PROTECTED]:

 On 11/27/06, Wim Deblauwe [EMAIL PROTECTED] wrote:

  Where should I put this piece of xml? Is this part of the pom or the
  settings.xml?

 settings.xml, because it's developer specific (it has your userid and
 password.)

 Then the id needs to match the one used in pom.xml so Maven will
 know to use these settings.

 --
 Wendy

 -
 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 and Sourceforge

2006-11-27 Thread Emmanuel Hugonnet

Wim Deblauwe a écrit :
Ok, thanks for the input. Can you elaborate some on what 775 means, 
I can

put that on the wiki then.

regards,

Wim

2006/11/27, Wendy Smoak [EMAIL PROTECTED]:


On 11/27/06, Wim Deblauwe [EMAIL PROTECTED] wrote:

 Where should I put this piece of xml? Is this part of the pom or the
 settings.xml?

settings.xml, because it's developer specific (it has your userid and
password.)

Then the id needs to match the one used in pom.xml so Maven will
know to use these settings.

--
Wendy

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





This is unix notation for file permissions:
   r = 4 (read permission)
   w = 2  (write permission)
   x = 1 (execute permission)
The first number is for user
The second number is for group
The third is for what's left ;-)

So 7 = 4 + 2 + 1 = rwx
5 = 4 + 1 = r-x

775: means owning user can do anything, all users of the owning group 
can do anything, anybody else can read and execute.


For more infos on unix file permissions : 
http://www.freeos.com/articles/3127/


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