How can i add/replace project specific variables locally?

2007-04-10 Thread Baz

All,

How can i add or replace project specific variables locally?

Specific case: How can i read a file and replace a variable in the
pom.xml so i dont need to produce SNAPSHOT but using a variable
$VERSION that control by build system?

What is the recommended approach to this? So that I can produce
package-SNAPSHOT.jar by default, and package-nightlybuild-041007.jar
if reading variables?

Thanks.

AY.

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



Re: Packing up configurations for various servers

2007-04-10 Thread franz see

Good day,

Create a maven project for your configurations. Then use
remote-resources:bundle on it.

And on the maven projects that need those configurations file, use
remote-resources:process ( with reference to your configuration maven
project ) to retrieve those resources.

See [1] for more info on maven-remote-resources-plugin.

Cheers,
Franz

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


EJ Ciramella-2 wrote:
> 
> So how does one package up configuration per stack?  By stack I mean dev
> integration env versus qa versus staging versus production (all of which
> have various configuration changes).
>  
> What we've been doing is managing per stack configuration via
> profiles.xml.  One of the drawbacks of this method is having to build a
> particular configuration at build time rather than deploy time (we're
> using ANT to deploy our various builds).
>  
> I'm writing this now as one of our modules out puts a war.  In our
> property activated profile based assembly for this particular module, we
> only want to bundle up the configuration files and don't need the war.
> How can I exclude it (I only want the property files the
> process-resources step generates)?
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Packing-up-configurations-for-various-servers-tf3550025s177.html#a9932507
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 artifacts

2007-04-10 Thread franz see

Good day,

AFAIU, you have a single maven project that packages several binaries and
adds them to the classpaths via a plugin that you've created. But the binary
that you add via your plugin gets overriden by the binary added via maven's
transitive dependencyDid I get that right?

Curious, what made you think that that binary gets overriden? Maybe your
classpath issue is a plugin specific problem ( i.e. a plugin only uses the
classpath maven made and not yours ).

Cheers,
Franz


Goel, Deepak wrote:
> 
> I have a project that builds multiple artifacts - a jar, a DLL and
> others that are shared by the Jar and DLL. For various reasons, we have
> decided to create a single POM that has plug-ins in right phases to
> build the DLL.
> 
>  
> 
> So we decided to package this as a ZIP that gets unzipped at the right
> time. We also have a plug-in that adds the Jar file as a dependency. The
> issue is that dependency on Jar file gets overwritten during transitive
> dependency resolution. Interestingly, the direct dependencies aren't
> affected.
> 
>  
> 
> For example, if there's a project C that depends on B. B in turn depends
> on A. When I compile C, B.jar remains in the classpath but A.jar gets
> removed. I have verified that the plug-in indeed adds A.jar.
> 
>  
> 
> I'll appreciate if somebody can help me resolve this issue.
> 
>  
> 
> Deepak Goel | Small Business Division, Intuit | direct - (650) 944-3287
> 
>  
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Multiple-artifacts-tf3550158s177.html#a9932478
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: overriding version of dependent library

2007-04-10 Thread franz see

Good day,

In addition, you can simply specify jta 1.1 as a direct dependency of your
maven project ( without excluding jta from your hibernate dependnecy) and
maven won't bother looking for other versions of jta :)

Cheers,
Franz


oching wrote:
> 
> You could try  in your hiberrnate dependency so as not to
> download the 1.0.1B jta jar it dependes on, and leave the dependency that
> uses the jta 1.1 version as is. :)
> 
> You can check out this link http://maven.apache.org/pom.html for more
> info.
> 
> Thanks,
> Deng
> 
>> Hi all,
>>
>> How can I override version number of a dependent library defined in my
>> pom.xml file? I use org.hibernate:hibernate:jar:3.2.2.ga which depends
>> on javax.transaction:jta:jar:1.0.1B while I'd like to use jta-1.1.jar
>> (because it's needed elsewhere). How can I force a dependency to stop
>> complaining about lack of older jta version and use a new one?
>>
>> Any help will be greatly appreciated, thanks in advance,
>> Wojtek
>>
>> --
>> Nawet 50MB w jednym mailu >>> http://link.interia.pl/f19e7
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>> !DSPAM:602,461b66bd276271894314596!
>>
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/overriding-version-of-dependent-library-tf3552202s177.html#a9932209
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 mojo Compilation failure

2007-04-10 Thread franz see

Good day,

Try running mvn clean compile -X and showing us the logs starting from

[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-compiler-plugin::compile' 

up to the end.

The first part of the logs would consists of the maven-compiler-plugin's
configuration while the next part will show the logs while the plugin is
running.

The last part of course is the results of the whole build.

Thanks,
Franz


epunzalan wrote:
> 
> The stacktrace is incomplete... there may be a message coming from the
> java
> compiler (javac) itself.
> 
> 
> On 4/6/07, Hodanics, Charles J. <[EMAIL PROTECTED]> wrote:
>>
>> Can someone assist with the following error when I run Maven2 compile
>> from eclipse and continuum.  I have checked a few posts and seen that
>> JRE to JDK is a fix, but I already have this done.
>>
>>
>> [INFO] Compiling 35 source files to "C:\Documents.."
>> [ERROR] mojo-execute : compiler:compile
>> Diagnosis: Compilation failure
>> FATAL ERROR: Error executing Maven for a project
>> [ERROR] project-execute : artifact:name:jar:1.0-SNAPSHOT (
>> task-segment: [clean, compile] )
>> Diagnosis: Compilation failure
>> FATAL ERROR: Error executing Maven for a project
>> org.apache.maven.BuildFailureException: Compilation failure
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
>> LifecycleExecutor.java:555)
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
>> ycle(DefaultLifecycleExecutor.java:475)
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
>> ifecycleExecutor.java:454)
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
>> Failures(DefaultLifecycleExecutor.java:306)
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
>> DefaultLifecycleExecutor.java:273)
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
>> ycleExecutor.java:140)
>>at
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
>>at
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
>>at
>> org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
>> Caused by: org.apache.maven.plugin.CompilationFailureException:
>> Compilation failure
>>at
>> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMoj
>> o.java:516)
>>at
>> org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
>>at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
>> nager.java:412)
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
>> LifecycleExecutor.java:534)
>>... 8 more
>>
>>
>> Charles Hodanics
>> NSTD-STJ
>> 443-778-3246
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Maven-mojo-Compilation-failure-tf3537180s177.html#a9932167
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 2.x in quiet mode

2007-04-10 Thread franz see

Good day,

Nope. You'd have to use at least maven 2.0.5 :) As to running 2.0.4 in quiet
mode, I know no such way to do so :)

Cheers,
Franz


uma_rk wrote:
> 
> Was the -q option introduced post 2.0.4?
> 
> $ mvn -version
> Maven version: 2.0.4
> 
> $ 
> $ mvn -q
> Unable to parse command line options: Unrecognized option: -q
> 
> usage: mvn [options] [] []
> 
> Options:
>  -C,--strict-checksums Fail the build if checksums don't match
>  -c,--lax-checksumsWarn if checksums don't match
>  -P,--activate-profilesComma-delimited list of profiles to
>activate
>  -ff,--fail-fast   Stop at first failure in reactorized builds
>  -fae,--fail-at-endOnly fail the build afterwards; allow all
>non-impacted builds to continue
>  -B,--batch-mode   Run in non-interactive (batch) mode
>  -fn,--fail-never  NEVER fail the build, regardless of project
>result
>  -up,--update-plugins  Synonym for cpu
>  -N,--non-recursiveDo not recurse into sub-projects
>  -npr,--no-plugin-registry Don't use ~/.m2/plugin-registry.xml for
>plugin versions
>  -U,--update-snapshots Update all snapshots regardless of
>repository policies
>  -cpu,--check-plugin-updates   Force upToDate check for any relevant
>registered plugins
>  -npu,--no-plugin-updates  Suppress upToDate check for any relevant
>registered plugins
>  -D,--define   Define a system property
>  -X,--debugProduce execution debug output
>  -e,--errors   Produce execution error messages
>  -f,--file Force the use of an alternate POM file.
>  -h,--help Display help information
>  -o,--offline  Work offline
>  -r,--reactor  Execute goals for project found in the
>reactor
>  -s,--settings Alternate path for the user settings file
>  -v,--version  Display version information
> 
> 
> Tx
> 
> /U
>  -- Original message --
> From: "Wayne Fay" <[EMAIL PROTECTED]>
>> I assume you already tried mvn -q??
>> 
>> C:\cvs_root>mvn -h
>> 
>> usage: mvn [options] [] []
>> 
>> Options:
>>  -q,--quietQuiet output - only show errors
>>  -C,--strict-checksums Fail the build if checksums don't match
>>  -c,--lax-checksumsWarn if checksums don't match
>>  -P,--activate-profilesComma-delimited list of profiles to
>>activate
>>  -ff,--fail-fast   Stop at first failure in reactorized
>> builds
>>  -fae,--fail-at-endOnly fail the build afterwards; allow all
>>non-impacted builds to continue
>>  -B,--batch-mode   Run in non-interactive (batch) mode
>>  -fn,--fail-never  NEVER fail the build, regardless of
>> project
>>result
>>  -up,--update-plugins  Synonym for cpu
>>  -N,--non-recursiveDo not recurse into sub-projects
>>  -npr,--no-plugin-registry Don't use ~/.m2/plugin-registry.xml for
>>plugin versions
>>  -U,--update-snapshots Forces a check for updated releases and
>>snapshots on remote repositories
>>  -cpu,--check-plugin-updates   Force upToDate check for any relevant
>>registered plugins
>>  -npu,--no-plugin-updates  Suppress upToDate check for any relevant
>>registered plugins
>>  -D,--define   Define a system property
>>  -X,--debugProduce execution debug output
>>  -e,--errors   Produce execution error messages
>>  -f,--file Force the use of an alternate POM file.
>>  -h,--help Display help information
>>  -o,--offline  Work offline
>>  -r,--reactor  Execute goals for project found in the
>>reactor
>>  -s,--settings Alternate path for the user settings file
>>  -v,--version  Display version information
>> 
>> Wayne
>> 
>> On 4/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> >
>> > I apologize if this is a FAQ. Is there a way to run Maven 2.x in quiet
>> mode?
>> > I run Maven under CruiseControl and get verbose reports, which I 'd
>> like to 
>> trim down.
>> >
>> > Tx,
>> >
>> > /U
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.co

