Retrieving info from maven-release-plugin

2007-04-03 Thread William Ferguson
I have a plugin whose Mojo is executed as part of the
maven-release-pluigin preparationGoals (see
http://maven.apache.org/plugins/maven-release-plugin/examples/run-goals-
before-commit.html)
 
The Mojo executes OK, but I need to extract some of the info that has
been accumulated by the maven-release-plugin.
Namely the SCM release tag specified by the user.
 
How do I get hold of this information inside my Mojo?
 
William


RE: [***POSSIBLE SPAM***] - WAR Archiver: avoiding JAR files in WEB-INF/lib - Bayesian Filter detected spam

2007-04-03 Thread William Ferguson
The scope you want is 'provided'.

See 
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
 for more details on specifying dependencies.

William 

-Original Message-
From: Gonzalo Vásquez Sáez [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 3 April 2007 4:29 AM
To: users@maven.apache.org
Subject: [***POSSIBLE SPAM***] - WAR Archiver: avoiding JAR files in 
WEB-INF/lib - Bayesian Filter detected spam

Is there any way to tell some dependencies just to be used on the compile phase 
and not to be included in the run phase during a WAR packaging? I have some 
Application Server specific JAR files needed during compile time (IBM WAS 6), 
but which they don't need to be included in the WAR itself, as they would be 
already accessible from the AppServer's classpath.

Perhaps some other scope / other than compile, or some special plugin?

Thanks.-

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



Re: Unable to run it

2007-04-03 Thread Henry S. Isidro
On Tuesday, April 3, 2007 13:06, Sagar Yerunkar wrote:
 I reinstalled Java to another directory and corrected the relevant
 environment variables. I am still getting the same error.

 My other code in eclipse is working fine. I have deployed a few web
 services using Tomcat. Even they are working fine.

 Regards,

 Sagar M. Yerunkar


Hi,

I don't know how it could happen but your mvn script (mvn.bat or mvn.sh) might 
be wrong or corrupted. Try copying it from a known working installation.

HTH,
Henry

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



Re: Retrieving info from maven-release-plugin

2007-04-03 Thread Emmanuel Venisse



William Ferguson a écrit :

I have a plugin whose Mojo is executed as part of the
maven-release-pluigin preparationGoals (see
http://maven.apache.org/plugins/maven-release-plugin/examples/run-goals-
before-commit.html)
 
The Mojo executes OK, but I need to extract some of the info that has

been accumulated by the maven-release-plugin.
Namely the SCM release tag specified by the user.
 
How do I get hold of this information inside my Mojo?
 

You can't actually, file an issue and we'll look at it.

Emmanuel


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



Re: ConcurrentModificationException

2007-04-03 Thread nicolas de loof

This seems to be a thread-safety issue in Wagon
TransferEventSupporthttp://maven.apache.org/wagon/wagon-provider-api/xref/org/apache/maven/wagon/events/TransferEventSupport.html

The listeners list is an ArrayList and add/remove/fireEvent methods are not
synchronized.
This requires either synchronization or use of a CopyOnWriteArrayList.

I've created http://jira.codehaus.org/browse/WAGON-79 for this.


2007/4/2, nicolas de loof [EMAIL PROTECTED]:


Hello,

I've setup archiva as proxy to maven central. I'm using a recent snapshot
build.
I get sometimes (?) 500 errors when downloading artifacts. According to
logs, this is a ConcurrentModificationException.

Is this a known bug ?

Here is the stacktrace :


2007-04-02 10:11:25,392 [http--1] ERROR [RepositoryServlet]
- Servlet.service() pour la servlet RepositoryServlet a généré une
exception
java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(Unknown Source)
at java.util.AbstractList$Itr.next(Unknown Source)
at
org.apache.maven.wagon.events.TransferEventSupport.fireTransferProgress (
TransferEventSupport.java:117)
at org.apache.maven.wagon.AbstractWagon.fireTransferProgress(
AbstractWagon.java:350)
at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java
:336)
at org.apache.maven.wagon.AbstractWagon.getTransfer (
AbstractWagon.java:199)
at org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java
:182)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:80)
at
org.apache.maven.archiva.proxy.DefaultProxyRequestHandler.getFileFromRepository(
DefaultProxyRequestHandler.java:541)
at org.apache.maven.archiva.proxy.DefaultProxyRequestHandler.get(
DefaultProxyRequestHandler.java:393)
at
org.apache.maven.archiva.proxy.DefaultProxyRequestHandler.getArtifactFromRepository(
DefaultProxyRequestHandler.java:260)
at org.apache.maven.archiva.proxy.DefaultProxyRequestHandler.get(
DefaultProxyRequestHandler.java:196)
at org.apache.maven.archiva.proxy.DefaultProxyRequestHandler.get(
DefaultProxyRequestHandler.java :116)
at
org.apache.maven.archiva.web.repository.ProxiedDavServer.fetchContentFromProxies
(ProxiedDavServer.java:156)
at org.apache.maven.archiva.web.repository.ProxiedDavServer.process(
ProxiedDavServer.java:144)
at
org.codehaus.plexus.webdav.servlet.multiplexed.MultiplexedWebDavServlet.service
(MultiplexedWebDavServlet.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(
FilterDispatcher.java :189)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(
PageFilter.java:39)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:173)
at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(
ActionContextCleanUp.java:88)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java :202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke (
StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke (
StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11AprProcessor.process(
Http11AprProcessor.java:833)
at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(
Http11AprProtocol.java:639)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java
:1285)
at java.lang.Thread.run(Unknown Source)



Re: Conditional code generation

2007-04-03 Thread Steffen Mazanek

Franz, this rocks. Thanks a lot!

Best regards,
Steffen

franz see schrieb:

Good day to you, Steffan,

Yes, that would do just fine. You can have something like

...
profile
  idadd-examples-that-compile-only-if-eclipse-is-installed/id
  activation
property
  nameeclipse.dir/name
/property
  /activation
  modules
moduleexample-that-compiles-if-eclipse-is-installed/module
  /modules
/profile
...

This profile will add the module
example-that-compiles-if-eclipse-is-installed if eclipse.dir is set.

Or if you know exactly where your eclipse executable should be placed, you
can do 


...
profile
  idadd-examples-that-compile-only-if-eclipse-is-installed/id
  activation
file
  existsC:\Location\Of\Eclipse\Executable\eclipse.exe/exists
/file
  /activation
  modules
moduleexample-that-compiles-if-eclipse-is-installed/module
  /modules
/profile
...

Note: properties can not be used in file activation ( if you wish properties
to be used, kindly file a jira issue ). See [1] for more details.

Cheers,
Franz

[1] http://docs.codehaus.org/display/MAVENUSER/Profiles


Steffen Mazanek-4 wrote:
  
I have defined a property eclipse.dir in my settings.xml. Is it possible 
to skip a submodule
completely whenever eclipse.dir is not set? Or to check whether 
eclipse.dir is a valid path?

What is best practice?

Eric: I am pretty new to maven so I would be very happy if you could 
work out the

details of your approach a bit more.

Best regards,

Steffen

Eric Redmond schrieb:

Check out build profiles. You can check for the existance of some 
tell-tale

eclipse installation, such as the eclipse executable file.

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

Eric

On 4/2/07, Steffen Mazanek [EMAIL PROTECTED] wrote:
  

Hello,

I have something like the following project layout:

-project
-- library
-- program
-- examples
 -- examples-that-compile-only-if-eclipse-is-installed
 -- examples-that-do-not-need-eclipse

Concretely I use eclipse in headless mode to generate
some sources via maven-emfgen-plugin.

How can I tell maven to skip the examples depending on eclipse
if eclipse is not installed. Can I do this via profiles?

Any help is greatly appreciated!


Best regards,

Steffen Mazanek


-
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: Unable to run it

2007-04-03 Thread franz see

Good day,

( I assume you're on windows )

Check your M2_HOME, what did you set it into ? ..Did you set it with
D:\my\path\to\maven, or to D:\my\path\to\maven\ ? ..If you did the second
one, remove the last \.

Cheers,
Franz


Sagar Yerunkar wrote:
 
 Hello,
 
 I have installed apache maven on my system. I have added all the 
 directories to the path and have set the required variables. However, i 
 get this error when i type mvn site :
 
 Usage: java [-options] class [args...]
(to execute a class)
or  java [-options] -jar jarfile [args...]
(to execute a jar file)
 
 where options include:
 -client   to select the client VM
 -server   to select the server VM
 -hotspot  is a synonym for the client VM  [deprecated]
   The default VM is client.
 
 -cp class search path of directories and zip/jar files
 -classpath class search path of directories and zip/jar files
   A ; separated list of directories, JAR archives,
   and ZIP archives to search for class files.
 -Dname=value
   set a system property
 -verbose[:class|gc|jni]
   enable verbose output
 -version  print product version and exit
 -version:value
   require the specified version to run
 -showversion  print product version and continue
 -jre-restrict-search | -jre-no-restrict-search
   include/exclude user private JREs in the version search
 -? -help  print this help message
 -Xprint help on non-standard options
 -ea[:packagename...|:classname]
 -enableassertions[:packagename...|:classname]
   enable assertions
 -da[:packagename...|:classname]
 -disableassertions[:packagename...|:classname]
   disable assertions
 -esa | -enablesystemassertions
   enable system assertions
 -dsa | -disablesystemassertions
   disable system assertions
 -agentlib:libname[=options]
   load native agent library libname, e.g. 
 -agentlib:hprof
 see also, -agentlib:jdwp=help and -agentlib:hprof=help
 -agentpath:pathname[=options]
   load native agent library by full pathname
 -javaagent:jarpath[=options]
   load Java programming language agent, see 
 java.lang.instrument
 
 I have installed the same software on another system too. It works there. 
 If anyone has faced the same issue and resolved it, kindly help.
 
 Regards,
 
 Sagar M. Yerunkar
 
 
 __
 

-- 
View this message in context: 
http://www.nabble.com/Unable-to-run-it-tf3504025s177.html#a9804911
Sent from the Maven - Users mailing list archive at Nabble.com.


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



[MAVEN][2.0.x] Generate multiple artifacts and assemblies for different targetted platforms

2007-04-03 Thread Ephemeris Lappis
Hello.

 

I'm not sure profiles are exactly what I need. I'd like to build with a
single set of pom.xml (for several modules), and in a single run, all the
artifacts of a project. A typical project is a JEE application set, with
several EARs, each of them holding one or more WARs and EJB-JARs, and all of
them referencing different JARs, etc. At the end of the build process, as we
do with our Ant scripts, the full delivery set must be prepared to make a CD
on one hand, and copied to a FTP distribution server, on the other hand.

 

Each of the JEE assemblies (WARs, EJBs, EARs) may support variable
descriptors according to the needs of distinct target platforms : local
tests, customer's business or performance tests, production, etc. And to
avoid human delivery errors (yes, this may happen.), any archive name must
clearly express the targeted platform. For example, in an EAR that targets a
'test' platform, the WARs or EJB-JARs file names contain the word 'test',
the application.xml web modules or web.xml EJB references descriptors are
adapted to point to the right artifacts, etc.

 

I've thought profile could help me, but it seems they don't !...

In one run, only one profile is selected. Someone must be aware of the
delivery process and run Maven again for each the target.

I've tried changing the finalName for simple JAR modules for each profile,
but I've not find an easy way to build the resulting compound assemblies
(WARs, EARs) that seem to use the 'natural' jar name as it appears in the
repositories.

Adapting descriptors is also very tedious : it needs the same Ant scripting
as if using it alone. With Ant, for example to avoid multiple similar
descriptors copies, we use the Xml-Ant tasks to dynamically change a base
descriptor's parts that depend on a variable environment, and generate, then
assemble it for each target.

 

This way, it seems Maven just helps me to build simple JARs, and I have to
Ant-script all the more complex parts of the build.

 

I'm sure I'm not going the right way !

Can anyone give me a better way to start working with these assembly
processes ?

 

Thanks.

 

--

Ephemeris Lappis

 



RE: Need help

2007-04-03 Thread Vaidya, Raghavendra \(GE Infra\)
 What is the default userid and password for logging into continuum ??
 I installed and started the continuum and want to set up a ant project
 for which I need to log in. I do not find the default userid and
 password for loggiing into continuum anywhere in the documentation.. 


Re: Need help

2007-04-03 Thread Emmanuel Venisse

We don't have a defaultuserid/password. You define it at the first continuum 
startup.

Emmanuel

Vaidya, Raghavendra (GE Infra) a écrit :

What is the default userid and password for logging into continuum ??
I installed and started the continuum and want to set up a ant project
for which I need to log in. I do not find the default userid and
password for loggiing into continuum anywhere in the documentation.. 






Combine/assemble multiple dependencies using maven

2007-04-03 Thread cuberoot

Hi

Is it possible to combine multiple dependencies (i.e. jars,wars) into a
single archive using maven?

I have investigated the maven-assembly plugin, but cannot seem to get it
working.

Situation:
Multiple maven projects that create an artifact (i.e. war,jar).
These artifacts can then be installed into a team repository.

Requirment:
Combine these multiple artifacts into a single archive. Perhaps with the
artifacts unpacked.

At first glance, the maven-assembly plugin seems perfect, but I cannot get
dependencySets working.

Any help would be appreciated.

-- 
View this message in context: 
http://www.nabble.com/Combine-assemble-multiple-dependencies-using-maven-tf3510625s177.html#a9806151
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Need help

2007-04-03 Thread Vaidya, Raghavendra \(GE Infra\)
How do I define the user at start up ?? Is it a command line argument ??

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 03, 2007 2:37 PM
To: continuum-users@maven.apache.org
Subject: Re: Need help

We don't have a defaultuserid/password. You define it at the first continuum 
startup.

Emmanuel

Vaidya, Raghavendra (GE Infra) a écrit :
 What is the default userid and password for logging into continuum ??
 I installed and started the continuum and want to set up a ant 
 project for which I need to log in. I do not find the default userid 
 and password for loggiing into continuum anywhere in the documentation..
 





Release with perforce and multi-module: parent pom cannot be updated

2007-04-03 Thread Bruno Dumant
Hi, 

 

I have a problem with the release plugin when using it with perforce in
a multi-module environment. Everything works fine (including tagging the
release) until the update pom phase:  the parent POM cannot be
modified (apparently, it is not checked out before trying to update it).

 

Environment:

*   Windows 2003 server / Java 1.6
*   Maven 2.0.6 (I had the problem with 2.0.4 as well)

*   I tried using the 2.0-beta-5 release plugin with no
success

*   Perforce Server version: P4D/LINUX24X86/2005.2/95346
(2006/04/10)

 

Please see the files attached: the parent and child poms (self
sufficient) and the command output.

 

Thanks for your help, 

 

Bruno

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order: 
[INFO]   Unnamed - bdumant:MultiModuleTest:pom:1.0.0-SNAPSHOT
[INFO]   Unnamed - bdumant:MultiModuleTestApp:pom:1.0.0-SNAPSHOT
[INFO] Searching repository for plugin with prefix: 'release'.
[INFO] 

[INFO] Building Unnamed - bdumant:MultiModuleTest:pom:1.0.0-SNAPSHOT
[INFO]task-segment: [release:prepare] (aggregator-style)
[INFO] 

[INFO] [release:prepare]
[INFO] Verifying that there are no local modifications...
[INFO] Checking dependencies and plugins for snapshots ...
What is the release version for Unnamed - 
bdumant:MultiModuleTest:pom:1.0.0-SNAPSHOT? (bdumant:MultiModuleTest) 1.0.0: : 
What is the release version for Unnamed - 
bdumant:MultiModuleTestApp:pom:1.0.0-SNAPSHOT? (bdumant:MultiModuleTestApp) 
1.0.0: : What is SCM release tag or label for Unnamed - 
bdumant:MultiModuleTest:pom:1.0.0-SNAPSHOT? (bdumant:MultiModuleTest) 
MultiModuleTest-1.0.0: : What is the new development version for Unnamed - 
bdumant:MultiModuleTest:pom:1.0.0-SNAPSHOT? (bdumant:MultiModuleTest) 
1.0.1-SNAPSHOT: : What is the new development version for Unnamed - 
bdumant:MultiModuleTestApp:pom:1.0.0-SNAPSHOT? (bdumant:MultiModuleTestApp) 
1.0.1-SNAPSHOT: : [INFO] Transforming 'Unnamed - 
bdumant:MultiModuleTest:pom:1.0.0-SNAPSHOT'...
[INFO] Transforming 'Unnamed - bdumant:MultiModuleTestApp:pom:1.0.0-SNAPSHOT'...
[INFO] Executing preparation goals 'clean integration-test'...
[INFO] Executing: mvn clean integration-test --no-plugin-updates
[INFO] Scanning for projects...
[INFO] Reactor build order: 
[INFO]   Unnamed - bdumant:MultiModuleTest:pom:1.0.0
[INFO]   Unnamed - bdumant:MultiModuleTestApp:pom:1.0.0
[INFO] 

[INFO] Building Unnamed - bdumant:MultiModuleTest:pom:1.0.0
[INFO]task-segment: [clean, integration-test]
[INFO] 

[INFO] [clean:clean]
[INFO] Deleting directory 
d:\dev\perforce\experiments\bdumant\MultiModuleTest\target
[INFO] Deleting directory 
d:\dev\perforce\experiments\bdumant\MultiModuleTest\target\classes
[INFO] Deleting directory 
d:\dev\perforce\experiments\bdumant\MultiModuleTest\target\test-classes
[INFO] [site:attach-descriptor]
[INFO] 

[INFO] Building Unnamed - bdumant:MultiModuleTestApp:pom:1.0.0
[INFO]task-segment: [clean, integration-test]
[INFO] 

[INFO] [clean:clean]
[INFO] Deleting directory 
d:\dev\perforce\experiments\bdumant\MultiModuleTest\APP\target
[INFO] Deleting directory 
d:\dev\perforce\experiments\bdumant\MultiModuleTest\APP\target\classes
[INFO] Deleting directory 
d:\dev\perforce\experiments\bdumant\MultiModuleTest\APP\target\test-classes
[INFO] [site:attach-descriptor]
[INFO] 
[INFO] 
[INFO] 

[INFO] Reactor Summary:
[INFO] 

[INFO] Unnamed - bdumant:MultiModuleTest:pom:1.0.0 ... SUCCESS 
[1.328s]
[INFO] Unnamed - bdumant:MultiModuleTestApp:pom:1.0.0  SUCCESS 
[0.000s]
[INFO] 

[INFO] 

[INFO] BUILD SUCCESSFUL
[INFO] 

[INFO] Total time: 1 second
[INFO] Finished at: Tue Apr 03 11:04:53 CEST 2007
[INFO] Final Memory: 3M/7M
[INFO] 

[INFO] Checking in modified POMs...
[INFO] Tagging release with the label MultiModuleTest-1.0.0...
[INFO] Transforming 'Unnamed - bdumant:MultiModuleTest:pom:1.0.0-SNAPSHOT'...
[INFO] 

Re: Unable to run it

2007-04-03 Thread Sagar Yerunkar
Hey that was the problem. I had an extra \ in M2_HOME. I removed it and 
mvn started working. I wonder how it recognised the mvn command if the 
environment variable was the problem.

Thanks a lot!


Regards,

Sagar M. Yerunkar




franz see [EMAIL PROTECTED] 
04/03/2007 12:55 PM
Please respond to
Maven Users List users@maven.apache.org


To
users@maven.apache.org
cc

Subject
Re: Unable to run it







Good day,

( I assume you're on windows )

Check your M2_HOME, what did you set it into ? ..Did you set it with
D:\my\path\to\maven, or to D:\my\path\to\maven\ ? ..If you did the second
one, remove the last \.

Cheers,
Franz


Sagar Yerunkar wrote:
 
 Hello,
 
 I have installed apache maven on my system. I have added all the 
 directories to the path and have set the required variables. However, i 
 get this error when i type mvn site :
 
 Usage: java [-options] class [args...]
(to execute a class)
or  java [-options] -jar jarfile [args...]
(to execute a jar file)
 
 where options include:
 -client   to select the client VM
 -server   to select the server VM
 -hotspot  is a synonym for the client VM  [deprecated]
   The default VM is client.
 
 -cp class search path of directories and zip/jar files
 -classpath class search path of directories and zip/jar files
   A ; separated list of directories, JAR archives,
   and ZIP archives to search for class files.
 -Dname=value
   set a system property
 -verbose[:class|gc|jni]
   enable verbose output
 -version  print product version and exit
 -version:value
   require the specified version to run
 -showversion  print product version and continue
 -jre-restrict-search | -jre-no-restrict-search
   include/exclude user private JREs in the version 
search
 -? -help  print this help message
 -Xprint help on non-standard options
 -ea[:packagename...|:classname]
 -enableassertions[:packagename...|:classname]
   enable assertions
 -da[:packagename...|:classname]
 -disableassertions[:packagename...|:classname]
   disable assertions
 -esa | -enablesystemassertions
   enable system assertions
 -dsa | -disablesystemassertions
   disable system assertions
 -agentlib:libname[=options]
   load native agent library libname, e.g. 
 -agentlib:hprof
 see also, -agentlib:jdwp=help and 
-agentlib:hprof=help
 -agentpath:pathname[=options]
   load native agent library by full pathname
 -javaagent:jarpath[=options]
   load Java programming language agent, see 
 java.lang.instrument
 
 I have installed the same software on another system too. It works 
there. 
 If anyone has faced the same issue and resolved it, kindly help.
 
 Regards,
 
 Sagar M. Yerunkar
 
 
 __
 

-- 
View this message in context: 
http://www.nabble.com/Unable-to-run-it-tf3504025s177.html#a9804911
Sent from the Maven - Users mailing list archive at Nabble.com.


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


__



__

Re: Unable to run it

2007-04-03 Thread franz see

Good day,

It's got something to do with running the java command :) I think it's
having difficulties when you're passing file paths something like
D:\my\path\to\maven\\lib and the likes :) That's why it's showing the help
for java ( since it claims not to understand the java parameters the maven
script passed to it ).

Cheers,
Franz


Sagar Yerunkar wrote:
 
 Hey that was the problem. I had an extra \ in M2_HOME. I removed it and 
 mvn started working. I wonder how it recognised the mvn command if the 
 environment variable was the problem.
 
 Thanks a lot!
 
 
 Regards,
 
 Sagar M. Yerunkar
 
 
 
 
 franz see [EMAIL PROTECTED] 
 04/03/2007 12:55 PM
 Please respond to
 Maven Users List users@maven.apache.org
 
 
 To
 users@maven.apache.org
 cc
 
 Subject
 Re: Unable to run it
 
 
 
 
 
 
 
 Good day,
 
 ( I assume you're on windows )
 
 Check your M2_HOME, what did you set it into ? ..Did you set it with
 D:\my\path\to\maven, or to D:\my\path\to\maven\ ? ..If you did the second
 one, remove the last \.
 
 Cheers,
 Franz
 
 
 Sagar Yerunkar wrote:
 
 Hello,
 
 I have installed apache maven on my system. I have added all the 
 directories to the path and have set the required variables. However, i 
 get this error when i type mvn site :
 
 Usage: java [-options] class [args...]
(to execute a class)
or  java [-options] -jar jarfile [args...]
(to execute a jar file)
 
 where options include:
 -client   to select the client VM
 -server   to select the server VM
 -hotspot  is a synonym for the client VM  [deprecated]
   The default VM is client.
 
 -cp class search path of directories and zip/jar files
 -classpath class search path of directories and zip/jar files
   A ; separated list of directories, JAR archives,
   and ZIP archives to search for class files.
 -Dname=value
   set a system property
 -verbose[:class|gc|jni]
   enable verbose output
 -version  print product version and exit
 -version:value
   require the specified version to run
 -showversion  print product version and continue
 -jre-restrict-search | -jre-no-restrict-search
   include/exclude user private JREs in the version 
 search
 -? -help  print this help message
 -Xprint help on non-standard options
 -ea[:packagename...|:classname]
 -enableassertions[:packagename...|:classname]
   enable assertions
 -da[:packagename...|:classname]
 -disableassertions[:packagename...|:classname]
   disable assertions
 -esa | -enablesystemassertions
   enable system assertions
 -dsa | -disablesystemassertions
   disable system assertions
 -agentlib:libname[=options]
   load native agent library libname, e.g. 
 -agentlib:hprof
 see also, -agentlib:jdwp=help and 
 -agentlib:hprof=help
 -agentpath:pathname[=options]
   load native agent library by full pathname
 -javaagent:jarpath[=options]
   load Java programming language agent, see 
 java.lang.instrument
 
 I have installed the same software on another system too. It works 
 there. 
 If anyone has faced the same issue and resolved it, kindly help.
 
 Regards,
 
 Sagar M. Yerunkar
 
 
 __
 
 
 -- 
 View this message in context: 
 http://www.nabble.com/Unable-to-run-it-tf3504025s177.html#a9804911
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 __
 
 
 
 __
 

-- 
View this message in context: 
http://www.nabble.com/Unable-to-run-it-tf3504025s177.html#a9806455
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Need help

2007-04-03 Thread Rahul Thakur
You will be asked to set up an admin account the first time you access 
the Continuum console after you've started it.


HTH,
Rahul


- Original Message - 
From: Vaidya, Raghavendra (GE Infra) [EMAIL PROTECTED]

To: continuum-users@maven.apache.org
Cc: Vaidya, Raghavendra (GE Infra) [EMAIL PROTECTED]
Sent: Tuesday, April 03, 2007 9:15 PM
Subject: RE: Need help


How do I define the user at start up ?? Is it a command line argument ??

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 03, 2007 2:37 PM
To: continuum-users@maven.apache.org
Subject: Re: Need help

We don't have a defaultuserid/password. You define it at the first 
continuum startup.


Emmanuel

Vaidya, Raghavendra (GE Infra) a écrit :

What is the default userid and password for logging into continuum ??
I installed and started the continuum and want to set up a ant
project for which I need to log in. I do not find the default userid
and password for loggiing into continuum anywhere in the 
documentation..








RE: Need help

2007-04-03 Thread David Roussel
Whent you first install it and access the installation the first page
asks you for a username and password.

If you have forgotten, they you could try re-installing.

On Tue, 3 Apr 2007 14:45:40 +0530, Vaidya, Raghavendra (GE Infra)
[EMAIL PROTECTED] said:
 How do I define the user at start up ?? Is it a command line argument ??
 
 -Original Message-
 From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, April 03, 2007 2:37 PM
 To: continuum-users@maven.apache.org
 Subject: Re: Need help
 
 We don't have a defaultuserid/password. You define it at the first
 continuum startup.
 
 Emmanuel
 
 Vaidya, Raghavendra (GE Infra) a écrit :
  What is the default userid and password for logging into continuum ??
  I installed and started the continuum and want to set up a ant 
  project for which I need to log in. I do not find the default userid 
  and password for loggiing into continuum anywhere in the documentation..
  
 
 
 


[m2][release-plugin] Release fails with aggregate Javadocs

2007-04-03 Thread Antonio Petrelli

Hi all!
I wanted to prepare the release for Tiles, but when it tries to create
the site, it fails with a dependency error [1].
The problem is that the tiles-parent pom contains the configuration
for the Javadoc plugin that aggregates the Javadoc of its modules.
When generating the site alone, the workaround is to run mvn install
site, so that the artifact are installed and, therefore, available.
But during the release process this kind of workaround is not possible
(in fact, after the failure it is possible to run mvn install and
launch mvn release:perform again and everything works).
So my question is: is there a way to solve this problem? For example
by executing the install phase before the site generation, but I
don't know how to do it.
I am using Maven 2.0.5, Javadoc plugin 2.2, Release plugin 2.0-beta-4

Thanks in advance
Antonio

--

[1] snip
1) org.apache.tiles:tiles-api:jar:2.0.3

 Try downloading the file manually from the project website.

 Then, install it using the command:
 mvn install:install-file -DgroupId=org.apache.tiles -DartifactId=tiles-api
\
 -Dversion=2.0.3 -Dpackaging=jar -Dfile=/path/to/file

 Path to dependency:
   1) org.apache.tiles:tiles-core:jar:2.0.3
   2) org.apache.tiles:tiles-api:jar:2.0.3

