[m2] is there a new release date?

2005-08-29 Thread Ittay Dror

according to the web site, the schedule for beta 1 was supposed to be 
mid-august.

ittay

--
===
Ittay Dror ([EMAIL PROTECTED])
Application Team Leader, R&D
Qlusters Inc.
+972-3-6081994 Fax: +972-3-6081841

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



Re: [m2] Proxy Settings Test

2005-08-29 Thread Brett Porter
Hi,

You should find the validation to be improved in the next release of Maven.

Cheers,
Brett

On 8/30/05, Pepper Jobe <[EMAIL PROTECTED]> wrote:
> 
> Update,
> 
> I have figured out what my problem was. I had entered my  element 
> directly within my  element in my xml, instead of nesting it 
> inside of a  element. This brings me to a new question though. 
> Shouldn't the xml be checked against a schema or DTD before maven continues 
> with its invocation?
> 
> Thanks,
> Pepper Jobe
> SAS Institute
> 
> -Original Message-
> From: Pepper Jobe [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 29, 2005 8:37 PM
> To: users@maven.apache.org
> Subject: [m2] Proxy Settings Test
> 
> Team,
> 
> This is my first time posting to this list, so my apologies if I am not
> following suggested practices or formats.
> 
> I have downloaded the maven-2.0-alpha-3-bin.zip for windows from your site 
> and
> followed the installation instructions. I have also configured my 
> settings.xml
> file in my {home}/.m2 directory. I am behind a firewall at work, and 
> therefore
> needed to set up a proxy entry in the settings.xml file.
> 
> Assuming that all of this was set up correctly, I tried a:
> 
> $>m2 archetype:create -DgroupId=com.company.app -DartifactId=my-app
> 
> Just to see what it does. Unfortunately, as I found by using the -e 
> option,
> maven can't find the RELEASE maven-archetype-plugin, according to the 
> stack
> trace. I navigated in my web browser to the
> http://repo1.maven.org/maven2/plugins URL, and was able to navigate to the
> org/apache/maven/plugins/maven-archetype-plugin directory with no 
> problems.
> 
> This leads me to believe that the proxy settings that maven is picking up 
> from
> my settings.xml file may not be working correctly. Is there an easy way to 
> test
> my suspicions?
> 
> Thanks,
> Pepper Jobe
> SAS Institute
> 
> -
> 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]
> 
>


Weblogic Deployment!!!!

2005-08-29 Thread NIRMALA Manivasagam
Hello All,

When iam trying to deploy a war file in weblogic using  
maven-webtest-plugin,iam getting the following errror.

my settings in build.properties file is:

maven.weblogic.username=weblogic
maven.weblogic.password=weblogic
maven.weblogic.targets=myserver
maven.weblogic.verbose=true
maven.weblogic.war=${maven.build.dir}/dctlController.war
maven.weblogic.adminurl= http://10.3.106.91:7001
maven.weblogic.debug=true
maven.weblogic.name=dctlcontroller
#maven.weblogic.source=${maven.build.dir}/${maven.final.name}.ear
maven.weblogic.source=D:/test/dctlController.war
maven.weblogic.failonerror=true
maven.weblogic.remote=true
maven.weblogic.home=C:/bea/weblogic81
maven.weblogic.ejbc.compiler=javac
maven.weblogic.ejbc.target=Jasmine.jar
maven.weblogic.classpath=C:/bea/weblogic81/server/lib/weblogic.jar
maven.weblogic.ejbc.source=${maven.build.dir}/ejb20_basic_statelessSession.ear

my settings in project.properties is:



  maven
  maven-j2ee-plugin
  1.5
  plugin


Uncomment this after having placed the weblogic.jar file as 
explained in the Release Notes

  mcone
  weblogic
  weblogic.jar



  ant
  ant
  1.6
  ant-1.6.jar



[EMAIL PROTECTED]

D:\Maven 1.0.2\bin\target



${basedir}/logging


log4j.properties 
${maven.build.src}/META-INF 









error is:


build:start:

weblogic:deploy:
weblogic:log:
weblogic:prepare-deploy:
[echo] Preparing deployment


[java] Usage: java weblogic.Deployer [options] [actions] [File(s)]
[java]
[java] where options include:
[java] -adminurl <://:> Administration server UR
L:
[java]   default iiop://localhost:7001
[java] Unrecognized option or flag, -sourcerootforupload
[java] -username  user name

[java] -password  password for the user

[java] -userconfigfile  The user config file contains th
e
[java]   user security credentials; it is
[java]   administered by the weblogic.Admin tool
[java] -userkeyfile  The users key file; it is administer
ed
[java]   by the weblogic.Admin tool.
[java] -examples Displays example usage of this tool.
[java] -name  Defaults to the basename of the deployme
nt
[java]   file or directory.
[java] -targets <> A comma separated list of targets for the

[java]   current operation. If not specified, all
[java]   configured targets are used. For a new
[java]   application, the default target is the
[java]   administration server.
[java] -deploy   Make an application available for service.
[java] -redeploy Replace a running application partially or
[java]   entirely.
[java] -undeploy Take an application out of service.
[java]

BUILD FAILED
File.. C:\Documents and Settings\mnirmala\.maven\cache\maven-webtest-plugin-
0.1.0\plugin.jelly
Element... java
Line.. 105
Column 100
Java returned: 1
Total time: 3 seconds
Finished at: Tue Aug 30 10:32:45 GMT+05:30 2005


Thankyou,
Nirmala

