[M2]How to get more details(such as exception stack) when unit tests fail?

2005-11-01 Thread Hong Xing
When I used -e parameter, stack information looks not enough.

org.apache.maven.lifecycle.LifecycleExecutionException: There are some
test failure.
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:544)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:482)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:452)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
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:324)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: There are
some test failure.
at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:321)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
... 16 more

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



Re: Problem with plugin compilation

2005-11-01 Thread Nitko2
No, repository is available all the time and i get this error all the time. I also have 
maven-plugin-plugin in local repository.


Everything is the same as in tutorial, except local repository location which I changed in 
M2_HOME/conf/settings.xml






Brett Porter wrote:

It seems like there was an error contacting the repository while
downloading the plugin plugin. Are there any other errors? Does it
happen on repeated attempts?

- Brett

On 11/2/05, Anonimac Anonimac <[EMAIL PROTECTED]> wrote:


Hi,
I'm following example from "Guide to developing Java plugins" and I can't
compile plugin. It fails with

[INFO] The plugin 'org.apache.maven.plugins:maven-plugin-plugin' does not
exist
or no valid version could be found

If I change packaging parameter to jar, everything compiles.

This is my pom.xml:


4.0.0
sedamit.maven.javacvs
javacvs-plugin

maven-plugin
1.0
JavaCVS Maven Plugin



org.apache.maven
maven-plugin-api
2.0





Any help appreciated.

Filip





-
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: LinkageError

2005-11-01 Thread Brett Porter
Maven 1.1 beta 2 is mostly backwards compatible and significantly
faster in general. For tests, not forking probably works (as it uses
the bundled JDK parser instead of an endorsed xerces), but even if not
it offers "forkmode=once" support for tests meaning all the benefits
of forking without the performance hit.

Cheers,
Brett

On 11/2/05, James Sadler <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> I am on a mission trying to make my company's integration build go
> faster.  We have loads of tests to run and currently the only way they
> will run is when maven.junit.fork = true.
>
> If we don't do this, we get the XML-related LinkageError.  I have been
> reading this mailing list, but the 'solution' is always to TURN ON
> forking - which doesn't really cut it at the moment.  Forking makes the
> tests slow, which is not ideal.
>
> We are using Maven 1.0.2 and have no plans to upgrade (unless this bug
> is definitely fixed in a later version!).
>
> I have tried copying the test:test goal from the test plugin into one of
> our maven.xml files and played around with the Jelly script that
> controls whether or not the xml jars are included on the classpath
> depending on whether or not forking is switched on but with no luck.
>
> Can somebody with a deep understanding of this problem help me with some
> answers?  I have been on a wild goose chase on this for a couple of days
> now...
>
> Thanks for any help you can give,
>
> James.
>
> -
> 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]



LinkageError

2005-11-01 Thread James Sadler


Hi All,

I am on a mission trying to make my company's integration build go 
faster.  We have loads of tests to run and currently the only way they 
will run is when maven.junit.fork = true.


If we don't do this, we get the XML-related LinkageError.  I have been 
reading this mailing list, but the 'solution' is always to TURN ON 
forking - which doesn't really cut it at the moment.  Forking makes the 
tests slow, which is not ideal.


We are using Maven 1.0.2 and have no plans to upgrade (unless this bug 
is definitely fixed in a later version!).


I have tried copying the test:test goal from the test plugin into one of 
our maven.xml files and played around with the Jelly script that 
controls whether or not the xml jars are included on the classpath 
depending on whether or not forking is switched on but with no luck.


Can somebody with a deep understanding of this problem help me with some 
answers?  I have been on a wild goose chase on this for a couple of days 
now...


Thanks for any help you can give,

James.

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



Re: test-jar transitive dependencies

2005-11-01 Thread Barry Kaplan

Brett Porter wrote:


We deferred this until 2.1, as it was preferable to have a transitive
dependency-less solution in place for 2.0 rather than deferring the
whole feature.



Ah! I just spent an hour trying to figure out why this was not working. 
I searched and searched and searched, but could not find any info on 
this issue. (Except for here, which I could only read once I got home.) 
This, any other limits on transitive dependencies really should be 
clearly enumerated on the wiki.


-barry

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



Re: How to use CheckStyle plugin?

2005-11-01 Thread Edwin Punzalan
You have to wait for the patch to be applied though.  The jira issue to 
monitor is here: http://jira.codehaus.org/browse/MNG-1113



Edwin Punzalan wrote:



Hi,

There seems to be a confusion for the propertiesFile for m2 checkstyle 
plugin.


propertiesFile in m2 checkstyle is the overriding properties sent to 
checkstyle report.  From the name itself, it accepts formatting 
configurations in = format.


If you're configuration is in XML format, it should be set as format.  
However, the format in m2 checkstyle only accepts three values: sun, 
avalon and turbine.


Please file a jira feature request for this.



David Parry wrote:


Can anyone suggest the canonical way to use the CheckStyle plugin?

Based on an example someone else supplied to me, I have done this:

...
 

   
org.apache.maven.plugins
maven-checkstyle-plugin


check-main-src
compile

checkstyle-src.xmlpropertiesFile>

false


   checkstyle


 



...

But I seem to be having some weirdness... this configuration seems 
to  ignore things I put in the checkstyle-src.xml file...


What's the best way to set this up?



-
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: failed to resolve GroupId javax-persistence

2005-11-01 Thread Buntingster



   
 javax-persistence
 ejb
 3.0-public_review
   



In the repository (and the command that you used to install...) I see 
this artifact with groupId "javax.persistence" - you appear to be using 
"javax-persistence".



-Jared


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



Re: How to use CheckStyle plugin?

2005-11-01 Thread Edwin Punzalan


Hi,

There seems to be a confusion for the propertiesFile for m2 checkstyle 
plugin.


propertiesFile in m2 checkstyle is the overriding properties sent to 
checkstyle report.  From the name itself, it accepts formatting 
configurations in = format.


If you're configuration is in XML format, it should be set as format.  
However, the format in m2 checkstyle only accepts three values: sun, 
avalon and turbine.


Please file a jira feature request for this.



David Parry wrote:


Can anyone suggest the canonical way to use the CheckStyle plugin?

Based on an example someone else supplied to me, I have done this:

...
 

   
org.apache.maven.plugins
maven-checkstyle-plugin


check-main-src
compile

checkstyle-src.xmlpropertiesFile>

false


   checkstyle


 



...

But I seem to be having some weirdness... this configuration seems to  
ignore things I put in the checkstyle-src.xml file...


What's the best way to set this up?



-
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] Location of source for integration-test

2005-11-01 Thread Bill Siggelkow
I apologize if this is a stupid question, but what is the proper  
location for integration-test source (as opposed to the src/test/java  
for unit tests)? I read the intro to the std dir layout and did not  
see any mention of this.


-Bill Siggelkow

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



Re: failed to resolve GroupId javax-persistence

2005-11-01 Thread Rico (privat)

Before I used that lib I installed it first in my local repository:

mvn install:install-file 
-Dfile=D:\src\entwicklung\java\api\hibernate-3.1\annotations\lib\ejb3-persistence.jar 
-DgroupId=javax.persistence -DartifactId=ejb -Dversion=3.0-public_review 
-Dpackaging=jar


So it exist local, but why Maven want to copy that library again from 
http://repo1.maven.org/maven2 ?


Rico

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



failed to resolve GroupId javax-persistence

2005-11-01 Thread Rico (privat)

Hi,

for correct compiling an hibernate project with annotations the ejb jar 
file is need too. So my pom.xml file has one more dependency:


   
 javax-persistence
 ejb
 3.0-public_review
   

But Maven says following:

Downloading: 
http://repo1.maven.org/maven2/javax-persistence/ejb/3.0-public_review/ejb-3.0-public_review.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
Downloading: 
http://repo1.maven.org/maven2/javax-persistence/ejb/3.0-public_review/ejb-3.0-public_review.jar
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
[INFO] 


[ERROR] BUILD ERROR
[INFO] 


[INFO] Failed to resolve artifact.

GroupId: javax-persistence
ArtifactId: ejb
Version: 3.0-public_review

Reason: Unable to download the artifact from any repository
 javax-persistence:ejb:3.0-public_review:jar

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

What goes wrong?

Rico


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



Re: [m2] deployment of Jetty 6

2005-11-01 Thread David H. DeWolf



David Jencks wrote:


On Oct 26, 2005, at 3:30 AM, Greg Wilkins wrote:


Brett Porter wrote:

 . . .


Ideally, I think apache should branch all the standard javax
stuff into a project of it's own.   That way tomcat, jetty and
geronimo would all be siblings and there would be no cross
dependancies and versioning could be correctly done.



+1

Several geronimo developers have discussed this as well but we haven't 
had time to gather support from the other apache projects bundling specs 
such as tomcat, axis, pluto, etc etc etc.




Sorry for being a few days late, but you've got Pluto's support. . .let 
us know what we can do to help.


David






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



Re: Did you ever get an answer to: Surefire crashing..?

2005-11-01 Thread Erick Dovale

Nope,
no answer so far..
I opened a jira issue on it though.. Will be hearing about it soon... 
hopefully..


cheers,

[EMAIL PROTECTED] wrote:


I'm getting the same thing and looking for an answer.

Reporter method testStarting completed abruptly with an exception.
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
   at java.lang.String.substring(String.java:1480)
   at 
org.codehaus.surefire.report.XMLReporter.testStarting(XMLReporter.java:101)...



 




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



Re: [m2] Help! scp, sftp deploy is failing

2005-11-01 Thread Brett Porter
No, sorry - you can't use a password with scpexe as we can't read the
input. Generally it is used with an ssh-agent and private/public key
pair.

- Brett

