Re: creating a source directory on the fly

2023-12-09 Thread Dave Dyer


That was my first thought too, but unfortunately my build includes
a custom build plugin (which I don't control) which does its own
ad-hoc parsing of the project structure.  So it only works if the
project is actually structured in a certain way.

At 12:32 PM 12/9/2023, Michael Osipov wrote:
>On 2023/12/06 03:34:58 Dave Dyer wrote:
>> 
>> I'm trying to tune up my maven build, which requires that I construct
>> a source directory on the fly by copying from the canonical location.
>> 
>> The best advice I've found is to use mavin-resources-plugin, but
>> that's a bit inelegant because it copies everything, not just the
>> sources.
>
>That the wrong approach.
>
>> Is there a better approach?
>
>The right approach: 
>https://www.mojohaus.org/build-helper-maven-plugin/add-source-mojo.html



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



Re: creating a source directory on the fly

2023-12-09 Thread Michael Osipov
On 2023/12/06 03:34:58 Dave Dyer wrote:
> 
> I'm trying to tune up my maven build, which requires that I construct
> a source directory on the fly by copying from the canonical location.
> 
> The best advice I've found is to use mavin-resources-plugin, but
> that's a bit inelegant because it copies everything, not just the
> sources.

That the wrong approach.

> Is there a better approach?

The right approach: 
https://www.mojohaus.org/build-helper-maven-plugin/add-source-mojo.html

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



Re: creating a source directory on the fly

2023-12-06 Thread Joseph Kesselman
It has occurred to me that Maven needs something like the XSLT FAQ page -- a 
(semi)official collection of common "how to" questions with validated "best 
practice" worked examples, updated as best practice changes. It's easy to find 
examples, much harder for a novice to understand the subtleties that make them 
good or bad examples.


--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

Caveat: Opinionated old geezer with overcompensated writer's block. May be 
redundant, verbose, prolix, sesquipedalian, didactic, officious, or redundant.

From: Dave Dyer 
Sent: Wednesday, December 6, 2023 11:43:37 AM
To: Maven Users List ; users@maven.apache.org 

Subject: RE: creating a source directory on the fly

At 06:55 AM 12/6/2023, mark.yagnatin...@barclays.com.INVALID wrote:
>Pretty sure that plugin is flexible enough to just copy what you tell it to?
>https://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html

Thanks.  I just hadn't encountered the right examples!



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



RE: creating a source directory on the fly

2023-12-06 Thread Dave Dyer
At 06:55 AM 12/6/2023, mark.yagnatin...@barclays.com.INVALID wrote:
>Pretty sure that plugin is flexible enough to just copy what you tell it to?
>https://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html

Thanks.  I just hadn't encountered the right examples!



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



RE: creating a source directory on the fly

2023-12-06 Thread mark.yagnatinsky
Pretty sure that plugin is flexible enough to just copy what you tell it to?
https://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html

-Original Message-
From: Dave Dyer  
Sent: Tuesday, December 5, 2023 10:35 PM
To: Maven Users List ; Maven Users List 
; Maven Users List 
Subject: creating a source directory on the fly


CAUTION: This email originated from outside our organisation - 
dd...@real-me.net Do not click on links, open attachments, or respond unless 
you recognize the sender and can validate the content is safe.

I'm trying to tune up my maven build, which requires that I construct a source 
directory on the fly by copying from the canonical location.

The best advice I've found is to use mavin-resources-plugin, but that's a bit 
inelegant because it copies everything, not just the sources.

Is there a better approach?


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

This message is for information purposes only. It is not a recommendation, 
advice, offer or solicitation to buy or sell a product or service, nor an 
official confirmation of any transaction. It is directed at persons who are 
professionals and is intended for the recipient(s) only. It is not directed at 
retail customers. This message is subject to the terms at: 
https://www.cib.barclays/disclosures/web-and-email-disclaimer.html. 

For important disclosures, please see: 
https://www.cib.barclays/disclosures/sales-and-trading-disclaimer.html 
regarding marketing commentary from Barclays Sales and/or Trading desks, who 
are active market participants; 
https://www.cib.barclays/disclosures/barclays-global-markets-disclosures.html 
regarding our standard terms for Barclays Corporate and Investment Bank where 
we trade with you in principal-to-principal wholesale markets transactions; and 
in respect to Barclays Research, including disclosures relating to specific 
issuers, see: http://publicresearch.barclays.com.
__
 
If you are incorporated or operating in Australia, read these important 
disclosures: 
https://www.cib.barclays/disclosures/important-disclosures-asia-pacific.html.
__
For more details about how we use personal information, see our privacy notice: 
https://www.cib.barclays/disclosures/personal-information-use.html. 
__

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



creating a source directory on the fly

2023-12-05 Thread Dave Dyer


I'm trying to tune up my maven build, which requires that I construct
a source directory on the fly by copying from the canonical location.

The best advice I've found is to use mavin-resources-plugin, but
that's a bit inelegant because it copies everything, not just the
sources.

Is there a better approach?


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



Re: Setting a source directory convention in a language plugin?

2015-11-12 Thread org.apache.maven.user
On 2015-11-12T21:43:12 +0100
Anders Hammar  wrote:

> For example:
> 
> @Parameter( defaultValue = "${project.basedir}/src/main/dsl" )
> private File dslDirectory;
> 

Ah, thank you. I wasn't aware it was going to be that simple...

M

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



Re: Setting a source directory convention in a language plugin?

2015-11-12 Thread Anders Hammar
For example:

@Parameter( defaultValue = "${project.basedir}/src/main/dsl" )
private File dslDirectory;

/Anders


On Thu, Nov 12, 2015 at 9:24 PM,  wrote:

> Hello.
>
> I'm developing a small compiler that generates Java source code from
> files written in a domain specific language. I'm in the process of
> writing a Maven plugin so that this can happen as part of an ordinary
> Maven build, but I'm unable to determine how I'm supposed to establish
> the convention that source files for this language go in
> ${project.basedir}/src/main/jpra.
>
> What's the recommended/standard way to set this convention in the plugin
> and allow it to be overridden?
>
> M
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Setting a source directory convention in a language plugin?

2015-11-12 Thread org.apache.maven.user
Hello.

I'm developing a small compiler that generates Java source code from
files written in a domain specific language. I'm in the process of
writing a Maven plugin so that this can happen as part of an ordinary
Maven build, but I'm unable to determine how I'm supposed to establish
the convention that source files for this language go in
${project.basedir}/src/main/jpra.

What's the recommended/standard way to set this convention in the plugin
and allow it to be overridden?

M

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



Re: Problem excluding source directory using maven-pmd-plugin with Jenkins CI

2015-09-30 Thread Rafael Fontoura
Looking at the generated log when running Maven on Jenkins, the
maven-pmd-plugin is not using all configurations I'm doing on my pom.xml
when I want to use a excludeRoot directory to not consider some classes to
look for copy/pasted code (with CPD).

I couldn't reproduce the problem using Maven CLI on my local machine. It
occurs only when using it on Jenkins. I'll contact the ML of Jenkins ci
users.

Thank you, Baptiste.

2015-09-30 2:20 GMT-03:00 Baptiste Mathus :

> Well, it depends. If running on the command line outside Jenkins triggers
> the issue, then it's more a Maven issue, hence here.
>
> If the CLI works fine, but only fails somehow in Jenkins, then it's more
> for Jenkinsci-users ML.
>
> Cheers
>
> 2015-09-29 14:44 GMT+02:00 Rafael Fontoura :
>
> > Hi. I have a problem using maven-pmd-plugin with Jenkins CI. Is this the
> > correct mailing list to ask for help?
> >
> > Thank you.
> >
>
>
>
> --
> Baptiste  MATHUS - http://batmat.net
> Sauvez un arbre,
> Mangez un castor !
>


Problem excluding source directory using maven-pmd-plugin with Jenkins CI

2015-09-29 Thread Rafael Fontoura
Hi. I have a problem using maven-pmd-plugin with Jenkins CI. Is this the
correct mailing list to ask for help?

Thank you.


Re: Problem excluding source directory using maven-pmd-plugin with Jenkins CI

2015-09-29 Thread Baptiste Mathus
Well, it depends. If running on the command line outside Jenkins triggers
the issue, then it's more a Maven issue, hence here.

If the CLI works fine, but only fails somehow in Jenkins, then it's more
for Jenkinsci-users ML.

Cheers

2015-09-29 14:44 GMT+02:00 Rafael Fontoura :

> Hi. I have a problem using maven-pmd-plugin with Jenkins CI. Is this the
> correct mailing list to ask for help?
>
> Thank you.
>



-- 
Baptiste  MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !


Re: Source directory for the maven-apt-plugin plugin

2013-04-29 Thread Stephane-3
Thanks Baptiste, I got it. Also, my initial post was a bit inaccurate as it
lacked the outputDirectorytarget/generated-sources/outputDirectory
element.

The following plugin 

  plugin
groupIdcom.mysema.maven/groupId
artifactIdmaven-apt-plugin/artifactId
version1.0.4/version
executions
  execution
phasegenerate-sources/phase
goals
  goalprocess/goal
/goals
configuration
  outputDirectorytarget/generated-sources/outputDirectory
 
processorcom.mysema.query.apt.jpa.JPAAnnotationProcessor/processor
/configuration
  /execution
/executions
  /plugin

in the child module pom.xml file does the job now.

Cheers,




--
View this message in context: 
http://maven.40175.n5.nabble.com/Source-directory-for-the-maven-apt-plugin-plugin-tp5754338p5754590.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: Source directory for the maven-apt-plugin plugin

2013-04-26 Thread Baptiste MATHUS
Le 25 avr. 2013 16:26, Stephane-3 mittiprove...@yahoo.se a écrit :
[Snip]
 I'm then trying to specify a source directory, with the following:


sourceDirectory${basedir}/core/src/main/java/com/thalasoft/learnintouch/core/jpa/domain/sourceDirectory

Why do you define sourceDirectory? Its default value is already
${basedir}/src/main/java

-- Baptiste


Re: Source directory for the maven-apt-plugin plugin

2013-04-26 Thread Stephane-3
Hello,

Yes, but then my source directory is not found, because it sits in the core/ 
child module as I explained in my original post.

Kind Regards,

Stephane




 De : Baptiste MATHUS [via Maven] ml-node+s40175n575438...@n5.nabble.com
À : Stephane-3 mittiprove...@yahoo.se 
Envoyé le : Vendredi 26 avril 2013 8h48
Objet : Re: Source directory for the maven-apt-plugin plugin
 


Le 25 avr. 2013 16:26, Stephane-3 [hidden email] a écrit : 
[Snip] 
 I'm then trying to specify a source directory, with the following: 
 
 
sourceDirectory${basedir}/core/src/main/java/com/thalasoft/learnintouch/core/jpa/domain/sourceDirectory
 

Why do you define sourceDirectory? Its default value is already 
${basedir}/src/main/java 

-- Baptiste 



 
If you reply to this email, your message will be added to the discussion 
below:http://maven.40175.n5.nabble.com/Source-directory-for-the-maven-apt-plugin-plugin-tp5754338p5754382.html
 
To unsubscribe from Source directory for the maven-apt-plugin plugin, click 
here.
NAML



--
View this message in context: 
http://maven.40175.n5.nabble.com/Source-directory-for-the-maven-apt-plugin-plugin-tp5754338p5754383.html
Sent from the Maven - Users mailing list archive at Nabble.com.

Re: Source directory for the maven-apt-plugin plugin

2013-04-26 Thread Baptiste MATHUS
OK, I think I misread your first message.
So, it seems you're trying to run the plugin from the parent to access
sources from a child module.

If so, then you should know it's a bad idea. Modules should generally be
independent in their execution.
If that plugin is needed in your core module, then configure it just in
that plugin.

Here, the first error is related to the fact the plugin is trying to
execute for the parent pom, but there's logically no sources. So the
execution stops there.
Then I think the second one is the core module execution inheriting the
parent configuration, but for this module ${basedir} is already containing
core, so there's core twice.

Cheers


2013/4/26 Stephane-3 mittiprove...@yahoo.se

 Hello,

 Yes, but then my source directory is not found, because it sits in the
 core/ child module as I explained in my original post.

 Kind Regards,

 Stephane



 
  De : Baptiste MATHUS [via Maven] ml-node+s40175n575438...@n5.nabble.com
 À : Stephane-3 mittiprove...@yahoo.se
 Envoyé le : Vendredi 26 avril 2013 8h48
 Objet : Re: Source directory for the maven-apt-plugin plugin



 Le 25 avr. 2013 16:26, Stephane-3 [hidden email] a écrit :
 [Snip]
  I'm then trying to specify a source directory, with the following:
 
 

 sourceDirectory${basedir}/core/src/main/java/com/thalasoft/learnintouch/core/jpa/domain/sourceDirectory

 Why do you define sourceDirectory? Its default value is already
 ${basedir}/src/main/java

 -- Baptiste


 

 If you reply to this email, your message will be added to the discussion
 below:
 http://maven.40175.n5.nabble.com/Source-directory-for-the-maven-apt-plugin-plugin-tp5754338p5754382.html
 To unsubscribe from Source directory for the maven-apt-plugin plugin,
 click here.
 NAML



 --
 View this message in context:
 http://maven.40175.n5.nabble.com/Source-directory-for-the-maven-apt-plugin-plugin-tp5754338p5754383.html
 Sent from the Maven - Users mailing list archive at Nabble.com.

 --
 Baptiste Batmat MATHUS - http://batmat.net
 Sauvez un arbre,
 Mangez un castor ! nbsp;!



Source directory for the maven-apt-plugin plugin

2013-04-25 Thread Stephane-3
I'm trying to use a plugin that should generate some source code.

But when I run the Maven build with the mvn generate-sources command, it
gives the following error:

[ERROR] Failed to execute goal
com.mysema.maven:maven-apt-plugin:1.0.4:process (default) on project
learnintouch: basedir
/home/stephane/dev/java/projects/learnintouch/src/main/java does not exist 

Here is the plugin configuration:

  plugin
groupIdcom.mysema.maven/groupId
artifactIdmaven-apt-plugin/artifactId
version1.0.4/version
executions
  execution
phasegenerate-sources/phase
goals
  goalprocess/goal
/goals
configuration
 
processorcom.mysema.query.apt.jpa.JPAAnnotationProcessor/processor
/configuration
  /execution
/executions
  /plugin

My parent project sits in the /home/stephane/dev/java/projects/learnintouch
directory.

There is only one child module, in the
/home/stephane/dev/java/projects/learnintouch/core directory.

The two pom.xml files are:

/home/stephane/dev/java/projects/learnintouch/pom.xml
/home/stephane/dev/java/projects/learnintouch/core/pom.xml

The plugin configuration is sitting the
/home/stephane/dev/java/projects/learnintouch/pom.xml file.

I'm then trying to specify a source directory, with the following:

sourceDirectory${basedir}/core/src/main/java/com/thalasoft/learnintouch/core/jpa/domain/sourceDirectory

But it gives the error:

[ERROR] Failed to execute goal
com.mysema.maven:maven-apt-plugin:1.0.4:process (default) on project
learnintouch-core: basedir
/home/stephane/dev/java/projects/learnintouch/core/core/src/main/java/com/thalasoft/learnintouch/core/jpa/domain
does not exist

We can see in the above error the core/core/ doubling of the directory name.

If I then remove the core/ directory from the configuration as in:

sourceDirectory${basedir}/src/main/java/com/thalasoft/learnintouch/core/jpa/domain/sourceDirectory

[ERROR] Failed to execute goal
com.mysema.maven:maven-apt-plugin:1.0.4:process (default) on project
learnintouch-core: basedir
/home/stephane/dev/java/projects/learnintouch/core/core/src/main/java/com/thalasoft/learnintouch/core/jpa/domain
does not exist

then, not one core/ directory, but two core/core/ directories are removed 
in the error message.

Puzzling...



--
View this message in context: 
http://maven.40175.n5.nabble.com/Source-directory-for-the-maven-apt-plugin-plugin-tp5754338.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: Source directory for the maven-apt-plugin plugin

2013-04-25 Thread Robert Scholte

Hi,

this plugin is not written by the Maven team.
Either contact the developer of this plugin or try the apt-maven-plugin  
from the Mojo team[1]


Robert

[1] http://mojo.codehaus.org/apt-maven-plugin/

Op Thu, 25 Apr 2013 16:07:56 +0200 schreef Stephane-3  
mittiprove...@yahoo.se:



I'm trying to use a plugin that should generate some source code.

But when I run the Maven build with the mvn generate-sources command, it
gives the following error:

[ERROR] Failed to execute goal
com.mysema.maven:maven-apt-plugin:1.0.4:process (default) on project
learnintouch: basedir
/home/stephane/dev/java/projects/learnintouch/src/main/java does not  
exist


Here is the plugin configuration:

  plugin
groupIdcom.mysema.maven/groupId
artifactIdmaven-apt-plugin/artifactId
version1.0.4/version
executions
  execution
phasegenerate-sources/phase
goals
  goalprocess/goal
/goals
configuration
processorcom.mysema.query.apt.jpa.JPAAnnotationProcessor/processor
/configuration
  /execution
/executions
  /plugin

My parent project sits in the  
/home/stephane/dev/java/projects/learnintouch

directory.

There is only one child module, in the
/home/stephane/dev/java/projects/learnintouch/core directory.

The two pom.xml files are:

/home/stephane/dev/java/projects/learnintouch/pom.xml
/home/stephane/dev/java/projects/learnintouch/core/pom.xml

The plugin configuration is sitting the
/home/stephane/dev/java/projects/learnintouch/pom.xml file.

I'm then trying to specify a source directory, with the following:

sourceDirectory${basedir}/core/src/main/java/com/thalasoft/learnintouch/core/jpa/domain/sourceDirectory

But it gives the error:

[ERROR] Failed to execute goal
com.mysema.maven:maven-apt-plugin:1.0.4:process (default) on project
learnintouch-core: basedir
/home/stephane/dev/java/projects/learnintouch/core/core/src/main/java/com/thalasoft/learnintouch/core/jpa/domain
does not exist

We can see in the above error the core/core/ doubling of the directory  
name.


If I then remove the core/ directory from the configuration as in:

sourceDirectory${basedir}/src/main/java/com/thalasoft/learnintouch/core/jpa/domain/sourceDirectory

[ERROR] Failed to execute goal
com.mysema.maven:maven-apt-plugin:1.0.4:process (default) on project
learnintouch-core: basedir
/home/stephane/dev/java/projects/learnintouch/core/core/src/main/java/com/thalasoft/learnintouch/core/jpa/domain
does not exist

then, not one core/ directory, but two core/core/ directories are removed
in the error message.

Puzzling...



--
View this message in context:  
http://maven.40175.n5.nabble.com/Source-directory-for-the-maven-apt-plugin-plugin-tp5754338.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



How to pass in site source directory into pdf:pdf?

2012-05-29 Thread hujirong
I got the error below when run mvn pdf:pdf. I tried mvn pdf:pdf
-DsiteDirectory=${basedir}/target/site, still same error.

Thanks
Jirong

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-pdf-plugin:1.1:pdf (default-cli) on project
CdiServicesParent: Error during document generation: Source directory
doesn't exists (C:\Sandbox\MDM\CdiServicesParent\src\site). - [
Help 1]

