Re: Retrieving subversion revision number

2007-08-06 Thread DCVer

Thanks for all replies, but when I use this plugin I receive the version of
my my project (e.g. 1.0-SNAPSHOT), but I would like to get somehow the
revision number of the svn version (e.g. 768). If someone commits some
changes and the revision number turns to 769 this would be shown in some
property file or manifest file or whatever. I think this needs a
communication with svn using scm tags (I have already configured scm).


Nick Stolwijk wrote:
> 
> Have a look at the buildnumber plugin, which does exactly that.[1]
> 
> Hth,
> 
> Nick Stolwijk
> 
> [1]
> http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/index.html
> 
> DCVer wrote:
>> Hi all,
>>
>> I would like to get the revision number of my project on svn repository
>> using maven2 (or some other tool) and put this number e.g. in some
>> property
>> file. How could this be done?
>>   
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Retrieving-subversion-revision-number-tf4225135s177.html#a12029403
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: [CREATE:ARCHETYPE]

2007-08-06 Thread João Kreuzberg
YES,

that works :)

Thanks so much,

Best regards,

João Kreuzberg

On 8/7/07, Maria Odea Ching <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> You've got the wrong parameter name.. it should be user.dir instead of
> basedir.
>
> HTH,
> Deng
>
> João Kreuzberg wrote:
> > Hello guys,
> >
> > I'm having a problem with create:archetype
> >
> > on the site is says it has a -Dbasedir parameter
> > but it doesn't seems to work
> > I tried mvn archetype:create -DgroupId=joao -DartifactId=joao
> -Dbasedir=C:\
> > but it does not create the project on the specified dir
> > it creates on the current dir
> > any thoughts?
> >
> > Best regards,
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
João Kreuzberg


Re: [CREATE:ARCHETYPE]

2007-08-06 Thread Maria Odea Ching

Hi,

You've got the wrong parameter name.. it should be user.dir instead of 
basedir.


HTH,
Deng

João Kreuzberg wrote:

Hello guys,

I'm having a problem with create:archetype

on the site is says it has a -Dbasedir parameter
but it doesn't seems to work
I tried mvn archetype:create -DgroupId=joao -DartifactId=joao -Dbasedir=C:\
but it does not create the project on the specified dir
it creates on the current dir
any thoughts?

Best regards,

  



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



Re: maven-bundle plugin and felix-308

2007-08-06 Thread Stuart McCulloch
On 06/08/07, Arash Amiri <[EMAIL PROTECTED]> wrote:
> Hi, I have some questions considering the felix-308 issue.
>
> right now, when you add dependencies to your maven-bundle-plugin, you
> have to add transitive dependencies by hand, right?
>
> so if I want to use the commons-httpclient in my bundle, I have to add
> also log4j.
> If I add log4, javax.jms and org.apache.log.* become missing contraints,
> which I have to add by hand again, and so on and so forth (so far I
> couldnt get my example with httpclient running...)
>
> as far as I read (somewhere in the web) the maven-osgi-plugin did that
> somehow better than the maven-bundle-plugin considering these transitive
> dependencies, right?
>
> Is the issue Felix-308 taking care of these transitive dependencies
> (just like maven can handle these dependencies when compiling a "normal"
> project)?

yes, it will handle transitive dependencies - for more details read:

http://issues.apache.org/jira/browse/FELIX-308

the current patch is ready for testing, any feedback is welcome.

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

-- 
Cheers, Stuart

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



Re: What is the Best practice for generating variations of an artifacts?

2007-08-06 Thread Antony Stubbs

That's correct. My mistate. I thought i replied to your msg last night - but
my reply seems to have disapered.
Details of my new approach, and issues can be found here:
http://forum.springframework.org/showthread.php?t=42314

I will change it to use multiple PropertyPlaceholderConfigurer beans. One to
load the environment setting from a properties file external to my artefact
(this is instead of your method of passing it in as a system property) and a
2nd to load the appropriate environment settings.

One advantage of using an external properties file instead of a system
property (which btw, you could set to override the configuration file
property), is that you can use a monitoring implementation of
PropertyPlaceholderConfigurer (there is one free on the net) which could
potentially refresh your settings - i.e. redirect your application, live, to
a different environment.


jp4 wrote:
> 
> Wouldn't this still result in different artifacts for different
> environments?  If so, this is what I want to avoid.  I would like my
> artifacts to be environment agnostic.  If you are building a single
> artifact, perhaps you could explain how this works.
> 
> Thanks,
> 
> John
> 
> Antony Stubbs wrote:
>> 
>> Even better - you can do away with the system property requirement if you
>> use Maven Filtering with spring. That way you can set the parameters at
>> build time, and not have to depend on a system parameter existing.
>> 
>> e.g. you use maven filtering to replace ${dev} inside your spring xml
>> files with the parameters value during build, instead of spring having to
>> resolve it.
>> 
>> 
>> 
>> jp4 wrote:
>>> 
>>> I have found a solution that works well for me.  I use spring in
>>> conjuction with a bootstrap variable called "env".  When I start my
>>> container in development env=dev in production it's env=prod.  I then
>>> use spring to resolve properties based on the environment.  For example,
>>> a property file would look like this
>>> 
>>> url.dev=http://dev.foo.com
>>> url.qa=http://qa.foo.com
>>> url.prod=http://www.foo.com
>>> 
>>> I then inject this property into a spring bean with something like this
>>> 
>>> 
>>>${url.${env}}
>>> 
>>> 
>>> This allows all of my deployable artifacts to be environment agnostic,
>>> the same war, ear, etc can be deployed to any environment as long as the
>>> System Property is set on the container.
>>> 
>>> 
>>> In addition, this solution has the added benefit of simplifying unit
>>> test cases as well.  If you don't use spring, then this probably isn't
>>> right for you.  If you are interested I can provide sample code, etc.
>>> 
>>> 
>>> Jo Vandermeeren wrote:
 
 Hi Vincent,
 
 I use filtering with profiles (option 1) and rebuild the entire project
 when
 I need another configuration.
 This is far from ideal..
 
 Perhaps you could keep your runtime configuration in a separate module
 and
 include the one you need as a dependency by activating a profile?
 I like your idea with the classifier approach..
 
 Cheers
 Jo
 
 On 3/16/07, Vincent Massol <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I've never found a good answer to this use case so far so I'm curious
> about how others have implemented it.
>
> Imagine a project that generates a WAR. This WAR contains a config
> file (say in WEB-INF/classes) that configures connection parameters
> for the database.
>
> Now imagine that your project wants to support several databases and
> you want the ability to build for a given database.
>
> I see 2 options:
>
> Option 1
> ---
>
> * Use filtering
> * Use profiles to set the values for the different databases
>
> Issues:
>
> * In order to differentiate the generate WAR file name you'll need to
> use  but the value set there won't be used for install/
> deploy which means that the WAR files users will see will always be
> the same.
>
> Idea for future:
>
> * It would be nice if Maven had a  element under
>  so that it would be possible to generate an artifact with a
> classifier.
>
> Option 2
> ---
>
> * Create one module per database, under a parent module
> * Create profiles in the parent module to conditionally include the
>  to be built
>
> Issues:
>
> * Very heavy (one module per database) especially when the only
> difference between the generated artifacts is only 3 lines in a
> config file
> * Need a way to share common configuration between the modules, in
> order to prevent duplication. For example if the config files only
> contains 3 lines that are different for each database and there are
> 100 lines in total, you don't want to duplicate the 97 lines in as
> many modules as you have databases
>
> What do people do? Is there some plan to support this use case in a
> be

RE: Auto incrementing a build identifier

2007-08-06 Thread Antony Stubbs

I have submitted a jira issue [1] - let's see what response we get...

A work around I am going to try, is pretty much ignoring the build number
that deploy generates, and instead rely on time stamps. E.g. I will use the
timestamp generated by build number plugin in a properties file to display
in the application - this should match up with the build timestamp used by
deploy. I will have to make sure the build number plugin uses 0 GMT though.

[1] http://jira.codehaus.org/browse/MDEPLOY-60


