Re: Archetype Plugin and .cvsignore

2009-03-03 Thread Raphaël Piéroni
Yup,
ARCHETYPE-52
was fixed for some dotted files.
but all the classical scm files are ignored by default.

Regards,

Raphaël

2009/3/4 Wayne Fay 

> > Issue *archetype-52 *claims that the problem has been fixed. Is it fixed,
> or
> > I am missing something?
>
> What version are you using?
>
> http://jira.codehaus.org/browse/ARCHETYPE-52 says it is fixed in
> version 2.0-alpha-1.
>
> Wayne
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: classpath attributes for maven-eclipse-plugin

2009-03-03 Thread Arnaud HERITIER
Hi
Is it this issue : http://jira.codehaus.org/browse/MECLIPSE-270 ?
can you test a 1.6-SNAPSHOT ?


arnaud

On Wed, Mar 4, 2009 at 7:11 AM, Andrew Eisenberg wrote:

> Hi all,
>
> I was wondering if it is possible to add classpath attributes to the
> .classpath file when the maven eclipse plugin creates an eclipse
> project.
>
> For example, this is what i would like to do something like this (the
> attribute section):
>
> 
> 
><...normal classpath...>
> path="M2_REPO/.../com.springsource.org.asp
> ectj.runtime-1.6.2.RELEASE.jar"/>
>
> value="org.eclipse.ajdt.aspectpath"/>
>
>
><...normal classpath...>
> 
>
> thanks,
> --andrew
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Arnaud


classpath attributes for maven-eclipse-plugin

2009-03-03 Thread Andrew Eisenberg
Hi all,

I was wondering if it is possible to add classpath attributes to the
.classpath file when the maven eclipse plugin creates an eclipse
project.

For example, this is what i would like to do something like this (the
attribute section):



<...normal classpath...>





<...normal classpath...>


thanks,
--andrew

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



Re: Dependency question

2009-03-03 Thread Wayne Fay
> I realize that, but shouldn't they show up as dependencies even though they
> are only depended on during testing?

If you aren't building and testing Struts but merely using it, then
they aren't used, so no.

Wayne

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



Wsdl2java code generation

2009-03-03 Thread Vishal Pahwa
Maven of "Maven" build technology,
Greetings !!

I need some help with the maven plugin to generate code from wsdl file.
If you have tried the same earlier please email me separately.

What has been tried:

Option 1
"wsdl2java" plugin (CXF WSDL-to-Java code generation)
This generates the code from wsdl file but the java files it generates are not 
proper. For instance, the java files (VO) are not implementing Serializable 
interface, and other classes which needs to implement Remote interface are not 
doing so, etc. Thus we are not able to use the java code which this plugin 
generates.

Option 2
"wsdl2code" plugin (axis2-wsdl2code-maven-plugin)
The java classes generated by this plugin does not create the correct package 
structure, thus compilation fails.

What we want?
1) Any pointers around any argument or property etc which can be set so as to 
properly generate the java files using wsdl2java.
2) Pointers to generate the correct package structure for java files using 
wsdl2code.

Please let me know in case you require more information.

Regards,
Vishal




Re: Dependency question

2009-03-03 Thread stanlick

Thanks bro -- 

I realize that, but shouldn't they show up as dependencies even though they
are only depended on during testing?

Peace,
Scott


Stephen Connolly-2 wrote:
> 
> Those dependencies are required to *test* struts they are not required
> by your project as struts has already been tested.
> 
> -Stephen
> 
> 2009/3/3 stanlick 
> 
>>
>> Thanks guys --
>>
>> If you look at the POM for Struts 2.1.6 there are many more dependencies
>> than what show up running
>> dependency:resolve.  I verifies the default for scope because several of
>> the
>> dependencies are "test."   It appears the default is all scopes, so I am
>> wondering why I don't see them all when I run dependency:resolve.
>>
>> Peace,
>> Scott
>> - Show quoted text -
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dependency-question-tp22315314p22323314.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: Any maven repo mirrors in China?

2009-03-03 Thread Jason van Zyl
Juven might have a better idea, but you can definitely use Nexus to  
cache the artifacts on site so that once the artifacts were retrieved  
the local cache will be used. That will save a lot of bandwidth and  
time.


http://nexus.sonatype.org

On 3-Mar-09, at 4:02 PM, Raymond Feng wrote:


Hi,

Do we have any maven repo mirrors in China? Our (Apache Tuscany  
project) Chinese users always complain that their connections to  
repo1.maven.org are very slow and it takes hours to run a build.  
Most of the time it fails in the middle due to download issues.


Thanks,
Raymond

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

People develop abstractions by generalizing from concrete examples.
Every attempt to determine the correct abstraction on paper without
actually developing a running system is doomed to failure. No one
is that smart. A framework is a resuable design, so you develop it by
looking at the things it is supposed to be a design of. The more  
examples

you look at, the more general your framework will be.

  -- Ralph Johnson & Don Roberts, Patterns for Evolving Frameworks


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



RE: JMETER

2009-03-03 Thread Jerry Thome
I did get it working with a little brute force before I received your 
latest suggestion.  First, I added "ssl.provider" and 
"javax.net.ssl.keyStorePassword" to the jmeter.properties.  These were not 
present as options in the jmeter.properties that came with the 2.3.2 
JMeter.

Next, I modified the source JMeterMojo.  I simply hard-coded "-H", "-P", 
and "-N" and their corresponding values as arguments into the 
Jmeter().start() call itself... sort of like I did by adding these 
parameters to the JMeter bat.  It worked!  I know this isn't optimal, but 
it did prove that the proxy and port were not being set.

To confirm, the beanshell.server.port and httpclient.localaddress identify 
which port and proxy for JMeter to use to access the Internet?  The names 
don't seem to jive, but I will give it a try.

Last question.  Can a Mojo access configuration from the Maven 
settings.xml and how?  If I need to go with my modified version, I would 
like to leverage the proxy information already present in the 
settings.xml.

Thanks!





"Martin Gainty"  

03/03/2009 08:22 PM
Please respond to
"Maven Users List" 



To
users@maven.apache.org
cc

Subject
RE: JMETER







the Jmeter host and port parameters should be located in 
%JMETER_HOME%\bin\jmeter.properties e.g.
beanshell.server.port=8080
httpclient.localaddress=1.2.3.4

--find the SecureHandshake your SSH client is using and configure the 
https.default.protocol to use it
https.default.protocol=SSLv3

there was a bug in Jmeter v2.2 that didnt read localaddress properly but 
that should be resolved
in later distros ..let me know how this resolves your situation

HTH
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and 
Sender does not endorse distribution to any party other than intended 
recipient. Sender does not necessarily endorse content contained within 
this transmission. 




> To: users@maven.apache.org
> Subject: RE: JMETER
> From: jerry.th...@hewitt.com
> Date: Tue, 3 Mar 2009 15:49:29 -0600
> 
> Thanks Martin!  I was able to compile that class and recreate the 
> jorphan.jar.  Got past the issue.  On to the next...
> 
>   java.net.ConnectException: 
> Connection refused: connect
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at 
> java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> at 
> 
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> at 
> java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> at java.net.Socket.connect(Socket.java:520)
> at java.net.Socket.connect(Socket.java:470)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
> at 
> sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
> at 
> sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
> at 
> 
sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:278)
> at 
> sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:335)
> at 
> 
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:176)
> at 
> 
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765)
> at 
> 
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:162)
> at 
> 
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.connect(HttpsURLConnectionOldImpl.java:122)
> at 
> 
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:406)
> at 
> 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:658)
> at 
> 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:647)
> at 
> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
> at java.lang.Thread.run(Thread.java:595)
> 
> 
> The URL I'm attempting to access is outside our firewall.  I'm trying my 

> best to ensure the proxy information is setup and I have the third 
party's 
> SSL certificate in the correct keystore/truststore.  I have the proxy 
info 
> setup in my settings.xml, but I'm not confident this plug-in is using 
that 
> information.  I also have http.proxyHost and such set in the 
> jmeter.properties, but I'm not confident that is correct either.
> 
> The URL I'm trying to access is available via the browser and works when 
I 
> use the JMeter application, just not the Maven2 plugin.  The main 
> difference is that I pass in the -H and -P via the jmeter.bat when I 
fire 
> that up.  BTW, several corporate URLs are executing correctly prior to 
the 
> third party one.  It fails as soon as I try to go *outside*.
> 
> Any thoughts?
> 
> Thanks.
> 
> 
> 
> 
> "Mar

RE: JMETER

2009-03-03 Thread Martin Gainty

the Jmeter host and port parameters should be located in 
%JMETER_HOME%\bin\jmeter.properties e.g.
beanshell.server.port=8080
httpclient.localaddress=1.2.3.4

--find the SecureHandshake your SSH client is using and configure the 
https.default.protocol to use it
https.default.protocol=SSLv3

there was a bug in Jmeter v2.2 that didnt read localaddress properly but that 
should be resolved
in later distros ..let me know how this resolves your situation

HTH
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 




> To: users@maven.apache.org
> Subject: RE: JMETER
> From: jerry.th...@hewitt.com
> Date: Tue, 3 Mar 2009 15:49:29 -0600
> 
> Thanks Martin!  I was able to compile that class and recreate the 
> jorphan.jar.  Got past the issue.  On to the next...
> 
>   java.net.ConnectException: 
> Connection refused: connect
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at 
> java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> at 
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> at 
> java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> at java.net.Socket.connect(Socket.java:520)
> at java.net.Socket.connect(Socket.java:470)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
> at 
> sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
> at 
> sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
> at 
> sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:278)
> at 
> sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:335)
> at 
> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:176)
> at 
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765)
> at 
> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:162)
> at 
> com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.connect(HttpsURLConnectionOldImpl.java:122)
> at 
> org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:406)
> at 
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:658)
> at 
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:647)
> at 
> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
> at java.lang.Thread.run(Thread.java:595)
> 
> 
> The URL I'm attempting to access is outside our firewall.  I'm trying my 
> best to ensure the proxy information is setup and I have the third party's 
> SSL certificate in the correct keystore/truststore.  I have the proxy info 
> setup in my settings.xml, but I'm not confident this plug-in is using that 
> information.  I also have http.proxyHost and such set in the 
> jmeter.properties, but I'm not confident that is correct either.
> 
> The URL I'm trying to access is available via the browser and works when I 
> use the JMeter application, just not the Maven2 plugin.  The main 
> difference is that I pass in the -H and -P via the jmeter.bat when I fire 
> that up.  BTW, several corporate URLs are executing correctly prior to the 
> third party one.  It fails as soon as I try to go *outside*.
> 
> Any thoughts?
> 
> Thanks.
> 
> 
> 
> 
> "Martin Gainty"  
> 
> 03/02/2009 07:41 PM
> Please respond to
> "Maven Users List" 
> 
> 
> 
> To
> users@maven.apache.org
> cc
> 
> Subject
> RE: JMETER
> 
> 
> 
> 
> 
> 
> 
> Hi Jerry-
> I dont know what your timeframe is but you'll need rel 2-2 of 
> JorphanUtils.java
> 
> http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/src/jorphan/org/apache/jorphan/util/JOrphanUtils.java?view=markup&pathrev=463044
> 
> 
> i would download it compile it and put on classpath before the outdated 
> jar that causes error
> 
> HTH
> Martin
> __ 
> Disclaimer and confidentiality note 
> Everything in this e-mail and any attachments relates to the official 
> business of Sender. This transmission is of a confidential nature and 
> Sender does not endorse distribution to any party other than intended 
> recipient. Sender does not necessarily endorse content contained within 
> this transmission. 
> 
> 
> 
> 
> > To: users@maven.apache.org
> > Subject: JMETER
> > From: jerry.th...@hewitt.com
> > Date: Mon, 2 Mar 2009 12:36:35 -0600
> > 
> > The best source of information regarding JMETER that I have found is 
> here 
> > 
> http://jlorenzen.blogsp

Re: Archetype Plugin and .cvsignore

2009-03-03 Thread Felipe Kamakura
Hi Wayne,
Just to clarify this issue I'm forwarding my conversation with Raphaël.

I'll open an issue in Jira for this.
I've thought about a workaround using a property __cvsignoreFile__ and
filtering it to .cvsignore. It worked =D

Thanks for the support.


-- Forwarded message --
From: Raphaël Piéroni 
Date: Tue, Mar 3, 2009 at 7:39 PM
Subject: Re: Archetype Plugin and .cvsignore
To: Felipe Kamakura 


you are obviously right.

I found it. All the SCM files are excluded from archetypes.
public static final String[] DEFAULTEXCLUDES =
{ // Miscellaneous typical temporary files
"**/*~", "**/#*#", "**/.#*", "**/%*%", "**/._*",

// CVS
"**/CVS", "**/CVS/**", "**/.cvsignore",

// SCCS
"**/SCCS", "**/SCCS/**",

// Visual SourceSafe
"**/vssver.scc",

// Subversion
"**/.svn", "**/.svn/**",

// Arch
"**/.arch-ids", "**/.arch-ids/**",

// Bazaar
"**/.bzr", "**/.bzr/**",

// SurroundSCM
"**/.MySCMServerInfo",

// Mac
"**/.DS_Store"
};

