Re: Why is it complaining about ${WL_HOME}

2010-12-01 Thread Justin Edelson
Use ${env.WL_HOME}

On Dec 1, 2010, at 8:48 AM, mickeys nero2...@hotmail.com wrote:

 
 I get this error message:
 
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] One or more required plugin parameters are invalid/missing for
 'wli:channel-build'
 
 [0] on the command line, specify: '-DWL_HOME=VALUE'
 
 
 If I do build with mvn package -DWL_HOME=mydirectory it will build ok.
 
 I am using windows and in my setup I have WL_HOME in my enviorment variables
 but still it doesnt work. This only happens in this project. I can build
 other project but they aint using WL_HOME
 
 So my question is why?
 
 
 Here is my pom.xml (if you need to see the wli-maven-plugin pom.xml as well
 please let me know.)
 
 
 
 ?xml version=1.0 encoding=UTF-8?
 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;
modelVersion4.0.0/modelVersion
parent
groupIdxx..ip.security/groupId
artifactIdadministration-role-administration/artifactId
version2.6-SNAPSHOT/version
/parent
 
 groupIdxx..ip.security.administration-role-administration/groupId
artifactIdadministrationRoleAdministrationWEB/artifactId
packagingwar/packaging
name${project.artifactId}/name
 
 urlhttp://xx.xxx.xx/sites/ip/security/administration-role-administration/${project.artifactId}/${project.version}//url
description
This project is supposed to deliver security services on the new
 Infrastructure Platform (IP) in .
/description
ciManagement
systemHudson/system
urlhttp://xx.xxx.xx:8082//url
/ciManagement
distributionManagement
site
idxx.xxx.xx/id
 
 urlscp://xx.xxx.xx/var/m2sites/ip/security/administration-role-administration/${project.artifactId}/${project.version}//url
/site
/distributionManagement
properties
project_apt_option
 
 WLI_IDE_COMPONENTBEANS_PATH=${project.artifactId}_WLI_ComponentBeans
 
 ,WLI_IDE_PROJECTBEANS_PATH=${project.artifactId}_WLI_ProjectBeans
,WLI_PROCESSOUTPUT_PATH=${project.build.directory}/processoutput
,WL_HOME=${WL_HOME}
,process.webcontent.root=${project.basedir}/WebContent
,webappDir=${project.basedir}
/project_apt_option
/properties
build
sourceDirectorysrc/sourceDirectory
plugins
 
plugin
groupIdxx..plugins/groupId
artifactIdwlihelper-maven-plugin/artifactId
version1.0/version
executions
execution
goals
goaldependency/goal
/goals
/execution
/executions
/plugin
plugin
groupIdxx..plugins/groupId
artifactIdwli-maven-plugin/artifactId
version1.2/version
executions
execution
goals
goalprepare-web-weblogic/goal
goalchannel-build/goal
goalassemble/goal
goaljwsc/goal
goalannotation-manifest/goal
/goals
/execution
/executions
/plugin
plugin
artifactIdmaven-antrun-plugin/artifactId
executions
execution
id2.5.2.1 add-source-root/id
phasevalidate/phase
goals
goalrun/goal
/goals
configuration
sourceRoottarget/apt_src/sourceRoot
/configuration
/execution
/executions
/plugin
plugin
groupIdorg.apache.myfaces.tobago/groupId
artifactIdmaven-apt-plugin/artifactId
version1.0.20/version
configuration
generatedtarget/apt_src/generated
aptSourceRoots
aptSourceRootsrc/aptSourceRoot
aptSourceRoottarget/apt_src/aptSourceRoot
aptSourceRoottarget/xbean_src/aptSourceRoot
aptSourceRoottarget/assembly/src/aptSourceRoot
/aptSourceRoots
aptOptions${project_apt_option}/aptOptions
target1.5/target
nocompiletrue/nocompile
showWarningsfalse/showWarnings
 