Antony Stubbs wrote:
> 
> Apparently you can do that ( I haven't tried it ) using the
> build-number-plugin, but again, not into the _deploy_ artefact. That
> plugin still has it's own system for putting a build number in the file
> name. it's a real pity - I wonder how this hasn't been addressed in the
> past.
> I mean, what do most people do to represent the current running build of a
> snapshot, inside the application, and in the filename?
> 
> 
> John Coleman-6 wrote:
>> 
>> That certainly gets my vote - just last week I was thinking it might be
>> handy to incorporate the subversion revision number in the artefact
>> name.
>> 
>> John
>> 
>> -Original Message-
>> From: Antony Stubbs [mailto:[EMAIL PROTECTED] 
>> Sent: 05 August 2007 11:42
>> To: users@maven.apache.org
>> Subject: RE: Auto incrementing a build identifier
>> 
>> 
>> That's exactly what M2 needs - would you consider releasing your mojo?
>> I'd
>> love to try using.
>> IMO this should be apart of the m2 deploy goal.
>> 
>> The problem with Mavin buildnumber plugin, is that it isn't synced with
>> the
>> build number repository.
>> 
>> 
>> Artamonov, Juri wrote:
>>> 
The thing is that I don't want to generate "new" builds during
>>> development, overwriting the current snapshot is preferred. But when
>>> processing a project which will be "publicly" available, I want to be
>>> able to identify it >(even a snapshot) with an incremented build
>> number,
>>> but without having to manage the version setting by hand.
>>> 
>>> IMHO, this is (I mean let's say snapshot numbering) not yet covered
>> well
>>> in m2.
>>> 
>>> I have requirement also for myself to distunguish two snapshot builds
>>> and here is what I did...
>>> 
>>> 1. I use maestro stuff with continuum and m2. When I do install I have
>>> files like 1.0-SNPASHOT- in repository. BUILD_NUMBER is
>>> always inrementing on 1 when new version is installed into repository.
>>> 2. I wrote the plugin which get latest BUILD_NUMBER from repository
>> and
>>> do +1 during for example compile phase. Now I know what build version
>> is
>>> going to be and I put this information into manifest file or war file
>> or
>>> for example jar file. Now I have information inside of the archive
>> that
>>> allows me to distinguish two snapshot versions.
>>> 
>>> Also you can use
>>> http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/ plugin
>> but
>>> seems having it working requires a lot of manual work, due missing
>>> versions on the repositories of the components listed in the
>>> dependencies.
>>> 
>>> Best regards,
>>>   Juri.
>>> 
>>> -Original Message-
>>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
>>> Sent: Friday, September 22, 2006 8:30 PM
>>> To: users@maven.apache.org
>>> Subject: Auto incrementing a build identifier
>>> 
>>> 
>>> A question about version numbering in Subversion.
>>> 
>>> I am aware of the way subversion handles version information while
>>> releasing. As I have peeked overhere in the Maven repository:
>>> 
>>>
>> https://svn.apache.org/repos/asf/maven/plugins/tags/maven-release-plugin
>>>
>> -2.0-beta-4/src/main/java/org/apache/maven/plugins/release/versions/Defa
>>> ultVersionInfo.java
>>> 
>>> Now I am wondering about something. My current contract would like a
>>> build increment value in between two brackets. Which auto increases
>> with
>>> each build delivered to production. I'd say that hooking into the
>> deploy
>>> phase would be a good time for such actions. But then I figure that it
>>> isn't.
>>> 
>>> I'd say the initialize phase is the correct one. Since I am not
>>> processing resources or sources but the POM.xml. The thing is this,
>> can
>>> I modify the POM then and there and keep the build going or do I need
>> to
>>> modify the POM. And let the user start another run, just like the
>>> release plugin does?
>>> 
>>> Also, is it possible (by documented API or acceptable convention) to
>>> detect whether or not a build is running up to or past the deploy
>> phase?
>>> 
>>> The thing is that I don't want to generate "new" builds during
>>> development, overwriting the current snapshot is preferred. But when
>>> processing a project which will be "publicly" available, I want to be
>>> able to identify it (even a snapshot) with an incremented build
>> number,
>>> but without having to manage the version setting by hand.
>>> 
>>> Any suggestions are greatly apreciated.
>>> 
>>> Kind regards,
>>> Jeroen Leenarts

Re: WebLogic Deployment ok from child, fails from parent ?

2007-08-06 Thread Ronn . Chinowutthichai
Scott,

I have the same problem here,  I have the plugin defined in parent pom 
(under pluginManagement).

When I run "mvn weblogic:deploy" from the parent, it assumes that the 
parent pom is a war project and then tries to deploy the war artifact of 
the parent at the parent level. This immediately fails because the parent 
pom is simply an aggregate of sub modules and the war artifacts of the 
parent does not exists.

Is this supported? If so I'd love to get it going too.

Cheers,
rOnn c.







Scott Ryan <[EMAIL PROTECTED]> 
Sent by: Scott Ryan <[EMAIL PROTECTED]>
08/03/2007 11:53 PM
Please respond to
"Maven Users List" 


To
"Maven Users List" 
cc

Subject
Re: WebLogic Deployment ok from child, fails from parent ?






Why is the plugin definition not in your parent?  If you run the 
command in the parent directory then the plugin definition needs to 
be there as well.

Scott Ryan
On Aug 3, 2007, at 1:04 AM, Anton Schoultz wrote:

> Hi,
>
> I have an prototype setup with three modules, 2 Jars and a WEB app.
> I have set up the WebLogic plugins in the web project.
>
> When I CD to the web project and "mvn weblogic:deploy" the web app is
> deployed as expected.
>
> However, if I go to the root/parent dir and try "mvn 
> weblogic:deploy" I
> get this error
>
> [INFO] Reactor build order:
> [INFO]   Unnamed - com.mergere.mvnbook:build-all-aggregator:pom:1
> [INFO]   console
> [INFO]   helloworld
> [INFO]   helloWeb
> [INFO] Searching repository for plugin with prefix: 'weblogic'.
> [INFO]
> -- 
> --
> [ERROR] BUILD ERROR
> [INFO]
> -- 
> --
> [INFO] The plugin 'org.apache.maven.plugins:maven-weblogic-plugin' 
> does
> not exist or no valid version could be found
>
> in this setup I'm ONLY looking at deployment issues.
>
> Here's the parent pom
>
>
>  4.0.0
>  com.mergere.mvnbook
>  build-all-aggregator
>  1
>  pom
>  
>console
>helloworld
>helloWeb
>  
>
>
>
>
> And here's the web-app (child) pom
>
> 
>   
> build-all-aggregator
> com.mergere.mvnbook
> 1
>   
>   4.0.0
>   anton
>   helloWeb
>   helloWeb
>   testWeb
>   war
>   1.0-SNAPSHOT
>   http://maven.apache.org
>   
> 
>   junit
>   junit
>   3.8.1
>   test
> 
>   
>
>   
> 
>
> org.codehaus.mojo
> weblogic-maven-plugin
> 2.9.0-SNAPSHOT
>
> 
> ${weblogicServerHostName} adminServerHostName>
> 
> ${weblogicServerPort}
> 
> http
> ${weblogicUserId}
> ${weblogicPassword}
>  true
>  true
>  true
>  false
> 
> ${weblogicTargetNames}
> 
> D:\build\helloWeb\target\helloWeb-1.0-SNAPSHOT.war artifa
> ctPath>
> helloWeb
> war
>
>
> 
>   
>
> 
>
>
> Any ideas? How should I be approaching this?
>
> In our situataion we have 50 odd projects, most of which are 
> deployable
> (ear / war),
> with only a handfull being jar projects. We'd like to be able to 
> deploy
> all of them in one cmd.
> I figure each deployable project will have it's own weblogic plugin 
> and
> config - with more
> generic handling of the artifactPath obviously.
>
> TestBox: WinXp; WebLogic:9.2x; Maven:2.0.6; Jdk:1.5.0_06
>
> Anton Schoultz
> Senior Java developer
> Life Systems - Servicing
> Discovery Life
> Direct: +27 11 529 1636
> Mobile: +27 83 651 7191
> Email: [EMAIL PROTECTED]
>
>
> Discovery Holdings Limited
>
> Registration number: 1999/007789/06
>
> This message and any attachments are confidential and intended 
> solely for the addressee. If you have received this message in 
> error, please notify Discovery immediately, telephone number +27 11 
> 529 2888. Any unauthorised use; alteration or dissemination of the 
> contents of this email is strictly prohibited. In no event will 
> Discovery or the sender be liable in any manner whatsoever to any 
> person for any loss or any direct, indirect, special or 
> consequential damages arising from use of this email or any linked 
> website, including, without limitation, from any lost profits, 
> business interruption, loss of programmes or other data that may be 
> stored on any information handling system or otherwise from any 
> assurance that this email is virus free even if Discovery is 
> expressly advised of the possibility of such damages. Discovery is 
> an Authorised Financial Services Provider. A full list of directors 
> is available on our website at
> https://www.discovery.co.za/index_login.jhtml?p

RE: Auto incrementing a build identifier

2007-08-06 Thread Antony Stubbs

Apparently you can do that ( I haven't tried it ) using the
build-number-plugin, but again, not into the _deploy_ artefact. That plugin
still has it's own system for putting a build number in the file name. it's
a real pity - I wonder how this hasn't been addressed in the past.
I mean, what do most people do to represent the current running build of a
snapshot, inside the application, and in the filename?


John Coleman-6 wrote:
> 
> That certainly gets my vote - just last week I was thinking it might be
> handy to incorporate the subversion revision number in the artefact
> name.
> 
> John
> 
> -Original Message-
> From: Antony Stubbs [mailto:[EMAIL PROTECTED] 
> Sent: 05 August 2007 11:42
> To: users@maven.apache.org
> Subject: RE: Auto incrementing a build identifier
> 
> 
> That's exactly what M2 needs - would you consider releasing your mojo?
> I'd
> love to try using.
> IMO this should be apart of the m2 deploy goal.
> 
> The problem with Mavin buildnumber plugin, is that it isn't synced with
> the
> build number repository.
> 
> 
> Artamonov, Juri wrote:
>> 
>>>The thing is that I don't want to generate "new" builds during
>> development, overwriting the current snapshot is preferred. But when
>> processing a project which will be "publicly" available, I want to be
>> able to identify it >(even a snapshot) with an incremented build
> number,
>> but without having to manage the version setting by hand.
>> 
>> IMHO, this is (I mean let's say snapshot numbering) not yet covered
> well
>> in m2.
>> 
>> I have requirement also for myself to distunguish two snapshot builds
>> and here is what I did...
>> 
>> 1. I use maestro stuff with continuum and m2. When I do install I have
>> files like 1.0-SNPASHOT- in repository. BUILD_NUMBER is
>> always inrementing on 1 when new version is installed into repository.
>> 2. I wrote the plugin which get latest BUILD_NUMBER from repository
> and
>> do +1 during for example compile phase. Now I know what build version
> is
>> going to be and I put this information into manifest file or war file
> or
>> for example jar file. Now I have information inside of the archive
> that
>> allows me to distinguish two snapshot versions.
>> 
>> Also you can use
>> http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/ plugin
> but
>> seems having it working requires a lot of manual work, due missing
>> versions on the repositories of the components listed in the
>> dependencies.
>> 
>> Best regards,
>>   Juri.
>> 
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
>> Sent: Friday, September 22, 2006 8:30 PM
>> To: users@maven.apache.org
>> Subject: Auto incrementing a build identifier
>> 
>> 
>> A question about version numbering in Subversion.
>> 
>> I am aware of the way subversion handles version information while
>> releasing. As I have peeked overhere in the Maven repository:
>> 
>>
> https://svn.apache.org/repos/asf/maven/plugins/tags/maven-release-plugin
>>
> -2.0-beta-4/src/main/java/org/apache/maven/plugins/release/versions/Defa
>> ultVersionInfo.java
>> 
>> Now I am wondering about something. My current contract would like a
>> build increment value in between two brackets. Which auto increases
> with
>> each build delivered to production. I'd say that hooking into the
> deploy
>> phase would be a good time for such actions. But then I figure that it
>> isn't.
>> 
>> I'd say the initialize phase is the correct one. Since I am not
>> processing resources or sources but the POM.xml. The thing is this,
> can
>> I modify the POM then and there and keep the build going or do I need
> to
>> modify the POM. And let the user start another run, just like the
>> release plugin does?
>> 
>> Also, is it possible (by documented API or acceptable convention) to
>> detect whether or not a build is running up to or past the deploy
> phase?
>> 
>> The thing is that I don't want to generate "new" builds during
>> development, overwriting the current snapshot is preferred. But when
>> processing a project which will be "publicly" available, I want to be
>> able to identify it (even a snapshot) with an incremented build
> number,
>> but without having to manage the version setting by hand.
>> 
>> Any suggestions are greatly apreciated.
>> 
>> Kind regards,
>> Jeroen Leenarts
>> http://blog.leenarts.net
>> 
>> Download this as a file
>> 
>> 
>> -
>> 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]
>> 
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Auto-incrementing-a-build-identifier-tf2319084s177
> .html#a12003652
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> 
> -

RE: Maven-Weblogic: NoClassDefFoundError for JAR in an EAR

2007-08-06 Thread Ronn . Chinowutthichai
Vaidya,

I can't work out the directory structure of your EAR from your emails but 
the lib directory you mention should be in

creditelseEAR.ear/APP-INF/lib/

and not 

creditelseEAR.ear/lib/

Weblogic should be able to find libraries within APP-INF/lib/

rOnn c.








"Vaidya, Supriya A (US - Chicago)" <[EMAIL PROTECTED]> 
08/07/2007 02:27 AM
Please respond to
"Maven Users List" 


To
"Maven Users List" 
cc

Subject
RE: Maven-Weblogic: NoClassDefFoundError for JAR in an EAR






Ok...  I just tried deploying the same EAR in the weblogic console - and
it failed there too withteh same NoClassDefFoundError... WHY!?!??!?!?
:o( 

The required class is packaged in a .jar. The jar is in the EAR's lib
folder. The application.xml does not have mention to it tho (I don't see
why it should) Where else am I missing its mention??



-Original Message-
From: Vaidya, Supriya A (US - Chicago) 
Sent: Monday, August 06, 2007 11:00 AM
To: 'Maven Users List'
Subject: RE: Maven-Weblogic: NoClassDefFoundError for JAR in an EAR

HI Scott - sorry I took so long to respond, got pulled into a few other
things.

Here is the stack trace on the maven console - below it is that on the
weblogic server console:
C:\CreditelseContinuance\creditelseEAR>mvn weblogic:deploy -X
+ Error stacktraces are turned on.
Maven version: 2.0.7
Java version: 1.5.0_04
OS name: "windows xp" version: "5.1" arch: "x86"
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
and Settin
gs\ch1svai1\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'C:\Maven\maven-2.0.7\
conf\plugin-registry.xml'
[INFO] Scanning for projects...
[DEBUG] Searching for parent-POM: com.something.credit:creditelse::2.0
of p
roject: com.something.credit.else:creditelseEAR:ear:2.0 in relative pat
h: ../pom.xml
[DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for
project
: com.something.credit.else:creditelseEAR:ear:2.0
[INFO] Searching repository for plugin with prefix: 'weblogic'.
[DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] maven-compiler-plugin: resolved to version 2.0.2 from repository
central

[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::8
for pro
ject: null:maven-compiler-plugin:maven-plugin:2.0.2 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for
project: org
.apache.maven.plugins:maven-plugins:pom:8 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.mave
n:maven-parent:pom:5 from the repository.
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[DEBUG] weblogic-maven-plugin: resolved to version
2.9.0-20070211.224419-10 from
 repository Maven Snapshots
[DEBUG] Retrieving parent-POM: org.codehaus.mojo:mojo::13 for project:
null:webl
ogic-maven-plugin:maven-plugin:2.9.0-20070211.224419-10 from the
repository.
[DEBUG] weblogic-maven-plugin: resolved to version
2.9.0-20070211.224419-10 from
 repository Maven Snapshots
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] maven-ear-plugin: resolved to version 2.3 from repository
central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::7
for pro
ject: null:maven-ear-plugin:maven-plugin:2.3 from the repository.
[DEBUG] Retrieving parent-POM:
org.apache.maven:maven-plugin-surrogate-parent::5
 for project: org.apache.maven.plugins:maven-plugins:pom:7 from the
repository.
[DEBUG] weblogic-maven-plugin: resolved to version
2.9.0-20070211.224419-10 from
 repository Maven Snapshots
[DEBUG] weblogic-maven-plugin: resolved to version
2.9.0-20070211.224419-10 from
 repository Maven Snapshots
[INFO]

-
---
[INFO] Building creditelse
[INFO]task-segment: [weblogic:deploy]
[INFO]

-
---
[DEBUG]
org.codehaus.mojo:weblogic-maven-plugin:maven-plugin:2.9.0-20070211.2244
19-10:runtime (selected for runtime)
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] Skipping disabled repository snapshots
[DEBUG] Trying repository codehaus.org
Downloading:
http://repository.codehaus.org/web-maven/web-maven/1.0/web-maven-1.
0.pom
[DEBUG] Unable to get resource 'web-maven:web-maven:pom:1.0' from
repository cod
ehaus.org (http://repository.codehaus.org)
[DEBUG] Trying repository central
Downloading:
http://repo1.maven.org/maven2/w

Re: How to increase the memory usage for mvn?

2007-08-06 Thread Ronn . Chinowutthichai
You could set MAVEN_OPTS environment variable in your shell.

e.g.,

set MAVEN_OPTS=-Xmx512M

Cheers,
rOnn c.




Baz <[EMAIL PROTECTED]> 
08/07/2007 09:19 AM
Please respond to
"Maven Users List" 


To
"Maven Users List" 
cc

Subject
How to increase the memory usage for mvn?






Hi,

How can i increase the memory usage for mvn? Like using ANT, there is an
option for that right?

Thanks.

A.


##
DISCLAIMER:
This email and any attachment may contain confidential information.
If you are not the intended recipient you are not authorized to copy
or disclose all or any part of it without the prior written consent
of Toyota.

Opinions expressed in this email and any attachments are those of the
sender and not necessarily the opinions of Toyota.
Please scan this email and any attachment(s) for viruses.
Toyota does not accept any responsibility for problems caused by
viruses, whether it is Toyota's fault or not.
##


Re: Continuum 1.1-beta-1 shell project does not run but runs from command line

2007-08-06 Thread L. J.
Sure,




org.apache.maven.plugins
maven-compiler-plugin
2.0.1-SNAPSHOT

1.3
1.3

true


org.apache.maven.plugins
maven-jar-plugin


true

true




${
project.scm.connection} ${project.scm.tag}



true




Thanks.

LJ


On 8/6/07, LAMY Olivier <[EMAIL PROTECTED]> wrote:
>
> Could you show your maven-compiler-plugin configuration.
> What are you target/source values ?
>
>
>
> -Message d'origine-
> De : L. J. [mailto:[EMAIL PROTECTED]
> Envoyé : mardi 7 août 2007 01:06
> À : continuum-users
> Objet : Continuum 1.1-beta-1 shell project does not run but runs from
> command line
>
> Using a shell script /usr/bin/sh build.sh (the script runs mvn -U -
> Dmaven.test.skip clean install), it works fine from the command line, but
> if I put in continuum beta-1 as a shell project, it fails. I tried adding
> the profile but does not help.
>
> Any suggestion or idea?
>
> Compiling 65 source files to 
> /apps/build/continuum-1.1-beta-1/apps/continuum/webapp/WEB-INF/working-directory/2/checkoutAdmin/admintoolcontinuum/adminparentPOM/../AdminCache/target/classes
> [INFO]
> 
> [ERROR] BUILD FAILURE
> [INFO]
> 
> [INFO] Compilation failure
>
> Failure executing javac, but could not parse the error:
> javac: target release 1.3 conflicts with default source release 1.5
>
>
> [INFO]
> 
> [INFO] For more information, run Maven with the -e switch [INFO]
> 
> [INFO] Total time: 27 seconds
> [INFO] Finished at: Mon Aug 06 15:23:33 PDT 2007 [INFO] Final Memory:
> 10M/28M [INFO]
> 
>
> Thanks.
>
> LJ
>
>
> This e-mail, any attachments and the information contained therein ("this
> message") are confidential and intended solely for the use of the
> addressee(s). If you have received this message in error please send it back
> to the sender and delete it. Unauthorized publication, use, dissemination or
> disclosure of this message, either in whole or in part is strictly
> prohibited.
> **
> Ce message électronique et tous les fichiers joints ainsi que  les
> informations contenues dans ce message ( ci après "le message" ), sont
> confidentiels et destinés exclusivement à l'usage de la  personne à laquelle
> ils sont adressés. Si vous avez reçu ce message par erreur, merci  de le
> renvoyer à son émetteur et de le détruire. Toutes diffusion, publication,
> totale ou partielle ou divulgation sous quelque forme que se soit non
> expressément autorisées de ce message, sont interdites.
> **
>
>


How to increase the memory usage for mvn?

2007-08-06 Thread Baz
Hi,

How can i increase the memory usage for mvn? Like using ANT, there is an
option for that right?

Thanks.

A.


Re: Code Obfuscator

2007-08-06 Thread Steven Rowe
Proguard:



Steve

Vihung Marathe wrote:
> Does anyone know of a code obfuscator [commercial or otherwise] plugin
> that can be incorporated into a Maven build? It seems to make sense to
> do this as part of a release (obviously, for a non-open-source
> enterprise app).
> 
> -- Vihung
> _
> 
> This e-mail may contain confidential information and/or copyright material. 
> This e-mail is intended for the use of the addressee only. Any unauthorised 
> use may be unlawful.
> 
> If you receive this e-mail by mistake please advise the sender immediately by 
> using the reply facility in your e-mail software.
> 
> The Friends Provident group of companies includes these Friends Provident plc 
> subsidiary companies:
> 
> Friends Provident Life and Pensions Limited. Registered number 4096141.
> Friends Provident Life Assurance Limited. Registered number 782698.
> Friends Provident Pensions Limited. Registered number 475201.
> Friends Provident Marketing Limited. Registered number 5059179.
> 
> Each of the above subsidiary companies is authorised and regulated by the 
> Financial Services Authority.
> 
> Friends Provident Management Services Limited. Registered number 983330
> 
> The ultimate holding company is Friends Provident plc. Registered number 
> 4113107.
> 
> All are incorporated companies limited by shares and registered in England.
> Registered and Head Office: Pixham End, Dorking, Surrey RH4 1QA.
> 
> www.friendsprovident.com
> 
> _
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: Maven-Weblogic: NoClassDefFoundError for JAR in an EAR

2007-08-06 Thread Scott Ryan
This is really more of a J2EE, WebLogic and Classloader issue rather  
than Maven.  If placing the jar in the APP-INF/lib directory does not  
help you will have to decompose your classloader structure and fix  
the manifests.  If the problem is in the EJB access you can just  
place the jar in the proper location in the EAR.  If it is with the  
War then you will need to update the maven build command to include  
that jar in the classpath manifest but don't package it in the War.   
Typically when this happens you have loaded a class in the  
classloader at too high a level to reach the classes it needs.  The  
APP-INF/iib is a hack to get around this issue for WebLogic Only so I  
would try to fix it the J2EE way.  I would also never never put  
application libraries in the system classpath.


Hope you get this one figured out.  If I can help let me know but we  
should probably take this off the Maven list since it is not Maven  
related.  You might try one of the BEA mailing lists.


Scott Ryan
[EMAIL PROTECTED]

On Aug 6, 2007, at 1:10 PM, Vaidya, Supriya A (US - Chicago) wrote:


This is strange indeed. I've been reading up, and find that a lot of
people have faced this problem, but no solutions have been posted...
I've even tried using the  tag for the
EAR-plugin, but this is not working either (isn't this to be used for
client JARs only?).

My problem seems to be: dependency on a 3rd party jar that is not  
in the

weblogic classpath.

Could someone please help?! :o(

-Original Message-
From: Vaidya, Supriya A (US - Chicago)
Sent: Monday, August 06, 2007 12:11 PM
To: 'Maven Users List'
Subject: RE: Maven-Weblogic: NoClassDefFoundError for JAR in an EAR

Hmm. I got around THAT one by putting the jar explicitly in the
classpath of weblogic (modified the startWebLogic.cmd file)... And the
deployment was successful - thru the weblogic console and the
weblogic:deploy command.

Now.. How would I go about achieving this with the weblogic:deploy
command without modifying the .cmd file?


-Original Message-
From: Vaidya, Supriya A (US - Chicago)
Sent: Monday, August 06, 2007 11:28 AM
To: 'Maven Users List'
Subject: RE: Maven-Weblogic: NoClassDefFoundError for JAR in an EAR

Ok...  I just tried deploying the same EAR in the weblogic console  
- and

it failed there too withteh same NoClassDefFoundError... WHY!?!??!?!?
:o(

The required class is packaged in a .jar. The jar is in the EAR's lib
folder. The application.xml does not have mention to it tho (I  
don't see

why it should) Where else am I missing its mention??



-Original Message-
From: Vaidya, Supriya A (US - Chicago)
Sent: Monday, August 06, 2007 11:00 AM
To: 'Maven Users List'
Subject: RE: Maven-Weblogic: NoClassDefFoundError for JAR in an EAR

HI Scott - sorry I took so long to respond, got pulled into a few  
other

things.

Here is the stack trace on the maven console - below it is that on the
weblogic server console:
C:\CreditelseContinuance\creditelseEAR>mvn weblogic:deploy -X
+ Error stacktraces are turned on.
Maven version: 2.0.7
Java version: 1.5.0_04
OS name: "windows xp" version: "5.1" arch: "x86"
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
and Settin
gs\ch1svai1\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'C:\Maven\maven-2.0.7\
conf\plugin-registry.xml'
[INFO] Scanning for projects...
[DEBUG] Searching for parent-POM: com.something.credit:creditelse::2.0
of p
roject: com.something.credit.else:creditelseEAR:ear:2.0 in relative  
pat

h: ../pom.xml
[DEBUG] Using parent-POM from the project hierarchy at: '../ 
pom.xml' for

project
: com.something.credit.else:creditelseEAR:ear:2.0
[INFO] Searching repository for plugin with prefix: 'weblogic'.
[DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] maven-compiler-plugin: resolved to version 2.0.2 from  
repository

central

[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven- 
plugins::8

for pro
ject: null:maven-compiler-plugin:maven-plugin:2.0.2 from the  
repository.

[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for
project: org
.apache.maven.plugins:maven-plugins:pom:8 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.mave
n:maven-parent:pom:5 from the repository.
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[DEBUG] weblogic-maven-plugin: resolved to version
2.9.0-20070211.224419-10 from
 repository Maven Snapshots
[DEBUG] Retrieving parent-POM: org.codehaus.mojo:mojo::13

RE: [m2] How to catch errors when running mvn?

2007-08-06 Thread Andrew Boyer
A good example of how to do this is in the mvn.bat batch file.  Open it
up, search for "Start MAVEN2", and then notice how it checks the return
value.  Also notice that you'll need to set the environmental variable
MAVEN_TERMINATE_CMD for the batch file to return errors.

Andrew

> -Original Message-
> From: Mick Knutson [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 06, 2007 4:10 PM
> To: maven
> Subject: [m2] How to catch errors when running mvn?
> 
> I want to be able to catch an error in a batch script when I run the
> following command:
> 
> @call mvn clean install -e
> 
> so how could I do something like:
> 
> %local-error% = @call mvn clean install -e
> 
> then test %local-error% != 1
> 
> 
> 
> --
> 
> Thanks,
> Mick Knutson
> 
> http://www.baselogic.com
> http://www.blincmagazine.com
> http://www.djmick.com
> http://www.myspace.com/mickknutson
> http://www.myspace.com/djmick_dot_com
> http://www.myspace.com/sexybeotches
> http://www.thumpradio.com
> ---

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



[CREATE:ARCHETYPE]

2007-08-06 Thread João Kreuzberg
Hello guys,

I'm having a problem with create:archetype

on the site is says it has a -Dbasedir parameter
but it doesn't seems to work
I tried mvn archetype:create -DgroupId=joao -DartifactId=joao -Dbasedir=C:\
but it does not create the project on the specified dir
it creates on the current dir
any thoughts?

Best regards,

-- 
João Kreuzberg


Assembly descriptors: excludes in filesets not excluding

2007-08-06 Thread Andrew Boyer
I have a basic assembly descriptor like this:


  dist
  
zip
tar.gz
  
  false
  

  target/dist
  /
  
*-tests.jar
  

  


When I run the assembly:single target, it zips up the dist directory,
but includes the test jars.  I played with this a bit, passing in the
full test jar name, but it still included it.  I pulled down the source
code for the assembly plugin, and looked at the FileSetAssemblyPhase
object.  I didn't see any reference to excludes.  Grepping through the
source, I see that FilterUtils has a filterProject method (which is used
by ModuleSetAssemblyPhase), and a filterArtifact method (which doesn't
seem to be used.

Is this a known issue?

Thanks,
Andrew

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



Deletion of Build Directory Error

2007-08-06 Thread Morgovsky, Alexander \(US - Glen Mills\)
I am using 1.1-alpha-2.  I received the following exception during a
scheduled, automated build of a project.  Is this a known issue, and if
yes, has it been fixed in 1.1-beta-1?  Thank you.
org.codehaus.plexus.taskqueue.execution.TaskExecutionException: Error
executing action 'clean-working-directory' at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.perfor
mAction(DefaultBuildController.java:432) at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.cleanW
orkingDirectory(DefaultBuildController.java:361) at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(
DefaultBuildController.java:103) at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.exec
uteTask(BuildProjectTaskExecutor.java:50) at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Execut
orRunnable$1.run(ThreadedTaskQueueExecutor.java:116) at
edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter
.call(Executors.java:442) at
edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask
.java:176) at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker
.runTask(ThreadPoolExecutor.java:665) at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker
.run(ThreadPoolExecutor.java:690) at
java.lang.Thread.run(Thread.java:534) 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]


RE: shell execution from 1.1-beta-1

2007-08-06 Thread LAMY Olivier
Hi,
What is your ? AIX ?

--
Olivier 

-Message d'origine-
De : L. J. [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 6 août 2007 22:11
À : continuum-users
Objet : shell execution from 1.1-beta-1

I have a build definition:
Build File /usr/bin/sh
Arguments buildAdmin.sh"

It works in alpha and earlier version of continuum. Is the way that the shell 
script gets executed changed since beta? I got the following error, and wonder 
why continuum is calling /bin/bash at the very beginning

1705563 [pool-1-thread-1] INFO
org.apache.maven.continuum.utils.shell.ShellCommandHelper:default  -
Executing: /bin/bash -c "cd
/apps/build/continuum-1.1-beta-1/apps/continuum/webapp/WEB-INF/working-directory/2
&& /usr/bin/sh buildAdmin.sh"
1705563 [pool-1-thread-1] INFO
org.apache.maven.continuum.utils.shell.ShellCommandHelper:default  - Working
directory: /apps/build/continuum-1.1-beta-1
/apps/continuum/webapp/WEB-INF/working-directory/2
1706375 [pool-1-thread-1] ERROR
org.codehaus.plexus.action.Action:execute-builder  - Error running buildResult
org.apache.maven.continuum.execution.ContinuumBuildExecutorException: Error 
while executing shell command. The most common error is that '/usr/bin/sh'
is not in your path.
at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShellCommand
(AbstractBuildExecutor.java:218)
at
org.apache.maven.continuum.execution.shell.ShellBuildExecutor.build(
ShellBuildExecutor.java:74)
at
org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.execute
(ExecuteBuilderContinuumAction.java:140)
at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.performAction
(DefaultBuildController.java:406)
at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(
DefaultBuildController.java:145)
at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask
(BuildProjectTaskExecutor.java:50)
at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run
(ThreadedTaskQueueExecutor.java:116)
at
edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call
(Executors.java:442)
at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(
FutureTask.java:176)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask
(ThreadPoolExecutor.java:665)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:801)
Caused by:
org.codehaus.plexus.util.cli.CommandLineException: Error while executing 
process.
at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java
:652)
at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(
CommandLineUtils.java:102)
at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(
CommandLineUtils.java:89)
at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.executeShellCommand
(DefaultShellCommandHelper.java:114)
at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.executeShellCommand
(DefaultShellCommandHelper.java:59)
at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShellCommand
(AbstractBuildExecutor.java:202)
... 11 more
Caused by:
java.io.IOException: /bin/bash: not found
at java.lang.UNIXProcess.fullPath(UNIXProcess.java:365)
at java.lang.UNIXProcess.(UNIXProcess.java:172)
at java.lang.ProcessImpl.start(ProcessImpl.java:114)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:466)
at java.lang.Runtime.exec(Runtime.java:607)
at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java
:647)
... 16 more
1706710 [pool-1-thread-1] INFO
org.apache.maven.continuum.buildcontroller.BuildController:default  - 
Performing action deploy-artifac

Thanks.

LJ


This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
--
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après "le message" ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur 
et de le détruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressément autorisées de ce 
message, sont interdites.

[m2] urgent issue with modules and sub-modules for initial builds

2007-08-06 Thread Mick Knutson
I have several levels of my modules

Such as:

pom.xml
 --> utilities/common/pom.xml
--> utilities/common/pom.xml
 --> utilities/common/build-tools/pom.xml




Now when I have a new repo and I run a "mvn clean install"

I get :

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
Downloading:
http://repo1.maven.org/maven2/org/delta/esp/dap/utilities/common/1.0.0.0/common-1.0.0.0.pom
[WARNING] Unable to get resource '
org.delta.esp.dap.utilities:common:pom:1.0.0.0' from repository central (
http://repo1.maven.org/maven2)
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Failed to resolve artifact.

GroupId: org.delta.esp.dap.utilities
ArtifactId: common
Version: 1.0.0.0

Reason: Unable to download the artifact from any repository

  org.delta.esp.dap.utilities:common:pom:1.0.0.0

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


[INFO]

[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
org.delta.esp.dap.utilities:common for project:
org.delta.esp.dap.utilities.common:bu
ild-tools:jar:1.0.0.0
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:373)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:286)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
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)
Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find
parent: org.delta.esp.dap.utilities:common for project:
org.delta.esp.dap.utiliti
es.common:build-tools:jar:1.0.0.0
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(
DefaultMavenProjectBuilder.java:1198)
at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal
(DefaultMavenProjectBuilder.java:697)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal
(DefaultMavenProjectBuilder.java:431)
at org.apache.maven.project.DefaultMavenProjectBuilder.build(
DefaultMavenProjectBuilder.java:195)
at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:523)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java
:455)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java
:499)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java
:499)
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:359)
... 11 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM '
org.delta.esp.dap.utilities:common' not found in repository: Unable to
download the arti
fact from any repository

  org.delta.esp.dap.utilities:common:pom:1.0.0.0

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

at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(
DefaultMavenProjectBuilder.java:528)
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(
DefaultMavenProjectBuilder.java:1194)
... 19 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable to download the artifact from any repository

  org.delta.esp.dap.utilities:common:pom:1.0.0.0

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

at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(
DefaultArtifactResolver.java:197)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(
DefaultArtifactResolver.java:73)
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(
DefaultMavenProjectBuilder.java:482)
... 20 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to
download the artifact from any repository
at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact
(DefaultWagonManager.java:308)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(
DefaultArtifactResolver.java:185)
... 22 more
[INFO]

[INFO] Total time: 2 seconds
[INFO] Finished at: Mo

Re: file based profile activation - best practice ?

2007-08-06 Thread nicolas de loof
The ant code required to make the generator work is huge, and duplicating it
would be worst as running it twice.

Thanks anyway for the suggestion


2007/8/6, Wayne Fay <[EMAIL PROTECTED]>:
>
> Not ideal, but you could set up another profile that has the full path
> from the parent, and specify that when running from the parent ie
> sql2java_top or something.
>
> Wayne
>
> On 8/6/07, nicolas de loof <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I'm using a code generator, and I'd like to avoid regeneration of code
> on
> > each build.
> >
> > I've set a profile to launch the generation using the antrun plugin
> > The profile is active based on a generated file missing :
> >
> > 
> >  sql2java
> >  
> >
> >  target/generated-sources/sql2java.tstamp
> >
> >  
> >  
> > ...
> >
> > As explained in http://docs.codehaus.org/display/MAVENUSER/Profiles, I
> > cannot reference ${project.build.directory} in this path.
> > When I run "mvn install" from my parent POM, generator runs even if code
> > allready exist, as the project basedir is not the same as running from
> the
> > module.
> >
> > Is there any way to solve this ? Is there any plan for properties
> support in
> > profiles activation ?
> >
> > Nico.
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Problem accessing local repository from Parent POM

2007-08-06 Thread Mark Eramo

Hello,
  I have setup a Parent POM / Child POM relationship and now I am 
having a problem accessing my local repository.


I have defined in my Parent POM, the local repository only. In my Child 
POM, I reference the parent POM but no repository. I assume it will use 
the repository setting in the Parent POM. When I run a mvn compile using 
the Child POM, the build tries to download the jars from 
*http://repo1.maven.org and NOT from my local repository, where the jars 
I need are.


*I tried setting up a settings.xml and defining the local repository in 
there but still it tries to look at the remote repository only.


Can anyone tell me what I am doing wrong? Does the Parent POM need to 
sit in a specific location such that the Child POM can see it? Currently 
it is in the folder structure, 2 folders above the Child POM.


Regards,
Mark


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



shell execution from 1.1-beta-1

2007-08-06 Thread L. J.
I have a build definition:
Build File /usr/bin/sh
Arguments buildAdmin.sh"

It works in alpha and earlier version of continuum. Is the way that the
shell script gets executed changed since beta? I got the following error,
and wonder why continuum is calling /bin/bash at the very beginning

1705563 [pool-1-thread-1] INFO
org.apache.maven.continuum.utils.shell.ShellCommandHelper:default  -
Executing: /bin/bash -c "cd
/apps/build/continuum-1.1-beta-1/apps/continuum/webapp/WEB-INF/working-directory/2
&& /usr/bin/sh buildAdmin.sh"
1705563 [pool-1-thread-1] INFO
org.apache.maven.continuum.utils.shell.ShellCommandHelper:default  - Working
directory: /apps/build/continuum-1.1-beta-1
/apps/continuum/webapp/WEB-INF/working-directory/2
1706375 [pool-1-thread-1] ERROR
org.codehaus.plexus.action.Action:execute-builder  - Error running
buildResult
org.apache.maven.continuum.execution.ContinuumBuildExecutorException: Error
while executing shell command. The most common error is that '/usr/bin/sh'
is not in your path.
at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShellCommand
(AbstractBuildExecutor.java:218)
at
org.apache.maven.continuum.execution.shell.ShellBuildExecutor.build(
ShellBuildExecutor.java:74)
at
org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.execute
(ExecuteBuilderContinuumAction.java:140)
at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.performAction
(DefaultBuildController.java:406)
at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(
DefaultBuildController.java:145)
at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask
(BuildProjectTaskExecutor.java:50)
at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run
(ThreadedTaskQueueExecutor.java:116)
at
edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call
(Executors.java:442)
at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(
FutureTask.java:176)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask
(ThreadPoolExecutor.java:665)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:801)
Caused by:
org.codehaus.plexus.util.cli.CommandLineException: Error while executing
process.
at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java
:652)
at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(
CommandLineUtils.java:102)
at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(
CommandLineUtils.java:89)
at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.executeShellCommand
(DefaultShellCommandHelper.java:114)
at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.executeShellCommand
(DefaultShellCommandHelper.java:59)
at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShellCommand
(AbstractBuildExecutor.java:202)
... 11 more
Caused by:
java.io.IOException: /bin/bash: not found
at java.lang.UNIXProcess.fullPath(UNIXProcess.java:365)
at java.lang.UNIXProcess.(UNIXProcess.java:172)
at java.lang.ProcessImpl.start(ProcessImpl.java:114)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:466)
at java.lang.Runtime.exec(Runtime.java:607)
at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java
:647)
... 16 more
1706710 [pool-1-thread-1] INFO
org.apache.maven.continuum.buildcontroller.BuildController:default  -
Performing action deploy-artifac