On 11/2/05, KC Baltz <[EMAIL PROTECTED]> wrote:
> Home directory bug filed.
>
> scpexe is failing.  It complains with the following message:
>
> Permission denied (publickey,password)
>
> I'm guessing it doesn't know how to pass my password.  I have a  
> defined in my settings that appears to work with sftp and scp, so I don't 
> think that's it.
>
> Any ideas?
>
> K.C.
>
> -Original Message-
> From: Brett Porter [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 01, 2005 4:30 PM
> To: Maven Users List
> Subject: Re: [m2] Help! scp, sftp deploy is failing
>
>
> Please file a bug on the home directory thing. No progress on the
> "session is down" issue just yet, unfortunately.
>
> There is another alternative: scpexe, or standard ftp. See the
> documentation for details.
>
> - Brett
>
> On 11/2/05, KC Baltz <[EMAIL PROTECTED]> wrote:
> > I'm trying to switch our development to Maven2 and I'm having trouble 
> > because I can't seem to get scp or sftp to work with Maven.
> >
> > scp dies because it can't cd to my home directory on the target server 
> > (Home directories aren't mounted on that server).  It looks like the 
> > following:
> >
> >
> > : Uploading: 
> > scp://cvs.copart.com/cvs/maven/com/copart/core/core/1.0-SNAPSHOT/core-1.0-20051102.002057-8.jar
> > [INFO] 
> > 
> > [ERROR] BUILD ERROR
> > [INFO] 
> > 
> > [INFO] Error deploying artifact: Error performing commands for file transfer
> >
> > Could not chdir to home directory /export/home/kcbaltz: No such file or 
> > directory
> >
> >
> >
> > sftp fails with the error message, "session is down".  I think I found a 
> > JIRA issue related to this.  Is there any progress on a fix?
> >
> >
> > Help please!
> >
> > K.C.
> >
> >
>
> -
> 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: [m2] Help! scp, sftp deploy is failing

2005-11-01 Thread KC Baltz
Home directory bug filed.

scpexe is failing.  It complains with the following message:

Permission denied (publickey,password)

I'm guessing it doesn't know how to pass my password.  I have a  
defined in my settings that appears to work with sftp and scp, so I don't think 
that's it.  

Any ideas?

K.C.

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 01, 2005 4:30 PM
To: Maven Users List
Subject: Re: [m2] Help! scp, sftp deploy is failing


Please file a bug on the home directory thing. No progress on the
"session is down" issue just yet, unfortunately.

There is another alternative: scpexe, or standard ftp. See the
documentation for details.

- Brett

On 11/2/05, KC Baltz <[EMAIL PROTECTED]> wrote:
> I'm trying to switch our development to Maven2 and I'm having trouble because 
> I can't seem to get scp or sftp to work with Maven.
>
> scp dies because it can't cd to my home directory on the target server (Home 
> directories aren't mounted on that server).  It looks like the following:
>
>
> : Uploading: 
> scp://cvs.copart.com/cvs/maven/com/copart/core/core/1.0-SNAPSHOT/core-1.0-20051102.002057-8.jar
> [INFO] 
> 
> [ERROR] BUILD ERROR
> [INFO] 
> 
> [INFO] Error deploying artifact: Error performing commands for file transfer
>
> Could not chdir to home directory /export/home/kcbaltz: No such file or 
> directory
>
>
>
> sftp fails with the error message, "session is down".  I think I found a JIRA 
> issue related to this.  Is there any progress on a fix?
>
>
> Help please!
>
> K.C.
>
>

-
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] How to exclude WEB-INF/lib/*.jar without excluding dependent jars?

2005-11-01 Thread KC Baltz
No luck.  That appears to have no effect at all.  I end up with all the jars, 
those from source control and those from dependencies. 

K.C.

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 01, 2005 3:39 PM
To: Maven Users List
Subject: Re: [m2] How to exclude WEB-INF/lib/*.jar without excluding
dependent jars?


try


  WEB-INF/lib/*.jar


On 11/2/05, KC Baltz <[EMAIL PROTECTED]> wrote:
> I'm in the process of converting a webapp from Ant builds to Maven2 builds 
> and I'm running into a hitch with the packaging.  When I first built the 
> webapp, it put duplicate jars in my WEB-INF/lib since they exist there in my 
> source directory and it also included the jars defined in my pom 
> dependencies.  I tried adding
> WEB-INF/lib/*.jar to my war plugin configuration, but 
> then I ended up with no jars in my war file.
>
> I'd rather not delete the jars at the moment since I'm still doing parallel 
> development with Ant.  Is there a way to accomplish this or am I wasting time 
> trying to make M2 do something it really shouldn't?
>
> K.C.
>
>

-
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: Building C++ projects with Maven (2)

2005-11-01 Thread Donszelmann, Mark
Hi Chris,

for maven 1 we create zip files (.nar extension) which we download using
the nar plugin. These files have the same name as a properties file
which the user depends on, but with a postfix -aol (architecture-os-linker)
or -noarch, and extension .nar

The -noarch file is for include files.

maven 1 downloads the properties file, since the user depends on it.
The nar plugin downloads the -aol.nar file and the -noarch.nar file.

Both these files are unpacked in the repository, since all native
compilers will not understand zip files (java does), so we need
the library files and include files in some directory structure. 
Unpacking is done by the nar plugin.

For Maven 2 we use the classifier, as suggested by Brett.
However, the plugin will still handle the download and unpacking,
since we do not expect the user to modify the pom to be dependent
on the classifier.

Regards
Mark

> -Original Message-
> From: Chris Berry [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 01, 2005 4:17 PM
> To: Maven Users List
> Subject: Re: Building C++ projects with Maven (2)
> 
> Hi Mark,
> So, if I have it right, your solution is to transparently 
> augment the versionId on-the-fly?? And you keep all of these 
> artifacts together in the same repo dir i.e. all under the 
> same version subdir (in m2) i.e. 
> openssl/0.9.8/i386-linux-gcc-openssl-nar-0.9.8.nar
> Thanks,
> -- Chris
> 
> On 11/1/05, Donszelmann, Mark <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> >
> > that is what we did with our NAR (Native Archive) plugin in 
> Maven 1, 
> > which we are porting to M2 at this time.
> >
> > See for maven 1:
> >
> > http://java.freehep.org/freehep-nar-plugin
> >
> > we let the user depend on an artifact, and add 
> > Architecture-OS-Linkername to it.
> >
> > Regards
> > Mark Donszelmann
> >
> >
> >
> > > -Original Message-
> > > From: Roger Hoover [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, November 01, 2005 12:28 PM
> > > To: Maven Users List
> > > Subject: Re: Building C++ projects with Maven (2)
> > >
> > > The concern I would have with this is that you have the 
> same logical 
> > > package (let's say apr 1.2.2) built for different architectures 
> > > needing to have a different groupId or artifactId for each 
> > > architecture type. Unless the groupId or artifactId is 
> constructed 
> > > dynamically, poms that depend on a native artifact have 
> to depend on 
> > > a specific architecture type. I think it would be nice to write 
> > > generic poms that depend on just the logical package (apr 1.2.2 
> > > instead of apr
> > > 1.2.2 x86_64) and have maven sense the machine 
> architecture (and OS) 
> > > and fetch the correct native artifact.
> > >
> > > Roger
> > >
> > > On 11/1/05, dan tran <[EMAIL PROTECTED]> wrote:
> > > >
> > > > You can use groupId for platform specific or add 
> platform specific 
> > > > string to your artifact id.
> > > > -D
> > > >
> > > >
> > > > On 11/1/05, Chris Berry <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > This brings up a bigger question; How does maven want to
> > > handle OS
> > > > > information in the repo?? To be successful w/ other
> > > languages like
> > > > > C,
> > > > the
> > > > > repo will need to delineate information such as "i586"
> > > and "linux".
> > > > > Are these to be rolled into the groupId?? That doesn't
> > > smell right.
> > > > > Seems
> > > > that
> > > > > we may need new Artifact Resolvers that understand this
> > > sort of info
> > > > > natively and can transparently supply the the correct
> > > pieces to the URL.
> > > > >
> > > > > Cheers,
> > > > > -- Chris
> > > > >
> > > > > On 11/1/05, dan tran <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > Hi David,
> > > > > > There is a work in progress for native-maven-plugin 
> > > > > > http://svn.mojo.codehaus.org/trunk/mojo/maven-native/
> > > > > > You can build it and take a look at some doc.
> > > > > > -Dan
> > > > > >
> > > > > >
> > > > > > On 11/1/05, David Jackman 
> <[EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > > I've just found out that I'm going to need to expand
> > > our Maven
> > > > > > > build process to include several C++ project (which I 
> > > > > > > believe are built
> > > > > using
> > > > > > > gcc). I seem to remember seeing some traffic on this list 
> > > > > > > from
> > > > people
> > > > > > > doing this sort of thing (which I promptly 
> ignored because I 
> > > > > > > wasn't
> > > > at
> > > > >
> > > > > > > the time). Can anyone offer some insight on how you
> > > got this to
> > > > > > > work and how you overcame the problems that came up? What 
> > > > > > > plugins are available to build this way and do they do 
> > > > > > > everything you need? Are
> > > > > you
> > > > > > > able to have dependencies in the Maven repository and
> > > have the
> > > > > > > build
> > > > > use
> > > > > > > them from there (similar to .jar dependencies)? 
> How do you 
> > > > > > > access
> > > > the
> > > > > > > header files, possible library

Re: [m2] org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no valid version could be found

2005-11-01 Thread Brett Porter
I think repo1.maven.org is having some issues at present. We're
working to rectify them - please try again soon.

You can also set up a mirror - there should be instructions on the web site.

- Brett

On 11/2/05, cameron clarke <[EMAIL PROTECTED]> wrote:
> Caveat …I'm new to Maven!
> Downloaded installed successfully, mvn –v works OK.
> Following Maven getting started guide..
>
> mvn archetype:create -DgroupId=uk.co.something -DartifactId=projName
> pom.xml / directory structures / App.java and AppTest.java created.
>
> (modified pom.xml for jdk1.5 as prescribed in FAQ)
>
> ..here's the problem (I'm not behind a firewall and can browse
> http://www.ibiblio.org/maven2/ via firefox without proxy settings)
>
> mvn compile …results in :
>
> [INFO] Scanning for projects...
>
> [INFO] 
> -
>
> ---
>
> [INFO] Building Maven Quick Start Archetype
>
> [INFO]task-segment: [compile]
>
> [INFO] 
> -
>
> ---
>
> [INFO] 
> -
>
> ---
>
> [ERROR] BUILD ERROR
>
> [INFO] 
> -
>
> ---
>
> [INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin'
> does not exi
>
> st or no valid version could be found
>
> [INFO] 
> -
>
> ---
>
> [INFO] For more information, run Maven with the -e switch
>
> [INFO] 
> -
>
> ---
>
> [INFO] Total time: < 1 second
>
> [INFO] Finished at: Tue Sep 20 01:41:48 BST 2005
>
> [INFO] Final Memory: 1M/2M
>
> [INFO] 
> -
>
> Many thanks in advance.
> :-)
>


[m2] org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no valid version could be found

2005-11-01 Thread cameron clarke
Caveat …I'm new to Maven!
Downloaded installed successfully, mvn –v works OK.
Following Maven getting started guide..

mvn archetype:create -DgroupId=uk.co.something -DartifactId=projName
pom.xml / directory structures / App.java and AppTest.java created.

(modified pom.xml for jdk1.5 as prescribed in FAQ)

..here's the problem (I'm not behind a firewall and can browse
http://www.ibiblio.org/maven2/ via firefox without proxy settings)

mvn compile …results in :

[INFO] Scanning for projects...

[INFO] -

---

[INFO] Building Maven Quick Start Archetype

[INFO]task-segment: [compile]

[INFO] -

---

[INFO] -

---

[ERROR] BUILD ERROR

[INFO] -

---

[INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin'
does not exi

st or no valid version could be found

[INFO] -

---

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

[INFO] -

---

[INFO] Total time: < 1 second

[INFO] Finished at: Tue Sep 20 01:41:48 BST 2005

[INFO] Final Memory: 1M/2M

[INFO] -

Many thanks in advance.
:-)


Re: [m2] Help! scp, sftp deploy is failing

2005-11-01 Thread Brett Porter
Please file a bug on the home directory thing. No progress on the
"session is down" issue just yet, unfortunately.

There is another alternative: scpexe, or standard ftp. See the
documentation for details.

- Brett

On 11/2/05, KC Baltz <[EMAIL PROTECTED]> wrote:
> I'm trying to switch our development to Maven2 and I'm having trouble because 
> I can't seem to get scp or sftp to work with Maven.
>
> scp dies because it can't cd to my home directory on the target server (Home 
> directories aren't mounted on that server).  It looks like the following:
>
>
> : Uploading: 
> scp://cvs.copart.com/cvs/maven/com/copart/core/core/1.0-SNAPSHOT/core-1.0-20051102.002057-8.jar
> [INFO] 
> 
> [ERROR] BUILD ERROR
> [INFO] 
> 
> [INFO] Error deploying artifact: Error performing commands for file transfer
>
> Could not chdir to home directory /export/home/kcbaltz: No such file or 
> directory
>
>
>
> sftp fails with the error message, "session is down".  I think I found a JIRA 
> issue related to this.  Is there any progress on a fix?
>
>
> Help please!
>
> K.C.
>
>

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



[m2] Help! scp, sftp deploy is failing

2005-11-01 Thread KC Baltz
I'm trying to switch our development to Maven2 and I'm having trouble because I 
can't seem to get scp or sftp to work with Maven.  
 
scp dies because it can't cd to my home directory on the target server (Home 
directories aren't mounted on that server).  It looks like the following:
 
 
: Uploading: 
scp://cvs.copart.com/cvs/maven/com/copart/core/core/1.0-SNAPSHOT/core-1.0-20051102.002057-8.jar
[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Error deploying artifact: Error performing commands for file transfer
 
Could not chdir to home directory /export/home/kcbaltz: No such file or 
directory
 
 
 
sftp fails with the error message, "session is down".  I think I found a JIRA 
issue related to this.  Is there any progress on a fix?
 
 
Help please!
 
K.C.


Re: Problems with assembly:assembly

2005-11-01 Thread Brett Porter
I think currently it aggregates dependencies, not modules. I believe
there is already a feature request in JIRA.

- Brett

On 11/2/05, Colin Chalmers <[EMAIL PROTECTED]> wrote:
> Hi ,
>
> I'm trying to use the assembly plugin on M2 to build one jar including
> the classes from the three sub-projects/modules.
>
> However it doesn't seem to be traversing the modules to pick up the
> classes, the jar is as good as empty.
> If I omit the target/classes element it seems to
> aggregate all the modules and layout including jars into one big jar.
> All I want is to aggregate the classes tp produce one jar file distribution
>
> What am I missing?
>
> I'm trying to follow the info on the site + a link I got from Jason
> http://maven.apache.org/guides/mini/guide-assemblies.html
> http://svn.apache.org/viewcvs.cgi/*checkout*/maven/components/trunk/maven-embedder/src/main/assembly/dep.xml?rev=306535
>
> /Colin
>
> -
> 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: Building C++ projects with Maven (2)

2005-11-01 Thread Chris Berry
Hi Mark,
So, if I have it right, your solution is to transparently augment the
versionId on-the-fly?? And you keep all of these artifacts together in the
same repo dir
i.e. all under the same version subdir (in m2)
i.e. openssl/0.9.8/i386-linux-gcc-openssl-nar-0.9.8.nar
Thanks,
-- Chris

On 11/1/05, Donszelmann, Mark <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> that is what we did with our NAR (Native Archive) plugin in Maven 1,
> which we are porting to M2 at this time.
>
> See for maven 1:
>
> http://java.freehep.org/freehep-nar-plugin
>
> we let the user depend on an artifact, and add
> Architecture-OS-Linkername to it.
>
> Regards
> Mark Donszelmann
>
>
>
> > -Original Message-
> > From: Roger Hoover [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, November 01, 2005 12:28 PM
> > To: Maven Users List
> > Subject: Re: Building C++ projects with Maven (2)
> >
> > The concern I would have with this is that you have the same
> > logical package (let's say apr 1.2.2) built for different
> > architectures needing to have a different groupId or
> > artifactId for each architecture type. Unless the groupId or
> > artifactId is constructed dynamically, poms that depend on a
> > native artifact have to depend on a specific architecture
> > type. I think it would be nice to write generic poms that
> > depend on just the logical package (apr 1.2.2 instead of apr
> > 1.2.2 x86_64) and have maven sense the machine architecture
> > (and OS) and fetch the correct native artifact.
> >
> > Roger
> >
> > On 11/1/05, dan tran <[EMAIL PROTECTED]> wrote:
> > >
> > > You can use groupId for platform specific or add platform specific
> > > string to your artifact id.
> > > -D
> > >
> > >
> > > On 11/1/05, Chris Berry <[EMAIL PROTECTED]> wrote:
> > > >
> > > > This brings up a bigger question; How does maven want to
> > handle OS
> > > > information in the repo?? To be successful w/ other
> > languages like
> > > > C,
> > > the
> > > > repo will need to delineate information such as "i586"
> > and "linux".
> > > > Are these to be rolled into the groupId?? That doesn't
> > smell right.
> > > > Seems
> > > that
> > > > we may need new Artifact Resolvers that understand this
> > sort of info
> > > > natively and can transparently supply the the correct
> > pieces to the URL.
> > > >
> > > > Cheers,
> > > > -- Chris
> > > >
> > > > On 11/1/05, dan tran <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Hi David,
> > > > > There is a work in progress for native-maven-plugin
> > > > > http://svn.mojo.codehaus.org/trunk/mojo/maven-native/
> > > > > You can build it and take a look at some doc.
> > > > > -Dan
> > > > >
> > > > >
> > > > > On 11/1/05, David Jackman <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > I've just found out that I'm going to need to expand
> > our Maven
> > > > > > build process to include several C++ project (which I believe
> > > > > > are built
> > > > using
> > > > > > gcc). I seem to remember seeing some traffic on this list from
> > > people
> > > > > > doing this sort of thing (which I promptly ignored because I
> > > > > > wasn't
> > > at
> > > >
> > > > > > the time). Can anyone offer some insight on how you
> > got this to
> > > > > > work and how you overcame the problems that came up? What
> > > > > > plugins are available to build this way and do they do
> > > > > > everything you need? Are
> > > > you
> > > > > > able to have dependencies in the Maven repository and
> > have the
> > > > > > build
> > > > use
> > > > > > them from there (similar to .jar dependencies)? How do you
> > > > > > access
> > > the
> > > > > > header files, possible library, and runtime library for the
> > > different
> > > > > > portions of the build? Is there a mini guide for this kind of
> > > project
> > > > > > in the works?
> > > > > >
> > > > > > Thanks,
> > > > > > ..David..
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [m2] compilerId for maven-compiler-plugin

2005-11-01 Thread Brett Porter
Please file this in JIRA - it looks like it should work to me.

- Brett

On 11/2/05, Lars Trieloff <[EMAIL PROTECTED]> wrote:
> Hi,
>
> according to the maven-compiler-plugin documentation I can set the
> compiler to be used by adding the compilerId element to my pom.xml.
>
> However my small example POM which includes following build
> configuration is unable to work with maven.
>
>   
> 
>   
> 
>   maven-compiler-plugin
>   
> eclipse
>   
>   
> 
>   org.codehaus.plexus
>   plexus-compiler-eclipse
>   1.5.1
> 
>   
> 
>   
> 
>   
>
> I tell the compiler-plugin to use the eclipse compiler and add it as
> dependency to the compiler-plugin. But when I run maven, it fails with:
> "No such compiler 'eclipse'.". The stack trace is:
>
> Maven even does not attempt to load or download plexus-compiler-eclipse
> from the central repository.
>
> Is there an error in my build configuration or is this a bug of m2?
>
> Lars
>
>
> -
> 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] site:site has errors when dependencies are from maven 1 projects

2005-11-01 Thread Brett Porter
This is a bug in the dependency report (I'm not sure if it is fixed
yet - you can file a JIRA if there isn't one already).

You'd need to use true in reporting
to disable the default project-info reports.

 -Brett

On 11/2/05, Kris Nuttycombe <[EMAIL PROTECTED]> wrote:
> Hi, all,
>
> I'm getting the following error from running mvn site:
>
> java.lang.IllegalArgumentException: Can't find a valid Maven project in
> the repository for the artifact [gt2:oracle-spatial:2.0.x-eds].
> at
> org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRenderer.renderBody(DependenciesReport.java:246)
> at
> org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMavenReportRenderer.java:65)
> at
> org.apache.maven.report.projectinfo.DependenciesReport.executeReport(DependenciesReport.java:157)
> at
> org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
> at
> org.apache.maven.plugins.site.SiteMojo.generateReportsPages(SiteMojo.java:802)
> at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:301)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>
> I'm drawing my dependency artifacts from a remote repository that was
> built using maven 1.0.2 and has the legacy project layout.
> A pom.xml file does exist in my local m2 repository for this artifact,
> but that pom appears to be the one from the maven 1.0 repository. I'm
> just in the process of beginning to transition my projects to maven 2.0,
> so I suspect this will be the case with the vast majority of my artifact
> dependencies. How can I work around this problem to get the site to
> generate under 2.0?
>
> Thanks,
>
> Kris Nuttycombe
>
>
>
> -
> 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] compilerId for maven-compiler-plugin

2005-11-01 Thread Lars Trieloff
Hi,

according to the maven-compiler-plugin documentation I can set the
compiler to be used by adding the compilerId element to my pom.xml.

However my small example POM which includes following build
configuration is unable to work with maven.

  

  

  maven-compiler-plugin
  
eclipse
  
  

  org.codehaus.plexus
  plexus-compiler-eclipse
  1.5.1

  

  

  

I tell the compiler-plugin to use the eclipse compiler and add it as
dependency to the compiler-plugin. But when I run maven, it fails with:
"No such compiler 'eclipse'.". The stack trace is:

Maven even does not attempt to load or download plexus-compiler-eclipse
from the central repository.

Is there an error in my build configuration or is this a bug of m2?

Lars


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



Re: Building C++ projects with Maven (2)

2005-11-01 Thread Brett Porter
We have a -classifier element in the artifact in the repository which
was envisaged as encopassing this, however it won't allow it to be
later broken down into individual pieces.

What it does mean is that all the variants have the same POM and are
treated as one dependency that just differs on other architectures.

I'll add this to the 2.1 discussion list.