this default excludes can not be currently undefaulted.
If this is really an issue, please file a jira.
I can promise having much time to solve it for now.


Hope this helps.

Regards.

Raphaël




2009/3/3 Raphaël Piéroni 

Are you on windows ?
>
>
> 2009/3/3 Felipe Kamakura 
>
>> Ok, here they are, let me explain them.
>>
>> *archtest.zip*
>> This is a simple project that contains a *.cvsignore *file in its root
>> directory. If you perform a *mvn archetype:create-from-project *it will
>> ignore this .*cvsignore* file.
>>
>> *archetype.zip
>> *This is the archetype project generated using the create-from-project
>> command above. The diffence is that I've added the .*cvsignore* file by
>> hand, and included an entry for it in the *archetype-metadata.xml* file.
>>
>> If you *mvn install *this project, and generate a project based on this
>> archetype, the .*cvsignore* won't be copied. The .*cvsignore* is not even
>> included in the archetype jar when you run the *mvn install*.
>>
>> I hope this helps.
>>
>> Thanks,
>>
>> Felipe
>>
>>
>>
>>
>> On Tue, Mar 3, 2009 at 6:57 PM, Felipe Kamakura > > wrote:
>>
>>> Okay Raphaël, I'll create something here :)
>>>
>>> Thanks!
>>>
>>>
>>> On Tue, Mar 3, 2009 at 6:51 PM, Raphaël Piéroni 
>>>  wrote:
>>>
 Hi Felipe,

 Can you please send me a sample project exhibiting your issue?
 It would be nice too to add the command line(s) you called and even the
 traces.

 With this i could diagnose f you missed anything or if this is a zipping
 issue.

 Regards,

 Raphaël




>>>
>>
>



On Tue, Mar 3, 2009 at 8:30 PM, Wayne Fay  wrote:

> > Issue *archetype-52 *claims that the problem has been fixed. Is it fixed,
> or
> > I am missing something?
>
> What version are you using?
>
> http://jira.codehaus.org/browse/ARCHETYPE-52 says it is fixed in
> version 2.0-alpha-1.
>
> Wayne
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Any maven repo mirrors in China?

2009-03-03 Thread Raymond Feng

Hi,

Do we have any maven repo mirrors in China? Our (Apache Tuscany project) 
Chinese users always complain that their connections to repo1.maven.org are 
very slow and it takes hours to run a build. Most of the time it fails in 
the middle due to download issues.


Thanks,
Raymond 



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



Re: Archetype Plugin and .cvsignore

2009-03-03 Thread Wayne Fay
> Issue *archetype-52 *claims that the problem has been fixed. Is it fixed, or
> I am missing something?

What version are you using?

http://jira.codehaus.org/browse/ARCHETYPE-52 says it is fixed in
version 2.0-alpha-1.

Wayne

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



Re: problem with archetype : generate for struts 2

2009-03-03 Thread Nick Stolwijk
It seems that is the default repository, which unfortunately only
contains SNAPSHOT versions. The archetype already has been released,
but I don't know how to get the released version from the central
repository.

With regards,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



On Tue, Mar 3, 2009 at 11:57 PM, nani2ratna  wrote:
>
>
>
> Hi this is working
> mvn archetype:create -DgroupId=tutorial -DartifactId=t
> utorial -DarchetypeGroupId=org.apache.struts
> -DarchetypeArtifactId=struts2-arche
> type-starter -DarchetypeVersion=2.0.11.2-SNAPSHOT
> -DremoteRepositories=http://pe
> ople.apache.org/repo/m2-snapshot-repository
>
> Thanks
> ratna
>
> Nick Stolwijk-4 wrote:
>>
>> It seems the old 2.0.9-SNAPSHOT has been removed. Try the following
>> command:
>>
>> mvn archetype:generate -DarchetypeGroupId=org.apache.struts
>> -DarchetypeArtifactId=struts2-archetype-starter
>> -DarchetypeVersion=2.0.11.2-SNAPSHOT
>>
>> I also noticed this version has been released to
>> http://repo2.maven.org/maven2 [1], but I can't get the archetype
>> plugin to retrieve this version.
>>
>> I tried:
>>
>>  mvn archetype:generate -DarchetypeGroupId=org.apache.struts
>> -DarchetypeArtifactId=struts2-archetype-starter
>> -DarchetypeVersion=2.0.11.2
>> -DarchetypeRepository=http://repo2.maven.org/maven2
>>
>> But that doesn't seem to work.
>>
>> Hth,
>>
>> [1]
>> http://repo2.maven.org/maven2/org/apache/struts/struts2-archetype-starter/2.0.11.2/
>>
>> Nick Stolwijk
>> ~Java Developer~
>>
>> Iprofs BV.
>> Claus Sluterweg 125
>> 2012 WS Haarlem
>> www.iprofs.nl
>>
>>
>>
>> On Tue, Mar 3, 2009 at 11:19 PM, nani2ratna  wrote:
>>>
>>> Hi,
>>>
>>> I just want to create a archetype for struts with the command
>>>
>>> mvn archetype:generate
>>>
>>> I am selecting 19 from the options.
>>>
>>> Its giving error message like
>>>
>>> Downloading:
>>> http://people.apache.org/repo/m2-snapshot-repository/org/apache/str
>>> uts/struts2-archetype-starter/2.0.9-SNAPSHOT/struts2-archetype-starter-2.0.9-SNA
>>> PSHOT.jar
>>> [INFO]
>>> 
>>> [ERROR] BUILD FAILURE
>>> [INFO]
>>> 
>>> [INFO] : org.apache.maven.archetype.exception.UnknownArchetype: The
>>> desired
>>> arch
>>> etype does not exist
>>> (org.apache.struts:struts2-archetype-starter:2.0.9-SNAPSHOT
>>> )
>>> The desired archetype does not exist
>>> (org.apache.struts:struts2-archetype-starte
>>> r:2.0.9-SNAPSHOT)
>>>
>>>
>>> Can anybody please help me.
>>>
>>> Thanks and Regards
>>> ratna
>>> --
>>> View this message in context:
>>> http://www.nabble.com/problem-with-archetype-%3A-generate-for-struts-2-tp22319213p22319213.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/problem-with-archetype-%3A-generate-for-struts-2-tp22319213p22319922.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

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



Re: problem with archetype : generate for struts 2

2009-03-03 Thread nani2ratna



Hi this is working 
mvn archetype:create -DgroupId=tutorial -DartifactId=t
utorial -DarchetypeGroupId=org.apache.struts
-DarchetypeArtifactId=struts2-arche
type-starter -DarchetypeVersion=2.0.11.2-SNAPSHOT
-DremoteRepositories=http://pe
ople.apache.org/repo/m2-snapshot-repository

Thanks
ratna

Nick Stolwijk-4 wrote:
> 
> It seems the old 2.0.9-SNAPSHOT has been removed. Try the following
> command:
> 
> mvn archetype:generate -DarchetypeGroupId=org.apache.struts
> -DarchetypeArtifactId=struts2-archetype-starter
> -DarchetypeVersion=2.0.11.2-SNAPSHOT
> 
> I also noticed this version has been released to
> http://repo2.maven.org/maven2 [1], but I can't get the archetype
> plugin to retrieve this version.
> 
> I tried:
> 
>  mvn archetype:generate -DarchetypeGroupId=org.apache.struts
> -DarchetypeArtifactId=struts2-archetype-starter
> -DarchetypeVersion=2.0.11.2
> -DarchetypeRepository=http://repo2.maven.org/maven2
> 
> But that doesn't seem to work.
> 
> Hth,
> 
> [1]
> http://repo2.maven.org/maven2/org/apache/struts/struts2-archetype-starter/2.0.11.2/
> 
> Nick Stolwijk
> ~Java Developer~
> 
> Iprofs BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> www.iprofs.nl
> 
> 
> 
> On Tue, Mar 3, 2009 at 11:19 PM, nani2ratna  wrote:
>>
>> Hi,
>>
>> I just want to create a archetype for struts with the command
>>
>> mvn archetype:generate
>>
>> I am selecting 19 from the options.
>>
>> Its giving error message like
>>
>> Downloading:
>> http://people.apache.org/repo/m2-snapshot-repository/org/apache/str
>> uts/struts2-archetype-starter/2.0.9-SNAPSHOT/struts2-archetype-starter-2.0.9-SNA
>> PSHOT.jar
>> [INFO]
>> 
>> [ERROR] BUILD FAILURE
>> [INFO]
>> 
>> [INFO] : org.apache.maven.archetype.exception.UnknownArchetype: The
>> desired
>> arch
>> etype does not exist
>> (org.apache.struts:struts2-archetype-starter:2.0.9-SNAPSHOT
>> )
>> The desired archetype does not exist
>> (org.apache.struts:struts2-archetype-starte
>> r:2.0.9-SNAPSHOT)
>>
>>
>> Can anybody please help me.
>>
>> Thanks and Regards
>> ratna
>> --
>> View this message in context:
>> http://www.nabble.com/problem-with-archetype-%3A-generate-for-struts-2-tp22319213p22319213.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/problem-with-archetype-%3A-generate-for-struts-2-tp22319213p22319922.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: problem with archetype : generate for struts 2

2009-03-03 Thread Nick Stolwijk
It seems the old 2.0.9-SNAPSHOT has been removed. Try the following command:

mvn archetype:generate -DarchetypeGroupId=org.apache.struts
-DarchetypeArtifactId=struts2-archetype-starter
-DarchetypeVersion=2.0.11.2-SNAPSHOT

I also noticed this version has been released to
http://repo2.maven.org/maven2 [1], but I can't get the archetype
plugin to retrieve this version.

I tried:

 mvn archetype:generate -DarchetypeGroupId=org.apache.struts
-DarchetypeArtifactId=struts2-archetype-starter
-DarchetypeVersion=2.0.11.2
-DarchetypeRepository=http://repo2.maven.org/maven2

But that doesn't seem to work.

Hth,

[1] 
http://repo2.maven.org/maven2/org/apache/struts/struts2-archetype-starter/2.0.11.2/

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



On Tue, Mar 3, 2009 at 11:19 PM, nani2ratna  wrote:
>
> Hi,
>
> I just want to create a archetype for struts with the command
>
> mvn archetype:generate
>
> I am selecting 19 from the options.
>
> Its giving error message like
>
> Downloading:
> http://people.apache.org/repo/m2-snapshot-repository/org/apache/str
> uts/struts2-archetype-starter/2.0.9-SNAPSHOT/struts2-archetype-starter-2.0.9-SNA
> PSHOT.jar
> [INFO]
> 
> [ERROR] BUILD FAILURE
> [INFO]
> 
> [INFO] : org.apache.maven.archetype.exception.UnknownArchetype: The desired
> arch
> etype does not exist
> (org.apache.struts:struts2-archetype-starter:2.0.9-SNAPSHOT
> )
> The desired archetype does not exist
> (org.apache.struts:struts2-archetype-starte
> r:2.0.9-SNAPSHOT)
>
>
> Can anybody please help me.
>
> Thanks and Regards
> ratna
> --
> View this message in context: 
> http://www.nabble.com/problem-with-archetype-%3A-generate-for-struts-2-tp22319213p22319213.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



problem with archetype : generate for struts 2

2009-03-03 Thread nani2ratna

Hi,

I just want to create a archetype for struts with the command 

mvn archetype:generate

I am selecting 19 from the options.

Its giving error message like 

Downloading:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/str
uts/struts2-archetype-starter/2.0.9-SNAPSHOT/struts2-archetype-starter-2.0.9-SNA
PSHOT.jar
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] : org.apache.maven.archetype.exception.UnknownArchetype: The desired
arch
etype does not exist
(org.apache.struts:struts2-archetype-starter:2.0.9-SNAPSHOT
)
The desired archetype does not exist
(org.apache.struts:struts2-archetype-starte
r:2.0.9-SNAPSHOT)


Can anybody please help me.

Thanks and Regards
ratna
-- 
View this message in context: 
http://www.nabble.com/problem-with-archetype-%3A-generate-for-struts-2-tp22319213p22319213.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: JMETER

2009-03-03 Thread Jerry Thome
Thanks Martin!  I was able to compile that class and recreate the 
jorphan.jar.  Got past the issue.  On to the next...

  java.net.ConnectException: 
Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at 
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at 
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at 
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:520)
at java.net.Socket.connect(Socket.java:470)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at 
sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
at 
sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
at 
sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:278)
at 
sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:335)
at 
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:176)
at 
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765)
at 
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:162)
at 
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.connect(HttpsURLConnectionOldImpl.java:122)
at 
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:406)
at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:658)
at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:647)
at 
org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
at java.lang.Thread.run(Thread.java:595)