-Original Message-
From: NIRMALA Manivasagam [mailto:[EMAIL PROTECTED]
Sent: Friday, August 19, 2005 12:18 PM
To: users@maven.apache.org
Subject: To stop commit


Hi,


Iam trying to restrict the access of my repository to other users.

iam using pserver in windows 2000.i have created readers and writers file under 
CVSROOT.this is not allowing the users to restrict to access 

the repositorywhat can i do for that?? 

can anybody helpme in this point.

Thanks,
Nirmala
Confidentiality Statement:

This message is intended only for the individual or entity to which it is 
addressed. It may contain privileged, confidential information which is exempt 
from disclosure under applicable laws. If you are not the intended recipient,
please note that you are strictly prohibited from disseminating or distributing
this information (other than to the intended recipient) or copying this 
information. 
If you have received this communication in error, please notify us immediately 
by return email.



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


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

[m1] Conditional dependencies

2005-08-29 Thread Wendy Smoak
I'm working on a project that needs to compile and build with *either* the 
JSF Reference Implementation *or* Apache MyFaces.  This has to be 
user-specified, at build time.  In addition to compilation and including the 
correct .jar files in a webapp, there's also a modification that must be 
done to web.xml, commenting out a section if we're using the RI, leaving it 
in place for MyFaces.


And I had it working by having the user specify which JSF api and 
implementation .jar files to use, as properties:


maven.shale.jsf.api.jar=${maven.repo.local}/myfaces/jars/myfaces-jsf-api-1.0.9.jar
maven.shale.jsf.impl.jar=${maven.repo.local}/myfaces/jars/myfaces-impl-1.0.9.jar
  or
maven.shale.jsf.api.jar=${maven.repo.local}/javax.faces/jars/jsf-api-1.1.jar
maven.shale.jsf.impl.jar=${maven.repo.local}/javax.faces/jars/jsf-impl-1.1.jar

But then I found out that for MyFaces, there is a *third* .jar file that 
must be included in the .war file.  So now (realizing that there's probably 
no way I can avoid a bunch of scripting) I'm thinking of having the user 
specify either:


maven.shale.jsf = [myfaces|jsfri]
 or
maven.shale.jsf.ri = [true|false]
maven.shale.jsf.myfaces = [true|false]

Before I go any further with that, is there a precedent I should follow?

Alternately, because I can't specify "a" dependency in the project.xml file, 
I already wrote 'myfaces-project.xml' which does nothing but declare the 
dependencies so Maven will download them.  Is it possible that the "right 
answer" is to have a 'myfaces-project.xml' file in each directory and do 
either


$ maven build-all
  or
$ maven -p myfaces-project.xml build-all

depending on which JSF implementation you want to use?  I'm not sure I want 
to start down that path, given that there may eventually be multiple JSF 
implementations from which to choose.


What would you do in this situation?

If you want to take a look at the files:
  http://svn.apache.org/viewcvs.cgi/struts/shale/trunk/
or
  $ svn co http://svn.apache.org/repos/asf/struts/shale/trunk/ shale

(If you want to try to build it, read this first: 
http://wiki.wsmoak.net/cgi-bin/wiki.pl?ShaleMavenBuild )


Thanks for any advice!  I note that there is only one thread on this topic 
in the archives... one post, with no replies.


--
Wendy Smoak



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



RE: [m2] Proxy Settings Test

2005-08-29 Thread Pepper Jobe
Update,

I have figured out what my problem was.  I had entered my  element 
directly within my  element in my xml, instead of nesting it inside 
of a  element.  This brings me to a new question though.  Shouldn't 
the xml be checked against a schema or DTD before maven continues with its 
invocation?

Thanks,
Pepper Jobe
SAS Institute 

-Original Message-
From: Pepper Jobe [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 29, 2005 8:37 PM
To: users@maven.apache.org
Subject: [m2] Proxy Settings Test

Team,

This is my first time posting to this list, so my apologies if I am not
following suggested practices or formats.

I have downloaded the maven-2.0-alpha-3-bin.zip for windows from your site and
followed the installation instructions.  I have also configured my settings.xml
file in my {home}/.m2 directory.  I am behind a firewall at work, and therefore
needed to set up a proxy entry in the settings.xml file.

Assuming that all of this was set up correctly, I tried a:

$>m2 archetype:create -DgroupId=com.company.app -DartifactId=my-app

Just to see what it does.  Unfortunately, as I found by using the -e option,
maven can't find the RELEASE maven-archetype-plugin, according to the stack
trace. I navigated in my web browser to the
http://repo1.maven.org/maven2/plugins URL, and was able to navigate to the 
org/apache/maven/plugins/maven-archetype-plugin directory with no problems.

This leads me to believe that the proxy settings that maven is picking up from
my settings.xml file may not be working correctly.  Is there an easy way to test
my suspicions?

Thanks,
Pepper Jobe
SAS Institute

-
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] - The value of ${basedir} has changed?

2005-08-29 Thread Trygve Laugstøl
On Tue, Aug 30, 2005 at 01:59:52AM +0200, [EMAIL PROTECTED] wrote:
> Hei,
> 
> I have recognised that the evaluation of ${basedir} has changed from my
> Maven2 build on 23.august to the one I downloaded and built on 29.august.
> 
> Building with Maven2 of 23.august would give the value of the actual
> directory where the POM is situated also when this POM is deep down in a
> hierarchy of POMs. But now I see that ${basedir} evaluates to the
> directory of the highest POM that is run in the hierarchy.

I think this is a known bug.

> 
> A plugin configuration in the POM in directory
> "C:\work\nims\main\j2ee\incatel-nims\nims-webservice\nims-webclient-dto"
> is like this:
> 
>   
> ${basedir}/src/main/java
>   

The ${basedir} prefix should not be required here if the output parameter
is of type File as it should be. Maven should build the proper path for
you in the constructed File object.

[snip]

--
Trygve


signature.asc
Description: Digital signature


[m2] Proxy Settings Test

2005-08-29 Thread Pepper Jobe
Team,

This is my first time posting to this list, so my apologies if I am not
following suggested practices or formats.

I have downloaded the maven-2.0-alpha-3-bin.zip for windows from your site and
followed the installation instructions.  I have also configured my settings.xml
file in my {home}/.m2 directory.  I am behind a firewall at work, and therefore
needed to set up a proxy entry in the settings.xml file.

Assuming that all of this was set up correctly, I tried a:

$>m2 archetype:create -DgroupId=com.company.app -DartifactId=my-app

Just to see what it does.  Unfortunately, as I found by using the -e option,
maven can't find the RELEASE maven-archetype-plugin, according to the stack
trace. I navigated in my web browser to the
http://repo1.maven.org/maven2/plugins URL, and was able to navigate to the 
org/apache/maven/plugins/maven-archetype-plugin directory with no problems.

This leads me to believe that the proxy settings that maven is picking up from
my settings.xml file may not be working correctly.  Is there an easy way to test
my suspicions?

Thanks,
Pepper Jobe
SAS Institute

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



Re: [M2] - The value of ${basedir} has changed?

2005-08-29 Thread Sachin Patel
Yes, I'm am seeing a similar issue but on the Alpha 3 version and its 
causing build failures when invoking a build from the parent POM.  My 
Child POM's have plugin configuration info relative to that project, but 
when invoked from the parent POM, those goals fail as it looks for 
resources relative to the parent POM level rather then child POM.


[EMAIL PROTECTED] wrote:


Hei,

I have recognised that the evaluation of ${basedir} has changed from 
my Maven2 build on 23.august to the one I downloaded and built on 
29.august.


Building with Maven2 of 23.august would give the value of the actual 
directory where the POM is situated also when this POM is deep down in 
a hierarchy of POMs. But now I see that ${basedir} evaluates to the 
directory of the highest POM that is run in the hierarchy.


A plugin configuration in the POM in directory 
"C:\work\nims\main\j2ee\incatel-nims\nims-webservice\nims-webclient-dto" 
is like this:




${basedir}/src/main/java


Result log from using 23.august build of Maven2:

"output: 
C:\work\nims\main\j2ee\incatel-nims\nims-webservice\nims-webclient-dto\src\main\java" 




Result log from using 29.august build of Maven2:

"output: C:\work\nims\main\j2ee\src\main\java"

And of course, my application build breaks. My question then:

Is this an unintended side effect of a change (bug) or will basedir 
from now refer to the highest level in the POM hierarchy that is run? 
If so, how do I refer to the actual directories of the other POMs?



Best regards
Tore Larsen
Senior Software Engineer
Incatel
EDB Telecom AS



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



[M2] - The value of ${basedir} has changed?

2005-08-29 Thread tore.larsen
Title: [M2] - The value of ${basedir} has changed?







Hei,


I have recognised that the evaluation of ${basedir} has changed from my Maven2 build on 23.august to the one I downloaded and built on 29.august.

Building with Maven2 of 23.august would give the value of the actual directory where the POM is situated also when this POM is deep down in a hierarchy of POMs. But now I see that ${basedir} evaluates to the directory of the highest POM that is run in the hierarchy.

A plugin configuration in the POM in directory "C:\work\nims\main\j2ee\incatel-nims\nims-webservice\nims-webclient-dto" is like this:


    

    ${basedir}/src/main/java

    


Result log from using 23.august build of Maven2:


"output: C:\work\nims\main\j2ee\incatel-nims\nims-webservice\nims-webclient-dto\src\main\java"



Result log from using 29.august build of Maven2:


"output: C:\work\nims\main\j2ee\src\main\java"


And of course, my application build breaks. My question then: 


Is this an unintended side effect of a change (bug) or will basedir from now refer to the highest level in the POM hierarchy that is run? If so, how do I refer to the actual directories of the other POMs?


Best regards

Tore Larsen

Senior Software Engineer
Incatel
EDB Telecom AS



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

Re: Cobertura 1.1 for M1.1b1

2005-08-29 Thread Carlos Sanchez
Hi,

The plugin is as *ready* as an open source project made in free time
can be. That error you comment was already noticed by other people,
but I had no time to take a look at it. Any help is appreciate.

Sorry

On 8/29/05, Vitaliy Geraymovych <[EMAIL PROTECTED]> wrote:
> I am trying incorporate cobertura into my project reports. So far not
> much luck. When I run cobertura on individual project it shows
> completion but than report shows 0% coverage. When I run
> multiproject:site cobertura fails in test:test because of missing
> classpath dependencies. Test:test runs fine by itself. I would
> appreciate any help.
> 
> Thanks,
> Vitaliy
> 
> -
> 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: Cobertura 1.1 for M1.1b1

2005-08-29 Thread Aaron Smuts
http://jira.codehaus.org/browse/MPJCOVERAGE-25

I submitted a version that works fine for me.  

Aaron

--- Vitaliy Geraymovych <[EMAIL PROTECTED]>
wrote:

> I am trying incorporate cobertura into my project
> reports. So far not
> much luck. When I run cobertura on individual
> project it shows
> completion but than report shows 0% coverage. When I
> run
> multiproject:site cobertura fails in test:test
> because of missing
> classpath dependencies. Test:test runs fine by
> itself. I would
> appreciate any help.
> 
> Thanks,
> Vitaliy
> 
>
-
> 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]



Cobertura 1.1 for M1.1b1

2005-08-29 Thread Vitaliy Geraymovych
I am trying incorporate cobertura into my project reports. So far not
much luck. When I run cobertura on individual project it shows
completion but than report shows 0% coverage. When I run
multiproject:site cobertura fails in test:test because of missing
classpath dependencies. Test:test runs fine by itself. I would
appreciate any help.

Thanks,
Vitaliy

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



How to install a plugin for m2?

2005-08-29 Thread Wendell Beckwith
I have been trying to piece together the exact steps required to
compile,install and test a java-based helloworld type plugin and it
still fails miserable.  I'm currently using 2.0-alpha-3.  The plugin
builds and installs fine, but I get the following:
 
E:\dev\workspace\maven-myhello-plugin>m2 clean:clean install
[WARNING] DEPRECATED: Please specify the local repository as:
 

E:/dev/maven-repo
...

 
[INFO]

-
---
[INFO] Building My Hello Plugin
[INFO]

-
---
[INFO] maven-clean-plugin: resolved to version 2.0-alpha-3 from local
repository
 
[INFO] [clean:clean]
[INFO] Deleting directory E:\dev\workspace\maven-myhello-plugin\target
[INFO] maven-plugin-plugin: resolved to version 2.0-alpha-3 from local
repository
[INFO] maven-resources-plugin: resolved to version 2.0-alpha-3 from
local repository
[INFO] maven-compiler-plugin: resolved to version 2.0-alpha-3 from local
repository
[INFO] maven-surefire-plugin: resolved to version 2.0-alpha-3 from local
repository
[INFO] maven-jar-plugin: resolved to version 2.0-alpha-3 from local
repository
[INFO] maven-install-plugin: resolved to version 2.0-alpha-3 from local
repository
[INFO] [plugin:descriptor]
[INFO] [resources:resources]
[INFO] [compiler:compile]
Compiling 1 source file to
E:\dev\workspace\maven-myhello-plugin\target\classes
[INFO] [resources:testResources]
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Setting reports dir:
E:\dev\workspace\maven-myhello-plugin\target/surefire-reports
 
---
 T E S T S
---
There are no test to run.
 
Results :
[surefire] Tests run: 0, Failures: 0, Errors: 0
 
[INFO] [jar:jar]
[INFO] Building jar:
E:\dev\workspace\maven-myhello-plugin\target\maven-myhello-plugin-1.0-SN
APSHOT.jar
[INFO] [install:install]
[INFO] Installing
E:\dev\workspace\maven-myhello-plugin\target\maven-myhello-plugin-1.0-SN
APSHOT.jar to
E:\dev\maven-repo\com\myhello\maven\plugins\maven-myhello-plugin\1.0-SNA
PSHOT\maven-myhello-plugin-1.0-SNAPSHOT.jar
[INFO]

-
---
[INFO] BUILD SUCCESSFUL
[INFO]

-
---
[INFO] Total time: 4 seconds
[INFO] Finished at: Mon Aug 29 15:31:43 CDT 2005
[INFO] Final Memory: 3M/7M
[INFO]

-
---
 
E:\dev\workspace\maven-myhello-plugin>
 
 
 

Now if I try to execute maven I get the following error:
 
E:\dev\workspace\runtime>m2 -e myhello:hello
+ Error stacktraces are turned on.
[WARNING] DEPRECATED: Please specify the local repository as:
 

E:/dev/maven-repo
...

 
[INFO]

-
---
[INFO] Building Runtime
[INFO]

-
---
[INFO] maven-myhello-plugin: checking for updates from central-plugins
[INFO] Retrieving release information for maven-myhello-plugin
FATAL ERROR: Error executing Maven for a project
Error stacktrace:
org.apache.maven.reactor.ReactorException: Error executing project
within the re
actor
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:190)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:269)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
 
