Re: Setting up a Internal Maven Repo

2007-01-15 Thread ir. ing. Jan Dockx

See 


On 16 Jan 2007, at 8:22, Barrie Treloar wrote:


On 1/16/07, CHHAJED, Amit, GBM <[EMAIL PROTECTED]> wrote:

Hi,

I was looking for a links which will help me in setting up a  
Internal Maven
repository and things that I need to take care while setting the  
same. Any

help / links / suggestions would be appreciated.


For Maven 2 see
http://docs.codehaus.org/display/MAVENUSER/Using+Maven+in+a 
+corporate+environment


-
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: Error in running mvn

2007-01-15 Thread Sebastien Arbogast

My mistake. I just realized that I installed maven in
/usr/local/maven-2.0.4and my M2_HOME variable is /usr/local/lib/maven-
2.0.4.
That should be the problem.
Sorry about that and thanks for your time.

2007/1/16, franz see <[EMAIL PROTECTED]>:



Good day,

Kindly verify that you have $M2_HOME\core\boot\classworlds-1.1.jar.

Cheers,
Franz


Sebastien Arbogast wrote:
>
> I have exactly the same Exception popping up and my environment
variables
> are correctly set:
>
> [EMAIL PROTECTED]:~# mvn --version
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/codehaus/classworlds/Launcher
> [EMAIL PROTECTED]:~# echo $M2_HOME
> /usr/local/lib/maven-2.0.4
> [EMAIL PROTECTED]:~# echo $JAVA_HOME
> /usr/lib/jvm/java-1.5.0-sun
>
> What else could it be?
>
>
> Neeraj Bisht wrote:
>>
>> you have not set java_home or maven home
>>
>> On 12/6/06, Dheeraj Agrawal <[EMAIL PROTECTED]> wrote:
>>>
>>> Hi,
>>>
>>> I just downloaded the bin tar ball for maven.
>>> Extracted it and now trying to run it.
>>> But I am getting the following error.
>>>
>>> [EMAIL PROTECTED]:~/maven-2.0/bin$ ./mvn
>>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>> org/codehaus/classworlds/Launcher
>>>
>>>
>>> I had installed this earlier also but never got such an error.
>>>
>>> Thanks
>>> dheeraj
>>>
>>>
>>
>>
>
>

--
View this message in context:
http://www.nabble.com/Error-in-running-mvn-tf2764641s177.html#a8384398
Sent from the Maven - Users mailing list archive at Nabble.com.


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





--
Sébastien Arbogast

http://www.sebastien-arbogast.com


Re: Standard directory layout

2007-01-15 Thread Fred Foucart

Thank you for your helpful answers.
I now have the solution. I'm gonna use the generated-sources directory(I
don't have any plugin yet for the generation tool)

Regards,
Fred

2007/1/15, Ian Springer <[EMAIL PROTECTED]>:


http://maven.apache.org/guides/introduction/introduction-to-the-standard
-directory-layout.html

Sp, assuming you're checking in the UML-generated sources and
descriptors, your layout might look something like:

- src/main/java
- src/main/descriptors
- target/classes

To invoke your custom generator, you'll want to use either the antrun
plugin or a custom plugin for the generation tool (if one exists). The
generated classes you could generate to target/classes, along with the
the main classes.