On 11/2/05, Roger Hoover <[EMAIL PROTECTED]> wrote:
> Good point. Source RPM handles this with options you can pass to the
> rpmbuild command. Maven could have either command line or configuration
> options to do the same.
>
> From
> http://www.rpm.org/max-rpm-snapshot/s1-rpm-multi-build-install-detection.html
> ,
>
> "The *--buildarch* and *--buildos* options can be used to set the build-time
> architecture and operating system rather than relying on RPM's automatic
> detection capabilities. These options are added to a normal RPM build
> command. One important point to remember is that, although RPM does try to
> find the specified architecture name, it does no checking as to the sanity
> of the entered architecture or operating system. For example, if you enter
> an entirely fictional operating system, RPM will issue a warning message,
> and then happily build a package for it."
>
> This brings up an interesting idea. Rather than building the infrastructure
> into Maven to detect OS and architecture information, perhaps Maven could
> delegate this to rpm, at least on Linux. RPM is the package format defined
> for the Linux Standard Base, although it mentions the standard includes only
> the rpm package format and not the rpm command or specific rpm macros. In
> practice, this might not be a big deal. Most or all distros might use the
> same rpm command options and a small set of standard macros.
>
> http://www.linuxbase.org/spec/refspecs/LSB_1.2.0/gLSB/swinstall.html
> http://www.linuxbase.org/talks/lca2005/img52.html
>
> Just an idea for trying to reduce the effort to support this and unnecessary
> duplication of functionality.
>
> Roger
>
> On 11/1/05, Sean Hennessy <[EMAIL PROTECTED]> wrote:
> >
> > If one considers an alternative use case scenario where a single host
> > (build server) is cross compiling for multiple targets.
> > Then would not the maven "sense the machine architecture" solution would
> > only support one target environment?
> > Perhaps a mechanism for management of iterative profiles in order to
> > target environment.
> >
> > -Original Message-
> > From: Roger Hoover [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, November 01, 2005 12:28 PM
> > To: Maven Users List
> > Subject: Re: Building C++ projects with Maven (2)
> >
> >
> > The concern I would have with this is that you have the same logical
> > package (let's say apr 1.2.2) built for different architectures needing
> > to have a different groupId or artifactId for each architecture type.
> > Unless the groupId or artifactId is constructed dynamically, poms that
> > depend on a native artifact have to depend on a specific architecture
> > type. I think it would be nice to write generic poms that depend on just
> > the logical package (apr 1.2.2 instead of apr 1.2.2 x86_64) and have
> > maven sense the machine architecture (and OS) and fetch the correct
> > native artifact.
> >
> > Roger
> >
> > On 11/1/05, dan tran <[EMAIL PROTECTED]> wrote:
> > >
> > > You can use groupId for platform specific or add platform specific
> > > string to your artifact id.
> > > -D
> > >
> > >
> > > On 11/1/05, Chris Berry <[EMAIL PROTECTED]> wrote:
> > > >
> > > > This brings up a bigger question; How does maven want to handle OS
> > > > information in the repo?? To be successful w/ other languages like
> > > > C,
> > > the
> > > > repo will need to delineate information such as "i586" and "linux".
> > > > Are these to be rolled into the groupId?? That doesn't smell right.
> > > > Seems
> > > that
> > > > we may need new Artifact Resolvers that understand this sort of info
> >
> > > > natively and can transparently supply the the correct pieces to the
> > > > URL.
> > > >
> > > > Cheers,
> > > > -- Chris
> > > >
> > > > On 11/1/05, dan tran <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Hi David,
> > > > > There is a work in progress for native-maven-plugin
> > > > > http://svn.mojo.codehaus.org/trunk/mojo/maven-native/
> > > > > You can build it and take a look at some doc.
> > > > > -Dan
> > > > >
> > > > >
> > > > > On 11/1/05, David Jackman <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > I've just found out that I'm going to need to expand our Maven
> > > > > > build process to include several C++ project (which I believe
> > > > > > are built
> > > > using
> > > > > > gcc). I seem to remember seeing some traffic on this list from
> > > people
> > > > > > doing this sort of thing (which I promptly ignored because I
> > > > > > wasn't
> > > at
> > > >
> > > > > > the time). Can anyone offer some insight on how you got this to
> > > > > > work and how you overcame the problems tha

Re: Building C++ projects with Maven (2)

2005-11-01 Thread Alex Honor

Just as another use case to throw in...

We use a maven-1 structured repository and we are now beginning to  
migrate to the m2 style structure. We use our repository not only to  
store java-based build artifacts such as .jar, .war, .ear files, but  
also other kinds of release artifacts which might include zips, rpms,  
tgz, etc., that come out of C-based build tools. Given maven is  
becoming a more platform agnostic build automation system, I am  
curious how cpu architecture and operating system build artifacts  
will be reflected in the structure of the repository, as well.
We have discussed creating a convention using using groupId/ 
artifactId or treating arch/os-specific builds as secondary  
artifacts. Note also, we presume the scenario where cross compilation  
is occurring to support multiple targets.


Thanks. Alex


Good point Sean.
But I think the original question still holds; How should we handle  
this in

the repo itself?? I do not think that one can use either groupId or
artifactId without violating the platform independence of the POM.  
I think

this implies a smarter "Artifact Resolver" than we have to today??
Cheers,
-- Chris

On 11/1/05, Sean Hennessy <[EMAIL PROTECTED]> wrote:
>
> If one considers an alternative use case scenario where a single  
host

> (build server) is cross compiling for multiple targets.
> Then would not the maven "sense the machine architecture"  
solution would

> only support one target environment?
> Perhaps a mechanism for management of iterative profiles in order to
> target environment.
>
> -Original Message-
> From: Roger Hoover [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 01, 2005 12:28 PM
> To: Maven Users List
> Subject: Re: Building C++ projects with Maven (2)
>
>
> The concern I would have with this is that you have the same logical
> package (let's say apr 1.2.2) built for different architectures  
needing
> to have a different groupId or artifactId for each architecture  
type.
> Unless the groupId or artifactId is constructed dynamically, poms  
that
> depend on a native artifact have to depend on a specific  
architecture
> type. I think it would be nice to write generic poms that depend  
on just

> the logical package (apr 1.2.2 instead of apr 1.2.2 x86_64) and have
> maven sense the machine architecture (and OS) and fetch the correct
> native artifact.
>
> Roger
>
> On 11/1/05, dan tran <[EMAIL PROTECTED]> wrote:
> >
> > You can use groupId for platform specific or add platform specific
> > string to your artifact id.
> > -D
> >
> >
> > On 11/1/05, Chris Berry <[EMAIL PROTECTED]> wrote:
> > >
> > > This brings up a bigger question; How does maven want to  
handle OS
> > > information in the repo?? To be successful w/ other languages  
like

> > > C,
> > the
> > > repo will need to delineate information such as "i586" and  
"linux".
> > > Are these to be rolled into the groupId?? That doesn't smell  
right.

> > > Seems
> > that
> > > we may need new Artifact Resolvers that understand this sort  
of info

>
> > > natively and can transparently supply the the correct pieces  
to the

> > > URL.
> > >
> > > Cheers,
> > > -- Chris
> > >
> > > On 11/1/05, dan tran <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Hi David,
> > > > There is a work in progress for native-maven-plugin
> > > > http://svn.mojo.codehaus.org/trunk/mojo/maven-native/
> > > > You can build it and take a look at some doc.
> > > > -Dan
> > > >
> > > >
> > > > On 11/1/05, David Jackman <[EMAIL PROTECTED]>  
wrote:

> > > > >
> > > > > I've just found out that I'm going to need to expand our  
Maven
> > > > > build process to include several C++ project (which I  
believe

> > > > > are built
> > > using
> > > > > gcc). I seem to remember seeing some traffic on this list  
from

> > people
> > > > > doing this sort of thing (which I promptly ignored because I
> > > > > wasn't
> > at
> > >
> > > > > the time). Can anyone offer some insight on how you got  
this to

> > > > > work and how you overcame the problems that came up? What
> > > > > plugins are available to build this way and do they do
> > > > > everything you need? Are
> > > you
> > > > > able to have dependencies in the Maven repository and  
have the

> > > > > build
> > > use
> > > > > them from there (similar to .jar dependencies)? How do you
> > > > > access
> > the
> > > > > header files, possible library, and runtime library for the
> > different
> > > > > portions of the build? Is there a mini guide for this  
kind of

> > project
> > > > > in the works?
> > > > >
> > > > > Thanks,
> > > > > ..David..
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>  
-

> 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: Problem with plugin compilation

2005-11-01 Thread Brett Porter
It seems like there was an error contacting the repository while
downloading the plugin plugin. Are there any other errors? Does it
happen on repeated attempts?

- Brett

On 11/2/05, Anonimac Anonimac <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm following example from "Guide to developing Java plugins" and I can't
> compile plugin. It fails with
>
> [INFO] The plugin 'org.apache.maven.plugins:maven-plugin-plugin' does not
> exist
> or no valid version could be found
>
> If I change packaging parameter to jar, everything compiles.
>
> This is my pom.xml:
>
> 
> 4.0.0
> sedamit.maven.javacvs
> javacvs-plugin
>
> maven-plugin
> 1.0
> JavaCVS Maven Plugin
>
> 
> 
> org.apache.maven
> maven-plugin-api
> 2.0
> 
> 
> 
>
>
> Any help appreciated.
>
> Filip
>
>

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



Re: [m2] How to exclude WEB-INF/lib/*.jar without excluding dependent jars?

2005-11-01 Thread Brett Porter
try


  WEB-INF/lib/*.jar


On 11/2/05, KC Baltz <[EMAIL PROTECTED]> wrote:
> I'm in the process of converting a webapp from Ant builds to Maven2 builds 
> and I'm running into a hitch with the packaging.  When I first built the 
> webapp, it put duplicate jars in my WEB-INF/lib since they exist there in my 
> source directory and it also included the jars defined in my pom 
> dependencies.  I tried adding
> WEB-INF/lib/*.jar to my war plugin configuration, but 
> then I ended up with no jars in my war file.
>
> I'd rather not delete the jars at the moment since I'm still doing parallel 
> development with Ant.  Is there a way to accomplish this or am I wasting time 
> trying to make M2 do something it really shouldn't?
>
> K.C.
>
>

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



Re: [maven2] Failed to build model from plexus-utils-1.0.4.pom

2005-11-01 Thread Brett Porter
The VM_... errors are really just warnings and can be ignored.

I'm not able to reproduce the problems with mvn -X compile on a new
archetpye though. What are the stack traces?

- Brett

On 11/2/05, Jeremy Hughes <[EMAIL PROTECTED]> wrote:
> Hi, thanks for responding. The files in the maven-2.0-bin.tar.gz file
> I downloaded are dated 2005-10-18.
>
> I just cleared out my ~/.m2 directory and did:
>
> cd ~
> mvn -X archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
> cd my-app
> mvn -X compile
>
> stdout and stderr for each of the mvn commands attached.
>
> mvn -X archetype:create gives me an error which I only just noticed:
>
> [ERROR] ResourceManager : unable to find resource
> 'VM_global_library.vm' in any resource loader.
>
> but reports BUILD SUCCESSFUL at the end.
>
> mvn -X compile reports the same error with some stack traces. Hope it helps.
>
> Thanks v. much,
> Jeremy
>
> On 10/31/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> > Hi Jeremy,
> >
> > I've never seen this one. Did re-running continue to exhibit this?
> > What about using -X?
> >
> > What version of Maven are you using?
> >
> > Thanks,
> > Brett
> >
> > On 10/27/05, Jeremy Hughes <[EMAIL PROTECTED]> wrote:
> > > Hi, I'm a Maven newbie. I just downloaded Maven2 and started going
> > > through 'Getting started'. But got stuck on mvn compile. It failed to
> > > build the model from plexus utils 1.0.4.
> > >
> > > Any help really appreciated. Thx. Jeremy
> > >
> > > This is the output:
> > >
> > > [INFO] Scanning for projects...
> > > [INFO] 
> > > 
> > > [INFO] Building Maven Quick Start Archetype
> > > [INFO]task-segment: [compile]
> > > [INFO] 
> > > 
> > > [INFO] artifact org.apache.maven.plugins:maven-resources-plugin:
> > > checking for updates from central
> > > Downloading: 
> > > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.pom
> > > 888b downloaded
> > > Downloading: 
> > > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0/maven-plugin-parent-2.0.pom
> > > 6K downloaded
> > > Downloading: 
> > > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.jar
> > > 10K downloaded
> > > [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin:
> > > checking for updates from central
> > > Downloading: 
> > > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.pom
> > > 1K downloaded
> > > Downloading: 
> > > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.jar
> > > 13K downloaded
> > > Downloading: 
> > > http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0/maven-model-2.0.pom
> > > 2K downloaded
> > > Downloading: 
> > > http://repo1.maven.org/maven2/org/apache/maven/maven/2.0/maven-2.0.pom
> > > 8K downloaded
> > > Downloading: 
> > > http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom
> > > 6K downloaded
> > > [INFO] 
> > > 
> > > [ERROR] BUILD ERROR
> > > [INFO] 
> > > 
> > > [INFO] Error building POM (may not be this project's POM).
> > >
> > >
> > > Project ID: org.codehaus.plexus:plexus-utils
> > >
> > > Reason: Failed to build model from file
> > > '/home/hughesj/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom'.
> > > Error: 'null'
> > >
> > >
> > > [INFO] 
> > > 
> > > [INFO] For more information, run Maven with the -e switch
> > > [INFO] 
> > > 
> > > [INFO] Total time: 14 seconds
> > > [INFO] Finished at: Wed Oct 26 15:14:06 BST 2005
> > > [INFO] Final Memory: 3M/7M
> > > [INFO] 
> > > 
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



[M2] site:site has errors when dependencies are from maven 1 projects

2005-11-01 Thread Kris Nuttycombe
Hi, all,

I'm getting the following error from running mvn site:

java.lang.IllegalArgumentException: Can't find a valid Maven project in
the repository for the artifact [gt2:oracle-spatial:2.0.x-eds].
at
org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRenderer.renderBody(DependenciesReport.java:246)
at
org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMavenReportRenderer.java:65)
at
org.apache.maven.report.projectinfo.DependenciesReport.executeReport(DependenciesReport.java:157)
at
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
at
org.apache.maven.plugins.site.SiteMojo.generateReportsPages(SiteMojo.java:802)
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:301)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

I'm drawing my dependency artifacts from a remote repository that was
built using maven 1.0.2 and has the legacy project layout.
A pom.xml file does exist in my local m2 repository for this artifact,
but that pom appears to be the one from the maven 1.0 repository. I'm
just in the process of beginning to transition my projects to maven 2.0,
so I suspect this will be the case with the vast majority of my artifact
dependencies. How can I work around this problem to get the site to
generate under 2.0?

Thanks,

Kris Nuttycombe

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

RE: Building C++ projects with Maven (2)

2005-11-01 Thread Donszelmann, Mark
Hi

that is what we did with our NAR (Native Archive) plugin in Maven 1,
which we are porting to M2 at this time.

See for maven 1:

http://java.freehep.org/freehep-nar-plugin

we let the user depend on an artifact, and add
Architecture-OS-Linkername to it.

Regards
Mark Donszelmann

 

> -Original Message-
> From: Roger Hoover [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 01, 2005 12:28 PM
> To: Maven Users List
> Subject: Re: Building C++ projects with Maven (2)
> 
> The concern I would have with this is that you have the same 
> logical package (let's say apr 1.2.2) built for different 
> architectures needing to have a different groupId or 
> artifactId for each architecture type. Unless the groupId or 
> artifactId is constructed dynamically, poms that depend on a 
> native artifact have to depend on a specific architecture 
> type. I think it would be nice to write generic poms that 
> depend on just the logical package (apr 1.2.2 instead of apr 
> 1.2.2 x86_64) and have maven sense the machine architecture 
> (and OS) and fetch the correct native artifact.
> 
> Roger
> 
> On 11/1/05, dan tran <[EMAIL PROTECTED]> wrote:
> >
> > You can use groupId for platform specific or add platform specific 
> > string to your artifact id.
> > -D
> >
> >
> > On 11/1/05, Chris Berry <[EMAIL PROTECTED]> wrote:
> > >
> > > This brings up a bigger question; How does maven want to 
> handle OS 
> > > information in the repo?? To be successful w/ other 
> languages like 
> > > C,
> > the
> > > repo will need to delineate information such as "i586" 
> and "linux". 
> > > Are these to be rolled into the groupId?? That doesn't 
> smell right. 
> > > Seems
> > that
> > > we may need new Artifact Resolvers that understand this 
> sort of info 
> > > natively and can transparently supply the the correct 
> pieces to the URL.
> > >
> > > Cheers,
> > > -- Chris
> > >
> > > On 11/1/05, dan tran <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Hi David,
> > > > There is a work in progress for native-maven-plugin 
> > > > http://svn.mojo.codehaus.org/trunk/mojo/maven-native/
> > > > You can build it and take a look at some doc.
> > > > -Dan
> > > >
> > > >
> > > > On 11/1/05, David Jackman <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > I've just found out that I'm going to need to expand 
> our Maven 
> > > > > build process to include several C++ project (which I believe 
> > > > > are built
> > > using
> > > > > gcc). I seem to remember seeing some traffic on this list from
> > people
> > > > > doing this sort of thing (which I promptly ignored because I 
> > > > > wasn't
> > at
> > >
> > > > > the time). Can anyone offer some insight on how you 
> got this to 
> > > > > work and how you overcame the problems that came up? What 
> > > > > plugins are available to build this way and do they do 
> > > > > everything you need? Are
> > > you
> > > > > able to have dependencies in the Maven repository and 
> have the 
> > > > > build
> > > use
> > > > > them from there (similar to .jar dependencies)? How do you 
> > > > > access
> > the
> > > > > header files, possible library, and runtime library for the
> > different
> > > > > portions of the build? Is there a mini guide for this kind of
> > project
> > > > > in the works?
> > > > >
> > > > > Thanks,
> > > > > ..David..
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
> 

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



Re: Maven2: javadoc-1.4.jar does not exist in repository

2005-11-01 Thread Carlos Sanchez
No, you need to remove poms under commons-attributes in your local
repo. They had wrong dependencies

On 11/1/05, Chris Wilkes <[EMAIL PROTECTED]> wrote:
> Edson Yanaga  insula.com.br> writes:
> > I'm trying to migrate my projects from Maven 1.1b2 to 2, but when I
> > insert the following dependency:
> >
> > 
> > springframework
> > spring-mock
> > 1.2.5
> > test
> > 
> >
> > My build fails. It requests javadoc-1.4.jar, but it does not exist. How
> > can I get this file, or is it a problema with the springframework
> > pom.xml?
>
> I have the exact same problem with my spring project, at first I thought it 
> was
> due to being on Windows and having a space in my CLASSPATH but I also tried 
> this
> out on a linux machine and the same error came up
>
> > Downloading:
> > http://repo1.maven.org/maven2/javadoc/javadoc/1.4/javadoc-1.4.jar
> > [WARNING] Unable to get resource from repository central
> > (http://repo1.maven.org/maven2)
>
> Looking on that site there's a javadoc for 1.3 but not for 1.4.  I take it 
> maven
> should look under $JAVA_HOME and find the javadoc executable, correct?
>
>
> -
> 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: [102] How to get/create the ClassLoader for current project

2005-11-01 Thread Brett Porter
Aside from how you'd actually do this (which could be a bit tricky),
the example below would actually be included in the default
classloader the plugin gets.

- Brett

On 11/2/05, Guo, Jiaqi <[EMAIL PROTECTED]> wrote:
> One of my jelly tag classes(Class extending
> org.apache.commons.jelly.TagSupport, defined by ) in
> maven plugin needs the ClassLoader object which can find any class in
> current project or the depending libraries.
>
> If I do
> 
> 
> 
> 
> I can only use this path definition in ant tags through classpathref
> attribute. Is there anyway for other jelly tag class to access
> "projectClasspath"? If not, how can I get the project ClassLoader object
> that I want?
>
>
> Thanks in advance
>
>
>
>
> Regards
> Jiaqi
>
> -
> 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]



[102] How to get/create the ClassLoader for current project

2005-11-01 Thread Guo, Jiaqi
One of my jelly tag classes(Class extending 
org.apache.commons.jelly.TagSupport, defined by ) in 
maven plugin needs the ClassLoader object which can find any class in 
current project or the depending libraries.


If I do

   
   

I can only use this path definition in ant tags through classpathref 
attribute. Is there anyway for other jelly tag class to access 
"projectClasspath"? If not, how can I get the project ClassLoader object 
that I want?



Thanks in advance




Regards
Jiaqi

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



Re: [M2]Dumb question

2005-11-01 Thread Brett Porter
http://maven.apache.org/maven2/scm/maven-scm-plugin/

This definitely need sto be linked in from the plugin reference and
the SCM site.

Also, the SCM site lists a bunch of SCM tools - these look like we
support them to me, but we don't support most, they are just planned.
Headings might be helpful.

- Brett

On 11/2/05, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
> Yeah but it written it's supported on the matrix. And, correct me if I am
> wrong, but we have to use this plugin to checkout our project. Anyway thank
> for the help.
>
> On 11/1/05, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> >
> > On 11/1/05, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
> > >
> > > Where is the scm plugin homepage? I have been looking for it for the
> > past
> > > 20
> > > minutes and I can't seem to find it. Thanks!
> >
> >
> > It's not on the list of m2 plugins:
> > http://maven.apache.org/plugins/index.html
> >
> > See also: http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Matrix
> >
> > --
> > Wendy
> >
> >
>
>
> --
> Alexandre Poitras
> Québec, Canada
>
>

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



How to use CheckStyle plugin?

2005-11-01 Thread David Parry

Can anyone suggest the canonical way to use the CheckStyle plugin?

Based on an example someone else supplied to me, I have done this:

...
 

   
org.apache.maven.plugins
maven-checkstyle-plugin


check-main-src
compile

checkstyle-src.xmlpropertiesFile>

false


   checkstyle


 



...

But I seem to be having some weirdness... this configuration seems to  
ignore things I put in the checkstyle-src.xml file...


What's the best way to set this up?



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



Re: Maven2: javadoc-1.4.jar does not exist in repository

2005-11-01 Thread Chris Wilkes
Edson Yanaga  insula.com.br> writes:
> I'm trying to migrate my projects from Maven 1.1b2 to 2, but when I
> insert the following dependency:
> 
> 
> springframework
> spring-mock
> 1.2.5
> test
> 
> 
> My build fails. It requests javadoc-1.4.jar, but it does not exist. How
> can I get this file, or is it a problema with the springframework
> pom.xml?

I have the exact same problem with my spring project, at first I thought it was
due to being on Windows and having a space in my CLASSPATH but I also tried this
out on a linux machine and the same error came up

> Downloading:
> http://repo1.maven.org/maven2/javadoc/javadoc/1.4/javadoc-1.4.jar
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)

Looking on that site there's a javadoc for 1.3 but not for 1.4.  I take it maven
should look under $JAVA_HOME and find the javadoc executable, correct?  


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



[M2]Newbie question : Difference between the resources and config directories?

2005-11-01 Thread Alexandre Poitras
Hi all,

I wanted to know what were the differences between the src/main/config and
src/main/resources directories defined in the standard directory layout.
Right now, I don't know in wich one to put my application.xml file (standard
j2ee descriptor) and my log4j.xml file. Any pointer?
Thank for the help!
--
Alexandre Poitras
Québec, Canada


Re: [m2] internal repository docs?

2005-11-01 Thread Wendy Smoak
On 11/1/05, Chris Berry <[EMAIL PROTECTED]> wrote:
>
> Hi Wendy,
> I had to do this too and used::
> ...
> file:///C:/cberry/work/3rdparty-repo/
>

Thanks! I went with:



irm-repo
IRM Maven Repository
file://\\server\files\repository



Seems to be working, in between the complaints about missing poms and
checksums, it did retrieve files from that repository to my local one. :)

--
Wendy


Re: [M2]Dumb question

2005-11-01 Thread Alexandre Poitras
Yeah but it written it's supported on the matrix. And, correct me if I am
wrong, but we have to use this plugin to checkout our project. Anyway thank
for the help.

On 11/1/05, Wendy Smoak <[EMAIL PROTECTED]> wrote:
>
> On 11/1/05, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
> >
> > Where is the scm plugin homepage? I have been looking for it for the
> past
> > 20
> > minutes and I can't seem to find it. Thanks!
>
>
> It's not on the list of m2 plugins:
> http://maven.apache.org/plugins/index.html
>
> See also: http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Matrix
>
> --
> Wendy
>
>


--
Alexandre Poitras
Québec, Canada


Re: Building C++ projects with Maven (2)

2005-11-01 Thread Roger Hoover
Good point. Source RPM handles this with options you can pass to the
rpmbuild command. Maven could have either command line or configuration
options to do the same.

From
http://www.rpm.org/max-rpm-snapshot/s1-rpm-multi-build-install-detection.html
,

"The *--buildarch* and *--buildos* options can be used to set the build-time
architecture and operating system rather than relying on RPM's automatic
detection capabilities. These options are added to a normal RPM build
command. One important point to remember is that, although RPM does try to
find the specified architecture name, it does no checking as to the sanity
of the entered architecture or operating system. For example, if you enter
an entirely fictional operating system, RPM will issue a warning message,
and then happily build a package for it."

This brings up an interesting idea. Rather than building the infrastructure
into Maven to detect OS and architecture information, perhaps Maven could
delegate this to rpm, at least on Linux. RPM is the package format defined
for the Linux Standard Base, although it mentions the standard includes only
the rpm package format and not the rpm command or specific rpm macros. In
practice, this might not be a big deal. Most or all distros might use the
same rpm command options and a small set of standard macros.

http://www.linuxbase.org/spec/refspecs/LSB_1.2.0/gLSB/swinstall.html
http://www.linuxbase.org/talks/lca2005/img52.html

Just an idea for trying to reduce the effort to support this and unnecessary
duplication of functionality.

Roger

On 11/1/05, Sean Hennessy <[EMAIL PROTECTED]> wrote:
>
> If one considers an alternative use case scenario where a single host
> (build server) is cross compiling for multiple targets.
> Then would not the maven "sense the machine architecture" solution would
> only support one target environment?
> Perhaps a mechanism for management of iterative profiles in order to
> target environment.
>
> -Original Message-
> From: Roger Hoover [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 01, 2005 12:28 PM
> To: Maven Users List
> Subject: Re: Building C++ projects with Maven (2)
>
>
> The concern I would have with this is that you have the same logical
> package (let's say apr 1.2.2) built for different architectures needing
> to have a different groupId or artifactId for each architecture type.
> Unless the groupId or artifactId is constructed dynamically, poms that
> depend on a native artifact have to depend on a specific architecture
> type. I think it would be nice to write generic poms that depend on just
> the logical package (apr 1.2.2 instead of apr 1.2.2 x86_64) and have
> maven sense the machine architecture (and OS) and fetch the correct
> native artifact.
>
> Roger
>
> On 11/1/05, dan tran <[EMAIL PROTECTED]> wrote:
> >
> > You can use groupId for platform specific or add platform specific
> > string to your artifact id.
> > -D
> >
> >
> > On 11/1/05, Chris Berry <[EMAIL PROTECTED]> wrote:
> > >
> > > This brings up a bigger question; How does maven want to handle OS
> > > information in the repo?? To be successful w/ other languages like
> > > C,
> > the
> > > repo will need to delineate information such as "i586" and "linux".
> > > Are these to be rolled into the groupId?? That doesn't smell right.
> > > Seems
> > that
> > > we may need new Artifact Resolvers that understand this sort of info
>
> > > natively and can transparently supply the the correct pieces to the
> > > URL.
> > >
> > > Cheers,
> > > -- Chris
> > >
> > > On 11/1/05, dan tran <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Hi David,
> > > > There is a work in progress for native-maven-plugin
> > > > http://svn.mojo.codehaus.org/trunk/mojo/maven-native/
> > > > You can build it and take a look at some doc.
> > > > -Dan
> > > >
> > > >
> > > > On 11/1/05, David Jackman <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > I've just found out that I'm going to need to expand our Maven
> > > > > build process to include several C++ project (which I believe
> > > > > are built
> > > using
> > > > > gcc). I seem to remember seeing some traffic on this list from
> > people
> > > > > doing this sort of thing (which I promptly ignored because I
> > > > > wasn't
> > at
> > >
> > > > > the time). Can anyone offer some insight on how you got this to
> > > > > work and how you overcame the problems that came up? What
> > > > > plugins are available to build this way and do they do
> > > > > everything you need? Are
> > > you
> > > > > able to have dependencies in the Maven repository and have the
> > > > > build
> > > use
> > > > > them from there (similar to .jar dependencies)? How do you
> > > > > access
> > the
> > > > > header files, possible library, and runtime library for the
> > different
> > > > > portions of the build? Is there a mini guide for this kind of
> > project
> > > > > in the works?
> > > > >
> > > > > Thanks,
> > > > > ..David..
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
> -

Re: [M2]Dumb question

2005-11-01 Thread Wendy Smoak
On 11/1/05, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
>
> Where is the scm plugin homepage? I have been looking for it for the past
> 20
> minutes and I can't seem to find it. Thanks!


It's not on the list of m2 plugins:
http://maven.apache.org/plugins/index.html

See also: http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Matrix

--
Wendy


Re: [m2] internal repository docs?

2005-11-01 Thread Chris Berry
Hi Wendy,
I had to do this too and used::


CWB
file:///C:/cberry/work/3rdparty-repo/
legacy


 Note the /// on windoze. And note the trailing /
Cheers,
-- Chris

On 11/1/05, Wendy Smoak <[EMAIL PROTECTED]> wrote:
>
> I asked Google about 'maven internal repository' and it turned up:
> http://maven.apache.org/reference/internal-repositories.html
>
> It's at the top level of the site, so I'd expect it to apply to m2, but it
> doesn't seem to.
>
> I need to set up an internal repository to be accessed with file:// .
>
> I think this might have what I need...
> http://maven.apache.org/guides/mini/guide-multiple-repositories.html
>
> If that's not it, where else should I look?
>
> Thanks,
> --
> Wendy
>
>


Problems with assembly:assembly

2005-11-01 Thread Colin Chalmers

Hi ,

I'm trying to use the assembly plugin on M2 to build one jar including 
the classes from the three sub-projects/modules.


However it doesn't seem to be traversing the modules to pick up the 
classes, the jar is as good as empty.
If I omit the target/classes element it seems to 
aggregate all the modules and layout including jars into one big jar.

All I want is to aggregate the classes tp produce one jar file distribution

What am I missing?

I'm trying to follow the info on the site + a link I got from Jason
http://maven.apache.org/guides/mini/guide-assemblies.html
http://svn.apache.org/viewcvs.cgi/*checkout*/maven/components/trunk/maven-embedder/src/main/assembly/dep.xml?rev=306535

/Colin

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



Re: Migrate jelly execute scripts to M2? (was RE: Wanted: Help with documentation on M2)

2005-11-01 Thread Chris Berry
Hi Siegfried,
I think the short answer is; write a plugin.
Now if you're like me, and your Jelly was mostly just a bunch of Ant calls
with a bit of Jelly glue, then you might consider using the new m2 Ant
plugins. This would allow you to transfer the knowledge directly to an Ant
buildfile and simply execute that from your plugin. It's pretty straight
forward.
BTW: you may need to use the Ant Tasks in ant-contrib to fill in some of the
script functionality that is missing in Ant.
Cheers,
-- Chris

On 11/1/05, Siegfried Heintze <[EMAIL PROTECTED]> wrote:
>
> I would like to migrate my custom m1 jelly script from m1 to m2 that
> executes my program. As per Dan's advice, I have been searching with
> "execute" and not having much luck. Can I get a few more hints?
>
> Also, I've been thinking: what I really want is a way to automatically
> generate either C++ (using JNI) or bat files or sh files that assemble the
> monstrous class paths and run my java programs. Would such a code
> generator
> be best implemented as a maven plugin or eclipse plugin -- or something
> else?
>
> Thanks,
> Siegfried
>
>
> -Original Message-
> From: dan tran [mailto:[EMAIL PROTECTED]
> Sent: Sunday, October 16, 2005 10:04 AM
> To: Maven Users List
> Subject: Re: Wanted: Help with documentation on M2
>
> Siegfried,
> The development team is actively working on m2 documentation, and I
> beleive
> you will see lots doco will be available soon. Voting is going on dev list
> to
> load up new doco site layout
> However, I have seen lot traffic discussion about having a mojo to do
> exactly what
> your try to do by invoking java with classpath containing dependency
> artifacts.
> Here are some links that my help
> http://mojo.codehaus.org/maven-execute-plugin/ deprecated
> http://docs.codehaus.org/display/MAVEN/Maven+Runtime
> Search the archive for "execute", i am sure you will find more info.
> Assume that the desired plugin/mojo is available, all you need is
> a pom.xml + the plugin's configuration in the pom
> Hope it helps
> -D
>
> On 10/16/05, Siegfried Heintze <[EMAIL PROTECTED]> wrote:
> >
> > I'm reading http://maven.apache.org/maven2/general.html and
> > http://maven.apache.org/maven2/maven1.html#m1-maven-xml and I still
> don't
> > understand where I learn about converting the following maven.xml file
> > (see
> > below) for use with m2. Can someone point me to the proper URL that
> > contains
> > the M2 documentation that will tell me how to convert a minimal maven
> 1.1
> > project to m2 given the maven.xml file below?
> >
> > Thanks,
> > Siegfried
> >
> > 
> >
> >  > xmlns:j="jelly:core" xmlns:u="jelly:util">
> > 
> > 
> > 
> >  > location="${maven.build.dir}/${maven.final.name<
> http://maven.final.name>
> > }.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]
>
>


[M2] merging war files

2005-11-01 Thread Damian_Bradicich




I just thought I would share with everyone our solution to merging war
files (special thanks goes out to Roland Bali for the
dependency-copier-plugin).  Note that there is no auto-merging of the
web.xml as we didn't have a necessity for that.

Basically I setup the war I need as a dependency, then during the packaging
phase I explode the project war into a new directory, then explode the
dependency war into that directory as well (noting that overwrite=false so
that web.xml isn't modified).

Then just war up that directory and you now have a merged war.

Things to keep in mind:

1.  Thought must be placed in file naming conventions, as files of the same
name will not get copied from the dependent war file
2.  The web.xml of the base project has no need to be overwritten.  Since
you already know ahead of time which wars this project will be dependent
on, you can setup the web.xml to include all configurations for each
dependant war.

Hope this helps some folks out there..

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";>
  4.0.0
  
com.stchome.maven.parent
war
1.0-SNAPSHOT
  
  com.stchome.shared
  test-webapp
  war
  1.0-SNAPSHOT
  Maven Webapp Archetype
  http://maven.apache.org
  

  com.stchome.shared
  supplementaldata-ui
  1.0-SNAPSHOT
  compile
  war

  
  
test-webapp

  
maven-antrun-plugin

  
package

  






  


  run

  

  
  
com.buckazoid.maven.mojos
dependency-copier-plugin
1.1

  ./target/


  
  package

  copy

  

  

  
  

  buckazoid-repo
  Maven repository at buckazoid.com
  http://www.buckazoid.com/maven/repository

  

___
Damian Bradicich
Software Developer
Scientific Technologies Corporation
Tel: (603) 471-4712
Email: [EMAIL PROTECTED]
Web Site: www.stchome.com
"Advancing Public Health Outcomes Through Information Technology"
___


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



Errors when starting Continuum which is built on my machine

2005-11-01 Thread Frank Zhao

On Linux machine, I check out the Continuum trunk from the svn repository, run 
"./build.sh", the compilation was OK (with a few test failure). 

Then followed the README file, under the 
"continuum-plexus-application/target/plexus-test-runtime/", I ran 
"./bin/plexus.sh", I got the following errors:

Exception in thread "main" java.lang.NoSuchMethodError: 
java.lang.IllegalArgumentException: method 
(Ljava/lang/String;Ljava/lang/Throwable;)V not found
at 
org.codehaus.plexus.logging.log4j.Log4JLoggerManager.initialize(Log4JLoggerManager.java:202)
at 
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:16)
at 
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
at 
org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
...
...


I couldn't find the "Log4JLoggerManager.java" on my machine. It seems the jar 
containing the Log4JLoggerManager.class is in the wrong version or mismatched 
with other classes and therefore caused the "NoSuchMethodError".

Is there anyone on this list who recently build Continuum 1.0 on Linux? I have 
been working on this for a week and have no idea how to make it work.

Thanks in advance!

Frank





[M2]Dumb question

2005-11-01 Thread Alexandre Poitras
Where is the scm plugin homepage? I have been looking for it for the past 20
minutes and I can't seem to find it. Thanks!


--
Alexandre Poitras
Québec, Canada


Re: Building C++ projects with Maven (2)

2005-11-01 Thread Chris Berry
Good point Sean.
But I think the original question still holds; How should we handle this in
the repo itself?? I do not think that one can use either groupId or
artifactId without violating the platform independence of the POM. I think
this implies a smarter "Artifact Resolver" than we have to today??
Cheers,
-- Chris

On 11/1/05, Sean Hennessy <[EMAIL PROTECTED]> wrote:
>
> If one considers an alternative use case scenario where a single host
> (build server) is cross compiling for multiple targets.
> Then would not the maven "sense the machine architecture" solution would
> only support one target environment?
> Perhaps a mechanism for management of iterative profiles in order to
> target environment.
>
> -Original Message-
> From: Roger Hoover [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 01, 2005 12:28 PM
> To: Maven Users List
> Subject: Re: Building C++ projects with Maven (2)
>
>
> The concern I would have with this is that you have the same logical
> package (let's say apr 1.2.2) built for different architectures needing
> to have a different groupId or artifactId for each architecture type.
> Unless the groupId or artifactId is constructed dynamically, poms that
> depend on a native artifact have to depend on a specific architecture
> type. I think it would be nice to write generic poms that depend on just
> the logical package (apr 1.2.2 instead of apr 1.2.2 x86_64) and have
> maven sense the machine architecture (and OS) and fetch the correct
> native artifact.
>
> Roger
>
> On 11/1/05, dan tran <[EMAIL PROTECTED]> wrote:
> >
> > You can use groupId for platform specific or add platform specific
> > string to your artifact id.
> > -D
> >
> >
> > On 11/1/05, Chris Berry <[EMAIL PROTECTED]> wrote:
> > >
> > > This brings up a bigger question; How does maven want to handle OS
> > > information in the repo?? To be successful w/ other languages like
> > > C,
> > the
> > > repo will need to delineate information such as "i586" and "linux".
> > > Are these to be rolled into the groupId?? That doesn't smell right.
> > > Seems
> > that
> > > we may need new Artifact Resolvers that understand this sort of info
>
> > > natively and can transparently supply the the correct pieces to the
> > > URL.
> > >
> > > Cheers,
> > > -- Chris
> > >
> > > On 11/1/05, dan tran <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Hi David,
> > > > There is a work in progress for native-maven-plugin
> > > > http://svn.mojo.codehaus.org/trunk/mojo/maven-native/
> > > > You can build it and take a look at some doc.
> > > > -Dan
> > > >
> > > >
> > > > On 11/1/05, David Jackman <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > I've just found out that I'm going to need to expand our Maven
> > > > > build process to include several C++ project (which I believe
> > > > > are built
> > > using
> > > > > gcc). I seem to remember seeing some traffic on this list from
> > people
> > > > > doing this sort of thing (which I promptly ignored because I
> > > > > wasn't
> > at
> > >
> > > > > the time). Can anyone offer some insight on how you got this to
> > > > > work and how you overcame the problems that came up? What
> > > > > plugins are available to build this way and do they do
> > > > > everything you need? Are
> > > you
> > > > > able to have dependencies in the Maven repository and have the
> > > > > build
> > > use
> > > > > them from there (similar to .jar dependencies)? How do you
> > > > > access
> > the
> > > > > header files, possible library, and runtime library for the
> > different
> > > > > portions of the build? Is there a mini guide for this kind of
> > project
> > > > > in the works?
> > > > >
> > > > > Thanks,
> > > > > ..David..
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Maven 2 Repository - Logging Missing jars etc.

2005-11-01 Thread Tomislav Stojcevich
That particular jar is a sun licensed jar so it won't be in the
central repository, you will have to get it yourself, it's POM has the
download url (the POM in the original location, not the new one
http://www.ibiblio.org/maven2/jdbc/jdbc-stdext/2.0/jdbc-stdext-2.0.pom).

See:  http://maven.apache.org/maven2/guides/mini/guide-coping-with-sun-jars.html

No need to log a JIRA about the fact that it is missing but you might
log one about the new POM not having the download info in it.
http://jira.codehaus.org/browse/MEV


On 11/1/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Does anyone know where the best place is to log problems with Repository
> Dependencies.
>
> The sort of problems I'm talking about, is  .pom file referencing a jar
> that isn't in the Maven2 Repository (e.g.
> http://repo1.maven.org/maven2/javax/sql/jdbc-stdext/2.0/jdbc-stdext-2.0.jar).
>
> I have looked at the various JIRA Maven projects and it isn't clear where
> these issues should be logged.  Is there a Repository Administration bug
> list?
>


--
tom

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



RE: Refering to a resource by a property

2005-11-01 Thread Arnaud HERITIER
You can use the system property basedir
For example :
http://svn.apache.org/viewcvs.cgi/maven/maven-1/plugins/trunk/xdoc/src/test/org/apache/maven/NavBeanTest.java?rev=170200&view=markup

Arnaud
 

> -Message d'origine-
> De : Alexandre Poitras [mailto:[EMAIL PROTECTED] 
> Envoyé : mardi 1 novembre 2005 20:17
> À : Maven Users List
> Objet : Refering to a resource by a property
> 
> Hi to all the maven experts out there!
> 
> I'm looking for a way in my pom to refer to my resources 
> directory in a dynamic way (by a property). Right now, the 
> entry is looking like "src/main/resources/xsd/gdu.xsd" but I 
> would like to have something like "{ 
> pom.build.resources...}". By the way, do you think I am too 
> precautious? Is it worth it to use a variable or it's alright 
> to write directly the path value?
> 
> Thanks for any help! It's really appreciated!
> 
> --
> Alexandre Poitras
> Québec, Canada
> 




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



Re: M2 Problem with running getting started example

2005-11-01 Thread Anuerin Diaz
Hi,

   If you are behind a http proxy then you might want to read the
following links to enable m2 to access the remote repositories..

   http://maven.apache.org/maven2/guides/mini/guide-proxies.html
   http://maven.apache.org/maven2/maven-settings/settings.html

ciao!

On 11/1/05, Sipho Mothobi <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am Maven 1.x user and just started to go through the M2 documentation
> and examples. I'm trying to run the "How do I make my first Maven project?"
> and getting errors, i have also tried to to run mvn install an get the
> same error. I also tried to place in this directory a pom.xml which did
> not help.
>
> Please help. This is the error i am getting :
>
>
> [EMAIL PROTECTED] mvn-2-eg]$ mvn -e  archetype:create
> -DgroupId=co.rmb.theapp -artifactId=TheApp
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does
> not exist or no valid version could be found



ciao!

--

"Programming, an artform that fights back"

Anuerin G. Diaz
Registered Linux User #246176
Friendly Linux Board @ http://mandrivausers.org/index.php
http://capsule.ramfree17.org , when you absolutely have nothing else
better to do

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



Re: Build problem

2005-11-01 Thread Emmanuel Venisse

I already answer to your previous mail but it seems it never arrive on the list.

This pb is fixed in svn, it's due to a pb in scm execution.

Emmanuel

Malcolm Wong Ho a écrit :

Continuum build failing, not sure what the cause is. Using Maven2 and
Continuum1.

 


Log :-

 


jvm 1| 2005-11-01 09:00:00,013 [scheduler1_Worker-11] INFO
SchedulesActivator - > Executing build
job (DEFAULT_SCHEDULE)...

 


jvm 1| 2005-11-01 09:00:00,053 [scheduler1_Worker-11] INFO
Continuum  - Enqueuing 'Maven Quick Start Archetype'
(Build definition id=10

.

jvm 1| 2005-11-01 09:00:00,154 [Thread-1] INFO  ContinuumScm
- Checking out project: 'Maven Quick Start Archetype', id: '10' to
'C:\blackb

ird\continuum-1.0\bin\win32\..\..\apps\continuum\working-directory\10'.

jvm 1| 2005-11-01 09:00:00,234 [Thread-1] WARN  ConfigurationService
- Error reading build output for build '25'.

jvm 1| java.io.FileNotFoundException:
C:\blackbird\continuum-1.0\bin\win32\..\..\apps\continuum\build-output-d
irectory\10\25.log.txt (The system cannot find

 the file specified)

jvm 1|  at java.io.FileInputStream.open(Native Method)

jvm 1|  at
java.io.FileInputStream.(FileInputStream.java:106)

jvm 1|  at
org.codehaus.plexus.util.FileUtils.fileRead(FileUtils.java:269)

jvm 1|  at
org.codehaus.plexus.util.FileUtils.fileRead(FileUtils.java:261)

jvm 1|  at
org.apache.maven.continuum.configuration.DefaultConfigurationService.get
BuildOutput(DefaultConfigurationService.java:167)

jvm 1|  at
org.apache.maven.continuum.notification.DefaultContinuumNotificationDisp
atcher.sendNotification(DefaultContinuumNotificationDispatcher.java:1

29)

jvm 1|  at
org.apache.maven.continuum.notification.DefaultContinuumNotificationDisp
atcher.buildComplete(DefaultContinuumNotificationDispatcher.java:96)

jvm 1|  at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(
DefaultBuildController.java:261)

jvm 1|  at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.exec
uteTask(BuildProjectTaskExecutor.java:53)

jvm 1|  at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Execut
orRunnable.run(ThreadedTaskQueueExecutor.java:103)

jvm 1|  at java.lang.Thread.run(Thread.java:595)

 




Malcolm Wong Ho

   An investment in knowledge always pays the best interest. -- Benjamin
Franklin

 



“This e-mail is sent on the Terms and Conditions that can be accessed by Clicking on 
this link http://www.vodacom.net/legal/email.aspx "





Re: problem with Hibernate:schema-export task

2005-11-01 Thread Marco Mistroni
hELLO all,
 i solved my problem...
i had to specify in project.properties the location of my
hibernate.properties

maven.hibernate.properties=Backend/src/conf/hibernate.properties
  thanx anyway and regards
 marco
   On 11/1/05, Marco Mistroni <[EMAIL PROTECTED]> wrote:
>
> hello all,
>  i am trying to run the hibernate:schema-export task, but so far
> unsuccessfully :(
>  here's my hibernate.properties file
>  hibernate.connection.driver_class=org.hsqldb.jdbcDriver
> hibernate.connection.url=jdbc:hsqldb:foo
> hibernate.connection.username=sa
> hibernate.dialect=net.sf.hibernate.dialect.HSQLDialect
>   here's my maven.xml
> ..
>  
>   i am using hibernate-2.1.8jar, and the hibernate plugin that i am using
> is version 1.3
>   anyone could help me?
>  regards
>  marco
>


M2 Problem with running getting started example

2005-11-01 Thread Sipho Mothobi


Hi,

I am Maven 1.x user and just started to go through the M2 documentation  
and examples. I'm trying to run the "How do I make my first Maven project?"
and getting errors, i have also tried to to run mvn install an get the  
same error. I also tried to place in this directory a pom.xml which did  
not help.


Please help. This is the error i am getting :


[EMAIL PROTECTED] mvn-2-eg]$ mvn -e  archetype:create  
-DgroupId=co.rmb.theapp -artifactId=TheApp

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]  


[ERROR] BUILD ERROR
[INFO]  

[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does  
not exist or no valid version could be found
[INFO]  


[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin  
'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no  
valid version could be found
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1124)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1356)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:376)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:132)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
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:324)
at  
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

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

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:  
The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not  
exist or no valid version could be found
at  
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:225)
at  
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:87)
at  
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:158)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1095)