at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
Caused by: org.apache.maven.lifecycle.LifecycleExecutionException: Error
resolving plugin version
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(De
faultLifecycleExecutor.java:537)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:149)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:133)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:103)
at
org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:261)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:180)
... 9 more
Caused by:
org.apache.maven.plugin.version.PluginVersionResolutionException: Error
resolving ver

RE: [m2] Finding a plugin we wrote?

2005-08-29 Thread Dave Neuer
Sorry to waste bandwidth, fixed this myself (needed a
RELEASE.version.txt file).

Thanks anyway.

Dave

-Original Message-
From: Dave Neuer 
Sent: Monday, August 29, 2005 4:55 PM
To: users@maven.apache.org
Subject: [m2] Finding a plugin we wrote?

Hi,

In order to be able to reuse test code (see
http://mail-archives.apache.org/mod_mbox/maven-users/200508.mbox/%3cD1BD
[EMAIL PROTECTED]),
I've written a plugin which will create a test artifact so that other
projects can depend on that.

However, I'm only able to invoke the plugin if it's in my local
repository and I use the -no-plugin-updates option. Without that option,
I get the following stacktrace:

java.lang.NullPointerException
at
org.apache.maven.artifact.transform.AbstractVersionTransformation.resolv
eVersion(AbstractVersionTransformation.java:133)
at
org.apache.maven.artifact.transform.ReleaseArtifactTransformation.transf
ormForResolve(ReleaseArtifactTransformation.java:51)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(Defau
ltArtifactResolver.java:84)
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveRelea
seVersion(DefaultPluginVersionManager.java:566)
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi
nVersion(DefaultPluginVersionManager.java:99)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginM
anager.java:192)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default
LifecycleExecutor.java:351)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycl
e(DefaultLifecycleExecutor.java:314)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMa
ppings(DefaultLifecycleExecutor.java:242)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:128)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:103)
at
org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:261)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:180)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:269)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
at org.codehaus.classworlds.Launcher.main(Launcher.java:363)

This, despite the fact that we have our own maven repo set up, and I am
pointing to it in the  section of the POM for the
project that wants to use this.

Can anyone tell me what I need to do to use the plugin without having to
have it hosted at the Apache maven repo?

Thanks,
Dave

-
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, scm:update & subversion

2005-08-29 Thread Kahn, Peter
Ahh.  Its always, but now I crash in a
new and different way:

Now scm:update yields:
[ERROR] Cause:
org.apache.maven.plugin.MojoExecutionException: Error configuring plugin
for execution of 'scm:update'.
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:378)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:169)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
l(DefaultLifecycleExecutor.java:150)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:133)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:103)
at
org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:261)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:180)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:269)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
Caused by: org.apache.maven.plugin.PluginConfigurationException: Cannot
resolve plugin dependencies
at
org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComp
lete(DefaultPluginManager.java:616)
at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPl
uginManager.java:493)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:373)
... 15 more
Caused by:
org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException:
Unable to read the metadata file
at
org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMeta
dataSource.java:88)
at
org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComp
lete(DefaultPluginManager.java:564)
... 17 more
Caused by: org.apache.maven.project.ProjectBuildingException: Unable to
find the POM in the repository
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromReposit
ory(DefaultMavenProjectBuilder.java:238)
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(Defa
ultMavenProjectBuilder.java:491)
at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenPr
ojectBuilder.java:297)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(
DefaultMavenProjectBuilder.java:220)
at
org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMeta
dataSource.java:81)
... 18 more
Caused by:
org.apache.maven.artifact.resolver.ArtifactResolutionException: Unable
to download the artifact from any repository
  org.apache.maven.plugins:maven-plugin-parent:2.0-beta-1-SNAPSHOT:pom

from the specified remote repositories:
  http://repo1.maven.org/maven2
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(Defau
ltArtifactResolver.java:116)
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromReposit
ory(DefaultMavenProjectBuilder.java:233)
... 22 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable
to download the artifact from any repository
at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Defaul
tWagonManager.java:224)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(Defau
ltArtifactResolver.java:104)
... 23 more

-Original Message-
From: Kahn, Peter [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 29, 2005 4:52 PM
To: Maven Users List
Subject: RE: m2, scm:update & subversion

Thanks for the information. I realize that I'm requesting a snapshot, I
do not know why it is that I am as I do not see anything in my
settings.xml or my local repository that would indicate this dependency.

In addition, it looks like according to the xsd that the use of the
element releases is not allowed:
http://maven.apache.org/maven-v4_0_0.xsd

m2 gives me this error
[INFO]


[INFO] Reason: Failed to parse model from file
'c:\sandbox\BaseCamp\m2mhttp\Ftp\pom.xml'.
Error: 'parser must be on START_TAG or TEXT to read text
(position: START_TAG seen ...\n... @59:20) '

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Monday, August 29, 2005 4:42 PM
To: Maven Users List
Subject: Re: m2, scm:upda

RE: m2, scm:update & subversion

2005-08-29 Thread Kenney Westerhof
On Mon, 29 Aug 2005, Kahn, Peter wrote:

Replace 'releases' with 'snapshots' and 'false' with 'true'.. :)

-- Kenney
> Thanks for the information. I realize that I'm requesting a snapshot, I
> do not know why it is that I am as I do not see anything in my
> settings.xml or my local repository that would indicate this dependency.
>
> In addition, it looks like according to the xsd that the use of the
> element releases is not allowed:
>   http://maven.apache.org/maven-v4_0_0.xsd
>
> m2 gives me this error
>   [INFO]
> 
> 
>   [INFO] Reason: Failed to parse model from file
> 'c:\sandbox\BaseCamp\m2mhttp\Ftp\pom.xml'.
>   Error: 'parser must be on START_TAG or TEXT to read text
> (position: START_TAG seen ...\n... @59:20) '
>
> -Original Message-
> From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 29, 2005 4:42 PM
> To: Maven Users List
> Subject: Re: m2, scm:update & subversion
>
> maven-scm-plugin doesn't exist in ibiblio because it's a snapshot.
>
> If you want to use it, you need to use our snapshot plugins
> repositories. Add this in your pom :
>
>
>  
>snapshots-plugins
>Maven Snapshot Plugins Development Repository
>http://snapshots.maven.codehaus.org/maven2/plugins
>
>  false
>
>  
>
>
>
> Emmanuel
>
> Kahn, Peter wrote:
> > I have a simple project that I'm trying to get build under continuum,
> > but I seem to have and issue with scm:update which is stopping me.
> >
> > I have the following in my pom.xml
> > 
> >
> > scm:svn:http://svn/svn/basecamp/SplitTop/m2main/Ftp > ct
> > ion>
> > http://svn/svn/basecamp/SplitTop/m2main/Ftp
> > 
> >
> >
> > When I ask for the scm:update goal to be attained, I get the following
> > response:
> > [WARNING] Unable to get resource from repository
> > http://www.ibiblio.org/maven2/plugins/
> > Downloading:
> > http://repo1.maven.org/maven2/plugins/org/apache/maven/plugins/maven-s
> > cm
> > -plugin/1.0-alpha-2-SNAPSHOT/maven-scm-plugin-1.0-alpha-2-SNAPSHOT.jar
> > [WARNING] Unable to get resource from repository
> > http://repo1.maven.org/maven2/plugins
> > FATAL ERROR: Error executing Maven for a project
> >
> >
> > I added in ibiblio a repository, and now I get an additional error:
> > [INFO] maven-scm-plugin: resolved to version 1.0-alpha-2-SNAPSHOT from
>
> > local repository
> > Downloading:
> > http://www.ibiblio.org/maven2/plugins//org/apache/maven/plugins/maven-
> > sc
> > m-plugin/1.0-alpha-2-SNAPSHOT/maven-scm-plugin-1.0-alpha-2-SNAPSHOT.ja
> > r
> >
> >
> >
> > I have searched my local repository and it lacks the jar files for the
>
> > 1.0-alpha-2-SNAPSHOT.  I gather people have been using m2 with scms,
> > so has any one run into this problem or does any one have any
> > suggestions on how to investigate or remedy the problem?
> >
> > Thanks for the help.
> >
> >
> >
> >
> > -
> > 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]
>
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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



