Re: MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version

2011-08-11 Thread Anders Hammar
I agree with Stephen. The issues come from the fact that the ant job does
too much, i.e. both generates the classes and compiles them. I have had my
fair share of these issues using tools in Maven which originated from Ant
land. Maven has a different approach.
One possible half-way approach is to stay with the antrun plugin to generate
the Java classes and bind that to the correct phase, and then use the
compiler plugin to compile them. (But do understand that this will still
cause you headache should you try to use m2eclipse v1.0+, as it will not
know how to treat the antrun execution. It is then much better to have
specific plugin for the code generation.)

/Anders

On Thu, Aug 11, 2011 at 07:45, Stephen Connolly 
stephen.alan.conno...@gmail.com wrote:

 sounds like he'd be better off pitching the ant build for a full maven
 build
 and using toolchains to get m-compiler-p compiling with 1.4... or pitching
 maven and using ant.

 - Stephen

 ---
 Sent from my Android phone, so random spelling mistakes, random nonsense
 words and other nonsense are a direct result of using swype to type on the
 screen
 On 11 Aug 2011 05:23, Barrie Treloar baerr...@gmail.com wrote:
  On Thu, Aug 11, 2011 at 9:47 AM, Daivish Shah daivish.s...@gmail.com
 wrote:
  Hi,
 
  I tried giving JRE and TOOLS JAR from build.xml file. But it's working
 fine
  if i run as ANT script.
 
  But when i execute as MAVEN it's taking JAVA_HOME variable which is
 setup
 as
  system variable so my system JAVA_HOME is 1.5 and i want to compile with
  1.4.2 from MAVEN Only.
 
  Even i gave dependencies as below.
 
 dependencies
 dependency
 groupIdsun.jdk/groupId
 artifactIdtools/artifactId
 version1.4.2/version
 scopesystem/scope
 
  systemPath${java.home}/lib/tools.jar/systemPath
 /dependency
 dependency
 groupIdcom.sun/groupId
 artifactIdrt/artifactId
 version1.4.2/version
 scopesystem/scope
 
  systemPath${java.home}/jre/lib/rt.jar/systemPath
 /dependency
 /dependencies
 
 
  And Also tried giving something like this.
 
 configuration
 javaHome${java.home}/javaHome
 source${java-version}/source
 target1.4.2/target
  /configuration
 
  But it's still taking JDK 1.5 while compiling the source Code.
 
  Ant is just a java program.
  It doesn't use classpath dependencies or environment variables in
  order to run.
  Yes they are set in the bat files that startup Ant but not the java Main
 class.
  Ant expects all this stuff to be already available, so attempting to
  get maven-antrun-plugin to inject these into the instance of Ant and
  expecting it to work is a misunderstanding.
 
  Did you try any of the options I previously proposed?
 
  Another option is to just use the exec-maven-plugin
  (http://mojo.codehaus.org/exec-maven-plugin) to exec Ant.
  But then why are bothering to wrap all this in Maven?
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 



Mojo unit test

2011-08-11 Thread Adrien Ruffie - Petals Link
Hello, I need in my unit test (My customized mojo unit test) to run a 
mvn clean install


but I don't understand the mechanism, any one have a piece of code to do 
this, please ?


example:

MavenProject pom =
  maven.readProject( new 
File(ComponentWithAdditionalResources.SRC_HOME,

  pom.xml));

pom.execute(clean install);

or something ? thank

--
Adrien Ruffié
- Ingénieur de recherches et développements
- Scrum Team member



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

Re: Mojo unit test

2011-08-11 Thread Anders Hammar
Use the maven-invoker-plugin. You could have a look at nearly any of the
plugins at Apache Maven or Codehaus Mojo and see how it is used (if the
plugin's docs isn't clear enough).

/Anders

On Thu, Aug 11, 2011 at 11:47, Adrien Ruffie - Petals Link 
adrien.ruf...@petalslink.com wrote:

 Hello, I need in my unit test (My customized mojo unit test) to run a mvn
 clean install

 but I don't understand the mechanism, any one have a piece of code to do
 this, please ?

 example:

MavenProject pom =
  maven.readProject( new File(**ComponentWithAdditionalResourc**
 es.SRC_HOME,
  pom.xml));

pom.execute(clean install);

 or something ? thank

 --
 Adrien Ruffié
 - Ingénieur de recherches et développements
 - Scrum Team member




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



Parallel download dependencies in same group

2011-08-11 Thread Gaurav Arora
Hi,

I recently posted a question on stackoverflow (
http://stackoverflow.com/questions/6971772/maven-parallel-download-dependencies-in-same-group)
related to the topic but I only got a couple of answers and one of them
turned out to be not an answer at all.



My question is, can the dependency plug (or better yet the core maven
architecture) download my dependencies, which are quite large for a single
test run (200MB+) in parallel? I ask this only because it looks like it
could speed up the process of running our tests. Our nexus is located off
site and so the transfer takes place over the internet so it’s not ideal
that we do it over a single connection.



Regards,

Gaurav


checkstyle and JavadocPackage module

2011-08-11 Thread Simone Tripodi
Hi all,
In apache commons functor[1] (sandbox) I'm trying to enable the
JavadocPackage checkstyle module, unfortunately I'm getting the
following error:

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-site-plugin:3.0-beta-3:site
(default-site) on project commons-functor: Error during page
generation: Error rendering Maven report: Failed during checkstyle
configuration: cannot initialize module JavadocPackage - Unable to
instantiate JavadocPackage: Unable to instantiate JavadocPackageCheck
- [Help 1]

Is there any way I can configure checkstyle in order to accept that module?
My environment is

$ mvn --version
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: /Applications/apache-maven-3.0.3
Java version: 1.5.0_24, vendor: Apple Inc.
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
Default locale: en_US, platform encoding: MacRoman
OS name: mac os x, version: 10.6.4, arch: i386, family: unix

Many thanks in advance, have a nice day!!!
Simo

[1] https://svn.apache.org/repos/asf/commons/sandbox/functor/trunk

http://people.apache.org/~simonetripodi/
http://www.99soft.org/

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



Re: checkstyle and JavadocPackage module

2011-08-11 Thread Olivier Lamy
Hello Simone,
I think this JavadocPackage comes with 5.0 checkstyle version. (see
release note [1] )

As I can see checkstyle plugin in commons is 2.2 which use checkstyle 4.4.

Maybe time to upgrade :-) (checktyle plugin 2.7 will be available soon)

-- 
Olivier Lamy
Talend : http://talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

[1] http://checkstyle.sourceforge.net/releasenotes.html

2011/8/11 Simone Tripodi simonetrip...@apache.org:
 Hi all,
 In apache commons functor[1] (sandbox) I'm trying to enable the
 JavadocPackage checkstyle module, unfortunately I'm getting the
 following error:

 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-site-plugin:3.0-beta-3:site
 (default-site) on project commons-functor: Error during page
 generation: Error rendering Maven report: Failed during checkstyle
 configuration: cannot initialize module JavadocPackage - Unable to
 instantiate JavadocPackage: Unable to instantiate JavadocPackageCheck
 - [Help 1]

 Is there any way I can configure checkstyle in order to accept that module?
 My environment is

 $ mvn --version
 Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
 Maven home: /Applications/apache-maven-3.0.3
 Java version: 1.5.0_24, vendor: Apple Inc.
 Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x, version: 10.6.4, arch: i386, family: unix

 Many thanks in advance, have a nice day!!!
 Simo

 [1] https://svn.apache.org/repos/asf/commons/sandbox/functor/trunk

 http://people.apache.org/~simonetripodi/
 http://www.99soft.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: A module using different compiler cannot find its compiler when compiling thru. the package project

2011-08-11 Thread Rice Yeh
Do I need to change the pom.xml in order to use maven 3?

Rice

On Tue, Aug 9, 2011 at 10:54 PM, Wayne Fay wayne...@gmail.com wrote:

  All the modules except p2 use the default complier. p2 uses eclipse
  compiler. I find if I just compile p2, it works well.  When I try to
 compile
 
  [INFO] No such compiler 'eclipse'.

 What version of Maven are you using? Most likely this is a
 manifestation of the first declaration of a plugin wins problem in
 Maven 2. Give this a try in Maven3 and let us know if it works or
 still has problems.

 Wayne

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




Re: A module using different compiler cannot find its compiler when compiling thru. the package project

2011-08-11 Thread Wayne Fay
 Do I need to change the pom.xml in order to use maven 3?

When you tested things before sending this email, did it fail? Or is
this a pre-emptive email?

Wayne

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



Re: Problem adding hibernate-jbosscache2 to my project

2011-08-11 Thread Wayne Fay
 I ran Maven from Eclipse, but I'll run it from the console and try your
 suggestions.
 I will report back with whatever results I get :)