| -Original Message-
| From: Fred Foucart [mailto:[EMAIL PROTECTED]
| Sent: Monday, January 15, 2007 10:57 AM
| To: Maven Users List
| Subject: Re: Standard directory layout
|
| Maven 2.
| Is there any particular specification about that ?
|
|
| 2007/1/15, Ian Springer <[EMAIL PROTECTED]>:
| >
| > Are you using Maven 1 or Maven 2?
| >
| > | -Original Message-
| > | From: Fred Foucart [mailto:[EMAIL PROTECTED]
| > | Sent: Monday, January 15, 2007 5:47 AM
| > | To: users@maven.apache.org
| > | Subject: Standard directory layout
| > |
| > | Hello everybody,
| > |
| > | I need to define a specific Maven layout for the following
| > | application:
| > |
| > | The code is generated from an Uml modelling tool.
| > | It generates sources and xml files. The XML files are
| needed for the
| > | next tool that we are going to use.
| > |
| > | Our actual directory layout is like this:
| > |
| > | -project
| > | -src(generated sources)
| > | -descriptors(XML files)
| > |
| > | The next step is to use an another tool that generates specific
| > | sources in order to obtain the final classes(For persistence for
| > | example). This code is generated from "src"
| > | and "descriptors"
| > |
| > | The directory layout is now like this:
| > |
| > | -project
| > |  -src
| > |  -fwk-impl(generated sources for the specific tool)
| > |  -descriptors
| > |  -classes (Binary code from src and fwk-impl)
| > |
| > | My aim is to use the standard Maven layout. My main question is
| > | where to put the "descriptors" and the "fwk-impl" directories ?
| > |
| > | Thank you for your help.
| > |
| >
| >
| -
| > To unsubscribe, e-mail: [EMAIL PROTECTED]
| > For additional commands, e-mail: [EMAIL PROTECTED]
| >
| >
|

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




Re: Setting up a Internal Maven Repo

2007-01-15 Thread Barrie Treloar

On 1/16/07, CHHAJED, Amit, GBM <[EMAIL PROTECTED]> wrote:

Hi,

I was looking for a links which will help me in setting up a Internal Maven
repository and things that I need to take care while setting the same. Any
help / links / suggestions would be appreciated.


For Maven 2 see
http://docs.codehaus.org/display/MAVENUSER/Using+Maven+in+a+corporate+environment

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



fix does not work for me [jira] Updated: (MASSEMBLY-121) Custom manifest attributres are ignored.]

2007-01-15 Thread berndq

Hi,

I tried it again today

[INFO] snapshot 
org.apache.maven.plugins:maven-assembly-plugin:2.2-SNAPSHOT: checking 
for updates from apache.org
Downloading: 
http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/plugins/maven-assembly-plugin/2.2-SNAPSHOT/maven-assembly-plugin-2.2-20070112.063452-32.pom

11K downloaded

but no changes, attributes are still not in manifest. The fix does not 
work for me.


What is wrong?

Bernd


Hi John,

I tried your fix:


[DEBUG] maven-assembly-plugin: resolved to version 
2.2-20070112.063452-32 from repository apache.org


...

[DEBUG] Configuring mojo 
'org.apache.maven.plugins:maven-assembly-plugin:2.2-SNAPSHOT:assembly' -->

...
[DEBUG]   (f) manifestEntries = {mode=development}


but they still do not appear in the assembly.

What is wrong?

best regards
Bernd

-
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: Setting up a Internal Maven Repo

2007-01-15 Thread CHHAJED, Amit, GBM
Thanks Neeraj. 


Thanks,
Amit Chhajed
Senior Developer
GBM | Royal Bank Of Scotland
Desk: +91-124-4336400 Ext : 6753

-Original Message-
From: Neeraj Bisht [mailto:[EMAIL PROTECTED] 
Sent: 16 January 2007 12:21
To: Maven Users List
Subject: Re: Setting up a Internal Maven Repo

Hi go for this link

http://maven.apache.org/maven-1.x/reference/internal-repositories.html
 it will help you

Regards
Neeraj


On 1/16/07, CHHAJED, Amit, GBM <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I was looking for a links which will help me in setting up a Internal 
> Maven repository and things that I need to take care while setting the 
> same. Any help / links / suggestions would be appreciated.
>
> Thanks,
> Amit Chhajed
> Senior Developer
> GBM | Royal Bank Of Scotland
> Desk: +91-124-4336400 Ext : 6753
>
>
> **
> * The Royal Bank of Scotland plc. Registered in Scotland 
> No 90312.
> Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.
> Authorised and regulated by the Financial Services Authority
>
> This e-mail message is confidential and for use by the addressee only. 
> If the message is received by anyone other than the addressee, please 
> return the message to the sender by replying to it and then delete the 
> message from your computer. Internet e-mails are not necessarily 
> secure. The Royal Bank of Scotland plc does not accept responsibility 
> for changes made to this message after it was sent.
>
> Whilst all reasonable care has been taken to avoid the transmission of 
> viruses, it is the responsibility of the recipient to ensure that the 
> onward transmission, opening or use of this message and any 
> attachments will not adversely affect its systems or data. No 
> responsibility is accepted by The Royal Bank of Scotland plc in this 
> regard and the recipient should carry out such virus and other checks 
> as it considers appropriate.
> Visit our websites at:
> www.rbs.com
> www.rbsgc.com
> www.rbsmarkets.com
>
> **
> *
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Setting up a Internal Maven Repo

2007-01-15 Thread Neeraj Bisht

Hi go for this link

http://maven.apache.org/maven-1.x/reference/internal-repositories.html
it will help you

Regards
Neeraj


On 1/16/07, CHHAJED, Amit, GBM <[EMAIL PROTECTED]> wrote:


Hi,

I was looking for a links which will help me in setting up a Internal
Maven
repository and things that I need to take care while setting the same. Any
help / links / suggestions would be appreciated.

Thanks,
Amit Chhajed
Senior Developer
GBM | Royal Bank Of Scotland
Desk: +91-124-4336400 Ext : 6753


***
The Royal Bank of Scotland plc. Registered in Scotland No 90312.
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.
Authorised and regulated by the Financial Services Authority

This e-mail message is confidential and for use by the
addressee only. If the message is received by anyone other
than the addressee, please return the message to the sender
by replying to it and then delete the message from your
computer. Internet e-mails are not necessarily secure. The
Royal Bank of Scotland plc does not accept responsibility for
changes made to this message after it was sent.

Whilst all reasonable care has been taken to avoid the
transmission of viruses, it is the responsibility of the recipient to
ensure that the onward transmission, opening or use of this
message and any attachments will not adversely affect its
systems or data. No responsibility is accepted by The
Royal Bank of Scotland plc in this regard and the recipient should carry
out such virus and other checks as it considers appropriate.
Visit our websites at:
www.rbs.com
www.rbsgc.com
www.rbsmarkets.com

***

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




Setting up a Internal Maven Repo

2007-01-15 Thread CHHAJED, Amit, GBM
Hi,
 
I was looking for a links which will help me in setting up a Internal Maven
repository and things that I need to take care while setting the same. Any
help / links / suggestions would be appreciated.
 
Thanks,
Amit Chhajed
Senior Developer
GBM | Royal Bank Of Scotland
Desk: +91-124-4336400 Ext : 6753

***
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered 
Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
Authorised and regulated by the Financial Services Authority 
 
This e-mail message is confidential and for use by the 
addressee only. If the message is received by anyone other 
than the addressee, please return the message to the sender 
by replying to it and then delete the message from your 
computer. Internet e-mails are not necessarily secure. The 
Royal Bank of Scotland plc does not accept responsibility for 
changes made to this message after it was sent. 

Whilst all reasonable care has been taken to avoid the 
transmission of viruses, it is the responsibility of the recipient to 
ensure that the onward transmission, opening or use of this 
message and any attachments will not adversely affect its 
systems or data. No responsibility is accepted by The 
Royal Bank of Scotland plc in this regard and the recipient should carry 
out such virus and other checks as it considers appropriate. 
Visit our websites at: 
www.rbs.com
www.rbsgc.com
www.rbsmarkets.com
***

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



RE: Standard directory layout

2007-01-15 Thread Ian Springer
http://maven.apache.org/guides/introduction/introduction-to-the-standard
-directory-layout.html

Sp, assuming you're checking in the UML-generated sources and
descriptors, your layout might look something like:

- src/main/java
- src/main/descriptors
- target/classes

To invoke your custom generator, you'll want to use either the antrun
plugin or a custom plugin for the generation tool (if one exists). The
generated classes you could generate to target/classes, along with the
the main classes.

| -Original Message-
| From: Fred Foucart [mailto:[EMAIL PROTECTED] 
| Sent: Monday, January 15, 2007 10:57 AM
| To: Maven Users List
| Subject: Re: Standard directory layout
| 
| Maven 2.
| Is there any particular specification about that ?
| 
| 
| 2007/1/15, Ian Springer <[EMAIL PROTECTED]>:
| >
| > Are you using Maven 1 or Maven 2?
| >
| > | -Original Message-
| > | From: Fred Foucart [mailto:[EMAIL PROTECTED]
| > | Sent: Monday, January 15, 2007 5:47 AM
| > | To: users@maven.apache.org
| > | Subject: Standard directory layout
| > |
| > | Hello everybody,
| > |
| > | I need to define a specific Maven layout for the following
| > | application:
| > |
| > | The code is generated from an Uml modelling tool.
| > | It generates sources and xml files. The XML files are 
| needed for the 
| > | next tool that we are going to use.
| > |
| > | Our actual directory layout is like this:
| > |
| > | -project
| > | -src(generated sources)
| > | -descriptors(XML files)
| > |
| > | The next step is to use an another tool that generates specific 
| > | sources in order to obtain the final classes(For persistence for 
| > | example). This code is generated from "src"
| > | and "descriptors"
| > |
| > | The directory layout is now like this:
| > |
| > | -project
| > |  -src
| > |  -fwk-impl(generated sources for the specific tool)
| > |  -descriptors
| > |  -classes (Binary code from src and fwk-impl)
| > |
| > | My aim is to use the standard Maven layout. My main question is 
| > | where to put the "descriptors" and the "fwk-impl" directories ?
| > |
| > | Thank you for your help.
| > |
| >
| > 
| -
| > To unsubscribe, e-mail: [EMAIL PROTECTED]
| > For additional commands, e-mail: [EMAIL PROTECTED]
| >
| >
| 

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



RE: javadoc plugin not java5 compatible?

2007-01-15 Thread Jörg Schaible
David J. M. Karlsen wrote on Tuesday, January 16, 2007 1:18 AM:

> Jörg Schaible wrote:
>> David J. M. Karlsen wrote on Friday, January 12, 2007 12:14 PM:
>> 
>> 
>>> Hi!
>>> 
>>> I've declared my parent pom as follows:
>>> 
>>> artifactId>maven-javadoc-plugin
>>> 
>>> 2.2-SNAPSHOT 
>>> 
>>> 
>>> 
>>> ${encoding.default}
>>> 
>>> ${jdk.level}
>>> 
>>> 
>>> 
>> 
>> and where did you put this? / and/or
>> / ? 
>> 
> Oh - of course - what a nitwit I am - new project - wrong placement -
> it was in the build section - moved :-)

Never mind, it is not very convenient to configure this at two places, 
especially since the configuration in the build/plugins section is merged with 
the one inherited from the parent POM and the one in reporting/plugins is not 
:-/

- Jörg

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



Re: Error in running mvn

2007-01-15 Thread franz see

Good day, 

Kindly verify that you have $M2_HOME\core\boot\classworlds-1.1.jar.

Cheers,
Franz


Sebastien Arbogast wrote:
> 
> I have exactly the same Exception popping up and my environment variables
> are correctly set:
> 
> [EMAIL PROTECTED]:~# mvn --version
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/codehaus/classworlds/Launcher
> [EMAIL PROTECTED]:~# echo $M2_HOME
> /usr/local/lib/maven-2.0.4
> [EMAIL PROTECTED]:~# echo $JAVA_HOME
> /usr/lib/jvm/java-1.5.0-sun
> 
> What else could it be?
> 
> 
> Neeraj Bisht wrote:
>> 
>> you have not set java_home or maven home
>> 
>> On 12/6/06, Dheeraj Agrawal <[EMAIL PROTECTED]> wrote:
>>>
>>> Hi,
>>>
>>> I just downloaded the bin tar ball for maven.
>>> Extracted it and now trying to run it.
>>> But I am getting the following error.
>>>
>>> [EMAIL PROTECTED]:~/maven-2.0/bin$ ./mvn
>>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>> org/codehaus/classworlds/Launcher
>>>
>>>
>>> I had installed this earlier also but never got such an error.
>>>
>>> Thanks
>>> dheeraj
>>>
>>>
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Error-in-running-mvn-tf2764641s177.html#a8384398
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 you compile test cases without running them

2007-01-15 Thread franz see

Good day to you, jp4,

The source code compilation is handled by the maven-compiler-plugin by
default. To compile just your test cases, you can do mvn
compiler:testCompile ( see [1] )

Cheers,
Franz

[1] http://maven.apache.org/plugins/maven-compiler-plugin/


jp4 wrote:
> 
> I would like to be able to compile my test cases without actually running
> them.  I use maven.test.skip=true but that seems to prevent not only the
> test execution but the test compilation.  Is there a way to compile
> without running test cases.  I would prefer not to mess with the pom
> files, but do it via the command line like -Dmaven.test.skip=true.
> 
> Thanks,
> 
> jp4
> 

-- 
View this message in context: 
http://www.nabble.com/Can-you-compile-test-cases-without-running-them-tf3016005s177.html#a8384262
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: List of dependencies

2007-01-15 Thread allan ramirez

On 1/14/07, Wayne Fay <[EMAIL PROTECTED]> wrote:


For me at least, the amount of time required to generate the full site
vs only one report is hardly worth my time remembering and properly
typing out the full "mvn project-info-reports:dependencies" bit on the
command line! ;-)



We have the same argument here :)


Re: Snapshot plugin repository - where is it now...

2007-01-15 Thread allan ramirez

http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html

you can download the maven-ejb-plugin-2.1-SNAPSGHOT here
http://people.apache.org/repo/m2-snapshot-repository


On 1/16/07, Tom Huybrechts <[EMAIL PROTECTED]> wrote:


http://snapshots.repository.codehaus.org/
http://repository.codehaus.org/

See links at the top of http://mojo.codehaus.org



On 1/15/07, Darren Hartford <[EMAIL PROTECTED]> wrote:
> Trying to maintain consistency with an evolving platform
>
> Trying to download the maven-ejb-plugin-2.1-SNAPSHOT that was originally
> at
>
> *http://snapshots.maven.codehaus.org/maven2/plugins
> *http://snapshots.maven.codehaus.org/maven2
>
> That website is no longer available.  Where is the new location?
>
> Thanks,
> -D
>
> -
> 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]





--
==
- alramirez


Re: Can you compile test cases without running them

2007-01-15 Thread allan ramirez

just command "mvn test-compile"

On 1/16/07, jp4 <[EMAIL PROTECTED]> wrote:



I would like to be able to compile my test cases without actually running
them.  I use maven.test.skip=true but that seems to prevent not only the
test execution but the test compilation.  Is there a way to compile
without
running test cases.  I would prefer not to mess with the pom files, but do
it via the command line like -Dmaven.test.skip=true.

Thanks,