Re: Maven and 3rd Party Libraries

2007-04-10 Thread franz see

Good day,

Kindly take a look at [1]. You will see there the dependency tag and the
scope and systemPath elements Eric mentioned.

Cheers,
Franz

[1] http://maven.apache.org/ref/current/maven-model/maven.html


Wayne Fay wrote:
> 
> Yes. Search the list archives (at Nabble.com) for more information, or
> the Maven site itself; there are several examples available.
> 
> Wayne
> 
> On 4/10/07, Fong Chan <[EMAIL PROTECTED]> wrote:
>> Sorry you'll have to excuse my ignorance as I am still new to Maven.
>>
>> But when you say "set the 'scope' of the jar as 'system' in dependency,
>> then set 'systemPath' to the path of the jar."
>>
>> Do you mean setting the properties in the pom.xml of the project?
>>
>> Thanks,
>>
>> Fong
>>
>> >>> "Eric Redmond" <[EMAIL PROTECTED]> 04/10/07 4:17 PM >>>
>> On 4/10/07, Fong Chan <[EMAIL PROTECTED]> wrote:
>> >
>> > Hello all,
>> >
>> > I am having some problems with Maven right now.
>> >
>> > Just to give some background.  I currently have installed all of
>> Taverna's
>> > (A workflow management system that uses Maven) classes into the Maven
>> > repository and I am able to use them no problem.
>> >
>> > For one of my programs, I would like to use Taverna's class and also
>> > another external library called Jakarta POI (able to manipulate Excel
>> from
>> > Java).  The thing is the POI downloads do not come in a maven format
>> and
>> > make it different to install them into the repository easily.  So
>> instead, I
>> > have imported them as external jars in eclipse.
>> >
>> > From there, I want to install my program as a Taverna Artifact into the
>> > library, but when installing I get the maven errors that it can't find
>> the
>> > POI classes.  I am assuming it is because the POI are not artifacts in
>> the
>> > repository...
>> >
>> > I was just wondering whether there was a way to use external libraries
>> > without having to install them into the maven repository.
>>
>>
>> It's not usually desired, but you can set the "scope" of the jar as
>> "system"
>> in dependency, then set "systemPath" to the path of the jar.
>>
>> Fong
>> >
>> >
>> > ***CONFIDENTIALITY NOTICE***
>> > This electronic message is intended only for the use of the addressee
>> and
>> > may contain information that is privileged and confidential.  Any
>> > dissemination, distribution or copying of this communication by
>> unauthorized
>> > individuals is strictly prohibited. If you have received this
>> communication
>> > in error, please notify the sender immediately by reply e-mail and
>> delete
>> > the original and all copies from your system.
>> >
>>
>>
>>
>> --
>> Eric Redmond
>> http://codehaus.org/~eredmond
>>
>>
>>
>> ***CONFIDENTIALITY NOTICE***
>> This electronic message is intended only for the use of the addressee and
>> may contain information that is privileged and confidential.  Any
>> dissemination, distribution or copying of this communication by
>> unauthorized individuals is strictly prohibited. If you have received
>> this communication in error, please notify the sender immediately by
>> reply e-mail and delete the original and all copies from your system.
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Maven-and-3rd-Party-Libraries-tf3556449s177.html#a9932041
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: Using maven directly from a java application ?

2007-04-10 Thread franz see

Good day,

Try [1]. Also you can check out the the latest maven-embedder ( from [2] )
and take a look at its examples and tests. You may also want to run mvn site
against [2] to get the latest version of the guide presented in [1].

Cheers,
Franz

[1] http://maven.apache.org/guides/mini/guide-embedding-m2.html
[2] http://svn.apache.org/repos/asf/maven/components/trunk/maven-embedder