... 14 more
[INFO]  


[INFO] Total time: < 1 second
[INFO] Finished at: Tue Nov 01 17:32:47 SAST 2005
[INFO] Final Memory: 1M/2M
[INFO]  



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



surefire not running..

2005-11-01 Thread Erick Dovale

Hi there,
I am having trouble getting the surefire plugin to run my unit tests. It 
seems to be running the first unit test and crashing right after with 
the following exception:


Reporter method testStarting completed abruptly with an exception.
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
   at java.lang.String.substring(String.java:1444)
   at 
org.codehaus.surefire.report.XMLReporter.testStarting(XMLReporter.jav

a:101)
   at 
org.codehaus.surefire.report.ReporterManager.testStarting(ReporterMan

ager.java:304)
   at 
org.codehaus.surefire.battery.TestListenerInvocationHandler.handleSta

rtTest(TestListenerInvocationHandler.java:143)
   at 
org.codehaus.surefire.battery.TestListenerInvocationHandler.invoke(Te

stListenerInvocationHandler.java:120)
   at $Proxy0.startTest(Unknown Source)
   at junit.framework.TestResult.startTest(TestResult.java:151)
   at junit.framework.TestResult.run(TestResult.java:103)
   at junit.framework.TestCase.run(TestCase.java:118)
   at junit.framework.TestSuite.runTest(TestSuite.java:208)
   at junit.framework.TestSuite.run(TestSuite.java:203)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at 