--
View this message in context: 
http://maven.40175.n5.nabble.com/How-to-pass-in-site-source-directory-into-pdf-pdf-tp5710298.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: How to pass in site source directory into pdf:pdf?

2012-05-29 Thread Lukas Theussl


Do you have some source files for the site or only reports? Try to add a 
dummy index.apt or any other site source.


HTH,
-Lukas



hujirong wrote:

I got the error below when run mvn pdf:pdf. I tried mvn pdf:pdf
-DsiteDirectory=${basedir}/target/site, still same error.

Thanks
Jirong

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-pdf-plugin:1.1:pdf (default-cli) on project
CdiServicesParent: Error during document generation: Source directory
doesn't exists (C:\Sandbox\MDM\CdiServicesParent\src\site). -  [
Help 1]

--
View this message in context: 
http://maven.40175.n5.nabble.com/How-to-pass-in-site-source-directory-into-pdf-pdf-tp5710298.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: How to pass in site source directory into pdf:pdf?

2012-05-29 Thread hujirong
My site at C:\Sandbox\MDM\CdiServicesParent\target\site is generated by mvn
site:site and only contains css and image folder, nothing else.

But my pdf:pdf is look for the source of site at
C:\Sandbox\MDM\CdiServicesParent\src\site. How can I pass this in
parameters?

Thanks
Jirong

--
View this message in context: 
http://maven.40175.n5.nabble.com/How-to-pass-in-site-source-directory-into-pdf-pdf-tp5710298p5710305.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: How to pass in site source directory into pdf:pdf?

2012-05-29 Thread Wayne Fay
 My site at C:\Sandbox\MDM\CdiServicesParent\target\site is generated by
 mvn
 site:site and only contains css and image folder, nothing else.

 But my pdf:pdf is look for the source of site at
 C:\Sandbox\MDM\CdiServicesParent\src\site. How can I pass this in
 parameters?

Step back for a minute and tell us what final goal/product you are
trying to achieve with the pdf plugin.

Wayne

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



Re: How to pass in site source directory into pdf:pdf?

2012-05-29 Thread Lukas Theussl


The pdf plugin expects some source files to process, you have to add 
that yourself, see [1] for a mini guide. As I said, a simple dummy index 
file will presumably get you around the error.


Note that not all reports are supported by the pdf plugin [2] and with 
maven 3 you won't get any reports at all.


HTH,
-Lukas



[1] http://maven.apache.org/guides/mini/guide-site.html
[2] 
http://maven.apache.org/plugins/maven-pdf-plugin/examples/configuring-reports.html




hujirong wrote:

My site at C:\Sandbox\MDM\CdiServicesParent\target\site is generated by mvn
site:site and only contains css and image folder, nothing else.

But my pdf:pdf is look for the source of site at
C:\Sandbox\MDM\CdiServicesParent\src\site. How can I pass this in
parameters?

Thanks
Jirong

--
View this message in context: 
http://maven.40175.n5.nabble.com/How-to-pass-in-site-source-directory-into-pdf-pdf-tp5710298p5710305.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: How to pass in site source directory into pdf:pdf?

2012-05-29 Thread hujirong
I am using a Maven framework another project already setup, and I am also new
to Maven. That's why I don't know much details. the pdf:pdf will generate a
pdf file contains the deployment instruction. I don't even know where is the
source for the pdf file.

Thanks
Jirong

--
View this message in context: 
http://maven.40175.n5.nabble.com/How-to-pass-in-site-source-directory-into-pdf-pdf-tp5710298p5710312.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: Re: Added source directory still allows for compile errors

2012-03-15 Thread Stephane-3
It now works fine.

I was having a wrong path in the source dir property.

After chaging it to:

source${basedir}/generated/cxf/source

it now works as expected.

plugin
groupIdorg.codehaus.mojo/groupId

artifactIdbuild-helper-maven-plugin/artifactId
version1.7/version
executions
execution
idadd-source/id
phasegenerate-sources/phase
goals
goaladd-source/goal
/goals
configuration
sources

source${basedir}/generated/cxf/source
/sources
/configuration
/execution
/executions
/plugin

Thanks.


--
View this message in context: 
http://maven.40175.n5.nabble.com/Added-source-directory-still-allows-for-compile-errors-tp5501630p5569927.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: Re: Added source directory still allows for compile errors

2012-03-06 Thread Thorsten Heit
Hi,

  Yes, there are lots of source files in this generated directory.
 
  They were generated with the command wsdl2java
 
 Is there no plugin for wsdl2java that you could leverage? Generally
 Maven plugins tell Maven about new source files to be compiled once
 they are created, such that your usage of the build-helper would be
 eliminated.

What about this one: http://mojo.codehaus.org/axistools-maven-plugin/
It lets you generate Java code from WSDL files and vice-versa via Axis' 
Java2WSDL.

A couple of months ago I've written an extension for m2eclipse so you can 
use this plugin from within Eclipse...


Regards

Thorsten

Re: Added source directory still allows for compile errors

2012-03-05 Thread Stephane-3
Hello,

Yes, there are lots of source files in this generated directory.

They were generated with the command wsdl2java 


--
View this message in context: 
http://maven.40175.n5.nabble.com/Added-source-directory-still-allows-for-compile-errors-tp5501630p5536890.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: Added source directory still allows for compile errors

2012-03-05 Thread Wayne Fay
 Yes, there are lots of source files in this generated directory.

 They were generated with the command wsdl2java

Is there no plugin for wsdl2java that you could leverage? Generally
Maven plugins tell Maven about new source files to be compiled once
they are created, such that your usage of the build-helper would be
eliminated.

Wayne

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



Re: Added source directory still allows for compile errors

2012-02-21 Thread Asmann, Roland
Maybe a dumb question, but: are there already sources in that directory? 
It seems to me it is only added to your build, but I don't see a plugin 
writing something there...

Roland


