Ваше письмо удалено за спам

2008-11-04 Thread help

Здравствуйте!
Ваше письмо принято за спам и удалено.
Если вы считаете это ошибкой, то позвоните пожалуйста по телефону 
+7(812)578-09-03 в службу поддержки.
===Вашего письмо===
Return-Path: <[EMAIL PROTECTED]>
Received: from <[EMAIL PROTECTED]>
  by inc.ru (CommuniGate Pro RULES 4.1.8)
  with RULES id 4034335; Mon, 03 Nov 2008 17:46:08 +0300
X-Autogenerated: Mirror
X-Mirrored-by: <[EMAIL PROTECTED]>
Received: from mail.netltd.ru (account [EMAIL PROTECTED])
  by inc.ru (CommuniGate Pro RPOP 4.1.8)
  with RPOP id 4034334 for [EMAIL PROTECTED]; Mon, 03 Nov 2008 17:46:08 +0300
X-Antivirus-passed: yes
X-Real-To: [EMAIL PROTECTED]
Received: from <[EMAIL PROTECTED]>
  by inc.ru (CommuniGate Pro RULES 4.1.8)
  with RULES id 28076059; Mon, 03 Nov 2008 17:45:19 +0300
X-Autogenerated: Mirror
X-Mirrored-by: <[EMAIL PROTECTED]>
X-Antispam-passed: yes
X-Antispam: yes
X-Real-To: <[EMAIL PROTECTED]>
X-Antivirus: yes
Received: from mail.apache.org ([140.211.11.2] verified)
  by inc.ru (CommuniGate Pro SMTP 4.1.8)
  with SMTP id 28076047 for [EMAIL PROTECTED]; Mon, 03 Nov 2008 17:45:18 +0300
Received: (qmail 69216 invoked by uid 500); 3 Nov 2008 14:45:14 -
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: 
List-Help: 
List-Post: 
List-Id: "Maven Users List" 
Reply-To: "Maven Users List" 
Delivered-To: mailing list users@maven.apache.org
Received: (qmail 69205 invoked by uid 99); 3 Nov 2008 14:45:14 -
Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136)
by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 06:45:14 -0800
X-ASF-Spam-Status: No, hits=-4.0 required=10.0
tests=RCVD_IN_DNSWL_MED,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: unknown (athena.apache.org: error in processing during lookup of 
[EMAIL PROTECTED])
Received: from [194.150.244.65] (HELO sbbmail4.sbb.ch) (194.150.244.65)
by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 14:43:55 +
Received: from intmail1.sbb.ch (intmail1.sbb.ch [10.104.89.164])
by sbbmail4.sbb.ch (Switch-3.2.5/Switch-3.2.5) with ESMTP id 
mA3EfNCx016068
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL);
Mon, 3 Nov 2008 15:41:23 +0100
Received: from i11712.sbb.ch (i11712.sbb.ch [10.104.20.247])
by intmail1.sbb.ch (Switch-3.2.5/Switch-3.2.5) with ESMTP id 
mA3EfKYC000633
(version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO);
Mon, 3 Nov 2008 15:41:21 +0100
Received: from SBB-EXCH02.sbb.ch ([10.104.20.245]) by i11712.sbb.ch
 ([10.104.20.247]) with mapi; Mon, 3 Nov 2008 15:41:20 +0100
From: "Baeriswyl Kuno - Extern (IT-BA-MV)" <[EMAIL PROTECTED]>
To: "'Maven Users List'" ,
"'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>
Date: Mon, 3 Nov 2008 15:41:20 +0100
Subject: AW: Assembly with Multi Module Project
Thread-Topic: Assembly with Multi Module Project
Thread-Index: Ack9wSJ+4Z0EPW0YRRW3Ooy055HZEwAAQp9w
Message-ID: <[EMAIL PROTECTED]>
In-Reply-To: <[EMAIL PROTECTED]>
Accept-Language: en-US, de-CH
Content-Language: de-DE
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US, de-CH
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Virus-Checked: Checked by ClamAV on apache.org



inheritance? Root is parent of M3!

K