Wayne Fay wrote:
> 
> Not that I am personally aware of. But search this list and the Maven
> Dev list -- you're bound to find something.
> 
> Wayne
> 
> On 4/10/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote:
>> Thx for reply.
>>
>> There are some documentation about using embeded maven ??
>>
>> -Message d'origine-
>> De: Wayne Fay [mailto:[EMAIL PROTECTED]
>> Envoyé: mardi 10 avril 2007 15:16
>> À: Maven Users List
>> Objet: Re: Using maven directly from a java application ?
>>
>> You may want to try to use the Maven Embedder:
>> http://idisk.maven.org/jvanzyl/Public/embedder/
>>
>> Wayne
>>
>> On 4/9/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote:
>> > Hi,
>> >
>> >
>> >
>> > I want to atomize  the creation of the structure of my project. So
>> iwant to develop a desktop application in order to give to the end user
>> >
>> > To fill some parameters like : groupId,  artifactId ...
>> >
>> > My question how can I invoke all command mvn from my application
>> desktop , ie I don't want to use the mvn.bat  I want to use java classes
>> of maven directly ??
>> >
>> > This is a simple to do or I must navigate on all java classes  maven
>> 
>> >
>> >
>> >
>> > Thx
>> >
>> >
>> >
>> >
>> >
>> > ---
>> >
>> > Merouane AMRAOUI
>> > Consultant Expert
>> > Division Développement
>> > Email.: [EMAIL PROTECTED]
>> >
>> > Gsm  .: 065 19 60 99
>> > Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70
>> > OMNIDATA , 74 Bv AbdelMoumen
>> >
>> >
>> >
>> >
>>
>> -
>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Using--maven-directly-from-a-java-application---tf3546918s177.html#a9932032
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: How to specify where to copy particular files

2007-04-10 Thread franz see

Good day,

In addition, there's a difference between


  src/main/resources/
  
foo/bar.xml
  


And


  src/main/resources/foo
  
bar.xml
  


The first one would result to a

target/classes/foo/bar.xml

while the second, to a

target/classes/bar.xml

Thus, if you want a certain directory copied to target\classes ( or
target\test-classes for test resources ), specify in your
 the path to that certain directory.

Cheers,
Franz


Rod Mclaughlin wrote:
> 
> Thanks again, guys. Plus you can specify where the files come from if 
> you don't want to put them in src/main/resources:
> 
>  
> 
> foo
> ${basedir}/src/main/java/foo
> 
> *.xml
> 
> 
> ...
> 
> 
> 
> Two ways:
> 
> * First is to save the bar.xml into src/main/resources/foo/bar.xml so you
> don't have to configure anything.
> 
> * Second is to use foo in 
> 
> 
> On 4/10/07, Rod Mclaughlin <[EMAIL PROTECTED]> wrote:
> 
> I know how to make Maven copy a buncha files into the classpath, but
> does anyone know how to make it copy into a particular folder? Eg. I want
> src/main/java/foo/bar.xml to go in
> target/classes/foo/
> next to bar.class?
> 
> Thanks for any assistance. I have of course googled for it, to no avail.
> 
>
>
>${basedir}/war/WEB-INF
>
>*.properties
>*.xml
>
>
>
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-NOT-include-test-resources-in-jar-tf3553707s177.html#a9931972
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 2.x in quiet mode

2007-04-10 Thread uma_rk
Was the -q option introduced post 2.0.4?

$ mvn -version
Maven version: 2.0.4

$ 
$ mvn -q
Unable to parse command line options: Unrecognized option: -q

usage: mvn [options] [] []

Options:
 -C,--strict-checksums Fail the build if checksums don't match
 -c,--lax-checksumsWarn if checksums don't match
 -P,--activate-profilesComma-delimited list of profiles to
   activate
 -ff,--fail-fast   Stop at first failure in reactorized builds
 -fae,--fail-at-endOnly fail the build afterwards; allow all
   non-impacted builds to continue
 -B,--batch-mode   Run in non-interactive (batch) mode
 -fn,--fail-never  NEVER fail the build, regardless of project
   result
 -up,--update-plugins  Synonym for cpu
 -N,--non-recursiveDo not recurse into sub-projects
 -npr,--no-plugin-registry Don't use ~/.m2/plugin-registry.xml for
   plugin versions
 -U,--update-snapshots Update all snapshots regardless of
   repository policies
 -cpu,--check-plugin-updates   Force upToDate check for any relevant
   registered plugins
 -npu,--no-plugin-updates  Suppress upToDate check for any relevant
   registered plugins
 -D,--define   Define a system property
 -X,--debugProduce execution debug output
 -e,--errors   Produce execution error messages
 -f,--file Force the use of an alternate POM file.
 -h,--help Display help information
 -o,--offline  Work offline
 -r,--reactor  Execute goals for project found in the
   reactor
 -s,--settings Alternate path for the user settings file
 -v,--version  Display version information


Tx

/U
 -- Original message --
From: "Wayne Fay" <[EMAIL PROTECTED]>
> I assume you already tried mvn -q??
> 
> C:\cvs_root>mvn -h
> 
> usage: mvn [options] [] []
> 
> Options:
>  -q,--quietQuiet output - only show errors
>  -C,--strict-checksums Fail the build if checksums don't match
>  -c,--lax-checksumsWarn if checksums don't match
>  -P,--activate-profilesComma-delimited list of profiles to
>activate
>  -ff,--fail-fast   Stop at first failure in reactorized builds
>  -fae,--fail-at-endOnly fail the build afterwards; allow all
>non-impacted builds to continue
>  -B,--batch-mode   Run in non-interactive (batch) mode
>  -fn,--fail-never  NEVER fail the build, regardless of project
>result
>  -up,--update-plugins  Synonym for cpu
>  -N,--non-recursiveDo not recurse into sub-projects
>  -npr,--no-plugin-registry Don't use ~/.m2/plugin-registry.xml for
>plugin versions
>  -U,--update-snapshots Forces a check for updated releases and
>snapshots on remote repositories
>  -cpu,--check-plugin-updates   Force upToDate check for any relevant
>registered plugins
>  -npu,--no-plugin-updates  Suppress upToDate check for any relevant
>registered plugins
>  -D,--define   Define a system property
>  -X,--debugProduce execution debug output
>  -e,--errors   Produce execution error messages
>  -f,--file Force the use of an alternate POM file.
>  -h,--help Display help information
>  -o,--offline  Work offline
>  -r,--reactor  Execute goals for project found in the
>reactor
>  -s,--settings Alternate path for the user settings file
>  -v,--version  Display version information
> 
> Wayne
> 
> On 4/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > I apologize if this is a FAQ. Is there a way to run Maven 2.x in quiet mode?
> > I run Maven under CruiseControl and get verbose reports, which I 'd like to 
> trim down.
> >
> > Tx,
> >
> > /U

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



Re: eclipse:install-plugins and features?

2007-04-10 Thread Barrie Treloar

Has anyone else found they needed to do something like what I am doing?
It feels like I should also be adding the features to the
eclipse:make-artifacts and getting eclipse:install-plugins (or
eclipse:install-features) to do the work.


If I go and create eclipse:install-features, I'm wondering how that
would actually work.

The features would need to be exploded when they are installed into an
eclipse target, which isn't a big deal.

What I am not sure of yet is whether there are name space clashes for
plugins vs features.
I'm fairly sure there are no name space clashes as that would make it
impossible to have the feature and the plugin open in eclipse at the
same time.  However, should the maven repository artifacts use a
different classifier, say "feature"?

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



Re: Maven and 3rd Party Libraries

2007-04-10 Thread Wayne Fay

Yes. Search the list archives (at Nabble.com) for more information, or
the Maven site itself; there are several examples available.

Wayne

On 4/10/07, Fong Chan <[EMAIL PROTECTED]> wrote:

Sorry you'll have to excuse my ignorance as I am still new to Maven.

But when you say "set the 'scope' of the jar as 'system' in dependency, then set 
'systemPath' to the path of the jar."

Do you mean setting the properties in the pom.xml of the project?

Thanks,

Fong

>>> "Eric Redmond" <[EMAIL PROTECTED]> 04/10/07 4:17 PM >>>
On 4/10/07, Fong Chan <[EMAIL PROTECTED]> wrote:
>
> Hello all,
>
> I am having some problems with Maven right now.
>
> Just to give some background.  I currently have installed all of Taverna's
> (A workflow management system that uses Maven) classes into the Maven
> repository and I am able to use them no problem.
>
> For one of my programs, I would like to use Taverna's class and also
> another external library called Jakarta POI (able to manipulate Excel from
> Java).  The thing is the POI downloads do not come in a maven format and
> make it different to install them into the repository easily.  So instead, I
> have imported them as external jars in eclipse.
>
> From there, I want to install my program as a Taverna Artifact into the
> library, but when installing I get the maven errors that it can't find the
> POI classes.  I am assuming it is because the POI are not artifacts in the
> repository...
>
> I was just wondering whether there was a way to use external libraries
> without having to install them into the maven repository.


It's not usually desired, but you can set the "scope" of the jar as "system"
in dependency, then set "systemPath" to the path of the jar.

Fong
>
>
> ***CONFIDENTIALITY NOTICE***
> This electronic message is intended only for the use of the addressee and
> may contain information that is privileged and confidential.  Any
> dissemination, distribution or copying of this communication by unauthorized
> individuals is strictly prohibited. If you have received this communication
> in error, please notify the sender immediately by reply e-mail and delete
> the original and all copies from your system.
>



--
Eric Redmond
http://codehaus.org/~eredmond



***CONFIDENTIALITY NOTICE***
This electronic message is intended only for the use of the addressee and may 
contain information that is privileged and confidential.  Any dissemination, 
distribution or copying of this communication by unauthorized individuals is 
strictly prohibited. If you have received this communication in error, please 
notify the sender immediately by reply e-mail and delete the original and all 
copies from your system.

-
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 and 3rd Party Libraries

2007-04-10 Thread Fong Chan
Sorry you'll have to excuse my ignorance as I am still new to Maven.

But when you say "set the 'scope' of the jar as 'system' in dependency, then 
set 'systemPath' to the path of the jar."  

Do you mean setting the properties in the pom.xml of the project?  

Thanks,

Fong

>>> "Eric Redmond" <[EMAIL PROTECTED]> 04/10/07 4:17 PM >>>
On 4/10/07, Fong Chan <[EMAIL PROTECTED]> wrote:
>
> Hello all,
>
> I am having some problems with Maven right now.
>
> Just to give some background.  I currently have installed all of Taverna's
> (A workflow management system that uses Maven) classes into the Maven
> repository and I am able to use them no problem.
>
> For one of my programs, I would like to use Taverna's class and also
> another external library called Jakarta POI (able to manipulate Excel from
> Java).  The thing is the POI downloads do not come in a maven format and
> make it different to install them into the repository easily.  So instead, I
> have imported them as external jars in eclipse.
>
> From there, I want to install my program as a Taverna Artifact into the
> library, but when installing I get the maven errors that it can't find the
> POI classes.  I am assuming it is because the POI are not artifacts in the
> repository...
>
> I was just wondering whether there was a way to use external libraries
> without having to install them into the maven repository.


It's not usually desired, but you can set the "scope" of the jar as "system"
in dependency, then set "systemPath" to the path of the jar.

Fong
>
>
> ***CONFIDENTIALITY NOTICE***
> This electronic message is intended only for the use of the addressee and
> may contain information that is privileged and confidential.  Any
> dissemination, distribution or copying of this communication by unauthorized
> individuals is strictly prohibited. If you have received this communication
> in error, please notify the sender immediately by reply e-mail and delete
> the original and all copies from your system.
>



-- 
Eric Redmond
http://codehaus.org/~eredmond 



***CONFIDENTIALITY NOTICE***
This electronic message is intended only for the use of the addressee and may 
contain information that is privileged and confidential.  Any dissemination, 
distribution or copying of this communication by unauthorized individuals is 
strictly prohibited. If you have received this communication in error, please 
notify the sender immediately by reply e-mail and delete the original and all 
copies from your system.

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



Re: Maven and 3rd Party Libraries

2007-04-10 Thread Eric Redmond

On 4/10/07, Fong Chan <[EMAIL PROTECTED]> wrote:


Hello all,

I am having some problems with Maven right now.

Just to give some background.  I currently have installed all of Taverna's
(A workflow management system that uses Maven) classes into the Maven
repository and I am able to use them no problem.

For one of my programs, I would like to use Taverna's class and also
another external library called Jakarta POI (able to manipulate Excel from
Java).  The thing is the POI downloads do not come in a maven format and
make it different to install them into the repository easily.  So instead, I
have imported them as external jars in eclipse.

From there, I want to install my program as a Taverna Artifact into the
library, but when installing I get the maven errors that it can't find the
POI classes.  I am assuming it is because the POI are not artifacts in the
repository...

I was just wondering whether there was a way to use external libraries
without having to install them into the maven repository.



It's not usually desired, but you can set the "scope" of the jar as "system"
in dependency, then set "systemPath" to the path of the jar.

Fong



***CONFIDENTIALITY NOTICE***
This electronic message is intended only for the use of the addressee and
may contain information that is privileged and confidential.  Any
dissemination, distribution or copying of this communication by unauthorized
individuals is strictly prohibited. If you have received this communication
in error, please notify the sender immediately by reply e-mail and delete
the original and all copies from your system.





--
Eric Redmond
http://codehaus.org/~eredmond


Maven and 3rd Party Libraries

2007-04-10 Thread Fong Chan
Hello all,
 
I am having some problems with Maven right now.
 
Just to give some background.  I currently have installed all of Taverna's (A 
workflow management system that uses Maven) classes into the Maven repository 
and I am able to use them no problem.
 
For one of my programs, I would like to use Taverna's class and also another 
external library called Jakarta POI (able to manipulate Excel from Java).  The 
thing is the POI downloads do not come in a maven format and make it different 
to install them into the repository easily.  So instead, I have imported them 
as external jars in eclipse.  
 