If you are actually using m2eclipse, you should probably ask for help
on the m2eclipse user list. There may be some Eclipse-specific reason
this isn't working right.

Wayne

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



Re: Parallel download dependencies in same group

2011-08-11 Thread Ron Wheeler

On 11/08/2011 6:36 AM, Gaurav Arora wrote:

Hi,

I recently posted a question on stackoverflow (
http://stackoverflow.com/questions/6971772/maven-parallel-download-dependencies-in-same-group)
related to the topic but I only got a couple of answers and one of them
turned out to be not an answer at all.



My question is, can the dependency plug (or better yet the core maven
architecture) download my dependencies, which are quite large for a single
test run (200MB+) in parallel? I ask this only because it looks like it
could speed up the process of running our tests. Our nexus is located off
site and so the transfer takes place over the internet so it’s not ideal
that we do it over a single connection.

Add a local Nexus that mirrors your current Nexus. Don't deploy to it 
but just use it as a cache.

Maven will then run a LAN speeds.
Nexus is free.



Regards,

Gaurav




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



Re: Parallel download dependencies in same group

2011-08-11 Thread Gaurav Arora
That was my initial idea too. But the problem is that these are trunk builds
with deep dependencies so they change very frequently. Most likely if I
rerun my tests 30 minutes later then I will recieve a new build because one
of the many in-house libraries has changed. We also work within a large team
where developers are frequently changing code so the version keeps updating.

On Aug 11, 2011 8:28 PM, Ron Wheeler rwhee...@artifact-software.com
wrote:
 On 11/08/2011 6:36 AM, Gaurav Arora wrote:
 Hi,

 I recently posted a question on stackoverflow (

http://stackoverflow.com/questions/6971772/maven-parallel-download-dependencies-in-same-group
)
 related to the topic but I only got a couple of answers and one of them
 turned out to be not an answer at all.



 My question is, can the dependency plug (or better yet the core maven
 architecture) download my dependencies, which are quite large for a
single
 test run (200MB+) in parallel? I ask this only because it looks like it
 could speed up the process of running our tests. Our nexus is located off
 site and so the transfer takes place over the internet so it’s not ideal
 that we do it over a single connection.

 Add a local Nexus that mirrors your current Nexus. Don't deploy to it
 but just use it as a cache.
 Maven will then run a LAN speeds.
 Nexus is free.


 Regards,

 Gaurav



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



Re: checkstyle and JavadocPackage module

2011-08-11 Thread Simone Tripodi
Salut Olivier!!!
thanks a lot for your reply and sorry for writing so late (and missed
the messages on Twitter - I'm working on sume stuff as bricklayer
@home these days :P).
So my question is: how to configure current checkstyle plugin in order
to handle package-info.java insead of package.html?
Many thanks in advance, have a nice day!!!
All the best, a bientot!
Simo

http://people.apache.org/~simonetripodi/
http://www.99soft.org/



On Thu, Aug 11, 2011 at 3:49 PM, Olivier Lamy ol...@apache.org wrote:
 Hello Simone,
 I think this JavadocPackage comes with 5.0 checkstyle version. (see
 release note [1] )

 As I can see checkstyle plugin in commons is 2.2 which use checkstyle 4.4.

 Maybe time to upgrade :-) (checktyle plugin 2.7 will be available soon)

 --
 Olivier Lamy
 Talend : http://talend.com
 http://twitter.com/olamy | http://linkedin.com/in/olamy

 [1] http://checkstyle.sourceforge.net/releasenotes.html

 2011/8/11 Simone Tripodi simonetrip...@apache.org:
 Hi all,
 In apache commons functor[1] (sandbox) I'm trying to enable the
 JavadocPackage checkstyle module, unfortunately I'm getting the
 following error:

 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-site-plugin:3.0-beta-3:site
 (default-site) on project commons-functor: Error during page
 generation: Error rendering Maven report: Failed during checkstyle
 configuration: cannot initialize module JavadocPackage - Unable to
 instantiate JavadocPackage: Unable to instantiate JavadocPackageCheck
 - [Help 1]

 Is there any way I can configure checkstyle in order to accept that module?
 My environment is

 $ mvn --version
 Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
 Maven home: /Applications/apache-maven-3.0.3
 Java version: 1.5.0_24, vendor: Apple Inc.
 Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x, version: 10.6.4, arch: i386, family: unix

 Many thanks in advance, have a nice day!!!
 Simo

 [1] https://svn.apache.org/repos/asf/commons/sandbox/functor/trunk

 http://people.apache.org/~simonetripodi/
 http://www.99soft.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: A module using different compiler cannot find its compiler when compiling thru. the package project

2011-08-11 Thread Rice Yeh
The problem is gone when using maven 3.

By the way, never thought it is so easy to upgrade to maven 3 based on the
experience from maven 1 to maven 2.

Thanks,
Rice

