Re: how to run both Maven1 & Maven2 in a single machine..

2007-06-21 Thread Torsten Krall

Hi,

I am using maven1 and maven2 on the same machine without any problem.
You do not have to set a MAVEN_HOME for maven2. Just add the binary-path 
to you PATH.


I am very happy that the developers changed the names of every involved 
binaries.


Regards,
Torsten


Kiran Kodlady schrieb:

Hey..

can we run both MAven1 & maven2 in a single machine??
 If yes, could u plz tell me how can we set  " MAVEN_HOME " for both
versions..

ANy suggestion is highly appreciated...

-Kiran Kodlady
  


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



Re: how to run both Maven1 & Maven2 in a single machine..

2007-06-21 Thread MK Tan
I would suggest you set MAVEN_HOME point to maven1 and 
set M2_HOME point to your maven2.
This is because maven2 does not need to know MAVEN_HOME.

HTH,
MK Tan

- Original Message 
From: Kiran Kodlady <[EMAIL PROTECTED]>
To: users@maven.apache.org
Sent: Friday, June 22, 2007 2:31:17 PM
Subject: how to run both Maven1 & Maven2 in a single machine..



Hey..

can we run both MAven1 & maven2 in a single machine??
 If yes, could u plz tell me how can we set  " MAVEN_HOME " for both
versions..

ANy suggestion is highly appreciated...

-Kiran Kodlady
-- 
View this message in context: 
http://www.nabble.com/how-to-run-both-Maven1---Maven2-in-a-single-machine..-tf3963029s177.html#a11246914
Sent from the Maven - Users mailing list archive at Nabble.com.


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








   

Sick sense of humor? Visit Yahoo! TV's 
Comedy with an Edge to see what's on, when. 
http://tv.yahoo.com/collections/222

Re: how to run both Maven1 & Maven2 in a single machine..

2007-06-21 Thread Tim Kettler

Hi,

sure you can. M2 uses M2_HOME.

-Tim

Kiran Kodlady schrieb:


Hey..

can we run both MAven1 & maven2 in a single machine??
 If yes, could u plz tell me how can we set  " MAVEN_HOME " for both
versions..

ANy suggestion is highly appreciated...

-Kiran Kodlady



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



Re: Skiping module during mvn eclipse:eclipse

2007-06-21 Thread Marcin Waldowski

Heinrich Nirschl wrote:



Sometimes, you can work around this problem by running 'mvn install'
before.

- Henry

  


That's true. But I just want to provide functionality as simple as 
possible to other people from my team, without explanation why they need 
to run mvn install to make it work ;)


Thanks for your replay.

Regards, Marcin

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



how to run both Maven1 & Maven2 in a single machine..

2007-06-21 Thread Kiran Kodlady


Hey..

can we run both MAven1 & maven2 in a single machine??
 If yes, could u plz tell me how can we set  " MAVEN_HOME " for both
versions..

ANy suggestion is highly appreciated...

-Kiran Kodlady
-- 
View this message in context: 
http://www.nabble.com/how-to-run-both-Maven1---Maven2-in-a-single-machine..-tf3963029s177.html#a11246914
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: Skiping module during mvn eclipse:eclipse

2007-06-21 Thread Marcin Waldowski

Dan Tran wrote:
The patch for this enhancement has been applied.  The release of new 
eclipse

plugin is coming very soon.

-D



Great. Many thanks.



On 6/21/07, Dan Tran <[EMAIL PROTECTED]> wrote:


please vote for this enhencement request

http://jira.codehaus.org/browse/MECLIPSE-271



I would like to vote, but I'm afraid it is not possible. Jira says "You 
cannot vote or change your vote on resolved issues" :-) Thank for your path.


Regards, Marcin

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



Re: Install & Deploy an artifact generated with Assembly Plugin

2007-06-21 Thread Tim Kettler

John,

you can attach the jar file with the attach:artifact goal from 
build-helper-maven-plugin [1] over at the mojo project.


-Tim

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

jp4 schrieb:

I use the assembly plugin to create an executable jar file that contains all
of it's dependencies.  The file name is
foo-1.0-SNAPSHOT-jar-with-dependencies.jar.  I would like to be able to
install this artifact locally and/or deploy to a remote repository.  How can
I do this?

I have included the assembly plugin configuration below if that helps.



org.apache.maven.plugins
maven-assembly-plugin


package


   
jar-with-dependencies.xml


   
target/assembly/work


   
src/main/resources/META-INF/MANIFEST.MF



assembly





Thanks,

jp4



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



Re: "-javadoc" jars

2007-06-21 Thread Tim Kettler

David,

the dependency:copy-dependencies goal uses the project dependencies, the 
dependency:copy goal uses a list of dependencies defined in the plugin 
configuration (See [1] for an example). If you want the javadoc jar 
unpacked to the target location just use the dependency:unpack goal.


The missing classifer description is a bug in the documentation that 
should be fixed. A classifier attribute *is* present in the ArtifactItem 
class [2].


-Tim

[1] 
http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying-artifacts.html
[2] 
http://svn.apache.org/viewvc/maven/plugins/tags/maven-dependency-plugin-2.0-alpha-4/src/main/java/org/apache/maven/plugin/dependency/fromConfiguration/ArtifactItem.java?view=markup


[EMAIL PROTECTED] schrieb:

Tim,

I read the maven-dependency-plugin over and how would you tell the plugin 
to copy the javadoc jar and not the project jar?  I did not see 
 as an option. 


From the maven-dependency-plugin website
Collection of ArtifactItems to work on. (ArtifactItem contains groupId, 
artifactId, version, type, location, destFile, markerFile and overwrite.) 


Thanks,

David



Tim Kettler <[EMAIL PROTECTED]> 
06/21/2007 09:09 AM

Please respond to
"Maven Users List" 


To
Maven Users List 
cc

Subject
Re: "-javadoc" jars






To add/clarify my previous mail:

Adding the javadoc dependency to the  section 
is probably not what you want (this would add the javadoc jar to the 
compilation classpath as well).


Instead I would use the maven-dependency-plugin [1] to copy the jar [2] 
to the right location in the target directory so that it gets jarred up 
to the final war.


[1] http://maven.apache.org/plugins/maven-dependency-plugin/
[2] http://maven.apache.org/plugins/maven-dependency-plugin/copy-mojo.html

-Tim

Tim Kettler schrieb:
No, with  you just tell the plugin where to create 
the javadoc jar. This will not help you to access it as a dependency 
from a repository.


However, your actual problem is solved easily. It's no problem at all 
that the javadoc jar is deployed alongsite the main artifact in the same 


directory. This is by design! These auxiliary artifacts are distinct 
from the main artifact in the directory by the "-{classifier}.jar" part 
of their name. To declare a dependency to them just add the classifier 
part to the dependency description in your pom.


For example:


  mygroup
  myartifact
  0.1
  javadoc


-Tim

[EMAIL PROTECTED] schrieb:

Tim

I haven't.  I missed that option while looking at all those other 
options. = )  What I would like to do is be able to list these javadoc 
jars as a dependency of another project.  However they are installed 
to the same directory as the project jar.  I'm thinking I need them in 
a separate directory so I can grab them as a dependency.  Hopefully 
the jarOutputDirectory will help me do this.  If anyone knows of a 
different way, please let me know.


Thanks for your response,

David



Tim Kettler <[EMAIL PROTECTED]> 06/21/2007 12:27 AM
Please respond to
"Maven Users List" 


To
Maven Users List 
cc

Subject
Re: "-javadoc" jars






Hi,

have you tried the 'jarOutputDirectory' config parameter found in the 
plugin documentation [1]?


-Tim

[1] http://maven.apache.org/plugins/maven-javadoc-plugin/jar-mojo.html

[EMAIL PROTECTED] schrieb:

Hi Everyone,

Is there anyway to include the "-javadoc" jars created  by the 
javadoc plugin in a war or ear with maven 2?


Thanks,

David Williams
205-271-6159


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


_
CONFIDENTIALITY:  This email (including any attachments) may contain 
confidential, proprietary and privileged information, and unauthorized 
disclosure or use is prohibited.  If you received this email in error, 
please notify the sender and delete this email from your system. 
Thank you.




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


_
CONFIDENTIALITY:  This email (including any attachments) may contain 
confidential, proprietary and privileged information, and unauthorized 
disclosure or use is prohibited.  If you received this email in error, 
please notify the sender and delete this email from your system.  Thank 
you.





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



Re: Contributing a document fix/patch

2007-06-21 Thread Tim Kettler

Brian,

while you're at it: The description of the ArtifactItems collection in 
the copy/unpack mojo doesn't mention that classifier is supported too.


-Tim

Brian E. Fox schrieb:

I found this in a couple of the example pages. I'm redeploying the site
now. Thanks!

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 21, 2007 9:19 AM

To: Maven Users List
Subject: Re: Contributing a document fix/patch

On 6/21/07, Jeff Mutonho <[EMAIL PROTECTED]> wrote:

The plugin is the maven-dependency-plugin , but the actual correction
is in the documentation.In the example usage , the plugin is referred
to as :


  
org.apache.maven.plugins
dependency-maven-plugin



If it's usage.html, it looks like it's already fixed in svn:
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-dependency-plu
gin/src/site/apt/usage.apt

It will show up the next time the site is published.




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



Re: How can the checkstyle plugin be configured to fail the build?

2007-06-21 Thread nitinaggarwal

Hi 

I am facing a similiar issue in my project.
But additionally i want the a checkstyle file FC-CheckStyle.xml 
customized to my project be invoked in order to  find out if there are
checkstyle errors .

how do i do that?

Additionally can some one tell me how can i refer to this file as this is
located in my root directory 
and i want to invoke the file in a directory fc
to be more clear i will provide a brief about my project.

FC-4.0 Source-->application-->fc(my pom is here) 
-->er   (and here)

  -->portal
  --> components-->pom
   --> pom 


Can some one suggest me how to perform this checkstyle validation.
would you suggest me the validation to be at the top level or at every level
as i am having a multli project build.

but the issue with this approach is that all the developers would have to
build the entire project rather than a sub project for finding out check
style errors.

any comments how we can extend something from the top level pom.

Nitin

[EMAIL PROTECTED]







Guillaume Boucherie wrote:
> 
> try something like this.
> 
> 
>   
> 
>   org.apache.maven.plugins
>   maven-checkstyle-plugin
>   
> 
>   
> check
>   
> 
>   
> 
>   
> 
> 
> by default the check goal is link to verify phase
> 
> CletteBou
> 
> 
> 2007/6/21, Andrew Moores <[EMAIL PROTECTED]>:
>>
>> Hello
>>
>> I want to make my build fail if there are any checkstyle errors in my
>> code.  I have added the following to my pom:
>>
>> 
>>   
>> 
>>   org.apache.maven.plugins
>>   maven-checkstyle-plugin
>>   
>>   true
>>   
>> 
>>   
>> 
>>
>> When I execute mvn checkstyle:check my build fails when I have a
>> checkstyle error.
>>
>> When I execute mvn install the build does not fail.  Reading the plugin
>> pages I expected my build to fail for the intall goal as well, what else
>> do
>> I need to add to the POM to make the build fail?
>>
>> I am running Maven 2.0.5.
>>
>> Thanks
>> Andrew
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-can-the-checkstyle-plugin-be-configured-to-fail-the-build--tf3959401s177.html#a11245727
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: Skiping module during mvn eclipse:eclipse

2007-06-21 Thread Dan Tran

The patch for this enhancement has been applied.  The release of new eclipse
plugin is coming very soon.

-D


On 6/21/07, Dan Tran <[EMAIL PROTECTED]> wrote:


please vote for this enhencement request

http://jira.codehaus.org/browse/MECLIPSE-271




On 6/21/07, Heinrich Nirschl <[EMAIL PROTECTED]> wrote:
>
> On Thu, 2007-06-21 at 12:13 +0200, Marcin Waldowski wrote:
> > Nick, thanks for your replay.
> >
> > My problem is that 'mvn eclipse:eclipse' fail on ear module, because
> of
> > '[INFO] Failed to resolve artifact'. This missing artifact is other
> > module of my my multiple module project. It's weird, because 'mvn
> > package' works ok.
> >
>
> Sometimes, you can work around this problem by running 'mvn install'
> before.
>
> - Henry
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



Re: Interpolated expression to reference configuration elements of another plugin

2007-06-21 Thread Olivier Dehon

Steven Rowe wrote:

What ${} expression should I use in my POM or Mojo to reference
configuration values of another plugin?


