Re: Continuum 1.0.3 release date?

2006-04-17 Thread Emmanuel Venisse

A vote is started and a RC is available there : 
http://www.codehaus.org/~evenisse/continuum/

Normally, it will be release this week.

Emmanuel

Ray Tsang a écrit :

It seems that [#CONTINUUM-534] release dependencies are all resolved
and the roadmap for 1.0.3 is mostly complete.  When will 1.0.3 be
released?

ray,




Re: [M2] Force order of jar files in classpath

2006-04-17 Thread dan tran
There is no way to do that in maven2,  Just wonder,  What is your usecase
that requires this
feature.

-D

On 4/16/06, Andreas Guther [EMAIL PROTECTED] wrote:

 Hi,

 I am encountering different situations where it would be helpful to force
 the order of the jar files within the classpath.  So far I could not figure
 out if Maven 2 allows this to configure at all as well as how the order of
 the jar files is compiled from the dependency section.  Is this arbitrary?

 Is there a mechanism that allows defining the order of jar files within
 the classpath?

 Andreas






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




Problem in creating j2ee folder structure

2006-04-17 Thread Anshuman Srivastava
Hi
I am using Maven 2.0.3. I want to create j2ee folder structre like maven
creates for web-app by the command line --

mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp
-DarchetypeArtifactId=maven-archetype-webapp.

Is there any command like above for creating j2ee folder structure?

Thanks
Anshuman


RE: Best approach to deploy in websphere app server

2006-04-17 Thread Vijay Shanker
Thanks Sanjay and John. I will try to follow as you suggested. One suggestion, 
I got, to use  jboss:harddeploy.
 
Thanks,
Vijay
 



From: Sanjay Choudhary [mailto:[EMAIL PROTECTED]
Sent: Fri 4/14/2006 6:55 PM
To: Maven Users List
Subject: Re: Best approach to deploy in websphere app server



You may also use JACL Scripts to automate deployment of EAR or WAR on
server. As John said , in these scripts ou will call commads of wsadmin.

-Sanjay


On 4/14/06, John Sanda [EMAIL PROTECTED] wrote:

 I work in a WebSphere shop, primarily WAS 5.0.x, but I have worked on
 WAS 5.1.x some as well. I am new to Maven 2, and I do not know whether
 or not there are any plugins to handle WebSphere deployments.
 WebSphere come with a command line tool called Wsadmin, which provides
 a scripting environment for all administrative tasks including
 deployments. In version 5.0.x, the only language with which you can
 write scripts in Jacl. I believe that Jython support has been added in
 WAS 5.1. WebSphere also ships with a set of Ant tasks for deploying
 and installing apps, starting/stopping the a server, etc. These Ant
 tasks though, are just wrappers around Wsadmin scripts. If you are not
 familiar with Wsadmin and JMX, the Ant tasks are a good place to start
 in my opinion. You could use the antrun plugin to invoke the WAS ant
 tasks from within your Maven build.

 On 4/14/06, Vijay Shanker [EMAIL PROTECTED] wrote:
  Hi Maven users,
 
  Can anybody suggest the best approach to deploy maven built war and ear
 files in websphere application server?
 
  Thanks,
  Shanker
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --

 - John

 -
 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: [M2] Force order of jar files in classpath

2006-04-17 Thread Jeff Jensen
Is there a way with M1?  We have a patch jar that needs to load first.  I
was just in progress with setting this up...
 

-Original Message-
From: dan tran [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 17, 2006 1:50 AM
To: Maven Users List
Subject: Re: [M2] Force order of jar files in classpath

There is no way to do that in maven2,  Just wonder,  What is your usecase
that requires this feature.

-D

On 4/16/06, Andreas Guther [EMAIL PROTECTED] wrote:

 Hi,

 I am encountering different situations where it would be helpful to 
 force the order of the jar files within the classpath.  So far I could 
 not figure out if Maven 2 allows this to configure at all as well as 
 how the order of the jar files is compiled from the dependency section.
Is this arbitrary?

 Is there a mechanism that allows defining the order of jar files 
 within the classpath?

 Andreas






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



archetype plugin 1.0-alpha-4

2006-04-17 Thread Ray Tsang
Hi,

I was troubled by an issue documented in [#ARCHETYPE-22], which seems
to be fixed in archetype plugin 1.0-alpha-4.  This version is also
marked as released in JIRA (it has change log, not roadmap).  However
I can't seem to find this version.  Is it indeed released?

ray,


derby-maven-plugin

2006-04-17 Thread ian . d . stewart
Dear List,

I am working on a database-centric web app, which I am using Maven2 to
manage.  In order to improve test runtimes and reduce dependencies on
external changes, I am using Apache Derby's EmbeddedDriver for database
interaction in the unit tests.

Once I've created the database and tables within Derby and populated the
tables with sample data, the tests run fine.  However, whenever somebody
else checks out the source and does 'mvn install', the tests fail quite
spectacularly (not really surprising, since the database infrastructure is
not in place on their machine).

Does anyone know of a mechanism within Maven (either a generic facility or
something specific to Derby) that can be used to create and populate the
database if it doesn't exist already?


Thanks,
Ian

It's better to be hated for who you are
than loved for who you are not

Ian D. Stewart
Appl Dev Analyst-Advisory, DCS Automation
JPMorganChase Global Technology Infrastructure
Phone: (614) 244-2564
Pager: (888) 260-0078


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



Re: archetype plugin 1.0-alpha-4

2006-04-17 Thread Kathryn Huxtable
I had to build it from source. It would be nice if they could get to an
actual 1.0 release sometime. -K


On 4/17/06 8:37 AM, Ray Tsang [EMAIL PROTECTED] wrote:

 Hi,

I was troubled by an issue documented in [#ARCHETYPE-22], which seems
to
 be fixed in archetype plugin 1.0-alpha-4.  This version is also
marked as
 released in JIRA (it has change log, not roadmap).  However
I can't seem to
 find this version.  Is it indeed released?

ray,



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



RE: derby-maven-plugin

2006-04-17 Thread Mike Perham
We use the create=true flag in Spring jdbc datasource definition along
with a bootstrapping spring bean to load initial data.

bean id=wsf.container.dataSource
class=org.apache.commons.dbcp.BasicDataSource
property
name=driverClassNamevalueorg.apache.derby.jdbc.EmbeddedDriver/valu
e/property
property
name=urlvaluejdbc:derby:target/test/testdb/${pom.artifactId};create
=true/value/property
/bean

The artifactId is required for multimodule builds or else modules will
reuse each other's databases.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 17, 2006 9:01 AM
To: users@maven.apache.org
Subject: derby-maven-plugin

Dear List,

I am working on a database-centric web app, which I am using Maven2 to
manage.  In order to improve test runtimes and reduce dependencies on
external changes, I am using Apache Derby's EmbeddedDriver for database
interaction in the unit tests.

Once I've created the database and tables within Derby and populated the
tables with sample data, the tests run fine.  However, whenever somebody
else checks out the source and does 'mvn install', the tests fail quite
spectacularly (not really surprising, since the database infrastructure
is not in place on their machine).

Does anyone know of a mechanism within Maven (either a generic facility
or something specific to Derby) that can be used to create and populate
the database if it doesn't exist already?


Thanks,
Ian

It's better to be hated for who you are
than loved for who you are not

Ian D. Stewart
Appl Dev Analyst-Advisory, DCS Automation JPMorganChase Global
Technology Infrastructure
Phone: (614) 244-2564
Pager: (888) 260-0078


-
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-changelog-plugin Page not Found

2006-04-17 Thread ian . d . stewart
Hi Andreas,

I ran into similiar issues trying to track down documentation for
maven-surefire-report-plugin.  I opened an issue in JIRA (MNG-2212).  I
don't know if anyone has looked at this issue.  I do know that it remains
opened, unassigned and without any attached comments.

Fortunately, in my case, Wayne was able to provide me with the information
I needed to get started, but these sorts of user experience issues,
especially when they persist even after being communicated, do not inspire
a great deal of confidence in either the maturity or the activity of the
associated projects.


Ian

It's better to be hated for who you are
than loved for who you are not

Ian D. Stewart
Appl Dev Analyst-Advisory, DCS Automation
JPMorganChase Global Technology Infrastructure
Phone: (614) 244-2564
Pager: (888) 260-0078


   
  Andreas Guther 
  [EMAIL PROTECTED]To:   Maven Users List 
users@maven.apache.org
  ttools.com  cc: 
   Subject:  
maven-changelog-plugin Page not Found
  04/15/2006 08:45 PM  
  Please respond to
  Maven Users List   
   




The link to the maven changelog plug-in on page
http://maven.apache.org/plugins/ ends in a Page Not Found error:
http://maven.apache.org/plugins/maven-changelog-plugin

Where can I find the documentation?

Andreas








-
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: [M2] Force order of jar files in classpath

2006-04-17 Thread Andreas Guther
One problem I have is that I am using TestNG as unit test framework.
TestNG is using Beanshell with a most recent version.  Our product is
using Beanshell as well, but for some reason we have to go with an older
version.  If TestNG is in the classpath first, the compiler cannot find
classes available in the older version that are not available in the
newer version or moved to other folders.  In that case I get a
compilation error.

Another problem I recently had to deal with and had to give up with
Maven 2 is using Jaxb 1 with JDK 5 and JDK 1.4.  JDK 5 has some classes
per default that are not available under Java 1.4.  Since I am not able
to force the order of the classpath, I was not able to solve the problem
with Maven 2 and Java 1.4 and the lib files that come with the Jaxb 1
distribution.

I think from time to time there will be situations where it is desirable
to force the order of jars within the classpath.

Andreas


-Original Message-
From: dan tran [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 16, 2006 11:50 PM
To: Maven Users List
Subject: Re: [M2] Force order of jar files in classpath

There is no way to do that in maven2,  Just wonder,  What is your
usecase
that requires this
feature.

-D

On 4/16/06, Andreas Guther [EMAIL PROTECTED] wrote:

 Hi,

 I am encountering different situations where it would be helpful to
force
 the order of the jar files within the classpath.  So far I could not
figure
 out if Maven 2 allows this to configure at all as well as how the
order of
 the jar files is compiled from the dependency section.  Is this
arbitrary?

 Is there a mechanism that allows defining the order of jar files
within
 the classpath?

 Andreas






 -
 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: problems with hot redeployment under jetty6 (maven2)

2006-04-17 Thread Burkhard Graves
Hi Jan,

Jan Bartel schrieb:
 Burkhard,
 
 First, as someone else mentioned, please post this on the
 [EMAIL PROTECTED]

Because of the statement

jetty6 will not hot-deploy webapps after it has started. You must stop
and then restart jetty6 to pick up the new webapp. If you are interested
in using hot-deployment, take a look at the jetty6 maven2 plugin

on http://docs.codehaus.org/display/JETTY/Running I thought that this
place would be the right one - but ok, I'll post this mail on
[EMAIL PROTECTED] too...

 However, while we're all here 

;-)

 What is going on inside the login jsp?

Oh, nothing special. In the meantime I was able to create a very small
web application producing the same exception when redeployed.

 Looks like some instance of a
 class that is loaded by the webapp class loader is being set on
 a class that is loaded from the system classpath. This would mean
 that the class that is loaded via the system classpath never changes
 with a webapp reload, but the class from your webapp
 will change with every restart (because the classloader is
 different, so you'll get ClassCast exceptions).

 regards
 Jan

Yes, I think, that's the problem. But I suppose that it only occurs when
using jakartas standard tag library 1.1 implementation under jetty6 - so
here's my mini-webapp:

[EMAIL PROTECTED]:~/tmp/my-webapp$ tree
.
|-- pom.xml
`-- src
`-- main
|-- java
|   `-- test
|   `-- MyBean.java
|-- resources
`-- webapp
|-- WEB-INF
|   |-- c.tld
|   `-- web.xml
`-- index.jsp

I'm not sure if it's possible to use attachments in this mailing list -
but I'll give it a try - attached my-webapp.tar.gz... ;-)

[EMAIL PROTECTED]:~/tmp/my-webapp$ mvn clean compile jetty6:run
works fine -  http://localhost:8080/my-webapp/index.jsp produces the
output Hello World! test.

After changing and compiling MyBean.java the mini-webapp get's
redeployed and (when surfed to) produces the following exception

Caused by: javax.el.ELException: java.lang.IllegalArgumentException:
object is not an instance of declaring class
at javax.el.BeanELResolver.getValue(BeanELResolver.java:68)
at
javax.el.CompositeELResolver.getValue(CompositeELResolver.java:51)
at org.apache.el.parser.AstValue.getValue(AstValue.java:97)
at
org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:185)
at
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:944)
at org.apache.jsp.index_jsp._jspx_meth_c_out_0(index_jsp.java:99)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:72)

By the way: Repeatedly hot deployment of the war file produced by mvn
clean compile war:war under tomcat (5.5.12) is absolutely trouble-free.

But of course -  a working jetty6-plugin would be much more comfortable! ;-)

Regards
Burkhard

 Burkhard Graves wrote:
 Hi folks,

 I'm using the maven-jetty6-plugin (6.0.0beta14), usual Maven defaults.

 mvn jetty6:run works fine, but if my webapp is redeployed (due to some
 compiler run) I get the following exception(s):

[...]

 Caused by: javax.el.ELException: java.lang.IllegalArgumentException:
 [EMAIL PROTECTED]
 at javax.el.BeanELResolver.getValue(BeanELResolver.java:68)
 at
 javax.el.CompositeELResolver.getValue(CompositeELResolver.java:51)
 at org.apache.el.parser.AstValue.getValue(AstValue.java:97)
 at
 org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:185)
 at
 org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:944)

 at
 org.apache.jsp.pages.login_jsp._jspx_meth_c_out_0(login_jsp.java:247)
 at org.apache.jsp.pages.login_jsp._jspService(login_jsp.java:117)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

[...]



my-webapp.tar.gz
Description: application/gzip
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: m2 Error creating assembly

2006-04-17 Thread Gautham Pamu
Hi Mick,

Are you refering to the directory configuration in dependencies.xml file.

directorytarget/classes/directory

. If I change it to
directorytest.maven/target/classes/directory, it works from the top
level but does not work from the child project.
Do you have any suggestions on what to specify here so that mvn install
works from both top level and child level.

[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Building jar: C:\temp\com.foo.parent\test.maven\target\my-
app-1.0-SNAPSHO
T.jar
[INFO] Preparing assembly:assembly
[INFO]
-
---
[INFO] Building Maven Quick Start Archetype
[INFO]
-
---
[WARNING] Removing: assembly from forked lifecycle, to prevent recursive
invocat
ion.
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Building jar: C:\temp\com.foo.parent\test.maven\target\my-
app-1.0-SNAPSHO
T.jar
[WARNING] DEPRECATED [descriptor]: Please use descriptors instead
[INFO] [assembly:assembly {execution: default}]
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error creating assembly

Embedded error: C:\temp\com.foo.parent\test.maven\test.maven\target\classes
isn'
t a directory.
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error creating
assembly
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(Defa
ultLifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(Defau
ltLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLi
fecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating
assemb
ly
at org.apache.maven.plugin.assembly.AssemblyMojo.createAssembly
(Assembly
Mojo.java:213)
at org.apache.maven.plugin.assembly.AssemblyMojo.execute(
AssemblyMojo.ja
va:185)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo
(DefaultPlugi
nManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(Defa
ultLifecycleExecutor.java:534)
... 17 more
Caused by: org.codehaus.plexus.archiver.ArchiverException:
C:\temp\com.foo.paren
t\test.maven\test.maven\target\classes isn't a directory.
at org.codehaus.plexus.archiver.AbstractArchiver.addDirectory
(AbstractAr
chiver.java:125)
at org.apache.maven.plugin.assembly.AssemblyMojo.processFileSets
(Assembl
yMojo.java:533)
at org.apache.maven.plugin.assembly.AssemblyMojo.createArchive
(AssemblyM
ojo.java:229)
at org.apache.maven.plugin.assembly.AssemblyMojo.createAssembly
(Assembly
Mojo.java:205)
... 20 more
[INFO]

[INFO] Total time: 3 seconds
[INFO] Finished at: Mon Apr 17 10:04:19 CDT 2006
[INFO] Final Memory: 5M/16M
[INFO]


C:\temp\com.foo.parent\test.maven


Thanks
Gautham Pamu


On 4/14/06, Mick Knutson [EMAIL PROTECTED] wrote:

 could it be getting 

Re: Problem in creating j2ee folder structure

2006-04-17 Thread alex_mayorga

Anshuman,

The archetype you're chasing:
http://svn.apache.org/maven-snapshot-repository/org/apache/maven/archetypes/maven-archetype-j2ee/

Please add this to you settings.xml:

 /profiles
   profile
 idmyprofile/id
 repositories
   repository
 idapache-svn/id
 nameApache SVN/name
 urlhttp://svn.apache.org/maven-snapshot-repository//url
   /repository
 /repositories
   /profile
 /profiles

Then fire up this command using that new profile:

mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp
-DarchetypeArtifactId=maven-archetype-j2ee -Pmyprofile 

Let me know if that fixes your issue.

Relevant information about profiles:
http://maven.apache.org/guides/mini/guide-multiple-repositories.html

Best regards,
Alex
--
View this message in context: 
http://www.nabble.com/Problem-in-creating-j2ee-folder-structure-t1460363.html#a3951086
Sent from the Maven - Users forum at Nabble.com.


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



Re: m2 Error creating assembly

2006-04-17 Thread ian . d . stewart
I've run into the same problem myself.  As far as I can tell, mvn
assembly:assembly is not multi-project aware.


Ian

It's better to be hated for who you are
than loved for who you are not

Ian D. Stewart
Appl Dev Analyst-Advisory, DCS Automation
JPMorganChase Global Technology Infrastructure
Phone: (614) 244-2564
Pager: (888) 260-0078



   
  Gautham Pamu
   
  [EMAIL PROTECTED]To:   Maven Users List 
users@maven.apache.org   
  il.com  cc:  
   
   Subject:  m2 Error creating 
assembly
  04/14/2006 07:19  
   
  PM
   
  Please respond to 
   
  Maven Users  
   
  List 
   

   




Hi,

The problem we are seeing is that running assembly goal from within a given
maven project is ok.  However, if we setup many projects underneath a
parent project, the assembly goal no longer works, as the path is now
incorrect.  This simple (attached) parent/project will show you how to
reproduce the problem.

mvm clean install is working from the test.maven child project but not
working from the parent project.

multi project directory structure..

pom.xml
test.maven (Child project)
- pom.xml
-src folder...

Can you tell us if it is bug in the plugin or maven or is this problem with
the configuration in pom.xml file.

Thanks
Gautham Pamu

Downloading:
http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1
.0-alpha-5/plexus-archiver-1.0-alpha-5.jar
129K downloaded
[WARNING] DEPRECATED [descriptor]: Please use descriptors instead
[INFO] [assembly:assembly {execution: default}]
[INFO] Expanding: E:\Documents and
Settings\gpamu\.m2\repository\junit\junit\3.8
.1\junit-3.8.1.jar into
E:\Temp\com.foo.parent\test.maven\target\assembly\work\j
unit-3.8.1
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error creating assembly

Embedded error: E:\Temp\com.foo.parent\target\classes isn't a directory.
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error creating
assembly
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(Defa
ultLifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(Defau
ltLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java :322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:85)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch (Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at 

Re: archetype plugin 1.0-alpha-4

2006-04-17 Thread Wendy Smoak
On 4/17/06, Ray Tsang [EMAIL PROTECTED] wrote:

 I was troubled by an issue documented in [#ARCHETYPE-22], which seems
 to be fixed in archetype plugin 1.0-alpha-4.  This version is also
 marked as released in JIRA (it has change log, not roadmap).  However
 I can't seem to find this version.  Is it indeed released?

Not yet...
   
http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/

IIRC this one and some others (assembly? javadoc?) have had votes, but
are being held pending some work on the release plugin.

Until that happens, you can either build them from source, or ask for
snapshots to be published (if they're not already; I haven't checked.)

--
Wendy

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



Re: Problem in creating j2ee folder structure

2006-04-17 Thread Wayne Fay
Or you could download the source code to the j2ee archetype, build and
install locally, and then use it.

Wayne

On 4/17/06, alex_mayorga [EMAIL PROTECTED] wrote:

 Anshuman,

 The archetype you're chasing:
 http://svn.apache.org/maven-snapshot-repository/org/apache/maven/archetypes/maven-archetype-j2ee/

 Please add this to you settings.xml:

  /profiles
   profile
 idmyprofile/id
 repositories
   repository
 idapache-svn/id
 nameApache SVN/name
 urlhttp://svn.apache.org/maven-snapshot-repository//url
   /repository
 /repositories
   /profile
  /profiles

 Then fire up this command using that new profile:

 mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp
 -DarchetypeArtifactId=maven-archetype-j2ee -Pmyprofile

 Let me know if that fixes your issue.

 Relevant information about profiles:
 http://maven.apache.org/guides/mini/guide-multiple-repositories.html

 Best regards,
 Alex
 --
 View this message in context: 
 http://www.nabble.com/Problem-in-creating-j2ee-folder-structure-t1460363.html#a3951086
 Sent from the Maven - Users forum at Nabble.com.


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




Various encoding problems with InputStream and XML

2006-04-17 Thread Borut Bolčina

I found this http://jira.codehaus.org/browse/MSITE-19

Can I conclude that after solving all the issues in this bug report, we 
will be able to to write documentation in UTF-8 format?


Regards,
Borut

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



Re: [M2] Force order of jar files in classpath

2006-04-17 Thread dan tran
best to create a JIRA and state your scenario.

-D


On 4/17/06, Andreas Guther [EMAIL PROTECTED] wrote:

 One problem I have is that I am using TestNG as unit test framework.
 TestNG is using Beanshell with a most recent version.  Our product is
 using Beanshell as well, but for some reason we have to go with an older
 version.  If TestNG is in the classpath first, the compiler cannot find
 classes available in the older version that are not available in the
 newer version or moved to other folders.  In that case I get a
 compilation error.

 Another problem I recently had to deal with and had to give up with
 Maven 2 is using Jaxb 1 with JDK 5 and JDK 1.4.  JDK 5 has some classes
 per default that are not available under Java 1.4.  Since I am not able
 to force the order of the classpath, I was not able to solve the problem
 with Maven 2 and Java 1.4 and the lib files that come with the Jaxb 1
 distribution.

 I think from time to time there will be situations where it is desirable
 to force the order of jars within the classpath.

 Andreas


 -Original Message-
 From: dan tran [mailto:[EMAIL PROTECTED]
 Sent: Sunday, April 16, 2006 11:50 PM
 To: Maven Users List
 Subject: Re: [M2] Force order of jar files in classpath

 There is no way to do that in maven2,  Just wonder,  What is your
 usecase
 that requires this
 feature.

 -D

 On 4/16/06, Andreas Guther [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I am encountering different situations where it would be helpful to
 force
  the order of the jar files within the classpath.  So far I could not
 figure
  out if Maven 2 allows this to configure at all as well as how the
 order of
  the jar files is compiled from the dependency section.  Is this
 arbitrary?
 
  Is there a mechanism that allows defining the order of jar files
 within
  the classpath?
 
  Andreas
 
 
 
 
 
 
  -
  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: surefire-report:report runs all the unit tests?

2006-04-17 Thread Jochen Cordes
I also observed this behaviour when using the surefire plugin. It seems 
that the surefire report plugin has to re-execute the test lifecycle 
again. What I wanted to achieve is that the reports are only generated 
from the existing xml results. I can't use the surefire report plugin on 
it's own since I can't specify which test cases to exclude/include.


Any suggestions?

Kind regards,

Jochen.

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



Re: surefire-report:report runs all the unit tests?

2006-04-17 Thread Wayne Fay
From what I've read and seen, it sounds like this is not supported, so
you will probably need to write a new plugin if you require this
functionality.

Wayne

On 4/17/06, Jochen Cordes [EMAIL PROTECTED] wrote:
 I also observed this behaviour when using the surefire plugin. It seems
 that the surefire report plugin has to re-execute the test lifecycle
 again. What I wanted to achieve is that the reports are only generated
 from the existing xml results. I can't use the surefire report plugin on
 it's own since I can't specify which test cases to exclude/include.

 Any suggestions?

 Kind regards,

 Jochen.

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




RE: [m2] Weblogic J2EE Plugin

2006-04-17 Thread Scott Ryan
I just returned from overseas so as soon as I catch up on some sleep I will
update this issue.  There are samples posted on the Codehaus website but let
me try and understand more of what you are trying to do and see if I can
come up with a sample.  It looks like you are needing more of the base maven
plugins rather than the weblogic plugin.  The weblogic plugin is to be used
after you have assembled each artifact and want to compile and deploy those
artifacts.  The base maven plugins (jar, ear, war, etc) should be used first
to assemble your artifacts.

More after a few hours shuteye.

Scott Ryan
Chief Technology Officer
Soaring Eagle L.L.C.
[EMAIL PROTECTED]
www.soaringeagleco.com
(303) 263-3044

-Original Message-
From: Konstantin Polyzois [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 08, 2006 4:14 AM
To: Maven Users List
Subject: Re: [m2] Weblogic J2EE Plugin


Are you sure the plugin is for maven 2?
/Konstantin

On 4/6/06, mjohnsonaz74 [EMAIL PROTECTED] wrote:


 I am trying to convert an existing and convoluted project at work to Maven
 2
 from an existing Ant build script.  I'm starting to get the hang of
 breaking
 one large project into multiple small projects (i.e. one artifact per
 project), but I'm running into the following issue.  I create three
 projects
 (we'll call them jar, war, ear) and then I call them in order from a
 parent
 POM.  Each module depends on the one before it (war depends on jar, and
 ear
 depends on war).  What I'm trying to do is build one ear file from the
 three
 projects.  I'm a bit confused, however, since the ant script uses
 wlcompile,
 wlappc, etc. to build the script and pre-compile the jsp code.  Finally,
 my
 question...Can someobody please provide me a sample POM that uses the
 weblogic plugin and calls these tasks so that I can see how it's
 used?  The
 documentation on the plugin is less then enlightening and I'm running in
 circles over what, I hope, is a trivial issue.  If I could see a working
 POM
 file that uses this plugin that would help me out a lot.  Thank you in
 advance!

 --MJ
 --
 View this message in context:
 http://www.nabble.com/-m2-Weblogic-J2EE-Plugin-t1408033.html#a3791766
 Sent from the Maven - Users forum at Nabble.com.


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





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



Re: m2.0.3 and TestNG

2006-04-17 Thread John Sanda
Hi Brett. I have run into the same situation as Ian, and I tried to
use the 2.2-SNAPSHOT version of the plugin, but I ran into some
problems. Here is what my pom.xml (with only relavant sections):

project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
  modelVersion4.0.0/modelVersion
  groupIdcom.foo/groupId
  artifactIdmaven-app/artifactId
  packagingjar/packaging
  version1.0-SNAPSHOT/version
  nameMaven Quick Start Archetype/name
  urlhttp://maven.apache.org/url
  dependencies
  groupIdorg.testng/groupId
  artifactIdtestng/artifactId
  version4.6.1/version
  scopetest/scope
  classifierjdk15/classifier
/dependency
  /dependencies
  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
  source1.5/source
  target1.5/target
/configuration
  /plugin
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
version2.2-SNAPSHOT/version
configuration
  suiteXmlFiles
suiteXmlFilesrc/test/resources/testng.xml/suiteXmlFile
  /suiteXmlFiles
/configuration
  /plugin
/plugins
  /build
  pluginRepositories
pluginRepository
  idapache.snapshots/id
  urlhttp://cvs.apache.org/maven-snapshot-repository/url
  snapshots
enabledtrue/enabled
  /snapshots
/pluginRepository
  /pluginRepositories
  repositories
repository
  idMaven Snapshots/id
  urlhttp://snapshots.maven.codehaus.org/maven2/url
  snapshots
enabledtrue/enabled
  /snapshots
/repository
  /repositories
/project

Here is the error message that I get:

Missing:
--
1) org.apache.maven.surefire:surefire-testng:jar:2.0-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=org.apache.maven.surefire
-DartifactId=surefire-testng \
  -Dversion=2.0-20060304.160715-2 -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
1) dummy:dummy:jar:1.0
2) org.apache.maven.surefire:surefire-testng:jar:2.0-20060304.160715-2

--
1 required artifact is missing.

for artifact:
  dummy:dummy:jar:1.0

from the specified remote repositories:
  Maven Snapshots (http://snapshots.maven.codehaus.org/maven2),
  central (http://repo1.maven.org/maven2)


For the repositories that I am using, the latest snapshot release that
I saw was 1.5-SNAPSHOT. I should also mention that I am running Maven
2.0.4, but I assume that that shouldn't be a problem.

Just for the sake of learning more about Maven, I did manage to get my
annotations and testng.xml file recognized by executing the testng Ant
task using the antrun plugin. Of course, I am aware that the antrun
plugin is completely separaten from the SureFire plugin. I just wanted
to verify that it wasn't something I was doing wrong on my end.

Thanks.

On 4/16/06, Brett Porter [EMAIL PROTECTED] wrote:
 Hi Ian,

 I'll roll these into the docs as it gets closer to release, but
 currently this support is only in a development snapshot of surefire.

 Basically, you need to be using 2.2-SNAPSHOT of the surefire plugin,
 and you must declare a testNG dependency (scoped test) in your
 project.

 - Brett

 On 4/16/06, Ian Shafer [EMAIL PROTECTED] wrote:
  Hello,
 
  I'm trying to use TestNG, but I'm having no luck. I'm using Java 1.5
  source and 1.5 compilation target and I'm using a 1.5 JVM (I don't
  have any other version of Java installed on the server that I'm
  working on).
 
  It seems that my 1.5 annotations are not being recognized. Only tests
  that begin with 'test' are being run and @Configuration(beforeSuite =
  true) is ignored. Any idea what I'm doing wrong? I'm not clear how
  surefire knows whether to run TestNG or JUnit; that would be nice to
  know too. Any info would be greatly appreciated.
 
  Thanks,
 
  Ian
 
 
 
  Here's a snippet from a test class:
 
  package com.example.test;
 
  // imports removed for brevity
 
  public class Test {
   @Configuration(beforeSuite = true)
   public void suiteSetup() throws Exception {
   System.out.println(suiteSetup());
   }
 
   @Test()
   public void testAppContext() {
   System.out.println(testAppContext);
   }
  }
 
  Here's a snippet from my pom.xml:
 
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-surefire-plugin/artifactId
   configuration
   suiteXmlFilessrc/test/resources/testng.xml/
  suiteXmlFiles
   /configuration
   /plugin
 
 
  testng.xml:
 
  !DOCTYPE suite SYSTEM http://testng.org/testng-1.0.dtd;
 
  suite 

Question Still Present: EJB3 Embeddable and Maven2/Surefire?

2006-04-17 Thread Dan Greening
M. Mistroni mentioned here that he had gotten EJB3 embeddable working  
with Maven2, and offered to send the details to those who asked.  I  
asked a couple of times, and got nothing back.


So my suspicion is this is like Fermat's last theorem: Hanc marginis  
exiguitas non caperet.  This margin is too narrow to contain it.   
Did Fermat actually prove it?  Nobody knows.


Has ANYONE done this?  If so, can you please post the pom.xml to this  
list or email me directly?


Dan R. Greening, Ph.D.,  CEO BigTribe Corporation,  http:// 
dan.greening.name/contact.htm





RE: use of proxies

2006-04-17 Thread EJ Ciramella
So what do I have to do to submit this request?  Is there anything or is this 
all expected behavior? 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 14, 2006 10:48 AM
To: Maven Users List
Subject: Re: use of proxies

I think the problem is that some of these Maven poms are defining new
Repos which are added to the Repos list when they are added as
dependencies.

maven-help-plugin-2.0 has none defined
but it specifies maven-plugin-parent-2.0 as a dependency which specifies

  repositories
repository
  idsnapshots/id
  nameMaven Central Development Repository/name
  urlhttp://snapshots.maven.codehaus.org/maven2/url
  releases
enabledfalse/enabled
  /releases
/repository
  /repositories
  pluginRepositories
pluginRepository
  idsnapshots/id
  nameMaven Central Plugins Development Repository/name
  urlhttp://snapshots.maven.codehaus.org/maven2/url
  releases
enabledfalse/enabled
  /releases
/pluginRepository
  /pluginRepositories

See here:
http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0/maven-plugin-parent-2.0.pom

And then it has a bunch of other dependencies, which all have their
own poms and dependencies etc... So in all likelihood, somewhere in
that chain, I'm guessing that you are getting several new Repos and
PluginRepos added to your list.

This is certainly a bug in those poms. We've seen this before and I
believe it was agreed that it was not proper for hosted poms to
add/change Repos on the user out of the blue. It would be great if
there was an easy code solution to this problem, but I haven't looked
into it, and at the time the fix was to simply repair that one
specific pom.

So if we can find all the poms like this on Central and open a bunch
of MEV Jira bugs, Carlos will love us (not), but it should get rid of
your problems, EJ.

Wayne

On 4/14/06, EJ Ciramella [EMAIL PROTECTED] wrote:
 Could people just try deleting this helper pom:

 Downloading: 
 http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-help-plugin/2.0/maven-help-plugin-2.0.pom
 1K downloaded

 And re-run some goal?  These are the ones that keep coming from repo1.

 Again, here are the steps to recreate:

 I have these two repositories:
repositories
repository
idlocal/id
namelocal-repository/name
urlfile:thirdparty/repository/url
/repository
repository
idcentral/id
nameUpromise Local Repository/name
layoutdefault/layout

 urlhttp://build.corp.upromise.com/mavenrepository/url
/repository
/repositories

pluginRepositories
pluginRepository
idlocal-central/id
namemain/name
layoutdefault/layout

 urlhttp://build.corp.upromise.com/mavenrepository/url
/pluginRepository
/pluginRepositories

 I delete my .m2/repository directory and then run mvn process-resources

 I see the following pulled down from repo1 (and many more pulled correctly 
 from my internal server):

 (it says:[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: 
 checking for updates from local-central
 [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking for 
 updates from central  before each)

 Downloading: 
 http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.1/maven-compiler-plugin-2.0.1.pom
 1K downloaded
 Downloading: 
 http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-javadoc-plugin/2.0-beta-3/maven-javadoc-plugin-2.0-beta-3.pom
 1K downloaded
 Downloading: 
 http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-javadoc-plugin/2.0-beta-3/maven-javadoc-plugin-2.0-beta-3.pom
 1K downloaded
 Downloading: 
 http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.pom
 888b downloaded


 -Original Message-
 From: Gunther Popp [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 14, 2006 7:16 AM
 To: Maven Users List
 Subject: Re: use of proxies

  If you use repository in your pom instead of a mirror setting, maven
 will add your repo in the search list but won't replace repo1 by your
 own repo.

  The mirrors setting is stricter than adding just a new
 central-repository inside the pom

 Having said this, I just browsed the source-code again and IMO this is
 not true if two repositories share the same id. If Maven adds an
 internal repo with the id central defined in the pom to this list, the
 default repositories with the same id from pom-4.0.0.xml will be
 skipped. Since pluginRepositories and normal repositories are maintained
 in two lists, it is possible to use the id central for both types of
 repositories. But in each 

hibernate3-maven-plugin:hbm2java - Setup Problems

2006-04-17 Thread Roye, Suhneel BGI SF
I am trying to set up the Hibernate3 plugin for Maven2. Specifically, I
would like to have the plugin generate POJO's from *.hbm.xml mapping
files.

Relevant portions of my project directory structure:
Hibernate Configuration: project/src/main/resources/hibernate.cfg.xml
Hibernate Mappings:
project/src/main/resources/com/mycompany/app/*.hbm.xml
Target directory for generated POJO's:
project/src/main/java/com/mycompany/app/*.java

POM snippet:
.
.
.
pluginRepositories
pluginRepository
idsnapshots/id
urlhttp://snapshots.maven.codehaus.org/maven2/url
/pluginRepository
/pluginRepositories

.
.
.
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdhibernate3-maven-plugin/artifactId
configuration
hibernate
 
configurationFile/src/main/resources/hibernate.cfg.xml/configurationF
ile
/hibernate
outputDirectory
hbm2java/src/main/java/hbm2java
/outputDirectory
/configuration
/plugin
.
.
.

Hibernate configuration snippet:
.
.
.
mapping resource=com/mycompany/app/TableOne.hbm.xml/
mapping resource=com/mycompany/app/TableTwo.hbm.xml/
mapping
resource=com/mycompany/app/TableThree.hbm.xml/
.
.

When I run mvn hibernate3:hbm2java, I get an error and no POJO's are
generated. The top of my stack trace is:
java.lang.ExceptionInInitializerError
at
org.codehaus.mojo.hibernate3.exporter.Hbm2JavaGeneratorMojo.createExport
er(Hbm2JavaGeneratorMojo.java:52)

Can someone please point out what I'm missing or doing wrong?

Thanks. 
 
This message and any attachments are confidential, proprietary, and may be 
privileged.  If this message was misdirected, Barclays Global Investors (BGI) 
does not waive any confidentiality or privilege.  If you are not the intended 
recipient, please notify us immediately and destroy the message without 
disclosing its contents to anyone.  Any distribution, use or copying of this 
e-mail or the information it contains by other than an intended recipient is 
unauthorized.  The views and opinions expressed in this e-mail message are the 
author's own and may not reflect the views and opinions of BGI, unless the 
author is authorized by BGI to express such views or opinions on its behalf.  
All email sent to or from this address is subject to electronic storage and 
review by BGI.  Although BGI operates anti-virus programs, it does not accept 
responsibility for any damage whatsoever caused by viruses being passed.


Problem deploying to internal remote repository

2006-04-17 Thread Ray Ward
I must be missing something obvious...   (I suspect the DEBUG line is
significant.)  Here's the error msg:

$ mvn -X deploy
...
[INFO] [deploy:deploy]
[DEBUG] not adding permissions to wagon connection
Uploading: scpexe://hostname/home/rward/tmp/path/to/pom/file
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error deploying artifact: Error executing command for transfer

Exit code -1 - Permission denied (publickey,password,keyboard-interactive).

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying
artifact: Error executing command for transfer
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:556)
...

I have my username and password set up in ~/.m2/settings.xml:
settings ...
   servers
server
idmy-build-repository/id
usernameusername/username
password/password
/server
   /servers
/settings

 I have defined the repository and the wagon extension in the project's
pom.xml:
project ...
   distributionManagement
repository
idmy-build-repository/id
urlscpexe://hostname/home/rward/tmp/url
/repository
   /distributionManagement
...
   build
extensions
extension
groupIdorg.apache.maven.wagon/groupId
artifactIdwagon-ssh/artifactId
version1.0-alpha-7/version
/extension
/extensions
   /build

 I can issue the scp from the command line with the same hostname, username
and password and it works:
$ scp ~/.m2/settings.xml [EMAIL PROTECTED]:~/tmp/settings.xml
[EMAIL PROTECTED]'s password:
settings.xml  100% 897136.2MB/s   00:00

What do I have to do to get the permissions from the settings.xml to the
wagon connection?  Or is that a red herring?

TIA,

Ray


RE: hibernate3-maven-plugin:hbm2java - Setup Problems

2006-04-17 Thread Johann Reyes
Hello Suhneel;

Could you please run mvn -X hibernate3:hbm2java and send me the output?

Also what jdk you are running?

Regards

Johann Reyes

-Original Message-
From: Roye, Suhneel BGI SF [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 17, 2006 3:34 PM
To: Maven Users List
Subject: hibernate3-maven-plugin:hbm2java - Setup Problems

I am trying to set up the Hibernate3 plugin for Maven2. Specifically, I
would like to have the plugin generate POJO's from *.hbm.xml mapping
files.

Relevant portions of my project directory structure:
Hibernate Configuration: project/src/main/resources/hibernate.cfg.xml
Hibernate Mappings:
project/src/main/resources/com/mycompany/app/*.hbm.xml
Target directory for generated POJO's:
project/src/main/java/com/mycompany/app/*.java

POM snippet:
.
.
.
pluginRepositories
pluginRepository
idsnapshots/id
urlhttp://snapshots.maven.codehaus.org/maven2/url
/pluginRepository
/pluginRepositories

.
.
.
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdhibernate3-maven-plugin/artifactId
configuration
hibernate
 
configurationFile/src/main/resources/hibernate.cfg.xml/configurationF
ile
/hibernate
outputDirectory
hbm2java/src/main/java/hbm2java
/outputDirectory
/configuration
/plugin
.
.
.

Hibernate configuration snippet:
.
.
.
mapping resource=com/mycompany/app/TableOne.hbm.xml/
mapping resource=com/mycompany/app/TableTwo.hbm.xml/
mapping
resource=com/mycompany/app/TableThree.hbm.xml/
.
.

When I run mvn hibernate3:hbm2java, I get an error and no POJO's are
generated. The top of my stack trace is:
java.lang.ExceptionInInitializerError
at
org.codehaus.mojo.hibernate3.exporter.Hbm2JavaGeneratorMojo.createExport
er(Hbm2JavaGeneratorMojo.java:52)

Can someone please point out what I'm missing or doing wrong?

Thanks. 
 
This message and any attachments are confidential, proprietary, and may be
privileged.  If this message was misdirected, Barclays Global Investors
(BGI) does not waive any confidentiality or privilege.  If you are not the
intended recipient, please notify us immediately and destroy the message
without disclosing its contents to anyone.  Any distribution, use or copying
of this e-mail or the information it contains by other than an intended
recipient is unauthorized.  The views and opinions expressed in this e-mail
message are the author's own and may not reflect the views and opinions of
BGI, unless the author is authorized by BGI to express such views or
opinions on its behalf.  All email sent to or from this address is subject
to electronic storage and review by BGI.  Although BGI operates anti-virus
programs, it does not accept responsibility for any damage whatsoever caused
by viruses being passed.



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



Re: Best approach to deploy in websphere app server

2006-04-17 Thread David J. M. Karlsen

Vijay Shanker wrote:

Hi Maven users,
 
Can anybody suggest the best approach to deploy maven built war and ear files in websphere application server?

've created a plugin for generation of stub's:
http://www.davidkarlsen.com/maven-was-plugin/

Though, it does not [yet] deploy to a destination server.


--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com



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



Re: Maven integration with WAS5

2006-04-17 Thread David J. M. Karlsen

[EMAIL PROTECTED] wrote:

Hi,

Can any of you  please help  me with this info . How to start , stop , 
deploy applications on WAS5 with maven2
  

I've created a plugin for generation of stub's:
http://www.davidkarlsen.com/maven-was-plugin/

Though, it does not [yet] deploy (start/stop etc) to a destination server.


--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com



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




Re: Best approach to deploy in websphere app server

2006-04-17 Thread David J. M. Karlsen

Vijay Shanker skrev:


Thanks Sanjay and John. I will try to follow as you suggested. One suggestion, 
I got, to use  jboss:harddeploy.
 


I've created a plugin for generation of stub's:
http://www.davidkarlsen.com/maven-was-plugin/

Though, it does not [yet] deploy to a destination server.


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



Re: Deploying 3rd party SNAPSHOT libraries

2006-04-17 Thread Thorsten Heit
Hi Roland,

 I'm trying to deploy 3rd party snapshots to our local maven-proxy, but have 
 problems when my builds try to access the libraries. I've already found out 
 that the POM and JAR do not have the same name, but have a buildnumber 
 appended to their names, which differs between the two.
 Then, when I add sources, those get an even higher number!

See http://jira.codehaus.org/browse/MDEPLOY-27

I had the same problem; it seems to be fixed in the 2.3-snapshot version
of the deploy plugin.


HTH

Thorsten

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



Re: Best approach to deploy in websphere app server

2006-04-17 Thread Lee Meador
The problem I ran into with the ant tasks and Websphere 6.0 is that some of
the ant tasks only run with the special version of ant ws_ant.

(The endpoint enabler, which I use, will run with regular ant. I use it from
within maven 2 in an antrun task.)

The version 6 docs note that the ant tasks, while still present, are now
deprecated. I'm not sure what IBM is expecting to be done in this regard.

One, in particular, that requires ws_ant is the wsadmin ant task where you
pass it a jacl script. What I did was set up an external tool in eclipse to
run ws_ant.bat and pass it the jacl script to deploy. I'm not very happy
with it. I find it very difficult to find any information on such scripts.
If you undeploy an ear and it isn't deployed at this time, the script dies.
But if you try to deploy without undeploying it, the script dies. If the
last try didn't deploy right, I have to comment out the undeploy part of my
script and then remember to uncomment it when the ear deploys.

Earlier, in this news group, there was some discussion about using some
application supplied with websphere 6 (or maybe available on the IBM web
site) that can be loaded and pointed to a magic folder. When you drop an
ear into that folder, which isn't necessarly part of websphere or anything
else, it will get deployed. I haven't made use of that yet.

One thing I did figure out, based on searching around the web, is that
websphere 5 does not allow deploying from an ear that isn't on the same
machine as websphere. (Well ... it has to be available on the server's file
system.) What they ended up doing was ftping or scping the file onto the
server and then using wsadmin to deploy it from there. Somehow websphere 6
doesn't have this restriction but I don't need that capability and haven't
tried it.

Thanks.

-- Lee Meador

On 4/17/06, David J. M. Karlsen [EMAIL PROTECTED] wrote:

 Vijay Shanker skrev:

 Thanks Sanjay and John. I will try to follow as you suggested. One
 suggestion, I got, to use  jboss:harddeploy.
 
 
 I've created a plugin for generation of stub's:
 http://www.davidkarlsen.com/maven-was-plugin/

 Though, it does not [yet] deploy to a destination server.


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




--
-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]


Re: Maven integration with WAS5

2006-04-17 Thread Lee Meador
That link doesn't work on my computer.

On 4/17/06, David J. M. Karlsen [EMAIL PROTECTED] wrote:

 [EMAIL PROTECTED] wrote:
  Hi,
 
  Can any of you  please help  me with this info . How to start , stop ,
  deploy applications on WAS5 with maven2
 
 I've created a plugin for generation of stub's:
 http://www.davidkarlsen.com/maven-was-plugin/

 Though, it does not [yet] deploy (start/stop etc) to a destination server.


 --
 David J. M. Karlsen - +47 90 68 22 43
 http://www.davidkarlsen.com
 http://mp3.davidkarlsen.com



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




--
-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]


RE: Best approach to deploy in websphere app server

2006-04-17 Thread Vijay Shanker
Hi David, 
 
http://www.davidkarlsen.com/maven-was-plugin/ does not work in my machine. 
Could you please chack if this URL is correct? I have started working on 
writing plugin but if you have already done it then I can use that.
 
Thanks,
vijay
 



From: David J. M. Karlsen [mailto:[EMAIL PROTECTED]
Sent: Mon 4/17/2006 11:25 AM
To: Maven Users List
Subject: Re: Best approach to deploy in websphere app server



Vijay Shanker skrev:

Thanks Sanjay and John. I will try to follow as you suggested. One suggestion, 
I got, to use  jboss:harddeploy.
 

I've created a plugin for generation of stub's:
http://www.davidkarlsen.com/maven-was-plugin/

Though, it does not [yet] deploy to a destination server.


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

Inherit version from parent project in multiproject build?

2006-04-17 Thread Sean McNamara
I've been trying to find an answer to this without
much luck, but can't believe nobody else has tried to
do this.  Apologies in advance if the answer is
readily available... If so, my keywords must suck.

I've got a M2 multproject setup that builds several
artifacts.

+ parent
-+ pom.xml
-+ child1
-+ child2

We want to assign the same version to each artifact in
the multiproject build, but it doesn't look like the
version is actually an inheritable field.  This means
each time we want to build a new version, we need to
modify the POM for each child project, regardless of
whether or not it changed.

Is there some easy way to do this under Maven2?

Thanks!

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Inherit version from parent project in multiproject build?

2006-04-17 Thread Wendy Smoak
On 4/17/06, Sean McNamara [EMAIL PROTECTED] wrote:

 We want to assign the same version to each artifact in
 the multiproject build, but it doesn't look like the
 version is actually an inheritable field.

Unless I misunderstand what you want to do, it's working fine for the
Struts build... the only place the version is specified is in the
struts-action-parent pom, and the rest inherit it.

The parent pom with version
   http://svn.apache.org/repos/asf/struts/action/trunk/pom.xml

And one of the child modules, without:
   http://svn.apache.org/repos/asf/struts/action/trunk/core/pom.xml

(You still end up writing the version number everywhere, though, in
the parent tag.)

If you still need help, post some snippets from your poms, or
construct a simple example project that demonstrates the problem.

--
Wendy

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



Re: Inherit version from parent project in multiproject build?

2006-04-17 Thread Ray Tsang
'version' did inherit for me in the beginning until i used release
plugin.  using `mvn release:prepare` overwrote the original pom.xml
for both parent and chilren, and added in the version field to each. 
can this be avoided?

ray,

On 4/18/06, Wendy Smoak [EMAIL PROTECTED] wrote:
 On 4/17/06, Sean McNamara [EMAIL PROTECTED] wrote:

  We want to assign the same version to each artifact in
  the multiproject build, but it doesn't look like the
  version is actually an inheritable field.

 Unless I misunderstand what you want to do, it's working fine for the
 Struts build... the only place the version is specified is in the
 struts-action-parent pom, and the rest inherit it.

 The parent pom with version
http://svn.apache.org/repos/asf/struts/action/trunk/pom.xml

 And one of the child modules, without:
http://svn.apache.org/repos/asf/struts/action/trunk/core/pom.xml

 (You still end up writing the version number everywhere, though, in
 the parent tag.)

 If you still need help, post some snippets from your poms, or
 construct a simple example project that demonstrates the problem.

 --
 Wendy

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




Re: Continuum 1.0.3 release date?

2006-04-17 Thread Ray Tsang
ah, thanks!  can't wait for the release

ray,

On 4/18/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:
 A vote is started and a RC is available there : 
 http://www.codehaus.org/~evenisse/continuum/

 Normally, it will be release this week.

 Emmanuel

 Ray Tsang a écrit :
  It seems that [#CONTINUUM-534] release dependencies are all resolved
  and the roadmap for 1.0.3 is mostly complete.  When will 1.0.3 be
  released?
 
  ray,




RE: hibernate3-maven-plugin:hbm2java - Setup Problems

2006-04-17 Thread Roye, Suhneel BGI SF
I got my problem figured out...I needed to add a dependency on log4j,
which looks like it's being used by the internals of the mojo. I now
have POJO's being generated from my Hibernate mapping files.

I'm using JDK 1.5, but I would like annotations disabled (I would still
like to use generics and autoboxing, however). I looked at the mojo API
and the HibernateExporterMojo has an isAnnotationsEnabled property,
which I would like to set to false. I tried setting it in various places
in my POM, but none worked:
1. configuration isAnnotationsEnabled=false
2.
configurationisAnnotationsEnabledfalse/isAnnotationsEnabled/confi
guration
3. hbm2java isAnnotationsEnabled=false
4.
hbm2javaisAnnotationsEnabledfalse/isAnnotationsEnabled/hbm2java

Can I manually disable annotations, and if so, where is the correct
place in my POM/Hibernate configuration to disable JDK 1.5 annotations?
I would like to avoid changing my Java version back to 1.4 just for this
goal, to avoid the creation of annotations in my POJO's.

Thanks much.

-Original Message-
From: Johann Reyes [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 17, 2006 1:32 PM
To: 'Maven Users List'
Subject: RE: hibernate3-maven-plugin:hbm2java - Setup Problems

Hello Suhneel;

Could you please run mvn -X hibernate3:hbm2java and send me the
output?

Also what jdk you are running?

Regards

Johann Reyes

-Original Message-
From: Roye, Suhneel BGI SF [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 3:34 PM
To: Maven Users List
Subject: hibernate3-maven-plugin:hbm2java - Setup Problems

I am trying to set up the Hibernate3 plugin for Maven2. Specifically, I
would like to have the plugin generate POJO's from *.hbm.xml mapping
files.

Relevant portions of my project directory structure:
Hibernate Configuration: project/src/main/resources/hibernate.cfg.xml
Hibernate Mappings:
project/src/main/resources/com/mycompany/app/*.hbm.xml
Target directory for generated POJO's:
project/src/main/java/com/mycompany/app/*.java

POM snippet:
.
.
.
pluginRepositories
pluginRepository
idsnapshots/id
urlhttp://snapshots.maven.codehaus.org/maven2/url
/pluginRepository
/pluginRepositories

.
.
.
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdhibernate3-maven-plugin/artifactId
configuration
hibernate
 
configurationFile/src/main/resources/hibernate.cfg.xml/configurationF
ile
/hibernate
outputDirectory
hbm2java/src/main/java/hbm2java
/outputDirectory
/configuration
/plugin
.
.
.

Hibernate configuration snippet:
.
.
.
mapping resource=com/mycompany/app/TableOne.hbm.xml/
mapping resource=com/mycompany/app/TableTwo.hbm.xml/
mapping
resource=com/mycompany/app/TableThree.hbm.xml/
.
.

When I run mvn hibernate3:hbm2java, I get an error and no POJO's are
generated. The top of my stack trace is:
java.lang.ExceptionInInitializerError
at
org.codehaus.mojo.hibernate3.exporter.Hbm2JavaGeneratorMojo.createExport
er(Hbm2JavaGeneratorMojo.java:52)

Can someone please point out what I'm missing or doing wrong?

Thanks. 
 
This message and any attachments are confidential, proprietary, and may be 
privileged.  If this message was misdirected, Barclays Global Investors (BGI) 
does not waive any confidentiality or privilege.  If you are not the intended 
recipient, please notify us immediately and destroy the message without 
disclosing its contents to anyone.  Any distribution, use or copying of this 
e-mail or the information it contains by other than an intended recipient is 
unauthorized.  The views and opinions expressed in this e-mail message are the 
author's own and may not reflect the views and opinions of BGI, unless the 
author is authorized by BGI to express such views or opinions on its behalf.  
All email sent to or from this address is subject to electronic storage and 
review by BGI.  Although BGI operates anti-virus programs, it does not accept 
responsibility for any damage whatsoever caused by viruses being passed.

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



Re: archetype plugin 1.0-alpha-4

2006-04-17 Thread Ray Tsang
thanks!  there is a snapshot on
http://snapshots.maven.codehaus.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/
but it's dated back to feb. 25th.

i guess i'll have to grab the source, thanks!

On 4/17/06, Wendy Smoak [EMAIL PROTECTED] wrote:
 On 4/17/06, Ray Tsang [EMAIL PROTECTED] wrote:

  I was troubled by an issue documented in [#ARCHETYPE-22], which seems
  to be fixed in archetype plugin 1.0-alpha-4.  This version is also
  marked as released in JIRA (it has change log, not roadmap).  However
  I can't seem to find this version.  Is it indeed released?

 Not yet...

 http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/

 IIRC this one and some others (assembly? javadoc?) have had votes, but
 are being held pending some work on the release plugin.

 Until that happens, you can either build them from source, or ask for
 snapshots to be published (if they're not already; I haven't checked.)

 --
 Wendy

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




Re: m2.0.3 and TestNG

2006-04-17 Thread Brett Porter
Hi John,

I'm not sure where you got the surefire plugin from - did you build it
from source?

That should have set the correct repository, being:
http://cvs.apache.org/maven-snapshot-repository
(instead of snapshots.maven.codehaus.org)

- Brett

On 4/18/06, John Sanda [EMAIL PROTECTED] wrote:
 Hi Brett. I have run into the same situation as Ian, and I tried to
 use the 2.2-SNAPSHOT version of the plugin, but I ran into some
 problems. Here is what my pom.xml (with only relavant sections):

 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;
   modelVersion4.0.0/modelVersion
   groupIdcom.foo/groupId
   artifactIdmaven-app/artifactId
   packagingjar/packaging
   version1.0-SNAPSHOT/version
   nameMaven Quick Start Archetype/name
   urlhttp://maven.apache.org/url
   dependencies
   groupIdorg.testng/groupId
   artifactIdtestng/artifactId
   version4.6.1/version
   scopetest/scope
   classifierjdk15/classifier
 /dependency
   /dependencies
   build
 plugins
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-compiler-plugin/artifactId
 configuration
   source1.5/source
   target1.5/target
 /configuration
   /plugin
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-surefire-plugin/artifactId
 version2.2-SNAPSHOT/version
 configuration
   suiteXmlFiles
 suiteXmlFilesrc/test/resources/testng.xml/suiteXmlFile
   /suiteXmlFiles
 /configuration
   /plugin
 /plugins
   /build
   pluginRepositories
 pluginRepository
   idapache.snapshots/id
   urlhttp://cvs.apache.org/maven-snapshot-repository/url
   snapshots
 enabledtrue/enabled
   /snapshots
 /pluginRepository
   /pluginRepositories
   repositories
 repository
   idMaven Snapshots/id
   urlhttp://snapshots.maven.codehaus.org/maven2/url
   snapshots
 enabledtrue/enabled
   /snapshots
 /repository
   /repositories
 /project

 Here is the error message that I get:

 Missing:
 --
 1) org.apache.maven.surefire:surefire-testng:jar:2.0-SNAPSHOT

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=org.apache.maven.surefire
 -DartifactId=surefire-testng \
   -Dversion=2.0-20060304.160715-2 -Dpackaging=jar -Dfile=/path/to/file

   Path to dependency:
 1) dummy:dummy:jar:1.0
 2) org.apache.maven.surefire:surefire-testng:jar:2.0-20060304.160715-2

 --
 1 required artifact is missing.

 for artifact:
   dummy:dummy:jar:1.0

 from the specified remote repositories:
   Maven Snapshots (http://snapshots.maven.codehaus.org/maven2),
   central (http://repo1.maven.org/maven2)


 For the repositories that I am using, the latest snapshot release that
 I saw was 1.5-SNAPSHOT. I should also mention that I am running Maven
 2.0.4, but I assume that that shouldn't be a problem.

 Just for the sake of learning more about Maven, I did manage to get my
 annotations and testng.xml file recognized by executing the testng Ant
 task using the antrun plugin. Of course, I am aware that the antrun
 plugin is completely separaten from the SureFire plugin. I just wanted
 to verify that it wasn't something I was doing wrong on my end.

 Thanks.

 On 4/16/06, Brett Porter [EMAIL PROTECTED] wrote:
  Hi Ian,
 
  I'll roll these into the docs as it gets closer to release, but
  currently this support is only in a development snapshot of surefire.
 
  Basically, you need to be using 2.2-SNAPSHOT of the surefire plugin,
  and you must declare a testNG dependency (scoped test) in your
  project.
 
  - Brett
 
  On 4/16/06, Ian Shafer [EMAIL PROTECTED] wrote:
   Hello,
  
   I'm trying to use TestNG, but I'm having no luck. I'm using Java 1.5
   source and 1.5 compilation target and I'm using a 1.5 JVM (I don't
   have any other version of Java installed on the server that I'm
   working on).
  
   It seems that my 1.5 annotations are not being recognized. Only tests
   that begin with 'test' are being run and @Configuration(beforeSuite =
   true) is ignored. Any idea what I'm doing wrong? I'm not clear how
   surefire knows whether to run TestNG or JUnit; that would be nice to
   know too. Any info would be greatly appreciated.
  
   Thanks,
  
   Ian
  
  
  
   Here's a snippet from a test class:
  
   package com.example.test;
  
   // imports removed for brevity
  
   public class Test {
@Configuration(beforeSuite = true)
public void suiteSetup() throws Exception {
System.out.println(suiteSetup());
}
  
@Test()
public void testAppContext() {
System.out.println(testAppContext);
}
   }
  
   Here's 

Re: [site] Too many links on the top

2006-04-17 Thread Brett Porter
Yes, its my fault. I'm fixing it in the site plugin before republishing.

- Brett

On 4/17/06, Shinobu Kawai [EMAIL PROTECTED] wrote:
 Hi,

 Anybody seen the maven site recently?  Looks like everything except
 Apache is shown twice.  :)

 http://maven.apache.org/

 Best regards,
 -- Shinobu

 --
 Shinobu Kawai [EMAIL PROTECTED]

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



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



Re: [M2] Force order of jar files in classpath

2006-04-17 Thread Brett Porter
This is nothing to do with order - things should not be included
twice. I don't think that is actually happening - instead, TestNG's is
being selected over your one which must have been pulled in
transitively. exclusions/ in the testng dependency for beanshell is
the appropriate change to the pom.

I'm not sure about the jaxb 1 scenario. I've never encountered it. Is
that while running the pap, or xjc?

- Brett

On 4/18/06, Andreas Guther [EMAIL PROTECTED] wrote:
 One problem I have is that I am using TestNG as unit test framework.
 TestNG is using Beanshell with a most recent version.  Our product is
 using Beanshell as well, but for some reason we have to go with an older
 version.  If TestNG is in the classpath first, the compiler cannot find
 classes available in the older version that are not available in the
 newer version or moved to other folders.  In that case I get a
 compilation error.

 Another problem I recently had to deal with and had to give up with
 Maven 2 is using Jaxb 1 with JDK 5 and JDK 1.4.  JDK 5 has some classes
 per default that are not available under Java 1.4.  Since I am not able
 to force the order of the classpath, I was not able to solve the problem
 with Maven 2 and Java 1.4 and the lib files that come with the Jaxb 1
 distribution.

 I think from time to time there will be situations where it is desirable
 to force the order of jars within the classpath.

 Andreas


 -Original Message-
 From: dan tran [mailto:[EMAIL PROTECTED]
 Sent: Sunday, April 16, 2006 11:50 PM
 To: Maven Users List
 Subject: Re: [M2] Force order of jar files in classpath

 There is no way to do that in maven2,  Just wonder,  What is your
 usecase
 that requires this
 feature.

 -D

 On 4/16/06, Andreas Guther [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I am encountering different situations where it would be helpful to
 force
  the order of the jar files within the classpath.  So far I could not
 figure
  out if Maven 2 allows this to configure at all as well as how the
 order of
  the jar files is compiled from the dependency section.  Is this
 arbitrary?
 
  Is there a mechanism that allows defining the order of jar files
 within
  the classpath?
 
  Andreas
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



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



Re: archetype plugin 1.0-alpha-4

2006-04-17 Thread Wendy Smoak
On 4/17/06, Ray Tsang [EMAIL PROTECTED] wrote:

 thanks!  there is a snapshot on
 http://snapshots.maven.codehaus.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/
 but it's dated back to feb. 25th.

 i guess i'll have to grab the source, thanks!

Be sure to build _all_ of archetype, not just the plugin.  Start from:
  http://svn.apache.org/repos/asf/maven/archetype/trunk/

It looks like there's a more recent snapshot here:
   http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/archetype/

--
Wendy

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



RE: Multi-Project Build: copy resulting jars into dependent webapp

2006-04-17 Thread Brian E. Fox
So are you just running mvn compile or package and not install?
Dependency wants to find them in the local (or remote) repository, if
you haven't run install, they won't be there. If there is some other use
case that prevents you from running install, then file a jira
enhancement against dependency. I may be able to find a way to locate
the jar in the build tree if a flag is set, although I personally can't
think of a use case for this. (and I'm pretty sure it would only
reasonably work in a multi project build, ie if you just built one of
them, I might not be able to locate the dependent jar)

-Original Message-
From: SkipWalker [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 2:48 PM
To: users@maven.apache.org
Subject: Multi-Project Build: copy resulting jars into dependent webapp


I'm trying to get around using the webstart plugin that isn't ready for
primetime.  In order to do that, I'm trying to use the codehause
dependency plugin to copy my webstart application project jar, it's
other project dependencies, and some 3rd party dependencies into a
directory in my webapp output so they will become part of the resulting
war.

I'm trying to do something along the lines of the first suggestion at
codehaus for the webstart plugin, just not using the webstart plugin
itself, just the dependency plugin.

http://mojo.codehaus.org/webstart-maven-plugin-parent/webstart-maven-plu
gin/howto.html

I'm running into the problem that the dependency copy won't copy my own
project jars common.jar, and webstart-client.jar saying it can't resolve
the artifacts.  I guess it's looking in the repo and not finding the
jars.  

The dependency:copy plugin is working fine for the 3rd party
dependencies, copying them into the appropriate place.  The build is
just balking at copying my own jars that were created earlier in the
multi-project build.

So I guess the crux of my question in is, how can I copy the resulting
jars from the other projects in my multi-project build into a directory
in my webapp before it gets packaged?

Any help is appreciated.

Here's the error
_

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

GroupId: com.myorg
ArtifactId: common
Version: 1.0-SNAPSHOT

Reason: Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=com.myorg -DartifactId=common\
-Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file


  com.myorg:common:jar:1.0-SNAPSHOT

from the specified remote repositories:

  central (http://repo1.maven.org/maven2),

_

Here's more about my setup:

I've tried this with maven 2.0.3. and 2.0.4

I've got a pretty standard setup.

projects/pom.xml
projects/common/pom.xml
projects/webstart-client/pom.xml
projects/webapp/pom.xml


I need to copy the resulting jar artifact from the common project and
the resulting jar from the webstart-client project into the webapp's
client directory.  

So, in my webapp pom.xml I have:

plugin
groupIdorg.codehaus.mojo/groupId
artifactIddependency-maven-plugin/artifactId
executions
execution
!--
Copy the webstart bundle in as a resource
before packaging starts.
--
phaseprocess-resources/phase
goals
goalcopy/goal
/goals
/execution
/executions
configuration
artifactItems
artifactItem
groupIdcom.myorg/groupId
artifactIdcommon/artifactId
version1.0-SNAPSHOT/version
typejar/type
/artifactItem
artifactItem
groupIdcom.myorg/groupId
artifactIdwebstart-client/artifactId
version1.0-SNAPSHOT/version
typejar/type
/artifactItem
artifactItem
groupIdjgoodies/groupId
artifactIdbinding/artifactId
version1.1/version
typejar/type
/artifactItem
!-- ... other 3rd party libraries --
/artifactItems
   
outputDirectory${project.build.directory}/${project.build.finalName}/c
lient/outputDirectory
 

Inherit version from parent project in multiproject build?

2006-04-17 Thread Sean McNamara

I've been trying to find an answer to this without much luck, but can't
believe nobody else has tried to do this.  Apologies in advance if the
answer is readily available... If so, my keywords must suck.

I've got a M2 multproject setup that builds several artifacts.

+ parent
-+ pom.xml
-+ child1
-+ child2

We want to assign the same version to each artifact in the multiproject
build, but it doesn't look like the version is actually an inheritable
field.  This means each time we want to build a new version, we need to
modify the POM for each child project, regardless of whether or not it
changed.

Is there some easy way to do this under Maven2?

Thanks!

*

Note:  The information contained in this message and any attachment to it is 
privileged, confidential and protected from disclosure.  If the reader of this 
message is not the intended recipient, or an employee or agent responsible for 
delivering this message to the intended recipient, you are hereby notified that 
any dissemination, distribution or copying of this communication is strictly 
prohibited.  If you have received this communication in error, please notify 
the sender immediately by replying to the message, and please delete it  from 
your system. Thank you.  NYSE Group.

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



RE: [M2] Force order of jar files in classpath

2006-04-17 Thread Andreas Guther
Brett,

To be more clear I have to explain that I do not encounter the problem
during the Maven 2 build process.  TestNG is not included in the compile
scope but only in the test scope.

The problem occurred while creating the classpath for Eclipse with the
eclipse plug-in.  Since eclipse does not distinguish between scopes all
gets put on the classpath as generated to the .classpath file.  After
moving the reference to the testng jar to the end of the classpath
entries in the .classpath file I got rid of the problem.  Now that I
write this down I realize that the problem does not occure with IntelliJ
and I suppose that the IntelliJ plug-in keeps the order as listed in the
pom.

Maybe it is indeed in this particular case a problem with the eclipse
plug-in and the request should go against the eclipse plug-in to honor
the order of dependencies within the pom.xml.

Regarding jaxb:  I am using the xjc with a modified jaxb2-maven-plugin.
I have removed in the modified plug-in all Java 5 usage in order to get
it to run with Jaxb1.

Is there another jaxb1 plug-in available that might do the job for me?

Andreas


-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 17, 2006 4:32 PM
To: Maven Users List
Subject: Re: [M2] Force order of jar files in classpath

This is nothing to do with order - things should not be included
twice. I don't think that is actually happening - instead, TestNG's is
being selected over your one which must have been pulled in
transitively. exclusions/ in the testng dependency for beanshell is
the appropriate change to the pom.

I'm not sure about the jaxb 1 scenario. I've never encountered it. Is
that while running the pap, or xjc?

- Brett

On 4/18/06, Andreas Guther [EMAIL PROTECTED] wrote:
 One problem I have is that I am using TestNG as unit test framework.
 TestNG is using Beanshell with a most recent version.  Our product is
 using Beanshell as well, but for some reason we have to go with an
older
 version.  If TestNG is in the classpath first, the compiler cannot
find
 classes available in the older version that are not available in the
 newer version or moved to other folders.  In that case I get a
 compilation error.

 Another problem I recently had to deal with and had to give up with
 Maven 2 is using Jaxb 1 with JDK 5 and JDK 1.4.  JDK 5 has some
classes
 per default that are not available under Java 1.4.  Since I am not
able
 to force the order of the classpath, I was not able to solve the
problem
 with Maven 2 and Java 1.4 and the lib files that come with the Jaxb 1
 distribution.

 I think from time to time there will be situations where it is
desirable
 to force the order of jars within the classpath.

 Andreas


 -Original Message-
 From: dan tran [mailto:[EMAIL PROTECTED]
 Sent: Sunday, April 16, 2006 11:50 PM
 To: Maven Users List
 Subject: Re: [M2] Force order of jar files in classpath

 There is no way to do that in maven2,  Just wonder,  What is your
 usecase
 that requires this
 feature.

 -D

 On 4/16/06, Andreas Guther [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I am encountering different situations where it would be helpful to
 force
  the order of the jar files within the classpath.  So far I could not
 figure
  out if Maven 2 allows this to configure at all as well as how the
 order of
  the jar files is compiled from the dependency section.  Is this
 arbitrary?
 
  Is there a mechanism that allows defining the order of jar files
 within
  the classpath?
 
  Andreas
 
 
 
 
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



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



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



RE: hibernate3-maven-plugin:hbm2java - Setup Problems

2006-04-17 Thread Johann Reyes
Hello Suhneel

I just finished deploying a new snapshot that allows that, please refer to:

http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/hbm2java-m
ojo.html

Regards

Johann Reyes

Ps also I'm looking into the log4j dependency, how did you add it? And also
what exact version of hibernate are you using in your dependencies list?



-Original Message-
From: Roye, Suhneel BGI SF [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 17, 2006 6:15 PM
To: Maven Users List
Subject: RE: hibernate3-maven-plugin:hbm2java - Setup Problems

I got my problem figured out...I needed to add a dependency on log4j,
which looks like it's being used by the internals of the mojo. I now
have POJO's being generated from my Hibernate mapping files.

I'm using JDK 1.5, but I would like annotations disabled (I would still
like to use generics and autoboxing, however). I looked at the mojo API
and the HibernateExporterMojo has an isAnnotationsEnabled property,
which I would like to set to false. I tried setting it in various places
in my POM, but none worked:
1. configuration isAnnotationsEnabled=false
2.
configurationisAnnotationsEnabledfalse/isAnnotationsEnabled/confi
guration
3. hbm2java isAnnotationsEnabled=false
4.
hbm2javaisAnnotationsEnabledfalse/isAnnotationsEnabled/hbm2java

Can I manually disable annotations, and if so, where is the correct
place in my POM/Hibernate configuration to disable JDK 1.5 annotations?
I would like to avoid changing my Java version back to 1.4 just for this
goal, to avoid the creation of annotations in my POJO's.

Thanks much.

-Original Message-
From: Johann Reyes [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 17, 2006 1:32 PM
To: 'Maven Users List'
Subject: RE: hibernate3-maven-plugin:hbm2java - Setup Problems

Hello Suhneel;

Could you please run mvn -X hibernate3:hbm2java and send me the
output?

Also what jdk you are running?

Regards

Johann Reyes

-Original Message-
From: Roye, Suhneel BGI SF [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 3:34 PM
To: Maven Users List
Subject: hibernate3-maven-plugin:hbm2java - Setup Problems

I am trying to set up the Hibernate3 plugin for Maven2. Specifically, I
would like to have the plugin generate POJO's from *.hbm.xml mapping
files.

Relevant portions of my project directory structure:
Hibernate Configuration: project/src/main/resources/hibernate.cfg.xml
Hibernate Mappings:
project/src/main/resources/com/mycompany/app/*.hbm.xml
Target directory for generated POJO's:
project/src/main/java/com/mycompany/app/*.java

POM snippet:
.
.
.
pluginRepositories
pluginRepository
idsnapshots/id
urlhttp://snapshots.maven.codehaus.org/maven2/url
/pluginRepository
/pluginRepositories

.
.
.
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdhibernate3-maven-plugin/artifactId
configuration
hibernate
 
configurationFile/src/main/resources/hibernate.cfg.xml/configurationF
ile
/hibernate
outputDirectory
hbm2java/src/main/java/hbm2java
/outputDirectory
/configuration
/plugin
.
.
.

Hibernate configuration snippet:
.
.
.
mapping resource=com/mycompany/app/TableOne.hbm.xml/
mapping resource=com/mycompany/app/TableTwo.hbm.xml/
mapping
resource=com/mycompany/app/TableThree.hbm.xml/
.
.

When I run mvn hibernate3:hbm2java, I get an error and no POJO's are
generated. The top of my stack trace is:
java.lang.ExceptionInInitializerError
at
org.codehaus.mojo.hibernate3.exporter.Hbm2JavaGeneratorMojo.createExport
er(Hbm2JavaGeneratorMojo.java:52)

Can someone please point out what I'm missing or doing wrong?

Thanks. 
 
This message and any attachments are confidential, proprietary, and may be
privileged.  If this message was misdirected, Barclays Global Investors
(BGI) does not waive any confidentiality or privilege.  If you are not the
intended recipient, please notify us immediately and destroy the message
without disclosing its contents to anyone.  Any distribution, use or copying
of this e-mail or the information it contains by other than an intended
recipient is unauthorized.  The views and opinions expressed in this e-mail
message are the author's own and may not reflect the views and opinions of
BGI, unless the author is authorized by BGI to express such views or
opinions on its behalf.  All email sent to or from this address is subject
to electronic storage and review by BGI.  Although BGI operates anti-virus
programs, it does not accept responsibility for any damage whatsoever caused
by viruses being passed.

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






Re: [M2] Force order of jar files in classpath

2006-04-17 Thread Brett Porter
On 4/18/06, Andreas Guther [EMAIL PROTECTED] wrote:
 Maybe it is indeed in this particular case a problem with the eclipse
 plug-in and the request should go against the eclipse plug-in to honor
 the order of dependencies within the pom.xml.

I don't think either are deliberately maintaining the order of the
pom, and because of transitive dependencies that would be fragile.
Really what you want is to exclude test NG and its dependencies from
your eclipse classpath because the eclipse testng plugin already takes
care of it, right?

Regardless, I'm not sure why the bsh from testng is added to the
eclipse classpath. That could be a bug, or it could be that it is
selected in preference to your own and just not seen during testing in
Maven. Either way, the exclusions in your pom would solve the problem
in eclipse.


 Regarding jaxb:  I am using the xjc with a modified jaxb2-maven-plugin.
 I have removed in the modified plug-in all Java 5 usage in order to get
 it to run with Jaxb1.

 Is there another jaxb1 plug-in available that might do the job for me?


Someone has recently proposed contributing it to mojo.codehaus.org.

- Brett

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



RE: hibernate3-maven-plugin:hbm2java - Setup Problems

2006-04-17 Thread Roye, Suhneel BGI SF
I haven't tried out the new snapshot yet - will it still let me use JDK
1.5 but only disable annotations (the documentation I read included a
JDK5 flag, but made no mention of turning off only annotations in JDK
1.5)?
I added the Log4J dependency to my POM, just like any other dependency.
I'm using Hibernate 3.1.2.

-Original Message-
From: Johann Reyes [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 17, 2006 5:12 PM
To: 'Maven Users List'
Subject: RE: hibernate3-maven-plugin:hbm2java - Setup Problems

Hello Suhneel

I just finished deploying a new snapshot that allows that, please refer
to:

http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/hbm2ja
va-m
ojo.html

Regards

Johann Reyes

Ps also I'm looking into the log4j dependency, how did you add it? And
also what exact version of hibernate are you using in your dependencies
list?



-Original Message-
From: Roye, Suhneel BGI SF [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 6:15 PM
To: Maven Users List
Subject: RE: hibernate3-maven-plugin:hbm2java - Setup Problems

I got my problem figured out...I needed to add a dependency on log4j,
which looks like it's being used by the internals of the mojo. I now
have POJO's being generated from my Hibernate mapping files.

I'm using JDK 1.5, but I would like annotations disabled (I would still
like to use generics and autoboxing, however). I looked at the mojo API
and the HibernateExporterMojo has an isAnnotationsEnabled property,
which I would like to set to false. I tried setting it in various places
in my POM, but none worked:
1. configuration isAnnotationsEnabled=false 2.
configurationisAnnotationsEnabledfalse/isAnnotationsEnabled/confi
guration
3. hbm2java isAnnotationsEnabled=false 4.
hbm2javaisAnnotationsEnabledfalse/isAnnotationsEnabled/hbm2java

Can I manually disable annotations, and if so, where is the correct
place in my POM/Hibernate configuration to disable JDK 1.5 annotations?
I would like to avoid changing my Java version back to 1.4 just for this
goal, to avoid the creation of annotations in my POJO's.

Thanks much.

-Original Message-
From: Johann Reyes [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 1:32 PM
To: 'Maven Users List'
Subject: RE: hibernate3-maven-plugin:hbm2java - Setup Problems

Hello Suhneel;

Could you please run mvn -X hibernate3:hbm2java and send me the
output?

Also what jdk you are running?

Regards

Johann Reyes

-Original Message-
From: Roye, Suhneel BGI SF [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 3:34 PM
To: Maven Users List
Subject: hibernate3-maven-plugin:hbm2java - Setup Problems

I am trying to set up the Hibernate3 plugin for Maven2. Specifically, I
would like to have the plugin generate POJO's from *.hbm.xml mapping
files.

Relevant portions of my project directory structure:
Hibernate Configuration: project/src/main/resources/hibernate.cfg.xml
Hibernate Mappings:
project/src/main/resources/com/mycompany/app/*.hbm.xml
Target directory for generated POJO's:
project/src/main/java/com/mycompany/app/*.java

POM snippet:
.
.
.
pluginRepositories
pluginRepository
idsnapshots/id
urlhttp://snapshots.maven.codehaus.org/maven2/url
/pluginRepository
/pluginRepositories

.
.
.
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdhibernate3-maven-plugin/artifactId
configuration
hibernate
 
configurationFile/src/main/resources/hibernate.cfg.xml/configurationF
ile
/hibernate
outputDirectory
hbm2java/src/main/java/hbm2java
/outputDirectory
/configuration
/plugin
.
.
.

Hibernate configuration snippet:
.
.
.
mapping resource=com/mycompany/app/TableOne.hbm.xml/
mapping resource=com/mycompany/app/TableTwo.hbm.xml/
mapping
resource=com/mycompany/app/TableThree.hbm.xml/
.
.

When I run mvn hibernate3:hbm2java, I get an error and no POJO's are
generated. The top of my stack trace is:
java.lang.ExceptionInInitializerError
at
org.codehaus.mojo.hibernate3.exporter.Hbm2JavaGeneratorMojo.createExport
er(Hbm2JavaGeneratorMojo.java:52)

Can someone please point out what I'm missing or doing wrong?

Thanks. 
 
This message and any attachments are confidential, proprietary, and may be 
privileged.  If this message was misdirected, Barclays Global Investors (BGI) 
does not waive any confidentiality or privilege.  If you are not the intended 
recipient, please notify us immediately and destroy the message without 
disclosing its contents to anyone.  Any distribution, use or copying of this 
e-mail or the information it contains by other than an intended recipient is 
unauthorized.  The views and opinions expressed in this e-mail message are the 
author's own and may not reflect the views and opinions of BGI, unless the 
author is 

Re: Getting started with maven 2

2006-04-17 Thread Mark Reynolds
This validation will also be broken on some of the newer generic 
top-level domains like .museum and .travel.


-- Mark R

Steve Coy wrote:

I got to the bottom of this.

We have a local internal domain so that internal host names look like 
blah.axegroup.local.

The URL validator is barfing because local is longer than 4 characters. The 
code does not specify what authority upon which it bases this assumption.

Steve Coy

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 11 April 2006 12:32 AM

To: continuum-users@maven.apache.org
Subject: Re: Getting started with maven 2

The validation isn't done in continuum but in a plexus component:

Url format validation : 
http://svn.codehaus.org/trunk/plexus-components/plexus-formica/src/main/java/org/codehaus/plexus/formica/validation/UrlValidator.java?rev=2431root=plexusview=auto


Url acess validation : 
http://svn.codehaus.org/trunk/plexus-components/plexus-formica/src/main/java/org/codehaus/plexus/formica/validation/UrlSourceValidator.java?rev=2863root=plexusview=auto


We have some tests cases for these classes : 
http://svn.codehaus.org/trunk/plexus-components/plexus-formica/src/test/java/org/codehaus/plexus/formica/validation/?root=plexus


Emmanuel

Steve Coy a écrit :

The logs contain no activity related to posting the form.

I've been digging through the code (the continuum-1.0.x branch) for the last 
couple of hours, but have not been able to identify which bit of code does the 
actual validation of the URL.

Any further help would be appreciated.

Steve

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Mon 4/10/2006 9:41 PM
To: continuum-users@maven.apache.org
Subject: Re: Getting started with maven 2
 
Do you have an error in logs?


Steve Coy a écrit :


Thanks for your prompt response.

If I drop the scm:svn: part of the url I still have the same problem.

Any other ideas?


-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Mon 4/10/2006 5:42 PM
To: continuum-users@maven.apache.org
Subject: Re: Getting started with maven 2

In Add Project screen, only standard protocol are allowed (http, 
https, ftp). File protocol is allowed too if you define it in 
application.xml (see the FAQ)


Emmanuel

Steve Coy a écrit :



Hi,

I'm just getting started with continuum 1.0.2 and I'm having trouble 
adding a multi-module maven 2 project.


From the Add Maven 2.0+ Project page I'm entering the following 

POM

Url:

scm:svn:http://my.userid:[EMAIL PROTECTED]/svn/project/mo
dul
e/trunk/pom.xml

and the response from continuum is:

[ You must provide a valid url ] in red.

Any ideas what could be wrong?

A wget on the continuum server successfully retrieves the pom.xml 
with this url.


Thanks for any help.


stephen coy

















RE: hibernate3-maven-plugin:hbm2java - Setup Problems

2006-04-17 Thread Johann Reyes
Hello Suhneel

Yes, it would let you turn off generics ( 2 flags, jdk5 for generics and
ejb3 for annotations ) even if you are using jdk 1.5

About Log4j, I'll research some more, with my test I don't have the need to
include log4j in the pom.xml

Regards

Johann Reyes

-Original Message-
From: Roye, Suhneel BGI SF [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 17, 2006 8:58 PM
To: Maven Users List
Subject: RE: hibernate3-maven-plugin:hbm2java - Setup Problems

I haven't tried out the new snapshot yet - will it still let me use JDK
1.5 but only disable annotations (the documentation I read included a
JDK5 flag, but made no mention of turning off only annotations in JDK
1.5)?
I added the Log4J dependency to my POM, just like any other dependency.
I'm using Hibernate 3.1.2.

-Original Message-
From: Johann Reyes [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 17, 2006 5:12 PM
To: 'Maven Users List'
Subject: RE: hibernate3-maven-plugin:hbm2java - Setup Problems

Hello Suhneel

I just finished deploying a new snapshot that allows that, please refer
to:

http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/hbm2ja
va-m
ojo.html

Regards

Johann Reyes

Ps also I'm looking into the log4j dependency, how did you add it? And
also what exact version of hibernate are you using in your dependencies
list?



-Original Message-
From: Roye, Suhneel BGI SF [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 6:15 PM
To: Maven Users List
Subject: RE: hibernate3-maven-plugin:hbm2java - Setup Problems

I got my problem figured out...I needed to add a dependency on log4j,
which looks like it's being used by the internals of the mojo. I now
have POJO's being generated from my Hibernate mapping files.

I'm using JDK 1.5, but I would like annotations disabled (I would still
like to use generics and autoboxing, however). I looked at the mojo API
and the HibernateExporterMojo has an isAnnotationsEnabled property,
which I would like to set to false. I tried setting it in various places
in my POM, but none worked:
1. configuration isAnnotationsEnabled=false 2.
configurationisAnnotationsEnabledfalse/isAnnotationsEnabled/confi
guration
3. hbm2java isAnnotationsEnabled=false 4.
hbm2javaisAnnotationsEnabledfalse/isAnnotationsEnabled/hbm2java

Can I manually disable annotations, and if so, where is the correct
place in my POM/Hibernate configuration to disable JDK 1.5 annotations?
I would like to avoid changing my Java version back to 1.4 just for this
goal, to avoid the creation of annotations in my POJO's.

Thanks much.

-Original Message-
From: Johann Reyes [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 1:32 PM
To: 'Maven Users List'
Subject: RE: hibernate3-maven-plugin:hbm2java - Setup Problems

Hello Suhneel;

Could you please run mvn -X hibernate3:hbm2java and send me the
output?

Also what jdk you are running?

Regards

Johann Reyes

-Original Message-
From: Roye, Suhneel BGI SF [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 3:34 PM
To: Maven Users List
Subject: hibernate3-maven-plugin:hbm2java - Setup Problems

I am trying to set up the Hibernate3 plugin for Maven2. Specifically, I
would like to have the plugin generate POJO's from *.hbm.xml mapping
files.

Relevant portions of my project directory structure:
Hibernate Configuration: project/src/main/resources/hibernate.cfg.xml
Hibernate Mappings:
project/src/main/resources/com/mycompany/app/*.hbm.xml
Target directory for generated POJO's:
project/src/main/java/com/mycompany/app/*.java

POM snippet:
.
.
.
pluginRepositories
pluginRepository
idsnapshots/id
urlhttp://snapshots.maven.codehaus.org/maven2/url
/pluginRepository
/pluginRepositories

.
.
.
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdhibernate3-maven-plugin/artifactId
configuration
hibernate
 
configurationFile/src/main/resources/hibernate.cfg.xml/configurationF
ile
/hibernate
outputDirectory
hbm2java/src/main/java/hbm2java
/outputDirectory
/configuration
/plugin
.
.
.

Hibernate configuration snippet:
.
.
.
mapping resource=com/mycompany/app/TableOne.hbm.xml/
mapping resource=com/mycompany/app/TableTwo.hbm.xml/
mapping
resource=com/mycompany/app/TableThree.hbm.xml/
.
.

When I run mvn hibernate3:hbm2java, I get an error and no POJO's are
generated. The top of my stack trace is:
java.lang.ExceptionInInitializerError
at
org.codehaus.mojo.hibernate3.exporter.Hbm2JavaGeneratorMojo.createExport
er(Hbm2JavaGeneratorMojo.java:52)

Can someone please point out what I'm missing or doing wrong?

Thanks. 
 
This message and any attachments are confidential, proprietary, and may be
privileged.  If this message was misdirected, Barclays Global Investors
(BGI) does not 

generating Classpath for war modules

2006-04-17 Thread Janos Mucsi
Hi
If I am doing this in pom.xml
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-war-plugin/artifactId
  configuration 
archive
   manifestEntries
  
Classpath${pom.dependencies}/Classpath
   /manifestEntries
   /archive
   
warSourceDirectory${basedir}/WebContent/warSourceDirectory
   
webXml${basedir}/WebContent/WEB-INF/web.xml/webXml
excludes**/*.jar/excludes
  /configuration
   /plugin

I am getting garbage (well, not what I want):

Classpath: [Dependency {groupId=junit,
artifactId=junit, version=3.8.1
 , type=jar}, Dependency {groupId=fds.app,
artifactId=my-core, version
 =1.0, type=jar}]



Can somebody please tell me how to enumerate the
dependencies I want in the manifest?
Thanks.
Janos

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Looking up for reactor entries?

2006-04-17 Thread Gordon Henriksen

I wonder…

When using a fully integrated source tree (parent poms and all that,  
checked out from subversion in one fell swoop), sometimes I  
reflexively jump into a subdirectory and get burned when Maven goes  
out to the repository to download deployed versions of my projects  
under development. For instance, given this tree:


parent/ { packaging: pom }
  module1/ { packaging: war, dependency: module2 }
  module2/ { packaging: jar }
  module3/ { packaging: jar }

It would be nice to be able to:

cd parent/module1
mvn test

And build module1 and module2 without looking for module2 in the  
repository when it's sitting right nearby. Of course, this should  
only happen if ../pom.xml is pom.xml's parent (and recursively so- 
forth).


I'm sure this is nontrivial, but am I nuts? Is there a scenario where  
the current behavior is desirable?


— G



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



Re: Inherit version from parent project in multiproject build?

2006-04-17 Thread Eric Redmond
Children do inherit version from their parents (if the children do not set
the version element themselves).

Understand that there is a difference between a POM that aggregates other
projects, and a parent project. They are not necessarily related. A parent
POM is one that is explicitly pointed to by its children. They inherit their
parent's values. An aggregator (multimodule) POM, on the other hand, enacts
a common build over a set of modules (projects). But those modules do not
inherit from that POM (necessarily).

You'll still have the same issue with children inheriting from a version of
a parent POM. In order for a child to inherit from a different parent
version, then the child will have to explicitly point to the new parent
version, thus, negating your intent.

I remember talk of a plugin that could set versions by build, but I don't
know what came of it.

Eric

On 4/17/06, Sean McNamara [EMAIL PROTECTED] wrote:


 I've been trying to find an answer to this without much luck, but can't
 believe nobody else has tried to do this.  Apologies in advance if the
 answer is readily available... If so, my keywords must suck.

 I've got a M2 multproject setup that builds several artifacts.

 + parent
 -+ pom.xml
 -+ child1
 -+ child2

 We want to assign the same version to each artifact in the multiproject
 build, but it doesn't look like the version is actually an inheritable
 field.  This means each time we want to build a new version, we need to
 modify the POM for each child project, regardless of whether or not it
 changed.

 Is there some easy way to do this under Maven2?

 Thanks!


 *

 Note:  The information contained in this message and any attachment to it
 is privileged, confidential and protected from disclosure.  If the reader of
 this message is not the intended recipient, or an employee or agent
 responsible for delivering this message to the intended recipient, you are
 hereby notified that any dissemination, distribution or copying of this
 communication is strictly prohibited.  If you have received this
 communication in error, please notify the sender immediately by replying to
 the message, and please delete it  from your system. Thank you.  NYSE Group.

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




Re: generating Classpath for war modules

2006-04-17 Thread Wayne Fay
I think you're looking for...

plugin
 artifactIdmaven-war-plugin/artifactId
 configuration
   archive
 manifest
   addClasspathtrue/addClasspath
 /manifest
   /archive
 /configuration
/plugin

HTH.
Wayne

On 4/17/06, Janos Mucsi [EMAIL PROTECTED] wrote:
 Hi
 If I am doing this in pom.xml
 plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-war-plugin/artifactId
  configuration
archive
   manifestEntries

 Classpath${pom.dependencies}/Classpath
   /manifestEntries
   /archive

 warSourceDirectory${basedir}/WebContent/warSourceDirectory

 webXml${basedir}/WebContent/WEB-INF/web.xml/webXml
excludes**/*.jar/excludes
  /configuration
   /plugin

 I am getting garbage (well, not what I want):

 Classpath: [Dependency {groupId=junit,
 artifactId=junit, version=3.8.1
  , type=jar}, Dependency {groupId=fds.app,
 artifactId=my-core, version
  =1.0, type=jar}]



 Can somebody please tell me how to enumerate the
 dependencies I want in the manifest?
 Thanks.
 Janos

 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

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




Working with more than one module

2006-04-17 Thread Tiago Fernandez
 Hello everyone,

I'm trying to change the whole architecture structure I've got to get it
working along Maven 2, following the best practices (
http://maven.apache.org/guides/mini/guide-using-one-source-directory.html).
So, currently I've got a project with a structure like this:

/
+- pom.xml
+- src/
...+- main/
..+- java/
..+- /mypack/
..+- core/
..+- gui/
...+- test/
..+- java/
..+- /mypack/
..+- core/
..+- gui/
+- core/
...+- pom.xml
...+- target/
..+- my-core-1.0.jar
+- gui/
...+- pom.xml
...+- target/
..+- my-module-1.0.jar

It's building ok when I don't tell Maven to run the test cases, but when
turning it on, maven-surefire-plugin gets confused for some reason. The
issue is: when testing only the core module, surefire's plugin is trying to
compile also the tests from the gui module. In core/pom.xml I'm including
ONLY core's tests:

testSourceDirectory../src/test/java//testSourceDirectory
...
plugin
artifactIdmaven-surefire-plugin/artifactId
configuration
includes
include**/core/**/include
/includes
/configuration
/plugin

Is there another way to compile only the core's tests? Did anybody already
experience this problem?

Thanks a lot.

--

Tiago Fernandez
http://www.tiago182.spyw.com


Re: Question Still Present: EJB3 Embeddable and Maven2/Surefire?

2006-04-17 Thread Wayne Fay
Assuming you get something from someone, and its not sent to the User
list but instead privately (and you're not specifically requested to
keep it OFF the User list ;-) ), it would be great if you would reply
back to the list with what you got, so the rest of us can check it
out. ;-)

And I'm sure if you email Marco directly with your request that he
would respond in kind. He probably missed your request as this User
list gets very busy at times.

Wayne

On 4/17/06, Dan Greening [EMAIL PROTECTED] wrote:
 M. Mistroni mentioned here that he had gotten EJB3 embeddable working
 with Maven2, and offered to send the details to those who asked.  I
 asked a couple of times, and got nothing back.

 So my suspicion is this is like Fermat's last theorem: Hanc marginis
 exiguitas non caperet.  This margin is too narrow to contain it.
 Did Fermat actually prove it?  Nobody knows.

 Has ANYONE done this?  If so, can you please post the pom.xml to this
 list or email me directly?

 Dan R. Greening, Ph.D.,  CEO BigTribe Corporation,  http://
 dan.greening.name/contact.htm






Re: m2.0.3 and TestNG

2006-04-17 Thread John Sanda
Brett,

I really appreciate the feedback. I made the change, and I am good to
go. Many thanks for the help.

On 4/17/06, Brett Porter [EMAIL PROTECTED] wrote:
 Hi John,

 I'm not sure where you got the surefire plugin from - did you build it
 from source?

 That should have set the correct repository, being:
 http://cvs.apache.org/maven-snapshot-repository
 (instead of snapshots.maven.codehaus.org)

 - Brett

 On 4/18/06, John Sanda [EMAIL PROTECTED] wrote:
  Hi Brett. I have run into the same situation as Ian, and I tried to
  use the 2.2-SNAPSHOT version of the plugin, but I ran into some
  problems. Here is what my pom.xml (with only relavant sections):
 
  project xmlns=http://maven.apache.org/POM/4.0.0;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
  http://maven.apache.org/maven-v4_0_0.xsd;
modelVersion4.0.0/modelVersion
groupIdcom.foo/groupId
artifactIdmaven-app/artifactId
packagingjar/packaging
version1.0-SNAPSHOT/version
nameMaven Quick Start Archetype/name
urlhttp://maven.apache.org/url
dependencies
groupIdorg.testng/groupId
artifactIdtestng/artifactId
version4.6.1/version
scopetest/scope
classifierjdk15/classifier
  /dependency
/dependencies
build
  plugins
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-compiler-plugin/artifactId
  configuration
source1.5/source
target1.5/target
  /configuration
/plugin
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-surefire-plugin/artifactId
  version2.2-SNAPSHOT/version
  configuration
suiteXmlFiles
  suiteXmlFilesrc/test/resources/testng.xml/suiteXmlFile
/suiteXmlFiles
  /configuration
/plugin
  /plugins
/build
pluginRepositories
  pluginRepository
idapache.snapshots/id
urlhttp://cvs.apache.org/maven-snapshot-repository/url
snapshots
  enabledtrue/enabled
/snapshots
  /pluginRepository
/pluginRepositories
repositories
  repository
idMaven Snapshots/id
urlhttp://snapshots.maven.codehaus.org/maven2/url
snapshots
  enabledtrue/enabled
/snapshots
  /repository
/repositories
  /project
 
  Here is the error message that I get:
 
  Missing:
  --
  1) org.apache.maven.surefire:surefire-testng:jar:2.0-SNAPSHOT
 
Try downloading the file manually from the project website.
 
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven.surefire
  -DartifactId=surefire-testng \
-Dversion=2.0-20060304.160715-2 -Dpackaging=jar 
  -Dfile=/path/to/file
 
Path to dependency:
  1) dummy:dummy:jar:1.0
  2) 
  org.apache.maven.surefire:surefire-testng:jar:2.0-20060304.160715-2
 
  --
  1 required artifact is missing.
 
  for artifact:
dummy:dummy:jar:1.0
 
  from the specified remote repositories:
Maven Snapshots (http://snapshots.maven.codehaus.org/maven2),
central (http://repo1.maven.org/maven2)
 
 
  For the repositories that I am using, the latest snapshot release that
  I saw was 1.5-SNAPSHOT. I should also mention that I am running Maven
  2.0.4, but I assume that that shouldn't be a problem.
 
  Just for the sake of learning more about Maven, I did manage to get my
  annotations and testng.xml file recognized by executing the testng Ant
  task using the antrun plugin. Of course, I am aware that the antrun
  plugin is completely separaten from the SureFire plugin. I just wanted
  to verify that it wasn't something I was doing wrong on my end.
 
  Thanks.
 
  On 4/16/06, Brett Porter [EMAIL PROTECTED] wrote:
   Hi Ian,
  
   I'll roll these into the docs as it gets closer to release, but
   currently this support is only in a development snapshot of surefire.
  
   Basically, you need to be using 2.2-SNAPSHOT of the surefire plugin,
   and you must declare a testNG dependency (scoped test) in your
   project.
  
   - Brett
  
   On 4/16/06, Ian Shafer [EMAIL PROTECTED] wrote:
Hello,
   
I'm trying to use TestNG, but I'm having no luck. I'm using Java 1.5
source and 1.5 compilation target and I'm using a 1.5 JVM (I don't
have any other version of Java installed on the server that I'm
working on).
   
It seems that my 1.5 annotations are not being recognized. Only tests
that begin with 'test' are being run and @Configuration(beforeSuite =
true) is ignored. Any idea what I'm doing wrong? I'm not clear how
surefire knows whether to run TestNG or JUnit; that would be nice to
know too. Any info would be greatly appreciated.
   
Thanks,
   
Ian
   
   
   
Here's a snippet from a test class:
   
package com.example.test;
   
// imports removed for 

Re: Working with more than one module

2006-04-17 Thread Wayne Fay
I hate to break it to you, but you haven't really totally followed the
Maven best practices with this architecture. So let me help you out,
if you don't mind... ;-)

Here's how I would do it:

 /
 +- pom.xml
 +- core/
 ...+- pom.xml
 ...+- src/
 ..+- main/
 .+- java/
 .+- /mypack/
 +- core/
 ...+- test/
 ..+- java/
 ..+- /mypack/
 ..+- core/
 ...+- target/
 ..+- my-core-1.0.jar
 +- gui/
 ...+- pom.xml
 ...+- src/
 ..+- main/
 .+- java/
 .+- /mypack/
 +- gui/
 ...+- test/
 ..+- java/
 ..+- /mypack/
 ..+- gui/
 ...+- target/
 ..+- my-module-1.0.jar

Thus your core code and tests only live inside the /core/ module, and
your gui code and tests only live inside the /gui/ module, and your
GUI module perhaps brings in the Core module as a dependency, and both
have the /pom.xml as parent.

This would solve your surefire problems as well.

Wayne


On 4/17/06, Tiago Fernandez [EMAIL PROTECTED] wrote:
  Hello everyone,

 I'm trying to change the whole architecture structure I've got to get it
 working along Maven 2, following the best practices (
 http://maven.apache.org/guides/mini/guide-using-one-source-directory.html).
 So, currently I've got a project with a structure like this:

 /
 +- pom.xml
 +- src/
 ...+- main/
 ..+- java/
 ..+- /mypack/
 ..+- core/
 ..+- gui/
 ...+- test/
 ..+- java/
 ..+- /mypack/
 ..+- core/
 ..+- gui/
 +- core/
 ...+- pom.xml
 ...+- target/
 ..+- my-core-1.0.jar
 +- gui/
 ...+- pom.xml
 ...+- target/
 ..+- my-module-1.0.jar

 It's building ok when I don't tell Maven to run the test cases, but when
 turning it on, maven-surefire-plugin gets confused for some reason. The
 issue is: when testing only the core module, surefire's plugin is trying to
 compile also the tests from the gui module. In core/pom.xml I'm including
 ONLY core's tests:

 testSourceDirectory../src/test/java//testSourceDirectory
 ...
 plugin
 artifactIdmaven-surefire-plugin/artifactId
 configuration
 includes
 include**/core/**/include
 /includes
 /configuration
 /plugin

 Is there another way to compile only the core's tests? Did anybody already
 experience this problem?

 Thanks a lot.

 --

 Tiago Fernandez
 http://www.tiago182.spyw.com




Re: Best approach to deploy in websphere app server

2006-04-17 Thread Wayne Fay
David, this URL does not work for me either.

When I go to just the root davidkarlsen.com page, it forwards me to
/portal which is a JBoss portal 2.0 release candidate site. Looks like
you're moving some stuff around...

Wayne

On 4/17/06, Vijay Shanker [EMAIL PROTECTED] wrote:
 Hi David,

 http://www.davidkarlsen.com/maven-was-plugin/ does not work in my machine. 
 Could you please chack if this URL is correct? I have started working on 
 writing plugin but if you have already done it then I can use that.

 Thanks,
 vijay


 

 From: David J. M. Karlsen [mailto:[EMAIL PROTECTED]
 Sent: Mon 4/17/2006 11:25 AM
 To: Maven Users List
 Subject: Re: Best approach to deploy in websphere app server



 Vijay Shanker skrev:

 Thanks Sanjay and John. I will try to follow as you suggested. One 
 suggestion, I got, to use  jboss:harddeploy.
 
 
 I've created a plugin for generation of stub's:
 http://www.davidkarlsen.com/maven-was-plugin/

 Though, it does not [yet] deploy to a destination server.


 -
 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: Working with more than one module

2006-04-17 Thread Tiago Fernandez
Thanks Wayne, in fact I think your solution could solve my problem :-)

BTW, the layout I've shown previously was taken out from:
http://maven.apache.org/guides/mini/guide-using-one-source-directory.html

And I was waiting for something on:
http://maven.apache.org/guides/mini/guide-multi-module.html

But as you can see, there's nothing there yet.

Kind regards,
Tiago

On 4/17/06, Wayne Fay [EMAIL PROTECTED] wrote:

 I hate to break it to you, but you haven't really totally followed the
 Maven best practices with this architecture. So let me help you out,
 if you don't mind... ;-)

 Here's how I would do it:

  /
  +- pom.xml
  +- core/
  ...+- pom.xml
  ...+- src/
  ..+- main/
  .+- java/
  .+- /mypack/
  +- core/
  ...+- test/
  ..+- java/
  ..+- /mypack/
  ..+- core/
  ...+- target/
  ..+- my-core-1.0.jar
  +- gui/
  ...+- pom.xml
  ...+- src/
  ..+- main/
  .+- java/
  .+- /mypack/
  +- gui/
  ...+- test/
  ..+- java/
  ..+- /mypack/
  ..+- gui/
  ...+- target/
  ..+- my-module-1.0.jar

 Thus your core code and tests only live inside the /core/ module, and
 your gui code and tests only live inside the /gui/ module, and your
 GUI module perhaps brings in the Core module as a dependency, and both
 have the /pom.xml as parent.

 This would solve your surefire problems as well.

 Wayne


 On 4/17/06, Tiago Fernandez [EMAIL PROTECTED] wrote:
   Hello everyone,
 
  I'm trying to change the whole architecture structure I've got to get it
  working along Maven 2, following the best practices (
 
 http://maven.apache.org/guides/mini/guide-using-one-source-directory.html
 ).
  So, currently I've got a project with a structure like this:
 
  /
  +- pom.xml
  +- src/
  ...+- main/
  ..+- java/
  ..+- /mypack/
  ..+- core/
  ..+- gui/
  ...+- test/
  ..+- java/
  ..+- /mypack/
  ..+- core/
  ..+- gui/
  +- core/
  ...+- pom.xml
  ...+- target/
  ..+- my-core-1.0.jar
  +- gui/
  ...+- pom.xml
  ...+- target/
  ..+- my-module-1.0.jar
 
  It's building ok when I don't tell Maven to run the test cases, but when
  turning it on, maven-surefire-plugin gets confused for some reason. The
  issue is: when testing only the core module, surefire's plugin is trying
 to
  compile also the tests from the gui module. In core/pom.xml I'm
 including
  ONLY core's tests:
 
  testSourceDirectory../src/test/java//testSourceDirectory
  ...
  plugin
  artifactIdmaven-surefire-plugin/artifactId
  configuration
  includes
  include**/core/**/include
  /includes
  /configuration
  /plugin
 
  Is there another way to compile only the core's tests? Did anybody
 already
  experience this problem?
 
  Thanks a lot.
 
  --
 
  Tiago Fernandez
  http://www.tiago182.spyw.com



Testing with JUnit 4

2006-04-17 Thread Tiago Fernandez
Hello,

Does Maven already work with JUnit 4? I've noticed it only runs JUnit
3.xtest cases... is there a way to get it working with
4.x?

Thanx,
--
Tiago Fernandez
http://www.tiago182.spyw.com


Maven and WSAD or RAD

2006-04-17 Thread Aaron Freeman
Is anyone using Maven with either WebSphere Studio Applicaiton
Developer or Rational Application Developer? If so, how do you get the
local environments to work properly? There are some things that the
local environment needs to run, that are different than the way you
would do it for a Maven project. For instance, if you have a web
project, you have to put all the JAR files in the
src/main/webapp/web-inf/lib folder in order for them to be included in
the runtime path for the local environment. But as far as Maven goes,
you shouldn't be putting these files in that fold because it does that
for you when it generates the target. There is a similar issue with
putting JAR files in the root of the EAR file project, also. I've come
up with some ways to get around some of this, but it's really just a
hack.

Does anyone know of a good way to deal with this?

Thanks!!

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



Re: Testing with JUnit 4

2006-04-17 Thread Wayne Fay
This was discussed in a thread titled [M2] surefire plugin and JUnit
4 on April 9-10. Please check the Maven User list archive.

If you have any additional questions after reading that email thread,
feel free to post back...

Wayne

On 4/17/06, Tiago Fernandez [EMAIL PROTECTED] wrote:
 Hello,

 Does Maven already work with JUnit 4? I've noticed it only runs JUnit
 3.xtest cases... is there a way to get it working with
 4.x?

 Thanx,
 --
 Tiago Fernandez
 http://www.tiago182.spyw.com




Re: Problem in creating j2ee folder structure

2006-04-17 Thread Anshuman Srivastava
Hi Alex,

Thanks a lot for your reply.I tried this but still some error is coming. I
am pasting the full console messages below.

I changed my local repository and changed the local repository path in
settings.xml.My local repository resides in C:\maven-2.0.3\repository.

Warm Regards,
Anshuman

C:\mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp
-Dar
chetypeArtifactId=maven-archetype-j2ee -Pmyprofile
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
-
---
[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:create] (aggregator-style)
[INFO]
-
---
[INFO] Setting property: classpath.resource.loader.class = '
org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: resource.loader = 'classpath'.
[INFO] **
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File:
org\apache\velocity\runtime\defaults\velocity.pr
operties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.
resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClassLo
aderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.
ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in
any
resource loader.
[INFO] Velocimacro : error using  VM library template VM_global_library.vm :
org
.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'V
M_global_library.vm'
[INFO] Velocimacro :  VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates

[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may
NOT
replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be
glob
al in scope if allowed.
[INFO] Velocimacro : messages on  : VM system will output logging messages
[INFO] Velocimacro : autoload off  : VM system will not automatically reload
glo
bal library macros
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: com.mycompany.app
[INFO]

*[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.*

*GroupId: org.apache.maven.archetypes
ArtifactId: maven-archetype-j2ee
Version: RELEASE*

*Reason: Unable to determine the release version*

*Try downloading the file manually from the project website.*

*Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven.archetypes-DartifactId=
maven-archetype-j2ee \
-Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file*


*  org.apache.maven.archetypes:maven-archetype-j2ee:jar:RELEASE*

* *

[INFO]

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

[INFO] Total time: 1 second
[INFO] Finished at: Tue Apr 18 10:47:24 GMT+05:30 2006
[INFO] Final Memory: 3M/7M
[INFO]



On 4/17/06, alex_mayorga [EMAIL PROTECTED] wrote:


 Anshuman,

 The archetype you're chasing:

 http://svn.apache.org/maven-snapshot-repository/org/apache/maven/archetypes/maven-archetype-j2ee/

 Please add this to you settings.xml:

 /profiles
   profile
 idmyprofile/id
 repositories
   repository
 idapache-svn/id
 nameApache SVN/name
 urlhttp://svn.apache.org/maven-snapshot-repository//url
   /repository
 /repositories
   /profile
 /profiles

 Then fire up this command using that new profile:

 mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp
 -DarchetypeArtifactId=maven-archetype-j2ee 

best way to choose between development/production files

2006-04-17 Thread Janos Mucsi
Hi
  Some resource files are different in development, so I want to overwrite the 
production files when building for dev.
  src
   main
java
conf
 development
 production
   
   
  What is the smartest way to overlay some files? Using an embedded Ant script? 
Where do I specify the switch condition? On the command line? By the way, what 
is also the best way to lay out the directories?
   
   
  Thanks.
  Janos


-
Love cheap thrills? Enjoy PC-to-Phone  calls to 30+ countries for just 2¢/min 
with Yahoo! Messenger with Voice.