org.codehaus.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.

java:246)
   at 
org.codehaus.surefire.battery.JUnitBattery.execute(JUnitBattery.java:

220)
   at org.codehaus.surefire.Surefire.executeBattery(Surefire.java:204)
   at org.codehaus.surefire.Surefire.run(Surefire.java:153)
   at org.codehaus.surefire.Surefire.run(Surefire.java:77)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.codehaus.surefire.SurefireBooter.run(SurefireBooter.java:104)
   at 
org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:303)


   at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi

nManager.java:412)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

ultLifecycleExecutor.java:519)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone

Goal(DefaultLifecycleExecutor.java:482)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau

ltLifecycleExecutor.java:452)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan

dleFailures(DefaultLifecycleExecutor.java:301)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen

ts(DefaultLifecycleExecutor.java:268)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi

fecycleExecutor.java:137)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

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

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


   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

I tried surefire 2.0 and 2.1-SNAPSHOT and both are having the same problem.

Any hints??

cheers,

edovale

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



Maven 2 Repository - Logging Missing jars etc.

2005-11-01 Thread Jasper . Morgan
Does anyone know where the best place is to log problems with Repository 
Dependencies.

The sort of problems I'm talking about, is  .pom file referencing a jar 
that isn't in the Maven2 Repository (e.g. 
http://repo1.maven.org/maven2/javax/sql/jdbc-stdext/2.0/jdbc-stdext-2.0.jar).

I have looked at the various JIRA Maven projects and it isn't clear where 
these issues should be logged.  Is there a Repository Administration bug 
list?

[M2] surefire crashing.

2005-11-01 Thread Erick Dovale
Sorry if this gets posted twice. I send the email a couple of hours a go 
it did not get through.


here goes again:

Hi there,
I am having trouble getting the surefire plugin to run my unit tests. It 
seems to be running the first unit test and crashing right after with 
the following exception:


Reporter method testStarting completed abruptly with an exception.
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  at java.lang.String.substring(String.java:1444)
  at 
org.codehaus.surefire.report.XMLReporter.testStarting(XMLReporter.jav

a:101)
  at 
org.codehaus.surefire.report.ReporterManager.testStarting(ReporterMan

ager.java:304)
  at 
org.codehaus.surefire.battery.TestListenerInvocationHandler.handleSta

rtTest(TestListenerInvocationHandler.java:143)
  at 
org.codehaus.surefire.battery.TestListenerInvocationHandler.invoke(Te

stListenerInvocationHandler.java:120)
  at $Proxy0.startTest(Unknown Source)
  at junit.framework.TestResult.startTest(TestResult.java:151)
  at junit.framework.TestResult.run(TestResult.java:103)
  at junit.framework.TestCase.run(TestCase.java:118)
  at junit.framework.TestSuite.runTest(TestSuite.java:208)
  at junit.framework.TestSuite.run(TestSuite.java:203)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)
  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at 
org.codehaus.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.

java:246)
  at 
org.codehaus.surefire.battery.JUnitBattery.execute(JUnitBattery.java:

220)
  at org.codehaus.surefire.Surefire.executeBattery(Surefire.java:204)
  at org.codehaus.surefire.Surefire.run(Surefire.java:153)
  at org.codehaus.surefire.Surefire.run(Surefire.java:77)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)
  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at org.codehaus.surefire.SurefireBooter.run(SurefireBooter.java:104)
  at 
org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:303)


  at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi

nManager.java:412)
  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

ultLifecycleExecutor.java:519)
  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone

Goal(DefaultLifecycleExecutor.java:482)
  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau

ltLifecycleExecutor.java:452)
  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan

dleFailures(DefaultLifecycleExecutor.java:301)
  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen

ts(DefaultLifecycleExecutor.java:268)
  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi

fecycleExecutor.java:137)
  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)
  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

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

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


  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

I tried surefire 2.0 and 2.1-SNAPSHOT and both are having the same problem.

Any hints??

cheers,

edovale



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



Re: Compiling J2SE 5.0

2005-11-01 Thread Erick Dovale

Hi Graham,

This how it is done in 2.0
In your pom.xml's build section you must tell the compiler plugin what 
version to use:


   
   
   
   org.apache.maven.plugins
   maven-compiler-plugin
   
   1.5
   1.5
   
   
  
   

Hope it helps..

edovale.

Graham King wrote:


 In Maven 1.0 you put this in your project.properties:

maven.compile.source=1.5
maven.compile.target=1.5
maven.test.source=1.5
maven.javadoc.source=1.5

 I don't know if this has changed for 2.0

 Graham.


Nathaniel Stoddard wrote:


Another newbie question for you guys (big thanks by the way!):

How do I set up Maven so it will compile with a target and source of
1.5.  I know how to do this in Ant, and I can see the properties for
the "compiler:compiler" plugin, but I don't really understand where I
should set them.  I'm using Maven 2.0.

-
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: [M2] war project using war type dependencies

2005-11-01 Thread Kevin Galligan

This concept has been floating around the list for a while.  I've got
the same problem.  I'm hoping somebody has a solution or at least a good
idea of what road to go down.  I'd be happy to try coding something, but 
I have a feeling that somebody is already working on this.  If not, any 
thoughts on where to look?