If you define a property in the POM, and then use ${} syntax to refer to
the property in the configuration for one plugin, you can refer to this
same property value anywhere else in the POM, including in another
plugin's configuration.
  

That's one way to go indeed. Thanks for your answer.

The problem I am trying to solve is as follows:
I am writing a plugin, which works in conjunction with the war plugin.
In this plugin, I would like to re-use some of the configured values, 
even if
they have not been explicitly set in the POM (like warSourceDirectory or 
webXml).


In my Mojo, I could then use something along the lines of:

/*
* @parameter expression=${project.build.plugin.war.warSourceDirectory}
*/

Hopefully I made myself clearer?

-Olivier

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



Re: Skiping module during mvn eclipse:eclipse

2007-06-21 Thread Dan Tran

please vote for this enhencement request

http://jira.codehaus.org/browse/MECLIPSE-271




On 6/21/07, Heinrich Nirschl <[EMAIL PROTECTED]> wrote:


On Thu, 2007-06-21 at 12:13 +0200, Marcin Waldowski wrote:
> Nick, thanks for your replay.
>
> My problem is that 'mvn eclipse:eclipse' fail on ear module, because of
> '[INFO] Failed to resolve artifact'. This missing artifact is other
> module of my my multiple module project. It's weird, because 'mvn
> package' works ok.
>

Sometimes, you can work around this problem by running 'mvn install'
before.

- Henry


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




Perforce login

2007-06-21 Thread Jackson, Brian R
I'm attempting to run "mvn scm:update" on my project but I get the
following output:

 


-

C:\Projects\SuperPOMs\espn>mvn scm:update

[INFO] Scanning for projects...

[INFO] Searching repository for plugin with prefix: 'scm'.

[INFO]

-

---

[INFO] Building The ESPN Super POM

[INFO]task-segment: [scm:update] (aggregator-style)

[INFO]

-

---

[INFO] [scm:update]

[INFO] Checkout working directory: C:\Projects\SuperPOMs\espn

[INFO] Executing: p4 -d C:\Projects\SuperPOMs\espn -p
sw-ct-perfor01c.dev.espn3.

com client -i

[ERROR] Provider message:

[ERROR] Unable to sync.  Are you logged in?

[ERROR] Command output:

[ERROR]

[INFO]


[ERROR] BUILD ERROR

[INFO]


[INFO] Command failed.Unable to sync.  Are you logged in?

[INFO]


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

[INFO]


[INFO] Total time: 3 seconds

[INFO] Finished at: Thu Jun 21 18:12:19 EDT 2007

[INFO] Final Memory: 5M/12M

[INFO]


 

C:\Projects\SuperPOMs\espn>


-

 

 

Any idea what I'm doing wrong.  I've configured my username in my
pom.xml as such:







maven-idea-plugin



true

true









maven-source-plugin





maven-scm-plugin



${scm.username}

${scm.password}









 

And setup my scm info as such:



 
scm:perforce:${perforce.host}:${perforce.port}//vss_espneng/
Projects/SuperPOMs/espn

 
scm:perforce:${perforce.host}:${perforce.port}//vss
_espneng/Projects/SuperPOMs/espn



http://longurl...



 

The properties referenced are configured in my settings.xml:

 

 











espn3.profile.dev







never



espn3

 
http://example.corp.espn3.com/px/repository/espn3





espn3.snapshot



false





true

interval:30



http://
example.corp.espn3.com/px/repository/espn3.snapshot







MYUSERNAME

123456

example.dev.espn3.com

1234









Re: using javadocDirectory with maven-javadoc-plugin

2007-06-21 Thread Adam Hardy

Heinrich Nirschl on 16/06/07 21:39, wrote:

On Sat, 2007-06-16 at 19:21 +0100, Adam Hardy wrote:

Heinrich Nirschl on 15/06/07 18:35, wrote:

On Thu, 2007-06-14 at 23:07 +0100, Adam Hardy wrote:
I thought I'd post a more generic description since it seems no-one else 
recognises the problem.


Can't find any references to it in the JIRA or on the mailing list or in fact 
just generally by googling (there is some stuff but it was for mvn 1.1 and fixed).


Using the src/main/javadoc directory for package.html files just doesn't work.

Does anyone successfully process their package.html and images etc from 
src/main/javadoc? I'd be interested to hear.


Thanks
Adam


Yes, this works here (Java 5, Maven 2.0.6, javadoc plugin 2.2). At least
the package.html bit, I did not try images. There is an issue with
aggregated documentation
( http://jira.codehaus.org/browse/MJAVADOC-118 ) but this should not
apply to your case.


how are you specifying the maven-javadoc-plugin config?

Do you have the src/main/javadoc directory declared in  or in 
 or not declared at all?


I do not declare the src/main/javadoc anywhere. It works out of the box.
By the way, am working on Linux, this may also be relevant.

I realised that javadoc would have no problem processing the package.html files 
if I declared the src/main/javadoc in the  but that is just a 
work-around, since it would make  redundant - or am I missing 
something?


You may experiment with the debug parameter of the javadoc plugin. This
will reveal the javadoc command actually used. Maybe you can find out
why your setup does not work.


I couldn't get it to work. I am glad it doesn't affect you, but I found nothing 
to explain why. BTW I am on linux too.


I filed the bug http://jira.codehaus.org/browse/MJAVADOC-129 with a testcase.


Regards
Adam

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



Re: NullPointer with maven-ant-tasks-2.0.6 (linux)

2007-06-21 Thread Torsten Krall

Yes, thanks, that was the problem. :-)

Regards,
Torsten


Hervé BOUTEMY wrote:
I opened http://jira.codehaus.org/browse/MANTTASKS-75, with testcase and 
patch: it should be included in next Maven Ant Tasks version, 2.0.7, 
scheduled next week.


Hervé

Le jeudi 21 juin 2007, Hervé BOUTEMY a écrit :
  

ok
I think the problem in that your settings.xml file on your Linux machine
does not define  element (which seems defined on your
Windows one), and the code is not protected against such a thing

please:
1. confirm this explaination
2. file a Jira issue to let me provide a patch

Regards,

Hervé

Le mercredi 20 juin 2007, Torsten Krall a écrit :


Now I get the following detailed stacktrace:

[..]
Finding class org.apache.maven.artifact.versioning.Restriction
Loaded from /home/maj0r/source/JWWatcher/build/maven-ant-tasks-2.0.6.jar
org/apache/maven/artifact/versioning/Restriction.class
Class org.apache.maven.artifact.versioning.Restriction loaded from ant
loader (parentFirst)

BUILD FAILED
/home/maj0r/source/JWWatcher/build/build.xml:10:
java.lang.NullPointerException
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:11
5) at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:140)
at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:96
) at org.apache.tools.ant.Main.runBuild(Main.java:683)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.NullPointerException
at java.io.File.(File.java:222)
at
org.apache.maven.artifact.ant.AbstractArtifactTask.getDefaultLocalReposit
or y(AbstractArtifactTask.java:166) at
org.apache.maven.artifact.ant.AbstractArtifactTask.createLocalArtifactRep
os itory(AbstractArtifactTask.java:79) at
org.apache.maven.artifact.ant.DependenciesTask.doExecute(DependenciesTask
.j ava:80) at
org.apache.maven.artifact.ant.AbstractArtifactTask.execute(AbstractArtifa
ct Task.java:469) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:3 9) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
mp l.java:25) at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:10
5) ... 8 more
--- Nested Exception ---
java.lang.NullPointerException
at java.io.File.(File.java:222)
at
org.apache.maven.artifact.ant.AbstractArtifactTask.getDefaultLocalReposit
or y(AbstractArtifactTask.java:166) at
org.apache.maven.artifact.ant.AbstractArtifactTask.createLocalArtifactRep
os itory(AbstractArtifactTask.java:79) at
org.apache.maven.artifact.ant.DependenciesTask.doExecute(DependenciesTask
.j ava:80) at
org.apache.maven.artifact.ant.AbstractArtifactTask.execute(AbstractArtifa
ct Task.java:469) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:3 9) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
mp l.java:25) at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:10
5) at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:140)
at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:96
) at org.apache.tools.ant.Main.runBuild(Main.java:683)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

Total time: 4 seconds

Regards,
Torsten Krall

Hervé BOUTEMY wrote:
  

Hi,

I'm working on these tasks under Linux without any problem.
Can you run "ant -d" and give me the full stacktrace?

Hervé

Le mardi 19 juin 2007, Torsten Krall a écrit :


Hi,

I use following build.xml:



   
   

   

LINE10:
   
   

[..]


Executing this script I get the following error but this script works
well with windows and no change at all.

Buildfile: /home/maj0r/source/JWWatcher/build/build.xml

BUILD FAILED
/home/maj0r/source/JWWatcher/build/build.xml:10:
java.lang.NullPointerException

Total time: 956 milliseconds


Does anyone have the same problem or a hint for me?

Regards,
Torsten


Re: Maven Eclipse and the Eclipse debugger

2007-06-21 Thread Jon Strayer

Never mind.  It was the CodePro coverage that caused the problem.

On 6/21/07, Jon Strayer <[EMAIL PROTECTED]> wrote:


I just noticed that while debugging in Eclipse some of the time I can see
local variables and others I can't.

The difference seems to be that when I can't see local variables the
Eclipse project was created via "mvn eclipse:eclipse".  Has anyone else
noticed this?

--
Esse Quam Videre
To Be, rather than to Seem





--
Esse Quam Videre
To Be, rather than to Seem


RE: Uploading the .jar to my internal repository

2007-06-21 Thread Heck, Joe
You want to use the maven deploy plugin - details on usage here:


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Martin A.Villalobos
Sent: Thursday, June 21, 2007 1:40 PM
To: users@maven.apache.org
Subject: Uploading the .jar to my internal repository

Hello, I've a question?
I'm trying to upload a .jar to my internal repository.
Somebody can helpme with a detailed howto about this task?

Thanks for all.

Martin.

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


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



Maven Eclipse and the Eclipse debugger

2007-06-21 Thread Jon Strayer

I just noticed that while debugging in Eclipse some of the time I can see
local variables and others I can't.

The difference seems to be that when I can't see local variables the Eclipse
project was created via "mvn eclipse:eclipse".  Has anyone else noticed
this?

--
Esse Quam Videre
To Be, rather than to Seem


Re: Uploading the .jar to my internal repository

2007-06-21 Thread Wendy Smoak

On 6/21/07, Martin A.Villalobos <[EMAIL PROTECTED]> wrote:


I'm trying to upload a .jar to my internal repository.
Somebody can helpme with a detailed howto about this task?


Try this, and then ask if you have a specific question:
http://maven.apache.org/plugins/maven-deploy-plugin/usage.html

--
Wendy

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



Re: Turkish Letter Problem

2007-06-21 Thread Carlos Sanchez

pom encoding it's already logged in jira as a problem

On 6/21/07, MUSTAFA SAIT OZEN <[EMAIL PROTECTED]> wrote:

The project's pom.xml like this :

http://maven.apache.org/POM/4.0.0";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
   4.0.0
   deneme
   subdeneme
   0.0.1
   
   MUSTAFA SAİT ÖZEN ÖRGÜN FALAN FİLAN
   
   
   
   com.im.db
   db_conn
   3
   
   
   com.im.b2
   javax
   9
   
   
   
   install
   
   
   org.apache.maven.plugins
   maven-resources-plugin
   
   UTF-8
   
   
   
   maven-site-plugin
   
   
ISO-8859-9
   

   
   
   



I set maven-site-plugin outputEncoding property to ISO-8859-9. I
checked  index.html's source code and saw that the page's source code
was ISO-8859-9 but project description was shown as "MUSTAFA SA?T ÖZEN
ÖRGÜN FALAN F?LAN".Some characters are lost :( . Is there any wrong or
missing in pom.xml?

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





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


Uploading the .jar to my internal repository

2007-06-21 Thread Martin A.Villalobos

Hello, I've a question?
I'm trying to upload a .jar to my internal repository.
Somebody can helpme with a detailed howto about this task?

Thanks for all.

Martin.

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



Re: Turkish Letter Problem

2007-06-21 Thread MUSTAFA SAIT OZEN
The project's pom.xml like this :

http://maven.apache.org/POM/4.0.0";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
   4.0.0
   deneme
   subdeneme
   0.0.1
   
   MUSTAFA SAÝT ÖZEN ÖRGÜN FALAN FÝLAN
   
   
   
   com.im.db
   db_conn
   3
   
   
   com.im.b2
   javax
   9
   
   
   
   install
   
   
   org.apache.maven.plugins
   maven-resources-plugin
   
   UTF-8
   
   
   
   maven-site-plugin
   
   