[m2] Finding a plugin we wrote?

2005-08-29 Thread Dave Neuer
Hi,

In order to be able to reuse test code (see
http://mail-archives.apache.org/mod_mbox/maven-users/200508.mbox/%3cD1BD
[EMAIL PROTECTED]),
I've written a plugin which will create a test artifact so that other
projects can depend on that.

However, I'm only able to invoke the plugin if it's in my local
repository and I use the -no-plugin-updates option. Without that option,
I get the following stacktrace:

java.lang.NullPointerException
at
org.apache.maven.artifact.transform.AbstractVersionTransformation.resolv
eVersion(AbstractVersionTransformation.java:133)
at
org.apache.maven.artifact.transform.ReleaseArtifactTransformation.transf
ormForResolve(ReleaseArtifactTransformation.java:51)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(Defau
ltArtifactResolver.java:84)
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveRelea
seVersion(DefaultPluginVersionManager.java:566)
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi
nVersion(DefaultPluginVersionManager.java:99)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginM
anager.java:192)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default
LifecycleExecutor.java:351)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycl
e(DefaultLifecycleExecutor.java:314)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMa
ppings(DefaultLifecycleExecutor.java:242)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:128)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:103)
at
org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:261)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:180)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:269)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
at org.codehaus.classworlds.Launcher.main(Launcher.java:363)

This, despite the fact that we have our own maven repo set up, and I am
pointing to it in the  section of the POM for the
project that wants to use this.

Can anyone tell me what I need to do to use the plugin without having to
have it hosted at the Apache maven repo?

Thanks,
Dave

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



RE: m2, scm:update & subversion

2005-08-29 Thread Kahn, Peter
Thanks for the information. I realize that I'm requesting a snapshot, I
do not know why it is that I am as I do not see anything in my
settings.xml or my local repository that would indicate this dependency.

In addition, it looks like according to the xsd that the use of the
element releases is not allowed:
http://maven.apache.org/maven-v4_0_0.xsd

m2 gives me this error
[INFO]


[INFO] Reason: Failed to parse model from file
'c:\sandbox\BaseCamp\m2mhttp\Ftp\pom.xml'.
Error: 'parser must be on START_TAG or TEXT to read text
(position: START_TAG seen ...\n... @59:20) '

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 29, 2005 4:42 PM
To: Maven Users List
Subject: Re: m2, scm:update & subversion

maven-scm-plugin doesn't exist in ibiblio because it's a snapshot.

If you want to use it, you need to use our snapshot plugins
repositories. Add this in your pom :

   
 
   snapshots-plugins
   Maven Snapshot Plugins Development Repository
   http://snapshots.maven.codehaus.org/maven2/plugins
   
 false
   
 
   


Emmanuel

Kahn, Peter wrote:
> I have a simple project that I'm trying to get build under continuum, 
> but I seem to have and issue with scm:update which is stopping me.
> 
> I have the following in my pom.xml
>   
>   
> scm:svn:http://svn/svn/basecamp/SplitTop/m2main/Ftp ct
> ion>
>   http://svn/svn/basecamp/SplitTop/m2main/Ftp
>   
> 
> 
> When I ask for the scm:update goal to be attained, I get the following
> response:
> [WARNING] Unable to get resource from repository 
> http://www.ibiblio.org/maven2/plugins/
> Downloading:
> http://repo1.maven.org/maven2/plugins/org/apache/maven/plugins/maven-s
> cm 
> -plugin/1.0-alpha-2-SNAPSHOT/maven-scm-plugin-1.0-alpha-2-SNAPSHOT.jar
> [WARNING] Unable to get resource from repository 
> http://repo1.maven.org/maven2/plugins
> FATAL ERROR: Error executing Maven for a project
> 
> 
> I added in ibiblio a repository, and now I get an additional error:
> [INFO] maven-scm-plugin: resolved to version 1.0-alpha-2-SNAPSHOT from

> local repository
> Downloading:
> http://www.ibiblio.org/maven2/plugins//org/apache/maven/plugins/maven-
> sc 
> m-plugin/1.0-alpha-2-SNAPSHOT/maven-scm-plugin-1.0-alpha-2-SNAPSHOT.ja
> r
> 
> 
> 
> I have searched my local repository and it lacks the jar files for the

> 1.0-alpha-2-SNAPSHOT.  I gather people have been using m2 with scms, 
> so has any one run into this problem or does any one have any 
> suggestions on how to investigate or remedy the problem?
> 
> Thanks for the help.
> 
> 
> 
> 
> -
> 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: Does APT support Figures in M2?

2005-08-29 Thread Vincent Siveton
Hi again,

> One difference I noticed was the layout.
> 
> I originally had:
> 
> +- src/
>+- site/
>+- apt/
>|   +- test.apt
>+- resources/
>|   +- myNewImage.gif

You are right. I did a wrong cut and paste ;) Sorry.

[SNIP]

Test again with your sample. Seems to work again. 

> I'm using maven version 2.0-alpha-3 on windows XP with the jdk 1.5.0_03.
> If you have a project that works that you can part twith then that would
> be a big help, as I could verify if it works on my setup.

I will do in a few minutes.

Cheers,

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



Re: m2, scm:update & subversion

2005-08-29 Thread Emmanuel Venisse

maven-scm-plugin doesn't exist in ibiblio because it's a snapshot.

If you want to use it, you need to use our snapshot plugins 
repositories. Add this in your pom :


  

  snapshots-plugins
  Maven Snapshot Plugins Development Repository
  http://snapshots.maven.codehaus.org/maven2/plugins
  
false
  

  


Emmanuel

Kahn, Peter wrote:

I have a simple project that I'm trying to get build under continuum,
but I seem to have and issue with scm:update which is stopping me.

I have the following in my pom.xml


scm:svn:http://svn/svn/basecamp/SplitTop/m2main/Ftp
http://svn/svn/basecamp/SplitTop/m2main/Ftp



When I ask for the scm:update goal to be attained, I get the following
response:
[WARNING] Unable to get resource from repository
http://www.ibiblio.org/maven2/plugins/
Downloading:
http://repo1.maven.org/maven2/plugins/org/apache/maven/plugins/maven-scm
-plugin/1.0-alpha-2-SNAPSHOT/maven-scm-plugin-1.0-alpha-2-SNAPSHOT.jar
[WARNING] Unable to get resource from repository
http://repo1.maven.org/maven2/plugins
FATAL ERROR: Error executing Maven for a project


I added in ibiblio a repository, and now I get an additional error:
[INFO] maven-scm-plugin: resolved to version 1.0-alpha-2-SNAPSHOT from
local repository
Downloading:
http://www.ibiblio.org/maven2/plugins//org/apache/maven/plugins/maven-sc
m-plugin/1.0-alpha-2-SNAPSHOT/maven-scm-plugin-1.0-alpha-2-SNAPSHOT.jar



I have searched my local repository and it lacks the jar files for the
1.0-alpha-2-SNAPSHOT.  I gather people have been using m2 with scms, so
has any one run into this problem or does any one have any suggestions
on how to investigate or remedy the problem?  


Thanks for the help.




-
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: Does APT support Figures in M2?

2005-08-29 Thread Wendell Beckwith
One difference I noticed was the layout.
 
I originally had:
 
+- src/
+- site/
+- apt/
|   +- test.apt
+- resources/
|   +- myNewImage.gif
 
However you had the resources folder at the same level as the site
folder.  So I changed my layout to the following:
 
+- src/
+- site/
+- apt/
|   +- test.apt
+- resources/
|   +- myNewImage.gif
 
and I still can't get a figure to show up if I use maven.
 
my apt file, test.apt, follows:
~~~
foo

bar

[images/myNewImage.gif] My New Image

~~~
I'm using maven version 2.0-alpha-3 on windows XP with the jdk 1.5.0_03.
If you have a project that works that you can part twith then that would
be a big help, as I could verify if it works on my setup.
 
Wendell Beckwith
 
 
 

This e-mail transmission may contain information that is proprietary, 
privileged and/or confidential and is intended exclusively for the person(s) to 
whom it is addressed. Any use, copying, retention or disclosure by any person 
other than the intended recipient or the intended recipient's designees is 
strictly prohibited. If you are the intended recipient, you must treat the 
information in confidence and in accordance with all laws related to the 
privacy and confidentiality of such information.  If you are not the intended 
recipient or their designee, please notify the sender immediately by return 
e-mail and delete all copies of this email, including all attachments.

m2, scm:update & subversion

2005-08-29 Thread Kahn, Peter
I have a simple project that I'm trying to get build under continuum,
but I seem to have and issue with scm:update which is stopping me.

I have the following in my pom.xml


scm:svn:http://svn/svn/basecamp/SplitTop/m2main/Ftp
http://svn/svn/basecamp/SplitTop/m2main/Ftp



When I ask for the scm:update goal to be attained, I get the following
response:
[WARNING] Unable to get resource from repository
http://www.ibiblio.org/maven2/plugins/
Downloading:
http://repo1.maven.org/maven2/plugins/org/apache/maven/plugins/maven-scm
-plugin/1.0-alpha-2-SNAPSHOT/maven-scm-plugin-1.0-alpha-2-SNAPSHOT.jar
[WARNING] Unable to get resource from repository
http://repo1.maven.org/maven2/plugins
FATAL ERROR: Error executing Maven for a project


