Re: Running maven-checkstyle-plugin from the root module

2024-04-21 Thread org . apache . maven . user
On 21/04/2024 19:03, Jeff Jensen wrote:
> Sorry for the vagueness.  I meant something even simpler - running the
> Checkstyle goal separately, probably in two Maven executions similar to:
>   mvn checkstyle:checkstyle
>   mvn install -Dcheckstyle.skip=true

I have ended up having to do something kind of similar to that in
practice on the larger builds. I'm trying to get to the point where
"mvn clean package" is always the acceptable thing to run, rather than
having to split things up into separate commands during development
(hence this message to the list!).

-- 
Mark Raynsford | https://www.io7m.com


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



Re: Running maven-checkstyle-plugin from the root module

2024-04-21 Thread Jeff Jensen
Sorry for the vagueness.  I meant something even simpler - running the
Checkstyle goal separately, probably in two Maven executions similar to:
  mvn checkstyle:checkstyle
  mvn install -Dcheckstyle.skip=true


On Sun, Apr 21, 2024 at 12:35 PM  wrote:

> On 21/04/2024 15:59, Jeff Jensen wrote:
> > Have you considered only running the checkstyle goal, from the parent so
> it
> > processes all modules, before the full build goal(s)?
> >
>
> There are two ways that I can interpret this:
>
> 1. Set the execution in the parent so that all of the child modules
> essentially gain an execution. This is what I already have, and has the
> limitations I described.
> 2. Set an execution in the parent that somehow processes all child
> modules and is not inherited.
>
> I think 2. is what I want, but I can't see from the documentation how
> the plugin can be configured like this. It seems like it wants to work
> on one module at a time.
>
> Have I missed something?
>
> --
> Mark Raynsford | https://www.io7m.com
>
>


Re: Running maven-checkstyle-plugin from the root module

2024-04-21 Thread org . apache . maven . user
On 21/04/2024 15:59, Jeff Jensen wrote:
> Have you considered only running the checkstyle goal, from the parent so it
> processes all modules, before the full build goal(s)?
> 

There are two ways that I can interpret this:

1. Set the execution in the parent so that all of the child modules
essentially gain an execution. This is what I already have, and has the
limitations I described.
2. Set an execution in the parent that somehow processes all child
modules and is not inherited.

I think 2. is what I want, but I can't see from the documentation how
the plugin can be configured like this. It seems like it wants to work
on one module at a time.

Have I missed something?

-- 
Mark Raynsford | https://www.io7m.com


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



Re: Running maven-checkstyle-plugin from the root module

2024-04-21 Thread Jeff Jensen
Have you considered only running the checkstyle goal, from the parent so it
processes all modules, before the full build goal(s)?


On Sun, Apr 21, 2024 at 9:27 AM  wrote:

> Hello!
>
> I've been using the maven-checkstyle-plugin for many years now. Almost
> all of my projects are heavily multi-module, and I have a fairly
> traditional setup where a checkstyle plugin execution is defined in
> my organization-wide POM, and inherited by all modules in all projects.
> I run checkstyle in the process-sources phase and refuse to build
> code if there are style errors:
>
> https://github.com/io7m/primogenitor/blob/develop/pom.xml#L503
>
> This works well enough in the sense that I don't have to repeat any
> configuration information, and I can opt-out of checking on a per-module
> basis if necessary by setting checkstyle.skip in the module's properties.
>
> Where it _doesn't_ work well enough is that I really want to, for a
> given project, get all style errors in all modules before anything else
> in the build proceeds. I have projects where style checks succeed in
> module A, and then module B takes a minute or so to build, and then a
> style check fails in module C. I'd prefer to style check modules A, B,
> and C ahead of time so that I don't have to sit through a time-consuming
> build of B just to have C fail.
>
> There doesn't seem to be a nice way to configure this. Ideally I would
> want checkstyle to check all sources matching a given pattern
> ("*/src/main/java/**.java", probably). Even if I _could_ get the plugin
> to do this, it's not clear how I would preserve the ability to opt-out
> of checking on a per-module basis. I'm aware of the source-level
> comments like // CHECKSTYLE:OFF and so on, but I prefer to put this kind
> of thing in the POM.
>
> Anyone got any ideas?
>
> --
> Mark Raynsford | https://www.io7m.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Running maven-checkstyle-plugin from the root module

2024-04-21 Thread org . apache . maven . user
Hello!

I've been using the maven-checkstyle-plugin for many years now. Almost
all of my projects are heavily multi-module, and I have a fairly
traditional setup where a checkstyle plugin execution is defined in
my organization-wide POM, and inherited by all modules in all projects.
I run checkstyle in the process-sources phase and refuse to build
code if there are style errors:

https://github.com/io7m/primogenitor/blob/develop/pom.xml#L503

This works well enough in the sense that I don't have to repeat any
configuration information, and I can opt-out of checking on a per-module
basis if necessary by setting checkstyle.skip in the module's properties.

Where it _doesn't_ work well enough is that I really want to, for a
given project, get all style errors in all modules before anything else
in the build proceeds. I have projects where style checks succeed in
module A, and then module B takes a minute or so to build, and then a
style check fails in module C. I'd prefer to style check modules A, B,
and C ahead of time so that I don't have to sit through a time-consuming
build of B just to have C fail.

There doesn't seem to be a nice way to configure this. Ideally I would
want checkstyle to check all sources matching a given pattern
("*/src/main/java/**.java", probably). Even if I _could_ get the plugin
to do this, it's not clear how I would preserve the ability to opt-out
of checking on a per-module basis. I'm aware of the source-level
comments like // CHECKSTYLE:OFF and so on, but I prefer to put this kind
of thing in the POM.

Anyone got any ideas?

-- 
Mark Raynsford | https://www.io7m.com

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



Re: repo.maven.apache.org returning 403 forbidden when running maven

2020-01-03 Thread Henke, Zachary
You may ignore this email. We found out that ~/.m2/settings.xml needed proxy 
configuration even though we were supplying HTTP_PROXY and HTTPS_PROXY on CLI.

Zach

From: "Henke, Zachary" 
Date: Monday, December 30, 2019 at 9:04 AM
To: "users@maven.apache.org" 
Cc: "Gawande, Sameer" 
Subject: repo.maven.apache.org returning 403 forbidden when running maven

Hello,