ISO-8859-9
   

   
   
   



I set maven-site-plugin outputEncoding property to ISO-8859-9. I
checked  index.html's source code and saw that the page's source code
was ISO-8859-9 but project description was shown as "MUSTAFA SA?T ÖZEN
ÖRGÜN FALAN F?LAN".Some characters are lost :( . Is there any wrong or
missing in pom.xml?

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



Re: NullPointer with maven-ant-tasks-2.0.6 (linux)

2007-06-21 Thread Hervé BOUTEMY
I opened http://jira.codehaus.org/browse/MANTTASKS-75, with testcase and 
patch: it should be included in next Maven Ant Tasks version, 2.0.7, 
scheduled next week.

Hervé

Le jeudi 21 juin 2007, Hervé BOUTEMY a écrit :
> ok
> I think the problem in that your settings.xml file on your Linux machine
> does not define  element (which seems defined on your
> Windows one), and the code is not protected against such a thing
>
> please:
> 1. confirm this explaination
> 2. file a Jira issue to let me provide a patch
>
> Regards,
>
> Hervé
>
> Le mercredi 20 juin 2007, Torsten Krall a écrit :
> > Now I get the following detailed stacktrace:
> >
> > [..]
> > Finding class org.apache.maven.artifact.versioning.Restriction
> > Loaded from /home/maj0r/source/JWWatcher/build/maven-ant-tasks-2.0.6.jar
> > org/apache/maven/artifact/versioning/Restriction.class
> > Class org.apache.maven.artifact.versioning.Restriction loaded from ant
> > loader (parentFirst)
> >
> > BUILD FAILED
> > /home/maj0r/source/JWWatcher/build/build.xml:10:
> > java.lang.NullPointerException
> > at
> > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:11
> >5) at org.apache.tools.ant.Task.perform(Task.java:348)
> > at org.apache.tools.ant.Target.execute(Target.java:357)
> > at
> > org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:140)
> > at
> > org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:96
> >) at org.apache.tools.ant.Main.runBuild(Main.java:683)
> > at org.apache.tools.ant.Main.startAnt(Main.java:199)
> > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> > Caused by: java.lang.NullPointerException
> > at java.io.File.(File.java:222)
> > at
> > org.apache.maven.artifact.ant.AbstractArtifactTask.getDefaultLocalReposit
> >or y(AbstractArtifactTask.java:166) at
> > org.apache.maven.artifact.ant.AbstractArtifactTask.createLocalArtifactRep
> >os itory(AbstractArtifactTask.java:79) at
> > org.apache.maven.artifact.ant.DependenciesTask.doExecute(DependenciesTask
> >.j ava:80) at
> > org.apache.maven.artifact.ant.AbstractArtifactTask.execute(AbstractArtifa
> >ct Task.java:469) at
> > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> >:3 9) at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
> >mp l.java:25) at java.lang.reflect.Method.invoke(Method.java:597)
> > at
> > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:10
> >5) ... 8 more
> > --- Nested Exception ---
> > java.lang.NullPointerException
> > at java.io.File.(File.java:222)
> > at
> > org.apache.maven.artifact.ant.AbstractArtifactTask.getDefaultLocalReposit
> >or y(AbstractArtifactTask.java:166) at
> > org.apache.maven.artifact.ant.AbstractArtifactTask.createLocalArtifactRep
> >os itory(AbstractArtifactTask.java:79) at
> > org.apache.maven.artifact.ant.DependenciesTask.doExecute(DependenciesTask
> >.j ava:80) at
> > org.apache.maven.artifact.ant.AbstractArtifactTask.execute(AbstractArtifa
> >ct Task.java:469) at
> > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> >:3 9) at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
> >mp l.java:25) at java.lang.reflect.Method.invoke(Method.java:597)
> > at
> > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:10
> >5) at org.apache.tools.ant.Task.perform(Task.java:348)
> > at org.apache.tools.ant.Target.execute(Target.java:357)
> > at
> > org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:140)
> > at
> > org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:96
> >) at org.apache.tools.ant.Main.runBuild(Main.java:683)
> > at org.apache.tools.ant.Main.startAnt(Main.java:199)
> > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> >
> > Total time: 4 seconds
> >
> > Regards,
> > Torsten Krall
> >
> > Hervé BOUTEMY wrote:
> > > Hi,
> > >
> > > I'm working on these tasks under Linux without any problem.
> > > Can you run "ant -d" and give me the full stacktrace?
> > >
> > > Hervé
> > >
> > > Le mardi 19 juin 2007, Torsten Krall a écrit :
> > >> Hi,
> > >>
> > >> I use following build.xml:
> > >>
> > >>  > >> xmlns:artifact="urn:maven-artifact-ant">
> > >>
> > >> > >> path="${basedir}/build/maven-ant-tasks-2.0.6.jar" />
> > >> > >> uri="urn:maven-artifact-ant" classpathr

Re: What is this? What I have to do to fix?

2007-06-21 Thread Steven Rowe
Maybe you're talking about "transitive dependencies"?

Here's an interesting blog entry from Carlos Sanchez that describes the
situation:



Steve

ScottBrank wrote:
> other thing i want to know..
> 
> my project has a lot of dependencies... a lot of other jars that i need to
> my appplication...
> so, i have read that i hae to declare these dependencies in my pom.xml...
> but i have read too that i have only to declare the basiest level of m
> dependencies..
> well..
> what is this anyway?
> 
> thank's for help... 


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



AW: What is this? What I have to do to fix?

2007-06-21 Thread Steinhauer, Frank
Hi Scott,

Maven2 automatically detects transient dependencies, so there's no need to 
declare these too in the POM.

Frank


-Ursprüngliche Nachricht-
Von: ScottBr... [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 21. Juni 2007 21:03
An: users@maven.apache.org
Betreff: Re: What is this? What I have to do to fix?


other thing i want to know..

my project has a lot of dependencies... a lot of other jars that i need to
my appplication...
so, i have read that i hae to declare these dependencies in my pom.xml...
but i have read too that i have only to declare the basiest level of m
dependencies..
well..
what is this anyway?

thank's for help... 
-- 
View this message in context: 
http://www.nabble.com/What-is-this--What-I-have-to-do-to-fix--tf3960640s177.html#a11239503
Sent from the Maven - Users mailing list archive at Nabble.com.


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


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



Re: What is this? What I have to do to fix?

2007-06-21 Thread ScottBrank

other thing i want to know..

my project has a lot of dependencies... a lot of other jars that i need to
my appplication...
so, i have read that i hae to declare these dependencies in my pom.xml...
but i have read too that i have only to declare the basiest level of m
dependencies..
well..
what is this anyway?

thank's for help... 
-- 
View this message in context: 
http://www.nabble.com/What-is-this--What-I-have-to-do-to-fix--tf3960640s177.html#a11239503
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: What is this? What I have to do to fix?

2007-06-21 Thread Wayne Fay

Next time, cut and paste the text into an email. Its a lot easier to deal with.

To fix your issues, make sure your dependencies are properly declared
in your pom.xml file. It seems like you are missing some classes which
is leading to your compilation failures.

Wayne

On 6/21/07, ScottBrank <[EMAIL PROTECTED]> wrote:


Hi! when I type mvn install in my project folder it gives me errors...
i don't know what the heck it is... its in the image..

http://www.nabble.com/file/p11239325/imageerrorcarlos.jpg

thank's for help! :-P
--
View this message in context: 
http://www.nabble.com/What-is-this--What-I-have-to-do-to-fix--tf3960640s177.html#a11239325
Sent from the Maven - Users mailing list archive at Nabble.com.


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




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



Re: Skiping module during mvn eclipse:eclipse

2007-06-21 Thread Heinrich Nirschl
On Thu, 2007-06-21 at 12:13 +0200, Marcin Waldowski wrote:
> Nick, thanks for your replay.
> 
> My problem is that 'mvn eclipse:eclipse' fail on ear module, because of  
> '[INFO] Failed to resolve artifact'. This missing artifact is other 
> module of my my multiple module project. It's weird, because 'mvn 
> package' works ok.
> 

Sometimes, you can work around this problem by running 'mvn install'
before.

- Henry


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



What is this? What I have to do to fix?

2007-06-21 Thread ScottBrank

Hi! when I type mvn install in my project folder it gives me errors...
i don't know what the heck it is... its in the image..

http://www.nabble.com/file/p11239325/imageerrorcarlos.jpg 

thank's for help! :-P
-- 
View this message in context: 
http://www.nabble.com/What-is-this--What-I-have-to-do-to-fix--tf3960640s177.html#a11239325
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Install & Deploy an artifact generated with Assembly Plugin

2007-06-21 Thread jp4

I use the assembly plugin to create an executable jar file that contains all
of it's dependencies.  The file name is
foo-1.0-SNAPSHOT-jar-with-dependencies.jar.  I would like to be able to
install this artifact locally and/or deploy to a remote repository.  How can
I do this?

I have included the assembly plugin configuration below if that helps.



org.apache.maven.plugins
maven-assembly-plugin


package


   
jar-with-dependencies.xml

   
target/assembly/work

   
src/main/resources/META-INF/MANIFEST.MF


assembly





Thanks,

jp4
-- 
View this message in context: 
http://www.nabble.com/Install---Deploy-an-artifact-generated-with-Assembly-Plugin-tf3960408s177.html#a11238491
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: resources forced to target/classes

2007-06-21 Thread Paul Copeland
How can you use the assembly plugin to copy files within the file system 
and not create an archive?  The  element has an  
option that might work if you can get rid of the temporary archive.


Also I am not clear on what the difference is between "source" files and 
"binary" files is as they are not defined in the plugin documentation 
for assembly.  Possible binary files means files in target/classes? Or 
could this mean non-text files in src/main?


On 6/20/2007 8:49 PM, Wayne Fay wrote:

Most of the "copy this file to this special place" type "problems"
we've seen on this list can be "solved" with the Assembly plugin
and/or Antrun plugin.

Wayne

On 6/20/07, Paul Copeland <[EMAIL PROTECTED]> wrote:
So that's one vote for antRun for a the totally common need to copy 
files.


I am also suspecting that  behavior depends on the
 type although I haven't tested that theory and this doesn't
seem to be documented anywhere.

On 6/20/2007 4:33 PM, Wendy Smoak wrote:
> On 6/20/07, Paul Copeland <[EMAIL PROTECTED]> wrote:
>
>> Trying to use  to copy resource files to an 
arbitrary

>> target directory.  The problem is that the resource phase insists on
>> copying to target/classes no matter what I have for targetPath.
>
> Maven isn't really into "arbitrary". :)  I assume it means 'target
> path inside the jar', which is why it's going to target/classes.
>
>> This is the latest attempt - unfortunately it tried to copy to
>> target/classes/targetResources.  Even if I add ${basedir} it still 
tries
>> to copy to a subdirectory of classes. This is not what I want. Is 
there

>> a "copy file" plugin?
>
> You can use the Antrun plugin.
>

-
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: Turkish Letter Problem

2007-06-21 Thread Wayne Fay

There was a similar query yesterday from another user. Someone
suggested taking a look at:
http://maven.apache.org/plugins/maven-resources-plugin/examples/encoding.html

I don't know if this will be helpful or not. Where is the string SAÝT
coming from -- your project name/description/etc in the pom file
itself, or a resource file? Character encoding in Java is certainly
annoying -- if you don't get it JUST right, things break. And I'm
certainly a novice in this area.

Wayne

On 6/21/07, MUSTAFA SAIT OZEN <[EMAIL PROTECTED]> wrote:

I need Turkish Encoding Support from Maven. I have a pom.xml like
"
   maven-site-plugin
   
 UTF-8
   
 "
When project site is created, I see that Turkish letters are lost.
I have changed outputencoding property and pom.xml encoding as ISO-8859-9. But 
nothing changed :(
SAÝT look like SA?T in project site. Can anyone help me???


---
Mustafa Sait ÖZEN



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




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



Re: "-javadoc" jars

2007-06-21 Thread DavidWilliams
Tim,

I read the maven-dependency-plugin over and how would you tell the plugin 
to copy the javadoc jar and not the project jar?  I did not see 
 as an option. 

>From the maven-dependency-plugin website
Collection of ArtifactItems to work on. (ArtifactItem contains groupId, 
artifactId, version, type, location, destFile, markerFile and overwrite.) 

Thanks,

David



Tim Kettler <[EMAIL PROTECTED]> 
06/21/2007 09:09 AM
Please respond to
"Maven Users List" 


To
Maven Users List 
cc

Subject
Re: "-javadoc" jars






To add/clarify my previous mail:

Adding the javadoc dependency to the  section 
is probably not what you want (this would add the javadoc jar to the 
compilation classpath as well).

Instead I would use the maven-dependency-plugin [1] to copy the jar [2] 
to the right location in the target directory so that it gets jarred up 
to the final war.

[1] http://maven.apache.org/plugins/maven-dependency-plugin/
[2] http://maven.apache.org/plugins/maven-dependency-plugin/copy-mojo.html

-Tim

Tim Kettler schrieb:
> No, with  you just tell the plugin where to create 
> the javadoc jar. This will not help you to access it as a dependency 
> from a repository.
> 
> However, your actual problem is solved easily. It's no problem at all 
> that the javadoc jar is deployed alongsite the main artifact in the same 

> directory. This is by design! These auxiliary artifacts are distinct 
> from the main artifact in the directory by the "-{classifier}.jar" part 
> of their name. To declare a dependency to them just add the classifier 
> part to the dependency description in your pom.
> 
> For example:
> 
> 
>   mygroup
>   myartifact
>   0.1
>   javadoc
> 
> 
> -Tim
> 
> [EMAIL PROTECTED] schrieb:
>> Tim
>>
>> I haven't.  I missed that option while looking at all those other 
>> options. = )  What I would like to do is be able to list these javadoc 
>> jars as a dependency of another project.  However they are installed 
>> to the same directory as the project jar.  I'm thinking I need them in 
>> a separate directory so I can grab them as a dependency.  Hopefully 
>> the jarOutputDirectory will help me do this.  If anyone knows of a 
>> different way, please let me know.
>>
>> Thanks for your response,
>>
>> David
>>
>>
>>
>> Tim Kettler <[EMAIL PROTECTED]> 06/21/2007 12:27 AM
>> Please respond to
>> "Maven Users List" 
>>
>>
>> To
>> Maven Users List 
>> cc
>>
>> Subject
>> Re: "-javadoc" jars
>>
>>
>>
>>
>>
>>
>> Hi,
>>
>> have you tried the 'jarOutputDirectory' config parameter found in the 
>> plugin documentation [1]?
>>
>> -Tim
>>
>> [1] http://maven.apache.org/plugins/maven-javadoc-plugin/jar-mojo.html
>>
>> [EMAIL PROTECTED] schrieb:
>>> Hi Everyone,
>>>
>>> Is there anyway to include the "-javadoc" jars created  by the 
>>> javadoc plugin in a war or ear with maven 2?
>>>
>>> Thanks,
>>>
>>> David Williams
>>> 205-271-6159
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>> _
>> CONFIDENTIALITY:  This email (including any attachments) may contain 
>> confidential, proprietary and privileged information, and unauthorized 
>> disclosure or use is prohibited.  If you received this email in error, 
>> please notify the sender and delete this email from your system. 
>> Thank you.
>>
> 
> 
> -
> 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]