On 21.02.2012 10:02, Stephane-3 wrote:
 Hello,

 I have a Maven build that correctly adds a source directory, or so it seems.

 The pom file:

 plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdbuild-helper-maven-plugin/artifactId
 version1.7/version
 executions
 execution
 idadd-source/id
 phasegenerate-sources/phase
 goals
 goaladd-source/goal
 /goals
 configuration
 sources
 source${basedir}/client/generated/cxf/source
 /sources
 /configuration
 /execution
 /executions
 /plugin

 The log says:

 [INFO] [build-helper:add-source {execution: add-source}]
 [INFO] Source directory:
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/client/generated/cxf
 added.

 The full log output:

 [INFO] Scanning for projects...
 [INFO] Reactor build order:
 [INFO] webapp-on-abcdata
 [INFO] webapp-on-abcdata-client
 [INFO] webapp-on-abcdata-web
 [INFO]
 
 [INFO] Building webapp-on-abcdata
 [INFO] task-segment: [clean, install]
 [INFO]
 
 [INFO] [clean:clean {execution: default-clean}]
 [INFO] [build-helper:add-source {execution: add-source}]
 [INFO] Source directory:
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/client/generated/cxf
 added.
 [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
 [INFO] [install:install {execution: default-install}]
 [INFO] Installing
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/pom.xml to
 /home/stephane/.m2/repository/no/nki/webapp-on-abcdata/1.0-SNAPSHOT/webapp-on-abcdata-1.0-SNAPSHOT.pom
 [INFO]
 
 [INFO] Building webapp-on-abcdata-client
 [INFO] task-segment: [clean, install]
 [INFO]
 
 [INFO] [clean:clean {execution: default-clean}]
 [INFO] Deleting file set:
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/client/target
 (included: [**], excluded: [])
 [INFO] [build-helper:add-source {execution: add-source}]
 [INFO] Source directory:
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/client/client/generated/cxf
 added.
 [INFO] [resources:resources {execution: default-resources}]
 [WARNING] File encoding has not been set, using platform encoding UTF-8,
 i.e. build is platform dependent!
 [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
 resources, i.e. build is platform dependent!
 [INFO] Copying 4 resources
 [INFO] [compiler:compile {execution: default-compile}]
 [INFO] Compiling 2 source files to
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/client/target/classes
 [INFO] [resources:testResources {execution: default-testResources}]
 [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
 resources, i.e. build is platform dependent!
 [INFO] skip non existing resourceDirectory
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/client/src/test/resources
 [INFO] [compiler:testCompile {execution: default-testCompile}]
 [INFO] No sources to compile
 [INFO] [surefire:test {execution: default-test}]
 [INFO] No tests to run.
 [INFO] [jar:jar {execution: default-jar}]
 [INFO] Building jar:
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/client/target/webapp-on-abcdata-client-1.0-SNAPSHOT.jar
 [INFO] [install:install {execution: default-install}]
 [INFO] Installing
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/client/target/webapp-on-abcdata-client-1.0-SNAPSHOT.jar
 to
 /home/stephane/.m2/repository/no/nki/webapp-on-abcdata-client/1.0-SNAPSHOT/webapp-on-abcdata-client-1.0-SNAPSHOT.jar
 [INFO]
 
 [INFO] Building webapp-on-abcdata-web
 [INFO] task-segment: [clean, install]
 [INFO]
 
 [INFO] [clean:clean {execution: default-clean}]
 [INFO] Deleting file set:
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/web/target
 (included: [**], excluded: [])
 [INFO] [build-helper:add-source {execution: add-source}]
 [INFO] Source directory:
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/web/client/generated/cxf
 added.
 [INFO] [resources:resources {execution: default-resources}]
 [WARNING] File encoding has not been set, using platform encoding UTF-8,
 i.e. build is platform dependent!
 [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
 resources, i.e. build is platform dependent!
 [INFO] Copying 0 resource
 [INFO] [compiler:compile {execution: default-compile}]
 [INFO] Compiling 4 source files to
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/web/target/classes
 [INFO

Make Source directory the Destination directory

2012-01-24 Thread ibbignerd
I am new to using maven, but understand a little. 

I need to create a pom file that makes the destination of a minified file be
where the source file is.

here is a snippet of my code

plugins
  plugin
groupIdcom.samaxes.maven/groupId
artifactIdmaven-minify-plugin/artifactId
version1.3.5/version
executions
  execution
iddefault-minify/id
phaseprocess-resources/phase
configuration
  cssSourceDircss/cssSourceDir
  cssSourceFiles
cssSourceFilesrc/main/**/*.css/cssSourceFile
  /cssSourceFiles
  cssFinalFilestyle.css/cssFinalFile
  jsSourceDirjs/jsSourceDir
  jsSourceFiles
jsSourceFiletablefilter.js/jsSourceFile
  /jsSourceFiles
  jsFinalFilescript.js/jsFinalFile
/configuration
goals
  goalminify/goal
/goals
  /execution
/executions
  /plugin
/plugins

I also need it to search for all js and css files in the subfolders.

Please let me know if you guys need any more info. Thanks

--
View this message in context: 
http://maven.40175.n5.nabble.com/Make-Source-directory-the-Destination-directory-tp5323988p5323988.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: Make Source directory the Destination directory

2012-01-24 Thread Guillaume Polet
I am not sure that I understand correctly what you are trying to do 
(mainly because I have never used that plugin), but have you looked at 
the goal documentation?: 
http://maven-samaxes-plugin.googlecode.com/svn/sites/maven-minify-plugin/minify-mojo.html, 
there is a cssTargetDir and jsTargetDir configuration option.


Now maybe you could explain the purpose of generating those minified 
files directly into your source directory? There may be a 
cleaner/simpler way to do what you actually attempt to perform.


Cheers,
Guillaume

Le 24/01/2012 18:27, ibbignerd a écrit :

I am new to using maven, but understand a little.

I need to create a pom file that makes the destination of a minified file be
where the source file is.

here is a snippet of my code

plugins
   plugin
 groupIdcom.samaxes.maven/groupId
 artifactIdmaven-minify-plugin/artifactId
 version1.3.5/version
 executions
   execution
 iddefault-minify/id
 phaseprocess-resources/phase
 configuration
   cssSourceDircss/cssSourceDir
   cssSourceFiles
 cssSourceFilesrc/main/**/*.css/cssSourceFile
   /cssSourceFiles
   cssFinalFilestyle.css/cssFinalFile
   jsSourceDirjs/jsSourceDir
   jsSourceFiles
 jsSourceFiletablefilter.js/jsSourceFile
   /jsSourceFiles
   jsFinalFilescript.js/jsFinalFile
 /configuration
 goals
   goalminify/goal
 /goals
   /execution
 /executions
   /plugin
 /plugins

I also need it to search for all js and css files in the subfolders.

Please let me know if you guys need any more info. Thanks

--
View this message in context: 
http://maven.40175.n5.nabble.com/Make-Source-directory-the-Destination-directory-tp5323988p5323988.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: Make Source directory the Destination directory

2012-01-24 Thread Wayne Fay
 I need to create a pom file that makes the destination of a minified file be
 where the source file is.

This is a bad plan. Please read the plugin documentation and just use
it as it is designed to be used out of the box with standard
configuration options.

If you insist on going this route, do not look for support on this
mailing list. Contact the author directly.

Wayne

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



Ant javac task on Maven Source directory

2010-02-18 Thread Tony2010

Hi,

 I am facing some issue with Running Ant javac task on Maven POM file.
(Maven 2.1 and Ant 1.7.1)
I am using Maven Ant Task.

My ant build.xml content.
  artifact:pom id=maven.project file=pom.xml / 
  javac srcdir=${maven.project.build.sourceDirectory} / 

it gives me error saying that Maven Source directory not found.
srcdir D:\maven\SampleApp\${project.basedir}\src\main\java does not exist!

Is there any configuration that i am missing.

Any Help will be highly appreciated.

Thanks.

-- 
View this message in context: 
http://old.nabble.com/Ant-javac-task-on-Maven-Source-directory-tp27635973p27635973.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



maven with different source directory

2008-12-30 Thread idan72

Hi,

I have project of RFT where the source code is under two directories : com ,
resources .
Both directories include java source code and other files generated by RFT.

How can I compile both directories into the target directory ?
Can I tell maven to put the .class file in the same splace as the .java file
for both com,resources ?
If not How can I copy some of the files generated by RFT to the target
directory ?

Thanks

-- 
View this message in context: 
http://www.nabble.com/maven-with-different-source-directory-tp21219713p21219713.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: maven with different source directory

2008-12-30 Thread Wendy Smoak
On Tue, Dec 30, 2008 at 9:47 AM, idan72 is...@cisco.com wrote:
 I have project of RFT where the source code is under two directories : com ,
 resources .
 Both directories include java source code and other files generated by RFT.

 How can I compile both directories into the target directory ?
 Can I tell maven to put the .class file in the same splace as the .java file
 for both com,resources ?

The Build Helper plugin can add additional source directories:
http://mojo.codehaus.org/build-helper-maven-plugin/usage.html

If there are non-Java resources that you need copied in, you may need
to configure resources to pick them up.

-- 
Wendy

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



Re: [m2] Jetty 6 Plugin does not recognize custom webapp source directory

2008-07-08 Thread zalym

Hi,

I have the same issue.  What if I have to make the jetty plugin aware of
additional resources other than src/main/webapp

Please let me know


Adrian Herscu-2 wrote:
 
 Hi,
 
 What if I have an additional webapp source folder, like:
 
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-war-plugin/artifactId
  configuration
webResources
  resource
directorysrc-gen/main/webapp/directory
  /resource
/webResources
   /configuration
 /plugin
 
 How can I tell Jetty to deploy this folder as well?
 
 TIA,
 Adrian.
 
 Brett Porter wrote:
 Hi Matt,
 
 Check out the Jetty docs:
 http://jetty.mortbay.org/jetty6/maven-plugin/howto.html
 
 You can configure the web resources path. Unfortunately, we haven't
 enabled a mechanism for the war plugin to share its configuration.
 
 - Brett
 
 On 1/11/06, Matt Raible [EMAIL PROTECTED] wrote:
 I decided to try Brett's Jetty 6 HowTo this morning:

 http://blogs.codehaus.org/people/brett/archives/001306_developing_with_jetty_where_have_you_been_all_my_life.html

 Unfortunately, it doesn't seem to work with my custom webapp source
 directory.  Here's my pom.xml:

   plugin
 artifactIdmaven-war-plugin/artifactId
 configuration
   warSourceDirectoryweb/warSourceDirectory
 /configuration
   /plugin
   plugin
 groupIdorg.mortbay.jetty/groupId
 artifactIdmaven-jetty6-plugin/artifactId
 configuration
 scanIntervalSeconds10/scanIntervalSeconds
 contextPath//contextPath
 /configuration
   /plugin

 [INFO] [jetty6:run]
 [INFO] Configuring Jetty for project: Equinox
 [INFO]
 -
 ---
 [ERROR] BUILD ERROR
 [INFO]
 -
 ---
 [INFO] Webapp source directory C:\Source\equinox\src\main\webapp does
 not exist
 [INFO]
 -
 ---
 [INFO] For more information, run Maven with the -e switch
 [INFO]
 -
 ---
 [INFO] Total time: 3 minutes 25 seconds
 [INFO] Finished at: Tue Jan 10 07:40:45 MST 2006
 [INFO] Final Memory: 4M/8M
 [INFO]
 -

 Matt

 -
 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/-m2--Jetty-6-Plugin-does-not-recognize-custom-webapp-source-directory-tp2300888p18342181.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: antrun plugin - GWT - add the source directory to the classpath [resolved]

2008-04-02 Thread Bernard Lupin
. Is it planed ?
 Do
 I have to make this suggestion somewhere ?
 Kind regards,
 Bernard




 nicolas de loof-3 wrote:
 
  Can I suggest you to test the Mojo-sandbox gwt-maven-plugin ?
 
  I just upgrade it to fix GWTCompiler issue, and it now comes with a DTO
  generator from JPA entities.
 
  Some dependencies are not yet available in central, but the MAVENUPLOAD
  request is created for them.
 
  Nicolas.
 
  2008/3/31, Bernard Lupin [EMAIL PROTECTED]:
 
 
  Hi all,
  Using the antrun plugin, I'm trying to call an ant task which is
  launching
  the GWT compiler. This ant task is based on the Joachim work at
  http://braindump.dk/tech/gwt-task-for-ant/.
 
  Something specific with GWT is that you must include the java source
  directory in your classpath before calling the compiler.
 Unfortunatelly,
  I
  can add all the needed jars in my classpath (gwt-user.jar,
  gwt-dev-windows.jar, my ant-compile.jar ) using dependencies, but I
 don't
  know how to add my source directory.
 
  I tried to build an ant reference classpath with the
  maven.plugin.classpath
  reference and the ${project.build.sourceDirectory} variable, but in
 all
  cases my java task tells me Unable to find
  'com/company/gwt/MyModule.gwt.xml'.
 
  I also tried to put all my java source files inside a jar and add the
  corresponding dependency, in that case the GWT compilation works !
 (but
  it
  can't be a workarround, you agree ?).
 
  So my question is : Does Maven provide a solution to add a directory
 to
  the
  maven.plugin.classpath ?
 
  Below is my pom.xml
 
  ?xml version=1.0 encoding=UTF-8?
  project
modelVersion4.0.0/modelVersion
groupIdcom.company.exemple/groupId
artifactIdgwt-maven/artifactId
packagingwar/packaging
nameGWT Maven example/name
version1.0-SNAPSHOT/version
urlhttp://maven.apache.org/url
 
build
  plugins
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-compiler-plugin/artifactId
  configuration
source1.5/source
target1.5/target
  /configuration
/plugin
 
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-antrun-plugin/artifactId
  dependencies
dependency
  groupIdcom.google.gwt/groupId
  artifactIdgwt-dev-windows/artifactId
  version1.4.61/version
  scopecompile/scope
/dependency
dependency
  groupIdcom.company.gwt/groupId
  artifactIdant-compile/artifactId
  version1.0-SNAPSHOT/version
  scopecompile/scope
/dependency
  /dependencies
  executions
execution
  phaseprocess-classes/phase
  goals
goalrun/goal
  /goals
  configuration
tasks
  property name=maven_source_directory
value=${project.build.sourceDirectory} /
  echo message=source
  directory:  ${maven_source_directory}
  /
  property name=maven_plugin_classpath
  refid=maven.plugin.classpath /
  echo message=maven_plugin_classpath:
  ${maven_plugin_classpath} /
  path id=my.classpath
pathelement path=${project.build.sourceDirectory}
 /
path refid=maven.plugin.classpath /
  /path
 
  taskdef name=gwtcompile
 
  classname=com.francetelecom.clara.tool.gwt.GWTCompileTask
classpathref=my.classpath /
  gwtcompile destdir=c:/tmp optimize=true
  style=obfuscated
fileset dir=${maven_source_directory}
  include name=**/*.gwt.xml /
/fileset
  /gwtcompile
/tasks
  /configuration
/execution
  /executions
/plugin
  /plugins
/build
 
dependencies
 
  !-- GWT Dependencies --
  dependency
groupIdcom.google.gwt/groupId
artifactIdgwt-user/artifactId
version1.4.61/version
scopecompile/scope
  /dependency
 
  dependency
groupIdcom.google.gwt/groupId
artifactIdgwt-servlet/artifactId
version1.4.61/version
scoperuntime/scope
  /dependency
 
  !-- GUI Dependencies --
  dependency
groupIdjavax.servlet/groupId
artifactIdservlet-api/artifactId
version2.4/version
scopeprovided/scope
  /dependency
 
  dependency
groupIdjavax.servlet.jsp/groupId
artifactIdjsp-api/artifactId
version2.1/version
scopeprovided/scope
  /dependency
 
/dependencies
 
  /project
 
 

 --

 View this message in context:
 http://www.nabble.com/antrun-plugin---GWT---add-the-source-directory-to-the-classpath-tp16396056s177p16418428.html

 Sent from the Maven - Users mailing list archive

Re: antrun plugin - GWT - add the source directory to the classpath

2008-04-01 Thread Bernard Lupin

Hi Nicolas,
We're already using the gwt-maven-plugin (perhaps the issue your talking
about is a classpath too long problem, comming from my colleague ;-)). 

But an important improvement for us would be a plugin launching the GWT
compilation only if there are changes in java source code. Is it planed ? Do
I have to make this suggestion somewhere ?
Kind regards,
Bernard



nicolas de loof-3 wrote:
 
 Can I suggest you to test the Mojo-sandbox gwt-maven-plugin ?
 
 I just upgrade it to fix GWTCompiler issue, and it now comes with a DTO
 generator from JPA entities.
 
 Some dependencies are not yet available in central, but the MAVENUPLOAD
 request is created for them.
 
 Nicolas.
 
 2008/3/31, Bernard Lupin [EMAIL PROTECTED]:


 Hi all,
 Using the antrun plugin, I'm trying to call an ant task which is
 launching
 the GWT compiler. This ant task is based on the Joachim work at
 http://braindump.dk/tech/gwt-task-for-ant/.

 Something specific with GWT is that you must include the java source
 directory in your classpath before calling the compiler. Unfortunatelly,
 I
 can add all the needed jars in my classpath (gwt-user.jar,
 gwt-dev-windows.jar, my ant-compile.jar ) using dependencies, but I don't
 know how to add my source directory.

 I tried to build an ant reference classpath with the
 maven.plugin.classpath
 reference and the ${project.build.sourceDirectory} variable, but in all
 cases my java task tells me Unable to find
 'com/company/gwt/MyModule.gwt.xml'.

 I also tried to put all my java source files inside a jar and add the
 corresponding dependency, in that case the GWT compilation works ! (but
 it
 can't be a workarround, you agree ?).

 So my question is : Does Maven provide a solution to add a directory to
 the
 maven.plugin.classpath ?

 Below is my pom.xml

 ?xml version=1.0 encoding=UTF-8?
 project
   modelVersion4.0.0/modelVersion
   groupIdcom.company.exemple/groupId
   artifactIdgwt-maven/artifactId
   packagingwar/packaging
   nameGWT Maven example/name
   version1.0-SNAPSHOT/version
   urlhttp://maven.apache.org/url

   build
 plugins
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-compiler-plugin/artifactId
 configuration
   source1.5/source
   target1.5/target
 /configuration
   /plugin

   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-antrun-plugin/artifactId
 dependencies
   dependency
 groupIdcom.google.gwt/groupId
 artifactIdgwt-dev-windows/artifactId
 version1.4.61/version
 scopecompile/scope
   /dependency
   dependency
 groupIdcom.company.gwt/groupId
 artifactIdant-compile/artifactId
 version1.0-SNAPSHOT/version
 scopecompile/scope
   /dependency
 /dependencies
 executions
   execution
 phaseprocess-classes/phase
 goals
   goalrun/goal
 /goals
 configuration
   tasks
 property name=maven_source_directory
   value=${project.build.sourceDirectory} /
 echo message=source
 directory:  ${maven_source_directory}
 /
 property name=maven_plugin_classpath
 refid=maven.plugin.classpath /
 echo message=maven_plugin_classpath:
 ${maven_plugin_classpath} /
 path id=my.classpath
   pathelement path=${project.build.sourceDirectory} /
   path refid=maven.plugin.classpath /
 /path

 taskdef name=gwtcompile

 classname=com.francetelecom.clara.tool.gwt.GWTCompileTask
   classpathref=my.classpath /
 gwtcompile destdir=c:/tmp optimize=true
 style=obfuscated
   fileset dir=${maven_source_directory}
 include name=**/*.gwt.xml /
   /fileset
 /gwtcompile
   /tasks
 /configuration
   /execution
 /executions
   /plugin
 /plugins
   /build

   dependencies

 !-- GWT Dependencies --
 dependency
   groupIdcom.google.gwt/groupId
   artifactIdgwt-user/artifactId
   version1.4.61/version
   scopecompile/scope
 /dependency

 dependency
   groupIdcom.google.gwt/groupId
   artifactIdgwt-servlet/artifactId
   version1.4.61/version
   scoperuntime/scope
 /dependency

 !-- GUI Dependencies --
 dependency
   groupIdjavax.servlet/groupId
   artifactIdservlet-api/artifactId
   version2.4/version
   scopeprovided/scope
 /dependency

 dependency
   groupIdjavax.servlet.jsp/groupId
   artifactIdjsp-api/artifactId
   version2.1/version
   scopeprovided/scope
 /dependency

   /dependencies

 /project

 

-- 
View this message in context: 
http://www.nabble.com/antrun-plugin

antrun plugin - GWT - add the source directory to the classpath

2008-03-31 Thread Bernard Lupin

Hi all,
Using the antrun plugin, I'm trying to call an ant task which is launching
the GWT compiler. This ant task is based on the Joachim work at
http://braindump.dk/tech/gwt-task-for-ant/.

Something specific with GWT is that you must include the java source
directory in your classpath before calling the compiler. Unfortunatelly, I
can add all the needed jars in my classpath (gwt-user.jar,
gwt-dev-windows.jar, my ant-compile.jar ) using dependencies, but I don't
know how to add my source directory.

I tried to build an ant reference classpath with the maven.plugin.classpath
reference and the ${project.build.sourceDirectory} variable, but in all
cases my java task tells me Unable to find
'com/company/gwt/MyModule.gwt.xml'.

I also tried to put all my java source files inside a jar and add the
corresponding dependency, in that case the GWT compilation works ! (but it
can't be a workarround, you agree ?).

So my question is : Does Maven provide a solution to add a directory to the
maven.plugin.classpath ?

Below is my pom.xml

?xml version=1.0 encoding=UTF-8?
project
  modelVersion4.0.0/modelVersion
  groupIdcom.company.exemple/groupId
  artifactIdgwt-maven/artifactId
  packagingwar/packaging
  nameGWT Maven example/name
  version1.0-SNAPSHOT/version
  urlhttp://maven.apache.org/url

  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
  source1.5/source
  target1.5/target
/configuration
  /plugin

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
dependencies
  dependency
groupIdcom.google.gwt/groupId
artifactIdgwt-dev-windows/artifactId
version1.4.61/version
scopecompile/scope
  /dependency
  dependency
groupIdcom.company.gwt/groupId
artifactIdant-compile/artifactId
version1.0-SNAPSHOT/version
scopecompile/scope
  /dependency
/dependencies
executions
  execution
phaseprocess-classes/phase
goals
  goalrun/goal
/goals
configuration
  tasks
property name=maven_source_directory
  value=${project.build.sourceDirectory} /
echo message=source directory:  ${maven_source_directory}
/
property name=maven_plugin_classpath
refid=maven.plugin.classpath /
echo message=maven_plugin_classpath: 
${maven_plugin_classpath} /
path id=my.classpath
  pathelement path=${project.build.sourceDirectory} /
  path refid=maven.plugin.classpath /
/path

taskdef name=gwtcompile
 
classname=com.francetelecom.clara.tool.gwt.GWTCompileTask
  classpathref=my.classpath /
gwtcompile destdir=c:/tmp optimize=true
style=obfuscated
  fileset dir=${maven_source_directory}
include name=**/*.gwt.xml /
  /fileset
/gwtcompile
  /tasks
/configuration
  /execution
/executions
  /plugin
/plugins
  /build

  dependencies

!-- GWT Dependencies --
dependency
  groupIdcom.google.gwt/groupId
  artifactIdgwt-user/artifactId
  version1.4.61/version
  scopecompile/scope
/dependency

dependency
  groupIdcom.google.gwt/groupId
  artifactIdgwt-servlet/artifactId
  version1.4.61/version
  scoperuntime/scope
/dependency

!-- GUI Dependencies --
dependency
  groupIdjavax.servlet/groupId
  artifactIdservlet-api/artifactId
  version2.4/version
  scopeprovided/scope
/dependency

dependency
  groupIdjavax.servlet.jsp/groupId
  artifactIdjsp-api/artifactId
  version2.1/version
  scopeprovided/scope
/dependency

  /dependencies

/project
-- 
View this message in context: 
http://www.nabble.com/antrun-plugin---GWT---add-the-source-directory-to-the-classpath-tp16396056s177p16396056.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: antrun plugin - GWT - add the source directory to the classpath

2008-03-31 Thread nicolas de loof
Can I suggest you to test the Mojo-sandbox gwt-maven-plugin ?

I just upgrade it to fix GWTCompiler issue, and it now comes with a DTO
generator from JPA entities.

Some dependencies are not yet available in central, but the MAVENUPLOAD
request is created for them.

Nicolas.

2008/3/31, Bernard Lupin [EMAIL PROTECTED]:


 Hi all,
 Using the antrun plugin, I'm trying to call an ant task which is launching
 the GWT compiler. This ant task is based on the Joachim work at
 http://braindump.dk/tech/gwt-task-for-ant/.

 Something specific with GWT is that you must include the java source
 directory in your classpath before calling the compiler. Unfortunatelly, I
 can add all the needed jars in my classpath (gwt-user.jar,
 gwt-dev-windows.jar, my ant-compile.jar ) using dependencies, but I don't
 know how to add my source directory.

 I tried to build an ant reference classpath with the
 maven.plugin.classpath
 reference and the ${project.build.sourceDirectory} variable, but in all
 cases my java task tells me Unable to find
 'com/company/gwt/MyModule.gwt.xml'.

 I also tried to put all my java source files inside a jar and add the
 corresponding dependency, in that case the GWT compilation works ! (but it
 can't be a workarround, you agree ?).

 So my question is : Does Maven provide a solution to add a directory to
 the
 maven.plugin.classpath ?

 Below is my pom.xml

 ?xml version=1.0 encoding=UTF-8?
 project
   modelVersion4.0.0/modelVersion
   groupIdcom.company.exemple/groupId
   artifactIdgwt-maven/artifactId
   packagingwar/packaging
   nameGWT Maven example/name
   version1.0-SNAPSHOT/version
   urlhttp://maven.apache.org/url

   build
 plugins
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-compiler-plugin/artifactId
 configuration
   source1.5/source
   target1.5/target
 /configuration
   /plugin

   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-antrun-plugin/artifactId
 dependencies
   dependency
 groupIdcom.google.gwt/groupId
 artifactIdgwt-dev-windows/artifactId
 version1.4.61/version
 scopecompile/scope
   /dependency
   dependency
 groupIdcom.company.gwt/groupId
 artifactIdant-compile/artifactId
 version1.0-SNAPSHOT/version
 scopecompile/scope
   /dependency
 /dependencies
 executions
   execution
 phaseprocess-classes/phase
 goals
   goalrun/goal
 /goals
 configuration
   tasks
 property name=maven_source_directory
   value=${project.build.sourceDirectory} /
 echo message=source
 directory:  ${maven_source_directory}
 /
 property name=maven_plugin_classpath
 refid=maven.plugin.classpath /
 echo message=maven_plugin_classpath:
 ${maven_plugin_classpath} /
 path id=my.classpath
   pathelement path=${project.build.sourceDirectory} /
   path refid=maven.plugin.classpath /
 /path

 taskdef name=gwtcompile

 classname=com.francetelecom.clara.tool.gwt.GWTCompileTask
   classpathref=my.classpath /
 gwtcompile destdir=c:/tmp optimize=true
 style=obfuscated
   fileset dir=${maven_source_directory}
 include name=**/*.gwt.xml /
   /fileset
 /gwtcompile
   /tasks
 /configuration
   /execution
 /executions
   /plugin
 /plugins
   /build

   dependencies

 !-- GWT Dependencies --
 dependency
   groupIdcom.google.gwt/groupId
   artifactIdgwt-user/artifactId
   version1.4.61/version
   scopecompile/scope
 /dependency

 dependency
   groupIdcom.google.gwt/groupId
   artifactIdgwt-servlet/artifactId
   version1.4.61/version
   scoperuntime/scope
 /dependency

 !-- GUI Dependencies --
 dependency
   groupIdjavax.servlet/groupId
   artifactIdservlet-api/artifactId
   version2.4/version
   scopeprovided/scope
 /dependency

 dependency
   groupIdjavax.servlet.jsp/groupId
   artifactIdjsp-api/artifactId
   version2.1/version
   scopeprovided/scope
 /dependency

   /dependencies

 /project

 --
 View this message in context:
 http://www.nabble.com/antrun-plugin---GWT---add-the-source-directory-to-the-classpath-tp16396056s177p16396056.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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




Re: [m2] Jetty 6 Plugin does not recognize custom webapp source directory

2008-03-03 Thread Adrian Herscu

Hi,

What if I have an additional webapp source folder, like:

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
configuration
  webResources
resource
  directorysrc-gen/main/webapp/directory
/resource
  /webResources
 /configuration
   /plugin

How can I tell Jetty to deploy this folder as well?

TIA,
Adrian.

Brett Porter wrote:

Hi Matt,

Check out the Jetty docs:
http://jetty.mortbay.org/jetty6/maven-plugin/howto.html

You can configure the web resources path. Unfortunately, we haven't
enabled a mechanism for the war plugin to share its configuration.

- Brett

On 1/11/06, Matt Raible [EMAIL PROTECTED] wrote:

I decided to try Brett's Jetty 6 HowTo this morning:

http://blogs.codehaus.org/people/brett/archives/001306_developing_with_jetty_where_have_you_been_all_my_life.html

Unfortunately, it doesn't seem to work with my custom webapp source
directory.  Here's my pom.xml:

  plugin
artifactIdmaven-war-plugin/artifactId
configuration
  warSourceDirectoryweb/warSourceDirectory
/configuration
  /plugin
  plugin
groupIdorg.mortbay.jetty/groupId
artifactIdmaven-jetty6-plugin/artifactId
configuration
scanIntervalSeconds10/scanIntervalSeconds
contextPath//contextPath
/configuration
  /plugin

[INFO] [jetty6:run]
[INFO] Configuring Jetty for project: Equinox
[INFO] -
---
[ERROR] BUILD ERROR
[INFO] -
---
[INFO] Webapp source directory C:\Source\equinox\src\main\webapp does not exist
[INFO] -
---
[INFO] For more information, run Maven with the -e switch
[INFO] -
---
[INFO] Total time: 3 minutes 25 seconds
[INFO] Finished at: Tue Jan 10 07:40:45 MST 2006
[INFO] Final Memory: 4M/8M
[INFO] -

Matt

-
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 create a jar that uses a subset of files in the source directory ?

2008-01-19 Thread Dennis Lundberg

Starting with version 2.2 of maven-jar-plugin, you can use

excludes
  exclude/exclude
/excludes

and

includes
  include/include
/includes

in your configuration.

wendellGee wrote:

I am reading that it is easy to do with profiles- as I read from the Maven
site :

If you are producing a JAR that is a derivative of the original (eg, just a
subset of classes, or the same JAR with debugging enabled), the Maven
supports this completely using profiles. See Introduction to Profiles for
more information.  




 I read the page in detail but still cannot figure out how. You can't
overwrite the source directory, so how do you tell maven that when running a
specific profile, you only want to include a subset of the main source
directory?

I can't find any examples of this and I haven't been  able to figure it out
by trial and error. Thanks in advance for any help.




--
Dennis Lundberg

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



How to create a jar that uses a subset of files in the source directory ?

2008-01-18 Thread wendellGee

I am reading that it is easy to do with profiles- as I read from the Maven
site :

If you are producing a JAR that is a derivative of the original (eg, just a
subset of classes, or the same JAR with debugging enabled), the Maven
supports this completely using profiles. See Introduction to Profiles for
more information.  



 I read the page in detail but still cannot figure out how. You can't
overwrite the source directory, so how do you tell maven that when running a
specific profile, you only want to include a subset of the main source
directory?

I can't find any examples of this and I haven't been  able to figure it out
by trial and error. Thanks in advance for any help.

-- 
View this message in context: 
http://www.nabble.com/How-to-create-a-jar-that-uses-a-subset-of-files-in-the-source-directory---tp14961436s177p14961436.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



More than one test source directory

2007-08-16 Thread Vihung Marathe
Am I missing something, or is it not possible to specify more then one
directory as a test source directory?

I am working with an existing project that has two separate
directories for tests - one for unit tests and one for integration
tests

-- Vihung
_

This e-mail may contain confidential information and/or copyright material. 
This e-mail is intended for the use of the addressee only. Any unauthorised use 
may be unlawful.

If you receive this e-mail by mistake please advise the sender immediately by 
using the reply facility in your e-mail software.

The Friends Provident group of companies includes these Friends Provident plc 
subsidiary companies:

Friends Provident Life and Pensions Limited. Registered number 4096141.
Friends Provident Life Assurance Limited. Registered number 782698.
Friends Provident Pensions Limited. Registered number 475201.
Friends Provident Marketing Limited. Registered number 5059179.

Each of the above subsidiary companies is authorised and regulated by the 
Financial Services Authority.

Friends Provident Management Services Limited. Registered number 983330

The ultimate holding company is Friends Provident plc. Registered number 
4113107.

All are incorporated companies limited by shares and registered in England.
Registered and Head Office: Pixham End, Dorking, Surrey RH4 1QA.

www.friendsprovident.com

_

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



Re: More than one test source directory

2007-08-16 Thread Steven Rowe
Hi Vihung,

What you want is build-helper-maven-plugin:add-test-source

http://mojo.codehaus.org/build-helper-maven-plugin/

Steve

Vihung Marathe wrote:
 Am I missing something, or is it not possible to specify more then one
 directory as a test source directory?
 
 I am working with an existing project that has two separate
 directories for tests - one for unit tests and one for integration
 tests
 
 -- Vihung
 _
 
 This e-mail may contain confidential information and/or copyright material. 
 This e-mail is intended for the use of the addressee only. Any unauthorised 
 use may be unlawful.
 
 If you receive this e-mail by mistake please advise the sender immediately by 
 using the reply facility in your e-mail software.
 
 The Friends Provident group of companies includes these Friends Provident plc 
 subsidiary companies:
 
 Friends Provident Life and Pensions Limited. Registered number 4096141.
 Friends Provident Life Assurance Limited. Registered number 782698.
 Friends Provident Pensions Limited. Registered number 475201.
 Friends Provident Marketing Limited. Registered number 5059179.
 
 Each of the above subsidiary companies is authorised and regulated by the 
 Financial Services Authority.
 
 Friends Provident Management Services Limited. Registered number 983330
 
 The ultimate holding company is Friends Provident plc. Registered number 
 4113107.
 
 All are incorporated companies limited by shares and registered in England.
 Registered and Head Office: Pixham End, Dorking, Surrey RH4 1QA.
 
 www.friendsprovident.com
 
 _
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



[m2] maven-antlr-plugin searches for generated files in the source directory

2007-04-23 Thread Adrian Herscu

Hi all,

Using Maven 2.0.6 and maven-antlr-plugin 2.0-beta-2-SNAPSHOT configured 
as follows:

configuration
sourceDirectory${basedir}/src/main/antlr/com/acme/lang/compiler/sourceDirectory
!--
NOTE: I had to make the output go to source otherwise the build fails
-- 
outputDirectory${basedir}/src/main/antlr/com/acme/lang/compiler/outputDirectory

  grammarDefs
gammar
  namesuper.g/name
/gammar
grammar
  nameext1.g/name
  glibsuper.g/glib
/grammar
grammar
  nameext2.g/name
  glibsuper.g/glib
/grammar
  /grammarDefs
/configuration

Otherwise I get the following errors:
[INFO] [antlr:generate {execution: default}]
[INFO] Using Antlr grammar: 
C:\documents\pm\backyard\compiler\src\main\antlr\com\acme\lang\compiler\super.g

ANTLR Parser Generator   Version 2.7.4   1989-2004 jGuru.com

[INFO] Using Antlr grammar: 
C:\documents\pm\backyard\compiler\src\main\antlr\com

\acme\lang\compiler\ext1.g
ANTLR Parser Generator   Version 2.7.4   1989-2004 jGuru.com
error: cannot find/copy importVocab file 
C:\documents\pm\backyard\compiler\src\m

ain\antlr\com\acme\lang\compiler\SuperTokenTypes.txt
error: cannot find/copy importVocab file 
C:\documents\pm\backyard\compiler\src\m

ain\antlr\com\acme\lang\compiler\SuperTokenTypes.txt
C:\documents\pm\backyard\compiler\target\generated-sources\antlr\com\acme\lang
\compiler\expandedext1.g:17:9: warning:Redefinition of token in toke
ns {...}: BLOCK

...and many other redefinition warnings ...

The same error is generated for each extN.

Adrian.


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



more than one source directory

2007-02-07 Thread Behrens, Andrey
Hallo,

I would like to have more than one source directory. Currently the src 
structure looks like

src/core/src
src/test/src
src/plugins/src

Whereby test dosn't mean a JUnit test.

I cannot modify the source tree structure. So I'm looking for an 
alternative way and would like to get some hints.

Kindly Regards


Andrey

-- 
Andrey Behrens, 
Mobil: +49-160-92755947
Phone: +49-228-936-36478

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



Re: more than one source directory

2007-02-07 Thread nicolas de loof

Look at http://mojo.codehaus.org/build-helper-maven-plugin/
the add-source goal will add other sources directory to the build process.

2007/2/7, Behrens, Andrey [EMAIL PROTECTED]:


Hallo,

I would like to have more than one source directory. Currently the src
structure looks like

src/core/src
src/test/src
src/plugins/src

Whereby test dosn't mean a JUnit test.

I cannot modify the source tree structure. So I'm looking for an
alternative way and would like to get some hints.

Kindly Regards


Andrey

--
Andrey Behrens,
Mobil: +49-160-92755947
Phone: +49-228-936-36478

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




Re: more than one source directory

2007-02-07 Thread Behrens, Andrey
On Wednesday 07 February 2007 11:09, nicolas de loof wrote:

Hi,

I thank you for your quick help.

 Look at http://mojo.codehaus.org/build-helper-maven-plugin/
 the add-source goal will add other sources directory to the build
 process.

Regards


Andrey

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



Excluding source directory branches during compilation

2007-01-15 Thread Roberto UserList

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


Re: Excluding source directory branches during compilation

2007-01-15 Thread franz see

Good day to you, Roberto,

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

project
  ...
  build
sourceDirectorysrc/main/java/trunk/sourceDirectory
  /build
/project

Cheers,
Franz


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

-- 
View this message in context: 
http://www.nabble.com/Excluding-source-directory-branches-during-compilation-tf3013910s177.html#a8373047
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Excluding source directory branches during compilation

2007-01-15 Thread Roberto UserList

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


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



Good day to you, Roberto,

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

project
...
build
   sourceDirectorysrc/main/java/trunk/sourceDirectory
/build
/project

Cheers,
Franz


Roberto UserList wrote:

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



--
View this message in context:
http://www.nabble.com/Excluding-source-directory-branches-during-compilation-tf3013910s177.html#a8373047
Sent from the Maven - Users mailing list archive at Nabble.com.


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




Re: Excluding source directory branches during compilation

2007-01-15 Thread franz see

Good day to you, Roberto,

If you have only one source directory, you can use

project
  ...
  build
sourceDirectorysome/path/to/your/java/files/sourceDirectory
  /build
/project

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

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

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

project
  ...

  build
resources
  resource
directorysrc/main/java/trunk/directory
targetPath../../src/main/java/merge/targetPath
  /resource
  resource
directorysrc/main/java/branches/directory
targetPath../../src/main/java/merge/targetPath
  /resource
/resources

sourceDirectorysrc/main/java/merge/sourceDirectory
  /build

/project

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

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

project
  ...
  build
...

plugins
  plugin
artifactIdmaven-clean-plugin/artifactId
configuration
  filesets
fileset
  directorysrc/main/java/merge/directory
/fileset
  /filesets
/configuration
  /plugin
/plugins
  /build
/project

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

Cheers,
Franz


Roberto UserList wrote:
 
 Franz, what can I do if there are, for example, two more directories:
 src/main/java/trash1
 src/main/java/traxh2
 and I'd like only to compile the files inside trunk and branches
 directories?
 How can I tell Maven  not to compile files in trash1 and trash2
 directories?
 Tanks a lot in advance.
 Regards,
 Roberto.
 
 
 On 1/15/07, franz see [EMAIL PROTECTED] wrote:


 Good day to you, Roberto,

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

 project
 ...
 build
sourceDirectorysrc/main/java/trunk/sourceDirectory
 /build
 /project

 Cheers,
 Franz


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

 --
 View this message in context:
 http://www.nabble.com/Excluding-source-directory-branches-during-compilation-tf3013910s177.html#a8373047
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/Excluding-source-directory-branches-during-compilation-tf3013910s177.html#a8382087
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: How to unpack a zip file into a source directory

2006-10-16 Thread Peter Anning
Just to add to this thread check out
http://jira.codehaus.org/browse/MNG-1683 this gave me my solution for
packaging stuff in a zip deploying as an artifact then unpacking in a
war.

Peter

 -Original Message-
 From: Naresh Bhatia [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, 15 October 2006 1:01 PM
 To: Maven Users List
 Subject: RE: How to unpack a zip file into a source directory
 
 
 Perfect! That worked like a charm. Thanks again Wendy.
 
 Naresh
 
 -Original Message-
 From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, October 14, 2006 10:32 PM
 To: Maven Users List
 Subject: Re: How to unpack a zip file into a source directory
 
 On 10/14/06, Naresh Bhatia [EMAIL PROTECTED] wrote:
  Wendy,
 
  Quick question. It seems that the dependency-maven-plugin does not 
  recognize the .zip extension. I had to change the extension 
 to .jar to 
  make the plugin work. Is my understanding correct?
 
 You can use the type element to tell the dependency plugin 
 what to look for.
 
 Take a look at this old revision of one of my wiki pages, 
 when I was still installing the Selenium distribution .zip 
 file in my local
 repository:
 
 http://wiki.wsmoak.net/cgi-bin/wiki.pl?action=browseid=Maven/
Seleniumr
evision=5

artifactItem
   groupIdorg.openqa/groupId
   artifactIdselenium-core/artifactId
   version0.7.0/version
   typezip/type   ---
/artifactItem

HTH,
-- 
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: How to unpack a zip file into a source directory

2006-10-16 Thread Naresh Bhatia
Thanks Peter. I have made a note of this - will look it up when I get a
chance.

Naresh

-Original Message-
From: Peter Anning [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 15, 2006 7:32 PM
To: Maven Users List
Subject: RE: How to unpack a zip file into a source directory

Just to add to this thread check out
http://jira.codehaus.org/browse/MNG-1683 this gave me my solution for
packaging stuff in a zip deploying as an artifact then unpacking in a
war.

Peter

 -Original Message-
 From: Naresh Bhatia [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, 15 October 2006 1:01 PM
 To: Maven Users List
 Subject: RE: How to unpack a zip file into a source directory
 
 
 Perfect! That worked like a charm. Thanks again Wendy.
 
 Naresh
 
 -Original Message-
 From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, October 14, 2006 10:32 PM
 To: Maven Users List
 Subject: Re: How to unpack a zip file into a source directory
 
 On 10/14/06, Naresh Bhatia [EMAIL PROTECTED] wrote:
  Wendy,
 
  Quick question. It seems that the dependency-maven-plugin does not 
  recognize the .zip extension. I had to change the extension 
 to .jar to 
  make the plugin work. Is my understanding correct?
 
 You can use the type element to tell the dependency plugin 
 what to look for.
 
 Take a look at this old revision of one of my wiki pages, 
 when I was still installing the Selenium distribution .zip 
 file in my local
 repository:
 
 http://wiki.wsmoak.net/cgi-bin/wiki.pl?action=browseid=Maven/
Seleniumr
evision=5

artifactItem
   groupIdorg.openqa/groupId
   artifactIdselenium-core/artifactId
   version0.7.0/version
   typezip/type   ---
/artifactItem

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

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



How to unpack a zip file into a source directory

2006-10-15 Thread Naresh Bhatia
Hi,

I would like to unpack a zip file into a source directory using Maven.
What is the best way to do this? Here are the details of what I am
trying to do:

- The zip file is essentially the Dojo JavaScript library
(ajax-2006.10.10.zip ) - it simply contains JavaScript source.

- I would like to unpack this file under my project's
${basedir}/src/main/webapp/scripts.

- I don't know if it is ok to keep such artifacts in the maven local
repository, but for right now I have kept the Dojo library at
  .m2/repository/dojo/ajax/2006.10.10/ajax-2006.10.10.zip

- I was playing around with the assembly:unpack goal to unpack the
library. I tried the following command but it absolutely did not work -
obviously I don't know how to use it:
  mvn assembly:unpack \
  -DfinalName=ajax-2006.10.10.zip \
  -DoutputDirectory=${basedir}/src/main/webapp/scripts

- I would ideally like to have a goal in my pom.xml which will make it
easy to perform the unpacking, something like
  mvn unpack-dojo
  How can I create something equivalent to this?

Thanks for your help.
Naresh

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



RE: How to unpack a zip file into a source directory

2006-10-15 Thread Naresh Bhatia
Please ignore this message. I had sent it to the mailing list without
realizing that I was not subscribed to the list. This message has
already been answered satisfactorily.

Naresh

-Original Message-
From: Naresh Bhatia [mailto:[EMAIL PROTECTED] 
Sent: Saturday, October 14, 2006 11:11 AM
To: users@maven.apache.org
Subject: How to unpack a zip file into a source directory

Hi,

I would like to unpack a zip file into a source directory using Maven.
What is the best way to do this? Here are the details of what I am
trying to do:

- The zip file is essentially the Dojo JavaScript library
(ajax-2006.10.10.zip ) - it simply contains JavaScript source.

- I would like to unpack this file under my project's
${basedir}/src/main/webapp/scripts.

- I don't know if it is ok to keep such artifacts in the maven local
repository, but for right now I have kept the Dojo library at
  .m2/repository/dojo/ajax/2006.10.10/ajax-2006.10.10.zip

- I was playing around with the assembly:unpack goal to unpack the
library. I tried the following command but it absolutely did not work -
obviously I don't know how to use it:
  mvn assembly:unpack \
  -DfinalName=ajax-2006.10.10.zip \
  -DoutputDirectory=${basedir}/src/main/webapp/scripts

- I would ideally like to have a goal in my pom.xml which will make it
easy to perform the unpacking, something like
  mvn unpack-dojo
  How can I create something equivalent to this?

Thanks for your help.
Naresh

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



How to unpack a zip file into a source directory

2006-10-14 Thread Naresh Bhatia
Hi,

I would like to unpack a zip file into a source directory using Maven.
What is the best way to do this? Here are the details of what I am
trying to do:

- The zip file is essentially the Dojo JavaScript library
(ajax-2006.10.10.zip ) - it simply contains JavaScript source.

- I would like to unpack this file under my project's
${basedir}/src/main/webapp/scripts.

- I don't know if it is ok to keep such artifacts in the maven local
repository, but for right now I have kept the Dojo library at
  .m2/repository/dojo/ajax/2006.10.10/ajax-2006.10.10.zip

- I was playing around with the assembly:unpack goal to unpack the
library. I tried the following command but it absolutely did not work -
obviously I don't know how to use it:
  mvn assembly:unpack \
  -DfinalName=ajax-2006.10.10.zip \
  -DoutputDirectory=${basedir}/src/main/webapp/scripts

- I would ideally like to have a goal in my pom.xml which will make it
easy to perform the unpacking, something like
  mvn unpack-dojo
  How can I create something equivalent to this?

Thanks for your help.
Naresh

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



Re: How to unpack a zip file into a source directory

2006-10-14 Thread Wendy Smoak

On 10/14/06, Naresh Bhatia [EMAIL PROTECTED] wrote:


I would like to unpack a zip file into a source directory using Maven.
What is the best way to do this?


I'm doing something similar with the Selenium zip file, using
dependency-maven-plugin's 'unpack' goal.

Take a look at this wiki page:
   http://docs.codehaus.org/display/MAVENUSER/Maven+and+Selenium

--
Wendy

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



RE: How to unpack a zip file into a source directory

2006-10-14 Thread Naresh Bhatia
Thanks so much Wendy. That is exactly what I was looking for.

Naresh

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Saturday, October 14, 2006 11:34 AM
To: Maven Users List
Subject: Re: How to unpack a zip file into a source directory

On 10/14/06, Naresh Bhatia [EMAIL PROTECTED] wrote:

 I would like to unpack a zip file into a source directory using Maven.
 What is the best way to do this?

I'm doing something similar with the Selenium zip file, using
dependency-maven-plugin's 'unpack' goal.

Take a look at this wiki page:
http://docs.codehaus.org/display/MAVENUSER/Maven+and+Selenium

-- 
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: How to unpack a zip file into a source directory

2006-10-14 Thread Naresh Bhatia
Wendy,

Quick question. It seems that the dependency-maven-plugin does not
recognize the .zip extension. I had to change the extension to .jar to
make the plugin work. Is my understanding correct?

Thanks.
Naresh

-Original Message- 
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Saturday, October 14, 2006 11:34 AM 
To: Maven Users List 
Subject: Re: How to unpack a zip file into a source directory 

On 10/14/06, Naresh Bhatia [EMAIL PROTECTED] wrote: 

 I would like to unpack a zip file into a source directory using Maven.

 What is the best way to do this? 

I'm doing something similar with the Selenium zip file, using 
dependency-maven-plugin's 'unpack' goal. 

Take a look at this wiki page: 
http://docs.codehaus.org/display/MAVENUSER/Maven+and+Selenium 

-- 
Wendy

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



Re: How to unpack a zip file into a source directory

2006-10-14 Thread Wendy Smoak

On 10/14/06, Naresh Bhatia [EMAIL PROTECTED] wrote:

Wendy,

Quick question. It seems that the dependency-maven-plugin does not
recognize the .zip extension. I had to change the extension to .jar to
make the plugin work. Is my understanding correct?


You can use the type element to tell the dependency plugin what to look for.

Take a look at this old revision of one of my wiki pages, when I was
still installing the Selenium distribution .zip file in my local
repository:

http://wiki.wsmoak.net/cgi-bin/wiki.pl?action=browseid=Maven/Seleniumrevision=5

artifactItem
  groupIdorg.openqa/groupId
  artifactIdselenium-core/artifactId
  version0.7.0/version
  typezip/type   ---
/artifactItem

HTH,
--
Wendy

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



RE: How to unpack a zip file into a source directory

2006-10-14 Thread Naresh Bhatia
Perfect! That worked like a charm. Thanks again Wendy.

Naresh

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Saturday, October 14, 2006 10:32 PM
To: Maven Users List
Subject: Re: How to unpack a zip file into a source directory

On 10/14/06, Naresh Bhatia [EMAIL PROTECTED] wrote:
 Wendy,

 Quick question. It seems that the dependency-maven-plugin does not
 recognize the .zip extension. I had to change the extension to .jar to
 make the plugin work. Is my understanding correct?

You can use the type element to tell the dependency plugin what to
look for.

Take a look at this old revision of one of my wiki pages, when I was
still installing the Selenium distribution .zip file in my local
repository:

http://wiki.wsmoak.net/cgi-bin/wiki.pl?action=browseid=Maven/Seleniumr
evision=5

artifactItem
   groupIdorg.openqa/groupId
   artifactIdselenium-core/artifactId
   version0.7.0/version
   typezip/type   ---
/artifactItem

HTH,
-- 
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: Second source directory for generated code

2006-09-24 Thread Lakshman Srilakshmanan
Hi Olaf,

I take it that you don't have a well formed maven plugin for generating
your source files.

If the above is true, then you would be better off developing a maven
plugin that generates your source file and adds the directory to your
POM dynamically.
 
Ref to Pg 147 in Better builds with Maven on how to add a new source
directory from within your mojo.

Thanks
Lakshman


 -Original Message-
 From: Olaf Kossak [mailto:[EMAIL PROTECTED]
 Sent: Friday, 22 September 2006 10:54 PM
 To: users@maven.apache.org
 Subject: Second source directory for generated code
 
 Hi there,
 
 after googeling for an hour without result I need some help: How can I
 separate my handwritten source code under version control from my
generated
 code (not under version control) Some manually and generated classes
are
 interdependent and need to be placed in same packages. The perfect
solution
 in Eclipse are two source directories, src/main/java which one is
under
 version control and target/src-gen/main/java which is not versioned.
 
 But how can I tell about this to Maven2?
 
 Olaf Kossak
 
 
 -
 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]



Second source directory for generated code

2006-09-22 Thread Olaf Kossak
Hi there,

after googeling for an hour without result I need some help: How can I
separate my handwritten source code under version control from my generated
code (not under version control) Some manually and generated classes are
interdependent and need to be placed in same packages. The perfect solution
in Eclipse are two source directories, src/main/java which one is under
version control and target/src-gen/main/java which is not versioned.

But how can I tell about this to Maven2?

Olaf Kossak


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



Re: Second source directory for generated code

2006-09-22 Thread Tomislav Stojcevich

Use the build helper plugin to add additional source paths

http://mojo.codehaus.org/build-helper-maven-plugin/

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



Re: Second source directory for generated code

2006-09-22 Thread Nick Stolwijk
You are almost right with your suggestion. You can put your generated 
files in /target/generates/sub-dir


Hth,

Nick S.

Olaf Kossak wrote:

Hi there,

after googeling for an hour without result I need some help: How can I
separate my handwritten source code under version control from my generated
code (not under version control) Some manually and generated classes are
interdependent and need to be placed in same packages. The perfect solution
in Eclipse are two source directories, src/main/java which one is under
version control and target/src-gen/main/java which is not versioned.

But how can I tell about this to Maven2?

Olaf Kossak


-
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: [m2] Jetty 6 Plugin does not recognize custom webapp source directory

2006-01-10 Thread Brett Porter
Hi Matt,

Check out the Jetty docs:
http://jetty.mortbay.org/jetty6/maven-plugin/howto.html

You can configure the web resources path. Unfortunately, we haven't
enabled a mechanism for the war plugin to share its configuration.

- Brett

On 1/11/06, Matt Raible [EMAIL PROTECTED] wrote:
 I decided to try Brett's Jetty 6 HowTo this morning:

 http://blogs.codehaus.org/people/brett/archives/001306_developing_with_jetty_where_have_you_been_all_my_life.html

 Unfortunately, it doesn't seem to work with my custom webapp source
 directory.  Here's my pom.xml:

   plugin
 artifactIdmaven-war-plugin/artifactId
 configuration
   warSourceDirectoryweb/warSourceDirectory
 /configuration
   /plugin
   plugin
 groupIdorg.mortbay.jetty/groupId
 artifactIdmaven-jetty6-plugin/artifactId
 configuration
 scanIntervalSeconds10/scanIntervalSeconds
 contextPath//contextPath
 /configuration
   /plugin

 [INFO] [jetty6:run]
 [INFO] Configuring Jetty for project: Equinox
 [INFO] 
 -
 ---
 [ERROR] BUILD ERROR
 [INFO] 
 -
 ---
 [INFO] Webapp source directory C:\Source\equinox\src\main\webapp does not 
 exist
 [INFO] 
 -
 ---
 [INFO] For more information, run Maven with the -e switch
 [INFO] 
 -
 ---
 [INFO] Total time: 3 minutes 25 seconds
 [INFO] Finished at: Tue Jan 10 07:40:45 MST 2006
 [INFO] Final Memory: 4M/8M
 [INFO] 
 -

 Matt

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



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



[m2] how can I add more source directory?

2005-12-29 Thread Man-Chi Leung

I would like to add more source directory for groovy script.

but if I add the following in pom.xml, the default setting of src/ 
main/java will be removed!


build
sourceDirectorysrc/main/groovy/sourceDirectory
   ...
/build


YES ! the following will caused xml syntax error!!
build
sourceDirectorysrc/main/groovy:/sourceDirectory 
sourceDirectorysrc/main/groovy/sourceDirectory
/build

pls help

Regards,
manchi

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



Re: [m2] how can I add more source directory?

2005-12-29 Thread Rinku

Hi,

you can use the build-helper-plugin available from the Mojo sandbox to add 
an extra source dir.


http://svn.mojo.codehaus.org/trunk/mojo/mojo-sandbox/build-helper-maven-plugin/

This allows adding an extra source directory, though I don't think it will 
update/change the pom.xml for the extra directory added.


Cheers,

Rahul

- Original Message - 
From: Man-Chi Leung [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Thursday, December 29, 2005 11:58 PM
Subject: [m2] how can I add more source directory?



I would like to add more source directory for groovy script.

but if I add the following in pom.xml, the default setting of src/ 
main/java will be removed!


build
sourceDirectorysrc/main/groovy/sourceDirectory
   ...
/build


YES ! the following will caused xml syntax error!!
build
sourceDirectorysrc/main/groovy:/sourceDirectory 
sourceDirectorysrc/main/groovy/sourceDirectory

/build

pls help

Regards,
manchi

-
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: [m2] how can I add more source directory?

2005-12-29 Thread Dennis Ho
Hi,

I have use testIncludes which works when configuring the
compiler plugin.  See the following:

sourceDirectory./sourceDirectory
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
version2.0/version
configuration
source1.5/source
target1.5/target
includes
include
implementation=java.lang.Stringsrc/main/java/**/*.java/include
include
implementation=java.lang.Stringtarget/schema-src/**/*.java/include
/includes
testIncludes
testInclude
implementation=java.lang.Stringsrc/test/java/**/*.java/testInclude
/testIncludes
/configuration
/plugin

Dennis.

-Original Message-
From: Rinku [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 29, 2005 4:10 AM
To: Maven Users List
Subject: Re: [m2] how can I add more source directory?

Hi,

you can use the build-helper-plugin available from the Mojo sandbox to
add 
an extra source dir.

http://svn.mojo.codehaus.org/trunk/mojo/mojo-sandbox/build-helper-maven-
plugin/

This allows adding an extra source directory, though I don't think it
will 
update/change the pom.xml for the extra directory added.

Cheers,

Rahul

- Original Message - 
From: Man-Chi Leung [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Thursday, December 29, 2005 11:58 PM
Subject: [m2] how can I add more source directory?


I would like to add more source directory for groovy script.

 but if I add the following in pom.xml, the default setting of src/ 
 main/java will be removed!

 build
 sourceDirectorysrc/main/groovy/sourceDirectory
...
 /build


 YES ! the following will caused xml syntax error!!
 build
 sourceDirectorysrc/main/groovy:/sourceDirectory 
 sourceDirectorysrc/main/groovy/sourceDirectory
 /build

 pls help

 Regards,
 manchi

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



Removing a source directory?

2005-11-30 Thread Jochen Wiedmann


Hi,

I am about to convert a project from Ant to Maven 2. The project is 
typically compiled with Java 5. However, we have made very conservative 
use of Java 5 features, mainly warnings (@Override, @SuppressWarnings, 
...) This conservative use enables us to write a simple source code 
generator, that removes Java 5 features and converts to Java 1.4. In 
other words, we are able to create Java 1.4 compliant binaries.


My approach on porting this to Maven was as follows: Create a generator 
plugin, that does the conversion, removes the original source directory 
from the project and adds the new directory. Unfortunately, this won't 
work, because the MavenProject class only allows me to add source 
directories.


Any ideas?


Regards,

Jochen


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



Re: Maven multi-source directory ?

2005-09-25 Thread Andy Glick

Marouane Amraoui wrote:

there is way to specify multi source directory in maven project :

example my source files :

  1.frwk1/src/java
  2.frwk2/src/java

i want make only one project maven and only one artifact frwk.jar that containe 
both source frwk1 and frwk2.


Hi,

I take it that you are using Maven 1.X.X, yes? I'm not clear where your project.xml file 
is, but if you've declared 1 location as the 
sourceDirectory/sourceDirectory you can use syntax something like this:

 preGoal name=java:compile
   path id=additional.src.path
 pathelement location=src/resources/
 pathelement location=target/java/
   /path
   maven:addPath id=maven.compile.src.set refid=additional.src.path/
 /preGoal

You create a path which contains any src directory trees that you want to add 
and then you add that path to the existing maven.compile.src.set specification.

Hope that this helps.


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



Maven multi-source directory ?

2005-09-23 Thread Marouane Amraoui

there is way to specify multi source directory in maven project :

example my source files :

  1.frwk1/src/java
  2.frwk2/src/java

i want make only one project maven and only one artifact frwk.jar that containe 
both source frwk1 and frwk2.


thanks in advance.

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



Re:[m2] Overriding webapp source directory

2005-06-17 Thread Yann LE DU
I guess my webmail is quite buggy then :)

I was already given the solution for the build tag,
but thanks for the detail about ${basedir} !

Regards,

Yann

-- Mail d'origine ---

 De : quot;Kenney Westerhofquot; [EMAIL PROTECTED]
 A  : quot;Maven Users Listquot;
users@maven.apache.org
 Cc :
 Date   : Thu, 16 Jun 2005 11:21:43 +0200 (CEST)
 Objet  : Re:[m2] Overriding webapp source directory



-On Thu, 16 Jun 2005, Yann LE DU wrote:
-
-The first post seemed fine :)
-
-I guess you're using the maven-war-plugin (you
specified war
-as the packaging in the pom?). In that case,
-add the following below your build tag:
-
-   plugins
- plugin
-   artifactIdmaven-war-plugin/artifactId
-   configuration
-
warSourceDirectoryfinal-foo/WebContent/warSourceDirectory
-   /configuration
-/plugin
-   /plugins
-
-Btw it's best to prepend ${basedir} to those paths,
because
-if the project is part of a multiproject build the current
-directory is taken as a starting point which may be bad ;)
-
--- Kenney
-
-
- So much for my project tree, all blanks were gotten rid
- of :)
-
- Here is another try :
-
- - foo
- - |-- final-foo
- - |-- JavaSource
- - |-- com
- - |-- ...
- - |-- WebContent
- - |-- WEB-INF
- - |-- ...
- - |--...
-
-
- Yann
-
-
-
- -- Mail d'origine ---
-
-  De : quot;Yann LE DUquot; [EMAIL PROTECTED]
-  A  : users@maven.apache.org
-  Cc :
-  Date   : Thu, 16 Jun 2005 11:06:11 +0200
-  Objet  : [m2] Overriding webapp source directory
-
-
-
- -Hi there,
- -
- -I'm 2-week-old to Maven and trying to build a small
- -webapp with Maven (for POC). The thing is, my corp. is
- -already using Eclipse Web Tools, which forces us into
- -this kind of project structure (I hid test directories
- -for readability) :
- -
- -foo
- -|-- final-foo
- -|-- JavaSource
- -|-- com
- -|-- ...
- -|-- WebContent
- -|-- WEB-INF
- -|-- ...
- -|--...
- -
- -Even though I know this isn't the way Maven is supposed
- -to work :) , I partly solved the issue by including the
- -following in my foo/pom.xml :
- -
- -build
- -
sourceDirectoryfinal-foo/JavaSource/sourceDirectory
- -/build
- -
- -...which is working well, but I'd like to do the same
- -for the webapp directory, that is, something like :
- -
-
-webappSourceDirectoryfinal-foo/WebContent/webappSourceDirectory
- -
- -I haven't found anything in docs, JIRA, user lists. Is
- -there any way ?
- -
- -Yann
- -
- -
-
--
- -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]
-
-
-
---
-Kenney Westerhof
-http://www.neonics.com
-GPG public key: http://www.gods.nl/~forge/kenneyw.key
-
--
-To unsubscribe, e-mail: [EMAIL PROTECTED]
-For additional commands, e-mail:
[EMAIL PROTECTED]
-
-


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



[m2] Overriding webapp source directory

2005-06-16 Thread Yann LE DU
Hi there,

I'm 2-week-old to Maven and trying to build a small
webapp with Maven (for POC). The thing is, my corp. is
already using Eclipse Web Tools, which forces us into
this kind of project structure (I hid test directories
for readability) :

foo
|-- final-foo
|-- JavaSource
|-- com
|-- ...
|-- WebContent
|-- WEB-INF
|-- ...
|--...

Even though I know this isn't the way Maven is supposed
to work :) , I partly solved the issue by including the
following in my foo/pom.xml :

build
  sourceDirectoryfinal-foo/JavaSource/sourceDirectory
/build

...which is working well, but I'd like to do the same
for the webapp directory, that is, something like :

webappSourceDirectoryfinal-foo/WebContent/webappSourceDirectory

I haven't found anything in docs, JIRA, user lists. Is
there any way ?

Yann


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



Re:[m2] Overriding webapp source directory

2005-06-16 Thread Yann LE DU
So much for my project tree, all blanks were gotten rid
of :)

Here is another try :

- foo
- |-- final-foo
- |-- JavaSource
- |-- com
- |-- ...
- |-- WebContent
- |-- WEB-INF
- |-- ...
- |--...


Yann



-- Mail d'origine ---

 De : quot;Yann LE DUquot; [EMAIL PROTECTED]
 A  : users@maven.apache.org
 Cc :
 Date   : Thu, 16 Jun 2005 11:06:11 +0200
 Objet  : [m2] Overriding webapp source directory



-Hi there,
-
-I'm 2-week-old to Maven and trying to build a small
-webapp with Maven (for POC). The thing is, my corp. is
-already using Eclipse Web Tools, which forces us into
-this kind of project structure (I hid test directories
-for readability) :
-
-foo
-|-- final-foo
-|-- JavaSource
-|-- com
-|-- ...
-|-- WebContent
-|-- WEB-INF
-|-- ...
-|--...
-
-Even though I know this isn't the way Maven is supposed
-to work :) , I partly solved the issue by including the
-following in my foo/pom.xml :
-
-build
-  sourceDirectoryfinal-foo/JavaSource/sourceDirectory
-/build
-
-...which is working well, but I'd like to do the same
-for the webapp directory, that is, something like :
-
-webappSourceDirectoryfinal-foo/WebContent/webappSourceDirectory
-
-I haven't found anything in docs, JIRA, user lists. Is
-there any way ?
-
-Yann
-
-
--
-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:[m2] Overriding webapp source directory

2005-06-16 Thread Yann LE DU
Well, this isn't working either, so let's jump to
something less readable :)

foo
foo/final-foo
foo/final-foo/JavaSource
foo/final-foo/JavaSource/com
foo/final-foo/JavaSource/com/...
foo/final-foo/WebContent
foo/final-foo/WebContent/WEB-INF
foo/final-foo/WebContent/WEB-INF/...
foo/final-foo/WebContent/...


Sorry for all the spamming :)

Yann


-- Mail d'origine ---

 De : quot;Yann LE DUquot; [EMAIL PROTECTED]
 A  : quot;Maven Users Listquot;
users@maven.apache.org
 Cc :
 Date   : Thu, 16 Jun 2005 11:15:51 +0200
 Objet  : Re:[m2] Overriding webapp source directory



-So much for my project tree, all blanks were gotten rid
-of :)
-
-Here is another try :
-
-- foo
-- |-- final-foo
-- |-- JavaSource
-- |-- com
-- |-- ...
-- |-- WebContent
-- |-- WEB-INF
-- |-- ...
-- |--...
-
-
-Yann
-
-
-
--- Mail d'origine ---
-
- De : quot;Yann LE DUquot; [EMAIL PROTECTED]
- A  : users@maven.apache.org
- Cc :
- Date   : Thu, 16 Jun 2005 11:06:11 +0200
- Objet  : [m2] Overriding webapp source directory
-
-
-
--Hi there,
--
--I'm 2-week-old to Maven and trying to build a small
--webapp with Maven (for POC). The thing is, my corp. is
--already using Eclipse Web Tools, which forces us into
--this kind of project structure (I hid test directories
--for readability) :
--
--foo
--|-- final-foo
--|-- JavaSource
--|-- com
--|-- ...
--|-- WebContent
--|-- WEB-INF
--|-- ...
--|--...
--
--Even though I know this isn't the way Maven is supposed
--to work :) , I partly solved the issue by including the
--following in my foo/pom.xml :
--
--build
--  sourceDirectoryfinal-foo/JavaSource/sourceDirectory
--/build
--
--...which is working well, but I'd like to do the same
--for the webapp directory, that is, something like :
--
--webappSourceDirectoryfinal-foo/WebContent/webappSourceDirectory
--
--I haven't found anything in docs, JIRA, user lists. Is
--there any way ?
--
--Yann
--
--
---
--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: [m2] Overriding webapp source directory