jp4
--
View this message in context:
http://www.nabble.com/Can-you-compile-test-cases-without-running-them-tf3016005s177.html#a8375655
Sent from the Maven - Users mailing list archive at Nabble.com.


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





--
==
- alramirez


Re: Q: Creating source bundles with packaging pom?

2007-01-15 Thread franz see

Good day to you, Steinar,

I see. How about doing 

mvn -DperformRelease=true install

"-DperformRelease=true " will activate a profile of the super POM ( see [1]
) which creates the source and javadoc jars.

Cheers,
Franz

[1] http://maven.apache.org/guides/introduction/introduction-to-the-pom.html


Steinar Bang wrote:
> 
>> franz see <[EMAIL PROTECTED]>:
> 
>> You can use mvn eclipse:eclipse -DdownloadSources instead ;) 
> 
> Thanx but that won't help me...:-)
> 
> Unless I'm mistaken, that will pull down sources for jars into the
> local repo.
> 
> What I want is to actually build a source jar when I'm building a jar,
> and placing the source jar in the repo, next to the regular jar, and
> the test jar.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Q%3A-Creating-source-bundles-with-packaging-pom--tf2971381s177.html#a8382089
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: Excluding source directory branches during compilation

2007-01-15 Thread franz see

Good day to you, Roberto,

If you have only one source directory, you can use


  ...
  
some/path/to/your/java/files
  


But if have several directories, on top of my head, I guess you'd have to
use the resources plugin. In your case, if you have

.
 `-- src
  `-- main
   `-- java
|-- trash1
|-- traxh2
|-- trunk
`-- branches

and you want to compile two source directories: src/main/java/trunk and
src/main/java/branches, you can try something like...


  ...

  

  
src/main/java/trunk
../../src/main/java/merge
  
  
src/main/java/branches
../../src/main/java/merge
  


src/main/java/merge
  



This would copy your java files from trunk and branches into merge, and
compile those.

Furthermore, to ensure that the merged files are deleted when you do a mvn
clean, add this to your pom as well


  ...
  
...


  
maven-clean-plugin

  

  src/main/java/merge

  

  

  


This will add src/main/java/merge to the list of directories maven will
delete with mvn clean.

Cheers,
Franz


Roberto UserList wrote:
> 
> Franz, what can I do if there are, for example, two more directories:
> src/main/java/trash1
> src/main/java/traxh2
> and I'd like only to compile the files inside trunk and branches
> directories?
> How can I tell Maven  not to compile files in trash1 and trash2
> directories?
> Tanks a lot in advance.
> Regards,
> Roberto.
> 
> 
> On 1/15/07, franz see <[EMAIL PROTECTED]> wrote:
>>
>>
>> Good day to you, Roberto,
>>
>> If you have something like src/main/java/trunk and
>> src/main/java/branches,
>> you can simply do
>>
>> 
>> ...
>> 
>>src/main/java/trunk
>> 
>> 
>>
>> Cheers,
>> Franz
>>
>>
>> Roberto UserList wrote:
>> >
>> > Hi, all!
>> > I'd like to compile a subproject with Maven2 but i'd like not to
>> compile
>> > files of all directory branches. How can I exclude a specific source
>> > directory?
>> > Tahnks in advance for help.
>> > Regards,
>> > Roberto.
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Excluding-source-directory-branches-during-compilation-tf3013910s177.html#a8373047
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Excluding-source-directory-branches-during-compilation-tf3013910s177.html#a8382087
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: javadoc plugin not java5 compatible?

2007-01-15 Thread David J. M. Karlsen

Jörg Schaible wrote:

David J. M. Karlsen wrote on Friday, January 12, 2007 12:14 PM:

  

Hi!

I've declared my parent pom as follows:

artifactId>maven-javadoc-plugin

2.2-SNAPSHOT 



${encoding.default}

${jdk.level}





and where did you put this? / and/or / ?
  
Oh - of course - what a nitwit I am - new project - wrong placement - it 
was in the build section - moved :-)


--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com


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



Re: Site generation and URL parsing

2007-01-15 Thread Brad Smith
Thank you Dennis!

Brad


On Mon, 2007-01-15 at 23:02 +0100, Dennis Lundberg wrote:
> I think that your POM has this set up:
> 
>http://sforge.fs.fed.us/
> 
> Maven will use that info to determine whether links, like the ones in 
> your menu, are relative to the site that is being built, or not. For 
> more info see:
> 
>http://jira.codehaus.org/browse/MSITE-159
> 


signature.asc
Description: This is a digitally signed message part


Webstart and Upload

2007-01-15 Thread Massimiliano Amato

Hello,

I ported my application into maven2 using Webstart plugin and i have the zip
file generated, but i have a couple question

1) I have the zip file produced, is there a way to upload to the ftp site
where my JWS runs automatically or i have to do it manually?

2) I have a complex system, basically i first use filtering to generate not
only template.vm but also all the sets of development/testing/production
html files that will ship to the site. All those files are put in
target/classes of course and then template.vm is used to generate app.jnlp
When the zip is generated i have to include, dependency, app.jnlp and all
other extra file that for me stays in the same directory as
template.vm(target/classes). Any way not to include it? Is not a big
dela just trying
to understand if this can be done

Thanks
Massimiliano


Re: maven-assembly-plugin:2.2-SNAPSHOT cannot be downloaded

2007-01-15 Thread Barrie Treloar

If you want to avoid including snapshot repositories in your build,
then you will need to follow
http://docs.codehaus.org/display/MAVENUSER/Patching+Maven+Plugins.

You should seriously think about avoiding including the snapshot
repository in your build process as you will get ALL snapshots not
just the snapshot for the one plugin you want.

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



Re: HOW TO - Use maven-eclipse-plugin to build a RCP Target Platform and an internal repository from an Eclipse installation

2007-01-15 Thread Barrie Treloar

To be specific, if my eclipse install dir is /usr/local/eclipse-32/,
does the eclipse:make-artifacts goal deploy everything under
/usr/local/eclipse-32/plugins/?  Or does it copy just the eclipse
runtime?  (if so, how does it know what to take?)

If it copies just the runtime, I understand why the RCP must be
deployed in addition.

If it copies everything, then deploying the RCP may not be neccessary,
if RCP has been installed in the eclipse installation first...?


The make-artifacts goal only copies the plugins. It does nothing with
the runtime.

To build your RCP application you need an Eclipse Target Platform,
which is best created separately from your Eclipse Install.  This
allows you to be using Eclipse 3.2 for the build process but Eclipse
RCP 3.1 for the application you are building.

The steps "Add the Eclipse RCP artifacts to your internal repository"
deploy the base target platform into your internal maven repository.
These can then be downloaded into your local m2 repository and
unzipped during the "Create an Eclipse RCP Target" step.

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



Re: Can you compile test cases without running them

2007-01-15 Thread drekka

Another method is to tell the surfire plugin to skip testing. Just add this
to the plugins:




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

true





I used this a lot because I run my own plugin to handle JUnit4.x because the
surefire one has too many issues with it. So I need the tests compiled but
not run by surefire. But still need to execute the test phase so my plugin
runs.

ciao
Derek
 

jp4 wrote:
> 
> I would like to be able to compile my test cases without actually running
> them.  I use maven.test.skip=true but that seems to prevent not only the
> test execution but the test compilation.  Is there a way to compile
> without running test cases.  I would prefer not to mess with the pom
> files, but do it via the command line like -Dmaven.test.skip=true.
> 
> Thanks,
> 
> jp4
> 

-- 
View this message in context: 
http://www.nabble.com/Can-you-compile-test-cases-without-running-them-tf3016005s177.html#a8381021
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: Q: Creating source bundles with packaging pom?

2007-01-15 Thread Steinar Bang
> Arnaud Bailly <[EMAIL PROTECTED]>:

> Steinar Bang <[EMAIL PROTECTED]> writes:
>> What does pom imply?  In particular: why would
>> one choose pom over jar?

> Packgaging type is the single most important feature of a pom as it
> defines the binding of mojos to the lifecycle used to builde that
> project, which means what is done at what time. Packaging "pom" is
> for toplevel projects without sources, and not much is done with
> this packaging. Packaging jar is the standard one for projects with
> sources to compile, test and deploy.

That's what I thought.  But in this case it seemed to be an artifact
with packaging "pom", that produces a jar.

But as it turns out, I was looking at the wrong pom.xml.  The project
consists of a _lot_ of them.

Anyway I've now tried 
mvn source:jar repository:bundle-create

That gave me the following error message:

[ERROR] BUILD ERROR
[INFO] 
[INFO] project.url must be present.
[INFO] 

I've tried the four combinations below, without success:
 mvn -Dproject.url="http://localhost/"; source:jar repository:bundle-create
 mvn  source:jar repository:bundle-create -Dproject.url="http://localhost/";
 mvn -Dproject.url=http://localhost/ source:jar repository:bundle-create
 mvn  source:jar repository:bundle-create -Dproject.url=http://localhost/

But I still get the error message.

Google didn't give me any useful matches when searching for that error
message. :-/

> see
> http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html,
> although a bit too technical. 

Thanx!  I'll give it a look.


- Steinar


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



Re: Site generation and URL parsing

2007-01-15 Thread Dennis Lundberg

I think that your POM has this set up:

  http://sforge.fs.fed.us/

Maven will use that info to determine whether links, like the ones in 
your menu, are relative to the site that is being built, or not. For 
more info see:


  http://jira.codehaus.org/browse/MSITE-159

