Re: Resolving Compile Time issues

2009-10-27 Thread anil.kumar

Hi Jacob,

As pointed bu you the packaging attribute was not correct , it must be just
jar and not salmon jar.

@ Wayne 
I have added dependencies in pom.xml file. The compile time issues related
to salmon.jar file is fixed. I am adding other dependencies and resolving
the compile time issues.

Thanks a lot Jacob and Wayne for your timely help.

Regards,
Anil


jacobdotcosta wrote:
 
 Hi Anil,
 
 In the *mvn install:install-file* statement you posted you have the
 packaging wrong, it should be just *jar*.
 
 Best regards,
 --
 António Jacob Costa
 IBM Certified Deployment Professional - Maximo V6 EAM
 
 MAXIMO Consultant and Software Engineer
 LinkedIn: http://www.linkedin.com/in/antoniojacobcosta
 --
 
 
 
 On Mon, Oct 26, 2009 at 14:20, anil.kumar anilkumar7...@gmail.com wrote:
 

 While compiling the project source code using mvn compile command  (mvn
 compile error.log) . One of the errors logged in was package
 com.salmonllc.html does not exist
 For successful compilation  of the the project,it requires jar file
 (salmon.jar) . This jar file is not available in maven repository
 (http://repo1.maven.org/maven2/) . I need to install the above jar file
 in
 maven local repository.
 The default location of the maven local repository is My
 Documents/.m2/repository/.. .
 I installed the salmon.jar dependency using the command
 mvn install:install-file -Dfile=F:\3rdParty\salmon\jars\salmon.jar
 -DgroupId=salmon -DartifactId=salmon -Dversion=1.0
 -Dpackaging=salmon.jar -DgeneratePom=true -e
 The Jar File is created in the location C:\Documents and
 Settings\AK\.m2\repository. The compile time issue  package
 com.salmonllc.html does not exist exits.
 Can some please tell me as to what could have gone wrong.
 --
 View this message in context:
 http://www.nabble.com/Resolving-Compile-Time-issues-tp26059618p26059618.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org


 
 

-- 
View this message in context: 
http://www.nabble.com/Resolving-Compile-Time-issues-%28Maven-2.0.10%29-tp26059618p26072963.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



[ANN] Maven Invoker Plugin 1.5 Released

2009-10-27 Thread Stephen Connolly
The Maven team is pleased to announce the release of the Maven Invoker
Plugin, version 1.5

This plugin allows to run Maven on a collection of projects and is
especially useful for integration testing of other Maven plugins. See
the plugin's site for more details:

http://maven.apache.org/plugins/maven-invoker-plugin/

You should specify the version in your project's plugin configuration:

plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-invoker-plugin/artifactId
 version1.5/version
/plugin

Release Notes - Maven 2.x Invoker Plugin - Version 1.5

** New Feature
* [MINVOKER-95] - Add a selector script to allow for flexible
skipping specific projects
* [MINVOKER-96] - Add a selector for the Maven Version

Enjoy,

-The Maven team

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



How to checkout multiple projects from CVS using Maven

2009-10-27 Thread zainab . madawala
Hi All

I need to checkout all the projects under a specific branch in CVS using Maven.
In my POM.xml, I have the following
scm
connectionscm:cvs:pserver:[username]:@[server name][path to 
module]:[moduleName]/connection
tag[tag name]/tag
/scm

This is a single POM which I have for all my modules.
I want to pass a list of all the modules and want it to iterate one by one and 
checkout them as a project.

Currently if I give a module name in the scm url, it checks out that module but 
does not package it as a project.

Morever, I dont want to manually change the module name all the time.
I want to checkout all the available modules under a branch.

Please help!

Thanks
Zainab

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Properties file in Maven

2009-10-27 Thread Sethuraman, Nirmala (NSN - IN/Bangalore)
Hi 

I am a new user of Maven. I have been looking for using external
property files in Maven. However I couldn't find any. 
Does maven provide this option (like ANT) for using an external property
file? 

Best Regards
Nirmala



Re: Properties file in Maven

2009-10-27 Thread Anders Hammar
No, not in core Maven. However, I found this plugin:
http://haroon.sis.utoronto.ca/zarar/properties-maven-plugin/

However, if you want to use properties in resource files the resource plugin
can handle external files when doing the filtering:
http://maven.apache.org/plugins/maven-resources-plugin/index.html

/Anders

On Tue, Oct 27, 2009 at 10:01, Sethuraman, Nirmala (NSN - IN/Bangalore) 
nirmala.sethura...@nsn.com wrote:

 Hi

 I am a new user of Maven. I have been looking for using external
 property files in Maven. However I couldn't find any.
 Does maven provide this option (like ANT) for using an external property
 file?

 Best Regards
 Nirmala




How to send email with enclosed files ?

2009-10-27 Thread boraldo

Please tell me which plugin is able to do it ?

-- 
View this message in context: 
http://www.nabble.com/How-to-send-email-with-enclosed-files---tp26074704p26074704.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Threads in a plug-in

2009-10-27 Thread Gajo Csaba

Hello,

I've developed a plug-in which executes some shell commands. I would 
like to run these commands in parallel with the rest of the build 
process, because they don't affect the other files. So I was thinking of 
creating a thread in the execute() method, starting it, and let it do 
its job. The problem is this works for some time, and Maven keeps on 
doing its job, but if Maven's lifecycle ends before the thread has 
finished its job, then the thread will be terminated as well.


Is there a way to instruct Maven to not terminate until the thread has 
finished, or at least to not terminate the thread itself?


Thanks, Csaba




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Controller POM - central version registry

2009-10-27 Thread Adam Flinton

Dear All,

We have a project which is an assembly of other projects. At present the
versions of these projects is set in individual POM files which means
(A) Someone can set one part to use one version of a sub-project while
another uses a different one
(B) If you want to upgrade a version number you have to run a script
which goes through all pom.xml looking for a string/pattern  settign it
to the new version etc.

I was wondering if it is possible to create a controller pom which
contains a list of all projects which are used by other projects and
their version numbers.

This would then be used by the compile process for those subprojects to
generate the relevantly versioned jar files  then by the projects which
depend on the subfiles to use that version.


In Ant we used to have a central properties file which simply consisted
of project=version  which was included by all.

i.e. imagine a set of Projects called A, B, C and D
In the properties file we would have

A=1.38
B=2.30
C=1.99
D=2.50

This could then be used to swap between development  release by
including/rmoving the -SNAPSHOT e.g.

Development could look like:

A=1.38-SNAPSHOT
B=2.30-SNAPSHOT
C=1.99-SNAPSHOT
D=2.50-SNAPSHOT


This is used in the compilation/packaging of A in A-1.38-SNAPSHOT.jar

 then if B depends on A then it includes A-1.38-SNAPSHOT.jar in it's path.

etc.

TIA

Adam





This message may contain confidential information. If you are not the intended 
recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take 
any action in reliance on its contents:
to do so is strictly prohibited and may be unlawful.

Thank you for your co-operation.

NHSmail is the secure email and directory service available for all NHS staff 
in England and Scotland
NHSmail is approved for exchanging patient data and other sensitive information 
with NHSmail and GSI recipients
NHSmail provides an email address for your career in the NHS and can be 
accessed anywhere
For more information and to find out how you can switch, visit 
www.connectingforhealth.nhs.uk/nhsmail




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Controller POM - central version registry

2009-10-27 Thread Anders Hammar
To handle versions of dependencies in Maven you use a dependencyManagement
section, which you normally put in a parent pom. By doing this, you only
have to change the version in one place when you upgrade to a new version.
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

/Anders

On Tue, Oct 27, 2009 at 11:38, Adam Flinton adam.flin...@nhs.net wrote:

 Dear All,

 We have a project which is an assembly of other projects. At present the
 versions of these projects is set in individual POM files which means
 (A) Someone can set one part to use one version of a sub-project while
 another uses a different one
 (B) If you want to upgrade a version number you have to run a script
 which goes through all pom.xml looking for a string/pattern  settign it
 to the new version etc.

 I was wondering if it is possible to create a controller pom which
 contains a list of all projects which are used by other projects and
 their version numbers.

 This would then be used by the compile process for those subprojects to
 generate the relevantly versioned jar files  then by the projects which
 depend on the subfiles to use that version.


 In Ant we used to have a central properties file which simply consisted
 of project=version  which was included by all.

 i.e. imagine a set of Projects called A, B, C and D
 In the properties file we would have

 A=1.38
 B=2.30
 C=1.99
 D=2.50

 This could then be used to swap between development  release by
 including/rmoving the -SNAPSHOT e.g.

 Development could look like:

 A=1.38-SNAPSHOT
 B=2.30-SNAPSHOT
 C=1.99-SNAPSHOT
 D=2.50-SNAPSHOT


 This is used in the compilation/packaging of A in A-1.38-SNAPSHOT.jar

  then if B depends on A then it includes A-1.38-SNAPSHOT.jar in it's path.

 etc.

 TIA

 Adam




 

 This message may contain confidential information. If you are not the
 intended recipient please inform the
 sender that you have received the message in error before deleting it.
 Please do not disclose, copy or distribute information in this e-mail or
 take any action in reliance on its contents:
 to do so is strictly prohibited and may be unlawful.

 Thank you for your co-operation.

 NHSmail is the secure email and directory service available for all NHS
 staff in England and Scotland
 NHSmail is approved for exchanging patient data and other sensitive
 information with NHSmail and GSI recipients
 NHSmail provides an email address for your career in the NHS and can be
 accessed anywhere
 For more information and to find out how you can switch, visit
 www.connectingforhealth.nhs.uk/nhsmail


 


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




Re: Maven unable to deliver adequate Copyright notices?

2009-10-27 Thread Benson Margulies
Of course it is. Don't pay any attention to that drama queen over there.

You can either strip down his jar to just saxon proper with a POM with
dependencies for the other stuff or you can add the licenses to the jar.

On Tue, Oct 27, 2009 at 4:11 AM, Dan Tran dant...@gmail.com wrote:

 Jason, so it is legal for us to inject all required license files into
 all jars under this bundle

 https://sourceforge.net/projects/saxon/files/Saxon-B/9.1.0.7/saxonb9-1-0-7j.zip/download

 order to upload them into central?

 I am really interested on how to get those files for dita-ot's 1.5
 dependencies

 -D

 On Tue, Oct 20, 2009 at 6:31 AM, Jason van Zyl ja...@sonatype.com wrote:
  On 2009-10-20, at 5:16 AM, Svante Schubert wrote:
 
  Hi,
 
  I am a Maven fan and stumbled over a this:
 
 
 http://sourceforge.net/mailarchive/forum.php?thread_name=B4EA6C26949B4127960EE2A00780F643%40Sealionforum_name=saxon-help
 
  Is this true? In any case, thought you might want to know...
 
 
  That post is FUD as far as I'm concerned. The problem is easily solved by
  including any necessary license files or notices by including them in the
  JAR. Then amazingly when the user gets the JAR they get the required
  additions. There is inventional called a JAR file. It's pretty useful for
  packaging things up and delivering them.
 
  The guy who posted this also appears to be from the company responsible
 for
  producing Saxon, so unless they plan on suing people who use JARs coming
  from Maven then there is no legal problem. They have to enforce it. Would
 be
  easy enough to take the JARs they produce and put the notice files in the
  JARs if their build is deficient in doing this.
 
  Maven is completely able to deliver copyright notices. You package them
 up
  in the releases you create which is what we do at Apache.
 
  Keep up the good work!
  Svante
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
  Thanks,
 
  Jason
 
  --
  Jason van Zyl
  Founder,  Apache Maven
  http://twitter.com/jvanzyl
  --
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




Creating a dar archive

2009-10-27 Thread nsowatsk
Hi all

I would like to use Maven to create a new kind of archive.

I want this new archive to be called a dar file.

I want it to work the same in all other respects as jars/wars/ears, so it is
really just the name that differs.

As a first stab at this I have created a DARMojo that extends
AbstractFromDependenciesMojo and made changes like:

protected static File getJarFile(File basedir, String finalName) {


return new File(basedir, finalName + .dar);
}

And that's pretty much it.

BUT, I get this problem:

Installing xxx/yyy-0.0.1-SNAPSHOT.dar to
xxx/0.0.1-SNAPSHOT/yyy-0.0.1-SNAPSHOT.jar

Where the dar file that I have created is being installed as a jar file :-/

So, any ideas about how I can work around this please?

Many thanks

Nathan

-- 
Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG XMP -
+34-638-083-675



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



How to structure my base poms?

2009-10-27 Thread Wim Deblauwe
Hi,

we have java and flex projects at work. We currently have 1 base pom that
contains the configurations we want to use for both projects. Problem with
this is: flex projects inherit configuration for javadoc and pmd for
example, which they do not want.

I want to do this a bit more clean and have a real base-pom and then a
java-base-pom and a flex-base-pom. But how does this work in a multimodule
that has both a flex part and a java part?

We have plugins to our own application where we use the following structure:

+ my-plugin
+ my-plugin-client (flex)
+ my-plugin-server (java)

The my-plugin just contains a pom.xml with modules/ section. I would use
the my-plugin pom.xml as a parent to both, but then I cannot also use the
java base-pom or the flex base-pom also as parent. What would be the best
approarch for this?

regards,

Wim


Re: Create zip of multi-module project

2009-10-27 Thread Michael Remijan
What's in the descriptor is simple and as far as I can tell has nothing to do 
with the error.

assembly
  idsource-release/id
  formats
formatzip/format
  /formats
  fileSets
!-- main project directory structure --
fileSet
  directory./directory
  outputDirectory//outputDirectory
  useDefaultExcludestrue/useDefaultExcludes
  excludes
!-- build output --

exclude%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/).*${project.build.directory}.*]/exclude
  /excludes
