Re: Maven2 Javadoc using UmlGraphDoclet

2006-12-13 Thread Wendy Smoak

On 12/13/06, Tobias Reese <[EMAIL PROTECTED]> wrote:


I'am trying to generate Javadocs using UmlGraphDoclet. Everything works fine
so far but no Graphics are generated at all. "apidocs"-Folder contains
".dot"-Files and ${packagename}.png file links are added to the package
overview HTML's. If I'am right I need a additional task to generate the png
using Graphviz but found nothing on the net.


If the Graphviz executables are on your $PATH, it should "just work".

You can see a working example in the Tiles 2 pom:
  http://svn.apache.org/repos/asf/struts/sandbox/trunk/tiles/pom.xml

Which produces this (pardon the strange font, I haven't figured out
why that's happening...):
  
http://struts.apache.org/struts-sandbox/tiles/tiles-core/apidocs/org/apache/tiles/taglib/package-summary.html

--
Wendy

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



Re: Maven + Perforce - Checkin problem

2006-12-13 Thread noop

Hi Eric,
I tried again with debug trace on... This is the output.
---
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.maven:maven-parent:pom:1 from the repository
.
[DEBUG]
org.apache.maven.scm:maven-scm-provider-svn-commons:jar:1.0-beta-3:runtime
(selected for runtime)
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-scm-plugin:1.0-beta-3:checkin' -->
[DEBUG]   (f) basedir = C:\Maven\perf111\target\checkout
[DEBUG]   (f) connectionType = developerConnection
[DEBUG]   (f) connectionUrl =
scm:perforce:[EMAIL PROTECTED]:3023://depot/perf111
[DEBUG]   (f) developerConnectionUrl =
scm:perforce:[EMAIL PROTECTED]:3023://depot/perf111
[DEBUG]   (f) message = abc
[DEBUG]   (f) settings = [EMAIL PROTECTED]
[DEBUG] -- end configuration --
[INFO] [scm:checkin]
[DEBUG] Executing p4 -H inld50033083a:3023 -u Guest submit -i
[DEBUG] Sending changelist:
Change: new

Description:
abc

Files:

[ERROR] Provider message:
[ERROR] Unable to submit
[ERROR] Command output:
[ERROR]
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Command failed.Unable to submit
[INFO]

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Command
failed.Unable to submit
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
a:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Command
failed.Unable to submit
at
org.apache.maven.scm.plugin.AbstractScmMojo.checkResult(AbstractScmMojo.java:307)
at
org.apache.maven.scm.plugin.CheckinMojo.execute(CheckinMojo.java:58)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
... 16 more
[INFO]

[INFO] Total time: 6 seconds
[INFO] Finished at: Thu Dec 14 10:19:38 GMT+05:30 2006
[INFO] Final Memory: 4M/8M
[INFO]


Regards,
anoop


Eric Redmond wrote:
> 
> Try running it with the -e (error) or -X (debug) flags to get a more
> detailed error message from the command line.
> 
> On 12/13/06, noop <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi,
>> I am Maven rookie. I am trying to integrate maven with perforce.
>> I am able to run the p4 commands without any problems from the
>> console.Using
>> maven ,Checkout and update work. However maven checkin and edit do not
>> seem
>> to work.
>>
>> "mvn scm:edit" does not give any error on the console . However, the
>> files
>> are still in read-only mode.
>>
>> "mvn scm:checkin -Dmessage="checkin"" fails with the following output.
>>
>> C:\Maven\perf111\target\checkout>mvn scm:checkin -Dmessage="adf"
>> [INFO] Scanning for projects...
>> [INFO] Searching repository for plugin with prefix: 'scm'.
>> [INFO]
>> --
>> [INFO] Building perf111
>> [INFO]task-segment: [scm:checkin]
>> [INFO]
>> --
>> [INFO] [scm:checkin]
>> [ERROR] Provider message:
>> [ERROR] Unable to submit
>> [ERROR] Command output:
>> [ERROR]
>> [INFO]
>> --

Re: Maven + Perforce - Checkin problem

2006-12-13 Thread Eric Redmond

Try running it with the -e (error) or -X (debug) flags to get a more
detailed error message from the command line.

On 12/13/06, noop <[EMAIL PROTECTED]> wrote:



Hi,
I am Maven rookie. I am trying to integrate maven with perforce.
I am able to run the p4 commands without any problems from the
console.Using
maven ,Checkout and update work. However maven checkin and edit do not
seem
to work.

"mvn scm:edit" does not give any error on the console . However, the files
are still in read-only mode.

"mvn scm:checkin -Dmessage="checkin"" fails with the following output.

C:\Maven\perf111\target\checkout>mvn scm:checkin -Dmessage="adf"
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'scm'.
[INFO]
--
[INFO] Building perf111
[INFO]task-segment: [scm:checkin]
[INFO]
--
[INFO] [scm:checkin]
[ERROR] Provider message:
[ERROR] Unable to submit
[ERROR] Command output:
[ERROR]
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Command failed.Unable to submit
[INFO]

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

[INFO] Total time: 3 seconds
[INFO] Finished at: Wed Dec 13 12:22:11 GMT+05:30 2006
[INFO] Final Memory: 4M/8M
[INFO]


this is my pom.xml



  4.0.0
  com.sap.maven.app
  perf111
  jar
  1.0-SNAPSHOT
  perf111
  http://maven.apache.org


  junit
  junit
  3.8.1
  test



scm:perforce::3023://depot/perf111
scm:perforce::3023//depot/perf111
scm:perforce::3023

Can anyone tell me if i am missing something here?

Best Regards,
anoop
--
View this message in context:
http://www.nabble.com/Maven-%2B-Perforce---Checkin-problem-tf2812511s177.html#a7848596
Sent from the Maven - Users mailing list archive at Nabble.com.





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


multiple non-recursive mvn invocations running in parallel?

2006-12-13 Thread Christian Goetze
Will multiple non-recursive "mvn -N install" invocations running in 
parallel, each building and installing a different artifact, interact 
with each other in some way? My naive assumption is that they shouldn't, 
since they will populate different parts of the local repository, and 
since I'm not deploying...


Anything I'm missing? would be a pitty to force single threaded 
execution there...

--
cg

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



Re: Maven 2 for desktop applications

2006-12-13 Thread Valerio Schiavoni

Hi sebastian,
i've developed a swing-based java application, using quiet standard
configuration and common plugins. nothing strange. no very big differences
between this kind of application and a webapp: this is a key feature of
maven, being able to reuse the same usage pattern across different kind of
projects.

about your questions:

On 12/13/06, Sebastien Arbogast <[EMAIL PROTECTED]> wrote:


- a specialized set of lifecycle phases for it, with other default targets



what do you propose?

- a new artifact to ease the creation of new projects


the standard (default) archetype was enough for me. what else did you have
to add?

cheers,
valerio

--
http://jroller.com/page/vschiavoni


Cobertura on a staging site

2006-12-13 Thread Anton Nikitin
Hi everyone,

I've found there's a problem generating a site for a reactor build
(Symmetric generation,
http://docs.codehaus.org/display/MAVEN/Sites+and+Inheritence) and that using
site:stage and site:stage-deploy end up in links b/w modules and the parent
resolved properly.

However, when you include cobertura-maven-plugin in your site's reports, you
end up seeing an empty index.html page when you go to the staging deployment
of your site. If you happen to check the generated version of the report(s)
in modules' \target subfolder, the \cobertura directory contains all the
properly generated htmls.

Has anyone come across a similar problem? So far it seems that cobertura is
the only report that exhibits this behavior: I've tried the javadoc and
pmd/cpd report plugins alongside, they work OK.

Thanks,
P


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



Re: Release plugin

2006-12-13 Thread Portuendo Vestado
Hi,

Thanks for the great suggestion with *preparationGoals* - this is definitely
a useful feature. However, this is not what caused a problem in my case.

I've found that defining an assembly plugin entry in  element of your
project will somehow break the way reactor builds are executed for the first
time. My config for assembly plugin included a descriptorRef to built-in
"src" assembly, and that seemed to be enough to affect reactor so that it'd
complain about one of the modules missing when you do your very first
package/install/deploy.

My entry (pretty much a copy of example from
http://maven.apache.org/plugins/maven-assembly-plugin/usage.html):


  [...]
  
[...]

  
maven-assembly-plugin

  
src
  


  
pack.sources
package

  attached

  

  
  [...]




___ 
O Yahoo! está de cara nova. Venha conferir! 
http://br.yahoo.com


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



clover plugin

2006-12-13 Thread Morgovsky, Alexander \(US - Glen Mills\)
In addition to modifying the reporting section, I added the following to
my plugins section.

 
   org.apache.maven.plugins
   maven-clover-plugin
   
 
   pre-site
   
 instrument
   
 
   
 

That solved the issue I had.  Thanks. 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]


Re: Patched artifacts resolved incorrectly from internal repository

2006-12-13 Thread Barrie Treloar

In the effective POM for my project, I have the following repositories

   - apache.snapshots
   - project.snapshots
   - central

And I have the following plugin repositories

   - internal.plugins
   - apache.snapshots
   - central

So, this does not have internal.plugins as a repository, only has it as a
plugin repository.


I think this should be ok.
I vaguely remember needing a normally repository for something in
addition to the plugin repo but I can't recall why that was.  It
should be ok for internal_plugins to only be a plugin repo.



verify that the pom has the correct version details for the plugin
> e.g.
> 
>   maven-surefire-report-plugin
>   2.1-INTERNAL-r485987-pMSUREFIREREP-6
> 


The effective POM of my root project does not show any plugins or their
versions


If you have been tinkering with snapshots I find that they are used
before released versions so I lock down the version in the pom. YMMV.




delete the maven-surefire-report-plugin from your m2 local repo
> run mvn -X surefire-report:report > surefire-report-report.txt
>
> again delete the maven-surefire-report-plugin from your m2 local repo
> run mvn -X site > site.txt
>
> Now look at the surefire-report-report.txt, I am hoping that you will
> find that it resolves and downloads the plugin correctly from your
> internal_plugins.


Not sure if you mean surefire-report symbolically or literally. My patch has
nothing to do with maven-surefire-report-plugin. I have patched
maven-surefire-plugin and surefire-junit projects.


Ahh, I thought you were patching surefire-report, so you can run that
on the command line.
Are you running mvn site or mvn surefire? Try them both, I think
running surefire directly should work, at least it does for
surefire-report.

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



Re: Patched artifacts resolved incorrectly from internal repository

2006-12-13 Thread Nikunj Mehta



run mvn help:effective-pom > effective-pom.txt


verify that internal_plugins is defined in both repositories and



pluginRepositories




In the effective POM for my project, I have the following repositories

  - apache.snapshots
  - project.snapshots
  - central

And I have the following plugin repositories

  - internal.plugins
  - apache.snapshots
  - central

So, this does not have internal.plugins as a repository, only has it as a
plugin repository.

verify that the pom has the correct version details for the plugin

e.g.

  maven-surefire-report-plugin
  2.1-INTERNAL-r485987-pMSUREFIREREP-6




The effective POM of my root project does not show any plugins or their
versions

delete the maven-surefire-report-plugin from your m2 local repo

run mvn -X surefire-report:report > surefire-report-report.txt

again delete the maven-surefire-report-plugin from your m2 local repo
run mvn -X site > site.txt

Now look at the surefire-report-report.txt, I am hoping that you will
find that it resolves and downloads the plugin correctly from your
internal_plugins.



Not sure if you mean surefire-report symbolically or literally. My patch has
nothing to do with maven-surefire-report-plugin. I have patched
maven-surefire-plugin and surefire-junit projects.


Maven2 Javadoc using UmlGraphDoclet

2006-12-13 Thread Tobias Reese

I'am trying to generate Javadocs using UmlGraphDoclet. Everything works fine
so far but no Graphics are generated at all. "apidocs"-Folder contains
".dot"-Files and ${packagename}.png file links are added to the package
overview HTML's. If I'am right I need a additional task to generate the png
using Graphviz but found nothing on the net.

Here my the javadoc settings from my pom.xml


 org.apache.maven.plugins
 maven-javadoc-plugin
 
   private
   gr.spinellis.umlgraph.doclet.UmlGraphDoc
   
 gr.spinellis
 UmlGraph
 4.4
   
 



Please help. This is driving me crazy.

Best regards
Tobias


Re: Patched artifacts resolved incorrectly from internal repository

2006-12-13 Thread Barrie Treloar

On 12/14/06, Nikunj Mehta <[EMAIL PROTECTED]> wrote:

Now I am a little confused


Try the following:

run mvn help:effective-pom > effective-pom.txt
verify that the pom has the correct version details for the plugin
e.g.
   
 maven-surefire-report-plugin
 2.1-INTERNAL-r485987-pMSUREFIREREP-6
   
verify that internal_plugins is defined in both repositories and
pluginRepositories

delete the maven-surefire-report-plugin from your m2 local repo
run mvn -X surefire-report:report > surefire-report-report.txt

again delete the maven-surefire-report-plugin from your m2 local repo
run mvn -X site > site.txt

Now look at the surefire-report-report.txt, I am hoping that you will
find that it resolves and downloads the plugin correctly from your
internal_plugins.

So while surefire-report works correcly there is something wrong with site.
Still investigating.

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



Can't find maven-plugin-tools-api

2006-12-13 Thread mraible

Any idea why the maven-plugin-tools-api is hosted in Mergere's repo and not
in "central"? I just started getting the following error today:

Downloading:
http://repo.mergere.com/maven2/org/apache/maven/maven-plugin-tools-
api/2.0/maven-plugin-tools-api-2.0.pom
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven:maven-plugin-tools-api

Reason: Error getting POM for 'org.apache.maven:maven-plugin-tools-api' from
the
 repository: Error transferring file
  org.apache.maven:maven-plugin-tools-api:pom:2.0

from the specified remote repositories:
  mergere-public-repository (http://repo.mergere.com/maven2),
  appfuse (http://static.appfuse.org/repository),
  ibiblio-public-repository (http://www.ibiblio.org/maven2),
  central (http://repo1.maven.org/maven2)

It appears that Mergere's repo is down and that's what's causing the
problem.  However, if it's a Maven core plugin, it seems that this should be
stored in central.

Matt
-- 
View this message in context: 
http://www.nabble.com/Can%27t-find-maven-plugin-tools-api-tf2817619s177.html#a7864425
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: Patched artifacts resolved incorrectly from internal repository

2006-12-13 Thread Nikunj Mehta

Now I am a little confused

On 12/13/06, Barrie Treloar <[EMAIL PROTECTED]> wrote:


Just to re-iterate, since my env has changed a bit in debugging.

I have re-run surefire-report:report with no plugin installed and it
correctly resolves to internal_plugins, so it looks like mvn site is
resolving incorrectly.

[DEBUG] Trying repository internal_plugins
Downloading:
http://PROXY/maven2_repositories/internal_plugins/org/apache/maven/plugins/maven-surefire-report-plugin/2.1-INTERNAL-r485987-pMSUREFIREREP-6/maven-surefire-report-plugin-2.1-INTERNAL-r485987-pMSUREFIREREP-6.pom
1/1K
1K downloaded
[DEBUG]   Artifact resolved
[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugins::4 for project:
null:maven-surefire-report-plugin:maven-plugin:
2.1-INTERNAL-r485987-pMSUREFIREREP-6
from the repository.
...


This means the POM is correctly resolved, which seems to be a problem in my
case. In an earlier email, you said


From the logs you can see that the version number is being correctly
identified as the internal version, but then central is incorrectly
being contacted.



Are these two things consistent? Appreciate your looking in to this!


Re: Patched artifacts resolved incorrectly from internal repository

2006-12-13 Thread Barrie Treloar

Just to re-iterate, since my env has changed a bit in debugging.

I have re-run surefire-report:report with no plugin installed and it
correctly resolves to internal_plugins, so it looks like mvn site is
resolving incorrectly.

[DEBUG] Trying repository internal_plugins
Downloading: 
http://PROXY/maven2_repositories/internal_plugins/org/apache/maven/plugins/maven-surefire-report-plugin/2.1-INTERNAL-r485987-pMSUREFIREREP-6/maven-surefire-report-plugin-2.1-INTERNAL-r485987-pMSUREFIREREP-6.pom
1/1K
1K downloaded
[DEBUG]   Artifact resolved
[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugins::4 for project:
null:maven-surefire-report-plugin:maven-plugin:2.1-INTERNAL-r485987-pMSUREFIREREP-6
from the repository.
...
[DEBUG] Trying repository internal_plugins
Downloading: 
http://PROXY/maven2_repositories/internal_plugins/org/apache/maven/plugins/maven-surefire-report-plugin/2.1-INTERNAL-r485987-pMSUREFIREREP-6/maven-surefire-report-plugin-2.1-INTERNAL-r485987-pMSUREFIREREP-6.jar
2/21K
6/21K
10/21K
14/21K
18/21K
21/21K
21K downloaded
[DEBUG]   Artifact resolved
...
[DEBUG] 
org.apache.maven.plugins:maven-surefire-report-plugin:maven-plugin:2.1-INTERNAL-r485987-pMSUREFIREREP-6:runtime
(selected for runtime)
...
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-surefire-report-plugin:2.1-INTERNAL-r485987-pMSUREFIREREP-6:report'
-->

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



Re: Issue with lightweight http plugin (1.0-alpha-6 and 1.0-beta-1)

2006-12-13 Thread Mykel Alvis

Hrmmm
http://jira.codehaus.org/browse/WAGONHTTP-14

Pressed submit before editing the title, which SHOULD say something about
proxy not authenticating with settings

On 12/12/06, Mykel Alvis <[EMAIL PROTECTED]> wrote:


On a windows machine, authenticated on an NT domain, the proxy username
and password appear to be sufficient for getting the lightweight http wagon
to download artifacts.

On a linux machine, which is connected to the domain's network but not
authenticated on the domain, the same settings do not work.

To further compound the confusion of the situation,
setting http_proxy with the specified username and password using

   export http_proxy=http://USERNAME:[EMAIL PROTECTED]:PROXYPORT

allows me to use wget on an artifact's URL and retrieve it from the
command line.

There appears to be no additional logging available.

Should I file a JIRA issue with regard to this or is there some further
research I can do?

--
I'm just an unfrozen caveman software developer.  I don't understand your
strange, "modern" ways.





--
I'm just an unfrozen caveman software developer.  I don't understand your
strange, "modern" ways.


Re: Patched artifacts resolved incorrectly from internal repository

2006-12-13 Thread Barrie Treloar

Neither the profile or adding the correct repository definitions to my
pom are working.
(I had missed out the pluginRepo definition which is now as below)

 
   
   
 internal_plugins
 Internal Plugin Repository
 
   http://PROXY/maven2_repositories/internal_plugins
 
 
   true
 
 
   false
 
   
 
 
   
 internal_plugins
 Internal Plugin Repository
 
   http://PROXY/maven2_repositories/internal_plugins
 
 
   true
 
 
   false
 
   
 



From the logs you can see that the version number is being correctly

identified as the internal version, but then central is incorrectly
being contacted.

[INFO] artifact org.apache.maven.plugins:maven-surefire-report-plugin:
checking for updates from internal_plugins
[INFO] artifact org.apache.maven.plugins:maven-surefire-report-plugin:
checking for updates from central
[DEBUG] maven-surefire-report-plugin: resolved to version
2.1-INTERNAL-r485987-pMSUREFIREREP-6 from repository central
[DEBUG] Trying repository central


I have checked my mvnproxy and the central cache does not have the
internal versions defined.

I am no longer using mvnproxy for internal_plugins so I am not sure
how these are getting confused.

I'll attach the debugger and see if I can work it out.

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



Pb with resources in war

2006-12-13 Thread Arnaud Bailly
Hello to all,
I have a small annoying problem with filtering resources using war
plugin. My configuration is:

 
 
  ${filter.config}


   
maven-war-plugin

 
 
   ${basedir}/src/main/webapp-filtered
   true
   
**/*.xml
   
  
 

   
  
 

The problem is that properties defined on the command line or in the
pom are not taken into account for filtering. I must use indirection
like:

some.prop=${some.other.prop}

Is this a bug or a feature ?

Thx 
-- 
OQube < software engineering \ génie logiciel >
Arnaud Bailly, Dr.
\web> http://www.oqube.com


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



Re: Internal repositories

2006-12-13 Thread Mykel Alvis

What does your current settings.xml look like?

On 12/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:


Hi



I am trying to configure settings.xml to use a local file server as the
central repository and prevent it accessing the 'true' central over the
internet.  According to the documentation this is possible but no matter
what repositories or plugin repositories I configure, maven reports
org.apache.maven.plugins:maven-xxx-plugin is not found.



Its impossible to tell whether this is because my internal central
repository is not setup correctly, or whether my settings are not
correct causing maven to access central over the internet (which is
blocked).



Help on this would be appreciated.   But also the documentation should
provide help on this, and worse, the messages reported by maven are
completely unhelpful.  How about some meaningful error messages?



Thanks

Adrian





**
The contents of this email are for the named addressee(s) only.
It contains information which may be confidential and privileged.
If you are not the intended recipient, please notify the sender
immediately, destroy this email and any attachments and do not
otherwise disclose or use them. Email transmission is not a
secure method of communication and Man Investments cannot accept
responsibility for the completeness or accuracy of this email or
any attachments. Whilst Man Investments makes every effort to keep
its network free from viruses, it does not accept responsibility
for any computer virus which might be transferred by way of this
email or any attachments. This email does not constitute a request,
offer, recommendation or solicitation of any kind to buy, subscribe,
sell or redeem any investment instruments or to perform other such
transactions of any kind. Man Investments reserves the right to
monitor, record and retain all electronic communications through
its network to ensure the integrity of its systems, for record
keeping and regulatory purposes.

Visit us at: www.maninvestments.com

**






--
I'm just an unfrozen caveman software developer.  I don't understand your
strange, "modern" ways.


problem with adding https M2 pom.xml

2006-12-13 Thread Robert Dale
When I try to add a new Maven 2 project using https in the M2 POM Url,
I get the following error:

Continuum Error
Could not download https://mydomain.org/repos/project/trunk/pom.xml:
Server returned HTTP response code: 401 for URL: 
https://mydomain.org/repos/project/trunk/pom.xml
Check the logs for more details. 

However, in reality, it does work!  Mostly...

So I turned on javax.net debugging and discovered that the underlying 
mechanism
actually connects 3 times successfully before making a final attempt not 
using Auth Basic which causes it to fail.

The other part of it is that when it does connect successfully, for some 
reason it closes the connection prematurely
which is probably why it thinks those attempts failed.

You can see here one of the semi-successfull connects, but with the 
premature socket closing:

INFO   | jvm 1| 2006/12/13 10:09:41 | SocketListener0-1, READ: TLSv1 
Application Data, length = 242
INFO   | jvm 1| 2006/12/13 10:09:41 | Padded plaintext after 
DECRYPTION:  len = 242
INFO   | jvm 1| 2006/12/13 10:09:41 | : 48 54 54 50 2F 31 2E 31 20 
32 30 30 20 4F 4B 0D  HTTP/1.1 200 OK.
INFO   | jvm 1| 2006/12/13 10:09:41 | 0010: 0A 44 61 74 65 3A 20 57 65 
64 2C 20 31 33 20 44  .Date: Wed, 13 D
INFO   | jvm 1| 2006/12/13 10:09:41 | 0020: 65 63 20 32 30 30 36 20 31 
34 3A 34 37 3A 33 33  ec 2006 14:47:33
INFO   | jvm 1| 2006/12/13 10:09:41 | 0030: 20 47 4D 54 0D 0A 53 65 72 
76 65 72 3A 20 41 70   GMT..Server: Ap
INFO   | jvm 1| 2006/12/13 10:09:41 | 0040: 61 63 68 65 2F 32 2E 30 2E 
35 32 20 28 52 65 64  ache/2.0.52 (Red
INFO   | jvm 1| 2006/12/13 10:09:41 | 0050: 20 48 61 74 29 0D 0A 45 54 
61 67 3A 20 22 32 36   Hat)..ETag: "26
INFO   | jvm 1| 2006/12/13 10:09:41 | 0060: 34 34 2F 2F 52 53 53 2F 74 
72 75 6E 6B 2F 70 6F  44//xxx/trunk/po
INFO   | jvm 1| 2006/12/13 10:09:41 | 0070: 6D 2E 78 6D 6C 22 0D 0A 41 
63 63 65 70 74 2D 52  m.xml"..Accept-R
INFO   | jvm 1| 2006/12/13 10:09:41 | 0080: 61 6E 67 65 73 3A 20 62 79 
74 65 73 0D 0A 43 6F  anges: bytes..Co
INFO   | jvm 1| 2006/12/13 10:09:41 | 0090: 6E 74 65 6E 74 2D 4C 65 6E 
67 74 68 3A 20 31 34  ntent-Length: 14
INFO   | jvm 1| 2006/12/13 10:09:41 | 00A0: 38 33 0D 0A 43 6F 6E 6E 65 
63 74 69 6F 6E 3A 20  83..Connection: 
INFO   | jvm 1| 2006/12/13 10:09:41 | 00B0: 63 6C 6F 73 65 0D 0A 43 6F 
6E 74 65 6E 74 2D 54  close..Content-T
INFO   | jvm 1| 2006/12/13 10:09:41 | 00C0: 79 70 65 3A 20 74 65 78 74 
2F 70 6C 61 69 6E 3B  ype: text/plain;
INFO   | jvm 1| 2006/12/13 10:09:41 | 00D0: 20 63 68 61 72 73 65 74 3D 
55 54 46 2D 38 0D 0A   charset=UTF-8..
INFO   | jvm 1| 2006/12/13 10:09:41 | 00E0: 0D 0A 80 5E 1A D7 1C 1B B6 
0F E5 63 76 1D 27 D9  ...^...cv.'.
INFO   | jvm 1| 2006/12/13 10:09:41 | 00F0: 3B 3B ;;
INFO   | jvm 1| 2006/12/13 10:09:41 | SocketListener0-1, called 
close()
INFO   | jvm 1| 2006/12/13 10:09:41 | SocketListener0-1, called 
closeInternal(true)
INFO   | jvm 1| 2006/12/13 10:09:41 | SocketListener0-1, SEND TLSv1 
ALERT:  warning, description = close_notify

I wrote a piece of code which does a simple connect and retrieves the 
file.  It does so successfully and the header looks
the same as the above with the exception that it actually downloads the 
file.  Both use the same keystore, same url,
same user, same password.

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;

public class Foo {

public static String readString(final InputStream is) throws 
IOException {
String tmpStr;
final StringBuilder sb = new StringBuilder();
final BufferedReader reader = new BufferedReader(new 
InputStreamReader(is));
while ((tmpStr = reader.readLine()) != null) {
sb.append(tmpStr).append('\n');
}
return sb.toString();
}

public static void main(String[] args) throws Exception {
URL url = new URL(
"https://mydomain.org/repos/project/trunk/pom.xml";);
URLConnection conn = url.openConnection();
String encoding = new sun.misc.BASE64Encoder().encode(
"user:pass".getBytes());
conn.setRequestProperty("Authorization", "Basic " + 
encoding);
InputStream istream = conn.getInputStream();
String foo = readString(istream);
istream.close();
System.out.println(foo);

}
}
 
-- 
Robert Dale


Re: clover plugin

2006-12-13 Thread jcaddel

> When I get that message, I usually delete
> $M2_REPO/org/apache/maven/plugins/[plugin-name]

That did the trick.  Thanks.
-- 
View this message in context: 
http://www.nabble.com/clover-plugin-tf2816112s177.html#a7859970
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: clover plugin

2006-12-13 Thread Carlos Sanchez

you're looking in the wrong place the right one is
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clover-plugin/

I don't know what is http://repo1.maven.org/maven2/plugins but it
shouldn't affect you at all provided you didn't change your repo or
mirror.


On 12/13/06, jcaddel <[EMAIL PROTECTED]> wrote:


What's the current status of the maven-clover-plugin?

There is nothing but an empty directory at
http://repo1.maven.org/maven2/plugins/org/apache/maven/plugins/maven-clover-plugin/

My relevant pom.xml snippet:
  
   
 
   maven-clover-plugin
 
  

Produces this error message:

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'clover'.
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-clover-plugin' does not
exist or no valid version could be found
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.maven.plugins:maven-clover-plugin' does not exist or no valid
version could be found
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1281)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1517)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:381)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:135)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
The plugin 'org.apache.maven.plugins:maven-clover-plugin' does not exist or
no valid version could be found
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:225)
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:87)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:158)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1252)
... 14 more
[INFO]

[INFO] Total time: < 1 second
[INFO] Finished at: Wed Dec 13 12:21:16 MST 2006
[INFO] Final Memory: 1M/2M
[INFO]



Is this plugin still supported?  Has it been abandoned in favor of
Cobertura?  Am I missing something silly  in my setup?
--
View this message in context: 
http://www.nabble.com/clover-plugin-tf2816112s177.html#a7859533
Sent from the Maven - Users mailing list archive at Nabble.com.


-
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

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



Re: clover plugin

2006-12-13 Thread Wendy Smoak

On 12/13/06, jcaddel <[EMAIL PROTECTED]> wrote:


What's the current status of the maven-clover-plugin?

There is nothing but an empty directory at
http://repo1.maven.org/maven2/plugins/org/apache/maven/plugins/maven-clover-plugin/


Try: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clover-plugin/

When I get that message, I usually delete
$M2_REPO/org/apache/maven/plugins/[plugin-name]

Occasionally someone suggests deleting ~/.m2/plugin-registry.xml if it exists.

--
Wendy

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



clover plugin

2006-12-13 Thread jcaddel

What's the current status of the maven-clover-plugin?  

There is nothing but an empty directory at
http://repo1.maven.org/maven2/plugins/org/apache/maven/plugins/maven-clover-plugin/

My relevant pom.xml snippet:
  
   
 
   maven-clover-plugin
 
  

Produces this error message:

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'clover'.
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-clover-plugin' does not
exist or no valid version could be found
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.maven.plugins:maven-clover-plugin' does not exist or no valid
version could be found
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1281)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1517)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:381)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:135)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
The plugin 'org.apache.maven.plugins:maven-clover-plugin' does not exist or
no valid version could be found
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:225)
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:87)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:158)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1252)
... 14 more
[INFO]

[INFO] Total time: < 1 second
[INFO] Finished at: Wed Dec 13 12:21:16 MST 2006
[INFO] Final Memory: 1M/2M
[INFO]



Is this plugin still supported?  Has it been abandoned in favor of
Cobertura?  Am I missing something silly  in my setup?
-- 
View this message in context: 
http://www.nabble.com/clover-plugin-tf2816112s177.html#a7859533
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: Building archiva failed

2006-12-13 Thread Minto van der Sluis

I finally discovered what went wrong :-)

I was using JDK 6 rc, switching back to JDK 5 solved my problems. 
Hmm, maybe I should give the official JDK 6 release a try. I will do
so later.

regards,

Minto


Wendy Smoak-3 wrote:
> 
> On 12/6/06, Minto van der Sluis <[EMAIL PROTECTED]> wrote:
> 
>> I have maven 2.0.4 as well. I did the following and got the same results:
>>
>> svn up
>> mvn -U install
> 
> Archiva just built fine here with Maven 2.0.4.  The only thing I did
> differently was 'mvn clean' prior to 'mvn install'.
> 
> -- 
> Wendy
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Building-archiva-failed-tf2766950.html#a7857073
Sent from the archiva-users mailing list archive at Nabble.com.



Re: Use latest version of Struts

2006-12-13 Thread Wendy Smoak

On 12/13/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:


The latest version that you can find in the Maven2 repository is 1.2.9.  It 's possible 
to use the 1.3.5, which you can find at 
http://repo1.maven.org/maven2/org/apache/struts/struts-parent/1.3.5/, but if you add the 
data to your pom-file, you get "Error building POM (may not be the project's 
POM)".


Struts 1.3.5 is available in the central repo, but you'll likely want
to add a dependency on the struts-core jar, and not the struts-parent
pom.

http://repo1.maven.org/maven2/org/apache/struts/struts-core/1.3.5/

Please ask on the Struts user list if you have more questions.

--
Wendy

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



attach mojo plugin to the build lifecycle

2006-12-13 Thread R�fffff4mulo
Hi, 
 
I followed the link
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
to create a mojo plugin.
I could not attach my plugin to the build
lifecycle. When I try to compile, my plugin doesn´t
run.
 
D:\Documents and Settings\x4rn\Meus
documentos\workspace\antivirus>mvn compile
[INFO] Scanning for projects...
[INFO]
-
---
[INFO] Building Antivirus 
[INFO]task-segment: [compile]
[INFO]
-
---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered
resources. 
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]


[INFO] Total time: 4 seconds
[INFO] Finished at: Wed Dec 13 12:44:32 GMT-03:00 2006
[INFO] Final Memory: 5M/9M
[INFO]

 
What is wrong? My pom follows attached.
 
Obs.: I could execute the plugin successfully:
 
D:\Documents and Settings\x4rn\Meus
documentos\workspace\antivirus>mvn
org.persapiens.basegen:maven-basegen-plugin:sayhi
[INFO] Scanning for projects...
[INFO]
-

---
[INFO] Building Antivirus
[INFO]task-segment:
[org.persapiens.basegen:maven-basegen-plugin:sayhi]
[INFO]
-
---
[INFO] [basegen:sayhi] 
[INFO] HELLO, WORLD.
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: < 1 second
[INFO] Finished at: Wed Dec 13 12:42:31 GMT-03:00 2006
[INFO] Final Memory: 1M/3M
[INFO]


-- 
´s
marcelo 





 

Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited
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


com.petrobras
antivirus
1.0-SNAPSHOT
jar
  

  httpunit
  httpunit
  1.6.1
  compile


  commons-httpclient
  commons-httpclient
  3.1-beta1
  compile


org.acegisecurity
acegi-security
1.0.3
compile


org.springframework
spring
1.2.8
compile


org.hibernate
hibernate
3.2.1.ga
compile


postgresql
postgresql
8.1-407.jdbc3
compile


myfaces
myfaces-all
1.1.1
compile



org.andromda.profiles.uml14
andromda-profile-datatype
3.2
xml.zip
runtime



org.persapiens.basegen
base
1.0-SNAPSHOT
runtime


org.persapiens.basegen
basegen-commons-cartridge
1.0-SNAPSHOT
runtime


org.persapiens.basegen
basegen-model-cartridge
1.0-SNAPSHOT
runtime




${project.basedir}/src/main/uml
jar:file:${project.build.modelDirectory}/antivirus.xml.zip!/antivirus.xml

true
${pom.basedir}/src/main/config


${pom.basedir}/../core/target/src
${pom.basedir}/../core/src/main/java
${pom.basedir}/../web/target/src
${pom.basedir}/../web/src/main
${web.manual.dir}/java 
${pom.basedir}/../common/target/src  


true


Antivirus
antivirus
${org.persapiens.basegen.projectName}
com.petrobras.${org.persapiens.basegen.projectId}
com/petrobras/${org.persapiens.basegen.projectId}


target
src
${org.persapiens.basegen.target.dir}/srcGenerated
${org.persapiens.basegen.target.dir}/srcFinal
${org.persapiens.basegen.srcCustom.dir}/profiles/${org.persapiens.basegen.profile}
java
${org.persapiens.basegen.srcCustom.dir}/${org.persapiens.basegen.java}
${org.persapiens.basegen.srcGenerated.dir}/${org.persapiens.basegen.java}
${org.persapiens.basegen.sr

attach mojo plugin to the build lifecycle

2006-12-13 Thread R�fffff4mulo
Hi, 
 
I followed the link
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
to create a mojo plugin.
I could not attach my plugin to the build
lifecycle. When I try to compile, my plugin doesn´t
run.
 
D:\Documents and Settings\x4rn\Meus
documentos\workspace\antivirus>mvn compile
[INFO] Scanning for projects...
[INFO]
-
---
[INFO] Building Antivirus 
[INFO]task-segment: [compile]
[INFO]
-
---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered
resources. 
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]


[INFO] Total time: 4 seconds
[INFO] Finished at: Wed Dec 13 12:44:32 GMT-03:00 2006
[INFO] Final Memory: 5M/9M
[INFO]

 
What is wrong? My pom follows attached.
 
Obs.: I could execute the plugin successfully:
 
D:\Documents and Settings\x4rn\Meus
documentos\workspace\antivirus>mvn
org.persapiens.basegen:maven-basegen-plugin:sayhi
[INFO] Scanning for projects...
[INFO]
-

---
[INFO] Building Antivirus
[INFO]task-segment:
[org.persapiens.basegen:maven-basegen-plugin:sayhi]
[INFO]
-
---
[INFO] [basegen:sayhi] 
[INFO] HELLO, WORLD.
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: < 1 second
[INFO] Finished at: Wed Dec 13 12:42:31 GMT-03:00 2006
[INFO] Final Memory: 1M/3M
[INFO]


-- 
´s
marcelo 






 

Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index
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


com.petrobras
antivirus
1.0-SNAPSHOT
jar
  

  httpunit
  httpunit
  1.6.1
  compile


  commons-httpclient
  commons-httpclient
  3.1-beta1
  compile


org.acegisecurity
acegi-security
1.0.3
compile


org.springframework
spring
1.2.8
compile


org.hibernate
hibernate
3.2.1.ga
compile


postgresql
postgresql
8.1-407.jdbc3
compile


myfaces
myfaces-all
1.1.1
compile



org.andromda.profiles.uml14
andromda-profile-datatype
3.2
xml.zip
runtime



org.persapiens.basegen
base
1.0-SNAPSHOT
runtime


org.persapiens.basegen
basegen-commons-cartridge
1.0-SNAPSHOT
runtime


org.persapiens.basegen
basegen-model-cartridge
1.0-SNAPSHOT
runtime




${project.basedir}/src/main/uml
jar:file:${project.build.modelDirectory}/antivirus.xml.zip!/antivirus.xml

true
${pom.basedir}/src/main/config


${pom.basedir}/../core/target/src
${pom.basedir}/../core/src/main/java
${pom.basedir}/../web/target/src
${pom.basedir}/../web/src/main
${web.manual.dir}/java 
${pom.basedir}/../common/target/src  


true


Antivirus
antivirus
${org.persapiens.basegen.projectName}
com.petrobras.${org.persapiens.basegen.projectId}
com/petrobras/${org.persapiens.basegen.projectId}


target
src
${org.persapiens.basegen.target.dir}/srcGenerated
${org.persapiens.basegen.target.dir}/srcFinal
${org.persapiens.basegen.srcCustom.dir}/profiles/${org.persapiens.basegen.profile}
java
${org.persapiens.basegen.srcCustom.dir}/${org.persapiens.basegen.java}
${org.persapiens.basegen.srcGenerated.dir}/${org.persapiens.basegen.java}
${o

attach mojo plugin to the build lifecycle

2006-12-13 Thread R�fffff4mulo
Hi, 
 
I followed the link
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
to create a mojo plugin.
I could not attach my plugin to the build
lifecycle. When I try to compile, my plugin doesn´t
run.
 
D:\Documents and Settings\x4rn\Meus
documentos\workspace\antivirus>mvn compile
[INFO] Scanning for projects...
[INFO]
-
---
[INFO] Building Antivirus 
[INFO]task-segment: [compile]
[INFO]
-
---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered
resources. 
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]


[INFO] Total time: 4 seconds
[INFO] Finished at: Wed Dec 13 12:44:32 GMT-03:00 2006
[INFO] Final Memory: 5M/9M
[INFO]

 
What is wrong? My pom follows attached.
 
Obs.: I could execute the plugin successfully:
 
D:\Documents and Settings\x4rn\Meus
documentos\workspace\antivirus>mvn
org.persapiens.basegen:maven-basegen-plugin:sayhi
[INFO] Scanning for projects...
[INFO]
-

---
[INFO] Building Antivirus
[INFO]task-segment:
[org.persapiens.basegen:maven-basegen-plugin:sayhi]
[INFO]
-
---
[INFO] [basegen:sayhi] 
[INFO] HELLO, WORLD.
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: < 1 second
[INFO] Finished at: Wed Dec 13 12:42:31 GMT-03:00 2006
[INFO] Final Memory: 1M/3M
[INFO]


-- 
´s
marcelo 





 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
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


com.petrobras
antivirus
1.0-SNAPSHOT
jar
  

  httpunit
  httpunit
  1.6.1
  compile


  commons-httpclient
  commons-httpclient
  3.1-beta1
  compile


org.acegisecurity
acegi-security
1.0.3
compile


org.springframework
spring
1.2.8
compile


org.hibernate
hibernate
3.2.1.ga
compile


postgresql
postgresql
8.1-407.jdbc3
compile


myfaces
myfaces-all
1.1.1
compile



org.andromda.profiles.uml14
andromda-profile-datatype
3.2
xml.zip
runtime



org.persapiens.basegen
base
1.0-SNAPSHOT
runtime


org.persapiens.basegen
basegen-commons-cartridge
1.0-SNAPSHOT
runtime


org.persapiens.basegen
basegen-model-cartridge
1.0-SNAPSHOT
runtime




${project.basedir}/src/main/uml
jar:file:${project.build.modelDirectory}/antivirus.xml.zip!/antivirus.xml

true
${pom.basedir}/src/main/config


${pom.basedir}/../core/target/src
${pom.basedir}/../core/src/main/java
${pom.basedir}/../web/target/src
${pom.basedir}/../web/src/main
${web.manual.dir}/java 
${pom.basedir}/../common/target/src  


true


Antivirus
antivirus
${org.persapiens.basegen.projectName}
com.petrobras.${org.persapiens.basegen.projectId}
com/petrobras/${org.persapiens.basegen.projectId}


target
src
${org.persapiens.basegen.target.dir}/srcGenerated
${org.persapiens.basegen.target.dir}/srcFinal
${org.persapiens.basegen.srcCustom.dir}/profiles/${org.persapiens.basegen.profile}
java
${org.persapiens.basegen.srcCustom.dir}/${org.persapiens.basegen.java}
${org.persapiens.basegen.srcGenerated.dir}/${org.persapiens.basegen.java}
${org.persapiens

Re: Assembly problem

2006-12-13 Thread Bhupendra Bhardwaj

I too faced the same problem
dependencySets didn't seem to work inside moduleset.
So have added dependencysets outside moduleset and in the dependenySet
included only the modules I need.

Regards,


On 12/11/06, Bob Arnott <[EMAIL PROTECTED]> wrote:


Wendy Smoak wrote:
> On 12/7/06, Bob Arnott <[EMAIL PROTECTED]> wrote:
>
>> Hello list, I've got an issue with the assembly plugin, I'm getting
this
>> error:
>> Embedded error: Unrecognised tag: 'dependencySets' (position:
>> START_TAG seen ...\r\n
> That doesn't seem to match up with what you posted, which has no
>  tag.  In addition, as Bram mentioned, the xml
> you posted is not well formed.  (Your closing  tag is
> missing the /.)

The XML I posted was an example to make my point about the what I was
trying to achieve. A cut down version of what I've got is:


  bin
  
tar.gz
zip
  
  

  
my-group:module1
  
  

true

  
libs
runtime

  my-group:module1

  

  

...
  


Cheers,

--
Bob Arnott

Senior Software Developer
Autonomy Systems Ltd.
Cambridge Business Park
Cowley Road
Cambridge
CB4 0WZ

T: +44 (0) 1223 448 000
F: +44 (0) 1223 448 001
http://www.autonomy.com/


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




Re: Use latest version of Struts

2006-12-13 Thread Wayne Fay

You're complaining to the wrong people -- please send this message to
the Struts dev team.

Wayne

On 12/13/06, Nick Stolwijk <[EMAIL PROTECTED]> wrote:

As far as I know all Spring modules are in the maven2 repository:

http://repo1.maven.org/maven2/org/springframework/spring/



[EMAIL PROTECTED] wrote:
> Well, I'm talking about struts, but there are some other dependencies which 
are not up-to-date.
>
>
>
> The latest version that you can find in the Maven2 repository is 1.2.9.  It 's possible 
to use the 1.3.5, which you can find at 
http://repo1.maven.org/maven2/org/apache/struts/struts-parent/1.3.5/, but if you add the 
data to your pom-file, you get "Error building POM (may not be the project's POM)".
>
>
>
> That's Struts, if you want to use for example Spring 2.0, you can't find it 
on the repository (or my google-skills aren't adequate).  There is a possibility 
to add them yourself to the maven-repo, but these packages are so commonly used, I 
think it's rather queer that they aren't in the repository yet.  Or is it me? :-)
>
>
>
> This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in error, 
please notify the sender immediately and delete the original.  Any other use of 
the email by you is prohibited.
>
>


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




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



Re: maven-dependency-plugin

2006-12-13 Thread Bhupendra Bhardwaj

Hi,

Did you try excluding this dependency in your dependencyset and adding
another dependencySet including only the transitive one and mentioning
false

Regards


On 12/13/06, Sommers, Elizabeth <[EMAIL PROTECTED]> wrote:


Fantastic.

I know it is not in there now, but would it be possible to have an
 tag for unpack-dependencies.  I am running into problems when I
don't want to unpack a transitive dependency.

Thanks
Liz Sommers

-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 12, 2006 8:19 PM
To: Maven Users List
Subject: RE: maven-dependency-plugin


The plugin did get moved from mojo to apache but the apache version hasn't
been released yet. It's nearly ready, just waiting on some other releases to
get out so we can comply with the new apache licensing guidelines.


-Original Message-
From: Andrés Viedma [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 12, 2006 7:21 PM
To: Maven Users List
Subject: Re: maven-dependency-plugin

2006/12/13, Sommers, Elizabeth <[EMAIL PROTECTED]>:
>
>
> If the documentation is correct, this is exactly what I need.  BUT -
> it doesn't seem to exist in the ibiblio repository.  Why isn't this
> plugin available?  Where can I find it?


As far as I know, it hasn't been released yet. You can get the sources
from the subversion repository.

On the other hand, there's a "dependency-maven-plugin" from codehaus (in
opposite to "maven-dependency-plugin"), which might be useful for you
meanwhile:

http://mojo.codehaus.org/dependency-maven-plugin/

   dependency-maven-plugin
   org.codehaus.mojo

I think this plug-in is indeed the same, and it will be overridden by the
newer, hosted by apache.

Andrés


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


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




Re: maven-proxy: how to exclude source artifacts from beeing resolved from a public repo

2006-12-13 Thread Wayne Fay

What JIRA number was this request Nico? And what happened to it?

Wayne

On 12/12/06, nicolas de loof <[EMAIL PROTECTED]> wrote:

I had the same issue, but with another point of view : I expected all
artifacts on maven repo to have source jars. I have created a private
"sources" repository, and added missing artifacts sources to it.
The summer, I have attached my zipped source repository to an upload request
to make them available on maven repo.

Maintaining such a "source" repository is not a huge work if done by
incremental additions.

Nico.

2006/12/12, Mark Struberg <[EMAIL PROTECTED]>:
>
> Hi!
>
> Our situation:
>
> We are using maven in our corporate environment,
> maintaining our own local artifact and plugin
> repository for inhouse stuff. All locally released
> artifacts also have attached source artifacts for
> debugging purpose in Idea and Eclipse.
>
> We are using maven-proxy to reduce traffic and load
> time for caching a few public repos.
>
> Now my question:
> Since Idea (idea:idea) and Eclipse (eclipse:eclipse,
> m2eclipse) always trie to resolve attached source
> artifacts, accessing the global repositories (e.g. for
> commons-logging) cause many failed downloads. Is there
> any way to tell maven-proxy to exclude some files from
> a specific repository, or prevent maven from trying to
> resolve a specific artifact type from a specific
> repos?
>
> txs in advance,
> strub
>
>
>
>
>
>
> ___
> Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail:
> http://mail.yahoo.de
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




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



RE: maven-dependency-plugin

2006-12-13 Thread Brian E. Fox
Yes. The new version can include or exclude by scope, type, transitivity and 
classifier: 
http://maven.apache.org/plugins/maven-dependency-plugin/unpack-dependencies-mojo.html
 

-Original Message-
From: Sommers, Elizabeth [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 13, 2006 9:58 AM
To: Maven Users List
Subject: RE: maven-dependency-plugin

Fantastic.

I know it is not in there now, but would it be possible to have an  
tag for unpack-dependencies.  I am running into problems when I don't want to 
unpack a transitive dependency.

Thanks
Liz Sommers

-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 12, 2006 8:19 PM
To: Maven Users List
Subject: RE: maven-dependency-plugin


The plugin did get moved from mojo to apache but the apache version hasn't been 
released yet. It's nearly ready, just waiting on some other releases to get out 
so we can comply with the new apache licensing guidelines.


-Original Message-
From: Andrés Viedma [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 12, 2006 7:21 PM
To: Maven Users List
Subject: Re: maven-dependency-plugin

2006/12/13, Sommers, Elizabeth <[EMAIL PROTECTED]>:
>
>
> If the documentation is correct, this is exactly what I need.  BUT - 
> it doesn't seem to exist in the ibiblio repository.  Why isn't this 
> plugin available?  Where can I find it?


As far as I know, it hasn't been released yet. You can get the sources from the 
subversion repository.

On the other hand, there's a "dependency-maven-plugin" from codehaus (in 
opposite to "maven-dependency-plugin"), which might be useful for you
meanwhile:

http://mojo.codehaus.org/dependency-maven-plugin/

dependency-maven-plugin
org.codehaus.mojo

I think this plug-in is indeed the same, and it will be overridden by the 
newer, hosted by apache.

Andrés


-
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: Howto include my WAR into an assembly

2006-12-13 Thread nicolas de loof

Solved :

I missed to set the artifact type as War in my moduleSet :


 
   fr.francetelecom.activ:activ-webapp:war
 
...

Nico.

2006/12/13, nicolas de loof <[EMAIL PROTECTED]>:


Hello,

I have a requirement to build a TAR with my web application WAR and some
other files (jar + shells).
I've setup an assembly descriptor for this, that makes a moduleSet
reference to my webapp module.

When I run the assembly:assembly goal, I get this strange error message :
[ERROR] BUILD ERROR
[INFO]

[INFO] Included module: fr.francetelecom.activ:activ-webapp:war:4.1.0 does
not have an artifact with a file. Please ensu
re the package phase is run before the assembly is generated.
[INFO]



Please note I've run the package pahse and my webapp/target dir contains
the .war archive.
What's wrong ?

Nico.



Re: Use latest version of Struts

2006-12-13 Thread Nick Stolwijk

As far as I know all Spring modules are in the maven2 repository:

http://repo1.maven.org/maven2/org/springframework/spring/



[EMAIL PROTECTED] wrote:
Well, I'm talking about struts, but there are some other dependencies which are not up-to-date.  

 


The latest version that you can find in the Maven2 repository is 1.2.9.  It 's possible 
to use the 1.3.5, which you can find at 
http://repo1.maven.org/maven2/org/apache/struts/struts-parent/1.3.5/, but if you add the 
data to your pom-file, you get "Error building POM (may not be the project's 
POM)".

 


That's Struts, if you want to use for example Spring 2.0, you can't find it on 
the repository (or my google-skills aren't adequate).  There is a possibility 
to add them yourself to the maven-repo, but these packages are so commonly 
used, I think it's rather queer that they aren't in the repository yet.  Or is 
it me? :-)



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

  



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



RE: SCM Web-Access Url changed after release?!

2006-12-13 Thread Jörg Schaible
meberts wrote on Wednesday, December 13, 2006 3:56 PM:

> It seems more like the release plugin "ignores" the settings
> made in the
> parent pom.xml and just takes the tagBase  URL from the
> release.properties file and provides the site plugin with this URL
> for all 
> displayed URLs in
> the created site.
> Check the release.properties file:
> ...
> scm.url=scm\:svn\:http\:///svn/
> ...
> scm.tagBase=http\:///svn//tags  << this one
> is displayed in
> the created site
> ...
> 
> Doesn't seem to be a bug, but I can's see a way to display the wanted
> Web-Access URL after a release

My displayed URL is definitely not the "pure" scm.tabBase.

- Jörg

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



RE: maven-dependency-plugin

2006-12-13 Thread Sommers, Elizabeth
Fantastic.

I know it is not in there now, but would it be possible to have an  
tag for unpack-dependencies.  I am running into problems when I don't want to 
unpack a transitive dependency.

Thanks
Liz Sommers

-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 12, 2006 8:19 PM
To: Maven Users List
Subject: RE: maven-dependency-plugin


The plugin did get moved from mojo to apache but the apache version hasn't been 
released yet. It's nearly ready, just waiting on some other releases to get out 
so we can comply with the new apache licensing guidelines.


-Original Message-
From: Andrés Viedma [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 12, 2006 7:21 PM
To: Maven Users List
Subject: Re: maven-dependency-plugin

2006/12/13, Sommers, Elizabeth <[EMAIL PROTECTED]>:
>
>
> If the documentation is correct, this is exactly what I need.  BUT - 
> it doesn't seem to exist in the ibiblio repository.  Why isn't this 
> plugin available?  Where can I find it?


As far as I know, it hasn't been released yet. You can get the sources from the 
subversion repository.

On the other hand, there's a "dependency-maven-plugin" from codehaus (in 
opposite to "maven-dependency-plugin"), which might be useful for you
meanwhile:

http://mojo.codehaus.org/dependency-maven-plugin/

dependency-maven-plugin
org.codehaus.mojo

I think this plug-in is indeed the same, and it will be overridden by the 
newer, hosted by apache.

Andrés


-
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: SCM Web-Access Url changed after release?!

2006-12-13 Thread meberts

It seems more like the release plugin "ignores" the settings made in the
parent pom.xml and just takes the tagBase  URL from the release.properties
file and provides the site plugin with this URL for all displayed URLs in
the created site.
Check the release.properties file:
...
scm.url=scm\:svn\:http\:///svn/
...
scm.tagBase=http\:///svn//tags  << this one is displayed in
the created site
...

Doesn't seem to be a bug, but I can's see a way to display the wanted
Web-Access URL after a release


Marcus
-- 
View this message in context: 
http://www.nabble.com/SCM-Web-Access-Url-changed-after-release-%21-tf2813292s177.html#a7854232
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Howto include my WAR into an assembly

2006-12-13 Thread nicolas de loof

Hello,

I have a requirement to build a TAR with my web application WAR and some
other files (jar + shells).
I've setup an assembly descriptor for this, that makes a moduleSet reference
to my webapp module.

When I run the assembly:assembly goal, I get this strange error message :
[ERROR] BUILD ERROR
[INFO]

[INFO] Included module: fr.francetelecom.activ:activ-webapp:war:4.1.0 does
not have an artifact with a file. Please ensu
re the package phase is run before the assembly is generated.
[INFO]



Please note I've run the package pahse and my webapp/target dir contains the
.war archive.
What's wrong ?

Nico.


Re: probelem when am generating pmd report

2006-12-13 Thread Lukas Theussl

Which version of the pmd *plugin*? (maven -i)

There was a bug that got fixed in version 1.8, where a NPE was thrown if 
sourceDirectory or unitTestSourceDirectory were not defined in the pom. 
But it's hard to guess with the information that you provide...


-Lukas


t rajesh wrote:

I am using pmd-3.2.jar  file and i configured it in the root project.xml
   
  maven-pmd-plugin
   
  //Rajesh
  


Lukas Theussl <[EMAIL PROTECTED]> wrote:
  Still, this should not happen as it could screw up multiproject builds. 
However I just ran pmd on a project with no java source files, got the 
same warning but no NPE.


Which version of the pmd plugin are you using? Please provide more 
details about your setup.


-Lukas

Wayne Fay wrote:


I think your problem is:
[echo] No java source files to process.

So then there's no PMD report to convert, resulting in the NPE.
[echo] Converting the PMD report to xdoc ...
java.lang.NullPointerException

Not positive but this is my guess about what's going on.

Wayne

On 12/12/06, t rajesh wrote:



Hi,

build:start:
pmd:
pmd:report:
[echo] Running the PMD task with 
rulesets/basic.xml,rulesets/unusedcode.xml,rulesets/imports.xml ...

[echo] No java source files to process.
[echo] Converting the PMD report to xdoc ...
Caught exception evaluating: 
[EMAIL PROTECTED] Reason: 
java.lang.NullPointerException

java.lang.NullPointerException
at java.io.File.(File.java:194)
at org.apache.velocity.texen.util.FileUtil.file(FileUtil.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 


at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:268) 

at 
org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:61)
at 
org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:68)
at 
org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:50)
at 
org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:86)
at 
org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(JexlExpression.java:69) 


at org.apache.commons.jelly.tags.core.SetTag.doTag(SetTag.java:84)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
at 
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at 
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
at 
org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)









//Rajesh


-
Find out what India is talking about on - Yahoo! Answers India
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 
8. Get it NOW




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




-
 Find out what India is talking about on  - Yahoo! Answers India 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW


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



Use latest version of Struts

2006-12-13 Thread bjorn.de.bakker
Well, I'm talking about struts, but there are some other dependencies which are 
not up-to-date.  

 

The latest version that you can find in the Maven2 repository is 1.2.9.  It 's 
possible to use the 1.3.5, which you can find at 
http://repo1.maven.org/maven2/org/apache/struts/struts-parent/1.3.5/, but if 
you add the data to your pom-file, you get "Error building POM (may not be the 
project's POM)".

 

That's Struts, if you want to use for example Spring 2.0, you can't find it on 
the repository (or my google-skills aren't adequate).  There is a possibility 
to add them yourself to the maven-repo, but these packages are so commonly 
used, I think it's rather queer that they aren't in the repository yet.  Or is 
it me? :-)



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


timestamps on generated snapshot jars in project repository

2006-12-13 Thread Brigitte . Ilsanker
Folks,

when deploying generated jars and ears to our central project snapshot
repository a timestamp is added to the file name.

1. From what time is that taken? (from the moment of the start of mvn?) ?
2. Can this timestamp be overritten by a parameter passed? (like a label
that the sources have in scm?) ?
3. Or can this timestamp be passed to somewhere else as an output
parameter?

Cheers
Brigitte






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



Re: probelem when am generating pmd report

2006-12-13 Thread t rajesh
I am using pmd-3.2.jar  file and i configured it in the root project.xml
   
  maven-pmd-plugin
   
  //Rajesh
  

Lukas Theussl <[EMAIL PROTECTED]> wrote:
  Still, this should not happen as it could screw up multiproject builds. 
However I just ran pmd on a project with no java source files, got the 
same warning but no NPE.

Which version of the pmd plugin are you using? Please provide more 
details about your setup.

-Lukas

Wayne Fay wrote:
> I think your problem is:
> [echo] No java source files to process.
> 
> So then there's no PMD report to convert, resulting in the NPE.
> [echo] Converting the PMD report to xdoc ...
> java.lang.NullPointerException
> 
> Not positive but this is my guess about what's going on.
> 
> Wayne
> 
> On 12/12/06, t rajesh wrote:
> 
>> Hi,
>>
>> build:start:
>> pmd:
>> pmd:report:
>> [echo] Running the PMD task with 
>> rulesets/basic.xml,rulesets/unusedcode.xml,rulesets/imports.xml ...
>> [echo] No java source files to process.
>> [echo] Converting the PMD report to xdoc ...
>> Caught exception evaluating: 
>> [EMAIL PROTECTED] Reason: 
>> java.lang.NullPointerException
>> java.lang.NullPointerException
>> at java.io.File.(File.java:194)
>> at org.apache.velocity.texen.util.FileUtil.file(FileUtil.java:59)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>  
>>
>> at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>  
>>
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at 
>> org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:268)
>>  
>>
>> at 
>> org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:61)
>> at 
>> org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:68)
>> at 
>> org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:50)
>> at 
>> org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:86)
>> at 
>> org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(JexlExpression.java:69)
>>  
>>
>> at org.apache.commons.jelly.tags.core.SetTag.doTag(SetTag.java:84)
>> at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
>> at 
>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>> at 
>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>> at 
>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>
>>
>>
>>
>>
>>
>>
>>
>> //Rajesh
>>
>>
>> -
>> Find out what India is talking about on - Yahoo! Answers India
>> Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 
>> 8. Get it NOW
>>
> 
> -
> 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]




-
 Find out what India is talking about on  - Yahoo! Answers India 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it 
NOW

Internal repositories

2006-12-13 Thread aosullivan
Hi

 

I am trying to configure settings.xml to use a local file server as the
central repository and prevent it accessing the 'true' central over the
internet.  According to the documentation this is possible but no matter
what repositories or plugin repositories I configure, maven reports
org.apache.maven.plugins:maven-xxx-plugin is not found.   

 

Its impossible to tell whether this is because my internal central
repository is not setup correctly, or whether my settings are not
correct causing maven to access central over the internet (which is
blocked).

 

Help on this would be appreciated.   But also the documentation should
provide help on this, and worse, the messages reported by maven are
completely unhelpful.  How about some meaningful error messages?  

 

Thanks

Adrian

 



**
The contents of this email are for the named addressee(s) only.
It contains information which may be confidential and privileged.
If you are not the intended recipient, please notify the sender
immediately, destroy this email and any attachments and do not
otherwise disclose or use them. Email transmission is not a
secure method of communication and Man Investments cannot accept
responsibility for the completeness or accuracy of this email or
any attachments. Whilst Man Investments makes every effort to keep
its network free from viruses, it does not accept responsibility
for any computer virus which might be transferred by way of this
email or any attachments. This email does not constitute a request,
offer, recommendation or solicitation of any kind to buy, subscribe,
sell or redeem any investment instruments or to perform other such
transactions of any kind. Man Investments reserves the right to
monitor, record and retain all electronic communications through
its network to ensure the integrity of its systems, for record
keeping and regulatory purposes. 

Visit us at: www.maninvestments.com 

**



RE: SCM Web-Access Url changed after release?!

2006-12-13 Thread Jörg Schaible
meberts wrote on Wednesday, December 13, 2006 11:56 AM:

> Hi,
> 
> I'm using WebSVN for the Web-Access to the Subversion
> Repository and when
> creating a site the link is displayed as:
> http:///websvn/listing.php?<...parameters/repository/p
> roject...> 
> 
> But when I'm starting a release, the Web-Access Url is
> displayed as the path
> to the actual repository in the project site:
> http:///svn/
> The path is (of course) correct, but it would be nicer if the "real"
> Web-Access path would be displayed.
> 
> I know that the release adds the scm paths "hardcoded" to the pom.xml
> during the prepare/perform stages. So, is there a bug/feature in the
> release plugin, that prevents the site from displaying the Web-Access
> Url? 

This works normally, but I guess in this case that the URL is processed by a 
normal java.net.URL instance and the code does not take care of URL parameters. 
So the base part of the URL does not make any sence to the SCM provider and it 
replaces the complete URL with something valid.

- Jörg

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



SCM Web-Access Url changed after release?!

2006-12-13 Thread meberts

Hi,

I'm using WebSVN for the Web-Access to the Subversion Repository and when
creating a site the link is displayed as:
http:///websvn/listing.php?<...parameters/repository/project...>

But when I'm starting a release, the Web-Access Url is displayed as the path
to the actual repository in the project site:
http:///svn/
The path is (of course) correct, but it would be nicer if the "real"
Web-Access path would be displayed.

I know that the release adds the scm paths "hardcoded" to the pom.xml during
the prepare/perform stages. So, is there a bug/feature in the release
plugin, that prevents the site from displaying the Web-Access Url?

Cheers Marcus 
-- 
View this message in context: 
http://www.nabble.com/SCM-Web-Access-Url-changed-after-release-%21-tf2813292s177.html#a7850838
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: compatibility Maven Eclipse 3.2 and wtp

2006-12-13 Thread Tomasz Pik

On 12/13/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:

Everytime you add a dependency, you need to run mvn eclipse:eclipse 
-Dwtpversion=1.0

Especially the last part is important.  Then check your .component file, to see 
whether the dependencies were added.  If so, Eclipse should publish your 
dependencies to the lib-folder.


Or add this to pom.xml, into  section:


  org.apache.maven.plugins
  maven-eclipse-plugin
  
1.0
  


so you don't have to add -D option during mvn invocation.

Regards,
Tomek



-Original Message-
From: lmk [mailto:[EMAIL PROTECTED]
Sent: mardi 12 décembre 2006 15:11
To: users@maven.apache.org
Subject: compatibility Maven Eclipse 3.2 and wtp


hi;

i try to integrate maven  multiproject on eclipse 3.2. i use tomcat 5.5,
when i start the server, Eclipse dont publish the dependencies.

is  maven eclipse plugin compatible with the Eclipse 3.2, perhapse I must
upgrade the  pluging ?? how can i do that?


thanks..

--
View this message in context: 
http://www.nabble.com/compatibility-Maven-Eclipse-3.2-and-wtp-tf2807719s177.html#a7833866
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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

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




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



issues with https-repositories [WAS: Re: Trying Quickly build Archiva]

2006-12-13 Thread Stefan Hübner

Hi Tom and others,

I know - it's been a while, but I've just found your post. you're
mentioning issues with https-repositories and I experienced exactly
the same issues described in the thread attached below. Tom
recommended using "https.proxyHost/Port"-parameters which indeed fixed
those issues.

My question(s): Doesn't Maven handle proxies via settings.xml? I'm
behind a proxy which is configured in my local settings. If there's
actually a difference between handling of http and https-repos, how to
configure properly then?

Any ideas?

Cheers,
Stefan

2006/11/14, Tom Huybrechts <[EMAIL PROTECTED]>:

If you are behing a proxy, this might be caused by the
https-repository that is added by the archiva POMs. Try adding cmdline
arguments: -Dhttps.proxyHost=... -Dhttps.proxyPort=...

Tom

On 11/13/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> On 11/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > I download all of the software from the required page as described. The
> > sun jars.
> > I cant see what is wrong there. It happens more than once in build
> > Archive Security
> > Configuration project.
>
> The error you posted said it couldn't download commons-configuration
> 1.3, which is definitely available.  Are you still getting the same
> error?  Does it download anything at all?
>
> (At this point I start suspecting you're behind a proxy, because we've
> seen numerous reports of problems when a proxy is involved.)
>
> Sorry I can't help more, but Archiva builds fine here.
>
> --
> Wendy
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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




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



Re: Patched artifacts resolved incorrectly from internal repository

2006-12-13 Thread Barrie Treloar

Just to ensure that the repository is available I added a profile:

  internal
  

  internal.plugins
  Maven-Proxy Repository
  http://PROXY/maven2_repositories/internal_plugins
  
true
  
  
false
  

  



On the way home I realised that this profile does not define a pluginRepository.
Can someone try including that in their profile definition, I will try
tomorrow, but that will be at least 12 hours away.  I'm fairly hopeful
that will solve the problem.

 
   
 internal.plugins
 Maven-Proxy Repository
 http://PROXY/maven2_repositories/internal_plugins
 
true
 
 
false
 
   
 

If it does, then it will also mean you need to include this in your
parent pom definitions.
I will update the wiki if this works tomorrow with details.

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



Maven + Perforce - Checkin problem

2006-12-13 Thread noop

Hi,
I am Maven rookie. I am trying to integrate maven with perforce. 
I am able to run the p4 commands without any problems from the console.Using
maven ,Checkout and update work. However maven checkin and edit do not seem
to work. 

"mvn scm:edit" does not give any error on the console . However, the files
are still in read-only mode.

"mvn scm:checkin -Dmessage="checkin"" fails with the following output.

C:\Maven\perf111\target\checkout>mvn scm:checkin -Dmessage="adf"
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'scm'.
[INFO]
--
[INFO] Building perf111
[INFO]task-segment: [scm:checkin]
[INFO]
--
[INFO] [scm:checkin]
[ERROR] Provider message:
[ERROR] Unable to submit
[ERROR] Command output:
[ERROR]
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Command failed.Unable to submit
[INFO]

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

[INFO] Total time: 3 seconds
[INFO] Finished at: Wed Dec 13 12:22:11 GMT+05:30 2006
[INFO] Final Memory: 4M/8M
[INFO]


this is my pom.xml



  4.0.0
  com.sap.maven.app
  perf111
  jar
  1.0-SNAPSHOT
  perf111
  http://maven.apache.org
  

  junit
  junit
  3.8.1
  test

  

scm:perforce::3023://depot/perf111
scm:perforce::3023//depot/perf111
scm:perforce::3023

Can anyone tell me if i am missing something here?

Best Regards,
anoop
-- 
View this message in context: 
http://www.nabble.com/Maven-%2B-Perforce---Checkin-problem-tf2812511s177.html#a7848596
Sent from the Maven - Users mailing list archive at Nabble.com.