Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate target when running package and install at once #28

Open
bbaldino opened this issue Jan 16, 2019 · 4 comments
Open

Duplicate target when running package and install at once #28

bbaldino opened this issue Jan 16, 2019 · 4 comments

Comments

@bbaldino
Copy link

I've noticed that when I try and run mvn package install in my project, the linker command seems to list the target twice, resulting in duplicate symbol complaints. It's entirely possible I've screwed something up in the jar/definition. The pom is a submodule, but the specific file is here.

If I run mvn package and then mvn install, it works fine but running both at the same time causes the issue. Have I got something wrong in the config?

@bbaldino
Copy link
Author

I end up with a linking command that looks like this:

/bin/sh -c cd '/Users/bbaldino/work/sctp4j/jniwrapper/native' && 'gcc' '-shared' '-L/Users/bbaldino/work/sctp4j/jniwrapper/native/target/usrsctp-1.0-SNAPSHOT/lib' 'target/usrsctp-1.0-SNAPSHOT/lib/libusrsctp.a' '-lpthread' '-o' '/Users/bbaldino/work/sctp4j/jniwrappe
r/native/target/libjnisctp-darwin-x86_64.jnilib' 'target/objs/org_jitsi_modified_sctp4j_SctpJni.o' 'target/objs/org_jitsi_modified_sctp4j_SctpJni.o'

(same target listed twice at the end)

@bbaldino
Copy link
Author

After looking at the code a bit I can confirm it's resolved by #27. Is there a plan for a new release?

@dantran
Copy link
Contributor

dantran commented Jan 18, 2019

please test 1.0.0-alpha-10 at staging https://oss.sonatype.org/content/repositories/orgcodehausmojo-1137

@bbaldino
Copy link
Author

sorry, but for the life of me I can't figure out how to add that repo in maven. I tried:

<repository>
  <id>oss-sonatype</id>
  <name>oss-sonatype</name>
  <url>https://oss.sonatype.org/content/repositories/orgcodehausmojo-1137</url>
  <releases>
    <enabled>true</enabled>
  </releases>
  <snapshots>
    <enabled>true</enabled>
  </snapshots>
</repository>

but can't find 1.0-alpha-10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants