Maven generate-source guide

2006-03-21 Thread Nicolas De Loof


Hello,

I'm writing a source-generator plugin (I'm trying to migrate a custom 
ant task to maven2)


I've read 
http://maven.apache.org/guides/mini/guide-generating-sources.html with 
interest, but I cannot find where the "project" variable comes from.
I'd like to take a look at antlr plugin source, but there is no 
"maven-plugins" in http://svn.apache.org/repos/asf/maven/components/trunk


Where to find this plugin ?

Nico.



This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



Re: Maven generate-source guide

2006-03-21 Thread Piéroni Raphaël
Plugins are there :
http://svn.apache.org/repos/asf/maven/plugins/trunk

2006/3/21, Nicolas De Loof <[EMAIL PROTECTED]>:
>
>
> Hello,
>
> I'm writing a source-generator plugin (I'm trying to migrate a custom
> ant task to maven2)
>
> I've read
> http://maven.apache.org/guides/mini/guide-generating-sources.html with
> interest, but I cannot find where the "project" variable comes from.
> I'd like to take a look at antlr plugin source, but there is no
> "maven-plugins" in http://svn.apache.org/repos/asf/maven/components/trunk
>
> Where to find this plugin ?
>
> Nico.
>
>
>
> This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient,  you
> are not authorized to read, print, retain, copy, disseminate,  distribute,
> or use this message or any part thereof. If you receive this  message in
> error, please notify the sender immediately and delete all  copies of this
> message.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Maven generate-source guide

2006-03-21 Thread Nicolas De Loof


OK thanks,
I've found excaclty what I was looking for !



Piéroni Raphaël a écrit :

Plugins are there :
http://svn.apache.org/repos/asf/maven/plugins/trunk

2006/3/21, Nicolas De Loof <[EMAIL PROTECTED]>:
  

Hello,

I'm writing a source-generator plugin (I'm trying to migrate a custom
ant task to maven2)

I've read
http://maven.apache.org/guides/mini/guide-generating-sources.html with
interest, but I cannot find where the "project" variable comes from.
I'd like to take a look at antlr plugin source, but there is no
"maven-plugins" in http://svn.apache.org/repos/asf/maven/components/trunk

Where to find this plugin ?

Nico.



This message contains information that may be privileged or confidential
and is the property of the Capgemini Group. It is intended only for the
person to whom it is addressed. If you are not the intended recipient,  you
are not authorized to read, print, retain, copy, disseminate,  distribute,
or use this message or any part thereof. If you receive this  message in
error, please notify the sender immediately and delete all  copies of this
message.


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





This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



[m202] Custom built plugin

2006-03-21 Thread Arnaud Bailly
Hi,
I am trying to use cobertura plugin  with maven2.0.2. I have compiled
version 1377 of the sources which AFAICT is working ok. When built and
installed locally, everything works fine. But when I deploy the
compiled plugin to a shared internal repository, things got
wrong. Installation of plugin is  OK, I have added my repository in
POM with the following XML 

 
  
  
   my-server
   http://myserver/maven2
   
true
   
   
false
   
  
 

when I do a mvn -X site, I got the following error trace :

+ Error stacktraces are turned on.
[DEBUG] Building Maven user-level plugin registry from: 
'/home/nono/.m2/plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 
'/usr/local/maven/conf/plugin-registry.xml'
[INFO] Scanning for projects...
[DEBUG] Retrieving parent-POM from the repository for project: 
proj:socle-util:jar:1.0-SNAPSHOT
[DEBUG] Skipping disabled repository central
[DEBUG] majpe-base: using locally installed snapshot
[INFO] 

[INFO] Building Socle : Utilitaires
[INFO]task-segment: [site]
[INFO] 

[DEBUG] maven-site-plugin: resolved to version 2.0-beta-4 from repository 
central
[DEBUG] Retrieving parent-POM from the repository for project: 
null:maven-site-plugin:maven-plugin:2.0-beta-4
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[DEBUG] cobertura-maven-plugin: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project: 
null:cobertura-maven-plugin:maven-plugin:2.0-SNAPSHOT
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[DEBUG] mojo-sandbox: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project: 
null:mojo-sandbox:pom:2-SNAPSHOT
[DEBUG] cobertura-maven-plugin: using locally installed snapshot
[DEBUG] maven-surefire-plugin: resolved to version 2.1.2 from repository central
[DEBUG] Retrieving parent-POM from the repository for project: 
null:maven-surefire-plugin:maven-plugin:2.1.2
[DEBUG] cobertura-maven-plugin: using locally installed snapshot
[DEBUG] maven-javadoc-plugin: resolved to version 2.0-beta-3 from repository 
central
[DEBUG] Retrieving parent-POM from the repository for project: 
null:maven-javadoc-plugin:maven-plugin:2.0-beta-3
[DEBUG] org.apache.maven.plugins:maven-javadoc-plugin:maven-plugin:2.0-beta-3 
(selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: 
null:maven-project:jar:2.0.1
[DEBUG]   org.apache.maven:maven-project:jar:2.0.1 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: 
org.apache.maven:maven-model:jar:2.0.1
[DEBUG] org.apache.maven:maven-model:jar:2.0.1 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: 
null:plexus-utils:jar:1.0.5
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.5 (selected for runtime)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: 
null:maven-profile:jar:2.0.1
[DEBUG] org.apache.maven:maven-profile:jar:2.0.1 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: 
null:plexus-container-default:jar:1.0-alpha-9
[DEBUG] Retrieving parent-POM from the repository for project: 
org.codehaus.plexus:plexus-containers:pom:1.0.3
[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9 
(selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed - nearer 
found: 1.0.5)
[DEBUG] junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9 
(selected for runtime)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed - nearer 
found: 1.0.5)
[DEBUG]   classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime)
[DEBUG]   junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.5 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: 
org.apache.maven:maven-artifact-manager:jar:2.0.1
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.1 (selected for 
runtime)
[DEBUG] Retrieving parent-POM from the repository for project: 
org.apache.maven:maven-repository-metadata:jar:2.0.1
[DEBUG]   org.apache.maven:maven-repository-metadata:jar:2.0.1 (selected 
for runtime)
[DEBUG]   org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5 
(selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed - nearer 
found: 1.0.5)
[DEBUG] Retrieving parent-POM from the repository for project: 
org.apache.maven:maven-artifact:jar:2.0.1
[DEBUG]   org.apache.maven:maven-artifact:jar:2.0.1 (selected for runtime)
[DEBUG] org.apache.maven:maven-ar

RE : [m202] Custom built plugin

2006-03-21 Thread Olivier Lamy
Hi,
I think there is a trouble (issue) concerning with mixing enabled in the
repository declaration.
Look at
http://maven.apache.org/guides/development/guide-testing-development-plu
gins.html.



Perso in my settings, I never set plugin repository enabled to false.
This workaround save me ;-)

Note I don't know the issue id concerning this.

- Olivier