I added in ibiblio a repository, and now I get an additional error:
[INFO] maven-scm-plugin: resolved to version 1.0-alpha-2-SNAPSHOT from
local repository
Downloading:
http://www.ibiblio.org/maven2/plugins//org/apache/maven/plugins/maven-sc
m-plugin/1.0-alpha-2-SNAPSHOT/maven-scm-plugin-1.0-alpha-2-SNAPSHOT.jar



I have searched my local repository and it lacks the jar files for the
1.0-alpha-2-SNAPSHOT.  I gather people have been using m2 with scms, so
has any one run into this problem or does any one have any suggestions
on how to investigate or remedy the problem?  

Thanks for the help.




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



Re: Does APT support Figures in M2?

2005-08-29 Thread Vincent Siveton
Hi,

Seems to work for me with this following site structure:
+- src/
   +- site/
  +- apt/
  |  +- index.apt
   +- resources/
  +- img/
  |  +- myimage.gif

And in the index.apt, the following definition
[img/myimage.gif] My image

Cheers,

Vincent

2005/8/29, Wendell Beckwith <[EMAIL PROTECTED]>:
> I have tried unsuccessfully to include a image in an apt document when
> using the "m2 site:site" goal.  I have added the image to the resources
> folder as well as put it in the same directory with the apt document,
> but it still fails to render a link to it.
> 
> However, if I run aptconvert from the command line then all is well.  So
> am I just missing something in m2 or is this a bug?
> 
> Wendell Beckwith
> 
> 
> This e-mail transmission may contain information that is proprietary, 
> privileged and/or confidential and is intended exclusively for the person(s) 
> to whom it is addressed. Any use, copying, retention or disclosure by any 
> person other than the intended recipient or the intended recipient's 
> designees is strictly prohibited. If you are the intended recipient, you must 
> treat the information in confidence and in accordance with all laws related 
> to the privacy and confidentiality of such information.  If you are not the 
> intended recipient or their designee, please notify the sender immediately by 
> return e-mail and delete all copies of this email, including all attachments.
>

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



Re: M1 dependency

2005-08-29 Thread Sachin Patel

Nevermind. User error.

Sachin Patel wrote:
In M1, I'm having a basic problem just trying to add a dependency to 
another projects artifact.  In debug mode as you can see the 
blah-1.0-SNAPSHOT.jar gets picked up, but then the build fails because 
of an unsatisfied dependency.  What could be wrong?



[DEBUG] Adding reference: maven.dependency.classpath -> 
C:\eclipse\plugins\org.eclipse.core.resources_3.1.0.jar;C:\Documents 
and Settin

gs\Administrator\.maven\repository\blah\jars\blah-1.0-SNAPSHOT.jar
running script null
   [available] [VERBOSE] Found: src
[DEBUG] Adding reference: maven-classpath ->
[DEBUG] Adding reference: maven.compile.src.set ->
Verifying dependencies for 
org.apache.geronimo.test2:org.apache.geronimo.test2
popping off [EMAIL PROTECTED] for 
[EMAIL PROTECTED] in org.apache.geronimo.t

est2:org.apache.geronimo.test2
The build cannot continue because of the following unsatisfied 
dependency:


blah-1.0-SNAPSHOT.jar

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



M1 dependency

2005-08-29 Thread Sachin Patel
In M1, I'm having a basic problem just trying to add a dependency to 
another projects artifact.  In debug mode as you can see the 
blah-1.0-SNAPSHOT.jar gets picked up, but then the build fails because 
of an unsatisfied dependency.  What could be wrong?



[DEBUG] Adding reference: maven.dependency.classpath -> 
C:\eclipse\plugins\org.eclipse.core.resources_3.1.0.jar;C:\Documents and 
Settin

gs\Administrator\.maven\repository\blah\jars\blah-1.0-SNAPSHOT.jar
running script null
   [available] [VERBOSE] Found: src
[DEBUG] Adding reference: maven-classpath ->
[DEBUG] Adding reference: maven.compile.src.set ->
Verifying dependencies for 
org.apache.geronimo.test2:org.apache.geronimo.test2
popping off [EMAIL PROTECTED] for 
[EMAIL PROTECTED] in org.apache.geronimo.t

est2:org.apache.geronimo.test2
The build cannot continue because of the following unsatisfied dependency:

blah-1.0-SNAPSHOT.jar

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



Does APT support Figures in M2?

2005-08-29 Thread Wendell Beckwith
I have tried unsuccessfully to include a image in an apt document when
using the "m2 site:site" goal.  I have added the image to the resources
folder as well as put it in the same directory with the apt document,
but it still fails to render a link to it.  
 
However, if I run aptconvert from the command line then all is well.  So
am I just missing something in m2 or is this a bug?
 
Wendell Beckwith
 

This e-mail transmission may contain information that is proprietary, 
privileged and/or confidential and is intended exclusively for the person(s) to 
whom it is addressed. Any use, copying, retention or disclosure by any person 
other than the intended recipient or the intended recipient's designees is 
strictly prohibited. If you are the intended recipient, you must treat the 
information in confidence and in accordance with all laws related to the 
privacy and confidentiality of such information.  If you are not the intended 
recipient or their designee, please notify the sender immediately by return 
e-mail and delete all copies of this email, including all attachments.

Re: [M2] Problem building repoclean

2005-08-29 Thread Andy Glick

Trygve Laugstøl wrote:

On Mon, Aug 29, 2005 at 03:14:21AM -0400, Andy Glick wrote:

I've been having difficulty building repoclean for a number of days, and I 
get the same error message every time:



Sounds like a bug in Maven somewhere, can you try to change the version
back to SNAPSHOT? Though I fear that this can break something since the
version has been hardcoded in the first place, but it should be updated
ASAP.

--
Trygve


Trygve, thanks for getting back to me.

Since I sent the 1st post I svn-up'd the maven-2-trunk and rebuilt maven 
successfully. I did the checkout about 2 hours ago. I restored the original 
POM in the repoclean directory.


The 1st build attempt failed as follows:

[INFO] 

[INFO] BUILD FAILURE
[INFO] 


[INFO] Main Error:
 Unable to download the artifact from any repository
 plexus:plexus-mail-sender-api:1.0-alpha-2-SNAPSHOT:jar

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

Path to dependency: 
	1) org.apache.maven:repoclean:jar:1.0-SNAPSHOT

2) plexus:plexus-mail-sender-api:jar:1.0-alpha-2-SNAPSHOT


I added http://snapshots.maven.codehaus.org/maven2/ to the list of 
repositories, and the build was able to locate 
plexus:plexus-mail-sender-api:1.0-alpha-2-SNAPSHOT:jar but the 2nd 
build attempt failed as follows:


[INFO] 

[INFO] BUILD FAILURE
[INFO] 


[INFO] Main Error:
 Unable to download the artifact from any repository
 org.apache.maven:maven-model:2.0-beta-1-SNAPSHOT:jar

from the specified remote repositories:
 http://snapshots.maven.codehaus.org/maven2/, http://repo1.maven.org/maven2

Path to dependency: 
	1) org.apache.maven:repoclean:jar:1.0-SNAPSHOT

2) org.apache.maven:maven-model:jar:all:2.0-beta-1-SNAPSHOT

The maven-model:jar:all:2.0-beta-1-SNAPSHOT artifact is in my local repo and I 
used
the --offline switch, but the build still failed. Is there a way to successfully 
turn off SNAPSHOT updating?


Might there be another repository from which I could download the maven-model 
snapshot?
If not, do you have any other thoughts about how to debug this issue? 





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



Re: [m2] Use variables in configuration of a plug in

2005-08-29 Thread Kenney Westerhof
On Mon, 29 Aug 2005, Gilles Scokart wrote:

Hi Gilles,

Lucky for you I can reproduce this :)

You want to use 'runtime' dependencies in the generate-test-resources
phase, but they are not resolved there yet (the velocity-dep dependency).
I'm not sure but you could try specifying 'test' as a scope, but I think
that's only used for tests at runtime. If you change it to 'compile'
(we need a 'test-compile' scope maybe..?) it should work..

Although it's weird that getRuntimeClasspathElements returns the same
as getCompileClasspathElements when the 'runtime' scope hasn't been
resolved yet.

Comments from other m2 developers?

-- Kenney

>
> > > I have tried to use ${project.compileClasspathElements} into the
> > > configuration tag of a plugin (antrun), and it seems to work.
> >
> >How did you use it? Could you post the pom.xml?
>
> I will try to clean it a little bit, then I will post it here.
>
> >
> > > But when I use ${project.runtimeClasspathElements}, I only have the same
> > > result.  The pure runtime dependencies are not present in the list.
> >
> >That's because all compile time dependencies are also runtime
> >dependencies. See
> >http://maven.apache.org/maven2/dependency-mechanism.html#dependency_scope
> >
>
> Yes, but runtime class path should contain more.  It should contain the
> compile + pure runtime dependencies.
>
> > > Is it a general behaviour that can be used in any plugin or is it
> >specific
> > > to antrun ?
> >
> >It's general behaviour.
>
> Does it mean that we can use $project.xxx in the configuration of other
> plugin.  Is there other variable than $project.  For instance, I have tried
> (unsuccessfully) to found a varaible that map to the local repository.
>
> >I'm really curious how you intend to use this.. AFAIK it'll return
> >something like "[/path/to/a.jar,/path/to/b.jar]".
>
> That's exactly what I receive.  I use it because I have a project that build
> an ant task, and I want to test this ant task by executing it from the pom,
> in the testing phase.
> I use this value, to set a classpath.  I use a series of echo and relplace
> to format it correctly.
>
> _
> Créez gratuitement votre espace perso en ligne avec MSN Spaces !
> http://spaces.msn.com/?mkt=fr-be
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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