On Thu, Aug 11, 2011 at 10:35 PM, Wayne Fay wayne...@gmail.com wrote:

  Do I need to change the pom.xml in order to use maven 3?

 When you tested things before sending this email, did it fail? Or is
 this a pre-emptive email?

 Wayne

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




Re: A module using different compiler cannot find its compiler when compiling thru. the package project

2011-08-11 Thread Wayne Fay
 By the way, never thought it is so easy to upgrade to maven 3 based on the
 experience from maven 1 to maven 2.

One of the goals of Maven 3 was to make it dead simple for users to
upgrade... in stark contrast to the m1m2 experiences you remember!

Wayne

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



Re: Parallel download dependencies in same group

2011-08-11 Thread Wayne Fay
 That was my initial idea too. But the problem is that these are trunk builds
 with deep dependencies so they change very frequently. Most likely if I
 rerun my tests 30 minutes later then I will recieve a new build because one
 of the many in-house libraries has changed. We also work within a large team
 where developers are frequently changing code so the version keeps updating.

Eventually you're going to have to pay the price for having
development and builds happen in one area of the world and testing
happen in another with a too-small Internet pipe connecting them.

Sounds like you need a local CI server + local Nexus slave + mvn
verify job that runs every 10 or 15 minutes. The downloads will
merely consume CPU time on your CI server rather than wasting your
time.

Wayne

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



Re: MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version

2011-08-11 Thread Daivish Shah
Hi Barrie,

I can't apply JAVAC in my BUILD.XML as i am using Weblogic Workshop related
.WORK file under my build.xml and there is no way to specify JAVAC for this
wlwBuild Command.

My code for build.xml is something like this.


?xml version=1.0 encoding=UTF-8 ?
project name=WLW build default=build

property file=local.properties /
property file=reference.properties /

property name=app.source.dir value=C:\WPS /
property name=work.file  value=WPS.work /
property name=output.dir value=C:\TEST /
property name=server.classpath
value=${java.home}/jre/lib/rt.jar;${java.home}/lib/tools.jar;${weblogic.home}/server/lib/knex.jar;${weblogic.home}/common/lib/log4j.jar;${weblogic.home}/server/lib/debugging.jar;${weblogic.home}/javelin/lib/javelin.jar;${weblogic.home}/server/lib/wlw-lang.jar;${weblogic.home}/server/lib/weblogic.jar;${weblogic.home}/common/eval/pointbase/lib/pbserver44.jar;${weblogic.home}/common/eval/pointbase/lib/pbclient44.jar;${weblogic.home}/server/lib/webservices.jar;${weblogic.home}/server/lib/webserviceclient.jar;${weblogic.home}/server/lib/webserviceclient+ssl.jar;${weblogic.home}/server/lib/wli.jar;${weblogic.home}/server/lib/xbean.jar;${weblogic.home}/server/lib/wlxbean.jar;${weblogic.home}/server/lib/xqrl.jar;${weblogic.home}/server/lib/netui/netui-compiler.jar;${mit.classpath}/
property environment=env /
property name=java.home value=C:\bea\jdk142_04/
taskdef name=wlwBuild classname=workshop.core.WlwBuildTask
classpath=${weblogic.home}/workshop/wlw-ide.jar/

  !--target name=wbuild depends=init--
  target name=build depends=wbuild/

  target name=wbuild 
echo message=SourceDirectory=${app.source.dir}/${work.file}/
 echo message=output.dir=${output.dir}/
 echo message=server.classpath=${server.classpath}/
 echo message=env.JAVA_HOME=${env.JAVA_HOME}/

wlwBuild work=${app.source.dir}/${work.file}
serverclasspath=${server.classpath}
build project=WPSEjb/
/wlwBuild
  /target
/project

I can't use this plugin
http://mojo.codehaus.org/exec-maven-plugin/index.html As i have limitation
to USE wlwBuild command from Build.xml as this is the only command which
generated my class files with all information in .WORK file of my project.


So i am not sure how can i apply MAVEN ANT Plugin to compile with java
version 1.4.2, I am really struggling to get the answer on this. And i am
stuck here.

But i assume that you can provide compiler information in
maven-antrun-plugin to execute your build.xml which is not possible with
plugin. That's real limitation to use this plugin i guess.

Please advice me some work around for my problem.

Thanks,
daivish.




On Wed, Aug 10, 2011 at 11:09 PM, Anders Hammar and...@hammar.net wrote:

 I agree with Stephen. The issues come from the fact that the ant job does
 too much, i.e. both generates the classes and compiles them. I have had my
 fair share of these issues using tools in Maven which originated from Ant
 land. Maven has a different approach.
 One possible half-way approach is to stay with the antrun plugin to
 generate
 the Java classes and bind that to the correct phase, and then use the
 compiler plugin to compile them. (But do understand that this will still
 cause you headache should you try to use m2eclipse v1.0+, as it will not
 know how to treat the antrun execution. It is then much better to have
 specific plugin for the code generation.)

 /Anders

 On Thu, Aug 11, 2011 at 07:45, Stephen Connolly 
 stephen.alan.conno...@gmail.com wrote:

  sounds like he'd be better off pitching the ant build for a full maven
  build
  and using toolchains to get m-compiler-p compiling with 1.4... or
 pitching
  maven and using ant.
 
  - Stephen
 
  ---
  Sent from my Android phone, so random spelling mistakes, random nonsense
  words and other nonsense are a direct result of using swype to type on
 the
  screen
  On 11 Aug 2011 05:23, Barrie Treloar baerr...@gmail.com wrote:
   On Thu, Aug 11, 2011 at 9:47 AM, Daivish Shah daivish.s...@gmail.com
  wrote:
   Hi,
  
   I tried giving JRE and TOOLS JAR from build.xml file. But it's working
  fine
   if i run as ANT script.
  
   But when i execute as MAVEN it's taking JAVA_HOME variable which is
  setup
  as
   system variable so my system JAVA_HOME is 1.5 and i want to compile
 with
   1.4.2 from MAVEN Only.
  
   Even i gave dependencies as below.
  
  dependencies
  dependency
  groupIdsun.jdk/groupId
  artifactIdtools/artifactId
  version1.4.2/version
  scopesystem/scope
  
   systemPath${java.home}/lib/tools.jar/systemPath
  /dependency
  dependency
  groupIdcom.sun/groupId
  artifactIdrt/artifactId
  version1.4.2/version
  scopesystem/scope
  
   

Re: MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version

2011-08-11 Thread Stephen Connolly
Use http://mojo.codehaus.org/exec-maven-plugin/exec-mojo.html to run
ANT and you can provide the ENV variables to your hearts content.

Or use the http://ant.apache.org/manual/Tasks/exec.html to fork ANT
with the correct environment variables set.