2005-06-16 Thread Edwin Punzalan

Hi,

Have you tried setting the |warSourceDirectory| property of the m2 
maven-war-plugin?


Your pom should look like this:


 build
   plugins
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-war-plugin/artifactId
   configuration
 warSourceDirectoryfinal-foo/WebContent/warSourceDirectory
   /configuration
 /plugin
   /plugins
 /build
.

Yann LE DU wrote:


Hi there,

I'm 2-week-old to Maven and trying to build a small
webapp with Maven (for POC). The thing is, my corp. is
already using Eclipse Web Tools, which forces us into
this kind of project structure (I hid test directories
for readability) :

foo
|-- final-foo
   |-- JavaSource
   |-- com
   |-- ...
   |-- WebContent
   |-- WEB-INF
   |-- ...
   |--...

Even though I know this isn't the way Maven is supposed
to work :) , I partly solved the issue by including the
following in my foo/pom.xml :

build
 sourceDirectoryfinal-foo/JavaSource/sourceDirectory
/build

...which is working well, but I'd like to do the same
for the webapp directory, that is, something like :

webappSourceDirectoryfinal-foo/WebContent/webappSourceDirectory

I haven't found anything in docs, JIRA, user lists. Is
there any way ?

Yann


-
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: [m2] Overriding webapp source directory