Re: Why is it complaining about ${WL_HOME}

2010-12-01 Thread mickeys

still same error.

It seems it complaning about this 'wli:channel-build'  that is a plugin
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Why-is-it-complaining-about-WL-HOME-tp3287660p3287672.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Why is it complaining about ${WL_HOME}

2010-12-01 Thread Greg Akins
On Wed, Dec 1, 2010 at 8:48 AM, mickeys nero2...@hotmail.com wrote:
        project_apt_option

 WLI_IDE_COMPONENTBEANS_PATH=${project.artifactId}_WLI_ComponentBeans

 ,WLI_IDE_PROJECTBEANS_PATH=${project.artifactId}_WLI_ProjectBeans
            ,WLI_PROCESSOUTPUT_PATH=${project.build.directory}/processoutput
            ,WL_HOME=${WL_HOME}
            ,process.webcontent.root=${project.basedir}/WebContent
            ,webappDir=${project.basedir}
        /project_apt_option

Just having a System property won't set it as a property for the JVM.
You either need to define WL_HOME in the pom, or pass it via the
command line.  Otherwise Maven doesn't know what to set it to.

If you change the pom so that WL_HOME=${env.WL_HOME} then Maven will
use your environment variable



-- 
Greg Akins

http://insomnia-consulting.org
http://www.pghcodingdojo.org
http://pittjug.dev.java.net
http://twitter.com/akinsgre
http://www.linkedin.com/in/akinsgre

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



Re: Why is it complaining about ${WL_HOME}

2010-12-01 Thread mickeys

well I have changed it to env.WL_HOME but that aint working. Same error.

Even if that would have worked. How come my other project teamworker can
build it ok? they dont use any env.. and they dont even have it set in
windows enviorment. I dont understand.
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Why-is-it-complaining-about-WL-HOME-tp3287660p3287883.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Why is it complaining about ${WL_HOME}

2010-12-01 Thread Anders Hammar
They most likely have the property set in their settings.xml.

/Anders (mobile)
Den 2010 12 1 17:04 skrev mickeys nero2...@hotmail.com:

 well I have changed it to env.WL_HOME but that aint working. Same error.

 Even if that would have worked. How come my other project teamworker can
 build it ok? they dont use any env.. and they dont even have it set in
 windows enviorment. I dont understand.
 --
 View this message in context:
http://maven.40175.n5.nabble.com/Why-is-it-complaining-about-WL-HOME-tp3287660p3287883.html
 Sent from the Maven - Users mailing list archive at Nabble.com.

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



RE: Why is it complaining about ${WL_HOME}

2010-12-01 Thread Martin Gainty

Mickey--
then there has to be some small delta between your Weblogic environment and his 
..the best way to solve this is to
 
uninstall your gacked weblogic
reinstall weblogic
make SURE when you get to the item which states set environment variable that 
WL_HOME is set correctly
best to write down environment variables and confirm the environment variables 
are properly set after weblogic is installed
 
*HTH*
Martin 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.Ce message est confidentiel et peut être 
privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec 
bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non 
autorisée ou la copie de ceci est interdite. Ce message sert à l'information 
seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant 
donné que les email peuvent facilement être sujets à la manipulation, nous ne 
pouvons accepter aucune responsabilité pour le contenu fourni.



 

 Date: Wed, 1 Dec 2010 08:04:10 -0800
 From: nero2...@hotmail.com
 To: users@maven.apache.org
 Subject: Re: Why is it complaining about ${WL_HOME}
 
 
 well I have changed it to env.WL_HOME but that aint working. Same error.
 
 Even if that would have worked. How come my other project teamworker can
 build it ok? they dont use any env.. and they dont even have it set in
 windows enviorment. I dont understand.
 -- 
 View this message in context: 
 http://maven.40175.n5.nabble.com/Why-is-it-complaining-about-WL-HOME-tp3287660p3287883.html
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org