Thanks.

LJ


[m2] How to catch errors when running mvn?

2007-08-06 Thread Mick Knutson
I want to be able to catch an error in a batch script when I run the
following command:

@call mvn clean install -e

so how could I do something like:

%local-error% = @call mvn clean install -e

then test %local-error% != 1



-- 

Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---


RE: Maven-Weblogic: NoClassDefFoundError for JAR in an EAR

2007-08-06 Thread Vaidya, Supriya A (US - Chicago)
This is strange indeed. I've been reading up, and find that a lot of
people have faced this problem, but no solutions have been posted...
I've even tried using the  tag for the
EAR-plugin, but this is not working either (isn't this to be used for
client JARs only?).

My problem seems to be: dependency on a 3rd party jar that is not in the
weblogic classpath. 

Could someone please help?! :o( 

-Original Message-
From: Vaidya, Supriya A (US - Chicago) 
Sent: Monday, August 06, 2007 12:11 PM
To: 'Maven Users List'
Subject: RE: Maven-Weblogic: NoClassDefFoundError for JAR in an EAR

Hmm. I got around THAT one by putting the jar explicitly in the
classpath of weblogic (modified the startWebLogic.cmd file)... And the
deployment was successful - thru the weblogic console and the
weblogic:deploy command.

Now.. How would I go about achieving this with the weblogic:deploy
command without modifying the .cmd file?


-Original Message-
From: Vaidya, Supriya A (US - Chicago) 
Sent: Monday, August 06, 2007 11:28 AM
To: 'Maven Users List'
Subject: RE: Maven-Weblogic: NoClassDefFoundError for JAR in an EAR

Ok...  I just tried deploying the same EAR in the weblogic console - and
it failed there too withteh same NoClassDefFoundError... WHY!?!??!?!?
:o( 

The required class is packaged in a .jar. The jar is in the EAR's lib
folder. The application.xml does not have mention to it tho (I don't see
why it should) Where else am I missing its mention??



-Original Message-
From: Vaidya, Supriya A (US - Chicago) 
Sent: Monday, August 06, 2007 11:00 AM
To: 'Maven Users List'
Subject: RE: Maven-Weblogic: NoClassDefFoundError for JAR in an EAR

HI Scott - sorry I took so long to respond, got pulled into a few other
things.

Here is the stack trace on the maven console - below it is that on the
weblogic server console:
C:\CreditelseContinuance\creditelseEAR>mvn weblogic:deploy -X
+ Error stacktraces are turned on.
Maven version: 2.0.7
Java version: 1.5.0_04
OS name: "windows xp" version: "5.1" arch: "x86"
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
and Settin
gs\ch1svai1\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'C:\Maven\maven-2.0.7\
conf\plugin-registry.xml'
[INFO] Scanning for projects...
[DEBUG] Searching for parent-POM: com.something.credit:creditelse::2.0
of p
roject: com.something.credit.else:creditelseEAR:ear:2.0 in relative pat
h: ../pom.xml
[DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for
project
: com.something.credit.else:creditelseEAR:ear:2.0
[INFO] Searching repository for plugin with prefix: 'weblogic'.
[DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] maven-compiler-plugin: resolved to version 2.0.2 from repository
central

[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::8
for pro
ject: null:maven-compiler-plugin:maven-plugin:2.0.2 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for
project: org
.apache.maven.plugins:maven-plugins:pom:8 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.mave
n:maven-parent:pom:5 from the repository.
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[DEBUG] weblogic-maven-plugin: resolved to version
2.9.0-20070211.224419-10 from
 repository Maven Snapshots
[DEBUG] Retrieving parent-POM: org.codehaus.mojo:mojo::13 for project:
null:webl
ogic-maven-plugin:maven-plugin:2.9.0-20070211.224419-10 from the
repository.
[DEBUG] weblogic-maven-plugin: resolved to version
2.9.0-20070211.224419-10 from
 repository Maven Snapshots
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] maven-ear-plugin: resolved to version 2.3 from repository
central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::7
for pro
ject: null:maven-ear-plugin:maven-plugin:2.3 from the repository.
[DEBUG] Retrieving parent-POM:
org.apache.maven:maven-plugin-surrogate-parent::5
 for project: org.apache.maven.plugins:maven-plugins:pom:7 from the
repository.
[DEBUG] weblogic-maven-plugin: resolved to version
2.9.0-20070211.224419-10 from
 repository Maven Snapshots
[DEBUG] weblogic-maven-plugin: resolved to version
2.9.0-20070211.224419-10 from
 repository Maven Snapshots
[INFO]

-
---
[INFO] Building creditelse
[INFO]task-segment: [weblogic:deploy]
[INFO]

Maven plugin testing tools/harness

2007-08-06 Thread Arnaud Bailly
Hello,
I would like to know where I can find usage examples of the
maven-plugin-testing-tools shared component. It looks really
interesting

Thx

PS: Is it possible to connect to irc.codehaus.org using erc on emacs ?
I keep getting connection errors...
-- 
OQube < software engineering \ génie logiciel >
Arnaud Bailly, Dr.
\web> http://www.oqube.com


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



Re: Retrieving subversion revision number

2007-08-06 Thread Lee Meador
You can do it by generating a file with Ant as well. I generate a java
source file with a constant in it in the generate-source phase. You could
generate a .properties file.

This is in the POM under 


  maven-antrun-plugin
  

  gensrc
  generate-sources
  

  
  

 ${project.build.directory
}/generated-sources/java
  
  
run
  

  


This is the Ant target:




package com.mycompany.myapp;
/** Generated in ANT */
public class ProgramVersion
{
   public static final String VERSION = "${program.version}";
}



-- Lee Meador

On 8/6/07, Nick Stolwijk <[EMAIL PROTECTED]> wrote:
>
> Have a look at the buildnumber plugin, which does exactly that.[1]
>
> Hth,
>
> Nick Stolwijk
>
> [1]
> http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/index.html
>
> DCVer wrote:
> > Hi all,
> >
> > I would like to get the revision number of my project on svn repository
> > using maven2 (or some other tool) and put this number e.g. in some
> property
> > file. How could this be done?
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com


Re: [103] Peform build even if there are no changes in cvs?

2007-08-06 Thread Stephane Nicoll
You'll need to upgrade.

HTH,
Stéphane

On 8/6/07, Michael Meyer <[EMAIL PROTECTED]> wrote:
> Hi
> is there a way to perform a scheduled build even if there are no changes
> in cvs? I think this feature is called "Build fresh" in continuum 1.1
> Beta 1. Unfortunately I'm still using continuum 1.0.3.
>
> Cheers, michael
>
>
>


-- 
Large Systems Suck: This rule is 100% transitive. If you build one,
you suck" -- S.Yegge


RE: Perforce SCM

2007-08-06 Thread McNaught, Duncan
I'm had this problem too - have you found a solution?
I reported it to continuum-users, continuum-dev and then entered a JIRA:
http://jira.codehaus.org/browse/CONTINUUM-1351
I'm unable to move up from 1.1-alpha-2 until this is resolved.
I'm also having a problem with one of my continuum servers not building
per schedule which would seem to be because it is running on jdk16 - has
anyone seen this/have a solution?
Thanks
--Duncan

-Original Message-
From: Randall Fidler [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 01, 2007 6:36 PM
To: [EMAIL PROTECTED]
Subject: Perforce SCM

Hello,

 

Is anybody using Perforce as their SCM?  Upgraded to version
'1.1-beta-1' and the log file only tells me that it was unable to check
out the files; it does show the command being issued which appears
correct (p4 -d [working dir] client -i).  Is there somewhere else I can
look for scm error other than the general log?  

 

Additionally, is there any way to test the scm setup independently of
Continuum?

 

Thanks!!

 

Randall 


[103] Peform build even if there are no changes in cvs?

2007-08-06 Thread Michael Meyer

Hi
is there a way to perform a scheduled build even if there are no changes 
in cvs? I think this feature is called "Build fresh" in continuum 1.1 
Beta 1. Unfortunately I'm still using continuum 1.0.3.


Cheers, michael




RE: Maven-Weblogic: NoClassDefFoundError for JAR in an EAR

2007-08-06 Thread Vaidya, Supriya A (US - Chicago)
Hmm. I got around THAT one by putting the jar explicitly in the
classpath of weblogic (modified the startWebLogic.cmd file)... And the
deployment was successful - thru the weblogic console and the
weblogic:deploy command.

Now.. How would I go about achieving this with the weblogic:deploy
command without modifying the .cmd file?


-Original Message-
From: Vaidya, Supriya A (US - Chicago) 
Sent: Monday, August 06, 2007 11:28 AM
To: 'Maven Users List'
Subject: RE: Maven-Weblogic: NoClassDefFoundError for JAR in an EAR

Ok...  I just tried deploying the same EAR in the weblogic console - and
it failed there too withteh same NoClassDefFoundError... WHY!?!??!?!?
:o( 

The required class is packaged in a .jar. The jar is in the EAR's lib
folder. The application.xml does not have mention to it tho (I don't see
why it should) Where else am I missing its mention??



-Original Message-
From: Vaidya, Supriya A (US - Chicago) 
Sent: Monday, August 06, 2007 11:00 AM
To: 'Maven Users List'
Subject: RE: Maven-Weblogic: NoClassDefFoundError for JAR in an EAR

HI Scott - sorry I took so long to respond, got pulled into a few other
things.

Here is the stack trace on the maven console - below it is that on the
weblogic server console:
C:\CreditelseContinuance\creditelseEAR>mvn weblogic:deploy -X
+ Error stacktraces are turned on.
Maven version: 2.0.7
Java version: 1.5.0_04
OS name: "windows xp" version: "5.1" arch: "x86"
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
and Settin
gs\ch1svai1\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'C:\Maven\maven-2.0.7\
conf\plugin-registry.xml'
[INFO] Scanning for projects...
[DEBUG] Searching for parent-POM: com.something.credit:creditelse::2.0
of p
roject: com.something.credit.else:creditelseEAR:ear:2.0 in relative pat
h: ../pom.xml
[DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for
project
: com.something.credit.else:creditelseEAR:ear:2.0
[INFO] Searching repository for plugin with prefix: 'weblogic'.
[DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] maven-compiler-plugin: resolved to version 2.0.2 from repository
central

[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::8
for pro
ject: null:maven-compiler-plugin:maven-plugin:2.0.2 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for
project: org
.apache.maven.plugins:maven-plugins:pom:8 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.mave
n:maven-parent:pom:5 from the repository.
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[DEBUG] weblogic-maven-plugin: resolved to version
2.9.0-20070211.224419-10 from
 repository Maven Snapshots
[DEBUG] Retrieving parent-POM: org.codehaus.mojo:mojo::13 for project:
null:webl
ogic-maven-plugin:maven-plugin:2.9.0-20070211.224419-10 from the
repository.
[DEBUG] weblogic-maven-plugin: resolved to version
2.9.0-20070211.224419-10 from
 repository Maven Snapshots
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] maven-ear-plugin: resolved to version 2.3 from repository
central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::7
for pro
ject: null:maven-ear-plugin:maven-plugin:2.3 from the repository.
[DEBUG] Retrieving parent-POM:
org.apache.maven:maven-plugin-surrogate-parent::5
 for project: org.apache.maven.plugins:maven-plugins:pom:7 from the
repository.
[DEBUG] weblogic-maven-plugin: resolved to version
2.9.0-20070211.224419-10 from
 repository Maven Snapshots
[DEBUG] weblogic-maven-plugin: resolved to version
2.9.0-20070211.224419-10 from
 repository Maven Snapshots
[INFO]

-
---
[INFO] Building creditelse
[INFO]task-segment: [weblogic:deploy]
[INFO]

-
---
[DEBUG]
org.codehaus.mojo:weblogic-maven-plugin:maven-plugin:2.9.0-20070211.2244
19-10:runtime (selected for runtime)
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] Skipping disabled repository snapshots
[DEBUG] Trying repository codehaus.org
Downloading:
http://repository.codehaus.org/web-maven/web-maven/1.0/web-maven-1.
0.pom
[DEBUG] Unable to get resource 'web-maven:web-maven:pom:1.0' from
repository cod
ehaus.org (http://repository.codehaus.org)
[DEBUG] Trying repository central
Do

Re: how to specify multiple descriptors on the command-line

2007-08-06 Thread Lara Brian

Hi Deng,
Thanks a lot for the reply/suggestions. I will try profiles and see how it
goes. 
Thanks a lot.


Maria Odea Ching-2 wrote:
> 
> Hi Lara,
> 
> I don't think it's possible to specify the descriptors from the command 
> line as it seems to be not supported by the assembly plugin.
> Maybe you could try using profiles [1] to separate the different types 
> of descriptors (e.g. different plugin config in each profile) for what 
> you want to do?
> 
> HTH,
> Deng
> 
> [1] 
> http://maven.apache.org/guides/introduction/introduction-to-profiles.html
> 
> 
> Lara Brian wrote:
>> Hi Deng,
>> Thanks for the reply. Your suggestion (to place the descriptors in the
>> pom)
>> worked. Thanks a lot. But is there a way to just specify from command
>> line?
>> The reason i need this is, i have few assembly descriptors (for various
>> sources, javadocs and few for binaries). I have a plugin that checks for
>> conflicitng versions in dependencies. I need to run that plugin only for
>> binaries and not for others. If i specify all the descriptors in the POM
>> i
>> cannot differentiate one from the other.
>>
>> I could run individual descriptor by -Ddescriptor option but not
>> descriptors
>> with -Ddescriptors option. I tried the full path as you specified and
>> still
>> no luck.
>>
>> Thanks a lot for any help.
>>  
>>
>> Maria Odea Ching-2 wrote:
>>   
>>> Hi,
>>>
>>> Try configuring these descriptors in the pom (shown below) instead of 
>>> setting it at the command-line. Also, I think the path to the 
>>> descriptors should be included instead of just the descriptor filename.
>>>
>>> 
>>>   
>>> maven-assembly-plugin
>>> 
>>>   
>>> path/to/cmp-server.xml
>>> path/to/cmp-client.xml
>>>   
>>> 
>>>   
>>> 
>>>
>>>
>>> HTH,
>>> Deng
>>>
>>> Lara Brian wrote:
>>> 
 Hi All,
 How to specify multiple descriptors on the command line when invoking
 assebly plugin? What is the separator for the descriptors. I tried
 comma/colan but ended up unsuccessful.

 I tried,
 mvn package assembly:assembly
 -Ddescriptors=cmp-server.xml,cmp-client.xml
 -Dmaven.test.skip=true

 but getting,
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error reading assemblies: No assembly descriptors found.

 [INFO]
 

 thanks a lot.
   
   
>>> -
>>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-specify-multiple-descriptors-on-the-command-line-tf4203464s177.html#a12020245
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Maven-Weblogic: NoClassDefFoundError for JAR in an EAR

2007-08-06 Thread Vaidya, Supriya A (US - Chicago)
Ok...  I just tried deploying the same EAR in the weblogic console - and
it failed there too withteh same NoClassDefFoundError... WHY!?!??!?!?
:o( 

The required class is packaged in a .jar. The jar is in the EAR's lib
folder. The application.xml does not have mention to it tho (I don't see
why it should) Where else am I missing its mention??



-Original Message-
From: Vaidya, Supriya A (US - Chicago) 
Sent: Monday, August 06, 2007 11:00 AM
To: 'Maven Users List'
Subject: RE: Maven-Weblogic: NoClassDefFoundError for JAR in an EAR

HI Scott - sorry I took so long to respond, got pulled into a few other
things.

Here is the stack trace on the maven console - below it is that on the
weblogic server console:
C:\CreditelseContinuance\creditelseEAR>mvn weblogic:deploy -X
+ Error stacktraces are turned on.
Maven version: 2.0.7
Java version: 1.5.0_04
OS name: "windows xp" version: "5.1" arch: "x86"
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
and Settin
gs\ch1svai1\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'C:\Maven\maven-2.0.7\
conf\plugin-registry.xml'
[INFO] Scanning for projects...
[DEBUG] Searching for parent-POM: com.something.credit:creditelse::2.0
of p
roject: com.something.credit.else:creditelseEAR:ear:2.0 in relative pat
h: ../pom.xml
[DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for
project
: com.something.credit.else:creditelseEAR:ear:2.0
[INFO] Searching repository for plugin with prefix: 'weblogic'.
[DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] maven-compiler-plugin: resolved to version 2.0.2 from repository
central

[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::8
for pro
ject: null:maven-compiler-plugin:maven-plugin:2.0.2 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for
project: org
.apache.maven.plugins:maven-plugins:pom:8 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.mave
n:maven-parent:pom:5 from the repository.
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[DEBUG] weblogic-maven-plugin: resolved to version
2.9.0-20070211.224419-10 from
 repository Maven Snapshots
[DEBUG] Retrieving parent-POM: org.codehaus.mojo:mojo::13 for project:
null:webl
ogic-maven-plugin:maven-plugin:2.9.0-20070211.224419-10 from the
repository.
[DEBUG] weblogic-maven-plugin: resolved to version
2.9.0-20070211.224419-10 from
 repository Maven Snapshots
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] maven-ear-plugin: resolved to version 2.3 from repository
central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::7
for pro
ject: null:maven-ear-plugin:maven-plugin:2.3 from the repository.
[DEBUG] Retrieving parent-POM:
org.apache.maven:maven-plugin-surrogate-parent::5
 for project: org.apache.maven.plugins:maven-plugins:pom:7 from the
repository.
[DEBUG] weblogic-maven-plugin: resolved to version
2.9.0-20070211.224419-10 from
 repository Maven Snapshots
[DEBUG] weblogic-maven-plugin: resolved to version
2.9.0-20070211.224419-10 from
 repository Maven Snapshots
[INFO]

-
---
[INFO] Building creditelse
[INFO]task-segment: [weblogic:deploy]
[INFO]

-
---
[DEBUG]
org.codehaus.mojo:weblogic-maven-plugin:maven-plugin:2.9.0-20070211.2244
19-10:runtime (selected for runtime)
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] Skipping disabled repository snapshots
[DEBUG] Trying repository codehaus.org
Downloading:
http://repository.codehaus.org/web-maven/web-maven/1.0/web-maven-1.
0.pom
[DEBUG] Unable to get resource 'web-maven:web-maven:pom:1.0' from
repository cod
ehaus.org (http://repository.codehaus.org)
[DEBUG] Trying repository central
Downloading:
http://repo1.maven.org/maven2/web-maven/web-maven/1.0/web-maven-1.0
.pom
[DEBUG] Unable to get resource 'web-maven:web-maven:pom:1.0' from
repository cen
tral (http://repo1.maven.org/maven2)
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] Trying repository central
Downloading:
http://repo1.maven.org/maven2/web-maven/web-maven/1.0/web-maven-1.0
.pom
[DEBUG] Unable to get resource 'web-maven:web-maven:pom:1.0' from
repository cen
tral (http://repo1.

Re: Retrieving subversion revision number

2007-08-06 Thread Nick Stolwijk

Have a look at the buildnumber plugin, which does exactly that.[1]

Hth,

Nick Stolwijk

[1] http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/index.html

DCVer wrote:

Hi all,

I would like to get the revision number of my project on svn repository
using maven2 (or some other tool) and put this number e.g. in some property
file. How could this be done?
  



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



Re: Retrieving subversion revision number

2007-08-06 Thread ben short
http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html

On 8/6/07, DCVer <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I would like to get the revision number of my project on svn repository
> using maven2 (or some other tool) and put this number e.g. in some property
> file. How could this be done?
> --
> View this message in context: 
> http://www.nabble.com/Retrieving-subversion-revision-number-tf4225135s177.html#a12019324
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Retrieving subversion revision number

2007-08-06 Thread DCVer

Hi all,

I would like to get the revision number of my project on svn repository
using maven2 (or some other tool) and put this number e.g. in some property
file. How could this be done?
-- 
View this message in context: 
http://www.nabble.com/Retrieving-subversion-revision-number-tf4225135s177.html#a12019324
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Maven-Weblogic: NoClassDefFoundError for JAR in an EAR

2007-08-06 Thread Vaidya, Supriya A (US - Chicago)
HI Scott - sorry I took so long to respond, got pulled into a few other
things.

Here is the stack trace on the maven console - below it is that on the
weblogic server console:
C:\CreditelseContinuance\creditelseEAR>mvn weblogic:deploy -X
+ Error stacktraces are turned on.
Maven version: 2.0.7
Java version: 1.5.0_04
OS name: "windows xp" version: "5.1" arch: "x86"
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
and Settin
gs\ch1svai1\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'C:\Maven\maven-2.0.7\
conf\plugin-registry.xml'
[INFO] Scanning for projects...
[DEBUG] Searching for parent-POM: com.something.credit:creditelse::2.0
of p
roject: com.something.credit.else:creditelseEAR:ear:2.0 in relative pat
h: ../pom.xml
[DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for
project
: com.something.credit.else:creditelseEAR:ear:2.0
[INFO] Searching repository for plugin with prefix: 'weblogic'.
[DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] maven-compiler-plugin: resolved to version 2.0.2 from repository
central

[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::8
for pro
ject: null:maven-compiler-plugin:maven-plugin:2.0.2 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for
project: org
.apache.maven.plugins:maven-plugins:pom:8 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.mave
n:maven-parent:pom:5 from the repository.
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[DEBUG] weblogic-maven-plugin: resolved to version
2.9.0-20070211.224419-10 from
 repository Maven Snapshots
[DEBUG] Retrieving parent-POM: org.codehaus.mojo:mojo::13 for project:
null:webl
ogic-maven-plugin:maven-plugin:2.9.0-20070211.224419-10 from the
repository.
[DEBUG] weblogic-maven-plugin: resolved to version
2.9.0-20070211.224419-10 from
 repository Maven Snapshots
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] maven-ear-plugin: resolved to version 2.3 from repository
central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::7
for pro
ject: null:maven-ear-plugin:maven-plugin:2.3 from the repository.
[DEBUG] Retrieving parent-POM:
org.apache.maven:maven-plugin-surrogate-parent::5
 for project: org.apache.maven.plugins:maven-plugins:pom:7 from the
repository.
[DEBUG] weblogic-maven-plugin: resolved to version
2.9.0-20070211.224419-10 from
 repository Maven Snapshots
[DEBUG] weblogic-maven-plugin: resolved to version
2.9.0-20070211.224419-10 from
 repository Maven Snapshots
[INFO]

-
---
[INFO] Building creditelse
[INFO]task-segment: [weblogic:deploy]
[INFO]

-
---
[DEBUG]
org.codehaus.mojo:weblogic-maven-plugin:maven-plugin:2.9.0-20070211.2244
19-10:runtime (selected for runtime)
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] Skipping disabled repository snapshots
[DEBUG] Trying repository codehaus.org
Downloading:
http://repository.codehaus.org/web-maven/web-maven/1.0/web-maven-1.
0.pom
[DEBUG] Unable to get resource 'web-maven:web-maven:pom:1.0' from
repository cod
ehaus.org (http://repository.codehaus.org)
[DEBUG] Trying repository central
Downloading:
http://repo1.maven.org/maven2/web-maven/web-maven/1.0/web-maven-1.0
.pom
[DEBUG] Unable to get resource 'web-maven:web-maven:pom:1.0' from
repository cen
tral (http://repo1.maven.org/maven2)
[DEBUG] Skipping disabled repository Codehaus Snapshots
[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] Trying repository central
Downloading:
http://repo1.maven.org/maven2/web-maven/web-maven/1.0/web-maven-1.0
.pom
[DEBUG] Unable to get resource 'web-maven:web-maven:pom:1.0' from
repository cen
tral (http://repo1.maven.org/maven2)
[DEBUG] Artifact not found - using stub model: Unable to download the
artifact f
rom any repository

  web-maven:web-maven:pom:1.0

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

[DEBUG] Using defaults for missing POM
web-maven:web-maven:pom:1.0:provided
[DEBU

Re: Overriding artifact name in the repository

2007-08-06 Thread Heinrich Nirschl
On 8/6/07, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Is there a way to override the artifact name that gets deployed into the
> repository?

No. The repository is primarily there for maven to find artifacts used
as dependencies in other projects. This is not be possible if they
don't have the standard name.

- Henry

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



Re: file based profile activation - best practice ?

2007-08-06 Thread Wayne Fay
Not ideal, but you could set up another profile that has the full path
from the parent, and specify that when running from the parent ie
sql2java_top or something.

Wayne

On 8/6/07, nicolas de loof <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm using a code generator, and I'd like to avoid regeneration of code on
> each build.
>
> I've set a profile to launch the generation using the antrun plugin
> The profile is active based on a generated file missing :
>
> 
>  sql2java
>  
>
>  target/generated-sources/sql2java.tstamp
>
>  
>  
> ...
>
> As explained in http://docs.codehaus.org/display/MAVENUSER/Profiles, I
> cannot reference ${project.build.directory} in this path.
> When I run "mvn install" from my parent POM, generator runs even if code
> allready exist, as the project basedir is not the same as running from the
> module.
>
> Is there any way to solve this ? Is there any plan for properties support in
> profiles activation ?
>
> Nico.
>

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



castor plugin and castor version

2007-08-06 Thread nicolas de loof
I'm using castor to generate code.
the plugin (mojo) has a dependency on castor:castor:0.9.7
This version has a generator bug (http://jira.codehaus.org/browse/CASTOR-742)
that is solved in 1.0.4

But I can't override the plugin classpath to set version to 1.0.4 as the
groupId has been changed since 1.0 to org.codehaus.castor.

Any idea on a way to solve this ???
Seems I have to use antrun one more time... and my POM looks more and more
like an ant script !

Nico


Re: maven-bundle plugin and felix-308

2007-08-06 Thread Carlos Sanchez
that plugin is developed in the Felix project, you'll have better luck
asking in the felix mailing lists

On 8/6/07, Arash Amiri <[EMAIL PROTECTED]> wrote:
> Hi, I have some questions considering the felix-308 issue.
>
> right now, when you add dependencies to your maven-bundle-plugin, you
> have to add transitive dependencies by hand, right?
>
> so if I want to use the commons-httpclient in my bundle, I have to add
> also log4j.
> If I add log4, javax.jms and org.apache.log.* become missing contraints,
> which I have to add by hand again, and so on and so forth (so far I
> couldnt get my example with httpclient running...)
>
> as far as I read (somewhere in the web) the maven-osgi-plugin did that
> somehow better than the maven-bundle-plugin considering these transitive
> dependencies, right?
>
> Is the issue Felix-308 taking care of these transitive dependencies
> (just like maven can handle these dependencies when compiling a "normal"
> project)?
>
> greetings,
> arash
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
 -- The Princess Bride

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



Replacement for Ant's FixCRLF

2007-08-06 Thread Trevor Torrez
As noted at the end of the antrun plugins' usage page
(http://maven.apache.org/plugins/maven-antrun-plugin/usage.html) the
resources plugin can be used in lieu of Ant's FixCRLF task.  Any
example on how to do this when the build takes place on a windows
continuous build server and the assembly deployment is to a unix
machine (requiring unix line endings for the shell scripts)?

Thanks

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



maven-bundle plugin and felix-308

2007-08-06 Thread Arash Amiri

Hi, I have some questions considering the felix-308 issue.

right now, when you add dependencies to your maven-bundle-plugin, you 
have to add transitive dependencies by hand, right?


so if I want to use the commons-httpclient in my bundle, I have to add 
also log4j.
If I add log4, javax.jms and org.apache.log.* become missing contraints, 
which I have to add by hand again, and so on and so forth (so far I 
couldnt get my example with httpclient running...)


as far as I read (somewhere in the web) the maven-osgi-plugin did that 
somehow better than the maven-bundle-plugin considering these transitive 
dependencies, right?


Is the issue Felix-308 taking care of these transitive dependencies 
(just like maven can handle these dependencies when compiling a "normal" 
project)?


greetings,
arash

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



file based profile activation - best practice ?

2007-08-06 Thread nicolas de loof
Hello,

I'm using a code generator, and I'd like to avoid regeneration of code on
each build.

I've set a profile to launch the generation using the antrun plugin
The profile is active based on a generated file missing :


  sql2java
  

  target/generated-sources/sql2java.tstamp

  
  
...

As explained in http://docs.codehaus.org/display/MAVENUSER/Profiles, I
cannot reference ${project.build.directory} in this path.
When I run "mvn install" from my parent POM, generator runs even if code
allready exist, as the project basedir is not the same as running from the
module.

Is there any way to solve this ? Is there any plan for properties support in
profiles activation ?

Nico.


Re: Newbie: Failed pre-download policies

2007-08-06 Thread Joakim Erdfelt

There appears to be a problem with your cache-failures policy.

Set it to ignored (or disabled) and try again.

- Joakim

Antonio Parolini wrote:

Hello,

I'm trying to configure archiva following the getting started doc, but I
cannot get Archiva to cache the central repo. When I ask for this url:

http://znjupiter:8080/archiva/repository/internal/org/apache/maven/wagon/wagon-ftp/1.0-alpha-6/wagon-ftp-1.0-alpha-6.jar

I see the following log in archiva. What this "Failed pre-download policies"
error message is about  ?

Thanks ,

toni

14184735 [SocketListener0-0] DEBUG
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  -
Attempting connector: ProxyConnector[
 
source:ArchivaRepository[internal,file:/home/Jboss/jbossadm/archiva/repositories/internal/]

  target:ArchivaRepository[central,http://repo1.maven.org/maven2]
  proxyId:
  policy[releases]:once
  policy[checksum]:fix
  policy[snapshots]:disabled
  policy[cache-failures]:cache
]
14184737 [SocketListener0-0] DEBUG
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Using
target repository: central - layout: default - targetPath:
org/apache/maven/wagon/wagon-ftp/1.0-alpha-6/wagon-ftp-1.0-alpha-6.jar
14184737 [SocketListener0-0] DEBUG
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Applying
[releases] policy with [once]
14184738 [SocketListener0-0] DEBUG
org.apache.maven.archiva.policies.PreDownloadPolicy:releases  - OK to update
releases, local file does not exist.
14184739 [SocketListener0-0] DEBUG
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Applying
[snapshots] policy with [disabled]
14184739 [SocketListener0-0] DEBUG
org.apache.maven.archiva.policies.PreDownloadPolicy:snapshots  - OK to
update, snapshot policy does not apply for non-snapshot versions.
14184739 [SocketListener0-0] DEBUG
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Applying
[cache-failures] policy with [cache]
14184740 [SocketListener0-0] ERROR
org.apache.maven.archiva.policies.PreDownloadPolicy:cache-failures  -
Unknown checksum policyCode [cache]
14184740 [SocketListener0-0] DEBUG
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Didn't
pass the [cache-failures] policy.
14184740 [SocketListener0-0] INFO 
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Failed

pre-download policies -
/home/Jboss/jbossadm/archiva/repositories/internal/org/apache/maven/wagon/wagon-ftp/1.0-alpha-6/wagon-ftp-1.0-alpha-6.jar


  



--
- Joakim Erdfelt
 [EMAIL PROTECTED]
 Open Source Software (OSS) Developer



RE: Code Obfuscator

2007-08-06 Thread John Coleman
This might do...

http://mail-archives.apache.org/mod_mbox/maven-users/200701.mbox/%3C6473
[EMAIL PROTECTED]

-Original Message-
From: Vihung Marathe [mailto:[EMAIL PROTECTED] 
Sent: 06 August 2007 14:25
To: users@maven.apache.org
Subject: Code Obfuscator

Does anyone know of a code obfuscator [commercial or otherwise] plugin
that can be incorporated into a Maven build? It seems to make sense to
do this as part of a release (obviously, for a non-open-source
enterprise app).

-- Vihung
_

This e-mail may contain confidential information and/or copyright
material. This e-mail is intended for the use of the addressee only. Any
unauthorised use may be unlawful.

If you receive this e-mail by mistake please advise the sender
immediately by using the reply facility in your e-mail software.

The Friends Provident group of companies includes these Friends
Provident plc subsidiary companies:

Friends Provident Life and Pensions Limited. Registered number 4096141.
Friends Provident Life Assurance Limited. Registered number 782698.
Friends Provident Pensions Limited. Registered number 475201.
Friends Provident Marketing Limited. Registered number 5059179.

Each of the above subsidiary companies is authorised and regulated by
the Financial Services Authority.

Friends Provident Management Services Limited. Registered number 983330

The ultimate holding company is Friends Provident plc. Registered number
4113107.

All are incorporated companies limited by shares and registered in
England.
Registered and Head Office: Pixham End, Dorking, Surrey RH4 1QA.

www.friendsprovident.com

_

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


Eurobase International Limited and its subsidiaries (Eurobase) are unable to 
exercise control over the content of information in E-Mails. Any views and 
opinions expressed may be personal to the sender and are not necessarily those 
of Eurobase. Eurobase will not enter into any contractual obligations in 
respect of any part of its business in any E-mail. 

Privileged / confidential information may be contained in this message and /or 
any attachments. This E-mail is intended for the use of the addressee(s) only 
and may contain confidential information. If you are not the / an intended 
recipient, you are hereby notified that any use or dissemination of this 
communication is strictly prohibited.  If you receive this transmission in 
error, please notify us immediately, and then delete this E-mail. 

Neither the sender nor Eurobase accepts any liability whatsoever for any 
defects of any kind either in or arising from this E-mail transmission. E-Mail 
transmission cannot be guaranteed to be secure or error-free, as messages can 
be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or 
incomplete. Eurobase does not accept any responsibility for viruses and it is 
your responsibility to scan any attachments.

Eurobase Systems Limited is the main trading company in the Eurobase 
International Group; registered in England and Wales as company number 
02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex 
CM2 0RE, UK.


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



tools to install dev environment

2007-08-06 Thread lmk

hello,

my quation is not directly related to maven, but, i dont found the
appropriate forum..it's about automatic setup for all developpement tools,
like maven, eclipse, web server..setting environement variables...
im looking for a quick manner to install all  frameworks for developpers.
like an exe file..

thanks.



-- 
View this message in context: 
http://www.nabble.com/tools-to-install-dev-environment-tf4224374s177.html#a12017002
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Newbie: Failed pre-download policies

2007-08-06 Thread Antonio Parolini

Hello,

I'm trying to configure archiva following the getting started doc, but I
cannot get Archiva to cache the central repo. When I ask for this url:

http://znjupiter:8080/archiva/repository/internal/org/apache/maven/wagon/wagon-ftp/1.0-alpha-6/wagon-ftp-1.0-alpha-6.jar

I see the following log in archiva. What this "Failed pre-download policies"
error message is about  ?

Thanks ,

toni

14184735 [SocketListener0-0] DEBUG
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  -
Attempting connector: ProxyConnector[
 
source:ArchivaRepository[internal,file:/home/Jboss/jbossadm/archiva/repositories/internal/]
  target:ArchivaRepository[central,http://repo1.maven.org/maven2]
  proxyId:
  policy[releases]:once
  policy[checksum]:fix
  policy[snapshots]:disabled
  policy[cache-failures]:cache
]
14184737 [SocketListener0-0] DEBUG
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Using
target repository: central - layout: default - targetPath:
org/apache/maven/wagon/wagon-ftp/1.0-alpha-6/wagon-ftp-1.0-alpha-6.jar
14184737 [SocketListener0-0] DEBUG
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Applying
[releases] policy with [once]
14184738 [SocketListener0-0] DEBUG
org.apache.maven.archiva.policies.PreDownloadPolicy:releases  - OK to update
releases, local file does not exist.
14184739 [SocketListener0-0] DEBUG
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Applying
[snapshots] policy with [disabled]
14184739 [SocketListener0-0] DEBUG
org.apache.maven.archiva.policies.PreDownloadPolicy:snapshots  - OK to
update, snapshot policy does not apply for non-snapshot versions.
14184739 [SocketListener0-0] DEBUG
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Applying
[cache-failures] policy with [cache]
14184740 [SocketListener0-0] ERROR
org.apache.maven.archiva.policies.PreDownloadPolicy:cache-failures  -
Unknown checksum policyCode [cache]
14184740 [SocketListener0-0] DEBUG
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Didn't
pass the [cache-failures] policy.
14184740 [SocketListener0-0] INFO 
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Failed
pre-download policies -
/home/Jboss/jbossadm/archiva/repositories/internal/org/apache/maven/wagon/wagon-ftp/1.0-alpha-6/wagon-ftp-1.0-alpha-6.jar


-- 
View this message in context: 
http://www.nabble.com/Newbie%3A-Failed-pre-download-policies-tf4224243.html#a12016579
Sent from the archiva-users mailing list archive at Nabble.com.



Code Obfuscator

2007-08-06 Thread Vihung Marathe
Does anyone know of a code obfuscator [commercial or otherwise] plugin
that can be incorporated into a Maven build? It seems to make sense to
do this as part of a release (obviously, for a non-open-source
enterprise app).

-- Vihung
_

This e-mail may contain confidential information and/or copyright material. 
This e-mail is intended for the use of the addressee only. Any unauthorised use 
may be unlawful.

If you receive this e-mail by mistake please advise the sender immediately by 
using the reply facility in your e-mail software.

The Friends Provident group of companies includes these Friends Provident plc 
subsidiary companies:

Friends Provident Life and Pensions Limited. Registered number 4096141.
Friends Provident Life Assurance Limited. Registered number 782698.
Friends Provident Pensions Limited. Registered number 475201.
Friends Provident Marketing Limited. Registered number 5059179.

Each of the above subsidiary companies is authorised and regulated by the 
Financial Services Authority.

Friends Provident Management Services Limited. Registered number 983330

The ultimate holding company is Friends Provident plc. Registered number 
4113107.

All are incorporated companies limited by shares and registered in England.
Registered and Head Office: Pixham End, Dorking, Surrey RH4 1QA.

www.friendsprovident.com

_

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



Re: Continuum does not run Schduled Builds

2007-08-06 Thread Emmanuel Venisse

We have a bug in 1.0.3 about more than one scheduled build.
If you want, you can try Continuum 1.1-beta-1, the bug is fixed.

Emmanuel

Mac-Systems a écrit :

Anyone can help on this Issue ?
Someone running more than one Build ?

I am using version 1.0.3.


regards,
Jens
I have 3 Projects running with Continuum. Two of them are Branches. 
Actually i

use onyl the Default Schedule (build each hour once).
Only the Project which was first Configured in Continuum is build 
Automaticly.
If i commit to a Branch Continuum should build at least after apx. one 
hour, but nothing happens..



If i force the Build via the "Build Now" Button i see after the build 
succeed the change log. So It seem i have configured

all right.

Anyone can help me ?

regards,
Jens













Need Help :: POM files get Corrupted while downloading from local repository

2007-08-06 Thread AjeetSK


All,
I am trying to download dependencies and plugins from my own remote
repository and while downloading few files get corrupted. Moreover, the
goals don't get executed.
 
D:\beta-AWM\awm\resource>mvn generate-sources
[INFO] Scanning for projects...
[INFO]

[INFO] Building Unnamed - awm:awm-pojo:jar:7.0
[INFO]task-segment: [generate-sources]
[INFO]

[WARNING] POM for 'org.codehaus.plexus:plexus-utils:pom:1.0.4:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a
v4.0.0 POM.
[WARNING] POM for
'org.codehaus.plexus:plexus-compiler-api:pom:1.5.1:runtime' is invalid. It
will be ignored for artifact resolution. Reason:
 Not a v4.0.0 POM.
[WARNING] POM for 'net.java.dev.javacc:javacc:pom:4.0:runtime' is invalid.
It will be ignored for artifact resolution. Reason: Not a v4.0.0 P
OM.
[WARNING] POM for 'org.apache.maven:maven-project:pom:2.0:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v4.0
.0 POM.
[WARNING] POM for 'org.apache.maven:maven-plugin-api:pom:2.0:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v
4.0.0 POM.
-
this realm = app0.child-container[org.codehaus.mojo:javacc-maven-plugin]
urls[0] =
file:/D:/Perforce_data/3rd_party/org/codehaus/mojo/javacc-maven-plugin/2.1/javacc-maven-plugin-2.1.jar
urls[1] =
file:/D:/Perforce_data/3rd_party/org/codehaus/plexus/plexus-compiler-api/1.5.1/plexus-compiler-api-1.5.1.jar
urls[2] =
file:/D:/Perforce_data/3rd_party/net/java/dev/javacc/javacc/4.0/javacc-4.0.jar
Number of imports: 0

this realm = plexus.core
urls[0] = file:/C:/Program Files/Apache
Group/maven-2.0.5/bin/../core/plexus-container-default-1.0-alpha-9.jar
urls[1] = file:/C:/Program Files/Apache
Group/maven-2.0.5/bin/../core/plexus-utils-1.1.jar
Number of imports: 0
-
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Internal error in the plugin manager executing goal
'org.codehaus.mojo:javacc-maven-plugin:2.1:javacc': Unable to find the mojo
'org.c
odehaus.mojo:javacc-maven-plugin:2.1:javacc' in the plugin
'org.codehaus.mojo:javacc-maven-plugin'
org/codehaus/plexus/compiler/util/scan/InclusionScanException
[INFO]

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

[INFO] Total time: 1 second
[INFO] Finished at: Mon Aug 06 15:18:16 IST 2007
[INFO] Final Memory: 1M/4M
[INFO]


Please help me out.

Thanks,
Ajeet
-- 
View this message in context: 
http://www.nabble.com/Need-Help-%3A%3A-POM-files-get-Corrupted-while-downloading-from-local-repository-tf4223736s177.html#a12015082
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Parent POM, properties and scm problem

2007-08-06 Thread Jörg Schaible
Oscar Picasso wrote on Wednesday, August 01, 2007 7:31 PM:

> The current Maven behaviour is fine for multimodule projects.
> 
> However I am trying to write a organizational POM that all my projets
> would inherited and wanted to avoid duplication of the scm section.
> 
> So in case of independent projects it does not make sense to put all
> them inside the same trunk.
> 
> I guess currently I cannot avoid this duplication.

Not really, and there's a simple reason: You cannot assume that everyone keeps 
his "organizational POM" in the root of all the projects. Our "organizational 
POM" has SCM URL entries that are used to release the "organizational POM" 
itself. It does not even make sense to inherit them.

However, you may use properties to define the SCM URLs as we do:


scm|svn|${my.svn.root}${my.svn.tagBase}/trunk

scm|svn|${my.svn.root}${my.svn.tagBase}/trunk
${my.svn.view}${my.svn.tagBase}/trunk


while "my.svn.root" and "my.svn.view" are properties that are defined in the 
"organizational POM" and "my.svn.tagBase" is defined in the POM of the project 
root (in case of a multi-module project). But keep in mind, that the 
release-plugin will rewrite the URLs after the first release, so there are no 
properties in the URL anymore anyway. So the whole definition is only useful as 
template for new POMs.

- Jörg

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



Need Help :: Local Repository Gets Corrupted

2007-08-06 Thread AjeetSK

All,
I am trying to download dependencies and plugins from my own remote
repository and while downloading few files get corrupted. Moreover, the
goals don't get executed.
 
D:\beta-AWM\awm\resource>mvn generate-sources
[INFO] Scanning for projects...
[INFO]

[INFO] Building Unnamed - awm:awm-pojo:jar:7.0
[INFO]task-segment: [generate-sources]
[INFO]

[WARNING] POM for 'org.codehaus.plexus:plexus-utils:pom:1.0.4:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a
v4.0.0 POM.
[WARNING] POM for
'org.codehaus.plexus:plexus-compiler-api:pom:1.5.1:runtime' is invalid. It
will be ignored for artifact resolution. Reason:
 Not a v4.0.0 POM.
[WARNING] POM for 'net.java.dev.javacc:javacc:pom:4.0:runtime' is invalid.
It will be ignored for artifact resolution. Reason: Not a v4.0.0 P
OM.
[WARNING] POM for 'org.apache.maven:maven-project:pom:2.0:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v4.0
.0 POM.
[WARNING] POM for 'org.apache.maven:maven-plugin-api:pom:2.0:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v
4.0.0 POM.
-
this realm = app0.child-container[org.codehaus.mojo:javacc-maven-plugin]
urls[0] =
file:/D:/Perforce_data/3rd_party/org/codehaus/mojo/javacc-maven-plugin/2.1/javacc-maven-plugin-2.1.jar
urls[1] =
file:/D:/Perforce_data/3rd_party/org/codehaus/plexus/plexus-compiler-api/1.5.1/plexus-compiler-api-1.5.1.jar
urls[2] =
file:/D:/Perforce_data/3rd_party/net/java/dev/javacc/javacc/4.0/javacc-4.0.jar
Number of imports: 0

this realm = plexus.core
urls[0] = file:/C:/Program Files/Apache
Group/maven-2.0.5/bin/../core/plexus-container-default-1.0-alpha-9.jar
urls[1] = file:/C:/Program Files/Apache
Group/maven-2.0.5/bin/../core/plexus-utils-1.1.jar
Number of imports: 0
-
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Internal error in the plugin manager executing goal
'org.codehaus.mojo:javacc-maven-plugin:2.1:javacc': Unable to find the mojo
'org.c
odehaus.mojo:javacc-maven-plugin:2.1:javacc' in the plugin
'org.codehaus.mojo:javacc-maven-plugin'
org/codehaus/plexus/compiler/util/scan/InclusionScanException
[INFO]

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

[INFO] Total time: 1 second
[INFO] Finished at: Mon Aug 06 15:18:16 IST 2007
[INFO] Final Memory: 1M/4M
[INFO]


Please help me out.

Thanks,
Ajeet
-- 
View this message in context: 
http://www.nabble.com/how-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a12013570
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: [m2] How to make Cobertura coverage ignore private Constructors?

2007-08-06 Thread James Abley
On 02/08/07, Mick Knutson <[EMAIL PROTECTED]> wrote:
> I keep getting line not tested for private constructors. How do I ignore
> this?
>

Try asking on a Cobertura mailing list?

> --
>
> Thanks,
> Mick Knutson
>
> http://www.baselogic.com
> http://www.blincmagazine.com
> http://www.djmick.com
> http://www.myspace.com/mickknutson
> http://www.myspace.com/djmick_dot_com
> http://www.myspace.com/sexybeotches
> http://www.thumpradio.com
> ---
>

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



RE: Auto incrementing a build identifier

2007-08-06 Thread John Coleman
That certainly gets my vote - just last week I was thinking it might be
handy to incorporate the subversion revision number in the artefact
name.

John

-Original Message-
From: Antony Stubbs [mailto:[EMAIL PROTECTED] 
Sent: 05 August 2007 11:42
To: users@maven.apache.org
Subject: RE: Auto incrementing a build identifier


That's exactly what M2 needs - would you consider releasing your mojo?
I'd
love to try using.
IMO this should be apart of the m2 deploy goal.

The problem with Mavin buildnumber plugin, is that it isn't synced with
the
build number repository.


Artamonov, Juri wrote:
> 
>>The thing is that I don't want to generate "new" builds during
> development, overwriting the current snapshot is preferred. But when
> processing a project which will be "publicly" available, I want to be
> able to identify it >(even a snapshot) with an incremented build
number,
> but without having to manage the version setting by hand.
> 
> IMHO, this is (I mean let's say snapshot numbering) not yet covered
well
> in m2.
> 
> I have requirement also for myself to distunguish two snapshot builds
> and here is what I did...
> 
> 1. I use maestro stuff with continuum and m2. When I do install I have
> files like 1.0-SNPASHOT- in repository. BUILD_NUMBER is
> always inrementing on 1 when new version is installed into repository.
> 2. I wrote the plugin which get latest BUILD_NUMBER from repository
and
> do +1 during for example compile phase. Now I know what build version
is
> going to be and I put this information into manifest file or war file
or
> for example jar file. Now I have information inside of the archive
that
> allows me to distinguish two snapshot versions.
> 
> Also you can use
> http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/ plugin
but
> seems having it working requires a lot of manual work, due missing
> versions on the repositories of the components listed in the
> dependencies.
> 
> Best regards,
>   Juri.
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Friday, September 22, 2006 8:30 PM
> To: users@maven.apache.org
> Subject: Auto incrementing a build identifier
> 
> 
> A question about version numbering in Subversion.
> 
> I am aware of the way subversion handles version information while
> releasing. As I have peeked overhere in the Maven repository:
> 
>
https://svn.apache.org/repos/asf/maven/plugins/tags/maven-release-plugin
>
-2.0-beta-4/src/main/java/org/apache/maven/plugins/release/versions/Defa
> ultVersionInfo.java
> 
> Now I am wondering about something. My current contract would like a
> build increment value in between two brackets. Which auto increases
with
> each build delivered to production. I'd say that hooking into the
deploy
> phase would be a good time for such actions. But then I figure that it
> isn't.
> 
> I'd say the initialize phase is the correct one. Since I am not
> processing resources or sources but the POM.xml. The thing is this,
can
> I modify the POM then and there and keep the build going or do I need
to
> modify the POM. And let the user start another run, just like the
> release plugin does?
> 
> Also, is it possible (by documented API or acceptable convention) to
> detect whether or not a build is running up to or past the deploy
phase?
> 
> The thing is that I don't want to generate "new" builds during
> development, overwriting the current snapshot is preferred. But when
> processing a project which will be "publicly" available, I want to be
> able to identify it (even a snapshot) with an incremented build
number,
> but without having to manage the version setting by hand.
> 
> Any suggestions are greatly apreciated.
> 
> Kind regards,
> Jeroen Leenarts
> http://blog.leenarts.net
> 
> Download this as a file
> 
> 
> -
> 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]
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/Auto-incrementing-a-build-identifier-tf2319084s177
.html#a12003652
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Eurobase International Limited and its subsidiaries (Eurobase) are unable to 
exercise control over the content of information in E-Mails. Any views and 
opinions expressed may be personal to the sender and are not necessarily those 
of Eurobase. Eurobase will not enter into any contractual obligations in 
respect of any part of its business in any E-mail. 

Privileged / confidential information may be contained in this message and /or 
any attachments. This E-mail

RE: eclipse-plugin generates weird classpath entries

2007-08-06 Thread Jörg Schaible
[EMAIL PROTECTED] wrote on Monday, August 06, 2007 9:15 AM:

> Quoting Klaus Botschen <[EMAIL PROTECTED]>:
> 
>> i can't find the reason why i get such strange entries in the
>> classpath file: 
>> 
>>  > path="M2_REPOant/ant-optional/1.5.1/ant-optional-1.5.1.jar"/>
>>   path="M2_REPOantlr/antlr/2.7.6/antlr-2.7.6.jar"/>
>>  > path="M2_REPOaopalliance/aopalliance/1.0/aopalliance-1.0.jar"/> 
>> > path="M2_REPOasm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar"/> 
> Hello Klaus,
> classpath entries similar to those mentioned above are created by
> "maven eclipse:eclipse", the Maven dependencies are mirrored into the
> corresponding  elements.  However, you need to
> define the classpath variable "M2_REPO" in the Eclipse Build
> preferences, and also in the Eclipse Maven preferences. Both values
> should 
> point to your
> local Maven repository (normally located in the hidden directory
> ".m2/repository" in your home directory).

No, they are weird, because a slash is missing after M2_REPO:



vs.



However, I've never seen the eclipse plugin generating wrong paths like this.

- Jörg

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



Re: eclipse-plugin generates weird classpath entries

2007-08-06 Thread harald . meyer

Quoting Klaus Botschen <[EMAIL PROTECTED]>:


i can't find the reason why i get such strange entries in the classpath file:

 path="M2_REPOant/ant-optional/1.5.1/ant-optional-1.5.1.jar"/>

 
 path="M2_REPOaopalliance/aopalliance/1.0/aopalliance-1.0.jar"/>
 path="M2_REPOasm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar"/>

Hello Klaus,
classpath entries similar to those mentioned above are created by
"maven eclipse:eclipse", the Maven dependencies are mirrored into the
corresponding  elements.  However, you need to
define the classpath variable "M2_REPO" in the Eclipse Build preferences, and
also in the Eclipse Maven preferences. Both values should point to your
local Maven repository (normally located in the hidden directory 
".m2/repository" in your home directory).

Greetings, Harald



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



Re: [JETTY PLUGIN]

2007-08-06 Thread Jan Torben Heuer
On Friday 03 August 2007 17:05:50 Craig Ching wrote:

Hallo,


> Maybe I'm wrong about this, but I don't think there would be a way to set
> those in the pom as the jetty plugin runs inside the same JVM that maven
> runs in and I don't know of a way to set those after the JVM has been
> created.  I think you're going to need to find a way (maybe using
> MAVEN_OPTS as you've tried, but I don't know much about that) to invoke the
> java command with your settings.

the xmlbeans:xmlbeans plugin starts another VM and allows to set some memory 
parameters in the pom. Maybe you can steal the relevant parts of the code and 
create a patch for the JETTY Plugin.

Jan
-- 
Jan Torben HeuerInstitute for Geoinformatics
[EMAIL PROTECTED]   Robert-Koch-Strasse 26-28
+49 251 83-3196048151 Münster, Germany


pgppsrYN2hmXs.pgp
Description: PGP signature


Re: 1.1-alpha-beta questions

2007-08-06 Thread Eric Masliah

If I have well understood :

The "fresh build" option is to checkout the scm every time you build 
(not just a up).


The "release" option is to make a release with a beautiful windows.

The order is not a bug. It is because you don't' have make recursive 
project then the parent pom don't build his children.
I think that if you want build in the order, you must have dependencies 
in your project with the project you want to build before.


For the tools.java, I had the same problem but i don't remember me when 
I fix it.



Sorry for my english.

Eric Masliah


[EMAIL PROTECTED]
Laboratoire d'Informatique de Paris 6 (Lip6) / MoVe
104 Avenue de Président Kennedy - 75016 Paris




Morgovsky, Alexander (US - Glen Mills) a écrit :

Hello.  I have worked with 1.0.3 for some time, and after moving to the
newer versions, I have some questions.

What is the "fresh build" option?  


What is the "release" option?

I was successfully able to install 1.1-alpha-1, and I saw an issue where
I tried to build the group with all the modules, the modules were not
built according to the order defined in the parent POM.  Is this issue
fixed in 1.1-beta-1?

I tried installing 1.1-beta-1, but the service could not find tools.jar
in the Java 1.5 version 12 installation.  Which version of Java 1.5
should I install for 1.1-beta-1?

Many thanks for the assistance. 



This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law.  If you are not the intended recipient, you should delete this message. 



Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]

  


Continuum doesn't recognize maven build failures

2007-08-06 Thread Christian Wieland (open4business GmbH)
Hi,

 

we're using continuum 1.0.3 with maven 2.0.7 on windows 2003 server.

 

When a maven build fails like this:

[INFO] Scanning for projects...

[INFO] 


[INFO] Building example4business004

[INFO]task-segment: [clean, install]

[INFO] 


[INFO] [clean:clean]

[INFO] Deleting directory C:\Data\cont\wcs\6\target

[INFO] Deleting directory C:\Data\cont\wcs\6\target\classes

[INFO] Deleting directory C:\Data\cont\wcs\6\target\test-classes

[INFO] Deleting directory C:\Data\cont\wcs\6\target\site

[INFO] [resources:resources]

[INFO] Using default encoding to copy filtered resources.

Downloading: http://files07/maven_repo//com/sun/ldapbp/1.0/ldapbp-1.0.pom

Downloading: http://repo1.maven.org/maven2/com/sun/ldapbp/1.0/ldapbp-1.0.pom

Downloading: http://files07/maven_repo//com/inet/tds/1.0/tds-1.0.pom

Downloading: http://repo1.maven.org/maven2/com/inet/tds/1.0/tds-1.0.pom

Downloading: http://files07/maven_repo//com/oracle/ojdbc12/8.1/ojdbc12-8.1.pom

Downloading: 
http://repo1.maven.org/maven2/com/oracle/ojdbc12/8.1/ojdbc12-8.1.pom

[INFO] [compiler:compile]

[INFO] Compiling 281 source files to C:\Data\cont\wcs\6\target\classes

[INFO] 

[ERROR] BUILD FAILURE

[INFO] 

[INFO] Compilation failure

C:\Data\cont\wcs\6\src\main\java\net\o4b\example4business004\tests\CarData.java:[15,42]
 cannot resolve symbol

symbol  : variable carsType 

location: class net.o4b.example4business004.tests.CarData

 

 

 

C:\Data\cont\wcs\6\src\main\java\net\o4b\example4business004\tests\CarData.java:[15,42]
 cannot resolve symbol

symbol  : variable carsType 

location: class net.o4b.example4business004.tests.CarData

 

 

[INFO] 

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

[INFO] 

[INFO] Total time: 8 seconds

[INFO] Finished at: Fri Aug 03 16:16:17 CEST 2007

[INFO] Final Memory: 8M/26M

[INFO] 

 

 

the state oft he continuum project still "Success"(green) is, so the build 
error isn't recognized by continuum an we don't get mails that the build failed.

Is this an expected behaviour or a bug?

 

Mit freundlichen Gruessen / with kind regards

Christian Wieland

--
open4business GmbH
Müllerstrasse 12 D
88045 Friedrichshafen
Tel: +49 7541 6047-312
Fax: +49 7541 6047-321
Web: www.open4business.de
-- 
open4business GmbH | Sitz: 88045 Friedrichshafen | Geschäftsführer: Michael De 
Stefano | Handelsregister: Amtsgericht Ulm HRB 631779 | Steuernummer: 61021/ 
07979 | UstIdNr: DE210629558



[ANN] hibernate3-maven-plugin 1.0-alpha-2

2007-08-06 Thread Johann Reyes
Hello everyone

We are pleased to announce the release of the Hibernate3 Maven Plugin
version 1.0-alpha-2

 * * *

This release includes a few significants bits...

 * Fixed hbmtemplate goal.
 * Fixed issue with log4j.
 * Fixed issue with multimodule projects

Some other minor bits, like improved support for mojo implementations and a
few bugs fixed too.

Site is here:

 http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/

See the change log for the full list of changes:


http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=true&pid=11215&fixfor=13642

Regards

Johann Reyes


eclipse-plugin generates weird classpath entries

2007-08-06 Thread Klaus Botschen
hi,

i can't find the reason why i get such strange entries in the classpath file:

  
  
  
  


> mvn --version
Maven version: 2.0.7
Java version: 1.5.0_12
OS name: "linux" version: "2.6.18.8-0.5-bigsmp" arch: "i386"

> echo $M2_REPO
/home/klaus/ws/m2repo


Has anybody an idea where I can fix this?
Greetings from Vienna, Austria
Klaus
:)

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



two questions about maven

2007-08-06 Thread wangq/Wang Qiang\(IT\)
Dear Sirs

I'm maven's new user.

There are some questions I want to ask you. Can you help me

1 ) how can maven scm checkout two different directories into another two 
target directory. For Example, in cvs , I have two directories : /source/main , 
/source/test. I want to checkout them into /src/main/java and /src/test/java 
respectively (because this is maven default directory).  I don't want to use 
command line. but I don't know how to config in the POM.xml. Can you give me an 
example?

 

2 ) I want to use  and  element to filter the .project file 
and bin directory. I only want to check out *.java file . In POM ,I configure 
as follows:



 

 check-out1

 generate-sources

 

   checkout

 

 

developerConnection
 


${project.basedir}/src

*.java

.project, bin



 

 

but the .project file and bin directory are still checked out . what's wrong

 

 

Thanks a lot for  you help.

 

qiang wang




DISCLAIMER:
This e-mail is confidential for COSCO CONTAINER LINES (COSCON) and may also be 
privileged. Any unauthorized use, copying, or dissemination of it and any 
attachments to it, is prohibited. If you have received this e-mail in error, 
please delete it immediately, unread and notify the sender as soon as possible. 
COSCON does not warrant this email is virus-free and is not liable for any 
losses or responsibilities arising from any virus being transmitted by this 
email. Internet communications are not secure and COSCON does not accept legal 
responsibility for the contents of this message.


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



Re: Parent POM, properties and scm problem

2007-08-06 Thread Jared Bunting
I'm also experiencing this problem.  As discussed here (under Inheritance v.
Aggregation):

http://www.propellors.net/maven/site/pom.html#POM%20Relationships

it appears to make sense in what is called the "aggregation" use case, but
not in the "inheritance" use case.  I'm wondering if there's some way to
simply disable this functionality (maybe setting a property?  don't know...)
to get these url elements to inherit as one would expect - "as is".

If this functionality isn't currently available, and somebody could point me
to the appropriate code, I would be happy to try and write a patch for it...

Thanks,
Jared


Oscar Picasso
> Thu, 02 Aug 2007 06:31:58 -0700
>
> That's exactly what I am doing.
>
> And it works fine except for the problem that I mention in this thread of
> the project artifactId being added to some urls like the scmConnection.
>
> On 8/1/07, Bryan Loofbourrow <[EMAIL PROTECTED]> wrote:
> >
> > I'm wondering if the following would work:
> >
> > - Make your organizational pom project. Don't define any  entries
> > in
> > it.
> > - Have all of your projects depend on it as a parent
> > - Build and install your organizational pom to a central repository
> > accessible to all of your projects.
> >
> > I'm thinking that you can then independently build and deploy your
> > organizational pom by itself, and have your projects use it, from the
> > repository, as a parent for definition purposes, though not build
> > purposes.
> >
> > I'd be interested to know whether this works. It seems useful.
> >
> > -- Bryan
> >
> > -Original Message-
> > From: Oscar Picasso [EMAIL PROTECTED]
> > Sent: Wednesday, August 01, 2007 10:31 AM
> > To: Maven Users List
> > Subject: Re: Parent POM, properties and scm problem
> >
> > The current Maven behaviour is fine for multimodule projects.
> >
> > However I am trying to write a organizational POM that all my projets
> > would
> > inherited and wanted to avoid duplication of the scm section.
> >
> > So in case of independent projects it does not make sense to put all them
> > inside the same trunk.
> >
> > I guess currently I cannot avoid this duplication.
> >
> > On 7/31/07, Eric Redmond <[EMAIL PROTECTED]> wrote:
> > >
> > > Maven does this so that child module's scm can be defined once in the
> > > parent.
> > >
> > > 
> > >   scm:svn:https://url/project/trunk
> > > 
> > >
> > > 
> > >   Child
> > >
> > > Then the Child module's scm url is automatically set as:
> > >
> > > 
> > >   scm:svn:https://url/project/trunk/Child
> > > 
> > >
> > > Which is the convention for a multi-module project.
> > >
> > > If your "Child" project has to be seperate, with it's own trunk, etc. I
> > > would suggest (if svn) using svn:externals to access the child under the
> > > parent project. Since it ownly appends the name on a multi-module
> > project,
> > > I'm trying to figure out how you locally check out your project...
> > perhaps
> > > create a "trunks"-style setup in your version control would be best?
> > >
> > > Eric
> > >
> > > On 7/30/07, Oscar Picasso <[EMAIL PROTECTED]> wrote:
> > > >
> > > > I have also noticed the same behavior with the project url, the sit
> > url
> > > > and
> > > > the scm url even if in the effective the corresponding properties are
> > > > correct (without the artifactId appended).
> > > >
> > > > On 7/30/07, Oscar Picasso <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Hi,
> > > > >
> > > > > In the parent POM I have the following:
> > > > > [...]
> > > > >   
> > > > > 
> > > > http://localhost/repos/repo/${groupId}/${artifactId}/trunk 
> > > > 
> > > > > 
> > > > > 
> > > > >   
> > > > >
> > > > >
> > > > >   
> > > > > ${scmConnection}
> > > > > ${scmConnection}
> > > > >   
> > > > > [...]
> > > > >
> > > > > The child POM has nothing expect mandatory elements and the
> > reference
> > > to
> > > > > the parent POM. Both the child and the parent are snapshots. The
> > > parent
> > > > POM
> > > > > has been deployed to the remote repository.
> > > > >
> > > > > When I run mvn help:effective-pom on the child project, I get:
> > > > > [...]
> > > > >   
> > > > > 
> > > > http://localhost/repos/repo/com.opicasso/Child/trunk/Child
> > > > > 
> > > > > 
> > > > > http://localhost/repos/repo/com.opicasso/Child/trunk/Child
> > > > > 
> > > > >   
> > > > > [..]
> > > > >
> > > > > I would have expected:
> > > > > [...]
> > > > >   
> > > > > http://localhost/repos/repo/com.opicasso/Child/trunk
> > > > > 
> > > > > 
> > > > > http://localhost/repos/repo/com.opicasso/Child/trunk
> > > > 
> > > > >   
> > > > > [..]
> > > > >
> > > > > Why does maven happen the child artifactId to the connections? Does
> > > > maven
> > > > > merge the parent scm connections with the children ones ? But in the
> > > > current
> > > > > case the child has no scm connections defined in its pom.