-Message d'origine-
De : Arnaud Bailly [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 21 mars 2006 10:13
À : users@maven.apache.org
Objet : [m202] Custom built plugin


Hi,
I am trying to use cobertura plugin  with maven2.0.2. I have compiled
version 1377 of the sources which AFAICT is working ok. When built and
installed locally, everything works fine. But when I deploy the compiled
plugin to a shared internal repository, things got wrong. Installation
of plugin is  OK, I have added my repository in POM with the following
XML 

 
  
  
   my-server
   http://myserver/maven2
   
true
   
   
false
   
  
 

when I do a mvn -X site, I got the following error trace :

+ Error stacktraces are turned on.
[DEBUG] Building Maven user-level plugin registry from:
'/home/nono/.m2/plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'/usr/local/maven/conf/plugin-registry.xml'
[INFO] Scanning for projects...
[DEBUG] Retrieving parent-POM from the repository for project:
proj:socle-util:jar:1.0-SNAPSHOT [DEBUG] Skipping disabled repository
central [DEBUG] majpe-base: using locally installed snapshot [INFO]


[INFO] Building Socle : Utilitaires
[INFO]task-segment: [site]
[INFO]


[DEBUG] maven-site-plugin: resolved to version 2.0-beta-4 from
repository central [DEBUG] Retrieving parent-POM from the repository for
project: null:maven-site-plugin:maven-plugin:2.0-beta-4
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[DEBUG] cobertura-maven-plugin: using locally installed snapshot [DEBUG]
Retrieving parent-POM from the repository for project:
null:cobertura-maven-plugin:maven-plugin:2.0-SNAPSHOT
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[DEBUG] mojo-sandbox: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project:
null:mojo-sandbox:pom:2-SNAPSHOT [DEBUG] cobertura-maven-plugin: using
locally installed snapshot [DEBUG] maven-surefire-plugin: resolved to
version 2.1.2 from repository central [DEBUG] Retrieving parent-POM from
the repository for project:
null:maven-surefire-plugin:maven-plugin:2.1.2
[DEBUG] cobertura-maven-plugin: using locally installed snapshot [DEBUG]
maven-javadoc-plugin: resolved to version 2.0-beta-3 from repository
central [DEBUG] Retrieving parent-POM from the repository for project:
null:maven-javadoc-plugin:maven-plugin:2.0-beta-3
[DEBUG]
org.apache.maven.plugins:maven-javadoc-plugin:maven-plugin:2.0-beta-3
(selected for runtime) [DEBUG] Retrieving parent-POM from the repository
for project: null:maven-project:jar:2.0.1
[DEBUG]   org.apache.maven:maven-project:jar:2.0.1 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-model:jar:2.0.1
[DEBUG] org.apache.maven:maven-model:jar:2.0.1 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:plexus-utils:jar:1.0.5
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.5 (selected for
runtime)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-profile:jar:2.0.1
[DEBUG] org.apache.maven:maven-profile:jar:2.0.1 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:plexus-container-default:jar:1.0-alpha-9
[DEBUG] Retrieving parent-POM from the repository for project:
org.codehaus.plexus:plexus-containers:pom:1.0.3
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9 (selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed -
nearer found: 1.0.5)
[DEBUG] junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9
(selected for runtime)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed -
nearer found: 1.0.5)
[DEBUG]   classworlds:classworlds:jar:1.1-alpha-2 (selected for
runtime)
[DEBUG]   junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.5 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-artifact-manager:jar:2.0.1
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.1 (selected
for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-repository-metadata:jar:2.0.1

EAR plugin - includes tag

2006-03-21 Thread Chris Tof

It seems that the tag includes in maven-ear-plugin does not support the
comma.
Below is an extract of my pom. Neither the configuration/** files nor the
ehcache.xml file are included in my ear.

org.apache.maven.plugins
maven-ear-plugin
2.1

config\server
configuration/**,ehcache.xml

But, if I use only configuration/** or ehcache.xml then it works.

What is wrong ? Is there a patch or another way to include all my files ?

(I think I have already seen this problem with the war plugin.)

--
View this message in context: 
http://www.nabble.com/EAR-plugin---includes-tag-t1316408.html#a3509561
Sent from the Maven - Users forum at Nabble.com.


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



Re: EAR plugin - includes tag

2006-03-21 Thread Stephane Nicoll
Hey,

Checking Jira might help :)
http://jira.codehaus.org/browse/MEAR-3

It's fixed in maven ear plugin 2.2 which is not released yet.

Cheers,
Stéphane

On 3/21/06, Chris Tof <[EMAIL PROTECTED]> wrote:
>
> It seems that the tag includes in maven-ear-plugin does not support the
> comma.
> Below is an extract of my pom. Neither the configuration/** files nor the
> ehcache.xml file are included in my ear.
>
> org.apache.maven.plugins
> maven-ear-plugin
> 2.1
> 
> config\server
> configuration/**,ehcache.xml
>
> But, if I use only configuration/** or ehcache.xml then it works.
>
> What is wrong ? Is there a patch or another way to include all my files ?
>
> (I think I have already seen this problem with the war plugin.)
>
> --
> View this message in context: 
> http://www.nabble.com/EAR-plugin---includes-tag-t1316408.html#a3509561
> Sent from the Maven - Users forum at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
.::You're welcome ::.

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



Re: [m2] plugin dependency exclusions

2006-03-21 Thread Mark Hobson
On 20/03/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> The easiest way to achieve this is to just add the dependency to your
> pom with provided

I've tried this in both the plugin dependency and main dependency
blocks, but it doesn't exclude the dependency.

> You can also exclude specific files from your WAR or EAR, take a look at:
> http://jira.codehaus.org/browse/MWAR-6
> http://jira.codehaus.org/browse/MEAR-3

I'm afraid I don't see the connection with my problem and the above
issues - I'm trying to remove dependencies from the m2 runtime
classpath, not from a generated artifact.

> This has also come up previously on user@ list, if you search the
> archives, you should be able to find more discussion and some pom.xml
> examples.

I did search but couldn't find a thread detailing a similar problem. 
Has anyone got any further ideas?

Cheers,

Mark

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



Re: RE : [m202] Custom built plugin

2006-03-21 Thread Arnaud Bailly
I have got the same problem when I remove http://www.norsys.fr


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



Re: Need help with , , etc.

2006-03-21 Thread Simon Kitching
On Mon, 2006-03-20 at 09:44 -0600, Wayne Fay wrote:
> Just a tiny comment...
> 
> > > An execution is always an additional binding to the lifecycle, so it
> > > doubles up when it is already bound through the presets for the
> > > packaging. The only way to configure the presets is through the
> > > configuration element in the plugin node itself (outside of
> > > executions). Unfortunately, you only get one per plugin.
> >
> > The term "plugin node" doesn't really help me here. This is kind of
> > what I was getting at.
> 
> He is simply refering to the pom.xml  "xml node" itself. It
> contains a single  element. You may schedule several
>  elements for a given plugin, but only one 
> that applies across all executions of that plugin.

Below is another way to look at this. Note that I'm no Maven guru, so
this might not be quite 100% correct..

Quick definition:
 * A plugin is a set of classes bundled into a jar. A plugin
   implements one or more "goals" that are specific tasks.

When invoked, Maven
* defines its fixed set of "phases".
* creates a plugin representation in memory for each declared plugin
  (including the ones defined in the invisible root "super-pom").
  The object is initialised using the plugin/configuration tag.
  However the plugin/execution/* tags are ignored for now.
* executes the "packaging" logic, which creates links from
  various phases to "goals" of plugin objects. For example,
  packaging of "jar" sets up one set of phase->goal links while 
  packaging of "war" sets up a different set of mappings.
* processes the plugin/execution tags to add *extra* links
  from phases to the associated goals. Any 
  data in the execution tag overrides definitions associated
  directly with the plugin *for that link*.
* executes its phases in order. At each phase, it executes 
  the set of goals associated with the phase.

There is no way to tell "jar" packaging to NOT link the
maven-compiler-plugin's compile goal to the "compile" and "test-compile"
phases; the only way to accomplish that sort of thing is to write your
own packaging definition. In some cases you can configure the goal to
just return when invoked; that depends on the particular plugin
supporting that feature though.

What Brett's suggestion does is to configure the maven-compiler-plugin
to compile the main src but *not* the tests, by setting skip=true. The
plugin/configuration entries controls which source version is used
(1.3), resulting in *only* the main src being compiled (with 1.3)
despite there being a link from phase test-compile to the plugin
(because packaging=jar).  A separate  tag then links
maven-compile-plugin to just the compile-tests phase, and the
 within the execution is used to force source=1.5.

Note that the effect is that the test-compile phase has goal
maven-compiler-plugin:compile linked to it *twice*, once using the
plugin/configuration settings and one with the
plugin/execution/configuration settings. However the first invocation
returns immediately as skip=true. As Brett said, it's a hack. But
compiling the source with 1.3 and tests with 1.5 *is* a little unusual. 

I'd be very interested in knowing what Brett means by "fixed in svn".
Perhaps the maven-compiler-plugin has a  option now??

I hope this info is more helpful than confusing.

I also found getting my mind around Maven difficult at first; however
I'm becoming more and more impressed with it as I get used to it.
Congratulations Brett/Jason/Vincent/others, it's a very useful tool
indeed.

The maven book that's currently being created should help a lot when
it's finished; it will be freely available online:
http://mavenbook.xwiki.com/xwiki/bin/view/Main/Maven2Book

Cheers,

Simon


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



user's settings.xml not being picked up

2006-03-21 Thread Pete
Hi there I'm used to Maven2 picking up the settings.xml from

C:\Documents and Settings\\.m2

when in a windows environment, however I'm using Maven2 at a new company
now, and for some reason the user's settings.xml doesn't seem to be being
picked up.


I have


 
   developer_me
   
 D:/java/jboss-4.0/server/default/deploy
   
  
 

  
  developer_me
  

yet when I do

mvn projecthelp:active-profiles

the profile isn't listed and the properties are unset.

Any idea how I can verify where Maven2 is looking for the user's
settings.xml.

I did create the .m2 directory and settings.xml manually.

PS. The conf/settings.xml is working.


Re: user's settings.xml not being picked up

2006-03-21 Thread Christian Mouttet
Have you tried putting it in ...\.m2\conf?

Am Dienstag, 21. März 2006 11:45 schrieb Pete:
> Hi there I'm used to Maven2 picking up the settings.xml from
>
> C:\Documents and Settings\\.m2
>
> when in a windows environment, however I'm using Maven2 at a new company
> now, and for some reason the user's settings.xml doesn't seem to be being
> picked up.
>
>
> I have
>
> 
>  
>developer_me
>
>  D:/java/jboss-4.0/server/default/deploy
>
>   
>  
>
>   
>   developer_me
>   
>
> yet when I do
>
> mvn projecthelp:active-profiles
>
> the profile isn't listed and the properties are unset.
>
> Any idea how I can verify where Maven2 is looking for the user's
> settings.xml.
>
> I did create the .m2 directory and settings.xml manually.
>
> PS. The conf/settings.xml is working.
>
> **
> Diese E-Mail wurde auf Viren ueberprueft.
> [EMAIL PROTECTED]
> **


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



Re: user's settings.xml not being picked up

2006-03-21 Thread Milos Kleint
afaik teh algorithm is this:
String uh = System.getproperty("user.home");
File m2 = new File(uh, ".m2");
File settings = new File(m2, "settings.xml");

so probably maven is looking at some other place for your settings
than you expect it to..

Milos

On 3/21/06, Pete <[EMAIL PROTECTED]> wrote:
> Hi there I'm used to Maven2 picking up the settings.xml from
>
> C:\Documents and Settings\\.m2
>
> when in a windows environment, however I'm using Maven2 at a new company
> now, and for some reason the user's settings.xml doesn't seem to be being
> picked up.
>
>
> I have
>
> 
>  
>developer_me
>
>  D:/java/jboss-4.0/server/default/deploy
>
>   
>  
>
>   
>   developer_me
>   
>
> yet when I do
>
> mvn projecthelp:active-profiles
>
> the profile isn't listed and the properties are unset.
>
> Any idea how I can verify where Maven2 is looking for the user's
> settings.xml.
>
> I did create the .m2 directory and settings.xml manually.
>
> PS. The conf/settings.xml is working.
>
>

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



RE: Problem hibernate3 plugin cfg2cfgxml

2006-03-21 Thread Johann Reyes
Hello Taavi

Ahh sorry, my mistake, I run my test, but I had the a hibernate.cfg.xml
al;ready setup and didn't notice that. After doing a little more research,
the goal cfg2cfgxml is more for hbm files, since annotated classes there is
no other way around that to have it specified in a hibernate.cfg.xml file as
per

http://www.hibernate.org/hib_docs/annotations/reference/en/html_single/#setu
p-configuration

As it states there is no other way around. I'll keep looking into it to see
if I can find a workaround but for that moment I have to say that you need
to initially have a hibernate.cfg.xml file before using annotations with
hibernate.

Regards

Johann Reyes




-Original Message-
From: Taavi Sildeberg [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 21, 2006 2:27 AM
To: Johann Reyes; users@maven.apache.org
Subject: Re: Problem hibernate3 plugin cfg2cfgxml

Thank you Johann for so quick answer.

Yes a have set the ejb3 to true.
Here is my pom.xml configuration:

  
 
   
 org.apache.maven.plugins
 maven-compiler-plugin
 
   1.5
   1.5
 
   
   
 org.codehaus.mojo
 hibernate3-maven-plugin
 
   true
   
 /target/hibernatetools/hibernate.cfg.xml
   
   true
   
 target/hibernatetools/db-schema.sql
   
   
 /src/main/resources/hibernate.properties
   
 
   
 

 
   
 oracle
 jdbc
 10.2.0.1.0
   
 

   

And hibernate properties is following:

hibernate.connection.driver_class = oracle.jdbc.driver.OracleDriver
hibernate.connection.url = jdbc:oracle:thin:@localhost:1521:orcl
hibernate.connection.username = blablah
hibernate.connection.password = blablah
hibernate.dialect = org.hibernate.dialect.Oracle9Dialect


Can you suggest what else could be wrong?


Taavi


Johann Reyes wrote:
> Hello Taavi
> 
> Did you set the ejb3 parameter to true?
> 
> You can see an example here:
> 
>
https://svn.mojo.codehaus.org/mojo/trunk/mojo/mojo-sandbox/hibernate3-maven-
> plugin/src/test/project-jdk15/pom.xml
> 
> Regards
> 
> Johann Reyes
> 
> -Original Message-
> From: Taavi Sildeberg [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 20, 2006 5:30 AM
> To: Maven Users List
> Subject: Problem hibernate3 plugin cfg2cfgxml
> 
> Hello,
> 
> I have a three java files with annotations. When I try to generate the 
> hibernate.cfg.xml with maven.hibernte3.plugin, then the mapped classes 
> are never included inside hibernate.cfg.xml file. If I add them manualy 
> then hbm2ddl works fine.
> In the plugin manual is that hibernate3:cfg2cfgxml generates 
> hibernate.cfg.xml. file
> 
> Can someone suggest what I am doing wrong?
> 
> 
> Taavi
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 

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




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



Re: user's settings.xml not being picked up

2006-03-21 Thread Pete
Thanks for the suggestins guys, but still no luck :-(

1) Tried subdirectory of /conf
2) The above code snippet

   String uh = System.getProperty("user.home");
System.out.println("user.home is " + uh);
java.io.File m2 = new java.io.File(uh, ".m2");
java.io.File settings = new java.io.File(m2, "settings_test.xml");
settings.createNewFile();

user.home is \\FILESERVER\Users\

however putting the settings.xml in \\FILESERVER\Users\\.m2\ 
\.m2\
 >user.home=\\FILESERVER\Users\pthomas> next to the test
file settings_test.xml still doesn't work !

Also tried subdirectory of /conf

Any more ideas - this is normally something that just works, I must be
missing something simple here ?


On 21/03/06, Milos Kleint <[EMAIL PROTECTED]> wrote:
>
> afaik teh algorithm is this:
> String uh = System.getproperty("user.home");
> File m2 = new File(uh, ".m2");
> File settings = new File(m2, "settings.xml");
>
> so probably maven is looking at some other place for your settings
> than you expect it to..
>
> Milos
>
> On 3/21/06, Pete <[EMAIL PROTECTED]> wrote:
> > Hi there I'm used to Maven2 picking up the settings.xml from
> >
> > C:\Documents and Settings\\.m2
> >
> > when in a windows environment, however I'm using Maven2 at a new company
> > now, and for some reason the user's settings.xml doesn't seem to be
> being
> > picked up.
> >
> >
> > I have
> >
> > 
> >  
> >developer_me
> >
> >  D:/java/jboss-4.0/server/default/deploy
> >
> >   
> >  
> >
> >   
> >   developer_me
> >   
> >
> > yet when I do
> >
> > mvn projecthelp:active-profiles
> >
> > the profile isn't listed and the properties are unset.
> >
> > Any idea how I can verify where Maven2 is looking for the user's
> > settings.xml.
> >
> > I did create the .m2 directory and settings.xml manually.
> >
> > PS. The conf/settings.xml is working.
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: user's settings.xml not being picked up

2006-03-21 Thread Franz Fehringer

With the attached program you can see where Java thinks your user.home is.

Greetings

Franz


Pete schrieb:

Hi there I'm used to Maven2 picking up the settings.xml from

C:\Documents and Settings\\.m2

when in a windows environment, however I'm using Maven2 at a new company
now, and for some reason the user's settings.xml doesn't seem to be being
picked up.


I have


 
   developer_me
   
 D:/java/jboss-4.0/server/default/deploy
   
  
 

  
  developer_me
  

yet when I do

mvn projecthelp:active-profiles

the profile isn't listed and the properties are unset.

Any idea how I can verify where Maven2 is looking for the user's
settings.xml.

I did create the .m2 directory and settings.xml manually.

PS. The conf/settings.xml is working.

  


import java.util.Properties; 

public class prop 
{ 
public static void main(String argv[]) 
{ 
Properties props = System.getProperties(); 
props.list(System.out); 
} 
} 


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

[m2] Emacs mode

2006-03-21 Thread Arnaud Bailly
Hello,
There used to exist a flag in maven 1.0 for generating emacs-like
error message that could allow one to jump straight from these
messages to error location. Has it passed away silently or am I
missing something ?

Thanks,
-- 
Arnaud Bailly, Dr. - Ingénieur de Recherche 
NORSYS 
1, rue de la Cense des Raines
ZAC du Moulin
59710 ENNEVELIN
Tel : (33) 3 28 76 56 76
Mob : (33) 6 17 12 19 78
Fax : (33) 3 28 76 57 00
Web : http://www.norsys.fr


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



Maven 2 : Jalopy plugin

2006-03-21 Thread SiD
Hey,

I just installed Maven 2 from http://maven.apache.org/

I want to use the Maven Jalopy Plugin, I followed this link :
http://mojo.codehaus.org/jalopy-maven-plugin/howto.html

I tried to add, in my pom.xml :


  
 

   org.codehaus.mojo
   maven-jalopy-plugin
   1.0-SNAPSHOT

 
  



  
 

   org.codehaus.mojo
   jalopy-maven-plugin
   1.0-SNAPSHOT

 
  


But, always the same error :

D:\Documents and Settings\sid\toto>mvn site

[INFO] Scanning for projects...
[INFO] -
---
[INFO] Building Maven Quick Start Archetype
[INFO]task-segment: [site]
[INFO] -
---
[INFO] -
---
[ERROR] BUILD ERROR
[INFO] -
---
[INFO] Failed to resolve artifact.

GroupId: org.codehaus.mojo
ArtifactId: jalopy-maven-plugin
Version: 1.0-SNAPSHOT

Reason: Unable to download the artifact from any repository

  org.codehaus.mojo:jalopy-maven-plugin:pom:1.0-SNAPSHOT

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


[INFO] -
---
[INFO] For more information, run Maven with the -e switch
[INFO] -
---
[INFO] Total time: < 1 second
[INFO] Finished at: Tue Mar 21 12:26:31 CET 2006
[INFO] Final Memory: 1M/4M
[INFO] -
---


Someone can help me ?

Thanks.


Re: user's settings.xml not being picked up

2006-03-21 Thread Pete
cheers but see my recent reply, must be missing something else here.

On 21/03/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:
>
> With the attached program you can see where Java thinks your user.home is.
>
> Greetings
>
> Franz
>
>
> Pete schrieb:
> > Hi there I'm used to Maven2 picking up the settings.xml from
> >
> > C:\Documents and Settings\\.m2
> >
> > when in a windows environment, however I'm using Maven2 at a new company
> > now, and for some reason the user's settings.xml doesn't seem to be
> being
> > picked up.
> >
> >
> > I have
> >
> > 
> >  
> >developer_me
> >
> >  D:/java/jboss-4.0/server/default/deploy
> >
> >   
> >  
> >
> >   
> >   developer_me
> >   
> >
> > yet when I do
> >
> > mvn projecthelp:active-profiles
> >
> > the profile isn't listed and the properties are unset.
> >
> > Any idea how I can verify where Maven2 is looking for the user's
> > settings.xml.
> >
> > I did create the .m2 directory and settings.xml manually.
> >
> > PS. The conf/settings.xml is working.
> >
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


Re: Can This be done with Maven

2006-03-21 Thread David Delbecq
use maven multiproject
Santosh G. Gokak a écrit :

>Hi Everybody,
>
> 
>
>I have some thing I want to achieve using maven.
>
> 
>
>I have 5 Projects A, B, C, D, E.
>
> 
>
>Now, C and D depends on E. B Depends on D .A is combination of B, C, D,
>E.
>
> 
>
>Now, when the packaging of A is invoked, I would like that the latest
>available code of E is taken, compiled, tested and packaged.
>
>Then using that new E Package C and D is taken, compiled, tested and
>packaged and so on. Finally A will be the having the latest of all.
>
> 
>
>Now, Can this be achieved with Maven, if so how?
>
>If not, any work around?
>
> 
>
>Any help would be valuable
>
> 
>
>Thanks In Advance,
>
>Santosh G Gokak
>
> 
>
>MASTEK 
>"Making a valuable difference"
>Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
>In the US, we're called MAJESCOMASTEK
>
>~~
>Opinions expressed in this e-mail are those of the individual and not that of 
>Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
>does not accept any responsibility or liability for it. This e-mail and 
>attachments (if any) transmitted with it are confidential and/or privileged 
>and solely for the use of the intended person or entity to which it is 
>addressed. Any review, re-transmission, dissemination or other use of or 
>taking of any action in reliance upon this information by persons or entities 
>other than the intended recipient is prohibited. This e-mail and its 
>attachments have been scanned for the presence of computer viruses. It is the 
>responsibility of the recipient to run the virus check on e-mails and 
>attachments before opening them. If you have received this e-mail in error, 
>kindly delete this e-mail from all computers.
>~~
>
>  
>


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



Re: user's settings.xml not being picked up (BUG? more details found out )

2006-03-21 Thread Jacek Laskowski
2006/3/21, Pete <[EMAIL PROTECTED]>:

> QUESTION: How can I work around this ? e.g. Can I set the -
> Dorg.apache.maven.user-settings  as a permanent setting somehow, but
> obviously it will vary per developer. Can it be set in conf/settings.xml ?

I might be mistaken, but wouldn't settings.xml in your project do the
job? I think I've seen it in the code.

Jacek

--
Jacek Laskowski
http://www.laskowski.org.pl

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



user's settings.xml not being picked up (BUG? more details found out )

2006-03-21 Thread Pete
I'm guessing this is a bug with Maven2 that can't deal with a user's
user.home being like this

user.home=\\FILESERVER\Users\

As I have confirmed there is nothing wrong with my settings.xml, because if
I run with the -Dorg.apache.maven.user-settings e.g.

mvn projecthelp:active-profiles -Dorg.apache.maven.user-settings="C:\Documents
and Settings\\.m2\settings.xml"

all works fine.
So I'm guessing the \\FILESERVER path is giving Maven2 problems ?

QUESTION: How can I work around this ? e.g. Can I set the -
Dorg.apache.maven.user-settings  as a permanent setting somehow, but
obviously it will vary per developer. Can it be set in conf/settings.xml ?




On 21/03/06, Pete <[EMAIL PROTECTED]> wrote:
>
> cheers but see my recent reply, must be missing something else here.
>
>  On 21/03/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:
>
> > With the attached program you can see where Java thinks your user.homeis.
> >
> > Greetings
> >
> > Franz
> >
> >
> > Pete schrieb:
> > > Hi there I'm used to Maven2 picking up the settings.xml from
> > >
> > > C:\Documents and Settings\\.m2
> > >
> > > when in a windows environment, however I'm using Maven2 at a new
> > company
> > > now, and for some reason the user's settings.xml doesn't seem to be
> > being
> > > picked up.
> > >
> > >
> > > I have
> > >
> > > 
> > >  
> > >developer_me
> > >
> > >  D:/java/jboss-4.0/server/default/deploy
> > >
> > >   
> > >  
> > >
> > >   
> > >   developer_me
> > >   
> > >
> > > yet when I do
> > >
> > > mvn projecthelp:active-profiles
> > >
> > > the profile isn't listed and the properties are unset.
> > >
> > > Any idea how I can verify where Maven2 is looking for the user's
> > > settings.xml.
> > >
> > > I did create the .m2 directory and settings.xml manually.
> > >
> > > PS. The conf/settings.xml is working.
> > >
> > >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>


Re: Maven 2 : Jalopy plugin

2006-03-21 Thread Piéroni Raphaël
Hello SiD,

IIRC, you have to:
configure the repositories to point to the mojo snapshot repo (cant remember
the real address)
or checkout the plugin and build it if it was never deployed.

So check in the guides :
http://maven.apache.org/guides/mini/guide-multiple-repositories.html


  
Maven Snapshots
http://snapshots.maven.codehaus.org/maven2/

  true


  false

  


  
Maven Snapshots
http://snapshots.maven.codehaus.org/maven2/

  true


  false

  


You may also add a plugin group element in your settings. (can't
remember how - but there is some information about it in the mail list
archive)

Hope this will help

Regards

Raphaël




2006/3/21, SiD  <[EMAIL PROTECTED]>:
>
> Hey,
>
> I just installed Maven 2 from http://maven.apache.org/
>
> I want to use the Maven Jalopy Plugin, I followed this link :
> http://mojo.codehaus.org/jalopy-maven-plugin/howto.html
>
> I tried to add, in my pom.xml :
>
>
> 
>   
>  
> 
>org.codehaus.mojo
>jalopy-maven-plugin
>1.0-SNAPSHOT
> 
>  
>   
> 




This one is the correct one see
http://mojo.codehaus.org/jalopy-maven-plugin/howto.html


Re: Maven 2 : Jalopy plugin

2006-03-21 Thread SiD
Ok, it still doesn't works,

my pom.xml :

...


  junit
  junit
  3.8.1
  test

  
  

  codehaus
  Codehaus maven repository
  http://dist.codehaus.org/
  legacy


  apache-snapshots
  Apache snapshot repository
  http://cvs.apache.org/maven-snapshot-repository/
  legacy


  Maven Snapshots
  http://snapshots.maven.codehaus.org/maven2/
  
true
  
  
false
  

  
  

  Maven Snapshots
  http://snapshots.maven.codehaus.org/maven2/
  
true
  
  
false
  

  
  

  
org.codehaus.mojo
jalopy-maven-plugin
1.0-SNAPSHOT

  



Errors :

D:\Documents and Settings\sid\toto>mvn jalopy:format
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jalopy'.
[INFO] snapshot org.codehaus.mojo:jalopy-maven-plugin:1.0-SNAPSHOT: checking
for
 updates from codehaus
[INFO] snapshot org.codehaus.mojo:jalopy-maven-plugin:1.0-SNAPSHOT: checking
for
 updates from apache-snapshots
Downloading:
http://snapshots.maven.codehaus.org/maven2//org/codehaus/mojo/jalop
y-maven-plugin/1.0-SNAPSHOT/jalopy-maven-plugin-1.0-SNAPSHOT.pom
[WARNING] Unable to get resource from repository Maven Snapshots (
http://snapsho
ts.maven.codehaus.org/maven2/)
Downloading:
http://dist.codehaus.org//org.codehaus.mojo/poms/jalopy-maven-plugi
n-1.0-SNAPSHOT.pom
[WARNING] Unable to get resource from repository codehaus (
http://dist.codehaus.
org/)
Downloading:
http://cvs.apache.org/maven-snapshot-repository//org.codehaus.mojo/
poms/jalopy-maven-plugin-1.0-SNAPSHOT.pom
[WARNING] Unable to get resource from repository apache-snapshots (
http://cvs.ap
ache.org/maven-snapshot-repository/)
Downloading:
http://snapshots.maven.codehaus.org/maven2//org/codehaus/mojo/jalop
y-maven-plugin/1.0-SNAPSHOT/jalopy-maven-plugin-1.0-SNAPSHOT.pom
[WARNING] Unable to get resource from repository Maven Snapshots (
http://snapsho
ts.maven.codehaus.org/maven2/)
[INFO]
-
---
[ERROR] BUILD ERROR
[INFO]
-
---
[INFO] Failed to resolve artifact.

GroupId: org.codehaus.mojo
ArtifactId: jalopy-maven-plugin
Version: 1.0-SNAPSHOT

Reason: Unable to download the artifact from any repository

  org.codehaus.mojo:jalopy-maven-plugin:pom:1.0-SNAPSHOT

from the specified remote repositories:
  Maven Snapshots (http://snapshots.maven.codehaus.org/maven2/),
  central (http://repo1.maven.org/maven2),
  codehaus (http://dist.codehaus.org/),
  apache-snapshots (http://cvs.apache.org/maven-snapshot-repository/)


[INFO]
-
---
[INFO] For more information, run Maven with the -e switch
[INFO]
-
---
[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Mar 21 13:36:16 CET 2006
[INFO] Final Memory: 1M/2M
[INFO]
-


Is it a configuration problem or the plugin isn't on codehaus ?

I found that :
https://svn.mojo.codehaus.org/mojo/trunk/mojo/jalopy-maven-plugin/

How can i use it ?

On 3/21/06, Piéroni Raphaël <[EMAIL PROTECTED]> wrote:
>
> Hello SiD,
>
> IIRC, you have to:
> configure the repositories to point to the mojo snapshot repo (cant
> remember
> the real address)
> or checkout the plugin and build it if it was never deployed.
>
> So check in the guides :
> http://maven.apache.org/guides/mini/guide-multiple-repositories.html
>
> 
>   
> Maven Snapshots
> http://snapshots.maven.codehaus.org/maven2/
> 
>   true
> 
> 
>   false
> 
>   
> 
> 
>   
> Maven Snapshots
> http://snapshots.maven.codehaus.org/maven2/
> 
>   true
> 
> 
>   false
> 
>   
> 
>
> You may also add a plugin group element in your settings. (can't
> remember how - but there is some information about it in the mail list
> archive)
>
> Hope this will help
>
> Regards
>
> Raphaël
>
>
>
>
> 2006/3/21, SiD  < [EMAIL PROTECTED]>:
> >
> > Hey,
> >
> > I just installed Maven 2 from http://maven.apache.org/
> >
> > I want to use the Maven Jalopy Plugin, I followed this link :
> > http://mojo.codehaus.org/jalopy-maven-plugin/howto.html
> >
> > I tried to add, in my pom.xml :
> >
> >
> > 
> >   
> >  
> > 
> >org.codehaus.mojo
> >jalopy-maven-plugin
> >1.0-SNAPSHOT
> > 
> >  
> >   
> > 
>
>
>
>
> This one is the correct one see
> http://mojo.codehaus.org/jalopy-maven-plugin/howto.html
>



--
SiD  ( http://guildetourment.free.fr/


Re: user's settings.xml not being picked up

2006-03-21 Thread Milos Kleint
you can force use of a specific settings file with a command-line switch 
I think..


Milos

Pete wrote:

Thanks for the suggestins guys, but still no luck :-(

1) Tried subdirectory of /conf
2) The above code snippet

   String uh = System.getProperty("user.home");
System.out.println("user.home is " + uh);
java.io.File m2 = new java.io.File(uh, ".m2");
java.io.File settings = new java.io.File(m2, "settings_test.xml");
settings.createNewFile();

user.home is \\FILESERVER\Users\

however putting the settings.xml in \\FILESERVER\Users\\.m2\ 
\.m2\

 >user.home=\\FILESERVER\Users\pthomas> next to the test
file settings_test.xml still doesn't work !

Also tried subdirectory of /conf

Any more ideas - this is normally something that just works, I must be
missing something simple here ?


On 21/03/06, Milos Kleint <[EMAIL PROTECTED]> wrote:
  

afaik teh algorithm is this:
String uh = System.getproperty("user.home");
File m2 = new File(uh, ".m2");
File settings = new File(m2, "settings.xml");

so probably maven is looking at some other place for your settings
than you expect it to..

Milos

On 3/21/06, Pete <[EMAIL PROTECTED]> wrote:


Hi there I'm used to Maven2 picking up the settings.xml from

C:\Documents and Settings\\.m2

when in a windows environment, however I'm using Maven2 at a new company
now, and for some reason the user's settings.xml doesn't seem to be
  

being


picked up.


I have


 
   developer_me
   
 D:/java/jboss-4.0/server/default/deploy
   
  
 

  
  developer_me
  

yet when I do

mvn projecthelp:active-profiles

the profile isn't listed and the properties are unset.

Any idea how I can verify where Maven2 is looking for the user's
settings.xml.

I did create the .m2 directory and settings.xml manually.

PS. The conf/settings.xml is working.


  

-
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 2 : Jalopy plugin

2006-03-21 Thread Stefan Fritz

Teh following works for me:


   org.codehaus.mojo
   jalopy-maven-plugin
   
   
   
   
c:/dev/var/configurations/jalopy.xml

   

   
   
   format-main-src
   
   process-sources
   
   


   
   
   format
   
   
   
   


HTH
Stefan


SiD  wrote:


Hey,

I just installed Maven 2 from http://maven.apache.org/

I want to use the Maven Jalopy Plugin, I followed this link :
http://mojo.codehaus.org/jalopy-maven-plugin/howto.html

I tried to add, in my pom.xml :


 

   
  org.codehaus.mojo
  maven-jalopy-plugin
  1.0-SNAPSHOT
   

 



 

   
  org.codehaus.mojo
  jalopy-maven-plugin
  1.0-SNAPSHOT
   

 


But, always the same error :

D:\Documents and Settings\sid\toto>mvn site

[INFO] Scanning for projects...
[INFO] -
---
[INFO] Building Maven Quick Start Archetype
[INFO]task-segment: [site]
[INFO] -
---
[INFO] -
---
[ERROR] BUILD ERROR
[INFO] -
---
[INFO] Failed to resolve artifact.

GroupId: org.codehaus.mojo
ArtifactId: jalopy-maven-plugin
Version: 1.0-SNAPSHOT

Reason: Unable to download the artifact from any repository

 org.codehaus.mojo:jalopy-maven-plugin:pom:1.0-SNAPSHOT

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


[INFO] -
---
[INFO] For more information, run Maven with the -e switch
[INFO] -
---
[INFO] Total time: < 1 second
[INFO] Finished at: Tue Mar 21 12:26:31 CET 2006
[INFO] Final Memory: 1M/4M
[INFO] -
---


Someone can help me ?

Thanks.

 





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



Re: Can This be done with Maven

2006-03-21 Thread Alexandre Poitras
Easily done with Maven. You just need to create a multi-modules
project. Search this mailing list to find how because unfortunately
the documentation is not there yet and I have to go to work for the
moment :) But if you need to, I can post some informations later.

On 3/21/06, Santosh G. Gokak <[EMAIL PROTECTED]> wrote:
> Hi Everybody,
>
>
>
> I have some thing I want to achieve using maven.
>
>
>
> I have 5 Projects A, B, C, D, E.
>
>
>
> Now, C and D depends on E. B Depends on D .A is combination of B, C, D,
> E.
>
>
>
> Now, when the packaging of A is invoked, I would like that the latest
> available code of E is taken, compiled, tested and packaged.
>
> Then using that new E Package C and D is taken, compiled, tested and
> packaged and so on. Finally A will be the having the latest of all.
>
>
>
> Now, Can this be achieved with Maven, if so how?
>
> If not, any work around?
>
>
>
> Any help would be valuable
>
>
>
> Thanks In Advance,
>
> Santosh G Gokak
>
>
>
> MASTEK
> "Making a valuable difference"
> Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
> In the US, we're called MAJESCOMASTEK
>
> ~~
> Opinions expressed in this e-mail are those of the individual and not that of 
> Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
> does not accept any responsibility or liability for it. This e-mail and 
> attachments (if any) transmitted with it are confidential and/or privileged 
> and solely for the use of the intended person or entity to which it is 
> addressed. Any review, re-transmission, dissemination or other use of or 
> taking of any action in reliance upon this information by persons or entities 
> other than the intended recipient is prohibited. This e-mail and its 
> attachments have been scanned for the presence of computer viruses. It is the 
> responsibility of the recipient to run the virus check on e-mails and 
> attachments before opening them. If you have received this e-mail in error, 
> kindly delete this e-mail from all computers.
> ~~
>
>


--
Alexandre Poitras
Québec, Canada

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



Re: Can This be done with Maven

2006-03-21 Thread Geoffrey De Smet

in the parent pom (lets call it F):

E
D
C
B
A


...





X
E
${pom.version}


X
D
${pom.version}

...

E's pom.xml:


C & D's pom.xml:


X
E



B 's pom.xml:


X
D



A's pom.xml:


X
D


X
C


X
B


X
A



Santosh G. Gokak wrote:

Hi Everybody,

 


I have some thing I want to achieve using maven.

 


I have 5 Projects A, B, C, D, E.

 


Now, C and D depends on E. B Depends on D .A is combination of B, C, D,
E.

 


Now, when the packaging of A is invoked, I would like that the latest
available code of E is taken, compiled, tested and packaged.

Then using that new E Package C and D is taken, compiled, tested and
packaged and so on. Finally A will be the having the latest of all.

 


Now, Can this be achieved with Maven, if so how?

If not, any work around?

 


Any help would be valuable

 


Thanks In Advance,

Santosh G Gokak

 

MASTEK 
"Making a valuable difference"

Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
all computers.
~~



--
With kind regards,
Geoffrey De Smet


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



Re: Can This be done with Maven

2006-03-21 Thread Alexandre Poitras
Well someone beat me to the clock :)

On 3/21/06, Geoffrey De Smet <[EMAIL PROTECTED]> wrote:
> in the parent pom (lets call it F):
>
> E
> D
> C
> B
> A
> 
>
> ...
>
> 
> 
>  
>  
>  X
>  E
>  ${pom.version}
>  
>  
>  X
>  D
>  ${pom.version}
>  
>  ...
>
> E's pom.xml:
> 
>
> C & D's pom.xml:
>  
>  
>  X
>  E
>  
>  
>
> B 's pom.xml:
>  
>  
>  X
>  D
>  
>  
>
> A's pom.xml:
>  
>  
>  X
>  D
>  
>  
>  X
>  C
>  
>  
>  X
>  B
>  
>  
>  X
>  A
>  
>  
>
> Santosh G. Gokak wrote:
> > Hi Everybody,
> >
> >
> >
> > I have some thing I want to achieve using maven.
> >
> >
> >
> > I have 5 Projects A, B, C, D, E.
> >
> >
> >
> > Now, C and D depends on E. B Depends on D .A is combination of B, C, D,
> > E.
> >
> >
> >
> > Now, when the packaging of A is invoked, I would like that the latest
> > available code of E is taken, compiled, tested and packaged.
> >
> > Then using that new E Package C and D is taken, compiled, tested and
> > packaged and so on. Finally A will be the having the latest of all.
> >
> >
> >
> > Now, Can this be achieved with Maven, if so how?
> >
> > If not, any work around?
> >
> >
> >
> > Any help would be valuable
> >
> >
> >
> > Thanks In Advance,
> >
> > Santosh G Gokak
> >
> >
> >
> > MASTEK
> > "Making a valuable difference"
> > Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
> > In the US, we're called MAJESCOMASTEK
> >
> > ~~
> > Opinions expressed in this e-mail are those of the individual and not that 
> > of Mastek Limited, unless specifically indicated to that effect. Mastek 
> > Limited does not accept any responsibility or liability for it. This e-mail 
> > and attachments (if any) transmitted with it are confidential and/or 
> > privileged and solely for the use of the intended person or entity to which 
> > it is addressed. Any review, re-transmission, dissemination or other use of 
> > or taking of any action in reliance upon this information by persons or 
> > entities other than the intended recipient is prohibited. This e-mail and 
> > its attachments have been scanned for the presence of computer viruses. It 
> > is the responsibility of the recipient to run the virus check on e-mails 
> > and attachments before opening them. If you have received this e-mail in 
> > error, kindly delete this e-mail from all computers.
> > ~~
> >
>
> --
> With kind regards,
> Geoffrey De Smet
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Alexandre Poitras
Québec, Canada

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



Re: user's settings.xml not being picked up (BUG? more details found out )

2006-03-21 Thread Milos Kleint
AFAIK the settings inthe project is the profiles.xml file. Not exactly
the same structure as the settings file.

Milos

On 3/21/06, Jacek Laskowski <[EMAIL PROTECTED]> wrote:
> 2006/3/21, Pete <[EMAIL PROTECTED]>:
>
> > QUESTION: How can I work around this ? e.g. Can I set the -
> > Dorg.apache.maven.user-settings  as a permanent setting somehow, but
> > obviously it will vary per developer. Can it be set in conf/settings.xml ?
>
> I might be mistaken, but wouldn't settings.xml in your project do the
> job? I think I've seen it in the code.
>
> Jacek
>
> --
> Jacek Laskowski
> http://www.laskowski.org.pl
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



M2 assembly plugin works from wrong directory if run via Reactor

2006-03-21 Thread Pete
1) I am using  assembly:assembly  during the normal lifecycle 'package'
phase, on a Maven2 submodule's pom

with a descriptor as follows :-



 dep
 
  zip
 
 false

 
  
   target
   
   
*.ear
*.jar
   
  

  
   src/main/assembly/resources
   
   
*.xml
   

  
 


All works fine if this is executed from the submodule's pom.xml directory,
but if it is run via the reactor from parent project, then the

value for target
becomes the location relative to the parent pom (which obviously doesn't
have a target directory)

How can I make the target relative to the child project always ?

Here's the child's pom.xml part :-


 maven-assembly-plugin
 
  
   package
   

 src/main/assembly/descriptor.xml

${project.build.finalName}
   
   
assembly
   
  
 



Re: Maven 2 : Jalopy plugin

2006-03-21 Thread Piéroni Raphaël
2006/3/21, SiD  <[EMAIL PROTECTED]>:
>
> Ok, it still doesn't works,
>
> my pom.xml :


[SNIP]

I found that :
> https://svn.mojo.codehaus.org/mojo/trunk/mojo/jalopy-maven-plugin/
>
> How can i use it ?


I checked. The jalopy plugin was never released even never have deployed a
snapshot version.
So you have to checkout the source code
svn checkout
http://svn.mojo.codehaus.org/mojo/trunk/mojo/jalopy-maven-plugin/
cd 
mvn install -DupdateReleaseInfo=true

then retry with your project.

Hope this will help

Raphaël


[snip]
>


RE: Problem hibernate3 plugin cfg2cfgxml

2006-03-21 Thread Johann Reyes
Hello Taavi

Right now, hibernate-tools supports creation of hibernate.cfg.xml with
mappings automatically only with hbm.xml files. I'll check if they are
planning to support Annotations this way too, but at the moment is not
supported.

Regards

Johann Reyes

-Original Message-
From: Taavi Sildeberg [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 21, 2006 8:33 AM
To: Maven Users List
Subject: Re: Problem hibernate3 plugin cfg2cfgxml

Hey,

But is there any way to create hibernate.cfg.xml with mappings 
automatically or I really write it manually?
Maby same ant task, or other tool, preferably maven 2 :)

Taavi


Johann Reyes wrote:
> Hello Taavi
> 
> Ahh sorry, my mistake, I run my test, but I had the a hibernate.cfg.xml
> al;ready setup and didn't notice that. After doing a little more research,
> the goal cfg2cfgxml is more for hbm files, since annotated classes there
is
> no other way around that to have it specified in a hibernate.cfg.xml file
as
> per
> 
>
http://www.hibernate.org/hib_docs/annotations/reference/en/html_single/#setu
> p-configuration
> 
> As it states there is no other way around. I'll keep looking into it to
see
> if I can find a workaround but for that moment I have to say that you need
> to initially have a hibernate.cfg.xml file before using annotations with
> hibernate.
> 
> Regards
> 
> Johann Reyes
> 
> 
> 
> 
> -Original Message-
> From: Taavi Sildeberg [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 21, 2006 2:27 AM
> To: Johann Reyes; users@maven.apache.org
> Subject: Re: Problem hibernate3 plugin cfg2cfgxml
> 
> Thank you Johann for so quick answer.
> 
> Yes a have set the ejb3 to true.
> Here is my pom.xml configuration:
> 
>   
>  
>
>  org.apache.maven.plugins
>  maven-compiler-plugin
>  
>1.5
>1.5
>  
>
>
>  org.codehaus.mojo
>  hibernate3-maven-plugin
>  
>true
>
>  /target/hibernatetools/hibernate.cfg.xml
>
>true
>
>  target/hibernatetools/db-schema.sql
>
>
>  /src/main/resources/hibernate.properties
>
>  
>
>  
> 
>  
>
>  oracle
>  jdbc
>  10.2.0.1.0
>
>  
> 
>
> 
> And hibernate properties is following:
> 
> hibernate.connection.driver_class = oracle.jdbc.driver.OracleDriver
> hibernate.connection.url = jdbc:oracle:thin:@localhost:1521:orcl
> hibernate.connection.username = blablah
> hibernate.connection.password = blablah
> hibernate.dialect = org.hibernate.dialect.Oracle9Dialect
> 
> 
> Can you suggest what else could be wrong?
> 
> 
> Taavi
> 
> 
> Johann Reyes wrote:
>> Hello Taavi
>>
>> Did you set the ejb3 parameter to true?
>>
>> You can see an example here:
>>
>>
>
https://svn.mojo.codehaus.org/mojo/trunk/mojo/mojo-sandbox/hibernate3-maven-
>> plugin/src/test/project-jdk15/pom.xml
>>
>> Regards
>>
>> Johann Reyes
>>
>> -Original Message-
>> From: Taavi Sildeberg [mailto:[EMAIL PROTECTED] 
>> Sent: Monday, March 20, 2006 5:30 AM
>> To: Maven Users List
>> Subject: Problem hibernate3 plugin cfg2cfgxml
>>
>> Hello,
>>
>> I have a three java files with annotations. When I try to generate the 
>> hibernate.cfg.xml with maven.hibernte3.plugin, then the mapped classes 
>> are never included inside hibernate.cfg.xml file. If I add them manualy 
>> then hbm2ddl works fine.
>> In the plugin manual is that hibernate3:cfg2cfgxml generates 
>> hibernate.cfg.xml. file
>>
>> Can someone suggest what I am doing wrong?
>>
>>
>> Taavi
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

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




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



Re: mvn compile fails on Windows w/ JDK 1.5.0_06

2006-03-21 Thread Alexandre Poitras
I have never seen this problem and I have both a jdk and a jre installed.

On 3/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Dear List,
>
> I recently upgraded my JDK from 1.5.0_04 to 1.5.0_06.  Now when I run
>
>   mvn compile
>
> I get the following error:
>
> Unable to locate the Javac Compiler in:
>   C:\Program Files\Java\jre1.5.0_06\..\lib\tools.jar
> Please ensure you are using JDK 1.4 or above and
> not a JRE (the com.sun.tools.javac.Main class is required).
> In most cases you can change the location of your Java
> installation by setting the JAVA_HOME environment variable.
>
> Note that JAVA_HOME is set to C:\Program Files\Java\jdk1.5.0_06.
>
> There appears to be a built-in assumption somewhere within
> maven-compiler-plugin that ${java.home} == ${jre.home}\..  While this was
> true under jdk1.5.0_04, it is not the case with jdk1.5.0_06 (The JDK is
> installed under C:\Program Files\Java\jdk1.5.0_06, while the JRE is
> installed under C:\Program Files\Java\jre1.5.0_06).  I've tried tracking
> down the place in the code where this assumption is made, so that I could
> submit a patch, and got as far as
> org.codehaus.plexus.compiler.manager.CompilerManager, but I haven't been
> able to track down the location of the Plexus SVN repository to research
> further.
>
> Before I post a bug report, has any body else encountered this problem, and
> is there a patch and/or work around available?
>
>
> Thanks,
> Ian
>
> It's better to be hated for who you are
> than loved for who you are not
>
> Ian D. Stewart
> Appl Dev Analyst-Advisory, DCS Automation
> JPMorganChase Global Technology Infrastructure
> Phone: (614) 244-2564
> Pager: (888) 260-0078
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Alexandre Poitras
Québec, Canada

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



Can This be done with Maven

2006-03-21 Thread Santosh G. Gokak
Hi Everybody,

 

I have some thing I want to achieve using maven.

 

I have 5 Projects A, B, C, D, E.

 

Now, C and D depends on E. B Depends on D .A is combination of B, C, D,
E.

 

Now, when the packaging of A is invoked, I would like that the latest
available code of E is taken, compiled, tested and packaged.

Then using that new E Package C and D is taken, compiled, tested and
packaged and so on. Finally A will be the having the latest of all.

 

Now, Can this be achieved with Maven, if so how?

If not, any work around?

 

Any help would be valuable

 

Thanks In Advance,

Santosh G Gokak

 

MASTEK 
"Making a valuable difference"
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
all computers.
~~


Mysterious resource filtering problem...

2006-03-21 Thread Joern Huxhorn

Hi.

I'm currently trying to filter a resource using a command-line argument 
as described at http://maven.apache.org/guides/getting-started/index.html .
Interestingly, ${pom.name} and ${pom.version} are both working... 
however, ${java.version} is also replaced by the ${pom.version}-value while


${command.line.prop} (as in the example) isn't replaced at all after calling 'mvn process-resources 
"-Dcommand.line.prop=hello again"' or 'mvn clean install "-Dcommand.line.prop=hello 
again"'...


The relevant part of my pom looks like this:

[..]
war
[..]

[..]



${basedir}/src/main/resources
true


[..]


Is filtering using command line arguments currently broken?

Thanks,
Joern.



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



Re: Problem hibernate3 plugin cfg2cfgxml

2006-03-21 Thread Taavi Sildeberg

Hey,

But is there any way to create hibernate.cfg.xml with mappings 
automatically or I really write it manually?

Maby same ant task, or other tool, preferably maven 2 :)

Taavi


Johann Reyes wrote:

Hello Taavi

Ahh sorry, my mistake, I run my test, but I had the a hibernate.cfg.xml
al;ready setup and didn't notice that. After doing a little more research,
the goal cfg2cfgxml is more for hbm files, since annotated classes there is
no other way around that to have it specified in a hibernate.cfg.xml file as
per

http://www.hibernate.org/hib_docs/annotations/reference/en/html_single/#setu
p-configuration

As it states there is no other way around. I'll keep looking into it to see
if I can find a workaround but for that moment I have to say that you need
to initially have a hibernate.cfg.xml file before using annotations with
hibernate.

Regards

Johann Reyes




-Original Message-
From: Taavi Sildeberg [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 21, 2006 2:27 AM

To: Johann Reyes; users@maven.apache.org
Subject: Re: Problem hibernate3 plugin cfg2cfgxml

Thank you Johann for so quick answer.

Yes a have set the ejb3 to true.
Here is my pom.xml configuration:

  
 
   
 org.apache.maven.plugins
 maven-compiler-plugin
 
   1.5
   1.5
 
   
   
 org.codehaus.mojo
 hibernate3-maven-plugin
 
   true
   
 /target/hibernatetools/hibernate.cfg.xml
   
   true
   
 target/hibernatetools/db-schema.sql
   
   
 /src/main/resources/hibernate.properties
   
 
   
 

 
   
 oracle
 jdbc
 10.2.0.1.0
   
 

   

And hibernate properties is following:

hibernate.connection.driver_class = oracle.jdbc.driver.OracleDriver
hibernate.connection.url = jdbc:oracle:thin:@localhost:1521:orcl
hibernate.connection.username = blablah
hibernate.connection.password = blablah
hibernate.dialect = org.hibernate.dialect.Oracle9Dialect


Can you suggest what else could be wrong?


Taavi


Johann Reyes wrote:

Hello Taavi

Did you set the ejb3 parameter to true?

You can see an example here:



https://svn.mojo.codehaus.org/mojo/trunk/mojo/mojo-sandbox/hibernate3-maven-

plugin/src/test/project-jdk15/pom.xml

Regards

Johann Reyes

-Original Message-
From: Taavi Sildeberg [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 20, 2006 5:30 AM

To: Maven Users List
Subject: Problem hibernate3 plugin cfg2cfgxml

Hello,

I have a three java files with annotations. When I try to generate the 
hibernate.cfg.xml with maven.hibernte3.plugin, then the mapped classes 
are never included inside hibernate.cfg.xml file. If I add them manualy 
then hbm2ddl works fine.
In the plugin manual is that hibernate3:cfg2cfgxml generates 
hibernate.cfg.xml. file


Can someone suggest what I am doing wrong?


Taavi

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







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




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





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



Re: mvn compile fails on Windows w/ JDK 1.5.0_06

2006-03-21 Thread ian . d . stewart
Sounds like it may be something specific to my installation then.  Not
quite the answer I was hoping for, but at least it's a start.

I'll try uninstalling and reinstalling JDK 1.5.0_06 and see if that gets me
anywhere.


Ian

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

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


   
  "Alexandre   
  Poitras"  To:   "Maven Users List" 

 Subject:  Re: mvn compile fails 
on Windows w/ JDK 1.5.0_06
   
  03/21/2006 08:56 
  AM   
  Please respond to
  "Maven Users List"   
   




I have never seen this problem and I have both a jdk and a jre installed.

On 3/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Dear List,
>
> I recently upgraded my JDK from 1.5.0_04 to 1.5.0_06.  Now when I run
>
>   mvn compile
>
> I get the following error:
>
> Unable to locate the Javac Compiler in:
>   C:\Program Files\Java\jre1.5.0_06\..\lib\tools.jar
> Please ensure you are using JDK 1.4 or above and
> not a JRE (the com.sun.tools.javac.Main class is required).
> In most cases you can change the location of your Java
> installation by setting the JAVA_HOME environment variable.
>
> Note that JAVA_HOME is set to C:\Program Files\Java\jdk1.5.0_06.
>
> There appears to be a built-in assumption somewhere within
> maven-compiler-plugin that ${java.home} == ${jre.home}\..  While this was
> true under jdk1.5.0_04, it is not the case with jdk1.5.0_06 (The JDK is
> installed under C:\Program Files\Java\jdk1.5.0_06, while the JRE is
> installed under C:\Program Files\Java\jre1.5.0_06).  I've tried tracking
> down the place in the code where this assumption is made, so that I could
> submit a patch, and got as far as
> org.codehaus.plexus.compiler.manager.CompilerManager, but I haven't been
> able to track down the location of the Plexus SVN repository to research
> further.
>
> Before I post a bug report, has any body else encountered this problem,
and
> is there a patch and/or work around available?
>
>
> Thanks,
> Ian
>
> It's better to be hated for who you are
> than loved for who you are not
>
> Ian D. Stewart
> Appl Dev Analyst-Advisory, DCS Automation
> JPMorganChase Global Technology Infrastructure
> Phone: (614) 244-2564
> Pager: (888) 260-0078
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Alexandre Poitras
Québec, Canada

-
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: Mysterious resource filtering problem...

2006-03-21 Thread Joern Huxhorn

Hi, it's me again.
I found a suitable work-around for the described problem:

The line in my filtered resource file looks like this:
log4j.appender.xml.file=cc-web-${cc.country}.xml

I want cc.country to be replaced by a command-line option, e.g. 'mvn 
-Dcountry=de clean install'.  This didn't work directly by using 
-Dcc.country=de.

I added the following lines and it's working now as expected:
   
   ${country}
   

${country} is correctly replaced by the given command line argument so 
${cc.country} is replaced in the resources, too.


My other mysteries are still unsolved and I'm pretty sure that this is a 
bug...


Joern.

Joern Huxhorn wrote:

Hi.

I'm currently trying to filter a resource using a command-line 
argument as described at 
http://maven.apache.org/guides/getting-started/index.html .
Interestingly, ${pom.name} and ${pom.version} are both working... 
however, ${java.version} is also replaced by the ${pom.version}-value 
while


${command.line.prop} (as in the example) isn't replaced at all after 
calling 'mvn process-resources "-Dcommand.line.prop=hello again"' or 
'mvn clean install "-Dcommand.line.prop=hello again"'...



The relevant part of my pom looks like this:

[..]
war
[..]

[..]


${basedir}/src/main/resources
true


[..]


Is filtering using command line arguments currently broken?

Thanks,
Joern.



-
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: Is deployment dangerous?

2006-03-21 Thread Helck, Christopher
Hi Brett,

I'm using 1.0.2 and it looks like the release plugin is deprecated. Is
there some suggested work around?

Thanks,
Christopher

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 20, 2006 6:50 PM
To: Maven Users List
Subject: Re: Is deployment dangerous?


its possible. To help prevent it, you should:
* use appropriate file and directory permissions
* always have the version set to *-SNAPSHOT, and use the relase plugin
to deploy the releases.

- Brett

On 3/21/06, Helck, Christopher <[EMAIL PROTECTED]> wrote:
> Is there a danger that artifacts in a repository can become corrupt? 
> I'm concerned about someone modifying source code with out changing a 
> projects version and redeploying the artifact. Is there a way to 
> prevent this?
>
> There is also the case where source code is not changed but a 
> component is rebuilt and redeployed causing the contents of the 
> repository to change. As a developer I believe this is harmless, but 
> my release manager is going to have a fit. I'd like to prevent this 
> from occuring. If I use multiproject based builds then I expect this 
> would happen frequently.
>
> Any ideas?
> Christopher Helck
>
>
>
> Thank you for being part of it.
>
> The information contained in this e-mail is confidential. This e-mail 
> is intended only for the stated addressee.  If you are not an 
> addressee, you must not disclose, copy, circulate or in any other way 
> use or rely on the information contained in this e-mail. if you have 
> received this e-mail in error, please inform us immediately and delete

> it and all copies from your system.
>
> EBS Dealing Resources International Limited. Registered address: 10 
> Paternoster Square, London EC4M 7DY, United Kingdom. Registered number

> 2669861.
>
> EBS Dealing Resources, Inc, registered in Delaware. Address: 535 
> Madison Avenue, 24th Floor, New York, NY 10022, USA, and One upper 
> Pond road, Building F - Floor 3, Parsippany, NJ 07054, USA.
>
> EBS Dealing Resources Japan Limited, a Japanese Corporation. Address: 
> Asteer Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku,  Tokyo 
> 104-0033, Japan.
>
>
>

-
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: Is deployment dangerous?

2006-03-21 Thread Helck, Christopher
Oops nevermind, I see the scm plugin
-chris

-Original Message-
From: Helck, Christopher 
Sent: Tuesday, March 21, 2006 9:49 AM
To: Maven Users List
Subject: RE: Is deployment dangerous?


Hi Brett,

I'm using 1.0.2 and it looks like the release plugin is deprecated. Is
there some suggested work around?

Thanks,
Christopher

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 20, 2006 6:50 PM
To: Maven Users List
Subject: Re: Is deployment dangerous?


its possible. To help prevent it, you should:
* use appropriate file and directory permissions
* always have the version set to *-SNAPSHOT, and use the relase plugin
to deploy the releases.

- Brett

On 3/21/06, Helck, Christopher <[EMAIL PROTECTED]> wrote:
> Is there a danger that artifacts in a repository can become corrupt?
> I'm concerned about someone modifying source code with out changing a 
> projects version and redeploying the artifact. Is there a way to 
> prevent this?
>
> There is also the case where source code is not changed but a
> component is rebuilt and redeployed causing the contents of the 
> repository to change. As a developer I believe this is harmless, but 
> my release manager is going to have a fit. I'd like to prevent this 
> from occuring. If I use multiproject based builds then I expect this 
> would happen frequently.
>
> Any ideas?
> Christopher Helck
>
>
>
> Thank you for being part of it.
>
> The information contained in this e-mail is confidential. This e-mail
> is intended only for the stated addressee.  If you are not an 
> addressee, you must not disclose, copy, circulate or in any other way 
> use or rely on the information contained in this e-mail. if you have 
> received this e-mail in error, please inform us immediately and delete

> it and all copies from your system.
>
> EBS Dealing Resources International Limited. Registered address: 10
> Paternoster Square, London EC4M 7DY, United Kingdom. Registered number

> 2669861.
>
> EBS Dealing Resources, Inc, registered in Delaware. Address: 535
> Madison Avenue, 24th Floor, New York, NY 10022, USA, and One upper 
> Pond road, Building F - Floor 3, Parsippany, NJ 07054, USA.
>
> EBS Dealing Resources Japan Limited, a Japanese Corporation. Address:
> Asteer Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku,  Tokyo 
> 104-0033, Japan.
>
>
>

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


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


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



Re: [m202] question about filtering & assembly

2006-03-21 Thread Mick Knutson

Yes, that is where the install script is located.


Thanks
Mick Knutson

http://www.BASELogic.com
http://www.MickKnutson.com

MSN Messenger: [EMAIL PROTECTED]



- Original Message - 
From: "allan ramirez" <[EMAIL PROTECTED]>

To: "Maven Users List" 
Sent: Monday, March 20, 2006 7:13 PM
Subject: Re: [m202] question about filtering & assembly


btw, you sure you placed your install script inside the src/main/resources
directory?

-allan

On 3/21/06, allan ramirez <[EMAIL PROTECTED]> wrote:


I guess this is also related to
http://jira.codehaus.org/browse/MASSEMBLY-54

-allan


On 3/21/06, Mick Knutson <[EMAIL PROTECTED]> wrote:
>
> I have a build that consists of 3 modules and then a src directory for
> the
> assembly:
>
> ./common/*
> ./ear/*
> ./war/*
> ./src/*
>
> When I run an install, only the common.jar, war and ear are created.
> Then,
> if I want to create an assembly, I run assembly:assembly and this seems
> to
> run the build and then assembles the assembly. But, I have resources in
> my
> ./src directory that I want to replace values of, but running the mvn
> process-resources command does not seem to work.
>
> pom.xml:
> ==
>
>
> 
> ${basedir}/src/main/filters/filter.properties

> 
>
> 
> 
> ${basedir}/src/main/resources
> true
> 
> 
>
> 
>
>
> filter.properties:
> ===
> furl_version=1.3
>
>
>
> install script I want to replace:
> ===
> ln -s ./prod/furl/release/jboss-${furl_version} /jboss
>
>
>
>
>
> install script inside the  assembly:
> ===
> ln -s ./prod/furl/release/jboss-${furl_version} /jboss
>
>
> The value did not get filtered out.
>
>
>
>
> ---
> Thank You
> Mick Knutson
>
> Sr. Java/J2EE Consultant
> BASE logic, inc.
> (415) 648-1804 (S.F., CA)
> http://www.BASELogic.com
>
> Washington Mutual (WAMU) (Emeryville, California)
> ---
>
>
>
> -
> 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]



[SOLVED] Re: mvn compile fails on Windows w/ JDK 1.5.0_06

2006-03-21 Thread ian . d . stewart
The re-install appears to have fixed the issue.  Looking at the contents of
C:\Program Files\Java\jdk1.5.0_06, there appear to be more files in there
then under the previous install.  The first install must have been
incomplete.

I guess, if all else fails, re-install...


Ian

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

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


   
  [EMAIL PROTECTED]
  chase.comTo:   "Maven Users List" 

   cc: 
  03/21/2006 09:43 Subject:  Re: mvn compile fails 
on Windows w/ JDK 1.5.0_06
  AM   
  Please respond to
  "Maven Users 
  List"
   




Sounds like it may be something specific to my installation then.  Not
quite the answer I was hoping for, but at least it's a start.

I'll try uninstalling and reinstalling JDK 1.5.0_06 and see if that gets me
anywhere.


Ian

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

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



  "Alexandre

  Poitras"  To:   "Maven Users
List" 
 Subject:  Re: mvn compile
fails on Windows w/ JDK 1.5.0_06

  03/21/2006 08:56

  AM

  Please respond to

  "Maven Users List"






I have never seen this problem and I have both a jdk and a jre installed.

On 3/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Dear List,
>
> I recently upgraded my JDK from 1.5.0_04 to 1.5.0_06.  Now when I run
>
>   mvn compile
>
> I get the following error:
>
> Unable to locate the Javac Compiler in:
>   C:\Program Files\Java\jre1.5.0_06\..\lib\tools.jar
> Please ensure you are using JDK 1.4 or above and
> not a JRE (the com.sun.tools.javac.Main class is required).
> In most cases you can change the location of your Java
> installation by setting the JAVA_HOME environment variable.
>
> Note that JAVA_HOME is set to C:\Program Files\Java\jdk1.5.0_06.
>
> There appears to be a built-in assumption somewhere within
> maven-compiler-plugin that ${java.home} == ${jre.home}\..  While this was
> true under jdk1.5.0_04, it is not the case with jdk1.5.0_06 (The JDK is
> installed under C:\Program Files\Java\jdk1.5.0_06, while the JRE is
> installed under C:\Program Files\Java\jre1.5.0_06).  I've tried tracking
> down the place in the code where this assumption is made, so that I could
> submit a patch, and got as far as
> org.codehaus.plexus.compiler.manager.CompilerManager, but I haven't been
> able to track down the location of the Plexus SVN repository to research
> further.
>
> Before I post a bug report, has any body else encountered this problem,
and
> is there a patch and/or work around available?
>
>
> Thanks,
> Ian
>
> It's better to be hated for who you are
> than loved for who you are not
>
> Ian D. Stewart
> Appl Dev Analyst-Advisory, DCS Automation
> JPMorganChase Global Technology Infrastructure
> Phone: (614) 244-2564
> Pager: (888) 260-0078
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Alexandre Poitras
Québec, Canada

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




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




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



[m2] wsdl2java-maven-plugin users

2006-03-21 Thread Jesse McConnell
This is an FYI to the folks using the wsdl2java plugin in mojo, I'll be
releasing the initial version of the axistools-maven-plugin shortly that
implements all the behavior of the wsdl2java plugin, with the addition of
java2wsdl support and some other nice little tidbits.

it is my intention to remove the wsdl2java plugin at some point in the
relatively near future to keep from having people accidently start using a
deprecated plugin.

So, if you are using the wsdl2java plugin in the mojo project I would very
much appreciate your checking out the axistools plugin from the sandbox and
giving it a whirl.

problems or concerns please respond to this mail to the list or directly
back to me if you would like.

thanks!

jesse

--
jesse mcconnell


Re: [m2] plugin dependency exclusions

2006-03-21 Thread Wayne Fay
> I'm afraid I don't see the connection with my problem and the above
> issues - I'm trying to remove dependencies from the m2 runtime
> classpath, not from a generated artifact.

Ah that wasn't clear to me at first. Ignore the rest of my comments.

> I did search but couldn't find a thread detailing a similar problem.
> Has anyone got any further ideas?

Never seen this use case before. I'd suspect your "only" way of doing
this is by creating your own private jetty6 plugin with your specific
dependency requirements.

Wayne


RE: Problem hibernate3 plugin cfg2cfgxml

2006-03-21 Thread Sylvain Vieujot
I did a private maven plugin that does just that : Fetch the annotations
and add the  to an hibernate.cfg.xml file.
It would need to be a bite polished to go in a public repository, but if
you're interested, I could review it a bite to contribute it.

It works only for annotations though, but it can be combined with the
xdoclet plugin for the one that need to mix them

Best regards,

Sylvain Vieujot.

On Tue, 2006-03-21 at 08:39 -0500, Johann Reyes wrote:

> Hello Taavi
> 
> Right now, hibernate-tools supports creation of hibernate.cfg.xml with
> mappings automatically only with hbm.xml files. I'll check if they are
> planning to support Annotations this way too, but at the moment is not
> supported.
> 
> Regards
> 
> Johann Reyes
> 
> -Original Message-
> From: Taavi Sildeberg [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 21, 2006 8:33 AM
> To: Maven Users List
> Subject: Re: Problem hibernate3 plugin cfg2cfgxml
> 
> Hey,
> 
> But is there any way to create hibernate.cfg.xml with mappings 
> automatically or I really write it manually?
> Maby same ant task, or other tool, preferably maven 2 :)
> 
> Taavi
> 
> 
> Johann Reyes wrote:
> > Hello Taavi
> > 
> > Ahh sorry, my mistake, I run my test, but I had the a hibernate.cfg.xml
> > al;ready setup and didn't notice that. After doing a little more research,
> > the goal cfg2cfgxml is more for hbm files, since annotated classes there
> is
> > no other way around that to have it specified in a hibernate.cfg.xml file
> as
> > per
> > 
> >
> http://www.hibernate.org/hib_docs/annotations/reference/en/html_single/#setu
> > p-configuration
> > 
> > As it states there is no other way around. I'll keep looking into it to
> see
> > if I can find a workaround but for that moment I have to say that you need
> > to initially have a hibernate.cfg.xml file before using annotations with
> > hibernate.
> > 
> > Regards
> > 
> > Johann Reyes
> > 
> > 
> > 
> > 
> > -Original Message-
> > From: Taavi Sildeberg [mailto:[EMAIL PROTECTED] 
> > Sent: Tuesday, March 21, 2006 2:27 AM
> > To: Johann Reyes; users@maven.apache.org
> > Subject: Re: Problem hibernate3 plugin cfg2cfgxml
> > 
> > Thank you Johann for so quick answer.
> > 
> > Yes a have set the ejb3 to true.
> > Here is my pom.xml configuration:
> > 
> >   
> >  
> >
> >  org.apache.maven.plugins
> >  maven-compiler-plugin
> >  
> >1.5
> >1.5
> >  
> >
> >
> >  org.codehaus.mojo
> >  hibernate3-maven-plugin
> >  
> >true
> >
> >  /target/hibernatetools/hibernate.cfg.xml
> >
> >true
> >
> >  target/hibernatetools/db-schema.sql
> >
> >
> >  /src/main/resources/hibernate.properties
> >
> >  
> >
> >  
> > 
> >  
> >
> >  oracle
> >  jdbc
> >  10.2.0.1.0
> >
> >  
> > 
> >
> > 
> > And hibernate properties is following:
> > 
> > hibernate.connection.driver_class = oracle.jdbc.driver.OracleDriver
> > hibernate.connection.url = jdbc:oracle:thin:@localhost:1521:orcl
> > hibernate.connection.username = blablah
> > hibernate.connection.password = blablah
> > hibernate.dialect = org.hibernate.dialect.Oracle9Dialect
> > 
> > 
> > Can you suggest what else could be wrong?
> > 
> > 
> > Taavi
> > 
> > 
> > Johann Reyes wrote:
> >> Hello Taavi
> >>
> >> Did you set the ejb3 parameter to true?
> >>
> >> You can see an example here:
> >>
> >>
> >
> https://svn.mojo.codehaus.org/mojo/trunk/mojo/mojo-sandbox/hibernate3-maven-
> >> plugin/src/test/project-jdk15/pom.xml
> >>
> >> Regards
> >>
> >> Johann Reyes
> >>
> >> -Original Message-
> >> From: Taavi Sildeberg [mailto:[EMAIL PROTECTED] 
> >> Sent: Monday, March 20, 2006 5:30 AM
> >> To: Maven Users List
> >> Subject: Problem hibernate3 plugin cfg2cfgxml
> >>
> >> Hello,
> >>
> >> I have a three java files with annotations. When I try to generate the 
> >> hibernate.cfg.xml with maven.hibernte3.plugin, then the mapped classes 
> >> are never included inside hibernate.cfg.xml file. If I add them manualy 
> >> then hbm2ddl works fine.
> >> In the plugin manual is that hibernate3:cfg2cfgxml generates 
> >> hibernate.cfg.xml. file
> >>
> >> Can someone suggest what I am doing wrong?
> >>
> >>
> >> Taavi
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >>
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [

Re: [m2] plugin dependency exclusions

2006-03-21 Thread Mark Hobson
On 21/03/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > I'm afraid I don't see the connection with my problem and the above
> > issues - I'm trying to remove dependencies from the m2 runtime
> > classpath, not from a generated artifact.
>
> Ah that wasn't clear to me at first. Ignore the rest of my comments.
>
> > I did search but couldn't find a thread detailing a similar problem.
> > Has anyone got any further ideas?
>
> Never seen this use case before. I'd suspect your "only" way of doing
> this is by creating your own private jetty6 plugin with your specific
> dependency requirements.

Thanks for the response.  I've raised an issue so this doesn't get lost:

http://jira.codehaus.org/browse/MNG-2163

Cheers,

Mark

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



Re: Mysterious resource filtering problem...

2006-03-21 Thread Wayne Fay
Sounds like a bug to me, too. File it in JIRA.

Wayne


On 3/21/06, Joern Huxhorn <[EMAIL PROTECTED]> wrote:
> Hi, it's me again.
> I found a suitable work-around for the described problem:
>
> The line in my filtered resource file looks like this:
> log4j.appender.xml.file=cc-web-${cc.country}.xml
>
> I want cc.country to be replaced by a command-line option, e.g. 'mvn
> -Dcountry=de clean install'.  This didn't work directly by using
> -Dcc.country=de.
> I added the following lines and it's working now as expected:
>
>${country}
>
>
> ${country} is correctly replaced by the given command line argument so
> ${cc.country} is replaced in the resources, too.
>
> My other mysteries are still unsolved and I'm pretty sure that this is a
> bug...
>
> Joern.
>
> Joern Huxhorn wrote:
> > Hi.
> >
> > I'm currently trying to filter a resource using a command-line
> > argument as described at
> > http://maven.apache.org/guides/getting-started/index.html .
> > Interestingly, ${pom.name} and ${pom.version} are both working...
> > however, ${java.version} is also replaced by the ${pom.version}-value
> > while
> >
> > ${command.line.prop} (as in the example) isn't replaced at all after
> > calling 'mvn process-resources "-Dcommand.line.prop=hello again"' or
> > 'mvn clean install "-Dcommand.line.prop=hello again"'...
> >
> >
> > The relevant part of my pom looks like this:
> >
> > [..]
> > war
> > [..]
> > 
> > [..]
> > 
> > 
> > ${basedir}/src/main/resources
> > true
> > 
> > 
> > [..]
> > 
> >
> > Is filtering using command line arguments currently broken?
> >
> > Thanks,
> > Joern.
> >
> >
> >
> > -
> > 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]
>
>


Inaccurate interpretation of strings

2006-03-21 Thread Dixit, Sandeep (ProSource Solutions)
I have a written that looks like:

  com.ncc.task.plugins
  task-plugin
  1.0-SNAPSHOT
  
mygoal
EFTApplication
 
${project.build.directory}/EFTAppl-1.0-SNAPSHOT.ear
/var/log/builds/EFTApplication.log
  



The problem I am having is from the tag:
 
${project.build.directory}/EFTAppl-1.0-SNAPSHOT.ear

If the ${project.build.directory} contains special characters for
example c:\abc\t.., it takes the \t as tab and thus the plug-in fails.
Is there a way to deal with this?

Thanks,
Sandeep

---
***National City made the following annotations
---
This communication is a confidential and proprietary business communication.  
It is intended solely for the use of the designated recipient(s).  If this
communication is received in error, please contact the sender and delete 
this communication.
===

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



Re: [m202] question about filtering & assembly

2006-03-21 Thread Mick Knutson
Ok, this bug is what my issue is. So, can someone please help me with a 
solution to this:


I have my master pom.xml, all my module pom.xml's and several text files 
that I need to filter with a centralized parameter ${my.parameter.01} etc...


So where can I put these central parameters, so that I only have them 
declared 1 place, and they can affect my master pom, module pom's, and all 
my text files with filtering?



Right now I have them declared in my profiles.xml and my filter.properties 
but that is 1 too many places. I want to just have 1 place.


---
Thank You
Mick Knutson

BASE logic, inc.
(415) 648-1804 (San Francisco, CA)
http://www.BASELogic.com

http://www.djmick.com
---





From: "allan ramirez" <[EMAIL PROTECTED]>
Reply-To: "Maven Users List" 
To: "Maven Users List" 
Subject: Re: [m202] question about filtering & assembly
Date: Tue, 21 Mar 2006 11:13:12 +0800

btw, you sure you placed your install script inside the src/main/resources
directory?

-allan

On 3/21/06, allan ramirez <[EMAIL PROTECTED]> wrote:
>
> I guess this is also related to
> http://jira.codehaus.org/browse/MASSEMBLY-54
>
> -allan
>
>
> On 3/21/06, Mick Knutson <[EMAIL PROTECTED]> wrote:
> >
> > I have a build that consists of 3 modules and then a src directory for
> > the
> > assembly:
> >
> > ./common/*
> > ./ear/*
> > ./war/*
> > ./src/*
> >
> > When I run an install, only the common.jar, war and ear are created.
> > Then,
> > if I want to create an assembly, I run assembly:assembly and this 
seems

> > to
> > run the build and then assembles the assembly. But, I have resources 
in

> > my
> > ./src directory that I want to replace values of, but running the mvn
> > process-resources command does not seem to work.
> >
> > pom.xml:
> > ==
> >
> >
> > 
${basedir}/src/main/filters/filter.properties

> > 
> >
> > 
> > 
> > ${basedir}/src/main/resources
> > true
> > 
> > 
> >
> > 
> >
> >
> > filter.properties:
> > ===
> > furl_version=1.3
> >
> >
> >
> > install script I want to replace:
> > ===
> > ln -s ./prod/furl/release/jboss-${furl_version} /jboss
> >
> >
> >
> >
> >
> > install script inside the  assembly:
> > ===
> > ln -s ./prod/furl/release/jboss-${furl_version} /jboss
> >
> >
> > The value did not get filtered out.
> >
> >
> >
> >
> > ---
> > Thank You
> > Mick Knutson
> >
> > Sr. Java/J2EE Consultant
> > BASE logic, inc.
> > (415) 648-1804 (S.F., CA)
> > http://www.BASELogic.com
> >
> > Washington Mutual (WAMU) (Emeryville, California)
> > ---
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>




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



RE: Problem hibernate3 plugin cfg2cfgxml

2006-03-21 Thread Johann Reyes
Hello Sylvian

Yes, I would be interested to take a look, I'll gladly accept the help. And
don't worry, the implementation I think would be fairly easy since I know
when a person is using annotations or not.

Thanks

Johann Reyes

-Original Message-
From: Sylvain Vieujot [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 21, 2006 11:39 AM
To: Maven Users List
Subject: RE: Problem hibernate3 plugin cfg2cfgxml

I did a private maven plugin that does just that : Fetch the annotations
and add the  to an hibernate.cfg.xml file.
It would need to be a bite polished to go in a public repository, but if
you're interested, I could review it a bite to contribute it.

It works only for annotations though, but it can be combined with the
xdoclet plugin for the one that need to mix them

Best regards,

Sylvain Vieujot.

On Tue, 2006-03-21 at 08:39 -0500, Johann Reyes wrote:

> Hello Taavi
> 
> Right now, hibernate-tools supports creation of hibernate.cfg.xml with
> mappings automatically only with hbm.xml files. I'll check if they are
> planning to support Annotations this way too, but at the moment is not
> supported.
> 
> Regards
> 
> Johann Reyes
> 
> -Original Message-
> From: Taavi Sildeberg [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 21, 2006 8:33 AM
> To: Maven Users List
> Subject: Re: Problem hibernate3 plugin cfg2cfgxml
> 
> Hey,
> 
> But is there any way to create hibernate.cfg.xml with mappings 
> automatically or I really write it manually?
> Maby same ant task, or other tool, preferably maven 2 :)
> 
> Taavi
> 
> 
> Johann Reyes wrote:
> > Hello Taavi
> > 
> > Ahh sorry, my mistake, I run my test, but I had the a hibernate.cfg.xml
> > al;ready setup and didn't notice that. After doing a little more
research,
> > the goal cfg2cfgxml is more for hbm files, since annotated classes there
> is
> > no other way around that to have it specified in a hibernate.cfg.xml
file
> as
> > per
> > 
> >
>
http://www.hibernate.org/hib_docs/annotations/reference/en/html_single/#setu
> > p-configuration
> > 
> > As it states there is no other way around. I'll keep looking into it to
> see
> > if I can find a workaround but for that moment I have to say that you
need
> > to initially have a hibernate.cfg.xml file before using annotations with
> > hibernate.
> > 
> > Regards
> > 
> > Johann Reyes
> > 
> > 
> > 
> > 
> > -Original Message-
> > From: Taavi Sildeberg [mailto:[EMAIL PROTECTED] 
> > Sent: Tuesday, March 21, 2006 2:27 AM
> > To: Johann Reyes; users@maven.apache.org
> > Subject: Re: Problem hibernate3 plugin cfg2cfgxml
> > 
> > Thank you Johann for so quick answer.
> > 
> > Yes a have set the ejb3 to true.
> > Here is my pom.xml configuration:
> > 
> >   
> >  
> >
> >  org.apache.maven.plugins
> >  maven-compiler-plugin
> >  
> >1.5
> >1.5
> >  
> >
> >
> >  org.codehaus.mojo
> >  hibernate3-maven-plugin
> >  
> >true
> >
> >  /target/hibernatetools/hibernate.cfg.xml
> >
> >true
> >
> >  target/hibernatetools/db-schema.sql
> >
> >
> >  /src/main/resources/hibernate.properties
> >
> >  
> >
> >  
> > 
> >  
> >
> >  oracle
> >  jdbc
> >  10.2.0.1.0
> >
> >  
> > 
> >
> > 
> > And hibernate properties is following:
> > 
> > hibernate.connection.driver_class = oracle.jdbc.driver.OracleDriver
> > hibernate.connection.url = jdbc:oracle:thin:@localhost:1521:orcl
> > hibernate.connection.username = blablah
> > hibernate.connection.password = blablah
> > hibernate.dialect = org.hibernate.dialect.Oracle9Dialect
> > 
> > 
> > Can you suggest what else could be wrong?
> > 
> > 
> > Taavi
> > 
> > 
> > Johann Reyes wrote:
> >> Hello Taavi
> >>
> >> Did you set the ejb3 parameter to true?
> >>
> >> You can see an example here:
> >>
> >>
> >
>
https://svn.mojo.codehaus.org/mojo/trunk/mojo/mojo-sandbox/hibernate3-maven-
> >> plugin/src/test/project-jdk15/pom.xml
> >>
> >> Regards
> >>
> >> Johann Reyes
> >>
> >> -Original Message-
> >> From: Taavi Sildeberg [mailto:[EMAIL PROTECTED] 
> >> Sent: Monday, March 20, 2006 5:30 AM
> >> To: Maven Users List
> >> Subject: Problem hibernate3 plugin cfg2cfgxml
> >>
> >> Hello,
> >>
> >> I have a three java files with annotations. When I try to generate the 
> >> hibernate.cfg.xml with maven.hibernte3.plugin, then the mapped classes 
> >> are never included inside hibernate.cfg.xml file. If I add them manualy

> >> then hbm2ddl works fine.
> >> In the plugin manual is that hibernate3:cfg2cfgxml generates 
> >> hibernate.cfg.xml. file
> >>
> >> Can someone suggest what I am doing wrong?
> >>
> >>
> >> Taavi
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional c

deploy: invalid private key

2006-03-21 Thread Bruno Patini Furtado
Hi folks,
I'm trying to deploy a artifact to a local intranet repository using SCP, I
can establish a ssh session using my pass phrase as expected, but I'm having
to success in configuring maven to make it.

My settings.xml servers tag goes like this:

  ssh-repository
  $user_name
  $usr_home/.ssh/identity
  


My pom.xml distributionManagement tag:
  

  ssh-repository
  scp:///

  

I'm not using putty, which I've read has a key format issue and a key
converter.
I've looked a lot at the mailing list archives and in the maven
documentation site.
Any help in any page will be most appreciated :)


--
"Minds are like parachutes, they work best when open."

Bruno Patini Furtado
Software Developer
webpage: www.bpfurtado.net
software development blog: http://bpfurtado.livejournal.com


Re: deploy: invalid private key

2006-03-21 Thread Wayne Fay
What operating system?

"Not using putty" -- well what ARE you using?

Wayne

On 3/21/06, Bruno Patini Furtado <[EMAIL PROTECTED]> wrote:
> Hi folks,
> I'm trying to deploy a artifact to a local intranet repository using SCP, I
> can establish a ssh session using my pass phrase as expected, but I'm having
> to success in configuring maven to make it.
>
> My settings.xml servers tag goes like this:
>
>  ssh-repository
>  $user_name
>  $usr_home/.ssh/identity
>  
>
>
> My pom.xml distributionManagement tag:
>  
>
>  ssh-repository
>  scp:///
>
>  
>
> I'm not using putty, which I've read has a key format issue and a key
> converter.
> I've looked a lot at the mailing list archives and in the maven
> documentation site.
> Any help in any page will be most appreciated :)
>
>
> --
> "Minds are like parachutes, they work best when open."
>
> Bruno Patini Furtado
> Software Developer
> webpage: www.bpfurtado.net
> software development blog: http://bpfurtado.livejournal.com
>
>


Re: RE : Continuum 1.0.3 RC require some tester

2006-03-21 Thread Yann Le Du
Everything is working fine for me, especially
http://jira.codehaus.org/browse/CONTINUUM-577

I fail to reproduce Olivier's problem, either with 20060316.173001 or
20060317.073000 . Only one of both definitions is executed (the last one in
the list), but Continuum doesn't stop.

Big thanks for this new version !

- Yann

On 3/20/06, Olivier Lamy <[EMAIL PROTECTED]> wrote:
>
> In fact not so good.
> Log :
> 2006-03-18 09:40:52,260 [Thread-7] ERROR
> org.codehaus.plexus.summit.pull.PullService  - Problem disp
> osing global tools:
> java.util.ConcurrentModificationException
> at java.util.HashMap$HashIterator.nextEntry (HashMap.java:782)
> at java.util.HashMap$KeyIterator.next(HashMap.java:818)
> at
> org.codehaus.plexus.summit.pull.DefaultPullService.disposeGlobalTools(De
> fault
>
> This stop continuum.
> Simple test with two build definition on the same project and with the
> same schedule (I know not a normal use case ;-) but it failed).
>
> Snapshot : continuum-20060317.073000
>
> - Olivier
>
>
> -Message d'origine-
> De : Olivier Lamy [mailto: [EMAIL PROTECTED]
> Envoyé : vendredi 17 mars 2006 17:20
> À : 'continuum-users@maven.apache.org'
> Objet : RE : Continuum 1.0.3 RC require some tester
>
>
> Hi,
> I have made some tests and it looks ok.
> Especially the issue concerning reading $HOME/.m2/settings.xml
> (http://jira.codehaus.org/browse/CONTINUUM-590 )
>
> Good job.
> You don't have to wait maven 2.0.3 release ?
>
> - Olivier
>
> PS : I'm not an orange fan but no problem ;-)
>
> -Message d'origine-
> De : Emmanuel Venisse [mailto: [EMAIL PROTECTED]
> Envoyé : jeudi 16 mars 2006 22:33
> À : continuum-users@maven.apache.org
> Objet : Continuum 1.0.3 RC require some tester
>
>
> Hi,
>
> I think it's time to release Continuum 1.0.3. This release will
> incorporate 65 issues, including
> some critical fixes. The full listing of fixes can be found here:
>
> http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=10540&styleNa
> me=Html&version=12330
>
> If you're interested, you can take the current release candidate for a
> test drive. The RC tarball is at:
>
> http://maven.zones.apache.org/~continuum/builds/branches/continuum-1.0.x
> /continuum-20060316.173001.tar.gz
>
> Cheers,
>
> Emmanuel
>
>
>
> 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.
> **
>
>


Re: [SOLVED] Re: mvn compile fails on Windows w/ JDK 1.5.0_06

2006-03-21 Thread Alexandre Poitras
Windows mysteries :)

On 3/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> The re-install appears to have fixed the issue.  Looking at the contents of
> C:\Program Files\Java\jdk1.5.0_06, there appear to be more files in there
> then under the previous install.  The first install must have been
> incomplete.
>
> I guess, if all else fails, re-install...
>
>
> Ian
>
> It's better to be hated for who you are
> than loved for who you are not
>
> Ian D. Stewart
> Appl Dev Analyst-Advisory, DCS Automation
> JPMorganChase Global Technology Infrastructure
> Phone: (614) 244-2564
> Pager: (888) 260-0078
>
>
>
>   [EMAIL PROTECTED]
>   chase.comTo:   "Maven Users List" 
> 
>cc:
>   03/21/2006 09:43 Subject:  Re: mvn compile 
> fails on Windows w/ JDK 1.5.0_06
>   AM
>   Please respond to
>   "Maven Users
>   List"
>
>
>
>
>
> Sounds like it may be something specific to my installation then.  Not
> quite the answer I was hoping for, but at least it's a start.
>
> I'll try uninstalling and reinstalling JDK 1.5.0_06 and see if that gets me
> anywhere.
>
>
> Ian
>
> It's better to be hated for who you are
> than loved for who you are not
>
> Ian D. Stewart
> Appl Dev Analyst-Advisory, DCS Automation
> JPMorganChase Global Technology Infrastructure
> Phone: (614) 244-2564
> Pager: (888) 260-0078
>
>
>
>   "Alexandre
>
>   Poitras"  To:   "Maven Users
> List" 
>   
>   @gmail.com>   Subject:  Re: mvn compile
> fails on Windows w/ JDK 1.5.0_06
>
>   03/21/2006 08:56
>
>   AM
>
>   Please respond to
>
>   "Maven Users List"
>
>
>
>
>
>
> I have never seen this problem and I have both a jdk and a jre installed.
>
> On 3/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Dear List,
> >
> > I recently upgraded my JDK from 1.5.0_04 to 1.5.0_06.  Now when I run
> >
> >   mvn compile
> >
> > I get the following error:
> >
> > Unable to locate the Javac Compiler in:
> >   C:\Program Files\Java\jre1.5.0_06\..\lib\tools.jar
> > Please ensure you are using JDK 1.4 or above and
> > not a JRE (the com.sun.tools.javac.Main class is required).
> > In most cases you can change the location of your Java
> > installation by setting the JAVA_HOME environment variable.
> >
> > Note that JAVA_HOME is set to C:\Program Files\Java\jdk1.5.0_06.
> >
> > There appears to be a built-in assumption somewhere within
> > maven-compiler-plugin that ${java.home} == ${jre.home}\..  While this was
> > true under jdk1.5.0_04, it is not the case with jdk1.5.0_06 (The JDK is
> > installed under C:\Program Files\Java\jdk1.5.0_06, while the JRE is
> > installed under C:\Program Files\Java\jre1.5.0_06).  I've tried tracking
> > down the place in the code where this assumption is made, so that I could
> > submit a patch, and got as far as
> > org.codehaus.plexus.compiler.manager.CompilerManager, but I haven't been
> > able to track down the location of the Plexus SVN repository to research
> > further.
> >
> > Before I post a bug report, has any body else encountered this problem,
> and
> > is there a patch and/or work around available?
> >
> >
> > Thanks,
> > Ian
> >
> > It's better to be hated for who you are
> > than loved for who you are not
> >
> > Ian D. Stewart
> > Appl Dev Analyst-Advisory, DCS Automation
> > JPMorganChase Global Technology Infrastructure
> > Phone: (614) 244-2564
> > Pager: (888) 260-0078
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Alexandre Poitras
> Québec, Canada
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Alexandre Poitras
Québec, Canada

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



Re: [m2] problem w/ antcall in ANT-based mojo

2006-03-21 Thread Adrian Herscu
Wayne, thanks for your reply.
I will try your idea now.


Wayne Fay wrote:
> When you create the my/project/path/build.xml file and add the task to
> that file, does the antcall function work as you expected?
> 
> Not saying this is the proper solution, just trying to help figure it out...
> 
> Wayne
> 
> 
> On 3/19/06, Adrian Herscu <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>> When using antcall in an ANT-based mojo the build fails with
>>
>> [ERROR] BUILD ERROR
>> [INFO]
>> -
>> ---
>> [INFO] Failed to execute: Executing Ant script:
>> /my/plugin/path/mymojo.build.xml [my-target]: Failed to execute.
>>
>> my/project/path/build.xml (The system cannot find the file s
>> pecified)
>>
>> (of course in my project dir. there is no build.xml)
>>
>> ANT's documentation
>> (http://ant.apache.org/manual/CoreTasks/antcall.html) says that antcall
>> invokes targets in the same build file, namely in mymojo.build.xml -- so
>> why it tries to find build.xml in project's directory?
>>
>> Thanks for any hint,
>> Adrian.
>>
>>
>> -
>> 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: Inaccurate interpretation of strings

2006-03-21 Thread Simon Kitching
On Tue, 2006-03-21 at 12:37 -0500, Dixit, Sandeep (ProSource
Solutions)  
> ${project.build.directory}/EFTAppl-1.0-SNAPSHOT.ear
> 
> If the ${project.build.directory} contains special characters for
> example c:\abc\t.., it takes the \t as tab and thus the plug-in fails.
> Is there a way to deal with this?

Set project.build.directory to "c:/abc/t" instead? 
File paths using forward slashes work fine on Windows.

Regards,

Simon


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



Re: deploy: invalid private key

2006-03-21 Thread Bruno Patini Furtado
I'm using GNU/Linux, Ubuntu 5.10 distro :)

On 3/21/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
> What operating system?
>
> "Not using putty" -- well what ARE you using?
>
> Wayne
>
> On 3/21/06, Bruno Patini Furtado <[EMAIL PROTECTED]> wrote:
> > Hi folks,
> > I'm trying to deploy a artifact to a local intranet repository using
> SCP, I
> > can establish a ssh session using my pass phrase as expected, but I'm
> having
> > to success in configuring maven to make it.
> >
> > My settings.xml servers tag goes like this:
> >
> >  ssh-repository
> >  $user_name
> >  $usr_home/.ssh/identity
> >  
> >
> >
> > My pom.xml distributionManagement tag:
> >  
> >
> >  ssh-repository
> >  scp:///
> >
> >  
> >
> > I'm not using putty, which I've read has a key format issue and a key
> > converter.
> > I've looked a lot at the mailing list archives and in the maven
> > documentation site.
> > Any help in any page will be most appreciated :)
> >
> >
> > --
> > "Minds are like parachutes, they work best when open."
> >
> > Bruno Patini Furtado
> > Software Developer
> > webpage: www.bpfurtado.net
> > software development blog: http://bpfurtado.livejournal.com
> >
> >
>



--
"Minds are like parachutes, they work best when open."

Bruno Patini Furtado
Software Developer
webpage: www.bpfurtado.net
blog: http://bpfurtado.livejournal.com


Re: [SOLVED] Re: mvn compile fails on Windows w/ JDK 1.5.0_06

2006-03-21 Thread Kathryn Huxtable
I think there are two different windows installers for the JDK. A zip file
and a windows installer. They may behave differently.

I use Mac OS X, my henchmen use Windows. I think I remember one of them
having a similar problem, but not with Maven.


On 3/21/06 1:13 PM, "Alexandre Poitras" <[EMAIL PROTECTED]> wrote:

--
Kathryn Huxtable
Middleware Architect
Core Middleware
Information Technology, a division of Information Services
The University of Kansas

> Windows mysteries :)
> 
> On 3/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> The re-install appears to have fixed the issue.  Looking at the contents of
>> C:\Program Files\Java\jdk1.5.0_06, there appear to be more files in there
>> then under the previous install.  The first install must have been
>> incomplete.
>> 
>> I guess, if all else fails, re-install...
>> 
>> 
>> Ian
>> 
>> It's better to be hated for who you are
>> than loved for who you are not
>> 
>> Ian D. Stewart
>> Appl Dev Analyst-Advisory, DCS Automation
>> JPMorganChase Global Technology Infrastructure
>> Phone: (614) 244-2564
>> Pager: (888) 260-0078
>> 
>> 
>> 
>>   [EMAIL PROTECTED]
>>   chase.comTo:   "Maven Users List"
>> 
>>cc:
>>   03/21/2006 09:43 Subject:  Re: mvn compile
>> fails on Windows w/ JDK 1.5.0_06
>>   AM
>>   Please respond to
>>   "Maven Users
>>   List"
>> 
>> 
>> 
>> 
>> 
>> Sounds like it may be something specific to my installation then.  Not
>> quite the answer I was hoping for, but at least it's a start.
>> 
>> I'll try uninstalling and reinstalling JDK 1.5.0_06 and see if that gets me
>> anywhere.
>> 
>> 
>> Ian
>> 
>> It's better to be hated for who you are
>> than loved for who you are not
>> 
>> Ian D. Stewart
>> Appl Dev Analyst-Advisory, DCS Automation
>> JPMorganChase Global Technology Infrastructure
>> Phone: (614) 244-2564
>> Pager: (888) 260-0078
>> 
>> 
>> 
>>   "Alexandre
>> 
>>   Poitras"  To:   "Maven Users
>> List" 
>>   > 
>>   @gmail.com>   Subject:  Re: mvn compile
>> fails on Windows w/ JDK 1.5.0_06
>> 
>>   03/21/2006 08:56
>> 
>>   AM
>> 
>>   Please respond to
>> 
>>   "Maven Users List"
>> 
>> 
>> 
>> 
>> 
>> 
>> I have never seen this problem and I have both a jdk and a jre installed.
>> 
>> On 3/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>>> Dear List,
>>> 
>>> I recently upgraded my JDK from 1.5.0_04 to 1.5.0_06.  Now when I run
>>> 
>>>   mvn compile
>>> 
>>> I get the following error:
>>> 
>>> Unable to locate the Javac Compiler in:
>>>   C:\Program Files\Java\jre1.5.0_06\..\lib\tools.jar
>>> Please ensure you are using JDK 1.4 or above and
>>> not a JRE (the com.sun.tools.javac.Main class is required).
>>> In most cases you can change the location of your Java
>>> installation by setting the JAVA_HOME environment variable.
>>> 
>>> Note that JAVA_HOME is set to C:\Program Files\Java\jdk1.5.0_06.
>>> 
>>> There appears to be a built-in assumption somewhere within
>>> maven-compiler-plugin that ${java.home} == ${jre.home}\..  While this was
>>> true under jdk1.5.0_04, it is not the case with jdk1.5.0_06 (The JDK is
>>> installed under C:\Program Files\Java\jdk1.5.0_06, while the JRE is
>>> installed under C:\Program Files\Java\jre1.5.0_06).  I've tried tracking
>>> down the place in the code where this assumption is made, so that I could
>>> submit a patch, and got as far as
>>> org.codehaus.plexus.compiler.manager.CompilerManager, but I haven't been
>>> able to track down the location of the Plexus SVN repository to research
>>> further.
>>> 
>>> Before I post a bug report, has any body else encountered this problem,
>> and
>>> is there a patch and/or work around available?
>>> 
>>> 
>>> Thanks,
>>> Ian
>>> 
>>> It's better to be hated for who you are
>>> than loved for who you are not
>>> 
>>> Ian D. Stewart
>>> Appl Dev Analyst-Advisory, DCS Automation
>>> JPMorganChase Global Technology Infrastructure
>>> Phone: (614) 244-2564
>>> Pager: (888) 260-0078
>>> 
>>> 
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>>> 
>> 
>> 
>> --
>> Alexandre Poitras
>> Québec, Canada
>> 
>> -
>> 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: Re: RE : Continuum 1.0.3 RC require some tester

2006-03-21 Thread Emmanuel Venisse

I'll look at your pb and Olivier's problem this week

Emmanuel

Yann Le Du a écrit :

Everything is working fine for me, especially
http://jira.codehaus.org/browse/CONTINUUM-577

I fail to reproduce Olivier's problem, either with 20060316.173001 or
20060317.073000 . Only one of both definitions is executed (the last one in
the list), but Continuum doesn't stop.

Big thanks for this new version !

- Yann

On 3/20/06, Olivier Lamy <[EMAIL PROTECTED]> wrote:


In fact not so good.
Log :
2006-03-18 09:40:52,260 [Thread-7] ERROR
org.codehaus.plexus.summit.pull.PullService  - Problem disp
osing global tools:
java.util.ConcurrentModificationException
   at java.util.HashMap$HashIterator.nextEntry (HashMap.java:782)
   at java.util.HashMap$KeyIterator.next(HashMap.java:818)
   at
org.codehaus.plexus.summit.pull.DefaultPullService.disposeGlobalTools(De
fault

This stop continuum.
Simple test with two build definition on the same project and with the
same schedule (I know not a normal use case ;-) but it failed).

Snapshot : continuum-20060317.073000

- Olivier


-Message d'origine-
De : Olivier Lamy [mailto: [EMAIL PROTECTED]
Envoyé : vendredi 17 mars 2006 17:20
À : 'continuum-users@maven.apache.org'
Objet : RE : Continuum 1.0.3 RC require some tester


Hi,
I have made some tests and it looks ok.
Especially the issue concerning reading $HOME/.m2/settings.xml
(http://jira.codehaus.org/browse/CONTINUUM-590 )

Good job.
You don't have to wait maven 2.0.3 release ?

- Olivier

PS : I'm not an orange fan but no problem ;-)

-Message d'origine-
De : Emmanuel Venisse [mailto: [EMAIL PROTECTED]
Envoyé : jeudi 16 mars 2006 22:33
À : continuum-users@maven.apache.org
Objet : Continuum 1.0.3 RC require some tester


Hi,

I think it's time to release Continuum 1.0.3. This release will
incorporate 65 issues, including
some critical fixes. The full listing of fixes can be found here:

http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=10540&styleNa
me=Html&version=12330

If you're interested, you can take the current release candidate for a
test drive. The RC tarball is at:

http://maven.zones.apache.org/~continuum/builds/branches/continuum-1.0.x
/continuum-20060316.173001.tar.gz

Cheers,

Emmanuel



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.
**









Re: Inaccurate interpretation of strings

2006-03-21 Thread Kathryn Huxtable
That would be my suggestion as well, and I know that it works.

Backslashes cause problems in strings in C-like languages.

Since forward slashes have OS-level support, they should be used where
possible.

-K


On 3/21/06 1:22 PM, "Simon Kitching" <[EMAIL PROTECTED]> wrote:

> On Tue, 2006-03-21 at 12:37 -0500, Dixit, Sandeep (ProSource
> Solutions)  
>> ${project.build.directory}/EFTAppl-1.0-SNAPSHOT.ear
>> 
>> If the ${project.build.directory} contains special characters for
>> example c:\abc\t.., it takes the \t as tab and thus the plug-in fails.
>> Is there a way to deal with this?
> 
> Set project.build.directory to "c:/abc/t" instead?
> File paths using forward slashes work fine on Windows.
> 
> Regards,
> 
> Simon
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

--
Kathryn Huxtable
Middleware Architect
Core Middleware
Information Technology, a division of Information Services
The University of Kansas


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



RE: Problem hibernate3 plugin cfg2cfgxml

2006-03-21 Thread Sylvain Vieujot
I filled a Jira "new feature" request where you can find the source code
attached :

http://jira.codehaus.org/browse/MHIBERNATE-1

Hope this helps.

Sylvain.

On Tue, 2006-03-21 at 12:56 -0500, Johann Reyes wrote:

> Hello Sylvian
> 
> Yes, I would be interested to take a look, I'll gladly accept the help. And
> don't worry, the implementation I think would be fairly easy since I know
> when a person is using annotations or not.
> 
> Thanks
> 
> Johann Reyes
> 
> -Original Message-
> From: Sylvain Vieujot [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 21, 2006 11:39 AM
> To: Maven Users List
> Subject: RE: Problem hibernate3 plugin cfg2cfgxml
> 
> I did a private maven plugin that does just that : Fetch the annotations
> and add the  to an hibernate.cfg.xml file.
> It would need to be a bite polished to go in a public repository, but if
> you're interested, I could review it a bite to contribute it.
> 
> It works only for annotations though, but it can be combined with the
> xdoclet plugin for the one that need to mix them
> 
> Best regards,
> 
> Sylvain Vieujot.
> 
> On Tue, 2006-03-21 at 08:39 -0500, Johann Reyes wrote:
> 
> > Hello Taavi
> > 
> > Right now, hibernate-tools supports creation of hibernate.cfg.xml with
> > mappings automatically only with hbm.xml files. I'll check if they are
> > planning to support Annotations this way too, but at the moment is not
> > supported.
> > 
> > Regards
> > 
> > Johann Reyes
> > 
> > -Original Message-
> > From: Taavi Sildeberg [mailto:[EMAIL PROTECTED] 
> > Sent: Tuesday, March 21, 2006 8:33 AM
> > To: Maven Users List
> > Subject: Re: Problem hibernate3 plugin cfg2cfgxml
> > 
> > Hey,
> > 
> > But is there any way to create hibernate.cfg.xml with mappings 
> > automatically or I really write it manually?
> > Maby same ant task, or other tool, preferably maven 2 :)
> > 
> > Taavi
> > 
> > 
> > Johann Reyes wrote:
> > > Hello Taavi
> > > 
> > > Ahh sorry, my mistake, I run my test, but I had the a hibernate.cfg.xml
> > > al;ready setup and didn't notice that. After doing a little more
> research,
> > > the goal cfg2cfgxml is more for hbm files, since annotated classes there
> > is
> > > no other way around that to have it specified in a hibernate.cfg.xml
> file
> > as
> > > per
> > > 
> > >
> >
> http://www.hibernate.org/hib_docs/annotations/reference/en/html_single/#setu
> > > p-configuration
> > > 
> > > As it states there is no other way around. I'll keep looking into it to
> > see
> > > if I can find a workaround but for that moment I have to say that you
> need
> > > to initially have a hibernate.cfg.xml file before using annotations with
> > > hibernate.
> > > 
> > > Regards
> > > 
> > > Johann Reyes
> > > 
> > > 
> > > 
> > > 
> > > -Original Message-
> > > From: Taavi Sildeberg [mailto:[EMAIL PROTECTED] 
> > > Sent: Tuesday, March 21, 2006 2:27 AM
> > > To: Johann Reyes; users@maven.apache.org
> > > Subject: Re: Problem hibernate3 plugin cfg2cfgxml
> > > 
> > > Thank you Johann for so quick answer.
> > > 
> > > Yes a have set the ejb3 to true.
> > > Here is my pom.xml configuration:
> > > 
> > >   
> > >  
> > >
> > >  org.apache.maven.plugins
> > >  maven-compiler-plugin
> > >  
> > >1.5
> > >1.5
> > >  
> > >
> > >
> > >  org.codehaus.mojo
> > >  hibernate3-maven-plugin
> > >  
> > >true
> > >
> > >  /target/hibernatetools/hibernate.cfg.xml
> > >
> > >true
> > >
> > >  target/hibernatetools/db-schema.sql
> > >
> > >
> > >  /src/main/resources/hibernate.properties
> > >
> > >  
> > >
> > >  
> > > 
> > >  
> > >
> > >  oracle
> > >  jdbc
> > >  10.2.0.1.0
> > >
> > >  
> > > 
> > >
> > > 
> > > And hibernate properties is following:
> > > 
> > > hibernate.connection.driver_class = oracle.jdbc.driver.OracleDriver
> > > hibernate.connection.url = jdbc:oracle:thin:@localhost:1521:orcl
> > > hibernate.connection.username = blablah
> > > hibernate.connection.password = blablah
> > > hibernate.dialect = org.hibernate.dialect.Oracle9Dialect
> > > 
> > > 
> > > Can you suggest what else could be wrong?
> > > 
> > > 
> > > Taavi
> > > 
> > > 
> > > Johann Reyes wrote:
> > >> Hello Taavi
> > >>
> > >> Did you set the ejb3 parameter to true?
> > >>
> > >> You can see an example here:
> > >>
> > >>
> > >
> >
> https://svn.mojo.codehaus.org/mojo/trunk/mojo/mojo-sandbox/hibernate3-maven-
> > >> plugin/src/test/project-jdk15/pom.xml
> > >>
> > >> Regards
> > >>
> > >> Johann Reyes
> > >>
> > >> -Original Message-
> > >> From: Taavi Sildeberg [mailto:[EMAIL PROTECTED] 
> > >> Sent: Monday, March 20, 2006 5:30 AM
> > >> To: Maven Users List
> > >> Subject: Problem hibernate3 plugin cfg2cfgxml
> > >>
> > >> Hello,
> > >>
> > >> I 

RE: Inaccurate interpretation of strings

2006-03-21 Thread Dixit, Sandeep (ProSource Solutions)
The value is not hard-coded. It is read from ${project.build.directory}.
How do I accomplish this then?

-Original Message-
From: Simon Kitching [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 21, 2006 2:23 PM
To: Maven Users List
Subject: Re: Inaccurate interpretation of strings

On Tue, 2006-03-21 at 12:37 -0500, Dixit, Sandeep (ProSource
Solutions)  
> ${project.build.directory}/EFTAppl-1.0-SNAPSHOT.ear
> 
> If the ${project.build.directory} contains special characters for
> example c:\abc\t.., it takes the \t as tab and thus the plug-in fails.
> Is there a way to deal with this?

Set project.build.directory to "c:/abc/t" instead? 
File paths using forward slashes work fine on Windows.

Regards,

Simon


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



---
***National City made the following annotations
---
This communication is a confidential and proprietary business communication.  
It is intended solely for the use of the designated recipient(s).  If this
communication is received in error, please contact the sender and delete 
this communication.
===

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



RE: [SOLVED] Re: mvn compile fails on Windows w/ JDK 1.5.0_06

2006-03-21 Thread Sean Hennessy
It is not uncommon that YMMV with deployments of Java clients to Win XP 
workstations.
For example there was gap in Win XP JRE packaging by Msoft for a period of time.
It places a burden on IT staff to ensure the correct service packs are 
installed..
See prior thread..
http://www.nabble.com/forum/ViewPost.jtp?post=1762829&framed=y

Sean

-Original Message-
From: Kathryn Huxtable [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 21, 2006 11:24 AM
To: Maven Users List
Subject: Re: [SOLVED] Re: mvn compile fails on Windows w/ JDK 1.5.0_06


I think there are two different windows installers for the JDK. A zip file and 
a windows installer. They may behave differently.

I use Mac OS X, my henchmen use Windows. I think I remember one of them having 
a similar problem, but not with Maven.


On 3/21/06 1:13 PM, "Alexandre Poitras" <[EMAIL PROTECTED]> wrote:

--
Kathryn Huxtable
Middleware Architect
Core Middleware
Information Technology, a division of Information Services
The University of Kansas

> Windows mysteries :)
> 
> On 3/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 
> wrote:
>> The re-install appears to have fixed the issue.  Looking at the 
>> contents of C:\Program Files\Java\jdk1.5.0_06, there appear to be 
>> more files in there then under the previous install.  The first 
>> install must have been incomplete.
>> 
>> I guess, if all else fails, re-install...
>> 
>> 
>> Ian
>> 
>> It's better to be hated for who you are
>> than loved for who you are not
>> 
>> Ian D. Stewart
>> Appl Dev Analyst-Advisory, DCS Automation
>> JPMorganChase Global Technology Infrastructure
>> Phone: (614) 244-2564
>> Pager: (888) 260-0078
>> 
>> 
>> 
>>   [EMAIL PROTECTED]
>>   chase.comTo:   "Maven Users List"
>> 
>>cc:
>>   03/21/2006 09:43 Subject:  Re: mvn compile
>> fails on Windows w/ JDK 1.5.0_06
>>   AM
>>   Please respond to
>>   "Maven Users
>>   List"
>> 
>> 
>> 
>> 
>> 
>> Sounds like it may be something specific to my installation then.  
>> Not quite the answer I was hoping for, but at least it's a start.
>> 
>> I'll try uninstalling and reinstalling JDK 1.5.0_06 and see if that 
>> gets me anywhere.
>> 
>> 
>> Ian
>> 
>> It's better to be hated for who you are
>> than loved for who you are not
>> 
>> Ian D. Stewart
>> Appl Dev Analyst-Advisory, DCS Automation
>> JPMorganChase Global Technology Infrastructure
>> Phone: (614) 244-2564
>> Pager: (888) 260-0078
>> 
>> 
>> 
>>   "Alexandre
>> 
>>   Poitras"  To:   "Maven Users
>> List" 
>>   > 
>>   @gmail.com>   Subject:  Re: mvn compile
>> fails on Windows w/ JDK 1.5.0_06
>> 
>>   03/21/2006 08:56
>> 
>>   AM
>> 
>>   Please respond to
>> 
>>   "Maven Users List"
>> 
>> 
>> 
>> 
>> 
>> 
>> I have never seen this problem and I have both a jdk and a jre 
>> installed.
>> 
>> On 3/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 
>> wrote:
>>> Dear List,
>>> 
>>> I recently upgraded my JDK from 1.5.0_04 to 1.5.0_06.  Now when I 
>>> run
>>> 
>>>   mvn compile
>>> 
>>> I get the following error:
>>> 
>>> Unable to locate the Javac Compiler in:
>>>   C:\Program Files\Java\jre1.5.0_06\..\lib\tools.jar
>>> Please ensure you are using JDK 1.4 or above and
>>> not a JRE (the com.sun.tools.javac.Main class is required). In most 
>>> cases you can change the location of your Java installation by 
>>> setting the JAVA_HOME environment variable.
>>> 
>>> Note that JAVA_HOME is set to C:\Program Files\Java\jdk1.5.0_06.
>>> 
>>> There appears to be a built-in assumption somewhere within 
>>> maven-compiler-plugin that ${java.home} == ${jre.home}\..  While 
>>> this was true under jdk1.5.0_04, it is not the case with jdk1.5.0_06 
>>> (The JDK is installed under C:\Program Files\Java\jdk1.5.0_06, while 
>>> the JRE is installed under C:\Program Files\Java\jre1.5.0_06).  I've 
>>> tried tracking down the place in the code where this assumption is 
>>> made, so that I could submit a patch, and got as far as 
>>> org.codehaus.plexus.compiler.manager.CompilerManager, but I haven't 
>>> been able to track down the location of the Plexus SVN repository to 
>>> research further.
>>> 
>>> Before I post a bug report, has any body else encountered this 
>>> problem,
>> and
>>> is there a patch and/or work around available?
>>> 
>>> 
>>> Thanks,
>>> Ian
>>> 
>>> It's better to be hated for who you are
>>> than loved for who you are not
>>> 
>>> Ian D. Stewart
>>> Appl Dev Analyst-Advisory, DCS Automation
>>> JPMorganChase Global Technology Infrastructure
>>> Phone: (614) 244-2564
>>> Pager: (888) 260-0078
>>> 
>>> 
>>> ---

Re: [m2] Problems with changelog-maven-plugin

2006-03-21 Thread Lee Meador
maven - 2.0.2
changelog plugin - 2.0-beta-1

-- Lee

On 3/20/06, allan ramirez <[EMAIL PROTECTED]> wrote:
>
> what version of changelog plugin are you using?
>
> -allan
>
> On 3/18/06, Tim Davies <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > Ive just been trying to get the changelog plugin to work for my maven2
> > sites. I find that only template pages are being generated and I get the
> > following errors in the output:
> >
> > [WARNING] Error loading report
> > org.apache.maven.changelog.ChangeLogReport - AbstractMethodError:
> > canGenerateReport()
> > [WARNING] Error loading report
> > org.apache.maven.changelog.DeveloperActivityReport -
> > AbstractMethodError: canGenerateReport()
> > [WARNING] Error loading report
> > org.apache.maven.changelog.FileActivityReport - AbstractMethodError:
> > canGenerateReport()
> >
> >
> > In my pom I have the scm defined as:
> >
> > 
> >
> > scm:svn:extssh:[EMAIL PROTECTED]
> > :/subversion/:Mapper/trunk
> >
> > scm:svn:extssh:[EMAIL PROTECTED]
> > :/subversion/:Mapper/trunk
> >   
> > 
> >
> > and the plugin configured with
> >
> > 
> > 
> > 
> >   org.codehaus.mojo
> >   changelog-maven-plugin
> >   2.0-beta-1
> >   
> > 
> >   dual-report
> >   
> > range
> > 30
> >   
> >   
> > changelog
> > file-activity
> > dev-activity
> >   
> > 
> >   
> >
> > 
> > 
> >
> > Can anyone offer any advice as it would be nice to get this working.
> >
> > cheers
> >
> > Tim Davies
> >
> > --
> > Tim Davies
> > Analyst Developer
> >
> > KTS PLC: Service you can bank on
> > 8th Floor, Finsbury Tower,
> > 103-105 Bunhill Row,
> > London  EC1Y 8LZ
> > tel: +44 (0)20 7256 2300
> > fax: +44 (0)20 7256 2301
> >
> > email: [EMAIL PROTECTED]
> > web: http://www.ktsplc.com
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


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


Re: user's settings.xml not being picked up

2006-03-21 Thread Lee Meador
mvn compile --settings settings.xml

you can have a path with the file name.

On 3/21/06, Milos Kleint <[EMAIL PROTECTED]> wrote:
>
> you can force use of a specific settings file with a command-line switch
> I think..
>
> Milos
>
> Pete wrote:
> > Thanks for the suggestins guys, but still no luck :-(
> >
> > 1) Tried subdirectory of /conf
> > 2) The above code snippet
> >
> >String uh = System.getProperty("user.home");
> > System.out.println("user.home is " + uh);
> > java.io.File m2 = new java.io.File(uh, ".m2");
> > java.io.File settings = new java.io.File(m2,
> "settings_test.xml");
> > settings.createNewFile();
> >
> > user.home is \\FILESERVER\Users\
> >
> > however putting the settings.xml in \\FILESERVER\Users\\.m2\
> > \.m2\
> >  >user.home=\\FILESERVER\Users\pthomas> next to the test
> > file settings_test.xml still doesn't work !
> >
> > Also tried subdirectory of /conf
> >
> > Any more ideas - this is normally something that just works, I must be
> > missing something simple here ?
> >
> >
> > On 21/03/06, Milos Kleint <[EMAIL PROTECTED]> wrote:
> >
> >> afaik teh algorithm is this:
> >> String uh = System.getproperty("user.home");
> >> File m2 = new File(uh, ".m2");
> >> File settings = new File(m2, "settings.xml");
> >>
> >> so probably maven is looking at some other place for your settings
> >> than you expect it to..
> >>
> >> Milos
> >>
> >> On 3/21/06, Pete <[EMAIL PROTECTED]> wrote:
> >>
> >>> Hi there I'm used to Maven2 picking up the settings.xml from
> >>>
> >>> C:\Documents and Settings\\.m2
> >>>
> >>> when in a windows environment, however I'm using Maven2 at a new
> company
> >>> now, and for some reason the user's settings.xml doesn't seem to be
> >>>
> >> being
> >>
> >>> picked up.
> >>>
> >>>
> >>> I have
> >>>
> >>> 
> >>>  
> >>>developer_me
> >>>
> >>>  D:/java/jboss-4.0/server/default/deploy
> >>>
> >>>   
> >>>  
> >>>
> >>>   
> >>>   developer_me
> >>>   
> >>>
> >>> yet when I do
> >>>
> >>> mvn projecthelp:active-profiles
> >>>
> >>> the profile isn't listed and the properties are unset.
> >>>
> >>> Any idea how I can verify where Maven2 is looking for the user's
> >>> settings.xml.
> >>>
> >>> I did create the .m2 directory and settings.xml manually.
> >>>
> >>> PS. The conf/settings.xml is working.
> >>>
> >>>
> >>>
> >> -
> >> 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]
>
>


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


Re: M2 assembly plugin works from wrong directory if run via Reactor

2006-03-21 Thread jerome lacoste
On 3/21/06, Pete <[EMAIL PROTECTED]> wrote:
> 1) I am using  assembly:assembly  during the normal lifecycle 'package'
> phase, on a Maven2 submodule's pom
>
> with a descriptor as follows :-
>
>
> 
>  dep
>  
>   zip
>  
>  false
>
>  
>   
>target
>
>
> *.ear
> *.jar
>
>   
>
>   
>src/main/assembly/resources
>
>
> *.xml
>
>
>   
>  
> 
>
> All works fine if this is executed from the submodule's pom.xml directory,
> but if it is run via the reactor from parent project, then the
>
> value for target
> becomes the location relative to the parent pom (which obviously doesn't
> have a target directory)
>
> How can I make the target relative to the child project always ?
>
> Here's the child's pom.xml part :-
>
> 
>  maven-assembly-plugin
>  
>   
>package
>
> 
>  src/main/assembly/descriptor.xml
> 
> ${project.build.finalName}
>
>
> assembly
>
>   
>  
> 

I believe this bug was fixed on the trunk 5 months ago. Unfortunately
the fix didn't make it into the 2.0.x branch. Try using  the
2.1-SNAPSHOT version from the snapshots repository.

Jerome

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



weird problem in

2006-03-21 Thread raghurajan . x . gurunathan
Hi All,

I have some weird problem in may be pom inheritance

This is what my dirctory structure

Project
Module A
SubModule-A
|-pom.xml
   |-pom.xml

 Module B
SubModule-B
|- pom.xml
  |-pom.xml
|-pom.xml

lets say i have SubModule-A has a dependency in my SubModule-B

in my SubModule-B pom.xml i have

Project.ModuleA
SubModule-A
${proj.version}
jar
provided

 

here ${proj.version} comes from my .m2>settings.xml

When i run mvn deploy from top level (ie) c:\project everything works fine

but when i just want to deploy lets say Module B then when i ran mvn 
deploy from c:\project\ModuleB

its giving me error

   Downloading: http://Mycompany.repository.com/Project/Module 
A/${proj.version}/Module A-${proj.version}.pom
[WARNING] Unable to get resource from repository Dev-Repo 
(http://Mycompany.repository.com)
Downloading: http://repo1.maven.org/maven2/Project/Module 
A/${proj.version}/Module A-${proj.version}.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Failed to resolve artifact.

GroupId: Project
ArtifactId: Module A
Version: ${proj.version}

Reason: Unable to download the artifact from any repository

  Project.Module A:pom:${proj.version}

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  Dev-Repo (http://Mycompany.repository.com)



What is going wrong here??


Thanks,
Raghu 


Re: weird problem in

2006-03-21 Thread Eric Redmond
Do you really have a space in your artifact ID? Is it really named "Module
A"?

On 3/21/06, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> I have some weird problem in may be pom inheritance
>
> This is what my dirctory structure
>
> Project
> Module A
> SubModule-A
> |-pom.xml
>|-pom.xml
>
>  Module B
> SubModule-B
> |- pom.xml
>   |-pom.xml
> |-pom.xml
>
> lets say i have SubModule-A has a dependency in my SubModule-B
>
> in my SubModule-B pom.xml i have
> 
> Project.ModuleA
> SubModule-A
> ${proj.version}
> jar
> provided
> 
>
>
> here ${proj.version} comes from my .m2>settings.xml
>
> When i run mvn deploy from top level (ie) c:\project everything works fine
>
> but when i just want to deploy lets say Module B then when i ran mvn
> deploy from c:\project\ModuleB
>
> its giving me error
>
>Downloading: http://Mycompany.repository.com/Project/Module
> A/${proj.version}/Module A-${proj.version}.pom
> [WARNING] Unable to get resource from repository Dev-Repo
> (http://Mycompany.repository.com)
> Downloading: http://repo1.maven.org/maven2/Project/Module
> A/${proj.version}/Module A-${proj.version}.pom
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> [INFO]
>
> 
> [ERROR] BUILD ERROR
> [INFO]
>
> 
> [INFO] Failed to resolve artifact.
>
> GroupId: Project
> ArtifactId: Module A
> Version: ${proj.version}
>
> Reason: Unable to download the artifact from any repository
>
>   Project.Module A:pom:${proj.version}
>
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   Dev-Repo (http://Mycompany.repository.com)
>
>
>
> What is going wrong here??
>
>
> Thanks,
> Raghu
>
>


Re: weird problem in

2006-03-21 Thread raghurajan . x . gurunathan
No Space it just ModuleA






Thanks,
Raghu 





"Eric Redmond" <[EMAIL PROTECTED]>
03/21/2006 02:21 PM
Please respond to "Maven Users List"

 
To: "Maven Users List" 
cc: 
Subject:Re: weird problem in


Do you really have a space in your artifact ID? Is it really named "Module
A"?

On 3/21/06, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> I have some weird problem in may be pom inheritance
>
> This is what my dirctory structure
>
> Project
> Module A
> SubModule-A
> |-pom.xml
>|-pom.xml
>
>  Module B
> SubModule-B
> |- pom.xml
>   |-pom.xml
> |-pom.xml
>
> lets say i have SubModule-A has a dependency in my SubModule-B
>
> in my SubModule-B pom.xml i have
> 
> Project.ModuleA
> SubModule-A
> ${proj.version}
> jar
> provided
> 
>
>
> here ${proj.version} comes from my .m2>settings.xml
>
> When i run mvn deploy from top level (ie) c:\project everything works 
fine
>
> but when i just want to deploy lets say Module B then when i ran mvn
> deploy from c:\project\ModuleB
>
> its giving me error
>
>Downloading: http://Mycompany.repository.com/Project/Module
> A/${proj.version}/Module A-${proj.version}.pom
> [WARNING] Unable to get resource from repository Dev-Repo
> (http://Mycompany.repository.com)
> Downloading: http://repo1.maven.org/maven2/Project/Module
> A/${proj.version}/Module A-${proj.version}.pom
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> [INFO]
>
> 

> [ERROR] BUILD ERROR
> [INFO]
>
> 

> [INFO] Failed to resolve artifact.
>
> GroupId: Project
> ArtifactId: Module A
> Version: ${proj.version}
>
> Reason: Unable to download the artifact from any repository
>
>   Project.Module A:pom:${proj.version}
>
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   Dev-Repo (http://Mycompany.repository.com)
>
>
>
> What is going wrong here??
>
>
> Thanks,
> Raghu
>
>




Re: weird problem in

2006-03-21 Thread Wayne Fay
Perhaps try "mvn install" and perhaps "mvn deploy" in ModuleA itself first.

Then try "mvn deploy" in ModuleB.

Wayne


On 3/21/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> No Space it just ModuleA
>
>
>
>
>
>
> Thanks,
> Raghu
>
>
>
>
>
> "Eric Redmond" <[EMAIL PROTECTED]>
> 03/21/2006 02:21 PM
> Please respond to "Maven Users List"
>
>
>To: "Maven Users List" 
>cc:
>Subject:Re: weird problem in
>
>
> Do you really have a space in your artifact ID? Is it really named "Module
> A"?
>
> On 3/21/06, [EMAIL PROTECTED] <
> [EMAIL PROTECTED]> wrote:
> >
> > Hi All,
> >
> > I have some weird problem in may be pom inheritance
> >
> > This is what my dirctory structure
> >
> > Project
> > Module A
> > SubModule-A
> > |-pom.xml
> >|-pom.xml
> >
> >  Module B
> > SubModule-B
> > |- pom.xml
> >   |-pom.xml
> > |-pom.xml
> >
> > lets say i have SubModule-A has a dependency in my SubModule-B
> >
> > in my SubModule-B pom.xml i have
> > 
> > Project.ModuleA
> > SubModule-A
> > ${proj.version}
> > jar
> > provided
> > 
> >
> >
> > here ${proj.version} comes from my .m2>settings.xml
> >
> > When i run mvn deploy from top level (ie) c:\project everything works
> fine
> >
> > but when i just want to deploy lets say Module B then when i ran mvn
> > deploy from c:\project\ModuleB
> >
> > its giving me error
> >
> >Downloading: http://Mycompany.repository.com/Project/Module
> > A/${proj.version}/Module A-${proj.version}.pom
> > [WARNING] Unable to get resource from repository Dev-Repo
> > (http://Mycompany.repository.com)
> > Downloading: http://repo1.maven.org/maven2/Project/Module
> > A/${proj.version}/Module A-${proj.version}.pom
> > [WARNING] Unable to get resource from repository central
> > (http://repo1.maven.org/maven2)
> > [INFO]
> >
> >
> 
> > [ERROR] BUILD ERROR
> > [INFO]
> >
> >
> 
> > [INFO] Failed to resolve artifact.
> >
> > GroupId: Project
> > ArtifactId: Module A
> > Version: ${proj.version}
> >
> > Reason: Unable to download the artifact from any repository
> >
> >   Project.Module A:pom:${proj.version}
> >
> > from the specified remote repositories:
> >   central (http://repo1.maven.org/maven2),
> >   Dev-Repo (http://Mycompany.repository.com)
> >
> >
> >
> > What is going wrong here??
> >
> >
> > Thanks,
> > Raghu
> >
> >
>
>
>
>


Re: weird problem in

2006-03-21 Thread raghurajan . x . gurunathan
But when i ran deploy in maven life cycle it dows the install first and 
then continious to deploy right?

In that case why do i need to do install manually first?






Thanks,
Raghu 





"Wayne Fay" <[EMAIL PROTECTED]>
03/21/2006 02:46 PM
Please respond to "Maven Users List"

 
To: "Maven Users List" 
cc: 
Subject:Re: weird problem in


Perhaps try "mvn install" and perhaps "mvn deploy" in ModuleA itself 
first.

Then try "mvn deploy" in ModuleB.

Wayne


On 3/21/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> No Space it just ModuleA
>
>
>
>
>
>
> Thanks,
> Raghu
>
>
>
>
>
> "Eric Redmond" <[EMAIL PROTECTED]>
> 03/21/2006 02:21 PM
> Please respond to "Maven Users List"
>
>
>To: "Maven Users List" 
>cc:
>Subject:Re: weird problem in
>
>
> Do you really have a space in your artifact ID? Is it really named 
"Module
> A"?
>
> On 3/21/06, [EMAIL PROTECTED] <
> [EMAIL PROTECTED]> wrote:
> >
> > Hi All,
> >
> > I have some weird problem in may be pom inheritance
> >
> > This is what my dirctory structure
> >
> > Project
> > Module A
> > SubModule-A
> > |-pom.xml
> >|-pom.xml
> >
> >  Module B
> > SubModule-B
> > |- pom.xml
> >   |-pom.xml
> > |-pom.xml
> >
> > lets say i have SubModule-A has a dependency in my SubModule-B
> >
> > in my SubModule-B pom.xml i have
> > 
> > Project.ModuleA
> > SubModule-A
> > ${proj.version}
> > jar
> > provided
> > 
> >
> >
> > here ${proj.version} comes from my .m2>settings.xml
> >
> > When i run mvn deploy from top level (ie) c:\project everything works
> fine
> >
> > but when i just want to deploy lets say Module B then when i ran mvn
> > deploy from c:\project\ModuleB
> >
> > its giving me error
> >
> >Downloading: http://Mycompany.repository.com/Project/Module
> > A/${proj.version}/Module A-${proj.version}.pom
> > [WARNING] Unable to get resource from repository Dev-Repo
> > (http://Mycompany.repository.com)
> > Downloading: http://repo1.maven.org/maven2/Project/Module
> > A/${proj.version}/Module A-${proj.version}.pom
> > [WARNING] Unable to get resource from repository central
> > (http://repo1.maven.org/maven2)
> > [INFO]
> >
> >
> 

> > [ERROR] BUILD ERROR
> > [INFO]
> >
> >
> 

> > [INFO] Failed to resolve artifact.
> >
> > GroupId: Project
> > ArtifactId: Module A
> > Version: ${proj.version}
> >
> > Reason: Unable to download the artifact from any repository
> >
> >   Project.Module A:pom:${proj.version}
> >
> > from the specified remote repositories:
> >   central (http://repo1.maven.org/maven2),
> >   Dev-Repo (http://Mycompany.repository.com)
> >
> >
> >
> > What is going wrong here??
> >
> >
> > Thanks,
> > Raghu
> >
> >
>
>
>
>




jarjar plugin

2006-03-21 Thread Jakob Vad Nielsen
Helo,

Does anyone know of a jarjar plugin for M2?
For example based on the One-JAR project
(http://one-jar.sourceforge.net).

If not I'll start writing one.

/Jakob

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



RE: jarjar plugin

2006-03-21 Thread Mick Knutson

This sounds like uber-jar
Try http://mojo.codehaus.org/ for jarjar

---
Thank You
Mick Knutson

BASE logic, inc.
(415) 648-1804 (San Francisco, CA)
http://www.BASELogic.com

http://www.djmick.com
---





From: "Jakob Vad Nielsen" <[EMAIL PROTECTED]>
Reply-To: "Maven Users List" 
To: 
Subject: jarjar plugin
Date: Tue, 21 Mar 2006 22:27:22 +0100

Helo,

Does anyone know of a jarjar plugin for M2?
For example based on the One-JAR project
(http://one-jar.sourceforge.net).

If not I'll start writing one.

/Jakob

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



Download dependencies

2006-03-21 Thread Aaron Freeman
Is there a command that I can run that will download all the
dependency jars for a project into a directory. I think I have seen
something like this before, but I can't find anything about it on the
net.

Any ideas?

Thanks!

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



RE: Download dependencies

2006-03-21 Thread Shanmugam, Venkat
antlib could help. But it keeps folder structure.

http://maven.apache.org/ant-tasks.html

Thanks,
Venkat

-Original Message-
From: Aaron Freeman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 21, 2006 4:30 PM
To: Maven
Subject: Download dependencies

Is there a command that I can run that will download all the dependency
jars for a project into a directory. I think I have seen something like
this before, but I can't find anything about it on the net.

Any ideas?

Thanks!

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

--
This e-mail and any files transmitted with it may contain privileged or 
confidential information.
It is solely for use by the individual for whom it is intended, even if 
addressed incorrectly.
If you received this e-mail in error, please notify the sender; do not 
disclose, copy, distribute,
or take any action in reliance on the contents of this information; and delete 
it from
your system. Any other use of this e-mail is prohibited.

Thank you for your compliance.
--

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



Re: jarjar plugin

2006-03-21 Thread Torsten Curdt


On 22.03.2006, at 08:27, Jakob Vad Nielsen wrote:


Helo,

Does anyone know of a jarjar plugin for M2?


You could finish up the work for the minijar plugin

 http://vafer.org/blog/tag/minijar
 http://mojo.codehaus.org/minijar-maven-plugin/

The code for inlining dependencies is there but not
integrated yet.

cheers
--
Torsten



smime.p7s
Description: S/MIME cryptographic signature


include jboss-web.xml file

2006-03-21 Thread thenew05
I can not get maven2 to add my *jboss-web.xml* file in my war file. Here is
my plugin for it!
With the  my war file builds as empty war no class files added.

How do I get this file in my war?




maven-war-plugin



${basedir}/WEB-INF/web.xml

/usr2/local/jboss-4.0.3SP1/server/nextServer/deploy/







Thanks


Re: Maven model converter

2006-03-21 Thread Laurie Harper
Awesome, found it, thanks. Interestingly, the thread concludes with a 
reference to the same (Java) util code I was puzzling over, so I guess I 
wasn't so very far off the mark to be looking there ;-)


L.

Wayne Fay wrote:

This was discussed and the XSLT posted to the users list just a few days ago...

Search Archives for an email (with XSLT attachment) from Matthew L
Daniel in the thread titled "Subject: Re: maven-corburtura POM v3 in
repo" on March 11, 2006.

;-)
Wayne


On 3/21/06, Laurie Harper <[EMAIL PROTECTED]> wrote:

Hmm, I was thinking of the thing in maven/meven-model-converter in svn;
I'm not aware of an XSLT transformation. Where's that at?

Thanks,

L.

Wayne Fay wrote:

If I'm not mistaken, its just an XSLT, right?

So you load up your Maven1 project.xml file, then apply the XSLT to it
using an XSLT engine, and poof the output is a Maven2 pom.xml file.
;-)

If this is all Greek to you, reply back and I'll provide more exact
directions ie "link to download" etc.

Wayne


On 3/20/06, Laurie Harper <[EMAIL PROTECTED]> wrote:

How do I use the Maven model converter? Is there a goal I can execute
('mvn convert' or something) to automatically migrate a Maven1 POM to a
Maven2 POM?

L.


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




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





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



Re: Howto configure boot classpath for several plugins?

2006-03-21 Thread Frank Seidinger


Frank Seidinger wrote:
> 
> I want to build J2ME applications with maven. To do this, you have to use
> another boot classpath for the compiler. This ensures, that you only can
> use classes known to the J2ME platform. I guess this can be done via
> configuration of the compiler plugin.
> 

I digged into the sources of the maven-compiler-plugin and found, that the
bootclasspath cannot be configured. This is not an issue of the
maven-compiler-plugin, because it relies on the plexus javac plugin, that
also lacks the ability to specify a bootclasspath.


Frank Seidinger wrote:
> 
> Because I don't want to specify the classpath twice, I'm looking for a way
> to specify the boot class path in the pom at one place and inject the
> configuration into the compiler plugin and the preverify plugin. Is there
> an easy way to do this?
> 

I went through the pom reference and found no obvious starting point to
place such a configuration. Maybe the use of profiles could be a help. I
will investigate this a little further.

Kind regards,

Frank

--
View this message in context: 
http://www.nabble.com/Howto-configure-boot-classpath-for-several-plugins--t1312917.html#a3522485
Sent from the Maven - Users forum at Nabble.com.


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



Re: deploy: invalid private key

2006-03-21 Thread Stephen Duncan
Where you have $user_name and $usr_home do you have in your actual
settings.xml the real values?  Wasn't clear since you used
 later to represent a value actually replaced in your
files...

-Stephen

On 3/21/06, Bruno Patini Furtado <[EMAIL PROTECTED]> wrote:
> Hi folks,
> I'm trying to deploy a artifact to a local intranet repository using SCP, I
> can establish a ssh session using my pass phrase as expected, but I'm having
> to success in configuring maven to make it.
>
> My settings.xml servers tag goes like this:
> 
>   ssh-repository
>   $user_name
>   $usr_home/.ssh/identity
>   
> 
>
> My pom.xml distributionManagement tag:
>   
> 
>   ssh-repository
>   scp:///
> 
>   
>
> I'm not using putty, which I've read has a key format issue and a key
> converter.
> I've looked a lot at the mailing list archives and in the maven
> documentation site.
> Any help in any page will be most appreciated :)
>
>
> --
> "Minds are like parachutes, they work best when open."
>
> Bruno Patini Furtado
> Software Developer
> webpage: www.bpfurtado.net
> software development blog: http://bpfurtado.livejournal.com
>
>


--
Stephen Duncan Jr
www.stephenduncanjr.com

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



Re: weird problem in

2006-03-21 Thread raghurajan . x . gurunathan
I tried by running install first and then deploy still same problem

why ${proj.version}from .m2\settings.xml doesn't apply to all artifact

Again, its working only when do it from top level ie when i build all 
artifacts then its working, but not when i want deploy single artifact 
which has some other artifact as a dependecy, eventhough those are 
available in repository

Please help






Thanks,
Raghu 





[EMAIL PROTECTED]
03/21/2006 03:14 PM
Please respond to "Maven Users List"

 
To: "Maven Users List" 
cc: "Maven Users List" 
Subject:Re: weird problem in


But when i ran deploy in maven life cycle it dows the install first and 
then continious to deploy right?

In that case why do i need to do install manually first?






Thanks,
Raghu 





"Wayne Fay" <[EMAIL PROTECTED]>
03/21/2006 02:46 PM
Please respond to "Maven Users List"

 
To: "Maven Users List" 
cc: 
Subject:Re: weird problem in


Perhaps try "mvn install" and perhaps "mvn deploy" in ModuleA itself 
first.

Then try "mvn deploy" in ModuleB.

Wayne


On 3/21/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> No Space it just ModuleA
>
>
>
>
>
>
> Thanks,
> Raghu
>
>
>
>
>
> "Eric Redmond" <[EMAIL PROTECTED]>
> 03/21/2006 02:21 PM
> Please respond to "Maven Users List"
>
>
>To: "Maven Users List" 
>cc:
>Subject:Re: weird problem in
>
>
> Do you really have a space in your artifact ID? Is it really named 
"Module
> A"?
>
> On 3/21/06, [EMAIL PROTECTED] <
> [EMAIL PROTECTED]> wrote:
> >
> > Hi All,
> >
> > I have some weird problem in may be pom inheritance
> >
> > This is what my dirctory structure
> >
> > Project
> > Module A
> > SubModule-A
> > |-pom.xml
> >|-pom.xml
> >
> >  Module B
> > SubModule-B
> > |- pom.xml
> >   |-pom.xml
> > |-pom.xml
> >
> > lets say i have SubModule-A has a dependency in my SubModule-B
> >
> > in my SubModule-B pom.xml i have
> > 
> > Project.ModuleA
> > SubModule-A
> > ${proj.version}
> > jar
> > provided
> > 
> >
> >
> > here ${proj.version} comes from my .m2>settings.xml
> >
> > When i run mvn deploy from top level (ie) c:\project everything works
> fine
> >
> > but when i just want to deploy lets say Module B then when i ran mvn
> > deploy from c:\project\ModuleB
> >
> > its giving me error
> >
> >Downloading: http://Mycompany.repository.com/Project/Module
> > A/${proj.version}/Module A-${proj.version}.pom
> > [WARNING] Unable to get resource from repository Dev-Repo
> > (http://Mycompany.repository.com)
> > Downloading: http://repo1.maven.org/maven2/Project/Module
> > A/${proj.version}/Module A-${proj.version}.pom
> > [WARNING] Unable to get resource from repository central
> > (http://repo1.maven.org/maven2)
> > [INFO]
> >
> >
> 

> > [ERROR] BUILD ERROR
> > [INFO]
> >
> >
> 

> > [INFO] Failed to resolve artifact.
> >
> > GroupId: Project
> > ArtifactId: Module A
> > Version: ${proj.version}
> >
> > Reason: Unable to download the artifact from any repository
> >
> >   Project.Module A:pom:${proj.version}
> >
> > from the specified remote repositories:
> >   central (http://repo1.maven.org/maven2),
> >   Dev-Repo (http://Mycompany.repository.com)
> >
> >
> >
> > What is going wrong here??
> >
> >
> > Thanks,
> > Raghu
> >
> >
>
>
>
>






Migrating from ant to maven

2006-03-21 Thread raja bangaru
Can anyone guide me to convert my build.xml of  a project
file to maven configuration files?
I also need to use 2 projects configured by maven...


Re: Migrating from ant to maven

2006-03-21 Thread Subhash Chandran
There is no automated convertion available for build.xml. You have to create
a new setup. Go through this tutorial:

http://maven.apache.org/guides/getting-started/index.html

Regards,
Subhash.

On 3/22/06, raja bangaru <[EMAIL PROTECTED]> wrote:
>
> Can anyone guide me to convert my build.xml of  a project
> file to maven configuration files?
> I also need to use 2 projects configured by maven...
>
>


Migrating from ant to maven

2006-03-21 Thread raja bangaru
I'm currently working with maven 1.0.2
Did any one ever worked on migrating from ant to maven?

i have a complex build.xml file of my project
i need to migrate to maven

also multi projects have to be maintained with maven 1.0.3


RE: Migrating from ant to maven

2006-03-21 Thread Anthony Kong
Many people have migrated from ant to maven. And I did too.

I think there is no magic bullet to the migration. You have to be familiar
with what your "complex" build.xml does and then translate the build
processes in your build.xml to corresponding maven goals. I ended up writing
a maven plugin for our projects.

Maybe it would be easier for us to help u if you let us know what specific
problem you have in translating your build.xml to maven. 

The documentation on the site is sufficient for me to make the migration.
So, take a look at the doc first. 

Cheers, 
AK

 

-Original Message-
From: raja bangaru [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 22 March 2006 5:01 PM
To: users@maven.apache.org
Subject: Migrating from ant to maven

I'm currently working with maven 1.0.2
Did any one ever worked on migrating from ant to maven?

i have a complex build.xml file of my project i need to migrate to maven

also multi projects have to be maintained with maven 1.0.3


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



Re: Migrating from ant to maven

2006-03-21 Thread raja bangaru
Thanks
but would u let me know the doc urls which would help me to migrate to
maven?
also i need to configure eclipse IDE with maven.

Regards,
RAJA

On 3/22/06, Anthony Kong <[EMAIL PROTECTED]> wrote:
>
> Many people have migrated from ant to maven. And I did too.
>
> I think there is no magic bullet to the migration. You have to be familiar
> with what your "complex" build.xml does and then translate the build
> processes in your build.xml to corresponding maven goals. I ended up
> writing
> a maven plugin for our projects.
>
> Maybe it would be easier for us to help u if you let us know what specific
> problem you have in translating your build.xml to maven.
>
> The documentation on the site is sufficient for me to make the migration.
> So, take a look at the doc first.
>
> Cheers,
> AK
>
>
>
> -Original Message-
> From: raja bangaru [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 22 March 2006 5:01 PM
> To: users@maven.apache.org
> Subject: Migrating from ant to maven
>
> I'm currently working with maven 1.0.2
> Did any one ever worked on migrating from ant to maven?
>
> i have a complex build.xml file of my project i need to migrate to maven
>
> also multi projects have to be maintained with maven 1.0.3
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Migrating from ant to maven

2006-03-21 Thread Arnaud HERITIER
To migrate to maven from ant you'll find some documentation here :
http://maven.apache.org/maven-1.x/start/maven-for-ant-users.html
But it focused on maven-1 and not maven-2
I don't know if it's better for you to use maven 1 or maven 2.

Arnaud

On 3/22/06, raja bangaru <[EMAIL PROTECTED]> wrote:
>
> Thanks
> but would u let me know the doc urls which would help me to migrate to
> maven?
> also i need to configure eclipse IDE with maven.
>
> Regards,
> RAJA
>
> On 3/22/06, Anthony Kong <[EMAIL PROTECTED]> wrote:
> >
> > Many people have migrated from ant to maven. And I did too.
> >
> > I think there is no magic bullet to the migration. You have to be
> familiar
> > with what your "complex" build.xml does and then translate the build
> > processes in your build.xml to corresponding maven goals. I ended up
> > writing
> > a maven plugin for our projects.
> >
> > Maybe it would be easier for us to help u if you let us know what
> specific
> > problem you have in translating your build.xml to maven.
> >
> > The documentation on the site is sufficient for me to make the
> migration.
> > So, take a look at the doc first.
> >
> > Cheers,
> > AK
> >
> >
> >
> > -Original Message-
> > From: raja bangaru [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, 22 March 2006 5:01 PM
> > To: users@maven.apache.org
> > Subject: Migrating from ant to maven
> >
> > I'm currently working with maven 1.0.2
> > Did any one ever worked on migrating from ant to maven?
> >
> > i have a complex build.xml file of my project i need to migrate to maven
> >
> > also multi projects have to be maintained with maven 1.0.3
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


Proxy optional

2006-03-21 Thread andreas.ebbert-karroum
Hi,
 
can I somehow configute the proxy setting optional? So that when I'm not 
connected to the company intranet, the proxy is ignored and direct http 
requests are made?
 
Andreas Ebbert-Karroum 
  Software Design Engineer - Nokia Networks Services / Middleware 
  phone: +49-211-94123928, fax: +49-211-94123838 
  Heltorfer Straße 1, 40472 Düsseldorf, Germany 




This message is confidential. If you have received this message in error, 
please delete it from your system. You should not copy it for any purpose, or 
disclose its contents to any other person. Internet communications are not 
secure and therefore Nokia GmbH does not accept legal responsibility for the 
contents of this message as it has been transmitted over a public network. 
Thank you. 

Nokia GmbH, Nokia Networks is a German Company. Further information about the 
Company is available from its principal offices at Heltorferstrasse 1, D-40472, 
Düsseldorf, Germany and from the website at http://www.nokia.com/ 





Re: Proxy optional

2006-03-21 Thread Jochen Wiedmann
On 3/22/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:

> can I somehow configute the proxy setting optional? So that when I'm not 
> connected to the company intranet, the proxy is ignored and direct http 
> requests are made?

Basically, this is what profiles are for. Profiles can be activated by
various things. However, AFAIK, it is not possible to select a profile
based on network environment.

As Maven is not the only program that needs a different configuration
inside, or outside, of the company, I have choosen a different
approach: A program detects the network environment at startup. For
example, it chooses between "home", and "office". Based on its choice,
it copies a number of files from either of the folders "home", or
"office" to the right locations. At shutdown the same program is
called. It's task is copying the same files to the respective folder,
so that settings are saved.


Jochen

--
Whenever you find yourself on the side of the
majority, it is time to pause and reflect.
(Mark Twain)

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



Re: Proxy error

2006-03-21 Thread Jeff Mutonho
Hi guys
May the maven gurus help me with this.I'm totally stumped

On 3/20/06, Jeff Mutonho <[EMAIL PROTECTED]> wrote:
> I have a project that's been setup using maven 1.1.Running the first
> build I'm getting the error message :
>
> Attempting to download commons-jelly-tags-antlr-20030211.143720.jar.
> No credentials available for the 'null' authentication realm at 
> .co.za
> Error retrieving artifact from [http://www.ibiblio.org/maven]: 
> org.apache.maven.
> wagon.authorization.AuthorizationException: Not authorized by proxy.
> WARNING: Failed to download commons-jelly-tags-antlr-20030211.143720.jar.
> Attempting to download commons-lang-2.0.jar.
> No credentials available for the 'null' authentication realm at 
> .co.za
>
> I have the following in my build.properties :
>
> maven.proxy.host=.co.za
> maven.proxy.port=80
>
>
> How do I get around this?
>
>
> --
> "All I ask is a chance to prove that money can't make me happy."
>
> Jeff  Mutonho
> Java/J2EE Developer
> mob: + 27 82 907 6420
>
> GoogleTalk : ejbengine
> Skype: ejbengine
> Registered Linux user number 366042
>


--
"All I ask is a chance to prove that money can't make me happy."

Jeff  Mutonho
Java/J2EE Developer
mob: + 27 82 907 6420

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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