--
Dennis Lundberg

Brad Smith wrote:

In the site.xml file I have the following menu description:


 http://fsweb.nris.fs.fed.us/"; />
 http://sforge.fs.fed.us/"; />
 http://sforge.fs.fed.us/lists"; />


For some reason maven will replace "http://sforge.fs.fed.us/"; with the
URL for the maven generated site. If I change any character in
http://sforge.fs.fed.us/ or add characters maven includes the URL
unchanged.

So what i mean is that in the example above the maven generated site has
file:///home/bgsmith/workspaces/pmm_space/fs-acegi/target/site/index.html as 
the URL for Tracker menu item, and 
file:///home/bgsmith/workspaces/pmm_space/fs-acegi/target/site/lists as the URL 
for the Lists menu item.

Is this a bug? Or am I missing something?

Thanks,

Brad





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



Re: Q: Creating source bundles with packaging pom?

2007-01-15 Thread Steinar Bang
> franz see <[EMAIL PROTECTED]>:

> You can use mvn eclipse:eclipse -DdownloadSources instead ;) 

Thanx but that won't help me...:-)

Unless I'm mistaken, that will pull down sources for jars into the
local repo.

What I want is to actually build a source jar when I'm building a jar,
and placing the source jar in the repo, next to the regular jar, and
the test jar.


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



Re: site top level page not linking to children correctly

2007-01-15 Thread Dennis Lundberg
You need to define the  element in both parent and child POMs. The 
value of these tags are used to create the links between the parent and 
child sites.


--
Dennis Lundberg

[EMAIL PROTECTED] wrote:

I am setting up a multi-module project in Maven and want to get the
web-site functionality working. I seem to have the basics, but my top
level page has hyperlinks to the 'child' modules, but they're all
pointing at http://maven.apache.org/index.html.

When I type mvn site, I do get an error:

[WARNING] No URL defined for the project - decoration links will not be
resolved

Which sounds like it could be relevant?

Can anyone help with this?

Thanks,

Adrian Smith
BT Group




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



Re: Error in running mvn

2007-01-15 Thread Sebastien Arbogast

I have exactly the same Exception popping up and my environment variables are
correctly set:

[EMAIL PROTECTED]:~# mvn --version
Exception in thread "main" java.lang.NoClassDefFoundError:
org/codehaus/classworlds/Launcher
[EMAIL PROTECTED]:~# echo $M2_HOME
/usr/local/lib/maven-2.0.4
[EMAIL PROTECTED]:~# echo $JAVA_HOME
/usr/lib/jvm/java-1.5.0-sun

What else could it be?


Neeraj Bisht wrote:
> 
> you have not set java_home or maven home
> 
> On 12/6/06, Dheeraj Agrawal <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I just downloaded the bin tar ball for maven.
>> Extracted it and now trying to run it.
>> But I am getting the following error.
>>
>> [EMAIL PROTECTED]:~/maven-2.0/bin$ ./mvn
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/codehaus/classworlds/Launcher
>>
>>
>> I had installed this earlier also but never got such an error.
>>
>> Thanks
>> dheeraj
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Error-in-running-mvn-tf2764641s177.html#a8380081
Sent from the Maven - Users mailing list archive at Nabble.com.


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



getting repository jars into assembly

2007-01-15 Thread Mick Knutson

I upgraded to 2.2 of the assembly plugin, and still can't seem to get jars
into my tar file.

here is an error I get now:

[INFO] [jar:jar]
[INFO] Building jar: C:\opt\tro\common\acegi\target\acegi-2.1.0.jar
[INFO] [assembly:assembly]
[INFO] Reading assembly descriptor: C:\opt\tro\src\main\resources\assembly-
descriptor.xml
[INFO] Processing DependencySet (output=/tomcat/webapps/WEB-INF/lib)
[WARNING] The following patterns were never triggered in this artifact
inclusion filter:
o  'org.acegisecurity:acegi-security'
o  'aopalliance:aopalliance'
o  'aspectj:aspectj'
o  'org.springframework:spring'
o  'commons-lang:commons-lang-2.1'


Here is my assembly descriptor:




   
   
   tar
   

   

   
   
   /tomcat/webapps/WEB-INF/lib
   
   false
   
   org.acegisecurity:acegi-security
   aopalliance:aopalliance
   aspectj:aspectj
   org.springframework:spring
   commons-lang:commons-lang-2.1
   
   

   
   

   
   
   project-ear/target
   
   
   *.ear
   
   
   xdocs/**
   
   

   
   ${basedir}/src/main/resources/configs
   
   
   
   **/*.*
   
   
   assembly-descriptor.xml
   
   

   

