Hi,

when you build with vmware support or other 3rd party jars, you need to
install the jars.
please refer to https://github.com/shapeblue/cloudstack-nonoss

the file /usr/share/cloudstack-management/lib/cloudstack-<version>.jar is a
copy of client/target/cloud-client-ui-<version>.jar, not
server/target/cloud-server-<version>.jar


-Wei


On Mon, Apr 28, 2025 at 7:29 PM Jason Hollis <ja...@americancloud.io.invalid>
wrote:

> I've been trying to get cloudstack to build with varrying results.  If I
> do get it to build by adjusting some parameters of the mvn command it will
> be successful, but the file size for my cloud-server-4.19.2.0.jar will only
> be 3.7MB when on my Test environment Cloudstack management server it is
> ~150MB.  Right now I'd like to just be able to get a successful build from
> the 4.19.2.0 branch of the repo with NO changes, and then add my changes
> once I get a successful build.
>
> Below is my current attepmt that fails on the vmware module part, that I
> don't need and all ways of excluding it have failed too.
>
> I'm doing this in Docker to hopefully avoid any potential issues with my
> local machine.
>
> I've been following this document and doing as much research and testing
> as I can too:
>
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Setting+up+CloudStack+Development+Environment+on+Linux
>
> I just keep hitting issues and was hoping I could get some help from this
> mailing list.
>
> Any help with this would be greatly appreciated.
>
>
>
> Dockerfile:
> FROM ubuntu:20.04
>
> # Set non-interactive frontend and preconfigure tzdata
> ENV DEBIAN_FRONTEND=noninteractive
> RUN echo "tzdata tzdata/Areas select Etc" | debconf-set-selections && \
>     echo "tzdata tzdata/Zones/Etc select UTC" | debconf-set-selections
>
> # Install dependencies
> RUN apt-get update && apt-get install -y \
>     openjdk-11-jdk \
>     maven \
>     git \
>     genisoimage \
>     python3-setuptools \
>     python3-dev \
>     python3-pip \
>     mkisofs \
>     && apt-get clean \
>     && rm -rf /var/lib/apt/lists/*
>
> # Set JAVA_HOME
> ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
> ENV PATH=$JAVA_HOME/bin:$PATH
>
> # Create working directory
> WORKDIR /cloudstack
>
> # Ensure Maven uses the correct Java version
> RUN update-alternatives --set java
> /usr/lib/jvm/java-11-openjdk-amd64/bin/java
>
>
> Docker Compose file:
> services:
>   cloudstack-builder:
>     build:
>       context: .
>       dockerfile: Dockerfile
>     volumes:
>       # Mount local CloudStack repository
>       - /home/user/git_repos/cloudstack:/cloudstack
>       # Mount host directory for build output
>       - ./cloudstack-build:/cloudstack-build
>       # Cache Maven repository
>       - maven-repo:/root/.m2
>     environment:
>       - DEBIAN_FRONTEND=noninteractive
>     working_dir: /cloudstack
>     command: >
>       bash -c "
>       mvn clean package -P developer,systemvm -DskipTests -Dnoredist
> -Dmaven.parallel.build=true &&
>         cp server/target/cloud-server-4.19.2.0.jar /cloudstack-build/ ||
> true &&
>         cp server/target/*.war /cloudstack-build/ || true
>       "
>
> volumes:
>   maven-repo:
>     name: maven-repo
>
>
> cloudstack-builder-1  | [INFO] Apache CloudStack VMware Base
> ...................... FAILURE [  0.045 s]
> cloudstack-builder-1  | [INFO] Apache CloudStack Plugin - Hypervisor
> VMware ....... SKIPPED
> cloudstack-builder-1  | [INFO] Apache CloudStack Plugin - API VMware SIOC
> ......... SKIPPED
> cloudstack-builder-1  | [INFO] Apache CloudStack Plugin - Veeam Backup and
> Recovery Plugin SKIPPED
> cloudstack-builder-1  | [INFO] Apache CloudStack Plugin - Cisco VNMC
> .............. SKIPPED
> cloudstack-builder-1  | [INFO] Apache CloudStack Framework - Spring Life
> Cycle .... SKIPPED
> cloudstack-builder-1  | [INFO] Apache CloudStack Plugin - Network Juniper
> Contrail  SKIPPED
> cloudstack-builder-1  | [INFO] Apache CloudStack Plugin - Tungsten-Fabric
> Network . SKIPPED
> cloudstack-builder-1  | [INFO] Apache CloudStack Plugin - MySQL HA
> Strategy ....... SKIPPED
> cloudstack-builder-1  | [INFO] Apache CloudStack Framework - Spring Module
> ........ SKIPPED
> cloudstack-builder-1  | [INFO] Apache CloudStack Secondary Storage
> Controller ..... SKIPPED
> cloudstack-builder-1  | [INFO] Apache CloudStack Console Proxy
> .................... SKIPPED
> cloudstack-builder-1  | [INFO] Apache CloudStack Console Proxy - RDP
> Client ....... SKIPPED
> cloudstack-builder-1  | [INFO] Apache CloudStack Console Proxy - Server
> ........... SKIPPED
> cloudstack-builder-1  | [INFO] Apache CloudStack System VM
> ........................ SKIPPED
> cloudstack-builder-1  | [INFO] Apache CloudStack Client UI
> ........................ SKIPPED
> cloudstack-builder-1  | [INFO] Apache CloudStack Framework - QuickCloud
> ........... SKIPPED
> cloudstack-builder-1  | [INFO] Apache CloudStack Test
> ............................. SKIPPED
> cloudstack-builder-1  | [INFO] Apache CloudStack Developer Mode
> ................... SKIPPED
> cloudstack-builder-1  | [INFO] Apache CloudStack Developer Tools
> .................. SKIPPED
> cloudstack-builder-1  | [INFO] Apache CloudStack apidocs
> .......................... SKIPPED
> cloudstack-builder-1  | [INFO] Apache CloudStack marvin
> ........................... SKIPPED
> cloudstack-builder-1  | [INFO] Apache CloudStack DevCloud4
> ........................ SKIPPED
> cloudstack-builder-1  | [INFO] Apache CloudStack DevCloud-KVM
> ..................... SKIPPED
> cloudstack-builder-1  | [INFO]
> ------------------------------------------------------------------------
> cloudstack-builder-1  | [INFO] BUILD FAILURE
> cloudstack-builder-1  | [INFO]
> ------------------------------------------------------------------------
> cloudstack-builder-1  | [INFO] Total time:  06:53 min
> cloudstack-builder-1  | [INFO] Finished at: 2025-04-28T17:06:49Z
> cloudstack-builder-1  | [INFO]
> ------------------------------------------------------------------------
> cloudstack-builder-1  | [ERROR] Failed to execute goal on project
> cloud-vmware-base: Could not resolve dependencies for project
> org.apache.cloudstack:cloud-vmware-base:jar:4.19.2.0: The following
> artifacts could not be resolved: com.cloud.com.vmware:vmware-vim25:jar:8.0,
> com.cloud.com.vmware:vmware-pbm:jar:8.0: Failure to find
> com.cloud.com.vmware:vmware-vim25:jar:8.0 in
> https://repo.jenkins-ci.org/releases/ was cached in the local repository,
> resolution will not be reattempted until the update interval of
> repo.jenkins-ci.org.releases has elapsed or updates are forced -> [Help 1]
> cloudstack-builder-1  | [ERROR]
> cloudstack-builder-1  | [ERROR] To see the full stack trace of the errors,
> re-run Maven with the -e switch.
> cloudstack-builder-1  | [ERROR] Re-run Maven using the -X switch to enable
> full debug logging.
> cloudstack-builder-1  | [ERROR]
> cloudstack-builder-1  | [ERROR] For more information about the errors and
> possible solutions, please read the following articles:
> cloudstack-builder-1  | [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
> cloudstack-builder-1
> <http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionExceptioncloudstack-builder-1>
> | [ERROR]
> cloudstack-builder-1  | [ERROR] After correcting the problems, you can
> resume the build with the command
> cloudstack-builder-1  | [ERROR]   mvn <args> -rf :cloud-vmware-base
> cloudstack-builder-1  | cp: cannot stat 'server/target/*.war': No such
> file or directory
> cloudstack-builder-1 exited with code 0
>
>
> Thanks,
> Jason
>

Reply via email to