Copy an artifact with its transitive dependencies to a specified location

2013-06-02 Thread Stanimir Stamenkov
I want to copy an artifact with its transitive dependencies to a 
specified location.  The artifact is not a dependency of the project 
the given build step would be part of.


I've tried the copy goal of the maven-dependency-plugin [1], but 
it doesn't have a transitive option.  I've also tried the get 
goal, but its destination parameter is deprecated and after all it 
doesn't copy the transitive dependencies to that destination.


I've also tried using the copy-dependencies goal by first 
declaring the needed artifact as runtime dependency to the project, 
which I don't really want to, and then specifying includeGroupIds 
and includeArtifactIds parameters, but this is mostly the same as 
copy specifying all artifacts explicitly, which I don't want to 
manually resolve and hard-code.


Is there an easy way to achieve what I'm after?

[1] http://maven.apache.org/plugins/maven-dependency-plugin/

--
Stanimir

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



MessageBundle problem for using maven test

2013-06-02 Thread Jade
Hello everyone :

I'm a beginner of maven. 

In my project, I have an file ftp.proterties only use for ftp config,
not for I18N useage. This file's  
Content like :


host=192.168.1.105
port=21
username=jade
password=p@55w0rd


When I run the JUnit test in Eclipse, Everything is OK. But when I run
the TestCase with mvn test
I get an exception:


Tests in error: 
  test(jadeutils.ftp.FtpServiceTest): Can't find bundle for base name ftp,
locale en_US




--
View this message in context: 
http://maven.40175.n5.nabble.com/MessageBundle-problem-for-using-maven-test-tp5757876.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: Javadoc: single configuration

2013-06-02 Thread Stanimir Stamenkov

Fri, 31 May 2013 17:14:31 -0400, /Evan Ward/:


I'm trying to configure the javadoc report plugin so that I get the same
output with `mvn javadoc:jar` and `mvn site`. I've read the usage page
[1] which suggests that configuring the plugin in the reporting
section will apply the same configuration to the javadoc:jar invocation.