--
1 required artifact is missing.
/snip

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



integrate JavaScript dev tools in maven build ?

2007-04-03 Thread nicolas de loof

Hello,

My webapps now come with more and more JavaScript (web 2.0 !)
I expect maven to bring me best-practices and great tools the same way it
did for my java code.

Is there any work-in-progress to integrate some JS-tools as maven plugins ?

- jsdoc (or similar) to générate javadoc-like documentation
- some js-compression tool
- some js-merge tool

I've looked at prototype build system based on Ruby Rake. The source code
is splitted into individual, specialized, js files. This looks a good
practice to make things clear and avoid conflicts during devs.

YUI comes with a -debug and a -min version of all its components. This also
looks interesting. I've no idea about the build process they use.

Any suggestion ?
Any link to java-based tools web could try to package as maven plugins ?

Nico.


CDATA bug in site plugin? (was: Re: FML and stripped XML entities?)

2007-04-03 Thread Manos Batsis

I wanted to avoid using CDATA but when i did i got a nasty surprise!

After converting the entities to characters and added the CDATA, the
site plugin actually renders CDATA declarations of source elements as
sourcecode, which is a bug.

After some search, i think the entity stripping is fixed in a recent
beta, see

http://jira.codehaus.org/browse/MSITE-156?page=all

Cheers,

Manos

Quoting franz see [EMAIL PROTECTED]:


 Good day to you, Manos,

 Try using ![CDATA[...]].

 Cheers,
 Franz


 Manos Batsis wrote:
 
  Hello,
 
  Just created a FAQ for my project that includes XML snippets using
  entities like amp; and lt;. The less-than and greater-than (lt;,
  gt;) entities are stripped from the result HTML document, while
  entities like quot; are unaffected. Any ideas?
 
  Thanks,
 
  Manos
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:

http://www.nabble.com/FML-and-stripped-XML-entities--tf3506905s177.html#a9802349
 Sent from the Maven - Users mailing list archive at Nabble.com.


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





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



Re: integrate JavaScript dev tools in maven build ?

2007-04-03 Thread nicolas de loof

I just discovered jsDoc 2 (http://code.google.com/p/jsdoc-2/) that is
written in JavaScript and can (?) run inside Rhino engine, so could be
packaged as a maven report plugin.

2007/4/3, nicolas de loof [EMAIL PROTECTED]:


Hello,

My webapps now come with more and more JavaScript (web 2.0 !)
I expect maven to bring me best-practices and great tools the same way it
did for my java code.

Is there any work-in-progress to integrate some JS-tools as maven plugins
?

- jsdoc (or similar) to générate javadoc-like documentation
- some js-compression tool
- some js-merge tool

I've looked at prototype build system based on Ruby Rake. The source
code is splitted into individual, specialized, js files. This looks a good
practice to make things clear and avoid conflicts during devs.

YUI comes with a -debug and a -min version of all its components. This
also looks interesting. I've no idea about the build process they use.

Any suggestion ?
Any link to java-based tools web could try to package as maven plugins ?

Nico.



Re: Release with perforce and multi-module: parent pom cannot be updated

2007-04-03 Thread Emmanuel Venisse

With your logs, it seems to be there, because the prepare goal run 'mvn clean 
integration-test --no-plugin-updates' on it but the release plugin can't modify 
it, maybe it is read only.
What is your release plugin version?

Emmanuel

Bruno Dumant a écrit :

Hi,

 

I have a problem with the release plugin when using it with perforce in 
a multi-module environment. Everything works fine (including tagging the 
release) until the “update pom” phase:  the parent POM cannot be 
modified (apparently, it is not checked out before trying to update it).


 


Environment:

* Windows 2003 server / Java 1.6
* Maven 2.0.6 (I had the problem with 2.0.4 as well)
  o I tried using the 2.0-beta-5 release plugin with no success
* Perforce Server version: P4D/LINUX24X86/2005.2/95346 (2006/04/10)

 

Please see the files attached: the parent and child poms (self 
sufficient) and the command output.


 


Thanks for your help,

 


Bruno




+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order: 
[INFO]   Unnamed - bdumant:MultiModuleTest:pom:1.0.0-SNAPSHOT

[INFO]   Unnamed - bdumant:MultiModuleTestApp:pom:1.0.0-SNAPSHOT
[INFO] Searching repository for plugin with prefix: 'release'.
[INFO] 

[INFO] Building Unnamed - bdumant:MultiModuleTest:pom:1.0.0-SNAPSHOT
[INFO]task-segment: [release:prepare] (aggregator-style)
[INFO] 

[INFO] [release:prepare]
[INFO] Verifying that there are no local modifications...
[INFO] Checking dependencies and plugins for snapshots ...
What is the release version for Unnamed - bdumant:MultiModuleTest:pom:1.0.0-SNAPSHOT? (bdumant:MultiModuleTest) 
1.0.0: : What is the release version for Unnamed - bdumant:MultiModuleTestApp:pom:1.0.0-SNAPSHOT? 
(bdumant:MultiModuleTestApp) 1.0.0: : What is SCM release tag or label for Unnamed - 
bdumant:MultiModuleTest:pom:1.0.0-SNAPSHOT? (bdumant:MultiModuleTest) MultiModuleTest-1.0.0: : What is the new development 
version for Unnamed - bdumant:MultiModuleTest:pom:1.0.0-SNAPSHOT? (bdumant:MultiModuleTest) 1.0.1-SNAPSHOT: : What is 
the new development version for Unnamed - bdumant:MultiModuleTestApp:pom:1.0.0-SNAPSHOT? (bdumant:MultiModuleTestApp) 
1.0.1-SNAPSHOT: : [INFO] Transforming 'Unnamed - bdumant:MultiModuleTest:pom:1.0.0-SNAPSHOT'...
[INFO] Transforming 'Unnamed - bdumant:MultiModuleTestApp:pom:1.0.0-SNAPSHOT'...
[INFO] Executing preparation goals 'clean integration-test'...
[INFO] Executing: mvn clean integration-test --no-plugin-updates
[INFO] Scanning for projects...
[INFO] Reactor build order: 
[INFO]   Unnamed - bdumant:MultiModuleTest:pom:1.0.0

[INFO]   Unnamed - bdumant:MultiModuleTestApp:pom:1.0.0
[INFO] 

[INFO] Building Unnamed - bdumant:MultiModuleTest:pom:1.0.0
[INFO]task-segment: [clean, integration-test]
[INFO] 

[INFO] [clean:clean]
[INFO] Deleting directory 
d:\dev\perforce\experiments\bdumant\MultiModuleTest\target
[INFO] Deleting directory 
d:\dev\perforce\experiments\bdumant\MultiModuleTest\target\classes
[INFO] Deleting directory 
d:\dev\perforce\experiments\bdumant\MultiModuleTest\target\test-classes
[INFO] [site:attach-descriptor]
[INFO] 

[INFO] Building Unnamed - bdumant:MultiModuleTestApp:pom:1.0.0
[INFO]task-segment: [clean, integration-test]
[INFO] 

[INFO] [clean:clean]
[INFO] Deleting directory 
d:\dev\perforce\experiments\bdumant\MultiModuleTest\APP\target
[INFO] Deleting directory 
d:\dev\perforce\experiments\bdumant\MultiModuleTest\APP\target\classes
[INFO] Deleting directory 
d:\dev\perforce\experiments\bdumant\MultiModuleTest\APP\target\test-classes
[INFO] [site:attach-descriptor]
[INFO] 
[INFO] 
[INFO] 

[INFO] Reactor Summary:
[INFO] 

[INFO] Unnamed - bdumant:MultiModuleTest:pom:1.0.0 ... SUCCESS 
[1.328s]
[INFO] Unnamed - bdumant:MultiModuleTestApp:pom:1.0.0  SUCCESS 
[0.000s]
[INFO] 

[INFO] 

[INFO] BUILD SUCCESSFUL
[INFO] 

[INFO] Total time: 1 second
[INFO] Finished at: Tue Apr 03 11:04:53 CEST 2007
[INFO] 

Re: [m2][release-plugin] Release fails with aggregate Javadocs

2007-04-03 Thread Emmanuel Venisse

can we have the full log?

Antonio Petrelli a écrit :

Hi all!
I wanted to prepare the release for Tiles, but when it tries to create
the site, it fails with a dependency error [1].
The problem is that the tiles-parent pom contains the configuration
for the Javadoc plugin that aggregates the Javadoc of its modules.
When generating the site alone, the workaround is to run mvn install
site, so that the artifact are installed and, therefore, available.
But during the release process this kind of workaround is not possible
(in fact, after the failure it is possible to run mvn install and
launch mvn release:perform again and everything works).
So my question is: is there a way to solve this problem? For example
by executing the install phase before the site generation, but I
don't know how to do it.
I am using Maven 2.0.5, Javadoc plugin 2.2, Release plugin 2.0-beta-4

Thanks in advance
Antonio

--

[1] snip
1) org.apache.tiles:tiles-api:jar:2.0.3

 Try downloading the file manually from the project website.

 Then, install it using the command:
 mvn install:install-file -DgroupId=org.apache.tiles 