/fileSet
  /fileSets
/assembly





From: Nick Stolwijk nick.stolw...@gmail.com
To: Maven Users List users@maven.apache.org
Sent: Mon, October 26, 2009 4:25:10 PM
Subject: Re: Create zip of multi-module project

And what do you have in your descriptor?

With regards,

Nick Stolwijk
~Java Developer~

IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl


On Mon, Oct 26, 2009 at 10:59 PM, Michael Remijan mjremi...@yahoo.comwrote:

 src/assemblies/source-release.xml



RE: Creating a dar archive

2009-10-27 Thread Edelson, Justin
You need to create a new packaging type. See
http://stackoverflow.com/questions/1427722/how-do-i-create-a-new-packagi
ng-type-for-maven 

Justin

-Original Message-
From: nsowatsk [mailto:nsowa...@cisco.com] 
Sent: Tuesday, October 27, 2009 8:53 AM
To: Maven Users List
Subject: Creating a dar archive

Hi all

I would like to use Maven to create a new kind of archive.

I want this new archive to be called a dar file.

I want it to work the same in all other respects as jars/wars/ears, so
it is really just the name that differs.

As a first stab at this I have created a DARMojo that extends
AbstractFromDependenciesMojo and made changes like:

protected static File getJarFile(File basedir, String finalName) {


return new File(basedir, finalName + .dar);
}