The URL I'm attempting to access is outside our firewall.  I'm trying my 
best to ensure the proxy information is setup and I have the third party's 
SSL certificate in the correct keystore/truststore.  I have the proxy info 
setup in my settings.xml, but I'm not confident this plug-in is using that 
information.  I also have http.proxyHost and such set in the 
jmeter.properties, but I'm not confident that is correct either.

The URL I'm trying to access is available via the browser and works when I 
use the JMeter application, just not the Maven2 plugin.  The main 
difference is that I pass in the -H and -P via the jmeter.bat when I fire 
that up.  BTW, several corporate URLs are executing correctly prior to the 
third party one.  It fails as soon as I try to go *outside*.

Any thoughts?

Thanks.




"Martin Gainty"  

03/02/2009 07:41 PM
Please respond to
"Maven Users List" 



To
users@maven.apache.org
cc

Subject
RE: JMETER







Hi Jerry-
I dont know what your timeframe is but you'll need rel 2-2 of 
JorphanUtils.java

http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/src/jorphan/org/apache/jorphan/util/JOrphanUtils.java?view=markup&pathrev=463044


i would download it compile it and put on classpath before the outdated 
jar that causes error

HTH
Martin
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and 
Sender does not endorse distribution to any party other than intended 
recipient. Sender does not necessarily endorse content contained within 
this transmission. 




> To: users@maven.apache.org
> Subject: JMETER
> From: jerry.th...@hewitt.com
> Date: Mon, 2 Mar 2009 12:36:35 -0600
> 
> The best source of information regarding JMETER that I have found is 
here 
> 
http://jlorenzen.blogspot.com/2008/03/automated-performance-tests-using.html?showComment=123420288#c1509976267762769707

> 
> After following Jame's blog, I was able to record and successfully 
execute 
> a script in JMeter.  I then moved the JMX to my local project and it's 
> failing with the below message.  I'm running on Maven 2.0.9, JDK 1.5.  I 

> followed the install/deploy instructions exactly (well, I think I did). 
> The java.lang.NoSuchMethodError makes me think I'm not using the correct 

> version of JOrphan or jmeter.jar itself.  Has anyone encountered this 
> before or have ideas?
> 
> 2009/03/02 12:12:04 INFO  - jmeter.util.JMeterUtils: Setting Locale to 
> en_US 
> 2009/03/02 12:12:04 INFO  - jmeter.JMeter: Copyright (c) 1998-2006 The 
> Apache Software Foundation 
> 2009/03/02 12:12:04 INFO  - jmeter.JMeter: Version 2.2 
> 2009/03/02 12:12:04 INFO  - jmeter.JMeter: java.version=1.5.0_14 
> 2009/03/02 12:12:04 INFO  - jmeter.JMeter: os.name=Windows XP 
> 2009/03/02 12:12:04 INFO  - jmeter.JMeter: os.arch=x86 
> 2009/03/02 12:12:04 INFO  - jmeter.JMeter: os.version=5.1 
> 2009/03/02 12:12:04 INFO  - jmeter.JMeter: Default Locale=English 
(United 
> States) 
> 2009/03/02 12:12:04 INFO  - jmeter.JMeter:

Re: jar:sign refuses to sign jar artifact of project with custom packaging type

2009-03-03 Thread Rob Dickens
Okay - after some google codesearching, and minimal testing, the following
appears to address the problem:

In the execute() of the Mojo for the goal which precedes the jar:jar one,
add the following:

project.getArtifact().setArtifactHandler(new MyArtifactHandler());

where MyArtifactHandler is defined as extending
org.apache.maven.artifact.handler.DefaultArtifactHandler, so as to override
the getLanguage() method with a version which returns "java".

One or two pom.xml mods are also required, to ensure that ".jar" is used
instead of .${project.packaging}.

Please could anyone knowledgeable comment on the above. I don't remember
seeing this in any instructions for writing plug-ins.

2009/3/3 Wayne Fay 

> > same story with the new mvn 2.0.10
> > maven-jar-plugin is at 2.2
> >
> > Has no one else seen this?
>
> In all likelihood, you're one of the first people to try using
> jar:sign on a custom artifact. So it might be a little painful to get
> it working, and may involve changing some code in the Jar plugin. Once
> you do, please do post back for future people who want to do the same
> thing, and contribute the code changes back via Jira.
>
> Wayne
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Rob, Lafros.com


Archetype Plugin and .cvsignore

2009-03-03 Thread Felipe Kamakura
Hello all,

I'm creating a new project archetype that contains several .cvsignore files,
but the archetype-plugin ignores it when creating an archetype from the
project.
I've tried to modify the generated archetype by hand and adding the
.cvsignore as a resource, but the file is not packaged to the archetype's
Jars when I perform a mvn install.

Issue *archetype-52 *claims that the problem has been fixed. Is it fixed, or
I am missing something?

Thanks!


Re: Dependency question

2009-03-03 Thread Stephen Connolly
Those dependencies are required to *test* struts they are not required
by your project as struts has already been tested.

-Stephen

2009/3/3 stanlick 

>
> Thanks guys --
>
> If you look at the POM for Struts 2.1.6 there are many more dependencies
> than what show up running
> dependency:resolve.  I verifies the default for scope because several of
> the
> dependencies are "test."   It appears the default is all scopes, so I am
> wondering why I don't see them all when I run dependency:resolve.
>
> Peace,
> Scott
> - Show quoted text -
>
>


RE: Dependency question

2009-03-03 Thread stanlick

Thanks guys -- 

If you look at the POM for Struts 2.1.6 there are many more dependencies
than what show up running 
dependency:resolve.  I verifies the default for scope because several of the
dependencies are "test."   It appears the default is all scopes, so I am
wondering why I don't see them all when I run dependency:resolve.

Peace,
Scott


Brian E Fox wrote:
> 
> If every jar present in dependency:resolve is shown in the tree, then
> that's all folks.
> 
> -Original Message-
> From: Wayne Fay [mailto:wayne...@gmail.com] 
> Sent: Tuesday, March 03, 2009 2:52 PM
> To: Maven Users List
> Subject: Re: Dependency question
> 
>> I am running mvn dependency:tree and expecting a large dependency tree,
>> when
>> in fact all I get is what you see below.  I *know* there are more
>> dependencies than this!  Can someone help me out with this flags and
>> switches please?
> 
> How do you *know* there are more dependencies? Have you tried with a
> sample pom of your own creation that has very well defined first,
> second, and third-level dependencies, to verify they all appear as you
> expect? That would be my test -- not a random Struts2 artifact.
> 
> 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/Dependency-question-tp22315314p22317335.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



Problem with 'type' attribute of dependencies maven-ant task

2009-03-03 Thread Tom Snider
Hi,

I have a problem with the 'type' attribute of the depedencies maven-ant task.

I have installed plugin components for my app of type 'abc' into my server's 
repository.
I specified this using abc in the plugins' pom.xml.

In fact 'abc' archives are jars. But i chose a different type to be able to 
easily select all plugins using:
  

   
   

The main application contains dependencies like:
   
   myGroup
   plugin1
   0.0.1-SNAPSHOT
   abc
   runtime
   

The plugings are loaded without problems from my server into my pc's local 
repository.

But the ant copy task doesn't copy any 'abc' files to the plugin dir.

If I specify the plugins explicitly:
   
   
   

Everything works as expected:
testtask:
[copy] Copying 1 file to D:\project\plugins\
BUILD SUCCESSFUL

To sum it up:
If I set dependecies type to "jar" he copies only the jars to my plugin dir.
If I don't set dependecies he copies everything to my plugin dir (jars + abcs)
If I set dependecies type to "abc" he copies nothing to my plugin dir.

Am I doing something wrong?
Is this a bug?
How can i fix this?

Greetings Tom



  

RE: Eclipse and maven

2009-03-03 Thread Edelson, Justin
This is very strange. It looks like an older version of the master is
being used.

If you run help:effective-pom against the master, does it correctly show
targetJdk = 1.5?

You should probably get rid of the duplicate plugin configuration within
the reporting section. I don't see how that could cause this problem,
but it may be related.

Justin
 

-Original Message-
From: John Wooten [mailto:jwoo...@shoulderscorp.com] 
Sent: Tuesday, March 03, 2009 1:59 PM
To: Maven Users List
Subject: Re: Eclipse and maven

Here is the link to the info you requested.  Thanks a lot for taking the
time to help with this.

http://pastebin.com/m57fb8d1e


On Mar 2, 2009, at 4:25 PM, Edelson, Justin wrote:

> John-
> Sorry I didn't get back to you about your 1.5 problem over the 
> weekend. Can you post your pom and the output of mvn 
> help:effective-pom  to a pastebin and send the link?
>
> As for the rest of it, I don't understand what you are trying to 
> accomplish. commons, log4j, etc. are already in the central 
> repository. If you need to share 3rd party JARs, use a repository 
> manager (Archiva, Nexus, etc.).
>
> Justin
>
> 
>
> From: John Wooten [mailto:jwoo...@shoulderscorp.com]
> Sent: Mon 3/2/2009 4:13 PM
> To: Maven Users List
> Subject: Re: Eclipse and maven
>
>
>
> I haven't fixed the problem with java 1.5 yet, but am moving all my 
> projects into the maven convention.  Now, I have the question:
>
> In my eclipse projects, I have a separate project called "libs" where 
> I have been putting all of my external jars like java-commons, log4j, 
> etc.  Then in the classpath I add that project, and select the jars I 
> need.  I'd like to move to using the maven repository inside the 
> eclipse projects and get rid of the "libs" project.  How do I do that 
> so that others who check out the eclipse projects still have access to

> the necessary jars?  Do they have to install maven also?  What is the 
> best direction here?
>
> On Feb 28, 2009, at 12:55 PM, Edelson, Justin wrote:
>
>> source and target are not valid configuration parameters for pmd.
>> The parameter is called targetJdk.
>>
>> The way I deal with this problem is to have a property called 
>> maven.java.version and then reference that wherever necessary.
>> Currently in our organizational pom, these are:
>>
>>   
>>   org.apache.maven.plugins
>>   maven-compiler-plugin
>>   
>>   ${maven.java.version}
>>   ${maven.java.version}
>>   
>>   
>>
>>   
>>   org.apache.maven.plugins
>>   maven-javadoc-plugin
>>   ${plugin.version.javadoc}
>>   
>>   ${maven.java.version}
>>   
>>   
>>   
>>   org.apache.maven.plugins
>>   maven-pmd-plugin
>>   ${plugin.version.pmd}
>>   
>>   ${maven.java.version}
>>   
>>   
>>
>>
>> AFAIK, there is no JDK version parameter for checkstyle or jdepend.
>>
>> Hope this helps...
>>
>> Justin
>>
>> 
>>
>> From: John Wooten [mailto:jwoo...@shoulderscorp.com]
>> Sent: Sat 2/28/2009 12:40 PM
>> To: Maven Users List
>> Subject: Re: Eclipse and maven
>>
>>
>>
>> I have the following in a terminal window:
>>
>> [woo] 543 > javac -version
>> javac 1.5.0_16
>>
>>
>> Now, I have the java version in each of the plugins as 1.5
>>
>> viz:
>>
>> jdepend plugin, surefire plugin, pmd plugin, and checkstyle plugin.  
>> I didn't see where to specify that for the javadoc.
>>
>> Still get:
>>
>> [INFO] Generating "PMD Report" report.
>> [WARNING] Unable to locate Source XRef to link to - DISABLED 
>> [WARNING] File encoding has not been set, using platform encoding 
>> MacRoman, i.e. build is platform dependent!
>> [WARNING] Error while parsing /Users/woo/Development/workspaces/
>> areteq/
>> modules/Foundation/src/main/java/com/areteq/common/
>> HashMapHandler.java: Can't use generics unless running in JDK 1.5 
>> mode!
>> [WARNING] Error while parsing /Users/woo/Development/workspaces/
>> areteq/
>> modules/Foundation/src/main/java/com/areteq/common/
>> HashMapHandler.java: Can't use generics unless running in JDK 1.5 
>> mode!
>>
>>
>> In the  section I have
>> 
>>  org.apache.maven.plugins
>>  maven-pmd-plugin
>>  
>> 1.5
>> 1.5
>>
>>  /rulesets/basic.xml
>>  /rulesets/imports.xml
>>  /rulesets/unusedcode.xml
>>  /rulesets/finalizers.xml
>>
>>  
>> 
>>
>>
>>
>> On Feb 27, 2009, at 7:25 PM, Edelson, Justin wrote:
>>
>>> I believe that's a javadoc warning (not error). In addition to
>>> maven-
>>> compiler-plugin, you also need to specify the Java version in the 
>>> javadoc plugin (in the reporting section) and, if you use it, the 
>>> pmd plugin.
>>>
>>> Just

RE: Dependency question

2009-03-03 Thread Brian E. Fox
If every jar present in dependency:resolve is shown in the tree, then that's 
all folks.