war plugin?
new plugin?
something else?

I've got this to work with the assembly plugin, but it would only work
with a jar or zip output, which would then have to be renamed to war.
Not horrible, but there's an easier way to do it.  This approach also 
has some other issues:


- No web.xml merging
- No automatic support of things like 'war:exploded'
- Generally breaks the concept of project descriptor being enough info 
to build a project.  You should be able to specify a particular war 
artifact as a dependency and have it included in your current war project.


Any thoughts or comments welcome.  Kind of lost at this point.  In a 
general sense, I think there should be a way to include common web 
application components inside a web application project.  Similar to 
including java classes in dependent jars.  Reusing the code.  We do this 
currently with file sharing in visual source safe, but that sucks, and 
I'm trying to move us off vss anyway.


Thanks,

-Kevin

[EMAIL PROTECTED] wrote:




I want to combine 2 war files into 1, so I have a war project with a subset
of functionallity.  I then have another war project that I want to depend
on the first war project with.  I would then have tasks to unwar the war
file, so that the files from both wars can then be war'ed up together.

However, when using a war project, any war type dependencies don't get
transferred into the /target folder (tried test, compile, runtime, and
provided).

When using an ear project, the war dependencies get transferred into the
/target folder, and that is exactly what I need, just for a war project.

Any ideas??
___
Damian Bradicich
Software Developer
Scientific Technologies Corporation
Tel: (603) 471-4712
Email: [EMAIL PROTECTED]
Web Site: www.stchome.com
"Advancing Public Health Outcomes Through Information Technology"
___


-
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: Building C++ projects with Maven (2)

2005-11-01 Thread Sean Hennessy
If one considers an alternative use case scenario where a single host
(build server) is cross compiling for multiple targets.
Then would not the maven "sense the machine architecture" solution would
only support one target environment?
Perhaps a mechanism for management of iterative profiles in order to
target environment.

-Original Message-
From: Roger Hoover [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 01, 2005 12:28 PM
To: Maven Users List
Subject: Re: Building C++ projects with Maven (2)


The concern I would have with this is that you have the same logical
package (let's say apr 1.2.2) built for different architectures needing
to have a different groupId or artifactId for each architecture type.
Unless the groupId or artifactId is constructed dynamically, poms that
depend on a native artifact have to depend on a specific architecture
type. I think it would be nice to write generic poms that depend on just
the logical package (apr 1.2.2 instead of apr 1.2.2 x86_64) and have
maven sense the machine architecture (and OS) and fetch the correct
native artifact.

Roger

On 11/1/05, dan tran <[EMAIL PROTECTED]> wrote:
>
> You can use groupId for platform specific or add platform specific 
> string to your artifact id.
> -D
>
>
> On 11/1/05, Chris Berry <[EMAIL PROTECTED]> wrote:
> >
> > This brings up a bigger question; How does maven want to handle OS 
> > information in the repo?? To be successful w/ other languages like 
> > C,
> the
> > repo will need to delineate information such as "i586" and "linux". 
> > Are these to be rolled into the groupId?? That doesn't smell right. 
> > Seems
> that
> > we may need new Artifact Resolvers that understand this sort of info

> > natively and can transparently supply the the correct pieces to the 
> > URL.
> >
> > Cheers,
> > -- Chris
> >
> > On 11/1/05, dan tran <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi David,
> > > There is a work in progress for native-maven-plugin 
> > > http://svn.mojo.codehaus.org/trunk/mojo/maven-native/
> > > You can build it and take a look at some doc.
> > > -Dan
> > >
> > >
> > > On 11/1/05, David Jackman <[EMAIL PROTECTED]> wrote:
> > > >
> > > > I've just found out that I'm going to need to expand our Maven 
> > > > build process to include several C++ project (which I believe 
> > > > are built
> > using
> > > > gcc). I seem to remember seeing some traffic on this list from
> people
> > > > doing this sort of thing (which I promptly ignored because I 
> > > > wasn't
> at
> >
> > > > the time). Can anyone offer some insight on how you got this to 
> > > > work and how you overcame the problems that came up? What 
> > > > plugins are available to build this way and do they do 
> > > > everything you need? Are
> > you
> > > > able to have dependencies in the Maven repository and have the 
> > > > build
> > use
> > > > them from there (similar to .jar dependencies)? How do you 
> > > > access
> the
> > > > header files, possible library, and runtime library for the
> different
> > > > portions of the build? Is there a mini guide for this kind of
> project
> > > > in the works?
> > > >
> > > > Thanks,
> > > > ..David..
> > > >
> > > >
> > >
> > >
> >
> >
>
>

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



Re: Building C++ projects with Maven (2)

2005-11-01 Thread Chris Berry
I think not. Using groupId or artifactId is insufficient -- at least in it's
present form.

If I have a dependency on, say, version 1.2 of a shared library -- that
dependency is platform independent. If not, then you would have to have
different POMs for different platforms. Obviously that doesn't work and is
not what a POM is about (a holistic project recipe)

Although when I am actually building, maven needs to supply OS specifics to
grab the right stuff for my platform. For Java this is a no-op and would
thus default to noarch or nothing at all. But for languages like C, the
system must somehow transparently fill in OS info when constructing the URL.
Cheers,
-- Chris

On 11/1/05, dan tran <[EMAIL PROTECTED]> wrote:
>
> You can use groupId for platform specific or add platform specific string
> to
> your artifact id.
> -D
>
>
> On 11/1/05, Chris Berry <[EMAIL PROTECTED]> wrote:
> >
> > This brings up a bigger question; How does maven want to handle OS
> > information in the repo?? To be successful w/ other languages like C,
> the
> > repo will need to delineate information such as "i586" and "linux". Are
> > these to be rolled into the groupId?? That doesn't smell right. Seems
> that
> > we may need new Artifact Resolvers that understand this sort of info
> > natively and can transparently supply the the correct pieces to the URL.
> >
> > Cheers,
> > -- Chris
> >
> > On 11/1/05, dan tran <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi David,
> > > There is a work in progress for native-maven-plugin
> > > http://svn.mojo.codehaus.org/trunk/mojo/maven-native/
> > > You can build it and take a look at some doc.
> > > -Dan
> > >
> > >
> > > On 11/1/05, David Jackman <[EMAIL PROTECTED]> wrote:
> > > >
> > > > I've just found out that I'm going to need to expand our Maven build
> > > > process to include several C++ project (which I believe are built
> > using
> > > > gcc). I seem to remember seeing some traffic on this list from
> people
> > > > doing this sort of thing (which I promptly ignored because I wasn't
> at
> >
> > > > the time). Can anyone offer some insight on how you got this to work
> > > > and how you overcame the problems that came up? What plugins are
> > > > available to build this way and do they do everything you need? Are
> > you
> > > > able to have dependencies in the Maven repository and have the build
> > use
> > > > them from there (similar to .jar dependencies)? How do you access
> the
> > > > header files, possible library, and runtime library for the
> different
> > > > portions of the build? Is there a mini guide for this kind of
> project
> > > > in the works?
> > > >
> > > > Thanks,
> > > > ..David..
> > > >
> > > >
> > >
> > >
> >
> >
>
>


[M2] Bug with javadoc when the project name has spaces?

2005-11-01 Thread Alexandre Poitras
Has somebody else noticed that if your project name got spaces in it,
javadoc generation fails? I think it's because the name is used on the
javadoc command line (for the title) and not embedded between String quotes.
I can fill a bug on Jira about this but I just wanted to know if I wasn't
the only to have this problem and if it hasn't been reported yet.

--
Alexandre Poitras
Québec, Canada


Re: Maven2: javadoc-1.4.jar does not exist in repository

2005-11-01 Thread Carlos Sanchez
I think it has been already fixed. You need to remove poms under
commons-attributes in your local repo

On 11/1/05, Edson Yanaga <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to migrate my projects from Maven 1.1b2 to 2, but when I
> insert the following dependency:
>
> 
> springframework
> spring-mock
> 1.2.5
> test
> 
>
> My build fails. It requests javadoc-1.4.jar, but it does not exist. How
> can I get this file, or is it a problema with the springframework
> pom.xml?
>
>
> Downloading:
> http://repo1.maven.org/maven2/javadoc/javadoc/1.4/javadoc-1.4.jar
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Failed to resolve artifact.
>
> GroupId: javadoc
> ArtifactId: javadoc
> Version: 1.4
>
> Reason: Unable to download the artifact from any repository
>   javadoc:javadoc:1.4:jar
>
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>
>
> --
> -
> MSc. Edson Yanaga
>Ínsula Tecnologia da Informação Ltda.
>Sun Certified Programmer for Java 2 Platform 1.4
>Sun Certified Web Component Developer for J2EE 1.4
> -
>http://www.insula.com.br
>Uma empresa especializada no desenvolvimento de soluções
>Java e Software Livre.
> -
>   "Do only what only you can do".
>Edsger Wybe Dijkstra (1930 - 2002)
> -
>
>
> -
> 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: Building C++ projects with Maven (2)

2005-11-01 Thread Roger Hoover
The concern I would have with this is that you have the same logical package
(let's say apr 1.2.2) built for different architectures needing to have a
different groupId or artifactId for each architecture type. Unless the
groupId or artifactId is constructed dynamically, poms that depend on a
native artifact have to depend on a specific architecture type. I think it
would be nice to write generic poms that depend on just the logical package
(apr 1.2.2 instead of apr 1.2.2 x86_64) and have maven sense the machine
architecture (and OS) and fetch the correct native artifact.

Roger

On 11/1/05, dan tran <[EMAIL PROTECTED]> wrote:
>
> You can use groupId for platform specific or add platform specific string
> to
> your artifact id.
> -D
>
>
> On 11/1/05, Chris Berry <[EMAIL PROTECTED]> wrote:
> >
> > This brings up a bigger question; How does maven want to handle OS
> > information in the repo?? To be successful w/ other languages like C,
> the
> > repo will need to delineate information such as "i586" and "linux". Are
> > these to be rolled into the groupId?? That doesn't smell right. Seems
> that
> > we may need new Artifact Resolvers that understand this sort of info
> > natively and can transparently supply the the correct pieces to the URL.
> >
> > Cheers,
> > -- Chris
> >
> > On 11/1/05, dan tran <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi David,
> > > There is a work in progress for native-maven-plugin
> > > http://svn.mojo.codehaus.org/trunk/mojo/maven-native/
> > > You can build it and take a look at some doc.
> > > -Dan
> > >
> > >
> > > On 11/1/05, David Jackman <[EMAIL PROTECTED]> wrote:
> > > >
> > > > I've just found out that I'm going to need to expand our Maven build
> > > > process to include several C++ project (which I believe are built
> > using
> > > > gcc). I seem to remember seeing some traffic on this list from
> people
> > > > doing this sort of thing (which I promptly ignored because I wasn't
> at
> >
> > > > the time). Can anyone offer some insight on how you got this to work
> > > > and how you overcame the problems that came up? What plugins are
> > > > available to build this way and do they do everything you need? Are
> > you
> > > > able to have dependencies in the Maven repository and have the build
> > use
> > > > them from there (similar to .jar dependencies)? How do you access
> the
> > > > header files, possible library, and runtime library for the
> different
> > > > portions of the build? Is there a mini guide for this kind of
> project
> > > > in the works?
> > > >
> > > > Thanks,
> > > > ..David..
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Re: Building C++ projects with Maven (2)

2005-11-01 Thread Roger Hoover
Right. I suspect that native artifacts will have to be delineated by both
CPU architecture and OS distribution. There's generally a tight coupling
between the binary and the compiler version and glibc version and possibly
other system libraries. So the repository would need a scheme something like
${groupId}/${artifactId}/${version}/${os}/${march}. The OS would be more
specific than just "linux". I think we would need to specify a distro family
(where major versions of systems libs are fixed) like Red Hat Enterprise
Linux 3.x, Red Hat Enterprise Linux 4.x, Suse Linux Enterprise Server 9,
Fedore Core 4, etc.

Roger

On 11/1/05, Chris Berry <[EMAIL PROTECTED]> wrote:
>
> This brings up a bigger question; How does maven want to handle OS
> information in the repo?? To be successful w/ other languages like C, the
> repo will need to delineate information such as "i586" and "linux". Are
> these to be rolled into the groupId?? That doesn't smell right. Seems that
> we may need new Artifact Resolvers that understand this sort of info
> natively and can transparently supply the the correct pieces to the URL.
>
> Cheers,
> -- Chris
>
> On 11/1/05, dan tran <[EMAIL PROTECTED]> wrote:
> >
> > Hi David,
> > There is a work in progress for native-maven-plugin
> > http://svn.mojo.codehaus.org/trunk/mojo/maven-native/
> > You can build it and take a look at some doc.
> > -Dan
> >
> >
> > On 11/1/05, David Jackman <[EMAIL PROTECTED]> wrote:
> > >
> > > I've just found out that I'm going to need to expand our Maven build
> > > process to include several C++ project (which I believe are built
> using
> > > gcc). I seem to remember seeing some traffic on this list from people
> > > doing this sort of thing (which I promptly ignored because I wasn't at
> > > the time). Can anyone offer some insight on how you got this to work
> > > and how you overcame the problems that came up? What plugins are
> > > available to build this way and do they do everything you need? Are
> you
> > > able to have dependencies in the Maven repository and have the build
> use
> > > them from there (similar to .jar dependencies)? How do you access the
> > > header files, possible library, and runtime library for the different
> > > portions of the build? Is there a mini guide for this kind of project
> > > in the works?
> > >
> > > Thanks,
> > > ..David..
> > >
> > >
> >
> >
>
>


Re: Building C++ projects with Maven (2)

2005-11-01 Thread dan tran
You can use groupId for platform specific or add platform specific string to
your artifact id.
 -D


 On 11/1/05, Chris Berry <[EMAIL PROTECTED]> wrote:
>
> This brings up a bigger question; How does maven want to handle OS
> information in the repo?? To be successful w/ other languages like C, the
> repo will need to delineate information such as "i586" and "linux". Are
> these to be rolled into the groupId?? That doesn't smell right. Seems that
> we may need new Artifact Resolvers that understand this sort of info
> natively and can transparently supply the the correct pieces to the URL.
>
> Cheers,
> -- Chris
>
> On 11/1/05, dan tran <[EMAIL PROTECTED]> wrote:
> >
> > Hi David,
> > There is a work in progress for native-maven-plugin
> > http://svn.mojo.codehaus.org/trunk/mojo/maven-native/
> > You can build it and take a look at some doc.
> > -Dan
> >
> >
> > On 11/1/05, David Jackman <[EMAIL PROTECTED]> wrote:
> > >
> > > I've just found out that I'm going to need to expand our Maven build
> > > process to include several C++ project (which I believe are built
> using
> > > gcc). I seem to remember seeing some traffic on this list from people
> > > doing this sort of thing (which I promptly ignored because I wasn't at
>
> > > the time). Can anyone offer some insight on how you got this to work
> > > and how you overcame the problems that came up? What plugins are
> > > available to build this way and do they do everything you need? Are
> you
> > > able to have dependencies in the Maven repository and have the build
> use
> > > them from there (similar to .jar dependencies)? How do you access the
> > > header files, possible library, and runtime library for the different
> > > portions of the build? Is there a mini guide for this kind of project
> > > in the works?
> > >
> > > Thanks,
> > > ..David..
> > >
> > >
> >
> >
>
>


Re: Third party JAR version naming conventions

2005-11-01 Thread Carlos Sanchez
http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html

I'm preparing a naming conventions doc that will be available at
http://maven.apache.org/guides/mini/guide-naming-conventions.html

On 11/1/05, Richard Allen <[EMAIL PROTECTED]> wrote:
> I'm new to Maven and I'm trying to convert an existing build process
> that uses Ant to Maven 2.
>
> I've started creating a POM where I have to add third party SUN JARs as
> dependencies, one of them being JAI.
>
> JAI version 1.1.2_01 includes three JARs. Is there a way to install JAI
> into my repository such that I only have to reference JAI as a
> dependency instead of referencing each JAR as a separate dependency? And
> what is the version naming convention that I should use within the POM
>  tag for JAI? Should it read 1.1.2_01 ?
>
> Thanks,
> Richard
>
> -
> 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: Building C++ projects with Maven (2)

2005-11-01 Thread Chris Berry
This brings up a bigger question; How does maven want to handle OS
information in the repo?? To be successful w/ other languages like C, the
repo will need to delineate information such as "i586" and "linux". Are
these to be rolled into the groupId?? That doesn't smell right. Seems that
we may need new Artifact Resolvers that understand this sort of info
natively and can transparently supply the the correct pieces to the URL.

Cheers,
-- Chris

On 11/1/05, dan tran <[EMAIL PROTECTED]> wrote:
>
> Hi David,
> There is a work in progress for native-maven-plugin
> http://svn.mojo.codehaus.org/trunk/mojo/maven-native/
> You can build it and take a look at some doc.
> -Dan
>
>
> On 11/1/05, David Jackman <[EMAIL PROTECTED]> wrote:
> >
> > I've just found out that I'm going to need to expand our Maven build
> > process to include several C++ project (which I believe are built using
> > gcc). I seem to remember seeing some traffic on this list from people
> > doing this sort of thing (which I promptly ignored because I wasn't at
> > the time). Can anyone offer some insight on how you got this to work
> > and how you overcame the problems that came up? What plugins are
> > available to build this way and do they do everything you need? Are you
> > able to have dependencies in the Maven repository and have the build use
> > them from there (similar to .jar dependencies)? How do you access the
> > header files, possible library, and runtime library for the different
> > portions of the build? Is there a mini guide for this kind of project
> > in the works?
> >
> > Thanks,
> > ..David..
> >
> >
>
>


RE: Installing Commercial Jars and missing POM XML files

2005-11-01 Thread KC Baltz
Peter, 

Your MvnCreateLocalPom works well, but I think it needed a small fix and an 
enhancement.

You have two places in dumpPom(String, String) where groupId is used to create 
a path.  I appended .replace('.', '/') to the groupId to handle dotted groups.  

Also, when you actually create the pom, you were doing artifact.version.pom, 
when I think it's supposed to be artifact-version.pom  (note the dash). 

My modified version is pasted below.

K.C.

import java.io.*;

/**
 * Create missing POM XML descriptions for maven repository
 * elements
 *
 *
 * @author Peter Pilgrim, Oct 24, 2005 2:43:57 PM
 * @version $Id$
 */
public class MvnCreateLocalPom {

private static String repositoryPath = 
System.getProperty("user.home")+"/.m2/repository";

/**
 * Default constructor 
 */
public MvnCreateLocalPom() {
super();
}

/**
 * Write the POM to standard output
 * @param groupId the group  name
 * 
 * @see #dumpPom(String, String)
 */
public void dumpPom( String groupId ) throws IOException
{
File groupDir = new File( repositoryPath +"/" +groupId );
if ( !groupDir.exists() )
throw new FileNotFoundException( 
"no such group directory = "+groupDir );

File contents[] = groupDir.listFiles();
for ( int j=0; j");
pwriter.println("4.0.0");
pwriter.println(""+groupId+"");
pwriter.println(""+artifactId+"");
pwriter.println(""+oneFile+"");
pwriter.println("");
pwriter.close();
}
}
}


public static void main( String args[] )
{
MvnCreateLocalPom pommer = new MvnCreateLocalPom();
try {
//pommer.dumpPom( "com.sun.jsfcl", "jsfcl");
pommer.dumpPom( "com.sun.data", "dataprovider");
pommer.dumpPom( "javax.faces", "jsf-impl");
pommer.dumpPom( "com.sun.web", "defaulttheme");
//pommer.dumpPom( "expresso");
//pommer.dumpPom( "bea-weblogic", "weblogic");
}
catch (Exception ex) {
ex.printStackTrace( System.err );
}
}
}

-Original Message-
From: Pilgrim, Peter [mailto:[EMAIL PROTECTED]
Sent: Monday, October 24, 2005 7:35 AM
To: 'Maven Users List'
Subject: RE: Installing Commercial Jars and missing POM XML files


> -Original Message-
> From: Wendy Smoak [mailto:[EMAIL PROTECTED]
====
> 
> From: "Pilgrim, Peter" <[EMAIL PROTECTED]>
> 
> > My question is, how do I tell maven not to going looking remotely
> > for POM XML files for the commercial jars since I installed
> > them locally on my machine?
> 
> http://www.mail-archive.com/users%40maven.apache.org/msg26066.html
> 
> I've just been creating a pom for them with just the 
> group/artifact/version 
> and Maven stops complaining.
> 
> Should we submit poms for these non-distributable commercial 
> libraries, so 
> that they're in the repository like the ones for Sun .jars 
> (and we can come 
> to some agreement on the group/artifact ids?)
====

I just created a program to create the local POMs for me in the
m2 repository. But when I run it, and manually rename AUTO-pom to
.pom file, and then re-run ``mvn''. 

Guess what? Maven still complains about remote repository. So it
cannot possibly that the ``**/*.pom''  does not exist in the right
place. I created it, so therefore maven should shut the  up(!).

import java.io.*;

/**
 * Create missing POM XML descriptions for maven repository
 * elements
 *
 *
 * @author Peter Pilgrim, Oct 24, 2005 2:43:57 PM
 * @version $Id$
 */
public class MvnCreateLocalPom {

private static String repositoryPath = 
System.getProperty("user.home")+"/.m2/repository";

/**
 * Default constructor 
 */
public MvnCreateLocalPom() {
super();
}

/**
 * Write the POM to standard output
 * @param groupId the group  name
 * 
 * @see #dumpPom(String, String)
 */
public void dumpPom( String groupId ) throws IOException
{
File groupDir = new File( repositoryPath +"/" +groupId );
if ( !groupDir.exists() )
throw new FileNotFoundException( 
"no such group directory = "+groupDir );

File contents[] = groupDir.listFiles();
for ( int j=0; j");
pwriter.println("4.0.0");
pwriter.println(""+groupId+"");
pwriter.println(""+artifactId+"");
pwriter.println(""+oneFile+"");
pwriter.println("");
pwriter.close();
}
}
}


public static void main( String args[] )
{
MvnCreateLocalPom pommer = new MvnCreateLocalPom();
try {
pommer.dumpPom( "commons-beanutils", "commons-beanutils");
pommer.dumpPom( "expresso");
   

Re: Building C++ projects with Maven (2)

2005-11-01 Thread dan tran
Hi David,
 There is a work in progress for native-maven-plugin
 http://svn.mojo.codehaus.org/trunk/mojo/maven-native/
 You can build it and take a look at some doc.
  -Dan


 On 11/1/05, David Jackman <[EMAIL PROTECTED]> wrote:
>
> I've just found out that I'm going to need to expand our Maven build
> process to include several C++ project (which I believe are built using
> gcc). I seem to remember seeing some traffic on this list from people
> doing this sort of thing (which I promptly ignored because I wasn't at
> the time). Can anyone offer some insight on how you got this to work
> and how you overcame the problems that came up? What plugins are
> available to build this way and do they do everything you need? Are you
> able to have dependencies in the Maven repository and have the build use
> them from there (similar to .jar dependencies)? How do you access the
> header files, possible library, and runtime library for the different
> portions of the build? Is there a mini guide for this kind of project
> in the works?
>
> Thanks,
> ..David..
>
>


Refering to a resource by a property

2005-11-01 Thread Alexandre Poitras
Hi to all the maven experts out there!

I'm looking for a way in my pom to refer to my resources directory in a
dynamic way (by a property). Right now, the entry is looking like
"src/main/resources/xsd/gdu.xsd" but I would like to have something like "{
pom.build.resources...}". By the way, do you think I am too precautious? Is
it worth it to use a variable or it's alright to write directly the path
value?

Thanks for any help! It's really appreciated!

--
Alexandre Poitras
Québec, Canada


Building C++ projects with Maven (2)

2005-11-01 Thread David Jackman
I've just found out that I'm going to need to expand our Maven build
process to include several C++ project (which I believe are built using
gcc).  I seem to remember seeing some traffic on this list from people
doing this sort of thing (which I promptly ignored because I wasn't at
the time).  Can anyone offer some insight on how you got this to work
and how you overcame the problems that came up?  What plugins are
available to build this way and do they do everything you need?  Are you
able to have dependencies in the Maven repository and have the build use
them from there (similar to .jar dependencies)?  How do you access the
header files, possible library, and runtime library for the different
portions of the build?  Is there a mini guide for this kind of project
in the works?
 
Thanks,
..David..


RE: Build Error

2005-11-01 Thread Allison, Bob
I'm using Linux, not Windows, so this may not be 100% correct.  As I
recall, if you want to put the drive designator in the SCM URL, you need
to use something other than ':' as a delimiter.  Try
   scm|local|C:\Documents and
Settings\WongHoma\.m2\repository|status-change

-Original Message-
From: Malcolm Wong Ho [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 01, 2005 13:53
To: continuum-users@maven.apache.org
Subject: RE: Build Error


Here is a code snippet of my pom.xml file, I'm trying to use mavens
local repository. Does the pom.xml file look right?

pom.xml :-

  
scm:local:C:\Documents and
Settings\WongHoma\.m2\repository:status-change
   
"This e-mail is sent on the Terms and Conditions that can be accessed by
Clicking on this link http://www.vodacom.net/legal/email.aspx "


Migrate jelly execute scripts to M2? (was RE: Wanted: Help with documentation on M2)

2005-11-01 Thread Siegfried Heintze
I would like to migrate my custom m1 jelly script from m1 to m2 that
executes my program. As per Dan's advice, I have been searching with
"execute" and not having much luck. Can I get a few more hints?

Also, I've been thinking: what I really want is a way to automatically
generate either C++ (using JNI) or bat files or sh files that assemble the
monstrous class paths and run my java programs. Would such a code generator
be best implemented as a maven plugin or eclipse plugin -- or something
else?

Thanks,
Siegfried


-Original Message-
From: dan tran [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 16, 2005 10:04 AM
To: Maven Users List
Subject: Re: Wanted: Help with documentation on M2

Siegfried,
 The development team is actively working on m2 documentation, and I beleive
you will see lots doco will be available soon. Voting is going on dev list
to
load up new doco site layout
 However, I have seen lot traffic discussion about having a mojo to do
exactly what
your try to do by invoking java with classpath containing dependency
artifacts.
 Here are some links that my help
 http://mojo.codehaus.org/maven-execute-plugin/ deprecated
 http://docs.codehaus.org/display/MAVEN/Maven+Runtime
 Search the archive for "execute", i am sure you will find more info.
 Assume that the desired plugin/mojo is available, all you need is
a pom.xml + the plugin's configuration in the pom
 Hope it helps
 -D

 On 10/16/05, Siegfried Heintze <[EMAIL PROTECTED]> wrote:
>
> I'm reading http://maven.apache.org/maven2/general.html and
> http://maven.apache.org/maven2/maven1.html#m1-maven-xml and I still don't
> understand where I learn about converting the following maven.xml file
> (see
> below) for use with m2. Can someone point me to the proper URL that
> contains
> the M2 documentation that will tell me how to convert a minimal maven 1.1
> project to m2 given the maven.xml file below?
>
> Thanks,
> Siegfried
>
> 
>
>  xmlns:j="jelly:core" xmlns:u="jelly:util">
> 
> 
> 
>  location="${maven.build.dir}/${maven.final.name 
> }.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]



[M2] surefire crashing

2005-11-01 Thread Erick Dovale

Hi there,
I am having trouble getting the surefire plugin to run my unit tests. I 
created a jira issue on this because I was unable to send emails to the 
user lists. I apoligize if this is a problem of my own.


Surefire seems to be running the first unit test and crashing right 
after with the following exception:


Reporter method testStarting completed abruptly with an exception.
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  at java.lang.String.substring(String.java:1444)
  at 
org.codehaus.surefire.report.XMLReporter.testStarting(XMLReporter.jav

a:101)
  at 
org.codehaus.surefire.report.ReporterManager.testStarting(ReporterMan

ager.java:304)
  at 
org.codehaus.surefire.battery.TestListenerInvocationHandler.handleSta

rtTest(TestListenerInvocationHandler.java:143)
  at 
org.codehaus.surefire.battery.TestListenerInvocationHandler.invoke(Te

stListenerInvocationHandler.java:120)
  at $Proxy0.startTest(Unknown Source)
  at junit.framework.TestResult.startTest(TestResult.java:151)
  at junit.framework.TestResult.run(TestResult.java:103)
  at junit.framework.TestCase.run(TestCase.java:118)
  at junit.framework.TestSuite.runTest(TestSuite.java:208)
  at junit.framework.TestSuite.run(TestSuite.java:203)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)
  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at 
org.codehaus.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.

java:246)
  at 
org.codehaus.surefire.battery.JUnitBattery.execute(JUnitBattery.java:

220)
  at org.codehaus.surefire.Surefire.executeBattery(Surefire.java:204)
  at org.codehaus.surefire.Surefire.run(Surefire.java:153)
  at org.codehaus.surefire.Surefire.run(Surefire.java:77)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)
  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at org.codehaus.surefire.SurefireBooter.run(SurefireBooter.java:104)
  at 
org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:303)


  at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi

nManager.java:412)
  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

