I'm following the tutorial of Jeff Potts and I'm stick on second part when I'm tring to start the repo project to test new share aspects and types with command (here)
mvn integration-test -Pamp-to-war
This is the output:
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building content-tutorial-repo AMP project
[INFO] task-segment: [integration-test]
[INFO] ------------------------------------------------------------------------
[INFO] [alfresco:set-version {execution: default-set-version}]
[INFO] Removed -SNAPSHOT suffix from version - 1.0
[INFO] Added timestamp to version - 1.0.1406090928
[INFO] [build-helper:add-test-resource {execution: add-env-test-properties}]
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/mattia/workspace/AlfrescoTutorial/content-tutorial-repo/src/main/resources
[INFO] Copying 10 resources to ../content-tutorial-repo
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO] [resources:copy-resources {execution: prepare-amp-testing-classpath}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Tests are skipped.
[INFO] [dependency:unpack {execution: unpack-alfresco}]
[INFO] Configured Artifact: org.alfresco:alfresco:4.2.e:war
[INFO] alfresco-4.2.e.war already unpacked.
[INFO] [resources:copy-resources {execution: copy-alfresco-test-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/xxx/workspace/AlfrescoTutorial/content-tutorial-repo/src/test/webapp
[INFO] Copying 7 resources to WEB-INF/classes
[INFO] Copying 1 resource to WEB-INF/classes
[INFO] [resources:copy-resources {execution: copy-tomcat-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource to WEB-INF
[INFO] [alfresco:amp {execution: default-amp}]
[INFO] Building jar: /home/mattia/workspace/AlfrescoTutorial/content-tutorial- repo/target/content-tutorial-repo/lib/content-tutorial-repo.jar
[INFO] Adding directory to AMP package [ '/home/mattia/workspace/AlfrescoTutorial/content-tutorial-repo/target/content-tutorial-repo' '']
[INFO] Building amp: /home/mattia/workspace/AlfrescoTutorial/content-tutorial-repo/target/content-tutorial-repo.amp
[INFO] [alfresco:install {execution: amps-to-war-overlay}]
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] 05090000 The version string '${noSnapshotVersion}' is invalid.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.alfresco.error.AlfrescoRuntimeException: 05090000 The version string
'${noSnapshotVersion}' is invalid.
at org.alfresco.util.VersionNumber.(VersionNumber.java:80)
at org.alfresco.repo.module.ModuleDetailsImpl.(ModuleDetailsImpl.java:137)
at org.alfresco.repo.module.tool.ModuleDetailsHelper.
createModuleDetailsFromPropertiesStream(ModuleDetailsHelper.java:53)
at org.alfresco.repo.module.tool.ModuleDetailsHelper.
createModuleDetailsFromPropertyLocation(ModuleDetailsHelper.java:83)
at org.alfresco.repo.module.tool.ModuleManagementTool.
installModule(ModuleManagementTool.java:227)
at org.alfresco.maven.plugin.InstallMojo.execute(InstallMojo.java:110)
at org.apache.maven.plugin.DefaultPluginManager.
executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.
executeGoals(DefaultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.
executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.
executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.
executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.
executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.
execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Mon Jun 09 09:28:22 CEST 2014
[INFO] Final Memory: 63M/713M
[INFO] ------------------------------------------------------------------------
Please can you give me any hint on how make it work?
Check your Maven version.
I had that problem and fixed it updating to the lastest version.
At the time, I was using the Ubuntu pa
Related
I am trying to integrate jmeter with spring mvc. I have captured all the request using blazemeter and converted in .jmx file. I have placed this jmx file in test/jmeter folder. When I try to install, I am getting following error.
Executing test: Dagwidouthtml.jmx INFO 2016-07-06 14:10:59.229 [jmeter.e] (): Listeners will be started after enabling running version INFO 2016-07-06 14:10:59.230 [jmeter.e] (): To revert to the earlier behaviour, define jmeterengine.startlistenerslater=false [info] Completed Test: Dagwidouthtml.jmx [info] [info] Building JMeter Report(s)... [info] [info] Raw results: /home/trina/git/framework_loadTest/target/jmeter/report/Dagwidouthtml-160706.jtl [info] Test report: /home/trina/git/framework_loadTest/target/jmeter/report/Dagwidouthtml-160706.jtl-report.html [INFO] [INFO] Test Results: [INFO] [INFO] Tests Run: 1, Failures: 6, Errors: 0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 46.269 s [INFO] Finished at: 2016-07-06T14:11:10-04:00 [INFO] Final Memory: 44M/481M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.lazerycode.jmeter:jmeter-maven-plugin:1.4.1:jmeter (jmeter-tests) on project framework: There were test failures. See the jmeter logs for details. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
So why you're posting Maven output here while it states the following:
There were test failures. See the jmeter logs for details
The log file is usually located at target/jmeter/logs/${yourscript}.log
Inspect the log file and if you won't be able to figure out the problem yourself.
The possible reason (apart from misconfiguration) I can think of is that jmeter-maven-plugin still depends on JMeter 2.13 so if you're trying to use features, introduced in JMeter 3.0 in your script - the failures are absolutely expected.
Also see documentation on JMeter Maven Plugin on Github - it is the most comprehensive source.
I'm using SBT 0.13.1.
project/build.properties is as follows:
sbt.version=0.13.1
Executing sbt about prints out the following:
$ sbt
[info] Loading global plugins from /Users/jacek/.sbt/0.13/plugins
[info] Loading project definition from /Users/jacek/sandbox/so/sbt-0.13.1/project
[info] Set current project to sbt-0-13-1 (in build file:/Users/jacek/sandbox/so/sbt-0.13.1/)
[sbt-0-13-1]> about
[info] This is sbt 0.13.1
[info] The current project is {file:/Users/jacek/sandbox/so/sbt-0.13.1/}sbt-0-13-1 0.1-SNAPSHOT
[info] The current project is built against Scala 2.10.4-RC1
[info] Available Plugins: com.typesafe.sbt.SbtGit, com.typesafe.sbt.SbtProguard, growl.GrowlingTests, np.Plugin, net.virtualvoid.sbt.graph.Plugin, com.timushev.sbt.updates.UpdatesPlugin
[info] sbt, sbt plugins, and build definitions are using Scala 2.10.3
With the following task - hello - in build.sbt:
scalaVersion := "2.10.4-RC1"
lazy val hello = taskKey[Unit]("An example task")
hello := {
print("Sleeping for a sec...")
println("done.")
}
...and reload, sbt reports [error] Type error in expression:
[sbt-0-13-1]> reload
[info] Loading global plugins from /Users/jacek/.sbt/0.13/plugins
[info] Loading project definition from /Users/jacek/sandbox/so/sbt-0.13.1/project
/Users/jacek/sandbox/so/sbt-0.13.1/build.sbt:6: error: type mismatch;
found : String("Sleeping for a sec...")
required: sbt.TaskKey[String]
print("Sleeping for a sec...")
^
[error] Type error in expression
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
When I change print to println the task is defined correctly.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? r
[info] Loading global plugins from /Users/jacek/.sbt/0.13/plugins
[info] Loading project definition from /Users/jacek/sandbox/so/sbt-0.13.1/project
[info] Set current project to sbt-0-13-1 (in build file:/Users/jacek/sandbox/so/sbt-0.13.1/)
[sbt-0-13-1]> hello
Sleeping for a sec...
done.
[success] Total time: 0 s, completed Jan 4, 2014 10:31:43 AM
Is print not accepted in task definition?
With the help of schleichardt I could finally find out what has caused the issue of not accepting print in the hello task.
It turned out that with the sbt-dependency-graph plugin in the global configuration directory, i.e. ~/.sbt/0.13/ (or a directory specified by sbt.global.base), sbt couldn't initialize the task and hence the error.
$ cat plugins/sbt-dependency-graph.sbt
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.7.4")
$ cat sbt-dependency-graph.sbt
net.virtualvoid.sbt.graph.Plugin.graphSettings
To reproduce, see the following sbt session starting with print (not println) in build.sbt and empty global configuration directory:
jacek:~/sandbox/so/sbt-0.13.1
$ tree
.
├── build.sbt
└── project
└── build.properties
1 directory, 2 files
jacek:~/sandbox/so/sbt-0.13.1
$ cat build.sbt
scalaVersion := "2.10.4-RC1"
lazy val hello = taskKey[Unit]("An example task")
hello := {
print("Sleeping for a sec...")
println("done.")
}
jacek:~/sandbox/so/sbt-0.13.1
$ sbt -Dsbt.global.base=/tmp/so
Getting org.scala-sbt sbt 0.13.1 ...
:: retrieving :: org.scala-sbt#boot-app
confs: [default]
43 artifacts copied, 0 already retrieved (12646kB/154ms)
Getting Scala 2.10.3 (for sbt)...
:: retrieving :: org.scala-sbt#boot-scala
confs: [default]
5 artifacts copied, 0 already retrieved (24447kB/204ms)
[info] Loading project definition from /Users/jacek/sandbox/so/sbt-0.13.1/project
[info] Updating {file:/Users/jacek/sandbox/so/sbt-0.13.1/project/}sbt-0-13-1-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Set current project to sbt-0-13-1 (in build file:/Users/jacek/sandbox/so/sbt-0.13.1/)
> hello
Sleeping for a sec...done.
[success] Total time: 0 s, completed Jan 4, 2014 1:35:22 PM
It works so far.
Create the files for the sbt-dependency-graph plugin in the global configuration directory.
jacek:/tmp/so
$ cat plugins/sbt-dependency-graph.sbt
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.7.4")
jacek:/tmp/so
$ cat sbt-dependency-graph.sbt
net.virtualvoid.sbt.graph.Plugin.graphSettings
...and reload.
> reload
[info] Loading global plugins from /private/tmp/so/plugins
[info] Updating {file:/tmp/so/plugins/}global-plugins...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Loading project definition from /Users/jacek/sandbox/so/sbt-0.13.1/project
[info] Updating {file:/Users/jacek/sandbox/so/sbt-0.13.1/project/}sbt-0-13-1-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
/Users/jacek/sandbox/so/sbt-0.13.1/build.sbt:6: error: type mismatch;
found : String("Sleeping for a sec...")
required: sbt.TaskKey[String]
print("Sleeping for a sec...")
^
[error] Type error in expression
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
When print changes to println and (r)etry, it works fine again.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? r
[info] Loading global plugins from /private/tmp/so/plugins
[info] Loading project definition from /Users/jacek/sandbox/so/sbt-0.13.1/project
[info] Set current project to sbt-0-13-1 (in build file:/Users/jacek/sandbox/so/sbt-0.13.1/)
> hello
Sleeping for a sec...
done.
[success] Total time: 0 s, completed Jan 4, 2014 1:43:59 PM
UPDATE : No idea how I ended up solving it, but it ended up working with 0.8.0. I think I just got the sources from an other repository which worked this time.
While executing sbt/sbt assembly to build Spark on my machine (I'm currently running Ubuntu on VirtualBox, but that shouldn't be the issue), I'm getting the following error:
[error] Server access Error: Connection timed out url=https://repository.cloudera.com/artifactory/cloudera-repos/org/eclipse/jetty/jetty-parent/20/jetty-parent-20.pom
It seems the above URL isn't working, and accessing it manually, even on other machines, doesn't work. Any ideas to get the file nonetheless ?
Here's the full console log if that helps somehow.
ulysse#ulysse-VirtualBox:~/Downloads/spark-0.8.0-incubating$ sbt/sbt assembly
[info] Loading project definition from /home/ulysse/Downloads/spark-0.8.0-incubating/project/project
Cloning into '/home/ulysse/.sbt/staging/90b1b0889ba1299e38f2'...
[info] Loading project definition from /home/ulysse/Downloads/spark-0.8.0-incubating/project
[info] Updating {git://github.com/ijuma/junit_xml_listener.git#fe434773255b451a38e8d889536ebc260f4225ce}default-052ce0...
[info] Resolving org.scala-sbt#precompiled-2_10_1;0.12.4 ...
[info] Done updating.
[info] Updating {file:/home/ulysse/Downloads/spark-0.8.0-incubating/project/}plugins...
[info] Resolving org.scala-sbt#precompiled-2_10_1;0.12.4 ...
[info] downloading http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/com.eed3si9n/sbt-assembly/scala_2.9.2/sbt_0.12/0.9.1/jars/sbt-assembly.jar ...
[info] [SUCCESSFUL ] com.eed3si9n#sbt-assembly;0.9.1!sbt-assembly.jar (4422ms)
[info] downloading http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbteclipse/sbteclipse-plugin/scala_2.9.2/sbt_0.12/2.2.0/jars/sbteclipse-plugin.jar ...
[info] [SUCCESSFUL ] com.typesafe.sbteclipse#sbteclipse-plugin;2.2.0!sbteclipse-plugin.jar (2195ms)
[info] downloading http://repo1.maven.org/maven2/com/github/mpeltonen/sbt-idea_2.9.2_0.12/1.5.1/sbt-idea-1.5.1.jar ...
[info] [SUCCESSFUL ] com.github.mpeltonen#sbt-idea;1.5.1!sbt-idea.jar (4589ms)
[info] downloading http://repo1.maven.org/maven2/net/virtual-void/sbt-dependency-graph_2.9.2_0.12/0.7.3/sbt-dependency-graph-0.7.3.jar ...
[info] [SUCCESSFUL ] net.virtual-void#sbt-dependency-graph;0.7.3!sbt-dependency-graph.jar (2009ms)
[info] downloading http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbteclipse/sbteclipse-core/scala_2.9.2/sbt_0.12/2.2.0/jars/sbteclipse-core.jar ...
[info] [SUCCESSFUL ] com.typesafe.sbteclipse#sbteclipse-core;2.2.0!sbteclipse-core.jar (5483ms)
[info] downloading http://repo1.maven.org/maven2/org/scalaz/scalaz-core_2.9.2/6.0.4/scalaz-core_2.9.2-6.0.4.jar ...
[info] [SUCCESSFUL ] org.scalaz#scalaz-core_2.9.2;6.0.4!scalaz-core_2.9.2.jar (28459ms)
[info] downloading http://repo.typesafe.com/typesafe/releases/commons-io/commons-io/2.0.1/commons-io-2.0.1.jar ...
[info] [SUCCESSFUL ] commons-io#commons-io;2.0.1!commons-io.jar (1796ms)
[info] downloading http://repo1.maven.org/maven2/com/github/mdr/ascii-graphs_2.9.2/0.0.2/ascii-graphs_2.9.2-0.0.2.jar ...
[info] [SUCCESSFUL ] com.github.mdr#ascii-graphs_2.9.2;0.0.2!ascii-graphs_2.9.2.jar (2180ms)
[info] Done updating.
[info] Compiling 1 Scala source to /home/ulysse/.sbt/staging/90b1b0889ba1299e38f2/target/scala-2.9.2/sbt-0.12/classes...
[info] Compiling 1 Scala source to /home/ulysse/Downloads/spark-0.8.0-incubating/project/target/scala-2.9.2/sbt-0.12/classes...
[info] Set current project to root (in build file:/home/ulysse/Downloads/spark-0.8.0-incubating/)
Getting Scala 2.9.3 ...
downloading http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.9.3/scala-compiler-2.9.3.jar ...
[SUCCESSFUL ] org.scala-lang#scala-compiler;2.9.3!scala-compiler.jar (64928ms)
downloading http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.9.3/scala-library-2.9.3.jar ...
[SUCCESSFUL ] org.scala-lang#scala-library;2.9.3!scala-library.jar (48661ms)
downloading http://repo1.maven.org/maven2/org/scala-lang/jline/2.9.3/jline-2.9.3.jar ...
[SUCCESSFUL ] org.scala-lang#jline;2.9.3!jline.jar (1021ms)
:: retrieving :: org.scala-sbt#boot-scala
confs: [default]
4 artifacts copied, 0 already retrieved (20346kB/242ms)
[info] Updating {file:/home/ulysse/Downloads/spark-0.8.0-incubating/}core...
[info] Resolving org.eclipse.jetty#jetty-server;7.6.8.v20121106 ...
[error] Server access Error: Connection timed out url=https://repository.cloudera.com/artifactory/cloudera-repos/org/eclipse/jetty/jetty-server/7.6.8.v20121106/jetty-server-7.6.8.v20121106.pom
[info] Resolving org.eclipse.jetty#jetty-project;7.6.8.v20121106 ...
[error] Server access Error: Connection timed out url=https://repository.cloudera.com/artifactory/cloudera-repos/org/eclipse/jetty/jetty-project/7.6.8.v20121106/jetty-project-7.6.8.v20121106.pom
[info] Resolving org.eclipse.jetty#jetty-parent;20 ...
[error] Server access Error: Connection timed out url=https://repository.cloudera.com/artifactory/cloudera-repos/org/eclipse/jetty/jetty-parent/20/jetty-parent-20.pom
All of them seem to be available from Maven Central:
http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-server/7.6.8.v20121106/
http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-project/7.6.8.v20121106/
http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-parent/20/
Maybe by creating a bogus project using those dependencies, sbt will pull them from Maven Central and Ivy might cache them.
I also got this same error. Download the new version from this link and try again
http://d3kbcqa49mib13.cloudfront.net/spark-0.9.0-incubating.tgz
It took around 2 hour for me. If it fails, delete that folder and extract it again
I have a maven 2 job configured in Jenkins, and under the Build I use
clean test release:prepare ...
in the goals options. Jenkins runs these goals sequenctiallay, and when test runs, it prints (and works nice):
[WARNING] [LAUNCHER] Using regular flashplayer tests
But when it tries to run prepare I get,
[INFO] [WARNING] [LAUNCHER] Using xvfb-run to launch headless tests
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] BUILD ERROR
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Failed to launch Flash Player. Probably java was not able to find flashplayer.
[INFO] Make sure flashplayer is available on PATH
[INFO] or use -DflashPlayer.command=${flashplayer executable}
[INFO] Read more at: https://docs.sonatype.org/display/FLEXMOJOS/Running+unit+tests
So the same jobs, same jenkins, same job configuration, how can I make it work so that prepare also works like the clean goal?
I have also tried what the error suggest, that is, putting:
-Dflex.flashPlayer.command=/opt/player_10/flashplayer", "-DflashPlayer.command=/opt/player_10/flashplayer
I am getting below error when I try to use hudson and maven, Any idea how to resolve?
Xlib: connection to ":1.0" refused by server
Xlib: No protocol specified
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An error occurred because there is no graphics environment available. Please set the headless-server setting in the Flex configuration file to true.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.InternalError: An error occurred because there is no graphics environment available.
Thanks
sharp
Under <compiler> tag in flex-config.xml add
<headless-server>true</headless-server>