On 11 August 2011 17:06, Daivish Shah daivish.s...@gmail.com wrote:
 Hi Barrie,

 I can't apply JAVAC in my BUILD.XML as i am using Weblogic Workshop related
 .WORK file under my build.xml and there is no way to specify JAVAC for this
 wlwBuild Command.

 My code for build.xml is something like this.


 ?xml version=1.0 encoding=UTF-8 ?
 project name=WLW build default=build

    property file=local.properties /
    property file=reference.properties /

    property name=app.source.dir value=C:\WPS /
    property name=work.file  value=WPS.work /
    property name=output.dir value=C:\TEST /
    property name=server.classpath
 value=${java.home}/jre/lib/rt.jar;${java.home}/lib/tools.jar;${weblogic.home}/server/lib/knex.jar;${weblogic.home}/common/lib/log4j.jar;${weblogic.home}/server/lib/debugging.jar;${weblogic.home}/javelin/lib/javelin.jar;${weblogic.home}/server/lib/wlw-lang.jar;${weblogic.home}/server/lib/weblogic.jar;${weblogic.home}/common/eval/pointbase/lib/pbserver44.jar;${weblogic.home}/common/eval/pointbase/lib/pbclient44.jar;${weblogic.home}/server/lib/webservices.jar;${weblogic.home}/server/lib/webserviceclient.jar;${weblogic.home}/server/lib/webserviceclient+ssl.jar;${weblogic.home}/server/lib/wli.jar;${weblogic.home}/server/lib/xbean.jar;${weblogic.home}/server/lib/wlxbean.jar;${weblogic.home}/server/lib/xqrl.jar;${weblogic.home}/server/lib/netui/netui-compiler.jar;${mit.classpath}/
    property environment=env /
    property name=java.home value=C:\bea\jdk142_04/
    taskdef name=wlwBuild classname=workshop.core.WlwBuildTask
 classpath=${weblogic.home}/workshop/wlw-ide.jar/

  !--target name=wbuild depends=init--
  target name=build depends=wbuild/

  target name=wbuild 
    echo message=SourceDirectory=${app.source.dir}/${work.file}/
     echo message=output.dir=${output.dir}/
     echo message=server.classpath=${server.classpath}/
     echo message=env.JAVA_HOME=${env.JAVA_HOME}/

    wlwBuild work=${app.source.dir}/${work.file}
 serverclasspath=${server.classpath}
        build project=WPSEjb/
    /wlwBuild
  /target
 /project

 I can't use this plugin
 http://mojo.codehaus.org/exec-maven-plugin/index.html As i have limitation
 to USE wlwBuild command from Build.xml as this is the only command which
 generated my class files with all information in .WORK file of my project.


 So i am not sure how can i apply MAVEN ANT Plugin to compile with java
 version 1.4.2, I am really struggling to get the answer on this. And i am
 stuck here.

 But i assume that you can provide compiler information in
 maven-antrun-plugin to execute your build.xml which is not possible with
 plugin. That's real limitation to use this plugin i guess.

 Please advice me some work around for my problem.

 Thanks,
 daivish.




 On Wed, Aug 10, 2011 at 11:09 PM, Anders Hammar and...@hammar.net wrote:

 I agree with Stephen. The issues come from the fact that the ant job does
 too much, i.e. both generates the classes and compiles them. I have had my
 fair share of these issues using tools in Maven which originated from Ant
 land. Maven has a different approach.
 One possible half-way approach is to stay with the antrun plugin to
 generate
 the Java classes and bind that to the correct phase, and then use the
 compiler plugin to compile them. (But do understand that this will still
 cause you headache should you try to use m2eclipse v1.0+, as it will not
 know how to treat the antrun execution. It is then much better to have
 specific plugin for the code generation.)

 /Anders

 On Thu, Aug 11, 2011 at 07:45, Stephen Connolly 
 stephen.alan.conno...@gmail.com wrote:

  sounds like he'd be better off pitching the ant build for a full maven
  build
  and using toolchains to get m-compiler-p compiling with 1.4... or
 pitching
  maven and using ant.
 
  - Stephen
 
  ---
  Sent from my Android phone, so random spelling mistakes, random nonsense
  words and other nonsense are a direct result of using swype to type on
 the
  screen
  On 11 Aug 2011 05:23, Barrie Treloar baerr...@gmail.com wrote:
   On Thu, Aug 11, 2011 at 9:47 AM, Daivish Shah daivish.s...@gmail.com
  wrote:
   Hi,
  
   I tried giving JRE and TOOLS JAR from build.xml file. But it's working
  fine
   if i run as ANT script.
  
   But when i execute as MAVEN it's taking JAVA_HOME variable which is
  setup
  as
   system variable so my system JAVA_HOME is 1.5 and i want to compile
 with
   1.4.2 from MAVEN Only.
  
   Even i gave dependencies as below.
  
                  dependencies
                      dependency
                          groupIdsun.jdk/groupId
                          artifactIdtools/artifactId
                          version1.4.2/version
                          scopesystem/scope
  
   

Re: MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version

2011-08-11 Thread Wayne Fay
 I can't apply JAVAC in my BUILD.XML as i am using Weblogic Workshop related
 .WORK file under my build.xml and there is no way to specify JAVAC for this
 wlwBuild Command.

There *are* projects where Maven is simply unsuited for the task at
hand (or using Maven simply overcomplicates things without a
significant improvement in the build process) and you really should
just stick with your existing build process.

This may be one of them. Why are you trying to migrate away from Ant
for this specific project?

Wayne

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



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


Re: MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version

2011-08-11 Thread Daivish Shah
HI Stephen,

Use http://mojo.codehaus.org/exec-maven-plugin/exec-mojo.html to run
ANT and you can provide the ENV variables to your hearts content.


For this can you give me example how can i setup JAVA_HOME by using
exec-maven-plugin ? I think I can apply ant -f WPSEjb_build.xml build
command in this plugin.  But please let me know how can i setup My JAVA_HOME
here ?

Thanks for your help Stephen.

thanks,
daivish.