And that's pretty much it.

BUT, I get this problem:

Installing xxx/yyy-0.0.1-SNAPSHOT.dar to
xxx/0.0.1-SNAPSHOT/yyy-0.0.1-SNAPSHOT.jar

Where the dar file that I have created is being installed as a jar file
:-/

So, any ideas about how I can work around this please?

Many thanks

Nathan

--
Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG XMP -
+34-638-083-675



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Global transitive depedency exclude

2009-10-27 Thread chicagopooldude

I am working on getting a war file from our project using maven, we initially
had around 120+ jars in lib which are have become cluttered that's one of
the reason to move to Maven. Now due to transitive dependencies we have
around 180+ jars in web-inf/lib. I have tried excluding each transitive jars
using dependency:tree method with success. I wanted to know if there is any
other way to globally disable transitive dependency in the whole project
because there are times when two versions of jars are there in lib which
causes problems while deployed war runs on server. Also I have seen
useTransitiveDependenciestrue/useTransitiveDependencies in assembly
plugin can this be used to build war minus all the jars which we dont need?.
Any help is appreciated and thanks for seeing this post.
-- 
View this message in context: 
http://www.nabble.com/Global-transitive-depedency-exclude-tp26079185p26079185.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Creating a dar archive

2009-10-27 Thread nsowatsk
Thank you very much :-)