-Original Message-
From: Wayne Fay [mailto:wayne...@gmail.com] 
Sent: Tuesday, March 03, 2009 2:52 PM
To: Maven Users List
Subject: Re: Dependency question

> I am running mvn dependency:tree and expecting a large dependency tree, when
> in fact all I get is what you see below.  I *know* there are more
> dependencies than this!  Can someone help me out with this flags and
> switches please?

How do you *know* there are more dependencies? Have you tried with a
sample pom of your own creation that has very well defined first,
second, and third-level dependencies, to verify they all appear as you
expect? That would be my test -- not a random Struts2 artifact.

Wayne

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



RE: Executing another process from maven plugin

2009-03-03 Thread Edelson, Justin
It looks like I was wrong about there not being an easy way to get the
plugin classpath. From the Cobertura plugin:

/**
 * Maven Internal: List of artifacts for the plugin.
 * 
 * @parameter expression="${plugin.artifacts}"
 * @required
 * @readonly
 */
protected List pluginClasspathList;

This contains a list of org.apache.maven.artifact.Artifact objects.

The Cobertura uses the pattern you are describing, so I would suggest
you take a look at it.

Justin

 

-Original Message-
From: Roman Kournjaev [mailto:kournj...@gmail.com] 
Sent: Tuesday, March 03, 2009 10:30 AM
To: Maven Users List
Subject: Re: Executing another process from maven plugin

Justin , just one more small question.

The project.getCompileClasspathElements() , gets me the elements of the
classpath of the project that the plugin is actually running , but not
of the plugin itself , so i had to add plugin dependencies also to the
pom.xml where the plugin is configured. Is there a way to get the plugin
classpath too ?

Thanks in advnace

Roman


On Tue, Mar 3, 2009 at 4:59 PM, Edelson, Justin
 wrote:

> The project variable (which doesn't need to be named project) should 
> be injected by Plexus. Here's an example:
>
>/**
> * @parameter expression="${project}"
> * @required
> * @readonly
> */
>private MavenProject project;
>
>
> 
>
> From: Roman Kournjaev [mailto:kournj...@gmail.com]
> Sent: Tue 3/3/2009 9:55 AM
> To: Maven Users List
> Subject: Re: Executing another process from maven plugin
>
>
>
> Thanks Justin
>
> If that works , then this is the solution for my problem , but i just 
> cant find the *project.getCompileClasspathElements()* , where do i get

> the *project *variable from ? I didnt see it in the AbstractMojo 
> class?
>
> Thanks
>
> On Tue, Mar 3, 2009 at 4:40 PM, Edelson, Justin < 
> justin.edel...@mtvstaff.com>
> wrote:
> > I believe that will give you the class path of the current process, 
> > which
> is why you're getting Maven stuff.
> >
> > If you're trying to get project dependencies, what you want to do is
> include this annotation in your class comments:
> > @requiresDependencyResolution compile
> >
> > And then, use project.getCompileClasspathElements() to get the list 
> > of
> compile-scoped classpath elements.
> >
> > Justin
> >
> >
> > 
> >
> > From: Roman Kournjaev [mailto:kournj...@gmail.com]
> > Sent: Tue 3/3/2009 9:29 AM
> > To: Maven Users List
> > Subject: Re: Executing another process from maven plugin
> >
> >
> >
> > Ohh, Sorry
> >
> > Just the regular thing .. : private static String getClassPath()
{
> >  return 
> > prop.getProperty("java.class.path", null);
> >}
> >
> > Roman
> >
> >
> > On Tue, Mar 3, 2009 at 4:26 PM, Edelson, Justin 
> >  wrote:
> >> What is inside the getClassPath() method?
> >>
> >> On Mar 3, 2009, at 8:58 AM, "Roman Kournjaev" 
> wrote:
> >>
> >>> Hi Folks
> >>>
> >>> I am a little bit stuck here with the following problem.
> >>>
> >>> I have written some custom compiler plugin that invokes the actual

> >>> compiler, the problem is that i have to do it in a separate 
> >>> process
> >>> Runtime.exec()
> >>>
> >>> It goes like that :
> >>>
> >>>   Process process = null;
> >>>   String command = "java -cp \"" + getClassPath() + "\" "

> >>> +
> >>> AgentCompiler.class.getCanonicalName() + " " + cmd;
> >>>   getLog().info("executing : " + command);
> >>>   process = Runtime.getRuntime().exec(command);
> >>>
> >>>
> >>> Well, when i run it from plain java , it works fine ... :-)
> >>>
> >>> When i run it as a plugin actually , then i get crappy stuff in my

> >>> classpath ,everything from maven , but nothing that i actually 
> >>> defined in my
> pom.xml
> >>> inside the plugin.
> >>>
> >>> I also tried to add these dependecies (plugin dependencies) inside

> >>> the  tag , inside the pom.xml that makes use

> >>> of that plugin , but also in vain , i still get the same
classpath.
> >>>
> >>> So long story short .. How to the the needed classpath for running

> >>> a process outside a maven plugin ???
> >>>
> >>> Thanks in advance.
> >>>
> >>> Roman
> >>
> >> ---
> >> -- 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: Dependency question

2009-03-03 Thread Wayne Fay
> I am running mvn dependency:tree and expecting a large dependency tree, when
> in fact all I get is what you see below.  I *know* there are more
> dependencies than this!  Can someone help me out with this flags and
> switches please?

How do you *know* there are more dependencies? Have you tried with a
sample pom of your own creation that has very well defined first,
second, and third-level dependencies, to verify they all appear as you
expect? That would be my test -- not a random Struts2 artifact.

Wayne

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



Re: Can no longer create war file

2009-03-03 Thread Johan S


Marco I know... However I don't know what I did to get it like this. A
single war-project works without any problem. It's only when I have a
multiple modules i a parent project and then a dependency from one of the
modules to the other.


Marco Huber wrote:
> 
> Hi Johan,
> 
> if these are your complete pom.xml's, than you must have an other 
> problem. There are no classifier in there, even only the dependency 
> between core and web.
> 
> The classifier was only a guess.
> 
> Regards
> Marco
> 


-
http://www.procensor.se
http://www.mobilepost.se
http://www.resultreporter.com
http://www.butiksbelysning.se
-- 
View this message in context: 
http://www.nabble.com/Can-no-longer-create-war-file-tp22243531p22316318.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: Can no longer create war file

2009-03-03 Thread Marco Huber

Hi Johan,

if these are your complete pom.xml's, than you must have an other 
problem. There are no classifier in there, even only the dependency 
between core and web.


The classifier was only a guess.

Regards
Marco

Johan S wrote:

Hi

I think I have a similar problem but don't know how to solve it.

I have a structure like:

parent
|
|- core
|
|- web

I uploaded my pom files. I renamed them after each module.

http://www.nabble.com/file/p22295674/pom-core.xml pom-core.xml 
http://www.nabble.com/file/p22295674/pom-web.xml pom-web.xml 
http://www.nabble.com/file/p22295674/pom-parent.xml pom-parent.xml 


Johan


Marco Huber wrote:

Hi Johan,

in our project we have the following in the build section in the parent
pom:



org.apache.maven.plugins
maven-jar-plugin

${config.suffix}




org.apache.maven.plugins
maven-deploy-plugin

${config.suffix}




The ${config.suffix} is a profile dependend classifier for different 
configurations of our application.


The problem was that we have a structure like:

parent
|
|- core
|
|- client
|
|- services

and all sub modules were generated with classifiers, like core-dev.jar, 
client-dev.jar, services-dev.jar etc. But the pom.xml's of the sub 
modules were not updated in the repository.


I thought you have a similar problem, that one of your sub modules have 
a classifier, that you use in your war assembly.


Regards
Marco



-
http://www.procensor.se
http://www.mobilepost.se
http://www.resultreporter.com
http://www.butiksbelysning.se



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



Dependency question

2009-03-03 Thread stanlick

Hey guys -- 

I am trying to build a tool for the lawyers that will reveal a dependency
tree of all downstream products necessary when considering adoption of an
open source product.  For the sake of illustration, I have created a simple
project with a single dependency on Struts 2.




  org.apache.struts
  struts2-core
  2.1.6

  



I am running mvn dependency:tree and expecting a large dependency tree, when
in fact all I get is what you see below.  I *know* there are more
dependencies than this!  Can someone help me out with this flags and
switches please?

C:\Users\scott\MavenApps\appStats-app>mvn dependency:tree
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'dependency'.
[INFO]

[INFO] Building appStats-app
[INFO]task-segment: [dependency:tree]
[INFO]

[INFO] [dependency:tree]
[INFO] com.acme.appStats:appStats-app:jar:1.0-SNAPSHOT
[INFO] +- junit:junit:jar:3.8.1:test (scope not updated to compile)
[INFO] \- org.apache.struts:struts2-core:jar:2.1.6:compile
[INFO]+- com.opensymphony:xwork:jar:2.1.2:compile
[INFO]|  \- org.springframework:spring-test:jar:2.5.6:compile
[INFO]| \- commons-logging:commons-logging:jar:1.1.1:compile
[INFO]+- org.freemarker:freemarker:jar:2.3.13:compile
[INFO]+- opensymphony:ognl:jar:2.6.11:compile
[INFO]+- commons-fileupload:commons-fileupload:jar:1.2.1:compile
[INFO]+- commons-io:commons-io:jar:1.3.2:compile
[INFO]\- com.sun:tools:jar:1.5.0:system
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 6 seconds
[INFO] Finished at: Tue Mar 03 12:57:53 CST 2009
[INFO] Final Memory: 10M/20M
[INFO]


Peace,
Scott
-- 
View this message in context: 
http://www.nabble.com/Dependency-question-tp22315314p22315314.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: Eclipse and maven

2009-03-03 Thread John Wooten
Here is the link to the info you requested.  Thanks a lot for taking  
the time to help with this.


http://pastebin.com/m57fb8d1e


On Mar 2, 2009, at 4:25 PM, Edelson, Justin wrote:


John-
Sorry I didn't get back to you about your 1.5 problem over the  
weekend. Can you post your pom and the output of mvn help:effective-pom 
 to a pastebin and send the link?


As for the rest of it, I don't understand what you are trying to  
accomplish. commons, log4j, etc. are already in the central  
repository. If you need to share 3rd party JARs, use a repository  
manager (Archiva, Nexus, etc.).


Justin



From: John Wooten [mailto:jwoo...@shoulderscorp.com]
Sent: Mon 3/2/2009 4:13 PM
To: Maven Users List
Subject: Re: Eclipse and maven



I haven't fixed the problem with java 1.5 yet, but am moving all my
projects into the maven convention.  Now, I have the question:

In my eclipse projects, I have a separate project called "libs" where
I have been putting all of my external jars like java-commons, log4j,
etc.  Then in the classpath I add that project, and select the jars I
need.  I'd like to move to using the maven repository inside the
eclipse projects and get rid of the "libs" project.  How do I do that
so that others who check out the eclipse projects still have access to
the necessary jars?  Do they have to install maven also?  What is the
best direction here?

On Feb 28, 2009, at 12:55 PM, Edelson, Justin wrote:


source and target are not valid configuration parameters for pmd.
The parameter is called targetJdk.

The way I deal with this problem is to have a property called
maven.java.version and then reference that wherever necessary.
Currently in our organizational pom, these are:

  
  org.apache.maven.plugins
  maven-compiler-plugin
  
  ${maven.java.version}
  ${maven.java.version}
  
  

  
  org.apache.maven.plugins
  maven-javadoc-plugin
  ${plugin.version.javadoc}
  
  ${maven.java.version}
  
  
  
  org.apache.maven.plugins
  maven-pmd-plugin
  ${plugin.version.pmd}
  
  ${maven.java.version}
  
  


AFAIK, there is no JDK version parameter for checkstyle or jdepend.

Hope this helps...

Justin



From: John Wooten [mailto:jwoo...@shoulderscorp.com]
Sent: Sat 2/28/2009 12:40 PM
To: Maven Users List
Subject: Re: Eclipse and maven



I have the following in a terminal window:

[woo] 543 > javac -version
javac 1.5.0_16


Now, I have the java version in each of the plugins as 1.5

viz:

jdepend plugin, surefire plugin, pmd plugin, and checkstyle  
plugin.  I

didn't see where to specify that for the javadoc.

Still get:

[INFO] Generating "PMD Report" report.
[WARNING] Unable to locate Source XRef to link to - DISABLED
[WARNING] File encoding has not been set, using platform encoding
MacRoman, i.e. build is platform dependent!
[WARNING] Error while parsing /Users/woo/Development/workspaces/
areteq/
modules/Foundation/src/main/java/com/areteq/common/
HashMapHandler.java: Can't use generics unless running in JDK 1.5
mode!
[WARNING] Error while parsing /Users/woo/Development/workspaces/
areteq/
modules/Foundation/src/main/java/com/areteq/common/
HashMapHandler.java: Can't use generics unless running in JDK 1.5
mode!


In the  section I have

 org.apache.maven.plugins
 maven-pmd-plugin
 
