Skip to content

Commit

Permalink
Add snapshots to pom.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
dhadka committed Dec 20, 2024
1 parent a2e9ac0 commit cb60390
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,26 @@
</plugins>
</build>

<repositories>
<repository>
<id>ossrh-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>

<distributionManagement>
<repository>
<id>ossrh</id>
<name>Nexus Staging Repository</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<snapshotRepository>
<id>ossrh</id>
<name>Nexus Snapshot Repository</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ private void writePopulation(File file, int[] ids) throws IOException {

for (int j = 0; j < problem.getNumberOfObjectives(); j++) {
writer.print(' ');
writer.print(solutions.get(ids[i]).getObjective(j));
writer.print(solutions.get(ids[i]).getObjectiveValue(j));
}

writer.println();
Expand Down

0 comments on commit cb60390

Please sign in to comment.