Re: [m2] Use variables in configuration of a plug in

2005-08-29 Thread Gilles Scokart


Here is a sample pom.xml

When I execute it, I actually obtain this in the result.txt file :

runtimeclasspath = 
C:\Dev\cygwin\home\ScokartG\project\testantrun\target\classes;C:\dev\data\maven2_repository\log4j\log

4j\1.2.11\log4j-1.2.11.jar;C:\dev\data\maven2_repository\ant\ant\1.6\ant-1.6.jar;C:\dev\data\maven2_repository\velocity\
velocity\1.4\velocity-1.4.jar
compileclasspath = 
C:\dev\data\maven2_repository\log4j\log4j\1.2.11\log4j-1.2.11.jar;C:\dev\data\maven2_repository\ant\a

nt\1.6\ant-1.6.jar;C:\dev\data\maven2_repository\velocity\velocity\1.4\velocity-1.4.jar

The runtime classpth contains target/classes + all other jar contained in 
compilepath, but doesn't contains the velocity-dep jar.


_
Créez gratuitement votre espace perso en ligne avec MSN Spaces !  
http://spaces.msn.com/?mkt=fr-be
http://maven.apache.org/maven-v4_0_0.xsd";>

  4.0.0
  
  testing
  testantrun
  jar
  0.1-SNAPSHOT
  
  TestAntRun

  
  

  
org.apache.maven.plugins
maven-project-info-reports-plugin
  

  
  
  
  
	src/main/java
src/test/java



	
  			maven-antrun-plugin
  			1.0-SNAPSHOT
  			
 			
   generate-test-sources
   
 
 	
runtimeclasspath = ${project.runtimeClasspathElements}
compileclasspath = ${project.compileClasspathElements}

 	
 	
 	
 	
 	 
 	
 	
 	 
 	
runtimeclasspath = ${runtimeclasspath}
compileclasspath = ${compileclasspath}

 	 
	
				
   
   
 run
   
 			
   			
			
	

  
 
  
  	
  		
  		nemonics_rep
  		Neonics
  		http://www.neonics.com/maven2/
  	
  
  
  

  junit
  junit
  3.8.1
  test



  velocity
  velocity
  1.4
  compile




  velocity
  velocity-dep
  1.4
  runtime



  jmock
  jmock
  1.0.1
  test



  jmock
  jmock-cglib
  1.0.1
  test



  ant
  ant
  1.6
  compile


 
  ant
  ant-launcher
  1.6
  test



  ant
  ant-apache-log4j
  1.6.5 
  test



  log4j
  log4j
  1.2.11
  compile


  



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

RE: POM inheritence in M2

2005-08-29 Thread Vincent Massol


> -Original Message-
> From: Kenney Westerhof [mailto:[EMAIL PROTECTED]
> Sent: lundi 29 août 2005 15:51
> To: Maven Users List
> Subject: RE: POM inheritence in M2
> 
> On Mon, 29 Aug 2005, Vincent Massol wrote:
> 
> Hi,
> 
> The inherited tag is only present for Report, ReportSet, Plugin, and
> Execution (nested in Plugin).
> 
> Normally everything get's inherited. However, for some plugins you don't
> want this, so you can override this behavior by specifying the
> false.
> 
> At least, that's my understanding.

Ok thanks for the clarification and sorry for the misunderstanding.

[snip]

Thanks
-Vincent






___
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com

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



Re: [m2] Use variables in configuration of a plug in

2005-08-29 Thread Gilles Scokart



> I have tried to use ${project.compileClasspathElements} into the
> configuration tag of a plugin (antrun), and it seems to work.

How did you use it? Could you post the pom.xml?


I will try to clean it a little bit, then I will post it here.



> But when I use ${project.runtimeClasspathElements}, I only have the same
> result.  The pure runtime dependencies are not present in the list.

That's because all compile time dependencies are also runtime
dependencies. See
http://maven.apache.org/maven2/dependency-mechanism.html#dependency_scope



Yes, but runtime class path should contain more.  It should contain the 
compile + pure runtime dependencies.


> Is it a general behaviour that can be used in any plugin or is it 
specific

> to antrun ?

It's general behaviour.


Does it mean that we can use $project.xxx in the configuration of other 
plugin.  Is there other variable than $project.  For instance, I have tried 
(unsuccessfully) to found a varaible that map to the local repository.



I'm really curious how you intend to use this.. AFAIK it'll return
something like "[/path/to/a.jar,/path/to/b.jar]".


That's exactly what I receive.  I use it because I have a project that build 
an ant task, and I want to test this ant task by executing it from the pom, 
in the testing phase.
I use this value, to set a classpath.  I use a series of echo and relplace 
to format it correctly.


_
Créez gratuitement votre espace perso en ligne avec MSN Spaces !  
http://spaces.msn.com/?mkt=fr-be



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



Re: [m2] Use variables in configuration of a plug in

2005-08-29 Thread Kenney Westerhof
On Mon, 29 Aug 2005, Gilles Scokart wrote:

Hi Gilles,

> I have tried to use ${project.compileClasspathElements} into the
> configuration tag of a plugin (antrun), and it seems to work.

How did you use it? Could you post the pom.xml?

> But when I use ${project.runtimeClasspathElements}, I only have the same
> result.  The pure runtime dependencies are not present in the list.

That's because all compile time dependencies are also runtime
dependencies. See
http://maven.apache.org/maven2/dependency-mechanism.html#dependency_scope

> Is it a general behaviour that can be used in any plugin or is it specific
> to antrun ?

It's general behaviour.

> Where can we found the list of defined variables ?

In antrun you can use ${project.*} where * is any MavenProject.java
property (get*), but you already figured that out. Other than that,
just ${basedir} is available (and your own custom defined properties,
and those ant provides by default).

> Why is the project.runtimeClasspathElements not set correctly?  Is it a bug?
> Did I made something wrong?

I'm really curious how you intend to use this.. AFAIK it'll return
something like "[/path/to/a.jar,/path/to/b.jar]".

>
> Thanks,
> Gilles Scokart
>
> _
> Cr�ez gratuitement votre espace perso en ligne avec MSN Spaces !
> http://spaces.msn.com/?mkt=fr-be
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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



Re: [m1] multiproject dependency problem

2005-08-29 Thread stéphane bouchet

sorry for long delay ...

see below .


Jörg Schaible a écrit :

stéphane bouchet wrote on Friday, August 26, 2005 3:44 PM:



Jörg Schaible a écrit :


stéphane bouchet wrote on Friday, August 26, 2005 11:54 AM:




OK, more infos :

1/ Using the multiproject 1.4.1 plugin
2/ Using Eclipse 3.1 with Mevenide
3/ in Fact, i have a project that manage the two others, called
  'maven'. it is in its project.properties that the props
maven.multiproject.includes and


maven.multiproject.basedirare sets. in


its project.xml, there is no dependency att all (just reports), and
this project is excluded when i launch 'multiproject:install' .



Can you call pom:validate ?

- Jörg



Wow. got lots of errors :)

the problem is that the pom:validate don't work with extended
descriptors. and my 'applets' and 'core' projects extends this one.



Oh, they normally do. They just don't like an inherited build section.


ok, understood.





Anyway i corrected some errors in 'maven' and still not working .



Originally I thought your using pre 1.0.2, since there was an error, where the 
reactor ignored the deps because of an exception.
 


SOmething strange too is that the docs in the maven site
about the project
descriptor does not match my acual (and corrected) pom ??

Maybe i could try Maven 1.1beta ?



Can't say. I use 1.0.2 without this problems and I have some multiprojects. Is 
your dependency section really in side the dependencies tags? Or do you have 
two depednencies sections (had any of this already)? I still believe it's 
something in your POMs.