-Ursprьngliche Nachricht-
Von: Karl Heinz Marbaise [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 3. November 2008 15:33
An: users@maven.apache.org
Betreff: Assembly with Multi Module Project


Hi there,

i have a working setup with a multi module which is working fine.

But now i have observed a little strange thing which i don't understand.


Root
  +--- M1
  +--- M2
  +--- M3

If i do a mvn clean package from Root the defined assemblies will be generated. 
If i do a mvn clean package within M3 than the assemblies of M3 will be created 
too, but the filters will be replaced in contradiction to the above case...

So does someone has an idea or a hint ?

Thanks in advance...
Kind Regards
Karl Heinz Marbaise
--
SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029
Hauptstrasse 177 USt.IdNr: DE191347579
52146 Wьrselen   http://www.soebes.de

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



Ваше письмо удалено за спам

2008-11-04 Thread help

Здравствуйте!
Ваше письмо принято за спам и удалено.
Если вы считаете это ошибкой, то позвоните пожалуйста по телефону 
+7(812)578-09-03 в службу поддержки.
===Вашего письмо===
Return-Path: <[EMAIL PROTECTED]>
Received: from <[EMAIL PROTECTED]>
  by inc.ru (CommuniGate Pro RULES 4.1.8)
  with RULES id 4036056; Tue, 04 Nov 2008 04:08:28 +0300
X-Autogenerated: Mirror
X-Mirrored-by: <[EMAIL PROTECTED]>
Received: from mail.netltd.ru (account [EMAIL PROTECTED])
  by inc.ru (CommuniGate Pro RPOP 4.1.8)
  with RPOP id 4036055 for [EMAIL PROTECTED]; Tue, 04 Nov 2008 04:08:28 +0300
X-Antivirus-passed: yes
X-Real-To: [EMAIL PROTECTED]
Received: from <[EMAIL PROTECTED]>
  by inc.ru (CommuniGate Pro RULES 4.1.8)
  with RULES id 28080319; Tue, 04 Nov 2008 04:08:04 +0300
X-Autogenerated: Mirror
X-Mirrored-by: <[EMAIL PROTECTED]>
X-Antispam-passed: yes
X-Antispam: yes
X-Real-To: <[EMAIL PROTECTED]>
X-Antivirus: yes
Received: from mail.apache.org ([140.211.11.2] verified)
  by inc.ru (CommuniGate Pro SMTP 4.1.8)
  with SMTP id 28080304 for [EMAIL PROTECTED]; Tue, 04 Nov 2008 04:08:03 +0300
Received: (qmail 85525 invoked by uid 500); 4 Nov 2008 01:08:01 -
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: 
List-Help: 
List-Post: 
List-Id: "Maven Users List" 
Reply-To: "Maven Users List" 
Delivered-To: mailing list users@maven.apache.org
Received: (qmail 85514 invoked by uid 99); 4 Nov 2008 01:08:01 -
Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136)
by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 17:08:01 -0800
X-ASF-Spam-Status: No, hits=-0.0 required=10.0
tests=SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: local policy)
Received: from [82.223.145.172] (HELO server.lpis.com) (82.223.145.172)
by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Nov 2008 01:06:44 +
Received: from localhost (localhost [127.0.0.1])
by server.lpis.com (Postfix) with ESMTP id EFBAD34E03;
Tue,  4 Nov 2008 02:06:54 +0100 (CET)
Received: from server.lpis.com ([127.0.0.1])
 by localhost (server.lpis.com [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 20780-07; Tue,  4 Nov 2008 02:06:54 +0100 (CET)
Received: from wxpetxea (221.Red-217-127-108.staticIP.rima-tde.net 
[217.127.108.221])
by server.lpis.com (Postfix) with ESMTP id 9951C34BEE;
Tue,  4 Nov 2008 02:06:53 +0100 (CET)
Message-ID: <[EMAIL PROTECTED]>
From: "Koxkorrita" <[EMAIL PROTECTED]>
To: "Maven Users List" ,
<[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Subject: one multiproyect maven project or several maven projects
Date: Tue, 4 Nov 2008 02:06:55 +0100
MIME-Version: 1.0
Content-Type: text/plain;
format=flowed;
charset="iso-8859-1";
reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-Virus-Scanned: amavisd-new at lpis.com
X-Virus-Checked: Checked by ClamAV on apache.org



hello

into my ide (eclipse) i have severeal j22 projects (2 war, one core java 
project and 3 webservice project.

for building this with is the betther method? to build all into only one 
maven multi module project or one maven ear project and several projects?
thanks 


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



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



Re: maven plugin for 508 compilance check

2008-11-04 Thread Wayne Fay
> be 508 compilant, Is there any maven plugin to check my html for 508
> complaince ?

I don't know of any current Maven plugin that would offer this
functionality. If you find a random tool on the net, perhaps one that
can be used in Ant, you can easily turn it into a Maven plugin.

Wayne

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



Re: Trouble with Java Native Libraries

2008-11-04 Thread Kalle Korhonen
This is how we set the java.library.path for surefire, works fine for us:

org.apache.maven.plugins
maven-surefire-plugin

once
target
-Djava.library.path=lib


Kalle

On Tue, Nov 4, 2008 at 11:35 AM, Wendy Smoak <[EMAIL PROTECTED]> wrote:

> On Tue, Nov 4, 2008 at 9:27 AM, Wendy Smoak <[EMAIL PROTECTED]> wrote:
>
> > ...but it only works if the library is sitting in the base directory
> > of the Maven project.  If I move it into some other directory and then
> > configure Surefire to pass java.library.path to the tests, I get the
> > same thing Craig was seeing:
> >
> > java.lang.UnsatisfiedLinkError: no HelloWorld in java.library.path
>
> Craig added a build.xml to the example, so we have it working with Ant
> and failing with Maven/Surefire:
> http://wush.net/svn/wsmoak/testing/trunk/jnitest
>
> There is build output in the README file.  At this point someone more
> familiar with JNI and Surefire internals will have to take over. :)
> Craig, if you want to open a JIRA issue, feel free to point to this
> example.
>
> --
> Wendy
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


maven plugin for 508 compilance check

2008-11-04 Thread miro

We are developing application for government  for which my application should
be 508 compilant, Is there any maven plugin to check my html for 508
complaince ? 
-- 
View this message in context: 
http://www.nabble.com/maven-plugin-for-508-compilance-check-tp20335784p20335784.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Can I run individual test in maven

2008-11-04 Thread Rafael Trestini
Petr,

Well, is a very strange behavior. If I put "@Test" annotation above
"testApp()" method, it runs on eclipse fine.

Please check the following:
- junit 4.X is in your eclipse build path? (an easy way to see is
looking in "Referenced Library")
- Forget unit test created by maven. It is just a skeleton. Try to
create your own test case, by clicking with right button on
src/test/main, new Junit Test Case. On top of screen select "Junit 4",
and try to run it.

Just a note:
>>  We do not want to extend TestCase because we want to use jdk1.5 and its 
>> annotations.
You shall to know that extends TestCase and using jdk1.5 is not mutual
exclusive, ok? But I understand you ;-)

Rafael

On Tue, Nov 4, 2008 at 9:06 PM, Petr V. <[EMAIL PROTECTED]> wrote:
> Hi Rafael,
>
> I guess I now know the issue. The test case generated by maven for a project 
> can be run in Eclipse because it extends TestCase class
>
> But if you run following test in eclipse, the eclipse will complain "No 
> Runnable Methods"  I am using TestRunner Junit 4 and I have junit 4.5 har in 
> my build path as well. We do not want to extend TestCase because we want to 
> use jdk1.5 and its annotations.
>
> import org.junit.Test;
>
> public class AppTest
> {
>
> public void testApp()
> {
> assertTrue( true );
> }
> }
>
> Can you please copy the above test in your maven project test directory and 
> see if it could be run in eclipse.
>
> Thanks,
>
> Petr
>
> --- On Wed, 11/5/08, Rafael Trestini <[EMAIL PROTECTED]> wrote:
> From: Rafael Trestini <[EMAIL PROTECTED]>
> Subject: Re: Can I run individual test in maven
> To: "Maven Users List" 
> Date: Wednesday, November 5, 2008, 2:45 AM
>
> Sorry.. I pressed "send" out of time...
>
> 1. Create a project with archetype:
>   $ mvn archetype:generate
>   // answer the question and archetype will create a skeleton of a
> project for you, with all default parameters
> 2. Put all your java code into /src/main/java
> 3. Put all your non-java code, like configurations, etc, in 
> /src/main/resources
> 4. Create your junit tests in /src/test/java
> 5. If you need extra configuration for tests, use /src/test/resources for it
> 6. In pom.xml, change version of dependency with junit to 4.5
> 7. type:
>   $ mvn eclipse:eclipse
> 8. Import your project in eclipse
> 9. Try to run test now.
>
> Rafael Trestini
>
> On Tue, Nov 4, 2008 at 7:38 PM, Rafael Trestini <[EMAIL PROTECTED]>
> wrote:
>> Petr,
>>
>> Yes, I'm using a maven project (created by archetype), in Eclipse
>> Ganymede. Commonly I use command line (im my case, on linux, but the
>> commands are equals both in windows and linux).
>>
>> Well, this may not be a root of your problem, but I will do a
>> step-by-step on how I created my projects. If you want, you can repeat
>> this steps, tunning to your needs;
>>
>> 1. Create a project with archetype:
>>
>>
>> On Tue, Nov 4, 2008 at 7:09 PM, Petr V. <[EMAIL PROTECTED]>
> wrote:
>>> Thanks Rafael for the help.
>>>
>>> I created this project via maven commands on DOS.
>>>
>>> I imported then maven project in Eclipse.
>>>
>>> Now this maven project was not in build path so I believe I was
> getting error of not finding any junit test .
>>>
>>> Then  I clicked on project and select build path --> use as source
> folder
>>>
>>> Now when I entered to Run menu, Run Configurations..., in left site
> tree, selected JUnit,
>>> and my JUnitTest Case. I changed the runner for JUnit4, and the test
> complains
>>> "java.lang.Exception  No runnable methods"
>>>
>>> Are you using maven project in Eclipse ? Did you set it in build bath
> as source folder ?
>>>
>>> Thanks,
>>>
>>> Petr
>>>
>>> --- On Wed, 11/5/08, Rafael Trestini <[EMAIL PROTECTED]> wrote:
>>> From: Rafael Trestini <[EMAIL PROTECTED]>
>>> Subject: Re: Can I run individual test in maven
>>> To: "Maven Users List" 
>>> Date: Wednesday, November 5, 2008, 1:38 AM
>>>
>>> Petr,
>>>
>>> When I tried to reproduce your scenario, I got the message "No
> JUnit
>>> test Found *for JUnit 3 runner*", because my set of tests was
> writen
>>> under junit 3.8.1. For this, I've entered in Run menu, Run
>>> Configurations..., in left site tree, selected JUnit, and my JUnit
>>> Test Case. Finally, I've changed the runner for JUnit4, and the
> test
>>> works fine.
>>>
>>> Are you using maven eclipse plugin to generate your project?
>>>
>>> Rafael Trestini
>>>
>>> On Tue, Nov 4, 2008 at 6:06 PM, Petr V. <[EMAIL PROTECTED]>
> wrote:
 Rafael,

 I am using Junit 4.5

 My test class is as follows

 import org.junit.Test;
 import junit.framework.Assert;

 public class TestContract {

 @Test
 public void testCom() throws Exception
 {
 Assert.assertEquals(true, true);

 }
 }

 When I issue "mvn test" from command prompt it works
> fine. It
>>> even works
 fine if I right click on component/module in eclipse and choose
> mvn test
 menu. But when

Re: Surefire 2.4.3 Classloading issue

2008-11-04 Thread lsacco

After running mvn help:effective-pom I see the plugin being set as expected:

 
C:\eclipse_workspaces\europa3\PCNRequestApprovalWeb\src\main\java
 
C:\eclipse_workspaces\europa3\PCNRequestApprovalWeb\src\test\java
 
C:\eclipse_workspaces\europa3\PCNRequestApprovalWeb\target\classes
 
C:\eclipse_workspaces\europa3\PCNRequestApprovalWeb\target\test-classes
  install
  

 
C:\eclipse_workspaces\europa3\PCNRequestApprovalWeb\src\main\resources

  
  

 
C:\eclipse_workspaces\europa3\PCNRequestApprovalWeb/src/test/resources
  
**/*.xml
import.sql
  

  

  maven-surefire-plugin
  2.4.3
  
true
true
-Xmx512m
once

  **/*Test*.java
  **/Test*.java

  


When I run the -X option I see that the test-classes directory is first
ahead of classes, yet if I exclude *.xml, import.sql from the resources it
will work fine, but of course, that's not an acceptable solution.

[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test' -->
[DEBUG]   (f) argLine = -Xmx512m
[DEBUG]   (f) basedir = C:\eclipse_workspaces\europa3\PCNRequestApprovalWeb
[DEBUG]   (f) childDelegation = true
[DEBUG]   (f) classesDirectory =
C:\eclipse_workspaces\europa3\PCNRequestApprovalWeb\target\classes
[DEBUG]   (f) classpathElements =
[C:\eclipse_workspaces\europa3\PCNRequestApprovalWeb\target\test-classes,
C:\eclipse_workspaces\europa3\PCNRequestApprovalWeb\target\classes, 

Any ideas why this might be the case?

Lou

-- 
View this message in context: 
http://www.nabble.com/Surefire-2.4.3-Classloading-issue-tp20330022p20334699.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Trouble with Java Native Libraries

2008-11-04 Thread Dan Tran
see if this would help

http://svn.codehaus.org/mojo/trunk/mojo/maven-native/native-maven-plugin/src/it/jni/java-win32/pom.xml

On Tue, Nov 4, 2008 at 10:35 AM, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> On Tue, Nov 4, 2008 at 9:27 AM, Wendy Smoak <[EMAIL PROTECTED]> wrote:
>
>> ...but it only works if the library is sitting in the base directory
>> of the Maven project.  If I move it into some other directory and then
>> configure Surefire to pass java.library.path to the tests, I get the
>> same thing Craig was seeing:
>>
>> java.lang.UnsatisfiedLinkError: no HelloWorld in java.library.path
>
> Craig added a build.xml to the example, so we have it working with Ant
> and failing with Maven/Surefire:
> http://wush.net/svn/wsmoak/testing/trunk/jnitest
>
> There is build output in the README file.  At this point someone more
> familiar with JNI and Surefire internals will have to take over. :)
> Craig, if you want to open a JIRA issue, feel free to point to this
> example.
>
> --
> Wendy
>
> -
> 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/OS X Development Question

2008-11-04 Thread wxlund

I'm getting a very similar problem.  I'm running eclipse and maven and
working with the new m2eclipse plugin on OS X doing RCP development with
Maven.  When I try and install my jars with JDK 5.0 configured I get the
following:

=  setup =
wayne-lunds-macbook-pro:jars wxlund$ java -version
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)

echo $MAVEN_HOME 
/opt/apache-maven-2.0.9

= and error in mvn install:install-file ==
vn install:install-file -Dfile="activation.jar" -DgroupId=skyway
-DartifactId=activation -Dversion=1.0 -Dpackaging=jar
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'install'.
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Invalid task 'groupId=skyway': you must specify a valid lifecycle
phase, or a goal in the format plugin:goal or
pluginGroupId:pluginArtifactId:pluginVersion:goal
[INFO]

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

[INFO] Total time: < 1 second
[INFO] Finished at: Tue Nov 04 15:02:28 PST 2008
[INFO] Final Memory: 1M/3M
[INFO]



I validated the same error with appfuse.  

mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes
-DarchetypeArtifactId=appfuse-core
-DremoteRepositories=http://static.appfuse.org/releases
-DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Invalid task 'archetypeArtifactId=appfuse-core': you must specify a
valid lifecycle phase, or a goal in the format plugin:goal or
pluginGroupId:pluginArtifactId:pluginVersion:goal
[INFO]

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

[INFO] Total time: < 1 second
[INFO] Finished at: Tue Nov 04 15:04:51 PST 2008
[INFO] Final Memory: 2M/4M
[INFO]


Now I switch to JDK 6.0 and run it again. 

==   setup java home to JDK 6.0
wayne-lunds-macbook-pro:jars wxlund$ echo $JAVA_HOME
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home

mvn install:install-file -Dfile="activation.jar" -DgroupId=skyway
-DartifactId=activation -Dversion=1.0 -Dpackaging=jar
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'install'.
[INFO]

[INFO] Building Maven Default Project
[INFO]task-segment: [install:install-file] (aggregator-style)
[INFO]

[INFO] [install:install-file]
[INFO] Installing
/Users/wxlund/skyway/workspace/ce-6.1/org.accenture.fa.maven.archetype/jars/activation.jar
to /Users/wxlund/.m2/repository/skyway/activation/1.0/activation-1.0.jar
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Nov 04 15:06:07 PST 2008
[INFO] Final Memory: 5M/15M
[INFO]


  and the appfuse archetype =

vn archetype:create -DarchetypeGroupId=org.appfuse.archetypes
-DarchetypeArtifactId=appfuse-core
-DremoteRepositories=http://static.appfuse.org/releases
-DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]

[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:create] (aggregator-style)
[INFO]

[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:create]
[. clipped ...]
[INFO]
-

Re: Can I run individual test in maven

2008-11-04 Thread Petr V.
Hi Rafael,

I guess I now know the issue. The test case generated by maven for a project 
can be run in Eclipse because it extends TestCase class

But if you run following test in eclipse, the eclipse will complain "No 
Runnable Methods"  I am using TestRunner Junit 4 and I have junit 4.5 har in my 
build path as well. We do not want to extend TestCase because we want to use 
jdk1.5 and its annotations.

import org.junit.Test;

public class AppTest 
{
   
    public void testApp()
    {
    assertTrue( true );
    }
}

Can you please copy the above test in your maven project test directory and see 
if it could be run in eclipse.

Thanks,

Petr

--- On Wed, 11/5/08, Rafael Trestini <[EMAIL PROTECTED]> wrote:
From: Rafael Trestini <[EMAIL PROTECTED]>
Subject: Re: Can I run individual test in maven
To: "Maven Users List" 
Date: Wednesday, November 5, 2008, 2:45 AM

Sorry.. I pressed "send" out of time...

1. Create a project with archetype:
   $ mvn archetype:generate
   // answer the question and archetype will create a skeleton of a
project for you, with all default parameters
2. Put all your java code into /src/main/java
3. Put all your non-java code, like configurations, etc, in /src/main/resources
4. Create your junit tests in /src/test/java
5. If you need extra configuration for tests, use /src/test/resources for it
6. In pom.xml, change version of dependency with junit to 4.5
7. type:
   $ mvn eclipse:eclipse
8. Import your project in eclipse
9. Try to run test now.

Rafael Trestini

On Tue, Nov 4, 2008 at 7:38 PM, Rafael Trestini <[EMAIL PROTECTED]>
wrote:
> Petr,
>
> Yes, I'm using a maven project (created by archetype), in Eclipse
> Ganymede. Commonly I use command line (im my case, on linux, but the
> commands are equals both in windows and linux).
>
> Well, this may not be a root of your problem, but I will do a
> step-by-step on how I created my projects. If you want, you can repeat
> this steps, tunning to your needs;
>
> 1. Create a project with archetype:
>
>
> On Tue, Nov 4, 2008 at 7:09 PM, Petr V. <[EMAIL PROTECTED]>
wrote:
>> Thanks Rafael for the help.
>>
>> I created this project via maven commands on DOS.
>>
>> I imported then maven project in Eclipse.
>>
>> Now this maven project was not in build path so I believe I was
getting error of not finding any junit test .
>>
>> Then  I clicked on project and select build path --> use as source
folder
>>
>> Now when I entered to Run menu, Run Configurations..., in left site
tree, selected JUnit,
>> and my JUnitTest Case. I changed the runner for JUnit4, and the test
complains
>> "java.lang.Exception  No runnable methods"
>>
>> Are you using maven project in Eclipse ? Did you set it in build bath
as source folder ?
>>
>> Thanks,
>>
>> Petr
>>
>> --- On Wed, 11/5/08, Rafael Trestini <[EMAIL PROTECTED]> wrote:
>> From: Rafael Trestini <[EMAIL PROTECTED]>
>> Subject: Re: Can I run individual test in maven
>> To: "Maven Users List" 
>> Date: Wednesday, November 5, 2008, 1:38 AM
>>
>> Petr,
>>
>> When I tried to reproduce your scenario, I got the message "No
JUnit
>> test Found *for JUnit 3 runner*", because my set of tests was
writen
>> under junit 3.8.1. For this, I've entered in Run menu, Run
>> Configurations..., in left site tree, selected JUnit, and my JUnit
>> Test Case. Finally, I've changed the runner for JUnit4, and the
test
>> works fine.
>>
>> Are you using maven eclipse plugin to generate your project?
>>
>> Rafael Trestini
>>
>> On Tue, Nov 4, 2008 at 6:06 PM, Petr V. <[EMAIL PROTECTED]>
wrote:
>>> Rafael,
>>>
>>> I am using Junit 4.5
>>>
>>> My test class is as follows
>>>
>>> import org.junit.Test;
>>> import junit.framework.Assert;
>>>
>>> public class TestContract {
>>>
>>> @Test
>>> public void testCom() throws Exception
>>> {
>>> Assert.assertEquals(true, true);
>>>
>>> }
>>> }
>>>
>>> When I issue "mvn test" from command prompt it works
fine. It
>> even works
>>> fine if I right click on component/module in eclipse and choose
mvn test
>>> menu. But when I right click on test class in package explorer and
ask it
>> to
>>> run as junit test then  it says "No JUnit Tests Found".
Any idea
>> what is
>>> going on ?
>>>
>>> Thanks,
>>>
>>> Petr
>>>
>>> --- On Wed, 11/5/08, Rafael Trestini <[EMAIL PROTECTED]>
wrote:
>>>
>>> From: Rafael Trestini <[EMAIL PROTECTED]>
>>> Subject: Re: Can I run individual test in maven
>>> To: "Maven Users List" ,
>> [EMAIL PROTECTED]
>>> Date: Wednesday, November 5, 2008, 12:06 AM
>>>
>>> Petr,
>>>
>>> Please, let me know: are you using junit to code your test cases?
If
>>> yes, eclipse has a "native" plugin to deal with junit -
no maven
>> or
>>> m2eclipse is needed. Is just to open your test case, Run As, JUnit
>>> Test Case.
>>>
>>> When 'mvn test' is running, it means that all test cases
will be
>>> executed, to ensure that the package is not "broken" due
to
>> logical
>>> errors.
>>>
>>> Rafael Trestini
>>>
>>> On Tue, Nov 4, 2008 at 4:49 PM, Petr V.
>>>  

Re: Can I run individual test in maven

2008-11-04 Thread Rafael Trestini
Sorry.. I pressed "send" out of time...

1. Create a project with archetype:
   $ mvn archetype:generate
   // answer the question and archetype will create a skeleton of a
project for you, with all default parameters
2. Put all your java code into /src/main/java
3. Put all your non-java code, like configurations, etc, in /src/main/resources
4. Create your junit tests in /src/test/java
5. If you need extra configuration for tests, use /src/test/resources for it
6. In pom.xml, change version of dependency with junit to 4.5
7. type:
   $ mvn eclipse:eclipse
8. Import your project in eclipse
9. Try to run test now.

Rafael Trestini

On Tue, Nov 4, 2008 at 7:38 PM, Rafael Trestini <[EMAIL PROTECTED]> wrote:
> Petr,
>
> Yes, I'm using a maven project (created by archetype), in Eclipse
> Ganymede. Commonly I use command line (im my case, on linux, but the
> commands are equals both in windows and linux).
>
> Well, this may not be a root of your problem, but I will do a
> step-by-step on how I created my projects. If you want, you can repeat
> this steps, tunning to your needs;
>
> 1. Create a project with archetype:
>
>
> On Tue, Nov 4, 2008 at 7:09 PM, Petr V. <[EMAIL PROTECTED]> wrote:
>> Thanks Rafael for the help.
>>
>> I created this project via maven commands on DOS.
>>
>> I imported then maven project in Eclipse.
>>
>> Now this maven project was not in build path so I believe I was getting 
>> error of not finding any junit test .
>>
>> Then  I clicked on project and select build path --> use as source folder
>>
>> Now when I entered to Run menu, Run Configurations..., in left site tree, 
>> selected JUnit,
>> and my JUnitTest Case. I changed the runner for JUnit4, and the test 
>> complains
>> "java.lang.Exception  No runnable methods"
>>
>> Are you using maven project in Eclipse ? Did you set it in build bath as 
>> source folder ?
>>
>> Thanks,
>>
>> Petr
>>
>> --- On Wed, 11/5/08, Rafael Trestini <[EMAIL PROTECTED]> wrote:
>> From: Rafael Trestini <[EMAIL PROTECTED]>
>> Subject: Re: Can I run individual test in maven
>> To: "Maven Users List" 
>> Date: Wednesday, November 5, 2008, 1:38 AM
>>
>> Petr,
>>
>> When I tried to reproduce your scenario, I got the message "No JUnit
>> test Found *for JUnit 3 runner*", because my set of tests was writen
>> under junit 3.8.1. For this, I've entered in Run menu, Run
>> Configurations..., in left site tree, selected JUnit, and my JUnit
>> Test Case. Finally, I've changed the runner for JUnit4, and the test
>> works fine.
>>
>> Are you using maven eclipse plugin to generate your project?
>>
>> Rafael Trestini
>>
>> On Tue, Nov 4, 2008 at 6:06 PM, Petr V. <[EMAIL PROTECTED]> wrote:
>>> Rafael,
>>>
>>> I am using Junit 4.5
>>>
>>> My test class is as follows
>>>
>>> import org.junit.Test;
>>> import junit.framework.Assert;
>>>
>>> public class TestContract {
>>>
>>> @Test
>>> public void testCom() throws Exception
>>> {
>>> Assert.assertEquals(true, true);
>>>
>>> }
>>> }
>>>
>>> When I issue "mvn test" from command prompt it works fine. It
>> even works
>>> fine if I right click on component/module in eclipse and choose mvn test
>>> menu. But when I right click on test class in package explorer and ask it
>> to
>>> run as junit test then  it says "No JUnit Tests Found". Any idea
>> what is
>>> going on ?
>>>
>>> Thanks,
>>>
>>> Petr
>>>
>>> --- On Wed, 11/5/08, Rafael Trestini <[EMAIL PROTECTED]> wrote:
>>>
>>> From: Rafael Trestini <[EMAIL PROTECTED]>
>>> Subject: Re: Can I run individual test in maven
>>> To: "Maven Users List" ,
>> [EMAIL PROTECTED]
>>> Date: Wednesday, November 5, 2008, 12:06 AM
>>>
>>> Petr,
>>>
>>> Please, let me know: are you using junit to code your test cases? If
>>> yes, eclipse has a "native" plugin to deal with junit - no maven
>> or
>>> m2eclipse is needed. Is just to open your test case, Run As, JUnit
>>> Test Case.
>>>
>>> When 'mvn test' is running, it means that all test cases will be
>>> executed, to ensure that the package is not "broken" due to
>> logical
>>> errors.
>>>
>>> Rafael Trestini
>>>
>>> On Tue, Nov 4, 2008 at 4:49 PM, Petr V.
>>>  <[EMAIL PROTECTED]> wrote:
 When I issue "mvn test" command, all my tests in test
>> directory
>>> are executed, what if I need to run some particular test(assuming we have
>>> different test classes instead of one big test class). And is it possible
>> in
>>> eclipse to run one particular test with m2eclipse ?

 Thanks,

 Petr




>>>
>>>
>>>
>>> --
>>> Responsibility is the price of freedom
>>>
>>>
>>
>>
>>
>> --
>> Responsibility is the price of freedom
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>
>
>
>
> --
> Responsibility is the price of freedom
>



-- 
Responsibility is the price of freedom

-
To un

Re: Can I run individual test in maven

2008-11-04 Thread Rafael Trestini
Petr,

Yes, I'm using a maven project (created by archetype), in Eclipse
Ganymede. Commonly I use command line (im my case, on linux, but the
commands are equals both in windows and linux).

Well, this may not be a root of your problem, but I will do a
step-by-step on how I created my projects. If you want, you can repeat
this steps, tunning to your needs;

1. Create a project with archetype:


On Tue, Nov 4, 2008 at 7:09 PM, Petr V. <[EMAIL PROTECTED]> wrote:
> Thanks Rafael for the help.
>
> I created this project via maven commands on DOS.
>
> I imported then maven project in Eclipse.
>
> Now this maven project was not in build path so I believe I was getting error 
> of not finding any junit test .
>
> Then  I clicked on project and select build path --> use as source folder
>
> Now when I entered to Run menu, Run Configurations..., in left site tree, 
> selected JUnit,
> and my JUnitTest Case. I changed the runner for JUnit4, and the test complains
> "java.lang.Exception  No runnable methods"
>
> Are you using maven project in Eclipse ? Did you set it in build bath as 
> source folder ?
>
> Thanks,
>
> Petr
>
> --- On Wed, 11/5/08, Rafael Trestini <[EMAIL PROTECTED]> wrote:
> From: Rafael Trestini <[EMAIL PROTECTED]>
> Subject: Re: Can I run individual test in maven
> To: "Maven Users List" 
> Date: Wednesday, November 5, 2008, 1:38 AM
>
> Petr,
>
> When I tried to reproduce your scenario, I got the message "No JUnit
> test Found *for JUnit 3 runner*", because my set of tests was writen
> under junit 3.8.1. For this, I've entered in Run menu, Run
> Configurations..., in left site tree, selected JUnit, and my JUnit
> Test Case. Finally, I've changed the runner for JUnit4, and the test
> works fine.
>
> Are you using maven eclipse plugin to generate your project?
>
> Rafael Trestini
>
> On Tue, Nov 4, 2008 at 6:06 PM, Petr V. <[EMAIL PROTECTED]> wrote:
>> Rafael,
>>
>> I am using Junit 4.5
>>
>> My test class is as follows
>>
>> import org.junit.Test;
>> import junit.framework.Assert;
>>
>> public class TestContract {
>>
>> @Test
>> public void testCom() throws Exception
>> {
>> Assert.assertEquals(true, true);
>>
>> }
>> }
>>
>> When I issue "mvn test" from command prompt it works fine. It
> even works
>> fine if I right click on component/module in eclipse and choose mvn test
>> menu. But when I right click on test class in package explorer and ask it
> to
>> run as junit test then  it says "No JUnit Tests Found". Any idea
> what is
>> going on ?
>>
>> Thanks,
>>
>> Petr
>>
>> --- On Wed, 11/5/08, Rafael Trestini <[EMAIL PROTECTED]> wrote:
>>
>> From: Rafael Trestini <[EMAIL PROTECTED]>
>> Subject: Re: Can I run individual test in maven
>> To: "Maven Users List" ,
> [EMAIL PROTECTED]
>> Date: Wednesday, November 5, 2008, 12:06 AM
>>
>> Petr,
>>
>> Please, let me know: are you using junit to code your test cases? If
>> yes, eclipse has a "native" plugin to deal with junit - no maven
> or
>> m2eclipse is needed. Is just to open your test case, Run As, JUnit
>> Test Case.
>>
>> When 'mvn test' is running, it means that all test cases will be
>> executed, to ensure that the package is not "broken" due to
> logical
>> errors.
>>
>> Rafael Trestini
>>
>> On Tue, Nov 4, 2008 at 4:49 PM, Petr V.
>>  <[EMAIL PROTECTED]> wrote:
>>> When I issue "mvn test" command, all my tests in test
> directory
>> are executed, what if I need to run some particular test(assuming we have
>> different test classes instead of one big test class). And is it possible
> in
>> eclipse to run one particular test with m2eclipse ?
>>>
>>> Thanks,
>>>
>>> Petr
>>>
>>>
>>>
>>>
>>
>>
>>
>> --
>> Responsibility is the price of freedom
>>
>>
>
>
>
> --
> Responsibility is the price of freedom
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>



-- 
Responsibility is the price of freedom

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



Re: Can I run individual test in maven

2008-11-04 Thread Petr V.
Thanks Rafael for the help.

I created this project via maven commands on DOS.

I imported then maven project in Eclipse.

Now this maven project was not in build path so I believe I was getting error 
of not finding any junit test . 

Then  I clicked on project and select build path --> use as source folder

Now when I entered to Run menu, Run Configurations..., in left site tree, 
selected JUnit, 
and my JUnitTest Case. I changed the runner for JUnit4, and the test complains 
"java.lang.Exception  No runnable methods"

Are you using maven project in Eclipse ? Did you set it in build bath as source 
folder ?

Thanks,

Petr

--- On Wed, 11/5/08, Rafael Trestini <[EMAIL PROTECTED]> wrote:
From: Rafael Trestini <[EMAIL PROTECTED]>
Subject: Re: Can I run individual test in maven
To: "Maven Users List" 
Date: Wednesday, November 5, 2008, 1:38 AM

Petr,

When I tried to reproduce your scenario, I got the message "No JUnit
test Found *for JUnit 3 runner*", because my set of tests was writen
under junit 3.8.1. For this, I've entered in Run menu, Run
Configurations..., in left site tree, selected JUnit, and my JUnit
Test Case. Finally, I've changed the runner for JUnit4, and the test
works fine.

Are you using maven eclipse plugin to generate your project?

Rafael Trestini

On Tue, Nov 4, 2008 at 6:06 PM, Petr V. <[EMAIL PROTECTED]> wrote:
> Rafael,
>
> I am using Junit 4.5
>
> My test class is as follows
>
> import org.junit.Test;
> import junit.framework.Assert;
>
> public class TestContract {
>
> @Test
> public void testCom() throws Exception
> {
> Assert.assertEquals(true, true);
>
> }
> }
>
> When I issue "mvn test" from command prompt it works fine. It
even works
> fine if I right click on component/module in eclipse and choose mvn test
> menu. But when I right click on test class in package explorer and ask it
to
> run as junit test then  it says "No JUnit Tests Found". Any idea
what is
> going on ?
>
> Thanks,
>
> Petr
>
> --- On Wed, 11/5/08, Rafael Trestini <[EMAIL PROTECTED]> wrote:
>
> From: Rafael Trestini <[EMAIL PROTECTED]>
> Subject: Re: Can I run individual test in maven
> To: "Maven Users List" ,
[EMAIL PROTECTED]
> Date: Wednesday, November 5, 2008, 12:06 AM
>
> Petr,
>
> Please, let me know: are you using junit to code your test cases? If
> yes, eclipse has a "native" plugin to deal with junit - no maven
or
> m2eclipse is needed. Is just to open your test case, Run As, JUnit
> Test Case.
>
> When 'mvn test' is running, it means that all test cases will be
> executed, to ensure that the package is not "broken" due to
logical
> errors.
>
> Rafael Trestini
>
> On Tue, Nov 4, 2008 at 4:49 PM, Petr V.
>  <[EMAIL PROTECTED]> wrote:
>> When I issue "mvn test" command, all my tests in test
directory
> are executed, what if I need to run some particular test(assuming we have
> different test classes instead of one big test class). And is it possible
in
> eclipse to run one particular test with m2eclipse ?
>>
>> Thanks,
>>
>> Petr
>>
>>
>>
>>
>
>
>
> --
> Responsibility is the price of freedom
>
>



-- 
Responsibility is the price of freedom

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




  

Re: Can I run individual test in maven

2008-11-04 Thread Rafael Trestini
Petr,

When I tried to reproduce your scenario, I got the message "No JUnit
test Found *for JUnit 3 runner*", because my set of tests was writen
under junit 3.8.1. For this, I've entered in Run menu, Run
Configurations..., in left site tree, selected JUnit, and my JUnit
Test Case. Finally, I've changed the runner for JUnit4, and the test
works fine.

Are you using maven eclipse plugin to generate your project?

Rafael Trestini

On Tue, Nov 4, 2008 at 6:06 PM, Petr V. <[EMAIL PROTECTED]> wrote:
> Rafael,
>
> I am using Junit 4.5
>
> My test class is as follows
>
> import org.junit.Test;
> import junit.framework.Assert;
>
> public class TestContract {
>
> @Test
> public void testCom() throws Exception
> {
> Assert.assertEquals(true, true);
>
> }
> }
>
> When I issue "mvn test" from command prompt it works fine. It even works
> fine if I right click on component/module in eclipse and choose mvn test
> menu. But when I right click on test class in package explorer and ask it to
> run as junit test then  it says "No JUnit Tests Found". Any idea what is
> going on ?
>
> Thanks,
>
> Petr
>
> --- On Wed, 11/5/08, Rafael Trestini <[EMAIL PROTECTED]> wrote:
>
> From: Rafael Trestini <[EMAIL PROTECTED]>
> Subject: Re: Can I run individual test in maven
> To: "Maven Users List" , [EMAIL PROTECTED]
> Date: Wednesday, November 5, 2008, 12:06 AM
>
> Petr,
>
> Please, let me know: are you using junit to code your test cases? If
> yes, eclipse has a "native" plugin to deal with junit - no maven or
> m2eclipse is needed. Is just to open your test case, Run As, JUnit
> Test Case.
>
> When 'mvn test' is running, it means that all test cases will be
> executed, to ensure that the package is not "broken" due to logical
> errors.
>
> Rafael Trestini
>
> On Tue, Nov 4, 2008 at 4:49 PM, Petr V.
>  <[EMAIL PROTECTED]> wrote:
>> When I issue "mvn test" command, all my tests in test directory
> are executed, what if I need to run some particular test(assuming we have
> different test classes instead of one big test class). And is it possible in
> eclipse to run one particular test with m2eclipse ?
>>
>> Thanks,
>>
>> Petr
>>
>>
>>
>>
>
>
>
> --
> Responsibility is the price of freedom
>
>



-- 
Responsibility is the price of freedom

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



Aggregate POM for thirdparty package - dependencies not downloaded

2008-11-04 Thread Jim Garrison
I'm trying to create an aggregate POM for a third-party object
consisting of several binary (jar) files, to be stored in my
Nexus repository.

Based on examples from the maven repository, I created simple POMs for
each jar and added them to nexus. Then I created a POM-packaged POM that
lists the individual simple POMs as dependencies.  When I got to the
Upload Artifact screen I found that I had to provide an artifact file
name, so I ended up using the aggregate pom name in both the artifact
file and pom file fields (was this correct?)

When I try to build my project POM, which contains a reference to the
aggregate POM, there are no error messages but the transitive
dependencies are NOT downloaded from Nexus.  Browsing the repository
shows all the required jars in the right places.

Obviously I've missed something.  Can some kind soul take pity on a
Maven/Nexus newbie and help out?

Here are the pertinent files:

Simple POM for one of the jar file components (jviews-sdmgui.pom):

http://maven.apache.org/POM/4.0.0";>
4.0.0
com.ilog.jviews
sdmgui
5.5
JViews sdmgui library


Aggregate POM (jviews.pom):

http://maven.apache.org/POM/4.0.0";>
4.0.0
com.ilog
jviews
5.5
JViews
pom


com.ilog.jviews
jviewsall
5.5


com.ilog.jviews
sdmgui
5.5


com.ilog.jviews
svgdom
5.5




Dependency specification in the project POM:


com.ilog
jviews
5.5
pom


If I include the three individual dependencies here instead of just the
reference to the aggregate, the build works.

http://www.troux.com/email
 
 

 
 

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



Surefire 2.4.3 Classloading issue

2008-11-04 Thread lsacco

I've read the previous posts on this issue, but still see that a resource I
am relying on (META-INF/persistence.xml) that exists in src/test/resources
is not being used by the surefire plugin.  If I move this resource to
src/main/resources it works fine.  I am using Maven 2.0.9.

Any ideas why src/test/resources doesn't take precedence?

TIA,
Lou
-- 
View this message in context: 
http://www.nabble.com/Surefire-2.4.3-Classloading-issue-tp20330022p20330022.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Can I run individual test in maven

2008-11-04 Thread Petr V.
Rafael,

I am using Junit 4.5

My test class is as follows

import org.junit.Test;
import junit.framework.Assert;

public class TestContract {

    @Test
    public void testCom() throws Exception
    {                        
                        Assert.assertEquals(true, true);                        
    }
}
    
When
I issue "mvn test" from command prompt it works fine. It even works
fine if I right click on component/module in eclipse and choose mvn
test menu. But when I right click on test class in package explorer and
ask it to run as junit test then  it says "No JUnit Tests Found". Any
idea what is going on ?

Thanks,

Petr

--- On Wed, 11/5/08, Rafael Trestini <[EMAIL PROTECTED]> wrote:
From: Rafael Trestini <[EMAIL PROTECTED]>
Subject: Re: Can I run individual test in maven
To: "Maven Users List" , [EMAIL PROTECTED]
Date: Wednesday, November 5, 2008, 12:06 AM

Petr,

Please, let me know: are you using junit to code your test cases? If
yes, eclipse has a "native" plugin to deal with junit - no maven or
m2eclipse is needed. Is just to open your test case, Run As, JUnit
Test Case.

When 'mvn test' is running, it means that all test cases will be
executed, to ensure that the package is not "broken" due to logical
errors.

Rafael Trestini

On Tue, Nov 4, 2008 at 4:49 PM, Petr V. <[EMAIL PROTECTED]> wrote:
> When I issue "mvn test" command, all my tests in test directory
are executed, what if I need to run some particular test(assuming we have
different test classes instead of one big test class). And is it possible in
eclipse to run one particular test with m2eclipse ?
>
> Thanks,
>
> Petr
>
>
>
>



-- 
Responsibility is the price of freedom



  

Re: Can I run individual test in maven

2008-11-04 Thread David C. Hicks

You can run a single test in Maven like this:

   mvn -Dtest=MyTestClass test

Note that you must specify the name of the TestCase class.


Rafael Trestini wrote:

Petr,

Please, let me know: are you using junit to code your test cases? If
yes, eclipse has a "native" plugin to deal with junit - no maven or
m2eclipse is needed. Is just to open your test case, Run As, JUnit
Test Case.

When 'mvn test' is running, it means that all test cases will be
executed, to ensure that the package is not "broken" due to logical
errors.

Rafael Trestini

On Tue, Nov 4, 2008 at 4:49 PM, Petr V. <[EMAIL PROTECTED]> wrote:
  

When I issue "mvn test" command, all my tests in test directory are executed, 
what if I need to run some particular test(assuming we have different test classes 
instead of one big test class). And is it possible in eclipse to run one particular test 
with m2eclipse ?

Thanks,

Petr









  


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



Re: Can I run individual test in maven

2008-11-04 Thread Rafael Trestini
Petr,

Please, let me know: are you using junit to code your test cases? If
yes, eclipse has a "native" plugin to deal with junit - no maven or
m2eclipse is needed. Is just to open your test case, Run As, JUnit
Test Case.

When 'mvn test' is running, it means that all test cases will be
executed, to ensure that the package is not "broken" due to logical
errors.

Rafael Trestini

On Tue, Nov 4, 2008 at 4:49 PM, Petr V. <[EMAIL PROTECTED]> wrote:
> When I issue "mvn test" command, all my tests in test directory are executed, 
> what if I need to run some particular test(assuming we have different test 
> classes instead of one big test class). And is it possible in eclipse to run 
> one particular test with m2eclipse ?
>
> Thanks,
>
> Petr
>
>
>
>



-- 
Responsibility is the price of freedom

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



Can I run individual test in maven

2008-11-04 Thread Petr V.
When I issue "mvn test" command, all my tests in test directory are executed, 
what if I need to run some particular test(assuming we have different test 
classes instead of one big test class). And is it possible in eclipse to run 
one particular test with m2eclipse ?

Thanks,

Petr



  

Re: Trouble with Java Native Libraries

2008-11-04 Thread Wendy Smoak
On Tue, Nov 4, 2008 at 9:27 AM, Wendy Smoak <[EMAIL PROTECTED]> wrote:

> ...but it only works if the library is sitting in the base directory
> of the Maven project.  If I move it into some other directory and then
> configure Surefire to pass java.library.path to the tests, I get the
> same thing Craig was seeing:
>
> java.lang.UnsatisfiedLinkError: no HelloWorld in java.library.path

Craig added a build.xml to the example, so we have it working with Ant
and failing with Maven/Surefire:
http://wush.net/svn/wsmoak/testing/trunk/jnitest

There is build output in the README file.  At this point someone more
familiar with JNI and Surefire internals will have to take over. :)
Craig, if you want to open a JIRA issue, feel free to point to this
example.

