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

FELIX-6741 Upgrade dependencies for maven-bundle-plugin #356

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tools/maven-bundle-plugin/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Changes from 6.0.0 to 6.1.0
---------------------------
* Improvement
* FELIX-6741 Upgrade dependencies for maven-bundle-plugin (bnd 7.1.0 among other updates). See https://github.com/bndtools/bnd/wiki/Changes-in-7.1.0

Changes from 5.1.9 to 6.0.0
---------------------------
* Improvement
Expand Down
41 changes: 23 additions & 18 deletions tools/maven-bundle-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,72 +168,77 @@
<dependencies>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
<version>6.0.0</version>
<artifactId>osgi.core</artifactId>
<version>8.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.metatype</artifactId>
<version>1.2.4</version>
</dependency>
<dependency>
<groupId>biz.aQute.bnd</groupId>
<artifactId>biz.aQute.bndlib</artifactId>
<version>7.0.0</version>
<version>7.1.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.25</version>
<version>2.0.16</version>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.bundlerepository</artifactId>
<version>1.6.6</version>
<version>2.0.10</version>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.utils</artifactId>
<version>1.6.0</version>
<version>1.11.8</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>3.8.1</version>
<version>3.9.9</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-model</artifactId>
<version>3.3.9</version>
<version>3.9.9</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
<version>3.3.9</version>
<version>3.9.9</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-compat</artifactId>
<version>3.8.1</version>
<version>3.9.9</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.reporting</groupId>
<artifactId>maven-reporting-api</artifactId>
<version>3.0</version>
<version>4.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-archiver</artifactId>
<version>3.5.2</version>
<version>3.6.3</version>
</dependency>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-dependency-tree</artifactId>
<version>3.0</version>
<version>3.3.0</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.3.0</version>
<version>4.0.2</version>
</dependency>
<dependency>
<groupId>org.sonatype.plexus</groupId>
Expand All @@ -243,17 +248,17 @@
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-sink-api</artifactId>
<version>1.0</version>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-site-renderer</artifactId>
<version>1.0</version>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>3.4</version>
<version>3.15.1</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand All @@ -271,7 +276,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.1</version>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,7 @@ protected Builder getOSGiBuilder( MavenProject currentProject, Map<String, Strin
Properties properties = new Properties();
properties.putAll( getDefaultProperties( currentProject ) );
properties.putAll( transformDirectives( originalInstructions ) );

if ( new MavenArchiver().parseOutputTimestamp( outputTimestamp ) != null )
if (MavenArchiver.parseBuildOutputTimestamp(outputTimestamp).isPresent())
{
properties.put( Constants.REPRODUCIBLE, "true" );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,23 +324,6 @@ public boolean canGenerateReport()
return !skip && outputDirectory != null;
}

public void generate( @SuppressWarnings( "deprecation" ) org.codehaus.doxia.sink.Sink sink, Locale locale )
throws MavenReportException
{
final Context ctx = new Context();
ctx.sink = sink;
ctx.locale = locale;

try
{
execute(ctx);
}
catch ( Exception e )
{
getLog().warn( "An error occurred while producing the report page, see nested exceptions", e );
}
}

public String getCategoryName()
{
return MavenReport.CATEGORY_PROJECT_REPORTS;
Expand All @@ -361,6 +344,22 @@ private ResourceBundle getBundle( Locale locale )
return ResourceBundle.getBundle( "baseline-report", locale, getClass().getClassLoader() );
}

@Override
public void generate(Sink sink, Locale locale) throws MavenReportException {
final Context ctx = new Context();
ctx.sink = sink;
ctx.locale = locale;

try
{
execute(ctx);
}
catch ( Exception e )
{
getLog().warn( "An error occurred while producing the report page, see nested exceptions", e );
}
}

public String getOutputName()
{
return "baseline-report";
Expand Down