Hm, I fail to find such reference, and I'm actually reading `mvn 
site` and `mvn javadoc:javadoc` behave differently, given they are 
configured in different sections (reporting vs. build):


| IMPORTANT NOTE: configuring the Javadoc plugin in the
| reporting/ or build/ elements in the pom have NOT the same
| behavior as described in the Guide to Configuring Plug-ins.


[1]
http://maven.apache.org/plugins/maven-javadoc-plugin/usage.html#Javadoc_Configuration


--
Stanimir

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



Re: MessageBundle problem for using maven test

2013-06-02 Thread Russell Gold
Hi Jade,

Where are you placing the ftp.properties file and how does your program attempt 
to find it?

- Russ

On Jun 2, 2013, at 12:07 AM, Jade evokeraluc...@gmail.com wrote:

 Hello everyone :
 
I'm a beginner of maven. 
 
In my project, I have an file ftp.proterties only use for ftp config,
 not for I18N useage. This file's  
 Content like :
 
 
 host=192.168.1.105
 port=21
 username=jade
 password=p@55w0rd
 
 
When I run the JUnit test in Eclipse, Everything is OK. But when I run
 the TestCase with mvn test
 I get an exception:
 
 
 Tests in error: 
  test(jadeutils.ftp.FtpServiceTest): Can't find bundle for base name ftp,
 locale en_US
 
 
 
 
 --
 View this message in context: 
 http://maven.40175.n5.nabble.com/MessageBundle-problem-for-using-maven-test-tp5757876.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
 

-
Come read my webnovel, Take a Lemon http://www.takealemon.com, 
and listen to the Misfile radio play 
http://www.gold-family.us/audio/misfile.html!






Re: MessageBundle problem for using maven test

2013-06-02 Thread Jade
Hi Russell:

I put the file fpt.properties in the root of java source code foler
src/main/java. And I load the file with ResourceBundle:


ResourceBundle resourceBundle =  ResourceBundle.getBundle(ftp);
String host= resourceBundle.getString(host);


Java Doc says ResourceBundle will looking for the file
ftp_en_US.properties for my system local is en_US. If it can not file
the file ftp_en_US.properties, ResourceBundle will load the file
ftp.properties as default.

   Now the problem is :

   If my project was compile byEclipse, it's all OK when I run the test
case both in Eclipe or run the test case by command mvn test.

  But if the project was compile by maven (I mean I run mvn clean), the
test case will fail with the exception Can't find bundle.

   I think the class file compile by maven will not load fpt.properties
as default when it can not file the file ftp_en_US.properties


On Mon, Jun 3, 2013 at 2:19 AM, Russell Gold [via Maven] 
ml-node+s40175n5757956...@n5.nabble.com wrote:

 Hi Jade,

 Where are you placing the ftp.properties file and how does your program
 attempt to find it?

 - Russ

 On Jun 2, 2013, at 12:07 AM, Jade [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=5757956i=0
 wrote:

  Hello everyone :
 
 I'm a beginner of maven.
 
 In my project, I have an file ftp.proterties only use for ftp
 config,
  not for I18N useage. This file's
  Content like :
 
 
  host=192.168.1.105
  port=21
  username=jade
  password=p@55w0rd
  
 
 When I run the JUnit test in Eclipse, Everything is OK. But when I
 run
  the TestCase with mvn test
  I get an exception:
 
 
  Tests in error:
   test(jadeutils.ftp.FtpServiceTest): Can't find bundle for base name
 ftp,
  locale en_US
  
 
 
 
  --
  View this message in context:
 http://maven.40175.n5.nabble.com/MessageBundle-problem-for-using-maven-test-tp5757876.html
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=5757956i=1
  For additional commands, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=5757956i=2
 

 -
 Come read my webnovel, Take a Lemon http://www.takealemon.com,
 and listen to the Misfile radio play 
 http://www.gold-family.us/audio/misfile.html!






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

 http://maven.40175.n5.nabble.com/MessageBundle-problem-for-using-maven-test-tp5757876p5757956.html
  To unsubscribe from MessageBundle problem for using maven test, click
 herehttp://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=5757876code=ZXZva2VyYWx1Y2FyZEBnbWFpbC5jb218NTc1Nzg3NnwtMTc3OTU4MDg4NQ==
 .
 NAMLhttp://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://maven.40175.n5.nabble.com/MessageBundle-problem-for-using-maven-test-tp5757876p5758036.html
Sent from the Maven - Users mailing list archive at Nabble.com.

Re: MessageBundle problem for using maven test

2013-06-02 Thread Russell Gold
Hi Jade,

Could you please try placing the fpt.properties file at the root of 
src/main/resources? That's the convention in Maven for resources that you want 
copied int the jar.

Regards,
Russ

On Jun 2, 2013, at 10:27 PM, Jade evokeraluc...@gmail.com wrote:

 Hi Russell:
 
I put the file fpt.properties in the root of java source code foler
 src/main/java. And I load the file with ResourceBundle:
 
 
 ResourceBundle resourceBundle =  ResourceBundle.getBundle(ftp);
 String host= resourceBundle.getString(host);
 
 
Java Doc says ResourceBundle will looking for the file
 ftp_en_US.properties for my system local is en_US. If it can not file
 the file ftp_en_US.properties, ResourceBundle will load the file
 ftp.properties as default.
 
   Now the problem is :
 
   If my project was compile byEclipse, it's all OK when I run the test
 case both in Eclipe or run the test case by command mvn test.
 
  But if the project was compile by maven (I mean I run mvn clean), the
 test case will fail with the exception Can't find bundle.
 
   I think the class file compile by maven will not load fpt.properties
 as default when it can not file the file ftp_en_US.properties
 
 
 On Mon, Jun 3, 2013 at 2:19 AM, Russell Gold [via Maven] 
 ml-node+s40175n5757956...@n5.nabble.com wrote:
 
 Hi Jade,
 
 Where are you placing the ftp.properties file and how does your program
 attempt to find it?
 
 - Russ
 
 On Jun 2, 2013, at 12:07 AM, Jade [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=5757956i=0
 wrote:
 
 Hello everyone :
 
   I'm a beginner of maven.
 
   In my project, I have an file ftp.proterties only use for ftp
 config,
 not for I18N useage. This file's
 Content like :
 
 
 host=192.168.1.105
 port=21
 username=jade
 password=p@55w0rd
 
 
   When I run the JUnit test in Eclipse, Everything is OK. But when I
 run
 the TestCase with mvn test
 I get an exception:
 
 
 Tests in error:
 test(jadeutils.ftp.FtpServiceTest): Can't find bundle for base name
 ftp,
 locale en_US
 
 
 
 
 --
 View this message in context:
 http://maven.40175.n5.nabble.com/MessageBundle-problem-for-using-maven-test-tp5757876.html
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=5757956i=1
 For additional commands, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=5757956i=2
 
 
 -
 Come read my webnovel, Take a Lemon http://www.takealemon.com,
 and listen to the Misfile radio play 
 http://www.gold-family.us/audio/misfile.html!
 
 
 
 
 
 
 --
 If you reply to this email, your message will be added to the discussion
 below:
 
 http://maven.40175.n5.nabble.com/MessageBundle-problem-for-using-maven-test-tp5757876p5757956.html
 To unsubscribe from MessageBundle problem for using maven test, click
 herehttp://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=5757876code=ZXZva2VyYWx1Y2FyZEBnbWFpbC5jb218NTc1Nzg3NnwtMTc3OTU4MDg4NQ==
 .
 NAMLhttp://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
 
 
 
 
 
 --
 View this message in context: 
 http://maven.40175.n5.nabble.com/MessageBundle-problem-for-using-maven-test-tp5757876p5758036.html
 Sent from the Maven - Users mailing list archive at Nabble.com.

-
Come read my webnovel, Take a Lemon http://www.takealemon.com, 
and listen to the Misfile radio play 
http://www.gold-family.us/audio/misfile.html!






Site plugin, breadcrumbs, and inheritance in multi-project sites

2013-06-02 Thread Russell Gold
Hi,

I really like the ability to use this plugin to generate and deploy project 
sites, but I am having some problems making some things work:

1) I had ONCE gotten the breadcrumbs to show up. Now they don't. I am using the 
default version (3.0). 

2) Most of the project info pages (developers, scm, mailing lists, and so on), 
only really make sense for the project as a whole. Is there any way to avoid 
creating them for all of the sub-projects without a separate site.xml for each 
project? I tried disabling inheritance, but all that did was cause all of the 
subproject sites to revert to the default of displaying everything.

3) The docs speak of some reports as supporting aggregation. Is there a way to 
know (other than just experimenting) which reports do?

Thanks,
Russ
-
Come read my webnovel, Take a Lemon http://www.takealemon.com, 
and listen to the Misfile radio play 
http://www.gold-family.us/audio/misfile.html!