${basedir}/src/main/resources/tomcat/webapps
   /tomcat/webapps
   
   
   **/*.*
   
   
   **/packages/modules/**
   
   

   






--
Thanks

DJ MICK

(Mick Knutson)
http://www.djmick.com
http://www.myspace.com/djmick_dot_com
http://www.thumpradio.com


Re: I just want continuum to download my pom file and execute maven2

2007-01-15 Thread Carlos Sanchez

use file:// protocol in the scm section

On 1/15/07, Jesus Hinojosa <[EMAIL PROTECTED]> wrote:

I have a proxy that will serve the maven2 pom files for continuum (using http) 
and includes its own mechanism to download and build the project (no scm 
section). I wnat continuum just to download the file and execute the maven over 
the file. Is there a way I can do that ? Right now is searching for the scm 
section and when it doesn't find, it throws an error.

Thanks for any help



This e-mail, and any attachments thereto, is confidential and is intended only 
for the individual(s) named.  If you are not the intended recipient, please let 
us know by e-mail reply and delete it from your system; do not copy/save this 
e-mail or disclose its contents to anyone.  E-mail transmissions cannot be 
guaranteed to be secure or error-free as the transmission could be interrupted, 
corrupted, lost, destroyed, altered, arrive late or contain viruses.  
ObjectWave does not accept liability for any errors or omissions in the 
contents of this e-mail which arise as a result of e-mail transmission.  The 
views expressed in this e-mail do not necessarily reflect those of ObjectWave 
or its affiliates.









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


I just want continuum to download my pom file and execute maven2

2007-01-15 Thread Jesus Hinojosa
I have a proxy that will serve the maven2 pom files for continuum (using http) 
and includes its own mechanism to download and build the project (no scm 
section). I wnat continuum just to download the file and execute the maven over 
the file. Is there a way I can do that ? Right now is searching for the scm 
section and when it doesn't find, it throws an error.

Thanks for any help



This e-mail, and any attachments thereto, is confidential and is intended only 
for the individual(s) named.  If you are not the intended recipient, please let 
us know by e-mail reply and delete it from your system; do not copy/save this 
e-mail or disclose its contents to anyone.  E-mail transmissions cannot be 
guaranteed to be secure or error-free as the transmission could be interrupted, 
corrupted, lost, destroyed, altered, arrive late or contain viruses.  
ObjectWave does not accept liability for any errors or omissions in the 
contents of this e-mail which arise as a result of e-mail transmission.  The 
views expressed in this e-mail do not necessarily reflect those of ObjectWave 
or its affiliates.






How far away is maven-assembly-plugin-2.2 from being released?

2007-01-15 Thread Christian Goetze
Just wanted to know whether it is worthwhile for me to replace my 
maven-proxy with something that understands all aspects of snapshot 
management...


I'd rather use released code if possible...
--
cg

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



Re: HOW TO - Use maven-eclipse-plugin to build a RCP Target Platform and an internal repository from an Eclipse installation

2007-01-15 Thread Steinar Bang
> "Barrie Treloar" <[EMAIL PROTECTED]>:

> You may need to explain what you mean, I'm not understanding.

Or, I can ask my questions in a more detailed manner...:-)

> The PDE build (since it just uses the Eclipse Ant PDE build under
> the covers) will find your local installation of the Eclipse jars
> and correctly create a zip file with everything your RCP application
> requires.

To be specific, if my eclipse install dir is /usr/local/eclipse-32/,
does the eclipse:make-artifacts goal deploy everything under
/usr/local/eclipse-32/plugins/?  Or does it copy just the eclipse
runtime?  (if so, how does it know what to take?)

If it copies just the runtime, I understand why the RCP must be
deployed in addition.

If it copies everything, then deploying the RCP may not be neccessary,
if RCP has been installed in the eclipse installation first...?


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



Re: Do we have a way to declare dependency on the latest released version of an artifact?

2007-01-15 Thread Tomasz Pik

On 1/15/07, Raymond Feng <[EMAIL PROTECTED]> wrote:

Hi,

I understand we can use "SNAPSHOT" as the version id to reference the latest
"unreleased" code. Do we have a special version id such as "LATEST" to reference
the latest released version? In some cases, I prefer not to use the fixed 
version id
as it will change over time as newer versions are released.


No but feel free to vote for such a thing:
http://jira.codehaus.org/browse/MNG-2431

Regards,
Tomek


Thanks,
Raymond


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



RE: maven-assembly-plugin:2.2-SNAPSHOT cannot be downloaded

2007-01-15 Thread Greg Jones
Sebastian,

You also need to add the repository as a plugin repository, as follows:

  

  Apache SNAPSHOTS
  Apache SNAPSHOTS
  http://people.apache.org/repo/m2-snapshot-repository
  
true
always
warn
  
  
true
always
fail
  

  

This took a bit of Googling when I had the same problem!

Regards,
Greg J

-Original Message-
From: Annies, Sebastian [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 16 January 2007 4:45 AM
To: users@maven.apache.org
Subject: maven-assembly-plugin:2.2-SNAPSHOT cannot be downloaded

Hello,

For some reason I cannot get any maven assembly plugin in version
2.2-SNAPSHOT to download. I added:


  Apache SNAPSHOTS
  Apache SNAPSHOTS
  http://people.apache.org/repo/m2-snapshot-repository
  
true
always
warn
  
  
true
always
fail
  


 

Re: R: [m2] Generating release POMs

2007-01-15 Thread Gabriele Contini

Some time ago i opened a jira issue about this missing feature:

http://jira.codehaus.org/browse/MRELEASE-177

Since this is a key feature for our company (we heavily use version 
ranges and releases are not reproducible), we would like to submit a 
patch to uncomment and fix the existing code. Does anyone see any reason 
not to do this?

Gabriele

Mark Hobson wrote:

On 10/01/07, Yann Le Du <[EMAIL PROTECTED]> wrote:
The answer is yes. If your project contains a pom.xml and a 
release-pom.xml,

then the release-pom.xml gets used.


That's good news.

The problem is about release-plugin not generating the 
release-pom.xml :(


Brett - any insight into why this functionality was commented out?

Mark

-
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: Excluding source directory branches during compilation

2007-01-15 Thread Roberto UserList

Franz, what can I do if there are, for example, two more directories:
src/main/java/trash1
src/main/java/traxh2
and I'd like only to compile the files inside trunk and branches
directories?
How can I tell Maven  not to compile files in trash1 and trash2 directories?
Tanks a lot in advance.
Regards,
Roberto.


On 1/15/07, franz see <[EMAIL PROTECTED]> wrote:



Good day to you, Roberto,

If you have something like src/main/java/trunk and src/main/java/branches,
you can simply do


...

   src/main/java/trunk



Cheers,
Franz


Roberto UserList wrote:
>
> Hi, all!
> I'd like to compile a subproject with Maven2 but i'd like not to compile
> files of all directory branches. How can I exclude a specific source
> directory?
> Tahnks in advance for help.
> Regards,
> Roberto.
>
>

--
View this message in context:
http://www.nabble.com/Excluding-source-directory-branches-during-compilation-tf3013910s177.html#a8373047
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-assembly-plugin:2.2-SNAPSHOT cannot be downloaded

2007-01-15 Thread Heinrich Nirschl

On 1/15/07, Annies, Sebastian <[EMAIL PROTECTED]> wrote:

Hello,

For some reason I cannot get any maven assembly plugin in version
2.2-SNAPSHOT to download. I added:




You need to use  and  instead.

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



Projects doesn't build! Company Logo error

2007-01-15 Thread Rodrigo Gonçalves

hello,

when I try to build a project, it doesn't happen anything, and in the 
'continuum.log' appears the following info:


INFO   | jvm 1| 2007/01/15 14:45:54 | 
javax.servlet.UnavailableException: java.lang.ClassNotFoundException: 
kkkppplll
INFO   | jvm 1| 2007/01/15 14:45:54 | at 
org.mortbay.jetty.servlet.Invoker.service(Invoker.java:154)
INFO   | jvm 1| 2007/01/15 14:45:54 | at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
INFO   | jvm 1| 2007/01/15 14:45:54 | at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
INFO   | jvm 1| 2007/01/15 14:45:54 | at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
INFO   | jvm 1| 2007/01/15 14:45:54 | at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
INFO   | jvm 1| 2007/01/15 14:45:54 | at 
org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
INFO   | jvm 1| 2007/01/15 14:45:54 | at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
INFO   | jvm 1| 2007/01/15 14:45:54 | at 
org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
INFO   | jvm 1| 2007/01/15 14:45:54 | at 
org.mortbay.http.HttpServer.service(HttpServer.java:879)
INFO   | jvm 1| 2007/01/15 14:45:54 | at 
org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
INFO   | jvm 1| 2007/01/15 14:45:54 | at 
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
INFO   | jvm 1| 2007/01/15 14:45:54 | at 
org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
INFO   | jvm 1| 2007/01/15 14:45:54 | at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
INFO   | jvm 1| 2007/01/15 14:45:54 | at 
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331)
INFO   | jvm 1| 2007/01/15 14:45:54 | at 
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)


where 'kkkppplll' is the Company Logo that I defined in the configuration.
if I leave that field empty the error doesn't happen but the project 
doesn't build either.


any help ???

THX
Rodrigo Gonçalves
DISCLAIMER: This message may contain confidential information or privileged 
material and is intended only for the individual(s) named. If you are not a 
named addressee and mistakenly received this message you should not copy or 
otherwise disseminate it: please delete this e-mail from your system and notify 
the sender immediately. E-mail transmissions are not guaranteed to be secure or 
without errors as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete or contain viruses. Therefore, the sender does not 
accept liability for any errors or omissions in the contents of this message 
that arise as a result of e-mail transmissions. Please request a hard copy 
version if verification is required. Critical Software, SA.


Re: Can you compile test cases without running them

2007-01-15 Thread Tom Huybrechts

-Dmaven.test.skip.exec in the surefire snapshot version

On 1/15/07, jp4 <[EMAIL PROTECTED]> wrote:


I would like to be able to compile my test cases without actually running
them.  I use maven.test.skip=true but that seems to prevent not only the
test execution but the test compilation.  Is there a way to compile without
running test cases.  I would prefer not to mess with the pom files, but do
it via the command line like -Dmaven.test.skip=true.

Thanks,

jp4
--
View this message in context: 
http://www.nabble.com/Can-you-compile-test-cases-without-running-them-tf3016005s177.html#a8375655
Sent from the Maven - Users mailing list archive at Nabble.com.


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




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



maven-assembly-plugin:2.2-SNAPSHOT cannot be downloaded

2007-01-15 Thread Annies, Sebastian
Hello,

For some reason I cannot get any maven assembly plugin in version
2.2-SNAPSHOT to download. I added:


  Apache SNAPSHOTS
  Apache SNAPSHOTS
  http://people.apache.org/repo/m2-snapshot-repository
  
true
always
warn
  
  
true
always
fail
  


 
  
  

  

  

  com.coremedia.drm.roapserver
  drm-roapserver-iopserver-base
  1.0-SNAPSHOT



  com.coremedia.drm.roapserver
  drm-roapserver-pki
  1.0-SNAPSHOT
  war



  com.coremedia.drm.roapserver
  drm-roapserver-iopserver
  1.0-SNAPSHOT
  war

  

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

Re: Can you compile test cases without running them

2007-01-15 Thread jp4

I just ran mvn clean install -Dtest=foo where foo is not a valid test and
this seems to do what I want.  If anyone has a cleaner way, please let me
know.


jp4 wrote:
> 
> I would like to be able to compile my test cases without actually running
> them.  I use maven.test.skip=true but that seems to prevent not only the
> test execution but the test compilation.  Is there a way to compile
> without running test cases.  I would prefer not to mess with the pom
> files, but do it via the command line like -Dmaven.test.skip=true.
> 
> Thanks,
> 
> jp4
> 

-- 
View this message in context: 
http://www.nabble.com/Can-you-compile-test-cases-without-running-them-tf3016005s177.html#a8375759
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 you compile test cases without running them

2007-01-15 Thread Wendy Smoak

On 1/15/07, jp4 <[EMAIL PROTECTED]> wrote:


I would like to be able to compile my test cases without actually running
them.  I use maven.test.skip=true but that seems to prevent not only the
test execution but the test compilation.  Is there a way to compile without
running test cases.  I would prefer not to mess with the pom files, but do
it via the command line like -Dmaven.test.skip=true.


http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

"mvn test-compile" will run all the lifecycle phases up to and
including test-compile.  It is in the next phase, 'test' that the
tests are executed.

--
Wendy

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



Can you compile test cases without running them

2007-01-15 Thread jp4

I would like to be able to compile my test cases without actually running
them.  I use maven.test.skip=true but that seems to prevent not only the
test execution but the test compilation.  Is there a way to compile without
running test cases.  I would prefer not to mess with the pom files, but do
it via the command line like -Dmaven.test.skip=true.

Thanks,

jp4
-- 
View this message in context: 
http://www.nabble.com/Can-you-compile-test-cases-without-running-them-tf3016005s177.html#a8375655
Sent from the Maven - Users mailing list archive at Nabble.com.


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



[m2] Skip also other test life cycle phases

2007-01-15 Thread maik . ebert
At the moment you can define "maven.test.skip=true" to inform Maven2 about 
skipping the tests.

But in my environment I do database schema generation and setup in the 
other test life cycle phases like generate-test-sources and test-compile. 
After all I don't understand why the test classes are compiled when they 
will not be executed afterwards...

So maybe it would be nice to configure which *-test-* life cycle phases 
will be executed when tests should be skipped.

Any comments?

Thanks, Maik

Re: Snapshot plugin repository - where is it now...

2007-01-15 Thread Tom Huybrechts

http://snapshots.repository.codehaus.org/
http://repository.codehaus.org/

See links at the top of http://mojo.codehaus.org



On 1/15/07, Darren Hartford <[EMAIL PROTECTED]> wrote:

Trying to maintain consistency with an evolving platform

Trying to download the maven-ejb-plugin-2.1-SNAPSHOT that was originally
at

*http://snapshots.maven.codehaus.org/maven2/plugins
*http://snapshots.maven.codehaus.org/maven2

That website is no longer available.  Where is the new location?

Thanks,
-D

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



Site generation and URL parsing

2007-01-15 Thread Brad Smith
In the site.xml file I have the following menu description:


 http://fsweb.nris.fs.fed.us/"; />
 http://sforge.fs.fed.us/"; />
 http://sforge.fs.fed.us/lists"; />


For some reason maven will replace "http://sforge.fs.fed.us/"; with the
URL for the maven generated site. If I change any character in
http://sforge.fs.fed.us/ or add characters maven includes the URL
unchanged.

So what i mean is that in the example above the maven generated site has
file:///home/bgsmith/workspaces/pmm_space/fs-acegi/target/site/index.html as 
the URL for Tracker menu item, and 
file:///home/bgsmith/workspaces/pmm_space/fs-acegi/target/site/lists as the URL 
for the Lists menu item.

Is this a bug? Or am I missing something?

Thanks,

Brad



signature.asc
Description: This is a digitally signed message part


Snapshot plugin repository - where is it now...

2007-01-15 Thread Darren Hartford
Trying to maintain consistency with an evolving platform

Trying to download the maven-ejb-plugin-2.1-SNAPSHOT that was originally
at 

*http://snapshots.maven.codehaus.org/maven2/plugins
*http://snapshots.maven.codehaus.org/maven2

That website is no longer available.  Where is the new location?

Thanks,
-D

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



site top level page not linking to children correctly

2007-01-15 Thread adrian.p.smith
I am setting up a multi-module project in Maven and want to get the
web-site functionality working. I seem to have the basics, but my top
level page has hyperlinks to the 'child' modules, but they're all
pointing at http://maven.apache.org/index.html.

When I type mvn site, I do get an error:

[WARNING] No URL defined for the project - decoration links will not be
resolved

Which sounds like it could be relevant?

Can anyone help with this?

Thanks,

Adrian Smith
BT Group


Re: Standard directory layout

2007-01-15 Thread Fred Foucart

Maven 2.
Is there any particular specification about that ?


2007/1/15, Ian Springer <[EMAIL PROTECTED]>:


Are you using Maven 1 or Maven 2?

| -Original Message-
| From: Fred Foucart [mailto:[EMAIL PROTECTED]
| Sent: Monday, January 15, 2007 5:47 AM
| To: users@maven.apache.org
| Subject: Standard directory layout
|
| Hello everybody,
|
| I need to define a specific Maven layout for the following
| application:
|
| The code is generated from an Uml modelling tool.
| It generates sources and xml files. The XML files are needed
| for the next tool that we are going to use.
|
| Our actual directory layout is like this:
|
| -project
| -src(generated sources)
| -descriptors(XML files)
|
| The next step is to use an another tool that generates
| specific sources in order to obtain the final classes(For
| persistence for example). This code is generated from "src"
| and "descriptors"
|
| The directory layout is now like this:
|
| -project
|  -src
|  -fwk-impl(generated sources for the specific tool)
|  -descriptors
|  -classes (Binary code from src and fwk-impl)
|
| My aim is to use the standard Maven layout. My main question
| is where to put the "descriptors" and the "fwk-impl" directories ?
|
| Thank you for your help.
|

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




[m2] profiles are not used while using maven 2 release plugin

2007-01-15 Thread Elid OR
Hi all,

I would like to specifiy a profile when releasing but it seems that when I 
add "-P myProfiles" it does not used it.

Any Idea ?

Elid OR.

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



Clearing out local repository during nightly builds

2007-01-15 Thread jp4

Recently I have had some issues with version management where we upgrade a
particular artifact to a new version, but some how, not all projects
reference the new version.  I have tried to mitigate this by making use of
the dependencyManagement section which works nicely.  

I would still however, like to clean out the local repository (only a
certain directory com/foo) so that I don't encounter this problem in the
future.  My problem now is that I have a pom.xml that builds all of my
modules.  In addition, this pom uses the antrun plugin to remove the
directory from the local repo.  This works fine if I do a mvn clean then a
mvn install, but if I do a mvn clean install, the last thing that happens is
the delete.  Is there any way to have this run before any of the modules are
built?

Thanks,

jp4
-- 
View this message in context: 
http://www.nabble.com/Clearing-out-local-repository-during-nightly-builds-tf3015348s177.html#a8373630
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: Standard directory layout

2007-01-15 Thread Ian Springer
Are you using Maven 1 or Maven 2?

| -Original Message-
| From: Fred Foucart [mailto:[EMAIL PROTECTED] 
| Sent: Monday, January 15, 2007 5:47 AM
| To: users@maven.apache.org
| Subject: Standard directory layout
| 
| Hello everybody,
| 
| I need to define a specific Maven layout for the following 
| application:
| 
| The code is generated from an Uml modelling tool.
| It generates sources and xml files. The XML files are needed 
| for the next tool that we are going to use.
| 
| Our actual directory layout is like this:
| 
| -project
| -src(generated sources)
| -descriptors(XML files)
| 
| The next step is to use an another tool that generates 
| specific sources in order to obtain the final classes(For 
| persistence for example). This code is generated from "src" 
| and "descriptors"
| 
| The directory layout is now like this:
| 
| -project
|  -src
|  -fwk-impl(generated sources for the specific tool)
|  -descriptors
|  -classes (Binary code from src and fwk-impl)
| 
| My aim is to use the standard Maven layout. My main question 
| is where to put the "descriptors" and the "fwk-impl" directories ?
| 
| Thank you for your help.
| 

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



Re: Excluding source directory branches during compilation

2007-01-15 Thread franz see

Good day to you, Roberto,

If you have something like src/main/java/trunk and src/main/java/branches,
you can simply do


  ...
  
src/main/java/trunk
  


Cheers,
Franz


Roberto UserList wrote:
> 
> Hi, all!
> I'd like to compile a subproject with Maven2 but i'd like not to compile
> files of all directory branches. How can I exclude a specific source
> directory?
> Tahnks in advance for help.
> Regards,
> Roberto.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Excluding-source-directory-branches-during-compilation-tf3013910s177.html#a8373047
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: setting dependency to a project with pom packaging?

2007-01-15 Thread franz see

Good day to you, Victor,

Let me get this straight.

You have a project A which depends on projects B, C, D & E ( for example ).
However, you don't want to declare all those in project A's pom. Instead,
you want a way to declare them as project A's dependency as a group. 

Thus you tried adding a dependency whose modules are projects B, C, D & E. 

I am sorry but that will not work. Modules are not considered as
dependencies. The closest thing I can think of to support your needs is to
create another project whose dependencies are projects B, C, D & E. Then add
that project to project A. This would then make projects B, C, D & E the
dependencies of your project A.

Cheers,
Franz


Victor Okunev wrote:
> 
> Can I create a dependency to a project with pom packaging? This would
> be convenient rather than creating separate dependencies on each
> module it contains. I tried but unsuccessfully, it seems that Maven is
> looking for a jar.  Perhaps I am missing something?
> 
> Victor
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/setting-dependency-to-a-project-with-pom-packaging--tf2755761s177.html#a8372729
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: APT + site.xml + parent directory

2007-01-15 Thread Yann Le Du

Hi Jan,

Just add to your site.xml :

 
   


Check the section "Including Generated Content" in
http://maven.apache.org/plugins/maven-site-plugin/howto.html

- Yann

2007/1/15, Jan-Oliver Wuelfing <[EMAIL PROTECTED]>:


Hi all,

is it possible to include a parent-link the to next upper index.html in
the 'menu'- or 'module'-section in the site.xml?
Or is there any other possibility to include automaticly?

Cheers
  Jan



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




Re: Q: Creating source bundles with packaging pom?

2007-01-15 Thread franz see

Good day to you, Steinar,

You can use mvn eclipse:eclipse -DdownloadSources instead ;) 

mvn eclispe:eclipse will setup your .project and .classpath wherein the
.classpath points to the binaries of your dependencies ( which are in your
repo ). And with the -DdownloadSources=true property, the sources of your
binaries would be included as well in your .classpath, thus enabling you to
use F3.

Cheers,
Franz


Steinar Bang wrote:
> 
> I'm trying to create a source bundle for an existing jar file into the
> repo, so that eclipse can find it with F3 and when debugging.
> 
> I googled a bit and found this article:
>   http://maven.apache.org/guides/mini/guide-ibiblio-upload.html
> 
> I tried doing 
>   mvn source:jar repository:bundle-create
> from the directory containing the pom.xml with the 
> corresponding to the jar I wished to debug into.  But that just gave
> me this error message:
> ...
> [INFO] Preparing source:jar
> [INFO] No goals needed for project - skipping
> [INFO] [source:jar]
> [INFO] NOT adding sources to attached artifacts for packaging: 'pom'.
> [INFO] Preparing repository:bundle-create
> [INFO] [site:attach-descriptor]
> [INFO] [repository:bundle-create]
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Packaging cannot be POM when creating an upload bundle.
> ...
> 
> What does pom imply?  In particular: why would
> one choose pom over jar?
> 
> Is it possible to create a source jar appropriate for eclipse
> debugging, when the artifact has packaging pom?
> 
> Thanx!
> 
> 
> - Steinar
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Q%3A-Creating-source-bundles-with-packaging-pom--tf2971381s177.html#a8372612
Sent from the Maven - Users mailing list archive at Nabble.com.


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



APT: code-snippet

2007-01-15 Thread Jan-Oliver Wuelfing

Dear all,

I use the code snippet-macro (shown at 
http://maven.apache.org/guides/mini/guide-snippet-macro.html) to include 
Java source code in my HTML-sites, but it doesn´t work, why?
I build my site via the Eclipse-plug-in, so I´ve checked out the 
repository with the source code and the src- and target-structure in the 
Eclipse workspace environment.

The path to my codes is:
eclipse/workspace/wsag4j/wsag4j-distributions/wsag4j-agreement-factory/src/test/java/org/ogf/graap/wsag/distributions/test/AgreementFactoryTest.java

Can anyone give me an advice?

Thanks
Regards
 Jan

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

Re: [XML-RPC] using the api

2007-01-15 Thread Laurent Forêt

Thanks all for your answers.

As it is a feature, I will deal with.

best regards,

Laurent.



-- Forwarded message --
From: Trygve Laugstøl <[EMAIL PROTECTED]>
To: continuum-users@maven.apache.org
Date: Sat, 13 Jan 2007 13:28:31 +0100
Subject: Re: [XML-RPC] using the api
Andrew Williams wrote:
> Though I cannot remember just now I know that some of the getSomethings
> calls return less detailed info than the individual getSomething calls.
> for example getBuilds will not return all the dumped data but getBuild
> will.
> At least something along those lines iirc.

As Andrew is saying, this is a feature. If you need the entire project
object you have to explicitly fetch that with getProject().

--
Trygve


APT + site.xml + parent directory

2007-01-15 Thread Jan-Oliver Wuelfing

Hi all,

is it possible to include a parent-link the to next upper index.html in 
the 'menu'- or 'module'-section in the site.xml?

Or is there any other possibility to include automaticly?

Cheers
 Jan

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

Re: Standard directory layout

2007-01-15 Thread Raphaël Piéroni

Hi Fred,

I will try to answer your question by giving an exemple.

A typical maven directory structure for a project using modello (a source
generator tool) is :
- project
 - src
   - main
 - java  (here are the manually created java sources)
 - mdo (here are the modello descriptors which have mdo extension)

After the maven build you have another directory
- project
 - target
   - generated-sources
 - mdo (here are the java files generated by modello)
   - classes (here are the compiled class files from the manual sources and
the generated sources)

Hope this helps.

Raphaël


2007/1/15, Fred Foucart <[EMAIL PROTECTED]>:


Hello everybody,

I need to define a specific Maven layout for the following application:

The code is generated from an Uml modelling tool.
It generates sources and xml files. The XML files are needed for the next
tool that we are going to use.

Our actual directory layout is like this:

-project
-src(generated sources)
-descriptors(XML files)

The next step is to use an another tool that generates specific sources in
order to obtain the final classes(For persistence for example). This code
is
generated from "src" and "descriptors"

The directory layout is now like this:

-project
 -src
 -fwk-impl(generated sources for the specific tool)
 -descriptors
 -classes (Binary code from src and fwk-impl)

My aim is to use the standard Maven layout. My main question is where to
put
the "descriptors" and the "fwk-impl" directories ?

Thank you for your help.




RE: [m2] any estimate for the next maven-ejb-plugin release (2.1) ?

2007-01-15 Thread Dário Luís Coneglian Oliveros
Hi Wayne,
There's a bug with clientExcludes that is already fixed in the SNAPSHOT.
Before I start making local changes, I'd like to know whether there's any plan 
to release it soon.
Dário

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 12 de janeiro de 2007 18:00
To: Maven Users List
Subject: Re: [m2] any estimate for the next maven-ejb-plugin release
(2.1) ?


I know the Maven Dev team is working on M2.0.5 along with some new
plugin releases right now, so perhaps they can look at m-ejb-p once
those releases are all done.

Unsure when the next release will be available; you'd need to check
with the developer(s) responsible for m-ejb-p to be sure. I'm curious
why you want to know when it will be released -- are there specific
JIRA bugs with patches available that you would like to be applied to
have another release cut?

In the meantime, you can pull the m-ejb-p code down from SVN, apply
the patches, and release it under your own version number or groupId
if you require some specific bug fixes until they make a formal
release.

Wayne

On 1/12/07, Dário Luís Coneglian Oliveros <[EMAIL PROTECTED]> wrote:
> Does anyone know when maven-ejb-plugin 2.1 will be released ?
> Thanks,
> Dário
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


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



Re: Inheriting plugin executing

2007-01-15 Thread Tom Huybrechts

Add false  to the  element.

On 1/15/07, Saminda Abeyruwan <[EMAIL PROTECTED]> wrote:

Hi All,

Say my parent pom.xml has a pluging to execute some goal on the
initialization phase. If this pom is the parent of app1 pom.xml and app2
pom.xml ie

pom.xml
   - app1
 pom.xml
   - app2
 pom.xml

when the reactor is working, the code in the initialization phase repeats.
Is there a way to stop this. Only parent pom.xml will do some unit of work,
but it doesn't need to inherit to its children poms.

Thank you

Saminda

--
Saminda Abeyruwan

Software Engineer
WSO2 Inc. - www.wso2.org




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



Inheriting plugin executing

2007-01-15 Thread Saminda Abeyruwan

Hi All,

Say my parent pom.xml has a pluging to execute some goal on the
initialization phase. If this pom is the parent of app1 pom.xml and app2
pom.xml ie

pom.xml
  - app1
pom.xml
  - app2
pom.xml

when the reactor is working, the code in the initialization phase repeats.
Is there a way to stop this. Only parent pom.xml will do some unit of work,
but it doesn't need to inherit to its children poms.

Thank you

Saminda

--
Saminda Abeyruwan

Software Engineer
WSO2 Inc. - www.wso2.org


Excluding source directory branches during compilation

2007-01-15 Thread Roberto UserList

Hi, all!
I'd like to compile a subproject with Maven2 but i'd like not to compile
files of all directory branches. How can I exclude a specific source
directory?
Tahnks in advance for help.
Regards,
Roberto.


Standard directory layout

2007-01-15 Thread Fred Foucart

Hello everybody,

I need to define a specific Maven layout for the following application:

The code is generated from an Uml modelling tool.
It generates sources and xml files. The XML files are needed for the next
tool that we are going to use.

Our actual directory layout is like this:

-project
   -src(generated sources)
   -descriptors(XML files)

The next step is to use an another tool that generates specific sources in
order to obtain the final classes(For persistence for example). This code is
generated from "src" and "descriptors"

The directory layout is now like this:

-project
-src
-fwk-impl(generated sources for the specific tool)
-descriptors
-classes (Binary code from src and fwk-impl)

My aim is to use the standard Maven layout. My main question is where to put
the "descriptors" and the "fwk-impl" directories ?

Thank you for your help.


RE: passing custom parameters to a custom compiler-plugin

2007-01-15 Thread Martin Moser

Hi Franz,

thank you for your detailed explanation. Now I can understand, what you've 
meant :-)


You are completely right. The usage of maven-compiler plugin was the 
reason, because the parameter "testParam" wasn't used, which is ok, because 
the parameter isn't defined for that plugin.


So my second try, using the plugin directly, is the proper way of 
integrating it.



In the meantime I've been able to simplify the syntax in pom.xml as it was 
in my previous posts.


1.) Change components.xml
	For the role-hint "jar", I activated the custom compiler again. Like I did 
in my first post.


2.) In pom.xml I used the plugin:


  mygroup
  customCompile
  1.0-SNAPSHOT
  
testValue
  



Now it works, like I expect.


Regards,
Martin

--On Samstag, Januar 13, 2007 01:13:59 -0800 franz see 
<[EMAIL PROTECTED]> wrote:




Good day to you, Martin M.,

Yes. I believe that your plugin does get executed ( since you did mention
that you were getting null in your test param, meaning that it did run :)
). However, that does not mean that it is what you were configuring.

Ok, you played around with the built-in lifecycle so that your custom
compiler is ran, which I think you accomplished.

Next, you tried setting the value of your test parameter which you failed
( since you said it's always null ). My suggestion then is that to use the
whole artifact key ( groupId:artifactId:version ) during the
configuration. Just like what you did with this


  mygroup
  customCompile
  1.0-SNAPSHOT
  

  custom-compilation
  compile
  
testValue
  
  
compile
  

  


Notice that in the snippet above, you mentioned that you're setting the
testParam value of mygroup:customCompile:1.0-SNAPSHOT. While in the
snippet below


  maven-compiler-plugin
  
c1
  

  

  mygroup
  customCompile
  1.0-SNAPSHOT

  


you were configuring the testParam of a plugin with the artifactId
maven-compiler-plugin ( which could be
org.apache.maven.plugins:maven-compiler-plugin:RELEASE or some custom
maven-compiler-plugin that you made ).

Thus, in the post you made in [1], you were configuring some plugin with
an artifactId maven-compiler-plugin eventhough you were running
mygroup:customCompile:1.0-SNAPSHOT.

Thanks,
Franz

[1]
http://www.nabble.com/Re%3A-passing-custom-parameters-to-a-custom-compile
r-plugin-p8281436s177.html


Martin M wrote:


Hi all,

@Jörg
I tried your suggestion, but it didn't work. As I understood the
documentation the expression-syntax is for properties and not for
parameters.

@Franz
During compile phase, my compiler is definitely used. I can see the
output  and the execution of the goal in maven's output.
The only problem is the parameter passing.

In the meantime I found a workaround. But I would like to know the
proper  way to implement such a plugin.

As workaround I did following:

.) Disable the compiler in the components.xml. So no  tag is
defined for jar

.) Call the plugin in the pom.xml like this:
 
   mygroup
   customCompile
   1.0-SNAPSHOT
   
   
   custom-compilation
   compile
   
   testValue
 
   
   compile
   
   
   






Regards,
Martin

--On Donnerstag, Januar 11, 2007 23:04:40 -0800 franz see
<[EMAIL PROTECTED]> wrote:



Good day,

Actually, using @parameter only should be sufficient for it to be
configured via the pom. The @expression is used for setting the
parameter via commandline.

Anyway, Martin M., try specifying in your plugin tag the groupId and
version as well. It might still be trying to configure
org.apache.maven.plugins:maven-compiler-plugin:RELEASE instead of your
custom compiler plugin.

Cheers,
Franz


Jörg Schaible wrote:


Hi Martin,


there's no automation. You need to provide the expression for the
parameter to initialize:

[snip]

 /**
  * @parameter expression="${testParam}"
  **/
 private String testParam