I got:

[WARNING] ***
[WARNING] Deprecation Alert:
[WARNING] No mojo descriptors were found in this project which has a
packaging type of maven-plugin.
[WARNING] In future versions of the plugin tools, this will fail the build.
[WARNING] If this project is an archetype, change the packaging type from
maven-plugin to maven-archetype.
[WARNING] 
[WARNING] 
[WARNING] 

The idea works as advertised, but I have a small twist (I guess) as I also
wanted to include all of the dependencies in the dar file, so I think that I
need to add some other code also.

I'll do that and report back.

Thanks

Nathan



On 27/10/2009 16:21, Edelson, Justin justin.edel...@mtvstaff.com wrote:

 You need to create a new packaging type. See
 http://stackoverflow.com/questions/1427722/how-do-i-create-a-new-packagi
 ng-type-for-maven
 
 Justin
 
 -Original Message-
 From: nsowatsk [mailto:nsowa...@cisco.com]
 Sent: Tuesday, October 27, 2009 8:53 AM
 To: Maven Users List
 Subject: Creating a dar archive
 
 Hi all
 
 I would like to use Maven to create a new kind of archive.
 
 I want this new archive to be called a dar file.
 
 I want it to work the same in all other respects as jars/wars/ears, so
 it is really just the name that differs.
 
 As a first stab at this I have created a DARMojo that extends
 AbstractFromDependenciesMojo and made changes like:
 
 protected static File getJarFile(File basedir, String finalName) {
 
 
 return new File(basedir, finalName + .dar);
 }
 
 And that's pretty much it.
 
 BUT, I get this problem:
 
 Installing xxx/yyy-0.0.1-SNAPSHOT.dar to
 xxx/0.0.1-SNAPSHOT/yyy-0.0.1-SNAPSHOT.jar
 
 Where the dar file that I have created is being installed as a jar file
 :-/
 
 So, any ideas about how I can work around this please?
 
 Many thanks
 
 Nathan
 
 --
 Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG XMP -
 +34-638-083-675
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Creating a dar archive

2009-10-27 Thread Edelson, Justin
It looks like your DARMojo class isn't in this project or that it
doesn't have the correct annotations.

-Original Message-
From: nsowatsk [mailto:nsowa...@cisco.com] 
Sent: Tuesday, October 27, 2009 9:59 AM
To: Maven Users List
Subject: Re: Creating a dar archive

Thank you very much :-)

I got:

[WARNING] ***
[WARNING] Deprecation Alert:
[WARNING] No mojo descriptors were found in this project which has a
packaging type of maven-plugin.
[WARNING] In future versions of the plugin tools, this will fail the
build.
[WARNING] If this project is an archetype, change the packaging type
from maven-plugin to maven-archetype.
[WARNING] 
[WARNING]
[WARNING] 

The idea works as advertised, but I have a small twist (I guess) as I
also wanted to include all of the dependencies in the dar file, so I
think that I need to add some other code also.

I'll do that and report back.

Thanks

Nathan



On 27/10/2009 16:21, Edelson, Justin justin.edel...@mtvstaff.com
wrote:

 You need to create a new packaging type. See 
 http://stackoverflow.com/questions/1427722/how-do-i-create-a-new-packa
 gi
 ng-type-for-maven
 
 Justin
 
 -Original Message-
 From: nsowatsk [mailto:nsowa...@cisco.com]
 Sent: Tuesday, October 27, 2009 8:53 AM
 To: Maven Users List
 Subject: Creating a dar archive
 
 Hi all
 
 I would like to use Maven to create a new kind of archive.
 
 I want this new archive to be called a dar file.
 
 I want it to work the same in all other respects as jars/wars/ears, so

 it is really just the name that differs.
 
 As a first stab at this I have created a DARMojo that extends 
 AbstractFromDependenciesMojo and made changes like:
 
 protected static File getJarFile(File basedir, String finalName) {
 
 
 return new File(basedir, finalName + .dar);
 }
 
 And that's pretty much it.
 
 BUT, I get this problem:
 
 Installing xxx/yyy-0.0.1-SNAPSHOT.dar to 
 xxx/0.0.1-SNAPSHOT/yyy-0.0.1-SNAPSHOT.jar
 
 Where the dar file that I have created is being installed as a jar 
 file :-/
 
 So, any ideas about how I can work around this please?
 
 Many thanks
 
 Nathan
 
 --
 Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG XMP -
 +34-638-083-675
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Global transitive depedency exclude