HUm. i tried Maven 1.1 Beta and still no luck :(

Anyway i think there is some problem in my deps too, but could not find out 
where !!


Stéphane



- Jörg

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



[m2] Use variables in configuration of a plug in

2005-08-29 Thread Gilles Scokart
I have tried to use ${project.compileClasspathElements} into the 
configuration tag of a plugin (antrun), and it seems to work.


But when I use ${project.runtimeClasspathElements}, I only have the same 
result.  The pure runtime dependencies are not present in the list.


Is it a general behaviour that can be used in any plugin or is it specific 
to antrun ?

Where can we found the list of defined variables ?
Why is the project.runtimeClasspathElements not set correctly?  Is it a bug? 
Did I made something wrong?


Thanks,
Gilles Scokart

_
Créez gratuitement votre espace perso en ligne avec MSN Spaces !  
http://spaces.msn.com/?mkt=fr-be



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



RE: POM inheritence in M2

2005-08-29 Thread Kenney Westerhof
On Mon, 29 Aug 2005, Vincent Massol wrote:

Hi,

The inherited tag is only present for Report, ReportSet, Plugin, and
Execution (nested in Plugin).

Normally everything get's inherited. However, for some plugins you don't
want this, so you can override this behavior by specifying the
false.

At least, that's my understanding.

> Hi Sachin,
>
> > -Original Message-
> > From: Sachin Patel [mailto:[EMAIL PROTECTED]
> > Sent: lundi 29 ao�t 2005 14:21
> > To: Maven Users List
> > Subject: POM inheritence in M2
> >
> > I'm looking at POM inheritence in M2.. If I specify a parent POM what
> > gets included in the child POM, only elements in the Parent POM that
> > specify ? In M1, everything was pushed down, so how do things
> > like organization, url, etc.. get inherited?
>
> I think the inherited element affects only cases where the configuration
> element is both in the parent and in the children. If there are no such
> conflict elements are always inherited I think.
>
> That said, I agree with you that the new  element is misleading.
> Also, I still don't understand why it is required seen that there's already
> an attribute to specify in the children POM when you wish to merge same
> config elements. That said, I'm sure it is required for a good reason :-)
>
> John, could you please shed some light on it?
>
> Personally I would have expected that all elements would be inherited by
> default and merge would happen by default with children taking precedence
> when there is a conflict.
>
> -Vincent
>
>
>
>
>
>
> ___
> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> T�l�chargez cette version sur http://fr.messenger.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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



RE: Dependencies for EAR file containing several war files

2005-08-29 Thread Christopher White
Hi Vincent,

Thanks for the reply. Everything woerks fine now.

Best regards,

Christopher



-Message d'origine-
De : Vincent Massol [mailto:[EMAIL PROTECTED]
Envoyé : 29 August 2005 13:08
À : 'Maven Users List'
Objet : RE: Dependencies for EAR file containing several war files


Hi Christopher,

> -Original Message-
> From: Christopher White [mailto:[EMAIL PROTECTED]
> Sent: lundi 29 août 2005 12:25
> To: users@maven.apache.org
> Subject: Dependencies for EAR file containing several war files

[snip]

> I have tried to use :
>
>
>
> ...
>
> 
>
>   true
>   false
> 
>
> ...
>
>
>
> within the dependencies of each war file but this does not seem to have
> any
> effect. The jar files still find their way into the WEB-INF/lib directory.
> I
> suppose there is something here that I havent understood...

If you don't want to include a jar in the war, simply don't specify the
 property.

[snip]

Hope it helps,
-Vincent






___
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.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: POM inheritence in M2

2005-08-29 Thread Vincent Massol
Hi Sachin,

> -Original Message-
> From: Sachin Patel [mailto:[EMAIL PROTECTED]
> Sent: lundi 29 août 2005 14:21
> To: Maven Users List
> Subject: POM inheritence in M2
> 
> I'm looking at POM inheritence in M2.. If I specify a parent POM what
> gets included in the child POM, only elements in the Parent POM that
> specify ? In M1, everything was pushed down, so how do things
> like organization, url, etc.. get inherited?

I think the inherited element affects only cases where the configuration
element is both in the parent and in the children. If there are no such
conflict elements are always inherited I think.

That said, I agree with you that the new  element is misleading.
Also, I still don't understand why it is required seen that there's already
an attribute to specify in the children POM when you wish to merge same
config elements. That said, I'm sure it is required for a good reason :-)

John, could you please shed some light on it?

Personally I would have expected that all elements would be inherited by
default and merge would happen by default with children taking precedence
when there is a conflict.

-Vincent






___
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com

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



Re: maven.jar.override

2005-08-29 Thread Sachin Patel
To add to my last response... even if I place the jar inside my local 
repo and run offline, it still tries to download the .pom from the 
remote repo.  Is there anyway around this?


Downloading: 
http://repo1.maven.org/maven2/eclipse-plugins/org.eclipse.core.resources/3.1.0/org.eclipse.core.resources-3.1.0.pom
[WARNING] Unable to get resource from repository 
http://repo1.maven.org/maven2
[INFO] 


[INFO] BUILD FAILURE
[INFO] 


[INFO] Main Error:
 Unable to read the metadata file
 eclipse-plugins:org.eclipse.core.resources:3.1.0:jar

from the specified remote repositories:
 http://repo1.maven.org/maven2
Path to dependency:
   1) org.apache.geronimo:org.apache.geronimo.test2:jar:1.0-SNAPSHOT

Sachin Patel wrote:
Well as long as you prepended the file based override with a property 
like ${eclipse-home}/plugins/org.eclipse.core.resource_3.1.0.  That 
would prevent that.  No?


I'm working on copying all the eclipse plugins to the repo, but its 
not as easy as I thought.  Let me know if I'm wrong but I can't just 
drop in all the jars.  I'm going to have to create the full folder 
structure for each jar


like...

${repo}/eclipse-plugins/org.eclipse.core.resources/3.1.0/

Then do I have to include a .pom for each of those jars in that 
folder?  If I know my projects are only dependent on eclipse plugins 
which can't be downloaded remotely, can I specify (1) that the given 
project be built offline, (2) don't look for a .pom in the local repo?


Thanks.

Brett Porter wrote:

Yes, at the moment. This is necessary to avoid making a build
dependent on a particular user's environment (you may not install
eclipse in the same place as others trying to build the plugin).

I am actually investigating Eclipse's plugin build mechanism in
relation to OSGi and hope to make it easier to work with m2 in that
environment. I don't expect rapid progress, but I'm interested to hear
your thoughts.

- Brett

On 8/29/05, Sachin Patel <[EMAIL PROTECTED]> wrote:
 

So basically for M2 you are saying there is no way to specify a
dependency on a jar outside of the repo?  In which case, all the 
eclipse
plugins I depend on must be copied from an eclipse installation into 
the

repo.  Then the jars would need to be renamed to replace the underscore
with a "-".  Are there any other alternatives?

Thanks again for all your help.

Brett Porter wrote:
   

No, m2 does not allow jar overrides. Version based overrides can be
achived by plugin , and file based overrides
should be put into the repository.

- Brett

On 8/29/05, Sachin Patel <[EMAIL PROTECTED]> wrote:

 

Is the property maven.jar.override applicable for M2? If so how is it
specified? Through  ? If so, it wasn't clear to me in the
documentation, nor could I find examples of  being 
defined

in M2 POMs.

Is this the correct way to define them?


value


Thanks.

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





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



  

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





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


  


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




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



Re: maven.jar.override

2005-08-29 Thread Sachin Patel
Well as long as you prepended the file based override with a property 
like ${eclipse-home}/plugins/org.eclipse.core.resource_3.1.0.  That 
would prevent that.  No?


I'm working on copying all the eclipse plugins to the repo, but its not 
as easy as I thought.  Let me know if I'm wrong but I can't just drop in 
all the jars.  I'm going to have to create the full folder structure for 
each jar


like...

${repo}/eclipse-plugins/org.eclipse.core.resources/3.1.0/

Then do I have to include a .pom for each of those jars in that folder?  
If I know my projects are only dependent on eclipse plugins which can't 
be downloaded remotely, can I specify (1) that the given project be 
built offline, (2) don't look for a .pom in the local repo?


Thanks.

Brett Porter wrote:

Yes, at the moment. This is necessary to avoid making a build
dependent on a particular user's environment (you may not install
eclipse in the same place as others trying to build the plugin).

I am actually investigating Eclipse's plugin build mechanism in
relation to OSGi and hope to make it easier to work with m2 in that
environment. I don't expect rapid progress, but I'm interested to hear
your thoughts.

- Brett

On 8/29/05, Sachin Patel <[EMAIL PROTECTED]> wrote:
  

So basically for M2 you are saying there is no way to specify a
dependency on a jar outside of the repo?  In which case, all the eclipse
plugins I depend on must be copied from an eclipse installation into the
repo.  Then the jars would need to be renamed to replace the underscore
with a "-".  Are there any other alternatives?

Thanks again for all your help.

Brett Porter wrote:


No, m2 does not allow jar overrides. Version based overrides can be
achived by plugin , and file based overrides
should be put into the repository.

- Brett

On 8/29/05, Sachin Patel <[EMAIL PROTECTED]> wrote:

  

Is the property maven.jar.override applicable for M2? If so how is it
specified? Through  ? If so, it wasn't clear to me in the
documentation, nor could I find examples of  being defined
in M2 POMs.

Is this the correct way to define them?


value


Thanks.

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





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



  

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





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


  


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



POM inheritence in M2

2005-08-29 Thread Sachin Patel
I'm looking at POM inheritence in M2.. If I specify a parent POM what 
gets included in the child POM, only elements in the Parent POM that 
specify ? In M1, everything was pushed down, so how do things 
like organization, url, etc.. get inherited?


Or is it the opposite where everything gets included, and you exclude 
elements using ?


Thanks.

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



dependencies on the same artifact, with different versions

2005-08-29 Thread Ittay Dror

Hi,

My war:webapp project depends on the same artifact (commons-collections) but 
with different versions (2.0 and 3.1), meaning, i want to have both downloaded 
to the local repository (of course, i will only use one in the war).


It seems that maven downloads only one. How can I make it download both?

Thanx,
Ittay

--
===
Ittay Dror ([EMAIL PROTECTED])
Application Team Leader, R&D
Qlusters Inc.
+972-3-6081994 Fax: +972-3-6081841

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



RE: Dependencies for EAR file containing several war files

2005-08-29 Thread Vincent Massol
Hi Christopher,

> -Original Message-
> From: Christopher White [mailto:[EMAIL PROTECTED]
> Sent: lundi 29 août 2005 12:25
> To: users@maven.apache.org
> Subject: Dependencies for EAR file containing several war files

[snip]

> I have tried to use :
> 
> 
> 
> ...
> 
> 
> 
>   true
>   false
> 
> 
> ...
> 
> 
> 
> within the dependencies of each war file but this does not seem to have
> any
> effect. The jar files still find their way into the WEB-INF/lib directory.
> I
> suppose there is something here that I havent understood...

If you don't want to include a jar in the war, simply don't specify the
 property.

[snip]

Hope it helps,
-Vincent






___
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com

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



Dependencies for EAR file containing several war files

2005-08-29 Thread Christopher White
Hi all,



I am trying to build an ear archive containing several webapps. These
webapps share a number of jar files. I would like the jar files to be
included in the ear but not within each of the war archives.



I would also like to keep the dependencies within the POMs of each war
archive to allow me build the wars separately, and with minimal modification
of these files, and to allow me to use the eclipse pluggin to build a
classpath.



I have tried to use :



...



  true
  false


...



within the dependencies of each war file but this does not seem to have any
effect. The jar files still find their way into the WEB-INF/lib directory. I
suppose there is something here that I havent understood...



There isn't much in the way of documentation for building complex ear
configurations so any information is very welcome !



Any ideas ?



Thanks,



Chris White


Re: Réf. : Re: [M2] Proposal to a dd Inheritent property in pom.xml

2005-08-29 Thread Brett Porter
the artifactId is automatically appended to the SCM connection when it
is inherited. This can actually help in the case of a default.

I think you want access to ${parent.scm.connection}. I think that is a
good feature request for JIRA.

- Brett

On 8/29/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 
> 
> 
> 
> > > Is it possible in term of M2 architecture?
> >
> > Certainly, but I don't think it is necessary...
> 
> Brett,
> 
> I have a multiple project application developed under Eclipse, so my
> projects are at the same level as my root project (use of the "../" in the
>  list). As a consequence, for every project, the SCM connection is
> configured like this:
> 
> Project 1 :
> scm:cvs:pserver:[EMAIL 
> PROTECTED]:/myCvsRootPath:projectModule1
> 
> Project 2 :
> scm:cvs:pserver:[EMAIL 
> PROTECTED]:/myCvsRootPath:projectModule2
> 
> Parent Project :
> scm:cvs:pserver:[EMAIL 
> PROTECTED]:/myCvsRootPath:projectRoot
> 
> In this case, I'd like to avoid repeating "
> scm:cvs:pserver:[EMAIL PROTECTED]:/myCvsRootPath" in every pom of all the
> subprojects. Is there a way to do that currently? IMHO, properties would
> help in this case (and I can find other cases where this would be helpful
> as well, especially when you have naming conventions that make it easy to
> avoid repeating values in a pom or when you have values that are commons to
> all the projects of a company).
> 
> Cheers,
> Fabrice.
> 
> 
> -
> 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] Problem building repoclean

2005-08-29 Thread Trygve Laugstøl
On Mon, Aug 29, 2005 at 03:14:21AM -0400, Andy Glick wrote:
> I've been having difficulty building repoclean for a number of days, and I 
> get the same error message every time:

Sounds like a bug in Maven somewhere, can you try to change the version
back to SNAPSHOT? Though I fear that this can break something since the
version has been hardcoded in the first place, but it should be updated
ASAP.

--
Trygve


signature.asc
Description: Digital signature


Réf. : Re: [M2] Proposal to add Inheritent property in pom.xml

2005-08-29 Thread fabrice . belingard




> > Is it possible in term of M2 architecture?
>
> Certainly, but I don't think it is necessary...

Brett,

I have a multiple project application developed under Eclipse, so my
projects are at the same level as my root project (use of the "../" in the
 list). As a consequence, for every project, the SCM connection is
configured like this:

Project 1 :
scm:cvs:pserver:[EMAIL 
PROTECTED]:/myCvsRootPath:projectModule1

Project 2 :
scm:cvs:pserver:[EMAIL 
PROTECTED]:/myCvsRootPath:projectModule2

Parent Project :
scm:cvs:pserver:[EMAIL 
PROTECTED]:/myCvsRootPath:projectRoot

In this case, I'd like to avoid repeating "
scm:cvs:pserver:[EMAIL PROTECTED]:/myCvsRootPath" in every pom of all the
subprojects. Is there a way to do that currently? IMHO, properties would
help in this case (and I can find other cases where this would be helpful
as well, especially when you have naming conventions that make it easy to
avoid repeating values in a pom or when you have values that are commons to
all the projects of a company).

Cheers,
Fabrice.


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



[M2] Problem building repoclean

2005-08-29 Thread Andy Glick

I've been having difficulty building repoclean for a number of days, and I get 
the same error message every time:

[INFO] -
[INFO] BUILD FAILURE
[INFO] -
[INFO] Main Error:
 Unable to download the artifact from any repository
 org.apache.maven:maven-model:2.0-beta-1-20050721.102753-1:jar

from the specified remote repositories:
 http://repo1.maven.org/maven2, http://snapshots.maven.codehaus.org/maven2/
Path to dependency:
   1) org.apache.maven:repoclean:jar:1.0-SNAPSHOT
   2) org.apache.maven:maven-model:jar:all:2.0-beta-1-SNAPSHOT