1.5
1.5
   
 /rulesets/basic.xml
 /rulesets/imports.xml
 /rulesets/unusedcode.xml
 /rulesets/finalizers.xml
   
 




On Feb 27, 2009, at 7:25 PM, Edelson, Justin wrote:

I believe that's a javadoc warning (not error). In addition to  
maven-

compiler-plugin, you also need to specify the Java version in the
javadoc plugin (in the reporting section) and, if you use it, the
pmd plugin.

Justin



From: John Wooten [mailto:jwoo...@shoulderscorp.com]
Sent: Fri 2/27/2009 7:16 PM
To: Maven Users List
Subject: Re: Eclipse and maven



That is 1 place I have it. Still get error.

Pardon bad thumbsmanship.  Sent from mobile phone.

On Feb 27, 2009, at 7:05 PM, Rusty Wright 
wrote:


Only one plugin needs that:

   
   
 maven-compiler-plugin

 
   1.5
   1.5
 
   
   etc.


John Wooten wrote:

I have added:

 1.5
 1.5
   
to each plugin and I still get:
[WARNING] Error while parsing /Users/woo/Development/workspaces/
areteq/modules/Foundation/src/main/java/com/areteq/common/
HashMapHandler.java: Can't use generics unless running in JDK 1.5
mode!
Would be nice to specify this in one place ( run in JDK 1.5  
mode ).

On Feb 27, 2009, at 4:06 PM,

Re: "mvn site" triggers generate-sources

2009-03-03 Thread Wayne Fay
> That works just fine, the problem is, the very same phase is executed
> when I do generate the Project Site using "mvn site". Thus, the task
> bound to "generate-sources" is triggered several times for every site
> thats built.

My best guess without seeing your poms and knowing more about your
project is that you are probably using some plugins (PMD, etc) that
want to use/analyze the source code to include a report in the
generation of the site, and they are causing generate-sources to be
executed.

Wayne

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



RE: Executing another process from maven plugin

2009-03-03 Thread Edelson, Justin
I don't know if there's an easy way to do this. The plugin class loader
is created at runtime via Classworlds, so you can do something like
this:
URLClassLoader cl = (URLClassLoader)
Thread.currentThread().getContextClassLoader();

And then call cl.getURLs().

But this list is probably going to include (in your original words)
"crappy stuff".

I would question why you're not just executing the Java class directly,
rather than via Process.exec(). Wouldn't

AgentCompiler.main(cmd);

Be a heck of a lot easier than going through these hoops?

Justin


-Original Message-
From: Roman Kournjaev [mailto:kournj...@gmail.com] 
Sent: Tuesday, March 03, 2009 10:30 AM
To: Maven Users List
Subject: Re: Executing another process from maven plugin

Justin , just one more small question.

The project.getCompileClasspathElements() , gets me the elements of the
classpath of the project that the plugin is actually running , but not
of the plugin itself , so i had to add plugin dependencies also to the
pom.xml where the plugin is configured. Is there a way to get the plugin
classpath too ?

Thanks in advnace

Roman


On Tue, Mar 3, 2009 at 4:59 PM, Edelson, Justin
 wrote:

> The project variable (which doesn't need to be named project) should 
> be injected by Plexus. Here's an example:
>
>/**
> * @parameter expression="${project}"
> * @required
> * @readonly
> */
>private MavenProject project;
>
>
> 
>
> From: Roman Kournjaev [mailto:kournj...@gmail.com]
> Sent: Tue 3/3/2009 9:55 AM
> To: Maven Users List
> Subject: Re: Executing another process from maven plugin
>
>
>
> Thanks Justin
>
> If that works , then this is the solution for my problem , but i just 
> cant find the *project.getCompileClasspathElements()* , where do i get

> the *project *variable from ? I didnt see it in the AbstractMojo 
> class?
>
> Thanks
>
> On Tue, Mar 3, 2009 at 4:40 PM, Edelson, Justin < 
> justin.edel...@mtvstaff.com>
> wrote:
> > I believe that will give you the class path of the current process, 
> > which
> is why you're getting Maven stuff.
> >
> > If you're trying to get project dependencies, what you want to do is
> include this annotation in your class comments:
> > @requiresDependencyResolution compile
> >
> > And then, use project.getCompileClasspathElements() to get the list 
> > of
> compile-scoped classpath elements.
> >
> > Justin
> >
> >
> > 
> >
> > From: Roman Kournjaev [mailto:kournj...@gmail.com]
> > Sent: Tue 3/3/2009 9:29 AM
> > To: Maven Users List
> > Subject: Re: Executing another process from maven plugin
> >
> >
> >
> > Ohh, Sorry
> >
> > Just the regular thing .. : private static String getClassPath()
{
> >  return 
> > prop.getProperty("java.class.path", null);
> >}
> >
> > Roman
> >
> >
> > On Tue, Mar 3, 2009 at 4:26 PM, Edelson, Justin 
> >  wrote:
> >> What is inside the getClassPath() method?
> >>
> >> On Mar 3, 2009, at 8:58 AM, "Roman Kournjaev" 
> wrote:
> >>
> >>> Hi Folks
> >>>
> >>> I am a little bit stuck here with the following problem.
> >>>
> >>> I have written some custom compiler plugin that invokes the actual

> >>> compiler, the problem is that i have to do it in a separate 
> >>> process
> >>> Runtime.exec()
> >>>
> >>> It goes like that :
> >>>
> >>>   Process process = null;
> >>>   String command = "java -cp \"" + getClassPath() + "\" "

> >>> +
> >>> AgentCompiler.class.getCanonicalName() + " " + cmd;
> >>>   getLog().info("executing : " + command);
> >>>   process = Runtime.getRuntime().exec(command);
> >>>
> >>>
> >>> Well, when i run it from plain java , it works fine ... :-)
> >>>
> >>> When i run it as a plugin actually , then i get crappy stuff in my

> >>> classpath ,everything from maven , but nothing that i actually 
> >>> defined in my
> pom.xml
> >>> inside the plugin.
> >>>
> >>> I also tried to add these dependecies (plugin dependencies) inside

> >>> the  tag , inside the pom.xml that makes use

> >>> of that plugin , but also in vain , i still get the same
classpath.
> >>>
> >>> So long story short .. How to the the needed classpath for running

> >>> a process outside a maven plugin ???
> >>>
> >>> Thanks in advance.
> >>>
> >>> Roman
> >>
> >> ---
> >> -- 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.apac

[ANN] Maven Project Info Reports Plugin 2.1.1 Released

2009-03-03 Thread Vincent Siveton
The Maven team is pleased to announce the release of the Maven Project
Info Reports Plugin, version 2.1.1.
This is a maintenance release due to MPIR-146.

This plugin is used to generate reports information about the project.

http://maven.apache.org/plugins/maven-project-info-reports-plugin

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


 org.apache.maven.plugins
 maven-project-info-reports-pluginn
 2.1.1


Release Notes - Maven 2.x Project Info Reports Plugin - Version 2.1.1

** Bug
* [MPIR-127] - Image close.gif not copy when performing site:stage
* [MPIR-131] - NPE in printArtifactsLocations() for blacklisted repo
* [MPIR-135] - NPE if license URL is not defined
* [MPIR-146] -
org.apache.maven.report.projectinfo.dependencies.Dependencies.mapArtifactFiles(DependencyNode,
Map) wreaks havoc upon artifacts file names

** Improvement
* [MPIR-140] - Add anchors to sections to be able to link them directly
* [MPIR-141] - "Release" french translation


Enjoy,

-The Maven team

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



Re: Generating site with confluence markup

2009-03-03 Thread Borut Bolčina
Thanks for the pointers,

so there is no way I can use doxia confluence with Maven 2.0.10? Can
you post an example like Dirk did?

Thanks again,
Borut

2009/3/3 Lukas Theussl :
>
> A lot of stuff has been fixed in Doxia 1.1, see comments in-line.
> A full list of changes in the confluence module is here:
> http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=true&pid=10780&status=6&component=12000
>
> Borut Bolčina wrote:
>>
>> Thanks, I just tried with the snippet you posted. It works, but I was
>> kind of disappointed when discovered that only some of the confluence
>> notation works.
>>
>> At http://maven.apache.org/doxia/modules/index.html#Confluence there
>> is a link to confluence elements reference
>> http://confluence.atlassian.com/renderer/notationhelp.action?section=all
>>
>> I tried  this markup:
>>
>> *strong*
>>
>> _emphasis_
>>
>> ??citation??
>>
>> -strikethrough-
>>
>> +underlined+
>>
>> ^superscript^
>>
>> ~subscript~
>>
>> {{text will be monospaced}}
>>
>>
>> and only strong, emphasis and monospaced works.
>
> This is not specific to confluence, general support for strikethrough,
> underline, super/subscript, etc have only been added in Doxia 1.1, see eg
> http://jira.codehaus.org/browse/DOXIA-163,
> http://jira.codehaus.org/browse/DOXIA-164.
>
>>
>> Tables, for example:
>>
>> ||heading 1||heading 2||heading 3||
>> |col A1|col A2|col A3|
>> |col B1|col B2|col B3|
>>
>> don't work. It says:
>
> Looks like http://jira.codehaus.org/browse/DOXIA-215, fixed in 1.1.
>
>
>> [ERROR] FATAL ERROR
>> [INFO]
>> 
>> [INFO] 3
>> [INFO]
>> 
>> [INFO] Trace
>> java.lang.ArrayIndexOutOfBoundsException: 3
>>        at
>> org.apache.maven.doxia.module.xhtml.XhtmlSink.tableCell(XhtmlSink.java:791)
>>        at
>> org.apache.maven.doxia.module.xhtml.XhtmlSink.tableCell(XhtmlSink.java:771)
>>        at
>> org.apache.maven.doxia.module.confluence.parser.table.TableCellBlock.before(TableCellBlock.java:38)
>>        at
>> org.apache.maven.doxia.module.confluence.parser.AbstractFatherBlock.traverse(AbstractFatherBlock.java:49)
>>        at
>> org.apache.maven.doxia.module.confluence.parser.AbstractFatherBlock.traverse(AbstractFatherBlock.java:55)
>>        at
>> org.apache.maven.doxia.module.confluence.parser.AbstractFatherBlock.traverse(AbstractFatherBlock.java:55)
>>        at
>> org.apache.maven.doxia.module.confluence.ConfluenceParser.parse(ConfluenceParser.java:152)
>>        at org.apache.maven.doxia.DefaultDoxia.parse(DefaultDoxia.java:59)
>>        at
>> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderDocument(DefaultSiteRenderer.java:342)
>>        at
>> org.apache.maven.doxia.siterenderer.DoxiaDocumentRenderer.renderDocument(DoxiaDocumentRenderer.java:46)
>>        at
>> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:269)
>>        at
>> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:101)
>>        at
>> org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:133)
>>        at
>> org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:100)
>>        at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:500)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:479)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
>>        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)
>>
>>
>> Also, my hopes were high for insertin

Re: jar:sign refuses to sign jar artifact of project with custom packaging type

2009-03-03 Thread Wayne Fay
> same story with the new mvn 2.0.10
> maven-jar-plugin is at 2.2
>
> Has no one else seen this?

In all likelihood, you're one of the first people to try using
jar:sign on a custom artifact. So it might be a little painful to get
it working, and may involve changing some code in the Jar plugin. Once
you do, please do post back for future people who want to do the same
thing, and contribute the code changes back via Jira.

Wayne

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



Re: executing or skipping tests based on availability of WSDL URL

2009-03-03 Thread Wayne Fay
Something along these lines was just discussed a couple days ago...
check the archive for the full thread.

from: Les Hazlewood
date: Wed, Feb 25, 2009 at 2:56 PM
subject: Conditional plugin execution based on build time behavior -
Maven profiles not sufficient?

Wayne

On Tue, Mar 3, 2009 at 6:32 AM, kvenkatraman  wrote:
>
> Hi
> Our Junit tests depends on  WSDL for testing the webservice. Most of the
> time our build fails because of non availability of the WSDL. I dont want to
> skip the tests , rather I want to check if the WSDL is available and run the
> tests, else skip the tests.WSDL is hosted as URL
>
> Thanks
> kv
>
> --
> View this message in context: 
> http://www.nabble.com/executing-or-skipping-tests-based-on-availability-of-WSDL-URL-tp22309696p22309696.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



Maven plugin to call ESAPI?

2009-03-03 Thread Leonardo Andrade

Hi there,

Is it possible to call ESAPI from Maven? Say, when Maven is about to run, it 
calls Eclipse to check for the code. Is it possible, by creating a plugin?

Thanks.



  Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com

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



Re: jar:sign refuses to sign jar artifact of project with custom packaging type

2009-03-03 Thread Rob Dickens
same story with the new mvn 2.0.10
maven-jar-plugin is at 2.2

Has no one else seen this?

2009/3/2 Rob Dickens 

