Re: Why I can run plugin:goal in command line even though plugin wasonly defined under pluginManagement?

2018-02-25 Thread Sigmond Hola
Hi Bernd,

You are right, thanks for illustration.

But why? Im still confused

the  prefix-to-artifactId mappings is defined within  of
effective settings.xml and the default values of it is:

> org.apache.maven.plugins
> org.codehaus.mojo

right? tomcat7's groupId:  org.apache.tomcat.maven is not included.

Why I can using tomcat7 as prefix for  tomcat7-maven-plugin after I add it
in   of my pom.xml...


On Sun, Feb 25, 2018 at 12:36 AM, Bernd Eckenfels 
wrote:

> It is true: for plugins where the prefix is not found by Default, you can
> still start them with
>
> mvn org.apache.tomcat.maven:tomcat7-maven-plugin:run
> Gruss
> Bernd
> --
> http://bernd.eckenfels.net
>
> Von: Sigmond Hola
> Gesendet: Samstag, 24. Februar 2018 11:03
> An: Maven Users List
> Betreff: Re: Why I can run plugin:goal in command line even though plugin
> wasonly defined under pluginManagement?
>
> HI bernd,
>
> thanks for reply, but that's not true.
>
> Take tomcat-maven-plugin as example, if you dont defined it under
>  or , then following
> error will reported if you run  mvn tomcat7:rununder command line:
>
> No plugin found for prefix 'tomcat7' in the current project and in the
> plugin groups [org.apache.maven.plugins, org.codehaus.mojo]
> >
> >
> Best regards.
>
>
> On Sat, Feb 24, 2018 at 4:39 PM, Bernd Eckenfels 
> wrote:
>
> > Hello,
> >
> > You can always run goals on the command line, even if they are not
> defined
> > in the POM at all. If maven finds the plugin in the POM it knows what
> > version to use and it allows to specify a Prefix instead of
> > group:artifact[:version]:goal.
> > Gruss
> > Bernd
> >
> > Gruss
> > Bernd
> > --
> > http://bernd.eckenfels.net
> > 
> > From: Sigmond Hola 
> > Sent: Saturday, February 24, 2018 7:01:04 AM
> > To: users@maven.apache.org
> > Subject: Why I can run plugin:goal in command line even though plugin was
> > only defined under pluginManagement?
> >
> > I defined a specific plugin under  ,
> but
> > not under  , but I can still run goals of this plugin
> > with  mvn
> > plugin:goal.
> >
> > As far as I understand is only used to configuring the
> > plugin information, but not actually import them, right? then how can I
> use
> > the goals of this plugin  in the command line?
> >
> > Thanks for reply.
> >
> > Bests.
> > --Sig
> >
>
>


Reduce verbose for mvn versions:set - help needed

2018-02-25 Thread Anesh Kurian
Hello Team,

I am new to the mailing list, and apologies if this is not the right forum
for discussion.

I have created a pipeline for automation of Maven build. But the log file
size is exceeding 10Mb and I am unable to display the same efficiently over
Chrome.IE browsers. (FireFox browser is not supported in our Organization)

When I reviewed the logs, I could see there was many log entries for mvn
versions:set command. Lot of INFO Downloading and mainhread entries are
getting recorded in the logs.

*mvn versions:set --batch-mode -s ${SETTINGSPATH}
-DnewVersion=${GO_PIPELINE_VERSION}
-Djavax.net.ssl.trustStore=${SAIL_ETC_DIR}/sailcert/TND-Test-CA.jks
-Djavax.net.ssl.trustStorePassword=${TRUST_STORE_PASS}*

I was trying to find any options for *mvn versions:set *command  to reduce
verbose of logs generated. I referred below link and used options --quite
and --batch-mode to reduce verbose of logs, but still many INFO and
mainheard log entries are getting recorded.

I would appreciate if you can share any details on how I can
reduce/eliminate the downloading, INFO and mainheard entries from the logs.

Much appreciated.
-
Best Regards
Anesh


