我有一个有 4 个阶段的管道:
打包阶段是手动的。如果 x 分钟后未采取手动操作,我希望管道超时。我知道有一个timeout选择,但只有在工作开始后才会考虑。
package_staging:
image: maven:3.6.3-jdk-11
stage: package
script:
- mvn $MAVEN_CLI_OPTS -DskipTests clean install -Pstaging
only:
- branches
except:
- master
- /^release/.*$
when: manual
Run Code Online (Sandbox Code Playgroud) 我使用了一个干净的Eclipse 3.7,然后Maven Integration for Eclipse从Eclipse Marketplace中添加了它.我还添加WTP Integration和m2e connector for build-helper-maven-plugin从Windows - >首选项- >的Maven - >搜索- >打开目录.我还添加了Google Plugin for Eclipse.
我在运行命令时导入一个可以在命令行运行良好的maven项目:mvn compile gwt:compile或者mvn gwt:run在Eclipse中我收到了这个错误:
Error executing (org.bsc.maven:maven-processor-plugin:2.0.5:process:process:generate-sources) pom.xml /base line 289 Maven Build Problem
Run Code Online (Sandbox Code Playgroud)
这是pom文件的相关部分:
<plugin>
<groupId>org.bsc.maven</groupId>
<artifactId>maven-processor-plugin</artifactId>
<version>2.0.5</version>
<executions>
<execution>
<id>process</id>
<phase>generate-sources</phase>
<goals>
<goal>process</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.google.web.bindery</groupId>
<artifactId>requestfactory-apt</artifactId>
<version>${gwt.version}</version>
</dependency>
</dependencies>
</plugin>
Run Code Online (Sandbox Code Playgroud)
和
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings
only. It …Run Code Online (Sandbox Code Playgroud) 默认情况下,maven编译器插件将编译后的类放入${project.build.directory}/classes.我想把它们放进去${project.build.directory}/myclasses.参数-d更改已编译类的目标.我配置了插件但是我收到了一个错误:javac: directory not found: C:\home\target/myclasses.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
<showDeprecation>true</showDeprecation>
<compilerArguments>
<d>${project.build.directory}/myclasses</d>
</compilerArguments>
</configuration>
</plugin>
Run Code Online (Sandbox Code Playgroud) 我有RPC服务,返回从Event(抽象)扩展的GameEvent类型的对象.当我在客户端获取对象时,从Event(eventId,copyEventId,gameTimeGMT)继承的所有属性都设置为,null而在服务器端,这些属性具有值.
public class GameEvent extends Event implements IsSerializable {
private String homeTeam;
private String awayTeam;
public GameEvent() {
}
}
// Annotation are from the twig-persist framework which should not
// impact the serialization process.
public abstract class Event implements IsSerializable {
@Key
protected String eventId;
@Index
protected String copyEventId;
protected Date gameTimeGMT;
protected Event() {
}
}
Run Code Online (Sandbox Code Playgroud)
更新:我使用gwt-platform框架(MVP实现).这是对服务客户端的调用.在result.getGE()返回GameEvent对象,但与null属性.
dispatcher.execute(
new GetFormattedEventAction(
id),
new AsyncCallback<GetFormattedEventResult>() {
@Override
public void onFailure(Throwable caught) {
caught.printStackTrace();
} …Run Code Online (Sandbox Code Playgroud) 我有一个Controller,我想得到反馈给用户的错误.执行错误回调但错误消息不会发送回客户端.
JQuery调用:
var validateButton = $('#validateSteps');
validateButton.bind('click', function() {
var stepsInput = $(':input').serializeArray();
$.postJSON('validate.htm', stepsInput, function(data) {
alert(data);
var steps = $('#steps');
var i = 0;
for(i=0;i<data.length;i++) {
steps.stepWidget('setValidationStatus', {testStepId: data[i].testStepId, interactionType: data[i].interactionType, validationStatus: data[i].validationStatus} );
steps.stepWidget('setErrorDescriptions', {testStepId: data[i].testStepId, interactionType: data[i].interactionType, errorDescriptions: data[i].errorDescriptions} );
}
return false;
}, {
error: function (XMLHttpRequest, textStatus, errorThrown, data) {
alert("error function");
alert(textStatus);
alert(errorThrown);
alert("Internal Server Error: " + data);
return false;
}
});
return false;
});
Run Code Online (Sandbox Code Playgroud)
控制者:
@RequestMapping(value = "validate.htm", method …Run Code Online (Sandbox Code Playgroud) 我使用Angular和RequireJS.我尝试使用RequireJS优化,现在我的应用程序无法正常工作.我确信这是由于缩小.
Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.2.0rc1/$injector/modulerr?p0=myapp&p1=Error%3…t%20(http%3A%2F%2Flocalhost%3A8080%2Fwebapp%2Fapp%2Fmain-built.js%3A4%3A10)
错误消息对查找问题没有多大帮助,所以我想知道如何使用源映射来查明原始源代码中的错误.我用Chrome来调试.
编辑:完整错误堆栈跟踪
Failed to instantiate module myapp due to:
Error: [$injector:unpr] http://errors.angularjs.org/1.2.0rc1/$injector/unpr?p0=e
at Error (<anonymous>)
at http://localhost:8080/webapp/app/main-built.js:3:19581
at http://localhost:8080/webapp/app/main-built.js:3:31899
at n (http://localhost:8080/webapp/app/main-built.js:3:30540)
at Object.r [as invoke] (http://localhost:8080/webapp/app/main-built.js:3:30716)
at http://localhost:8080/webapp/app/main-built.js:3:30147
at Array.forEach (native)
at o (http://localhost:8080/webapp/app/main-built.js:3:19891)
at i (http://localhost:8080/webapp/app/main-built.js:3:29951)
at yt (http://localhost:8080/webapp/app/main-built.js:4:10
Run Code Online (Sandbox Code Playgroud) 我在http://docs.jquery.com/Plugins/Authoring上定义了我的插件
(function( $ ){
var methods = {
init : function( options ) { },
show : function( options ) { },
hide : function( ) { },
update : function( content ) {
// How to call the show method inside the update method
// I tried these but it does not work
// Error: not a function
this.show();
var arguments = { param: param };
var method = 'show';
// Error: options is undefined
methods[ method …Run Code Online (Sandbox Code Playgroud) 我有一个抽象类定义为:
public abstract class TCV<T extends MF> {
public Map<String, MVR<T>> operation() {
...
}
}
Run Code Online (Sandbox Code Playgroud)
主要代码:
TCV<? extends MF> o = new TCVConcrete();
Map<String, MVR< ? extends MF>> map = o.operation();
Run Code Online (Sandbox Code Playgroud)
日食错误:
Type mismatch: cannot convert from Map<String,MVR<capture#5-of ? extends MF>> to Map<String,MVR<? extends MF>>
编辑
public class TCVConcrete extends TCV<MFV2> {
}
public class MFV2 extends MF {
}
Run Code Online (Sandbox Code Playgroud) 我想根据几个文件的存在激活一个配置文件.在下面的例子中,我想配置文件将被激活,如果这两个文件my.marker和another.marker存在.
<activation>
<file>
<exists>${basedir}/my.marker</exists>
<exists>${basedir}/another.marker</exists>
</file>
</activation>
Run Code Online (Sandbox Code Playgroud)
它不起作用,因为它对模式无效.有没有办法在不使用命令行属性的情况下做这样的事情?
我想使用git flow完成一个功能,但是我得到一个致命的错误: fatal: Index contains uncommited changes. Aborting.
>git --version
git version 1.8.3.msysgit.0
>git flow feature list
* google-oauth
>git branch
develop
* feature/google-oauth
master
>git flow feature finish google-oauth
fatal: Index contains uncommited changes. Aborting.
>git status
warning: LF will be replaced by CRLF in package.json.
The file will have its original line endings in your working directory.
# On branch feature/google-oauth
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: app.js
Run Code Online (Sandbox Code Playgroud) java ×3
maven ×3
gwt ×2
jquery ×2
angularjs ×1
eclipse ×1
generics ×1
git ×1
git-flow ×1
gitlab ×1
gwt-platform ×1
gwt-rpc ×1
javascript ×1
json ×1
spring-mvc ×1