2

there are three commands in maven/bin:

mvn
mvnDebug
mvnyjp

I just find nothing about "mvnyjp".
How and when to use it?

Ramprasath Selvam
  • 3,868
  • 3
  • 25
  • 41
guofei
  • 63
  • 4

2 Answers2

1

Its a shell script intended to be used with Yourkit profiler.

Used to profile maven build process.

Mark Bramnik
  • 39,963
  • 4
  • 57
  • 97
0

It's a script file and therefore readable:

# -----------------------------------------------------------------------------
# Apache Maven YourKit Profiler Startup Script
#
# Environment Variable Prerequisites
#
#   JAVA_HOME       Must point at your Java Development Kit installation.
#   MAVEN_OPTS      (Optional) Java runtime options used when Maven is executed.
#   MAVEN_SKIP_RC   (Optional) Flag to disable loading of mavenrc files.
# -----------------------------------------------------------------------------

if [ ! -f "$YJPLIB" ]; then
  echo "Error: Unable to autodetect the YJP library location. Please set YJPLIB variable" >&2
  exit 1
fi

env MAVEN_OPTS="-agentpath:$YJPLIB=onexit=snapshot,onexit=memory,tracing,onlylocal $MAVEN_OPTS" "`dirname "$0"`/mvn" "$@"

So it seems like it's only of interest, if you are using the YourKit Profiler.

Joachim Rohde
  • 5,915
  • 2
  • 29
  • 46