My name is Zach Henke and I work at Verisign. I am currently receiving ERROR 
403: Forbidden when attempting to access http://repo.maven.apache.org/maven2/ 
via linux server. On that same server, I am able to access the maven website 
(http://maven.apache.org/) which indicates public internet access. I am able to 
reach http://repo.maven.apache.org/maven2/ in browser from my local machine on 
a different IP/network than the linux server. These points make me think there 
is a blacklist of IPs in front of the maven repo causing the 403 Forbidden from 
the linux server. Anyone know how to confirm my IP isn’t in a blacklist? Any 
other suggestions to avoid the repo 403 issue would be great.

Thanks,
Zach


Re: repo.maven.apache.org returning 403 forbidden when running maven

2019-12-31 Thread Manfred Moser
HTTP has bee†n deprecated a while ago .. just use HTTPS.

See 

https://central.sonatype.org/articles/2019/Nov/01/announcement-insecurerepo1mavenorg/

https://central.sonatype.org/articles/2019/Apr/30/http-access-to-repo1mavenorg-and-repomavenapacheorg-is-being-deprecated/

Manfred
https://www.simpligility.com


Henke, Zachary wrote on 2019-12-30 06:04 (GMT -08:00):

> Hello,
> 
> My name is Zach Henke and I work at Verisign. I am currently receiving ERROR
> 403: Forbidden when attempting to access http://repo.maven.apache.org/maven2/
> via linux server. On that same server, I am able to access the maven website
> (http://maven.apache.org/) which indicates public internet access. I am able 
> to
> reach http://repo.maven.apache.org/maven2/ in browser from my local machine on
> a different IP/network than the linux server. These points make me think there
> is a blacklist of IPs in front of the maven repo causing the 403 Forbidden 
> from
> the linux server. Anyone know how to confirm my IP isn’t in a blacklist? Any
> other suggestions to avoid the repo 403 issue would be great.
> 
> Thanks,
> Zach
> 


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



Re: repo.maven.apache.org returning 403 forbidden when running maven

2019-12-31 Thread Bernd Eckenfels
Hello,

If you suspect there is something it would require a ticket for Apache Infra I 
guess. But unless your Organisation got banned it’s more likely it’s a client 
side filter (proxy, firewall or appliance).

Did you look at the html source and possibly the http headers of that error 
response for any server names or other indications of origin. How is the error 
page Styled? Can you quote the HTML.

Can you read maven central?

Gruß
Bernd



--
https://Bernd.eckenfels.net


Von: Henke, Zachary 
Gesendet: Dienstag, Dezember 31, 2019 7:52 AM
An: users@maven.apache.org
Cc: Gawande, Sameer
Betreff: repo.maven.apache.org returning 403 forbidden when running maven

Hello,

My name is Zach Henke and I work at Verisign. I am currently receiving ERROR 
403: Forbidden when attempting to access http://repo.maven.apache.org/maven2/ 
via linux server. On that same server, I am able to access the maven website 
(http://maven.apache.org/) which indicates public internet access. I am able to 
reach http://repo.maven.apache.org/maven2/ in browser from my local machine on 
a different IP/network than the linux server. These points make me think there 
is a blacklist of IPs in front of the maven repo causing the 403 Forbidden from 
the linux server. Anyone know how to confirm my IP isn’t in a blacklist? Any 
other suggestions to avoid the repo 403 issue would be great.

Thanks,
Zach


Re: repo.maven.apache.org returning 403 forbidden when running maven

2019-12-31 Thread Karl Heinz Marbaise

On 30.12.19 15:04, Henke, Zachary wrote:


Hello,

My name is Zach Henke and I work at Verisign. I am currently receiving ERROR 
403: Forbidden when attempting to access http://repo.maven.apache.org/maven2/ 
via linux server. On that same server, I am able to access the maven website 
(http://maven.apache.org/) which indicates public internet access. I am able to 
reach http://repo.maven.apache.org/maven2/ in browser from my local machine on 
a different IP/network than the linux server.



This indicators implying more that you have to have a proxy access to
the central repository http://repo.maven.org/maven2/ which seemed to be
not given on the Linux machineI suppose you have a proxy/firewall
issue...

Furthermore the questions is: Does your company has a repository manager
which is intended to download artifacts from central repository?


Accesses via browser are usually going through a proxy with particular
configurations in browsers...but the plain networks is something
different...

Can you simply ping:


ping repo.maven.apache.org


?

Can you do a:

nslookup repo.maven.apache.org ?

Kind regards
Karl Heinz Marbaise

These points make me think there is a blacklist of IPs in front of the
maven repo causing the 403 Forbidden from the linux server. Anyone know
how to confirm my IP isn’t in a blacklist? Any other suggestions to
avoid the repo 403 issue would be great.

Can you give all details of the error message...in particular on command
line..

Kind regards
Karl Heinz Marbaise


Thanks,
Zach



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



Re: repo.maven.apache.org returning 403 forbidden when running maven

2019-12-30 Thread Anthony Whitford
Have you tried using https:  https://repo.maven.apache.org/maven2/ ?

> On Dec 30, 2019, at 9:04 AM, Henke, Zachary  
> wrote:
> 
> Hello,
> 
> My name is Zach Henke and I work at Verisign. I am currently receiving ERROR 
> 403: Forbidden when attempting to access http://repo.maven.apache.org/maven2/ 
> via linux server. On that same server, I am able to access the maven website 
> (http://maven.apache.org/) which indicates public internet access. I am able 
> to reach http://repo.maven.apache.org/maven2/ in browser from my local 
> machine on a different IP/network than the linux server. These points make me 
> think there is a blacklist of IPs in front of the maven repo causing the 403 
> Forbidden from the linux server. Anyone know how to confirm my IP isn’t in a 
> blacklist? Any other suggestions to avoid the repo 403 issue would be great.
> 
> Thanks,
> Zach


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



repo.maven.apache.org returning 403 forbidden when running maven

2019-12-30 Thread Henke, Zachary
Hello,

My name is Zach Henke and I work at Verisign. I am currently receiving ERROR 
403: Forbidden when attempting to access http://repo.maven.apache.org/maven2/ 
via linux server. On that same server, I am able to access the maven website 
(http://maven.apache.org/) which indicates public internet access. I am able to 
reach http://repo.maven.apache.org/maven2/ in browser from my local machine on 
a different IP/network than the linux server. These points make me think there 
is a blacklist of IPs in front of the maven repo causing the 403 Forbidden from 
the linux server. Anyone know how to confirm my IP isn’t in a blacklist? Any 
other suggestions to avoid the repo 403 issue would be great.

Thanks,
Zach


Re: Concurrency issue while running Maven on Jenkins host

2019-05-14 Thread Tibor Digana
There was one more email with the same problem.
We are talking about this problem, global repo:
'$COMPANY_JENKINS_HOME.m2/repository/executor_$EXECUTOR_NUMBER'

Our build creates pwd() + "/.m2" in the job, and the scm checkouts git repo
to "./build" directory.
No issue then!

The Jenkinsfile should use relative paths and then it is transferable to
any new machines and any time.

Cheers
Tibor17


On Tue, May 14, 2019 at 3:13 PM Francois MAROT 
wrote:

> Sorry, seems my previous message missed the copy pasted content ! Here it
> is:
>
>pipeline {
> agent { node { label paramsMap.agentParam } }// the build will
> only run on nodes (ie slaves) indicated
>
> environment {
> // To prevent simultaneous job working in the same Maven local
> repo, we use per-executor local repo (more details here:
>
> http://maven.40175.n5.nabble.com/Not-able-to-read-jars-in-repo-intermittently-td5928990.html#a5928997
> )
> MAVEN_CMD = "mvn -U --batch-mode
> ${paramsMap.activateParallelBuild ? '-T 1C' : ''} " +
> "-Dmaven.repo.local=${isUnix() ?
> '$COMPANY_JENKINS_HOME.m2/repository/executor_$EXECUTOR_NUMBER' :
> '%COMPANY_JENKINS_HOME%.m2\\repository\\executor_%EXECUTOR_NUMBER%'} " +
> "-s ${isUnix() ? '$MAVEN_SETTINGS_XML' :
> '%MAVEN_SETTINGS_XML%'} "
> JAVA_TOOL_OPTIONS = "${env.JAVA_TOOL_OPTIONS == null ? '' :
> env.JAVA_TOOL_OPTIONS} -Djava.io.tmpdir=${env.WORKSPACE}/target/"
> }
> ...
>
>
>
> --
> Sent from: http://maven.40175.n5.nabble.com/Maven-Users-f40176.html
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Concurrency issue while running Maven on Jenkins host

2019-05-14 Thread Francois MAROT
Sorry, seems my previous message missed the copy pasted content ! Here it is:

   pipeline {
agent { node { label paramsMap.agentParam } }// the build will
only run on nodes (ie slaves) indicated 

environment {
// To prevent simultaneous job working in the same Maven local
repo, we use per-executor local repo (more details here:
http://maven.40175.n5.nabble.com/Not-able-to-read-jars-in-repo-intermittently-td5928990.html#a5928997
)
MAVEN_CMD = "mvn -U --batch-mode  
${paramsMap.activateParallelBuild ? '-T 1C' : ''} " +
"-Dmaven.repo.local=${isUnix() ?
'$COMPANY_JENKINS_HOME.m2/repository/executor_$EXECUTOR_NUMBER' :
'%COMPANY_JENKINS_HOME%.m2\\repository\\executor_%EXECUTOR_NUMBER%'} " +
"-s ${isUnix() ? '$MAVEN_SETTINGS_XML' :
'%MAVEN_SETTINGS_XML%'} "
JAVA_TOOL_OPTIONS = "${env.JAVA_TOOL_OPTIONS == null ? '' :
env.JAVA_TOOL_OPTIONS} -Djava.io.tmpdir=${env.WORKSPACE}/target/"
}
...



--
Sent from: http://maven.40175.n5.nabble.com/Maven-Users-f40176.html

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



Re: Concurrency issue while running Maven on Jenkins host

2019-05-13 Thread Francois MAROT
Hello, I suffered from similar symptoms until I adjusted the build to have
per-Jenkins-executor MAven cache. So in the end, my Maven configuration in
my Jenkins pipeline looks like this:



As you can see, I do not use any Jenkins-Maven plugin and Maven is
configured by hand. Hope it may help



--
Sent from: http://maven.40175.n5.nabble.com/Maven-Users-f40176.html

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



Re: Concurrency issue while running Maven on Jenkins host

2019-05-09 Thread Jason Young
IME, the default settings for plugins in Jenkins are sometimes objectively
incorrect. One example is the setting Karl referred to. More specifically,
if you are using the Maven plugin for Jenkins, got to your job config ->
Build -> Advanced -> Use private Maven repository. The default setting of
using one repo for all jobs is only correct if you never run more than one
Maven job at a time. Instead, set it to "Local to the executor" to avoid
concurrent access and maximize cache reuse, or "Local to the workspace" for
more isolation. (My Jenkins installation might be old.)

On Thu, May 9, 2019 at 9:33 AM Karl Heinz Marbaise 
wrote:

> Hi,
>
> On 09.05.19 16:09, Frizz wrote:
> >   I regularly suffer from corrupted maven-metadata-local.xml files on my
> > Jenkins host in directory /home/jenkins/.m2/.../some-project/
>
>
> I suppose you are using the local cache for all your jobs?
>
> If so this is the problem. The cache is and was intended for running a
> single build on it...If you run on a CI solution like Jenkins you should
> use the cache per job ...
>
> Kind regards
> Karl Heinz Marbaise
>
>
> >
> > E.g. extra lines added to the end of the maven-metadata-local.xml file
> like
> > this:
> > ...
> >
> > 
> > astUpdated>
> >
> > 
> >
> > Do I suffer from concurrency issues? Like the one described here (created
> > 2007, but still unresolved):
> https://issues.apache.org/jira/browse/MNG-2802
> >
> > What could I do to mitigate the issue?
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Concurrency issue while running Maven on Jenkins host

2019-05-09 Thread Karl Heinz Marbaise

Hi,

On 09.05.19 16:09, Frizz wrote:

  I regularly suffer from corrupted maven-metadata-local.xml files on my
Jenkins host in directory /home/jenkins/.m2/.../some-project/



I suppose you are using the local cache for all your jobs?

If so this is the problem. The cache is and was intended for running a
single build on it...If you run on a CI solution like Jenkins you should
use the cache per job ...

Kind regards
Karl Heinz Marbaise




E.g. extra lines added to the end of the maven-metadata-local.xml file like
this:
...
   

astUpdated>
   


Do I suffer from concurrency issues? Like the one described here (created
2007, but still unresolved): https://issues.apache.org/jira/browse/MNG-2802

What could I do to mitigate the issue?



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



Concurrency issue while running Maven on Jenkins host

2019-05-09 Thread Frizz
 I regularly suffer from corrupted maven-metadata-local.xml files on my
Jenkins host in directory /home/jenkins/.m2/.../some-project/

E.g. extra lines added to the end of the maven-metadata-local.xml file like
this:
...
  

astUpdated>
  


Do I suffer from concurrency issues? Like the one described here (created
2007, but still unresolved): https://issues.apache.org/jira/browse/MNG-2802

What could I do to mitigate the issue?


Re: Crashes while running "Maven In Five Minutes"

2018-12-09 Thread Hervé BOUTEMY
thank you, merged

regarding setting target Java Version as parameter, in theory this is a good 
idea, but in practice, IMHO it makes the archetype more complex: people will 
modify pom.xml when they want

Regards,

Hervé

Le dimanche 9 décembre 2018, 07:02:52 CET Bernd Eckenfels a écrit :
> I did: https://github.com/apache/maven-site/pull/57
> 
> BTW: should Maybe the minimal Java Version in the generated pom be an
> parameter or depend on the currently used runtime?
> 
> Gruss
> Bernd





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



Re: Crashes while running "Maven In Five Minutes"

2018-12-08 Thread Bernd Eckenfels
I did: https://github.com/apache/maven-site/pull/57

BTW: should Maybe the minimal Java Version in the generated pom be an parameter 
or depend on the currently used runtime?

Gruss
Bernd
-- 
http://bernd.eckenfels.net

Von: Hervé BOUTEMY
Gesendet: Samstag, 8. Dezember 2018 01:51
An: Maven Users List
Betreff: Re: Crashes while running "Maven In Five Minutes"

Thank you for the report: yes, this should be improved to work in current 
latest version of everything

I updated the command line to use version 1.3 of maven-archetype-quickstart, 
which is the latest version and compiles with Java 7 target.

Unfortunately, when build with Java 11, the build now fails during tests with 
a known NPE issue: we need a new version of the archetype with updated maven-
surefire-plugin versions that has this issue fixed (I just created 
MARCHETYPES-63 [1] to track the fix)...

Once the version 1.4 of the archetype will be released, we'll have to update 
the documentation.

While waiting the updated archetype, don't hesitate to use the "edit" button 
in the breadcrumb and provide a Pull Request to explain about the current 
failure with Java 11 that will be fixed soon...



Re: Crashes while running "Maven In Five Minutes"

2018-12-07 Thread Hervé BOUTEMY
Thank you for the report: yes, this should be improved to work in current 
latest version of everything

I updated the command line to use version 1.3 of maven-archetype-quickstart, 
which is the latest version and compiles with Java 7 target.

Unfortunately, when build with Java 11, the build now fails during tests with 
a known NPE issue: we need a new version of the archetype with updated maven-
surefire-plugin versions that has this issue fixed (I just created 
MARCHETYPES-63 [1] to track the fix)...

Once the version 1.4 of the archetype will be released, we'll have to update 
the documentation.

While waiting the updated archetype, don't hesitate to use the "edit" button 
in the breadcrumb and provide a Pull Request to explain about the current 
failure with Java 11 that will be fixed soon...

Regards,

Hervé

[1] https://issues.apache.org/jira/browse/MARCHETYPES-63

Le lundi 3 décembre 2018, 15:56:27 CET Steve Ramage a écrit :
> If I follow the steps listed here
> (https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
> ) : 
> 
> 
> 
> mkdir scratch; pushd scratch; mvn archetype:generate
> -DgroupId=com.mycompany.app -DartifactId=my-app
> -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false;
> cd my-app; mvn package; mvn clean dependency:copy-dependencies package; mvn
> site
> 
> 
> 
> I get several crashes. The first of which is:
> 
> 
> 
> [INFO] -
> [ERROR] COMPILATION ERROR :  
> [INFO] -
> [ERROR] Source option 5 is no longer supported. Use 6 or later.
> [ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
> 
> 
> Even if I fix that error I get another error later.
> 
> 
> 
> [INFO] --< com.mycompany.app:my-app
> >-- [INFO] Building my-app 1.0-SNAPSHOT
> [INFO] [ jar
> ]- [INFO]
> [INFO] --- maven-site-plugin:3.3:site (default-site) @ my-app ---
> [WARNING] Report plugin
> org.apache.maven.plugins:maven-project-info-reports-plugin has an empty
> version. [WARNING]
> [WARNING] It is highly recommended to fix these problems because they
> threaten the stability of your build. [WARNING]
> [WARNING] For this reason, future Maven versions might no longer support
> building such malformed projects. [INFO] configuring report plugin
> org.apache.maven.plugins:maven-project-info-reports-plugin:3.0.0 [WARNING]
> Error injecting: org.apache.maven.report.projectinfo.CiManagementReport
> java.lang.NoClassDefFoundError:
> org/apache/maven/doxia/siterenderer/DocumentContent at
> java.lang.Class.getDeclaredConstructors0 (Native Method)
> at java.lang.Class.privateGetDeclaredConstructors (Class.java:3138)
> at java.lang.Class.getDeclaredConstructors (Class.java:2358)
> at com.google.inject.spi.InjectionPoint.forConstructorOf
> (InjectionPoint.java:245) ...
> at
> org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMoj
> o (DefaultMavenPluginManager.java:520) at
> org.apache.maven.reporting.exec.DefaultMavenReportExecutor.getConfiguredMav
> enReport (DefaultMavenReportExecutor.java:306) at
> org.apache.maven.reporting.exec.DefaultMavenReportExecutor.buildReportPlugi
> n (DefaultMavenReportExecutor.java:263) at
> org.apache.maven.reporting.exec.DefaultMavenReportExecutor.buildMavenReport
> s (DefaultMavenReportExecutor.java:154) at
> org.apache.maven.plugins.site.AbstractSiteRenderingMojo.getReports
> (AbstractSiteRenderingMojo.java:235) at
> org.apache.maven.plugins.site.SiteMojo.execute (SiteMojo.java:121) ...
> at org.codehaus.plexus.classworlds.launcher.Launcher.main
> (Launcher.java:356) Caused by: java.lang.ClassNotFoundException:
> org.apache.maven.doxia.siterenderer.DocumentContent at
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass
> (SelfFirstStrategy.java:50) ...
> 
> 
> 
> 
> $mvn --version
> 
> Apache Maven 3.6.0 (NON-CANONICAL_2018-11-06T03:14:22+01:00_root;
> 2018-11-05T18:14:22-08:00) Maven home: /opt/maven
> Java version: 11.0.1, vendor: Oracle Corporation, runtime:
> /usr/lib/jvm/java-11-openjdk Default locale: en_US, platform encoding:
> UTF-8
> OS name: "linux", version: "4.14.84-1-lts", arch: "amd64", family: "unix"
> 
> Anyway I think the generated archetype should actually work with the maven
> version I'm using (especially because the advice on getting help is to run
> the latest), or failing that the Getting Started Guide should include the
> descriptions on how to fix them, imho.
> 
> Cheers,
> 
> Steve Ramage





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



Re: Crashes while running "Maven In Five Minutes"

2018-12-04 Thread Michael Osipov
Am 2018-12-03 um 15:56 schrieb Steve Ramage:> If I follow the steps 
listed here 
(https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html) 
:

>
>
>
> mkdir scratch; pushd scratch; mvn archetype:generate 
-DgroupId=com.mycompany.app -DartifactId=my-app 
-DarchetypeArtifactId=maven-archetype-quickstart 
-DinteractiveMode=false; cd my-app; mvn package; mvn clean 
dependency:copy-dependencies package; mvn site

>
>
>
> I get several crashes. The first of which is:
>
>
>
> [INFO] -
> [ERROR] COMPILATION ERROR :
> [INFO] -
> [ERROR] Source option 5 is no longer supported. Use 6 or later.
> [ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
>
>
> Even if I fix that error I get another error later.
>
>
>
> [INFO] --< com.mycompany.app:my-app 
>--

> [INFO] Building my-app 1.0-SNAPSHOT
> [INFO] [ jar 
]-

> [INFO]
> [INFO] --- maven-site-plugin:3.3:site (default-site) @ my-app ---
> [WARNING] Report plugin 
org.apache.maven.plugins:maven-project-info-reports-plugin has an empty 
version.

> [WARNING]
> [WARNING] It is highly recommended to fix these problems because they 
threaten the stability of your build.

> [WARNING]
> [WARNING] For this reason, future Maven versions might no longer 
support building such malformed projects.
> [INFO] configuring report plugin 
org.apache.maven.plugins:maven-project-info-reports-plugin:3.0.0
> [WARNING] Error injecting: 
org.apache.maven.report.projectinfo.CiManagementReport
> java.lang.NoClassDefFoundError: 
org/apache/maven/doxia/siterenderer/DocumentContent

>  at java.lang.Class.getDeclaredConstructors0 (Native Method)
>  at java.lang.Class.privateGetDeclaredConstructors (Class.java:3138)
>  at java.lang.Class.getDeclaredConstructors (Class.java:2358)
>  at com.google.inject.spi.InjectionPoint.forConstructorOf 
(InjectionPoint.java:245)

> ...
>  at 
org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo 
(DefaultMavenPluginManager.java:520)
>  at 
org.apache.maven.reporting.exec.DefaultMavenReportExecutor.getConfiguredMavenReport 
(DefaultMavenReportExecutor.java:306)
>  at 
org.apache.maven.reporting.exec.DefaultMavenReportExecutor.buildReportPlugin 
(DefaultMavenReportExecutor.java:263)
>  at 
org.apache.maven.reporting.exec.DefaultMavenReportExecutor.buildMavenReports 
(DefaultMavenReportExecutor.java:154)
>  at 
org.apache.maven.plugins.site.AbstractSiteRenderingMojo.getReports 
(AbstractSiteRenderingMojo.java:235)
>  at org.apache.maven.plugins.site.SiteMojo.execute 
(SiteMojo.java:121)

> ...
>  at org.codehaus.plexus.classworlds.launcher.Launcher.main 
(Launcher.java:356)
> Caused by: java.lang.ClassNotFoundException: 
org.apache.maven.doxia.siterenderer.DocumentContent
>  at 
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass 
(SelfFirstStrategy.java:50)

> ...
>
>
>
>
> $mvn --version
>
> Apache Maven 3.6.0 (NON-CANONICAL_2018-11-06T03:14:22+01:00_root; 
2018-11-05T18:14:22-08:00)

> Maven home: /opt/maven
> Java version: 11.0.1, vendor: Oracle Corporation, runtime: 
/usr/lib/jvm/java-11-openjdk

> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "4.14.84-1-lts", arch: "amd64", family: "unix"
>
> Anyway I think the generated archetype should actually work with the 
maven version I'm using (especially because the advice on getting help 
is to run the latest), or failing that the Getting Started Guide should 
include the descriptions on how to fix them, imho.


Please file an issue with MNGSITE.

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



Crashes while running "Maven In Five Minutes"

2018-12-03 Thread Steve Ramage
If I follow the steps listed here 
(https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html) : 



mkdir scratch; pushd scratch; mvn archetype:generate 
-DgroupId=com.mycompany.app -DartifactId=my-app 
-DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false; cd 
my-app; mvn package; mvn clean dependency:copy-dependencies package; mvn site



I get several crashes. The first of which is:



[INFO] - 
[ERROR] COMPILATION ERROR :  
[INFO] - 
[ERROR] Source option 5 is no longer supported. Use 6 or later. 
[ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
 

Even if I fix that error I get another error later.



[INFO] --< com.mycompany.app:my-app >-- 
[INFO] Building my-app 1.0-SNAPSHOT 
[INFO] [ jar ]- 
[INFO]  
[INFO] --- maven-site-plugin:3.3:site (default-site) @ my-app --- 
[WARNING] Report plugin 
org.apache.maven.plugins:maven-project-info-reports-plugin has an empty 
version. 
[WARNING]  
[WARNING] It is highly recommended to fix these problems because they threaten 
the stability of your build. 
[WARNING]  
[WARNING] For this reason, future Maven versions might no longer support 
building such malformed projects. 
[INFO] configuring report plugin 
org.apache.maven.plugins:maven-project-info-reports-plugin:3.0.0 
[WARNING] Error injecting: 
org.apache.maven.report.projectinfo.CiManagementReport 
java.lang.NoClassDefFoundError: 
org/apache/maven/doxia/siterenderer/DocumentContent 
    at java.lang.Class.getDeclaredConstructors0 (Native Method) 
    at java.lang.Class.privateGetDeclaredConstructors (Class.java:3138) 
    at java.lang.Class.getDeclaredConstructors (Class.java:2358) 
    at com.google.inject.spi.InjectionPoint.forConstructorOf 
(InjectionPoint.java:245) 
...
    at 
org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo 
(DefaultMavenPluginManager.java:520) 
    at 
org.apache.maven.reporting.exec.DefaultMavenReportExecutor.getConfiguredMavenReport
 (DefaultMavenReportExecutor.java:306) 
    at 
org.apache.maven.reporting.exec.DefaultMavenReportExecutor.buildReportPlugin 
(DefaultMavenReportExecutor.java:263) 
    at 
org.apache.maven.reporting.exec.DefaultMavenReportExecutor.buildMavenReports 
(DefaultMavenReportExecutor.java:154) 
    at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.getReports 
(AbstractSiteRenderingMojo.java:235) 
    at org.apache.maven.plugins.site.SiteMojo.execute (SiteMojo.java:121) 
...
    at org.codehaus.plexus.classworlds.launcher.Launcher.main 
(Launcher.java:356) 
Caused by: java.lang.ClassNotFoundException: 
org.apache.maven.doxia.siterenderer.DocumentContent 
    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass 
(SelfFirstStrategy.java:50) 
...
 



$mvn --version

Apache Maven 3.6.0 (NON-CANONICAL_2018-11-06T03:14:22+01:00_root; 
2018-11-05T18:14:22-08:00)
Maven home: /opt/maven
Java version: 11.0.1, vendor: Oracle Corporation, runtime: 
/usr/lib/jvm/java-11-openjdk
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.14.84-1-lts", arch: "amd64", family: "unix"

Anyway I think the generated archetype should actually work with the maven 
version I'm using (especially because the advice on getting help is to run the 
latest), or failing that the Getting Started Guide should include the 
descriptions on how to fix them, imho.

Cheers,

Steve Ramage


Problem Running Maven

2015-04-17 Thread Michael.CTR.Tarullo
I have recently downloaded and unzipped Maven 3.3.1 in Windows 7.

I updated my path environment variable to include 
C:\Apache\Maven\apache-maven-3.3.1\bin.  I also added a JAVA_HOME environment 
variable that points to my Java 8 JDK.  And created both an M2_HOME and M2 
environment variable.

When I enter mvn - -version on the command line I get the following:

H:\mvn --version
Usage: java [-options] class [args...]
   (to execute a class)
   or  java [-options] -jar jarfile [args...]
   (to execute a jar file)
where options include:
-d32  use a 32-bit data model if available
-d64  use a 64-bit data model if available
-server   to select the server VM
  The default VM is server.

-cp class search path of directories and zip/jar files
-classpath class search path of directories and zip/jar files
  A ; separated list of directories, JAR archives,
  and ZIP archives to search for class files.
-Dname=value
  set a system property
-verbose:[class|gc|jni]
  enable verbose output
-version  print product version and exit
-version:value
  require the specified version to run
-showversion  print product version and continue
-jre-restrict-search | -no-jre-restrict-search
  include/exclude user private JREs in the version search
-? -help  print this help message
-Xprint help on non-standard options
-ea[:packagename...|:classname]
-enableassertions[:packagename...|:classname]
  enable assertions with specified granularity
-da[:packagename...|:classname]
-disableassertions[:packagename...|:classname]
  disable assertions with specified granularity
-esa | -enablesystemassertions
  enable system assertions
-dsa | -disablesystemassertions
  disable system assertions
-agentlib:libname[=options]
  load native agent library libname, e.g. -agentlib:hprof
  see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:pathname[=options]
  load native agent library by full pathname
-javaagent:jarpath[=options]
  load Java programming language agent, see java.lang.instrument

-splash:imagepath
  show splash screen with specified image
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for 
more details.

However, when I change to any of the following three directories:

C:\Windows
C:\Windows\System32
C:\Apache\Maven\apache-maven-3.3.1\bin

and enter mvn - -version on the command line I get the following:

C:\Apache\Maven\apache-maven-3.3.1\binmvn --version
Apache Maven 3.3.1 (cab6659f9874fa96462afef40fcf6bc033d58c1c; 
2015-03-13T16:10:27-04:00)
Maven home: C:\Apache\Maven\apache-maven-3.3.1\bin\..
Java version: 1.8.0_31, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_31\jre
Default locale: en_US, platform encoding: Cp1252
OS name: windows 7, version: 6.1, arch: amd64, family: dos

If I run mvn - -version from any other directory I get the same results as 
reported when I run from H:\.


Michael Tarullo
Contractor (Engility Corp)
Enterprise Architect
NSRR System Administrator
FAA WJH Technical Center
(609)485-5294



RE: Problem Running Maven

2015-04-17 Thread Michael.CTR.Tarullo
Here are the commands the batch file is executing:

Do you see anything in here that indicates the cause of the problem?

H:\mvn --version

H:\if  ==  (set HOME=H:\ )

H:\if not on ==  goto skipRcPre

H:\set ERROR_CODE=0

H:\if not C:\Program Files\Java\jdk1.8.0_31 ==  goto OkJHome

H:\if exist C:\Program Files\Java\jdk1.8.0_31\bin\java.exe goto chkMHome

H:\if not C:\Apache\Maven\apache-maven-3.3.1 ==  goto valMHome

H:\if not _1 == _\ goto checkMCmd

H:\if exist C:\Apache\Maven\apache-maven-3.3.1\bin\mvn.cmd goto init

H:\set MAVEN_CMD_LINE_ARGS=--version

H:\set MAVEN_PROJECTBASEDIR=

H:\IF NOT  ==  goto endDetectBaseDir

H:\set EXEC_DIR=H:\

H:\set WDIR=H:\

H:\IF EXIST H:\\.mvn goto baseDirFound

H:\cd ..

H:\IF H:\ == H:\ goto baseDirNotFound

H:\set MAVEN_PROJECTBASEDIR=H:\

H:\cd H:\

H:\IF NOT EXIST H:\\.mvn\jvm.config goto endReadAdditionalConfig

H:\SET MAVEN_JAVA_EXE=C:\Program Files\Java\jdk1.8.0_31\bin\java.exe

H:\for %i in (C:\Apache\Maven\apache-maven-3.3.1\boot\plexus-classworlds-*) d
o set CLASSWORLDS_JAR=%i

H:\set CLASSWORLDS_JAR=C:\Apache\Maven\apache-maven-3.3.1\boot\plexus-classwor
lds-2.5.2.jar

H:\set CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher

H:\C:\Program Files\Java\jdk1.8.0_31\bin\java.exe-classpath C:\Apache\Ma
ven\apache-maven-3.3.1\boot\plexus-classworlds-2.5.2.jar -Dclassworlds.conf=C:
\Apache\Maven\apache-maven-3.3.1\bin\m2.conf -Dmaven.home=C:\Apache\Maven\apac
he-maven-3.3.1 -Dmaven.multiModuleProjectDirectory=H:\ org.codehaus.plexus.cl
assworlds.launcher.Launcher --version
Usage: java [-options] class [args...]
   (to execute a class)
   or  java [-options] -jar jarfile [args...]
   (to execute a jar file)
where options include:
-d32  use a 32-bit data model if available
-d64  use a 64-bit data model if available
-server   to select the server VM
  The default VM is server.

-cp class search path of directories and zip/jar files
-classpath class search path of directories and zip/jar files
  A ; separated list of directories, JAR archives,
  and ZIP archives to search for class files.
-Dname=value
  set a system property
-verbose:[class|gc|jni]
  enable verbose output
-version  print product version and exit
-version:value
  require the specified version to run
-showversion  print product version and continue
-jre-restrict-search | -no-jre-restrict-search
  include/exclude user private JREs in the version search
-? -help  print this help message
-Xprint help on non-standard options
-ea[:packagename...|:classname]
-enableassertions[:packagename...|:classname]
  enable assertions with specified granularity
-da[:packagename...|:classname]
-disableassertions[:packagename...|:classname]
  disable assertions with specified granularity
-esa | -enablesystemassertions
  enable system assertions
-dsa | -disablesystemassertions
  disable system assertions
-agentlib:libname[=options]
  load native agent library libname, e.g. -agentlib:hprof
  see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:pathname[=options]
  load native agent library by full pathname
-javaagent:jarpath[=options]
  load Java programming language agent, see java.lang.instrument

-splash:imagepath
  show splash screen with specified image
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for m
ore details.

H:\if ERRORLEVEL 1 goto error

H:\set ERROR_CODE=1

H:\if not on ==  goto skipRcPost

H:\if  == on pause

H:\if  == on exit 1

H:\exit /B 1

H:\

Michael Tarullo
Contractor (Engility Corp)
Enterprise Architect
NSRR System Administrator
FAA WJH Technical Center
(609)485-5294

-Original Message-
From: Bernd Eckenfels [mailto:e...@zusammenkunft.net] 
Sent: Friday, April 17, 2015 3:53 PM
To: users@maven.apache.org
Subject: Re: Problem Running Maven

Hello,

you can try to set MAVEN_BATCH_ECHO=ON and MAVEN_SKIP_RC=On to see the 
commands the batch are executing and make sure you have no old config laying 
around.

What is your JAVA_HOME actually set to? Does it end in a \? 

I suspect it is related to the new .mvn\ directory handling. It should be 
visible if you enable command echos. Paste the output to some pastebin where 
you can show it.

 Do you have any .mvn\ directories? What does where java and where  mvn 
tell you (outside the directories where it works).

Gruss
Bernd


 Am
Fri, 17 Apr 2015 19:34:10 + schrieb michael.ctr.taru...@faa.gov:

 I have recently downloaded and unzipped Maven 3.3.1 in Windows 7.
 
 I updated my path environment variable to include 
 C:\Apache\Maven\apache-maven-3.3.1\bin.  I also added a JAVA_HOME

Re: Problem Running Maven

2015-04-17 Thread Bernd Eckenfels
Hello,

you can try to set MAVEN_BATCH_ECHO=ON and MAVEN_SKIP_RC=On to see
the commands the batch are executing and make sure you have no old
config laying around.

What is your JAVA_HOME actually set to? Does it end in a \? 

I suspect it is related to the new .mvn\ directory handling. It should
be visible if you enable command echos. Paste the output to some
pastebin where you can show it.

 Do you have any .mvn\ directories? What does where java and where
 mvn tell you (outside the directories where it works).

Gruss
Bernd


 Am
Fri, 17 Apr 2015 19:34:10 + schrieb michael.ctr.taru...@faa.gov:

 I have recently downloaded and unzipped Maven 3.3.1 in Windows 7.
 
 I updated my path environment variable to include
 C:\Apache\Maven\apache-maven-3.3.1\bin.  I also added a JAVA_HOME
 environment variable that points to my Java 8 JDK.  And created both
 an M2_HOME and M2 environment variable.
 
 When I enter mvn - -version on the command line I get the following:
 
 H:\mvn --version
 Usage: java [-options] class [args...]
(to execute a class)
or  java [-options] -jar jarfile [args...]
(to execute a jar file)
 where options include:
 -d32  use a 32-bit data model if available
 -d64  use a 64-bit data model if available
 -server   to select the server VM
   The default VM is server.
 
 -cp class search path of directories and zip/jar files
 -classpath class search path of directories and zip/jar files
   A ; separated list of directories, JAR archives,
   and ZIP archives to search for class files.
 -Dname=value
   set a system property
 -verbose:[class|gc|jni]
   enable verbose output
 -version  print product version and exit
 -version:value
   require the specified version to run
 -showversion  print product version and continue
 -jre-restrict-search | -no-jre-restrict-search
   include/exclude user private JREs in the version
 search -? -help  print this help message
 -Xprint help on non-standard options
 -ea[:packagename...|:classname]
 -enableassertions[:packagename...|:classname]
   enable assertions with specified granularity
 -da[:packagename...|:classname]
 -disableassertions[:packagename...|:classname]
   disable assertions with specified granularity
 -esa | -enablesystemassertions
   enable system assertions
 -dsa | -disablesystemassertions
   disable system assertions
 -agentlib:libname[=options]
   load native agent library libname, e.g.
 -agentlib:hprof see also, -agentlib:jdwp=help and -agentlib:hprof=help
 -agentpath:pathname[=options]
   load native agent library by full pathname
 -javaagent:jarpath[=options]
   load Java programming language agent, see
 java.lang.instrument
 
 -splash:imagepath
   show splash screen with specified image
 See
 http://www.oracle.com/technetwork/java/javase/documentation/index.html
 for more details.
 
 However, when I change to any of the following three directories:
 
 C:\Windows
 C:\Windows\System32
 C:\Apache\Maven\apache-maven-3.3.1\bin
 
 and enter mvn - -version on the command line I get the following:
 
 C:\Apache\Maven\apache-maven-3.3.1\binmvn --version
 Apache Maven 3.3.1 (cab6659f9874fa96462afef40fcf6bc033d58c1c;
 2015-03-13T16:10:27-04:00) Maven home:
 C:\Apache\Maven\apache-maven-3.3.1\bin\.. Java version: 1.8.0_31,
 vendor: Oracle Corporation Java home: C:\Program
 Files\Java\jdk1.8.0_31\jre Default locale: en_US, platform encoding:
 Cp1252 OS name: windows 7, version: 6.1, arch: amd64, family:
 dos
 
 If I run mvn - -version from any other directory I get the same
 results as reported when I run from H:\.
 
 
 Michael Tarullo
 Contractor (Engility Corp)
 Enterprise Architect
 NSRR System Administrator
 FAA WJH Technical Center
 (609)485-5294
 
 


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



RE: Problem Running Maven

2015-04-17 Thread Michael.CTR.Tarullo
As does it fail when I try running it from C:\.

But as I stated in my initial post, it does not fail if I run it in C:\Widows 
or C:\Windows\System32!!!

I'm not sure why it should be failing from any directory from which it's 
started.

Does Maven assume that the directory when you are launching it from is 1)either 
already a project or 2)going to be a project?