-DartifactId=tiles-api

\
 -Dversion=2.0.3 -Dpackaging=jar -Dfile=/path/to/file

 Path to dependency:
   1) org.apache.tiles:tiles-core:jar:2.0.3
   2) org.apache.tiles:tiles-api:jar:2.0.3

--
1 required artifact is missing.
/snip

-
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: Release with perforce and multi-module: parent pom cannot be updated

2007-04-03 Thread Bruno Dumant
Yes the file is here, but it is read-only. At the start of the process, the 
file is in read-write mode (it is checked out, i.e., editable for perforce). 
The release-prepare version:
- modifies the file (to set the appropriate version),
- submits it (which makes it read-only)

When trying to modify it again, it fails. 

When releasing simple projects, it works fine. I imagine that the pom file is 
checked out again in the simple project case, to make it read-write. But with 
multiple modules, it doesn't seem to be the case. A user specifically mentioned 
in another post that his SCM information was present in the parent and the 
child poms. It is not the case with me. Should I add SCM information everywhere?

The release plugin version is 2.0-beta-4.

Bruno


-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: mardi 3 avril 2007 11:56
To: Maven Users List
Subject: Re: Release with perforce and multi-module: parent pom cannot be 
updated

With your logs, it seems to be there, because the prepare goal run 'mvn clean 
integration-test --no-plugin-updates' on it but the release plugin can't modify 
it, maybe it is read only.
What is your release plugin version?

Emmanuel

Bruno Dumant a écrit :
 Hi,
 
  
 
 I have a problem with the release plugin when using it with perforce in 
 a multi-module environment. Everything works fine (including tagging the 
 release) until the update pom phase:  the parent POM cannot be 
 modified (apparently, it is not checked out before trying to update it).
 
  
 
 Environment:
 
 * Windows 2003 server / Java 1.6
 * Maven 2.0.6 (I had the problem with 2.0.4 as well)
   o I tried using the 2.0-beta-5 release plugin with no success
 * Perforce Server version: P4D/LINUX24X86/2005.2/95346 (2006/04/10)
 
  
 
 Please see the files attached: the parent and child poms (self 
 sufficient) and the command output.
 
  
 
 Thanks for your help,
 
  
 
 Bruno
 
 
 
 
 + Error stacktraces are turned on.
 [INFO] Scanning for projects...
 [INFO] Reactor build order: 
 [INFO]   Unnamed - bdumant:MultiModuleTest:pom:1.0.0-SNAPSHOT
 [INFO]   Unnamed - bdumant:MultiModuleTestApp:pom:1.0.0-SNAPSHOT
 [INFO] Searching repository for plugin with prefix: 'release'.
 [INFO] 
 
 [INFO] Building Unnamed - bdumant:MultiModuleTest:pom:1.0.0-SNAPSHOT
 [INFO]task-segment: [release:prepare] (aggregator-style)
 [INFO] 
 
 [INFO] [release:prepare]
 [INFO] Verifying that there are no local modifications...
 [INFO] Checking dependencies and plugins for snapshots ...
 What is the release version for Unnamed - 
 bdumant:MultiModuleTest:pom:1.0.0-SNAPSHOT? (bdumant:MultiModuleTest) 1.0.0: 
 : What is the release version for Unnamed - 
 bdumant:MultiModuleTestApp:pom:1.0.0-SNAPSHOT? (bdumant:MultiModuleTestApp) 
 1.0.0: : What is SCM release tag or label for Unnamed - 
 bdumant:MultiModuleTest:pom:1.0.0-SNAPSHOT? (bdumant:MultiModuleTest) 
 MultiModuleTest-1.0.0: : What is the new development version for Unnamed - 
 bdumant:MultiModuleTest:pom:1.0.0-SNAPSHOT? (bdumant:MultiModuleTest) 
 1.0.1-SNAPSHOT: : What is the new development version for Unnamed - 
 bdumant:MultiModuleTestApp:pom:1.0.0-SNAPSHOT? (bdumant:MultiModuleTestApp) 
 1.0.1-SNAPSHOT: : [INFO] Transforming 'Unnamed - 
 bdumant:MultiModuleTest:pom:1.0.0-SNAPSHOT'...
 [INFO] Transforming 'Unnamed - 
 bdumant:MultiModuleTestApp:pom:1.0.0-SNAPSHOT'...
 [INFO] Executing preparation goals 'clean integration-test'...
 [INFO] Executing: mvn clean integration-test --no-plugin-updates
 [INFO] Scanning for projects...
 [INFO] Reactor build order: 
 [INFO]   Unnamed - bdumant:MultiModuleTest:pom:1.0.0
 [INFO]   Unnamed - bdumant:MultiModuleTestApp:pom:1.0.0
 [INFO] 
 
 [INFO] Building Unnamed - bdumant:MultiModuleTest:pom:1.0.0
 [INFO]task-segment: [clean, integration-test]
 [INFO] 
 
 [INFO] [clean:clean]
 [INFO] Deleting directory 
 d:\dev\perforce\experiments\bdumant\MultiModuleTest\target
 [INFO] Deleting directory 
 d:\dev\perforce\experiments\bdumant\MultiModuleTest\target\classes
 [INFO] Deleting directory 
 d:\dev\perforce\experiments\bdumant\MultiModuleTest\target\test-classes
 [INFO] [site:attach-descriptor]
 [INFO] 
 
 [INFO] Building Unnamed - bdumant:MultiModuleTestApp:pom:1.0.0
 [INFO]task-segment: [clean, integration-test]
 [INFO] 
 
 [INFO] [clean:clean]
 [INFO] Deleting 

Re: Combine/assemble multiple dependencies using maven

2007-04-03 Thread Andy Signer

Hi

I had problems with the assembly plugin as well. Then I realized that the
documentation on the web is related to the latest snapshot.

So, give the latest snapshot a try. Hopefully it will work for you.

Cheers
Andy

2007/4/3, cuberoot [EMAIL PROTECTED]:



Hi

Is it possible to combine multiple dependencies (i.e. jars,wars) into a
single archive using maven?

I have investigated the maven-assembly plugin, but cannot seem to get it
working.

Situation:
Multiple maven projects that create an artifact (i.e. war,jar).
These artifacts can then be installed into a team repository.

Requirment:
Combine these multiple artifacts into a single archive. Perhaps with the
artifacts unpacked.

At first glance, the maven-assembly plugin seems perfect, but I cannot get
dependencySets working.

Any help would be appreciated.

--
View this message in context:
http://www.nabble.com/Combine-assemble-multiple-dependencies-using-maven-tf3510625s177.html#a9806151
Sent from the Maven - Users mailing list archive at Nabble.com.


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




Maven : radius proxy authentication

2007-04-03 Thread DELUNE Sébastien
Hello,

In my society, we use a radius proxy to access web sites. How to configure 
maven in order to authenticate correctly? My configuration looks like this :

  proxies
proxy
  activetrue/active
  protocolhttp/protocol
  hostmysocietyproxy/host
  port1234/port
  nonProxyHostsm4f5,b2k7/nonProxyHosts
/proxy
  /proxies

I've tried to add user and password with no success, maven blacklist all my 
repositories with an access error.

Does anyone know how to do this type of authentication?

Thanks in advance,

Seb.

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



Specifying working directory

2007-04-03 Thread Vaidya, Raghavendra \(GE Infra\)
 

 Is there a way in continuum to specify a working directory at project
level rather than globally??


Re: Combine/assemble multiple dependencies using maven

2007-04-03 Thread cuberoot

Hi

Thanks for the reply. I have downloaded the 2.2-SNAPSHOT and am about to
start playing with it. I think its terrible that the maven-assembly site
displays the snaphsot docs.

Thanks again.



Andy Signer wrote:
 
 Hi
 
 I had problems with the assembly plugin as well. Then I realized that the
 documentation on the web is related to the latest snapshot.
 
 So, give the latest snapshot a try. Hopefully it will work for you.
 
 Cheers
 Andy
 
 2007/4/3, cuberoot [EMAIL PROTECTED]:


 Hi

 Is it possible to combine multiple dependencies (i.e. jars,wars) into a
 single archive using maven?

 I have investigated the maven-assembly plugin, but cannot seem to get it
 working.

 Situation:
 Multiple maven projects that create an artifact (i.e. war,jar).
 These artifacts can then be installed into a team repository.

 Requirment:
 Combine these multiple artifacts into a single archive. Perhaps with the
 artifacts unpacked.

 At first glance, the maven-assembly plugin seems perfect, but I cannot
 get
 dependencySets working.

 Any help would be appreciated.

 --
 View this message in context:
 http://www.nabble.com/Combine-assemble-multiple-dependencies-using-maven-tf3510625s177.html#a9806151
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/Combine-assemble-multiple-dependencies-using-maven-tf3510625s177.html#a9808322
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Specifying working directory

2007-04-03 Thread Emmanuel Venisse

what do you mean?

Vaidya, Raghavendra (GE Infra) a écrit :
 


 Is there a way in continuum to specify a working directory at project
level rather than globally??







Re: Specifying working directory

2007-04-03 Thread Vaidya, Raghavendra \(GE Infra\)
What I mean is there is a way to set the directory where the code is checked 
out. This can be done at continuum level and not project level. My question is 
how do I set the checkout directory at project level. 


--
Sent from my BlackBerry Wireless Device


-Original Message-
From: Emmanuel Venisse
To: continuum-users@maven.apache.org
Sent: Tue Apr 03 17:18:46 2007
Subject: Re: Specifying working directory

what do you mean?

Vaidya, Raghavendra (GE Infra) a écrit :
  
 
  Is there a way in continuum to specify a working directory at project
 level rather than globally??
 
 
 




Re: Specifying working directory

2007-04-03 Thread Emmanuel Venisse

no you can't.
Why do you want to define it at project level?

Vaidya, Raghavendra (GE Infra) a écrit :
What I mean is there is a way to set the directory where the code is checked out. This can be done at continuum level and not project level. My question is how do I set the checkout directory at project level. 



--
Sent from my BlackBerry Wireless Device


-Original Message-
From: Emmanuel Venisse
To: continuum-users@maven.apache.org
Sent: Tue Apr 03 17:18:46 2007
Subject: Re: Specifying working directory

what do you mean?

Vaidya, Raghavendra (GE Infra) a écrit :
 


 Is there a way in continuum to specify a working directory at project
level rather than globally??













Re: Combine/assemble multiple dependencies using maven

2007-04-03 Thread cuberoot

Does anybody know when the 2.2 release will be available?



cuberoot wrote:
 
 Hi
 
 Thanks for the reply. I have downloaded the 2.2-SNAPSHOT and am about to
 start playing with it. I think its terrible that the maven-assembly site
 displays the snaphsot docs.
 
 Thanks again.
 
 
 
 Andy Signer wrote:
 
 Hi
 
 I had problems with the assembly plugin as well. Then I realized that the
 documentation on the web is related to the latest snapshot.
 
 So, give the latest snapshot a try. Hopefully it will work for you.
 
 Cheers
 Andy
 
 2007/4/3, cuberoot [EMAIL PROTECTED]:


 Hi

 Is it possible to combine multiple dependencies (i.e. jars,wars) into a
 single archive using maven?

 I have investigated the maven-assembly plugin, but cannot seem to get it
 working.

 Situation:
 Multiple maven projects that create an artifact (i.e. war,jar).
 These artifacts can then be installed into a team repository.

 Requirment:
 Combine these multiple artifacts into a single archive. Perhaps with the
 artifacts unpacked.

 At first glance, the maven-assembly plugin seems perfect, but I cannot
 get
 dependencySets working.

 Any help would be appreciated.

 --
 View this message in context:
 http://www.nabble.com/Combine-assemble-multiple-dependencies-using-maven-tf3510625s177.html#a9806151
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Combine-assemble-multiple-dependencies-using-maven-tf3510625s177.html#a9808850
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Specifying working directory

2007-04-03 Thread Vaidya, Raghavendra \(GE Infra\)
Because my build(ant) scripts use relative directories to locate source 
directories and do the build. 
--
Sent from my BlackBerry Wireless Device


-Original Message-
From: Emmanuel Venisse
To: continuum-users@maven.apache.org
Sent: Tue Apr 03 17:30:48 2007
Subject: Re: Specifying working directory

no you can't.
Why do you want to define it at project level?

Vaidya, Raghavendra (GE Infra) a écrit :
 What I mean is there is a way to set the directory where the code is checked 
 out. This can be done at continuum level and not project level. My question 
 is how do I set the checkout directory at project level. 
 
 
 --
 Sent from my BlackBerry Wireless Device
 
 
 -Original Message-
 From: Emmanuel Venisse
 To: continuum-users@maven.apache.org
 Sent: Tue Apr 03 17:18:46 2007
 Subject: Re: Specifying working directory
 
 what do you mean?
 
 Vaidya, Raghavendra (GE Infra) a écrit :
  

  Is there a way in continuum to specify a working directory at project
 level rather than globally??



 
 
 
 
 




Re: Combine/assemble multiple dependencies using maven

2007-04-03 Thread Andy Signer

Hi
I don't know what the best practise is for releasing snapshot
documentation. But i struggled over this issue as well and it was
quite time-consuming.

To be certain always check the Version tag in the top left corner of
the website.

Cheers
Andy

2007/4/3, cuberoot [EMAIL PROTECTED]:


Hi

Thanks for the reply. I have downloaded the 2.2-SNAPSHOT and am about to
start playing with it. I think its terrible that the maven-assembly site
displays the snaphsot docs.

Thanks again.



Andy Signer wrote:

 Hi

 I had problems with the assembly plugin as well. Then I realized that the
 documentation on the web is related to the latest snapshot.

 So, give the latest snapshot a try. Hopefully it will work for you.

 Cheers
 Andy

 2007/4/3, cuberoot [EMAIL PROTECTED]:


 Hi

 Is it possible to combine multiple dependencies (i.e. jars,wars) into a
 single archive using maven?

 I have investigated the maven-assembly plugin, but cannot seem to get it
 working.

 Situation:
 Multiple maven projects that create an artifact (i.e. war,jar).
 These artifacts can then be installed into a team repository.

 Requirment:
 Combine these multiple artifacts into a single archive. Perhaps with the
 artifacts unpacked.

 At first glance, the maven-assembly plugin seems perfect, but I cannot
 get
 dependencySets working.

 Any help would be appreciated.

 --
 View this message in context:
 
http://www.nabble.com/Combine-assemble-multiple-dependencies-using-maven-tf3510625s177.html#a9806151
 Sent from the Maven - Users mailing list archive at Nabble.com.


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





--
View this message in context: 
http://www.nabble.com/Combine-assemble-multiple-dependencies-using-maven-tf3510625s177.html#a9808322
Sent from the Maven - Users mailing list archive at Nabble.com.


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




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



Re: [m2][release-plugin] Release fails with aggregate Javadocs

2007-04-03 Thread Antonio Petrelli

2007/4/3, Emmanuel Venisse [EMAIL PROTECTED]:

can we have the full log?


It's a bit difficult right now, since the builds are now in the
staging repository and the build terminates successfully for this
reason.
I know that you cannot help without the log. So the next time we (in
Tiles) will make a release, we will reopen the question.

Thanks anyway
Antonio

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



RE: Dependency version ignored

2007-04-03 Thread Brian E. Fox
Can you give an example? 

