Re: WELCOME to users@maven.apache.org

2017-06-16 Thread Dave Brosius

Greetings,

I have a custom maven plugin that uses MavenProject to 
getCompileDependencies() on. This works fine. But now i realize that I 
want to get all the dependencies for a multi module pom. So i use,


@Parameter(property = "reactorProjects", readonly = true, 
required = true)

private List reactorProjects;

This injection seems to work, as i'm able to get attributes from each, 
like output directory.




However, when i ask for getCompileDependencies(); for these reactor 
projects, nothing is returned.


Any idea what i could be doing wrong, or is there another way of doing 
this?



Code here. 
https://github.com/mebigfatguy/fbp-maven-plugin/blob/master/src/main/java/com/mebigfatguy/fbp/FBPMojo.java



thanks,
dave

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



mvn and native2ascii on ubuntu

2009-02-05 Thread Dave Brosius
Hi folks,

 I've seen a couple references to problems regarding native2ascii on 
various places but i couldn't see a similar problem to what i am experiencing, 
so perhaps, if you would indulge me, i will ask again.

I am running java 6 (/usr/bin/jvm/java-6-sun-1.6.0.10)

and have a pom with a native2ascii plugin in it (see below at end)

when i mvn install i get the following exception, which shows that mvn or ant 
perhaps, are confused about where native2ascii exists. Which i find in 
/usr/bin/native2ascii). Anyone have any suggestions on what i could have set up 
wrongly? 

/home/dave/views/pr/platform/ProgressReporter/pr-gui/src/main/native2ascii not 
found.
at 
org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:422)
at 
org.apache.tools.ant.taskdefs.MatchingTask.getDirectoryScanner(MatchingTask.java:192)
at 
org.apache.tools.ant.taskdefs.optional.Native2Ascii.execute(Native2Ascii.java:215)
at 
org.codehaus.mojo.native2ascii.Native2AsciiMojo.executeAnt(Native2AsciiMojo.java:115)
at 
org.codehaus.mojo.native2ascii.Native2AsciiMojo.execute(Native2AsciiMojo.java:92)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
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:287)






(and here is the maven pom section of note)


  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdnative2ascii-maven-plugin/artifactId
version${native2ascii-maven-plugin.version}/version
executions
  execution
idCp1251/id
goals
  goalnative2ascii/goal
/goals
configuration
  encodingCp1251/encoding
  includesTPStrings_ru*.native/includes
  dest${native.dest.resource.dir}/dest
  ext.properties/ext
/configuration
  /execution
  execution
idbig5/id
goals
  goalnative2ascii/goal
/goals
configuration
  encodingbig5/encoding
  includesTPStrings_zh_TW*.native/includes
  dest${native.dest.resource.dir}/dest
  ext.properties/ext
/configuration
  /execution
  execution
idgb2312/id
goals
  goalnative2ascii/goal
/goals
configuration
  encodinggb2312/encoding
  includesTPStrings_zh_CN*.native/includes
  dest${native.dest.resource.dir}/dest
  ext.properties/ext
/configuration
  /execution
  execution
idshift_jis/id
goals
  goalnative2ascii/goal
/goals
configuration
  encodingshift_jis/encoding
  includesTPStrings_ja*.native/includes
  dest${native.dest.resource.dir}/dest
  ext.properties/ext
/configuration
  /execution
/executions
  /plugin





Re: mvn and native2ascii on ubuntu

2009-02-05 Thread Dave Brosius
I'm not following you. The problem is that native2ascii (the executable) can't 
be found.



-Original Message-
From: Dan Tran dant...@gmail.com
Sent: Thursday, February 5, 2009 1:34pm
To: Maven Users List users@maven.apache.org
Subject: Re: mvn and native2ascii on ubuntu

/home/dave/views/pr/platform/ProgressReporter/pr-gui/src/main/native2ascii

is where you should put your to be convert files in

-D