2005-06-16 Thread Yann LE DU
Just tried, it works just fine !

I guess I can do the same with any other plugin goal
parameter, which I didn't get from the docs.

Thanks Edwin !

Yann

-- Mail d'origine ---

 De : quot;Edwin Punzalanquot; [EMAIL PROTECTED]
 A  : quot;Maven Users Listquot;
users@maven.apache.org
 Cc :
 Date   : Thu, 16 Jun 2005 17:50:15 +0800
 Objet  : Re: [m2] Overriding webapp source directory



-Hi,
-
-Have you tried setting the |warSourceDirectory|
property of the m2
-maven-war-plugin?
-
-Your pom should look like this:
-
-
-  build
-plugins
-  plugin
-groupIdorg.apache.maven.plugins/groupId
-artifactIdmaven-war-plugin/artifactId
-configuration
-
warSourceDirectoryfinal-foo/WebContent/warSourceDirectory
-/configuration
-  /plugin
-/plugins
-  /build
-.
-
-Yann LE DU wrote:
-
-Hi there,
-
-I'm 2-week-old to Maven and trying to build a small
-webapp with Maven (for POC). The thing is, my corp. is
-already using Eclipse Web Tools, which forces us into
-this kind of project structure (I hid test directories
-for readability) :
-
-foo
-|-- final-foo
-|-- JavaSource
-|-- com
-|-- ...
-|-- WebContent
-|-- WEB-INF
-|-- ...
-|--...
-
-Even though I know this isn't the way Maven is supposed
-to work :) , I partly solved the issue by including the
-following in my foo/pom.xml :
-
-build
-  sourceDirectoryfinal-foo/JavaSource/sourceDirectory
-/build
-
-...which is working well, but I'd like to do the same
-for the webapp directory, that is, something like :
-
-webappSourceDirectoryfinal-foo/WebContent/webappSourceDirectory
-
-I haven't found anything in docs, JIRA, user lists. Is
-there any way ?
-
-Yann
-
-
--
-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: [m2] Overriding webapp source directory

