摘要报告 - 错误“汇编”目标需要“战争”包装

时间:2015-06-04 11:39:26

标签: java maven maven-plugin enunciate

我在生成enunciate report时运行以下命令时收到错误

mvn clean pre-site site:site site:stage -PskipQuality -DskipTests=true -U

我的pom.xml在下面列出了

的插件配置
<plugin>
    <groupId>org.codehaus.enunciate</groupId>
    <artifactId>maven-enunciate-plugin</artifactId>
    <version>1.27</version>
    <executions>
    <execution>
        <goals>
            <goal>assemble</goal>
        </goals>
    </execution>
    </executions>
</plugin>

错误 - “汇编”目标需要“战争”包装

2 个答案:

答案 0 :(得分:0)

您必须将项目打包为战争:

<project>
  ...
  <packaging>war</packaging>
  ...
</project>

答案 1 :(得分:0)

在执行标记下添加以下配置后,错误停止了。

- (void)drawRect:(CGRect)rect {

[super drawRect:rect];


NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];
long value = [prefs integerForKey:@"Daven"];


if((int)value == 0){
    string =
    [NSAttributedString.alloc
     initWithFileURL:[ NSBundle.mainBundle URLForResource:@"Shacharit" withExtension:@"rtf"  ]
     options:nil
     documentAttributes:nil
     error:NULL
     ];


}else if((int)value == 1){
    string =
    [NSAttributedString.alloc
     initWithFileURL:[ NSBundle.mainBundle URLForResource:@"Mincha" withExtension:@"rtf"  ]
     options:nil
     documentAttributes:nil
     error:NULL
     ];


}else if((int)value == 2){
    string =
    [NSAttributedString.alloc
     initWithFileURL:[ NSBundle.mainBundle URLForResource:@"Maariv" withExtension:@"rtf"  ]
     options:nil
     documentAttributes:nil
     error:NULL
     ];


}else if((int)value == 3){
    string =
    [NSAttributedString.alloc
     initWithFileURL:[ NSBundle.mainBundle URLForResource:@"ּBrachaAchrona" withExtension:@"rtf"  ]
     options:nil
     documentAttributes:nil
     error:NULL
     ];

}else if((int)value == 4){
    string =
    [NSAttributedString.alloc
     initWithFileURL:[ NSBundle.mainBundle URLForResource:@"BirkatHamazon" withExtension:@"rtf"  ]
     options:nil
     documentAttributes:nil
     error:NULL
     ];

}else if((int)value == 5){
    string =
    [NSAttributedString.alloc
     initWithFileURL:[ NSBundle.mainBundle URLForResource:@"TefillatHaderech" withExtension:@"rtf"  ]
     options:nil
     documentAttributes:nil
     error:NULL
     ];

}

attStorage = [[NSTextStorage alloc]initWithAttributedString:string];

textContainer = [[NSTextContainer alloc]
                                  initWithSize:CGSizeMake(self.frame.size.width, FLT_MAX)];

layoutManager = [[NSLayoutManager alloc]init];
[layoutManager addTextContainer:textContainer];
[attStorage addLayoutManager:layoutManager];

NSRange glyphRange = [layoutManager
                      glyphRangeForTextContainer:textContainer];
[layoutManager drawGlyphsForGlyphRange: glyphRange atPoint: rect.origin];