Re: Euro Symbol € by Scala

2018-02-25 Thread Martin Gainty



From: Martin Gainty 
Sent: Saturday, February 17, 2018 9:56 PM
To: users@maven.apache.org
Subject: Euro Symbol € by Scala


 /** A setting that defines a URL to be concatenated with source locations and 
show a link to source files.
   * If needed the sourcepath option can be used to exclude undesired initial 
part of the link to sources */
  val docsourceurl = StringSetting (
"-doc-source-url",
"url",
s("A URL pattern used to link to the source file; the following variables 
are available: €{TPL_NAME}, €{TPL_OWNER} and respectively €{FILE_PATH}. For 
example, for `scala.collection.Seq`, the variables will be expanded to `Seq`, 
`scala.collection` and respectively `scala/collection/Seq` (without the 
backquotes). To obtain a relative path for €{FILE_PATH} instead of an absolute 
one, use the ${sourcepath.name} setting.",
"")
  )


Does scala treat €{TPL_NAME} as a parameter substitution for TPL_NAME?

if so where would TPL_NAME be defined?
when i incorporate euro symbol € into string literal what directive to Scala to 
use to render €  'as is' ?

MG>to answer my question from week ago you need an escaped Unicode literal to 
render '€' symbol as in
MG>'\u20AC'

MG>followup scala queston has a hardcoded reference to Enum.enumOf which 
generates error in JDK1.8


/scala-compiler/src/main/scala/org/scalastuff/scalabeans/types/ScalaType.scala:511:
 value enumOf is not a member of object java.lang.Enum
[error] else Enum.enumOf[AnyRef](mf.erasure) match {

which (JDK) implementation of java.lang.Enum contains enumOf ?
MG>thanks


*thanks*

martin

__



Re: Problems making maven-bundle-plugin pick up resources from target/classes

2018-02-25 Thread Steinar Bang
> Steinar Bang :

> Versions: Java 1.8
> maven 3.5.0
>   frontend-maven-plugin 1.6
>   maven-bundle-plugin 2.5.3

> I'm using frontend-maven-plugin to get webpack to put a webpack'd
> version of a react.js frontend into target/classes/bundle.js

> However, maven-bundle-plugin by default doesn't pick up stuff from
> target/classes but only from src/main/resources.

> Is there a way to make maven-bundle-plugin pick up resources from
> target/classes instead? (like the maven-jar-plugin does)

Clicking through the google matched I found this[1] (from November
2016).

Both of the following works:
 {maven-resources},/=target/classes/
 /=target/classes/

Ie. they both include the bundle.js that webpack has put into
target/classes.

I'm going for the last version, ie.
 /=target/classes/
(target/classes includes all of the stuff in src/main/resources anyway)

References:
[1] 


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



Problems making maven-bundle-plugin pick up resources from target/classes

2018-02-25 Thread Steinar Bang
Versions: Java 1.8
  maven 3.5.0
  frontend-maven-plugin 1.6
  maven-bundle-plugin 2.5.3

I'm using frontend-maven-plugin to get webpack to put a webpack'd
version of a react.js frontend into target/classes/bundle.js

However, maven-bundle-plugin by default doesn't pick up stuff from
target/classes but only from src/main/resources.

Is there a way to make maven-bundle-plugin pick up resources from
target/classes instead? (like the maven-jar-plugin does)

I've googled and found this, but it didn't seem to have any effect (one
google match was a stackoverflow post from 2012)[1]:
   {maven-resources}

I've tried this as well, as a shot in the dark, didn't have any effect
either:
   {maven-resources}

Explicitly including stuff from target/classes both with destination
name and source name[2] doesn't look like something I would like to do.
It doesn't scale, especially if I get a lot of static resources, such as
images. 

A hack would be to have webpack drop the bundle.js into
src/main/resources/ and then .gitignore the generated files... but
that's not something I would like to do (but at least I wouldn't have to
specify the resources individually).

Thanks!


- Steinar

References:
 [1] 

 [2] 



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