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";>
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>xx.xxxx.ip.security</groupId>
        <artifactId>administration-role-administration</artifactId>
        <version>2.6-SNAPSHOT</version>
    </parent>
   
<groupId>xx.xxxx.ip.security.administration-role-administration</groupId>
    <artifactId>administrationRoleAdministrationWEB</artifactId>
    <packaging>war</packaging>
    <name>${project.artifactId}</name>
   
<url>http://xxxxxxxxxxxxxx.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 xxxx.
        </description>
    <ciManagement>
        <system>Hudson</system>
        <url>http://xxxxxxxxxxxxxx.xxx.xx:8082/</url>
    </ciManagement>
    <distributionManagement>
        <site>
            <id>xxxxxxxxxxxxxx.xxx.xx</id>
           
<url>scp://xxxxxxxxxxxxxx.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>
        <sourceDirectory>src</sourceDirectory>
        <plugins>

            <plugin>
                <groupId>xx.xxxx.plugins</groupId>
                <artifactId>wlihelper-maven-plugin</artifactId>
                <version>1.0</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>dependency</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>xx.xxxx.plugins</groupId>
                <artifactId>wli-maven-plugin</artifactId>
                <version>1.2</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>prepare-web-weblogic</goal>
                            <goal>channel-build</goal>
                            <goal>assemble</goal>
                            <goal>jwsc</goal>
                            <goal>annotation-manifest</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <id>2.5.2.1 add-source-root</id>
                        <phase>validate</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <configuration>
                            <sourceRoot>target/apt_src</sourceRoot>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.myfaces.tobago</groupId>
                <artifactId>maven-apt-plugin</artifactId>
                <version>1.0.20</version>
                <configuration>
                    <generated>target/apt_src</generated>
                    <aptSourceRoots>
                        <aptSourceRoot>src</aptSourceRoot>
                        <aptSourceRoot>target/apt_src</aptSourceRoot>
                        <aptSourceRoot>target/xbean_src</aptSourceRoot>
                        <aptSourceRoot>target/assembly/src</aptSourceRoot>
                    </aptSourceRoots>
                    <aptOptions>${project_apt_option}</aptOptions>
                    <target>1.5</target>
                    <nocompile>true</nocompile>
                    <showWarnings>false</showWarnings>
                    <verbose>false</verbose>
                    <fork>false</fork>
                </configuration>
                <executions>
                    <execution>
                        <id>2.4.x apt-components</id>
                        <phase>process-sources</phase>
                        <goals>
                            <goal>execute</goal>
                        </goals>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>com.bea.weblogic.integration.lib</groupId>
                        <artifactId>antlr</artifactId>
                        <version>9.2</version>
                        <scope>provided</scope>
                    </dependency>
                </dependencies>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <warSourceDirectory>WebContent</warSourceDirectory>
                    <manifest>
                       
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                    </manifest>
                    <archive>
                        <manifestEntries>
                           
<Implementation-Build>${buildNumber}</Implementation-Build>
                        </manifestEntries>
                    </archive>
                    <webResources>
                        <resource>
                           
<directory>target/processoutput/WEB-INF</directory>
                            <targetPath>WEB-INF</targetPath>
                        </resource>
                        <resource>
                            <directory>src</directory>
                            <targetPath>WEB-INF/classes</targetPath>
                            <includes>
                                <include>**/*.xml</include>
                                <include>**/*.wsdl</include>
                            </includes>
                        </resource>
                        <resource>
                            <directory>target/weboutput</directory>
                        </resource>
                    </webResources>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>
        </plugins>
        <resources>
            <resource>
                <directory>src</directory>
                <includes>
                    <include>resources/**</include>
                </includes>
            </resource>
        </resources>
    </build>
    <dependencies>
<!-- <classpathentry kind="con"
path="com.bea.wlw.libmodule/struts-1.2/allow-newer/1.2/1.0"/> -->
        <dependency>
            <groupId>weblogic-common.struts</groupId>
            <artifactId>struts-parent</artifactId>
            <version>1.2</version>
            <type>pom</type>
            <scope>provided</scope>
        </dependency>
<!-- <classpathentry kind="con"
path="com.bea.wlw.libmodule/wls-commonslogging-bridge/allow-newer/1.0/1.0"/>
-->
        <dependency>
            <groupId>weblogic-common.wls-commonslogging-bridge</groupId>
            <artifactId>wls-commonslogging-bridge-parent</artifactId>
            <version>9.2.0</version>
            <type>pom</type>
            <scope>provided</scope>
        </dependency>
<!-- <classpathentry kind="con"
path="com.bea.wlw.libmodule/beehive-controls-1.0/allow-newer/1.0/1.0"/> -->
        <dependency>
            <groupId>weblogic-common.beehive-controls</groupId>
            <artifactId>beehive-controls-parent</artifactId>
            <version>1.0</version>
            <type>pom</type>
            <scope>provided</scope>
        </dependency>
<!-- <classpathentry kind="con"
path="com.bea.wlw.libmodule/jstl/allow-newer/1.1/1.1.2"/> -->
        <dependency>
            <groupId>weblogic-common.jstl</groupId>
            <artifactId>jstl-parent</artifactId>
            <version>1.1.2</version>
            <type>pom</type>
            <scope>provided</scope>
        </dependency>
<!-- <classpathentry kind="con"
path="com.bea.wlw.libmodule/weblogic-controls-1.0/allow-newer/1.0/1.0"/> -->
        <dependency>
            <groupId>weblogic-common.weblogic-controls</groupId>
            <artifactId>weblogic-controls-parent</artifactId>
            <version>1.0</version>
            <type>pom</type>
            <scope>provided</scope>
        </dependency>

<!-- used by apt in liDefaultControlChecker / JpdAnnotationProcessor..-->
        <dependency>
            <groupId>com.bea.weblogic.server.lib</groupId>
            <artifactId>wlxbean81</artifactId>
            <version>9.2</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.bea.weblogic.server.lib</groupId>
            <artifactId>xquery</artifactId>
            <version>9.2</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.bea.weblogic.server.lib</groupId>
            <artifactId>xbean</artifactId>
            <version>9.2</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.bea.weblogic.server.lib</groupId>
            <artifactId>xqrl</artifactId>
            <version>9.2</version>
            <scope>provided</scope>
        </dependency>

<!-- used by apt ControlAnnotationProcessor .-->
        <dependency>
            <groupId>com.bea.weblogic.server.lib</groupId>
            <artifactId>jpd</artifactId>
            <version>9.2</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.bea.weblogic.server.lib</groupId>
            <artifactId>knex81</artifactId>
            <version>9.2</version>
            <scope>provided</scope>
        </dependency>

                <!-- servlet container -->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.3</version>
            <scope>provided</scope>
        </dependency>

                <!-- local project dependencies -->
        <dependency>
           
<groupId>xx.xxxx.ip.security.security-services-shared-lib</groupId>
            <artifactId>security-services-web-lib-dep</artifactId>
            <type>pom</type>
            <version>2.29</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>
</project>




-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Why-is-it-complaining-about-WL-HOME-tp3287660p3287660.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

Reply via email to