- byte[] sourcesJar = RepoUtils.packageAsPdeSource(
- in,
- new DefaultNameVersion(artifact.getArtifactId(), artifact
- .getVersion()));
- Artifact sourcesArtifact = new DefaultArtifact(
- artifact.getGroupId(),
- artifact.getArtifactId() + ".source", "jar",
- artifact.getVersion());
- Node sourcesJarNode = RepoUtils.copyBytesAsArtifact(
- javaSession.getRootNode(), sourcesArtifact, sourcesJar);
+ byte[] sourcesJar = RepoUtils.packageAsPdeSource(in,
+ new DefaultNameVersion(artifact.getArtifactId(), artifact.getVersion()));
+ Artifact sourcesArtifact = new DefaultArtifact(artifact.getGroupId(), artifact.getArtifactId() + ".source",
+ "jar", artifact.getVersion());
+ Node sourcesJarNode = RepoUtils.copyBytesAsArtifact(javaSession.getRootNode(), sourcesArtifact, sourcesJar);