On Thu, Aug 11, 2011 at 9:10 AM, Stephen Connolly 
stephen.alan.conno...@gmail.com wrote:

 Use http://mojo.codehaus.org/exec-maven-plugin/exec-mojo.html to run
 ANT and you can provide the ENV variables to your hearts content.

 Or use the http://ant.apache.org/manual/Tasks/exec.html to fork ANT
 with the correct environment variables set.

 On 11 August 2011 17:06, Daivish Shah daivish.s...@gmail.com wrote:
  Hi Barrie,
 
  I can't apply JAVAC in my BUILD.XML as i am using Weblogic Workshop
 related
  .WORK file under my build.xml and there is no way to specify JAVAC for
 this
  wlwBuild Command.
 
  My code for build.xml is something like this.
 
 
  ?xml version=1.0 encoding=UTF-8 ?
  project name=WLW build default=build
 
 property file=local.properties /
 property file=reference.properties /
 
 property name=app.source.dir value=C:\WPS /
 property name=work.file  value=WPS.work /
 property name=output.dir value=C:\TEST /
 property name=server.classpath
 
 value=${java.home}/jre/lib/rt.jar;${java.home}/lib/tools.jar;${weblogic.home}/server/lib/knex.jar;${weblogic.home}/common/lib/log4j.jar;${weblogic.home}/server/lib/debugging.jar;${weblogic.home}/javelin/lib/javelin.jar;${weblogic.home}/server/lib/wlw-lang.jar;${weblogic.home}/server/lib/weblogic.jar;${weblogic.home}/common/eval/pointbase/lib/pbserver44.jar;${weblogic.home}/common/eval/pointbase/lib/pbclient44.jar;${weblogic.home}/server/lib/webservices.jar;${weblogic.home}/server/lib/webserviceclient.jar;${weblogic.home}/server/lib/webserviceclient+ssl.jar;${weblogic.home}/server/lib/wli.jar;${weblogic.home}/server/lib/xbean.jar;${weblogic.home}/server/lib/wlxbean.jar;${weblogic.home}/server/lib/xqrl.jar;${weblogic.home}/server/lib/netui/netui-compiler.jar;${mit.classpath}/
 property environment=env /
 property name=java.home value=C:\bea\jdk142_04/
 taskdef name=wlwBuild classname=workshop.core.WlwBuildTask
  classpath=${weblogic.home}/workshop/wlw-ide.jar/
 
   !--target name=wbuild depends=init--
   target name=build depends=wbuild/
 
   target name=wbuild 
 echo message=SourceDirectory=${app.source.dir}/${work.file}/
  echo message=output.dir=${output.dir}/
  echo message=server.classpath=${server.classpath}/
  echo message=env.JAVA_HOME=${env.JAVA_HOME}/
 
 wlwBuild work=${app.source.dir}/${work.file}
  serverclasspath=${server.classpath}
 build project=WPSEjb/
 /wlwBuild
   /target
  /project
 
  I can't use this plugin
  http://mojo.codehaus.org/exec-maven-plugin/index.html As i have
 limitation
  to USE wlwBuild command from Build.xml as this is the only command which
  generated my class files with all information in .WORK file of my
 project.
 
 
  So i am not sure how can i apply MAVEN ANT Plugin to compile with java
  version 1.4.2, I am really struggling to get the answer on this. And i am
  stuck here.
 
  But i assume that you can provide compiler information in
  maven-antrun-plugin to execute your build.xml which is not possible with
  plugin. That's real limitation to use this plugin i guess.
 
  Please advice me some work around for my problem.
 
  Thanks,
  daivish.
 
 
 
 
  On Wed, Aug 10, 2011 at 11:09 PM, Anders Hammar and...@hammar.net
 wrote:
 
  I agree with Stephen. The issues come from the fact that the ant job
 does
  too much, i.e. both generates the classes and compiles them. I have had
 my
  fair share of these issues using tools in Maven which originated from
 Ant
  land. Maven has a different approach.
  One possible half-way approach is to stay with the antrun plugin to
  generate
  the Java classes and bind that to the correct phase, and then use the
  compiler plugin to compile them. (But do understand that this will still
  cause you headache should you try to use m2eclipse v1.0+, as it will not
  know how to treat the antrun execution. It is then much better to have
  specific plugin for the code generation.)
 
  /Anders
 
  On Thu, Aug 11, 2011 at 07:45, Stephen Connolly 
  stephen.alan.conno...@gmail.com wrote:
 
   sounds like he'd be better off pitching the ant build for a full maven
   build
   and using toolchains to get m-compiler-p compiling with 1.4... or
  pitching
   maven and using ant.
  
   - Stephen
  
   ---
   Sent from my Android phone, so random spelling mistakes, random
 nonsense
   words and other nonsense are a direct result of using swype to type on
  the
   screen
   On 11 Aug 2011 05:23, Barrie Treloar baerr...@gmail.com wrote:
On Thu, Aug 11, 2011 at 9:47 AM, Daivish Shah 
 daivish.s...@gmail.com
   

Re: MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version

2011-08-11 Thread Daivish Shah
Hi Wayne,

We can't move all projects to MAVEN at this moment so idea is to convert
some projects from ANT to MAVEN and slowly slowly we can implement or
convert all project from ANT to MAVEN.

So this is just a start and to make people happy.  I know this is not
realistic solution but have to do it.

Thanks,
daivish.

On Thu, Aug 11, 2011 at 9:48 AM, Wayne Fay wayne...@gmail.com wrote:

  I can't apply JAVAC in my BUILD.XML as i am using Weblogic Workshop
 related
  .WORK file under my build.xml and there is no way to specify JAVAC for
 this
  wlwBuild Command.

 There *are* projects where Maven is simply unsuited for the task at
 hand (or using Maven simply overcomplicates things without a
 significant improvement in the build process) and you really should
 just stick with your existing build process.

 This may be one of them. Why are you trying to migrate away from Ant
 for this specific project?

 Wayne

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




Re: MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version

2011-08-11 Thread Daivish Shah
HI Stephen,

I tried the way your way...

  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdexec-maven-plugin/artifactId
version1.2/version
executions
  execution
idinstall/id
phaseinstall/phase
goals
  goalexec/goal
/goals
  /execution
/executions
configuration
  executableC:\test\WPSEjb.bat/executable
/configuration
  /plugin

I am getting exception like this.

 [wlwBuild] [Build] Build project WPSEjb started.
 [wlwBuild] [Build] BUILD STARTED
 [wlwBuild] [Build] build:
 [wlwBuild] [Build] check-env:
 [wlwBuild] [Build] Checking to see if there is anything new to build...
 [wlwBuild] [Build] no-ejbgen:
 [wlwBuild] [Build] run-build:
 [wlwBuild] [Build] clean-modules:
 [wlwBuild] [Build] Running EJBGen...
 [wlwBuild] [Build] java.lang.NoClassDefFoundError: com/sun/javadoc/RootDoc
 [wlwBuild] [Build] Exception in thread main
 [wlwBuild] [Build] Java returned: 1
 [wlwBuild] [Build] BUILD FAILED
 [wlwBuild] [Build] Java returned: 1
 [wlwBuild] [Build]



Let me know how can i setup JAVA_HOME here ?

Thanks,
daivish.