_
CONFIDENTIALITY:  This email (including any attachments) may contain 
confidential, proprietary and privileged information, and unauthorized 
disclosure or use is prohibited.  If you received this email in error, 
please notify the sender and delete this email from your system.  Thank 
you.


Re: Interpolated expression to reference configuration elements of another plugin

2007-06-21 Thread Steven Rowe
Hi Olivier,

Olivier Dehon wrote:
> What ${} expression should I use in my POM or Mojo to reference
> configuration values of another plugin?

This doesn't directly answer your question, but since it's not clear
exactly what problem you're trying to solve, here's a solution to a
different problem :) :

If you define a property in the POM, and then use ${} syntax to refer to
the property in the configuration for one plugin, you can refer to this
same property value anywhere else in the POM, including in another
plugin's configuration.  E.g.:

...

  my value

...

  ...
  
...

  my-group-id
  my-first-artifact-id
  
${myprop}
  


  my-group-id
  my-second-artifact-id
  
${myprop}
  

...
  
  ...



Steve

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



Comtinuum 1.1 alpha2 - CVS problems

2007-06-21 Thread Rodrigo Gonçalves

Hi...

My problem is a little peculiar.
I have Continuum running as a service. I also have Pageant (PuTTY 
authentication agent) running as a service in order to allow Continuum 
to checkout the projects from CVS without any problems.

Everything works fine,  until I do the upgrade form 1.0.3 to 1.1 alpha2.
I add a project with many modules, and some of them don't work. The 
error given by Continuum is the following:

"Provider message: The cvs command failed."
There is no error with the SCM info and all the other modules and 
projects are working fine, thats the strange thing.

In the Continuum's wraper.log:
"
INFO  Continuum:default  - Enqueuing 'WOW' (Build definition 
id=21).

INFO  BuildController:default- Initializing build
INFO  BuildController:default- Starting build of RNDapp
INFO  BuildController:default- Updating working dir
INFO  BuildController:default- Performing action 
check-working-directory
INFO  BuildController:default- Performing action 
update-working-directory-from-scm
INFO  ContinuumScm:default   - Updating project: id: '1', name 
'RNDapp'.

INFO  ScmManager:default - Executing: cvs -z3 -f -q update -d
INFO  ScmManager:default - Working directory: 
C:\Programs\continuum-1.1-alpha-2\apps\continuum\webapp\WEB-INF\working-directory\1
Warning: The server is not supporting gzip-file-contents request, no 
compression is used.
org.netbeans.lib.cvsclient.response.ResponseFactory$IllegalArgumentException2: 
Received unknown response from 
server:a-data>descriptionCheck your setup 
please:Are you connecting to supported CVS server?Is not 
misconfigured CVS_SERVER environment variable?For 
:local: repositories:What cvs binary is 
executed?It is defined by CVS_EXE environment variable.
   at 
org.netbeans.lib.cvsclient.response.ResponseFactory.createResponse(ResponseFactory.java:70)

   at org.netbeans.lib.cvsclient.Client.handleResponse(Client.java:568)
   at org.netbeans.lib.cvsclient.Client.processRequests(Client.java:520)
   at 
org.netbeans.lib.cvsclient.command.update.UpdateCommand.execute(UpdateCommand.java:286)

   at org.netbeans.lib.cvsclient.Client.executeCommand(Client.java:629)
   at 
org.apache.maven.scm.provider.cvslib.cvsjava.util.CvsConnection.executeCommand(CvsConnection.java:94)
   at 
org.apache.maven.scm.provider.cvslib.cvsjava.util.CvsConnection.processCommand(CvsConnection.java:478)
   at 
org.apache.maven.scm.provider.cvslib.cvsjava.command.update.CvsJavaUpdateCommand.executeCvsCommand(CvsJavaUpdateCommand.java:52)
   at 
org.apache.maven.scm.provider.cvslib.command.update.AbstractCvsUpdateCommand.executeUpdateCommand(AbstractCvsUpdateCommand.java:60)
   at 
org.apache.maven.scm.command.update.AbstractUpdateCommand.executeCommand(AbstractUpdateCommand.java:62)
   at 
org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:58)
   at 
org.apache.maven.scm.provider.cvslib.AbstractCvsScmProvider.executeCommand(AbstractCvsScmProvider.java:521)
   at 
org.apache.maven.scm.provider.cvslib.AbstractCvsScmProvider.update(AbstractCvsScmProvider.java:659)
   at 
org.apache.maven.scm.provider.AbstractScmProvider.update(AbstractScmProvider.java:931)
   at 
org.apache.maven.scm.provider.AbstractScmProvider.update(AbstractScmProvider.java:906)
   at 
org.apache.maven.scm.provider.AbstractScmProvider.update(AbstractScmProvider.java:878)
   at 
org.apache.maven.continuum.scm.DefaultContinuumScm.updateProject(DefaultContinuumScm.java:245)
   at 
org.apache.maven.continuum.core.action.UpdateWorkingDirectoryFromScmContinuumAction.execute(UpdateWorkingDirectoryFromScmContinuumAction.java:75)
   at 
org.apache.maven.continuum.buildcontroller.DefaultBuildController.performAction(DefaultBuildController.java:406)
   at 
org.apache.maven.continuum.buildcontroller.DefaultBuildController.updateWorkingDirectory(DefaultBuildController.java:378)
   at 
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:112)
   at 
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:50)
   at 
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116)
   at 
edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
   at 
edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
   at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
   at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)

   at java.lang.Thread.run(Thread.java:619)
WARN  ContinuumScm:default   - Error while updating the code for 
project: 'RNDapp', id: '1' to 
'C:\Programs\continuum-1.1-alpha-2\apps\continuum\webapp\WEB-INF\working-directory\1'.

WARN  ContinuumScm:default   - Command ou

Turkish Letter Problem

2007-06-21 Thread MUSTAFA SAIT OZEN
I need Turkish Encoding Support from Maven. I have a pom.xml like 
"
maven-site-plugin

  UTF-8

  "
When project site is created, I see that Turkish letters are lost. 
I have changed outputencoding property and pom.xml encoding as ISO-8859-9. But 
nothing changed :( 
SAÝT look like SA?T in project site. Can anyone help me???


---
Mustafa Sait ÖZEN



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



RE: Contributing a document fix/patch

2007-06-21 Thread Brian E. Fox
I found this in a couple of the example pages. I'm redeploying the site
now. Thanks!

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 21, 2007 9:19 AM
To: Maven Users List
Subject: Re: Contributing a document fix/patch

On 6/21/07, Jeff Mutonho <[EMAIL PROTECTED]> wrote:
> The plugin is the maven-dependency-plugin , but the actual correction
> is in the documentation.In the example usage , the plugin is referred
> to as :
>
> 
>   
> org.apache.maven.plugins
> dependency-maven-plugin
> 

If it's usage.html, it looks like it's already fixed in svn:
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-dependency-plu
gin/src/site/apt/usage.apt

It will show up the next time the site is published.

-- 
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 can the checkstyle plugin be configured to fail the build?

2007-06-21 Thread Guillaume Boucherie

try something like this.


 
   
 org.apache.maven.plugins
 maven-checkstyle-plugin
 
   
 
   check
 
   
 
   
 


by default the check goal is link to verify phase

CletteBou


2007/6/21, Andrew Moores <[EMAIL PROTECTED]>:


Hello

I want to make my build fail if there are any checkstyle errors in my
code.  I have added the following to my pom:


  

  org.apache.maven.plugins
  maven-checkstyle-plugin
  
  true
  

  


When I execute mvn checkstyle:check my build fails when I have a
checkstyle error.

When I execute mvn install the build does not fail.  Reading the plugin
pages I expected my build to fail for the intall goal as well, what else do
I need to add to the POM to make the build fail?

I am running Maven 2.0.5.

Thanks
Andrew



Re: Contributing a document fix/patch

2007-06-21 Thread Wendy Smoak

On 6/21/07, Jeff Mutonho <[EMAIL PROTECTED]> wrote:

The plugin is the maven-dependency-plugin , but the actual correction
is in the documentation.In the example usage , the plugin is referred
to as :


  
org.apache.maven.plugins
dependency-maven-plugin



If it's usage.html, it looks like it's already fixed in svn:
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-dependency-plugin/src/site/apt/usage.apt

It will show up the next time the site is published.

--
Wendy

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



weblogic-maven-plugin problem

2007-06-21 Thread Baoli Zhang
Hi,

 

I try to use weblogic-maven-plugin, but got error as "no protocol: and"
error with deploy, stop, start. I searched the user list archive,
someone had this problem before. But the solution worked for him does
not work for me. Any one can help?

 

 

This is the topic that I found:

http://archive.mojo.codehaus.org/user/db1148510702142100l27a2f7e5paba5e7
[EMAIL PROTECTED]

 

Thank you,

Baoli

 



The information contained in this e-mail message and any
attachments may be privileged and confidential. If the reader of
this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are
hereby notified that any review, dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify the sender
immediately by replying to this e-mail and delete the message and
any attachments from your computer.



How can the checkstyle plugin be configured to fail the build?

2007-06-21 Thread Andrew Moores
Hello

I want to make my build fail if there are any checkstyle errors in my code.  I 
have added the following to my pom:


  

  org.apache.maven.plugins
  maven-checkstyle-plugin
  
  true
  

  


When I execute mvn checkstyle:check my build fails when I have a checkstyle 
error.

When I execute mvn install the build does not fail.  Reading the plugin pages I 
expected my build to fail for the intall goal as well, what else do I need to 
add to the POM to make the build fail?

I am running Maven 2.0.5.

Thanks
Andrew


Problem when solving dependencies in install-file phase

2007-06-21 Thread Clement Escoffier

Hello,


We are implementing a Maven plugin to transform Maven repositories into 
OSGi Bundle Repository (OBR). This plugin provides several phase as :

- install
- install:install-file
- deploy
- deploy:deploy-file

Install & Deploy work fine, however we have issues on install-file and 
deploy-file.


So I execute it with :
mvn install:install-file 
org.apache.felix:maven-bundle-plugin:install-file -Dfile=o.a.f.xxx.jar 
-DartifactId=xxx -DgroupId=test -Dversion=0.7.7 -Dpackaging=jar


For a strange reason, when we execute this command, Maven try to solve 
plugin dependencies. But instead of resolving dependencies "normally" 
(as desbribe in the plugin pom file), it looks for artifacts inside the 
'test' groupId (and sometimes with a bad version number, 0.7.7 instead 
of the specified version).


For example, my plugin pom file contains a dependency on org.osgi core :
...

org.apache.felix
org.osgi.core
0.9.0-incubator-SNAPSHOT

...

However,at runtime, Maven looks for org.osgi.core inside the 
org.apache.felix.tools groupId instead of org.apache.felix, and of the 
0.7.7  :



C:\projet\Stage>mvn install:install-file 
org.apache.felix.tools:maven-bundle-plugin:install-file 
-Dfile=org.apache.felix.ipojo-0.7.1
-incubator-SNAPSHOT.jar -DartifactId=ipojo -DgroupId=test 
-Dversion=0.7.7 -Dpackaging=jar

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'install'.
[INFO] 


[INFO] Building Unnamed - tools:ipojo:jar:0.7.1
[INFO]task-segment: [install:install-file] (aggregator-style)
[INFO] 


[INFO] [install:install-file]
[INFO] Installing 
C:\projet\Stage\org.apache.felix.ipojo-0.7.1-incubator-SNAPSHOT.jar to 
C:\projet\Stage\mvn_r

epo\test\ipojo\0.7.7\ipojo-0.7.7.jar
[INFO] 


[INFO] Building Unnamed - tools:ipojo:jar:0.7.1
[INFO]task-segment: [homega.tools:obrPlugin:repository ]
[INFO] 

Downloading: 
http://repo1.maven.org/maven2/test/org.osgi.core/0.7.7/org.osgi.core-0.7.7.pom 

Downloading: 
http://repo1.maven.org/maven2/test/org.osgi.core/0.7.7/org.osgi.core-0.7.7.pom
Downloading: 
http://repo1.maven.org/maven2/test/org.apache.felix.shell/0.7.7/org.apache.felix.shell-0.7.7.pom
Downloading: 
http://repo1.maven.org/maven2/test/org.apache.felix.shell/0.7.7/org.apache.felix.shell-0.7.7.pom
Downloading: 
http://repo1.maven.org/maven2/test/org.osgi.core/0.7.7/org.osgi.core-0.7.7.jar 

Downloading: 
http://repo1.maven.org/maven2/test/org.apache.felix.shell/0.7.7/org.apache.felix.shell-0.7.7.jar 

[INFO] 


[ERROR] BUILD ERROR
[INFO] 


[INFO] Failed to resolve artifact.

Missing:
--
1) test:org.osgi.core:jar:0.7.7
 Try downloading the file manually from the project website.
 Then, install it using the command:
 mvn install:install-file -DgroupId=test -DartifactId=org.osgi.core \
 -Dversion=0.7.7 -Dpackaging=jar -Dfile=/path/to/file
 Path to dependency:
   1) org.apache.felix:maven-bundle-plugin:maven-plugin:1.0.0
   2) 