2009-10-27 Thread Edelson, Justin
The war plugin doesn't support useTransitiveDependencies. It does,
however, support packagingIncludes and packagingExcludes, which can be
used to limit which files get placed into the WAR file. See
http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.ht
ml

Justin 

-Original Message-
From: chicagopooldude [mailto:seshu.pit...@cmegroup.com] 
Sent: Tuesday, October 27, 2009 10:56 AM
To: users@maven.apache.org
Subject: Global transitive depedency exclude


I am working on getting a war file from our project using maven, we
initially had around 120+ jars in lib which are have become cluttered
that's one of the reason to move to Maven. Now due to transitive
dependencies we have around 180+ jars in web-inf/lib. I have tried
excluding each transitive jars using dependency:tree method with
success. I wanted to know if there is any other way to globally disable
transitive dependency in the whole project because there are times when
two versions of jars are there in lib which causes problems while
deployed war runs on server. Also I have seen
useTransitiveDependenciestrue/useTransitiveDependencies in assembly
plugin can this be used to build war minus all the jars which we dont
need?.
Any help is appreciated and thanks for seeing this post.
--
View this message in context:
http://www.nabble.com/Global-transitive-depedency-exclude-tp26079185p260
79185.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Creating a dar archive

2009-10-27 Thread nsowatsk
That's right. It wasn't. Just for the purposes of the new type per se I
didn't need another mojo if all I wanted was the default behaviour.

Of course, since I actually want to copy all of the dependencies to put them
into the archive, I think that I do need my own Mojo, so I am writing that
now :-)

Thanks

Nathan


On 27/10/2009 17:01, Edelson, Justin justin.edel...@mtvstaff.com wrote:

 It looks like your DARMojo class isn't in this project or that it
 doesn't have the correct annotations.
 
 -Original Message-
 From: nsowatsk [mailto:nsowa...@cisco.com]
 Sent: Tuesday, October 27, 2009 9:59 AM
 To: Maven Users List
 Subject: Re: Creating a dar archive
 
 Thank you very much :-)
 
 I got:
 
 [WARNING] ***
 [WARNING] Deprecation Alert:
 [WARNING] No mojo descriptors were found in this project which has a
 packaging type of maven-plugin.
 [WARNING] In future versions of the plugin tools, this will fail the
 build.
 [WARNING] If this project is an archetype, change the packaging type
 from maven-plugin to maven-archetype.
 [WARNING] 
 [WARNING]
 [WARNING] 
 
 The idea works as advertised, but I have a small twist (I guess) as I
 also wanted to include all of the dependencies in the dar file, so I
 think that I need to add some other code also.
 
 I'll do that and report back.
 
 Thanks
 
 Nathan
 
 
 
 On 27/10/2009 16:21, Edelson, Justin justin.edel...@mtvstaff.com
 wrote:
 
 You need to create a new packaging type. See
 http://stackoverflow.com/questions/1427722/how-do-i-create-a-new-packa
 gi
 ng-type-for-maven
 
 Justin
 
 -Original Message-
 From: nsowatsk [mailto:nsowa...@cisco.com]
 Sent: Tuesday, October 27, 2009 8:53 AM
 To: Maven Users List
 Subject: Creating a dar archive
 
 Hi all
 
 I would like to use Maven to create a new kind of archive.
 
 I want this new archive to be called a dar file.
 
 I want it to work the same in all other respects as jars/wars/ears, so
 
 it is really just the name that differs.
 
 As a first stab at this I have created a DARMojo that extends
 AbstractFromDependenciesMojo and made changes like:
 
 protected static File getJarFile(File basedir, String finalName) {
 
 
 return new File(basedir, finalName + .dar);
 }
 
 And that's pretty much it.
 
 BUT, I get this problem:
 
 Installing xxx/yyy-0.0.1-SNAPSHOT.dar to
 xxx/0.0.1-SNAPSHOT/yyy-0.0.1-SNAPSHOT.jar
 
 Where the dar file that I have created is being installed as a jar
 file :-/
 
 So, any ideas about how I can work around this please?
 
 Many thanks
 
 Nathan
 
 --
 Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG XMP -
 +34-638-083-675
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Creating a dar archive

2009-10-27 Thread nsowatsk
I should further explain that I want the behaviour of the ear Mojo, with the
ability to filter etc. If there is a non-coding way to do that, please let
me know.

So, what I want is to create a dar file that contains the files from a
filtered list of the transitive dependencies in the various poms.

Thanks

Nathan