-Original Message-
From: Ecker Severin [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 02, 2007 7:59 AM
To: Maven Users List
Subject: AW: Dependency version ignored

Hi,

I've just tried maven 2.0.6 with and without dependencyManagement, exclusions, 
no change.
Versions simply are ignored even though the dependency plugin resolves 
correctly.

Someone any more ideas?
Thanks in advance.

Cheers,
Severin



-Ursprüngliche Nachricht-
Von: Andrew Williams [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 27. März 2007 14:35
An: Maven Users List
Betreff: Re: AW: Dependency version ignored

use an exclusion on the xmlbeans dependency to stop junit from  
being used?
in 2.0.6 dependencyManagement should sort this.

Andy

On 27 Mar 2007, at 08:07, Ecker Severin wrote:

 I'm trying once again...

 

 I'm not sure whether I'm not using dependencies correctly or this is a
 bug, but the situation is as follows:

 I have a junit 4.1 dependency in my project (and also xmlbeans).
 Now xmlbeans happens to have a dependency on junit 3.8.

 The problem is that my project uses junit 4 annotations BUT maven  
 simply
 ignores my dependency and is totally content with junit3.8 on the
 classpath. Needless to say that the compilation fails.

 The funny thing though is if I run dependency:resolve immediately  
 prior
 to compiler:testCompile it works just fine. (I suppose because  
 xmlbeans
 is not used in the testCompile run).

 I'd appreciate any help on this.

 Thanks in advance,
 Severin


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



AW: Dependency version ignored

2007-04-03 Thread Ecker Severin
Hi,

I've stripped some dependencies and all the repositories to keep the pom as 
simple and short as possible:

?xml version=1.0 encoding=UTF-8?
project xmlns=http://maven.apache.org/POM/4.0.0; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;
 modelVersion4.0.0/modelVersion
 groupIdmygroup/groupId
 artifactIdmyart/artifactId
 packagingjar/packaging
 version1.0/version

 build
  plugins
   plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdxmlbeans-maven-plugin/artifactId
 executions
 execution
 goals
   goalxmlbeans/goal
 /goals
 phasegenerate-sources/phase
 /execution
 /executions
/plugin
   plugin
groupIdorg.apache.axis2/groupId
artifactIdaxis2-wsdl2code-maven-plugin/artifactId
versionPATCHED/version
executions
 execution
  goals
   goalwsdl2code/goal
  /goals
 /execution
/executions
   /plugin
   plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
version2.0/version
configuration
 source1.5/source
 target1.5/target
/configuration
   /plugin
  /plugins
 /build

 dependencyManagement
  dependencies
   dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version4.1/version
   /dependency
  /dependencies
 /dependencyManagement

 dependencies

  dependency
   groupIdorg.apache.axis2/groupId
   artifactIdaxis2-kernel/artifactId
   versionSNAPSHOT/version
   scopecompile/scope
   exclusions
exclusion
 groupIdjunit/groupId
 artifactIdjunit/artifactId
/exclusion
   /exclusion
  /dependency

  dependency
   groupIdjunit/groupId
   artifactIdjunit/artifactId
   version4.1/version
  /dependency
 /dependencies
/project


As I've already said, running it once results in junit 3.8.1 being used for 
test compilation which fails (I'm using junit4). Running a compile/test.. a 2nd 
time without a clean succeeds. Running dependency:resolve succeeds even after a 
clean run.

I've tried with and without exclusions, with and without dependencyManagement, 
with and without moving the dependencies into the plugin configurations... no 
change

Cheers,
Severin


-
Severin Ecker
Business Unit Information Management 
Smart Systems Division 

Austrian Research Centers GmbH - ARC 
2444 Seibersdorf 

T: +43(0) 50550 - 3122 
M: +43(0) 664 60780 3122
F: +43(0) 50550 - 2813

mailto:[EMAIL PROTECTED]
http://www.smart-systems.at

-Ursprüngliche Nachricht-
Von: Brian E. Fox [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 03. April 2007 14:41
An: Maven Users List
Betreff: RE: Dependency version ignored

Can you give an example? 

-Original Message-
From: Ecker Severin [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 02, 2007 7:59 AM
To: Maven Users List
Subject: AW: Dependency version ignored

Hi,

I've just tried maven 2.0.6 with and without dependencyManagement, exclusions, 
no change.
Versions simply are ignored even though the dependency plugin resolves 
correctly.

Someone any more ideas?
Thanks in advance.

Cheers,
Severin



-Ursprüngliche Nachricht-
Von: Andrew Williams [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 27. März 2007 14:35
An: Maven Users List
Betreff: Re: AW: Dependency version ignored

use an exclusion on the xmlbeans dependency to stop junit from  
being used?
in 2.0.6 dependencyManagement should sort this.

Andy

On 27 Mar 2007, at 08:07, Ecker Severin wrote:

 I'm trying once again...

 

 I'm not sure whether I'm not using dependencies correctly or this is a
 bug, but the situation is as follows:

 I have a junit 4.1 dependency in my project (and also xmlbeans).
 Now xmlbeans happens to have a dependency on junit 3.8.

 The problem is that my project uses junit 4 annotations BUT maven  
 simply
 ignores my dependency and is totally content with junit3.8 on the
 classpath. Needless to say that the compilation fails.

 The funny thing though is if I run dependency:resolve immediately  
 prior
 to compiler:testCompile it works just fine. (I suppose because  
 xmlbeans
 is not used in the testCompile run).

 I'd appreciate any help on this.

 Thanks in advance,
 Severin


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



maven-clover-plugin not instrumenting test classes

2007-04-03 Thread raju

Hi,

I am trying to instrument code using maven-clover-plugin.But it seems to
instrument code only under src/main and not under src/test even though i am
specifying filter using 
includesincludesrc/test/java/**/*IntegrationTest.java/include/includes.
I wanted to package the instrumented test classes as part of web-application
to check whether this could be helpful in achieving coverage for
webapplications using clover and weblogic.
Regards
Raju
-- 
View this message in context: 
http://www.nabble.com/maven-clover-plugin-not-instrumenting-test-classes-tf3512942s177.html#a9810621
Sent from the Maven - Users mailing list archive at Nabble.com.


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



regression using maven 2.0.6

2007-04-03 Thread nicolas de loof

I've upgraded to maven 2.0.6 and my build fails :

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Internal error in the plugin manager executing goal '
org.codehaus.mojo:xdoclet-maven-plugin:1.0-alpha-2:xdoclet': Unable to find
the mojo 'org.codehaus.mojo:xdoclet-maven-plugin:1.0-alpha-2:xdoclet' in the
plugin 'org.codehaus.mojo:xdoclet-maven-plugin'
org/apache/tools/ant/PropertyHelper


The attached POM demonstrates the issue.

What's wrong ?

Nico.
?xml version=1.0?

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
groupIdbug/groupId
artifactIddemo/artifactId
version1/version


build
plugins
plugin
artifactIdxdoclet-maven-plugin/artifactId
groupIdorg.codehaus.mojo/groupId
executions
execution
idxdoclet/id
phasegenerate-resources/phase
goals
goalxdoclet/goal
/goals
/execution
/executions
configuration
tasks
hibernatedoclet
destdir=${project.build.outputDirectory}
mergeDir=${basedir}/src/main/merge
fileset dir=${basedir}/src/main/java
includes=**/domain/*.java /
hibernate version=3.0 /
/hibernatedoclet
/tasks
/configuration
/plugin
/plugins
/build
/project
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: regression using maven 2.0.6

2007-04-03 Thread nicolas de loof

mvn -X gives more infos :

Caused by: java.lang.NoClassDefFoundError:
org/apache/tools/ant/PropertyHelper
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

What version of Ant is provided by maven 2.0.6 ? Or maybe in 2.0.6 plugin
classpath doens't include some default libs anymore ?

Adding ant as dependency to the plugin solves this issue :

   dependencies
   dependency
   groupIdant/groupId
   artifactIdant/artifactId
   version1.6.5/version
   /dependency
   /dependencies



2007/4/3, nicolas de loof [EMAIL PROTECTED]:


I've upgraded to maven 2.0.6 and my build fails :

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Internal error in the plugin manager executing goal '
org.codehaus.mojo:xdoclet-maven-plugin:1.0-alpha-2:xdoclet': Unable to
find the mojo 'org.codehaus.mojo:xdoclet-maven-plugin:1.0-alpha-2:xdoclet'
in the plugin ' org.codehaus.mojo:xdoclet-maven-plugin'
org/apache/tools/ant/PropertyHelper


The attached POM demonstrates the issue.

What's wrong ?

Nico.




Checking out a particular CVS tag

2007-04-03 Thread Gonzalo Vásquez Sáez

Which is the correct syntax for extracting a particular named tag version of
a project from a CVS repository?

Regards,

Gonzalo.-


Diff like pluigin

2007-04-03 Thread Gonzalo Vásquez Sáez

Is there kind of goal / plugin that will allow one two compare two different
source code versions of a particular project, and generate output with the
listing of the files changed? I need this to be run just before every build,
to keep track of changes between one deployment and another.

Regards,

Gonzalo.-


Re: Diff like pluigin

2007-04-03 Thread nicolas de loof

the changelog plugin (
http://maven.apache.org/plugins/maven-changelog-plugin/changelog-mojo.html)
can produce a log starting from a specified tag
the scm plugin (http://maven.apache.org/scm/plugins/changelog-mojo.html) can
also dump a changelog to console based on dates.

I never used them myself for such use case, but they can help you.

2007/4/3, Gonzalo Vásquez Sáez [EMAIL PROTECTED]:


Is there kind of goal / plugin that will allow one two compare two
different
source code versions of a particular project, and generate output with the
listing of the files changed? I need this to be run just before every
build,
to keep track of changes between one deployment and another.

Regards,

Gonzalo.-



Re: integrate JavaScript dev tools in maven build ?

2007-04-03 Thread nicolas de loof

I also discovered Dojo has a javascript compressor that may be embedded as
maven plugin
http://alex.dojotoolkit.org/shrinksafe/

An alternative is JSMin that has a Java version (
http://inconspicuous.org/projects/jsmin/JSMin.java)



2007/4/3, nicolas de loof [EMAIL PROTECTED]:


I just discovered jsDoc 2 (http://code.google.com/p/jsdoc-2/) that is
written in JavaScript and can (?) run inside Rhino engine, so could be
packaged as a maven report plugin.

2007/4/3, nicolas de loof [EMAIL PROTECTED]:

 Hello,

 My webapps now come with more and more JavaScript (web 2.0 !)
 I expect maven to bring me best-practices and great tools the same way
 it did for my java code.

 Is there any work-in-progress to integrate some JS-tools as maven
 plugins ?

 - jsdoc (or similar) to générate javadoc-like documentation
 - some js-compression tool
 - some js-merge tool

 I've looked at prototype build system based on Ruby Rake. The source
 code is splitted into individual, specialized, js files. This looks a good
 practice to make things clear and avoid conflicts during devs.

 YUI comes with a -debug and a -min version of all its components. This
 also looks interesting. I've no idea about the build process they use.

 Any suggestion ?
 Any link to java-based tools web could try to package as maven plugins ?


 Nico.





Is it possible to execute maven-jar-plugin in a different lifecycle phase than package phase?

2007-04-03 Thread Zhou, Wei
Hi,

 

I need to build the jar file before my test code can be run. But Maven 2
only packages the jar file after the test code is run successfully. I
have tried to play with my pom file to move the maven-jar-plugin into an
earlier phase. But I have no luck. Does anyone know how to build a jar
file before the test phase?

 

Thanks!

Wei

 



Re: Is it possible to execute maven-jar-plugin in a different lifecycle phase than package phase?

2007-04-03 Thread nicolas de loof

Why don't you create the jar in another module, and set it as dependency ?

2007/4/3, Zhou, Wei [EMAIL PROTECTED]:


Hi,



I need to build the jar file before my test code can be run. But Maven 2
only packages the jar file after the test code is run successfully. I
have tried to play with my pom file to move the maven-jar-plugin into an
earlier phase. But I have no luck. Does anyone know how to build a jar
file before the test phase?



Thanks!

Wei






Deployment on IBM WebSphere Application Server

2007-04-03 Thread Gonzalo Vásquez Sáez

Maybe this is a bit off-topic, but maybe not, is there any plugin that would
automatize application deployment on an application server? Particularly on
IBM Websphere Application Server 6.0 (WAS).

Regards,

Gonzalo.-


Re: Deployment on IBM WebSphere Application Server

2007-04-03 Thread Wayne Fay

I don't use Websphere, but Cargo is a tool which helps deploy
applications into various app servers, and it has an M2 plugin you
might find useful.

http://cargo.codehaus.org/

Wayne

On 4/3/07, Gonzalo Vásquez Sáez [EMAIL PROTECTED] wrote:

Maybe this is a bit off-topic, but maybe not, is there any plugin that would
automatize application deployment on an application server? Particularly on
IBM Websphere Application Server 6.0 (WAS).

Regards,

Gonzalo.-



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



Re: Deployment on IBM WebSphere Application Server

2007-04-03 Thread Jerome Lacoste

On 4/3/07, Wayne Fay [EMAIL PROTECTED] wrote:

I don't use Websphere, but Cargo is a tool which helps deploy
applications into various app servers, and it has an M2 plugin you
might find useful.

http://cargo.codehaus.org/


That's indeed one way of doing, but to my knowledge cargo doesn't yet
support websphere...

Cheers,

Jerome

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



Re: Deployment on IBM WebSphere Application Server

2007-04-03 Thread Antonio Petrelli

2007/4/3, Jerome Lacoste [EMAIL PROTECTED]:

On 4/3/07, Wayne Fay [EMAIL PROTECTED] wrote:
 I don't use Websphere, but Cargo is a tool which helps deploy
 applications into various app servers, and it has an M2 plugin you
 might find useful.

 http://cargo.codehaus.org/

That's indeed one way of doing, but to my knowledge cargo doesn't yet
support websphere...


There's an open issue for that:
http://jira.codehaus.org/browse/CARGO-147

But it seems that there is a contrib package, see the last comment
of that issue.

HTH
Antonio

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



Call Ant Tasks from Maven2

2007-04-03 Thread Nagesh, Srinivas \(IS Consultant\)
Hey,

I am using Maven2 to call an ant task but somehow I don't see the task
doing its job here. I am a newbie to these build tools.

artifactIdmaven-antrun-plugin/artifactId
executions
  execution
phaseinstall/phase
configuration
  tasks
 echoHello World/echo
 /tasks
/configuration
goals
  goalrun/goal
/goals
  /execution
/executions
  /plugin

I don't see Hello World being printed on the console when I run mvn
-e antrun:run. Secondly this plug-in doesn't get executed as part of
the default goal install that I have specified in the POM.

Any thoughts?

Thanks

Sri


programmatically remove exclusion for certain builds?

2007-04-03 Thread ertnutler

i'm trying to enforce a separation of concerns during my compile phase which
needs to be removed during the package phase.  for example, if a developer
introduces a dependency on the persistence layer from the web layer, the
build should not compile.  however, since we're currently deploying to a
co-located environment, the war should be packaged with the persistence jar. 
currently, i have exclusions configured to exclude persistence from web. 
this works as i want for breaking the build when a persistence dependency is
introduced into web, but it also excludes the persistence jar from the war,
which results in the deployment breaking at runtime.

is there a better way to do this?  i want to enforce the layer separation
during the compile phase while removing it during the package phase.  i was
thinking that the best way (unless there's a configuration option i don't
know about) is to write a plugin that somehow removes the exclusion during
the package phase.  i'm hoping:

a. for some guidance on whether there's an easier way, or, if that doesn't
exist;
b. validation that the approach from within a plugin described above is the
best approach.

has anybody solved a problem like this?  am i missing something obvious?
-- 
View this message in context: 
http://www.nabble.com/programmatically-remove-exclusion-for-certain-builds--tf3514594s177.html#a9813474
Sent from the Maven - Users mailing list archive at Nabble.com.


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



[m2] Multiple ear generation

2007-04-03 Thread Trevor Torrez

I need a way to load an arbitrary number of the same application EAR
to a single websphere instance.  The reason behind this is that during
the test phases of software development several testers need to run
the application cuncurrently without stepping on each other's toes.
However, if an attempt is made to deploy the same application to
websphere more than once, websphere rejects the duplicate application
(probably with good reason ;) ).

I'm looking for a best-practice kinda guideline to solve this problem.
Ideally I would like to be able to run a single command to generate
all the necessary EARs with the application.xml file modified as
necessary to prevent websphere from rejecting the duplicate
applications.  A few of the ideas I have are:
1. Creating a separate profile for each test environment
   - The problem with this is that if an additional tester gets added
to the team a wait cycle is introduced as the pom needs to be updated
and the entire project pushed through the build cycle, not to mention
the duplication and needless proliferations of nearly identical files
and profiles information.
2. Creating a single separate profile for the test build which uses a
supplied parameter/property to perform the necessary replacements in
the application.xml file
   - The problem I see with this is that the test application.xml
file may diverge from the production file, and profile properties do
not override default properties, and command line properties are
ignored if the property is specified in the pom / profile.
3. Create a script (probably ant) to generate the production EAR, and
for each tester profile, unpack the ear, modify whatever, and repack
as a different name.
4. Create a maven profile to do the above
   - Is this even possible as a single maven profile?  Is it possible
to run one maven command and perform the same build but using an
arbitrary number of conflicting profiles to generate different
artifacts?

Number 4 would probably be the most ideal, but I'll settle for a
standard way of doing number 2 or 3.

thanks;

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



Include Common JSPs in multiple wars

2007-04-03 Thread Doug Tanner
How do you include commons JSPs in multiple wars?  We have a common
module that produces a jar instead of a war, but I need to include all
the JSPs in this module in all my other webapps.  I tried using the
resource tag, but that places the files in WEB-INF/classes.  Is there
another tag that I am missing from the documentation?

 

Thanks,

 

Doug Tanner

Configuration Management Engineer

Benefitfocus.com, Inc.




BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is intended 
only for the individual or entity to which it is addressed and may contain 
information that is confidential and protected by law. Unauthorized review, 
use, disclosure, or dissemination of this communication or its contents in any 
way is prohibited and may be unlawful. If you are not the intended recipient or 
a person responsible for delivering this message to an intended recipient, 
please notify the original sender immediately by e-mail or telephone, return 
the original message to the original sender or to [EMAIL PROTECTED], and 
destroy all copies or derivations of the original message. Thank you.  
(BFeComNote Rev. 08/01/2005)
***


Re: build failures, warnings and continuum

2007-04-03 Thread Erik Ruisma

Thanks for your proposal. That's what we did.
However this seems to create some new problems.
So what we have are two build definitions for one project: one launching the
tests, one creating and deploying the site.

We have scheduled both builds to run at the same moment. BUT only one
actually runs.
Why ?
I can find the following in our logs:
INFO   | jvm 1| 2007/04/02 20:00:00 | 2007-04-02 20:00:00,156
[defaultScheduler_Worker-2] INFO  Continuum  - Enqueuing
'MyProject' (Build definition id=116).
INFO   | jvm 1| 2007/04/02 20:00:00 | 2007-04-02 20:00:00,156
[defaultScheduler_Worker-2] INFO  Continuum  - Enqueuing
'MyProject' (Build definition id=118).

Only the last one is executed. Is it possible that this is a bug in
continuum ? ie that MyProject is somehow used as the key and only the last
element from the queue remains?

What if we would use 2 different build times (to make things more complex, I
don't prefer it): is it possible to force the last scheduled build
definition to run even if their are no modifications?? This seems to be also
an issue...?


Any feedback welcome.



On 3/15/07, David Roussel [EMAIL PROTECTED] wrote:


Define two builds, one just to run the tests and report them.  The
second build to just do the site.

On Wed, 14 Mar 2007 11:47:07 +0100, Erik Ruisma
[EMAIL PROTECTED] said:
 Hello all,

 I'm not quite sure if this is a continuum or a Maven question, but I
 thought
 to post first on the Continuum mailing list.

 In our company-wide settings I want that project sites are generated,
and
 artifacts get deployed to our internal repository even when there are
 some
 unit tests that fail. We also want that a mail is send when there are
 test
 failures, with some kind of indication that their was a problem during
 the
 build.

 How would you set this up ?





Re: Checking out a particular CVS tag

2007-04-03 Thread Roland Asmann
cvs -d ${CONNECTION} checkout -r ${TAG_NAME} ${PROJECT}

On Tuesday 03 April 2007 15:36, Gonzalo Vásquez Sáez wrote:
 Which is the correct syntax for extracting a particular named tag version
 of a project from a CVS repository?

 Regards,

 Gonzalo.-

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [EMAIL PROTECTED]
Web: www.cfc.at

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



Re: Diff like pluigin

2007-04-03 Thread Roland Asmann
Or for REAL diff-like output, check the scm-plugin, but use the goal 'diff' 
(http://maven.apache.org/scm/plugins/diff-mojo.html).


On Tuesday 03 April 2007 15:45, nicolas de loof wrote:
 the changelog plugin (
 http://maven.apache.org/plugins/maven-changelog-plugin/changelog-mojo.html)
 can produce a log starting from a specified tag
 the scm plugin (http://maven.apache.org/scm/plugins/changelog-mojo.html)
 can also dump a changelog to console based on dates.

 I never used them myself for such use case, but they can help you.

 2007/4/3, Gonzalo Vásquez Sáez [EMAIL PROTECTED]:
  Is there kind of goal / plugin that will allow one two compare two
  different
  source code versions of a particular project, and generate output with
  the listing of the files changed? I need this to be run just before every
  build,
  to keep track of changes between one deployment and another.
 
  Regards,
 
  Gonzalo.-

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [EMAIL PROTECTED]
Web: www.cfc.at

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



Re: Deployment on IBM WebSphere Application Server

2007-04-03 Thread Gonzalo Vásquez Sáez

According to the hints provided on your replies, I downloaded the WebSphere
cargo-contrib from:

https://svn.codehaus.org/cargo-contrib/websphere/trunk

In it's pom.xml file it included a parent reference to:

   groupIdorg.codehaus.cargo/groupId
   artifactIdcargo-core-container-websphere/artifactId
   version0.9-SNAPSHOT/version

But I had to modify the version number to plain 0.9, as there is no
SNAPSHOT version on the central repository.

As of now, the plugin is not compiling, reporting the following error:

org.codehaus.cargo.container.websphere.WebsphereInstalledLocalContainer is
not abstract and does not override abstract method getWasMQHome() in
org.codehaus.cargo.container.websphere.internal.WebsphereContainer


Any ideas? Does anyone know a repository where I can get the
0.9-SNAPSHOTversion, just to check if this is working on it?


On 03/04/07, Antonio Petrelli [EMAIL PROTECTED] wrote:


2007/4/3, Jerome Lacoste [EMAIL PROTECTED]:
 On 4/3/07, Wayne Fay [EMAIL PROTECTED] wrote:
  I don't use Websphere, but Cargo is a tool which helps deploy
  applications into various app servers, and it has an M2 plugin you
  might find useful.
 
  http://cargo.codehaus.org/

 That's indeed one way of doing, but to my knowledge cargo doesn't yet
 support websphere...

There's an open issue for that:
http://jira.codehaus.org/browse/CARGO-147

But it seems that there is a contrib package, see the last comment
of that issue.

HTH
Antonio

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




Re: Deployment on IBM WebSphere Application Server

2007-04-03 Thread Antonio Petrelli

2007/4/3, Gonzalo Vásquez Sáez [EMAIL PROTECTED]:

Any ideas? Does anyone know a repository where I can get the
0.9-SNAPSHOTversion, just to check if this is working on it?


Try asking the Cargo team ;-)

Antonio

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



Re: Call Ant Tasks from Maven2

2007-04-03 Thread Raphaël Piéroni

Hi,

Here what i have (And it works fine using maven 2.0.5)

Raphaël


project
...
   build
   plugins
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-antrun-plugin/artifactId
   dependencies
   dependency
   groupIdant/groupId
   artifactIdant-antlr/artifactId
   version1.6.5/version
   /dependency
   /dependencies

   executions
   execution
   idarchetype-test/id
   phaseprocess-test-resources/phase
   configuration
   tasks
   mkdir dir=${basedir}/somedir//mkdir

   jar
destfile=${basedir}/somedir/some.jar
basedir=${basedir}/src/test/somedir//jar
   /tasks
   /configuration
   goals
   goalrun/goal
   /goals
   /execution
   /executions
   /plugin
   /plugins
   /build
/project

2007/4/3, Nagesh, Srinivas (IS Consultant) [EMAIL PROTECTED]:

Hey,

I am using Maven2 to call an ant task but somehow I don't see the task
doing its job here. I am a newbie to these build tools.

artifactIdmaven-antrun-plugin/artifactId
executions
  execution
phaseinstall/phase
configuration
  tasks
 echoHello World/echo
 /tasks
/configuration
goals
  goalrun/goal
/goals
  /execution
/executions
  /plugin

I don't see Hello World being printed on the console when I run mvn
-e antrun:run. Secondly this plug-in doesn't get executed as part of
the default goal install that I have specified in the POM.

Any thoughts?

Thanks

Sri



Re: Deployment on IBM WebSphere Application Server

2007-04-03 Thread Gonzalo Vásquez Sáez

I've just implemented the abstract methods the compiler was complaining
about, returning my proper WAS installation directory for the getWasHome()
method and just null for getWasMQHome() method, but I don't know were do I
configure the properties needed, particularly the home, one.

On 03/04/07, Antonio Petrelli [EMAIL PROTECTED] wrote:


2007/4/3, Gonzalo Vásquez Sáez [EMAIL PROTECTED]:
 Any ideas? Does anyone know a repository where I can get the
 0.9-SNAPSHOTversion, just to check if this is working on it?

Try asking the Cargo team ;-)

Antonio

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




Re: [m2][release-plugin] Release fails with aggregate Javadocs

2007-04-03 Thread Antonio Petrelli

2007/4/3, Antonio Petrelli [EMAIL PROTECTED]:

The problem is that the tiles-parent pom contains the configuration
for the Javadoc plugin that aggregates the Javadoc of its modules.


It seems that is a problem with the Javadoc plugin:
http://jira.codehaus.org/browse/MJAVADOC-116
I'll add a comment to explain that this is a problem also for the
release plugin.

Thanks
Antonio

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



Re: Deployment on IBM WebSphere Application Server

2007-04-03 Thread Antonio Petrelli

2007/4/3, Gonzalo Vásquez Sáez [EMAIL PROTECTED]:

I've just implemented the abstract methods the compiler was complaining
about, returning my proper WAS installation directory for the getWasHome()
method and just null for getWasMQHome() method, but I don't know were do I
configure the properties needed, particularly the home, one.


Again, Gonzalo, this is not the place for discussing your problems
further. I suggest you to subscribe to the cargo mailing list:
http://cargo.codehaus.org/Mailing+Lists

Antonio

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



Re: maven-antrun-plugin: Need phase indenedence and/or conditional processing

2007-04-03 Thread vetalok

Wayne Fay, thanks a million!
I had the problem like this and could not find the solution - I just want to
turn off some plugin and this is was very difficult to find the solution... 
Your advice is very useful!
It saved me a lot of time. 
Thanks!
 

Napoleon Esmundo Ramirez-2 wrote:
 
 Hello,
 
 As far as NOT binding a goal to a phase is concerned, all you have to do
 is
 configure the plugin and don't declare any execution.  In your case,
 instead
 of placing configuration inside execution, place it directly under
 plugin, and remove executions then you can explicitly invoke it using
 `mvn antrun:run'.  You can verify the plugin configuration syntax at the
 pom
 technical reference at
 http://maven.apache.org/ref/current/maven-model/maven.html#class_plugin .
 
 As for the conditional execution, you may have been referring to profiles.
 Specific parameters/properties passed through the command line may
 activate
 a profile.  More details at
 http://maven.apache.org/guides/introduction/introduction-to-profiles.html
 .
 
 Cheers!
 Nap
 
 On 3/30/07, Farrukh S. Najmi [EMAIL PROTECTED] wrote:


 I am using maven-antrun-plugin in my pom to run a java program.
 I do not need it to be tied to any phase.
 All I need is to be able to run it on demand by specifying an
 appropriate goal and some command line options using -D.

 So far I am able make it work but only if it is tied to a phase. See my
 pom at:

 http://ebxmlrr.sourceforge.net/private/pom.xml

 Ideally I wish it not be tied to a phase and instead tied to a task name
 that I can invoke from the command line.
 If it must be tied to a phase then I would like to have conditional
 processing in the ant task
 so that if certain required properties are not set in command line I can
 simply skip the execution of
 the core steps in the ant task silently.

 I feel I am close. Any idea how to get the phase independent execution
 and/or conditional execution?

 Thanks in advance.

 --
 Regards,
 Farrukh

 Web: http://www.wellfleetsoftware.com



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


 
 

-- 
View this message in context: 
http://www.nabble.com/maven-antrun-plugin%3A-Need-phase-indenedence-and-or-conditional-processing-tf3492506s177.html#a9816798
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Configure buildnumber and Subversion/Subclipse

2007-04-03 Thread Julian Wood

Hi Pankaj,

I don't think there is a dependency problem - maven would have  
reported any such error. That part all looks fine to me. It's still  
just not finding your scm, as you surmise. Maybe someone who is using  
an scm configured like yours could pipe up?


Did you try doing a mvn release:prepare (without the buildnumber)? Do  
you get the same error?


J

On 2-Apr-07, at 4:02 PM, Pankaj Tandon wrote:



Julian,
Thanks a lot for the suggestions.
I tried all possible url formats but no dice..
I suspect that maven is not able to find my scm. That is where I'm  
really
puzzled..Shouldn't the pom of the buildnumber plugin have all  
dependencies

in it and if so, Maven should get them for me...no?

Here is what I am getting when I run mvn install


D:\projects\TestProjectmvn install
[INFO] Scanning for projects...
[INFO]
-- 
---

---
[INFO] Building TestProject
[INFO]task-segment: [install]
[INFO]
-- 
---

---
[INFO] artifact org.apache.maven.plugins:maven-resources-plugin:  
checking

for up
dates from tlc
[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin:  
checking for

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

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

updates
from tlc
[INFO] artifact org.apache.maven.plugins:maven-install-plugin:  
checking for

upda
tes from tlc
[INFO] [buildnumber:create {execution: default}]
[INFO]
-- 
--

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

[INFO] Cannot get the revision information from the scm repository :
Can't load the scm provider.

The scm url cannot be null.
[INFO]
-- 
--

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

[INFO] Total time: 9 seconds
[INFO] Finished at: Mon Apr 02 17:39:02 EDT 2007
[INFO] Final Memory: 4M/9M
[INFO]
-- 
--


Here is what my POM looks like:

project xmlns=http://maven.apache.org/POM/4.0.0;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
  http://maven.apache.org/xsd/maven-4.0.0.xsd;
  modelVersion4.0.0/modelVersion
  groupIdcom.TestProject/groupId
  artifactIdTestProject/artifactId
  packagingjar/packaging
  version1.0/version
  nameTestProject/name
  urlhttp://some.com/url
  dependencies
dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
  scopetest/scope
/dependency
dependency
  groupIdjfreechart/groupId
  artifactIdjfreechart/artifactId
  version0.9.16/version
/dependency
dependency
  groupIdjfree/groupId
  artifactIdjcommon/artifactId
  version0.9.6/version
/dependency
  /dependencies

pluginRepositories
pluginRepository
idtlc/id
nameTLC Repository/name
urlhttp://commons.ucalgary.ca/pub/m2/url
/pluginRepository
/pluginRepositories

  build

plugins
plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdmaven-buildnumber-plugin/artifactId
  version0.9.4/version
  executions
execution
  phasevalidate/phase
  goals
goalcreate/goal
  /goals
/execution
  /executions
  configuration
doCheckfalse/doCheck
doUpdatefalse/doUpdate
 scm
  connectionscm:svn:file:///D:/repos1/connection
  developerConnectionscm:svn:file:///D:/repos1/developerConnection
  urlscm:svn:file:///D:/repos1/url
 /scm
  /configuration

/plugin
/plugins

finalName${project.artifactId}-${project.version}-r${buildNumber} 
/finalName

resources
  resource
directorysrc/main/resources/directory
filteringtrue/filtering
  /resource
/resources
  /build
/project

I do have svn installed and it seems to be working just fine with  
Subclipse.

The command svn list -R -r12 returns valid values from repos1

Any other suggestions?
Thanks in advance,

Pankaj




Julian Wood wrote:


It probably has something to do with how you've set up your
subversion repository on a network drive. I've never tried it like
that, so I can't say whether or not your scm config is correct. My
scm config looks like this and works fine.

 scm
 connectionscm:svn:http://apollo.ucalgary.ca:8800/
timesheets/trunk/connection
 developerConnectionscm:svn:http://apollo.ucalgary.ca:8800/
timesheets/trunk/developerConnection
 urlhttp://apollo.ucalgary.ca/websvntimesheets/listing.php?

using properties in settings.xml

2007-04-03 Thread Jan Delannoy

Hi all,

I'm having some problems using properties in the settings.xml.  I'm
trying to use properties in the username and password elements of a
server declaration, and then getting the values for these properties
from a profile in my local settings.xml.  So this would be (part of)
my Maven settings.xml:

server
 idsomeserver/id
 username${someserver.username}/username
 password${someserver.password}/password
/server
...
activeProfiles
 activeProfileproperty-overrides/activeProfile
/activeProfiles

and in my local settings.xml I have:

settings
 profiles
   profile
 idproperty-overrides/id
 properties
   someserver.usernamemyuser/someserver.username
   someserver.passwordmypassword/someserver.password
 /properties
   /profile
 /profiles
/settings

But when I run mvn help:effective-settings I get:

settings
 localRepositoryC:\Documents and
Settings\jan\.m2\repository/localRepository
 servers
   server
 username${someserver.username}/username
 password${someserver.password}/password
 idsomeserver/id
   /server
 /servers
 profiles
   profile
 properties
   someserver.usernamemyuser/someserver.username
   someserver.passwordmypassword/someserver.password
 /properties
 idproperty-overrides/id
   /profile
 /profiles
 activeProfiles
   activeProfileproperty-overrides/activeProfile
 /activeProfiles
/settings

Why is Maven not picking up my local settings?  By the way, I took
this kind of setup from Mergere's 'Better Builds with Maven' book...

Any help would be greatly appreciated!

Many thanks,
Jan

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



Dependency problem

2007-04-03 Thread raghurajan . x . gurunathan
Hi All

I use maven-2.0.4 and having this, problem i have defined my pom.xml as

dependency
groupIdorg.hibernate/groupId
artifactIdhibernate/artifactId
version3.0.5/version
/dependency 

but when i run the mvn deploy its also including hibernate-3.0, eventhough 
its getting the proper version 3.0.5, 

I know i saw some threads regarding this some time, but i forgot, what it 
is, can anyone help me here, ?? 


Thanks,
Raghu | 


-
This communication is for informational purposes only. It is not
intended as an offer or solicitation for the purchase or sale of
any financial instrument or as an official confirmation of any
transaction. All market prices, data and other information are not
warranted as to completeness or accuracy and are subject to change
without notice. Any comments or statements made herein do not
necessarily reflect those of JPMorgan Chase  Co., its subsidiaries
and affiliates.

This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase 
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.

Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to UK legal entities.


Re: Include Common JSPs in multiple wars

2007-04-03 Thread Tomasz Pik

On 4/3/07, Doug Tanner [EMAIL PROTECTED] wrote:

How do you include commons JSPs in multiple wars?  We have a common
module that produces a jar instead of a war, but I need to include all
the JSPs in this module in all my other webapps.  I tried using the
resource tag, but that places the files in WEB-INF/classes.  Is there
another tag that I am missing from the documentation?


There's no way to 'pass' those jsp to your 'war' projects from within
'jar' project (at least I do not know such a way).
But you may change packaging of your 'shared' project from 'jar'
to 'war'. Then this 'shared' war will contain all required jsp files
and compiled classes, under WEB-INF/classes.
Then, for your 'war' projects maven will include all of this (both
classes and jsp files) in created war and that will be, what are
you looking for,

HTH,
Tomek

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



Surefire TestNG troubles

2007-04-03 Thread Wayne Fay

Wondering who is using TestNG successfully on the list??

I've recently been working on a new EJB3/JPA app by using Hibernate's
CaveatEmptor JPA example as the base. Everything works great in Ant
but I'm trying to make it work in Maven2...

Here's the failure I'm getting right this minute:
10:54:44,575 DEBUG org.jboss.kernel.KernelFactory:86 - Starting JBoss
Kernel construction...
10:54:44,825 DEBUG org.jboss.kernel.KernelFactory:112 - Completed
JBoss Kernel construction.  Duration: 250 milliseconds

org.apache.maven.surefire.booter.SurefireExecutionException: null;
nested exception is java.lang.NullPointerException: null
java.lang.NullPointerException
   at 
org.apache.maven.surefire.report.AbstractTextReporter.testFailed(AbstractTextReporter.java:111)
   at 
org.apache.maven.surefire.report.ReporterManager.testFailed(ReporterManager.java:335)
   at 
org.apache.maven.surefire.report.ReporterManager.testFailed(ReporterManager.java:317)
   at 
org.apache.maven.surefire.testng.TestNGReporter.onTestFailure(TestNGReporter.java:100)
   at org.testng.internal.Invoker.runTestListeners(Invoker.java:1164)
   at org.testng.internal.Invoker.runTestListeners(Invoker.java:1149)
   at 
org.testng.internal.Invoker.handleConfigurationFailure(Invoker.java:191)
   at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:170)
   at org.testng.SuiteRunner.privateRun(SuiteRunner.java:236)
   at org.testng.SuiteRunner.run(SuiteRunner.java:145)
   at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:901)
   at org.testng.TestNG.runSuitesLocally(TestNG.java:863)

Arguably, I suppose the problem could be related to the TestNG v5.4
used by Ant vs the TestNG v5.1 used by Maven. But I'm just getting
into this and thought I'd ask before digging into it more myself.

Wayne

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



Re: Using maven and testng

2007-04-03 Thread Wayne Fay

I've run into exactly the same problem... Did you ever get any
resolution to this, Lee?

Wayne

On 11/22/06, Lee Bieber [EMAIL PROTECTED] wrote:

I'm trying to get testng working with maven. I've configured my pom.xml per the 
documentation
..
  dependency
groupIdorg.testng/groupId
artifactIdtestng/artifactId
version5.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
configuration
suiteXmlFiles

suiteXmlFilesrc/test/java/com/trovix/dts/web/controller/web-controller-testng-functional.xml/suiteXmlFile
/suiteXmlFiles
/configuration
/plugin
/plugins


but when I run mvn test  I get the following exception:

---
 T E S T S
---
org.apache.maven.surefire.booter.SurefireExecutionException: null; nested 
exception is java.lang.NullPointerException: null
java.lang.NullPointerException
at 
org.apache.maven.surefire.report.AbstractTextReporter.testFailed(AbstractTextReporter.java:106)
at 
org.apache.maven.surefire.report.ReporterManager.testFailed(ReporterManager.java:299)
at 
org.apache.maven.surefire.report.ReporterManager.testFailed(ReporterManager.java:281)
at 
org.apache.maven.surefire.testng.TestNGReporter.onTestFailure(TestNGReporter.java:97)
at org.testng.internal.Invoker.runTestListeners(Invoker.java:1164)
at org.testng.internal.Invoker.runTestListeners(Invoker.java:1149)
at 
org.testng.internal.Invoker.handleConfigurationFailure(Invoker.java:191)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:170)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:223)
at org.testng.SuiteRunner.run(SuiteRunner.java:145)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:901)
at org.testng.TestNG.runSuitesLocally(TestNG.java:863)
at 
org.apache.maven.surefire.testng.TestNGExecutor.executeTestNG(TestNGExecutor.java:64)
at 
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
[INFO] 
[ERROR] BUILD FAILURE

Any ideas on what I am doing wrong??

Thanks




Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com


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



Re: Surefire TestNG troubles

2007-04-03 Thread Wayne Fay

I got a little further (still not running perfectly) by adding the
following to my pom:

 pluginRepositories
   pluginRepository
 idhowardlewisship/id
 urlhttp://howardlewisship.com/repository/url
   /pluginRepository
   pluginRepository
 idmaven-snapshots/id
 urlhttp://people.apache.org/maven-snapshot-repository/url
   /pluginRepository
 /pluginRepositories

 build
   plugins
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-surefire-plugin/artifactId
   version2.8-SNAPSHOT/version
   

Both of my tests failed (run fine with Ant) but I'm getting close...

Wayne

On 4/3/07, Wayne Fay [EMAIL PROTECTED] wrote:

Wondering who is using TestNG successfully on the list??

I've recently been working on a new EJB3/JPA app by using Hibernate's
CaveatEmptor JPA example as the base. Everything works great in Ant
but I'm trying to make it work in Maven2...

Here's the failure I'm getting right this minute:
10:54:44,575 DEBUG org.jboss.kernel.KernelFactory:86 - Starting JBoss
Kernel construction...
10:54:44,825 DEBUG org.jboss.kernel.KernelFactory:112 - Completed
JBoss Kernel construction.  Duration: 250 milliseconds

org.apache.maven.surefire.booter.SurefireExecutionException: null;
nested exception is java.lang.NullPointerException: null
java.lang.NullPointerException
at 
org.apache.maven.surefire.report.AbstractTextReporter.testFailed(AbstractTextReporter.java:111)
at 
org.apache.maven.surefire.report.ReporterManager.testFailed(ReporterManager.java:335)
at 
org.apache.maven.surefire.report.ReporterManager.testFailed(ReporterManager.java:317)
at 
org.apache.maven.surefire.testng.TestNGReporter.onTestFailure(TestNGReporter.java:100)
at org.testng.internal.Invoker.runTestListeners(Invoker.java:1164)
at org.testng.internal.Invoker.runTestListeners(Invoker.java:1149)
at 
org.testng.internal.Invoker.handleConfigurationFailure(Invoker.java:191)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:170)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:236)
at org.testng.SuiteRunner.run(SuiteRunner.java:145)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:901)
at org.testng.TestNG.runSuitesLocally(TestNG.java:863)

Arguably, I suppose the problem could be related to the TestNG v5.4
used by Ant vs the TestNG v5.1 used by Maven. But I'm just getting
into this and thought I'd ask before digging into it more myself.

Wayne



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



RE: Include Common JSPs in multiple wars

2007-04-03 Thread Doug Tanner
Directory Structure:

Webapps
  -common
-src
  -main
-webapp
  -[Bunch of JSPs]
-pom.xml
  -module1
-src
  -main
-java
-webapp
  -[Bunch of JSPs]
-pom.xml
  -module2
-src
  -main
-java
-webapp
  -[Bunch of JSPs]
-pom.xml

How do I include the JSPs from the common module in module1.war and
module2.war?

Doug Tanner
 

 -Original Message-
 From: Tomasz Pik [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 03, 2007 12:24 PM
 To: Maven Users List
 Subject: Re: Include Common JSPs in multiple wars
 
 On 4/3/07, Doug Tanner [EMAIL PROTECTED] wrote:
  How do you include commons JSPs in multiple wars?  We have a common
  module that produces a jar instead of a war, but I need to include
all
  the JSPs in this module in all my other webapps.  I tried using the
  resource tag, but that places the files in WEB-INF/classes.  Is
there
  another tag that I am missing from the documentation?
 
 There's no way to 'pass' those jsp to your 'war' projects from within
 'jar' project (at least I do not know such a way).
 But you may change packaging of your 'shared' project from 'jar'
 to 'war'. Then this 'shared' war will contain all required jsp files
 and compiled classes, under WEB-INF/classes.
 Then, for your 'war' projects maven will include all of this (both
 classes and jsp files) in created war and that will be, what are
 you looking for,
 
 HTH,
 Tomek
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is intended 
only for the individual or entity to which it is addressed and may contain 
information that is confidential and protected by law. Unauthorized review, 
use, disclosure, or dissemination of this communication or its contents in any 
way is prohibited and may be unlawful. If you are not the intended recipient or 
a person responsible for delivering this message to an intended recipient, 
please notify the original sender immediately by e-mail or telephone, return 
the original message to the original sender or to [EMAIL PROTECTED], and 
destroy all copies or derivations of the original message. Thank you.  
(BFeComNote Rev. 08/01/2005)
***

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



RE: Include Common JSPs in multiple wars

2007-04-03 Thread Doug Tanner
Problem solved.

Solution:

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
version2.0/version
configuration
  webResources
resource
  !-- this is relative to the pom.xml directory --
  directory../common/src/main/webapp/directory
/resource
  /webResources
/configuration
  /plugin

Doug Tanner
 

 -Original Message-
 From: Doug Tanner [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 03, 2007 1:00 PM
 To: Maven Users List
 Subject: RE: Include Common JSPs in multiple wars
 
 Directory Structure:
 
 Webapps
   -common
 -src
   -main
 -webapp
   -[Bunch of JSPs]
 -pom.xml
   -module1
 -src
   -main
 -java
 -webapp
   -[Bunch of JSPs]
 -pom.xml
   -module2
 -src
   -main
 -java
 -webapp
   -[Bunch of JSPs]
 -pom.xml
 
 How do I include the JSPs from the common module in module1.war and
 module2.war?
 
 Doug Tanner
 
 
  -Original Message-
  From: Tomasz Pik [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, April 03, 2007 12:24 PM
  To: Maven Users List
  Subject: Re: Include Common JSPs in multiple wars
 
  On 4/3/07, Doug Tanner [EMAIL PROTECTED] wrote:
   How do you include commons JSPs in multiple wars?  We have a
common
   module that produces a jar instead of a war, but I need to include
 all
   the JSPs in this module in all my other webapps.  I tried using
the
   resource tag, but that places the files in WEB-INF/classes.  Is
 there
   another tag that I am missing from the documentation?
 
  There's no way to 'pass' those jsp to your 'war' projects from
within
  'jar' project (at least I do not know such a way).
  But you may change packaging of your 'shared' project from 'jar'
  to 'war'. Then this 'shared' war will contain all required jsp files
  and compiled classes, under WEB-INF/classes.
  Then, for your 'war' projects maven will include all of this (both
  classes and jsp files) in created war and that will be, what are
  you looking for,
 
  HTH,
  Tomek
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


**
 **
 BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is
 intended only for the individual or entity to which it is addressed
and
 may contain information that is confidential and protected by law.
 Unauthorized review, use, disclosure, or dissemination of this
 communication or its contents in any way is prohibited and may be
 unlawful. If you are not the intended recipient or a person
responsible
 for delivering this message to an intended recipient, please notify
the
 original sender immediately by e-mail or telephone, return the
original
 message to the original sender or to [EMAIL PROTECTED],
and
 destroy all copies or derivations of the original message. Thank you.
 (BFeComNote Rev. 08/01/2005)


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




BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is intended 
only for the individual or entity to which it is addressed and may contain 
information that is confidential and protected by law. Unauthorized review, 
use, disclosure, or dissemination of this communication or its contents in any 
way is prohibited and may be unlawful. If you are not the intended recipient or 
a person responsible for delivering this message to an intended recipient, 
please notify the original sender immediately by e-mail or telephone, return 
the original message to the original sender or to [EMAIL PROTECTED], and 
destroy all copies or derivations of the original message. Thank you.  
(BFeComNote Rev. 08/01/2005)
***

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



Configuring Log4J Differently within Maven for JUnit Testing and Production

2007-04-03 Thread Mark Hansen
I use Log4J and build my applications with Maven2.  I have a log4j.xml 
config file in the src/main/resources directory so that Maven2 builds it 
into the JAR with my application.


However, I have a different log4j.xml that I want to use with the JUnit 
tests that run as part of my Maven build process.  I'd like to put that 
log4j.xml (testing) in the src/test/resources directory and have it 
overide the production version in src/main/resources.  However, Maven 
doesn't seem to work that way.  Instead, the production version of 
log4j.xml seems to come first on the testing classpath and therefore 
gets loaded instead of the testing version of log4j.xml.


I'm sure others must have faced this issue.  Are there any recommended 
solutions to the problem?


Thanks,

Mark

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



Re: Include Common JSPs in multiple wars

2007-04-03 Thread Mark Hobson

A war overlay would be the cleanest solution:

http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html

Mark

On 03/04/07, Doug Tanner [EMAIL PROTECTED] wrote:

Problem solved.

Solution:

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
version2.0/version
configuration
  webResources
resource
  !-- this is relative to the pom.xml directory --
  directory../common/src/main/webapp/directory
/resource
  /webResources
/configuration
  /plugin

Doug Tanner


 -Original Message-
 From: Doug Tanner [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 03, 2007 1:00 PM
 To: Maven Users List
 Subject: RE: Include Common JSPs in multiple wars

 Directory Structure:

 Webapps
   -common
 -src
   -main
 -webapp
   -[Bunch of JSPs]
 -pom.xml
   -module1
 -src
   -main
 -java
 -webapp
   -[Bunch of JSPs]
 -pom.xml
   -module2
 -src
   -main
 -java
 -webapp
   -[Bunch of JSPs]
 -pom.xml

 How do I include the JSPs from the common module in module1.war and
 module2.war?

 Doug Tanner


  -Original Message-
  From: Tomasz Pik [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, April 03, 2007 12:24 PM
  To: Maven Users List
  Subject: Re: Include Common JSPs in multiple wars
 
  On 4/3/07, Doug Tanner [EMAIL PROTECTED] wrote:
   How do you include commons JSPs in multiple wars?  We have a
common
   module that produces a jar instead of a war, but I need to include
 all
   the JSPs in this module in all my other webapps.  I tried using
the
   resource tag, but that places the files in WEB-INF/classes.  Is
 there
   another tag that I am missing from the documentation?
 
  There's no way to 'pass' those jsp to your 'war' projects from
within
  'jar' project (at least I do not know such a way).
  But you may change packaging of your 'shared' project from 'jar'
  to 'war'. Then this 'shared' war will contain all required jsp files
  and compiled classes, under WEB-INF/classes.
  Then, for your 'war' projects maven will include all of this (both
  classes and jsp files) in created war and that will be, what are
  you looking for,
 
  HTH,
  Tomek
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]





**
 **
 BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is
 intended only for the individual or entity to which it is addressed
and
 may contain information that is confidential and protected by law.
 Unauthorized review, use, disclosure, or dissemination of this
 communication or its contents in any way is prohibited and may be
 unlawful. If you are not the intended recipient or a person
responsible
 for delivering this message to an intended recipient, please notify
the
 original sender immediately by e-mail or telephone, return the
original
 message to the original sender or to [EMAIL PROTECTED],
and
 destroy all copies or derivations of the original message. Thank you.
 (BFeComNote Rev. 08/01/2005)


**
 *

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




BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is intended 
only for the individual or entity to which it is addressed and may contain 
information that is confidential and protected by law. Unauthorized review, 
use, disclosure, or dissemination of this communication or its contents in any 
way is prohibited and may be unlawful. If you are not the intended recipient or 
a person responsible for delivering this message to an intended recipient, 
please notify the original sender immediately by e-mail or telephone, return 
the original message to the original sender or to [EMAIL PROTECTED], and 
destroy all copies or derivations of the original message. Thank you.  
(BFeComNote Rev. 08/01/2005)
***

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



Using containing project's classpath within mojo...

2007-04-03 Thread James Carman

All,

I am developing a simple mojo which needs to access classes defined within
the project in which it is used.  But, they don't seem to be visible.  I am
writing a mojo that can execute a loader (loads data into our database)
object.  It takes a parameter that tells which loader class to use.  Anyway,
I now want to use that mojo within another project to run a loader defined
within that project.  When I try to instantiate that class, it's not
available.  Is there something special I need to do to tell Maven to include
the current project's classpath in my mojo's environment?

James


Re: Dependency problem

2007-04-03 Thread franz see

Good day to you, Raghu ,

Possible explanations to why that is happening:
1. hibernate-3.0 was already there when you ran your maven command ( do a
mvn clean first to be sure )
2. The binaries hibernate-3.0 and hibernate-3.0.5 does not have the same
groupId and artifactId.
3. It was added there by some other means like via dependency plugin, antrun
plugin etc.

Possible way to fix this:
1. Do mvn clean install
2. Check if both hibernate-3.0 and hibernate-3.0.5 are still in your target
* If they are, then we've ruled out possibility #1 ( end here )
3. Do a mvn project-info-reports:dependencies ( or if that's too hard to
memorize, you can use mvn site:site instead ).
4. Browse through the generated dependencies report (
target\site\dependencies.html )
5. Check if you have a two binaries with the artifactId hibernate but with
different groupId
* If true, then that explains why those two are there. 
* To see whether what dependencies you're using, do a mvn
dependency:analyze
* Fix your list of dependencies in your pom.xml ( end here )
6. Check your build again and see if there is any goals that copies
hibernate-3.0 to your target.

Cheers,
Franz


raghurajan.x.gurunathan wrote:
 
 Hi All
 
 I use maven-2.0.4 and having this, problem i have defined my pom.xml as
 
 dependency
 groupIdorg.hibernate/groupId
 artifactIdhibernate/artifactId
 version3.0.5/version
 /dependency 
 
 but when i run the mvn deploy its also including hibernate-3.0, eventhough 
 its getting the proper version 3.0.5, 
 
 I know i saw some threads regarding this some time, but i forgot, what it 
 is, can anyone help me here, ?? 
 
 
 Thanks,
 Raghu | 
 
 
 -
 This communication is for informational purposes only. It is not
 intended as an offer or solicitation for the purchase or sale of
 any financial instrument or as an official confirmation of any
 transaction. All market prices, data and other information are not
 warranted as to completeness or accuracy and are subject to change
 without notice. Any comments or statements made herein do not
 necessarily reflect those of JPMorgan Chase  Co., its subsidiaries
 and affiliates.
 
 This transmission may contain information that is privileged,
 confidential, legally privileged, and/or exempt from disclosure
 under applicable law. If you are not the intended recipient, you
 are hereby notified that any disclosure, copying, distribution, or
 use of the information contained herein (including any reliance
 thereon) is STRICTLY PROHIBITED. Although this transmission and any
 attachments are believed to be free of any virus or other defect
 that might affect any computer system into which it is received and
 opened, it is the responsibility of the recipient to ensure that it
 is virus free and no responsibility is accepted by JPMorgan Chase 
 Co., its subsidiaries and affiliates, as applicable, for any loss
 or damage arising in any way from its use. If you received this
 transmission in error, please immediately contact the sender and
 destroy the material in its entirety, whether in electronic or hard
 copy format. Thank you.
 
 Please refer to http://www.jpmorgan.com/pages/disclosures for
 disclosures relating to UK legal entities.
 
 

-- 
View this message in context: 
http://www.nabble.com/Dependency-problem-tf3517261s177.html#a9820993
Sent from the Maven - Users mailing list archive at Nabble.com.


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



How to use war overlay approach with Maven 1.0??? (was: Include Common JSPs in multiple wars)

2007-04-03 Thread Thierry Lach

Subject says it all - does anyone have any examples of how this might be
accomplished using Maven 1.0 ?

On 4/3/07, Mark Hobson [EMAIL PROTECTED] wrote:


A war overlay would be the cleanest solution:

http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html

Mark


Re: Is it possible to execute maven-jar-plugin in a different lifecycle phase than package phase?

2007-04-03 Thread franz see

Good day to you, Wei,

You may want to bind your post-packaging tests in the integration-test
phase.

Cheers,
Franz


Zhou, Wei wrote:
 
 Hi,
 
  
 
 I need to build the jar file before my test code can be run. But Maven 2
 only packages the jar file after the test code is run successfully. I
 have tried to play with my pom file to move the maven-jar-plugin into an
 earlier phase. But I have no luck. Does anyone know how to build a jar
 file before the test phase?
 
  
 
 Thanks!
 
 Wei
 
  
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Is-it-possible-to-execute-maven-jar-plugin-in-a-different-lifecycle-phase-than-package-phase--tf3513652s177.html#a9821537
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Using containing project's classpath within mojo...

2007-04-03 Thread franz see

Good day to you, James,

Not sure how you're instantiating those classes. Anyway, try adding those
classes in your plugin's dependency ( see [1] ). And if you need the path to
those binaries, see Getting dependency artifact path of [2].

Cheers,
Franz

[1] http://maven.apache.org/ref/current/maven-model/maven.html#class_plugin
[2] http://docs.codehaus.org/display/MAVENUSER/


James Carman-3 wrote:
 
 All,
 
 I am developing a simple mojo which needs to access classes defined within
 the project in which it is used.  But, they don't seem to be visible.  I
 am
 writing a mojo that can execute a loader (loads data into our database)
 object.  It takes a parameter that tells which loader class to use. 
 Anyway,
 I now want to use that mojo within another project to run a loader defined
 within that project.  When I try to instantiate that class, it's not
 available.  Is there something special I need to do to tell Maven to
 include
 the current project's classpath in my mojo's environment?
 
 James
 
 

-- 
View this message in context: 
http://www.nabble.com/Using-containing-project%27s-classpath-within-mojo...-tf3519722s177.html#a9821549
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Maven archetype

2007-04-03 Thread Marouane Amraoui
Hi ;

 

I want to generate my projet structure :

 

MyProject-Appli :

   -- src

-- java

   -- com.omni.application

-- ap1

-- manager 

-- services

-- valueobject

-- ap 2

-- manager 

-- services

-- valueobject

 

 

I want to developpe an archetype that construct me this structure of project. 

 

This can made by archetype developpement only ?? or need to developpe a plugin 
??

 

 

Thx in advance.

 

---

Merouane AMRAOUI
Consultant Expert
Division Développement
Email.: [EMAIL PROTECTED]

Gsm  .: 065 19 60 99   
Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70
OMNIDATA , 74 Bv AbdelMoumen

 



Re: Using containing project's classpath within mojo...

2007-04-03 Thread James Carman

Franz,

Thanks for replying.  Let me explain it a bit more.  I was trying to gloss
over things a bit.  Basically, I'm using Spring to instantiate the bean:

public class RunLoaderMojo extends AbstractMojo
{
   /**
* @parameter property=loaderBean expression=${loaderBean}
* @required
*/
   private String loaderBean;

   public void execute() throws MojoExecutionException
   {
   // Load all META-INF/beans.xml files on classpath!
   ClassPathXmlApplicationContext ctx = new
ClassPathXmlApplicationContext(classpath*:META-INF/beans.xml);
   getLog().info(Running loader ' + loaderBean + '...);
   final Loader loader = ( Loader )ctx.getBean(loaderBean, Loader.class
);
   loader.execute();
   }

   public String getLoaderBean()
   {
   return loaderBean;
   }

   public void setLoaderBean(String loaderBean)
   {
   this.loaderBean = loaderBean;
   }
}

That's my mojo class.  Then, I want to use it in a project like this:

plugin
 groupIdcom.myco.myproj/groupId
 artifactIdmaven-loader-plugin/artifactId
/plugin

Then, I try executing the plugin like this (from the project dir):

mvn loader:run -DloaderBean=exampleLoader

If I try to use a beans.xml file that's defined within my project, it
doesn't even see it on the classpath.  If I put it into one of my project's
dependencies (another module of mine), then it sees it fine.  It just
doesn't see anything within the enclosing project.  Does that make sense?

James

On 4/3/07, franz see [EMAIL PROTECTED] wrote:



Good day to you, James,

Not sure how you're instantiating those classes. Anyway, try adding those
classes in your plugin's dependency ( see [1] ). And if you need the path
to
those binaries, see Getting dependency artifact path of [2].

Cheers,
Franz

[1]
http://maven.apache.org/ref/current/maven-model/maven.html#class_plugin
[2] http://docs.codehaus.org/display/MAVENUSER/


James Carman-3 wrote:

 All,

 I am developing a simple mojo which needs to access classes defined
within
 the project in which it is used.  But, they don't seem to be visible.  I
 am
 writing a mojo that can execute a loader (loads data into our
database)
 object.  It takes a parameter that tells which loader class to use.
 Anyway,
 I now want to use that mojo within another project to run a loader
defined
 within that project.  When I try to instantiate that class, it's not
 available.  Is there something special I need to do to tell Maven to
 include
 the current project's classpath in my mojo's environment?

 James



--
View this message in context:
http://www.nabble.com/Using-containing-project%27s-classpath-within-mojo...-tf3519722s177.html#a9821549
Sent from the Maven - Users mailing list archive at Nabble.com.


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




Re: Using containing project's classpath within mojo...

2007-04-03 Thread Johan Lindquist
Hi James,

Try using the following property in you Mojo.

/**
 * The classpath elements of the project.
 *
 * @parameter expression=${project.runtimeClasspathElements}
 * @required
 * @readonly
 */
private List classpathElements;

I think in this case, you would have to provide your own classloader for
spring - the classloader for the Mojo does (as far as I understand) not
see the project dependencies.

cheers,

Johan


James Carman wrote:
 Franz,
 
 Thanks for replying.  Let me explain it a bit more.  I was trying to gloss
 over things a bit.  Basically, I'm using Spring to instantiate the bean:
 
 public class RunLoaderMojo extends AbstractMojo
 {
/**
 * @parameter property=loaderBean expression=${loaderBean}
 * @required
 */
private String loaderBean;
 
public void execute() throws MojoExecutionException
{
// Load all META-INF/beans.xml files on classpath!
ClassPathXmlApplicationContext ctx = new
 ClassPathXmlApplicationContext(classpath*:META-INF/beans.xml);
getLog().info(Running loader ' + loaderBean + '...);
final Loader loader = ( Loader )ctx.getBean(loaderBean, Loader.class
 );
loader.execute();
}
 
public String getLoaderBean()
{
return loaderBean;
}
 
public void setLoaderBean(String loaderBean)
{
this.loaderBean = loaderBean;
}
 }
 
 That's my mojo class.  Then, I want to use it in a project like this:
 
 plugin
  groupIdcom.myco.myproj/groupId
  artifactIdmaven-loader-plugin/artifactId
 /plugin
 
 Then, I try executing the plugin like this (from the project dir):
 
 mvn loader:run -DloaderBean=exampleLoader
 
 If I try to use a beans.xml file that's defined within my project, it
 doesn't even see it on the classpath.  If I put it into one of my project's
 dependencies (another module of mine), then it sees it fine.  It just
 doesn't see anything within the enclosing project.  Does that make sense?
 
 James
 
 On 4/3/07, franz see [EMAIL PROTECTED] wrote:


 Good day to you, James,

 Not sure how you're instantiating those classes. Anyway, try adding those
 classes in your plugin's dependency ( see [1] ). And if you need the path
 to
 those binaries, see Getting dependency artifact path of [2].

 Cheers,
 Franz

 [1]
 http://maven.apache.org/ref/current/maven-model/maven.html#class_plugin
 [2] http://docs.codehaus.org/display/MAVENUSER/


 James Carman-3 wrote:
 
  All,
 
  I am developing a simple mojo which needs to access classes defined
 within
  the project in which it is used.  But, they don't seem to be
 visible.  I
  am
  writing a mojo that can execute a loader (loads data into our
 database)
  object.  It takes a parameter that tells which loader class to use.
  Anyway,
  I now want to use that mojo within another project to run a loader
 defined
  within that project.  When I try to instantiate that class, it's not
  available.  Is there something special I need to do to tell Maven to
  include
  the current project's classpath in my mojo's environment?
 
  James
 
 

 -- 
 View this message in context:
 http://www.nabble.com/Using-containing-project%27s-classpath-within-mojo...-tf3519722s177.html#a9821549

 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 

-- 
you too?

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



Re: Using containing project's classpath within mojo...

2007-04-03 Thread James Carman

Johan,

What kind of objects should I expect in that list?

James

p.s. Are you on every mailing list? :-)


On 4/3/07, Johan Lindquist [EMAIL PROTECTED] wrote:


Hi James,

Try using the following property in you Mojo.

/**
 * The classpath elements of the project.
 *
 * @parameter expression=${project.runtimeClasspathElements}
 * @required
 * @readonly
 */
private List classpathElements;

I think in this case, you would have to provide your own classloader for
spring - the classloader for the Mojo does (as far as I understand) not
see the project dependencies.

cheers,

Johan


James Carman wrote:
 Franz,

 Thanks for replying.  Let me explain it a bit more.  I was trying to
gloss
 over things a bit.  Basically, I'm using Spring to instantiate the bean:

 public class RunLoaderMojo extends AbstractMojo
 {
/**
 * @parameter property=loaderBean expression=${loaderBean}
 * @required
 */
private String loaderBean;

public void execute() throws MojoExecutionException
{
// Load all META-INF/beans.xml files on classpath!
ClassPathXmlApplicationContext ctx = new
 ClassPathXmlApplicationContext(classpath*:META-INF/beans.xml);
getLog().info(Running loader ' + loaderBean + '...);
final Loader loader = ( Loader )ctx.getBean(loaderBean,
Loader.class
 );
loader.execute();
}

public String getLoaderBean()
{
return loaderBean;
}

public void setLoaderBean(String loaderBean)
{
this.loaderBean = loaderBean;
}
 }

 That's my mojo class.  Then, I want to use it in a project like this:

 plugin
  groupIdcom.myco.myproj/groupId
  artifactIdmaven-loader-plugin/artifactId
 /plugin

 Then, I try executing the plugin like this (from the project dir):

 mvn loader:run -DloaderBean=exampleLoader

 If I try to use a beans.xml file that's defined within my project, it
 doesn't even see it on the classpath.  If I put it into one of my
project's
 dependencies (another module of mine), then it sees it fine.  It just
 doesn't see anything within the enclosing project.  Does that make
sense?

 James

 On 4/3/07, franz see [EMAIL PROTECTED] wrote:


 Good day to you, James,

 Not sure how you're instantiating those classes. Anyway, try adding
those
 classes in your plugin's dependency ( see [1] ). And if you need the
path
 to
 those binaries, see Getting dependency artifact path of [2].

 Cheers,
 Franz

 [1]
 http://maven.apache.org/ref/current/maven-model/maven.html#class_plugin
 [2] http://docs.codehaus.org/display/MAVENUSER/


 James Carman-3 wrote:
 
  All,
 
  I am developing a simple mojo which needs to access classes defined
 within
  the project in which it is used.  But, they don't seem to be
 visible.  I
  am
  writing a mojo that can execute a loader (loads data into our
 database)
  object.  It takes a parameter that tells which loader class to use.
  Anyway,
  I now want to use that mojo within another project to run a loader
 defined
  within that project.  When I try to instantiate that class, it's not
  available.  Is there something special I need to do to tell Maven to
  include
  the current project's classpath in my mojo's environment?
 
  James
 
 

 --
 View this message in context:

http://www.nabble.com/Using-containing-project%27s-classpath-within-mojo...-tf3519722s177.html#a9821549

 Sent from the Maven - Users mailing list archive at Nabble.com.


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




--
you too?

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




Re: Surefire TestNG troubles

2007-04-03 Thread Mark Derricutt

Due to a change in TestNG's API versions later than 5.1 no longer work with
the current surefire release.  This is currently being worked on by the
TestNG developers and hopefully won't be too long in coming.

For now - if you need any changes from 5.2+ your best course of action would
be using the antrun plugin.  Or as an alternative, another TestNG user has
written there own maven plugin specifically for TestNG (I'll see if I can
find a reference to it and follow up this post).

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


Arguably, I suppose the problem could be related to the TestNG v5.4
used by Ant vs the TestNG v5.1 used by Maven. But I'm just getting
into this and thought I'd ask before digging into it more myself.



Re: Specifying working directory

2007-04-03 Thread Eric Pugh

So,

What we have at one client is a build_config.xml that is imported  
by every project.  A project may define:


my.requiredproject.dir = ../myrequiredproject

but in Continuum's build_config.xml we do:

my.requiredproject.dir = ../52

and that fixes things

Eric

On Apr 3, 2007, at 8:07 AM, Vaidya, Raghavendra ((GE Infra)) wrote:

Because my build(ant) scripts use relative directories to locate  
source directories and do the build.

--
Sent from my BlackBerry Wireless Device


-Original Message-
From: Emmanuel Venisse
To: continuum-users@maven.apache.org
Sent: Tue Apr 03 17:30:48 2007
Subject: Re: Specifying working directory

no you can't.
Why do you want to define it at project level?

Vaidya, Raghavendra (GE Infra) a écrit :
What I mean is there is a way to set the directory where the code  
is checked out. This can be done at continuum level and not  
project level. My question is how do I set the checkout directory  
at project level.



--
Sent from my BlackBerry Wireless Device


-Original Message-
From: Emmanuel Venisse
To: continuum-users@maven.apache.org
Sent: Tue Apr 03 17:18:46 2007
Subject: Re: Specifying working directory

what do you mean?

Vaidya, Raghavendra (GE Infra) a écrit :



 Is there a way in continuum to specify a working directory at  
project

level rather than globally??














---
Principal
OpenSource Connections
Site: http://www.opensourceconnections.com
Blog: http://blog.opensourceconnections.com
Cell: 1-434-466-1467






Re: Using containing project's classpath within mojo...

2007-04-03 Thread Johan Lindquist
Sorry, forget exactly what it is but if you can wait 12 hours I can look
it up ;)

Found it in some of the maven APIs if that helps.

And no, not on every list ;)

Johan

I forget what it is - not at work an

James Carman wrote:
 Johan,
 
 What kind of objects should I expect in that list?
 
 James
 
 p.s. Are you on every mailing list? :-)
 
 
 On 4/3/07, Johan Lindquist [EMAIL PROTECTED] wrote:

 Hi James,

 Try using the following property in you Mojo.

 /**
  * The classpath elements of the project.
  *
  * @parameter expression=${project.runtimeClasspathElements}
  * @required
  * @readonly
  */
 private List classpathElements;

 I think in this case, you would have to provide your own classloader for
 spring - the classloader for the Mojo does (as far as I understand) not
 see the project dependencies.

 cheers,

 Johan


 James Carman wrote:
  Franz,
 
  Thanks for replying.  Let me explain it a bit more.  I was trying to
 gloss
  over things a bit.  Basically, I'm using Spring to instantiate the
 bean:
 
  public class RunLoaderMojo extends AbstractMojo
  {
 /**
  * @parameter property=loaderBean expression=${loaderBean}
  * @required
  */
 private String loaderBean;
 
 public void execute() throws MojoExecutionException
 {
 // Load all META-INF/beans.xml files on classpath!
 ClassPathXmlApplicationContext ctx = new
  ClassPathXmlApplicationContext(classpath*:META-INF/beans.xml);
 getLog().info(Running loader ' + loaderBean + '...);
 final Loader loader = ( Loader )ctx.getBean(loaderBean,
 Loader.class
  );
 loader.execute();
 }
 
 public String getLoaderBean()
 {
 return loaderBean;
 }
 
 public void setLoaderBean(String loaderBean)
 {
 this.loaderBean = loaderBean;
 }
  }
 
  That's my mojo class.  Then, I want to use it in a project like this:
 
  plugin
   groupIdcom.myco.myproj/groupId
   artifactIdmaven-loader-plugin/artifactId
  /plugin
 
  Then, I try executing the plugin like this (from the project dir):
 
  mvn loader:run -DloaderBean=exampleLoader
 
  If I try to use a beans.xml file that's defined within my project, it
  doesn't even see it on the classpath.  If I put it into one of my
 project's
  dependencies (another module of mine), then it sees it fine.  It just
  doesn't see anything within the enclosing project.  Does that make
 sense?
 
  James
 
  On 4/3/07, franz see [EMAIL PROTECTED] wrote:
 
 
  Good day to you, James,
 
  Not sure how you're instantiating those classes. Anyway, try adding
 those
  classes in your plugin's dependency ( see [1] ). And if you need the
 path
  to
  those binaries, see Getting dependency artifact path of [2].
 
  Cheers,
  Franz
 
  [1]
 
 http://maven.apache.org/ref/current/maven-model/maven.html#class_plugin
  [2] http://docs.codehaus.org/display/MAVENUSER/
 
 
  James Carman-3 wrote:
  
   All,
  
   I am developing a simple mojo which needs to access classes defined
  within
   the project in which it is used.  But, they don't seem to be
  visible.  I
   am
   writing a mojo that can execute a loader (loads data into our
  database)
   object.  It takes a parameter that tells which loader class to use.
   Anyway,
   I now want to use that mojo within another project to run a loader
  defined
   within that project.  When I try to instantiate that class, it's not
   available.  Is there something special I need to do to tell Maven to
   include
   the current project's classpath in my mojo's environment?
  
   James
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Using-containing-project%27s-classpath-within-mojo...-tf3519722s177.html#a9821549

 
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 -- 
 you too?

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


 

-- 
you too?

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



Ant Script from Maven

2007-04-03 Thread Great Man


Note: forwarded message attached.
 
-
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.---BeginMessage---
I have one ant script and I wanna call it from my maven pom. Is this possible ? 
Any pointer is appreciated. My maven knowledge is of novice level so please 
care to explain. Thanks in advance.

Petr



 
-
Now that's room service! Choose from over 150,000 hotels 
in 45,000 destinations on Yahoo! Travel to find your fit.---End Message---
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [MAVEN][2.0.5] JXR files not included in site report when using a custom build directory

2007-04-03 Thread Dennis Lundberg

Ephemeris Lappis wrote:

Hello.
The pom.xml is attached. I give you only the main project file, as it holds
the directory configuration for all the modules. In this version, with the
projectbuilddirectory set, the JXR aggregation fails. If this value is
removed, it works... Hum... it looks like a bug, no ?


This sound like
http://jira.codehaus.org/browse/JXR-29
that has been fixed in the 2.1-SNAPSHOT version of maven-jxr-plugin


I suppose I use the last release version, which is in my repository as 1.0.
How can I force the snapshot version to be used ?


See this URL for info on how to set that up:
http://maven.apache.org/guides/development/guide-testing-development-plugins.html



--
Ephemeris Lappis



-Message d'origine-
De : Dennis Lundberg [mailto:[EMAIL PROTECTED]
Envoyé : lundi 2 avril 2007 23:28
À : Maven Users List
Objet : Re: [MAVEN][2.0.5] JXR files not included in site report when
using a custom build directory

Ephemeris Lappis wrote:

Hello.



It seems the JXR generated files are not included in the site when the
pom.xml uses a custom build directory. Files are generated in xref and
xref-test directories, in the custom build directory, but they are not
aggregated to the site report. It seems that running the site report
generation phase, files are searched from the standard build directory,
obviously not found, and causes the xref/index.html is empty. I've

tested

this with a single module project, and also with a multi-module one.



For information, other reporting plugins, like PMD or CheckStyle, take

the

change into account.



Is it a known bug ?

Is there a specific configuration property for the JXR plugin to take

the

new directory into account ?



Thanks.



--

Ephemeris Lappis

Can you supply a pom.xml file with your configuration?

Did you try using the latest snapshot version of maven-jxr-plugin?

--
Dennis Lundberg

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





--
Dennis Lundberg


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



Re: JXR versus javadoc linking

2007-04-03 Thread Dennis Lundberg

Kathryn Huxtable wrote:

I think I see part of the problem. The path to the FilterHandler source
reference file on my development system is


/Users/huxtable/dev/workspace/shibshimfilter/target/site/xref/org/kathrynhux

table/middleware/shibshim/filter/FilterHandler.html

It looks as if the 12 .. occurrences in the generated xref file get me
back to /Users. Naturally, on my web page, where I don't have anything
like that depth, it just takes me to www.kathrynhuxtable.org/apidocs...

When I open the site on my development system using File  Open and navigate
to the target/site/index.html and follow the links, everything works except
for the javadoc links from the xref. Same thing. It shows the link as

file:///Users/apidocs...

Instead of

file:///Users/huxtable/dev/workspace/shibshimfilter/target/site/apidocs...

I think JXR may be a bit lame. It finds its CSS files just fine.

Are people actually using this feature? I suppose I can set it to not
include the links, thus defining the problem away, but it seems like a nice
feature.

-K


I think that this has been solved in the 2.1-SNAPSHOT version of 
maven-jxr-plugin. My test-projects do not have unnecessary .. in them 
when I build using the 2.1-SNAPSHOT version of the plugin. Can you 
please give it a try?


Here are instructions how to test a SNAPSHOT-version of a plugin:
http://maven.apache.org/guides/development/guide-testing-development-plugins.html




On 4/2/07 9:18 PM, Kathryn Huxtable [EMAIL PROTECTED] wrote:


What I mean is that when I go to

http://www.kathrynhuxtable.org/projects/shibshimfilter/xref/index.html

and click on the (say) FilterHandler link in the lower left frame, I get a
source listing. At the top of the source listing is a View Javadoc link.

The link goes to

http://www.kathrynhuxtable.org/apidocs/org/kathrynhuxtable/middleware/shibsh
im/filter/FilterHandler.html

instead of to

http://www.kathrynhuxtable.org/projects/shibshimfilter/apidocs/org/kathrynhu
xtable/middleware/shibshim/filter/FilterHandler.html

Essentially, it's incorrectly computing the location of the javadocs. I see,
viewing the source that the link is to

../../../../../../../../../../../../apidocs/org/kathrynhuxtable/middleware/s
hibshim/filter/FilterHandler.html

Which is off by a whole bunch of .. occurrences.

My pom contains the following in the reporting section:

reporting
 plugins
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-project-info-reports-plugin/artifactId
/plugin
plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdtaglist-maven-plugin/artifactId
  configuration
tags
  tagTODO/tag
  tagFIXME/tag
/tags
  /configuration
/plugin
plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdjxr-maven-plugin/artifactId
  configuration
linkJavadoctrue/linkJavadoc
javadocDir${project.build.directory}/site/apidocs/javadocDir
  /configuration
/plugin
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-pmd-plugin/artifactId
/plugin
plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdsurefire-report-maven-plugin/artifactId
/plugin
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-javadoc-plugin/artifactId
/plugin
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-checkstyle-plugin/artifactId
  configuration
configLocationconfig/maven_checks.xml/configLocation
  /configuration
/plugin
plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdcobertura-maven-plugin/artifactId
/plugin
  /plugins
/reporting

-K


On 4/2/07 4:32 PM, Dennis Lundberg [EMAIL PROTECTED] wrote:


Kathryn Huxtable wrote: I can't get it to work in 2.0.5 using the
javadocDir
configuration element. My links come out as


www.kathrynhuxtable.org/apidocs/...

Instead of

www.kathrynhuxtable.org/projects/shibshimfilter/apidocs/...

In my pom.xml I'm specifying

javadocDirtarget/site/apidocs//javadocDir

This is in the configuration for JXR.

Is there something else I should be doing?

You can view the site at the URL above. Unfortunately, I'm at work and my
pom
is on my powered down system at home.

-K


Hi

I'm afraid I don't understand what kind of problems you are having. Clicking
around on your site, everything seems to be working...

Also, a snippet from your pom with the appropriate config sections would be
helpful.


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




--
Dennis Lundberg

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

Re: Ant Script from Maven

2007-04-03 Thread Wayne Fay

This is very well documented on the Maven site:
http://maven.apache.org/guides/mini/guide-using-ant.html

Wayne

On 4/3/07, Great Man [EMAIL PROTECTED] wrote:



Note: forwarded message attached.

 
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.

-- Forwarded message --
From: Great Man [EMAIL PROTECTED]
To: users@maven.apache.org
Date: Tue, 3 Apr 2007 12:45:29 -0700 (PDT)
Subject: Ant Script from Maven
I have one ant script and I wanna call it from my maven pom. Is this
possible ? Any pointer is appreciated. My maven knowledge is of novice level
so please care to explain. Thanks in advance.

Petr




 
Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.


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



Clover plugin: docs svn are not docs in site.

2007-04-03 Thread Marcos Silva Pereira

Hello, I take a look at clover plugin and I see that documentation in svn
are different of documention in site. I also made some little changes in
docs (to add an example about method filters using contextFilters
parameter). How can I apply a patch to this plugin?

Kind Regards,

--
Marcos Silva Pereira
recife - pe
[EMAIL PROTECTED]
skype: marcos.silva.pereira
http://blastemica.blogspot.com


Re: build failures, warnings and continuum

2007-04-03 Thread David Roussel
I take it you've got them to run ok separately?   Do then run ok when  
not scheduled together?


Is this in continuum 1.0.3?


On 3 Apr 2007, at 16:28, Erik Ruisma wrote:


Thanks for your proposal. That's what we did.
However this seems to create some new problems.
So what we have are two build definitions for one project: one  
launching the

tests, one creating and deploying the site.

We have scheduled both builds to run at the same moment. BUT only one
actually runs.
Why ?
I can find the following in our logs:
INFO   | jvm 1| 2007/04/02 20:00:00 | 2007-04-02 20:00:00,156
[defaultScheduler_Worker-2] INFO  Continuum  -  
Enqueuing

'MyProject' (Build definition id=116).
INFO   | jvm 1| 2007/04/02 20:00:00 | 2007-04-02 20:00:00,156
[defaultScheduler_Worker-2] INFO  Continuum  -  
Enqueuing

'MyProject' (Build definition id=118).

Only the last one is executed. Is it possible that this is a bug in
continuum ? ie that MyProject is somehow used as the key and only  
the last

element from the queue remains?

What if we would use 2 different build times (to make things more  
complex, I

don't prefer it): is it possible to force the last scheduled build
definition to run even if their are no modifications?? This seems  
to be also

an issue...?


Any feedback welcome.



On 3/15/07, David Roussel [EMAIL PROTECTED] wrote:


Define two builds, one just to run the tests and report them.  The
second build to just do the site.

On Wed, 14 Mar 2007 11:47:07 +0100, Erik Ruisma
[EMAIL PROTECTED] said:
 Hello all,

 I'm not quite sure if this is a continuum or a Maven question,  
but I

 thought
 to post first on the Continuum mailing list.

 In our company-wide settings I want that project sites are  
generated,

and
 artifacts get deployed to our internal repository even when  
there are

 some
 unit tests that fail. We also want that a mail is send when  
there are

 test
 failures, with some kind of indication that their was a problem  
during

 the
 build.

 How would you set this up ?







Classloader issue?

2007-04-03 Thread James CE Johnson
I'm writting a MoJo that uses a utility Iwhich, in turn, uses Spring. When I
invoke the utility (with the correct classpath) from the command line
everything works fine. When I invoke the MoJo from Eclipse everything still
works fine. However, when I invoke the MoJo from mvn it tells me:

org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected
exception parsing XML document from class path resource
[com/myco/foo/util/myUtility/engine.xml]; nested exception is
java.lang.IllegalArgumentException: Class
[org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler] does
not implement the NamespaceHandler interface
Caused by: java.lang.IllegalArgumentException: Class
[org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler] does
not implement the NamespaceHandler interface

A capture of the mvn invocation is at http://rafb.net/p/fOEW5I52.html

It smells like a classloader issue but I'm too new to m2 to know which way
to jump. Any ideas?

Thanks,
James

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



Re: Clover plugin: docs svn are not docs in site.

2007-04-03 Thread Dennis Lundberg

Marcos Silva Pereira wrote:

Hello, I take a look at clover plugin and I see that documentation in svn
are different of documention in site. I also made some little changes in
docs (to add an example about method filters using contextFilters
parameter). How can I apply a patch to this plugin?

Kind Regards,



This page has information on how to create and apply patches to Maven:
http://maven.apache.org/guides/development/guide-m2-development.html

--
Dennis Lundberg

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



Re: Using containing project's classpath within mojo...

2007-04-03 Thread James CE Johnson
James, Johan,

Please copy me on this if it goes off-list. I'm trying to write a MoJo that
uses a utility that uses Spring and I'm getting what I think is a
classloader issue. If you solve it for your case I suspect I can use the
same solution for my own issue: http://rafb.net/p/fOEW5I52.html

Thanks!
James

 Sorry, forget exactly what it is but if you can wait 12 hours I can look
 it up ;)

 Found it in some of the maven APIs if that helps.

 And no, not on every list ;)

 Johan

 I forget what it is - not at work an

 James Carman wrote:
 Johan,

 What kind of objects should I expect in that list?

 James

 p.s. Are you on every mailing list? :-)


 On 4/3/07, Johan Lindquist [EMAIL PROTECTED] wrote:

 Hi James,

 Try using the following property in you Mojo.

 /**
  * The classpath elements of the project.
  *
  * @parameter expression=${project.runtimeClasspathElements} *
 @required
  * @readonly
  */
 private List classpathElements;

 I think in this case, you would have to provide your own classloader
 for spring - the classloader for the Mojo does (as far as I understand)
 not see the project dependencies.

 cheers,

 Johan


 James Carman wrote:
  Franz,
 
  Thanks for replying.  Let me explain it a bit more.  I was trying to
 gloss
  over things a bit.  Basically, I'm using Spring to instantiate the
 bean:
 
  public class RunLoaderMojo extends AbstractMojo
  {
 /**
  * @parameter property=loaderBean expression=${loaderBean} *
 @required
  */
 private String loaderBean;
 
 public void execute() throws MojoExecutionException
 {
 // Load all META-INF/beans.xml files on classpath!
 ClassPathXmlApplicationContext ctx = new
  ClassPathXmlApplicationContext(classpath*:META-INF/beans.xml);
 getLog().info(Running loader ' + loaderBean + '...); final
 Loader loader = ( Loader )ctx.getBean(loaderBean,
 Loader.class
  );
 loader.execute();
 }
 
 public String getLoaderBean()
 {
 return loaderBean;
 }
 
 public void setLoaderBean(String loaderBean)
 {
 this.loaderBean = loaderBean;
 }
  }
 
  That's my mojo class.  Then, I want to use it in a project like this:
 
  plugin
   groupIdcom.myco.myproj/groupId
   artifactIdmaven-loader-plugin/artifactId
  /plugin
 
  Then, I try executing the plugin like this (from the project dir):
 
  mvn loader:run -DloaderBean=exampleLoader
 
  If I try to use a beans.xml file that's defined within my project, it
 doesn't even see it on the classpath.  If I put it into one of my
 project's
  dependencies (another module of mine), then it sees it fine.  It just
 doesn't see anything within the enclosing project.  Does that make
 sense?
 
  James
 
  On 4/3/07, franz see [EMAIL PROTECTED] wrote:
 
 
  Good day to you, James,
 
  Not sure how you're instantiating those classes. Anyway, try adding
 those
  classes in your plugin's dependency ( see [1] ). And if you need the
 path
  to
  those binaries, see Getting dependency artifact path of [2].
 
  Cheers,
  Franz
 
  [1]
 
 http://maven.apache.org/ref/current/maven-model/maven.html#class_plugin
  [2] http://docs.codehaus.org/display/MAVENUSER/
 
 
  James Carman-3 wrote:
  
   All,
  
   I am developing a simple mojo which needs to access classes
 defined
  within
   the project in which it is used.  But, they don't seem to be
  visible.  I
   am
   writing a mojo that can execute a loader (loads data into our
  database)
   object.  It takes a parameter that tells which loader class to
 use. Anyway,
   I now want to use that mojo within another project to run a loader
  defined
   within that project.  When I try to instantiate that class, it's
 not available.  Is there something special I need to do to tell
 Maven to include
   the current project's classpath in my mojo's environment?
  
   James
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Using-containing-project%27s-classpath-within-mojo...-tf3519722s177.html#a9821549

 
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 you too?

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




 --
 you too?

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