[snip]

Within the expression you can also address other parts of the POM ...
another typical parameter is:

/**
 * The directory for the generated file.
 *
 * @parameter expression="${project.build.directory}"
 * @required
 */
private String outputDirectory;

- Jörg

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





--
View this message in context:
http://www.nabble.com/passing-custom-parameters-to-a-custom-compiler-pl
ug in-tf2958426s177.html#a8292757 Sent from the Maven - Users mailing
list archive at Nabble.com.


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





--
Martin Moser

-
To unsubscribe, e-ma

Re: Eclipse:eclipse and multiple modules

2007-01-15 Thread Niels Gylling

working as designed -
We had the same problem and created our own multi-project eclipse 
generator plugin.


Are there any plans from the maven2 gurus to extend this functionality 
to the 'org.apache.maven.plugins' domain?


/Niels

[EMAIL PROTECTED] wrote:

Weird shit is happening here.

 


We have a multiple modules project, which looks like this:

 


Top project

|- project-tier

|- business tier

|- integration tier

|- presentation-tier

   |- prg 1

   |- prg 2

 


The presentation tier has business tier and integration tier as dependencies.  
They are connected with each other through the pom-file.  (The same goes for 
business and integration).  Each project was generated by Maven.

 


We've created this setup and until now, we haven't had any problems with that.  
But now I ran into something very annoying.  Since this is a multiple module 
project, it's easy to run the mvn-commands from the top-folder.  So if you run 
mvn eclipse:clean or mvn eclipse:eclipse, all the necessary project files are 
created by Maven.  So far, so good.  But now, if I run these commands from the 
top-folder, the jar-files for business and integration aren't added to the 
build path in Eclipse for prg1 and prg2.  This is a problem, because if you run 
them inside Eclipse on Tomcat (they're Struts applications), you get a 404 
because the jar-files for business and integration aren't published.  If I run 
package or install, those dependencies are added to the war-file.

 


When I run the mvn eclipse:clean and mvn eclipse:eclipse commands in the prg1 
or prg2 folder, the jars for business and integration are added to the build 
path and I can publish it without any problem.

 

Can anybody explain to me why this doesn't work from the top-folder?  Working with multiple modules is nice because you can run the commands once for each project underneath it, but with this problem that advantage disappears.  

 


Tia

 


Björn De Bakker

 

 




This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.





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



Eclipse:eclipse and multiple modules

2007-01-15 Thread bjorn.de.bakker
Weird shit is happening here.

 

We have a multiple modules project, which looks like this:

 

Top project

|- project-tier

|- business tier

|- integration tier

|- presentation-tier

   |- prg 1

   |- prg 2

 

The presentation tier has business tier and integration tier as dependencies.  
They are connected with each other through the pom-file.  (The same goes for 
business and integration).  Each project was generated by Maven.

 

We've created this setup and until now, we haven't had any problems with that.  
But now I ran into something very annoying.  Since this is a multiple module 
project, it's easy to run the mvn-commands from the top-folder.  So if you run 
mvn eclipse:clean or mvn eclipse:eclipse, all the necessary project files are 
created by Maven.  So far, so good.  But now, if I run these commands from the 
top-folder, the jar-files for business and integration aren't added to the 
build path in Eclipse for prg1 and prg2.  This is a problem, because if you run 
them inside Eclipse on Tomcat (they're Struts applications), you get a 404 
because the jar-files for business and integration aren't published.  If I run 
package or install, those dependencies are added to the war-file.

 

When I run the mvn eclipse:clean and mvn eclipse:eclipse commands in the prg1 
or prg2 folder, the jars for business and integration are added to the build 
path and I can publish it without any problem.

 

Can anybody explain to me why this doesn't work from the top-folder?  Working 
with multiple modules is nice because you can run the commands once for each 
project underneath it, but with this problem that advantage disappears.  

 

Tia

 

Björn De Bakker

 

 



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.


Re: gwt maven 2

2007-01-15 Thread Maruf Aytekin

Many thanks for this information.

Maruf


Iulian Costan wrote:

On 1/12/07, Iulian Costan <[EMAIL PROTECTED]> wrote:


On 1/12/07, Maruf Aytekin <[EMAIL PROTECTED]> wrote:
>
> Thank you Julian,
> I have one more quetsion: How do you orginize directory structure? as
> maven 2 directory structure or you leave it as gwt directory structure
> that gwt project creaton tool is creating?




and the package structure is the one suggested by gwt: client, server,
public, etc. hope it helps.

/iulian

i have maven2 structure, src/{main,test}/{java,webapp,etc}.

by default plugin generates output to to target/gwt/www/${className},
adding this you'll get webapp packed and ready to deploy
...

org.apache.maven.plugins
maven-war-plugin
2.0




${project.build.directory
}/gwt/www/${className}





...

/iulian

Many Thanks,
> Maruf
>
> Iulian Costan wrote:
> > hey buddy, the following works for me like a charm, using
> > gwt-maven-plugin (
> > 
http://codehaus.org/~shinobu/gwt-maven-plugin/index.html 


> )
> > ...
> >
> > org.codehaus.mojo
> >gwt-maven-plugin
> >
> >${className}
> >
> >
> >
> >gwt-compile
> >compile
> >
> >compile
> >
> >
> >
> >
> >
> >gwt-widgets
> >gwt-widgets
> >0.1.2
> >
> >
> >
> > ...
> > where the ${classname} is your module's entry point.
> > all you have to do is to checkout, compile and install the plugin.
> >
> > enjoy!
> >
> > /iulian
> >
> > On 1/12/07, Neeraj Bisht <[EMAIL PROTECTED] > wrote:
> >>
> >> i think you have not included the .xml file the jar or war project
> >>
> >> use tag  < include>*.xml 
> >>
> >> in your pom
> >>
> >>
> >> By  the way maven 1.0.2 plugin is quite god and powerfull (we
> are  using
> >> gwt
> >> plugin in maven 1.0.2
> >>
> >> Regards
> >> Neeraj
> >>
> >>
> >> On 1/12/07, Maruf Aytekin <[EMAIL PROTECTED]> wrote:
> >> >
> >> > I have a gwt project and I am trying to buil dit with maven 2. I
> >> checked
> >> > out maven-googlewebtoolkit2-plugin from
> >> > |http://gw-maven.googlecode.com/svn/trunk/ |and built it and
> installed
> >> > it and dependencies to .m2 local repository.
> >> >
> >> > I have added this plugin in the pom as follows:
> >> >
> >> > 
> >> > 
> >> >   
> >> >   com.totsp.gwt.maven
> >> >  maven-googlewebtoolkit2-plugin
> >> >  
> >> >
> >> >
> >> >
> >>
> 
${basedir}/target/webapp 


> >>
> >> >
> >> > com.mycompany.myapp.customer.Hello
> >> > 
> >> >C:\gwt
> >> >
> >> >  ${basedir}/src/main/java/
> >> >
> >> >  
> >> >  
> >> >
> >> >   com.google.gwt
> >> >  gwt-dev-windows
> >> >  1.3
> >> >
> >> >
> >> >  com.google.gwt
> >> >  gwt-user
> >> >  1.3
> >> >
> >> >   
> >> >  
> >> > 
> >> >   
> >> > I ran mvn googlewebtoolkit2:compile and it compiled fine. 
classpath

> is
> >> > as follows in the eclipse:
> >> >
> >> > 
> >> > 
> >> > 
> >> >  >> > output="target/test-classes"/>
> >> > 
> >> >  >> > path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
> >> > 
> >> >
> >> > When I try to run it as gwt project it cannot find
> >> > "com.mycompany.myapp.customer.Hello.gwt.xml". I am not sure 
how to

> set
> >> > directory structure. Currently I have orginized directory 
structure

> as
> >> > maven 2 directory structure. Hello.gwt.xml is located at:
> >> > ${basedir}/src/main/java/com/mycompany/myapp/customer/
> >> >
> >> > Did anyone use maven 2 to compile and deploy a gwt project? If 
you
> >> > someone can provide more information or sample on this I 'd 
really

> >> > appreceate it. I couldn't find much information on the web about
> this.
> >> >
> >> > Many Thanks,
> >> >
> >> > Maruf
> >> >
> >> >
> >> >
> -
> >> > 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,