I'm not sure exactly where I found it, but I did locate a version of 
maven-model-2.0-beta-1-20050721.102753-1.jar, and I do have it locally in my m2 
repository, and there is a version file for maven-model-2.0-beta-1-SNAPSHOT.version.txt 
which contains the value "2.0-beta-1-20050721.102753-1".  But that seems to 
make no difference. I have attempted to use the -o and the --offline flags, but the 
builds still fail with the same message.

If anyone has any ideas I'd like to hear them.



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



RE: I can not connect to internaet in one project

2005-08-29 Thread Matthew Yeh \( 葉荊東 \)
Thanks Dan, 
I am a maven newbie. Sorry for my negligence to find maven document.

Best regards, 

Matthew


-Original Message-
From: dan tran [mailto:[EMAIL PROTECTED]
Sent: Monday, August 29, 2005 12:09 PM
To: Maven Users List
Subject: Re: I can not connect to internaet in one project


It is best that you create your own internal repository

http://maven.apache.org/reference/internal-repositories.html

or 

Using jar override

http://maven.apache.org/using/managing-dependencies.html

-D


On 8/28/05, Matthew Yeh \( 葉荊東 \) <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> Could  I pre-install jar files needed by maven(like 
> commons-jelly-tags-interaction-xxx.jar, junit.jar..., etc.)?
> I can not connect to internet in one project, but I want to use maven to 
> manage this project.
> 
> Thanks a lot,
> 
> Matthew
> Taipei, Taiwan
> 
> 
> 
> 
> DISCLAIMER:
> Sample Disclaimer added in a VBScript.
> 
>

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



DISCLAIMER:
Sample Disclaimer added in a VBScript.

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



Re: [M2] Proposal to add Inheritent property in pom.xml

2005-08-29 Thread dan tran
On 8/28/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> On 8/29/05, dan tran <[EMAIL PROTECTED]> wrote:
> >  For example:
> >
> >  
> > parentgroupid
> > parentid
> > ${my.version}
> >  
> 
> This won't work without specifying my.version in every POM (you need
> to know what the parent is to find the value of my.version in the
> parent).

Agree that I need to specify ${my.version} in every pom.

> 
> >  
> > 
> >   parentgroupid
> >   parentid
> >   ${my.version}
> > 
> >  
> 
> You can achieve this with  in the root POM. You
> can already use ${version} there to use the current version.

I am currently place all possible external artifacts and internal
build artifacts under dependencyManagement.  however, for every new
created sub project, the developer will need to remember to add 
his/her artifact's dependencyMangement at the root level. This can
create repeated confusion that I hope to avoid.

In my dependencyManagement section, I also have other external projects that
have many artifacts using their own version for every artifact. So the property
reuse would help here.

But reuse of ${version} at the root pom is a big help here specially for 
developer. Big plus!

> 
> >
> >  This will help tremendously interm usabitlity where can just 
> > modify my
> >  root pom and cut a new release without going to every sub project
> >  to change the version numbers and deal with SCM.
> >
> 
> We plan to look at not requiring a parent version and doing some
> intelligent discovery of the parent. It was controversial so it may or
> may not go ahead.

I saw the JIRA for this issue.  It think it only works well when the
user has entired source tree on his/her local space where M2 can
traverse up all the way to the root pom in file system.

For now, I will need to write a custom plugin to traverse to all sub poms
checkout (clearcase term) to make each pom writeable, change 
the parent pom version, and checkin the pom.xml for each new release
( we do new release daily)

> 
> >  In parent pom i can have
> >
> >
> >   
> > ${basedir}/../../licencemanager/src/main/h
> >   
> >many more
> >
> 
> Why can't you just inherit the plugin configuration for this? Also,
> this won't work if the paths aren't exactly ../...

Like you say, there are many cases, where I can reuse a property expression in 
a bunch of configurations

for example
   ${somepath}/windows for windows build
   ${somepath}/linux for  linux build
 
Inherit configuration wont help here.


> 
> > Other plugins can benefit this as well. For example multiple plugins can 
> > reused
> > ${finalName} expression in their builds configuration
> 
> That already works - ${build.finalName}
> 

Cool, it is new to me. My appology for missing this.

> > Is it possible in term of M2 architecture?
> 
> Certainly, but I don't think it is necessary...

> 
> Cheers,
> Brett
> 

Thanks for the feedback.

-Dan

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