Mike

Michael Tarullo
Contractor (Engility Corp)
Enterprise Architect
NSRR System Administrator
FAA WJH Technical Center
(609)485-5294

-Original Message-
From: Bernd Eckenfels [mailto:e...@zusammenkunft.net] 
Sent: Friday, April 17, 2015 4:30 PM
To: users@maven.apache.org
Subject: Re: Problem Running Maven

Hello,

hm, the problem is the \ in the .multiModuleProjectDirectory (caused by the 
fact that you run it in a toplevel directory I guess).

I guess this could be fixed, but then again, does it work when you use a subdir 
of the h:\ drive? IS this really a project directory?

I just tried it and can reproduce it, when I am in C:\ it fails, also. 

Gruss
Bernd


 Am Fri, 17 Apr 2015 20:10:17
+ schrieb michael.ctr.taru...@faa.gov:
 H:\cd ..
  H:\IF H:\ == H:\ goto baseDirNotFound
 H:\set MAVEN_PROJECTBASEDIR=H:\
 H:\cd H:\
...
 H:\C:\Program Files\Java\jdk1.8.0_31\bin\java.exe-classpath
 C:\Apache\Ma
 ven\apache-maven-3.3.1\boot\plexus-classworlds-2.5.2.jar
 -Dclassworlds.conf=C: \Apache\Maven\apache-maven-3.3.1\bin\m2.conf
 -Dmaven.home=C:\Apache\Maven\apac he-maven-3.3.1
 -Dmaven.multiModuleProjectDirectory=H:\ org.codehaus.plexus.cl 
 assworlds.launcher.Launcher --version
  


 Usage: java [-options] class
 [args...] (to execute a class) or  java [-options] -jar jarfile 
 [args...] (to execute a jar file) where options include:
 -d32  use a 32-bit data model if available
 -d64  use a 64-bit data model if available
 -server   to select the server VM
   The default VM is server.
 
 -cp class search path of directories and zip/jar files
 -classpath class search path of directories and zip/jar files
   A ; separated list of directories, JAR archives,
   and ZIP archives to search for class files.
 -Dname=value
   set a system property
 -verbose:[class|gc|jni]
   enable verbose output
 -version  print product version and exit
 -version:value
   require the specified version to run
 -showversion  print product version and continue
 -jre-restrict-search | -no-jre-restrict-search
   include/exclude user private JREs in the version
 search -? -help  print this help message
 -Xprint help on non-standard options
 -ea[:packagename...|:classname]
 -enableassertions[:packagename...|:classname]
   enable assertions with specified granularity
 -da[:packagename...|:classname]
 -disableassertions[:packagename...|:classname]
   disable assertions with specified granularity
 -esa | -enablesystemassertions
   enable system assertions
 -dsa | -disablesystemassertions
   disable system assertions
 -agentlib:libname[=options]
   load native agent library libname, e.g.
 -agentlib:hprof see also, -agentlib:jdwp=help and -agentlib:hprof=help
 -agentpath:pathname[=options]
   load native agent library by full pathname
 -javaagent:jarpath[=options]
   load Java programming language agent, see 
 java.lang.instrument
 
 -splash:imagepath
   show splash screen with specified image See 
 http://www.oracle.com/technetwork/java/javase/documentation/index.html
 for m ore details.
 
 H:\if ERRORLEVEL 1 goto error
 
 H:\set ERROR_CODE=1
 
 H:\if not on ==  goto skipRcPost
 
 H:\if  == on pause
 
 H:\if  == on exit 1
 
 H:\exit /B 1
 
 H:\
 
 Michael Tarullo
 Contractor (Engility Corp)
 Enterprise Architect
 NSRR System Administrator
 FAA WJH Technical Center
 (609)485-5294
 
 -Original Message-
 From: Bernd Eckenfels [mailto:e...@zusammenkunft.net]
 Sent: Friday, April 17, 2015 3:53 PM
 To: users@maven.apache.org
 Subject: Re: Problem Running Maven
 
 Hello,
 
 you can try to set MAVEN_BATCH_ECHO=ON and MAVEN_SKIP_RC=On to see 
 the commands the batch are executing and make sure you have no old 
 config laying around.
 
 What is your JAVA_HOME actually set to? Does it end in a \? 
 
 I suspect it is related to the new .mvn\ directory handling. It should 
 be visible if you enable command echos. Paste the output to some 
 pastebin where you can show it.
 
  Do you have any .mvn\ directories? What does where java and where  
 mvn tell you (outside the directories where it works).
 
 Gruss
 Bernd
 
 
  Am
 Fri, 17 Apr 2015 19:34:10 + schrieb michael.ctr.taru...@faa.gov:
 
  I have recently downloaded and unzipped Maven 3.3.1 in Windows 7.
  
  I updated my path

RE: Problem Running Maven

2015-04-17 Thread Michael.CTR.Tarullo
Ah, I see.  The problem is starting it in a root directory.

Thanks.

Michael Tarullo
Contractor (Engility Corp)
Enterprise Architect
NSRR System Administrator
FAA WJH Technical Center
(609)485-5294


-Original Message-
From: Bernd Eckenfels [mailto:e...@zusammenkunft.net] 
Sent: Friday, April 17, 2015 4:41 PM
To: users@maven.apache.org
Subject: Re: Problem Running Maven

Am Fri, 17 Apr 2015 20:38:03 +
schrieb michael.ctr.taru...@faa.gov:

 But as I stated in my initial post, it does not fail if I run it in 
 C:\Widows or C:\Windows\System32!!!

As I said it works in all directories if they are not the root of a drive.

https://issues.apache.org/jira/browse/MNG-5804

Gruss
Bernd

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


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



Re: Problem Running Maven

2015-04-17 Thread Bernd Eckenfels
Hello,

hm, the problem is the \ in the .multiModuleProjectDirectory (caused by
the fact that you run it in a toplevel directory I guess).

I guess this could be fixed, but then again, does it work when you use
a subdir of the h:\ drive? IS this really a project directory?

I just tried it and can reproduce it, when I am in C:\ it fails,
also. 

Gruss
Bernd


 Am Fri, 17 Apr 2015 20:10:17
+ schrieb michael.ctr.taru...@faa.gov:
 H:\cd ..
  H:\IF H:\ == H:\ goto baseDirNotFound
 H:\set MAVEN_PROJECTBASEDIR=H:\
 H:\cd H:\
...
 H:\C:\Program Files\Java\jdk1.8.0_31\bin\java.exe-classpath
 C:\Apache\Ma
 ven\apache-maven-3.3.1\boot\plexus-classworlds-2.5.2.jar
 -Dclassworlds.conf=C: \Apache\Maven\apache-maven-3.3.1\bin\m2.conf
 -Dmaven.home=C:\Apache\Maven\apac he-maven-3.3.1
 -Dmaven.multiModuleProjectDirectory=H:\ org.codehaus.plexus.cl
 assworlds.launcher.Launcher --version
  


 Usage: java [-options] class
 [args...] (to execute a class) or  java [-options] -jar jarfile
 [args...] (to execute a jar file)
 where options include:
 -d32  use a 32-bit data model if available
 -d64  use a 64-bit data model if available
 -server   to select the server VM
   The default VM is server.
 
 -cp class search path of directories and zip/jar files
 -classpath class search path of directories and zip/jar files
   A ; separated list of directories, JAR archives,
   and ZIP archives to search for class files.
 -Dname=value
   set a system property
 -verbose:[class|gc|jni]
   enable verbose output
 -version  print product version and exit
 -version:value
   require the specified version to run
 -showversion  print product version and continue
 -jre-restrict-search | -no-jre-restrict-search
   include/exclude user private JREs in the version
 search -? -help  print this help message
 -Xprint help on non-standard options
 -ea[:packagename...|:classname]
 -enableassertions[:packagename...|:classname]
   enable assertions with specified granularity
 -da[:packagename...|:classname]
 -disableassertions[:packagename...|:classname]
   disable assertions with specified granularity
 -esa | -enablesystemassertions
   enable system assertions
 -dsa | -disablesystemassertions
   disable system assertions
 -agentlib:libname[=options]
   load native agent library libname, e.g.
 -agentlib:hprof see also, -agentlib:jdwp=help and -agentlib:hprof=help
 -agentpath:pathname[=options]
   load native agent library by full pathname
 -javaagent:jarpath[=options]
   load Java programming language agent, see
 java.lang.instrument
 
 -splash:imagepath
   show splash screen with specified image
 See
 http://www.oracle.com/technetwork/java/javase/documentation/index.html
 for m ore details.
 
 H:\if ERRORLEVEL 1 goto error
 
 H:\set ERROR_CODE=1
 
 H:\if not on ==  goto skipRcPost
 
 H:\if  == on pause
 
 H:\if  == on exit 1
 
 H:\exit /B 1
 
 H:\
 
 Michael Tarullo
 Contractor (Engility Corp)
 Enterprise Architect
 NSRR System Administrator
 FAA WJH Technical Center
 (609)485-5294
 
 -Original Message-
 From: Bernd Eckenfels [mailto:e...@zusammenkunft.net] 
 Sent: Friday, April 17, 2015 3:53 PM
 To: users@maven.apache.org
 Subject: Re: Problem Running Maven
 
 Hello,
 
 you can try to set MAVEN_BATCH_ECHO=ON and MAVEN_SKIP_RC=On to
 see the commands the batch are executing and make sure you have no
 old config laying around.
 
 What is your JAVA_HOME actually set to? Does it end in a \? 
 
 I suspect it is related to the new .mvn\ directory handling. It
 should be visible if you enable command echos. Paste the output to
 some pastebin where you can show it.
 
  Do you have any .mvn\ directories? What does where java and
 where  mvn tell you (outside the directories where it works).
 
 Gruss
 Bernd
 
 
  Am
 Fri, 17 Apr 2015 19:34:10 + schrieb michael.ctr.taru...@faa.gov:
 
  I have recently downloaded and unzipped Maven 3.3.1 in Windows 7.
  
  I updated my path environment variable to include 
  C:\Apache\Maven\apache-maven-3.3.1\bin.  I also added a JAVA_HOME 
  environment variable that points to my Java 8 JDK.  And created
  both an M2_HOME and M2 environment variable.
  
  When I enter mvn - -version on the command line I get the following:
  
  H:\mvn --version
  Usage: java [-options] class [args...]
 (to execute a class)
 or  java [-options] -jar jarfile [args...]
 (to execute a jar file)
  where options include:
  -d32  use a 32-bit data model if available
  -d64  use a 64-bit data model if available
  -server   to select the server VM
The default VM

Re: Problem Running Maven

2015-04-17 Thread Bernd Eckenfels
Am Fri, 17 Apr 2015 20:38:03 +
schrieb michael.ctr.taru...@faa.gov:

 But as I stated in my initial post, it does not fail if I run it in
 C:\Widows or C:\Windows\System32!!!

As I said it works in all directories if they are not the root of a
drive.

https://issues.apache.org/jira/browse/MNG-5804

Gruss
Bernd

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




Re: Problem Running Maven

2015-04-17 Thread Dan Tran
BTW, no need to configure M2_HOME env any more. the startup script does
that for you

-D

On Fri, Apr 17, 2015 at 1:49 PM, michael.ctr.taru...@faa.gov wrote:

 Ah, I see.  The problem is starting it in a root directory.

 Thanks.

 Michael Tarullo
 Contractor (Engility Corp)
 Enterprise Architect
 NSRR System Administrator
 FAA WJH Technical Center
 (609)485-5294


 -Original Message-
 From: Bernd Eckenfels [mailto:e...@zusammenkunft.net]
 Sent: Friday, April 17, 2015 4:41 PM
 To: users@maven.apache.org
 Subject: Re: Problem Running Maven

 Am Fri, 17 Apr 2015 20:38:03 +
 schrieb michael.ctr.taru...@faa.gov:

  But as I stated in my initial post, it does not fail if I run it in
  C:\Widows or C:\Windows\System32!!!

 As I said it works in all directories if they are not the root of a drive.

 https://issues.apache.org/jira/browse/MNG-5804

 Gruss
 Bernd

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


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




Re: Running maven shade on a preexisting jar

2014-07-08 Thread Benson Margulies
Ignore the sales pitch and the unpacking complexity.

1. Make an ordinary new project with no source code.

2. List your jar as a dependency.

3. Configure shade. It can be configured to operate on dependencies.
On Jul 8, 2014 6:30 AM, james northrup northrup.ja...@gmail.com wrote:

 MG: sure or
 http://en.wikipedia.org/wiki/Java_Decompiler


 On Mon, Jul 7, 2014 at 4:13 PM, Martin Gainty mgai...@hotmail.com wrote:

 
 
   From: northrup.ja...@gmail.com
   Date: Mon, 7 Jul 2014 14:31:31 -0700
   Subject: Re: Running maven shade on a preexisting jar
   To: users@maven.apache.org
  
   shade is a uber jar plugin.  there are 3 uber jar plugins that matter,
   shade, maven-assembly, and proguard.
  
   for beginners:
   all of them work more or less by merging a project into a  single new
 jar
   just reading the pom dependencies.
  
   maven assembly does the least work.  good for quick jobs
  
   shade-plugin sometimes does a good job but imho if it works once you
 are
   buying into a false sense of security and will be bitten as you grow a
   project.
  
   proguard is industrial strength and imho returns the best result for
   investing in rtfm.
  
   all of the above have a special configs to do parts and pieces.  a
   beginner's mistake would be to pursue that course of action.  don't.
   make
   a simple uber-jar project with one output jar combined from all of the
   input jars, and learn how to exclude collisions.
  
   if you have  some proprietary jar with no source spend some time with
 jad
   to make source and refactor your packages to do the above, simple
   uber-jar
  MGJames i had some difficulty locating Java Decompiler (JAD) ..can i
  assume this is JAD repository we should reference?
  MGhttp://varaneckas.com/jad/
  
  
   On Mon, Jul 7, 2014 at 2:15 PM, Robert James srobertja...@gmail.com
  wrote:
  
How do I run Maven Shade on a standalone jar (ie with no sources to
build from)? Please realize that I'm a beginner to Maven.
   
On 7/7/14, james northrup northrup.ja...@gmail.com wrote:
 hi shade can possibly juxtapose jar deps diffrently from one build
  to the
 next in my experience. if you think you are having collisions you
  should
 probably do 2 things

 1) use exclude on the older jar from the older dependency to
  avoid
the
 collision
 2) see if proguard fixes what shade breaks, if shade stays broken
  after
#1.
  it's pretty intense


 On Mon, Jul 7, 2014 at 12:21 PM, Robert James 
  srobertja...@gmail.com
 wrote:

 I have a jar that I need to shade - that is, change the name of
 many
 of the internal classes (to avoid conflicts with another jar)
 except
 for a few classes which remain exposed.  The jar is already built,
 source is not at hand.  How can I use maven shade to shade that
 jar?

 (Disclaimer: I'm a maven neophyte)


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




 --
 Jim Northrup  *  (408) 837-2270 *

   
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org
   
   
  
  
   --
   Jim Northrup  *  (408) 837-2270 *
 
 



 --
 Jim Northrup  *  (408) 837-2270 *



RE: Running maven shade on a preexisting jar

2014-07-08 Thread Martin Gainty
will do 

thanks Benson

M-


 Date: Tue, 8 Jul 2014 11:49:44 -0400
 Subject: Re: Running maven shade on a preexisting jar
 From: bimargul...@gmail.com
 To: users@maven.apache.org
 
 Ignore the sales pitch and the unpacking complexity.
 
 1. Make an ordinary new project with no source code.
 
 2. List your jar as a dependency.
 
 3. Configure shade. It can be configured to operate on dependencies.
 On Jul 8, 2014 6:30 AM, james northrup northrup.ja...@gmail.com wrote:
 
  MG: sure or
  http://en.wikipedia.org/wiki/Java_Decompiler
 
 
  On Mon, Jul 7, 2014 at 4:13 PM, Martin Gainty mgai...@hotmail.com wrote:
 
  
  
From: northrup.ja...@gmail.com
Date: Mon, 7 Jul 2014 14:31:31 -0700
Subject: Re: Running maven shade on a preexisting jar
To: users@maven.apache.org
   
shade is a uber jar plugin.  there are 3 uber jar plugins that matter,
shade, maven-assembly, and proguard.
   
for beginners:
all of them work more or less by merging a project into a  single new
  jar
just reading the pom dependencies.
   
maven assembly does the least work.  good for quick jobs
   
shade-plugin sometimes does a good job but imho if it works once you
  are
buying into a false sense of security and will be bitten as you grow a
project.
   
proguard is industrial strength and imho returns the best result for
investing in rtfm.
   
all of the above have a special configs to do parts and pieces.  a
beginner's mistake would be to pursue that course of action.  don't.
make
a simple uber-jar project with one output jar combined from all of the
input jars, and learn how to exclude collisions.
   
if you have  some proprietary jar with no source spend some time with
  jad
to make source and refactor your packages to do the above, simple
uber-jar
   MGJames i had some difficulty locating Java Decompiler (JAD) ..can i
   assume this is JAD repository we should reference?
   MGhttp://varaneckas.com/jad/
   
   
On Mon, Jul 7, 2014 at 2:15 PM, Robert James srobertja...@gmail.com
   wrote:
   
 How do I run Maven Shade on a standalone jar (ie with no sources to
 build from)? Please realize that I'm a beginner to Maven.

 On 7/7/14, james northrup northrup.ja...@gmail.com wrote:
  hi shade can possibly juxtapose jar deps diffrently from one build
   to the
  next in my experience. if you think you are having collisions you
   should
  probably do 2 things
 
  1) use exclude on the older jar from the older dependency to
   avoid
 the
  collision
  2) see if proguard fixes what shade breaks, if shade stays broken
   after
 #1.
   it's pretty intense
 
 
  On Mon, Jul 7, 2014 at 12:21 PM, Robert James 
   srobertja...@gmail.com
  wrote:
 
  I have a jar that I need to shade - that is, change the name of
  many
  of the internal classes (to avoid conflicts with another jar)
  except
  for a few classes which remain exposed.  The jar is already built,
  source is not at hand.  How can I use maven shade to shade that
  jar?
 
  (Disclaimer: I'm a maven neophyte)
 
 
   -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 
  --
  Jim Northrup  *  (408) 837-2270 *
 

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


   
   
--
Jim Northrup  *  (408) 837-2270 *
  
  
 
 
 
  --
  Jim Northrup  *  (408) 837-2270 *
 
  

Running maven shade on a preexisting jar

2014-07-07 Thread Robert James
I have a jar that I need to shade - that is, change the name of many
of the internal classes (to avoid conflicts with another jar) except
for a few classes which remain exposed.  The jar is already built,
source is not at hand.  How can I use maven shade to shade that jar?

(Disclaimer: I'm a maven neophyte)

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



Re: Running maven shade on a preexisting jar

2014-07-07 Thread james northrup
hi shade can possibly juxtapose jar deps diffrently from one build to the
next in my experience. if you think you are having collisions you should
probably do 2 things

1) use exclude on the older jar from the older dependency to avoid the
collision
2) see if proguard fixes what shade breaks, if shade stays broken after #1.
 it's pretty intense