> I get the following message when mvn is run with the -X option:
>
> [DEBUG] Not executing jar:sign as the project is not a Java module
>
> (Am using a custom packaging type in order to use a custom lifecycle, that
> invokes a custom goal before the jar:jar one.)
>
> If I change the packaging type back to jar, jar:sign does sign the
> artifact.
>
> Could anyone please help.
>
> Thanks.
>
> --
> Rob, Lafros.com
>


RE: Use mirror in parent snapshot inheritance

2009-03-03 Thread Brian E. Fox
Sounds like you have no snapshot repositories enabled in the settings.
In our sample settings, we show overloading central to enabled
snapshots. The mirror then directs this to nexus which will find it. If
maven sees no snapshot repo enabled, it doesn't even try to find it
externally.

See here:
http://www.sonatype.com/books/nexus-book/reference/maven-sect-single-gro
up.html

-Original Message-
From: Vincent Beretti [mailto:vbere...@gmail.com] 
Sent: Tuesday, March 03, 2009 3:19 AM
To: Maven Users List
Subject: Re: Use mirror in parent snapshot inheritance

Thanks for the answer.
I look at the blog article. In fact, we use mirror definition in
settings.xml. This is the only way for B to grab A from our Nexus
repository.
The problem is that when A is not in our local repository, B is not able
to
grab A in nexus if A is a snapshot version.
The mirror is defined for everything (*) but it
seems
that it only search for release version and not for snapshots.
Is it a wanted restriction or a bug ?
I don't really understand Brett Porter's answer in
http://jira.codehaus.org/browse/MNG-943, because if the "a single POM
for
the company that is the "root" that all projects inherit from" is a
snapshot
version, sub modules won't be able to find it.

Thanks,
Vincent.

On Mon, Mar 2, 2009 at 7:57 PM, Brian E. Fox
wrote:

> You might want to take a look at this:
>
http://www.sonatype.com/people/2009/02/why-putting-repositories-in-your-
>
poms-is-a-bad-idea/
>
> -Original Message-
> From: Vincent Beretti [mailto:vbere...@gmail.com]
> Sent: Monday, March 02, 2009 11:37 AM
> To: users@maven.apache.org
> Subject: Use mirror in parent snapshot inheritance
>
> Hi all,
> let's consider the following project :
> A
> |  B
> |  C
>
> A is the parent pom of B. In A, I define the repository location of
our
> entreprise repository.
> A is a currently in a snapshot version so in B's pom.xml I have :
> 
>  com.xxx
>  A
>  1.0-SNAPSHOT
> 
>
> So when I checkout A and build it from A or B, the build is
successfull.
> But let's consider I only want to checkout B, because I don't want to
> checkout all C project sources.
> When I run an install on B project (A is not available through
> filesystem in
> the upper directory or in my local repository as a 1.0-SNAPSHOT
> version),
> the build fails saying that it can not find the artifact A with
version
> 1.0-SNAPSHOT. This should be normal because it can not find the
location
> of
> our entreprise repository because it is defined in project A.
> So I defined a mirror, that for all requests (*)
> forward to our entreprise repository for all artifacts (releases and
> snapshots).
> It is still not working.
>
> I saw this issue :
> http://jira.codehaus.org/browse/MNG-943
> It seems to be the reason why I can't retrieve the snapshots version
of
> my
> artifact A. It is really blocking for big projects.
> How can I bypass this limitation ?
> Can we correct this limitation and allow retrieval of snapshots
> artifacts ?
>
> Thanks,
> Vincent Beretti.
>
> -
> 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: Why does the release plugin refuse input?

2009-03-03 Thread Ray Krueger
On Mon, Mar 2, 2009 at 3:36 PM, Ray Krueger  wrote:
> It seems the release plugin has gone into this sort of "my way or the
> highway" mode on us. Why won't it accept our snapshot version?
> It ignores our current 1.0.1-SNAPSHOT version and suggests
> 1.1-SNAPSHOT, and then it won't accept our correction
>
> [INFO] Checking dependencies and plugins for snapshots ...
> There are still some remaining snapshot dependencies.: Do you want to
> resolve them now? (yes/no) no: : yes
> Dependency type to resolve,: specify the selection number ( 0:All
> 1:Project Dependencies 2:Plugins 3:Reports 4:Extensions ): (0/1/2/3)
> 1: : 0
> Resolve All Snapshots.: 'com.mycompany.productversionmanager:flex-gui'
> set to release? (yes/no) yes: : yes
> What is the next development version? (1.1-SNAPSHOT) 1.1-SNAPSHOT: :
> 1.0.1-SNAPSHOT
>
> What is the next development version? (1.1-SNAPSHOT) 1.1-SNAPSHOT: :
> 1.0.1-SNAPSHOT
>
> What is the next development version? (1.1-SNAPSHOT) 1.1-SNAPSHOT: :
> 1.0.1-SNAPSHOT
>
> What is the next development version? (1.1-SNAPSHOT) 1.1-SNAPSHOT: :
> 1.0.1-SNAPSHOT
>
> What is the next development version? (1.1-SNAPSHOT) 1.1-SNAPSHOT: :
>

Minor update on this...
If we actually type in 1.1-SNAPSHOT it will work, if we type anything
else the release-plugin just asks the question again.
Any thoughts?

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



Re: Maven 2 and C/C++ Testing Framework

2009-03-03 Thread Dan Tran
The mentioned test phase is for java test.  Take a look at jade native
maven plugin, it is an spin off of native plugin and  covers cppunit
test

-D

On Tue, Mar 3, 2009 at 7:59 AM, Rémy Sanlaville
 wrote:
> Hi,
>
> I am looking for using C/C++ Testing Framework (like CppUnit, CxxTest or
> googletest) with maven 2.
> Does anybody already done it ?
>
> We are using native-maven-plugin for the compilation.
> But I am quite surprise that the native build lifecycle for this plugin
> consists of the following phases with corresponding goals (cf. [1]):
>  test-compile    org.apache.maven.plugins:maven-compiler-plugin:testCompile
>  test                org.apache.maven.plugins:maven-surefire-plugin:test
>
> I don't think that surefire support such of Testing Framework.
> It seems that we will have to bind :
>   - an execution of the native-maven-plugin to the test-compile phase
>   - an execution of the maven-antrun-plugin to the test phase
>
> Rémy
>
> [1] http://mojo.codehaus.org/maven-native/native-maven-plugin/lifecycle.html
>

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



Maven 2 and C/C++ Testing Framework

2009-03-03 Thread Rémy Sanlaville
Hi,

I am looking for using C/C++ Testing Framework (like CppUnit, CxxTest or
googletest) with maven 2.
Does anybody already done it ?

We are using native-maven-plugin for the compilation.
But I am quite surprise that the native build lifecycle for this plugin
consists of the following phases with corresponding goals (cf. [1]):
  test-compileorg.apache.maven.plugins:maven-compiler-plugin:testCompile
  testorg.apache.maven.plugins:maven-surefire-plugin:test

I don't think that surefire support such of Testing Framework.
It seems that we will have to bind :
   - an execution of the native-maven-plugin to the test-compile phase
   - an execution of the maven-antrun-plugin to the test phase

Rémy

[1] http://mojo.codehaus.org/maven-native/native-maven-plugin/lifecycle.html


"mvn site" triggers generate-sources

2009-03-03 Thread Daniel.Q.Pfeifer
Hi,

I was wondering if any of you guys encountered the same problem.

I am generating some source code using an ANT Task, the task is
triggered when the Maven lifecycle reaches the "generate-sources" phase.

That works just fine, the problem is, the very same phase is executed
when I do generate the Project Site using "mvn site". Thus, the task
bound to "generate-sources" is triggered several times for every site
thats built.

Any smart ideas, because I don't seem to find the solution to this.

Thanks in advance,
/Daniel

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



Re: Executing another process from maven plugin

2009-03-03 Thread Roman Kournjaev
Justin , just one more small question.

The project.getCompileClasspathElements() , gets me the elements of the
classpath of the project that the plugin is actually running , but not of
the plugin itself , so i had to add plugin dependencies also to the pom.xml
where the plugin is configured. Is there a way to get the plugin classpath
too ?

Thanks in advnace

Roman


On Tue, Mar 3, 2009 at 4:59 PM, Edelson, Justin  wrote:

> The project variable (which doesn't need to be named project) should be
> injected by Plexus. Here's an example:
>
>/**
> * @parameter expression="${project}"
> * @required
> * @readonly
> */
>private MavenProject project;
>
>
> 
>
> From: Roman Kournjaev [mailto:kournj...@gmail.com]
> Sent: Tue 3/3/2009 9:55 AM
> To: Maven Users List
> Subject: Re: Executing another process from maven plugin
>
>
>
> Thanks Justin
>
> If that works , then this is the solution for my problem , but i just cant
> find the *project.getCompileClasspathElements()* , where do i get the
> *project
> *variable from ? I didnt see it in the AbstractMojo class?
>
> Thanks
>
> On Tue, Mar 3, 2009 at 4:40 PM, Edelson, Justin <
> justin.edel...@mtvstaff.com>
> wrote:
> > I believe that will give you the class path of the current process, which
> is why you're getting Maven stuff.
> >
> > If you're trying to get project dependencies, what you want to do is
> include this annotation in your class comments:
> > @requiresDependencyResolution compile
> >
> > And then, use project.getCompileClasspathElements() to get the list of
> compile-scoped classpath elements.
> >
> > Justin
> >
> >
> > 
> >
> > From: Roman Kournjaev [mailto:kournj...@gmail.com]
> > Sent: Tue 3/3/2009 9:29 AM
> > To: Maven Users List
> > Subject: Re: Executing another process from maven plugin
> >
> >
> >
> > Ohh, Sorry
> >
> > Just the regular thing .. : private static String getClassPath() {
> >  return
> > prop.getProperty("java.class.path", null);
> >}
> >
> > Roman
> >
> >
> > On Tue, Mar 3, 2009 at 4:26 PM, Edelson, Justin
> >  wrote:
> >> What is inside the getClassPath() method?
> >>
> >> On Mar 3, 2009, at 8:58 AM, "Roman Kournjaev" 
> wrote:
> >>
> >>> Hi Folks
> >>>
> >>> I am a little bit stuck here with the following problem.
> >>>
> >>> I have written some custom compiler plugin that invokes the actual
> >>> compiler,
> >>> the problem is that i have to do it in a separate process
> >>> Runtime.exec()
> >>>
> >>> It goes like that :
> >>>
> >>>   Process process = null;
> >>>   String command = "java -cp \"" + getClassPath() + "\" "  +
> >>> AgentCompiler.class.getCanonicalName() + " " + cmd;
> >>>   getLog().info("executing : " + command);
> >>>   process = Runtime.getRuntime().exec(command);
> >>>
> >>>
> >>> Well, when i run it from plain java , it works fine ... :-)
> >>>
> >>> When i run it as a plugin actually , then i get crappy stuff in my
> >>> classpath
> >>> ,everything from maven , but nothing that i actually defined in my
> pom.xml
> >>> inside the plugin.
> >>>
> >>> I also tried to add these dependecies (plugin dependencies) inside the
> >>>  tag , inside the pom.xml that makes use of that
> >>> plugin , but also in vain , i still get the same classpath.
> >>>
> >>> So long story short .. How to the the needed classpath for running a
> >>> process
> >>> outside a maven plugin ???
> >>>
> >>> Thanks in advance.
> >>>
> >>> Roman
> >>
> >> -
> >> 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: Executing another process from maven plugin

2009-03-03 Thread Roman Kournjaev
Justin , you're the Man .. .!

Thanks a lot!

On Tue, Mar 3, 2009 at 4:59 PM, Edelson, Justin  wrote:

> The project variable (which doesn't need to be named project) should be
> injected by Plexus. Here's an example:
>
>/**
> * @parameter expression="${project}"
> * @required
> * @readonly
> */
>private MavenProject project;
>
>
> 
>
> From: Roman Kournjaev [mailto:kournj...@gmail.com]
> Sent: Tue 3/3/2009 9:55 AM
> To: Maven Users List
> Subject: Re: Executing another process from maven plugin
>
>
>
> Thanks Justin
>
> If that works , then this is the solution for my problem , but i just cant
> find the *project.getCompileClasspathElements()* , where do i get the
> *project
> *variable from ? I didnt see it in the AbstractMojo class?
>
> Thanks
>
> On Tue, Mar 3, 2009 at 4:40 PM, Edelson, Justin <
> justin.edel...@mtvstaff.com>
> wrote:
> > I believe that will give you the class path of the current process, which
> is why you're getting Maven stuff.
> >
> > If you're trying to get project dependencies, what you want to do is
> include this annotation in your class comments:
> > @requiresDependencyResolution compile
> >
> > And then, use project.getCompileClasspathElements() to get the list of
> compile-scoped classpath elements.
> >
> > Justin
> >
> >
> > 
> >
> > From: Roman Kournjaev [mailto:kournj...@gmail.com]
> > Sent: Tue 3/3/2009 9:29 AM
> > To: Maven Users List
> > Subject: Re: Executing another process from maven plugin
> >
> >
> >
> > Ohh, Sorry
> >
> > Just the regular thing .. : private static String getClassPath() {
> >  return
> > prop.getProperty("java.class.path", null);
> >}
> >
> > Roman
> >
> >
> > On Tue, Mar 3, 2009 at 4:26 PM, Edelson, Justin
> >  wrote:
> >> What is inside the getClassPath() method?
> >>
> >> On Mar 3, 2009, at 8:58 AM, "Roman Kournjaev" 
> wrote:
> >>
> >>> Hi Folks
> >>>
> >>> I am a little bit stuck here with the following problem.
> >>>
> >>> I have written some custom compiler plugin that invokes the actual
> >>> compiler,
> >>> the problem is that i have to do it in a separate process
> >>> Runtime.exec()
> >>>
> >>> It goes like that :
> >>>
> >>>   Process process = null;
> >>>   String command = "java -cp \"" + getClassPath() + "\" "  +
> >>> AgentCompiler.class.getCanonicalName() + " " + cmd;
> >>>   getLog().info("executing : " + command);
> >>>   process = Runtime.getRuntime().exec(command);
> >>>
> >>>
> >>> Well, when i run it from plain java , it works fine ... :-)
> >>>
> >>> When i run it as a plugin actually , then i get crappy stuff in my
> >>> classpath
> >>> ,everything from maven , but nothing that i actually defined in my
> pom.xml
> >>> inside the plugin.
> >>>
> >>> I also tried to add these dependecies (plugin dependencies) inside the
> >>>  tag , inside the pom.xml that makes use of that
> >>> plugin , but also in vain , i still get the same classpath.
> >>>
> >>> So long story short .. How to the the needed classpath for running a
> >>> process
> >>> outside a maven plugin ???
> >>>
> >>> Thanks in advance.
> >>>
> >>> Roman
> >>
> >> -
> >> 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: Executing another process from maven plugin

2009-03-03 Thread Edelson, Justin
The project variable (which doesn't need to be named project) should be 
injected by Plexus. Here's an example:
 
/**
 * @parameter expression="${project}"
 * @required
 * @readonly
 */
private MavenProject project;




From: Roman Kournjaev [mailto:kournj...@gmail.com]
Sent: Tue 3/3/2009 9:55 AM
To: Maven Users List
Subject: Re: Executing another process from maven plugin



Thanks Justin

If that works , then this is the solution for my problem , but i just cant
find the *project.getCompileClasspathElements()* , where do i get the *project
*variable from ? I didnt see it in the AbstractMojo class?

Thanks

On Tue, Mar 3, 2009 at 4:40 PM, Edelson, Justin 
wrote:
> I believe that will give you the class path of the current process, which
is why you're getting Maven stuff.
>
> If you're trying to get project dependencies, what you want to do is
include this annotation in your class comments:
> @requiresDependencyResolution compile
>
> And then, use project.getCompileClasspathElements() to get the list of
compile-scoped classpath elements.
>
> Justin
>
>
> 
>
> From: Roman Kournjaev [mailto:kournj...@gmail.com]
> Sent: Tue 3/3/2009 9:29 AM
> To: Maven Users List
> Subject: Re: Executing another process from maven plugin
>
>
>
> Ohh, Sorry
>
> Just the regular thing .. : private static String getClassPath() {
>  return
> prop.getProperty("java.class.path", null);
>}
>
> Roman
>
>
> On Tue, Mar 3, 2009 at 4:26 PM, Edelson, Justin
>  wrote:
>> What is inside the getClassPath() method?
>>
>> On Mar 3, 2009, at 8:58 AM, "Roman Kournjaev" 
wrote:
>>
>>> Hi Folks
>>>
>>> I am a little bit stuck here with the following problem.
>>>
>>> I have written some custom compiler plugin that invokes the actual
>>> compiler,
>>> the problem is that i have to do it in a separate process
>>> Runtime.exec()
>>>
>>> It goes like that :
>>>
>>>   Process process = null;
>>>   String command = "java -cp \"" + getClassPath() + "\" "  +
>>> AgentCompiler.class.getCanonicalName() + " " + cmd;
>>>   getLog().info("executing : " + command);
>>>   process = Runtime.getRuntime().exec(command);
>>>
>>>
>>> Well, when i run it from plain java , it works fine ... :-)
>>>
>>> When i run it as a plugin actually , then i get crappy stuff in my
>>> classpath
>>> ,everything from maven , but nothing that i actually defined in my
pom.xml
>>> inside the plugin.
>>>
>>> I also tried to add these dependecies (plugin dependencies) inside the
>>>  tag , inside the pom.xml that makes use of that
>>> plugin , but also in vain , i still get the same classpath.
>>>
>>> So long story short .. How to the the needed classpath for running a
>>> process
>>> outside a maven plugin ???
>>>
>>> Thanks in advance.
>>>
>>> Roman
>>
>> -
>> 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: Executing another process from maven plugin

2009-03-03 Thread Roman Kournjaev
Thanks Justin

If that works , then this is the solution for my problem , but i just cant
find the *project.getCompileClasspathElements()* , where do i get the *project
*variable from ? I didnt see it in the AbstractMojo class?

Thanks

On Tue, Mar 3, 2009 at 4:40 PM, Edelson, Justin 
wrote:
> I believe that will give you the class path of the current process, which
is why you're getting Maven stuff.
>
> If you're trying to get project dependencies, what you want to do is
include this annotation in your class comments:
> @requiresDependencyResolution compile
>
> And then, use project.getCompileClasspathElements() to get the list of
compile-scoped classpath elements.
>
> Justin
>
>
> 
>
> From: Roman Kournjaev [mailto:kournj...@gmail.com]
> Sent: Tue 3/3/2009 9:29 AM
> To: Maven Users List
> Subject: Re: Executing another process from maven plugin
>
>
>
> Ohh, Sorry
>
> Just the regular thing .. : private static String getClassPath() {
>  return
> prop.getProperty("java.class.path", null);
>}
>
> Roman
>
>
> On Tue, Mar 3, 2009 at 4:26 PM, Edelson, Justin
>  wrote:
>> What is inside the getClassPath() method?
>>
>> On Mar 3, 2009, at 8:58 AM, "Roman Kournjaev" 
wrote:
>>
>>> Hi Folks
>>>
>>> I am a little bit stuck here with the following problem.
>>>
>>> I have written some custom compiler plugin that invokes the actual
>>> compiler,
>>> the problem is that i have to do it in a separate process
>>> Runtime.exec()
>>>
>>> It goes like that :
>>>
>>>   Process process = null;
>>>   String command = "java -cp \"" + getClassPath() + "\" "  +
>>> AgentCompiler.class.getCanonicalName() + " " + cmd;
>>>   getLog().info("executing : " + command);
>>>   process = Runtime.getRuntime().exec(command);
>>>
>>>
>>> Well, when i run it from plain java , it works fine ... :-)
>>>
>>> When i run it as a plugin actually , then i get crappy stuff in my
>>> classpath
>>> ,everything from maven , but nothing that i actually defined in my
pom.xml
>>> inside the plugin.
>>>
>>> I also tried to add these dependecies (plugin dependencies) inside the
>>>  tag , inside the pom.xml that makes use of that
>>> plugin , but also in vain , i still get the same classpath.
>>>
>>> So long story short .. How to the the needed classpath for running a
>>> process
>>> outside a maven plugin ???
>>>
>>> Thanks in advance.
>>>
>>> Roman
>>
>> -
>> 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: Executing another process from maven plugin

2009-03-03 Thread Edelson, Justin
I believe that will give you the class path of the current process, which is 
why you're getting Maven stuff.
 
If you're trying to get project dependencies, what you want to do is include 
this annotation in your class comments:
@requiresDependencyResolution compile
 
And then, use project.getCompileClasspathElements() to get the list of 
compile-scoped classpath elements.
 
Justin
 



From: Roman Kournjaev [mailto:kournj...@gmail.com]
Sent: Tue 3/3/2009 9:29 AM
To: Maven Users List
Subject: Re: Executing another process from maven plugin



Ohh, Sorry

Just the regular thing .. : private static String getClassPath() {
  return
prop.getProperty("java.class.path", null);
}

Roman


On Tue, Mar 3, 2009 at 4:26 PM, Edelson, Justin
 wrote:
> What is inside the getClassPath() method?
>
> On Mar 3, 2009, at 8:58 AM, "Roman Kournjaev"  wrote:
>
>> Hi Folks
>>
>> I am a little bit stuck here with the following problem.
>>
>> I have written some custom compiler plugin that invokes the actual
>> compiler,
>> the problem is that i have to do it in a separate process
>> Runtime.exec()
>>
>> It goes like that :
>>
>>   Process process = null;
>>   String command = "java -cp \"" + getClassPath() + "\" "  +
>> AgentCompiler.class.getCanonicalName() + " " + cmd;
>>   getLog().info("executing : " + command);
>>   process = Runtime.getRuntime().exec(command);
>>
>>
>> Well, when i run it from plain java , it works fine ... :-)
>>
>> When i run it as a plugin actually , then i get crappy stuff in my
>> classpath
>> ,everything from maven , but nothing that i actually defined in my pom.xml
>> inside the plugin.
>>
>> I also tried to add these dependecies (plugin dependencies) inside the
>>  tag , inside the pom.xml that makes use of that
>> plugin , but also in vain , i still get the same classpath.
>>
>> So long story short .. How to the the needed classpath for running a
>> process
>> outside a maven plugin ???
>>
>> Thanks in advance.
>>
>> Roman
>
> -
> 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





executing or skipping tests based on availability of WSDL URL

2009-03-03 Thread kvenkatraman

Hi
Our Junit tests depends on  WSDL for testing the webservice. Most of the
time our build fails because of non availability of the WSDL. I dont want to
skip the tests , rather I want to check if the WSDL is available and run the
tests, else skip the tests.WSDL is hosted as URL

Thanks
kv
 
-- 
View this message in context: 
http://www.nabble.com/executing-or-skipping-tests-based-on-availability-of-WSDL-URL-tp22309696p22309696.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: Executing another process from maven plugin

2009-03-03 Thread Roman Kournjaev
Ohh, Sorry

Just the regular thing .. : private static String getClassPath() {
  return
prop.getProperty("java.class.path", null);
}

Roman


On Tue, Mar 3, 2009 at 4:26 PM, Edelson, Justin
 wrote:
> What is inside the getClassPath() method?
>
> On Mar 3, 2009, at 8:58 AM, "Roman Kournjaev"  wrote:
>
>> Hi Folks
>>
>> I am a little bit stuck here with the following problem.
>>
>> I have written some custom compiler plugin that invokes the actual
>> compiler,
>> the problem is that i have to do it in a separate process
>> Runtime.exec()
>>
>> It goes like that :
>>
>>           Process process = null;
>>           String command = "java -cp \"" + getClassPath() + "\" "  +
>> AgentCompiler.class.getCanonicalName() + " " + cmd;
>>           getLog().info("executing : " + command);
>>           process = Runtime.getRuntime().exec(command);
>>
>>
>> Well, when i run it from plain java , it works fine ... :-)
>>
>> When i run it as a plugin actually , then i get crappy stuff in my
>> classpath
>> ,everything from maven , but nothing that i actually defined in my pom.xml
>> inside the plugin.
>>
>> I also tried to add these dependecies (plugin dependencies) inside the
>>  tag , inside the pom.xml that makes use of that
>> plugin , but also in vain , i still get the same classpath.
>>
>> So long story short .. How to the the needed classpath for running a
>> process
>> outside a maven plugin ???
>>
>> Thanks in advance.
>>
>> Roman
>
> -
> 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: Executing another process from maven plugin

2009-03-03 Thread Edelson, Justin

What is inside the getClassPath() method?

On Mar 3, 2009, at 8:58 AM, "Roman Kournjaev"   
wrote:



Hi Folks

I am a little bit stuck here with the following problem.

I have written some custom compiler plugin that invokes the actual  
compiler,
the problem is that i have to do it in a separate process  
Runtime.exec()


It goes like that :

   Process process = null;
   String command = "java -cp \"" + getClassPath() + "\" "  +
AgentCompiler.class.getCanonicalName() + " " + cmd;
   getLog().info("executing : " + command);
   process = Runtime.getRuntime().exec(command);


Well, when i run it from plain java , it works fine ... :-)

When i run it as a plugin actually , then i get crappy stuff in my  
classpath
,everything from maven , but nothing that i actually defined in my  
pom.xml

inside the plugin.

I also tried to add these dependecies (plugin dependencies) inside the
 tag , inside the pom.xml that makes use of that
plugin , but also in vain , i still get the same classpath.

So long story short .. How to the the needed classpath for running a  
process

outside a maven plugin ???

Thanks in advance.

Roman


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



Executing another process from maven plugin

2009-03-03 Thread Roman Kournjaev
Hi Folks

I am a little bit stuck here with the following problem.