On Thu, Aug 11, 2011 at 10:00 AM, Daivish Shah daivish.s...@gmail.comwrote:

 HI Stephen,


 Use http://mojo.codehaus.org/exec-maven-plugin/exec-mojo.html to run
 ANT and you can provide the ENV variables to your hearts content.


 For this can you give me example how can i setup JAVA_HOME by using
 exec-maven-plugin ? I think I can apply ant -f WPSEjb_build.xml build
 command in this plugin.  But please let me know how can i setup My JAVA_HOME
 here ?

 Thanks for your help Stephen.

 thanks,
 daivish.


 On Thu, Aug 11, 2011 at 9:10 AM, Stephen Connolly 
 stephen.alan.conno...@gmail.com wrote:

 Use http://mojo.codehaus.org/exec-maven-plugin/exec-mojo.html to run
 ANT and you can provide the ENV variables to your hearts content.

 Or use the http://ant.apache.org/manual/Tasks/exec.html to fork ANT
 with the correct environment variables set.

 On 11 August 2011 17:06, Daivish Shah daivish.s...@gmail.com wrote:
  Hi Barrie,
 
  I can't apply JAVAC in my BUILD.XML as i am using Weblogic Workshop
 related
  .WORK file under my build.xml and there is no way to specify JAVAC for
 this
  wlwBuild Command.
 
  My code for build.xml is something like this.
 
 
  ?xml version=1.0 encoding=UTF-8 ?
  project name=WLW build default=build
 
 property file=local.properties /
 property file=reference.properties /
 
 property name=app.source.dir value=C:\WPS /
 property name=work.file  value=WPS.work /
 property name=output.dir value=C:\TEST /
 property name=server.classpath
 
 value=${java.home}/jre/lib/rt.jar;${java.home}/lib/tools.jar;${weblogic.home}/server/lib/knex.jar;${weblogic.home}/common/lib/log4j.jar;${weblogic.home}/server/lib/debugging.jar;${weblogic.home}/javelin/lib/javelin.jar;${weblogic.home}/server/lib/wlw-lang.jar;${weblogic.home}/server/lib/weblogic.jar;${weblogic.home}/common/eval/pointbase/lib/pbserver44.jar;${weblogic.home}/common/eval/pointbase/lib/pbclient44.jar;${weblogic.home}/server/lib/webservices.jar;${weblogic.home}/server/lib/webserviceclient.jar;${weblogic.home}/server/lib/webserviceclient+ssl.jar;${weblogic.home}/server/lib/wli.jar;${weblogic.home}/server/lib/xbean.jar;${weblogic.home}/server/lib/wlxbean.jar;${weblogic.home}/server/lib/xqrl.jar;${weblogic.home}/server/lib/netui/netui-compiler.jar;${mit.classpath}/
 property environment=env /
 property name=java.home value=C:\bea\jdk142_04/
 taskdef name=wlwBuild classname=workshop.core.WlwBuildTask
  classpath=${weblogic.home}/workshop/wlw-ide.jar/
 
   !--target name=wbuild depends=init--
   target name=build depends=wbuild/
 
   target name=wbuild 
 echo message=SourceDirectory=${app.source.dir}/${work.file}/
  echo message=output.dir=${output.dir}/
  echo message=server.classpath=${server.classpath}/
  echo message=env.JAVA_HOME=${env.JAVA_HOME}/
 
 wlwBuild work=${app.source.dir}/${work.file}
  serverclasspath=${server.classpath}
 build project=WPSEjb/
 /wlwBuild
   /target
  /project
 
  I can't use this plugin
  http://mojo.codehaus.org/exec-maven-plugin/index.html As i have
 limitation
  to USE wlwBuild command from Build.xml as this is the only command
 which
  generated my class files with all information in .WORK file of my
 project.
 
 
  So i am not sure how can i apply MAVEN ANT Plugin to compile with java
  version 1.4.2, I am really struggling to get the answer on this. And i
 am
  stuck here.
 
  But i assume that you can provide compiler information in
  maven-antrun-plugin to execute your build.xml which is not possible with
  plugin. That's real limitation to use this plugin i guess.
 
  Please advice me some work around for my problem.
 
  Thanks,
  

problems loading correct class, using maven 2.2.1 and jdk1.6

2011-08-11 Thread glenh
Hey,

We're using web service annotations for our application and running into a
strange problem.  During compilation we get an error stating that it can't
find a specific constructor(s).  The problem is that the class that has the
correct constructor is located in a third party jar (from geranimo and yes
I've specified in classpath/dependency) but the classloader is picking up a
similar class in the rt.jar (I'm assuming from the bootclasspath based on
how the classloader works I think).  The particular class in question is the
Service class.

I believe this has been corrected in jdk1.7 but unfortunately we need it for
jdk1.6.

Is there a way I can ignore finding the class in rt.jar in maven?  As a
temporary solution, we've specified the jar we want to use in the
bootclasspath when we invoke the compiler-plugin.  I'm hoping we don't need
to write our own classloader if at all possible...

Thanks in advance.

--
View this message in context: 
http://maven.40175.n5.nabble.com/problems-loading-correct-class-using-maven-2-2-1-and-jdk1-6-tp4690291p4690291.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version

2011-08-11 Thread Wayne Fay
 We can't move all projects to MAVEN at this moment so idea is to convert
 some projects from ANT to MAVEN and slowly slowly we can implement or
 convert all project from ANT to MAVEN.

You don't understand my point. I am not asking why you can't move ALL
your projects from Ant to Maven. I am asking why you are moving ANY
projects from Ant to Maven.

I don't see how any of this work is giving you a better build
environment. You are simply trading complex Ant builds that work for
complex Maven builds that just call Ant that don't (right now at
least) work.

What is the purpose for moving from Ant to Maven in such environments?

Wayne

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



Re: checkstyle and JavadocPackage module

2011-08-11 Thread Simone Tripodi
Salut Olivier,
I just realized in the dev@ ML that waiting for next checkstyle plugin
release is a matter of moments, so I'll wait for it :P
Thanks for your efforts, all the best!
Simo

http://people.apache.org/~simonetripodi/
http://www.99soft.org/



On Thu, Aug 11, 2011 at 5:11 PM, Simone Tripodi
simonetrip...@apache.org wrote:
 Salut Olivier!!!
 thanks a lot for your reply and sorry for writing so late (and missed
 the messages on Twitter - I'm working on sume stuff as bricklayer
 @home these days :P).
 So my question is: how to configure current checkstyle plugin in order
 to handle package-info.java insead of package.html?
 Many thanks in advance, have a nice day!!!
 All the best, a bientot!
 Simo

 http://people.apache.org/~simonetripodi/
 http://www.99soft.org/



 On Thu, Aug 11, 2011 at 3:49 PM, Olivier Lamy ol...@apache.org wrote:
 Hello Simone,
 I think this JavadocPackage comes with 5.0 checkstyle version. (see
 release note [1] )

 As I can see checkstyle plugin in commons is 2.2 which use checkstyle 4.4.

 Maybe time to upgrade :-) (checktyle plugin 2.7 will be available soon)

 --
 Olivier Lamy
 Talend : http://talend.com
 http://twitter.com/olamy | http://linkedin.com/in/olamy

 [1] http://checkstyle.sourceforge.net/releasenotes.html

 2011/8/11 Simone Tripodi simonetrip...@apache.org:
 Hi all,
 In apache commons functor[1] (sandbox) I'm trying to enable the
 JavadocPackage checkstyle module, unfortunately I'm getting the
 following error:

 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-site-plugin:3.0-beta-3:site
 (default-site) on project commons-functor: Error during page
 generation: Error rendering Maven report: Failed during checkstyle
 configuration: cannot initialize module JavadocPackage - Unable to
 instantiate JavadocPackage: Unable to instantiate JavadocPackageCheck
 - [Help 1]

 Is there any way I can configure checkstyle in order to accept that module?
 My environment is

 $ mvn --version
 Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
 Maven home: /Applications/apache-maven-3.0.3
 Java version: 1.5.0_24, vendor: Apple Inc.
 Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x, version: 10.6.4, arch: i386, family: unix

 Many thanks in advance, have a nice day!!!
 Simo

 [1] https://svn.apache.org/repos/asf/commons/sandbox/functor/trunk

 http://people.apache.org/~simonetripodi/
 http://www.99soft.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: MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version