-- 
Wendy

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



Re: Multiple project dependencies

2008-11-04 Thread Rafael Trestini
John,

In this case, your parent pom (1st level pom.xml) will inherit from
com.atlassian.concluence.plugin.base:confluence-plugin-base:17, and
each module will inherit your parent pom. Example:
/yourproject
   pom.xml (your parent pom - inherits confluence plugin)
  /module-a
 pom.xml (your module-a pom - inherits parent pom)
  /module-b
 pom.xml (your module-b pom - inherits parent pom)

Using the structure from example, your parent pom would use the
following module declaration:

   module-a
   module-b


In this approach, maven will search for a subdirectory named
"module-a" and other named "module-b", each one containing a pom.xml.

Remembering: there's a significant difference between inheritance and
dependency. If you need to *use*, for example, X.jar that contains
shared and/or common code, the relation between this jar and your
project is a dependency, and not a inheritance, because X.jar is not
_part-of_ your project. However, if you have a module inside your
project with common code that concerns exclusively to the project,
this module is _part-of_ and is shared with other modules inside your
project.

Hope it helps.

Rafael Trestini

On Tue, Nov 4, 2008 at 6:08 AM, <[EMAIL PROTECTED]> wrote:
>
> Graham,
>
> Thanks for your advice.  I was wondering if parent/child relationships
> were the answer.  However, there are two problems with this approach.
>
> The first is that I'm writing a plugin to a product and it created the
> maven project, and I note it's declared a parent:
>
>
>com.atlassian.confluence.plugin.base
>confluence-plugin-base
>17
>
>
> So, my plugin already depends on the Confluence Plugin base, and depends
> on my common code pom.  How is this structured?
>
> The second is that I'm still somewhat unfamilar with the directory
> structure for the parent/child relationships.  If I had poarent project
> and two child projects, how does the  tag of the child project
> know where to find the parent project (on the filesystem).
>
> Thanks,
>
>
> John
>
> > -Original Message-
> > From: Graham Leggett [mailto:[EMAIL PROTECTED]
> > Sent: 03 November 2008 21:00
> > To: Maven Users List
> > Subject: Re: Multiple project dependencies
> >
> > [EMAIL PROTECTED] wrote:
> >
> > >> I'm new to maven and I have a question regarding multiple projects
> > >> and how the can be linked.  I've created a "common code"
> > project, and
> > >> I have another which depends upon this project.  I've got two
> > >> directories, two pom files, etc., and the common code project can
> > >> generate a jar file (mvn jar:jar).  The other project has a
> > >> dependency in the pom.xml file:
> > >>
> > >> 
> > >> com.x.common
> > >> x.common
> > >> 0.0.1-SNAPSHOT
> > >> 
> > >>
> > >> When the mvn process runs, it contacts the repositories
> > and tries to
> > >> download this dependency, which will obviously fail.  How do I
> > >> configure mvn to look locally for a dependency, and in
> > this case, run
> > >> mvn jar:jar in the common project directory to obtain the required
> > >> jar?
> >
> > It depends on how you want to structure your code.
> >
> > If the common code is likely to follow it's own release
> > cycle, make a formal release of the common code, and then
> > make your code depend on that formal release. Don't do this
> > manually, use the release plugin to do this for you.
> >
> > If the common code is likely to change alongside the other
> > code, you might choose to build and release all the jars
> > together in one go.
> >
> > What you want to do is create a multi-module project by
> > creating a parent pom project, and add each of the multi
> > modules as children of this parent, using the 
> > element in the pom. In each child project, add the 
> > tag pointing back to the parent pom.
> >
> > When you build the parent, all the modules listed within the
> > parent will be built.
> >
> > If your dependencies are configured correctly, maven will
> > figure out for itself what order things should be built in.
> >
> > Hint: in your children projects, make them inherit the
> > parent's version by putting in ${pom.version} as a variable.
> > For example:
> >
> >   
> >   com.x.common
> >   x.common
> >   ${pom.version}
> >   
> >
> > When you release the parent, the children will be released
> > and versioned automatically.
> >
> > Regards,
> > Graham
> > --
> >
> ___
>
> This e-mail may contain information that is confidential, privileged or 
> otherwise protected from disclosure. If you are not an intended recipient of 
> this e-mail, do not duplicate or redistribute it by any means. Please delete 
> it and any attachments and notify the sender that you have received it in 
> error. Unless specifically indicated, this e-mail is not an offer to buy or 
> sell or a solicitation

attachmentClassifier in an assembly

2008-11-04 Thread Philipp Paland
Hi,

I'm using an assembly descriptor containing:


  
module-release
false
true
 
${module.artifactId}.${module.extension}
  


Where module-release is another assembly that is attached to the modules
in an earlier step. This works fine for my
jar-Modules. 

I also have some pom modules that contain no code
but a collection of files that are assembled the same way (with my
module-release descriptor). The resulting zip-File is installed /
deployed correctly into my repository but seems not to be covered by the
assembly descriptor above. If I change packaging of the pom-Module to
jar, it works, but I have empty jar-Files in my repository. Is there any
way around that?

Thanks,
Philipp Paland

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



Fwd: ApacheCon live video streaming available; keynotes and Apache 101 are free

2008-11-04 Thread Maria Odea Ching
Can't make ApacheCon this week in New Orleans?  You can still watch all
the keynotes, Apache 101 sessions, and system administration track in
live video streams:

  http://streaming.linux-magazin.de/en/program_apacheconus08.htm?ann

Keynotes and the Apache 101 lunchtime sessions are free; the full
sysadmin track, including httpd performance, security, and server stack
administration talks are available for a fee.

Keynotes include:
- David Recordon, Six Apart  (Wednesday 09:30)
  "Learning from Apache to create Open Specifications"

- Shahani Markus Weerawarana, Ph.D.  (Thursday 11:30)
  "Standing on the Shoulders of Giants"

- Sam Ramji, Microsoft  (Friday 11:30)
  "struct.new("future", :open, :microsoft)"


  Reminder: New Orleans is CST or UTC/GMT -6 hours.


Advance notice: ApacheCon EU 2009 returns to Amsterdam, 23-27 March.  We
had a great response to our CFP and look forward to announcing the
schedule in the next month.

Regards
--
Lars Eilebrecht  -  V.P., Conference Planning
[EMAIL PROTECTED]  -  http://www.us.apachecon.com


ApacheCon live video streaming available; keynotes and Apache 101 are free

2008-11-04 Thread Brian E. Fox



Can't make ApacheCon this week in New Orleans?  You can still watch all
the keynotes, Apache 101 sessions, and system administration track in
live video streams:

   http://streaming.linux-magazin.de/en/program_apacheconus08.htm?ann

Keynotes and the Apache 101 lunchtime sessions are free; the full
sysadmin track, including httpd performance, security, and server stack
administration talks are available for a fee.

Keynotes include:
- David Recordon, Six Apart  (Wednesday 09:30)
   "Learning from Apache to create Open Specifications"

- Shahani Markus Weerawarana, Ph.D.  (Thursday 11:30)
   "Standing on the Shoulders of Giants"

- Sam Ramji, Microsoft  (Friday 11:30)
   "struct.new("future", :open, :microsoft)"


   Reminder: New Orleans is CST or UTC/GMT -6 hours.


Advance notice: ApacheCon EU 2009 returns to Amsterdam, 23-27 March.  We
had a great response to our CFP and look forward to announcing the
schedule in the next month.




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



Re: Dependencies not available in the future

2008-11-04 Thread David Ojeda
Hello Simone and Graham,

Both options satisfy my needs. I prefer to deliver a ~/.m2/repository but I 
think it will depend on the client...

Thank you

On Monday 03 November 2008 12:33:28 Simone Gianni wrote:
> Hi David,
> nobody said that a repository has to be remote, you can create a local
> file repository, and install there (copying it from the main repo, or
> using mvn deploy) all the dependencies you want, then configure this
> repository in your pom, and ship it together with you project.
>
> For example, you could organize the release as :
> myproject
> ... pom.xml
> ... submodule
> ... pom.xml
> ... src/main etc..
> ... othermodule
> ... etc etc
> dependencies
> ... org
> .. apache
> .. same as if it was a repository, folders, containing jars and
> so on
>
> then, if I receive this package and want to build it, a simple mvn
> install (or mvn whatever you say) in the myproject directory will
> suffice, cause there will be a (rather ugly) repository entry pointing
> to ../dependencies, otherwise I could edit the main pom.xml and write a
> complete path there, or you could use a variable (but have never tried
> this), or place the repository as a sub-folder of myproject itself.
>
> Hope this helps,
> Simone
>
> David Ojeda wrote:
> > Hello all...
> >
> > Every day I am one step closer to decide to migrate to maven2, however I
> > have a new question.
> > Suppose that I have a project X that depends on Y and Z. When I finish
> > this project it is common to give the source code to the client. Usually,
> > I deliver the source code, ant scripts and the necessary jars in order to
> > build the application. If I switch to maven, I would probably deliver
> > just the source code in the proper directory structure and pom. In this
> > case what worries me is that in the future, dependency Y or Z could be
> > unavailable for various reasons: repository is no longer available, a
> > specific version of dependencies are difficult to obtain, etc.
> >
> > So my question is: what can I do if I want to deliver give the source
> > code and the dependencies jars?
> >
> > Here are some of my ideas:
> > - Maintain a private repository with dependencies and use the
> > deploy:deploy- file goal to add dependencies to it.
> > Problem: in the love/hate relationship of client/developer companies, I
> > think that the clients might argue that they do not want to depend on the
> > developer company repository. Could be a repository in the client
> > company. - Deliver all jars and scripts to install them in the local
> > repository. Seems very 'hackish' and not so 'mavenish'.
> >
> > What is your experience with this situation?
> > Thanks for your attention

-- 
Ing. David Ojeda
Integra Consultores
Caracas, Venezuela

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



Re: Trouble with Java Native Libraries

2008-11-04 Thread Wendy Smoak
On Mon, Nov 3, 2008 at 9:40 PM, Wendy Smoak <[EMAIL PROTECTED]> wrote:

> I was (eventually, with help from Craig and Henri,) able to follow the
> JNI 'Hello World' example [1] and get it to work both at the command
> line and in a test run with Maven.

...but it only works if the library is sitting in the base directory
of the Maven project.  If I move it into some other directory and then
configure Surefire to pass java.library.path to the tests, I get the
same thing Craig was seeing:

java.lang.UnsatisfiedLinkError: no HelloWorld in java.library.path

with

  
maven-surefire-plugin



  java.library.path
  ${basedir}/lib

  

  

-- 
Wendy

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



Maven goals

2008-11-04 Thread buters

Hi,

if I have so in my pom :
---
   
  jboss-deploy
  pre-integration-test
  
 deploy
  
  
   
  jboss-undeploy
  post-integration-test
  
 undeploy
  
   
--
and I must build. How can I do this?
Must I run mvn deploy or mvn install or ...?
I have took this code from tutorial. At the end the author say only, and now
build your project. But I don't know wich command must I use for it. 

Could me somebody explain it?

Thanks beforehand,
regards, buters.
-- 
View this message in context: 
http://www.nabble.com/Maven-goals-tp20324019p20324019.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: maven-release-plugin svn branch command failed

2008-11-04 Thread Peter Nedonosko
Hi,

Thank you for fast feedback!

2008/11/4 Arnaud HERITIER <[EMAIL PROTECTED]>

> Hi Peter,
>
>   which version of the release plugin are you using? We just released a new
> version, perhaps there's an issue in it ?


I use 2.0-beta-8 version of the plugin.
Which version do you release?


>
>   If you didn't change your version of the plugin it's probably an issue in
> svn because you are reproducing the issue with the svn command line.
>   There are several problems to create tags with svn 1.5.x. I thought it
> was fixed, but I'm not sure. There was several threads about this on this
> mailing list.
>
> cheers
>
> Arnaud
>
>
> On Tue, Nov 4, 2008 at 1:59 PM, Peter Nedonosko <
> [EMAIL PROTECTED]> wrote:
>
>> Hi guys!
>>
>> I try to use maven-release-plugin on WindowsXP SP2 with maven 2.0.8, Java
>> 1.5.0_15 and svn 1.5.4.
>>
>> I cannot run release:branch goal from trunk successful.
>> Branch commit failed on command
>>   svn --non-interactive copy --file D:\Tmp\maven-scm-1276451448.commit .
>>
>> http://svn.exoplatform.org/svnroot/exoplatform/projects/kernel-new/branches/2.0.4-RC
>>
>> I have tried this command manually
>>  svn copy .
>>
>> http://svn.exoplatform.org/svnroot/exoplatform/projects/kernel-new/branches/2.0.4-RC
>> it fails too.
>>
>> But if I replace '.' on full path of the trunk it will works
>>  svn copy
>> http://svn.exoplatform.org/svnroot/exoplatform/projects/kernel-new/trunk
>>
>> http://svn.exoplatform.org/svnroot/exoplatform/projects/kernel-new/branches/2.0.4-RC
>>
>> I feel it's a bug, but may be I do smth wrong here?
>> Anybody can help or comment the usecase?
>>
>>
>> Full error message
>>
>> [INFO]
>> 
>> [INFO] Building eXo Kernel
>> [INFO]task-segment: [release:branch] (aggregator-style)
>> [INFO]
>> 
>> [INFO] [release:branch]
>> [INFO] Verifying that there are no local modifications...
>> [INFO] Executing: cmd.exe /X /C "svn --non-interactive status"
>> [INFO] Working directory:
>> D:\Projects\eXo\dev\projects\projects-lab\kernel-new\trunk
>> What is the new working copy version for "eXo Kernel"?
>> (org.exoplatform.kernel:config) 2.0.5-SNAPSHOT: :
>> [INFO] Transforming 'eXo Kernel'...
>> [INFO] Transforming 'eXo Kernel Commons'...
>> [INFO] Transforming 'eXo Container'...
>> [INFO] Updating exo.kernel.commons to 2.0.4-SNAPSHOT
>> [INFO] Transforming 'Common service'...
>> [INFO] Updating exo.kernel.container to 2.0.4-SNAPSHOT
>> [INFO] Transforming 'Remote service implementation'...
>> [INFO] Updating exo.kernel.component.common to 2.0.4-SNAPSHOT
>> [INFO] Transforming 'Cache service api'...
>> [INFO] Updating exo.kernel.component.common to 2.0.4-SNAPSHOT
>> [INFO] Updating exo.kernel.component.remote to 2.0.4-SNAPSHOT
>> [INFO] Updating exo.kernel.container to 2.0.4-SNAPSHOT
>> [INFO] Transforming 'Command service impl'...
>> [INFO] Updating exo.kernel.component.common to 2.0.4-SNAPSHOT
>> [INFO] Checking in modified POMs...
>> [INFO] Executing: cmd.exe /X /C "svn --non-interactive commit --file
>> D:\Tmp\maven-scm-142291247.commit --targets
>> D:\Tmp\maven-scm-61108-targets"
>> [INFO] Working directory:
>> D:\Projects\eXo\dev\projects\projects-lab\kernel-new\trunk
>> [INFO] Branching release with the label 2.0.4-RC...
>> [INFO] Executing: cmd.exe /X /C "svn --non-interactive copy --file
>> D:\Tmp\maven-scm-1276451448.commit .
>> http://svn.exoplatform.org/svnroot/exoplatform/projects/
>> kernel-new/branches/2.0.4-RC
>> "
>> [INFO] Working directory:
>> D:\Projects\eXo\dev\projects\projects-lab\kernel-new\trunk
>> org.apache.maven.shared.release.scm.ReleaseScmCommandException: Unable to
>> branch SCM
>> Provider message:
>> The svn branch command failed.
>> Command output:
>> svn: Commit failed (details follow):
>> svn: File
>>
>> '/svnroot/exoplatform/projects/kernel-new/branches/2.0.4-RC/commons/pom.xml'
>> already exists
>>
>>at
>>
>> org.apache.maven.shared.release.phase.ScmBranchPhase.execute(ScmBranchPhase.java:98)
>>at
>>
>> org.apache.maven.shared.release.DefaultReleaseManager.branch(DefaultReleaseManager.java:379)
>>at
>>
>> org.apache.maven.shared.release.DefaultReleaseManager.branch(DefaultReleaseManager.java:350)
>>at
>>
>> org.apache.maven.plugins.release.BranchReleaseMojo.execute(BranchReleaseMojo.java:133)
>>at
>>
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
>>at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>>at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
>>at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
>>at
>>
>> org.apa

Re: maven-release-plugin svn branch command failed

2008-11-04 Thread Arnaud HERITIER
The beta-8 was just released but I didn't notice this bug when I tried it.

You can try the 2.0-beta-7

If it doesn't solve your problem you can try to change you're svn version
like Borut proposes.
If it solves it, you can open an issue ;-)