On Mon, Jul 7, 2014 at 12:21 PM, Robert James srobertja...@gmail.com
wrote:

 I have a jar that I need to shade - that is, change the name of many
 of the internal classes (to avoid conflicts with another jar) except
 for a few classes which remain exposed.  The jar is already built,
 source is not at hand.  How can I use maven shade to shade that jar?

 (Disclaimer: I'm a maven neophyte)

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




-- 
Jim Northrup  *  (408) 837-2270 *


Re: Running maven shade on a preexisting jar

2014-07-07 Thread Robert James
How do I run Maven Shade on a standalone jar (ie with no sources to
build from)? Please realize that I'm a beginner to Maven.

On 7/7/14, james northrup northrup.ja...@gmail.com wrote:
 hi shade can possibly juxtapose jar deps diffrently from one build to the
 next in my experience. if you think you are having collisions you should
 probably do 2 things

 1) use exclude on the older jar from the older dependency to avoid the
 collision
 2) see if proguard fixes what shade breaks, if shade stays broken after #1.
  it's pretty intense


 On Mon, Jul 7, 2014 at 12:21 PM, Robert James srobertja...@gmail.com
 wrote:

 I have a jar that I need to shade - that is, change the name of many
 of the internal classes (to avoid conflicts with another jar) except
 for a few classes which remain exposed.  The jar is already built,
 source is not at hand.  How can I use maven shade to shade that jar?

 (Disclaimer: I'm a maven neophyte)

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




 --
 Jim Northrup  *  (408) 837-2270 *


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



Re: Running maven shade on a preexisting jar

2014-07-07 Thread Dan Tran
this is just guess

1. create  jar project with no source

2. hook up maven-dependency-plugin to unpack your jar into target/classes

3. hook up maven-shade-plugin to massage your target/classes


Good luck

-D



On Mon, Jul 7, 2014 at 2:15 PM, Robert James srobertja...@gmail.com wrote:

 How do I run Maven Shade on a standalone jar (ie with no sources to
 build from)? Please realize that I'm a beginner to Maven.

 On 7/7/14, james northrup northrup.ja...@gmail.com wrote:
  hi shade can possibly juxtapose jar deps diffrently from one build to the
  next in my experience. if you think you are having collisions you should
  probably do 2 things
 
  1) use exclude on the older jar from the older dependency to avoid
 the
  collision
  2) see if proguard fixes what shade breaks, if shade stays broken after
 #1.
   it's pretty intense
 
 
  On Mon, Jul 7, 2014 at 12:21 PM, Robert James srobertja...@gmail.com
  wrote:
 
  I have a jar that I need to shade - that is, change the name of many
  of the internal classes (to avoid conflicts with another jar) except
  for a few classes which remain exposed.  The jar is already built,
  source is not at hand.  How can I use maven shade to shade that jar?
 
  (Disclaimer: I'm a maven neophyte)
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 
  --
  Jim Northrup  *  (408) 837-2270 *
 

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




Re: Running maven shade on a preexisting jar

2014-07-07 Thread james northrup
shade is a uber jar plugin.  there are 3 uber jar plugins that matter,
shade, maven-assembly, and proguard.

for beginners:
all of them work more or less by merging a project into a  single new jar
just reading the pom dependencies.

maven assembly does the least work.  good for quick jobs

shade-plugin sometimes does a good job but imho if it works once you are
buying into a false sense of security and will be bitten as you grow a
project.

proguard is industrial strength and imho returns the best result for
investing in rtfm.

all of the above have a special configs to do parts and pieces.  a
beginner's mistake would be to pursue that course of action.  don't.  make
a simple uber-jar project with one output jar combined from all of the
input jars, and learn how to exclude collisions.

if you have  some proprietary jar with no source spend some time with jad
to make source and refactor your packages to do the above, simple
uber-jar


On Mon, Jul 7, 2014 at 2:15 PM, Robert James srobertja...@gmail.com wrote:

 How do I run Maven Shade on a standalone jar (ie with no sources to
 build from)? Please realize that I'm a beginner to Maven.

 On 7/7/14, james northrup northrup.ja...@gmail.com wrote:
  hi shade can possibly juxtapose jar deps diffrently from one build to the
  next in my experience. if you think you are having collisions you should
  probably do 2 things
 
  1) use exclude on the older jar from the older dependency to avoid
 the
  collision
  2) see if proguard fixes what shade breaks, if shade stays broken after
 #1.
   it's pretty intense
 
 
  On Mon, Jul 7, 2014 at 12:21 PM, Robert James srobertja...@gmail.com
  wrote:
 
  I have a jar that I need to shade - that is, change the name of many
  of the internal classes (to avoid conflicts with another jar) except
  for a few classes which remain exposed.  The jar is already built,
  source is not at hand.  How can I use maven shade to shade that jar?
 
  (Disclaimer: I'm a maven neophyte)
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 
  --
  Jim Northrup  *  (408) 837-2270 *
 

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




-- 
Jim Northrup  *  (408) 837-2270 *


RE: Running maven shade on a preexisting jar

2014-07-07 Thread Martin Gainty


 From: northrup.ja...@gmail.com
 Date: Mon, 7 Jul 2014 14:31:31 -0700
 Subject: Re: Running maven shade on a preexisting jar
 To: users@maven.apache.org
 
 shade is a uber jar plugin.  there are 3 uber jar plugins that matter,
 shade, maven-assembly, and proguard.
 
 for beginners:
 all of them work more or less by merging a project into a  single new jar
 just reading the pom dependencies.
 
 maven assembly does the least work.  good for quick jobs
 
 shade-plugin sometimes does a good job but imho if it works once you are
 buying into a false sense of security and will be bitten as you grow a
 project.
 
 proguard is industrial strength and imho returns the best result for
 investing in rtfm.
 
 all of the above have a special configs to do parts and pieces.  a
 beginner's mistake would be to pursue that course of action.  don't.  make
 a simple uber-jar project with one output jar combined from all of the
 input jars, and learn how to exclude collisions.
 
 if you have  some proprietary jar with no source spend some time with jad
 to make source and refactor your packages to do the above, simple
 uber-jar
MGJames i had some difficulty locating Java Decompiler (JAD) ..can i assume 
this is JAD repository we should reference?
MGhttp://varaneckas.com/jad/
 
 
 On Mon, Jul 7, 2014 at 2:15 PM, Robert James srobertja...@gmail.com wrote:
 
  How do I run Maven Shade on a standalone jar (ie with no sources to
  build from)? Please realize that I'm a beginner to Maven.
 
  On 7/7/14, james northrup northrup.ja...@gmail.com wrote:
   hi shade can possibly juxtapose jar deps diffrently from one build to the
   next in my experience. if you think you are having collisions you should
   probably do 2 things
  
   1) use exclude on the older jar from the older dependency to avoid
  the
   collision
   2) see if proguard fixes what shade breaks, if shade stays broken after
  #1.
it's pretty intense
  
  
   On Mon, Jul 7, 2014 at 12:21 PM, Robert James srobertja...@gmail.com
   wrote:
  
   I have a jar that I need to shade - that is, change the name of many
   of the internal classes (to avoid conflicts with another jar) except
   for a few classes which remain exposed.  The jar is already built,
   source is not at hand.  How can I use maven shade to shade that jar?
  
   (Disclaimer: I'm a maven neophyte)
  
   -
   To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
   For additional commands, e-mail: users-h...@maven.apache.org
  
  
  
  
   --
   Jim Northrup  *  (408) 837-2270 *
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 
 -- 
 Jim Northrup  *  (408) 837-2270 *
  

Re: Running maven shade on a preexisting jar

2014-07-07 Thread james northrup
MG: sure or
http://en.wikipedia.org/wiki/Java_Decompiler


On Mon, Jul 7, 2014 at 4:13 PM, Martin Gainty mgai...@hotmail.com wrote:



  From: northrup.ja...@gmail.com
  Date: Mon, 7 Jul 2014 14:31:31 -0700
  Subject: Re: Running maven shade on a preexisting jar
  To: users@maven.apache.org
 
  shade is a uber jar plugin.  there are 3 uber jar plugins that matter,
  shade, maven-assembly, and proguard.
 
  for beginners:
  all of them work more or less by merging a project into a  single new jar
  just reading the pom dependencies.
 
  maven assembly does the least work.  good for quick jobs
 
  shade-plugin sometimes does a good job but imho if it works once you are
  buying into a false sense of security and will be bitten as you grow a
  project.
 
  proguard is industrial strength and imho returns the best result for
  investing in rtfm.
 
  all of the above have a special configs to do parts and pieces.  a
  beginner's mistake would be to pursue that course of action.  don't.
  make
  a simple uber-jar project with one output jar combined from all of the
  input jars, and learn how to exclude collisions.
 
  if you have  some proprietary jar with no source spend some time with jad
  to make source and refactor your packages to do the above, simple
  uber-jar
 MGJames i had some difficulty locating Java Decompiler (JAD) ..can i
 assume this is JAD repository we should reference?
 MGhttp://varaneckas.com/jad/
 
 
  On Mon, Jul 7, 2014 at 2:15 PM, Robert James srobertja...@gmail.com
 wrote:
 
   How do I run Maven Shade on a standalone jar (ie with no sources to
   build from)? Please realize that I'm a beginner to Maven.
  
   On 7/7/14, james northrup northrup.ja...@gmail.com wrote:
hi shade can possibly juxtapose jar deps diffrently from one build
 to the
next in my experience. if you think you are having collisions you
 should
probably do 2 things
   
1) use exclude on the older jar from the older dependency to
 avoid
   the
collision
2) see if proguard fixes what shade breaks, if shade stays broken
 after
   #1.
 it's pretty intense
   
   
On Mon, Jul 7, 2014 at 12:21 PM, Robert James 
 srobertja...@gmail.com
wrote:
   
I have a jar that I need to shade - that is, change the name of many
of the internal classes (to avoid conflicts with another jar) except
for a few classes which remain exposed.  The jar is already built,
source is not at hand.  How can I use maven shade to shade that jar?
   
