Re: My application is not getting compiled using Maven

2009-10-07 Thread rasahere

unmappable character for encoding UTF8 is the warning which i am getting.
I have removed old version jar files and added new version then it is giving 
following error

The build cannot continue because of the following unsatisfied dependencies:

commons-jelly-20030902.160215.jar
velocity-1.4-dev.jar

Total time: 5 seconds

this jar files are not refereced from my application. I think it is from
maven 1.0 project only. In maven lib commons-jelly-20030902.160215.jar is
there , but not the second one.

Any idea where it looks for the jar 

Lukas Theussl-4 wrote:
> 
> 
> 
> rasahere wrote:
>> what value i should give here
> 
> Whatever your source files are encoded in.
> 
>> is it like maven.compile.encoding=UTF8
> 
> I guess it's something else as the error suggests.
> 
> -Lukas
> 
> 
>> 
>> 
>> Lukas Theussl-4 wrote:
>>>
>>> Setting the maven.compile.encoding property should be more useful for
>>> your
>>> case 
>>> than maven.compile.source.
>>>
>>> HTH,
>>> -Lukas
>>>
>>>
>>> Thomas Sundberg wrote:
 Hi!

 What happens if you remove the unmappable character?
 Have you been able to compile before or is this a new setup?
 Can you restart with the simplest Hello World and get that to compile?
 What happens if you use Maven 2?

 /Thomas

 On Wed, Sep 23, 2009 at 08:29, rasahere 
 wrote:
> Hi,
>
> I am using Maven 1.0 and my jdk is 1.5. Now when i am trying to build
> my
> application jar i am getting some strange errors.
>
>  warning: unmappable character for encoding UTF8
>[javac] /**
>[javac] ^
> this is just a warning but still the build is failed.
> I have added
> maven.compile.source=1.5
> maven.compile.target=1.5
> in my project properties.
>
> Can any one give a solution for this.
>
> Thanks
> Rasa.
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/My-application-is-not-getting-compiled-using-Maven-tp25530996p25530996.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/My-application-is-not-getting-compiled-using-Maven-tp25530996p25799285.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: Getting error while configuring Maven

2009-10-07 Thread anshree123

Hi thanks for the reply..
Here is the entire settings.xml file.






http://maven.apache.org/SETTINGS/1.0.0";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd";>
  

  

  

  
  

  

  
  


  true
  http
  258150
  p...@ssword
  proxy.tcs.com
  80
 
  

  
  



  

  
  

  

  
  



  

  


Anders Hammar wrote:
> 
> Could you please post your proxy configuration in your settings.xml?
> 
> /Anders
> 
> On Wed, Oct 7, 2009 at 12:20, anshree123  wrote:
> 
>>
>> Hi everyone.
>> I am working with ServiceMix ESB and for that i need maven configured on
>> my
>> system.
>> I work behind a proxy so i did the proxy settings in settings.xml file in
>> ${Maven_Home}/conf/settings.xml.
>> But when i run the command mvn jetty:run or for that matter mvn install
>> for
>> a pom.xml file, then i get the following exception:
>>
>> [INFO] Scanning for projects...
>> [INFO] Searching repository for plugin with prefix: 'jetty'.
>> [INFO] org.apache.maven.plugins: checking for updates from central
>> [WARNING] repository metadata for: 'org.apache.maven.plugins' could not
>> be
>> retrieved from repository: central due to an error: Error transferring
>> file
>> [INFO] Repository 'central' will be blacklisted
>> [INFO]
>> 
>> [ERROR] BUILD ERROR
>> [INFO]
>> 
>> [INFO] The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does not
>> exist or no valid version could be found
>> [INFO]
>> 
>> [INFO] Trace
>> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
>> 'org.apache.maven.plugins:maven-jetty-plugin' does not exist or no valid
>> version could be found
>>at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1281)
>>at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1517)
>>at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:381)
>>at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:135)
>>at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>>at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>>at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>at
>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>at
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>at java.lang.reflect.Method.invoke(Method.java:597)
>>at
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>at
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> Caused by:
>> org.apache.maven.plugin.version.PluginVersionNotFoundException:
>> The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does not exist
>> or
>> no valid version could be found
>>at
>>
>> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:226)
>>at
>>
>> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:87)
>>at
>>
>> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:158)
>>at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1252)
>>... 14 more
>> [INFO]
>> 
>> [INFO] Total time: 43 seconds
>> [INFO] Finished at: Wed Oct 07 15:28:47 IST 2009
>> [INFO] Final Memory: 1M/4M
>> [INFO]
>> 
>>
>> Do I have to do some other configurations??
>> Please help me out...
>> Thanks in advance for any help.
>>
>> Regards,
>> Anushree
>> --
>> View this message in context:
>> http://www.nabble.com/Getting-error-while-configuring-Maven-tp25783764p25783764.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/Getting-error-while-config

Setting Java heap space

2009-10-07 Thread Lionel van den Berg
Hi all,

I'm having some issues with Java heap space. To get around this I have added
the line "MAVEN_OPTS=-Xmx128m" to my mvn.bat file.

However, I would prefer to set it on a project by project basis or even on
command line. Is it possible to pass it as an argument when running "mvn
..."? Or can it be added to the POM? I see it can be for the javadoc plugin.
Ideally I only need it in the testing phase.

Any help appreciated.

Cheers

Lionel.


pdf/site plugin and images not found

2009-10-07 Thread Roberto Lo Giacco

The PDF plugin seems not able to find my site images producing this output:

[DEBUG] Configuring mojo 
'org.apache.maven.plugins:maven-pdf-plugin:1.0:pdf' -->

[DEBUG]   (f) aggregate = true
[DEBUG]   (f) docDescriptor = /shared/Java/smartweb/core/doc/site/pdf.xml
[DEBUG]   (f) implementation = fo
[DEBUG]   (f) localRepository = [local] -> file:///shared/.m2
[DEBUG]   (f) outputDirectory = /shared/Java/smartweb/core/etc/out/site
[DEBUG]   (f) pluginVersion = 1.0
[DEBUG]   (f) project = MavenProject: 
net.smartlab.web:smartweb:1.2.14-SNAPSHOT @ 
/shared/Java/smartweb/core/pom.xml

[DEBUG]   (f) siteDirectory = /shared/Java/smartweb/core/doc/site
[DEBUG]   (f) workingDirectory = /shared/Java/smartweb/core/etc/out/pdf
[DEBUG] -- end configuration --
[INFO] [pdf:pdf]
[DEBUG] Mapped url: /shared/Java/smartweb/core/doc/site to relative 
path: doc/site

[DEBUG] maven-default-skin: resolved to version 1.0 from repository central
[DEBUG] Copy resources from skin artifact: 
'/shared/.m2/org/apache/maven/skins/maven-default-skin/1.0/maven-default-skin-1.0.jar'...
[DEBUG] The file '/shared/Java/smartweb/core/etc/out/site/css/site.css' 
does not exists. Creating an empty file.
[DEBUG] Interpolated document descriptor 
(/shared/Java/smartweb/core/doc/site/pdf.xml)
http://maven.apache.org/DOCUMENT/1.0.1"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://maven.apache.org/DOCUMENT/1.0.1 
http://maven.apache.org/xsd/document-1.0.1.xsd";

 outputName="maven-pdf-plugin-1.2.14-SNAPSHOT">

 
   The SmartWeb Framework
   The SmartWeb Project
 

 
   
   
   
   
   
 

 
   SmartWeb
   ver. 1.2.14-SNAPSHOT
   User Guide
   SmartWeb
   
http://maven.apache.org/images/maventxt_logo_200.gif

   The SmartWeb Team
   
http://www.apache.org/images/asf_logo_wide.png

 



[DEBUG] Using TOC defined in the document descriptor.
[DEBUG] Parsing file 
/shared/Java/smartweb/core/doc/site/apt/./introducing.apt
[DEBUG] Parsing file 
/shared/Java/smartweb/core/doc/site/apt/./architecture.apt
[DEBUG] Parsing file 
/shared/Java/smartweb/core/doc/site/apt/./presentation.apt

[DEBUG] Parsing file /shared/Java/smartweb/core/doc/site/apt/./model.apt
[DEBUG] Parsing file /shared/Java/smartweb/core/doc/site/fml/./faq.fml
[DEBUG] [FO Sink] Unknown Sink event: 'br', ignoring!
[DEBUG] [FO Sink] Unknown Sink event: 'br', ignoring!
[DEBUG] [FO Sink] Unknown Sink event: 'br', ignoring!
[DEBUG] [FO Sink] Unknown Sink event: 'br', ignoring!
[DEBUG] Generating: 
/shared/Java/smartweb/core/etc/out/site/maven-pdf-plugin-1.2.14-SNAPSHOT.pdf
ERROR [org.apache.fop.fo.FONode:83] 2009-10-08 01:58:59,060 - Image not 
found: images/overview.png
ERROR [org.apache.fop.fo.FONode:83] 2009-10-08 01:58:59,220 - Image not 
found: images/overview-presentation.png
[INFO] 


[INFO] BUILD SUCCESSFUL
[INFO] 



and the pdf file is generated (without images). The same apt sources 
produce correct HTML output using the correct images. I tried with 
absolute paths and relative paths (with and without the leading / AND 
using the ./ prefix).


Actually my POM is heavily customized to fit the directory structure I 
want impose on my project.
I think the PDF plugin heavily relies on the SITE plugin to get 
configurations and informations so I'm going to attach here both plugin 
configuration:


 
   org.apache.maven.plugins
   maven-site-plugin
   2.0-beta-4
   
 en
 etc/site
 doc/site
 res/site
 UTF-8
 
file://${basedir}/res/site/css/

 maven-site.vm
   
 
 
   org.apache.maven.plugins
   maven-pdf-plugin
   
 
   site
   pdf
 
   
   
 ${basedir}/doc/site
 ${basedir}/doc/site/pdf.xml
 ${basedir}/etc/site
   
   

I'm experiencing two distinct problems:

1) when I generate my site an additional target/site/images directory 
structure is created on my project root folder and it contains only the 
images used by the surefire report, those images are available under the 
correct etc/out/site directory I explicitly setted as output folder. 
This is a minor problem as I usually remove that directory structure 
after site creation and I considered it a side effect may be caused by 
I've not specified a  configuration**


2) when I generate the pdf the contents of etc/out/pdf/images is:
collapsed.gif
expanded.gif
external.png
icon_error_sml.gif
icon_info_sml.gif
icon_success_sml.gif
icon_warning_sml.gif
newwindow.png
logos/build-by-maven-black.png
logos/build-by-maven-white.png
logos/maven-feather.png

--

 Roberto Lo Giacco

 Chief Technical Officer
 SmartLab s.r.l.
 via Spagna, snc - 87036 Rende (CS) - Italy

 Mobile: +39 392 8765657
 Email: rlogia...@smartlab.net
 Skype: longisland-75 
 Web: http://www.smartlab.it 



---

Sonar 1.11 just released

2009-10-07 Thread Olivier Gaudin

The Sonar Team is pleased to announce the release of Sonar 1.11. The new
version brings three main functionality to the platform :

* A Components service to navigate within resources and compare them
* Addition of the branch code coverage by unit tests to complete the
coverage by line
* A metric on Commented Out code to enable its eradication

On top of this, 50 improvements and bug fixes are contained in this version.
On the technical side, the purge mechanism has been greatly optimized to
only keep necessary data.

To find more about the new version, you can have a look at "Sonar 1.11 in
screenshots" [1] or download the new version [2] 

Enjoy ! 

The Sonar Team

[1] http://sonar.codehaus.org/sonar-111-in-screenshots/
[2] http://sonar.codehaus.org/downloads/
-- 
View this message in context: 
http://www.nabble.com/Sonar-1.11-just-released-tp25794845p25794845.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: Differences between app servers

2009-10-07 Thread Brett Randall
Hi Jim

If you are not already using them, you might like to take a look at
Maven Profiles. By activating a profile, you can influence the
artifacts and resources which make up a particular build e.g.
targeting a specific appserver.

If you write a lot of web apps for deployment to different appservers,
you might end up writing your own archetype with profiles in place for
this - I'm not aware of any existing.

Brett


On 10/8/09, Jim Collings  wrote:
> Not so much.  Take Weblogic for example. You really can't deploy a
> Struts2 based WAR file to it because of library conflicts. It would be
> cool if I could specify somehow, somewhere that this is a Weblogic
> project.  Then it would always build as an ear and would include a
> weblogic-application.xml with the excludes/prefers set so that the
> conflicts don't happen. Also Weblogic insists on APP-INF rather than
> WEB-INF. Perhaps that is related to the fact that it is now an *.ear
> file though, I don't know.
>
> On Wed, Oct 7, 2009 at 3:59 AM, Brett Randall  wrote:
>> On Wed, Oct 7, 2009 at 11:21 AM, Jim C.  wrote:
>>
>>> Are there archetypes or something else out there that will differentiate
>>> between application servers?  We try to write cross platform Java and it
>>> seems like our app server vendors are fighting us tooth and nail. I
>>> suppose that is the reason for GlassFish but our shop isn't allowed to
>>> use it.
>>>
>>>
>>> Jim C.
>>>
>>>
>> What types of issue/differences are you facing? Are they compile/deploy or
>> runtime issues?
>>
>> Brett
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

-- 
Sent from my mobile device

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



Re: Access file resources from ant based plugin

2009-10-07 Thread yoyomohan

Hi ,

   I'm stuck in the same problem .pls. can you share the solution for the
problem 'placing and calling scripts [ perl ] from custom ant plugin jar
file' only.
 Thanks in advance. 



Marcel Schutte wrote:
> 
> Hello,
> 
> I've written an ant based plugin that needs access to file based
> resources. For example, an xslt task needs a file path to the stylesheet
> it applies. Simply putting this stylesheet in src/main/resources won't
> work, because it will end up in the plugin's jar file.
> 
> The only way around it I could think of was to find the plugin jar file in
> the local repository and extracting it to a temp dir. Not the most elegant
> of solutions. There is a thread on the developers list by Jason about this
> (http://www.nabble.com/-vote--Allowing-Ant-based-plugins-to-use-file-based-resources-tf2398452s177.html#a6749541).
> Does anybody know what happened to his suggestion? Has it already been
> implemented in some way?
> 
> Thanks,
> Marcel
> 
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.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/Access-file-resources-from-ant-based-plugin-tp10302575p25793654.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: resources in an ant plugin

2009-10-07 Thread yoyomohan

Hi Ben,

   I'm stuck in the same problem .pls. can you share the solution for the
problem 'placing and calling scripts [ perl ] from custom ant plugin jar
file' only.
 Thanks in advance.


BenTatham wrote:
> 
> For future finders of this message, see here for some solutions:
> http://www.nabble.com/forum/Search.jtp?forum=178&local=y&query=resources+ant
> 

-- 
View this message in context: 
http://www.nabble.com/resources-in-an-ant-plugin-tp13851971p25793596.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



release notes for plugins

2009-10-07 Thread EJ Ciramella
Is there a report (like the changes report) that the various plugins
(things like the war plugin) run?

 

I'm going through the process of upgrading to 2.2.1 of maven (from
2.0.9) and want to see what's actually changed versus just building and
diffing my brains out.

 

 



Re: Unit test project depending on WAR project code

2009-10-07 Thread Chris Bredesen

This makes sense.  Thanks Justin.

-Chris

On 10/07/2009 11:51 AM, Edelson, Justin wrote:

If you question is - can I use a WAR file as a dependency and get the classes 
inside the WAR file added to the classpath, the answer is no. This has nothing 
to do with Maven - it's Java.

-Original Message-
From: Chris Bredesen [mailto:cbrede...@redhat.com]
Sent: Wednesday, October 07, 2009 10:50 AM
To: users@maven.apache.org
Subject: Re: Unit test project depending on WAR project code

I got your meaning and I will investigate that.  I generally try to KISS and 
adding a module to create a jar to go in a war kinda violates that.
   But if it's the only way out of this, I'll try it.

Oddly, when I remove thewar  from the unit test 
project's dependency list, it works in m2eclipse (which AFIAK is based on M3).  In that 
state, maven 2.0.10 barfs completely and can't even find the dependency which is farther 
from success than what I've got.

I'd really like to see if this is meant to work in Maven or if I'm just 
DoingItWrong.

Thanks for your input Roland, must appreciated!!!

-CB

On 10/07/2009 10:43 AM, Roland Asmann wrote:

ThatÅ› not the way I meant it... Sorry if it looked that way!

When I have a WAR-project, I normally create 2 modules: 1 with the
java-code
(package: JAR) and 1 with the other WAR-stuff (JSP, CSS, etc - package: WAR).

That way, I can use the code inside the JAR as a normal dependency in
any and all tests I have.

Hope this cleared it up a bit. :-)


On Wednesday 07 October 2009 16:41, Chris Bredesen wrote:

Why stop there?  I'll just not write ANY code.  Stress-free life! :)
:)

On 10/07/2009 10:13 AM, Roland Asmann wrote:

Personally, I don't put ANY code in the WAR. That will definitely
solve your problem! :-)

On Wednesday 07 October 2009 16:03, Chris Bredesen wrote:

All,

I have split my unit tests out into a separate project which will
eventually become a module (not there yet).  I've got it mostly
sorted but I'm getting compile errors on classes that are part of
the main project which uses war packaging.

Maven doesn't seem to add the WAR's code into the test module's
test classpath correctly.  Is this a known issue?  Any idea how to
get around it?  Maven is definitely finding the artifact in my
repository; it's just not contributing the WAR's code (I think).

Any help is appreciated.

-Chris

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




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



Re: Problem compiling FlexLibrary using include directive

2009-10-07 Thread Marvin Froeder
What maven plugin are you using?
VELO

On Tue, Oct 6, 2009 at 3:03 AM, boyetp  wrote:

>
> Hi All,
>
> I hope someone can help me with my issue using Maven to compile Flex
> Library
> Project.
>
> I got this following files.
>  the class  App.as
> package com.test {
>public class App {
>include "TestIncl.as";
>public function App(){
>   super();
>}
>
>public static function greeting(name:String):String {
>return "Hello, " + name;
>}
>}
> }
>
>  the TestIncl.as as file "not a class"
>
> private var _test:String;
>
> public function set test(p:String):void{
>_test = p;
> }
>
> public function get test():String{
>return _test;
> }
>
>
> When package using mvn package.
>
> I got this following errors.
> It tries to compile the TestIncl.as script file.
> How do I solve this?
>
>
> [ERROR] C:\Users\boyetp\Documents\Flex Builder
> 3\MavenTestLib\src\main\flex\com\test\TestIncl.as:[2,1] The private
> attribute may be used only on class property definitions.private var
> _test:String;
> [ERROR] C:\Users\boyetp\Documents\Flex Builder
> 3\MavenTestLib\src\main\flex\com\
> test\TestIncl.as:[4,1] The public attribute can only be used inside a
> packag
> e.public function set test(p:String):void{
> [ERROR] C:\Users\boyetp\Documents\Flex Builder
> 3\MavenTestLib\src\main\flex\com\
> test\TestIncl.as:[8,1] The public attribute can only be used inside a
> packag
> e.public function get test():String{
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Error compiling!
> [INFO]
> 
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> 
> [INFO] Total time: 13 seconds
> [INFO] Finished at: Mon Oct 05 22:53:53 PDT 2009
> [INFO] Final Memory: 17M/127M
> [INFO]
> 
>
>
> Best,
>
> Boyetp
> --
> View this message in context:
> http://www.nabble.com/Problem-compiling-FlexLibrary-using-include-directive-tp25763364p25763364.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Maven/Nexus/Hudson/EC2

2009-10-07 Thread Michael Hüttermann
Hello,

do you plan to continue the work in the context nexus/hudson/ec2 you
kicked off and described here:
http://www.sonatype.com/people/2009/06/nexus-open-source-and-hudson-on-ec2/

E.g. are you planning to provide new Maven versions in ec2 continuously,
to add more "convenience features", .. or similar things ?


Thank you.

Best regards
Michael

--
mich...@huettermann.net
http://huettermann.net

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



Re: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread Paul Benedict
Just so you guys know, if you use a Maven plugin to set MAVEN_OPTS, it
would only take effect if Maven spawns a child process. It will never
effect the main Maven execution.

Paul

On Wed, Oct 7, 2009 at 11:24 AM, Ivalo  wrote:
> Even better is use files to put these MAVEN_OPTS definitions
>
> in Linux env : /etc/mavenrc or $HOME/.mavenrc file
>
> in Windows %HOMEDRIVE%%HOMEPATH%\mavenrc_pre.bat file which is usually
> C:\Documents and Settings\\mavenrc_pre.bat
>
> With this way each Maven user can configure exact values what they want for
> their environment.
>
> Rgds,
>
> Markku
>
> Paul Benedict wrote:
>>
>> You could set it in your mvn.bat, right?
>>
>> On Wed, Oct 7, 2009 at 10:14 AM, NGUYEN Cong Kinh
>>  wrote:
>>
>>>
>>> Hello everybody,
>>>
>>> Is there anyway to configure MAVEN_OPTS from the POM file (no variable)?
>>> For
>>> example, I want to configure Maven's memory is 768m. But I don't want to
>>> add
>>> the MAVEN_OPTS variable in the environment. This is possible to configure
>>> my
>>> POM? If yes, please send to me how to do this.
>>>
>>> Thanks in advance,
>>> Kinh
>>>
>>> -
>>> 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: Injecting custom ConflictResolver using Embedder

2009-10-07 Thread Jason van Zyl

Do not cross post between the user and dev list.

On 2009-10-07, at 8:48 AM, Fabian Christ wrote:


Hi,

I'm doing some research on conflict resolving between Java components.
Now I would like to use my own ConflictResolver during a Maven run.  
I'm
using Maven Embedder in my application and tried several ways on how  
to

manipulate the Plexus container to use my own ConflictResolver. I used
the "customize" interface that is meant to manipulate the container on
Embedder startup but an "addComponent" did not work as expected.

Can someone give me a hint how to do that? I know the Wiki page at [1]
that suggests to manipulate the POM to configure the ConflictResolver
that should be used. But I'm working with Embedder and I can not  
change

the POMs. I would like to inject my ConflictResolver as the default
resolver when the Embedder is created. But how?

Thank you,
Fabian

[1] http://docs.codehaus.org/display/MAVEN/Conflict+Resolvers

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



Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
http://twitter.com/jvanzyl
--


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



Re: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread Ivalo

Even better is use files to put these MAVEN_OPTS definitions

in Linux env : /etc/mavenrc or $HOME/.mavenrc file

in Windows %HOMEDRIVE%%HOMEPATH%\mavenrc_pre.bat file which is usually C:\Documents 
and Settings\\mavenrc_pre.bat

With this way each Maven user can configure exact values what they want 
for their environment.


Rgds,

Markku

Paul Benedict wrote:

You could set it in your mvn.bat, right?

On Wed, Oct 7, 2009 at 10:14 AM, NGUYEN Cong Kinh
 wrote:
  

Hello everybody,

Is there anyway to configure MAVEN_OPTS from the POM file (no variable)? For
example, I want to configure Maven's memory is 768m. But I don't want to add
the MAVEN_OPTS variable in the environment. This is possible to configure my
POM? If yes, please send to me how to do this.

Thanks in advance,
Kinh

-
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's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread David Hoffer
Right, maven would have to fork a new vm for the project.

On Wed, Oct 7, 2009 at 10:21 AM, Edelson, Justin <
justin.edel...@mtvstaff.com> wrote:

> No. Nor could their be, at least for the case you're describing. Maven's
> JVM has already started by the time it parses the POM. For plugins which
> fork a new VM, you may be able to provide these options. For example:
> http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-with-memory-enhancements.html
> .
>
> Justin
>
> -Original Message-
> From: NGUYEN Cong Kinh [mailto:cong_kinh.ngu...@it-sudparis.eu]
> Sent: Wednesday, October 07, 2009 12:07 PM
> To: Maven Users List
> Subject: Re: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?
>
> Hello Paul,
>
> In fact, I don't want to set this. My question is that how to directly do
> this in my POM?
>
> Kinh
>
> Paul Benedict a écrit :
> > You could set it in your mvn.bat, right?
> >
> > On Wed, Oct 7, 2009 at 10:14 AM, NGUYEN Cong Kinh
> >  wrote:
> >
> >> Hello everybody,
> >>
> >> Is there anyway to configure MAVEN_OPTS from the POM file (no
> >> variable)? For example, I want to configure Maven's memory is 768m.
> >> But I don't want to add the MAVEN_OPTS variable in the environment.
> >> This is possible to configure my POM? If yes, please send to me how to
> do this.
> >>
> >> Thanks in advance,
> >> Kinh
> >>
> >> -
> >> 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: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread David Hoffer
And the surefire plugin support this:


org.apache.maven.plugins
maven-surefire-plugin
${maven-surefire-plugin.version}

once
-Xmx1024m -XX:MaxPermSize=128M



But I don't think you can for maven itself.  I too, at times, wished there
was a way because otherwise we have to set the maven opts to the worse case
for all our poms.

-Dave

On Wed, Oct 7, 2009 at 10:19 AM, Todd Thiessen  wrote:

> I believe the compiler plugin does what you want.
>
>
> http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-with-memory-enhancements.html
>
> ---
> Todd Thiessen
>
>
> > -Original Message-
> > From: NGUYEN Cong Kinh [mailto:cong_kinh.ngu...@it-sudparis.eu]
> > Sent: Wednesday, October 07, 2009 12:07 PM
> > To: Maven Users List
> > Subject: Re: [Maven's memory] How to avoid adding the
> > MAVEN_OPTS variable?
> >
> > Hello Paul,
> >
> > In fact, I don't want to set this. My question is that how to
> > directly do this in my POM?
> >
> > Kinh
> >
> > Paul Benedict a écrit :
> > > You could set it in your mvn.bat, right?
> > >
> > > On Wed, Oct 7, 2009 at 10:14 AM, NGUYEN Cong Kinh
> > >  wrote:
> > >
> > >> Hello everybody,
> > >>
> > >> Is there anyway to configure MAVEN_OPTS from the POM file (no
> > >> variable)? For example, I want to configure Maven's memory
> > is 768m.
> > >> But I don't want to add the MAVEN_OPTS variable in the
> > environment.
> > >> This is possible to configure my POM? If yes, please send
> > to me how to do this.
> > >>
> > >> Thanks in advance,
> > >> Kinh
> > >>
> > >>
> > -
> > >> 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: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread Edelson, Justin
No. Nor could their be, at least for the case you're describing. Maven's JVM 
has already started by the time it parses the POM. For plugins which fork a new 
VM, you may be able to provide these options. For example: 
http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-with-memory-enhancements.html.

Justin

-Original Message-
From: NGUYEN Cong Kinh [mailto:cong_kinh.ngu...@it-sudparis.eu] 
Sent: Wednesday, October 07, 2009 12:07 PM
To: Maven Users List
Subject: Re: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?

Hello Paul,

In fact, I don't want to set this. My question is that how to directly do this 
in my POM?

Kinh

Paul Benedict a écrit :
> You could set it in your mvn.bat, right?
>
> On Wed, Oct 7, 2009 at 10:14 AM, NGUYEN Cong Kinh 
>  wrote:
>   
>> Hello everybody,
>>
>> Is there anyway to configure MAVEN_OPTS from the POM file (no 
>> variable)? For example, I want to configure Maven's memory is 768m. 
>> But I don't want to add the MAVEN_OPTS variable in the environment. 
>> This is possible to configure my POM? If yes, please send to me how to do 
>> this.
>>
>> Thanks in advance,
>> Kinh
>>
>> -
>> 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: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread NGUYEN Cong Kinh

Hello Todd,

This is other thing.

Thank you,
Kinh


Todd Thiessen a écrit :

I believe the compiler plugin does what you want.

http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-with-memory-enhancements.html

---
Todd Thiessen
 

  

-Original Message-
From: NGUYEN Cong Kinh [mailto:cong_kinh.ngu...@it-sudparis.eu] 
Sent: Wednesday, October 07, 2009 12:07 PM

To: Maven Users List
Subject: Re: [Maven's memory] How to avoid adding the 
MAVEN_OPTS variable?


Hello Paul,

In fact, I don't want to set this. My question is that how to 
directly do this in my POM?


Kinh

Paul Benedict a écrit :


You could set it in your mvn.bat, right?

On Wed, Oct 7, 2009 at 10:14 AM, NGUYEN Cong Kinh 
 wrote:
  
  

Hello everybody,

Is there anyway to configure MAVEN_OPTS from the POM file (no 
variable)? For example, I want to configure Maven's memory 

is 768m. 

But I don't want to add the MAVEN_OPTS variable in the 

environment. 

This is possible to configure my POM? If yes, please send 


to me how to do this.


Thanks in advance,
Kinh




-


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

  



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



RE: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread Todd Thiessen
I believe the compiler plugin does what you want.

http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-with-memory-enhancements.html

---
Todd Thiessen
 

> -Original Message-
> From: NGUYEN Cong Kinh [mailto:cong_kinh.ngu...@it-sudparis.eu] 
> Sent: Wednesday, October 07, 2009 12:07 PM
> To: Maven Users List
> Subject: Re: [Maven's memory] How to avoid adding the 
> MAVEN_OPTS variable?
> 
> Hello Paul,
> 
> In fact, I don't want to set this. My question is that how to 
> directly do this in my POM?
> 
> Kinh
> 
> Paul Benedict a écrit :
> > You could set it in your mvn.bat, right?
> >
> > On Wed, Oct 7, 2009 at 10:14 AM, NGUYEN Cong Kinh 
> >  wrote:
> >   
> >> Hello everybody,
> >>
> >> Is there anyway to configure MAVEN_OPTS from the POM file (no 
> >> variable)? For example, I want to configure Maven's memory 
> is 768m. 
> >> But I don't want to add the MAVEN_OPTS variable in the 
> environment. 
> >> This is possible to configure my POM? If yes, please send 
> to me how to do this.
> >>
> >> Thanks in advance,
> >> Kinh
> >>
> >> 
> -
> >> 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: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread Paul Benedict
You can't and you shouldn't. The POM describes a Project, not the Java
environment for Maven.

On Wed, Oct 7, 2009 at 11:07 AM, NGUYEN Cong Kinh
 wrote:
> Hello Paul,
>
> In fact, I don't want to set this. My question is that how to directly do
> this in my POM?
>
> Kinh
>
> Paul Benedict a écrit :
>>
>> You could set it in your mvn.bat, right?
>>
>> On Wed, Oct 7, 2009 at 10:14 AM, NGUYEN Cong Kinh
>>  wrote:
>>
>>>
>>> Hello everybody,
>>>
>>> Is there anyway to configure MAVEN_OPTS from the POM file (no variable)?
>>> For
>>> example, I want to configure Maven's memory is 768m. But I don't want to
>>> add
>>> the MAVEN_OPTS variable in the environment. This is possible to configure
>>> my
>>> POM? If yes, please send to me how to do this.
>>>
>>> Thanks in advance,
>>> Kinh
>>>
>>> -
>>> 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: Fetching the latest snapshot version without maven

2009-10-07 Thread Jeff Johnston
Nexus has a REST API that could help

http://www.sonatype.com/people/2008/11/searching-with-the-sonatype-nexus-rest-api-groovy/


2009/10/7 Beat Strasser 

> Hi
>
> My task is to fetch the latest snapshot version of a maven artifact. How
> can I do this without having to parse the maven-metadata.xml and figuring
> out what the latest timestamp is?
>
> We used to deploy snapshot artifacts with a unique identifier, so the
> artifacts URL was fix and I could fetch the snapshot with a simple HTTP GET
> command: group/artifact/1.0.0-SNAPSHOT/artifact-1.0.0-SNAPSHOT.jar.
> An easy and simple solution: I liked this!
>
> However this solution does not work anymore in maven 3 (we're using
> tycho-distribution-3065 to deploy artifacts). As I've understood the
> developers correctly, the uniqueVersion parameter is/will be deprecated:
>
>
> http://www.nabble.com/dropping-non-unique-snapshots-in-Maven-3-td25295809.html
>
> Does Nexus provide a fix URL for an artifacts' latest snapshot version?
>
> Is there a simple mvn command to fetch the latest snapshot version (without
> having to define a pom.xml and use dependency:copy hacks)?
>
> Does Ivy support the maven repository layout/logic?
>
> Thanks for your help,
> --
> Beat Strasser
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread NGUYEN Cong Kinh

Hello Paul,

In fact, I don't want to set this. My question is that how to directly 
do this in my POM?


Kinh

Paul Benedict a écrit :

You could set it in your mvn.bat, right?

On Wed, Oct 7, 2009 at 10:14 AM, NGUYEN Cong Kinh
 wrote:
  

Hello everybody,

Is there anyway to configure MAVEN_OPTS from the POM file (no variable)? For
example, I want to configure Maven's memory is 768m. But I don't want to add
the MAVEN_OPTS variable in the environment. This is possible to configure my
POM? If yes, please send to me how to do this.

Thanks in advance,
Kinh

-
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: Differences between app servers

2009-10-07 Thread Jim Collings
Not so much.  Take Weblogic for example. You really can't deploy a
Struts2 based WAR file to it because of library conflicts. It would be
cool if I could specify somehow, somewhere that this is a Weblogic
project.  Then it would always build as an ear and would include a
weblogic-application.xml with the excludes/prefers set so that the
conflicts don't happen. Also Weblogic insists on APP-INF rather than
WEB-INF. Perhaps that is related to the fact that it is now an *.ear
file though, I don't know.

On Wed, Oct 7, 2009 at 3:59 AM, Brett Randall  wrote:
> On Wed, Oct 7, 2009 at 11:21 AM, Jim C.  wrote:
>
>> Are there archetypes or something else out there that will differentiate
>> between application servers?  We try to write cross platform Java and it
>> seems like our app server vendors are fighting us tooth and nail. I
>> suppose that is the reason for GlassFish but our shop isn't allowed to
>> use it.
>>
>>
>> Jim C.
>>
>>
> What types of issue/differences are you facing? Are they compile/deploy or
> runtime issues?
>
> Brett
>

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



Re: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread Paul Benedict
You could set it in your mvn.bat, right?

On Wed, Oct 7, 2009 at 10:14 AM, NGUYEN Cong Kinh
 wrote:
> Hello everybody,
>
> Is there anyway to configure MAVEN_OPTS from the POM file (no variable)? For
> example, I want to configure Maven's memory is 768m. But I don't want to add
> the MAVEN_OPTS variable in the environment. This is possible to configure my
> POM? If yes, please send to me how to do this.
>
> Thanks in advance,
> Kinh
>
> -
> 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: Unit test project depending on WAR project code

2009-10-07 Thread Edelson, Justin
If you question is - can I use a WAR file as a dependency and get the classes 
inside the WAR file added to the classpath, the answer is no. This has nothing 
to do with Maven - it's Java.

-Original Message-
From: Chris Bredesen [mailto:cbrede...@redhat.com] 
Sent: Wednesday, October 07, 2009 10:50 AM
To: users@maven.apache.org
Subject: Re: Unit test project depending on WAR project code

I got your meaning and I will investigate that.  I generally try to KISS and 
adding a module to create a jar to go in a war kinda violates that. 
  But if it's the only way out of this, I'll try it.

Oddly, when I remove the war from the unit test 
project's dependency list, it works in m2eclipse (which AFIAK is based on M3).  
In that state, maven 2.0.10 barfs completely and can't even find the dependency 
which is farther from success than what I've got.

I'd really like to see if this is meant to work in Maven or if I'm just 
DoingItWrong.

Thanks for your input Roland, must appreciated!!!

-CB

On 10/07/2009 10:43 AM, Roland Asmann wrote:
> ThatÅ› not the way I meant it... Sorry if it looked that way!
>
> When I have a WAR-project, I normally create 2 modules: 1 with the 
> java-code
> (package: JAR) and 1 with the other WAR-stuff (JSP, CSS, etc - package: WAR).
>
> That way, I can use the code inside the JAR as a normal dependency in 
> any and all tests I have.
>
> Hope this cleared it up a bit. :-)
>
>
> On Wednesday 07 October 2009 16:41, Chris Bredesen wrote:
>> Why stop there?  I'll just not write ANY code.  Stress-free life! :) 
>> :)
>>
>> On 10/07/2009 10:13 AM, Roland Asmann wrote:
>>> Personally, I don't put ANY code in the WAR. That will definitely 
>>> solve your problem! :-)
>>>
>>> On Wednesday 07 October 2009 16:03, Chris Bredesen wrote:
 All,

 I have split my unit tests out into a separate project which will 
 eventually become a module (not there yet).  I've got it mostly 
 sorted but I'm getting compile errors on classes that are part of 
 the main project which uses war packaging.

 Maven doesn't seem to add the WAR's code into the test module's 
 test classpath correctly.  Is this a known issue?  Any idea how to 
 get around it?  Maven is definitely finding the artifact in my 
 repository; it's just not contributing the WAR's code (I think).

 Any help is appreciated.

 -Chris

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



Fetching the latest snapshot version without maven

2009-10-07 Thread Beat Strasser

Hi

My task is to fetch the latest snapshot version of a maven artifact. How 
can I do this without having to parse the maven-metadata.xml and 
figuring out what the latest timestamp is?


We used to deploy snapshot artifacts with a unique identifier, so the 
artifacts URL was fix and I could fetch the snapshot with a simple HTTP 
GET command: group/artifact/1.0.0-SNAPSHOT/artifact-1.0.0-SNAPSHOT.jar.

An easy and simple solution: I liked this!

However this solution does not work anymore in maven 3 (we're using 
tycho-distribution-3065 to deploy artifacts). As I've understood the 
developers correctly, the uniqueVersion parameter is/will be deprecated:


http://www.nabble.com/dropping-non-unique-snapshots-in-Maven-3-td25295809.html

Does Nexus provide a fix URL for an artifacts' latest snapshot version?

Is there a simple mvn command to fetch the latest snapshot version 
(without having to define a pom.xml and use dependency:copy hacks)?


Does Ivy support the maven repository layout/logic?

Thanks for your help,
--
Beat Strasser

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



Injecting custom ConflictResolver using Embedder

2009-10-07 Thread Fabian Christ
Hi,

I'm doing some research on conflict resolving between Java components.
Now I would like to use my own ConflictResolver during a Maven run. I'm
using Maven Embedder in my application and tried several ways on how to
manipulate the Plexus container to use my own ConflictResolver. I used
the "customize" interface that is meant to manipulate the container on
Embedder startup but an "addComponent" did not work as expected.

Can someone give me a hint how to do that? I know the Wiki page at [1]
that suggests to manipulate the POM to configure the ConflictResolver
that should be used. But I'm working with Embedder and I can not change
the POMs. I would like to inject my ConflictResolver as the default
resolver when the Embedder is created. But how?

Thank you,
Fabian

[1] http://docs.codehaus.org/display/MAVEN/Conflict+Resolvers

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



[Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread NGUYEN Cong Kinh

Hello everybody,

Is there anyway to configure MAVEN_OPTS from the POM file (no variable)? 
For example, I want to configure Maven's memory is 768m. But I don't 
want to add the MAVEN_OPTS variable in the environment. This is possible 
to configure my POM? If yes, please send to me how to do this.


Thanks in advance,
Kinh

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



AW: Versions plugin and metadata

2009-10-07 Thread Lewis, Eric
Umm... after re-reading: I don't mean that the versions plugin is the source of 
trouble, but my messed up repo is!

Best regards,
Eric 

> -Ursprüngliche Nachricht-
> Von: Lewis, Eric [mailto:eric.le...@ipi.ch] 
> Gesendet: Mittwoch, 7. Oktober 2009 17:17
> An: Maven Users List
> Betreff: Versions plugin and metadata
> 
> Hi
> 
> I'm having a lot of trouble with the versions plugin.
> I was doing a lot of tests where I deployed a lot of versions 
> and SNAPSHOTs into our local Nexus repo.
> 
> After the tests I deleted all these test versions from Nexus 
> and rebuilt the index.
> 
> However, I forgot the local repo, where everything was still 
> alive (I noticed since the versions plugin put in some of 
> those test versions). After cleaning that up (basically 
> deleting everything), I'm still having trouble.
> 
> As was answered before, the versions plugin gets the version 
> from the metadata in the repo and then tries to find that 
> version/SNAPSHOT in the repo.
> This then is the point where things fall apart, because my 
> metadata tells me the latest SNAPSHOT is 1.18.0-SNAPSHOT 
> while the repo only contains 1.0.0-SNAPSHOT.
> 
> To make a long story short: How can I deleted all that wrong 
> metadata and make sure it never comes back to haunt me?
> 
> Thanks for any pointer...
> 
> Best regards,
> Eric
> 
> -
> 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



Versions plugin and metadata

2009-10-07 Thread Lewis, Eric
Hi

I'm having a lot of trouble with the versions plugin.
I was doing a lot of tests where I deployed a lot of versions and SNAPSHOTs 
into our local Nexus repo.

After the tests I deleted all these test versions from Nexus and rebuilt the 
index.

However, I forgot the local repo, where everything was still alive (I noticed 
since the versions plugin put in some of those test versions). After cleaning 
that up (basically deleting everything), I'm still having trouble.

As was answered before, the versions plugin gets the version from the metadata 
in the repo and then tries to find that version/SNAPSHOT in the repo.
This then is the point where things fall apart, because my metadata tells me 
the latest SNAPSHOT is 1.18.0-SNAPSHOT while the repo only contains 
1.0.0-SNAPSHOT.

To make a long story short: How can I deleted all that wrong metadata and make 
sure it never comes back to haunt me?

Thanks for any pointer...

Best regards,
Eric

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



Re: Unit test project depending on WAR project code

2009-10-07 Thread Chris Bredesen
I got your meaning and I will investigate that.  I generally try to KISS 
and adding a module to create a jar to go in a war kinda violates that. 
 But if it's the only way out of this, I'll try it.


Oddly, when I remove the war from the unit test 
project's dependency list, it works in m2eclipse (which AFIAK is based 
on M3).  In that state, maven 2.0.10 barfs completely and can't even 
find the dependency which is farther from success than what I've got.


I'd really like to see if this is meant to work in Maven or if I'm just 
DoingItWrong.


Thanks for your input Roland, must appreciated!!!

-CB

On 10/07/2009 10:43 AM, Roland Asmann wrote:

ThatÅ› not the way I meant it... Sorry if it looked that way!

When I have a WAR-project, I normally create 2 modules: 1 with the java-code
(package: JAR) and 1 with the other WAR-stuff (JSP, CSS, etc - package: WAR).

That way, I can use the code inside the JAR as a normal dependency in any and
all tests I have.

Hope this cleared it up a bit. :-)


On Wednesday 07 October 2009 16:41, Chris Bredesen wrote:

Why stop there?  I'll just not write ANY code.  Stress-free life! :) :)

On 10/07/2009 10:13 AM, Roland Asmann wrote:

Personally, I don't put ANY code in the WAR. That will definitely solve
your problem! :-)

On Wednesday 07 October 2009 16:03, Chris Bredesen wrote:

All,

I have split my unit tests out into a separate project which will
eventually become a module (not there yet).  I've got it mostly sorted
but I'm getting compile errors on classes that are part of the main
project which uses war packaging.

Maven doesn't seem to add the WAR's code into the test module's test
classpath correctly.  Is this a known issue?  Any idea how to get around
it?  Maven is definitely finding the artifact in my repository; it's
just not contributing the WAR's code (I think).

Any help is appreciated.

-Chris

-
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: Unit test project depending on WAR project code

2009-10-07 Thread Roland Asmann
Thatś not the way I meant it... Sorry if it looked that way!

When I have a WAR-project, I normally create 2 modules: 1 with the java-code 
(package: JAR) and 1 with the other WAR-stuff (JSP, CSS, etc - package: WAR).

That way, I can use the code inside the JAR as a normal dependency in any and 
all tests I have.

Hope this cleared it up a bit. :-)


On Wednesday 07 October 2009 16:41, Chris Bredesen wrote:
> Why stop there?  I'll just not write ANY code.  Stress-free life! :) :)
>
> On 10/07/2009 10:13 AM, Roland Asmann wrote:
> > Personally, I don't put ANY code in the WAR. That will definitely solve
> > your problem! :-)
> >
> > On Wednesday 07 October 2009 16:03, Chris Bredesen wrote:
> >> All,
> >>
> >> I have split my unit tests out into a separate project which will
> >> eventually become a module (not there yet).  I've got it mostly sorted
> >> but I'm getting compile errors on classes that are part of the main
> >> project which uses war packaging.
> >>
> >> Maven doesn't seem to add the WAR's code into the test module's test
> >> classpath correctly.  Is this a known issue?  Any idea how to get around
> >> it?  Maven is definitely finding the artifact in my repository; it's
> >> just not contributing the WAR's code (I think).
> >>
> >> Any help is appreciated.
> >>
> >> -Chris
> >>
> >> -
> >> 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

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: roland.asm...@cfc.at
Web: www.cfc.at

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



Re: Unit test project depending on WAR project code

2009-10-07 Thread Chris Bredesen

Why stop there?  I'll just not write ANY code.  Stress-free life! :) :)

On 10/07/2009 10:13 AM, Roland Asmann wrote:

Personally, I don't put ANY code in the WAR. That will definitely solve your
problem! :-)


On Wednesday 07 October 2009 16:03, Chris Bredesen wrote:

All,

I have split my unit tests out into a separate project which will
eventually become a module (not there yet).  I've got it mostly sorted
but I'm getting compile errors on classes that are part of the main
project which uses war packaging.

Maven doesn't seem to add the WAR's code into the test module's test
classpath correctly.  Is this a known issue?  Any idea how to get around
it?  Maven is definitely finding the artifact in my repository; it's
just not contributing the WAR's code (I think).

Any help is appreciated.

-Chris

-
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: Unit test project depending on WAR project code

2009-10-07 Thread Roland Asmann
Personally, I don't put ANY code in the WAR. That will definitely solve your 
problem! :-)


On Wednesday 07 October 2009 16:03, Chris Bredesen wrote:
> All,
>
> I have split my unit tests out into a separate project which will
> eventually become a module (not there yet).  I've got it mostly sorted
> but I'm getting compile errors on classes that are part of the main
> project which uses war packaging.
>
> Maven doesn't seem to add the WAR's code into the test module's test
> classpath correctly.  Is this a known issue?  Any idea how to get around
> it?  Maven is definitely finding the artifact in my repository; it's
> just not contributing the WAR's code (I think).
>
> Any help is appreciated.
>
> -Chris
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: roland.asm...@cfc.at
Web: www.cfc.at

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



Unit test project depending on WAR project code

2009-10-07 Thread Chris Bredesen

All,

I have split my unit tests out into a separate project which will 
eventually become a module (not there yet).  I've got it mostly sorted 
but I'm getting compile errors on classes that are part of the main 
project which uses war packaging.


Maven doesn't seem to add the WAR's code into the test module's test 
classpath correctly.  Is this a known issue?  Any idea how to get around 
it?  Maven is definitely finding the artifact in my repository; it's 
just not contributing the WAR's code (I think).


Any help is appreciated.

-Chris

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



Re: Invoking a plugin from within another plugin

2009-10-07 Thread Allan Ditzel
Hi Sam,

That's beautiful! Thanks!

Allan

On Tue, Oct 6, 2009 at 5:06 PM, Samuel Le Berrigaud <
sleberrig...@atlassian.com> wrote:

> Hey Allan,
>
> you might want to check out the Mojo Executor:
> http://code.google.com/p/mojo-executor/
>
> SaM
>
> On Wed, Oct 7, 2009 at 8:01 AM, Allan Ditzel 
> wrote:
> > Hi all,
> >
> > What is the best accepted way for one plugin to invoke another? I can
> > obviously do it out of process from the first plugin and do an exec, but
> I
> > was wondering if there was a way to invoke another plugin in process.
> >
> > Thanks,
> >
> > Allan
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: My application is not getting compiled using Maven

2009-10-07 Thread Lukas Theussl



rasahere wrote:

what value i should give here


Whatever your source files are encoded in.


is it like maven.compile.encoding=UTF8


I guess it's something else as the error suggests.

-Lukas





Lukas Theussl-4 wrote:


Setting the maven.compile.encoding property should be more useful for your
case 
than maven.compile.source.


HTH,
-Lukas


Thomas Sundberg wrote:

Hi!

What happens if you remove the unmappable character?
Have you been able to compile before or is this a new setup?
Can you restart with the simplest Hello World and get that to compile?
What happens if you use Maven 2?

/Thomas

On Wed, Sep 23, 2009 at 08:29, rasahere 
wrote:

Hi,

I am using Maven 1.0 and my jdk is 1.5. Now when i am trying to build my
application jar i am getting some strange errors.

 warning: unmappable character for encoding UTF8
   [javac] /**
   [javac] ^
this is just a warning but still the build is failed.
I have added
maven.compile.source=1.5
maven.compile.target=1.5
in my project properties.

Can any one give a solution for this.

Thanks
Rasa.




--
View this message in context:
http://www.nabble.com/My-application-is-not-getting-compiled-using-Maven-tp25530996p25530996.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: My application is not getting compiled using Maven

2009-10-07 Thread rasahere

The existing application uses Maven 1.0 .

Luca Li Greci wrote:
> 
> 2009/9/23 rasahere 
> 
>>
>> Hi,
>>
>> I am using Maven 1.0 and my jdk is 1.5. Now when i am trying to build my
>> application jar i am getting some strange errors.
>>
>>  warning: unmappable character for encoding UTF8
>>[javac] /**
>>[javac] ^
>> this is just a warning but still the build is failed.
>> I have added
>> maven.compile.source=1.5
>> maven.compile.target=1.5
>> in my project properties.
>>
>> Can any one give a solution for this.
>>
>> Thanks
>> Rasa.
>>
>>
>> Hi Rasa,
> 
> Any particular reason to use Maven 1.0 ?
> 
> Regards
> 
> Luca
> 
> 
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/My-application-is-not-getting-compiled-using-Maven-tp25530996p25530996.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
>>
>>
> 
> 
> -- 
> Victor Hugo wrote, “The future has many names: For the weak, it means the
> unattainable. For the fearful, it means the unknown. For the courageous,
> it
> means opportunity.”
> 
> 

-- 
View this message in context: 
http://www.nabble.com/My-application-is-not-getting-compiled-using-Maven-tp25530996p25783943.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: My application is not getting compiled using Maven

2009-10-07 Thread rasahere

what value i should give here
is it like maven.compile.encoding=UTF8


Lukas Theussl-4 wrote:
> 
> 
> Setting the maven.compile.encoding property should be more useful for your
> case 
> than maven.compile.source.
> 
> HTH,
> -Lukas
> 
> 
> Thomas Sundberg wrote:
>> Hi!
>> 
>> What happens if you remove the unmappable character?
>> Have you been able to compile before or is this a new setup?
>> Can you restart with the simplest Hello World and get that to compile?
>> What happens if you use Maven 2?
>> 
>> /Thomas
>> 
>> On Wed, Sep 23, 2009 at 08:29, rasahere 
>> wrote:
>>> Hi,
>>>
>>> I am using Maven 1.0 and my jdk is 1.5. Now when i am trying to build my
>>> application jar i am getting some strange errors.
>>>
>>>  warning: unmappable character for encoding UTF8
>>>[javac] /**
>>>[javac] ^
>>> this is just a warning but still the build is failed.
>>> I have added
>>> maven.compile.source=1.5
>>> maven.compile.target=1.5
>>> in my project properties.
>>>
>>> Can any one give a solution for this.
>>>
>>> Thanks
>>> Rasa.
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/My-application-is-not-getting-compiled-using-Maven-tp25530996p25530996.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/My-application-is-not-getting-compiled-using-Maven-tp25530996p25783942.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: Getting error while configuring Maven

2009-10-07 Thread Anders Hammar
Could you please post your proxy configuration in your settings.xml?

/Anders

On Wed, Oct 7, 2009 at 12:20, anshree123  wrote:

>
> Hi everyone.
> I am working with ServiceMix ESB and for that i need maven configured on my
> system.
> I work behind a proxy so i did the proxy settings in settings.xml file in
> ${Maven_Home}/conf/settings.xml.
> But when i run the command mvn jetty:run or for that matter mvn install for
> a pom.xml file, then i get the following exception:
>
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'jetty'.
> [INFO] org.apache.maven.plugins: checking for updates from central
> [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be
> retrieved from repository: central due to an error: Error transferring file
> [INFO] Repository 'central' will be blacklisted
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does not
> exist or no valid version could be found
> [INFO]
> 
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
> 'org.apache.maven.plugins:maven-jetty-plugin' does not exist or no valid
> version could be found
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1281)
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1517)
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:381)
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:135)
>at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>at java.lang.reflect.Method.invoke(Method.java:597)
>at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
> The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does not exist or
> no valid version could be found
>at
>
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:226)
>at
>
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:87)
>at
>
> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:158)
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1252)
>... 14 more
> [INFO]
> 
> [INFO] Total time: 43 seconds
> [INFO] Finished at: Wed Oct 07 15:28:47 IST 2009
> [INFO] Final Memory: 1M/4M
> [INFO]
> 
>
> Do I have to do some other configurations??
> Please help me out...
> Thanks in advance for any help.
>
> Regards,
> Anushree
> --
> View this message in context:
> http://www.nabble.com/Getting-error-while-configuring-Maven-tp25783764p25783764.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 Assembly Plugin

2009-10-07 Thread Bert van Brakel

Try adding a   . under fileset like below



...


 .





...


On windows you can use '/' but this won't work on *nix boxes, where you have
to use '.'
-- 
View this message in context: 
http://www.nabble.com/Maven-Assembly-Plugin-tp16351103p25783885.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: The plugin 'org.apache.maven.plugins:maven-site-plugin' does not exist or no valid version could be found

2009-10-07 Thread anshree123

Hi Thanks for your reply.
I have removed the comment markings.
I think i am missing something out in configuration.
I have just modified the proxy settings.
Is there anything else i need ot modify??

Regards,
Anushree


Wayne Fay wrote:
> 
>> I am new at Maven so not able to figure out the problem. I have done the
>> proxy settings in ../.m2/settings.xml file still the problem persists.
> 
> Generally, this occurs when you have configured things in your
> settings.xml file, but failed to delete the XML comment markings  that surround the configuration block. As a result, your
> configuration is ignored.
> 
> Wayne
> 
> -
> 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/The-plugin-%27org.apache.maven.plugins%3Amaven-site-plugin%27-does-not-exist-or-no-valid-version-could-be-found-tp25762828p25783769.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



Getting error while configuring Maven

2009-10-07 Thread anshree123

Hi everyone.
I am working with ServiceMix ESB and for that i need maven configured on my
system.
I work behind a proxy so i did the proxy settings in settings.xml file in
${Maven_Home}/conf/settings.xml.
But when i run the command mvn jetty:run or for that matter mvn install for
a pom.xml file, then i get the following exception:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jetty'.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be
retrieved from repository: central due to an error: Error transferring file
[INFO] Repository 'central' will be blacklisted
[INFO]

[ERROR] BUILD ERROR
[INFO]

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

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

[INFO] Total time: 43 seconds
[INFO] Finished at: Wed Oct 07 15:28:47 IST 2009
[INFO] Final Memory: 1M/4M
[INFO]


Do I have to do some other configurations?? 
Please help me out...
Thanks in advance for any help.

Regards,
Anushree
-- 
View this message in context: 
http://www.nabble.com/Getting-error-while-configuring-Maven-tp25783764p25783764.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: Buildable standalone source bundles with the assembly plugin

2009-10-07 Thread Mark Hobson
2009/10/7 Brett Porter :
> On 06/10/2009, at 8:22 PM, Mark Hobson wrote:
>> Oh right, I hadn't seen that mentioned anywhere.  So does -pl support
>> building the project list dynamically from subdirectories like -r
>> does?
>
> Yes, though I think it requires the proper  set up to do so (subset
> of current reactor, not a custom reactor). I think you should write out that
> aggregating file for best future proofing.

Okay, I'll bear that in mind.

>> So just deploy the source-release artifact without the others?  Sure,
>> if you know an easy way of doing this from a tag :)
>
> You'll probably need to make a copy of the code, adjust the POMs for the new
> assembly (but not change the versions), build and then upload the file from
> target manually (or use deploy:deploy-file).
>
> Not sure if that's less work than just doing a new release :)

Yeah, that's the conclusion I came to :)  Thanks for the tips though Brett.

Cheers,

Mark

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



HowTo assemble assemblies?

2009-10-07 Thread mrichey
Hi,

we got stuck in assembling an assembly.

Given the situation as shown below:

|-|
| B1  |
| pom |
|-|

|-| |-|
| A1  | | A2  |
| pom | | pom |
|-| |-|
- M1:jar- M3:jar
- M2:jar- M4:jar

B1, A1, and A2 are aggregates of type pom. A1 and A2 are modules of B1, M1 and 
M2 are modules of A1 and M3 and M4 are modules of A2. The parent pom of B1, A1 
and A2 is P1 which is not shown cause it doesn't matter (managing dependencies 
mostly).

In A1 and A2 the assembly plugin (single) is bind to the package phase and 
assembles a jar containing binaries from M1 and M2 and M3 and M4 respectively. 
That seems to work fine.

What we would like to do is calling "mvn clean package assembly:assembly" (or 
similar) on B1 so that the assemblies of A1 and A2 are built and collected by 
B1 to B1's target directory. That does not work regardless what we are trying. 
The assembled jars from A1 and A2 are never taken. Defining the 
attachmentClassifier for A1 and A2 doesn't change anything like trying to 
include A1 and A2 by specifying the coordinates for the include does.

I read that one should use dependecySets rather than moduleSets. But this 
doesn't seem to be applicable for us. We will have plenty of assemblies like B1 
which should collect many different combinations of A1, A2, A3 and so on and 
managing dependencies manually doesn't seem to be manageable.

Can anyone help us with that? Is that generally possible? Any help would be 
appreciated.

Best regards,

Maik

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01

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



Re: Differences between app servers

2009-10-07 Thread Brett Randall
On Wed, Oct 7, 2009 at 11:21 AM, Jim C.  wrote:

> Are there archetypes or something else out there that will differentiate
> between application servers?  We try to write cross platform Java and it
> seems like our app server vendors are fighting us tooth and nail. I
> suppose that is the reason for GlassFish but our shop isn't allowed to
> use it.
>
>
> Jim C.
>
>
What types of issue/differences are you facing? Are they compile/deploy or
runtime issues?

Brett


Re: Invoking a plugin from within another plugin

2009-10-07 Thread Samuel Le Berrigaud
Hey Allan,

you might want to check out the Mojo Executor:
http://code.google.com/p/mojo-executor/

SaM

On Wed, Oct 7, 2009 at 8:01 AM, Allan Ditzel  wrote:
> Hi all,
>
> What is the best accepted way for one plugin to invoke another? I can
> obviously do it out of process from the first plugin and do an exec, but I
> was wondering if there was a way to invoke another plugin in process.
>
> Thanks,
>
> Allan
>

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



Re: How to add generated resources directory in a plugin

2009-10-07 Thread Werner Guttmann
Which is exactly what I ended up doing. Thanks for everybody's patience ...

Werner

Roland Asmann wrote:
> Werber,
> 
> Understandable. Then add the generated folder as a sources-folder and a
> resources-folder with a filter on '**/*.java'. I guess that would be the
> easiest way, in case more resource-types make it into this folder.
> 
> Roland
> 
> 
>> Roland,
>>
>> I wish I had a choice, but I have to keep backwards-compatibility. Until
>> now, we used to offer one property on the Mojo to set the output path
>> (with a default of target/generated-sources/castor).
>>
>> Now, we are offering a second option for the resource files generated,
>> but I still have to cater for those expecting things in the old location.
>>
>> Werber
>>
>> Roland Asmann wrote:
>>> Read the part about editing the plugin again... If you're working on the
>>> actual castor-plugin, wouldn't it be easier to just separate the sources
>>> and
>>> resources instead of adding the resources with inclusion/exclusion
>>> rules?
>>>
>>>
>>> On Friday 02 October 2009 13:45, Werner Guttmann wrote:
 Eric,

 the .castor.cdr files are a by-product of generating Java classes from
 an XML schema using the XML code generator of Castor (through the Maven
 plugin for Castor).

 Those resource files are being generated in
 target/generated-sources/castor during code generation.

 I hopes this makes it clearer 

 Werner

 Lewis, Eric wrote:
> Just out of curiosity: Is there a reason that you keep the .cdr files
> in
> src/main/java? IMHO you could have them in src/main/resources, since
> they
> end up in target/classes anyway.
>
> Best regards,
> Eric
>
>> -Ursprüngliche Nachricht-
>> Von: Werner Guttmann [mailto:wgut...@codehaus.org]
>> Gesendet: Freitag, 2. Oktober 2009 13:13
>> An: Maven Users List
>> Betreff: Re: How to add generated resources directory in a plugin
>>
>> That does not really match what I am observing .. :-(.
>>
>> If I generate Java sources and resources into
>>
>> target/generated-sources/castor
>>
>> and use
>>
>> project.addCompileSourceRoot("target/generated-sources/castor")
>>
>> within the Maven plugin for Castor, Maven will include the generated
>> Java classes during compilation and put the class files in
>> target/classes of the project.
>>
>> As a result of this, users of the Maven plugin for Castor
>> currently have
>> to add the following section to their project POMs.
>>
>> 
>>
>>   target/generated-sources/castor
>>   
>>  **/*.cdr
>>   
>>
>>
>>   src/main/resources
>>
>> 
>>
>> to have those .castor.cdr Files copied to target/classes as
>> well. As we
>> all know, this is error-prone.
>>
>> As such, I tried to add code to the Maven plugin for Castor
>> as follows:
>>
>> Resource resource = new Resource();
>> resource.setDirectory( getResourceDestination().getAbsolutePath() );
>> List includes = new LinkedList();
>> includes.add( "**/*.cdr" );
>> resource.setIncludes( includes );
>> project.addResource( resource );
>>
>> Problem is that once I add that code, the Java source files start
>> showing up in target/classes, which is not ideal.
>>
>> Any idea what's going wrong here ?
>>
>> Werner
>>
>> Roland Asmann wrote:
>>> I believe this can work (not 100% sure, I generate into two
>> different
>>
>>> directories for sources and resources), but you should
>> probably ONLY use the
>>
>>> addCompileSourceRoot for your directory...
>>>
>>> The way I understand it, is that if you put sources &
>> resources there, they
>>
>>> are compiled to the output dir. Java knows how to handle
>> .java-files -->
>>
>>> convert them to classes, and how to handle anything else
>> --> just copy.
>>
>>> If you use the resource-dir, maven will handle the copying
>> and will copy
>>
>>> everything from the source to the target, without compiling.
>>>
>>> So, I presume you have used both calls I gave you, although
>> you should only
>>
>>> use one.
>>>
>>> Hope this helps,
>>>
>>> On Thursday 01 October 2009 15:15, Werner Guttmann wrote:
 Hi Roland,

 does this pattern/recipe change if both resources and Java
>> classes would
>>
 be generated in the same directory. I have tried this a
>> few days ago
>>
 (trying to automate a few things for the
>> castor-maven-plugin), and it
>>
 seems like this does not really work.

 Assume you have a directory where you'll find 

 - A.java
 - B.java
 - .castor.cdr

 where the last

Differences between app servers

2009-10-07 Thread Jim C.
Are there archetypes or something else out there that will differentiate
between application servers?  We try to write cross platform Java and it
seems like our app server vendors are fighting us tooth and nail. I
suppose that is the reason for GlassFish but our shop isn't allowed to
use it.


Jim C.



signature.asc
Description: OpenPGP digital signature