On 27/10/2009 17:01, Edelson, Justin justin.edel...@mtvstaff.com wrote:

 It looks like your DARMojo class isn't in this project or that it
 doesn't have the correct annotations.
 
 -Original Message-
 From: nsowatsk [mailto:nsowa...@cisco.com]
 Sent: Tuesday, October 27, 2009 9:59 AM
 To: Maven Users List
 Subject: Re: Creating a dar archive
 
 Thank you very much :-)
 
 I got:
 
 [WARNING] ***
 [WARNING] Deprecation Alert:
 [WARNING] No mojo descriptors were found in this project which has a
 packaging type of maven-plugin.
 [WARNING] In future versions of the plugin tools, this will fail the
 build.
 [WARNING] If this project is an archetype, change the packaging type
 from maven-plugin to maven-archetype.
 [WARNING] 
 [WARNING]
 [WARNING] 
 
 The idea works as advertised, but I have a small twist (I guess) as I
 also wanted to include all of the dependencies in the dar file, so I
 think that I need to add some other code also.
 
 I'll do that and report back.
 
 Thanks
 
 Nathan
 
 
 
 On 27/10/2009 16:21, Edelson, Justin justin.edel...@mtvstaff.com
 wrote:
 
 You need to create a new packaging type. See
 http://stackoverflow.com/questions/1427722/how-do-i-create-a-new-packa
 gi
 ng-type-for-maven
 
 Justin
 
 -Original Message-
 From: nsowatsk [mailto:nsowa...@cisco.com]
 Sent: Tuesday, October 27, 2009 8:53 AM
 To: Maven Users List
 Subject: Creating a dar archive
 
 Hi all
 
 I would like to use Maven to create a new kind of archive.
 
 I want this new archive to be called a dar file.
 
 I want it to work the same in all other respects as jars/wars/ears, so
 
 it is really just the name that differs.
 
 As a first stab at this I have created a DARMojo that extends
 AbstractFromDependenciesMojo and made changes like:
 
 protected static File getJarFile(File basedir, String finalName) {
 
 
 return new File(basedir, finalName + .dar);
 }
 
 And that's pretty much it.
 
 BUT, I get this problem:
 
 Installing xxx/yyy-0.0.1-SNAPSHOT.dar to
 xxx/0.0.1-SNAPSHOT/yyy-0.0.1-SNAPSHOT.jar
 
 Where the dar file that I have created is being installed as a jar
 file :-/
 
 So, any ideas about how I can work around this please?
 
 Many thanks
 
 Nathan
 
 --
 Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG XMP -
 +34-638-083-675
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Use a mojo within a mojo

2009-10-27 Thread Tsuyoshi Ito

Hello,

I try to use a mojo B within a mojo A.  I develop a custom plugin  
which should use AddSourceMojo within my custom plugin for adding new   
sources. Is this possible?


Or do I have to define plugin A and plugin B in the plugins  
section of the pom.


Found some hints in the maven definitive guide but I was not able to  
transfer it to my cases.


Cheers
Tsuy

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Error when trying to run scm:perform-release

2009-10-27 Thread laredotornado

Hi,

I'm using Maven 1.1.  I'm trying to perform a release into our test
environment using this command (from my root project folder):

maven
-Dmaven.scm.tag=myco-oit-governor-citizen-assistanceUtility-1_6-SNAPSHOT-20091027-01
scm:perform-release

Unfortunately the command fails and here are the lines explaining why.  Any
ideas how I can troubleshoot this further? - Dave

war:war:
[echo] Building WAR myco-oit-governor-citizen-assistanceUtility-webapp
[jar] Building jar:
/Users/dalvarado/source/assistanceUtility/target/checkout/webapp/target/myco-oit-governor-citizen-assistanceUtility-webapp.war

war:deploy:
[echo] Deploying...
Will deploy to 1 repository(ies): internal
Deploying to repository: internal
Uploading to
myco.oit.governor.citizen.assistanceUtility/poms/myco-oit-governor-citizen-assistanceUtility-webapp-1.6-SNAPSHOT-20091027-01.pom:
 
Failed to deploy to: internal Reason:
org.apache.maven.wagon.TransferFailedException: Error executing command for
transfer
org.apache.maven.wagon.TransferFailedException: Error executing command for
transfer
at
org.apache.maven.wagon.providers.ssh.external.ScpExternalWagon.put(ScpExternalWagon.java:290)
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deployFiles(DefaultArtifactDeployer.java:432)
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.doDeploy(DefaultArtifactDeployer.java:364)
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.handleDeploy(DefaultArtifactDeployer.java:152)
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:101)
at
org.apache.maven.artifact.deployer.DeployBean.deploy(DeployBean.java:165)
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.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java:180)
at
org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:102)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:79)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:83)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:116)
at org.apache.maven.werkz.Goal.fire(Goal.java:691)
at org.apache.maven.werkz.Goal.attain(Goal.java:623)
at org.apache.maven.werkz.WerkzProject.attainGoal(WerkzProject.java:209)
at
org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTag.java:115)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:83)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:116)
at org.apache.maven.werkz.Goal.fire(Goal.java:691)
at org.apache.maven.werkz.Goal.attain(Goal.java:623)
at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:712)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:265)
at 
org.apache.maven.jelly.tags.maven.ReactorTag.doTag(ReactorTag.java:370)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:83)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:116)
at org.apache.maven.werkz.Goal.fire(Goal.java:691)
at org.apache.maven.werkz.Goal.attain(Goal.java:623)
at org.apache.maven.werkz.WerkzProject.attainGoal(WerkzProject.java:209)
at
org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTag.java:115)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:83)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:116)
at org.apache.maven.werkz.Goal.fire(Goal.java:691)
at org.apache.maven.werkz.Goal.attain(Goal.java:623)
at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:712

Create zip of multi-module project

2009-10-27 Thread Michael Remijan

I have a multi-module project and at the project POM level (not the
module level) I want to create a a zip of the entire multi-module
project excluding the common stuff like /CVS dirs and /target dirs. I've
tried configuring the assembly plugin but haven't been able to get it
to work.  