2011-08-11 Thread Daivish Shah
 What is the purpose for moving from Ant to Maven in such environments?

The purpose is to maintain different versions and to identify which version
of JAR or EAR has issue so we can identify it quickly.

Thanks,
daivish.

On Thu, Aug 11, 2011 at 10:30 AM, Wayne Fay wayne...@gmail.com wrote:

  We can't move all projects to MAVEN at this moment so idea is to convert
  some projects from ANT to MAVEN and slowly slowly we can implement or
  convert all project from ANT to MAVEN.

 You don't understand my point. I am not asking why you can't move ALL
 your projects from Ant to Maven. I am asking why you are moving ANY
 projects from Ant to Maven.

 I don't see how any of this work is giving you a better build
 environment. You are simply trading complex Ant builds that work for
 complex Maven builds that just call Ant that don't (right now at
 least) work.

 What is the purpose for moving from Ant to Maven in such environments?

 Wayne

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




Discrepancy in SNAPSHOT jar filename between JAR Plugin and Assembly Plugin

2011-08-11 Thread Michael Remijan
I am seeing an interesting discrepancy between the JAR plugin and the Assembly 
plugin.  

I have the JAR plugin configured to add the dependencies to the MANIFEST:

    plugin
    groupIdorg.apache.maven.plugins/groupId
    artifactIdmaven-jar-plugin/artifactId
    configuration  
   archive
   manifest
   addClasspathtrue/addClasspath
   classpathPrefixlib/classpathPrefix
   mainClassorg.myapp.main.Main/mainClass
   /manifest    
   /archive
    /configuration
    /plugin

The JAR file name will be added to the MANIFEST like this. . .

        Class-Path: lib/my-commons-1.0.6-SNAPSHOT.jar [...etc]

So far so good.

Now, I have the Assembly plugin configured to add the dependencies to the /lib 
directory of an archive:


assembly

    dependencySets
    dependencySet
    useProjectArtifactfalse/useProjectArtifact
    outputDirectory/lib/outputDirectory
    useDefaultExcludestrue/useDefaultExcludes
    /dependencySet
    /dependencySets
/assembly

When the Assembly plugin builds the archive, the name of the jarfile is NOT 
my-commons-1.0.6-SNAPSHOT.jar!  Instead what I get is 
my-commons-1.0.6-20110810.204640-23.jar


$ ll my-commons*
-rwx--+ 1 mike Users Users 48805 Aug 11 08:53 
my-commons-1.0.6-20110810.204640-23.jar

Major Problem!! 

Anyone know why this is happening?  I am using Maven 2.0.9 and I'm stuck with 
this version and cannot change it!

Re: MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version

2011-08-11 Thread Daivish Shah
HI All,

Thanks for your help.

I am able to build my JAR file by using following command.


  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdexec-maven-plugin/artifactId
version1.2/version
executions
  execution
idinstall/id
phaseinstall/phase
goals
  goalexec/goal
/goals
  /execution
/executions
configuration
  executableC:\Documents and
Settings\DS100193\workspace\WorkCenterPlatformMavenProject\WPSEjb\WPSEjb.bat/executable
/configuration
  /plugin

Thanks all for your help. And special thanks to Stephen.

-Daivish.

On Thu, Aug 11, 2011 at 10:46 AM, Daivish Shah daivish.s...@gmail.comwrote:

 What is the purpose for moving from Ant to Maven in such environments?

 The purpose is to maintain different versions and to identify which version
 of JAR or EAR has issue so we can identify it quickly.

 Thanks,
 daivish.


 On Thu, Aug 11, 2011 at 10:30 AM, Wayne Fay wayne...@gmail.com wrote:

  We can't move all projects to MAVEN at this moment so idea is to convert
  some projects from ANT to MAVEN and slowly slowly we can implement or
  convert all project from ANT to MAVEN.

 You don't understand my point. I am not asking why you can't move ALL
 your projects from Ant to Maven. I am asking why you are moving ANY
 projects from Ant to Maven.

 I don't see how any of this work is giving you a better build
 environment. You are simply trading complex Ant builds that work for
 complex Maven builds that just call Ant that don't (right now at
 least) work.

 What is the purpose for moving from Ant to Maven in such environments?

 Wayne

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





Re: checkstyle and JavadocPackage module

2011-08-11 Thread Olivier Lamy
2011/8/11 Simone Tripodi simonetrip...@apache.org:
 Salut Olivier!!!
 thanks a lot for your reply and sorry for writing so late (and missed
 the messages on Twitter - I'm working on sume stuff as bricklayer
 @home these days :P).
 So my question is: how to configure current checkstyle plugin in order
 to handle package-info.java insead of package.html?

See http://checkstyle.sourceforge.net/config_javadoc.html
As I understand  check of package-info.java is the default value if
you add this simple line in your checkstyle configuration :
module name=JavadocPackage/


 Many thanks in advance, have a nice day!!!
 All the best, a bientot!
 Simo

 http://people.apache.org/~simonetripodi/
 http://www.99soft.org/



 On Thu, Aug 11, 2011 at 3:49 PM, Olivier Lamy ol...@apache.org wrote:
 Hello Simone,
 I think this JavadocPackage comes with 5.0 checkstyle version. (see
 release note [1] )

 As I can see checkstyle plugin in commons is 2.2 which use checkstyle 4.4.

 Maybe time to upgrade :-) (checktyle plugin 2.7 will be available soon)

 --
 Olivier Lamy
 Talend : http://talend.com
 http://twitter.com/olamy | http://linkedin.com/in/olamy

 [1] http://checkstyle.sourceforge.net/releasenotes.html

 2011/8/11 Simone Tripodi simonetrip...@apache.org:
 Hi all,
 In apache commons functor[1] (sandbox) I'm trying to enable the
 JavadocPackage checkstyle module, unfortunately I'm getting the
 following error:

 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-site-plugin:3.0-beta-3:site
 (default-site) on project commons-functor: Error during page
 generation: Error rendering Maven report: Failed during checkstyle
 configuration: cannot initialize module JavadocPackage - Unable to
 instantiate JavadocPackage: Unable to instantiate JavadocPackageCheck
 - [Help 1]

 Is there any way I can configure checkstyle in order to accept that module?
 My environment is

 $ mvn --version
 Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
 Maven home: /Applications/apache-maven-3.0.3
 Java version: 1.5.0_24, vendor: Apple Inc.
 Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x, version: 10.6.4, arch: i386, family: unix

 Many thanks in advance, have a nice day!!!
 Simo

 [1] https://svn.apache.org/repos/asf/commons/sandbox/functor/trunk

 http://people.apache.org/~simonetripodi/
 http://www.99soft.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