org.apache.felix:org.apache.felix.shell:jar:0.9.0-incubator-SNAPSHOT

   3) test:org.osgi.core:jar:0.7.7

2) test:org.apache.felix.shell:jar:0.7.7
 Try downloading the file manually from the project website.
 Then, install it using the command:
 mvn install:install-file -DgroupId=test 
-DartifactId=org.apache.felix.shell \

 -Dversion=0.7.7 -Dpackaging=jar -Dfile=/path/to/file
 Path to dependency:
   1) homega.tools:obrPlugin:maven-plugin:1.0.0
   2) 
org.apache.felix:org.apache.felix.bundlerepository:jar:0.9.0-incubator-SNAPSHOT

   3) test:org.apache.felix.shell:jar:0.7.7
--
2 required artifacts are missing. 

So, I don't understand why Maven resolves the dependencies as described. 
How can we fix this problem ?


Thank you for your response.

Regards,

Clement



Re: Contributing a document fix/patch

2007-06-21 Thread Jeff Mutonho

The plugin is the maven-dependency-plugin , but the actual correction
is in the documentation.In the example usage , the plugin is referred
to as :


 
   org.apache.maven.plugins
   dependency-maven-plugin
   





"Don't take the name of root in vain."

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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



Re: Contributing a document fix/patch

2007-06-21 Thread Wendy Smoak

On 6/21/07, Jeff Mutonho <[EMAIL PROTECTED]> wrote:


I've picked up an error in some plugin documentation.How do I provide
a patch for it?


Roughly in order of time and effort...

*  Mention it here and see if someone picks it up and fixes it

* Add it to the wiki http://docs.codehaus.org/display/MAVENUSER/MavenPlugins

*  Open an issue in the JIRA project for that plugin and describe the
problem (http://jira.codehaus.org/browse/)

*  Check out the source code for the plugin, create a patch and attach
it to the issue

Thanks!
--
Wendy

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



Re: Contributing a document fix/patch

2007-06-21 Thread Wayne Fay

Most bug reports will go in the Codehaus JIRA but the actual location
for the new bug depends on the plugin. Which plugin are you talking
about?

Wayne

On 6/21/07, Jeff Mutonho <[EMAIL PROTECTED]> wrote:

I've picked up an error in some plugin documentation.How do I provide
a patch for it?



--

"Don't take the name of root in vain."

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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



test-jar's and eclipse:eclipse

2007-06-21 Thread Mikael Andersson

Hi all

I wonder if there is a way of having the test jars generated with
jar:test-jar added to the eclipse classpath when doing a eclipe:elclipse.

Many thanks,
Mike


Re: [ANN] Maven 2.0.7 Released

2007-06-21 Thread Jason van Zyl

Thanks. Fixed and deployed.

On 21 Jun 07, at 3:46 AM 21 Jun 07, Mark Hobson wrote:


Although the page title is still "Download Maven 1.0" :)

Mark

On 21/06/07, Guillaume Boucherie <[EMAIL PROTECTED]>  
wrote:

stupid cache, it ok
thanks

Clettebou


2007/6/21, Antonio Petrelli <[EMAIL PROTECTED]>:
>
> 2007/6/21, Guillaume Boucherie <[EMAIL PROTECTED]>:
> >
> > The maven's download page, still reference maven-2.0.6, is it  
correct ?

>
>
>
> Strange, I see 2.0.7, maybe you need to clear your cache.
>
> Antonio
>



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




Thanks,

Jason

--
Jason van Zyl
Founder and PMC Chair, Apache Maven
jason at sonatype dot com
--




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



Contributing a document fix/patch

2007-06-21 Thread Jeff Mutonho

I've picked up an error in some plugin documentation.How do I provide
a patch for it?



--

"Don't take the name of root in vain."

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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



Re: "-javadoc" jars

2007-06-21 Thread Tim Kettler

To add/clarify my previous mail:

Adding the javadoc dependency to the  section 
is probably not what you want (this would add the javadoc jar to the 
compilation classpath as well).


Instead I would use the maven-dependency-plugin [1] to copy the jar [2] 
to the right location in the target directory so that it gets jarred up 
to the final war.


[1] http://maven.apache.org/plugins/maven-dependency-plugin/
[2] http://maven.apache.org/plugins/maven-dependency-plugin/copy-mojo.html

-Tim

Tim Kettler schrieb:
No, with  you just tell the plugin where to create 
the javadoc jar. This will not help you to access it as a dependency 
from a repository.


However, your actual problem is solved easily. It's no problem at all 
that the javadoc jar is deployed alongsite the main artifact in the same 
directory. This is by design! These auxiliary artifacts are distinct 
from the main artifact in the directory by the "-{classifier}.jar" part 
of their name. To declare a dependency to them just add the classifier 
part to the dependency description in your pom.


For example:


  mygroup
  myartifact
  0.1
  javadoc


-Tim

[EMAIL PROTECTED] schrieb:

Tim

I haven't.  I missed that option while looking at all those other 
options. = )  What I would like to do is be able to list these javadoc 
jars as a dependency of another project.  However they are installed 
to the same directory as the project jar.  I'm thinking I need them in 
a separate directory so I can grab them as a dependency.  Hopefully 
the jarOutputDirectory will help me do this.  If anyone knows of a 
different way, please let me know.


Thanks for your response,

David



Tim Kettler <[EMAIL PROTECTED]> 06/21/2007 12:27 AM
Please respond to
"Maven Users List" 


To
Maven Users List 
cc

Subject
Re: "-javadoc" jars






Hi,

have you tried the 'jarOutputDirectory' config parameter found in the 
plugin documentation [1]?


-Tim

[1] http://maven.apache.org/plugins/maven-javadoc-plugin/jar-mojo.html

[EMAIL PROTECTED] schrieb:

Hi Everyone,

Is there anyway to include the "-javadoc" jars created  by the 
javadoc plugin in a war or ear with maven 2?


Thanks,

David Williams
205-271-6159



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


_
CONFIDENTIALITY:  This email (including any attachments) may contain 
confidential, proprietary and privileged information, and unauthorized 
disclosure or use is prohibited.  If you received this email in error, 
please notify the sender and delete this email from your system.  
Thank you.





-
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: Profile de-activation

2007-06-21 Thread Julien Stern
On Thu, Jun 21, 2007 at 11:54:07PM +1000, Stephen Coy wrote:
>  tf3711454s177.html#a10381554>.
> 
> :-)

Thanks! And if the not (!) trick is here to say, it should
definitely be documented on the Maven site :)

> On 21/06/2007, at 11:16 PM, Julien Stern wrote:
> 
> >Hi list,
> >
> >Is it possible to de-activate a profile?
> >
> >I would like one profile to be activeByDefault, but would like
> >to be able to deactivate in order to use an other one in some
> >specific poms. It that possible at all?
> >
> >Thanks.
> >
> >--
> >Julien
> >
> >-
> >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: "-javadoc" jars

2007-06-21 Thread DavidWilliams
Thank you Tim!!!  I'll give that a try.

David




Tim Kettler <[EMAIL PROTECTED]> 
06/21/2007 08:29 AM
Please respond to
"Maven Users List" 


To
Maven Users List 
cc

Subject
Re: "-javadoc" jars






No, with  you just tell the plugin where to create 
the javadoc jar. This will not help you to access it as a dependency 
from a repository.

However, your actual problem is solved easily. It's no problem at all 
that the javadoc jar is deployed alongsite the main artifact in the same 
directory. This is by design! These auxiliary artifacts are distinct 
from the main artifact in the directory by the "-{classifier}.jar" part 
of their name. To declare a dependency to them just add the classifier 
part to the dependency description in your pom.

For example:


   mygroup
   myartifact
   0.1
   javadoc


-Tim

[EMAIL PROTECTED] schrieb:
> Tim
> 
> I haven't.  I missed that option while looking at all those other 
options. 
> = )  What I would like to do is be able to list these javadoc jars as a 
> dependency of another project.  However they are installed to the same 
> directory as the project jar.  I'm thinking I need them in a separate 
> directory so I can grab them as a dependency.  Hopefully the 
> jarOutputDirectory will help me do this.  If anyone knows of a different 

> way, please let me know.
> 
> Thanks for your response,
> 
> David
> 
> 
> 
> Tim Kettler <[EMAIL PROTECTED]> 
> 06/21/2007 12:27 AM
> Please respond to
> "Maven Users List" 
> 
> 
> To
> Maven Users List 
> cc
> 
> Subject
> Re: "-javadoc" jars
> 
> 
> 
> 
> 
> 
> Hi,
> 
> have you tried the 'jarOutputDirectory' config parameter found in the 
> plugin documentation [1]?
> 
> -Tim
> 
> [1] http://maven.apache.org/plugins/maven-javadoc-plugin/jar-mojo.html
> 
> [EMAIL PROTECTED] schrieb:
>> Hi Everyone,
>>
>> Is there anyway to include the "-javadoc" jars created  by the javadoc 
>> plugin in a war or ear with maven 2?
>>
>> Thanks,
>>
>> David Williams
>> 205-271-6159
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> _
> CONFIDENTIALITY:  This email (including any attachments) may contain 
> confidential, proprietary and privileged information, and unauthorized 
> disclosure or use is prohibited.  If you received this email in error, 
> please notify the sender and delete this email from your system.  Thank 
> you.
> 


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