The configuration of the assembly-plugin in the project pom is what's giving me 
problems.  I tried this.

  build
plugins
 !-- 
  | This plugin configuration is responsible for
  | creating binary distribution ZIP file which
  | users can download, upzip, and easily execute.
  --
plugin
artifactIdmaven-assembly-plugin/artifactId
executions
execution
idassemble/id
phasepackage/phase
goals
goalsingle/goal
/goals
configuration
descriptors

descriptorsrc/assemblies/source-release.xml/descriptor
/descriptors
/configuration
/execution
/executions
/plugin 
/plugins
  /build

but it errors because it's looking for a JAR file from the project POM.

[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO]
Failed to create assembly: Error adding file to archive:
C:\workspace\timeserver\target\timeserver-parent-0.0.1.jar isn't a file.

What's in the descriptor source-release.xmlis simple and as far as I can tell 
has nothing to do with the error.

assembly
  idsource-release/id
  formats
formatzip/format
  /formats
  fileSets
!-- main project directory structure --
fileSet
  directory./directory
  outputDirectory//outputDirectory
  useDefaultExcludestrue/useDefaultExcludes
  excludes
!-- build output --

exclude%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/).*${project.build.directory}.*]/exclude
  /excludes
/fileSet
  /fileSets
/assembly


Any suggestions??

Mike

Best practices for dependency on SWT

2009-10-27 Thread Michael Heuer
Hello,

This is a follow-up to some old threads on maven-dev/maven-users:

What is the official Eclipse repo layout/How to use central repo into an 
Eclipse project?  [1]
Problem of resolving eclipse swt linux library  [2]


It appears that things have not improved since then.  We're a maven-only
project, but provide a library with a dependency on SWT.

http://code.google.com/p/piccolo2d/issues/detail?id=126


I have a feeling that using the web interface to Apache Discovery's SVN
repository as a remote maven repository is not the way to go.  ;)

   michael


[1]
http://www.nabble.com/Problem-of-resolving-eclipse-swt-linux-library-td19103219.html

[2]
http://www.nabble.com/What-is-the-official-Eclipse-repo-layout-%28was%3A-How-to-use-central-repo-into-an-Eclipse-project-%29-td17396298.html



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Create zip of multi-module project

2009-10-27 Thread Alexander
Your exclude/ looks s impressive!

2009/10/28 Michael Remijan mjremi...@yahoo.com


 I have a multi-module project and at the project POM level (not the
 module level) I want to create a a zip of the entire multi-module
 project excluding the common stuff like /CVS dirs and /target dirs. I've
 tried configuring the assembly plugin but haven't been able to get it
 to work.

 The configuration of the assembly-plugin in the project pom is what's
 giving me problems.  I tried this.

  build
plugins
 !--
  | This plugin configuration is responsible for
  | creating binary distribution ZIP file which
  | users can download, upzip, and easily execute.
  --
plugin
artifactIdmaven-assembly-plugin/artifactId
executions
execution
idassemble/id
phasepackage/phase
goals
goalsingle/goal
/goals
configuration
descriptors

  descriptorsrc/assemblies/source-release.xml/descriptor
/descriptors
/configuration
/execution
/executions
/plugin
/plugins
  /build

 but it errors because it's looking for a JAR file from the project POM.

 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO]
 Failed to create assembly: Error adding file to archive:
 C:\workspace\timeserver\target\timeserver-parent-0.0.1.jar isn't a file.

 What's in the descriptor source-release.xmlis simple and as far as I can
 tell has nothing to do with the error.

 assembly
  idsource-release/id
  formats
formatzip/format
  /formats
  fileSets
!-- main project directory structure --
fileSet
  directory./directory
  outputDirectory//outputDirectory
  useDefaultExcludestrue/useDefaultExcludes
  excludes
!-- build output --

  
 exclude%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/).*${project.build.directory}.*]/exclude
  /excludes
/fileSet
  /fileSets
 /assembly


 Any suggestions??

 Mike




-- 
Regards,
Alexander


Re: Maven unable to deliver adequate Copyright notices?

2009-10-27 Thread Dan Tran
First sorry for the noise,


I have create a maven-upload bundle at
http://people.apache.org/~dantran/maven-upload

The license files are under main saxon.jar/META-INF/notices

any one interested, please review.

The pom in bundle tell you how i create the bundle

Thanks

-Dan