(Disclaimer: I'm a maven neophyte)
   
   
 -
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org
   
   
   
   
--
Jim Northrup  *  (408) 837-2270 *
   
  
   -
   To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
   For additional commands, e-mail: users-h...@maven.apache.org
  
  
 
 
  --
  Jim Northrup  *  (408) 837-2270 *





-- 
Jim Northrup  *  (408) 837-2270 *


AW: serviced running maven running java based services

2014-06-16 Thread Hohl, Gerrit
Hello Jim,

we are using the Tanuki Wrapper:
http://wrapper.tanukisoftware.com/

But there are other options as well. E.g. simply adding the Java calls to 
service script itself (haven't test it myself):
http://stackoverflow.com/questions/11203483/run-a-java-application-as-a-service-on-linux

Here is the Tomcat way of a service (also haven't tested that):
http://commons.apache.org/proper/commons-daemon/

Is there a difference between a normal Java application and an application 
which was build using Maven?


Regards,
Gerrit
-Ursprüngliche Nachricht-
Von: james northrup [mailto:northrup.ja...@gmail.com] 
Gesendet: Freitag, 13. Juni 2014 22:49
An: Maven Users List
Betreff: serviced running maven running java based services

does anyone have a ubuntu/arch/debian serviced file or how-to that is specific 
to getting a maven based java app deployed and running from boot?



--
Jim Northrup


serviced running maven running java based services

2014-06-13 Thread james northrup
does anyone have a ubuntu/arch/debian serviced file or how-to that is
specific to getting a maven based java app deployed and running from boot?



-- 
Jim Northrup


Re: problem in installing/running maven

2012-07-18 Thread rahul bhalla
I also noticed that when issue give command

C:\Users\sahil%JAVA_HOME%
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
but i set JAVA_HOME to C:\Program Files\Java\jdk1.6.0_21

that means it is not displaying full java_Home Path

On Thu, Jul 19, 2012 at 12:08 AM, rahul bhalla urcoolfrien...@gmail.comwrote:

 when issue the command it gives
 C:\Users\sahil%M2_HOME%
 'D:\springsource\apache-maven-3.0.3' is not recognized as an internal or
 external
 operable program or batch file.




-- 
Regards
Rahul Bhalla
(9953225211)


RE: problem in installing/running maven

2012-07-18 Thread Matt Walsh
Wow! Rahul! You need to learn to crawl before you can learn to walk. 

This is not a Maven problem. You need to go to your manager or to a
co-worker or to your cool friend with the following questions:

1. How do I run commands from a command prompt in Windows?
2. What's the difference between an environment variable and a command
or an executable program?
3. What's the PATH environment variable for and how does it relate to my
being able to run a program in Windows?

That's just for a start.

I'm not trying to put you down, we've all been there at one time, but
you're going to have a lot of grief trying to learn any tool like Maven
without improving your computer literacy first.

And you'll start to irritate the folks on this list if you keep coming
at them with these types of questions.

Matt



 -Original Message-
 From: rahul bhalla [mailto:urcoolfrien...@gmail.com]
 Sent: Wednesday, July 18, 2012 1:00 PM
 To: Maven Users List
 Subject: Re: problem in installing/running maven
 
 I also noticed that when issue give command
 
 C:\Users\sahil%JAVA_HOME%
 'C:\Program' is not recognized as an internal or external command,
 operable program or batch file.
 but i set JAVA_HOME to C:\Program Files\Java\jdk1.6.0_21
 
 that means it is not displaying full java_Home Path
 
 On Thu, Jul 19, 2012 at 12:08 AM, rahul bhalla
 urcoolfrien...@gmail.comwrote:
 
  when issue the command it gives
  C:\Users\sahil%M2_HOME%
  'D:\springsource\apache-maven-3.0.3' is not recognized as an
internal
 or
  external
  operable program or batch file.
 
 
 
 
 --
 Regards
 Rahul Bhalla
 (9953225211)

__
This message, including any attachments, is confidential and contains 
information intended only for the person(s) named above. Any other 
distribution, copying or disclosure is strictly prohibited. If you are not the 
intended recipient or have received this message in error, please notify us 
immediately by reply email and permanently delete the original transmission 
from all of your systems and hard drives, including any attachments, without 
making a copy.

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



problem in installing/running maven

2012-07-17 Thread rahul bhalla
hi
I new to maven project and first time i to runand install maven
I followed the following steps which instruct by apache maven

   1. Add the M2_HOME environment variable by opening up the system
   properties (WinKey + Pause), selecting the Advanced tab, and the
   Environment Variables button, then adding the M2_HOME variable in the
   user variables with the value *C:\Program Files\apache-maven-3.0.4*
   2. In the same dialog, add the M2 environment variable in the user
   variables with the value %M2_HOME%\bin.
   3. In the same dialog, update/create the Path environment variable in
   the user variables and prepend the value %M2% to add Maven available in
   the command line.
   4. In the same dialog, make JAVA_HOME in user variables  with the
value C:\Program
   Files\Java\jdk1.6.0_21 and that %JAVA_HOME%\bin is in your Path environment
   variable.
   5. Open a *new* command prompt (Winkey + R then type cmd) and run mvn
   --version to verify that it is correctly installed.

*C:\Users\sahilmvn --version*
'mvn' is not recognized as an internal or external command,
operable program or batch file

if the directory is changes to* C:\Program Files\apache-maven-3.0.4\bin*
then it runs .

now please tell me what is problem when i try to issue a command  from *
C:\Users\sahil* directory
-- 
Regards
Rahul Bhalla
(9953225211)


Re: problem in installing/running maven

2012-07-17 Thread Wayne Fay
 *C:\Users\sahilmvn --version*
 'mvn' is not recognized as an internal or external command,
 operable program or batch file

 if the directory is changes to* C:\Program Files\apache-maven-3.0.4\bin*
 then it runs .

Please do not install Maven (or really anything) under Program Files,
or any other directory with a space in it. Spaces in directory names
can and will make your life more difficult.

Make a c:\dev or c:\code or c:\projects, really anything, and install
there. Then try to follow the instructions again and see if it works.

Wayne

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



Re: problem in installing/running maven

2012-07-17 Thread Dennis Lundberg
Hi

Please run the command SET in a command window and paste the relevant
parts here, i.e. M2_HOME, M2, JAVA_HOME and PATH.

On 2012-07-17 22:01, rahul bhalla wrote:
 hi
 I new to maven project and first time i to runand install maven
 I followed the following steps which instruct by apache maven
 
1. Add the M2_HOME environment variable by opening up the system
properties (WinKey + Pause), selecting the Advanced tab, and the
Environment Variables button, then adding the M2_HOME variable in the
user variables with the value *C:\Program Files\apache-maven-3.0.4*
2. In the same dialog, add the M2 environment variable in the user
variables with the value %M2_HOME%\bin.
3. In the same dialog, update/create the Path environment variable in
the user variables and prepend the value %M2% to add Maven available in
the command line.
4. In the same dialog, make JAVA_HOME in user variables  with the
 value C:\Program
Files\Java\jdk1.6.0_21 and that %JAVA_HOME%\bin is in your Path environment
variable.
5. Open a *new* command prompt (Winkey + R then type cmd) and run mvn
--version to verify that it is correctly installed.
 
 *C:\Users\sahilmvn --version*
 'mvn' is not recognized as an internal or external command,
 operable program or batch file
 
 if the directory is changes to* C:\Program Files\apache-maven-3.0.4\bin*
 then it runs .
 
 now please tell me what is problem when i try to issue a command  from *
 C:\Users\sahil* directory
 


-- 
Dennis Lundberg



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



Problem with running Maven project

2012-04-10 Thread gchoi
I try to get this
tutorial(http://www.jroller.com/gmazza/entry/web_service_tutorial) run, but
build is failing. I am not familair with Maven(just started to use it) to
fix this issue. So, if someone could help me out that would be great. I am
using NetBean(7.1.1) Maven plugin. I removed cache for maven and run mvn
clean install tomcat:deploy on the command line, but I am still getting
following errors.


[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 1:13.251s
[INFO] Finished at: Tue Apr 10 15:21:38 EDT 2012
[INFO] Final Memory: 3M/15M
[INFO]

[ERROR] Failed to execute goal on project service-war: Could not resolve
dependencies for project
org.gmazza.blog.basic-doubleit:service-war:war:1.0-SNAPSHOT: Could not find
artifact org.gmazza.blog.basic-doubleit:service-bundle:jar:1.0-SNAPSHOT - [
Help 1]
[ERROR]

And here is pom.xml file for service-bundle.


project xmlns=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;

   modelVersion4.0.0/modelVersion
   parent
  groupIdorg.gmazza.blog.basic-doubleit/groupId
  artifactIdbasic-doubleit/artifactId
  version1.0-SNAPSHOT/version
   /parent
   artifactIdservice-bundle/artifactId
   nameWeb Service Provider/name
   packagingjar/packaging
   urlhttp://maven.apache.org/url

   build
  plugins
 
 plugin
artifactIdmaven-assembly-plugin/artifactId
version2.2.1/version
configuration
   descriptors
  descriptorsrc/assembly/jaxws-jar.xml/descriptor
   /descriptors
   appendAssemblyIdtrue/appendAssemblyId
   attachtrue/attach
/configuration
executions
   execution
  idmake-assembly/id
  phasepackage/phase
  goals
 goalsingle/goal
  /goals
   /execution
/executions
 /plugin
  /plugins
  pluginManagement
  plugins
 plugin
   groupIdorg.apache.felix/groupId
   artifactIdmaven-bundle-plugin/artifactId
   version2.3.5/version
   extensionstrue/extensions
/plugin
 /plugins
  /pluginManagement
  
  finalNamedoubleit/finalName
   /build

   profiles
  profile
 idMetro/id
 activation
activeByDefaulttrue/activeByDefault
 /activation   
 build
plugins
   plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdjaxws-maven-plugin/artifactId
  version1.12/version
  executions
 execution
goals
   goalwsimport/goal
/goals
configuration
   wsdlDirectory
  src/main/resources
   /wsdlDirectory
   wsdlFiles
  wsdlFileDoubleIt.wsdl/wsdlFile
   /wsdlFiles
   sourceDestDir
  ${basedir}/target/generated-sources
   /sourceDestDir
/configuration
 /execution
  /executions
   /plugin
/plugins
 /build

  /profile
   /profiles
/project

--
View this message in context: 
http://maven.40175.n5.nabble.com/Problem-with-running-Maven-project-tp5630928p5630928.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Problem with running Maven project

2012-04-10 Thread gchoi
After I switch M2 path from NetBeans maven plugin to regular Maven
installation path, it worked. Thanks.

--
View this message in context: 
http://maven.40175.n5.nabble.com/Problem-with-running-Maven-project-tp5630928p5631081.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Error running Maven

2012-04-08 Thread nanosoft
Thanks Wayne, It now works.



--
View this message in context: 
http://maven.40175.n5.nabble.com/Error-running-Maven-tp5622633p5625692.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Error running Maven

2012-04-06 Thread nanosoft
I have installed maven in C:\apache-maven-3.0.4-bin. Its installed
successfully as mvn --version gives expected o/p.

I have wifi internet connection for which I have changed proxy settings in
conf/settings.xml to following:

 proxies
 
proxy
  idoptional/id
  activetrue/active
  protocolhttp/protocol
  usernamesanp/username
  passwordpwd/password
  host/host
  port80/port
  nonProxyHostslocalhost/nonProxyHosts
/proxy

  /proxies



Here sanp is the name of wifi connection I connect and pwd is the
password.
In IE under tools-internet options-connections-lan settings  no proxy
address is defined so i have left host tag empty. Other parts of
settings.xml is untouched.

when I execute below command I get error :

*C:\Maven Workspacesmvn archetype:generate -DgroupId=com.mycompany.app
-Dartifac
tId=my-app -DarchetypeArtifactId=maven-archetype-quickstart
-DinteractiveMode=fa
lse -eX*


[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 1.676s
[INFO] Finished at: Fri Apr 06 17:04:53 IST 2012
[INFO] Final Memory: 3M/245M
[INFO]

[ERROR] The goal you specified requires a project to execute but there is no
POM
 in this directory (C:\Maven Workspaces). Please verify you invoked Maven
from t
he correct directory. - [Help 1]
org.apache.maven.lifecycle.MissingProjectException: The goal you specified
requi
res a project to execute but there is no POM in this directory (C:\Maven
Workspa
ces). Please verify you invoked Maven from the correct directory.
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:89)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MissingProject
Exception
C:\Maven Workspaces

Please help what should i do?

--
View this message in context: 
http://maven.40175.n5.nabble.com/Error-running-Maven-tp5622633p5622633.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Error running Maven

2012-04-06 Thread Guillaume Polet
Wheter you are connected through a WIFI connection or a wired connection 
should not make a difference.


Poxy settings should be set if you need to go through a proxy server to 
access internet. Otherwise don't put anything in it.


I believe you are confusing a proxy server with a wifi access point 
which are two very different things.


Cheers,
Guillaume
Le 6/04/2012 14:18, nanosoft a écrit :

I have installed maven in C:\apache-maven-3.0.4-bin. Its installed
successfully as mvn --version gives expected o/p.

I have wifi internet connection for which I have changed proxy settings in
conf/settings.xml to following:

  proxies

 proxy
   idoptional/id
   activetrue/active
   protocolhttp/protocol
   usernamesanp/username
   passwordpwd/password
   host/host
   port80/port
   nonProxyHostslocalhost/nonProxyHosts
 /proxy

   /proxies



Here sanp is the name of wifi connection I connect and pwd is the
password.
In IE under tools-internet options-connections-lan settings  no proxy
address is defined so i have lefthost  tag empty. Other parts of
settings.xml is untouched.

when I execute below command I get error :

*C:\Maven Workspacesmvn archetype:generate -DgroupId=com.mycompany.app
-Dartifac
tId=my-app -DarchetypeArtifactId=maven-archetype-quickstart
-DinteractiveMode=fa
lse -eX*


[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 1.676s
[INFO] Finished at: Fri Apr 06 17:04:53 IST 2012
[INFO] Final Memory: 3M/245M
[INFO]

[ERROR] The goal you specified requires a project to execute but there is no
POM
  in this directory (C:\Maven Workspaces). Please verify you invoked Maven
from t
he correct directory. -  [Help 1]
org.apache.maven.lifecycle.MissingProjectException: The goal you specified
requi
res a project to execute but there is no POM in this directory (C:\Maven
Workspa
ces). Please verify you invoked Maven from the correct directory.
 at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:89)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
 at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
 at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
 at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MissingProject
Exception
C:\Maven Workspaces

Please help what should i do?

--
View this message in context: 
http://maven.40175.n5.nabble.com/Error-running-Maven-tp5622633p5622633.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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




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



Re: Error running Maven

2012-04-06 Thread nanosoft
So I commented the proxy settings, still i am getting the same error.

Do I need to put any repository settings in settings.xml or it will connect
automatically to some default repository. I am just trying to execute the
first command to build the project directory structure still its failing.
Please help what else I need to do?

--
View this message in context: 
http://maven.40175.n5.nabble.com/Error-running-Maven-tp5622633p5622651.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Error running Maven

2012-04-06 Thread Wayne Fay
 I have wifi internet connection for which I have changed proxy settings in
 conf/settings.xml to following:

Where did you get the idea this was necessary? It is possible some
documentation is not sufficiently clear and should be improved. You
only need to configure the proxy when you actually have a proxy
between yourself and the Internet.

 *C:\Maven Workspacesmvn archetype:generate -DgroupId=com.mycompany.app
 -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart
 -DinteractiveMode=false -eX*

Try just mvn archetype:generate and pick the quickstart from the
list provided, then supply the groupId and artifactId etc. OR you need
to provide other details on the command line:
-DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-quickstart
-DarchetypeVersion=1.0
-DgroupId=com.company
-DartifactId=project
-Dversion=1.0
-Dpackage=1.5

Again, I have to ask, where did you get the idea that you could run
archetype:generate without all of the required parameters? There may
be some bad documentation that needs updating.

 org.apache.maven.lifecycle.MissingProjectException: The goal you specified
 requi
 res a project to execute but there is no POM in this directory (C:\Maven
 Workspa
 ces). Please verify you invoked Maven from the correct directory.

This is an odd error to receive from trying to run archetype:generate.

Wayne

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



Re: overhead in running maven jetty:run

2011-09-12 Thread Nick Klauer
I know that is how I work with most of my web  apps.  Unless you need
something very specific to the app container that you are working with, I
wouldn't think there are much better solutions out there, glassfish/grizzly,
jboss etc.
On Aug 11, 2011 11:54 AM, Tommy Chheng tommy.chh...@gmail.com wrote:
 Is there much of an overhead of running a servlet via mvn jetty:run vs an
 embedded jetty Main class in a production environment?

 Any other concerns?

 I typically stick a war into a jetty web-apps directory but i find it
easier
 to run mvn jetty:run. Was curious if there's any negative to running it
 under maven.

 --
 @tommychheng
 http://tommy.chheng.com


overhead in running maven jetty:run

2011-08-11 Thread Tommy Chheng
Is there much of an overhead of running a servlet via mvn jetty:run vs an
embedded jetty Main class in a production environment?

Any other concerns?

I typically stick a war into a jetty web-apps directory but i find it easier
to run mvn jetty:run. Was curious if there's any negative to running it
under maven.

-- 
@tommychheng
http://tommy.chheng.com


Error running Maven Tests with powermock and junit

2011-07-15 Thread Chiara
Hi,
I am not being able to run Powermock through maven. 
I've an ejb 2.0 project and i've put under test folder my test's classes.

Here's the test:

*@RunWith(PowerMockRunner.class)
public class AdapterTest{

@Test
public void testForSqlDate() {
   ..*

I haven't configured anyting special for running my test. My pom references
the following deps:

   
 *   * junit | junit | 4.8.2
* org.easymock |easymock |3.0
* org.powermock | powermock-easymock-release-full |1.4.7*


This part of pom is like this : 

*...
   dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version4.8.2/version
typejar/type
scopetest/scope
/dependency
dependency
groupIdorg.easymock/groupId
artifactIdeasymock/artifactId
version3.0/version
typejar/type
scopetest/scope
/dependency
dependency
groupIdorg.powermock/groupId
artifactIdpowermock-easymock-release-full/artifactId
version1.4.7/version
typejar/type
classifierfull/classifier
scopetest/scope
/dependency
...*

When i run Maven Test i obtain the following error :

*---
 T E S T S
---
Running TestSuite
Running TestSuite
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.454 sec
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
*


why it doesn't recognise my tests??

Pls help me, i'm new in maven..

Thk's a lot

Chiara




--
View this message in context: 
http://maven.40175.n5.nabble.com/Error-running-Maven-Tests-with-powermock-and-junit-tp4590688p4590688.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Error running Maven Tests with powermock and junit

2011-07-15 Thread Greg Akins
On Fri, Jul 15, 2011 at 9:35 AM, Chiara chiara_sime...@hotmail.it wrote:
 Hi,
 I am not being able to run Powermock through maven.
 I've an ejb 2.0 project and i've put under test folder my test's classes.

Everything looked ok to me.  But to make sure.. Did you put the tests
in project root/src/test/java ?

-- 
Greg Akins
http://twitter.com/akinsgre

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



RE: Error running Maven Tests with powermock and junit

2011-07-15 Thread Chiara

Hi, yes i've put all test under this folder.
I don't know what to do seriously.. 'cause if i try to run test using run as 
junit tests it works..

Date: Fri, 15 Jul 2011 06:42:28 -0700
From: ml-node+4590720-191037357-230...@n5.nabble.com
To: chiara_sime...@hotmail.it
Subject: Re: Error running Maven Tests with powermock and junit



On Fri, Jul 15, 2011 at 9:35 AM, Chiara [hidden email] wrote:

 Hi,

 I am not being able to run Powermock through maven.

 I've an ejb 2.0 project and i've put under test folder my test's classes.


Everything looked ok to me.  But to make sure.. Did you put the tests

in project root/src/test/java ?


-- 

Greg Akins

http://twitter.com/akinsgre

-

To unsubscribe, e-mail: [hidden email]

For additional commands, e-mail: [hidden email]










If you reply to this email, your message will be added to the 
discussion below:

http://maven.40175.n5.nabble.com/Error-running-Maven-Tests-with-powermock-and-junit-tp4590673p4590720.html



To unsubscribe from Error running Maven Tests with powermock 
and junit, click here.
  

--
View this message in context: 
http://maven.40175.n5.nabble.com/Error-running-Maven-Tests-with-powermock-and-junit-tp4590673p4590726.html
Sent from the Maven - Users mailing list archive at Nabble.com.

Re: Error running Maven Tests with powermock and junit

2011-07-15 Thread Greg Akins
On Fri, Jul 15, 2011 at 9:44 AM, Chiara chiara_sime...@hotmail.it wrote:

 Hi, yes i've put all test under this folder.
 I don't know what to do seriously.. 'cause if i try to run test using run as 
 junit tests it works..

So the only change you make.. after the JUnit tests run, is to add the
@RunWith(PowerMockRunner.class) attribute?

And then the tests are not recognized?

-- 
Greg Akins
http://twitter.com/akinsgre

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



Re: Error running Maven Tests with powermock and junit

2011-07-15 Thread Guillaume Polet

Does your class containing the tests matches the default include patterns?
 
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#includes


includes
include**/Test*.java/include
include**/*Test.java/include
include**/*TestCase.java/include
/includes

Guillaume

Le 15/07/2011 15:51, Greg Akins a écrit :

On Fri, Jul 15, 2011 at 9:44 AM, Chiarachiara_sime...@hotmail.it  wrote:

Hi, yes i've put all test under this folder.
I don't know what to do seriously.. 'cause if i try to run test using run as 
junit tests it works..

So the only change you make.. after the JUnit tests run, is to add the
@RunWith(PowerMockRunner.class) attribute?

And then the tests are not recognized?




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



Error running Maven Tests with powermock and junit

2011-07-15 Thread Chiara
Hi,
I am not being able to run Powermock through maven. 
I've an ejb 2.0 project and i've put under test folder my test's classes.

Here's the test:

*@RunWith(PowerMockRunner.class)
public class AdapterTest{

@Test
public void testForSqlDate() {
   ..*

I haven't configured anyting special for running my test. My pom references
the following deps:

   
 *   * junit | junit | 4.8.2
* org.easymock |easymock |3.0
* org.powermock | powermock-easymock-release-full |1.4.7*


This part of pom is like this : 

*...
   dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version4.8.2/version
typejar/type
scopetest/scope
/dependency
dependency
groupIdorg.easymock/groupId
artifactIdeasymock/artifactId
version3.0/version
typejar/type
scopetest/scope
/dependency
dependency
groupIdorg.powermock/groupId
artifactIdpowermock-easymock-release-full/artifactId
version1.4.7/version
typejar/type
classifierfull/classifier
scopetest/scope
/dependency
...*

When i run Maven Test i obtain the following error :

*---
 T E S T S
---
Running TestSuite
Running TestSuite
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.454 sec
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
*


why it doesn't recognise my tests??

Pls help me, i'm new in maven..

Thk's a lot

Chiara




--
View this message in context: 
http://maven.40175.n5.nabble.com/Error-running-Maven-Tests-with-powermock-and-junit-tp4590673p4590673.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



RE: Error running Maven Tests with powermock and junit

2011-07-15 Thread Chiara

Yes 'cause my test class is AdapterTest.java

I have to add some specific plugin ??

Plugin i've added to project are :

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdwas6-maven-plugin/artifactId
version1.1.2/version
executions
execution
goals
goalejbdeploy/goal
/goals
/execution
/executions
configuration
wasHome${was61.home}/wasHome
/configuration
/plugin
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-ejb-plugin/artifactId
version2.3/version
configuration
ejbVersion2.1/ejbVersion
generateClienttrue/generateClient
archive
manifest
addClasspathtrue/addClasspath
/manifest
indexfalse/index
addMavenDescriptorfalse/addMavenDescriptor
/archive
/configuration
/plugin 

thk a lot

Date: Fri, 15 Jul 2011 07:05:39 -0700
From: ml-node+4590805-1772571158-230...@n5.nabble.com
To: chiara_sime...@hotmail.it
Subject: Re: Error running Maven Tests with powermock and junit



Does your class containing the tests matches the default include 
patterns?

  

http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#includes

includes

include**/Test*.java/include

include**/*Test.java/include

include**/*TestCase.java/include

/includes


Guillaume


Le 15/07/2011 15:51, Greg Akins a écrit :

 On Fri, Jul 15, 2011 at 9:44 AM, Chiara[hidden email]  wrote:

 Hi, yes i've put all test under this folder.

 I don't know what to do seriously.. 'cause if i try to run test using run as 
 junit tests it works..

 So the only change you make.. after the JUnit tests run, is to add the

 @RunWith(PowerMockRunner.class) attribute?



 And then the tests are not recognized?





-

To unsubscribe, e-mail: [hidden email]

For additional commands, e-mail: [hidden email]










If you reply to this email, your message will be added to the 
discussion below:

http://maven.40175.n5.nabble.com/Error-running-Maven-Tests-with-powermock-and-junit-tp4590673p4590805.html



To unsubscribe from Error running Maven Tests with powermock 
and junit, click here.
  

--
View this message in context: 
http://maven.40175.n5.nabble.com/Error-running-Maven-Tests-with-powermock-and-junit-tp4590673p4590845.html
Sent from the Maven - Users mailing list archive at Nabble.com.

Re: Error running Maven Tests with powermock and junit

2011-07-15 Thread Wayne Fay
 Yes 'cause my test class is AdapterTest.java

 I have to add some specific plugin ??

Perhaps try mvn -X ... and see if you notice anything interesting in
the debug output? Otherwise maybe post the output of that command to
www.pastebin.com and send a link here (please do NOT send the full log
via email) and someone can take a look at it.

Also, if you can package up a sample project that demonstrates this
behavior consistently, that may be helpful for diagnosing the problem
and providing a fix.

Wayne

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



Re: NoClassDefFoundError when running maven-exec-plugin and Cobertura

2010-11-17 Thread PaulGee

We had the same problem. Solution was to add cobertura dependency to the
instrumented component. So, just try adding 

 dependency
  groupIdnet.sourceforge.cobertura/groupId
  artifactIdcobertura/artifactId
  version1.9.4.1/version
/dependency

to your pom and try again. Make sure cobertura version is the same as the
one used by your version of cobertura plugin (in our case it was 2.4)


-- 
View this message in context: 
http://maven.40175.n5.nabble.com/NoClassDefFoundError-when-running-maven-exec-plugin-and-Cobertura-tp103455p3268700.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Running maven from crontab

2010-08-16 Thread anilreddy76

Thanks for the reply.Will try it out.


-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Running-maven-from-crontab-tp2473497p2624694.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Running maven from crontab

2010-08-13 Thread anilreddy76

I've one shellscript excute.sh which has the maven commands like this

#!/bin/bash

mvn clean package

mvn exec:java
-Dexec.mainClass=com.eportfolio.dart.business.EPenCreateICFCDFFile

and I'm calling the above script in crontab for every 1 min like this,but
it's not executing.

*/1 * * * * /hosting/pem_rd/DART/DART_ePortfolio_Server/execute.sh 
/tmp/dart/icfcdf.log

once I just run excute.sh from command line without cron it is fine.

Could any body please advise where I'm going wrong?

Thanks,
Kumar 
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Running-maven-from-crontab-tp2473497p2473497.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Running maven from crontab

2010-08-13 Thread Refr Bruhl

Sounds like a pathing issue.

I'd make it a script and put the command in a variable
  COM=mvn exec:java
-Dexec.mainClass=\com.eportfolio.dart.business.EPenCreateICFCDFFile\ 21

Note the escape marks and the redirect of stderr

The execute it by:
RES=$( ${COM} )

echo ${RES}


That will give you an idea of what's going wrong. If you don't redirect the 
output to a file in the cron entry you should get an e-mail from the account 
with the infomation that wil ltell you what's bombing







From: anilreddy76 anilredd...@gmail.com
To: users@maven.apache.org
Sent: Thu, August 12, 2010 1:09:17 PM
Subject: Running maven from crontab


I've one shellscript excute.sh which has the maven commands like this

#!/bin/bash

mvn clean package

mvn exec:java
-Dexec.mainClass=com.eportfolio.dart.business.EPenCreateICFCDFFile

and I'm calling the above script in crontab for every 1 min like this,but
it's not executing.

*/1 * * * * /hosting/pem_rd/DART/DART_ePortfolio_Server/execute.sh 
/tmp/dart/icfcdf.log

once I just run excute.sh from command line without cron it is fine.

Could any body please advise where I'm going wrong?

Thanks,
Kumar 
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Running-maven-from-crontab-tp2473497p2473497.html

Sent from the Maven - Users mailing list archive at Nabble.com.

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


  

Re: Trouble running Maven test case

2009-10-06 Thread Siegfried Erb
Hi Dave,

could you give some detail on what the exact error is and on how you actually 
call 'test:single'?

Maven takes care of your test classpath, so to my knowledge you don't need to 
set 'maven.test.classpath' if you have everything you need declared as a 
dependency. At least I never had to.

I assume that your unit tests work without any issue when executing 'maven 
test:test' since you not explicitly mentioned it. So the problem probably is 
with the call for the 'test:single' goal.
Unlike Maven2 where you give only the name of the test class to the Surefire 
plugin when you want to execute a single unit test, for Maven1 you need to 
specify the fully qualified class name. Would look something like this:
maven test:single -Dtestcase=com.somecompany.someproduct.stuff.TestCase

Cheers,
Siegfried


Am Freitag, 2. Oktober 2009 schrieb laredotornado:
 
 Hi,
 
 I'm using Maven 1.1 with maven-test-plugin-1.8.2.jar.  When I run the
 test:single target with my test class, I get a bunch of compilation errors
 (all related to jwebunit), despite the fact I have this dependency in my
 project.xml ...
 
 dependency
 groupIdnet.sourceforge.jwebunit/groupId
 artifactIdjwebunit-htmlunit-plugin/artifactId
 version1.4/version
 /dependency
 
 I read somewhere that I'm supposed to set this property ...
 
 maven.test.classpath
 
 when using the maven test plugin.  Although I put this property and the
 associated jars in my project.properties file, I still get compilation
 errors.  Any ideas how to proceed from here? - Dave
 
 -- 
 View this message in context: http://www.nabble.com/Trouble-running-Maven-
test-case-tp25722078p25722078.html
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 



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



Re: Trouble running Maven test case

2009-10-05 Thread Lukas Theussl


Even your second mail is not specific enough to help us help you in any 
meaningful
way. You might profit from reading this:

http://catb.org/~esr/faqs/smart-questions.html

As a first guess I'd like to know if jwebunit-htmlunit-plugin is the only 
jwebunit
dependency you added in your pom? If yes it would explain (some of) the
compilation errors, eg junit.WebTestCase is in jwebunit-core, not
jwebunit-htmlunit-plugin. But that's just a guess...

HTH,
-Lukas


laredotornado wrote:

Yes, I should have been more specific.  Here's how I'm making the call ...

maven -Dtestcase=test.AddToMailingListTest test:single 


and what happens is that I'm getting a bunch of compilation errors, even
though the libraries in question are listed as a dependency in my
project.xml file (I have confirmed the jars are getting downloaded) ...

maven -Dtestcase=test.AddToMailingListTest test:single
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.1

build:start:

test:single:
java:prepare-filesystem:

java:init:

java:compile:
[echo] Compiling to
/Users/dalvarado/source/assistanceUtility/webapp/target/classes
[echo]
==

WARNING: maven.compile.target is not set:
using the default value which depends on your JVM

==


java:jar-resources:

test:prepare-filesystem:

test:test-resources:

test:compile:
[javac] Compiling 1 source file to
/Users/dalvarado/source/assistanceUtility/webapp/target/test-classes
[javac]
/Users/dalvarado/source/assistanceUtility/webapp/src/test/java/AddToMailingListTest.java:9:
package net.sourceforge.jwebunit.junit does not exist
[javac] import net.sourceforge.jwebunit.junit.WebTestCase;
[javac] ^
[javac]
/Users/dalvarado/source/assistanceUtility/webapp/src/test/java/AddToMailingListTest.java:11:
cannot find symbol
[javac] symbol: class WebTestCase
[javac] public class AddToMailingListTest extends WebTestCase {
[javac] ^
[javac]
/Users/dalvarado/source/assistanceUtility/webapp/src/test/java/AddToMailingListTest.java:28:
cannot find symbol
[javac] symbol : variable super
[javac] location: class test.AddToMailingListTest
[javac] super.setUp();
[javac] ^
[javac]
/Users/dalvarado/source/assistanceUtility/webapp/src/test/java/AddToMailingListTest.java:30:
cannot find symbol
[javac] symbol : method getTestContext()
[javac] location: class test.AddToMailingListTest
[javac]
getTestContext().setBaseUrl(http://localhost:8080/apps/oit/governor/citizen/assistanceUtility;);
[javac] ^ 


Thanks, - Dave





Neroon wrote:

Hi Dave,

could you give some detail on what the exact error is and on how you
actually 
call 'test:single'?


Maven takes care of your test classpath, so to my knowledge you don't need
to 
set 'maven.test.classpath' if you have everything you need declared as a 
dependency. At least I never had to.


I assume that your unit tests work without any issue when executing 'maven 
test:test' since you not explicitly mentioned it. So the problem probably
is 
with the call for the 'test:single' goal.

Unlike Maven2 where you give only the name of the test class to the
Surefire 
plugin when you want to execute a single unit test, for Maven1 you need to 
specify the fully qualified class name. Would look something like this:

maven test:single -Dtestcase=com.somecompany.someproduct.stuff.TestCase

Cheers,
Siegfried

Am Freitag, 2. Oktober 2009 schrieb laredotornado:

Hi,

I'm using Maven 1.1 with maven-test-plugin-1.8.2.jar.  When I run the
test:single target with my test class, I get a bunch of compilation
errors
(all related to jwebunit), despite the fact I have this dependency in my
project.xml ...

dependency
groupIdnet.sourceforge.jwebunit/groupId
artifactIdjwebunit-htmlunit-plugin/artifactId
version1.4/version
/dependency

I read somewhere that I'm supposed to set this property ...

maven.test.classpath

when using the maven test plugin.  Although I put this property and the
associated jars in my project.properties file, I still get compilation
errors.  Any ideas how to proceed from here? - Dave

--
View this message in context:
http://www.nabble.com/Trouble-running-Maven-

test-case-tp25722078p25722078.html

Sent from the Maven - Users mailing list archive at Nabble.com.


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




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








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



Re: Trouble running Maven test case

2009-10-05 Thread laredotornado
] ^ 
 
 Thanks, - Dave
 
 
 
 
 
 Neroon wrote:
 Hi Dave,

 could you give some detail on what the exact error is and on how you
 actually 
 call 'test:single'?

 Maven takes care of your test classpath, so to my knowledge you don't
 need
 to 
 set 'maven.test.classpath' if you have everything you need declared as a 
 dependency. At least I never had to.

 I assume that your unit tests work without any issue when executing
 'maven 
 test:test' since you not explicitly mentioned it. So the problem
 probably
 is 
 with the call for the 'test:single' goal.
 Unlike Maven2 where you give only the name of the test class to the
 Surefire 
 plugin when you want to execute a single unit test, for Maven1 you need
 to 
 specify the fully qualified class name. Would look something like this:
 maven test:single -Dtestcase=com.somecompany.someproduct.stuff.TestCase

 Cheers,
 Siegfried

 Am Freitag, 2. Oktober 2009 schrieb laredotornado:
 Hi,

 I'm using Maven 1.1 with maven-test-plugin-1.8.2.jar.  When I run the
 test:single target with my test class, I get a bunch of compilation
 errors
 (all related to jwebunit), despite the fact I have this dependency in
 my
 project.xml ...

 dependency
 groupIdnet.sourceforge.jwebunit/groupId
 artifactIdjwebunit-htmlunit-plugin/artifactId
 version1.4/version
 /dependency

 I read somewhere that I'm supposed to set this property ...

 maven.test.classpath

 when using the maven test plugin.  Although I put this property and the
 associated jars in my project.properties file, I still get compilation
 errors.  Any ideas how to proceed from here? - Dave

 -- 
 View this message in context:
 http://www.nabble.com/Trouble-running-Maven-
 test-case-tp25722078p25722078.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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



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



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

-- 
View this message in context: 
http://www.nabble.com/Trouble-running-Maven-test-case-tp25722078p25750887.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Trouble running Maven test case

2009-10-05 Thread Lukas Theussl
:8080/apps/oit/governor/citizen/assistanceUtility;);
[javac] ^ 


Thanks, - Dave





Neroon wrote:

Hi Dave,

could you give some detail on what the exact error is and on how you
actually 
call 'test:single'?


Maven takes care of your test classpath, so to my knowledge you don't
need
to 
set 'maven.test.classpath' if you have everything you need declared as a 
dependency. At least I never had to.


I assume that your unit tests work without any issue when executing
'maven 
test:test' since you not explicitly mentioned it. So the problem

probably
is 
with the call for the 'test:single' goal.

Unlike Maven2 where you give only the name of the test class to the
Surefire 
plugin when you want to execute a single unit test, for Maven1 you need
to 
specify the fully qualified class name. Would look something like this:

maven test:single -Dtestcase=com.somecompany.someproduct.stuff.TestCase

Cheers,
Siegfried

Am Freitag, 2. Oktober 2009 schrieb laredotornado:

Hi,

I'm using Maven 1.1 with maven-test-plugin-1.8.2.jar.  When I run the
test:single target with my test class, I get a bunch of compilation
errors
(all related to jwebunit), despite the fact I have this dependency in
my
project.xml ...

dependency
groupIdnet.sourceforge.jwebunit/groupId
artifactIdjwebunit-htmlunit-plugin/artifactId
version1.4/version
/dependency

I read somewhere that I'm supposed to set this property ...

maven.test.classpath

when using the maven test plugin.  Although I put this property and the
associated jars in my project.properties file, I still get compilation
errors.  Any ideas how to proceed from here? - Dave

--
View this message in context:
http://www.nabble.com/Trouble-running-Maven-

test-case-tp25722078p25722078.html

Sent from the Maven - Users mailing list archive at Nabble.com.


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



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





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







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



Re: Trouble running Maven test case

2009-10-04 Thread Neroon
Hi Dave,

could you give some detail on what the exact error is and on how you actually 
call 'test:single'?

Maven takes care of your test classpath, so to my knowledge you don't need to 
set 'maven.test.classpath' if you have everything you need declared as a 
dependency. At least I never had to.

I assume that your unit tests work without any issue when executing 'maven 
test:test' since you not explicitly mentioned it. So the problem probably is 
with the call for the 'test:single' goal.
Unlike Maven2 where you give only the name of the test class to the Surefire 
plugin when you want to execute a single unit test, for Maven1 you need to 
specify the fully qualified class name. Would look something like this:
maven test:single -Dtestcase=com.somecompany.someproduct.stuff.TestCase

Cheers,
Siegfried

Am Freitag, 2. Oktober 2009 schrieb laredotornado:
 
 Hi,
 
 I'm using Maven 1.1 with maven-test-plugin-1.8.2.jar.  When I run the
 test:single target with my test class, I get a bunch of compilation errors
 (all related to jwebunit), despite the fact I have this dependency in my
 project.xml ...
 
 dependency
 groupIdnet.sourceforge.jwebunit/groupId
 artifactIdjwebunit-htmlunit-plugin/artifactId
 version1.4/version
 /dependency
 
 I read somewhere that I'm supposed to set this property ...
 
 maven.test.classpath
 
 when using the maven test plugin.  Although I put this property and the
 associated jars in my project.properties file, I still get compilation
 errors.  Any ideas how to proceed from here? - Dave
 
 -- 
 View this message in context: http://www.nabble.com/Trouble-running-Maven-
test-case-tp25722078p25722078.html
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 



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



Re: Trouble running Maven test case

2009-10-04 Thread laredotornado

Yes, I should have been more specific.  Here's how I'm making the call ...

maven -Dtestcase=test.AddToMailingListTest test:single 

and what happens is that I'm getting a bunch of compilation errors, even
though the libraries in question are listed as a dependency in my
project.xml file (I have confirmed the jars are getting downloaded) ...

maven -Dtestcase=test.AddToMailingListTest test:single
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.1

build:start:

test:single:
java:prepare-filesystem:

java:init:

java:compile:
[echo] Compiling to
/Users/dalvarado/source/assistanceUtility/webapp/target/classes
[echo]
==

WARNING: maven.compile.target is not set:
using the default value which depends on your JVM

==


java:jar-resources:

test:prepare-filesystem:

test:test-resources:

test:compile:
[javac] Compiling 1 source file to
/Users/dalvarado/source/assistanceUtility/webapp/target/test-classes
[javac]
/Users/dalvarado/source/assistanceUtility/webapp/src/test/java/AddToMailingListTest.java:9:
package net.sourceforge.jwebunit.junit does not exist
[javac] import net.sourceforge.jwebunit.junit.WebTestCase;
[javac] ^
[javac]
/Users/dalvarado/source/assistanceUtility/webapp/src/test/java/AddToMailingListTest.java:11:
cannot find symbol
[javac] symbol: class WebTestCase
[javac] public class AddToMailingListTest extends WebTestCase {
[javac] ^
[javac]
/Users/dalvarado/source/assistanceUtility/webapp/src/test/java/AddToMailingListTest.java:28:
cannot find symbol
[javac] symbol : variable super
[javac] location: class test.AddToMailingListTest
[javac] super.setUp();
[javac] ^
[javac]
/Users/dalvarado/source/assistanceUtility/webapp/src/test/java/AddToMailingListTest.java:30:
cannot find symbol
[javac] symbol : method getTestContext()
[javac] location: class test.AddToMailingListTest
[javac]
getTestContext().setBaseUrl(http://localhost:8080/apps/oit/governor/citizen/assistanceUtility;);
[javac] ^ 

Thanks, - Dave





Neroon wrote:
 
 Hi Dave,
 
 could you give some detail on what the exact error is and on how you
 actually 
 call 'test:single'?
 
 Maven takes care of your test classpath, so to my knowledge you don't need
 to 
 set 'maven.test.classpath' if you have everything you need declared as a 
 dependency. At least I never had to.
 
 I assume that your unit tests work without any issue when executing 'maven 
 test:test' since you not explicitly mentioned it. So the problem probably
 is 
 with the call for the 'test:single' goal.
 Unlike Maven2 where you give only the name of the test class to the
 Surefire 
 plugin when you want to execute a single unit test, for Maven1 you need to 
 specify the fully qualified class name. Would look something like this:
 maven test:single -Dtestcase=com.somecompany.someproduct.stuff.TestCase
 
 Cheers,
 Siegfried
 
 Am Freitag, 2. Oktober 2009 schrieb laredotornado:
 
 Hi,
 
 I'm using Maven 1.1 with maven-test-plugin-1.8.2.jar.  When I run the
 test:single target with my test class, I get a bunch of compilation
 errors
 (all related to jwebunit), despite the fact I have this dependency in my
 project.xml ...
 
 dependency
 groupIdnet.sourceforge.jwebunit/groupId
 artifactIdjwebunit-htmlunit-plugin/artifactId
 version1.4/version
 /dependency
 
 I read somewhere that I'm supposed to set this property ...
 
 maven.test.classpath
 
 when using the maven test plugin.  Although I put this property and the
 associated jars in my project.properties file, I still get compilation
 errors.  Any ideas how to proceed from here? - Dave
 
 -- 
 View this message in context:
 http://www.nabble.com/Trouble-running-Maven-
 test-case-tp25722078p25722078.html
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Trouble-running-Maven-test-case-tp25722078p25743680.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Trouble running Maven test case

2009-10-02 Thread laredotornado

Hi,

I'm using Maven 1.1 with maven-test-plugin-1.8.2.jar.  When I run the
test:single target with my test class, I get a bunch of compilation errors
(all related to jwebunit), despite the fact I have this dependency in my
project.xml ...

dependency
groupIdnet.sourceforge.jwebunit/groupId
artifactIdjwebunit-htmlunit-plugin/artifactId
version1.4/version
/dependency

I read somewhere that I'm supposed to set this property ...

maven.test.classpath

when using the maven test plugin.  Although I put this property and the
associated jars in my project.properties file, I still get compilation
errors.  Any ideas how to proceed from here? - Dave

-- 
View this message in context: 
http://www.nabble.com/Trouble-running-Maven-test-case-tp25722078p25722078.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Trouble running Maven test case

2009-10-02 Thread Stephen Connolly
Maven 1.1 is very old, and a completely different architecture than maven
2.0.  You may not get many answers

2009/10/2 laredotornado laredotorn...@gmail.com


 Hi,

 I'm using Maven 1.1 with maven-test-plugin-1.8.2.jar.  When I run the
 test:single target with my test class, I get a bunch of compilation
 errors
 (all related to jwebunit), despite the fact I have this dependency in my
 project.xml ...

dependency
groupIdnet.sourceforge.jwebunit/groupId
artifactIdjwebunit-htmlunit-plugin/artifactId
version1.4/version
/dependency

 I read somewhere that I'm supposed to set this property ...

 maven.test.classpath

 when using the maven test plugin.  Although I put this property and the
 associated jars in my project.properties file, I still get compilation
 errors.  Any ideas how to proceed from here? - Dave

 --
 View this message in context:
 http://www.nabble.com/Trouble-running-Maven-test-case-tp25722078p25722078.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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




Re: Trouble running Maven test case

2009-10-02 Thread laredotornado

Sadly, I don't have control over what version of Maven is used at this
company.  Take your best shot, - Dave



Stephen Connolly-2 wrote:
 
 Maven 1.1 is very old, and a completely different architecture than maven
 2.0.  You may not get many answers
 
 2009/10/2 laredotornado laredotorn...@gmail.com
 

 Hi,

 I'm using Maven 1.1 with maven-test-plugin-1.8.2.jar.  When I run the
 test:single target with my test class, I get a bunch of compilation
 errors
 (all related to jwebunit), despite the fact I have this dependency in my
 project.xml ...

dependency
groupIdnet.sourceforge.jwebunit/groupId
artifactIdjwebunit-htmlunit-plugin/artifactId
version1.4/version
/dependency

 I read somewhere that I'm supposed to set this property ...

 maven.test.classpath

 when using the maven test plugin.  Although I put this property and the
 associated jars in my project.properties file, I still get compilation
 errors.  Any ideas how to proceed from here? - Dave

 --
 View this message in context:
 http://www.nabble.com/Trouble-running-Maven-test-case-tp25722078p25722078.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/Trouble-running-Maven-test-case-tp25722078p25723646.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Running maven-sql-plugin standalone

2009-05-15 Thread SkeebZ

I have been messing around with the codehaus maven-sql-plugin and cannot get
the plugin to run without binding it to a phase.  
(This does not work)
execution
idcreate-schema/id
goals
goalexecute/goal
/goals
configuration

autocommittrue/autocommit
srcFiles

srcFilesrc/main/resources/schema.sql/srcFile
/srcFiles
/configuration
/execution

(this does work)
execution
idcreate-schema/id

phaseprocess-resources/phase
goals
goalexecute/goal
/goals
configuration

autocommittrue/autocommit
srcFiles

srcFilesrc/main/resources/schema.sql/srcFile
/srcFiles
/configuration
/execution

It seems when I run the mvn sql:execute command it doesn't run any of my
executions.  It still finishes successfully but it doesn't run any of them.

Any Ideas?
-- 
View this message in context: 
http://www.nabble.com/Running-maven-sql-plugin-standalone-tp23570326p23570326.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



No javadoc found when running maven eclipse

2008-12-14 Thread Ludwig Magnusson
Hi!

When I run maven eclipse maven tries to find the javadoc for all the jars
that are used. This would be very nice to have but maven doesn't find
anything. Is there a way to solve this? I am using maven 1 sine I am using
the turbine plugin. 

Btw. I would be surprised if I am the first one to come across this problem,
but I couldn't find the question anywhere in the mailing list. Is there any
better way to search the mailing list other than google?

/Ludwig



Re: No javadoc found when running maven eclipse

2008-12-14 Thread Wayne Fay
 When I run maven eclipse maven tries to find the javadoc for all the jars
 that are used. This would be very nice to have but maven doesn't find
 anything. Is there a way to solve this? I am using maven 1 sine I am using
 the turbine plugin.

Relatively few artifacts in the Central repo have sources, much less
javadocs published alongside the binary artifact itself.

Wayne

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



Re: No javadoc found when running maven eclipse

2008-12-14 Thread Baptiste MATHUS
And btw I would be interested by what you mean when you say maven Eclipse.
Because if you speak about m2eclipse, I'm not sure at all it supports maven
1...

Cheers.

2008/12/14 Wayne Fay wayne...@gmail.com

  When I run maven eclipse maven tries to find the javadoc for all the jars
  that are used. This would be very nice to have but maven doesn't find
  anything. Is there a way to solve this? I am using maven 1 sine I am
 using
  the turbine plugin.

 Relatively few artifacts in the Central repo have sources, much less
 javadocs published alongside the binary artifact itself.

 Wayne

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




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


RE: No javadoc found when running maven eclipse

2008-12-14 Thread Ludwig Magnusson
The command 
maven eclipse
according to these instructions: http://turbine.apache.org/meta/ide.html
/Ludwig

-Original Message-
From: bmat...@gmail.com [mailto:bmat...@gmail.com] On Behalf Of Baptiste
MATHUS
Sent: den 14 december 2008 22:30
To: Maven Users List
Subject: Re: No javadoc found when running maven eclipse

And btw I would be interested by what you mean when you say maven Eclipse.
Because if you speak about m2eclipse, I'm not sure at all it supports maven
1...

Cheers.

2008/12/14 Wayne Fay wayne...@gmail.com

  When I run maven eclipse maven tries to find the javadoc for all the
jars
  that are used. This would be very nice to have but maven doesn't find
  anything. Is there a way to solve this? I am using maven 1 sine I am
 using
  the turbine plugin.

 Relatively few artifacts in the Central repo have sources, much less
 javadocs published alongside the binary artifact itself.

 Wayne

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




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


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



how to redirect the system.out into test report in running maven-surefire-plugin

2008-11-12 Thread sean.chen(陈思淼)
I use use System.out.println to output infomation to the console, when I run
 mvn test,
I know the surefire can include all the system.out information,just like
this:
  system-out![CDATA[200
   Test works!
  ]CDATA]/system-out
But I don't know exactly how it woks. can anybody who is familiar with
surefire can tell me about this?


Re: running Maven Tasks through Eclipse

2008-07-03 Thread Morgovsky, Alexander (US - Glen Mills)
I posted here to get an answer to a maven question, so your response
doesn't help me solve my issue.  But since you went down on this road,
the message says:

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.

 

so this message has a special purpose which is a maven question ad is
targeted to the Maven Users Group.  I hope we can get to the business at
hand rather than doing what we have done in this thread up to now. 


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: running Maven Tasks through Eclipse

2008-07-03 Thread Jeff MAURY
Try with ${pom.version} this must be equivalent to ${project.version} but we
never know.

Jeff MAURY

On Fri, Jul 4, 2008 at 12:27 AM, Morgovsky, Alexander (US - Glen Mills) 
[EMAIL PROTECTED] wrote:

 I posted here to get an answer to a maven question, so your response
 doesn't help me solve my issue.  But since you went down on this road,
 the message says:

 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.



 so this message has a special purpose which is a maven question ad is
 targeted to the Maven Users Group.  I hope we can get to the business at
 hand rather than doing what we have done in this thread up to now.


 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]




-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.lastfm.fr/listen/user/jeffmaury/personal


running Maven Tasks through Eclipse

2008-07-02 Thread Morgovsky, Alexander (US - Glen Mills)
Hello Maven Users.  In my MOJO I have:

 

/**

*  The project version.

* @parameter name=version required=true readonly=true
expression=${project.version}

*/

private String version;

 

..

..

getLog().info(The project.basedir is +basedir.getAbsolutePath());

getLog().info(The project.artifactId +artifactId);

getLog().info(The project.version +version);

 

[INFO] The project.basedir is
E:\development\workspace\deloitte-ecm-cm-core

[INFO] The project.artifactId deloitte-ecm-cm-core

[INFO] The project.version null

 

Above, the ${project.basedir} and ${project.artifactId} resolve
correctly.  However, ${project.version} does not.  I tried setting the
type of version to Integer, but that did not work either.  Could you
please help identify how I can correct this?  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: running Maven Tasks through Eclipse

2008-07-02 Thread Lee Meador
Your email says I am prohibited from taking any action, which would include
replying I think, based on the email.

There is humor everywhere.

Thanks.

-- Lee

On Wed, Jul 2, 2008 at 11:56 AM, Morgovsky, Alexander (US - Glen Mills) 
[EMAIL PROTECTED] wrote:

 Hello Maven Users.  In my MOJO I have:



 /**

*  The project version.

* @parameter name=version required=true readonly=true
 expression=${project.version}

*/

private String version;



 ..

 ..

 getLog().info(The project.basedir is +basedir.getAbsolutePath());

 getLog().info(The project.artifactId +artifactId);

 getLog().info(The project.version +version);



 [INFO] The project.basedir is
 E:\development\workspace\deloitte-ecm-cm-core

 [INFO] The project.artifactId deloitte-ecm-cm-core

 [INFO] The project.version null



 Above, the ${project.basedir} and ${project.artifactId} resolve
 correctly.  However, ${project.version} does not.  I tried setting the
 type of version to Integer, but that did not work either.  Could you
 please help identify how I can correct this?  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]




-- 
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com


Error while running Maven.

2008-06-13 Thread Niranjan Deshpande
I got this
+ Error stacktraces are turned on.
FATAL ERROR: Unable to start the embedded plexus container
Error stacktrace:
org.codehaus.plexus.PlexusContainerException: Error starting container
at
org.codehaus.plexus.DefaultPlexusContainer.start(DefaultPlexusContainer.java:795)
at org.codehaus.plexus.embed.Embedder.start(Embedder.java:220)
at org.codehaus.plexus.embed.Embedder.start(Embedder.java:183)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:164)
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.codehaus.plexus.component.repository.exception.ComponentRepositoryException:
Componen
t descriptor role: 'org.apache.maven.project.MavenProjectBuilder',
implementation: 'org.apache.maven
.project.DefaultMavenProjectBuilder', role hint: 'default' has a hint, but
there are other implement
ations that don't
at
org.codehaus.plexus.component.repository.DefaultComponentRepository.addComponentDescripto
r(DefaultComponentRepository.java:184)
at
org.codehaus.plexus.DefaultPlexusContainer.addComponentDescriptor(DefaultPlexusContainer.
java:515)
at
org.codehaus.plexus.DefaultPlexusContainer.discoverComponents(DefaultPlexusContainer.java
:738)
at
org.codehaus.plexus.DefaultPlexusContainer.start(DefaultPlexusContainer.java:779)
... 11 more.


The MAVEN_HOME is set properly.

-- 
Regards,
Niranjan Deshpande

Shut yourself from the world and create the reality you want


Re: Running maven-compiler-plugin and maven-jaxws-plugin with different configurations in different phases

2008-05-21 Thread Jan Fredrik Wedén
Hi,

Could you not split this into two modules where your step 4 resides in
a module which dependes on another module containing the results from
1, 2 and 3? Seems like the most correct Maven-way if you are allowed
to split your codebase to accomplish this.

On Wed, May 21, 2008 at 2:48 AM, Clint Gilbert
[EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Hello everyone,

 First of all, I cannot overstate the beneficial effect that Maven has had on
 the
 development process at my organization.  To the devs: thanks for the great
 tool!

 I have a pom that specifies two executions of the compiler plugin, with
 different phases
 specified and different configs, but they're not both running.  (See pom
 excerpt below.)
 Is that expected?  Can I configure multiple executions of the compiler
 plugin with
 different configurations?  It seems like no - [1], [2], [3] - but I hope
 someone has an
 definitive answer.

 Here's some background on my problem, which I admit is fairly obscure.
 Basically, what I
 need to do is:

 1 Compile class A in package org.myorg, which is annotated with @WebService

 2 Run JAXWS's wsgen (via maven-jaxws-plugin) to make a WSDL from the
 compiled A.class

 3 Run JAXWS's wsimport (via maven-jaxws-plugin) to make client-side bindings
 from the
 just-generated WSDL

 4 Compile non-generated classes that reference the just-generated client
 bindings. These
 live in separate sub-packages - org.myorg.x, org.myorg.y, etc - and would
 have failed if
 compiled during step 1 because they reference code generated in step 3.

 I've included (what I hope are) the relevant sections of my pom below.

 PS: Do I need to do things this way?  Unfortunately, I think so.  Class
 org.myorg.A is a
 web service that needs to invoke other org.myorg.A web services arranged in
 a tree or mesh
 topology.  I've tried to break out the bindings, the SEI (A), and the
 classes that
 abstract the connection between As using the client bindings into
 submodules, but I've
 only managed to introduce circular dependencies.

 In the past, I've dealt with this sort of chicken-and-egg problem by
 generating WSDLs and
 code and then checking them into source control.  This feels bad, and makes
 updates if the
 interface of the SEI changes a hassle.  I'd much rather define a simple SEI
 annotated with
 @WebService and have the low-level stuff (WSDLs, client bindings) generated
 from that.

 [1]
 http://weblogs.java.net/blog/ss141213/archive/2007/11/my_maven_experi.html
 [2]
 http://mail-archives.apache.org/mod_mbox/maven-users/200711.mbox/[EMAIL 
 PROTECTED]
 [3]
 http://mail-archives.apache.org/mod_mbox/maven-users/200609.mbox/[EMAIL 
 PROTECTED]

 | plugin
 |   artifactIdmaven-compiler-plugin/artifactId
 |   executions
 |   execution
 |   idjaxws-pre-compilation-hack/id
 |   !-- Hack to specify order of plugin application --
 |   phaseprocess-sources/phase
 |   configuration
 |   source1.5/source
 |   target1.5/target
 |   includes
 |
 include${source.dir}/org/myorg/include
 |   /includes
 |   excludes
 |
 exclude${source.dir}/org/myorg/x/exclude
 |
 exclude${source.dir}/org/myorg/y/exclude
 |   /excludes
 |   goals
 |   goalcompile/goal
 |   /goals
 |   /configuration
 |   /execution
 |   execution
 |   idnormal-compilation/id
 |   !-- Hack to specify order of plugin application --
 |   phasecompile/phase
 |   configuration
 |   source1.5/source
 |   target1.5/target
 |   /configuration
 |   goals
 |   goalcompile/goal
 |   /goals
 |   /execution
 |   /executions
 | /plugin
 | plugin
 |   groupIdorg.codehaus.mojo/groupId
 |   artifactIdjaxws-maven-plugin/artifactId
 |   executions
 |   execution
 |   idmake-wsdl/id
 |   !-- Hack to specify order goals are run in --
 |   phasegenerate-resources/phase
 |   goals
 |   goalwsgen/goal
 |   /goals
 |   configuration
 |   seiorg.myorg.A/sei
 |   ...
 |   /configuration
 |   /execution
 |   execution
 |   idmake-client-bindings/id
 |   !-- Hack to specify order goals are run in --
 |   phaseprocess-resources/phase
 |   goals
 |   goalwsimport/goal
 |   /goals

Re: Running maven-compiler-plugin and maven-jaxws-plugin with different configurations in different phases

2008-05-21 Thread Clint Gilbert

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Jan, thank you very much for your suggestion.

That was almost the first thing I tried.  The problem is that my web service 
instances (I
call them Nodes - they're components of a distributed DB system) need to talk 
to each other.

A Node needs to be compiled to generate the client bindings, and a Node needs 
to invoke
the bindings to talk to other Nodes.  There's always a circular dependency.  I 
tried to
get around this by abstracting the process of talking to a node in order to 
hide the JAXWS
client bindings from the nodes that use them.  That let me attempt the two-pass
compilation hack, but can't get around the circular dependency.

I think I'm going to bootstrap my module by checking in the generated code and 
artifacts.

Just for reference, does anyone know for sure if you can give different configs 
for
different executions of maven-compiler-plugin?

Jan Fredrik Wedén wrote:
| Hi,
|
| Could you not split this into two modules where your step 4 resides in
| a module which dependes on another module containing the results from
| 1, 2 and 3? Seems like the most correct Maven-way if you are allowed
| to split your codebase to accomplish this.
|
| On Wed, May 21, 2008 at 2:48 AM, Clint Gilbert
| [EMAIL PROTECTED] wrote:
| Hello everyone,
|
| First of all, I cannot overstate the beneficial effect that Maven has had on
| the
| development process at my organization.  To the devs: thanks for the great
| tool!
|
| I have a pom that specifies two executions of the compiler plugin, with
| different phases
| specified and different configs, but they're not both running.  (See pom
| excerpt below.)
| Is that expected?  Can I configure multiple executions of the compiler
| plugin with
| different configurations?  It seems like no - [1], [2], [3] - but I hope
| someone has an
| definitive answer.
|
| Here's some background on my problem, which I admit is fairly obscure.
| Basically, what I
| need to do is:
|
| 1 Compile class A in package org.myorg, which is annotated with @WebService
|
| 2 Run JAXWS's wsgen (via maven-jaxws-plugin) to make a WSDL from the
| compiled A.class
|
| 3 Run JAXWS's wsimport (via maven-jaxws-plugin) to make client-side bindings
| from the
| just-generated WSDL
|
| 4 Compile non-generated classes that reference the just-generated client
| bindings. These
| live in separate sub-packages - org.myorg.x, org.myorg.y, etc - and would
| have failed if
| compiled during step 1 because they reference code generated in step 3.
|
| I've included (what I hope are) the relevant sections of my pom below.
|
| PS: Do I need to do things this way?  Unfortunately, I think so.  Class
| org.myorg.A is a
| web service that needs to invoke other org.myorg.A web services arranged in
| a tree or mesh
| topology.  I've tried to break out the bindings, the SEI (A), and the
| classes that
| abstract the connection between As using the client bindings into
| submodules, but I've
| only managed to introduce circular dependencies.
|
| In the past, I've dealt with this sort of chicken-and-egg problem by
| generating WSDLs and
| code and then checking them into source control.  This feels bad, and makes
| updates if the
| interface of the SEI changes a hassle.  I'd much rather define a simple SEI
| annotated with
| @WebService and have the low-level stuff (WSDLs, client bindings) generated
| from that.
|
| [1]
| http://weblogs.java.net/blog/ss141213/archive/2007/11/my_maven_experi.html
| [2]
|
http://mail-archives.apache.org/mod_mbox/maven-users/200711.mbox/[EMAIL 
PROTECTED]
| [3]
|
http://mail-archives.apache.org/mod_mbox/maven-users/200609.mbox/[EMAIL 
PROTECTED]
|
| | plugin
| |   artifactIdmaven-compiler-plugin/artifactId
| |   executions
| |   execution
| |   idjaxws-pre-compilation-hack/id
| |   !-- Hack to specify order of plugin application --
| |   phaseprocess-sources/phase
| |   configuration
| |   source1.5/source
| |   target1.5/target
| |   includes
| |
| include${source.dir}/org/myorg/include
| |   /includes
| |   excludes
| |
| exclude${source.dir}/org/myorg/x/exclude
| |
| exclude${source.dir}/org/myorg/y/exclude
| |   /excludes
| |   goals
| |   goalcompile/goal
| |   /goals
| |   /configuration
| |   /execution
| |   execution
| |   idnormal-compilation/id
| |   !-- Hack to specify order of plugin application --
| |   phasecompile/phase
| |   configuration
| |   source1.5/source
| |   target1.5/target
| | 

Re: Running maven-compiler-plugin and maven-jaxws-plugin with different configurations in different phases

2008-05-21 Thread Jan Fredrik Wedén
Hmm, I'm not very familiar with jaxws so maybe I don't understand the
full picture here. It just seems that if a class in one package can be
compiled and used when generating wsdl and client bidnings without
reference to other packages in the module, it can also be used for the
same steps in module by itself.

Unless you mean that compilation of a webservice class requires client
bindings from another service which is not yet built since it requires
the client bindings you are about to build - that would be a painful
circular dep. But I guess such a situation cannot be solved by
conventional means anyhow...

On Wed, May 21, 2008 at 7:03 PM, Clint Gilbert
[EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Jan, thank you very much for your suggestion.

 That was almost the first thing I tried.  The problem is that my web service
 instances (I
 call them Nodes - they're components of a distributed DB system) need to
 talk to each other.

 A Node needs to be compiled to generate the client bindings, and a Node
 needs to invoke
 the bindings to talk to other Nodes.  There's always a circular dependency.
  I tried to
 get around this by abstracting the process of talking to a node in order to
 hide the JAXWS
 client bindings from the nodes that use them.  That let me attempt the
 two-pass
 compilation hack, but can't get around the circular dependency.

 I think I'm going to bootstrap my module by checking in the generated code
 and artifacts.

 Just for reference, does anyone know for sure if you can give different
 configs for
 different executions of maven-compiler-plugin?

 Jan Fredrik Wedén wrote:
 | Hi,
 |
 | Could you not split this into two modules where your step 4 resides in
 | a module which dependes on another module containing the results from
 | 1, 2 and 3? Seems like the most correct Maven-way if you are allowed
 | to split your codebase to accomplish this.
 |
 | On Wed, May 21, 2008 at 2:48 AM, Clint Gilbert
 | [EMAIL PROTECTED] wrote:
 | Hello everyone,
 |
 | First of all, I cannot overstate the beneficial effect that Maven has had
 on
 | the
 | development process at my organization.  To the devs: thanks for the great
 | tool!
 |
 | I have a pom that specifies two executions of the compiler plugin, with
 | different phases
 | specified and different configs, but they're not both running.  (See pom
 | excerpt below.)
 | Is that expected?  Can I configure multiple executions of the compiler
 | plugin with
 | different configurations?  It seems like no - [1], [2], [3] - but I hope
 | someone has an
 | definitive answer.
 |
 | Here's some background on my problem, which I admit is fairly obscure.
 | Basically, what I
 | need to do is:
 |
 | 1 Compile class A in package org.myorg, which is annotated with
 @WebService
 |
 | 2 Run JAXWS's wsgen (via maven-jaxws-plugin) to make a WSDL from the
 | compiled A.class
 |
 | 3 Run JAXWS's wsimport (via maven-jaxws-plugin) to make client-side
 bindings
 | from the
 | just-generated WSDL
 |
 | 4 Compile non-generated classes that reference the just-generated client
 | bindings. These
 | live in separate sub-packages - org.myorg.x, org.myorg.y, etc - and would
 | have failed if
 | compiled during step 1 because they reference code generated in step 3.
 |
 | I've included (what I hope are) the relevant sections of my pom below.
 |
 | PS: Do I need to do things this way?  Unfortunately, I think so.  Class
 | org.myorg.A is a
 | web service that needs to invoke other org.myorg.A web services arranged
 in
 | a tree or mesh
 | topology.  I've tried to break out the bindings, the SEI (A), and the
 | classes that
 | abstract the connection between As using the client bindings into
 | submodules, but I've
 | only managed to introduce circular dependencies.
 |
 | In the past, I've dealt with this sort of chicken-and-egg problem by
 | generating WSDLs and
 | code and then checking them into source control.  This feels bad, and
 makes
 | updates if the
 | interface of the SEI changes a hassle.  I'd much rather define a simple
 SEI
 | annotated with
 | @WebService and have the low-level stuff (WSDLs, client bindings)
 generated
 | from that.
 |
 | [1]
 | http://weblogs.java.net/blog/ss141213/archive/2007/11/my_maven_experi.html
 | [2]
 |
 http://mail-archives.apache.org/mod_mbox/maven-users/200711.mbox/[EMAIL 
 PROTECTED]
 | [3]
 |
 http://mail-archives.apache.org/mod_mbox/maven-users/200609.mbox/[EMAIL 
 PROTECTED]
 |
 | | plugin
 | |   artifactIdmaven-compiler-plugin/artifactId
 | |   executions
 | |   execution
 | |   idjaxws-pre-compilation-hack/id
 | |   !-- Hack to specify order of plugin application
 --
 | |   phaseprocess-sources/phase
 | |   configuration
 | |   source1.5/source
 | |   target1.5/target
 | |   includes
 | |
 | 

Re: Running maven-compiler-plugin and maven-jaxws-plugin with different configurations in different phases

2008-05-21 Thread Daniel Kulp


One option is to go completely code first and not generate anything.
Use the same SEI interface for the client and for the service impls.
You don't need to generate any wsdl's or anything then.I know  
Apache CXF supports that directly without problems.   No generation of  
anything needed at all.   With the Sun RI, you would still need wsgen  
to generate the wrapper beans/fault beans, but it can also compile them.


Dan



On May 21, 2008, at 1:03 PM, Clint Gilbert wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Jan, thank you very much for your suggestion.

That was almost the first thing I tried.  The problem is that my web  
service instances (I
call them Nodes - they're components of a distributed DB system)  
need to talk to each other.


A Node needs to be compiled to generate the client bindings, and a  
Node needs to invoke
the bindings to talk to other Nodes.  There's always a circular  
dependency.  I tried to
get around this by abstracting the process of talking to a node in  
order to hide the JAXWS
client bindings from the nodes that use them.  That let me attempt  
the two-pass

compilation hack, but can't get around the circular dependency.

I think I'm going to bootstrap my module by checking in the  
generated code and artifacts.


Just for reference, does anyone know for sure if you can give  
different configs for

different executions of maven-compiler-plugin?

Jan Fredrik Wedén wrote:
| Hi,
|
| Could you not split this into two modules where your step 4  
resides in
| a module which dependes on another module containing the results  
from

| 1, 2 and 3? Seems like the most correct Maven-way if you are allowed
| to split your codebase to accomplish this.
|
| On Wed, May 21, 2008 at 2:48 AM, Clint Gilbert
| [EMAIL PROTECTED] wrote:
| Hello everyone,
|
| First of all, I cannot overstate the beneficial effect that Maven  
has had on

| the
| development process at my organization.  To the devs: thanks for  
the great

| tool!
|
| I have a pom that specifies two executions of the compiler plugin,  
with

| different phases
| specified and different configs, but they're not both running.   
(See pom

| excerpt below.)
| Is that expected?  Can I configure multiple executions of the  
compiler

| plugin with
| different configurations?  It seems like no - [1], [2], [3] - but  
I hope

| someone has an
| definitive answer.
|
| Here's some background on my problem, which I admit is fairly  
obscure.

| Basically, what I
| need to do is:
|
| 1 Compile class A in package org.myorg, which is annotated with  
@WebService

|
| 2 Run JAXWS's wsgen (via maven-jaxws-plugin) to make a WSDL from the
| compiled A.class
|
| 3 Run JAXWS's wsimport (via maven-jaxws-plugin) to make client- 
side bindings

| from the
| just-generated WSDL
|
| 4 Compile non-generated classes that reference the just-generated  
client

| bindings. These
| live in separate sub-packages - org.myorg.x, org.myorg.y, etc -  
and would

| have failed if
| compiled during step 1 because they reference code generated in  
step 3.

|
| I've included (what I hope are) the relevant sections of my pom  
below.

|
| PS: Do I need to do things this way?  Unfortunately, I think so.   
Class

| org.myorg.A is a
| web service that needs to invoke other org.myorg.A web services  
arranged in

| a tree or mesh
| topology.  I've tried to break out the bindings, the SEI (A), and  
the

| classes that
| abstract the connection between As using the client bindings into
| submodules, but I've
| only managed to introduce circular dependencies.
|
| In the past, I've dealt with this sort of chicken-and-egg problem by
| generating WSDLs and
| code and then checking them into source control.  This feels bad,  
and makes

| updates if the
| interface of the SEI changes a hassle.  I'd much rather define a  
simple SEI

| annotated with
| @WebService and have the low-level stuff (WSDLs, client bindings)  
generated

| from that.
|
| [1]
| http://weblogs.java.net/blog/ss141213/archive/2007/11/my_maven_experi.html
| [2]
|
http://mail-archives.apache.org/mod_mbox/maven-users/200711.mbox/[EMAIL 
PROTECTED]
| [3]
|
http://mail-archives.apache.org/mod_mbox/maven-users/200609.mbox/[EMAIL 
PROTECTED]
|
| | plugin
| |   artifactIdmaven-compiler-plugin/artifactId
| |   executions
| |   execution
| |   idjaxws-pre-compilation-hack/id
| |   !-- Hack to specify order of plugin  
application --

| |   phaseprocess-sources/phase
| |   configuration
| |   source1.5/source
| |   target1.5/target
| |   includes
| |
| include${source.dir}/org/myorg/include
| |   /includes
| |   excludes
| |
| exclude${source.dir}/org/myorg/x/exclude
| |
| exclude${source.dir}/org/myorg/y/exclude
| |   

RE: Running maven-compiler-plugin and maven-jaxws-plugin with different configurations in different phases

2008-05-21 Thread Sean Hennessy
Perhaps one convention being the client bindings from another service could be 
resolved by a common IService class that each client Node would derive from and 
be dependent?
Thereby decoupling the maven compile time binding to a generic class?
Unless you mean that compilation of a webservice class requires client 
bindings from another service which is not yet built since it requires the 
client bindings you are about to build - that would be a painful circular 
dep. But I guess such a situation cannot be solved by conventional means 
anyhow...



-Original Message-
From: Jan Fredrik Wedén [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 21, 2008 11:25 AM
To: Maven Users List
Subject: Re: Running maven-compiler-plugin and maven-jaxws-plugin with 
different configurations in different phases


Hmm, I'm not very familiar with jaxws so maybe I don't understand the full 
picture here. It just seems that if a class in one package can be compiled and 
used when generating wsdl and client bidnings without reference to other 
packages in the module, it can also be used for the same steps in module by 
itself.

Unless you mean that compilation of a webservice class requires client bindings 
from another service which is not yet built since it requires the client 
bindings you are about to build - that would be a painful circular dep. But I 
guess such a situation cannot be solved by conventional means anyhow...

On Wed, May 21, 2008 at 7:03 PM, Clint Gilbert [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Jan, thank you very much for your suggestion.

 That was almost the first thing I tried.  The problem is that my web
 service instances (I call them Nodes - they're components of a
 distributed DB system) need to talk to each other.

 A Node needs to be compiled to generate the client bindings, and a
 Node needs to invoke the bindings to talk to other Nodes.  There's
 always a circular dependency.  I tried to
 get around this by abstracting the process of talking to a node in order to
 hide the JAXWS
 client bindings from the nodes that use them.  That let me attempt the
 two-pass
 compilation hack, but can't get around the circular dependency.

 I think I'm going to bootstrap my module by checking in the generated
 code and artifacts.

 Just for reference, does anyone know for sure if you can give
 different configs for different executions of maven-compiler-plugin?

 Jan Fredrik Wedén wrote:
 | Hi,
 |
 | Could you not split this into two modules where your step 4 resides
 | in a module which dependes on another module containing the results
 | from 1, 2 and 3? Seems like the most correct Maven-way if you are
 | allowed to split your codebase to accomplish this.
 |
 | On Wed, May 21, 2008 at 2:48 AM, Clint Gilbert
 | [EMAIL PROTECTED] wrote: Hello everyone,
 |
 | First of all, I cannot overstate the beneficial effect that Maven
 | has had
 on
 | the
 | development process at my organization.  To the devs: thanks for the
 | great tool!
 |
 | I have a pom that specifies two executions of the compiler plugin,
 | with different phases specified and different configs, but they're
 | not both running.  (See pom excerpt below.)
 | Is that expected?  Can I configure multiple executions of the compiler
 | plugin with
 | different configurations?  It seems like no - [1], [2], [3] - but I hope
 | someone has an
 | definitive answer.
 |
 | Here's some background on my problem, which I admit is fairly
 | obscure. Basically, what I need to do is:
 |
 | 1 Compile class A in package org.myorg, which is annotated with
 @WebService
 |
 | 2 Run JAXWS's wsgen (via maven-jaxws-plugin) to make a WSDL from the
 | compiled A.class
 |
 | 3 Run JAXWS's wsimport (via maven-jaxws-plugin) to make client-side
 bindings
 | from the
 | just-generated WSDL
 |
 | 4 Compile non-generated classes that reference the just-generated
 | client bindings. These live in separate sub-packages - org.myorg.x,
 | org.myorg.y, etc - and would have failed if
 | compiled during step 1 because they reference code generated in step 3.
 |
 | I've included (what I hope are) the relevant sections of my pom
 | below.
 |
 | PS: Do I need to do things this way?  Unfortunately, I think so.
 | Class org.myorg.A is a web service that needs to invoke other
 | org.myorg.A web services arranged
 in
 | a tree or mesh
 | topology.  I've tried to break out the bindings, the SEI (A), and
 | the classes that abstract the connection between As using the client
 | bindings into submodules, but I've
 | only managed to introduce circular dependencies.
 |
 | In the past, I've dealt with this sort of chicken-and-egg problem by
 | generating WSDLs and code and then checking them into source
 | control.  This feels bad, and
 makes
 | updates if the
 | interface of the SEI changes a hassle.  I'd much rather define a
 | simple
 SEI
 | annotated with
 | @WebService and have the low-level stuff (WSDLs, client bindings)
 generated
 | from that.
 |
 | [1

Re: Running maven-compiler-plugin and maven-jaxws-plugin with different configurations in different phases

2008-05-21 Thread Clint Gilbert

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

So could I generate client code directly from a class annotated with 
@WebService, without
generating an intermediary WSDL?  I couldn't find a way to do that with 
wsgen/wsimport,
but I'd love it if that was possible.

Daniel Kulp wrote:
|
| One option is to go completely code first and not generate anything.
| Use the same SEI interface for the client and for the service impls.
| You don't need to generate any wsdl's or anything then.I know Apache
| CXF supports that directly without problems.   No generation of anything
| needed at all.   With the Sun RI, you would still need wsgen to generate
| the wrapper beans/fault beans, but it can also compile them.
|
| Dan
|
|
|
| On May 21, 2008, at 1:03 PM, Clint Gilbert wrote:
|
| Jan, thank you very much for your suggestion.
|
| That was almost the first thing I tried.  The problem is that my web
| service instances (I
| call them Nodes - they're components of a distributed DB system) need
| to talk to each other.
|
| A Node needs to be compiled to generate the client bindings, and a
| Node needs to invoke
| the bindings to talk to other Nodes.  There's always a circular
| dependency.  I tried to
| get around this by abstracting the process of talking to a node in
| order to hide the JAXWS
| client bindings from the nodes that use them.  That let me attempt the
| two-pass
| compilation hack, but can't get around the circular dependency.
|
| I think I'm going to bootstrap my module by checking in the generated
| code and artifacts.
|
| Just for reference, does anyone know for sure if you can give
| different configs for
| different executions of maven-compiler-plugin?
|
| Jan Fredrik Wedén wrote:
| | Hi,
| |
| | Could you not split this into two modules where your step 4 resides in
| | a module which dependes on another module containing the results from
| | 1, 2 and 3? Seems like the most correct Maven-way if you are allowed
| | to split your codebase to accomplish this.
| |
| | On Wed, May 21, 2008 at 2:48 AM, Clint Gilbert
| | [EMAIL PROTECTED] wrote:
| | Hello everyone,
| |
| | First of all, I cannot overstate the beneficial effect that Maven
| has had on
| | the
| | development process at my organization.  To the devs: thanks for the
| great
| | tool!
| |
| | I have a pom that specifies two executions of the compiler plugin, with
| | different phases
| | specified and different configs, but they're not both running.  (See
| pom
| | excerpt below.)
| | Is that expected?  Can I configure multiple executions of the compiler
| | plugin with
| | different configurations?  It seems like no - [1], [2], [3] - but I
| hope
| | someone has an
| | definitive answer.
| |
| | Here's some background on my problem, which I admit is fairly obscure.
| | Basically, what I
| | need to do is:
| |
| | 1 Compile class A in package org.myorg, which is annotated with
| @WebService
| |
| | 2 Run JAXWS's wsgen (via maven-jaxws-plugin) to make a WSDL from the
| | compiled A.class
| |
| | 3 Run JAXWS's wsimport (via maven-jaxws-plugin) to make client-side
| bindings
| | from the
| | just-generated WSDL
| |
| | 4 Compile non-generated classes that reference the just-generated
| client
| | bindings. These
| | live in separate sub-packages - org.myorg.x, org.myorg.y, etc - and
| would
| | have failed if
| | compiled during step 1 because they reference code generated in step 3.
| |
| | I've included (what I hope are) the relevant sections of my pom below.
| |
| | PS: Do I need to do things this way?  Unfortunately, I think so.  Class
| | org.myorg.A is a
| | web service that needs to invoke other org.myorg.A web services
| arranged in
| | a tree or mesh
| | topology.  I've tried to break out the bindings, the SEI (A), and the
| | classes that
| | abstract the connection between As using the client bindings into
| | submodules, but I've
| | only managed to introduce circular dependencies.
| |
| | In the past, I've dealt with this sort of chicken-and-egg problem by
| | generating WSDLs and
| | code and then checking them into source control.  This feels bad,
| and makes
| | updates if the
| | interface of the SEI changes a hassle.  I'd much rather define a
| simple SEI
| | annotated with
| | @WebService and have the low-level stuff (WSDLs, client bindings)
| generated
| | from that.
| |
| | [1]
| |
| http://weblogs.java.net/blog/ss141213/archive/2007/11/my_maven_experi.html
|
| | [2]
| |
|
http://mail-archives.apache.org/mod_mbox/maven-users/200711.mbox/[EMAIL 
PROTECTED]

|
| | [3]
| |
|
http://mail-archives.apache.org/mod_mbox/maven-users/200609.mbox/[EMAIL 
PROTECTED]

|
| |
| | | plugin
| | |   artifactIdmaven-compiler-plugin/artifactId
| | |   executions
| | |   execution
| | |   idjaxws-pre-compilation-hack/id
| | |   !-- Hack to specify order of plugin
| application --
| | |   phaseprocess-sources/phase
| | |   configuration
| | 

Re: Running maven-compiler-plugin and maven-jaxws-plugin with different configurations in different phases

2008-05-21 Thread Clint Gilbert

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

True, in my case that, along with a little dynamic classloading, would get rid 
of the
source-level circular dependency.  It's similar to the way I've currently 
abstracted the
process of Nodes talking to each other - I have an abstract base NodeConnector. 
 However,
there would still be a pom-level circular dependency, since the node module 
(with client
bindings) depends on the nodeconnector module to talk to other nodes, and the
nodeconnector module depends on the node module for the client bindings needed 
to actually
talk to another Node.  I thought about breaking the client bindings out into 
their own
module, but that just turns a 2-vertex dependency cycle into a 3-vertex 
triangular-shaped one.

Ultimately, I'm sorry, as I posed my original question before I'd thought 
through my
situation fully.  I thought I could get around my circular dependency issue by 
jumping
through some very hacky hoops in one of my poms, but the circular dependency 
will always
be there in my case.

I bootstrapped everything by running wsgen and wsimport manually and checking 
in the
generated artifacts, and while slightly unpleasant, it seems a lot better than 
trying to
hack something together to generate everything on the fly, as it were, from by 
@WebService
class.

Thanks to all who offered suggestions!

Sean Hennessy wrote:
| Perhaps one convention being the client bindings from another service could 
be resolved
by a common IService class that each client Node would derive from and be 
dependent?
| Thereby decoupling the maven compile time binding to a generic class?
| Unless you mean that compilation of a webservice class requires client 
bindings from

another service which is not yet built since it requires the client bindings 
you are
about to build - that would be a painful circular dep. But I guess such a 
situation
cannot be solved by conventional means anyhow...

|
|
|
| -Original Message-
| From: Jan Fredrik Wedén [mailto:[EMAIL PROTECTED]
| Sent: Wednesday, May 21, 2008 11:25 AM
| To: Maven Users List
| Subject: Re: Running maven-compiler-plugin and maven-jaxws-plugin with 
different
configurations in different phases
|
|
| Hmm, I'm not very familiar with jaxws so maybe I don't understand the full 
picture here.
It just seems that if a class in one package can be compiled and used when 
generating wsdl
and client bidnings without reference to other packages in the module, it can 
also be used
for the same steps in module by itself.
|
| Unless you mean that compilation of a webservice class requires client 
bindings from
another service which is not yet built since it requires the client bindings 
you are about
to build - that would be a painful circular dep. But I guess such a situation 
cannot be
solved by conventional means anyhow...
|
| On Wed, May 21, 2008 at 7:03 PM, Clint Gilbert [EMAIL PROTECTED] wrote:
| Jan, thank you very much for your suggestion.
|
| That was almost the first thing I tried.  The problem is that my web
| service instances (I call them Nodes - they're components of a
| distributed DB system) need to talk to each other.
|
| A Node needs to be compiled to generate the client bindings, and a
| Node needs to invoke the bindings to talk to other Nodes.  There's
| always a circular dependency.  I tried to
| get around this by abstracting the process of talking to a node in order to
| hide the JAXWS
| client bindings from the nodes that use them.  That let me attempt the
| two-pass
| compilation hack, but can't get around the circular dependency.
|
| I think I'm going to bootstrap my module by checking in the generated
| code and artifacts.
|
| Just for reference, does anyone know for sure if you can give
| different configs for different executions of maven-compiler-plugin?
|
| Jan Fredrik Wedén wrote:
| | Hi,
| |
| | Could you not split this into two modules where your step 4 resides
| | in a module which dependes on another module containing the results
| | from 1, 2 and 3? Seems like the most correct Maven-way if you are
| | allowed to split your codebase to accomplish this.
| |
| | On Wed, May 21, 2008 at 2:48 AM, Clint Gilbert
| | [EMAIL PROTECTED] wrote: Hello everyone,
| |
| | First of all, I cannot overstate the beneficial effect that Maven
| | has had
| on
| | the
| | development process at my organization.  To the devs: thanks for the
| | great tool!
| |
| | I have a pom that specifies two executions of the compiler plugin,
| | with different phases specified and different configs, but they're
| | not both running.  (See pom excerpt below.)
| | Is that expected?  Can I configure multiple executions of the compiler
| | plugin with
| | different configurations?  It seems like no - [1], [2], [3] - but I hope
| | someone has an
| | definitive answer.
| |
| | Here's some background on my problem, which I admit is fairly
| | obscure. Basically, what I need to do is:
| |
| | 1 Compile class A in package org.myorg, which

Re: Running maven-compiler-plugin and maven-jaxws-plugin with different configurations in different phases

2008-05-21 Thread Daniel Kulp


On May 21, 2008, at 6:43 PM, Clint Gilbert wrote:
So could I generate client code directly from a class annotated with  
@WebService, without
generating an intermediary WSDL?  I couldn't find a way to do that  
with wsgen/wsimport,

but I'd love it if that was possible.


If you have an INTERFACE (not a class) with the annotations then that  
is usable for both the server side part and the client side part.   No  
generation required.  The server implementation would implement the  
interface and the @WebService annotation on it would specify the  
endpointInterface.  (the server impl would ONLY need the @WebService  
annotation.  The rest would be on the interface)


For the client side, it's just:
Service service = Service.create(serviceName);
service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING,  
endpointAddress);

YourInterface port = service.getPort(portName, YourInterface.class);


Dan





Daniel Kulp wrote:
|
| One option is to go completely code first and not generate anything.
| Use the same SEI interface for the client and for the service impls.
| You don't need to generate any wsdl's or anything then.I know  
Apache
| CXF supports that directly without problems.   No generation of  
anything
| needed at all.   With the Sun RI, you would still need wsgen to  
generate

| the wrapper beans/fault beans, but it can also compile them.
|
| Dan
|
|
|
| On May 21, 2008, at 1:03 PM, Clint Gilbert wrote:
|
| Jan, thank you very much for your suggestion.
|
| That was almost the first thing I tried.  The problem is that my web
| service instances (I
| call them Nodes - they're components of a distributed DB system)  
need

| to talk to each other.
|
| A Node needs to be compiled to generate the client bindings, and a
| Node needs to invoke
| the bindings to talk to other Nodes.  There's always a circular
| dependency.  I tried to
| get around this by abstracting the process of talking to a node in
| order to hide the JAXWS
| client bindings from the nodes that use them.  That let me attempt  
the

| two-pass
| compilation hack, but can't get around the circular dependency.
|
| I think I'm going to bootstrap my module by checking in the  
generated

| code and artifacts.
|
| Just for reference, does anyone know for sure if you can give
| different configs for
| different executions of maven-compiler-plugin?
|
| Jan Fredrik Wedén wrote:
| | Hi,
| |
| | Could you not split this into two modules where your step 4  
resides in
| | a module which dependes on another module containing the results  
from
| | 1, 2 and 3? Seems like the most correct Maven-way if you are  
allowed

| | to split your codebase to accomplish this.
| |
| | On Wed, May 21, 2008 at 2:48 AM, Clint Gilbert
| | [EMAIL PROTECTED] wrote:
| | Hello everyone,
| |
| | First of all, I cannot overstate the beneficial effect that Maven
| has had on
| | the
| | development process at my organization.  To the devs: thanks for  
the

| great
| | tool!
| |
| | I have a pom that specifies two executions of the compiler  
plugin, with

| | different phases
| | specified and different configs, but they're not both running.   
(See

| pom
| | excerpt below.)
| | Is that expected?  Can I configure multiple executions of the  
compiler

| | plugin with
| | different configurations?  It seems like no - [1], [2], [3] -  
but I

| hope
| | someone has an
| | definitive answer.
| |
| | Here's some background on my problem, which I admit is fairly  
obscure.

| | Basically, what I
| | need to do is:
| |
| | 1 Compile class A in package org.myorg, which is annotated with
| @WebService
| |
| | 2 Run JAXWS's wsgen (via maven-jaxws-plugin) to make a WSDL from  
the

| | compiled A.class
| |
| | 3 Run JAXWS's wsimport (via maven-jaxws-plugin) to make client- 
side

| bindings
| | from the
| | just-generated WSDL
| |
| | 4 Compile non-generated classes that reference the just-generated
| client
| | bindings. These
| | live in separate sub-packages - org.myorg.x, org.myorg.y, etc -  
and

| would
| | have failed if
| | compiled during step 1 because they reference code generated in  
step 3.

| |
| | I've included (what I hope are) the relevant sections of my pom  
below.

| |
| | PS: Do I need to do things this way?  Unfortunately, I think  
so.  Class

| | org.myorg.A is a
| | web service that needs to invoke other org.myorg.A web services
| arranged in
| | a tree or mesh
| | topology.  I've tried to break out the bindings, the SEI (A),  
and the

| | classes that
| | abstract the connection between As using the client bindings into
| | submodules, but I've
| | only managed to introduce circular dependencies.
| |
| | In the past, I've dealt with this sort of chicken-and-egg  
problem by

| | generating WSDLs and
| | code and then checking them into source control.  This feels bad,
| and makes
| | updates if the
| | interface of the SEI changes a hassle.  I'd much rather define a
| simple SEI
| | annotated with
| | @WebService and have the low-level stuff 

Running maven-compiler-plugin and maven-jaxws-plugin with different configurations in different phases

2008-05-20 Thread Clint Gilbert

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Hello everyone,

First of all, I cannot overstate the beneficial effect that Maven has had on the
development process at my organization.  To the devs: thanks for the great tool!

I have a pom that specifies two executions of the compiler plugin, with 
different phases
specified and different configs, but they're not both running.  (See pom 
excerpt below.)
Is that expected?  Can I configure multiple executions of the compiler plugin 
with
different configurations?  It seems like no - [1], [2], [3] - but I hope 
someone has an
definitive answer.

Here's some background on my problem, which I admit is fairly obscure. 
Basically, what I
need to do is:

1 Compile class A in package org.myorg, which is annotated with @WebService

2 Run JAXWS's wsgen (via maven-jaxws-plugin) to make a WSDL from the compiled 
A.class

3 Run JAXWS's wsimport (via maven-jaxws-plugin) to make client-side bindings 
from the
just-generated WSDL

4 Compile non-generated classes that reference the just-generated client 
bindings. These
live in separate sub-packages - org.myorg.x, org.myorg.y, etc - and would have 
failed if
compiled during step 1 because they reference code generated in step 3.

I've included (what I hope are) the relevant sections of my pom below.

PS: Do I need to do things this way?  Unfortunately, I think so.  Class 
org.myorg.A is a
web service that needs to invoke other org.myorg.A web services arranged in a 
tree or mesh
topology.  I've tried to break out the bindings, the SEI (A), and the classes 
that
abstract the connection between As using the client bindings into submodules, 
but I've
only managed to introduce circular dependencies.

In the past, I've dealt with this sort of chicken-and-egg problem by generating 
WSDLs and
code and then checking them into source control.  This feels bad, and makes 
updates if the
interface of the SEI changes a hassle.  I'd much rather define a simple SEI 
annotated with
@WebService and have the low-level stuff (WSDLs, client bindings) generated 
from that.

[1] http://weblogs.java.net/blog/ss141213/archive/2007/11/my_maven_experi.html
[2]
http://mail-archives.apache.org/mod_mbox/maven-users/200711.mbox/[EMAIL 
PROTECTED]
[3]
http://mail-archives.apache.org/mod_mbox/maven-users/200609.mbox/[EMAIL 
PROTECTED]

| plugin
|   artifactIdmaven-compiler-plugin/artifactId
|   executions
|   execution
|   idjaxws-pre-compilation-hack/id
|   !-- Hack to specify order of plugin application --
|   phaseprocess-sources/phase
|   configuration
|   source1.5/source
|   target1.5/target
|   includes
|   
include${source.dir}/org/myorg/include
|   /includes
|   excludes
|   
exclude${source.dir}/org/myorg/x/exclude
|   
exclude${source.dir}/org/myorg/y/exclude
|   /excludes
|   goals
|   goalcompile/goal
|   /goals
|   /configuration
|   /execution
|   execution
|   idnormal-compilation/id
|   !-- Hack to specify order of plugin application --
|   phasecompile/phase
|   configuration
|   source1.5/source
|   target1.5/target
|   /configuration
|   goals
|   goalcompile/goal
|   /goals
|   /execution
|   /executions
| /plugin
| plugin
|   groupIdorg.codehaus.mojo/groupId
|   artifactIdjaxws-maven-plugin/artifactId
|   executions
|   execution
|   idmake-wsdl/id
|   !-- Hack to specify order goals are run in --
|   phasegenerate-resources/phase
|   goals
|   goalwsgen/goal
|   /goals
|   configuration
|   seiorg.myorg.A/sei
|   ...
|   /configuration
|   /execution
|   execution
|   idmake-client-bindings/id
|   !-- Hack to specify order goals are run in --
|   phaseprocess-resources/phase
|   goals
|   goalwsimport/goal
|   /goals
|   configuration
|   ...
|   /configuration
|   /execution
|   /executions
|   ...
| /plugin



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIM3FkrZoE3ArapxERCMccAKDlPjEgU1qgJHl/HPohB/v11qLSGACgo4PY
/TE9PQTQfVgGzt1zsee9gGo=
=5LNh

NoClassDefFoundError when running maven-exec-plugin and Cobertura

2008-03-18 Thread Thomas Larsson
Hi,

I have configured my reporting section with the cobertura plugin, version
2.0.
I also have a maven-exec-plugin defined to setup my testdatabase during the
test-compile phase as shown below:
(notice the classpath definition. If I understand this correctly, this
configuration should make all project dependencies appear on the classpath
during the maven execution, hmm, might be on to something here. anyway...)

  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdexec-maven-plugin/artifactId
executions
!-- Test for the existence of the database --
execution
idtest-db-exists/id
phasetest-compile/phase
goals
goalexec/goal
/goals
configuration
executablejava/executable
arguments
argument-classpath/argument
classpath /
argument

blabla.blabla.blala.DatabaseAccessVerifier
/argument
/arguments
/configuration
/execution
   /executions
  /plugin


Now when I run mvn site, I get the following stacktrace (not complete
stacktrace)

[INFO] Instrumentation was successful.
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [exec:exec {execution: test-db-exists}]
[INFO] java.lang.NoClassDefFoundError:
net/sourceforge/cobertura/coveragedata/HasBeenInstrumented
[INFO]  at java.lang.ClassLoader.defineClass1(Native Method)
[INFO]  at java.lang.ClassLoader.defineClass(Unknown Source)
[INFO]  at java.security.SecureClassLoader.defineClass(Unknown Source)
[INFO]  at java.net.URLClassLoader.defineClass(Unknown Source)
[INFO]  at java.net.URLClassLoader.access$000(Unknown Source)
[INFO]  at java.net.URLClassLoader$1.run(Unknown Source)
[INFO]  at java.security.AccessController.doPrivileged(Native Method)
[INFO]  at java.net.URLClassLoader.findClass(Unknown Source)
[INFO]  at java.lang.ClassLoader.loadClass(Unknown Source)
[INFO]  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
[INFO]  at java.lang.ClassLoader.loadClass(Unknown Source)
[INFO]  at java.lang.ClassLoader.loadClassInternal(Unknown Source)
[INFO] Caused by: java.lang.ClassNotFoundException:
net.sourceforge.cobertura.coveragedata.HasBeenInstrumented
[INFO]  at java.net.URLClassLoader$1.run(Unknown Source)
[INFO]  at java.security.AccessController.doPrivileged(Native Method)
[INFO]  at java.net.URLClassLoader.findClass(Unknown Source)
[INFO]  at java.lang.ClassLoader.loadClass(Unknown Source)
[INFO]  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
[INFO]  at java.lang.ClassLoader.loadClass(Unknown Source)
[INFO]  at java.lang.ClassLoader.loadClassInternal(Unknown Source)
[INFO]  ... 12 more
[INFO] Exception in thread main
[INFO]

[ERROR] BUILD ERROR
[INFO]




Does anyone know how I can get the exec plugin to find the cobertura
classes?

Best Regards


Problem running maven site:site outside the pom.xml directory

2008-02-20 Thread Mael Caldas
Hello,

I'm running mvn site:site two dirs above the pom's directory, specifying the
pom.xml location with the --file argument and the site is generated wrong.
If I run in the same directory of the pom.xml, everything goes right.

That is my dir structure:

My_CC_View\
   |
   |My_CC_VOB\
  |
  |project
|
|___pom.xml

So, I go to the *My_CC_View* and run the command:

*mvn -f My_CC_VOB/project/pom.xml site:site site:deploy

*And the build goes ok, but the site is generated as the *My_CC_View* was
the project, without any links and descriptions.

I have this need because I'm running the command on Continuum and had the
same problem described here: http://jira.codehaus.org/browse/SCM-288
I put the correct pom.xml location on continuum (*My_CC_VOB/project/pom.xml)
*, the project is checked out, the build goes ok, but the site not!

Any Idea!!!???


Thanks!!!


Re: Problem running maven site:site outside the pom.xml directory

2008-02-20 Thread Mael Caldas
Another information...
I noticed that the site is ways wrong generated if I run maven outside the
pom.xml 's directory, specifying the pom.xml location with the --file
argument!

Is that a site plugin bug!???
Any ideas!?

Thanks a lot!


On Feb 20, 2008 3:25 PM, Mael Caldas [EMAIL PROTECTED] wrote:

 Hello,

 I'm running mvn site:site two dirs above the pom's directory, specifying
 the pom.xml location with the --file argument and the site is generated
 wrong. If I run in the same directory of the pom.xml, everything goes
 right.

 That is my dir structure:

 My_CC_View\
|
|My_CC_VOB\
   |
   |project
 |
 |___pom.xml

 So, I go to the *My_CC_View* and run the command:

 *mvn -f My_CC_VOB/project/pom.xml site:site site:deploy

 *And the build goes ok, but the site is generated as the *My_CC_View* was
 the project, without any links and descriptions.

 I have this need because I'm running the command on Continuum and had the
 same problem described here: http://jira.codehaus.org/browse/SCM-288
 I put the correct pom.xml location on continuum (*
 My_CC_VOB/project/pom.xml)*, the project is checked out, the build goes
 ok, but the site not!

 Any Idea!!!???


 Thanks!!!




Running Maven commands with CRON

2007-07-20 Thread Chris Russell

Hello,

I'm trying to run the following script with CRON:
# set up some environment vars to make things more readable
. /home/maven/metalink3/setupVars.sh

/u02/webapps/orihttp/apache/maven-2.0.4/bin/mvn site:site

This runs fine when I run it from the command line. But when CRON runs 
it I get:

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


[INFO] Building Maven Default Project
[INFO]task-segment: [site:site]
[INFO] 

[INFO] Setting property: classpath.resource.loader.class = 
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.

[INFO] Setting property: velocimacro.messages.on = 'false'.
[INFO] Setting property: resource.loader = 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound = 'false'.
[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] Cannot execute mojo: site. It requires a project with an existing 
pom.xml, but the build is not using one.


It seems when running from CRON Maven can't find the pom file.

Is there a way to specify the location of the top level pom via that 
command line?


Thanks in advance,
Chris


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



  1   2   >