On Tue, Nov 4, 2008 at 3:11 PM, Peter Nedonosko <
[EMAIL PROTECTED]> wrote:

> Hi,
>
> Thank you for fast feedback!
>
> 2008/11/4 Arnaud HERITIER <[EMAIL PROTECTED]>
>
>> Hi Peter,
>>
>>   which version of the release plugin are you using? We just released a
>> new version, perhaps there's an issue in it ?
>
>
> I use 2.0-beta-8 version of the plugin.
> Which version do you release?
>
>
>>
>>   If you didn't change your version of the plugin it's probably an issue
>> in svn because you are reproducing the issue with the svn command line.
>>   There are several problems to create tags with svn 1.5.x. I thought it
>> was fixed, but I'm not sure. There was several threads about this on this
>> mailing list.
>>
>> cheers
>>
>> Arnaud
>>
>>
>> On Tue, Nov 4, 2008 at 1:59 PM, Peter Nedonosko <
>> [EMAIL PROTECTED]> wrote:
>>
>>> Hi guys!
>>>
>>> I try to use maven-release-plugin on WindowsXP SP2 with maven 2.0.8, Java
>>> 1.5.0_15 and svn 1.5.4.
>>>
>>> I cannot run release:branch goal from trunk successful.
>>> Branch commit failed on command
>>>   svn --non-interactive copy --file D:\Tmp\maven-scm-1276451448.commit .
>>>
>>> http://svn.exoplatform.org/svnroot/exoplatform/projects/kernel-new/branches/2.0.4-RC
>>>
>>> I have tried this command manually
>>>  svn copy .
>>>
>>> http://svn.exoplatform.org/svnroot/exoplatform/projects/kernel-new/branches/2.0.4-RC
>>> it fails too.
>>>
>>> But if I replace '.' on full path of the trunk it will works
>>>  svn copy
>>> http://svn.exoplatform.org/svnroot/exoplatform/projects/kernel-new/trunk
>>>
>>> http://svn.exoplatform.org/svnroot/exoplatform/projects/kernel-new/branches/2.0.4-RC
>>>
>>> I feel it's a bug, but may be I do smth wrong here?
>>> Anybody can help or comment the usecase?
>>>
>>>
>>> Full error message
>>>
>>> [INFO]
>>> 
>>> [INFO] Building eXo Kernel
>>> [INFO]task-segment: [release:branch] (aggregator-style)
>>> [INFO]
>>> 
>>> [INFO] [release:branch]
>>> [INFO] Verifying that there are no local modifications...
>>> [INFO] Executing: cmd.exe /X /C "svn --non-interactive status"
>>> [INFO] Working directory:
>>> D:\Projects\eXo\dev\projects\projects-lab\kernel-new\trunk
>>> What is the new working copy version for "eXo Kernel"?
>>> (org.exoplatform.kernel:config) 2.0.5-SNAPSHOT: :
>>> [INFO] Transforming 'eXo Kernel'...
>>> [INFO] Transforming 'eXo Kernel Commons'...
>>> [INFO] Transforming 'eXo Container'...
>>> [INFO] Updating exo.kernel.commons to 2.0.4-SNAPSHOT
>>> [INFO] Transforming 'Common service'...
>>> [INFO] Updating exo.kernel.container to 2.0.4-SNAPSHOT
>>> [INFO] Transforming 'Remote service implementation'...
>>> [INFO] Updating exo.kernel.component.common to 2.0.4-SNAPSHOT
>>> [INFO] Transforming 'Cache service api'...
>>> [INFO] Updating exo.kernel.component.common to 2.0.4-SNAPSHOT
>>> [INFO] Updating exo.kernel.component.remote to 2.0.4-SNAPSHOT
>>> [INFO] Updating exo.kernel.container to 2.0.4-SNAPSHOT
>>> [INFO] Transforming 'Command service impl'...
>>> [INFO] Updating exo.kernel.component.common to 2.0.4-SNAPSHOT
>>> [INFO] Checking in modified POMs...
>>> [INFO] Executing: cmd.exe /X /C "svn --non-interactive commit --file
>>> D:\Tmp\maven-scm-142291247.commit --targets
>>> D:\Tmp\maven-scm-61108-targets"
>>> [INFO] Working directory:
>>> D:\Projects\eXo\dev\projects\projects-lab\kernel-new\trunk
>>> [INFO] Branching release with the label 2.0.4-RC...
>>> [INFO] Executing: cmd.exe /X /C "svn --non-interactive copy --file
>>> D:\Tmp\maven-scm-1276451448.commit .
>>> http://svn.exoplatform.org/svnroot/exoplatform/projects/
>>> kernel-new/branches/2.0.4-RC
>>> "
>>> [INFO] Working directory:
>>> D:\Projects\eXo\dev\projects\projects-lab\kernel-new\trunk
>>> org.apache.maven.shared.release.scm.ReleaseScmCommandException: Unable to
>>> branch SCM
>>> Provider message:
>>> The svn branch command failed.
>>> Command output:
>>> svn: Commit failed (details follow):
>>> svn: File
>>>
>>> '/svnroot/exoplatform/projects/kernel-new/branches/2.0.4-RC/commons/pom.xml'
>>> already exists
>>>
>>>at
>>>
>>> org.apache.maven.shared.release.phase.ScmBranchPhase.execute(ScmBranchPhase.java:98)
>>>at
>>>
>>> org.apache.maven.shared.release.DefaultReleaseManager.branch(DefaultReleaseManager.java:379)
>>>at
>>>
>>> org.apache.maven.shared.release.DefaultReleaseManager.branch(DefaultReleaseManager.java:350)
>>>at
>>>
>>> org.apache.maven.plugins.release.BranchReleaseMojo.execute(BranchReleaseMojo.java:133)
>>>at
>>>
>>> org.apache.maven.plugin.Def