ultLifecycleExecutor.java:519)
  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone

Goal(DefaultLifecycleExecutor.java:482)
  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau

ltLifecycleExecutor.java:452)
  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan

dleFailures(DefaultLifecycleExecutor.java:301)
  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen

ts(DefaultLifecycleExecutor.java:268)
  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi

fecycleExecutor.java:137)
  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)
  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

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

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


  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

I tried surefire 2.0 and 2.1-SNAPSHOT and both are having the same problem.

Any hints??

cheers,

edovale


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



Re: Maven2 - Where is JMX.jar??

2005-11-01 Thread dan tran
http://www.ibiblio.org/maven2/mx4j/


 On 11/1/05, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
>
> If you want to use the Sun reference implementation, please refer to this
> page :
> http://maven.apache.org/maven2/guides/mini/guide-coping-with-sun-jars.html
>
> Sun JMX RI :
> http://java.sun.com/products/JavaManagement/download.html
>
> On 11/1/05, João Carlos Bortoletto Junior <[EMAIL PROTECTED]>
> wrote:
> >
> > Hi friends,
> >
> >
> >
> > From where can I download jmx.jar? It exists at IBIBLIO repository under
> > maven2?
> >
> > My application works with Tomcat embedded and this library is
> mandatory...
> >
> > Thanks!!!
> >
> >
> >
> > João Bortoletto
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> Alexandre Poitras
> Québec, Canada
>
>


SCM and build using Maven 1.0.2

2005-11-01 Thread Rupali Desai
Hello,
  I have writeen a maven script which has goals defined to do cvs checkout
and then goal to build and package . The
file looks as follows



















 



${goals}

Now attaining goal number ${goalNumber}, which is ${goal}






 However when i run the script with task : maven nightlybuild. It checks out
the src code , but while running the task buildandpackage,

I see the following in the output

java:compile:
[echo] Compiling to Project1/build
[echo] No java source files to compile.

 It completes the task but does not compile the classes.

But if I run it a second time. It runs correctly, finding the classes and
compiles.

Can anyone help me figure out what the problem is.

 Thanks

Rupali


problem with Hibernate:schema-export task

2005-11-01 Thread Marco Mistroni
hello all,
 i am trying to run the hibernate:schema-export task, but so far
