{"action":"closed","issue":{"url":"https://api.github.com/repos/mojohaus/rpm-maven-plugin/issues/42","repository_url":"https://api.github.com/repos/mojohaus/rpm-maven-plugin","labels_url":"https://api.github.com/repos/mojohaus/rpm-maven-plugin/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/mojohaus/rpm-maven-plugin/issues/42/comments","events_url":"https://api.github.com/repos/mojohaus/rpm-maven-plugin/issues/42/events","html_url":"https://github.com/mojohaus/rpm-maven-plugin/issues/42","id":133832235,"number":42,"title":"Files copied to buildroot do not preserve symlinks","user":{"login":"Icedmang","id":17260162,"avatar_url":"https://avatars.githubusercontent.com/u/17260162?v=3","gravatar_id":"","url":"https://api.github.com/users/Icedmang","html_url":"https://github.com/Icedmang","followers_url":"https://api.github.com/users/Icedmang/followers","following_url":"https://api.github.com/users/Icedmang/following{/other_user}","gists_url":"https://api.github.com/users/Icedmang/gists{/gist_id}","starred_url":"https://api.github.com/users/Icedmang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Icedmang/subscriptions","organizations_url":"https://api.github.com/users/Icedmang/orgs","repos_url":"https://api.github.com/users/Icedmang/repos","events_url":"https://api.github.com/users/Icedmang/events{/privacy}","received_events_url":"https://api.github.com/users/Icedmang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mojohaus/rpm-maven-plugin/milestones/2","html_url":"https://github.com/mojohaus/rpm-maven-plugin/milestones/2.1.5","labels_url":"https://api.github.com/repos/mojohaus/rpm-maven-plugin/milestones/2/labels","id":1451294,"number":2,"title":"2.1.5","description":"","creator":{"login":"dantran","id":705836,"avatar_url":"https://avatars.githubusercontent.com/u/705836?v=3","gravatar_id":"","url":"https://api.github.com/users/dantran","html_url":"https://github.com/dantran","followers_url":"https://api.github.com/users/dantran/followers","following_url":"https://api.github.com/users/dantran/following{/other_user}","gists_url":"https://api.github.com/users/dantran/gists{/gist_id}","starred_url":"https://api.github.com/users/dantran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantran/subscriptions","organizations_url":"https://api.github.com/users/dantran/orgs","repos_url":"https://api.github.com/users/dantran/repos","events_url":"https://api.github.com/users/dantran/events{/privacy}","received_events_url":"https://api.github.com/users/dantran/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":7,"state":"open","created_at":"2015-12-09T05:25:55Z","updated_at":"2016-02-18T08:08:40Z","due_on":null,"closed_at":null},"comments":20,"created_at":"2016-02-15T22:25:47Z","updated_at":"2016-02-18T08:08:40Z","closed_at":"2016-02-18T08:08:40Z","body":"We have a number of files checked into an SVN repository that contain symbolic links to x86_64 binaries.  We are trying to package up these symbolic links as part of the package but the symbolic links are replaced with the actual contents of the files with the name of the symbolic link.\r\n\r\nThe CI biuld is done through Jenkins and I've confirmed the files are checked out of SVN as symbolic links, however, during the copy to tmp-buildroot, it appears the symbolic links are lost in this process.\r\n\r\n[INFO] Copying files to /home/jenkins/jenkins/workspace/test/target/rpm/test/tmp-buildroot/opt/test\r\n\r\nI can't find any information on this topic and whether or not there is an option to preserve symbolic links except for the <softlinkSource>  parameter, but I don't want to recreate the symbolic links through configuration, I would like to package them as-is.\r\n```xml\r\n      <plugin>\r\n        <groupId>org.codehaus.mojo</groupId>\r\n        <artifactId>rpm-maven-plugin</artifactId>\r\n        <version>2.1.4</version>\r\n        <extensions>true</extensions>\r\n        <executions>\r\n          <execution>\r\n            <id>attach-rpm</id>\r\n            <goals>\r\n              <goal>attached-rpm</goal>\r\n            </goals>\r\n          </execution>\r\n        </executions>\r\n        <configuration>\r\n          <group>Applications/Engineering</group>\r\n          <needarch>x86_64</needarch>\r\n          <targeOS>Linux</targeOS>\r\n\r\n          <defineStatements>\r\n            <defineStatement>_unpackaged_files_terminate_build 0</defineStatement>\r\n          </defineStatements>\r\n\r\n          <mappings>\r\n            <mapping>\r\n              <directory>/opt/test/</directory>\r\n              <configuration>false</configuration>\r\n              <username>user</username>\r\n              <groupname>user</groupname>\r\n\r\n              <sources>\r\n                <source>\r\n                  <location>test/</location>\r\n                  <noDefaultExcludes>true</noDefaultExcludes>\r\n                  <targetArchitecture>x86_64</targetArchitecture>\r\n                  <targetOSName>linux</targetOSName>\r\n                </source>\r\n              </sources>\r\n\r\n            </mapping>\r\n          </mappings>\r\n        </configuration>\r\n      </plugin>"}}