_
CONFIDENTIALITY:  This email (including any attachments) may contain 
confidential, proprietary and privileged information, and unauthorized 
disclosure or use is prohibited.  If you received this email in error, 
please notify the sender and delete this email from your system.  Thank 
you.


Re: Profile de-activation

2007-06-21 Thread Stephen Coy
.


:-)


On 21/06/2007, at 11:16 PM, Julien Stern wrote:


Hi list,

Is it possible to de-activate a profile?

I would like one profile to be activeByDefault, but would like
to be able to deactivate in order to use an other one in some
specific poms. It that possible at all?

Thanks.

--
Julien

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




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



Re: "-javadoc" jars

2007-06-21 Thread Tim Kettler
No, with  you just tell the plugin where to create 
the javadoc jar. This will not help you to access it as a dependency 
from a repository.


However, your actual problem is solved easily. It's no problem at all 
that the javadoc jar is deployed alongsite the main artifact in the same 
directory. This is by design! These auxiliary artifacts are distinct 
from the main artifact in the directory by the "-{classifier}.jar" part 
of their name. To declare a dependency to them just add the classifier 
part to the dependency description in your pom.


For example:


  mygroup
  myartifact
  0.1
  javadoc


-Tim

[EMAIL PROTECTED] schrieb:

Tim

I haven't.  I missed that option while looking at all those other options. 
= )  What I would like to do is be able to list these javadoc jars as a 
dependency of another project.  However they are installed to the same 
directory as the project jar.  I'm thinking I need them in a separate 
directory so I can grab them as a dependency.  Hopefully the 
jarOutputDirectory will help me do this.  If anyone knows of a different 
way, please let me know.


Thanks for your response,

David



Tim Kettler <[EMAIL PROTECTED]> 
06/21/2007 12:27 AM

Please respond to
"Maven Users List" 


To
Maven Users List 
cc

Subject
Re: "-javadoc" jars






Hi,

have you tried the 'jarOutputDirectory' config parameter found in the 
plugin documentation [1]?


-Tim

[1] http://maven.apache.org/plugins/maven-javadoc-plugin/jar-mojo.html

[EMAIL PROTECTED] schrieb:

Hi Everyone,

Is there anyway to include the "-javadoc" jars created  by the javadoc 
plugin in a war or ear with maven 2?


Thanks,

David Williams
205-271-6159



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


_
CONFIDENTIALITY:  This email (including any attachments) may contain 
confidential, proprietary and privileged information, and unauthorized 
disclosure or use is prohibited.  If you received this email in error, 
please notify the sender and delete this email from your system.  Thank 
you.





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



Re: Plugin to compile and run

2007-06-21 Thread noah

On 6/20/07, Jo Vandermeeren <[EMAIL PROTECTED]> wrote:

Hi Noah,

Why don't you package that "generator" class with your plugin?
Then define an execution for it during the generate-sources phase.


Ah right, because the class to compile is project specific.  The
classes to generate are described as code and we do a little bit of
reflection as well.



You should not call plugins from other plugins, because it makes your plugin
hard to reuse.


I would normally agree, but considering that it's the compiler plugin,
it will most certainly always be present, yes?  I don't really care if
it's the compiler plugin, I just need to invoke javac on a file.


Instead, extend the lifecycle by plugging in on certain phases.
Cf. http://www.mail-archive.com/users@maven.apache.org/msg67531.html



I could probably make this work, but it would be nice if all my users
didn't have to do the same. Right now it's only 2 plugins, but I
anticipate needing 3 or more in the future. That's a maintenance and
upgrade nightmare.


Cheers
Jo

On 6/20/07, noah <[EMAIL PROTECTED]> wrote:
>
> I'm currently using ant-run in the generate-sources phase to compile a
> class and then execute it.  It works fine, but I need it on several
> projects and it's a pain to replicate the build file for each one, so
> I'd like to write a plugin to do it.
>
> Is there some way I can invoke the compile plugin on a particular file
> (or set of files) from a custom plugin? Or convert a build file (using
> the maven classpaths) to a plugin?
>
> -
> 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]



Profile de-activation

2007-06-21 Thread Julien Stern
Hi list,

Is it possible to de-activate a profile?

I would like one profile to be activeByDefault, but would like
to be able to deactivate in order to use an other one in some
specific poms. It that possible at all?

Thanks.

--
Julien

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



Re: "-javadoc" jars

2007-06-21 Thread DavidWilliams
Tim

I haven't.  I missed that option while looking at all those other options. 
= )  What I would like to do is be able to list these javadoc jars as a 
dependency of another project.  However they are installed to the same 
directory as the project jar.  I'm thinking I need them in a separate 
directory so I can grab them as a dependency.  Hopefully the 
jarOutputDirectory will help me do this.  If anyone knows of a different 
way, please let me know.

Thanks for your response,

David



Tim Kettler <[EMAIL PROTECTED]> 
06/21/2007 12:27 AM
Please respond to
"Maven Users List" 


To
Maven Users List 
cc

Subject
Re: "-javadoc" jars






Hi,

have you tried the 'jarOutputDirectory' config parameter found in the 
plugin documentation [1]?

-Tim

[1] http://maven.apache.org/plugins/maven-javadoc-plugin/jar-mojo.html

[EMAIL PROTECTED] schrieb:
> Hi Everyone,
> 
> Is there anyway to include the "-javadoc" jars created  by the javadoc 
> plugin in a war or ear with maven 2?
> 
> Thanks,
> 
> David Williams
> 205-271-6159


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


_
CONFIDENTIALITY:  This email (including any attachments) may contain 
confidential, proprietary and privileged information, and unauthorized 
disclosure or use is prohibited.  If you received this email in error, 
please notify the sender and delete this email from your system.  Thank 
you.


RE: Classpath in EAR's manifest?

2007-06-21 Thread Jörg Schaible
Hi Anread, 

> -Original Message-
> From: andreas.ebbert-karroum
> Sent: Thursday, June 21, 2007 11:54 AM
> Subject: Classpath in EAR's manifest?
> 
> Hi,
>  
> why is the classpath also generated in the EAR's manifest? It 
> should not, the JavaEE verifier in netbeans is complaining about it:
>  
> 
>   Manifest file of an EAR file should not contain 
> Class-Path entries. Please refer to J2EE 1.4 Platform 
> Specification Section #8.2   for further information.
>   Manifest file of this EAR file contains [ ... ] as the 
> Class-Path entry.  
>   
> 
> Can I turn that off somehow? I couldn't find an option in the 
> documentation in 
> http://maven.apache.org/plugins/maven-ear-plugin/ear-mojo.html

None of my generated EARs has a manifest that contains a Class-Path entry. So 
it must be something within your configuration or you provide a manually 
generated one. You can print the effective POM (mvn help:effective-pom) and 
compare the settings for the ear-plugin with my settings though:

[snip]

  maven-ear-plugin
  2.3
  

  false
  

true

true
  

  

[snip]


- Jörg

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



Re: javadoc:jar goal question

2007-06-21 Thread DavidWilliams
Ok.  That would explain why it still separated them even when I set 
aggregate to true.

Thanks for your response!!

David



Maria Odea Ching <[EMAIL PROTECTED]> 
06/21/2007 12:35 AM
Please respond to
"Maven Users List" 


To
Maven Users List 
cc

Subject
Re: javadoc:jar goal question






Hi,

I don't think javadoc jar can be executed in aggregate, javadoc jars are 
created per module. The aggregate parameter is always set to 'false', 
even if you set it to 'true' the configuration value you specified is 
always overridden in javadoc:jar mojo. AFAIK, it can only be set to 
'true' in the javadoc:javadoc mojo.

HTH,
Deng

[EMAIL PROTECTED] wrote:
> Hi Everyone,
>
> Has anyone created an aggregate javadoc jar for a multi module build?  I 

> can get it to create one for each module but not an overall jar?
>
> Thanks for your help!!
>
> David
> 


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


_
CONFIDENTIALITY:  This email (including any attachments) may contain 
confidential, proprietary and privileged information, and unauthorized 
disclosure or use is prohibited.  If you received this email in error, 
please notify the sender and delete this email from your system.  Thank 
you.


Interpolated expression to reference configuration elements of another plugin

2007-06-21 Thread Olivier Dehon

Hi,

What ${} expression should I use in my POM or Mojo to reference 
configuration

values of another plugin?
I couldn't find any FAQ or reference on this. Sorry if this is indeed an 
FAQ.


Thanks in advance.

-Olivier



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



Re: Issue in excluding unwanted jars from the target war.

2007-06-21 Thread Tim Kettler

Hi,

you mean that for example this dependency:

  
javax.servlet
servlet-api
2.3
provided
  

is included in your war even though it has 'provided' scope?

Have you added the scope tag later on in your development and at first 
didn't use the 'provided' scope? Try making a clean build 'mvn clean 
package' or else the artifacts keep sticking in the target directory and 
are included in the final archiv.


-Tim

nitinaggarwal schrieb:
Hi 


I am pretty new to maven 2.
i am working on a portal (jsr 168 portlets) project on jetspeed 2.1 portal
server and building using maven2.05.

when i use the mvn install command 
the build is fine and i am successfully able to generate a fcapps.war file.


Everything seems working fine but the problem occurs when i try to deploy
this war on jetspeed 2.1
The fcapps.war file contains all the jars which i do not intend to use. 


when i try to run the application it gives me an error that application
fcapps not available 
and 
only when i delete the unnecessary jars i am able to run the application

properly this seems pretty wierd can any one help.



i only need these 7 jars to deploy my application 
 
commons-logging-1.0.3.jar

ehcache-1.2.4.jar
fcCaching-1.0.jar
fcCmStub-1.0.jar
fcpf-1.0.jar
jdom-1.0.jar
log4j-1.2.8.jar

i am attaching the pom.xml file for my project. 








4.0.0

FidelityCentral
application
1.0

fcapps
war
Fidelity Central
Fidelity Central Portlets
1.0

src/java
install
	
		


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


src/webapp

			 
		




target/fc

fc.war


**.*





   
org.apache.portals.bridges
portals-bridges-common
1.0.1-dev
provided


jdom
jdom
1.0


FidelityCentral
fcCmStub
1.0



FidelityCentral
fcCaching
1.0


FidelityCentral
fcpf
1.0
 

javax.servlet
servlet-api
2.3
provided


 portlet-api 
 portlet-api
 1.0
 provided
   

  org.apache.pluto
  pluto
  1.0.1
  provided

   
 org.apache.portals.jetspeed-2
 jetspeed-api
 2.1-dev
 provided
 
   

 http://www.nabble.com/file/p11231529/pom.xml pom.xml 
 

  



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



RE: Issue in excluding unwanted jars from the target war.

2007-06-21 Thread Alok, Niraj
Use the scope tag to decide which jars to be packaged. Scope can be
etiher test/compile/runtime/provided. 
Niraj
 