-- 
Olivier Lamy
Talend : http://talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

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



[ANN] Maven Checkstyle Plugin 2.7 Released

2011-08-11 Thread Olivier Lamy
Hi,

The Maven team is pleased to announce the release of the Maven
Checkstyle Plugin, version 2.7.

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

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

plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-checkstyle-plugin/artifactId
 version2.7/version
/plugin

Release Notes - Maven 2.x Checkstyle Plugin - Version 2.7

** Bug
* [MCHECKSTYLE-149] - supressionsFileExpression does not work.
* [MCHECKSTYLE-153] - Checkstyle doesn't run on projects
containing only test classes
* [MCHECKSTYLE-156] - Plugin fails to build on Mac OS
* [MCHECKSTYLE-163] - Test classpath resolution fails in mvn
check:check when includeTestSourceDirectory = true


** Improvement
* [MCHECKSTYLE-132] - Upgrade to Checkstyle 5.3
* [MCHECKSTYLE-162] - Upgrade to checkstyle 5.4

Have Fun,
--
The Maven team

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



Re: Help:Calling plugin from a remote repository

2011-08-11 Thread goutham
hey Barrie

I dint read completely the suggested sources. I am in short of time so read
few which help in picking up artifact's from repository.

Yes i agree with your statement of checking remote repo only is bad idea , i
missed the point Any released artifact NEVER changes .

Thanks for the help :)


--
View this message in context: 
http://maven.40175.n5.nabble.com/Help-Calling-plugin-from-a-remote-repository-tp4685594p4691812.html
Sent from the Maven - Users mailing list archive at Nabble.com.

Re: Help:Calling plugin from a remote repository

2011-08-11 Thread goutham
Wayne Fay,

The other idea was having Mirror tag point to remote repo. :)
But configuring another repo made the trick.

Thanks for the Help
-Goutham

On Thu, Aug 11, 2011 at 12:41 AM, Wayne Fay [via Maven] 
ml-node+4686902-1392576678-220...@n5.nabble.com wrote:

   Can this be the other way ?

 What is the other way?

   mirrorOfcentral/mirrorOf
 
  also trying to download the other dependencies(ex:
  plexus-interactivity-api)  form the same repo which dont exist.

 Saying a repo is a mirror of Central means that all artifacts which
 do exist in Central must also exist in this mirror. If you don't want
 to actually host all those files and cannot, for whatever reason,
 configure your repo so that it automatically downloads such files on
 demand etc, then you cannot say this repo is a mirror of Central.
 Instead, you must configure it as simply another repository in
 settings.xml.

 Wayne

 -
 To unsubscribe, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4686902i=0
 For additional commands, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4686902i=1



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

 http://maven.40175.n5.nabble.com/Help-Calling-plugin-from-a-remote-repository-tp4685594p4686902.html
  To unsubscribe from Help:Calling plugin from a remote repository, click
 herehttp://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4685594code=Z291dGhhbS52YXNpcmVkZGlAZ21haWwuY29tfDQ2ODU1OTR8MTY3OTUzMTU3NQ==.




--
View this message in context: 
http://maven.40175.n5.nabble.com/Help-Calling-plugin-from-a-remote-repository-tp4685594p4691821.html
Sent from the Maven - Users mailing list archive at Nabble.com.

Re: Help:Calling plugin from a remote repository

2011-08-11 Thread goutham
On Thu, Aug 11, 2011 at 5:22 AM, Daivish Shah [via Maven] 
ml-node+4687779-706532986-220...@n5.nabble.com wrote:

 You have to create Profile for that..

 If you will put following entry in your settings.xml file it will first
 look
 at the remote repository and then it will look for your local repository.
 Basically you need to create profile

 profile
 idRepository Proxy/id
 activation
 activeByDefaulttrue/activeByDefault
 /activation
   repositories
 repository
 idarchiva.internal/id
 urlhttp://localhost:8080/archiva/repository/internal/
 /url
 releases
 enabledtrue/enabled
 /releases
 snapshots
 enabledfalse/enabled
 /snapshots
 /repository
 /repositories
   /profile



 If you will create mirror then it will only look for defined repository
 only. It will not look for remote in this case.


 I hope it helps.


Yup , profile tag made the trick. Thanks for the help =)

~Goutham


 Thanks,
 daivish.



 On Wed, Aug 10, 2011 at 4:35 PM, Barrie Treloar [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4687779i=0
 wrote:

  On Thu, Aug 11, 2011 at 12:06 AM, goutham [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4687779i=1

  wrote:
   I want it to restrict to the remote repo only. It should not look into
  local
   repo , at least first it have to look in remote and then go for local
  
   On Wed, Aug 10, 2011 at 6:02 PM, Anders Hammar [via Maven] 
   [hidden email] http://user/SendEmail.jtp?type=nodenode=4687779i=2
 wrote:
  
   Short answer: it's the same command
  
   somewhat longer answer: Maven will first look in your local repo. If
 not
   found there, it will look in the configured remote repos (and download

  to
   your local repo if found).
  
   Maybe reading some of the first chapters in some Maven book will give
  you a
  
   better idea on how Maven works. You'll find two free books here [1].
  
   /Anders
  
   [1] http://www.sonatype.com/Support/Books
 
  Did you go and read the suggested sources?
 
  I don't undetstand why you would want to check remote repo only.
  Any released artifact NEVER changes, so if its in your local repo its
  identical to what would be on the remote repo.
  This saves you networks connection and download times, which is a good
  thing.
 
  As Wayne points out, you can always delete ~/.m2/repository (or
  specific parts of it) with no issues.
  Maven will just re-download the versions again.
 
  -
  To unsubscribe, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4687779i=3
  For additional commands, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4687779i=4
 
 


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

 http://maven.40175.n5.nabble.com/Help-Calling-plugin-from-a-remote-repository-tp4685594p4687779.html
  To unsubscribe from Help:Calling plugin from a remote repository, click
 herehttp://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4685594code=Z291dGhhbS52YXNpcmVkZGlAZ21haWwuY29tfDQ2ODU1OTR8MTY3OTUzMTU3NQ==.




--
View this message in context: 
http://maven.40175.n5.nabble.com/Help-Calling-plugin-from-a-remote-repository-tp4685594p4691827.html
Sent from the Maven - Users mailing list archive at Nabble.com.