2005-06-16 Thread Brett Porter
Kenney,

 Btw it's best to prepend ${basedir} to those paths, because
 if the project is part of a multiproject build the current
 directory is taken as a starting point which may be bad ;)

warSourceDirectory is (or should be!) of type java.io.File, so will
automatically have basedir prepended :)

Still - not a bad practice anyway, just thought I should point it out.

- Brett

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



source directory

2004-09-24 Thread Ricardo de Souza Moura
Can I have two diferentes source directory ?
_
MSN Hotmail, o maior webmail do Brasil.  http://www.hotmail.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: source directory

2004-09-24 Thread Michele_Forte
No you can't .

But you can write a pregoal of the java:compile that process some source
code normally and then append to the  maven.compile.src.set  variable
like that

  goal name=othersource description=Generate source from antlr
grammars

!-- in case generate the source here --

ant:path id=maven.extra.src.set location=
${project.src.gen.dir} /

m:addPath id=maven.compile.src.set refid=
maven.extra.compile.src.set /

  /goal
  preGoal name=java:compile
attainGoal name=othersource /
  /preGoal

Best Regards
Michele


|-+
| |   Ricardo de Souza|
| |   Moura   |
| |   [EMAIL PROTECTED]|
| |   tmail.com   |
| ||
| ||
| |   24/09/2004 10:59 |
| |   Please respond to|
| |   Maven Users |
| |   List|
| ||
|-+
  