-Original Message-
From: nitinaggarwal [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 21, 2007 5:22 PM
To: users@maven.apache.org
Subject: Issue in excluding unwanted jars from the target war.


Hi 

I am pretty new to maven 2.
i am working on a portal (jsr 168 portlets) project on jetspeed 2.1
portal
server and building using maven2.05.

when i use the mvn install command 
the build is fine and i am successfully able to generate a fcapps.war
file.

Everything seems working fine but the problem occurs when i try to
deploy
this war on jetspeed 2.1
The fcapps.war file contains all the jars which i do not intend to use. 

when i try to run the application it gives me an error that application
fcapps not available 
and 
only when i delete the unnecessary jars i am able to run the application
properly this seems pretty wierd can any one help.



i only need these 7 jars to deploy my application 
 
commons-logging-1.0.3.jar
ehcache-1.2.4.jar
fcCaching-1.0.jar
fcCmStub-1.0.jar
fcpf-1.0.jar
jdom-1.0.jar
log4j-1.2.8.jar

i am attaching the pom.xml file for my project. 






4.0.0

FidelityCentral
application
1.0

fcapps
war
Fidelity Central
Fidelity Central Portlets
1.0

src/java
install




org.apache.maven.plugins

maven-war-plugin


src/webapp

 




target/fc


fc.war


**.*





   
org.apache.portals.bridges
portals-bridges-common
1.0.1-dev
provided


jdom
jdom
1.0


FidelityCentral
fcCmStub
1.0



FidelityCentral
fcCaching
1.0


FidelityCentral
fcpf
1.0
   

javax.servlet
servlet-api
2.3
provided


 portlet-api 
 portlet-api
 1.0
 provided
   

  org.apache.pluto
  pluto
  1.0.1
  provided

   
 org.apache.portals.jetspeed-2
 jetspeed-api
 2.1-dev
 provided
   
 

 http://www.nabble.com/file/p11231529/pom.xml pom.xml 
 

  
-- 
View this message in context:
http://www.nabble.com/Issue-in-excluding-unwanted-jars-from-the-target-w
ar.-tf3958240s177.html#a11231529
Sent from the Maven - Users mailing list archive at Nabble.com.


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

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



Issue in excluding unwanted jars from the target war.

2007-06-21 Thread nitinaggarwal

Hi 

I am pretty new to maven 2.
i am working on a portal (jsr 168 portlets) project on jetspeed 2.1 portal
server and building using maven2.05.

when i use the mvn install command 
the build is fine and i am successfully able to generate a fcapps.war file.

Everything seems working fine but the problem occurs when i try to deploy
this war on jetspeed 2.1
The fcapps.war file contains all the jars which i do not intend to use. 

when i try to run the application it gives me an error that application
fcapps not available 
and 
only when i delete the unnecessary jars i am able to run the application
properly this seems pretty wierd can any one help.



i only need these 7 jars to deploy my application 
 
commons-logging-1.0.3.jar
ehcache-1.2.4.jar
fcCaching-1.0.jar
fcCmStub-1.0.jar
fcpf-1.0.jar
jdom-1.0.jar
log4j-1.2.8.jar

i am attaching the pom.xml file for my project. 






4.0.0

FidelityCentral
application
1.0

fcapps
war
Fidelity Central
Fidelity Central Portlets
1.0

src/java
install



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


src/webapp

 




target/fc

fc.war


**.*





   
org.apache.portals.bridges
portals-bridges-common
1.0.1-dev
provided


jdom
jdom
1.0


FidelityCentral
fcCmStub
1.0



FidelityCentral
fcCaching
1.0


FidelityCentral
fcpf
1.0
   

javax.servlet
servlet-api
2.3
provided


 portlet-api 
 portlet-api
 1.0
 provided
   

  org.apache.pluto
  pluto
  1.0.1
  provided

   
 org.apache.portals.jetspeed-2
 jetspeed-api
 2.1-dev
 provided
   
 

 http://www.nabble.com/file/p11231529/pom.xml pom.xml 
 

  
-- 
View this message in context: 
http://www.nabble.com/Issue-in-excluding-unwanted-jars-from-the-target-war.-tf3958240s177.html#a11231529
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: Copy file

2007-06-21 Thread Stephen Coy

Hi,

There's a couple of approaches to this:

1) use separate resources directories for each customer, with each  
one containing a config.xml. Then configure a resources block in each  
profile that points at the appropriate directory.


2) use a single config file that has its values specified as property  
values (using ${property.name} notation. Specify the property values  
in each profile and configure the main resources block to use filter  
copying.


Cheers,

Steve Coy


On 15/06/2007, at 7:29 PM, Geir Gullestad Pettersen wrote:


Is there a plugin to copy a specified file during the build process?

In src/main/resources I have "config-customer1.xml", "config- 
customer2.xml",
"...3" and so on.. Depending on which profile I activate when  
running Maven
I need one of these files to be copied to "src/main/resources/ 
config.xml" so
that the correct config for the given customer is used. Is that  
possible?



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



Re:snapshotRepository.uniqueVersion does not work

2007-06-21 Thread gc134728
-- Initial header ---

>From  : "gc134728" [EMAIL PROTECTED]
To  : "users" users@maven.apache.org
CC  :
Date  : Wed, 20 Jun 2007 15:22:47 +0200
Subject : Re:snapshotRepository.uniqueVersion does not work

You also could try the new maven release. If you check the release notes the
talk about a bug of snapshot parent poms not being updated.
This maybe your problem.
> -- Initial header ---
>
> From  : "Stefan Arentz" [EMAIL PROTECTED]
> To  : "Maven Users List" users@maven.apache.org
> CC  :
> Date  : Wed, 20 Jun 2007 13:03:32 +0200
> Subject : snapshotRepository.uniqueVersion does not work
>
> Hey,
>
> You 're very vaig about what you have done.
>
> First of all check if you child poms have the correct parent declaration.
> Specifically look at the version.
> Second check your local repo if it contains the correct top pom.
> Third if you deploy your top pom to the remote repo and you use a non snapshot
> version it won't look for an update if you all ready have that same version in
> your local repo. If it is a snapshot it can look to the remote repository.
> This depends on your repo settings. Standard it will look for updates for
> snapshots once a day. You can try mvn install -U to look for updates.
> Forth if you deployed the top pom on the same pc as you are compiling the
> child pom it should find the latest pom because on a deploy you perform a
> install. So the problem lies with your top pom.
>
> > I have set distributionManagement.snapshotRepository.uniqueVersion to
> > false in the top level pom of a multi module project. Only the top
> > level project is deployed to the repository without timestamps. The
> > child modules are all still deployed with timestamps.
> >
> > This seems broken. The child modules don't seem to inherit this
> > setting from the master pom?
> >
> >  S.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> ---
> http://www.scarlet.be/
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> 
---
http://www.scarlet.be/


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



Re: [ANN] Maven 2.0.7 Released

2007-06-21 Thread Mark Hobson

Although the page title is still "Download Maven 1.0" :)

Mark

On 21/06/07, Guillaume Boucherie <[EMAIL PROTECTED]> wrote:

stupid cache, it ok
thanks

Clettebou


2007/6/21, Antonio Petrelli <[EMAIL PROTECTED]>:
>
> 2007/6/21, Guillaume Boucherie <[EMAIL PROTECTED]>:
> >
> > The maven's download page, still reference maven-2.0.6, is it correct ?
>
>
>
> Strange, I see 2.0.7, maybe you need to clear your cache.
>
> Antonio
>



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



Re: [ANN] Maven 2.0.7 Released

2007-06-21 Thread Guillaume Boucherie

stupid cache, it ok
thanks

Clettebou


2007/6/21, Antonio Petrelli <[EMAIL PROTECTED]>:


2007/6/21, Guillaume Boucherie <[EMAIL PROTECTED]>:
>
> The maven's download page, still reference maven-2.0.6, is it correct ?



Strange, I see 2.0.7, maybe you need to clear your cache.

Antonio



Re: Skiping module during mvn eclipse:eclipse

2007-06-21 Thread Marcin Waldowski

Nick, thanks for your replay.

My problem is that 'mvn eclipse:eclipse' fail on ear module, because of  
'[INFO] Failed to resolve artifact'. This missing artifact is other 
module of my my multiple module project. It's weird, because 'mvn 
package' works ok.


Meybe I rather need to concentrate why 'mvn eclipse:eclipse' fails on 
ear module...


Regards, Marcin

Nick Stolwijk wrote:
At the eclipse plugin site [1] I don't see such an option. But I don't 
understand the problem you have with generating the .classpath en 
.project files. Just don't import the project into Eclipse and all is 
well, or not?


Hth,

Nick Stolwijk


[1] http://maven.apache.org/plugins/maven-eclipse-plugin/
Marcin Waldowski wrote:

Hello.

I have a Multiple Module Projects (with top level POM and modules). 
One of module has ear type (ear) and I don't 
want to make eclipse project from it.


Is it possible to exclude this module from execution of
mvn eclipse:eclipse
in directory with top level POM?

Regards,
Marcin

-
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: [ANN] Maven 2.0.7 Released

2007-06-21 Thread Antonio Petrelli

2007/6/21, Guillaume Boucherie <[EMAIL PROTECTED]>:


The maven's download page, still reference maven-2.0.6, is it correct ?




Strange, I see 2.0.7, maybe you need to clear your cache.

Antonio


Re: Copy file

2007-06-21 Thread Maria Odea Ching

Hi,

Sorry, I misread your previous email. I thought it was about using a 
different config file for every profile.
Anyway, I don't know of any plugin that can be used for what you wanted 
to do..


-Deng

geirgp wrote:

Thanks for replying, but I can't see how configuring this plugin can help me
copy a file during the process-sources phase. What I need is something that
copies "config-customer1.xml" to "config.xml", and as far as I can see this
plugin only handles inclusion/exclusion of files within a resource
directory. 




Maria Odea Ching-2 wrote:
  
In each of your profiles, you could define a separate  block 
which contains which resources you want to be included in each profile 
(using the  and  tags).


You may want to take a look at this..
http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html

Btw, the resources:resources goal of the maven-resources-plugin is 
already bound to Maven's process-resources phase so when you do' mvn 
install', its already executed.. you need not execute 'mvn 
resources:resources'.


-Deng

Geir Gullestad Pettersen wrote:


Is there a plugin to copy a specified file during the build process?

In src/main/resources I have "config-customer1.xml", 
"config-customer2.xml",
"...3" and so on.. Depending on which profile I activate when running 
Maven
I need one of these files to be copied to 
"src/main/resources/config.xml" so

that the correct config for the given customer is used. Is that possible?

  

-
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: [ANN] Maven 2.0.7 Released

2007-06-21 Thread Guillaume Boucherie

The maven's download page, still reference maven-2.0.6, is it correct ?

CletteBou


2007/6/21, Jason van Zyl <[EMAIL PROTECTED]>:


The Apache Maven team would like to announce the availability of
Maven 2.0.7.

You can find the binaries here:

http://maven.apache.org/download.html

You can find the release notes here:

http://maven.apache.org/release-notes.html

You can find the roadmap here:

http://jira.codehaus.org/secure/IssueNavigator.jspa?
reset=true&&pid=10500&fixfor=13010&sorter/field=issuekey&sorter/
order=DESC

Enjoy,

The Apache Maven Team



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




Re: Notifiers lists

2007-06-21 Thread Maria Odea Ching

Hi,

I think this is stored in the continuum database (ProjectNotifier table).

-Deng

Jeff Mutonho wrote:

Where are the e-mails added (i.e notifiers list) through the
continuum's web front-end stored?





Re: Skiping module during mvn eclipse:eclipse

2007-06-21 Thread Nick Stolwijk
At the eclipse plugin site [1] I don't see such an option. But I don't 
understand the problem you have with generating the .classpath en 
.project files. Just don't import the project into Eclipse and all is 
well, or not?


Hth,

Nick Stolwijk


[1] http://maven.apache.org/plugins/maven-eclipse-plugin/
Marcin Waldowski wrote:

Hello.

I have a Multiple Module Projects (with top level POM and modules). 
One of module has ear type (ear) and I don't 
want to make eclipse project from it.


Is it possible to exclude this module from execution of
mvn eclipse:eclipse
in directory with top level POM?

Regards,
Marcin

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



Classpath in EAR's manifest?

2007-06-21 Thread andreas.ebbert-karroum
Hi,
 
why is the classpath also generated in the EAR's manifest? It should not, the 
JavaEE verifier in netbeans is complaining about it:
 

Manifest file of an EAR file should not contain Class-Path entries. 
Please refer to J2EE 1.4 Platform Specification Section #8.2   for further 
information.
Manifest file of this EAR file contains [ ... ] as the Class-Path 
entry.  


Can I turn that off somehow? I couldn't find an option in the documentation in 
http://maven.apache.org/plugins/maven-ear-plugin/ear-mojo.html
 
Thanks,
Andreas Ebbert-Karroum 
  Senior Software Design Engineer - Nokia Siemens Networks / Operations & 
Business Software 
  phone: +49-211-94123928, fax: +49-211-94123838 
  Heltorfer Straße 1, 40472 Düsseldorf, Germany 




Nokia Siemens Networks GmbH & Co. KG * Sitz der Gesellschaft: München / 
Registered office: Munich * Registergericht: München / Commercial registry: 
Munich, HRA 88537 * WEEE-Reg.-Nr.: DE 52984304 

Persönlich haftende Gesellschafterin / General Partner: Nokia Siemens Networks 
Management GmbH * Geschäftsleitung / Board of Directors: Joachim Malterer, 
Lydia Sommer * Sitz der Gesellschaft: München / Registered office: Munich * 
Registergericht: München / Commercial registry: Munich, HRB 163416 



