imbrium:tmp wsmoak$ java -Xmx512m -jar data-management-cli-1.2.4-SNAPSHOT-r734910-app.jar -buildsJdbcUrl jdbc:derby:/tmp/continuum/database -mode EXPORT -directory backups
0 [main] INFO org.apache.maven.continuum.management.DataManagementCli - Processing Continuum database...
Exception in thread "main" java.lang.NullPointerException
at org.apache.maven.continuum.management.DataManagementCli.downloadArtifact(DataManagementCli.java:364)
at org.apache.maven.continuum.management.DataManagementCli.processDatabase(DataManagementCli.java:198)
at org.apache.maven.continuum.management.DataManagementCli.main(DataManagementCli.java:170)
Around line 364 of DataManagementCli, it assumes that any active profile has actually been defined.
If I move my settings.xml out of the way and let it work against central, then it proceeds.
Description
imbrium:tmp wsmoak$ java -Xmx512m -jar data-management-cli-1.2.4-SNAPSHOT-r734910-app.jar -buildsJdbcUrl jdbc:derby:/tmp/continuum/database -mode EXPORT -directory backups
0 [main] INFO org.apache.maven.continuum.management.DataManagementCli - Processing Continuum database...
Exception in thread "main" java.lang.NullPointerException
at org.apache.maven.continuum.management.DataManagementCli.downloadArtifact(DataManagementCli.java:364)
at org.apache.maven.continuum.management.DataManagementCli.processDatabase(DataManagementCli.java:198)
at org.apache.maven.continuum.management.DataManagementCli.main(DataManagementCli.java:170)
Around line 364 of DataManagementCli, it assumes that any active profile has actually been defined.
If I move my settings.xml out of the way and let it work against central, then it proceeds.
Wendy Smoak added a comment - 25/Feb/09 06:56 PM Updated description – it wasn't a problem with a profile not containing repositories, it was an active profile that wasn't defined in settings.xml.
If you have <activeProfile>abc</activeProfile>, but no <profile><id>abc</id>, then you get the NPE.
Updated description – it wasn't a problem with a profile not containing repositories, it was an active profile that wasn't defined in settings.xml.
If you have <activeProfile>abc</activeProfile>, but no <profile><id>abc</id>, then you get the NPE.