--|
  |
  |
  |
  |
  |
  |
  |
  |
  |
  |
  |To: [EMAIL PROTECTED]   
 |
  |cc: (bcc: Michele Forte/SwissRe)
  |
  |bcc:Michele Forte/SwissRe   
  |
  |Subject:source directory
  |
  
--|




Can I have two diferentes source directory ?

_
MSN Hotmail, o maior webmail do Brasil.  http://www.hotmail.com


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







This e-mail, including attachments, is intended for the person(s) or
company named and may contain confidential and/or legally privileged
information. Unauthorized disclosure, copying or use of this information
may be unlawful and is prohibited. If you are not the intended recipient,
please delete this message and notify the sender


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



Re: source directory

2004-09-24 Thread Michele_Forte
No you can't .

But you can write a pregoal of the java:compile that process some source
code normally and then append to the  maven.compile.src.set  variable
like that

  goal name=othersource description=Generate source from antlr
grammars

!-- in case generate the source here --

ant:path id=maven.extra.src.set location=
${project.src.gen.dir} /

m:addPath id=maven.compile.src.set refid=
maven.extra.compile.src.set /

  /goal
  preGoal name=java:compile
attainGoal name=othersource /
  /preGoal

Best Regards
Michele


|-+
| |   Ricardo de Souza|
| |   Moura   |
| |   [EMAIL PROTECTED]|
| |   tmail.com   |
| ||
| ||
| |   24/09/2004 10:59 |
| |   Please respond to|
| |   Maven Users |
| |   List|
| ||
|-+
  