Re: maven-release-plugin svn branch command failed

2008-11-04 Thread Borut Bolčina
You have to use svn 1.5.0



2008/11/4 Peter Nedonosko <[EMAIL PROTECTED]>

> Hi guys!
>
> I try to use maven-release-plugin on WindowsXP SP2 with maven 2.0.8, Java
> 1.5.0_15 and svn 1.5.4.
>


Re: maven-release-plugin svn branch command failed

2008-11-04 Thread Arnaud HERITIER
Hi Peter,

  which version of the release plugin are you using? We just released a new
version, perhaps there's an issue in it ?
  If you didn't change your version of the plugin it's probably an issue in
svn because you are reproducing the issue with the svn command line.
  There are several problems to create tags with svn 1.5.x. I thought it was
fixed, but I'm not sure. There was several threads about this on this
mailing list.

cheers

Arnaud

On Tue, Nov 4, 2008 at 1:59 PM, Peter Nedonosko <
[EMAIL PROTECTED]> wrote:

> Hi guys!
>
> I try to use maven-release-plugin on WindowsXP SP2 with maven 2.0.8, Java
> 1.5.0_15 and svn 1.5.4.
>
> I cannot run release:branch goal from trunk successful.
> Branch commit failed on command
>   svn --non-interactive copy --file D:\Tmp\maven-scm-1276451448.commit .
>
> http://svn.exoplatform.org/svnroot/exoplatform/projects/kernel-new/branches/2.0.4-RC
>
> I have tried this command manually
>  svn copy .
>
> http://svn.exoplatform.org/svnroot/exoplatform/projects/kernel-new/branches/2.0.4-RC
> it fails too.
>
> But if I replace '.' on full path of the trunk it will works
>  svn copy
> http://svn.exoplatform.org/svnroot/exoplatform/projects/kernel-new/trunk
>
> http://svn.exoplatform.org/svnroot/exoplatform/projects/kernel-new/branches/2.0.4-RC
>
> I feel it's a bug, but may be I do smth wrong here?
> Anybody can help or comment the usecase?
>
>
> Full error message
>
> [INFO]
> 
> [INFO] Building eXo Kernel
> [INFO]task-segment: [release:branch] (aggregator-style)
> [INFO]
> 
> [INFO] [release:branch]
> [INFO] Verifying that there are no local modifications...
> [INFO] Executing: cmd.exe /X /C "svn --non-interactive status"
> [INFO] Working directory:
> D:\Projects\eXo\dev\projects\projects-lab\kernel-new\trunk
> What is the new working copy version for "eXo Kernel"?
> (org.exoplatform.kernel:config) 2.0.5-SNAPSHOT: :
> [INFO] Transforming 'eXo Kernel'...
> [INFO] Transforming 'eXo Kernel Commons'...
> [INFO] Transforming 'eXo Container'...
> [INFO] Updating exo.kernel.commons to 2.0.4-SNAPSHOT
> [INFO] Transforming 'Common service'...
> [INFO] Updating exo.kernel.container to 2.0.4-SNAPSHOT
> [INFO] Transforming 'Remote service implementation'...
> [INFO] Updating exo.kernel.component.common to 2.0.4-SNAPSHOT
> [INFO] Transforming 'Cache service api'...
> [INFO] Updating exo.kernel.component.common to 2.0.4-SNAPSHOT
> [INFO] Updating exo.kernel.component.remote to 2.0.4-SNAPSHOT
> [INFO] Updating exo.kernel.container to 2.0.4-SNAPSHOT
> [INFO] Transforming 'Command service impl'...
> [INFO] Updating exo.kernel.component.common to 2.0.4-SNAPSHOT
> [INFO] Checking in modified POMs...
> [INFO] Executing: cmd.exe /X /C "svn --non-interactive commit --file
> D:\Tmp\maven-scm-142291247.commit --targets D:\Tmp\maven-scm-61108-targets"
> [INFO] Working directory:
> D:\Projects\eXo\dev\projects\projects-lab\kernel-new\trunk
> [INFO] Branching release with the label 2.0.4-RC...
> [INFO] Executing: cmd.exe /X /C "svn --non-interactive copy --file
> D:\Tmp\maven-scm-1276451448.commit .
> http://svn.exoplatform.org/svnroot/exoplatform/projects/
> kernel-new/branches/2.0.4-RC
> "
> [INFO] Working directory:
> D:\Projects\eXo\dev\projects\projects-lab\kernel-new\trunk
> org.apache.maven.shared.release.scm.ReleaseScmCommandException: Unable to
> branch SCM
> Provider message:
> The svn branch command failed.
> Command output:
> svn: Commit failed (details follow):
> svn: File
>
> '/svnroot/exoplatform/projects/kernel-new/branches/2.0.4-RC/commons/pom.xml'
> already exists
>
>at
>
> org.apache.maven.shared.release.phase.ScmBranchPhase.execute(ScmBranchPhase.java:98)
>at
>
> org.apache.maven.shared.release.DefaultReleaseManager.branch(DefaultReleaseManager.java:379)
>at
>
> org.apache.maven.shared.release.DefaultReleaseManager.branch(DefaultReleaseManager.java:350)
>at
>
> org.apache.maven.plugins.release.BranchReleaseMojo.execute(BranchReleaseMojo.java:133)
>at
>
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224)
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor

antrun plugin: inheriting external build file together with a pom

2008-11-04 Thread Silvio Arcangeli
Hi all,

I'm trying to solve a puzzle which starts to look harder than I thought.

 

In my build platform I have project type that normally produces a jar
file, and in certain corner cases (for solving class loading issues) it
may have to produce also a second jar file if any class file is present
under a certain directory pattern.

 

First solution was to add a maven jar execution to my parent pom, but
that would always produce the "corner case" jar file also when it's
empty. I want to avoid this, as it would create confusion for all
"normal" cases, but couldn't find a way to avoid manifest-only jar files
using the maven jar plugin.

 

So I tried to solve it by replacing the maven jar with an ant task...
Since the "if" task is not available in maven (ant-contrib is not
included as far as I understood), I need to define a target if I want to
specify a conditional behavior, and this means that I cannot embed the
task directly in the pom file, and I'm forced to use an external build
file.

 

So I wrote my "build.xml" and called it from the pom. Everything works
fine if executed directly on the final project, but now I can't find a
way to move its execution in the parent pom and store "build.xml"
together with that pom file instead of having to store it somewhere in
the final project location...

 

Does anybody have any advice on how to solve it?

 

Thanks!

Silvio

 

p.s. here's my antrun execution:

 

  

maven-antrun-plugin



  