On Thu, Feb 5, 2009 at 10:05 AM, Dave Brosius  wrote:
 Hi folks,

 I've seen a couple references to problems regarding native2ascii on 
 various places but i couldn't see a similar problem to what i am 
 experiencing, so perhaps, if you would indulge me, i will ask again.

 I am running java 6 (/usr/bin/jvm/java-6-sun-1.6.0.10)

 and have a pom with a native2ascii plugin in it (see below at end)

 when i mvn install i get the following exception, which shows that mvn or ant 
 perhaps, are confused about where native2ascii exists. Which i find in 
 /usr/bin/native2ascii). Anyone have any suggestions on what i could have set 
 up wrongly?

 /home/dave/views/pr/platform/ProgressReporter/pr-gui/src/main/native2ascii 
 not found.
at 
 org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:422)
at 
 org.apache.tools.ant.taskdefs.MatchingTask.getDirectoryScanner(MatchingTask.java:192)
at 
 org.apache.tools.ant.taskdefs.optional.Native2Ascii.execute(Native2Ascii.java:215)
at 
 org.codehaus.mojo.native2ascii.Native2AsciiMojo.executeAnt(Native2AsciiMojo.java:115)
at 
 org.codehaus.mojo.native2ascii.Native2AsciiMojo.execute(Native2AsciiMojo.java:92)
at 
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
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:287)






 (and here is the maven pom section of note)


  

org.codehaus.mojo
native2ascii-maven-plugin
${native2ascii-maven-plugin.version}

  
Cp1251

  native2ascii


  Cp1251
  TPStrings_ru*.native
  ${native.dest.resource.dir}
  .properties

  
  
big5

  native2ascii


  big5
  TPStrings_zh_TW*.native
  ${native.dest.resource.dir}
  .properties

  
  
gb2312

  native2ascii


  gb2312
  TPStrings_zh_CN*.native
  ${native.dest.resource.dir}
  .properties

  
  
shift_jis

  native2ascii


  shift_jis
  TPStrings_ja*.native
  ${native.dest.resource.dir}
  .properties

  

  





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



Re: mvn and native2ascii on ubuntu

2009-02-05 Thread Dave Brosius
Hmmm, you are right. making a ln to it there does nothing.

When i add a directory called 'native2ascii' there, it seems to go past that 
location, but now all kinds of wonky things are happening. Compiler can't find 
classes for one. I have no idea why maven wants a directory there - it is 
beyond me. It should just be calling native2ascii. This was all working a 
couple of days ago, and i must have inadvertently stepped on something, but for 
the life of me i have no idea what.


-Original Message-
From: Wayne Fay wayne...@gmail.com
Sent: Thursday, February 5, 2009 4:31pm
To: Maven Users List users@maven.apache.org
Subject: Re: mvn and native2ascii on ubuntu

On Thu, Feb 5, 2009 at 1:12 PM, Dave Brosius  wrote:
 I'm not following you. The problem is that native2ascii (the executable) 
 can't be found.

Can you make a symlink to native2ascii in that location, to confirm
what you're saying is correct?

I don't use n2a myself so I really have no particular expectation of
what it wants etc, just trying to help.

Wayne

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



Re: mvn and native2ascii on ubuntu

2009-02-05 Thread Dave Brosius
Ah, my source code view had gotten corrupted, and so directories had gotten 
hijacked in a bad state. Deleting all the code, and reloading fixed the 
problem. Sorry for the noise.


handling unc on windows

2009-01-06 Thread Dave Brosius
Greetings,

  I am using the maven-antrun-plugin to copy files from a network into my build 
that is specified by unc path. This works on windows, but not linux, 
understandably.

The ant portion does

fileset dir=${pr.help.dir}/English

where pr.help.dir is specified in the properties section of the pom.

To make it work on both, i thought perhaps i'd add a 

property file=${basedir}/user.properties/

under the tasks section of the maven-antrun-plugin

and add the property there, as opposed to in the pom.

In that way a user could arbitrate the path for either unc, or a mounted share 
on linux.

but it doesn't seem that maven-antrun picks these property files up.

So perhaps there's a better way

Some uses build on linux, others build on win32. How do i copy files from a unc 
path such that it works for all users?