--|
  |
  |
  |
  |
  |
  |
  |
  |
  |
  |
  |To: [EMAIL PROTECTED]   
 |
  |cc: (bcc: Michele Forte/SwissRe)
  |
  |bcc:Michele Forte/SwissRe   
  |
  |Subject:source directory
  |
  
--|




Can I have two diferentes source directory ?

_
MSN Hotmail, o maior webmail do Brasil.  http://www.hotmail.com


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






This e-mail, including attachments, is intended for the person(s) or
company named and may contain confidential and/or legally privileged
information. Unauthorized disclosure, copying or use of this information
may be unlawful and is prohibited. If you are not the intended recipient,
please delete this message and notify the sender


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



Checkstyle source directory

2004-04-16 Thread Jake Ewerdt
I am preprocessing my src directory using Jass into target/src-jass.  My 
pom.build.sourceDirectory and maven.src.dir values are set to target/src-jass, and I 
have a preGoal on java:compile that preprocesses the src dir.

This is fine for every case except Checkstyle, since Jass messes up the code style 
when it preprocesses.  I would like to get Checkstyle to check the src directory 
instead of target/src-jass.

Looking at the documentation, 
http://maven.apache.org/reference/plugins/checkstyle/properties.html, it seems like I 
should be able to do something like 'maven -Dmaven.src.dir=src checkstyle'.  However, 
looking at the checkstyle project.xml file from CVS, line 151, it is using 
pom.build.sourceDirectory which I can't set from the command line.

Is this a problem with the documentation, or is it something I'm overlooking?

Is there any way around this problem without changing the checkstyle project.xml and 
building a customized maven-checkstyle.jar?

Thanks,

Jake

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