On Tue, Oct 27, 2009 at 5:10 AM, Benson Margulies bimargul...@gmail.com wrote:
 Of course it is. Don't pay any attention to that drama queen over there.

 You can either strip down his jar to just saxon proper with a POM with
 dependencies for the other stuff or you can add the licenses to the jar.

 On Tue, Oct 27, 2009 at 4:11 AM, Dan Tran dant...@gmail.com wrote:

 Jason, so it is legal for us to inject all required license files into
 all jars under this bundle

 https://sourceforge.net/projects/saxon/files/Saxon-B/9.1.0.7/saxonb9-1-0-7j.zip/download

 order to upload them into central?

 I am really interested on how to get those files for dita-ot's 1.5
 dependencies

 -D

 On Tue, Oct 20, 2009 at 6:31 AM, Jason van Zyl ja...@sonatype.com wrote:
  On 2009-10-20, at 5:16 AM, Svante Schubert wrote:
 
  Hi,
 
  I am a Maven fan and stumbled over a this:
 
 
 http://sourceforge.net/mailarchive/forum.php?thread_name=B4EA6C26949B4127960EE2A00780F643%40Sealionforum_name=saxon-help
 
  Is this true? In any case, thought you might want to know...
 
 
  That post is FUD as far as I'm concerned. The problem is easily solved by
  including any necessary license files or notices by including them in the
  JAR. Then amazingly when the user gets the JAR they get the required
  additions. There is inventional called a JAR file. It's pretty useful for
  packaging things up and delivering them.
 
  The guy who posted this also appears to be from the company responsible
 for
  producing Saxon, so unless they plan on suing people who use JARs coming
  from Maven then there is no legal problem. They have to enforce it. Would
 be
  easy enough to take the JARs they produce and put the notice files in the
  JARs if their build is deficient in doing this.
 
  Maven is completely able to deliver copyright notices. You package them
 up
  in the releases you create which is what we do at Apache.
 
  Keep up the good work!
  Svante
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
  Thanks,
 
  Jason
 
  --
  Jason van Zyl
  Founder,  Apache Maven
  http://twitter.com/jvanzyl
  --
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



NAR plugin

2009-10-27 Thread Damon Jacobsen
I am building the newly absorbed NAR project from source and using it. I
cannot seem to get it to use the borland compiler correctly. The
cpptasks project seems to have support for bcc. I have even updated the
aol.properties file to reflect the necessary setting to no avail. Has
anyone attempting getting the borland c compiler to run correctly? I
have gotten to where the compiler runs, but it returns messages about
declaration syntax errors. I do not get these errors with a standard
compile however.

 

Damon Jacobsen

 


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
_

RE: NAR plugin

2009-10-27 Thread Martin Gainty

Damon-

some company in texas purchased the borland compiler and i dont know what 
happened afterwards
i had the same problem with Borland Compiler and punted to cygwin...download 
the full devel package.. gcc is the compiler..ld is the linker..ar is the 
library manager
http://www.cygwin.com

Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Subject: NAR plugin
 Date: Tue, 27 Oct 2009 19:31:16 -0500
 From: dajacob...@lifetouch.com
 To: users@maven.apache.org
 
 I am building the newly absorbed NAR project from source and using it. I
 cannot seem to get it to use the borland compiler correctly. The
 cpptasks project seems to have support for bcc. I have even updated the
 aol.properties file to reflect the necessary setting to no avail. Has
 anyone attempting getting the borland c compiler to run correctly? I
 have gotten to where the compiler runs, but it returns messages about
 declaration syntax errors. I do not get these errors with a standard
 compile however.
 
  
 
 Damon Jacobsen
 
  
 
 
 __
 This email has been scanned by the MessageLabs Email Security System.
 For more information please visit http://www.messagelabs.com/email 
 _
  
_
Windows 7: I wanted more reliable, now it's more reliable. Wow!
http://microsoft.com/windows/windows-7/default-ga.aspx?h=myidea?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_myidea:102009

Re: Use a mojo within a mojo

2009-10-27 Thread Wayne Fay
 I try to use a mojo B within a mojo A.  I develop a custom plugin which
 should use AddSourceMojo within my custom plugin for adding new  sources. Is
 this possible?

Extract the method to a utility class/jar/artifact which you can
depend on independently of your mojos, and then call it from each
mojo. And then, yes, you'll need to declare each plugin in your pom.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



[MECLIPSE-552] Discover projects in the workspace

2009-10-27 Thread Tomas Pollak
Hi Maven developers,

I have attached two patches to the bug MECLIPSE-552. This is a request for the 
maven eclipse plugin not to discover projects in the workspace and create 
project references automatically.

The first patch contains only unit tests showing the current behavior, since 
that part of the code didn't have any unit tests.
In the second patch I added a configuration parameter to the mojo, that is one 
way to implement this, also with its test.

The first patch can be applied regardless if you accept the second. Please tell 
me if there's anything more to do to get the patches applied.

Thanks,
Tomas



  

Re: How to send email with enclosed files ?

2009-10-27 Thread Wayne Fay
 Please tell me which plugin is able to do it ?

None that I'm aware of.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Adding jars in ear to the war manifest file

2009-10-27 Thread neptune_pluto
Hi All,

MainFolder
   |-pom.xml  
  (All dependecies are scope-provided)

   Earfolder 
  |--pom.xml
(Scope is not provided and so  
gets added in the ear folder)
 War1
   |-pom.xml  ( manifest 
  - addClasspath is true)
  
 War2
   |-pom.xml  ( manifest 
  - addClasspath is true)
  War3
|-pom.xml  ( manifest 
   - addClasspath is true)



My requirement is that the jars present in the ear folder should be available 
in the classpath and so the entries have to be in all the wars manifest file. I 
dont want to have jars duplicated in all the wars-WEB/lib.

Currently its not making any entries in the mainfest file - its empty


Regards


--
Click for exclusive coverage on the New Bajaj Pulsar 220 the fastest Indian bike
http://www.zigwheels.com/Features/Bajaj-Pulsar-220-DTSi-Special-Coverage/Pulsar_20090623-1-1

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org