unsuccessfully :(
 here's my hibernate.properties file
 hibernate.connection.driver_class=org.hsqldb.jdbcDriver
hibernate.connection.url=jdbc:hsqldb:foo
hibernate.connection.username=sa
hibernate.dialect=net.sf.hibernate.dialect.HSQLDialect
  here's my maven.xml
..
 
  i am using hibernate-2.1.8jar, and the hibernate plugin that i am using is
version 1.3
  anyone could help me?
 regards
 marco


Maven2: javadoc-1.4.jar does not exist in repository

2005-11-01 Thread Edson Yanaga
Hi,

I'm trying to migrate my projects from Maven 1.1b2 to 2, but when I
insert the following dependency:


springframework
spring-mock
1.2.5
test


My build fails. It requests javadoc-1.4.jar, but it does not exist. How
can I get this file, or is it a problema with the springframework
pom.xml?


Downloading:
http://repo1.maven.org/maven2/javadoc/javadoc/1.4/javadoc-1.4.jar
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

GroupId: javadoc
ArtifactId: javadoc
Version: 1.4

Reason: Unable to download the artifact from any repository
  javadoc:javadoc:1.4:jar

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


-- 
-
MSc. Edson Yanaga
   Ínsula Tecnologia da Informação Ltda.
   Sun Certified Programmer for Java 2 Platform 1.4 
   Sun Certified Web Component Developer for J2EE 1.4
-
   http://www.insula.com.br
   Uma empresa especializada no desenvolvimento de soluções
   Java e Software Livre.
-
  "Do only what only you can do".
   Edsger Wybe Dijkstra (1930 - 2002)
-


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



[m2] internal repository docs?

2005-11-01 Thread Wendy Smoak
I asked Google about 'maven internal repository' and it turned up:
http://maven.apache.org/reference/internal-repositories.html

It's at the top level of the site, so I'd expect it to apply to m2, but it
doesn't seem to.

I need to set up an internal repository to be accessed with file:// .

I think this might have what I need...
http://maven.apache.org/guides/mini/guide-multiple-repositories.html

If that's not it, where else should I look?

Thanks,
--
Wendy


Third party JAR version naming conventions

2005-11-01 Thread Richard Allen
I'm new to Maven and I'm trying to convert an existing build process 
that uses Ant to Maven 2.


I've started creating a POM where I have to add third party SUN JARs as 
dependencies, one of them being JAI.


JAI version 1.1.2_01 includes three JARs. Is there a way to install JAI 
into my repository such that I only have to reference JAI as a 
dependency instead of referencing each JAR as a separate dependency? And 
what is the version naming convention that I should use within the POM 
 tag for JAI? Should it read 1.1.2_01 ?


Thanks,
Richard

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



Problem with plugin compilation

2005-11-01 Thread Anonimac Anonimac
Hi,
I'm following example from "Guide to developing Java plugins" and I can't
compile plugin. It fails with

[INFO] The plugin 'org.apache.maven.plugins:maven-plugin-plugin' does not
exist
or no valid version could be found

If I change packaging parameter to jar, everything compiles.

This is my pom.xml:


4.0.0
sedamit.maven.javacvs
javacvs-plugin

maven-plugin
1.0
JavaCVS Maven Plugin



org.apache.maven
maven-plugin-api
2.0





Any help appreciated.

Filip


[m2] How to exclude WEB-INF/lib/*.jar without excluding dependent jars?

2005-11-01 Thread KC Baltz
I'm in the process of converting a webapp from Ant builds to Maven2 builds and 
I'm running into a hitch with the packaging.  When I first built the webapp, it 
put duplicate jars in my WEB-INF/lib since they exist there in my source 
directory and it also included the jars defined in my pom dependencies.  I 
tried adding 
WEB-INF/lib/*.jar to my war plugin configuration, but then 
I ended up with no jars in my war file.  
 
I'd rather not delete the jars at the moment since I'm still doing parallel 
development with Ant.  Is there a way to accomplish this or am I wasting time 
trying to make M2 do something it really shouldn't?
 
K.C.


Re: Maven2 - Where is JMX.jar??

2005-11-01 Thread Alexandre Poitras
If you want to use the Sun reference implementation, please refer to this
page :
http://maven.apache.org/maven2/guides/mini/guide-coping-with-sun-jars.html

Sun JMX RI :
http://java.sun.com/products/JavaManagement/download.html

On 11/1/05, João Carlos Bortoletto Junior <[EMAIL PROTECTED]>
wrote:
>
> Hi friends,
>
>
>
> From where can I download jmx.jar? It exists at IBIBLIO repository under
> maven2?
>
> My application works with Tomcat embedded and this library is mandatory...
>
> Thanks!!!
>
>
>
> João Bortoletto
>
>
>
>
>
>
>


--
Alexandre Poitras
Québec, Canada


Re: Build Error

2005-11-01 Thread Emmanuel Venisse

This pb is fixed in svn, it's due to a pb in scm execution.

Emmanuel

Malcolm Wong Ho a écrit :

Continuum build failing, not sure what the cause is. Using Maven2 and
Continuum1.

 


Log :-

 


jvm 1| 2005-11-01 09:00:00,013 [scheduler1_Worker-11] INFO
SchedulesActivator - > Executing build
job (DEFAULT_SCHEDULE)...

 


jvm 1| 2005-11-01 09:00:00,053 [scheduler1_Worker-11] INFO
Continuum  - Enqueuing 'Maven Quick Start Archetype'
(Build definition id=10

.

jvm 1| 2005-11-01 09:00:00,154 [Thread-1] INFO  ContinuumScm
- Checking out project: 'Maven Quick Start Archetype', id: '10' to
'C:\blackb

ird\continuum-1.0\bin\win32\..\..\apps\continuum\working-directory\10'.

jvm 1| 2005-11-01 09:00:00,234 [Thread-1] WARN  ConfigurationService
- Error reading build output for build '25'.

jvm 1| java.io.FileNotFoundException:
C:\blackbird\continuum-1.0\bin\win32\..\..\apps\continuum\build-output-d
irectory\10\25.log.txt (The system cannot find

 the file specified)

jvm 1|  at java.io.FileInputStream.open(Native Method)

jvm 1|  at
java.io.FileInputStream.(FileInputStream.java:106)

jvm 1|  at
org.codehaus.plexus.util.FileUtils.fileRead(FileUtils.java:269)

jvm 1|  at
org.codehaus.plexus.util.FileUtils.fileRead(FileUtils.java:261)

jvm 1|  at
org.apache.maven.continuum.configuration.DefaultConfigurationService.get
BuildOutput(DefaultConfigurationService.java:167)

jvm 1|  at
org.apache.maven.continuum.notification.DefaultContinuumNotificationDisp
atcher.sendNotification(DefaultContinuumNotificationDispatcher.java:1

29)

jvm 1|  at
org.apache.maven.continuum.notification.DefaultContinuumNotificationDisp
atcher.buildComplete(DefaultContinuumNotificationDispatcher.java:96)

jvm 1|  at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(
DefaultBuildController.java:261)

jvm 1|  at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.exec
uteTask(BuildProjectTaskExecutor.java:53)

jvm 1|  at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Execut
orRunnable.run(ThreadedTaskQueueExecutor.java:103)

jvm 1|  at java.lang.Thread.run(Thread.java:595)

 




Malcolm Wong Ho

   An investment in knowledge always pays the best interest. -- Benjamin
Franklin

 



“This e-mail is sent on the Terms and Conditions that can be accessed by Clicking on 
this link http://www.vodacom.net/legal/email.aspx "





Maven2 - Where is JMX.jar??

2005-11-01 Thread João Carlos Bortoletto Junior
Hi friends,

 

From where can I download jmx.jar? It exists at IBIBLIO repository 
under maven2? 

My application works with Tomcat embedded and this library is 
mandatory...

Thanks!!!

 

João Bortoletto

 

 



Re: [m2] repository hell

2005-11-01 Thread Wendy Smoak
On 11/1/05, Xavier Toth <[EMAIL PROTECTED]> wrote:
>
> I see this a problem also in that the users like myself aren't necessarily
> qualified to provide a fix for someone elses pom. I still think the
> contributor/maintainer needs to be known and notified since they would
> have
> the knowledge of how to resolve the issue.


Many of the projects with pom problems are not themselves using m2, so the
volunteers there may know even less than you do about how to fix the
problem. A polite inquiry on the developers list can't hurt, though. :)

It's important that everyone do what they can to help. Just opening a ticket
and posting what you think is the correct pom will go a long way-- if you
don't get it exactly right, others will comment on the ticket and eventually
the right solution will be arrived at.

For example, someone (Matt?) opened a ticket for the MyFaces pom with a
couple of changes. I didn't have time to write the complete fixed version,
but I posted a link to the MyFaces Wiki that lists all the dependencies.
Someone else came along and posted a more complete pom.

--
Wendy


Re: [m2] repository hell

2005-11-01 Thread Xavier Toth
I see this a problem also in that the users like myself aren't necessarily
qualified to provide a fix for someone elses pom. I still think the
contributor/maintainer needs to be known and notified since they would have
the knowledge of how to resolve the issue.

On 11/1/05, John Casey <[EMAIL PROTECTED]> wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Basically, the best way to address this (at least so far) is to file a
> MEV issue with the fixes for that POM.
>
> http://jira.codehaus.org/browse/MEV
>
> It's going to take awhile to get the repository completely cleaned up,
> particularly since it's metadata demands are higher than with m1.
>
> HTH,
>
> john
>
> Xavier Toth wrote:
> | There seem to be a number of issues here are several:
> | a.) different poms with dependencies on the same jar but using different
> | groupId/artifactId (ex. jetty/jetty and jetty/org.mortbay.jetty) causing
> | multiple copies to be downloaded and stored
> |
> | b.) poms using syntax like ${commons_beanutils_version} which isn't
> valid
> | (as far as I know)
> |
> | I wish there was something I could do to help fix these problem maybe if
> | there were a way to know the maintainer of parts of the repository so
> they
> | could be contacted and told of specific issues?
> |
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.2.6 (GNU/Linux)
>
> iD8DBQFDZ5t+K3h2CZwO/4URArC2AJ4lwBQscs1ui7DdruF9nDfs6cif2wCgqNSO
> xj3ND0HhxLq9ijqUqR/vrkU=
> =jONB
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [m2] repository hell

2005-11-01 Thread John Casey

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Basically, the best way to address this (at least so far) is to file a
MEV issue with the fixes for that POM.

http://jira.codehaus.org/browse/MEV

It's going to take awhile to get the repository completely cleaned up,
particularly since it's metadata demands are higher than with m1.

HTH,

john

Xavier Toth wrote:
| There seem to be a number of issues here are several:
| a.) different poms with dependencies on the same jar but using different
| groupId/artifactId (ex. jetty/jetty and jetty/org.mortbay.jetty) causing
| multiple copies to be downloaded and stored
|
| b.) poms using syntax like ${commons_beanutils_version} which isn't valid
| (as far as I know)
|
| I wish there was something I could do to help fix these problem maybe if
| there were a way to know the maintainer of parts of the repository so they
| could be contacted and told of specific issues?
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFDZ5t+K3h2CZwO/4URArC2AJ4lwBQscs1ui7DdruF9nDfs6cif2wCgqNSO
xj3ND0HhxLq9ijqUqR/vrkU=
=jONB
-END PGP SIGNATURE-

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



[m2] repository hell

2005-11-01 Thread Xavier Toth
There seem to be a number of issues here are several:
a.) different poms with dependencies on the same jar but using different
groupId/artifactId (ex. jetty/jetty and jetty/org.mortbay.jetty) causing
multiple copies to be downloaded and stored

b.) poms using syntax like ${commons_beanutils_version} which isn't valid
(as far as I know)

I wish there was something I could do to help fix these problem maybe if
there were a way to know the maintainer of parts of the repository so they
could be contacted and told of specific issues?


Re: finding groupId/artifactId of unlisted libs

2005-11-01 Thread Wendy Smoak
On 11/1/05, Rico (privat) <[EMAIL PROTECTED]> wrote:
>
> my project needs the jdbc driver of firebird (jaybird driver:
> firebirdsql-full.jar). Where if this is not listed on
> http://www.ibiblio.org/pub/packages/
> can I get the correct groupId / artifactId ?


There was a thread not too long ago about standardizing the groupId and
artifactId for artifacts that aren't freely available, similar to what's
been done for the Sun jars here:
http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html

Maybe a page on the Wiki would be a good place to get started?
http://wiki.apache.org/maven/

--
Wendy


finding groupId/artifactId of unlisted libs

2005-11-01 Thread Rico (privat)

Hi,

my project needs the jdbc driver of firebird (jaybird driver: 
firebirdsql-full.jar). Where if this is not listed on 
http://www.ibiblio.org/pub/packages/

can I get the correct groupId / artifactId ?

Rico

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



[M102] I'm trying to use maven.xml to override variables in the pom

2005-11-01 Thread Thomas_Perry





hello to all,

I have used variable notation for values in the pom, rather than hard coded
values.
example, for Site Directory I've coded ${maven.site.location}

I'd like to use jelly script in maven.xml to set these pom variables, I
can't use static values
in project.properties.

Testing has not worked.  The maven sources I've looked at  don't give
examples,
or state whether  it's possible or not.

So my question to the group is, can I override variables in the pom with
jelly script in maven.xml,
and if so, where can I find examples?

If maven.xml can't override pom variables, do I have another choice?

Thanks in advance for your help.
Tom



 
This message is intended for the recipient only and is not meant to be 
forwarded or distributed in any other format. 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 security, or as an 
official confirmation of any transaction.  Putnam does not accept purchase or 
redemptions of securities, instructions, or authorizations that are sent via 
e-mail.   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 Putnam, 
LLC (DBA Putnam Investments) and its subsidiaries and affiliates.  If you are 
not the intended recipient of this e-mail, please delete the e-mail.

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



Re: [maven2] Failed to build model from plexus-utils-1.0.4.pom

2005-11-01 Thread Jeremy Hughes
Hi, thanks for responding. The files in the maven-2.0-bin.tar.gz file
I downloaded are dated 2005-10-18.

I just cleared out my ~/.m2 directory and did:

cd ~
mvn -X archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
cd my-app
mvn -X compile

stdout and stderr for each of the mvn commands attached.

mvn -X archetype:create gives me an error which I only just noticed:

[ERROR] ResourceManager : unable to find resource
'VM_global_library.vm' in any resource loader.

but reports BUILD SUCCESSFUL at the end.

mvn -X compile reports the same error with some stack traces. Hope it helps.

Thanks v. much,
Jeremy

On 10/31/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> Hi Jeremy,
>
> I've never seen this one. Did re-running continue to exhibit this?
> What about using -X?
>
> What version of Maven are you using?
>
> Thanks,
> Brett
>
> On 10/27/05, Jeremy Hughes <[EMAIL PROTECTED]> wrote:
> > Hi, I'm a Maven newbie. I just downloaded Maven2 and started going
> > through 'Getting started'. But got stuck on mvn compile. It failed to
> > build the model from plexus utils 1.0.4.
> >
> > Any help really appreciated. Thx. Jeremy
> >
> > This is the output:
> >
> > [INFO] Scanning for projects...
> > [INFO] 
> > 
> > [INFO] Building Maven Quick Start Archetype
> > [INFO]task-segment: [compile]
> > [INFO] 
> > 
> > [INFO] artifact org.apache.maven.plugins:maven-resources-plugin:
> > checking for updates from central
> > Downloading: 
> > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.pom
> > 888b downloaded
> > Downloading: 
> > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0/maven-plugin-parent-2.0.pom
> > 6K downloaded
> > Downloading: 
> > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.jar
> > 10K downloaded
> > [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin:
> > checking for updates from central
> > Downloading: 
> > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.pom
> > 1K downloaded
> > Downloading: 
> > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.jar
> > 13K downloaded
> > Downloading: 
> > http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0/maven-model-2.0.pom
> > 2K downloaded
> > Downloading: 
> > http://repo1.maven.org/maven2/org/apache/maven/maven/2.0/maven-2.0.pom
> > 8K downloaded
> > Downloading: 
> > http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom
> > 6K downloaded
> > [INFO] 
> > 
> > [ERROR] BUILD ERROR
> > [INFO] 
> > 
> > [INFO] Error building POM (may not be this project's POM).
> >
> >
> > Project ID: org.codehaus.plexus:plexus-utils
> >
> > Reason: Failed to build model from file
> > '/home/hughesj/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom'.
> > Error: 'null'
> >
> >
> > [INFO] 
> > 
> > [INFO] For more information, run Maven with the -e switch
> > [INFO] 
> > 
> > [INFO] Total time: 14 seconds
> > [INFO] Finished at: Wed Oct 26 15:14:06 BST 2005
> > [INFO] Final Memory: 3M/7M
> > [INFO] 
> > 
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Re: keyword "SNAPSHOT" in depedency version is ignored

2005-11-01 Thread Katsuya Takahashi

Hi

My point is what Brian explained.
I'm sorry for wandering from the subject.


Brett Porter wrote:


This functionality already exists in Maven 2.0.

[1.0,) indicates >= 1.0

 


I tried this functionality and it works well!
Thank you all!

Katsuya Takahashi



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



[m2] using a local mirror

2005-11-01 Thread Anuerin Diaz
hi,

   i am new to maven and will be using it for a migration project that
i will be working with. i come from a solid Ant background so i am
still coming to gripes with some of the paradigm shift. excellent work
but since the documentation is rather sparse at the moment i will be
scouring the archives and this list for more information. :D

   i am currently researching about possible scenarios that we will
encounter on the migration and one such scenario is creating a
self-contained environment that will facilitate the setup of the
development environment. in this scenario, and even if it is
considered a bad idea, the maven plugins needed by the project will be
included and maintained in the version control system. with this i
need to specify that the "included repository" is checked when maven
is invoked.

   the problem i have is that either i am not doing this properly or
the  element in the  and  elements do not
support local file URLs (but there is no indication on the
documentation that this is true). i have tried adding this on the
"settings.xml" file:



localmirror
Local mirror for development 

file:///C:/Temp/workdir/repository
central



as well as this in the "pom.xml" file:

  

ENV-repo
Local ENV repository
file:///C:/Temp/workdir/repository
default

 

   buth both to no avail. the necessary plug-ins are not being
retrieved from the "included repository" when the plugins fail to be
resolved on the local repository.

   the simplest solution would be to just set the 
element to the "included repository" but how is the  element
really used by maven?

   thanks.

 ciao!

--

"Programming, an artform that fights back"

Anuerin G. Diaz
Registered Linux User #246176
Friendly Linux Board @ http://mandrivausers.org/index.php
http://capsule.ramfree17.org , when you absolutely have nothing else
better to do

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



Re: can a goal executing in a project execute goals in other projects?

2005-11-01 Thread Minds Work
It works,
Thank you
[]s
Freddy

 On 11/1/05, Dion Gillard <[EMAIL PROTECTED]> wrote:
>
> Couldn't you make it a system property:
>
> ${systemScope.put('name', varFromTstamp)}
>
> On 11/2/05, Minds Work <[EMAIL PROTECTED]> wrote:
> > Thanks, it works,
> > I have another related question
> >
> > I want to known if there is a way declare a global property to be used
> in
> > the goals called with maven:maven
> > My proplem is that i want to tag some projects (in the repository) with
> the
> > same tag, but the tag name is based on the current date (the dateToday
> ant
> > property created by the code below):
> >
> > 
> > 
> > 
> >
> > This way each project is taged with a different date (a difference of
> second
> > or minutes, but a difference)
> >
> > If i could declare a global property i could set the data as a global
> > property and reuse it.
> >
> > On 10/31/05, Arnaud HERITIER <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi Freddy,
> > >
> > > You can use the maven:maven tag in Jelly :
> > > http://maven.apache.org/maven-1.x/tags.html#maven:maven
> > >
> > > Arnaud
> > >
> > >
> > > > -Message d'origine-
> > > > De : Minds Work [mailto:[EMAIL PROTECTED]
> > > > Envoyé : lundi 31 octobre 2005 19:16
> > > > À : Maven Users List
> > > > Objet : can a goal executing in a project execute goals in
> > > > other projects?
> > > >
> > > > Is there a way (without using the exec ant task...) to make a
> > > > goal call another goal but execute it in other project?
> > > > Example, I execute the goal "myGoal" in project Foo, and the
> > > > goal "myGoal"
> > > > execute the "jar" goal in project "Bar"?
> > > > []s
> > > > Freddy
> > > >
> > >
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
>
>
> --
> http://www.multitask.com.au/people/dion/
> "You are going to let the fear of poverty govern your life and your
> reward will be that you will eat, but you will not live." - George
> Bernard Shaw
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


  1   2   >