>From there, I want to install my program as a Taverna Artifact into the 
>library, but when installing I get the maven errors that it can't find the POI 
>classes.  I am assuming it is because the POI are not artifacts in the 
>repository...
 
I was just wondering whether there was a way to use external libraries without 
having to install them into the maven repository.  
 
Fong


***CONFIDENTIALITY NOTICE***
This electronic message is intended only for the use of the addressee and may 
contain information that is privileged and confidential.  Any dissemination, 
distribution or copying of this communication by unauthorized individuals is 
strictly prohibited. If you have received this communication in error, please 
notify the sender immediately by reply e-mail and delete the original and all 
copies from your system.


Re: What's the deal with MNG-2858??!?

2007-04-10 Thread Wayne Fay

Welcome to open source development. There is a small team of
programmers working on things (including dealing with bug reports) and
then quite a number of users using the product and reporting issues.
Users# >> Developers#. Therefore, it is challenging for the
Development team to keep up with all the reported bugs, new feature
requests, etc.

I see that bug was posted on March 5 so roughly 1 month ago. I have
several bugs that I've personally posted which are 6 mos old (or
older) and have not yet been seriously addressed by anyone, including
myself. But I probably haven't posted any tests and/or they are issues
which will be dealt with in M2.1, so I'm willing to wait.  None of my
issues are disasterous and without work-arounds. In your case, I'd
suggest installing a Maven proxy like Archiva or Proximity which might
help your issue.

As for your problems... I don't know where you should look to fix it.
Feel free to dig around until you find it and fix it, and submit a
patch (with tests of course).

Finally, I hope you realize that posts like these on this list are
generally considered "rude" and will probably be received as such by
most people.

Wayne

On 4/10/07, David Jackman <[EMAIL PROTECTED]> wrote:

I've sent email to this group, I've written a bug
(http://jira.codehaus.org/browse/MNG-2858), but still no one has given
any kind of response.  Maybe we're the only ones on the planet that are
having this problem, but it is happening repeatedly and is beginning to
hinder my group's acceptance of Maven 2.  They try to build a project
that is supposed to work and it says it can't find a dependency that is
supposed to be there (and it is, but Maven just isn't looking for it).
The message for my development group is "Maven 2 doesn't work".

If anyone has any insights, please reply.  If you have any idea where I
could look to find this problem in the code, I would love to be able to
fix it.

..David..



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



Re: What's the deal with MNG-2858??!?

2007-04-10 Thread Nick Stolwijk
You could try setting up multiple "remote repositories" through the 
"file://" type of URL. That way you can zip up the whole bunch (try to 
make it as simple and lean as possible) and attach it to the issue.


Nick Stolwijk

David Jackman wrote:

I could try it with multiple public repositories, but I don't know any
besides the central one.  Can you name some?  I would especially need at
least one that has a specific artifact that ISN'T also in the central
repository.  If there aren't such repositories already out there I can
try to find some public server space somewhere that I can create some
test repositories, but I don't know of any such server space at this
time.

..David..

 


-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 10, 2007 3:17 PM

To: Maven Users List
Subject: Re: What's the deal with MNG-2858??!?

On 4/10/07, David Jackman <[EMAIL PROTECTED]> wrote:

  
I've sent email to this group, I've written a bug 
(http://jira.codehaus.org/browse/MNG-2858), but still no one has given



  
any kind of response.  Maybe we're the only ones on the planet that 
are having this problem, but it is happening repeatedly and is 
beginning to hinder my group's acceptance of Maven 2.  They try to 
build a project that is supposed to work and it says it can't find a 
dependency that is supposed to be there (and it is, but Maven just


isn't looking for it).
  

The message for my development group is "Maven 2 doesn't work".



There isn't enough information there to help.  I routinely build
projects against multiple repositories (with an empty local repo) and
Maven has no trouble finding parent poms in the repository.  However,
none of mine is a Maven 1 repo, maybe that's it.

Does it happen with the latest release, Maven 2.0.6?  Can you reproduce
it using a few public repositories, and attach a test project?

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


  



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



RE: What's the deal with MNG-2858??!?

2007-04-10 Thread David Jackman
I could try it with multiple public repositories, but I don't know any
besides the central one.  Can you name some?  I would especially need at
least one that has a specific artifact that ISN'T also in the central
repository.  If there aren't such repositories already out there I can
try to find some public server space somewhere that I can create some
test repositories, but I don't know of any such server space at this
time.

..David..

 

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 10, 2007 3:17 PM
To: Maven Users List
Subject: Re: What's the deal with MNG-2858??!?

On 4/10/07, David Jackman <[EMAIL PROTECTED]> wrote:

> I've sent email to this group, I've written a bug 
> (http://jira.codehaus.org/browse/MNG-2858), but still no one has given

> any kind of response.  Maybe we're the only ones on the planet that 
> are having this problem, but it is happening repeatedly and is 
> beginning to hinder my group's acceptance of Maven 2.  They try to 
> build a project that is supposed to work and it says it can't find a 
> dependency that is supposed to be there (and it is, but Maven just
isn't looking for it).
> The message for my development group is "Maven 2 doesn't work".

There isn't enough information there to help.  I routinely build
projects against multiple repositories (with an empty local repo) and
Maven has no trouble finding parent poms in the repository.  However,
none of mine is a Maven 1 repo, maybe that's it.

Does it happen with the latest release, Maven 2.0.6?  Can you reproduce
it using a few public repositories, and attach a test project?

--
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: What's the deal with MNG-2858??!?

2007-04-10 Thread Carlos Sanchez

no example, no output, no tests,...
I can point you to companies and people that will be glad to help you
if you pay their time, but with what you are providing I don't see how
would anybody in the community help you.

On 4/10/07, David Jackman <[EMAIL PROTECTED]> wrote:

I've sent email to this group, I've written a bug
(http://jira.codehaus.org/browse/MNG-2858), but still no one has given
any kind of response.  Maybe we're the only ones on the planet that are
having this problem, but it is happening repeatedly and is beginning to
hinder my group's acceptance of Maven 2.  They try to build a project
that is supposed to work and it says it can't find a dependency that is
supposed to be there (and it is, but Maven just isn't looking for it).
The message for my development group is "Maven 2 doesn't work".

If anyone has any insights, please reply.  If you have any idea where I
could look to find this problem in the code, I would love to be able to
fix it.

..David..




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

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



Re: What's the deal with MNG-2858??!?

2007-04-10 Thread Wendy Smoak

On 4/10/07, David Jackman <[EMAIL PROTECTED]> wrote:


I've sent email to this group, I've written a bug
(http://jira.codehaus.org/browse/MNG-2858), but still no one has given
any kind of response.  Maybe we're the only ones on the planet that are
having this problem, but it is happening repeatedly and is beginning to
hinder my group's acceptance of Maven 2.  They try to build a project
that is supposed to work and it says it can't find a dependency that is
supposed to be there (and it is, but Maven just isn't looking for it).
The message for my development group is "Maven 2 doesn't work".


There isn't enough information there to help.  I routinely build
projects against multiple repositories (with an empty local repo) and
Maven has no trouble finding parent poms in the repository.  However,
none of mine is a Maven 1 repo, maybe that's it.

Does it happen with the latest release, Maven 2.0.6?  Can you
reproduce it using a few public repositories, and attach a test
project?

--
Wendy

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



Maven2 plugin for Cactus

2007-04-10 Thread Sambit Bharimalla

Hi,
 I have developed a J2EE project. I have choosen Maven2 for
automation build process.
My J2EE project involves some incontainer test cases written in Cactus. I
need suggestion if following is possible or not.

I want to ->
i- compile the code
ii- test out of container test cases
iii- build ear
iv- deploy the ear. (I ve separate scripts for deploying the ear)
v- run the incontainer test cases.
Any pointer how to achieve point # 5. Has cactus provided plugin for Maven2.
I searched net a lot. but didnt get any definite answer.

--
Thanks & Regards
Sambit


What's the deal with MNG-2858??!?

2007-04-10 Thread David Jackman
I've sent email to this group, I've written a bug
(http://jira.codehaus.org/browse/MNG-2858), but still no one has given
any kind of response.  Maybe we're the only ones on the planet that are
having this problem, but it is happening repeatedly and is beginning to
hinder my group's acceptance of Maven 2.  They try to build a project
that is supposed to work and it says it can't find a dependency that is
supposed to be there (and it is, but Maven just isn't looking for it).
The message for my development group is "Maven 2 doesn't work".
 
If anyone has any insights, please reply.  If you have any idea where I
could look to find this problem in the code, I would love to be able to
fix it.
 
..David..


Re: pack a WAR class as a JAR inside of it

2007-04-10 Thread Gonzalo Vásquez Sáez

thanks, i'll try it...any other suggestions will be appreciated

On 10/04/07, Wayne Fay <[EMAIL PROTECTED]> wrote:


Split your project into 2 parts:

1. app/jar/pom.xml with packaging jar, all Java sources go here
2. app/war/pom.xml with packaging war and dependency against jar
project, all web project source go here

Wayne

On 4/10/07, Gonzalo Vásquez Sáez <[EMAIL PROTECTED]> wrote:
> What would be the appropiate way of compiling a Web Project's classes
into a
> JAR file which could be lately stored in it's WEB-INF/lib directory?
>
> I'd like to do it so no wandering .class files are spread in the
> WEB-INF/classes directory.
>
> Regards,
>
> Gonzalo Vásquez
>

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




Re: pack a WAR class as a JAR inside of it

2007-04-10 Thread Wayne Fay

Split your project into 2 parts:

1. app/jar/pom.xml with packaging jar, all Java sources go here
2. app/war/pom.xml with packaging war and dependency against jar
project, all web project source go here

Wayne

On 4/10/07, Gonzalo Vásquez Sáez <[EMAIL PROTECTED]> wrote:

What would be the appropiate way of compiling a Web Project's classes into a
JAR file which could be lately stored in it's WEB-INF/lib directory?

I'd like to do it so no wandering .class files are spread in the
WEB-INF/classes directory.

Regards,

Gonzalo Vásquez



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



Re: Missing dependencies if building from parent directory (maven 2.0.5)

2007-04-10 Thread Wayne Fay

I haven't pulled the code and built etc yet, but I noticed the pom.xml
for tuscany-das-rdb is missing a 
node. This may be related to your issues...

Wayne

On 4/9/07, Luciano Resende <[EMAIL PROTECTED]> wrote:

Hi maven gurus

   We are having a strange dependency issue in our build at Apache Tuscany
project. Starting from a clean m2 repo, if one tries the top-level build
(/java), he will face some dependencies issues like the one attached below,
but the issue actually goes away if you actually build from actual child
project (java/das). Simmilar missing dependencies issues are being reported
on the sca child project while trying to build from root (/java), and then
it goes away if you actually build from the child directory (java/sca). Our
svn code is available at [1] for reference. Any thoughts ?

[1] https://svn.apache.org/repos/asf/incubator/tuscany/java/

Missing:
--
1) org.apache.tuscany.das:tuscany-das-rdb:jar:1.0-incubator-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file
-DgroupId=org.apache.tuscany.das-DartifactId=tuscany-das-rdb \
  -Dversion=1.0-incubator-SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file

  Path to dependency:
1)
org.apache.tuscany.das.samples:sample-companyweb:war:1.0-incubator-SNAPSHOT
2) org.apache.tuscany.das:tuscany-das-rdb:jar:1.0-incubator-SNAPSHOT

--
1 required artifact is missing.

for artifact:

org.apache.tuscany.das.samples:sample-companyweb:war:1.0-incubator-SNAPSHOT

from the specified remote repositories:
  central ( http://repo1.maven.org/maven2),
  apache.incubator (http://people.apache.org/repo/m2-incubating-repository/
),
  apache.ws.m1.snapshots ( http://ws.zones.apache.org/repository),
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository)


--
Luciano Resende
http://people.apache.org/~lresende



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



Re: Maven 2.x in quiet mode

2007-04-10 Thread Wayne Fay

I assume you already tried mvn -q??

C:\cvs_root>mvn -h

usage: mvn [options] [] []

Options:
-q,--quietQuiet output - only show errors
-C,--strict-checksums Fail the build if checksums don't match
-c,--lax-checksumsWarn if checksums don't match
-P,--activate-profilesComma-delimited list of profiles to
  activate
-ff,--fail-fast   Stop at first failure in reactorized builds
-fae,--fail-at-endOnly fail the build afterwards; allow all
  non-impacted builds to continue
-B,--batch-mode   Run in non-interactive (batch) mode
-fn,--fail-never  NEVER fail the build, regardless of project
  result
-up,--update-plugins  Synonym for cpu
-N,--non-recursiveDo not recurse into sub-projects
-npr,--no-plugin-registry Don't use ~/.m2/plugin-registry.xml for
  plugin versions
-U,--update-snapshots Forces a check for updated releases and
  snapshots on remote repositories
-cpu,--check-plugin-updates   Force upToDate check for any relevant
  registered plugins
-npu,--no-plugin-updates  Suppress upToDate check for any relevant
  registered plugins
-D,--define   Define a system property
-X,--debugProduce execution debug output
-e,--errors   Produce execution error messages
-f,--file Force the use of an alternate POM file.
-h,--help Display help information
-o,--offline  Work offline
-r,--reactor  Execute goals for project found in the
  reactor
-s,--settings Alternate path for the user settings file
-v,--version  Display version information

Wayne

On 4/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


I apologize if this is a FAQ. Is there a way to run Maven 2.x in quiet mode?
I run Maven under CruiseControl and get verbose reports, which I 'd like to 
trim down.

Tx,

/U

-
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 site-plugin

2007-04-10 Thread Nick Stolwijk
I looked at the code of the site plugin and it seems this is a bug in 
maven-site-plugin as published but solved in the trunk of the source 
code [MSITE-91].


Hth,

Nick Stolwijk

[EMAIL PROTECTED] wrote:

Hi,

I've tried to move the "src/site" directory to "site/src/site" using


org.apache.maven.plugins
maven-site-plugin

${basedir}/site/src/site



When I create the site all resources from the subdirectories (apt, fml, xdoc) except the 
"site.xml" (.../site/src/site/site.xml) are used.
If I put the "site.xml" to the src/site directory all works fine. Could anybody 
help me why the site descriptor is not taken from the
configured site directory ".../site/src/site" ?

Regards
André Sudhoff




  



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



Re: Using maven directly from a java application ?

2007-04-10 Thread Wayne Fay

Not that I am personally aware of. But search this list and the Maven
Dev list -- you're bound to find something.

Wayne

On 4/10/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote:

Thx for reply.

There are some documentation about using embeded maven ??

-Message d'origine-
De: Wayne Fay [mailto:[EMAIL PROTECTED]
Envoyé: mardi 10 avril 2007 15:16
À: Maven Users List
Objet: Re: Using maven directly from a java application ?

You may want to try to use the Maven Embedder:
http://idisk.maven.org/jvanzyl/Public/embedder/

Wayne

On 4/9/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
>
> I want to atomize  the creation of the structure of my project. So iwant to 
develop a desktop application in order to give to the end user
>
> To fill some parameters like : groupId,  artifactId ...
>
> My question how can I invoke all command mvn from my application desktop , ie 
I don't want to use the mvn.bat  I want to use java classes of maven directly ??
>
> This is a simple to do or I must navigate on all java classes  maven 
>
>
>
> Thx
>
>
>
>
>
> ---
>
> Merouane AMRAOUI
> Consultant Expert
> Division Développement
> Email.: [EMAIL PROTECTED]
>
> Gsm  .: 065 19 60 99
> Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70
> OMNIDATA , 74 Bv AbdelMoumen
>
>
>
>

-
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: Maven Assembly:Assembly plugin issue

2007-04-10 Thread Edwin Punzalan

Try using the other assembly goals... some of them doesn't fork a new
lifecycle.  Please see:
http://maven.apache.org/plugins/maven-assembly-plugin/plugin-info.html


On 4/5/07, Kishor Patil <[EMAIL PROTECTED]> wrote:


Greetings !!

Maven's assembly:assembly mojo Invokes the execution of the lifecycle
phase
package prior to executing itself. In my project I have reuirement to
invoke
this plugin after process-resources. Is there a way to change the package
association.

I have a web application which i'm packaging using Maven. This web
application has 3 *.properties file. I have a requirement that should
assembly only these 3 properties as config.zip. To do this I need to
invoke
this pugin right after process-resources phase but with the current mojo's
behaviour I had wait till it runs the package phase.

any help is appreciated ...

- Kishor



Re: How to specify where to copy particular files

2007-04-10 Thread Rod Mclaughlin
Thanks again, guys. Plus you can specify where the files come from if 
you don't want to put them in src/main/resources:



   
   foo
   ${basedir}/src/main/java/foo
   
   *.xml
   
   
...



Two ways:

* First is to save the bar.xml into src/main/resources/foo/bar.xml so you
don't have to configure anything.

* Second is to use foo in 


On 4/10/07, Rod Mclaughlin <[EMAIL PROTECTED]> wrote:

I know how to make Maven copy a buncha files into the classpath, but
does anyone know how to make it copy into a particular folder? Eg. I want
src/main/java/foo/bar.xml to go in
target/classes/foo/
next to bar.class?

Thanks for any assistance. I have of course googled for it, to no avail.

  
  
  ${basedir}/war/WEB-INF
  
  *.properties
  *.xml
  
  
  




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



Maven 2.x in quiet mode

2007-04-10 Thread uma_rk

I apologize if this is a FAQ. Is there a way to run Maven 2.x in quiet mode?
I run Maven under CruiseControl and get verbose reports, which I 'd like to 
trim down.

Tx,

/U

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



Maven site-plugin

2007-04-10 Thread Andre.Sudhoff
Hi,

I've tried to move the "src/site" directory to "site/src/site" using


org.apache.maven.plugins
maven-site-plugin

${basedir}/site/src/site



When I create the site all resources from the subdirectories (apt, fml, xdoc) 
except the "site.xml" (.../site/src/site/site.xml) are used.
If I put the "site.xml" to the src/site directory all works fine. Could anybody 
help me why the site descriptor is not taken from the
configured site directory ".../site/src/site" ?

Regards
André Sudhoff





Re: Maven mojo Compilation failure

2007-04-10 Thread Edwin Punzalan

The stacktrace is incomplete... there may be a message coming from the java
compiler (javac) itself.


On 4/6/07, Hodanics, Charles J. <[EMAIL PROTECTED]> wrote:


Can someone assist with the following error when I run Maven2 compile
from eclipse and continuum.  I have checked a few posts and seen that
JRE to JDK is a fix, but I already have this done.


[INFO] Compiling 35 source files to "C:\Documents.."
[ERROR] mojo-execute : compiler:compile
Diagnosis: Compilation failure
FATAL ERROR: Error executing Maven for a project
[ERROR] project-execute : artifact:name:jar:1.0-SNAPSHOT (
task-segment: [clean, compile] )
Diagnosis: Compilation failure
FATAL ERROR: Error executing Maven for a project
org.apache.maven.BuildFailureException: Compilation failure
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:555)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:475)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:454)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:306)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:140)
   at
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
   at
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
   at
org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
Caused by: org.apache.maven.plugin.CompilationFailureException:
Compilation failure
   at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMoj
o.java:516)
   at
org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
   at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:412)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:534)
   ... 8 more


Charles Hodanics
NSTD-STJ
443-778-3246




Re: Release plugin: able to create branches?

2007-04-10 Thread Edwin Punzalan

Hi Graham.

No, the release plugin does not have a separate goal for that. you might
want to look at the maven-scm-plugin


On 4/9/07, Graham Leggett <[EMAIL PROTECTED]> wrote:


Hi all,

We have been using the release plugin very successfully to create tags
and keep version numbers up to date for us.

We need similar behaviour to create branches - ie to update the version
number, then create the branch.

Does anything like this exist in the release plugin, or in another plugin?

Regards,
Graham
--




Re: How to exclude some java source files

2007-04-10 Thread Edwin Punzalan

You mean you want to exclude the source files from compilation? Then use
 in the compiler plugin. Please refer to
http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html.


On 4/10/07, sunynec <[EMAIL PROTECTED]> wrote:



How to exclude some java source files in pom.xml file, since the source
file
are located in different package name.
--
View this message in context:
http://www.nabble.com/How-to-exclude-some-java-source-files-tf3554974s177.html#a9926074
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: How to specify where to copy particular files

2007-04-10 Thread Edwin Punzalan

Two ways:

* First is to save the bar.xml into src/main/resources/foo/bar.xml so you
don't have to configure anything.

* Second is to use foo in 


On 4/10/07, Rod Mclaughlin <[EMAIL PROTECTED]> wrote:


I know how to make Maven copy a buncha files into the classpath, but
does anyone know how to make it copy into a particular folder? Eg. I want
src/main/java/foo/bar.xml to go in
target/classes/foo/
next to bar.class?

Thanks for any assistance. I have of course googled for it, to no avail.

   
   
   ${basedir}/war/WEB-INF
   
   *.properties
   *.xml
   
   
   



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




How to exclude some java source files

2007-04-10 Thread sunynec

How to exclude some java source files in pom.xml file, since the source file
are located in different package name.
-- 
View this message in context: 
http://www.nabble.com/How-to-exclude-some-java-source-files-tf3554974s177.html#a9926074
Sent from the Maven - Users mailing list archive at Nabble.com.


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



How to specify where to copy particular files

2007-04-10 Thread Rod Mclaughlin
I know how to make Maven copy a buncha files into the classpath, but 
does anyone know how to make it copy into a particular folder? Eg. I want

src/main/java/foo/bar.xml to go in
target/classes/foo/
next to bar.class?

Thanks for any assistance. I have of course googled for it, to no avail.

   
   
   ${basedir}/war/WEB-INF
   
   *.properties
   *.xml
   
   
   



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



Did webstart-maven-plugin 1.0-alpha-2-SNAPSHOT change the artifact type?

2007-04-10 Thread Mykel Alvis

I just updated to 1.0-alpha-2-SNAPSHOT of the webstart mojo.  Did the
artifact type change?  The behavior I see now is similar to pom processing,
which makes sense since the artifact type is "pom".
--
I'm just an unfrozen caveman software developer.  I don't understand your
strange, "modern" ways.


RE: Using maven directly from a java application ?

2007-04-10 Thread Marouane Amraoui
Thx for reply.

There are some documentation about using embeded maven ??

-Message d'origine-
De : Wayne Fay [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 10 avril 2007 15:16
À : Maven Users List
Objet : Re: Using maven directly from a java application ?

You may want to try to use the Maven Embedder:
http://idisk.maven.org/jvanzyl/Public/embedder/

Wayne

On 4/9/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
>
> I want to atomize  the creation of the structure of my project. So iwant to 
> develop a desktop application in order to give to the end user
>
> To fill some parameters like : groupId,  artifactId ...
>
> My question how can I invoke all command mvn from my application desktop , ie 
> I don't want to use the mvn.bat  I want to use java classes of maven directly 
> ??
>
> This is a simple to do or I must navigate on all java classes  maven 
>
>
>
> Thx
>
>
>
>
>
> ---
>
> Merouane AMRAOUI
> Consultant Expert
> Division Développement
> Email.: [EMAIL PROTECTED]
>
> Gsm  .: 065 19 60 99
> Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70
> OMNIDATA , 74 Bv AbdelMoumen
>
>
>
>

-
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: How to NOT include test resources in jar

2007-04-10 Thread Eric Daigneault

Classic case...

Blinded by the very light I was looking for :-)

Thanks Peter, still few small problems updating the repository but I 
should manage...


Hayes, Peter wrote:

Just a shot in the dark but did you try an "mvn clean package"?  Maybe the test 
resources had at some point made it into the target\classes directory...

Pete 


-Original Message-
From: Eric Daigneault [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 10, 2007 11:32 AM

To: Maven Users List
Subject: How to NOT include test resources in jar

Hi everybody,

I'm trying to package my projects and everything works fine except that 
test resources are systematically included in the jar.  No matter where 
I put them or what I declare in testResources they always end up in the 
jar.  This can me problematic as some of the test can be very extensive 
as they can include test databases of very big test files.  Since their 
only uses is for unit and specification testing there is absolutely no 
reason to include them in the final release.



The project is arranged as follows :

com.mypackage.pack.specific/
|
\-src
|--main
|  \-java
|  \-- My source tree
\--test
 \--java
   |-- My test source tree
   \--resources
   |--unitTest
   \--SpecTest

My problem is that the source tree from src/test is not included in the 
jar...  actually this is fine but the content of resources is included 
at the root of the jar..


The end result in the jar is the following :

specific-1.0.jar
|--META-INF
|\--  ... pom and properties
|--com.mypackage.pack
|   \--My source tree compiled
|--unitTest   <-- Why is this here ???
\--SpecTest <--Why is this here too ???  want them removed

here is the effective POM from my latest attempt :



  
base
com.mypackage
1.0
  
  4.0.0
  com.mypackage.pack
  specific
  specific
  1.0
  http://maven.apache.org
  2007
  

  eric
  myself
 
  
  

D:\workspace\com.mypackage.pack.specific\src\main\java

src/main/scripts

D:\workspace\com.mypackage.pack.specific\src\test\java

D:\workspace\com.mypackage.pack.specific\target\classes

D:\workspace\com.mypackage.pack.specific\target\test-classes


  

D:\workspace\com.mypackage.pack.specific\src\main\config

  


  
/src/test/java/resources
  

D:\workspace\com.mypackage.pack.specific\target
specific-1.0

  
maven-compiler-plugin

  1.6
  1.6

  
  
maven-help-plugin
2.0.1
  

  
  
 
  
false
  
  central
  Maven Repository Switchboard
  http://repo1.maven.org/maven2

  
  

  
never
  
  
false
  
  central
  Maven Plugin Repository
  http://repo1.maven.org/maven2

  
  

  junit
  junit
  4.1
  test


  com.mypackage
  pack
  1.0

  
  
target/site
  
 

Thanks,

Éric

-
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: ClearCase checkout

2007-04-10 Thread Emmanuel Venisse

Thanks.
I'll apply it when you'll provide a patch for the site too.

Emmanuel

Antoine Véret a écrit :
Hello, i have just created an issue for this task : 
http://jira.codehaus.org/browse/SCM-296

Hope it helps

On 3/21/07, * Antoine Véret* <[EMAIL PROTECTED] 
> wrote:



Well, i didnt know the difference ...

So yes, I will add support for UCM, for the checkout task.

Antoine

I think "-stream" is for Clearcase UCM, right?
Clearcase UCM isn't supported yet, but maybe you can help us to add 
support.


I don't think it's a big work.

Emmanuel

Antoine Veret a ?crit :
> Hello, i doesnt succeed to get my code when i do a checkout.
	> 
	> The snapshot view doesnt seems to be linked to the stream.


	> 
	> When i try with cleartool manualy, it works with the "-stream" 
	> parameter, but the clearcase provider doesnt offer to configure this 
	> parameter.
	> 
	> Is there a workaround ?


	> 
	> Can i use the vws intead ? I dont know how it works.
	> 
	> Thanks a lot
	> 
	> Antoine








RE: How to NOT include test resources in jar

2007-04-10 Thread Hayes, Peter
Just a shot in the dark but did you try an "mvn clean package"?  Maybe the test 
resources had at some point made it into the target\classes directory...

Pete 

-Original Message-
From: Eric Daigneault [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 10, 2007 11:32 AM
To: Maven Users List
Subject: How to NOT include test resources in jar

Hi everybody,

I'm trying to package my projects and everything works fine except that 
test resources are systematically included in the jar.  No matter where 
I put them or what I declare in testResources they always end up in the 
jar.  This can me problematic as some of the test can be very extensive 
as they can include test databases of very big test files.  Since their 
only uses is for unit and specification testing there is absolutely no 
reason to include them in the final release.


The project is arranged as follows :

com.mypackage.pack.specific/
|
\-src
|--main
|  \-java
|  \-- My source tree
\--test
 \--java
   |-- My test source tree
   \--resources
   |--unitTest
   \--SpecTest

My problem is that the source tree from src/test is not included in the 
jar...  actually this is fine but the content of resources is included 
at the root of the jar..

The end result in the jar is the following :

specific-1.0.jar
|--META-INF
|\--  ... pom and properties
|--com.mypackage.pack
|   \--My source tree compiled
|--unitTest   <-- Why is this here ???
\--SpecTest <--Why is this here too ???  want them removed

here is the effective POM from my latest attempt :



  
base
com.mypackage
1.0
  
  4.0.0
  com.mypackage.pack
  specific
  specific
  1.0
  http://maven.apache.org
  2007
  

  eric
  myself
 
  
  

D:\workspace\com.mypackage.pack.specific\src\main\java
src/main/scripts

D:\workspace\com.mypackage.pack.specific\src\test\java

D:\workspace\com.mypackage.pack.specific\target\classes

D:\workspace\com.mypackage.pack.specific\target\test-classes

  

D:\workspace\com.mypackage.pack.specific\src\main\config
  


  
/src/test/java/resources
  

D:\workspace\com.mypackage.pack.specific\target
specific-1.0

  
maven-compiler-plugin

  1.6
  1.6

  
  
maven-help-plugin
2.0.1
  

  
  
 
  
false
  
  central
  Maven Repository Switchboard
  http://repo1.maven.org/maven2

  
  

  
never
  
  
false
  
  central
  Maven Plugin Repository
  http://repo1.maven.org/maven2

  
  

  junit
  junit
  4.1
  test


  com.mypackage
  pack
  1.0

  
  
target/site
  
 

Thanks,

Éric

-
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: ClearCase checkout

2007-04-10 Thread Antoine Véret

Hello, i have just created an issue for this task :
http://jira.codehaus.org/browse/SCM-296
Hope it helps

On 3/21/07, Antoine Véret <[EMAIL PROTECTED]> wrote:



Well, i didnt know the difference ...

So yes, I will add support for UCM, for the checkout task.

Antoine

I think "-stream" is for Clearcase UCM, right?
Clearcase UCM isn't supported yet, but maybe you can help us to add 
support.

I don't think it's a big work.

Emmanuel

Antoine Veret a ?crit :
> Hello, i doesnt succeed to get my code when i do a checkout.
>
> The snapshot view doesnt seems to be linked to the stream.
>
> When i try with cleartool manualy, it works with the "-stream"
> parameter, but the clearcase provider doesnt offer to configure this
> parameter.
>
> Is there a workaround ?
>
> Can i use the vws intead ? I dont know how it works.
>
> Thanks a lot
>
> Antoine




How to NOT include test resources in jar

2007-04-10 Thread Eric Daigneault

Hi everybody,

I'm trying to package my projects and everything works fine except that 
test resources are systematically included in the jar.  No matter where 
I put them or what I declare in testResources they always end up in the 
jar.  This can me problematic as some of the test can be very extensive 
as they can include test databases of very big test files.  Since their 
only uses is for unit and specification testing there is absolutely no 
reason to include them in the final release.



The project is arranged as follows :

com.mypackage.pack.specific/
|
\-src
   |--main
   |  \-java
   |  \-- My source tree
   \--test
\--java
  |-- My test source tree
  \--resources
  |--unitTest
  \--SpecTest

My problem is that the source tree from src/test is not included in the 
jar...  actually this is fine but the content of resources is included 
at the root of the jar..


The end result in the jar is the following :

specific-1.0.jar
   |--META-INF
   |\--  ... pom and properties
   |--com.mypackage.pack
   |   \--My source tree compiled
   |--unitTest   <-- Why is this here ???
   \--SpecTest <--Why is this here too ???  want them removed

here is the effective POM from my latest attempt :



 
   base
   com.mypackage
   1.0
 
 4.0.0
 com.mypackage.pack
 specific
 specific
 1.0
 http://maven.apache.org
 2007
 
   
 eric
 myself

 
 
   
D:\workspace\com.mypackage.pack.specific\src\main\java

   src/main/scripts
   
D:\workspace\com.mypackage.pack.specific\src\test\java
   
D:\workspace\com.mypackage.pack.specific\target\classes
   
D:\workspace\com.mypackage.pack.specific\target\test-classes

   
 
   
D:\workspace\com.mypackage.pack.specific\src\main\config

 
   
   
 
   /src/test/java/resources
 
   
   D:\workspace\com.mypackage.pack.specific\target
   specific-1.0
   
 
   maven-compiler-plugin
   
 1.6
 1.6
   
 
 
   maven-help-plugin
   2.0.1
 
   
 
 

 
   false
 
 central
 Maven Repository Switchboard
 http://repo1.maven.org/maven2
   
 
 
   
 
   never
 
 
   false
 
 central
 Maven Plugin Repository
 http://repo1.maven.org/maven2
   
 
 
   
 junit
 junit
 4.1
 test
   
   
 com.mypackage
 pack
 1.0
   
 
 
   target/site
 


Thanks,

Éric

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



Re: aspectj error

2007-04-10 Thread Steve Shucker

Like people said, it's probably a bad aspect.  However, I also have
1.5
in my configuration.

A side note about maven and eclipse integration:  Make sure eclipse has 
ASPECJTRT_LIB on its build path before the maven2 container.  This makes 
sure eclipse uses the version of aspectj that comes with the eclipse 
ajdt plugin and avoids the popups about not getting the expected version.


-Steve

Alessandro Di Bella wrote:
Hi, 
I'm trying to compile using aspectj and I keep getting the following error:


the parameter thisJoinPoint is not bound in [all branches of] pointcut
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

The plugin is configured as follow:

org.codehaus.mojo
aspectj-maven-plugin



compile
test-compile




1.5
1.5



and during the build I get this warning:
[WARNING] bad version number found in 
/home/amabboni/.m2/repository/aspectj/aspectjrt/1.5.3/aspectjrt-1.5.3.jar 
expected 1.5.2a found 1.5.3

I tried with the 1.5.2a version but no luck neither.

Any help would be greatly appreciated.

Thanks

Alessandro


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



pack a WAR class as a JAR inside of it

2007-04-10 Thread Gonzalo Vásquez Sáez

What would be the appropiate way of compiling a Web Project's classes into a
JAR file which could be lately stored in it's WEB-INF/lib directory?

I'd like to do it so no wandering .class files are spread in the
WEB-INF/classes directory.

Regards,

Gonzalo Vásquez


Re: Using maven directly from a java application ?

2007-04-10 Thread Wayne Fay

You may want to try to use the Maven Embedder:
http://idisk.maven.org/jvanzyl/Public/embedder/

Wayne

On 4/9/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote:

Hi,



I want to atomize  the creation of the structure of my project. So iwant to 
develop a desktop application in order to give to the end user

To fill some parameters like : groupId,  artifactId ...

My question how can I invoke all command mvn from my application desktop , ie I 
don't want to use the mvn.bat  I want to use java classes of maven directly ??

This is a simple to do or I must navigate on all java classes  maven 



Thx





---

Merouane AMRAOUI
Consultant Expert
Division Développement
Email.: [EMAIL PROTECTED]

Gsm  .: 065 19 60 99
Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70
OMNIDATA , 74 Bv AbdelMoumen






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



Re: parallel building

2007-04-10 Thread emerson cargnin

I had a look on Hudson and I think it just distribute different
projects, not the same project build:
https://hudson.dev.java.net/masterSlave.html

I couldn't found in any of Jira projects any thing regarding to
parallel multi module build. Does anyone knows if this search is
right?
:
http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=true&&pid=10500&pid=11124&pid=11533&pid=11123&pid=11125&pid=11126&pid=11191&pid=11211&pid=11212&pid=11127&pid=11128&pid=11227&pid=11129&pid=11226&pid=11213&pid=11130&pid=11214&pid=11131&pid=11310&pid=11361&pid=11132&pid=11133&pid=11134&pid=11530&pid=11341&pid=11431&pid=11532&pid=11141&pid=11215&pid=11135&pid=11136&pid=11441&pid=11137&pid=11216&pid=11138&pid=11340&pid=11217&pid=11218&pid=11220&pid=11221&pid=11241&pid=11293&pid=11139&pid=11140&pid=11142&pid=11143&pid=11144&pid=11391&pid=11250&pid=11145&pid=11531&pid=11390&pid=11223&pid=11483&pid=11540&pid=11146&pid=11147&pid=11224&pid=11149&pid=11150&pid=11362&pid=11225&pid=11095&pid=11481&pid=10940&pid=0&query=parallel&summary=true&description=true&body=true

Thanks a lot
Emerson

On 10/04/07, Nigel Magnay <[EMAIL PROTECTED]> wrote:

Not as far as I know. The Hudson CI tool claims to be able to parallel build
in the correct order, but I don't know how good it is at it.

IMHO it'd be a very powerful addition - if you've got something like an
8-core mac, it'd be nice to keep more of it busy. Even farming out builds to
separate machines (something I believe XCode can do) would be even nicer...

Maybe there's a JIRA issue for this.

On 10/04/07, emerson cargnin <[EMAIL PROTECTED]> wrote:
>
> Is there any way to make multi modules (regarding to both maven 1 and
> maven 2) builds to work in parallel when it detects a project has no
> dependencies (that need to be built beforehand)?
>
> thanks
> emerson
>
> -
> 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: parallel building

2007-04-10 Thread Nigel Magnay

Not as far as I know. The Hudson CI tool claims to be able to parallel build
in the correct order, but I don't know how good it is at it.

IMHO it'd be a very powerful addition - if you've got something like an
8-core mac, it'd be nice to keep more of it busy. Even farming out builds to
separate machines (something I believe XCode can do) would be even nicer...

Maybe there's a JIRA issue for this.

On 10/04/07, emerson cargnin <[EMAIL PROTECTED]> wrote:


Is there any way to make multi modules (regarding to both maven 1 and
maven 2) builds to work in parallel when it detects a project has no
dependencies (that need to be built beforehand)?

thanks
emerson

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




parallel building

2007-04-10 Thread emerson cargnin

Is there any way to make multi modules (regarding to both maven 1 and
maven 2) builds to work in parallel when it detects a project has no
dependencies (that need to be built beforehand)?

thanks
emerson

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



Re: overriding version of dependent library

2007-04-10 Thread oching
You could try  in your hiberrnate dependency so as not to
download the 1.0.1B jta jar it dependes on, and leave the dependency that
uses the jta 1.1 version as is. :)

You can check out this link http://maven.apache.org/pom.html for more info.

Thanks,
Deng

> Hi all,
>
> How can I override version number of a dependent library defined in my
> pom.xml file? I use org.hibernate:hibernate:jar:3.2.2.ga which depends
> on javax.transaction:jta:jar:1.0.1B while I'd like to use jta-1.1.jar
> (because it's needed elsewhere). How can I force a dependency to stop
> complaining about lack of older jta version and use a new one?
>
> Any help will be greatly appreciated, thanks in advance,
> Wojtek
>
> --
> Nawet 50MB w jednym mailu >>> http://link.interia.pl/f19e7
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> !DSPAM:602,461b66bd276271894314596!
>


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



Re: Project Inheritance reference to parent dependency?

2007-04-10 Thread DI Kurt Edegger

Hi,

thank you Jerome for your fast response!
I'll check out that plugin.

Take care, Kurt

Jerome Lacoste schrieb:

On 4/10/07, DI Kurt Edegger <[EMAIL PROTECTED]> wrote:

Hi,

I do have a question regarding referencing the parent pom of a multi 
module project as described in chapter 3 of "Better Builds With Maven".
If a project consists of multiple modules (e.g.: api, core,  model, 
..), these modules reside in sub-directories of a top level directory. 
Each module has it's own pom.xml and the top level directory
holds a pom.xml where project global settings are defined. Each 
module's pom sets a reference to the parent, by defining the following 
snippet:


   
   
   


Is there a way to reference the parent module without explicitly 
specifying the version? In a scenario where all modules are released 
at the same time, their version should be the same, so the
application version is defined in the parent pom.xml. But whenever 
this version changes, all references in the sub-modules need to be 
updated.


It's cumbersome to manually edit every pom.xml in every sub-directory, 
just because the application version has changed.


Do I miss something here?


Yes: http://maven.apache.org/plugins/maven-release-plugin/

The plugin will take care if the POM updates for you.

Jerome

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




--
DI Kurt Edegger
Austrian Research Centers GmbH - ARC
Biomedical Engineering / eHealth systems

Reininghausstrasse 13/1
A-8020 Graz, Austria

T: +43 (0)316 586570-58
F: +43 (0)316 586570-12
E: [EMAIL PROTECTED]
H: www.arcsmed.at/ehs

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



overriding version of dependent library

2007-04-10 Thread Wojtek Ciesielski

Hi all,

How can I override version number of a dependent library defined in my 
pom.xml file? I use org.hibernate:hibernate:jar:3.2.2.ga which depends 
on javax.transaction:jta:jar:1.0.1B while I'd like to use jta-1.1.jar 
(because it's needed elsewhere). How can I force a dependency to stop 
complaining about lack of older jta version and use a new one?


Any help will be greatly appreciated, thanks in advance,
Wojtek

--
Nawet 50MB w jednym mailu >>> http://link.interia.pl/f19e7


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



Re: Project Inheritance reference to parent dependency?

2007-04-10 Thread Jerome Lacoste

On 4/10/07, DI Kurt Edegger <[EMAIL PROTECTED]> wrote:

Hi,

I do have a question regarding referencing the parent pom of a multi module project as 
described in chapter 3 of "Better Builds With Maven".
If a project consists of multiple modules (e.g.: api, core,  model, ..), these 
modules reside in sub-directories of a top level directory. Each module has 
it's own pom.xml and the top level directory
holds a pom.xml where project global settings are defined. Each module's pom 
sets a reference to the parent, by defining the following snippet:

   
   
   


Is there a way to reference the parent module without explicitly specifying the 
version? In a scenario where all modules are released at the same time, their 
version should be the same, so the
application version is defined in the parent pom.xml. But whenever this version 
changes, all references in the sub-modules need to be updated.

It's cumbersome to manually edit every pom.xml in every sub-directory, just 
because the application version has changed.

Do I miss something here?


Yes: http://maven.apache.org/plugins/maven-release-plugin/

The plugin will take care if the POM updates for you.

Jerome

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



Project Inheritance reference to parent dependency?

2007-04-10 Thread DI Kurt Edegger

Hi,

I do have a question regarding referencing the parent pom of a multi module project as 
described in chapter 3 of "Better Builds With Maven".
If a project consists of multiple modules (e.g.: api, core,  model, ..), these modules reside in sub-directories of a top level directory. Each module has it's own pom.xml and the top level directory 
holds a pom.xml where project global settings are defined. Each module's pom sets a reference to the parent, by defining the following snippet:


  
  
  


Is there a way to reference the parent module without explicitly specifying the version? In a scenario where all modules are released at the same time, their version should be the same, so the 
application version is defined in the parent pom.xml. But whenever this version changes, all references in the sub-modules need to be updated.


It's cumbersome to manually edit every pom.xml in every sub-directory, just 
because the application version has changed.

Do I miss something here?

Thanks for any comments,

Kurt

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



Re: dependency:unpack unzipping .tgz files after HTTP downloads

2007-04-10 Thread Steinar Bang
> "Brian E. Fox" <[EMAIL PROTECTED]>:

> Putting explicit versions should force it. The only caveat is that
> it seems that once maven picks a version in a multi-module build, it
> uses that throughout the build, regardless of individual poms.

> Looking over the change log[1], I don't see anything that would
> affect this between the builds.

Neither did I.  Turns out the problem is with maven-2.0.5, that others
had been installing, since had become the default maven release.

If I build with maven-2.0.5 I see the issue, if I build with
maven-2.0.4 (without any local repo changes, except deleting the
offending ungzipped .tgz files), it goes away.

So my guess is that the issue is with the built-in HTTP support of
maven, rather than in any plugins.

Since 2.0.6 seems to be the current maven release, I tried it as
well.  But 2.0.6 got a null pointer exception trying to build our
maven project.


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



Re: [NEWSENDER] - Re: maven-release-plugin getiing SCM values - Message is from an unknown sender

2007-04-10 Thread Emmanuel Venisse

I don't know how JavaSVN store username/password but I think it use the 
subversion registry too, so if you're already authenticated on the svn server 
from this computer, you won't need username/password.
If you want to set explicitly the username/password, you can set them in the 
release plugin:
mvn release:prepare -Dusername=USERNAME -Dpassword=PASSWORD

Emmanuel

William Ferguson a écrit :

Sorry Emmanuel,

My post *should* have read :

1) If the SCM user/password has NOT been been explicitly configured in 
your POM or Settings, how does the maven-release-plugin discover the 
username/password of the current user ...


With regards to determining the revision that is tagged, I need the actual 
revision number as this needs to be part of the vaolue stamped into the 
subclipse:tags property. So I should interrogate the working copy for its 
revision?


William

 


-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 5 April 2007 5:40 PM

To: Maven Users List
Subject: [NEWSENDER] - Re: maven-release-plugin getiing SCM values - Message is 
from an unknown sender



William Ferguson a écrit :

Can someone please enlighten me on
 
1) If the SCM user/password has been been explicitly configured in 
your POM or Settings, how does the maven-release-plugin discover the 
username/password of the current user to supply to the SCM Eg 
Subversion)? I need this becxause my plugin will have to use javaSVN 
and needs to authenticate.


It should be in the scm url.

 
2) How do you determine the revision of the code that the 
maven-release-plugin will tag? I assume the head but a check-in could 
have occured since the maven-release-plugin took a copy for the tag.


We tag the working copy, so the code you release will be the code tagged.

Emmanuel


-
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: reference a pom variable in the website

2007-04-10 Thread Wim Deblauwe

Retrying...

2006/12/14, Wim Deblauwe <[EMAIL PROTECTED]>:


Hi,

is it possible to reference a pom variable in the website?

I would like to be able to do something like this in an APT file:

The latest version of the software is ${pom.version}.

regards,

Wim





--
Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
Blog: http://www.jroller.com/page/Fester