Cloudbees에 Maven 웹 응용 프로그램을 배포하려고합니다. 내 앱은 Netbeans에서 성공적으로 작동합니다. ClickStart를 클릭 한 다음 Glassfish App Server를 클릭했습니다. 내 애플 리케이션을 만들었습니다. 그 후에 내 전쟁 파일을 업로드합니다. 앱을 열면 내 브라우저가 아닌 Glassfish 기본 환영 페이지가 있습니다. Cloudbees에 Glassfish 앱을 어떻게 배포 할 수 있습니까?CloudBees에 Glassfish Maven 앱을 어떻게 배치 할 수 있습니까?
내 pom.xml 파일 :
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany</groupId>
<artifactId>webserviceCloudBees</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>webserviceCloudBees</name>
<properties>
<endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<pluginRepositories>
<pluginRepository>
<id>cloudbees-public-release</id>
<url>http://repository-cloudbees.forge.cloudbees.com/public-release</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<version>6.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-rt</artifactId>
<version>2.2.7</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.cloudbees</groupId>
<artifactId>bees-maven-plugin</artifactId>
<version>1.3.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<compilerArguments>
<endorseddirs>${endorsed.dir}</endorseddirs>
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<outputDirectory>${endorsed.dir}</outputDirectory>
<silent>true</silent>
<artifactItems>
<artifactItem>
<groupId>javax</groupId>
<artifactId>javaee-endorsed-api</artifactId>
<version>6.0</version>
<type>jar</type>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
먼저 CliskStart를 클릭하고 Glassfish 3 App을 선택하십시오. 그런 다음 앱 이름을 지정합니다. 내 응용 프로그램을 만든 후에 응용 프로그램 센터에 들어가서 응용 프로그램을 선택합니다. 그 후 "대안으로 WAR 파일 업로드"버튼을 클릭하고 전쟁 파일을 업로드합니다. 하지만 내 애플 리케이션이 작동하지 않습니다. 그것에 대한 튜토리얼이 있습니까? – ekremk
배포 방법 (클릭 스타트)은 응용 프로그램 소스 코드를 푸는 것이 좋습니다. 젠킨스가 적절한 패키지를 만들고 RUN @ Cloud에 배포합니다. 클릭 스타트로 만든 git repo를 복제하고 기본 데모 응용 프로그램을 자신의 코드로 덮어 씁니다. –