Attached artifacts

2007-04-03 Thread Paul Gier


When working on a maven plugin, I noticed that two attached artifacts 
can have the same name and overwrite each other when they are deployed.  
Is this by design?  Maybe the artifacts attached to a project should be 
a set instead of a list, and a warning should be generated when one 
artifact replaces another.
An easy way to reproduce this is to define the maven source plugin with 
two different execution ids.  When the deploy plugin is run, the source 
jar is deployed twice, with the second overwriting the first.
Changing the attached artifacts from a List to a Set would probably 
break a bunch of existing code, but it might be something for a maven 
3.0 release.


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



Re: Diff like pluigin

2007-04-03 Thread Gonzalo Vásquez Sáez

I finally ended up using the diff mojo from the scm plugin, as referenced by
Roland. The documentation seems to lack a bit of detail, could anyone please
tell me how to format diff's output? All I need to know is, which files were
changed (added, deleted or modified), not the complete line differences as
the default maven mojo does. There seems to be a settings parameter, but
no specs about it, hope it's useful.



On 03/04/07, Roland Asmann [EMAIL PROTECTED] wrote:


Or for REAL diff-like output, check the scm-plugin, but use the goal
'diff'
(http://maven.apache.org/scm/plugins/diff-mojo.html).


On Tuesday 03 April 2007 15:45, nicolas de loof wrote:
 the changelog plugin (

http://maven.apache.org/plugins/maven-changelog-plugin/changelog-mojo.html
)
 can produce a log starting from a specified tag
 the scm plugin (http://maven.apache.org/scm/plugins/changelog-mojo.html)
 can also dump a changelog to console based on dates.

 I never used them myself for such use case, but they can help you.

 2007/4/3, Gonzalo Vásquez Sáez [EMAIL PROTECTED]:
  Is there kind of goal / plugin that will allow one two compare two
  different
  source code versions of a particular project, and generate output with
  the listing of the files changed? I need this to be run just before
every
  build,
  to keep track of changes between one deployment and another.
 
  Regards,
 
  Gonzalo.-

--
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [EMAIL PROTECTED]
Web: www.cfc.at

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




RE: Call Ant Tasks from Maven2

2007-04-03 Thread Nagesh, Srinivas \(IS Consultant\)
I tried the following

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
dependencies
dependency
groupIdant/groupId
artifactIdant-antlr/artifactId
version1.6.5/version
/dependency
/dependencies
executions
execution
phaseinstall/phase
configuration
tasks
echo Hello World /echo
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin

And ran the command mvn antrun:run

The result in the console was

[INFO] [antrun:run]
[INFO] Executing tasks
[INFO] Executed tasks

Still not printing hello world

Thanks

Sri

-Original Message-
From: Raphaël Piéroni [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 03, 2007 11:48 AM
To: Maven Users List
Subject: Re: Call Ant Tasks from Maven2

Hi,

Here what i have (And it works fine using maven 2.0.5)

Raphaël


project
...
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
dependencies
dependency
groupIdant/groupId
artifactIdant-antlr/artifactId
version1.6.5/version
/dependency
/dependencies

executions
execution
idarchetype-test/id
phaseprocess-test-resources/phase
configuration
tasks
mkdir dir=${basedir}/somedir//mkdir

jar
destfile=${basedir}/somedir/some.jar
basedir=${basedir}/src/test/somedir//jar
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin
/plugins
/build
/project

2007/4/3, Nagesh, Srinivas (IS Consultant) [EMAIL PROTECTED]:
 Hey,

 I am using Maven2 to call an ant task but somehow I don't see the task
 doing its job here. I am a newbie to these build tools.

 artifactIdmaven-antrun-plugin/artifactId
 executions
   execution
 phaseinstall/phase
 configuration
   tasks
  echoHello World/echo
  /tasks
 /configuration
 goals
   goalrun/goal
 /goals
   /execution
 /executions
   /plugin

 I don't see Hello World being printed on the console when I run mvn
 -e antrun:run. Secondly this plug-in doesn't get executed as part of
 the default goal install that I have specified in the POM.

 Any thoughts?

 Thanks

 Sri


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



Re: JXR versus javadoc linking

2007-04-03 Thread Kathryn Huxtable
Yes, that took care of it. When will this likely be released? -K


On 4/3/07 3:03 PM, Dennis Lundberg [EMAIL PROTECTED] wrote:

 Kathryn Huxtable wrote:
 I think I see part of the problem. The path to the FilterHandler source
 reference file on my development system is
 
 
 /Users/huxtable/dev/workspace/shibshimfilter/target/site/xref/org/kathrynhux
 table/middleware/shibshim/filter/FilterHandler.html
 
 It looks as if the 12 .. occurrences in the generated xref file get me
 back to /Users. Naturally, on my web page, where I don't have anything
 like that depth, it just takes me to www.kathrynhuxtable.org/apidocs...
 
 When I open the site on my development system using File  Open and navigate
 to the target/site/index.html and follow the links, everything works except
 for the javadoc links from the xref. Same thing. It shows the link as
 
 file:///Users/apidocs...
 
 Instead of
 
 file:///Users/huxtable/dev/workspace/shibshimfilter/target/site/apidocs...
 
 I think JXR may be a bit lame. It finds its CSS files just fine.
 
 Are people actually using this feature? I suppose I can set it to not
 include the links, thus defining the problem away, but it seems like a nice
 feature.
 
 -K
 
 I think that this has been solved in the 2.1-SNAPSHOT version of
 maven-jxr-plugin. My test-projects do not have unnecessary .. in them
 when I build using the 2.1-SNAPSHOT version of the plugin. Can you
 please give it a try?
 
 Here are instructions how to test a SNAPSHOT-version of a plugin:
 http://maven.apache.org/guides/development/guide-testing-development-plugins.h
 tml
 
 
 
 On 4/2/07 9:18 PM, Kathryn Huxtable [EMAIL PROTECTED] wrote:
 
 What I mean is that when I go to
 
 http://www.kathrynhuxtable.org/projects/shibshimfilter/xref/index.html
 
 and click on the (say) FilterHandler link in the lower left frame, I get a
 source listing. At the top of the source listing is a View Javadoc link.
 
 The link goes to
 
 http://www.kathrynhuxtable.org/apidocs/org/kathrynhuxtable/middleware/shibsh
 im/filter/FilterHandler.html
 
 instead of to
 
 http://www.kathrynhuxtable.org/projects/shibshimfilter/apidocs/org/kathrynhu
 xtable/middleware/shibshim/filter/FilterHandler.html
 
 Essentially, it's incorrectly computing the location of the javadocs. I see,
 viewing the source that the link is to
 
 ../../../../../../../../../../../../apidocs/org/kathrynhuxtable/middleware/s
 hibshim/filter/FilterHandler.html
 
 Which is off by a whole bunch of .. occurrences.
 
 My pom contains the following in the reporting section:
 
 reporting
  plugins
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-project-info-reports-plugin/artifactId
 /plugin
 plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdtaglist-maven-plugin/artifactId
   configuration
 tags
   tagTODO/tag
   tagFIXME/tag
 /tags
   /configuration
 /plugin
 plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdjxr-maven-plugin/artifactId
   configuration
 linkJavadoctrue/linkJavadoc
 javadocDir${project.build.directory}/site/apidocs/javadocDir
   /configuration
 /plugin
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-pmd-plugin/artifactId
 /plugin
 plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdsurefire-report-maven-plugin/artifactId
 /plugin
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-javadoc-plugin/artifactId
 /plugin
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-checkstyle-plugin/artifactId
   configuration
 configLocationconfig/maven_checks.xml/configLocation
   /configuration
 /plugin
 plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdcobertura-maven-plugin/artifactId
 /plugin
   /plugins
 /reporting
 
 -K
 
 
 On 4/2/07 4:32 PM, Dennis Lundberg [EMAIL PROTECTED] wrote:
 
 Kathryn Huxtable wrote: I can't get it to work in 2.0.5 using the
 javadocDir
 configuration element. My links come out as
 
 www.kathrynhuxtable.org/apidocs/...
 
 Instead of
 
 www.kathrynhuxtable.org/projects/shibshimfilter/apidocs/...
 
 In my pom.xml I'm specifying
 
 javadocDirtarget/site/apidocs//javadocDir
 
 This is in the configuration for JXR.
 
 Is there something else I should be doing?
 
 You can view the site at the URL above. Unfortunately, I'm at work and my
 pom
 is on my powered down system at home.
 
 -K
 
 Hi
 
 I'm afraid I don't understand what kind of problems you are having.
 Clicking
 around on your site, everything seems to be working...
 
 Also, a snippet from your pom with the appropriate config sections would be
 helpful.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

  1   2   >