I have written some custom compiler plugin that invokes the actual compiler,
the problem is that i have to do it in a separate process Runtime.exec()

It goes like that :

Process process = null;
String command = "java -cp \"" + getClassPath() + "\" "  +
AgentCompiler.class.getCanonicalName() + " " + cmd;
getLog().info("executing : " + command);
process = Runtime.getRuntime().exec(command);


Well, when i run it from plain java , it works fine ... :-)

When i run it as a plugin actually , then i get crappy stuff in my classpath
,everything from maven , but nothing that i actually defined in my pom.xml
inside the plugin.

I also tried to add these dependecies (plugin dependencies) inside the
 tag , inside the pom.xml that makes use of that
plugin , but also in vain , i still get the same classpath.

So long story short .. How to the the needed classpath for running a process
outside a maven plugin ???

Thanks in advance.

Roman


conditional extensions

2009-03-03 Thread Henri Gomez
Hi to all,

I used to have the following in our enterprise POM.

  

...


  
org.apache.maven.wagon
wagon-webdav
1.0-beta-2
  


As of maven 2.0.9 it's no more mandatory and cause conflict with
sonar, so I removed it.
Many of our developpers use m2eclipse with the embedded maven 2.1.x
but this one miss the DAV wagon.

Did there is a way to activate extension conditionaly, ie got it
loaded only when Maven embedded 2.1.x is in use ?

Regards

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



Re: Compilation problem with maven

2009-03-03 Thread amar . sannaik
Yep, ya got it. Thanks a lot..


On Tue, Mar 3, 2009 at 4:30 PM, Jörg Schaible  wrote:

> amar.sann...@gmail.com wrote at Dienstag, 3. März 2009 09:35:
>
> > Hi there,
> >
> > I get a error while compilation with maven, I am using maven version
> > 2.0.10
> >
> > here is the maven compiler config I have
> >
> > 
> > org.apache.maven.plugins
> > maven-compiler-plugin
> > 
> > 1.5
> > 1.5
> > 
> >   
> >
> > during compile error I get it is
> >
> > [INFO]
> > 
> > [ERROR] BUILD FAILURE
> > [INFO]
> > 
> > [INFO] Compilation failure
> >
> >
>
> d:/foodlab_feb09/mealbox/meijer/trunk/src/main/java/com/meijer/foodlab/remote/ikan/shoppingcart/package-info.java
> [1,49]
> > package annotations should be in file package-info.java
> >
> >
>
> d:/foodlab_feb09/mealbox/meijer/trunk/src/main/java/com/meijer/webservices/foodlab/client/package-info.java
> [1,49]
> > package annotations should be in file package-info.java
> >
> > I dint get much of help browsing internet, can someone help me fix this.
>
> This is a compiler error
> (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6198196). Upgrade your
> JDK to the last service level.
>
> - Jörg
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Amar Sannaik | Senior Engineer


Re: Compilation problem with maven

2009-03-03 Thread Jörg Schaible
amar.sann...@gmail.com wrote at Dienstag, 3. März 2009 09:35:

> Hi there,
> 
> I get a error while compilation with maven, I am using maven version
> 2.0.10
> 
> here is the maven compiler config I have
> 
> 
> org.apache.maven.plugins
> maven-compiler-plugin
> 
> 1.5
> 1.5
> 
>   
> 
> during compile error I get it is
> 
> [INFO]
> 
> [ERROR] BUILD FAILURE
> [INFO]
> 
> [INFO] Compilation failure
> 
>
d:/foodlab_feb09/mealbox/meijer/trunk/src/main/java/com/meijer/foodlab/remote/ikan/shoppingcart/package-info.java
[1,49]
> package annotations should be in file package-info.java
> 
>
d:/foodlab_feb09/mealbox/meijer/trunk/src/main/java/com/meijer/webservices/foodlab/client/package-info.java
[1,49]
> package annotations should be in file package-info.java
> 
> I dint get much of help browsing internet, can someone help me fix this.

This is a compiler error
(http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6198196). Upgrade your
JDK to the last service level.

- Jörg



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



RE: Compilation problem with maven

2009-03-03 Thread Jon Georg Berentsen
That's not a maven error.
It's the java compiler telling you there is a compilation error in your
code.

Jon

-Original Message-
From: amar.sann...@gmail.com [mailto:amar.sann...@gmail.com] 
Sent: 3. mars 2009 09:36
To: users@maven.apache.org
Subject: Compilation problem with maven

Hi there,

I get a error while compilation with maven, I am using maven version
2.0.10

here is the maven compiler config I have


org.apache.maven.plugins
maven-compiler-plugin

1.5
1.5

  

during compile error I get it is

[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Compilation failure

d:/foodlab_feb09/mealbox/meijer/trunk/src/main/java/com/meijer/foodlab/r
emote/ikan/shoppingcart/package-info.java:[1,49]
package annotations should be in file package-info.java

d:/foodlab_feb09/mealbox/meijer/trunk/src/main/java/com/meijer/webservic
es/foodlab/client/package-info.java:[1,49]
package annotations should be in file package-info.java

I dint get much of help browsing internet, can someone help me fix this.

thanks in advance
-- 
Amar Sannaik | Senior Engineer

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



Re: Functional Test strategies with Maven

2009-03-03 Thread Martin Höller
Hi Martijn!

I'm joining this discussion a little late, but have some references to add 
which may help making up your mind:

http://docs.codehaus.org/display/MAVENUSER/Maven+and+Integration+Testing
http://www.jroller.com/carlossg/entry/functional_testing_with_maven_cargo

hth,
- martin

On Monday 02 March 2009 martijnverb...@gmail.com wrote:
> Hi all,
>
> I'd like to get opinions from others on how they structure/deal with what
> we deem 'functional tests'
>
> To us these are tests that are broader in scope than a unit test but
> whose scope is still limited to that same module and require no 3rd party
> resources to run (we're able to Mock everything we need). Traditionally a
> Maven structure looks something like:
>
> foobar
> jar
> src
> main
> java
> test
> java
> war
> ...
> sar
> ...
> rar
> ...
> ear
>
> With the 'test' structure being used for Unit Tests.
>
> So we're wondering if it was wise to put the functional tests under
> jar-->test-->src-->java (perhaps differentiating them by package
> structure) or introduce a new module (say functional-test) eg
>
> foobar
> jar
> src
> main
> java
> test
> java
> functional-test
> src
> test
> java
> war
> ...
> sar
> ...
> rar
> ...
> ear
> ...
>
> Is there a preferred technique/other options that people have used?




signature.asc
Description: This is a digitally signed message part.


Compilation problem with maven

2009-03-03 Thread amar . sannaik
Hi there,

I get a error while compilation with maven, I am using maven version 2.0.10

here is the maven compiler config I have


org.apache.maven.plugins
maven-compiler-plugin

1.5
1.5

  

during compile error I get it is

[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Compilation failure

d:/foodlab_feb09/mealbox/meijer/trunk/src/main/java/com/meijer/foodlab/remote/ikan/shoppingcart/package-info.java:[1,49]
package annotations should be in file package-info.java

d:/foodlab_feb09/mealbox/meijer/trunk/src/main/java/com/meijer/webservices/foodlab/client/package-info.java:[1,49]
package annotations should be in file package-info.java

I dint get much of help browsing internet, can someone help me fix this.

thanks in advance
-- 
Amar Sannaik | Senior Engineer


Re: Generating site with confluence markup

2009-03-03 Thread Lukas Theussl


A lot of stuff has been fixed in Doxia 1.1, see comments in-line.
A full list of changes in the confluence module is here: 
http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=true&pid=10780&status=6&component=12000


Borut Bolčina wrote:

Thanks, I just tried with the snippet you posted. It works, but I was
kind of disappointed when discovered that only some of the confluence
notation works.

At http://maven.apache.org/doxia/modules/index.html#Confluence there
is a link to confluence elements reference
http://confluence.atlassian.com/renderer/notationhelp.action?section=all

I tried  this markup:

*strong*

_emphasis_

??citation??

-strikethrough-

+underlined+

^superscript^

~subscript~

{{text will be monospaced}}


and only strong, emphasis and monospaced works.


This is not specific to confluence, general support for strikethrough, underline, 
super/subscript, etc have only been added in Doxia 1.1, see eg 
http://jira.codehaus.org/browse/DOXIA-163, http://jira.codehaus.org/browse/DOXIA-164.




Tables, for example:

||heading 1||heading 2||heading 3||
|col A1|col A2|col A3|
|col B1|col B2|col B3|

don't work. It says:


Looks like http://jira.codehaus.org/browse/DOXIA-215, fixed in 1.1.



[ERROR] FATAL ERROR
[INFO] 
[INFO] 3
[INFO] 
[INFO] Trace
java.lang.ArrayIndexOutOfBoundsException: 3
at 
org.apache.maven.doxia.module.xhtml.XhtmlSink.tableCell(XhtmlSink.java:791)
at 
org.apache.maven.doxia.module.xhtml.XhtmlSink.tableCell(XhtmlSink.java:771)
at 
org.apache.maven.doxia.module.confluence.parser.table.TableCellBlock.before(TableCellBlock.java:38)
at 
org.apache.maven.doxia.module.confluence.parser.AbstractFatherBlock.traverse(AbstractFatherBlock.java:49)
at 
org.apache.maven.doxia.module.confluence.parser.AbstractFatherBlock.traverse(AbstractFatherBlock.java:55)
at 
org.apache.maven.doxia.module.confluence.parser.AbstractFatherBlock.traverse(AbstractFatherBlock.java:55)
at 
org.apache.maven.doxia.module.confluence.ConfluenceParser.parse(ConfluenceParser.java:152)
at org.apache.maven.doxia.DefaultDoxia.parse(DefaultDoxia.java:59)
at 
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderDocument(DefaultSiteRenderer.java:342)
at 
org.apache.maven.doxia.siterenderer.DoxiaDocumentRenderer.renderDocument(DoxiaDocumentRenderer.java:46)
at 
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:269)
at 
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:101)
at 
org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:133)
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:100)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:500)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:479)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
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)


Also, my hopes were high for inserting source code with:

{code:title=Bar.java|borderStyle=solid}
// Some comments here
public String getFoo()
{
return foo;
}
{code}



Fixed in 1.1: http://jira.codehaus.org/browse/DOXIA-171




but again:
[ERROR] Error parsing
C:\Users\Borut\Workarea\t5-components-library-trunk\src\site\confluence\work.confluence:
line [2] String index out of range: 39
org.apache.maven.doxia.parser.ParseException: String index out of range: 39

Re: Use mirror in parent snapshot inheritance

2009-03-03 Thread Vincent Beretti
Thanks for the answer.
I look at the blog article. In fact, we use mirror definition in
settings.xml. This is the only way for B to grab A from our Nexus
repository.
The problem is that when A is not in our local repository, B is not able to
grab A in nexus if A is a snapshot version.
The mirror is defined for everything (*) but it seems
that it only search for release version and not for snapshots.
Is it a wanted restriction or a bug ?
I don't really understand Brett Porter's answer in
http://jira.codehaus.org/browse/MNG-943, because if the "a single POM for
the company that is the "root" that all projects inherit from" is a snapshot
version, sub modules won't be able to find it.

Thanks,
Vincent.

On Mon, Mar 2, 2009 at 7:57 PM, Brian E. Fox wrote:

> You might want to take a look at this:
> http://www.sonatype.com/people/2009/02/why-putting-repositories-in-your-
> poms-is-a-bad-idea/
>
> -Original Message-
> From: Vincent Beretti [mailto:vbere...@gmail.com]
> Sent: Monday, March 02, 2009 11:37 AM
> To: users@maven.apache.org
> Subject: Use mirror in parent snapshot inheritance
>
> Hi all,
> let's consider the following project :
> A
> |  B
> |  C
>
> A is the parent pom of B. In A, I define the repository location of our
> entreprise repository.
> A is a currently in a snapshot version so in B's pom.xml I have :
> 
>  com.xxx
>  A
>  1.0-SNAPSHOT
> 
>
> So when I checkout A and build it from A or B, the build is successfull.
> But let's consider I only want to checkout B, because I don't want to
> checkout all C project sources.
> When I run an install on B project (A is not available through
> filesystem in
> the upper directory or in my local repository as a 1.0-SNAPSHOT
> version),
> the build fails saying that it can not find the artifact A with version
> 1.0-SNAPSHOT. This should be normal because it can not find the location
> of
> our entreprise repository because it is defined in project A.
> So I defined a mirror, that for all requests (*)
> forward to our entreprise repository for all artifacts (releases and
> snapshots).
> It is still not working.
>
> I saw this issue :
> http://jira.codehaus.org/browse/MNG-943
> It seems to be the reason why I can't retrieve the snapshots version of
> my
> artifact A. It is really blocking for big projects.
> How can I bypass this limitation ?
> Can we correct this limitation and allow retrieval of snapshots
> artifacts ?
>
> Thanks,
> Vincent Beretti.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>