package



  











  





  run



  



  

 

And here's my build.xml:

 





 







 













 



maven-release-plugin svn branch command failed

2008-11-04 Thread Peter Nedonosko
Hi guys!

I try to use maven-release-plugin on WindowsXP SP2 with maven 2.0.8, Java
1.5.0_15 and svn 1.5.4.

I cannot run release:branch goal from trunk successful.
Branch commit failed on command
   svn --non-interactive copy --file D:\Tmp\maven-scm-1276451448.commit .
http://svn.exoplatform.org/svnroot/exoplatform/projects/kernel-new/branches/2.0.4-RC

I have tried this command manually
  svn copy .
http://svn.exoplatform.org/svnroot/exoplatform/projects/kernel-new/branches/2.0.4-RC
it fails too.

But if I replace '.' on full path of the trunk it will works
  svn copy
http://svn.exoplatform.org/svnroot/exoplatform/projects/kernel-new/trunk
http://svn.exoplatform.org/svnroot/exoplatform/projects/kernel-new/branches/2.0.4-RC

I feel it's a bug, but may be I do smth wrong here?
Anybody can help or comment the usecase?


Full error message

[INFO]

[INFO] Building eXo Kernel
[INFO]task-segment: [release:branch] (aggregator-style)
[INFO]

[INFO] [release:branch]
[INFO] Verifying that there are no local modifications...
[INFO] Executing: cmd.exe /X /C "svn --non-interactive status"
[INFO] Working directory:
D:\Projects\eXo\dev\projects\projects-lab\kernel-new\trunk
What is the new working copy version for "eXo Kernel"?
(org.exoplatform.kernel:config) 2.0.5-SNAPSHOT: :
[INFO] Transforming 'eXo Kernel'...
[INFO] Transforming 'eXo Kernel Commons'...
[INFO] Transforming 'eXo Container'...
[INFO] Updating exo.kernel.commons to 2.0.4-SNAPSHOT
[INFO] Transforming 'Common service'...
[INFO] Updating exo.kernel.container to 2.0.4-SNAPSHOT
[INFO] Transforming 'Remote service implementation'...
[INFO] Updating exo.kernel.component.common to 2.0.4-SNAPSHOT
[INFO] Transforming 'Cache service api'...
[INFO] Updating exo.kernel.component.common to 2.0.4-SNAPSHOT
[INFO] Updating exo.kernel.component.remote to 2.0.4-SNAPSHOT
[INFO] Updating exo.kernel.container to 2.0.4-SNAPSHOT
[INFO] Transforming 'Command service impl'...
[INFO] Updating exo.kernel.component.common to 2.0.4-SNAPSHOT
[INFO] Checking in modified POMs...
[INFO] Executing: cmd.exe /X /C "svn --non-interactive commit --file
D:\Tmp\maven-scm-142291247.commit --targets D:\Tmp\maven-scm-61108-targets"
[INFO] Working directory:
D:\Projects\eXo\dev\projects\projects-lab\kernel-new\trunk
[INFO] Branching release with the label 2.0.4-RC...
[INFO] Executing: cmd.exe /X /C "svn --non-interactive copy --file
D:\Tmp\maven-scm-1276451448.commit .
http://svn.exoplatform.org/svnroot/exoplatform/projects/
kernel-new/branches/2.0.4-RC"
[INFO] Working directory:
D:\Projects\eXo\dev\projects\projects-lab\kernel-new\trunk
org.apache.maven.shared.release.scm.ReleaseScmCommandException: Unable to
branch SCM
Provider message:
The svn branch command failed.
Command output:
svn: Commit failed (details follow):
svn: File
'/svnroot/exoplatform/projects/kernel-new/branches/2.0.4-RC/commons/pom.xml'
already exists