This message is confidential. If you have received this message in error, 
please delete it from your system. You should not copy it for any purpose, or 
disclose its contents to any other person. Internet communications are not 
secure and therefore Nokia Siemens Networks GmbH & Co. KG does not accept legal 
responsibility for the contents of this message as it has been transmitted over 
a public network. Thank you.

Nokia Siemens Networks GmbH & Co. KG is a German Company. Further information 
about the Company is available from its offices at Heltorferstrasse 1, D-40472, 
Düsseldorf, Germany and from the website at http://www.nsn.com/



 


Re: Set alternate location for .m2

2007-06-21 Thread Olivier Jacob

Hey,

I'm new to maven so forgive me if this is a stupid question or if it has
been previously answered; however I have not found anything on Google.

Can someone tell me how to specify a custom location of the .m2
directory?  I need to put this folder outside of the user.home
directory.



Hi,

you can add -Duser.home= in your MAVEN_OPTS env variable, where 
is the path to the folder
containing you .m2 directory.

--
Olivier Jacob
Consultant - OCTO Technology
50, avenue des Champs Elysées
75008 Paris


Skiping module during mvn eclipse:eclipse

2007-06-21 Thread Marcin Waldowski

Hello.

I have a Multiple Module Projects (with top level POM and modules). One 
of module has ear type (ear) and I don't want to 
make eclipse project from it.


Is it possible to exclude this module from execution of
mvn eclipse:eclipse
in directory with top level POM?

Regards,
Marcin

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



Surefire classpah problem

2007-06-21 Thread S . Bloch

Hi



I've got problem with surefire plugin. It looks like it has
some classpath problem. As you can see below, there is cglib-nodep in
classpath or rather it shows there is cglib.


+ Error stacktraces are turned on.

Maven version: 2.0.6

.

.

.

[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-surefire-plugin:2.3:test' -->

[DEBUG]   (f) basedir = D:\dev\projects\Myapp

[DEBUG]   (f) childDelegation = true

[DEBUG]   (f) classesDirectory = D:\dev\projects\Myapp\target\classes

[DEBUG]   (f) classpathElements =
[D:\dev\projects\Myapp\target\classes,
D:\dev\projects\Myapp\target\test-classes,
D:\dev\apps\maven2\repository\log4j\log4j\1.2.8\log4j-1.2.8.jar,
D:\dev\apps\maven2\repository\org\jmock\jmock\2.1.0\jmock-2.1.0.jar,
D:\dev\apps\maven2\repository\org\jmock\jmock-junit4\2.1.0
\jmock-junit4-2.1.0.jar,
D:\dev\apps\maven2\repository\cglib\cglib-nodep\2.1_3\cglib-nodep-2.1
_3.jar,

D:\dev\apps\maven2\repository\xalan\xalan\2.7.0\xalan-2.7.0.jar,
D:\dev\apps\maven2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar,

D:\dev\apps\maven2\repository\org\jmock\jmock-legacy\2.1.0
\jmock-legacy-2.1.0.jar,
D:\dev\apps\maven2\repository\junit\junit\4.3.1\junit-4.3.1.jar,
D:\dev\apps\maven2\repository\org\objenesis\objenesis\1.0\objenesis-1.0.jar,

D:\dev\apps\maven2\repository\xerces\xercesImpl\2.6.1\xercesImpl-2.6.1.jar,
D:\dev\apps\maven2\repository\org\hamcrest\hamcrest-api\1.0\hamcrest-api-1.0.jar,

D:\dev\apps\maven2\repository\iaik\iaik_jce_signed\3.03\iaik_jce_signed-3.03.jar,

D:\dev\apps\maven2\repository\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar,
D:\dev\apps\maven2\repository\xml-security\xmlsec\1.4.1\xmlsec-1.4.1.jar,
D:\dev\apps\maven2\repository\org\hamcrest\hamcrest-library\1.0\hamcrest-library-1.0.jar]


[DEBUG]   (f) disableXmlReport = false

[DEBUG]   (f) forkMode = once

[DEBUG]   (f) localRepository = [local] ->
file://D:/dev/apps/maven2/repository

[DEBUG]   (f) parallel = false

[DEBUG]   (f) pluginArtifactMap =
{org.codehaus.plexus:plexus-utils=org.codehaus.plexus:plexus-utils:jar:1.1:runtime,

org.apache.maven.surefire:surefire-api=org.apache.maven.surefire:surefire-api:jar:2.3:runtime,

org.codehaus.plexus:plexus-archiver=org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7:runtime,

org.apache.maven:maven-artifact=org.apache.maven:maven-artifact:jar:2.0:runtime,

org.apache.maven:maven-plugin-api=org.apache.maven:maven-plugin-api:jar:2.0:runtime,

org.apache.maven.surefire:surefire-booter=org.apache.maven.surefire:surefire-booter:jar:2.3:runtime,

commons-lang:commons-lang=commons-lang:commons-lang:jar:2.1:runtime}

[DEBUG]   (f) printSummary = true

[DEBUG]   (f) projectArtifactMap =
{log4j:log4j=log4j:log4j:jar:1.2.8:compile,
iaik:iaik_jce_signed=iaik:iaik_jce_signed:jar:3.03:compile,
org.hamcrest:hamcrest-api=org.hamcrest:hamcrest-api:jar:1.0:compile,
org.hamcrest:hamcrest-library=org.hamcrest:hamcrest-library:jar:1.0:compile,

org.jmock:jmock-junit4=org.jmock:jmock-junit4:jar:2.1.0:compile,
xml-security:xmlsec=xml-security:xmlsec:jar:1.4.1:compile,
xerces:xercesImpl=xerces:xercesImpl:jar:2.6.1:compile,
cglib:cglib-nodep=cglib:cglib-nodep:jar:2.1_3:compile
,
org.jmock:jmock-legacy=org.jmock:jmock-legacy:jar:2.1.0:compile,
junit:junit=junit:junit:jar:4.3.1:test,
org.jmock:jmock=org.jmock:jmock:jar:2.1.0:compile,
xalan:xalan=xalan:xalan:jar:2.7.0:compile,
xml-apis:xml-apis=xml-apis:xml-apis:jar:1.0.b2:compile,
commons-lang:commons-lang=commons-lang:commons-lang:jar:2.1:compile,
org.objenesis:objenesis=org.objenesis:objenesis:jar:1.0:compile}

[DEBUG]   (f) redirectTestOutputToFile = false

[DEBUG]   (f) reportFormat = brief

[DEBUG]   (f) reportsDirectory =
D:\dev\projects\Myapp\target\surefire-reports

[DEBUG]   (f) testClassesDirectory =
D:\dev\projects\Myapp\target\test-classes

[DEBUG]   (f) testSourceDirectory = D:\dev\projects\Myapp\src\test\java

[DEBUG]   (f) threadCount = 5

[DEBUG]   (f) trimStackTrace = true

[DEBUG]   (f) useFile = true

[DEBUG]   (f) useSystemClassLoader = false

[DEBUG] -- end configuration --

[INFO] [surefire:test]

[DEBUG] dummy:dummy:jar:1.0 (selected for null)

[DEBUG]   org.apache.maven.surefire:surefire-booter:jar:2.3:runtime
(selected for runtime)

[DEBUG] org.apache.maven.surefire:surefire-api:jar:2.3:runtime
(selected for runtime)

[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected
for runtime)

[DEBUG]   commons-lang:commons-lang:jar:2.1:runtime (selected for
runtime)

[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for
runtime)

[DEBUG] org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7:runtime
(selected for runtime)

[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
(selected for runtime)

[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed
- nearer found: 1.1)

[DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)

[DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected
for runtim

Issue in plugin execution order with inherited POM

2007-06-21 Thread Told

Hi everyone,
 
I work with maven 2.0.6 and I have an issue with plugin execution order with
inherited POM :
 
I created a custom QALab plugin which use XML files created by "Source Xref"
report and "JavaNCSS Report" report.
 
I've created and empty project POM with the declaration of the use of my
generic report and QALab custom plugin call.
 
When I do a "mvn site" on this project it creates the needed generic report
and next call my custom plugin. Site generated is the expected one.
 
Next when I create another project. I define this project POM (of doc
generation) as parent in my effective project. So it should inherit the doc
generation properties and in fact it does actually but not as wanted :
- The execution order is not respected. My custom QALab plugin is call
before the generic report creation so it doesn't yet hav the needed XML File
and skip threatments...
 
So I would know if this POM inheritance execution order is known and if
someone would have an idear about how to fix it (I guess remove the
inheritance and copy past info would work but that's not clean...). I've
read lot of doc without finding an answer...
 
Any help would be greatly apreciate...

-- 
View this message in context: 
http://www.nabble.com/Issue-in-plugin-execution-order-with-inherited-POM-tf3957004s177.html#a11227990
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: execution order of plugins

2007-06-21 Thread Torsten Krall

Hello,

is there any chance to define a plugin to run before the inherited goal 
executions?
I have to tag a cvs-module and check for an already deployed version 
with the same versionnumber before deploying.
I wrote an ant-plugin to test these conditions which is executed within 
the deploy-phase and which will break the deploy-process if one 
condition fails.


This is rather stupid because the conditions are checked when "deploy" 
is already done...

The install-phase is not the right position for my plugin, too. :-(

I cannot understand why pre- and post-goals were completely removed from 
maven2... I need a pre-phase...


Anyone who can help?

Best regards,
Torsten


Jo Vandermeeren schrieb:

On 6/20/07, Kanzlers, Andreas <[EMAIL PROTECTED]> wrote:


If different plugins are executed within the same execution phase, which
will be executed first ?




If multiple plugin executions are defined for the same phase (same or
different plugin), they are executed in the same order as they are 
defined

in your pom.xml.
Inherited goal executions are executed first.

There were some issues when inserting plugins by means of a profile, but
they should have been fixed in 2.0.7.

For example,


  maven-antrun-plugin 

  package

  

maven-dependency-plugin 

  package

  

  Is the maven-antrun-plugin executed first because it is positioned
above the maven-dependency-plugin ?




Yes.

Regards,


Andreas




Cheers
Jo



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



Issue in plugin execution order with inherited POM

2007-06-21 Thread Toldwin

Hi everyone,

I work with maven 2.0.6 and I have an issue with plugin execution order with
inherited POM :

I created a custom QALab plugin which use XML files created by "Source Xref"
report and "JavaNCSS Report" report.

I've created and empty project POM with the declaration of the use of my
generic report and QALab custom plugin call.

When I call "mvn site" on this project it creates the needed generic report
and next call my custom plugin. Site generated is the expected one.

Next when I create another project I define this project POM (of doc
generation) as parent in my effective project. So it should inherit the doc
generation properties and in fact it does actually but not as wanted :
- The execution order is not respected. My custom QALab plugin is call
before the generic report creation so it doesn't yet hav the needed XML File
and skip threatments...

So I would know if this POM inheritance execution order is known and if
someone would have an idear about how to fix it (I guess remove the
inheritance and copy past info would work but that's not clean...). I've
read lot of doc without finding an answer...

Any help would be greatly apreciate.


Re: execution order of plugins

2007-06-21 Thread Jo Vandermeeren

On 6/20/07, Kanzlers, Andreas <[EMAIL PROTECTED]> wrote:


If different plugins are executed within the same execution phase, which
will be executed first ?




If multiple plugin executions are defined for the same phase (same or
different plugin), they are executed in the same order as they are defined
in your pom.xml.
Inherited goal executions are executed first.

There were some issues when inserting plugins by means of a profile, but
they should have been fixed in 2.0.7.

For example,


  maven-antrun-plugin 

  package

  

maven-dependency-plugin 

  package

  

  Is the maven-antrun-plugin executed first because it is positioned
above the maven-dependency-plugin ?




Yes.

Regards,


Andreas




Cheers
Jo


Re: Plugin to compile and run

2007-06-21 Thread Jo Vandermeeren

Hi Noah,

Why don't you package that "generator" class with your plugin?
Then define an execution for it during the generate-sources phase.

You should not call plugins from other plugins, because it makes your plugin
hard to reuse.
Instead, extend the lifecycle by plugging in on certain phases.
Cf. http://www.mail-archive.com/users@maven.apache.org/msg67531.html

Cheers
Jo

On 6/20/07, noah <[EMAIL PROTECTED]> wrote:


I'm currently using ant-run in the generate-sources phase to compile a
class and then execute it.  It works fine, but I need it on several
projects and it's a pain to replicate the build file for each one, so
I'd like to write a plugin to do it.

Is there some way I can invoke the compile plugin on a particular file
(or set of files) from a custom plugin? Or convert a build file (using
the maven classpaths) to a plugin?

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