문제

...
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<version>2.1-alpha-3</version>
...
<mapping>
    <directory>/etc/init.d/</directory>
    <softlinkSource>
        <location>/opt/activemq/bin/activemq</location>
    </softlinkSource>
</mapping>
...

Compiled with error: ...Cannot find setter, adder nor field in org... for 'softlinkSource'...

I find codehaus jira with same bug: http://jira.codehaus.org/browse/MRPM-82

It is fixed in my version.

도움이 되었습니까?

해결책

<mapping>
    <directory>/etc/init.d</directory>
    <sources>
        <softlinkSource>
        <location>
                /opt/activemq/bin/activemq
            </location>
        </softlinkSource>
    </sources>
</mapping>

this is right code

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top