at
org.apache.maven.shared.release.phase.ScmBranchPhase.execute(ScmBranchPhase.java:98)
at
org.apache.maven.shared.release.DefaultReleaseManager.branch(DefaultReleaseManager.java:379)
at
org.apache.maven.shared.release.DefaultReleaseManager.branch(DefaultReleaseManager.java:350)
at
org.apache.maven.plugins.release.BranchReleaseMojo.execute(BranchReleaseMojo.java:133)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.c

Re: Access pom information from outside maven context

2008-11-04 Thread Julien Graglia
Le lundi 03 novembre 2008 à 16:43 +, Mark Hobson a écrit :
> If you just want to introspect POM metadata then have a look at maven-runtime:
> 
> http://maven.apache.org/shared/maven-runtime/
> 
> Mark
Thx Mark, that sounds great! 
I will certainly  use that in another project (to list versions of
installed artifacts...)

But in this problem I want to launch a 'pure' (*) java class who can
access a repository and list the available versions of an
groupid:artifactId, and get the pom of an artifact (as Xml ou
mavenProject or Model, or...)

* : ie. not a maven plugin. sth like
java -cp xxx.jar:lib/ MyClass com.xxx:an-artifact:0.5 -f
configfileThatListrepositories


> 
> 2008/11/3 Julien Graglia <[EMAIL PROTECTED]>:
> > Hi,
> >
> > I'd like to access to the org.apache.maven.project.MavenProject or
> > org.apache.maven.model.Model from 'outside' of the maven plugin
> > environment.
> >
> > I dont want to (I can't) write a maven plugin that get thoses deps
> > injected by plexus or Spring.
> > I need to access pom's information from an external java program.
> > I know how to do that in a maven plugin context but not from outside.
> >
> > I try to do it by hand (new DefaultArtifactRepositoryFactory, new
> > DefaultArtifactResolver, new DefaultArtifactTransformationManager, new
> > DefaultWagonManager, new DefaultArtifact...) but whith IoC, private
> > members and all thoses interfaces, it's quite difficult to get it to
> > work...
> >
> > Do you any idea how to do that?
> >
> > Thx,
> > --
> > Julien Graglia
> > NetCeler
> >
> >
> > -
> > 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]

-- 
Julien Graglia
NetCeler


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



out come of one pom i.s ear can be copied to other folder location?

2008-11-04 Thread partha_ctc

Hi,
i have a pom whose out put wil make a ear . that mean
ear , so at last it is building my ear. after that i
want to copy that ear to some other folder. 
that can be done using another pom, but i want to do this in one pom.

Hello experts ,can this be done is same pom ? 
if yes then what will be the tag ?
For other tasks i have already used maven-antrun-plugin in this pom. if i am
writting a copy functionality for above solution in this plugin,it is giving
error as the ear not found as it has not been created yet..

want your help urjent..
-- 
View this message in context: 
http://www.nabble.com/out-come-of-one-pom-i.s-ear-can-be-copied-to-other-folder-location--tp20319937p20319937.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: AW: Assembly with Multi Module Project

2008-11-04 Thread Karl Heinz Marbaise
Hi there
> inheritance? Root is parent of M3!
Yes Root is parent of M3

Kind regards
Karl Heinz Marbaise
-- 
SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029
Hauptstrasse 177 USt.IdNr: DE191347579
52146 Würselen   http://www.soebes.de

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



RE: dependency and dependencymanagement - confusion

2008-11-04 Thread Matthew Tordoff
If you have additional dependencies in project B that aren't in A, and
those dependencies have an additional dependencies which are the same as
those in project A, but of a different version. Then you require
dependency management.

The best way to look at it is to see a tree of dependencies, each with
their own subdependencies. If at any point in that tree you have two
dependencies on the same component, however, with different versions,
you need to specify which version to use in preference.

Matt

-Original Message-
From: kvenkatraman [mailto:[EMAIL PROTECTED] 
Sent: 04 November 2008 09:35
To: users@maven.apache.org
Subject: dependency and dependencymanagement - confusion


I have project A and B. B is the child of A. So B Inherits properties
and dependencies of A.
If I have x version of dependency in A , same will be available for B
also.

Then why do we need  , because by changing the
version of dependency in A will automatically availabe in B.

When dependency of A is avaliable in B due to inheritance , then why are
we required to call the parent dependency with :
for managed dependency

I have searched a lot to question and i am still confused.

thanks in advance
kumar

--
View this message in context:
http://www.nabble.com/dependency-and-dependencymanagement---confusion-tp
20318920p20318920.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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




The content of this e-mail is confidential and may be privileged. It may be 
read, copied and used only by the intended recipient and may not be disclosed, 
copied or distributed. If you received this email in error, please contact the 
sender immediately by return e-mail or by telephoning +44 20 7260 2000, delete 
it and do not disclose its contents to any person. You should take full 
responsibility for checking this email for viruses. Markit reserves the right 
to monitor all e-mail communications through its network.
Markit and its affiliated companies make no warranty as to the accuracy or 
completeness of any information contained in this message and hereby exclude 
any liability of any kind for the information contained herein. Any opinions 
expressed in this message are those of the author and do not necessarily 
reflect the opinions of Markit.
For full details about Markit, its offerings and legal terms and conditions, 
please see Markit's website at http://www.markit.com  .

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



dependency and dependencymanagement - confusion

2008-11-04 Thread kvenkatraman

I have project A and B. B is the child of A. So B Inherits properties and
dependencies of A.
If I have x version of dependency in A , same will be available for B also.

Then why do we need  , because by changing the version
of dependency in A will automatically availabe in B.

When dependency of A is avaliable in B due to inheritance , then why are we
required to call the parent dependency with : for
managed dependency

I have searched a lot to question and i am still confused.

thanks in advance
kumar

-- 
View this message in context: 
http://www.nabble.com/dependency-and-dependencymanagement---confusion-tp20318920p20318920.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Multiple project dependencies

2008-11-04 Thread John.Baker
Graham,

Thanks for your advice.  I was wondering if parent/child relationships
were the answer.  However, there are two problems with this approach. 

The first is that I'm writing a plugin to a product and it created the
maven project, and I note it's declared a parent:


com.atlassian.confluence.plugin.base
confluence-plugin-base
17


So, my plugin already depends on the Confluence Plugin base, and depends
on my common code pom.  How is this structured?

The second is that I'm still somewhat unfamilar with the directory
structure for the parent/child relationships.  If I had poarent project
and two child projects, how does the  tag of the child project
know where to find the parent project (on the filesystem).

Thanks,


John 

> -Original Message-
> From: Graham Leggett [mailto:[EMAIL PROTECTED] 
> Sent: 03 November 2008 21:00
> To: Maven Users List
> Subject: Re: Multiple project dependencies
> 
> [EMAIL PROTECTED] wrote:
> 
> >> I'm new to maven and I have a question regarding multiple projects 
> >> and how the can be linked.  I've created a "common code" 
> project, and 
> >> I have another which depends upon this project.  I've got two 
> >> directories, two pom files, etc., and the common code project can 
> >> generate a jar file (mvn jar:jar).  The other project has a 
> >> dependency in the pom.xml file:
> >>
> >> 
> >> com.x.common
> >> x.common
> >> 0.0.1-SNAPSHOT
> >> 
> >> 
> >> When the mvn process runs, it contacts the repositories 
> and tries to 
> >> download this dependency, which will obviously fail.  How do I 
> >> configure mvn to look locally for a dependency, and in 
> this case, run 
> >> mvn jar:jar in the common project directory to obtain the required 
> >> jar?
> 
> It depends on how you want to structure your code.
> 
> If the common code is likely to follow it's own release 
> cycle, make a formal release of the common code, and then 
> make your code depend on that formal release. Don't do this 
> manually, use the release plugin to do this for you.
> 
> If the common code is likely to change alongside the other 
> code, you might choose to build and release all the jars 
> together in one go.
> 
> What you want to do is create a multi-module project by 
> creating a parent pom project, and add each of the multi 
> modules as children of this parent, using the  
> element in the pom. In each child project, add the  
> tag pointing back to the parent pom.
> 
> When you build the parent, all the modules listed within the 
> parent will be built.
> 
> If your dependencies are configured correctly, maven will 
> figure out for itself what order things should be built in.
> 
> Hint: in your children projects, make them inherit the 
> parent's version by putting in ${pom.version} as a variable. 
> For example:
> 
>   
>   com.x.common
>   x.common
>   ${pom.version}
>   
> 
> When you release the parent, the children will be released 
> and versioned automatically.
> 
> Regards,
> Graham
> --
> 
___

This e-mail may contain information that is confidential, privileged or 
otherwise protected from disclosure. If you are not an intended recipient of 
this e-mail, do not duplicate or redistribute it by any means. Please delete it 
and any attachments and notify the sender that you have received it in error. 
Unless specifically indicated, this e-mail is not an offer to buy or sell or a 
solicitation to buy or sell any securities, investment products or other 
financial product or service, an official confirmation of any transaction, or 
an official statement of Barclays. Any views or opinions presented are solely 
those of the author and do not necessarily represent those of Barclays. This 
e-mail is subject to terms available at the following link: 
www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the 
foregoing.  Barclays Capital is the investment banking division of Barclays 
Bank PLC, a company registered in England (number 1026167) with its registered 
office at 1 Churchill Place, London, E14 5HP.  This email may relate to or be 
sent from other members of the Barclays Group.
___

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