RoboHTML - automating with maven
We automated the help build/deploy process using a combination of maven and CVS. All was working fine until one of the writers introduced variables. We are running RHTML 8.0.2,
and using just Default Variable Set. When we generate locally (from RHTML UI or from command line), the output shows the variable substitution. However, when we generate
using mvn package or mvn deploy (which creates the help.war and puts it in the right place for the system build), the variable substitution breaks. We have checked the sttings.xml,
revised the pom.xml to try different ways to run the WebHelp compiler through maven. The rhvariables.apj file is in the directory with the XPJ file (and other apjs). Any help would be greatly appreciated.
After much experimentation, I stumbled upon another Post in the forum that actually provided the solution -
User-Defined Variable not Updating at Generate Layout
The project was imported from an older version of RH and none of the older topics had a Master page assigned. I assigned the project's Master page to a few of the older topics that have variables, reran mvn package to get a local help war file. When I looked at the output from maven, the variables were properly substituted. If anyone understands why RHCL run from the RHTML UI or from the command line gave the variable substitution just fine yet when run from maven it didn't, please post here.
Similar Messages
-
FlexPMD maven plugin no longer useable with Maven due to imcompatible binaries?
I am using Maven 2.2.1 with FlexPMD 1.2 and Flexmojos 3.7.1, with the maven-site-plugin 3.0
I get the following error:
[INFO] [site:site {execution: default-site}]
[FATAL ERROR] org.apache.maven.plugins.site.SiteMojo#execute() caused a linkage
error (java.lang.AbstractMethodError) and may be out-of-date. Check the realms:
[FATAL ERROR] Plugin realm = app0.child-container[org.apache.maven.plugins:maven
-site-plugin:3.0]
urls[0] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/plugins/mav
en-site-plugin/3.0/maven-site-plugin-3.0.jar
urls[1] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/reporting/m
aven-reporting-exec/1.0.1/maven-reporting-exec-1.0.1.jar
urls[2] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus/plexus-u
tils/1.5.10/plexus-utils-1.5.10.jar
urls[3] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/maven-setti
ngs-builder/3.0/maven-settings-builder-3.0.jar
urls[4] = file:/C:/dreammachine/cache/m2/repository/org/apache/velocity/velocity
/1.5/velocity-1.5.jar
urls[5] = file:/C:/dreammachine/cache/m2/repository/commons-collections/commons-
collections/3.2.1/commons-collections-3.2.1.jar
urls[6] = file:/C:/dreammachine/cache/m2/repository/commons-lang/commons-lang/2.
5/commons-lang-2.5.jar
urls[7] = file:/C:/dreammachine/cache/m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
urls[8] = file:/C:/dreammachine/cache/m2/repository/velocity/velocity/1.5/veloci
ty-1.5.jar
urls[9] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/doxia/doxia
-core/1.2/doxia-core-1.2.jar
urls[10] = file:/C:/dreammachine/cache/m2/repository/xerces/xercesImpl/2.9.1/xer
cesImpl-2.9.1.jar
urls[11] = file:/C:/dreammachine/cache/m2/repository/xml-apis/xml-apis/1.3.04/xm
l-apis-1.3.04.jar
urls[12] = file:/C:/dreammachine/cache/m2/repository/org/apache/httpcomponents/h
ttpclient/4.0.2/httpclient-4.0.2.jar
urls[13] = file:/C:/dreammachine/cache/m2/repository/org/apache/httpcomponents/h
ttpcore/4.0.1/httpcore-4.0.1.jar
urls[14] = file:/C:/dreammachine/cache/m2/repository/commons-codec/commons-codec
/1.3/commons-codec-1.3.jar
urls[15] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/doxia/doxi
a-module-xhtml/1.2/doxia-module-xhtml-1.2.jar
urls[16] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/doxia/doxi
a-module-apt/1.2/doxia-module-apt-1.2.jar
urls[17] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/doxia/doxi
a-module-xdoc/1.2/doxia-module-xdoc-1.2.jar
urls[18] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/doxia/doxi
a-module-fml/1.2/doxia-module-fml-1.2.jar
urls[19] = file:/C:/dreammachine/cache/m2/repository/javax/servlet/servlet-api/2
.5/servlet-api-2.5.jar
urls[20] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/doxia/doxi
a-decoration-model/1.2/doxia-decoration-model-1.2.jar
urls[21] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/doxia/doxi
a-site-renderer/1.2/doxia-site-renderer-1.2.jar
urls[22] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus/plexus-
i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar
urls[23] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus/plexus-
velocity/1.1.8/plexus-velocity-1.1.8.jar
urls[24] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/shared/mav
en-doxia-tools/1.4/maven-doxia-tools-1.4.jar
urls[25] = file:/C:/dreammachine/cache/m2/repository/commons-io/commons-io/1.4/c
ommons-io-1.4.jar
urls[26] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus/plexus-
archiver/1.0/plexus-archiver-1.0.jar
urls[27] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus/plexus-
io/1.0/plexus-io-1.0.jar
urls[28] = file:/C:/dreammachine/cache/m2/repository/org/mortbay/jetty/jetty/6.1
.25/jetty-6.1.25.jar
urls[29] = file:/C:/dreammachine/cache/m2/repository/org/mortbay/jetty/jetty-uti
l/6.1.25/jetty-util-6.1.25.jar
urls[30] = file:/C:/dreammachine/cache/m2/repository/org/mortbay/jetty/servlet-a
pi/2.5-20081211/servlet-api-2.5-20081211.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/C:/dreammachine/tools/m2/lib/maven-2.2.1-uber.jar
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.AbstractMethodError
at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.getReports(Ab
stractSiteRenderingMojo.java:246)
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:121)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
If I revert to maven-site-plugin 2.1 this issue disappears, but I then get the error reported here:
https://issues.sonatype.org/browse/FLEXMOJOS-310?page=com.atlassian.jira.plugin.system.iss uetabpanels:comment-tabpanel#issue-tabs
If I migrate to maven 3.0.3 with maven-site-plugin 3.0 I get the following error:
[INFO] configuring report plugin com.adobe.ac:flex-pmd-maven-plugin:1.2
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:31.730s
[INFO] Finished at: Tue Sep 27 17:21:49 BST 2011
[INFO] Final Memory: 21M/243M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:si
te (default-site) on project cafe-parsley: Execution default-site of goal org.ap
ache.maven.plugins:maven-site-plugin:3.0:site failed: An API incompatibility was
encountered while executing org.apache.maven.plugins:maven-site-plugin:3.0:site
: java.lang.AbstractMethodError: null
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-site-plugin:3.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/plu
gins/maven-site-plugin/3.0/maven-site-plugin-3.0.jar
[ERROR] urls[1] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/rep
orting/maven-reporting-exec/1.0.1/maven-reporting-exec-1.0.1.jar
[ERROR] urls[2] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/rep
orting/maven-reporting-api/3.0/maven-reporting-api-3.0.jar
[ERROR] urls[3] = file:/C:/dreammachine/cache/m2/repository/org/apache/velocity/
velocity/1.5/velocity-1.5.jar
[ERROR] urls[4] = file:/C:/dreammachine/cache/m2/repository/oro/oro/2.0.8/oro-2.
0.8.jar
[ERROR] urls[5] = file:/C:/dreammachine/cache/m2/repository/velocity/velocity/1.
5/velocity-1.5.jar
[ERROR] urls[6] = file:/C:/dreammachine/cache/m2/repository/org/sonatype/aether/
aether-util/1.7/aether-util-1.7.jar
[ERROR] urls[7] = file:/C:/dreammachine/cache/m2/repository/org/sonatype/sisu/si
su-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
[ERROR] urls[8] = file:/C:/dreammachine/cache/m2/repository/org/sonatype/sisu/si
su-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
[ERROR] urls[9] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus/
plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[10] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus
/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[11] = file:/C:/dreammachine/cache/m2/repository/org/sonatype/plexus
/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[12] = file:/C:/dreammachine/cache/m2/repository/org/sonatype/plexus
/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[13] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do
xia/doxia-sink-api/1.2/doxia-sink-api-1.2.jar
[ERROR] urls[14] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do
xia/doxia-logging-api/1.2/doxia-logging-api-1.2.jar
[ERROR] urls[15] = file:/C:/dreammachine/cache/m2/repository/junit/junit/3.8.1/j
unit-3.8.1.jar
[ERROR] urls[16] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do
xia/doxia-core/1.2/doxia-core-1.2.jar
[ERROR] urls[17] = file:/C:/dreammachine/cache/m2/repository/xerces/xercesImpl/2
.9.1/xercesImpl-2.9.1.jar
[ERROR] urls[18] = file:/C:/dreammachine/cache/m2/repository/xml-apis/xml-apis/1
.3.04/xml-apis-1.3.04.jar
[ERROR] urls[19] = file:/C:/dreammachine/cache/m2/repository/org/apache/httpcomp
onents/httpclient/4.0.2/httpclient-4.0.2.jar
[ERROR] urls[20] = file:/C:/dreammachine/cache/m2/repository/org/apache/httpcomp
onents/httpcore/4.0.1/httpcore-4.0.1.jar
[ERROR] urls[21] = file:/C:/dreammachine/cache/m2/repository/commons-codec/commo
ns-codec/1.3/commons-codec-1.3.jar
[ERROR] urls[22] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do
xia/doxia-module-xhtml/1.2/doxia-module-xhtml-1.2.jar
[ERROR] urls[23] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do
xia/doxia-module-apt/1.2/doxia-module-apt-1.2.jar
[ERROR] urls[24] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do
xia/doxia-module-xdoc/1.2/doxia-module-xdoc-1.2.jar
[ERROR] urls[25] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do
xia/doxia-module-fml/1.2/doxia-module-fml-1.2.jar
[ERROR] urls[26] = file:/C:/dreammachine/cache/m2/repository/javax/servlet/servl
et-api/2.5/servlet-api-2.5.jar
[ERROR] urls[27] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do
xia/doxia-decoration-model/1.2/doxia-decoration-model-1.2.jar
[ERROR] urls[28] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do
xia/doxia-site-renderer/1.2/doxia-site-renderer-1.2.jar
[ERROR] urls[29] = file:/C:/dreammachine/cache/m2/repository/commons-collections
/commons-collections/3.2.1/commons-collections-3.2.1.jar
[ERROR] urls[30] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/sh
ared/maven-doxia-tools/1.4/maven-doxia-tools-1.4.jar
[ERROR] urls[31] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus
/plexus-archiver/1.0/plexus-archiver-1.0.jar
[ERROR] urls[32] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus
/plexus-io/1.0/plexus-io-1.0.jar
[ERROR] urls[33] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus
/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar
[ERROR] urls[34] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus
/plexus-velocity/1.1.8/plexus-velocity-1.1.8.jar
[ERROR] urls[35] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus
/plexus-utils/1.5.10/plexus-utils-1.5.10.jar
[ERROR] urls[36] = file:/C:/dreammachine/cache/m2/repository/org/mortbay/jetty/j
etty/6.1.25/jetty-6.1.25.jar
[ERROR] urls[37] = file:/C:/dreammachine/cache/m2/repository/org/mortbay/jetty/s
ervlet-api/2.5-20081211/servlet-api-2.5-20081211.jar
[ERROR] urls[38] = file:/C:/dreammachine/cache/m2/repository/org/mortbay/jetty/j
etty-util/6.1.25/jetty-util-6.1.25.jar
[ERROR] urls[39] = file:/C:/dreammachine/cache/m2/repository/commons-lang/common
s-lang/2.5/commons-lang-2.5.jar
[ERROR] urls[40] = file:/C:/dreammachine/cache/m2/repository/commons-io/commons-
io/1.4/commons-io-1.4.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[project>com.jpmorgan.ib.arch
itecture.deia.app:cafe-parsley:1.0-SNAPSHOT, parent: ClassRealm[maven.api, paren
t: null]]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContaine
Thus it seems FlexPMD can no longer be used with Maven due to some sort of binary incompatibility issue...
Does anyone know how to resolve this issue?Hooray, I got to the bottom of issue.
Basically the flex PMD maven plugin is broken at version 1.2 with more recent version of maven-site-plugin. This is because of a new abstract method introduced to the class AbstractMavenReport - canGenerateReport();
This method isn't implemented in the FlexPmdMojo and FlexPmdReportMojo classes on the SVN trunk or in flexPMD 1.2 and was causing >mvn site to fail as outlined above. Add implementations of this method, returning true in both classes and the plugin works again!
Note the method also needs to be added to the relevant Mojo and ReportMojo classes for the FlexMetrics and CPD maven plugins to get them working too.
Flex PMD commiters - please release a new version of the project to resolve this showstopper! -
How team should work with maven
Could somebody to explain how the team should work with maven.
For example.
10 developers and 1 team lead are working together.
Everyones has the own module in development.
Next, one made the changes in his module and marked it like
<version>1.3</version>? And say to neighbor whous modul is depend on his: "will be make your modul to point version 1.3 for my
<artifactId>his-app</artifactId>
<version>1.3</version> ? Or how?
If he to point the unexisting version the maven will swear.
And next. There's something pom.xml for team lead on top level of another modules of developers which team lead to use for assebling?
Help please to understand how to use this frameworkIt sounds like the functionality you are looking for is what maven calls snapshots. This allows developers to build and deploy the latest code base on the fly and maven can grab the latest releases without having to continually update the pom.
-
RE: Ole Automation with forte.
Tran,
Here is a piece of code(using Forte Version 3OF2 & Word 97) that we've
used to determine if there is already an instance of Word running:
// Create an instance of a Word Application and activate it.
// If an a Word application exists, just activate it.
if ( aTasks <> NIL and aTasks.Exists(aWordApplication.Name) )
then
aWordApplication.visible = TRUE;
aWordApplication.Activate();
else
aWordApplication = new();
aTasks = new();
aWordApplication.CreateUsingProgID( 'word.application'
aWordApplication.visible = TRUE;
aWordApplication.Activate();
aTasks is an attribute of type Tasks on our window & aWordApplication is
an attribute of type _Application on our window. This code will work if
there already is an instance of Word that was started from a Forte
applicaiton. It doesn't recognize a instance of Word that was started
outside of a Forte app. Hope this helps!!
From: Quy Tran[SMTP:[email protected]]
Sent: Wednesday, May 20, 1998 11:17 PM
To: [email protected]
Subject: Ole Automation with forte.
Good Day forte users,
I'm trying to invoke MSWord from a forte application.
I set the objectreference using CreateUsingProgId(This is the only way
that I could get it to work).
The problem is when using CreateUsingProgId, forte will create another
instance of Word. Is there a way to know if the instance already
exists
and retrieve the objectreference of that instance?
Any help would be appreciated.
Thanks
Quy Tran
Lumley Technology
Analyst/Programmer
[email protected]
Ph : 612 93186722
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
If you are not the intended recipient, please notify the Sender.
Non-business opinions may not reflect opinions of Piper JaffrayHi Aurang
You can call almost all methods using OLE. What is required is to know how to interpret a script to ABAP OLE call. This is explained in the tutorial<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c1d54348-0601-0010-3e98-bd2a2dcd9e6c">"An Easy Reference For OLE Automation"</a>
Regards
*--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a> -
Batch rename in automator with step
I'd like to rename a large number of files in Automator with alternate numbers. For example, files 1-10 would be renamed 1,3,5,7,9,11 etc, and 2-10 would be renamed 2,4,6,8,10,12 etc. I'm familiar with rename finder items but cannot think of a way to make it rename with alternate numbers. Any help would be greatly appreciated.
Try BatchRename'Em - CNet Downloads or MacUpdate.
-
QTP Automation with Acrobat SDK
Hi,
I would like to verify the PDF content using HP Automation tool - QTP by opening the PDF and extracting the Text content from PDF.
I am trying the OLE style and using a series of commands, as described in many postings. The first one is:
CreateObject("AcroExch.App")
It throws error, saying "Cannot create ActiveX component"
From the Forums I found that it will not work with Adobe Reader and will work with Full Adobe Product with Adobe SDK.
Now I would like to know which version of Acrobat will have Acrobat SDK.
My Client already procured the below Acrobat Products.
VLA ACROBAT 10 win universal English
VLA ACROBAT 10 WIN Universal English STD to STD Upgrade ST-ST
VLA ACROBAT Pro 10 win universal English
VLA ACROBAT Pro 10 WIN Universal English STD to STD Upgrade ST-ST
Pls let me know which product( which has Adobe SDK as well) I should choose to proceed with QTP Automation.
Any Advise/Help greatly appreciated.
Thanks.
Anand Muthunayagam.Check out http://labs.adobe.com/technologies/aptt/
From: Adobe Forums <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Date: Fri, 28 Oct 2011 06:09:25 -0700
To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
Subject: QTP Automation with Acrobat SDK
QTP Automation with Acrobat SDK
created by AnandMuthuNayagam<http://forums.adobe.com/people/AnandMuthuNayagam> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3995113#3995113 -
Compile Project with Maven and Crystal Reports dependencies
Hi.
I'd like to build a java project with maven. That project uses Crystal Reports. I have added all Crystal Reports jar files in the folder lib (from the runtime download) to my maven dependencies. But i get always the following error message.
The import com.crystaldecisions.ReportViewer cannot be resolved
in that package is the ReportViewerBean.class an so i get also the following message.
ReportViewerBean cannot be resolved
I tried several different ways with no success.
im looking foreward for your advice.
thanks.
Edited by: hansmeier_de on Aug 25, 2010 11:20 AMdid you list them in the dependencies in your pom file?
-
Hi,
I am building javax.mail.jar using with the source of "JavaMail 1.4.4 source code", downloaded from http://kenai.com/projects/javamail/downloads , we have some customized changes in few source java files (regarding IMAP and response) of this source, otherwise no changes we have done in this source for building mail jar with maven.
I was using Maven 2.2.1 - successfully downloaded repository on my systems when I had Java 1.6. Then I have moved to java 7 but it failed, on roll back changes I was unable to download repositories as I had downloaded at earlier stage.
System has set JAVA_HOME of Java Home directory
[ERROR] BUILD ERROR
[INFO] ----------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal 'com.sun.enterprise:osgiversion-maven-plugin:0.4.11:compute-osgi-version': Unable to load the mojo 'com.sun.enterprise:osgiversion-maven-plugin:0.4.11:compute-osgi-version' in the plugin 'com.sun.enterprise:osgiversion-maven-plugin'. A required class is missing: Lorg/apache/maven/shared/osgi/Maven2OsgiConverter;
org.apache.maven.shared.osgi.Maven2OsgiConverter
[INFO] ----------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionExcep tion: Internal error in the plugin manager executing goal 'com.sun.enterprise:osgiversion-maven-plugin:0.4.11:compute-osgi-version': Unable to load the mojo 'com.sun.enterprise:osgiversion-maven-plugin:0.4.11:compute-osgi-version' in the plugin 'com.sun.enterprise:osgiversion-maven-plugin'. A required class is missing: Lorg/apache/maven/shared/osgi/Maven2OsgiConverter;
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoals(DefaultLifecycleExecutor.java:698)
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoalWithLifecycle(DefaultLifecycleExecuto r.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoalAndHandleFailures(DefaultLifecycleExe cutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeTaskSegments(DefaultLifecycleExecutor.jav a:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMav en.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven .java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:3 62)
at org.apache.maven.cli.compat.CompatibleMain.main(Co mpatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(L auncher.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.ja va:375)
Caused by: org.apache.maven.plugin.PluginManagerException: Unable to load the mojo 'com.sun.enterprise:osgiversion-maven-plugin:0.4.11:compute-osgi-version' in the plugin 'com.sun.enterprise:osgiversion-maven-plugin'. A required class is missing: Lorg/apache/maven/shared/osgi/Maven2OsgiConverter;
at org.apache.maven.plugin.DefaultPluginManager.getCo nfiguredMojo(DefaultPluginManager.java:679)
at org.apache.maven.plugin.DefaultPluginManager.execu teMojo(DefaultPluginManager.java:468)
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by: java.lang.NoClassDefFoundError: Lorg/apache/maven/shared/osgi/Maven2OsgiConverter;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.jav a:2291)
at java.lang.Class.getDeclaredField(Class.java:1880)
at hidden.org.codehaus.plexus.util.ReflectionUtils.ge tFieldByNameIncludingSuperclasses(ReflectionUtils. java:47)
at org.codehaus.plexus.component.composition.FieldCom ponentComposer.getFieldByName(FieldComponentCompos er.java:212)
at org.codehaus.plexus.component.composition.FieldCom ponentComposer.findMatchingField(FieldComponentCom poser.java:171)
at org.codehaus.plexus.component.composition.FieldCom ponentComposer.assembleComponent(FieldComponentCom poser.java:62)
at org.codehaus.plexus.component.composition.DefaultC omponentComposerManager.assembleComponent(DefaultC omponentComposerManager.java:68)
at org.codehaus.plexus.DefaultPlexusContainer.compose Component(DefaultPlexusContainer.java:1486)
at org.codehaus.plexus.personality.plexus.lifecycle.p hase.CompositionPhase.execute(CompositionPhase.jav a:29)
at org.codehaus.plexus.lifecycle.AbstractLifecycleHan dler.start(AbstractLifecycleHandler.java:101)
at org.codehaus.plexus.component.manager.AbstractComp onentManager.startComponentLifecycle(AbstractCompo nentManager.java:105)
at org.codehaus.plexus.component.manager.AbstractComp onentManager.createComponentInstance(AbstractCompo nentManager.java:95)
at org.codehaus.plexus.component.manager.PerLookupCom ponentManager.getComponent(PerLookupComponentManag er.java:48)
at org.codehaus.plexus.DefaultPlexusContainer.lookup( DefaultPlexusContainer.java:331)
at org.codehaus.plexus.DefaultPlexusContainer.lookup( DefaultPlexusContainer.java:440)
at org.apache.maven.plugin.DefaultPluginManager.getCo nfiguredMojo(DefaultPluginManager.java:652)
... 19 more
Caused by: java.lang.ClassNotFoundException: org.apache.maven.shared.osgi.Maven2OsgiConverter
at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07)
at org.codehaus.classworlds.RealmClassLoader.loadClas sDirect(RealmClassLoader.java:195)
at org.codehaus.classworlds.DefaultClassRealm.loadCla ss(DefaultClassRealm.java:255)
at org.codehaus.classworlds.DefaultClassRealm.loadCla ss(DefaultClassRealm.java:274)
at org.codehaus.classworlds.RealmClassLoader.loadClas s(RealmClassLoader.java:214)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 52)
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:320)
... 36 more
[INFO] ----------------------------------------------------------------------
[INFO] Total time: 29 minutes 36 seconds
[INFO] Finished at: Fri Dec 21 13:07:49 IST 2012
[INFO] Final Memory: 13M/23M
[INFO] ----------------------------------------------------------------------
Complete log output of downloading process can be seen here - http://neelamsharma.s3.amazonaws.com/Maven_Result-2.2.1.txt
I am removing local repository ".m2" folder from my user each time before restart build. I have tried to download on different OS but it always stuck at same error.
Can anybody please let me know what settings are changed that I need to update ? Or which repositories need to remove to get rid of this error?Looks like there is some sun plugin being used there. Might be that you need the java.net nexus repository so maven can fetch plugin dependencies from it.
-
Failed to build Java Mail API 1.4.5 with maven-3.0.4
Hi,
I am trying to build Java Mail 1.4.5 with Maven-3.0.4 using default settings of maven.
It is getting failed to build due to following errors -
[ERROR] COMPILATION ERROR :
[INFO] -----------------------------------------------------------
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[210,37] cannot find symbol
symbol : variable Version
location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[369,47] cannot find symbol
symbol : variable Version
location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[913,29] cannot find symbol
symbol : variable Version
location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[916,29] cannot find symbol
symbol : variable Version
location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[919,29] cannot find symbol
symbol : variable Version
location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[922,29] cannot find symbol
symbol : variable Version
location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[925,29] cannot find symbol
symbol : variable Version
location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[928,29] cannot find symbol
symbol : variable Version
location: class javax.mail.Session
[INFO] 8 errors
[INFO] -----------------------------------------------------------
[INFO] ----------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ----------------------------------------------------------------------
[INFO] Total time: 1:51.197s
[INFO] Finished at: Tue Jan 08 13:06:01 IST 2013
[INFO] Final Memory: 12M/67M
[INFO] ----------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
3.2:compile (default-compile) on project javax.mail: Compilation failure: Compil
ation failure:
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[210,37] cannot find symbol
[ERROR] symbol : variable Version
[ERROR] location: class javax.mail.Session
[ERROR]\Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[369,47] cannot find symbol
[ERROR] symbol : variable Version
[ERROR] location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[913,29] cannot find symbol
[ERROR] symbol : variable Version
[ERROR] location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[916,29] cannot find symbol
[ERROR] symbol : variable Version
[ERROR] location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[919,29] cannot find symbol
[ERROR] symbol : variable Version
[ERROR] location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[922,29] cannot find symbol
[ERROR] symbol : variable Version
[ERROR] location: class javax.mail.Session
[ERROR]\Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[925,29] cannot find symbol
[ERROR] symbol : variable Version
[ERROR] location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[928,29] cannot find symbol
[ERROR] symbol : variable Version
[ERROR] location: class javax.mail.Session
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on
project javax.mail: Compilation failure
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation fail
ure
at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompiler
Mojo.java:656)
at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
... 19 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExceptionSame issue I am facing when I am trying to build Java Mail with netbeans - 7.2.1, it getting failed with same version issue in Session.java class.
How can I set this Version in Session.java class to get rid of this error?
If we can use nexus repository then please let me know how to set this.
Thanks,
Neelam SharmaI answered this question here:
http://stackoverflow.com/questions/14217596/failed-to-build-java-mail-api-1-4-5-with-maven-3-0-4/14288418#14288418 -
SCOM Disk space alert automation with Ticketing Tool
Dear Experts,
We are in the process of SCOM Automation with our Ticketing Tool like below incidents:
1, Whenever Disk space alerts are generated in SCOM console with warning and critical criteria then Incident tickets are created automatically .
so, what are the classes or objects needs to be selected only for Disk space alerts for automation with Ticketing tool in SCOM.
Any suggestions would be appreciated..
Regards,
SaravanaThe disk space alerts will come from the Logical Disk Free Space monitor which is targetted at the Windows Server 20XX Logical Disk class;
Is this what you need? -
Hi.
I have upgraded from 1.5 APT to the 1.6 method of doing compile time annotations, and I am runing into a problem trying to build a jar containing my annotations processor.
I get the error from maven (mvn package)
[INFO] Compilation failure
error: Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: Provider annotations.processing.processors.CodeAnnotationProcessor not found
I have the following directory structure
src
--main
----java
------annotations
--------processing
----------processors
------------CodeAnnotationProcessor.java
----------annotations
------------CodeAnnotation.java
----resources
------META-INF
--------service
----------javax.annotation.processing.Processor
I build this with the following with maven
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>mygroup</groupId>
<artifactId>annotations-processor</artifactId>
<packaging>jar</packaging>
<version>1.0.0</version>
<name>annotations-processor</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.4.2</version>
<scope>system</scope>
<systemPath>C:/Java/jdk1.6.0_10/lib/tools.jar</systemPath>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
</project>The javax.annotation.processing.Processor file contains
annotations.processing.processors.CodeAnnotationProcessorAny my
package annotations.processing.processors;
import javax.annotation.processing.AbstractProcessor;
import javax.annotation.processing.RoundEnvironment;
import javax.annotation.processing.SupportedSourceVersion;
import javax.annotation.processing.SupportedAnnotationTypes;
import javax.lang.model.element.TypeElement;
import javax.lang.model.SourceVersion;
import java.util.Set;
@SupportedAnnotationTypes(
"annotations.processing.annotations.CodeAnnotation")
@SupportedSourceVersion(SourceVersion.RELEASE_6)
public class CodeAnnotationProcessor extends AbstractProcessor {
public boolean process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) {
return true;
}And my CodeAnnotation is as follows
package annotations.processing.annotations;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
public @interface CodeAnnotation {
}Milesy wrote:
Hi.
I have upgraded from 1.5 APT to the 1.6 method of doing compile time annotations, and I am runing into a problem trying to build a jar containing my annotations processor.
I get the error from maven (mvn package)
[INFO] Compilation failure
error: Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: Provider annotations.processing.processors.CodeAnnotationProcessor not foundFor me it worked when I used the settings
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<fork>true</fork>
<executable>${java.home}/../bin/javac</executable>
<compilerArgument>-proc:none</compilerArgument>
</configuration>
</plugin>
</plugins>
...Forking the compiler is perhaps not the best option, but its just for the annotation processor. -
Using Automator with Disk Utility
I'm new to using Automator. I want to create a work flow with Disk Utility but is doesnt appear in the applications list. How do I make Disk Utility work with Automator?
If a program doesn't appear in the list, that means that Apple hasn't written actions for it yet.
You can still use Automator with Disk Utillity, but you will need to use Applescript and the 'Run Applesript' action to operate Disk Utillity.
Unfortuately the 'how' is beyond my knowledge, and the scope of this post. -
Automator with Address Book Problem
Hey,
I am trying to remove this string of text that has been plastered to the Note of every contact of mine for some odd reason. I am trying to use Automator with the Filter Address Book Items action. I am able to collect all of those people in Automator, however I can't seem to figure out the next step which is removing the selected person's Note's. Can anyone point me in the right direction?Mikey, I saw something in the forums a while ago that might meet your needs. The thread at http://discussions.apple.com/thread.jspa?messageID=1645258&%231645258 contains a script that might do what you need. If I understand the code correctly it goes through all contacts and clears the Notes field. In the meantime I'll see if I can devise an Automator solution.
-
Can i use automator with photoshop?
I want to open a Keynote or PPT file select an image, open it in photoshop make the background transparent then save it back in Keynote. is this possible?
Yes you can use automator with photoshop:
You might wanna take a look at http://www.automatorworld.com/archives/photoshop-cs-automator-actions/
But not sure if it does what you are asking for. -
Good strategies for building ATG EAR with Maven?
It's been a while since I've looked at this. is there a clean set of choices for building an ATG-based EAR using Maven? Is the best we can do to use the antrun plugin, or is there a cleaner integration with Maven to do this? Is there reasonable documentation someone can point me to that details the strategies?
Yes while using Maven, chances are that we may end up using the Ant task for invoking ATG's runAssembler inside pom to build the EAR. While using the Ant task within Maven helps us accomplishing the task but we tend to loose the power of Maven that way. It would be better if we either use Ant for the whole stuff or just Maven without mixing them.
There is ATG DUST(Dynamo Unit and System Tests) framework for building JUnit tests for ATG applications which uses Maven.
http://atgdust.sourceforge.net/first-test.html
But I think DUST uses Maven just to build the JARs and does not uses ATG's assembler.
I have never tried it but you may want to take a look at this Maven plugin which seems to be capable of generating ATG based EAR.
http://jira.codehaus.org/browse/MOJO-1116
Although it seem to be not updated off late. The plugin page mentions ATG 7.1 while the latest ATG offering is 10.1.1 But I guess it might work with a recent ATG version also (may be with some tweaks) as I don't think there would have been any major changes in the way ATG's runAssembler works and generates ATG EAR.
Maybe you are looking for
-
Printing pages in reverse order as a default for Mac os 10.6.3
Help! Not sure what happened ... I'm trying to print document from all applications and as a default the driver is printing pages (E.G 20page doc) with page 1 first and the 2 on top, then 3 etc (pages face up as is ink jet fashion...) finally with pa
-
Hi all, I wonder if you can help me here? I am getting an issue will illustrator CS3 when I send a document to print some of the text goes missing on the print out? This only seems to happen with white text? I have tried creating a new document and p
-
I face big problem when i demonstrating GridBagLayout constants using JFrame to do my project, because i using (container=getContentPane()) to do,so i don't know how to add other GUI/graphics such as JTextField,font,slider and.......more. When i refe
-
How do I get to show my history in my favorites?
How do I get to show my history listings in my favorites??
-
Hi All , We are using Oracle EBS 11.5.10.2 with database version 11.2.0.2.0. Its a 3 node setup , node 1 runs the DB The other 2 nodes run everything else. There are has been no change in the setup. but frequently we have been getting complaints in t